{
  "openapi": "3.1.0",
  "info": {
    "title": "Velosyll local API",
    "version": "0.2.0",
    "description": "HTTP endpoints served by Node.js and Express. The React studio uses the same endpoints. All request paths are relative to the local server. Authenticated streams are described in x-websockets. The public homepage offers fixed recordings. Processing custom inputs requires a funded project."
  },
  "paths": {
    "/console/account/mfa/disable": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Disable two-step verification and revoke other sessions",
        "security": [
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Account security result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "enabled"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Session, current password or verification code not accepted."
          },
          "403": {
            "description": "A signed-in member is required."
          },
          "409": {
            "description": "The state of two-step verification has changed or this session’s enrollment expired."
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "description": "Account security rate limit reached."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "password": {
                    "type": "string",
                    "format": "password",
                    "minLength": 8,
                    "maxLength": 256
                  },
                  "factor": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "Six-digit authenticator code or an unused recovery code."
                  }
                },
                "required": [
                  "password",
                  "factor"
                ]
              }
            }
          }
        }
      }
    },
    "/console/account/mfa/recovery-codes": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Replace all recovery codes",
        "security": [
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Account security result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "recovery_codes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "minItems": 8,
                      "maxItems": 8,
                      "description": "One-time recovery codes. Displayed once."
                    }
                  },
                  "required": [
                    "enabled",
                    "recovery_codes"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Session, current password or verification code not accepted."
          },
          "403": {
            "description": "A signed-in member is required."
          },
          "409": {
            "description": "The state of two-step verification has changed or this session’s enrollment expired."
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "description": "Account security rate limit reached."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "password": {
                    "type": "string",
                    "format": "password",
                    "minLength": 8,
                    "maxLength": 256
                  },
                  "factor": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "Six-digit authenticator code or an unused recovery code."
                  }
                },
                "required": [
                  "password",
                  "factor"
                ]
              }
            }
          }
        }
      }
    },
    "/console/account/mfa/enable": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Activate the authenticator and revoke other sessions",
        "security": [
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Account security result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "recovery_codes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "minItems": 8,
                      "maxItems": 8,
                      "description": "One-time recovery codes. Displayed once."
                    }
                  },
                  "required": [
                    "enabled",
                    "recovery_codes"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Session, current password or verification code not accepted."
          },
          "403": {
            "description": "A signed-in member is required."
          },
          "409": {
            "description": "The state of two-step verification has changed or this session’s enrollment expired."
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "description": "Account security rate limit reached."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "factor": {
                    "type": "string",
                    "pattern": "^[0-9]{6}$"
                  }
                },
                "required": [
                  "factor"
                ]
              }
            }
          }
        }
      }
    },
    "/console/account/mfa/setup": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Begin local authenticator setup with the current password",
        "security": [
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Account security result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "secret": {
                      "type": "string",
                      "description": "Base32 manual setup key."
                    },
                    "qr": {
                      "type": "string",
                      "description": "Locally generated QR image data URL."
                    },
                    "uri": {
                      "type": "string"
                    },
                    "expires": {
                      "type": "integer",
                      "description": "Epoch seconds. Enrollment is bound to the session for ten minutes."
                    }
                  },
                  "required": [
                    "secret",
                    "qr",
                    "uri",
                    "expires"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Session, current password or verification code not accepted."
          },
          "403": {
            "description": "A signed-in member is required."
          },
          "409": {
            "description": "The state of two-step verification has changed or this session’s enrollment expired."
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "description": "Account security rate limit reached."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "password": {
                    "type": "string",
                    "format": "password",
                    "minLength": 8,
                    "maxLength": 256
                  }
                },
                "required": [
                  "password"
                ]
              }
            }
          }
        }
      }
    },
    "/console/account/mfa": {
      "get": {
        "tags": [
          "Authentication"
        ],
        "summary": "Read personal two-step verification status",
        "security": [
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Account security result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "recovery_codes": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "enabled",
                    "recovery_codes"
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Session, current password or verification code not accepted."
          },
          "403": {
            "description": "A signed-in member is required."
          }
        }
      }
    },
    "/v1/tts-models": {
      "get": {
        "summary": "List speech synthesis models",
        "description": "Groups local stock voices, language-specific controls and authorized reference preparation by model family.",
        "tags": [
          "Voice"
        ],
        "responses": {
          "200": {
            "description": "Groups local stock voices, language-specific controls and authorized reference preparation by model family.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SynthesisModel"
                      }
                    }
                  },
                  "required": [
                    "items"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Invalid or unsupported language."
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "language",
            "schema": {
              "type": "string"
            },
            "description": "Optional catalog language code such as en or he."
          }
        ]
      }
    },
    "/v1/voices/{id}/prepare": {
      "post": {
        "summary": "Prepare a voice for a synthesis model",
        "description": "Checks the active grant and prepares its saved reference for the installed revision. New preparation costs one credit per started second of verified reference audio, up to 25 credits. A current preparation is reused without a new charge.",
        "tags": [
          "Voice"
        ],
        "responses": {
          "402": { "$ref": "#/components/responses/Payment" },
          "200": {
            "description": "Checks the active grant and prepares its saved reference for the installed revision. New preparation costs one credit per started second of verified reference audio, up to 25 credits. A current preparation is reused without a new charge.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoicePreparation"
                }
              }
            }
          },
          "403": {
            "description": "Member session required."
          },
          "404": {
            "description": "Active project voice unavailable."
          },
          "503": {
            "description": "Local model unavailable."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string",
                    "enum": [
                      "openvoice-v2",
                      "voxcpm2"
                    ]
                  }
                },
                "required": [
                  "model"
                ]
              }
            }
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/voices/{id}/preparations": {
      "get": {
        "summary": "List prepared model revisions",
        "description": "Returns model identifiers, revisions and preparation times for an active project grant.",
        "tags": [
          "Voice"
        ],
        "responses": {
          "200": {
            "description": "Returns model identifiers, revisions and preparation times for an active project grant.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/VoicePreparation"
                      }
                    }
                  },
                  "required": [
                    "items"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Active project voice unavailable."
          }
        },
        "security": [
          {
            "memberSession": []
          },
          {
            "projectKey": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/auth/password/request": {
      "post": {
        "summary": "Request a recovery message",
        "description": "Queue a password recovery message for a registered address. The single-use link expires after 30 minutes. Repeated requests reuse the active link. The response does not disclose whether an account exists.",
        "tags": [
          "Accounts"
        ],
        "responses": {
          "202": {
            "description": "Request accepted. The response is identical for known and unknown addresses.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "accepted": {
                      "type": "boolean",
                      "const": true
                    },
                    "delivery": {
                      "type": "string",
                      "enum": [
                        "local-file",
                        "local-smtp"
                      ],
                      "description": "Local file or SMTP capture in development. Omitted when external email delivery is configured."
                    }
                  },
                  "required": [
                    "accepted"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Invalid email address."
          },
          "429": {
            "description": "Recovery rate limit reached."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 254
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "security": []
      }
    },
    "/auth/password/reset": {
      "post": {
        "summary": "Change a forgotten password",
        "description": "Submit the token from the recovery email with a new password. Success confirms mailbox ownership, closes all existing sessions, and queues a password-change notification. Sign in again, including the configured second factor when requested.",
        "tags": [
          "Accounts"
        ],
        "responses": {
          "200": {
            "description": "Password changed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reset": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "reset"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid, used or expired token."
          },
          "429": {
            "description": "Recovery rate limit reached."
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{43}$",
                    "minLength": 43,
                    "maxLength": 43,
                    "writeOnly": true
                  },
                  "password": {
                    "type": "string",
                    "format": "password",
                    "minLength": 8,
                    "maxLength": 256,
                    "writeOnly": true
                  }
                },
                "required": [
                  "token",
                  "password"
                ]
              }
            }
          }
        },
        "security": []
      }
    },
    "/console/email-previews/{id}/message.eml": {
      "get": {
        "summary": "Download or view an email preview",
        "description": "Open a safe workspace copy of a receipt, usage notice or invitation. Account verification and recovery messages are private, and invitation codes are omitted from workspace copies.",
        "tags": [
          "Accounts"
        ],
        "responses": {
          "200": {
            "description": "RFC 822 attachment by default, or inline HTML when format=html.",
            "content": {
              "message/rfc822": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "Workspace owner required."
          },
          "404": {
            "description": "Message unavailable."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "html"
              ]
            },
            "description": "Use html to display the safe HTML preview inline. Omit the parameter to download an .eml attachment."
          }
        ]
      }
    },
    "/auth/signup": {
      "post": {
        "summary": "Register a workspace owner",
        "description": "Create an account, a workspace and its first project with zero credits. The server queues a six-digit email verification code valid for ten minutes. Verify the mailbox, then sign in. Processing requires purchased credits.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Credentials"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Account created. Email verification is required before the server issues a session.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "project": {
                      "type": "string"
                    },
                    "welcome_credits": {
                      "type": "integer",
                      "const": 0
                    },
                    "verification_required": {
                      "type": "boolean",
                      "const": true
                    },
                    "delivery": {
                      "type": "string",
                      "enum": [
                        "local-file",
                        "local-smtp"
                      ],
                      "description": "Local file or SMTP capture in development. Omitted when external email delivery is configured."
                    }
                  },
                  "required": [
                    "project",
                    "welcome_credits",
                    "verification_required"
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too many registrations. Retry-After is a delay in seconds."
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "409": {
            "description": "An account already uses the address."
          }
        },
        "security": [],
        "tags": [
          "Authentication"
        ]
      }
    },
    "/auth/email/resend": {
      "post": {
        "summary": "Resend the email verification code",
        "description": "Request another copy of the active verification code. An unverified account is eligible again 60 seconds after its previous delivery. A new code is created when the previous one has expired.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 254
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Request accepted. The response is identical for known and unknown addresses.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "accepted": {
                      "type": "boolean",
                      "const": true
                    },
                    "delivery": {
                      "type": "string",
                      "enum": [
                        "local-file",
                        "local-smtp"
                      ],
                      "description": "Local file or SMTP capture in development. Omitted when external email delivery is configured."
                    }
                  },
                  "required": [
                    "accepted"
                  ]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "description": "Too many verification requests."
          }
        }
      }
    },
    "/auth/email/verify": {
      "post": {
        "summary": "Verify the account email address",
        "description": "Submit the email, six-digit verification code and current account password. Previously issued verification links accept their original token and password. The client can then call /auth/login to start a session.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "email",
                      "code",
                      "password"
                    ],
                    "properties": {
                      "email": {
                        "type": "string",
                        "format": "email",
                        "maxLength": 254
                      },
                      "code": {
                        "type": "string",
                        "pattern": "^[0-9]{6}$",
                        "writeOnly": true
                      },
                      "password": {
                        "type": "string",
                        "format": "password",
                        "minLength": 8,
                        "maxLength": 256,
                        "writeOnly": true
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "token": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9_-]{43}$",
                        "minLength": 43,
                        "maxLength": 43,
                        "writeOnly": true
                      },
                      "password": {
                        "type": "string",
                        "format": "password",
                        "minLength": 8,
                        "maxLength": 256,
                        "writeOnly": true
                      }
                    },
                    "required": [
                      "token",
                      "password"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Email verified.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "verified": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "verified"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Incorrect password or invalid, expired or already used token."
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "description": "Too many verification or credential attempts."
          }
        }
      }
    },
    "/auth/login": {
      "post": {
        "summary": "Login",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email",
                    "maxLength": 254
                  },
                  "password": {
                    "type": "string",
                    "format": "password",
                    "minLength": 8,
                    "maxLength": 256,
                    "writeOnly": true
                  },
                  "factor": {
                    "type": "string",
                    "maxLength": 64,
                    "description": "Six-digit authenticator code or an unused recovery code.",
                    "minLength": 1
                  }
                },
                "required": [
                  "email",
                  "password"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Authenticated session established for the returned project.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "project": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "project"
                  ]
                }
              }
            },
            "headers": {
              "Set-Cookie": {
                "description": "velosyll_session is an HttpOnly, SameSite=Strict cookie. Secure is enabled on HTTPS.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "202": {
            "description": "Another step is required. For verification_required, verify the email and sign in again. For mfa_required, repeat the login with factor.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "verification_required": {
                          "type": "boolean",
                          "const": true
                        },
                        "delivery": {
                          "type": "string",
                          "enum": [
                            "local-file",
                            "local-smtp"
                          ],
                          "description": "Local file or SMTP capture in development. Omitted when external email delivery is configured."
                        }
                      },
                      "required": [
                        "verification_required"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "mfa_required": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "mfa_required"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Credentials or second factor not accepted."
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "429": {
            "description": "Too many sign-in attempts. Retry-After is a delay in seconds."
          }
        },
        "security": [],
        "tags": [
          "Authentication"
        ]
      }
    },
    "/auth/logout": {
      "post": {
        "summary": "Logout",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "signed_out": {
                      "type": "boolean"
                    }
                  },
                  "required": ["signed_out"]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          }
        },
        "security": [],
        "tags": ["Authentication"]
      }
    },
    "/console/projects": {
      "post": {
        "summary": "Project",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectSettings"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      }
    },
    "/console/projects/{pid}/select": {
      "post": {
        "summary": "Select",
        "parameters": [
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Pid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"]
      }
    },
    "/console/keys": {
      "post": {
        "summary": "Create Key",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KeyIn"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Project key secret is shown once.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedProjectKey"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      }
    },
    "/console/keys/{kid}": {
      "delete": {
        "summary": "Revoke",
        "parameters": [
          {
            "name": "kid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      }
    },
    "/console/email-previews": {
      "get": {
        "summary": "List local billing receipt and invitation email previews",
        "description": "Owner-only receipt, usage alert and invitation previews, with local delivery status. Personal recovery messages belong only to the private local mailbox.",
        "parameters": [
          {
            "in": "query",
            "name": "before",
            "schema": {
              "type": "string",
              "pattern": "^[a-f0-9]{24}$"
            }
          }
        ],
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": [
          "Administration and billing"
        ],
        "responses": {
          "200": {
            "description": "Newest messages first. A null cursor marks the end.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "kind",
                          "recipient",
                          "subject",
                          "body",
                          "created"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "invitation",
                              "receipt",
                              "usage"
                            ]
                          },
                          "recipient": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "subject": {
                            "type": "string"
                          },
                          "body": {
                            "type": "string"
                          },
                          "created": {
                            "type": "integer",
                            "description": "Unix seconds"
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "preview",
                              "queued",
                              "delivered"
                            ]
                          },
                          "delivered": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "transport": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/console/invitations": {
      "post": {
        "summary": "Invite",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Invite"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      }
    },
    "/console/invitations/{token}/accept": {
      "post": {
        "summary": "Accept",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"]
      }
    },
    "/console/quota": {
      "put": {
        "summary": "Quota",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Quota"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      }
    },
    "/console/workspace-settings": {
      "get": {
        "summary": "Read workspace settings and project storage",
        "description": "A member session can read current project media counts and bytes. Owners also receive workspace and project alert preferences, settled usage in the current UTC month, and local email previews.",
        "responses": {
          "200": {
            "description": "Settings for the active project.",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/WorkspaceSettings" }
              }
            }
          },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "$ref": "#/components/responses/Forbidden" }
        },
        "security": [{ "memberSession": [] }],
        "tags": ["Administration and billing"]
      }
    },
    "/console/workspace-settings/alerts": {
      "put": {
        "summary": "Set a monthly credit alert",
        "description": "Requires a workspace owner session. Set threshold to null to disable. An enabled rule requires a recipient address. One local preview can be recorded per scope and UTC usage month, including when the owner sets an already-reached threshold. The local service stores the preview on this computer.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/UsageAlertPreference" }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved preferences, usage, and local inbox.",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/WorkspaceSettings" }
              }
            }
          },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "$ref": "#/components/responses/Forbidden" },
          "422": { "$ref": "#/components/responses/Invalid" },
          "409": {
            "description": "Active project changed. Reload settings before saving."
          }
        },
        "security": [{ "memberSession": [] }],
        "tags": ["Administration and billing"]
      }
    },
    "/console/billing/contact": {
      "put": {
        "summary": "Save the billing contact",
        "description": "Requires a workspace owner session. Saves the local billing contact for the workspace.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/BillingContact" }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Saved contact.",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/BillingContact" }
              }
            }
          },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "$ref": "#/components/responses/Forbidden" },
          "422": { "$ref": "#/components/responses/Invalid" }
        },
        "security": [{ "memberSession": [] }],
        "tags": ["Administration and billing"]
      }
    },
    "/console/billing/payment-method": {
      "put": {
        "summary": "Save or remove the local test payment method",
        "description": "Requires a workspace owner session. Pass a local fixture ID to save a test card, or set enabled to false to remove it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "enabled": { "type": "boolean" },
                  "card_fixture": { "enum": ["visa_4242", "mastercard_4444"] }
                },
                "required": ["enabled"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Whether the test method is saved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": { "saved": { "type": "boolean" } },
                  "required": ["saved"]
                }
              }
            }
          },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "$ref": "#/components/responses/Forbidden" },
          "422": { "$ref": "#/components/responses/Invalid" },
          "409": {
            "description": "Manage payment methods through the hosted Stripe portal for this workspace."
          }
        },
        "security": [{ "memberSession": [] }],
        "tags": ["Administration and billing"]
      }
    },
    "/console/billing/checkout": {
      "post": {
        "summary": "Checkout",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Order"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/LocalCheckoutResult" }
              }
            }
          },
          "402": { "description": "Simulated payment declined." },
          "409": { "description": "A subscription is active, the request ID belongs to a different offer or payment instrument, or this workspace uses hosted checkout." },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session in local_sandbox mode. Standard development workspaces simulate purchases in a separate preview wallet. Operating credits are granted only to operator-enabled test workspaces. Reusing the request ID for the same successful offer and instrument returns the original receipt. The field card_fixture is required when method is explicitly card. Wallet methods omit card_fixture."
      }
    },
    "/console/billing/cancel": {
      "post": {
        "summary": "Cancel",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": { "type": "object", "properties": { "cancel_at_period_end": { "const": true } }, "required": ["cancel_at_period_end"] }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "409": { "description": "There is no active local subscription, or cancellation must be requested through the hosted billing portal." }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. Schedules cancellation at the end of the local wallet’s current subscription period."
      }
    },
    "/console": {
      "get": {
        "summary": "Console",
        "description": "Returns the selected project and workspace, operating balance, billing wallet, plan and recent activity. billing_preview identifies the separate local preview wallet. Owner-only invoice and credit activity lists are empty for members. The optional local test card and billing contact are visible to owners. metering_rates gives the processing units applied to purchases of either credit offer.",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/WorkspaceConsole" }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"]
      }
    },
    "/v1/transcriptions": {
      "post": {
        "summary": "Transcribe File",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_transcribe_file_v1_transcriptions_post"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Queued for local processing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Queued"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "description": "A workspace storage, transfer, daily intake, pending-job or monthly recording limit was reached. Inspect GET /v1/limits."
          },
          "413": {
            "$ref": "#/components/responses/Size"
          },
          "402": {
            "description": "At least one available workspace credit is required for new media work."
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      },
      "get": {
        "summary": "Recordings",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 100,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Recording"
                      }
                    }
                  },
                  "required": ["items"]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/transcriptions/url": {
      "post": {
        "summary": "Url Import",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/URLSource"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Queued for local processing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Queued"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "description": "A workspace storage, transfer, daily intake, pending-job or monthly recording limit was reached. Inspect GET /v1/limits."
          },
          "413": {
            "$ref": "#/components/responses/Size"
          },
          "402": {
            "description": "At least one available workspace credit is required for new media work."
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/uploads": {
      "get": {
        "summary": "List unfinished uploads",
        "description": "Lists partial uploads in the authenticated project, including the number of bytes stored.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "offset",
                          "created"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "offset": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "created": {
                            "type": "integer",
                            "description": "Unix timestamp in seconds"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": [
          "Recordings and files"
        ]
      },
      "post": {
        "summary": "Begin Upload",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadName"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "offset": {
                      "type": "integer"
                    }
                  },
                  "required": ["id", "offset"]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "description": "At least one available workspace credit is required for new media work."
          },
          "429": {
            "description": "A workspace storage, transfer, daily intake, pending-job or monthly recording limit was reached. Inspect GET /v1/limits."
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/uploads/{uid}": {
      "get": {
        "summary": "Upload State",
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "offset": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": ["id", "offset", "name"]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      },
      "patch": {
        "summary": "Append Upload",
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Uid"
            }
          },
          {
            "name": "upload-offset",
            "in": "header",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "title": "Upload-Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "offset": {
                      "type": "integer"
                    }
                  },
                  "required": ["id", "offset"]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          },
          "413": {
            "$ref": "#/components/responses/Size"
          },
          "402": {
            "description": "At least one available workspace credit is required for new media work."
          },
          "429": {
            "description": "A workspace storage, transfer, daily intake, pending-job or monthly recording limit was reached. Inspect GET /v1/limits."
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"],
        "requestBody": {
          "required": true,
          "description": "Raw audio bytes, up to 4 MiB per chunk. Read the committed offset after a conflict.",
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        }
      },
      "delete": {
        "summary": "Remove Upload",
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Uid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/uploads/{uid}/finish": {
      "post": {
        "summary": "Finish Upload",
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Uid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourceSettings"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Queued for local processing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Queued"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "description": "A workspace storage, transfer, daily intake, pending-job or monthly recording limit was reached. Inspect GET /v1/limits."
          },
          "402": {
            "description": "At least one available workspace credit is required for media admission. Repeating finish on an existing job returns its original ID."
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/transcriptions/{jid}/source": {
      "get": {
        "summary": "Download recording source",
        "description": "Downloads the source of a saved recording in the authenticated project. Finished live recordings use WAV.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "206": {
            "description": "Byte range of the file."
          },
          "404": {
            "description": "The file is unavailable in this project."
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": [
          "Recordings and files"
        ],
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/transcriptions/{jid}": {
      "get": {
        "summary": "Recording",
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Jid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Recording"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      },
      "patch": {
        "summary": "Edit",
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Jid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Edit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      },
      "delete": {
        "summary": "Remove Recording",
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Jid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/transcriptions/{jid}/audio": {
      "get": {
        "summary": "Audio",
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Jid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Mono WAV audio.",
            "content": {
              "audio/wav": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "206": {
            "description": "A satisfiable byte range of the WAV file.",
            "content": {
              "audio/wav": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/transcriptions/{jid}/versions": {
      "get": {
        "summary": "Versions",
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Jid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/transcriptions/{jid}/share": {
      "post": {
        "summary": "Share",
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Jid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      },
      "delete": {
        "summary": "Unshare",
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Jid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/shared/{token}": {
      "get": {
        "summary": "Public Transcript",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/transcriptions/{jid}/export": {
      "get": {
        "summary": "Export",
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Jid"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "enum": ["txt", "vtt", "srt", "json"],
              "type": "string",
              "default": "txt",
              "title": "Format"
            }
          },
          {
            "name": "original",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Original"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Attachment in the selected format.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Recording"
                }
              },
              "text/vtt": {
                "schema": {
                  "type": "string"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/capabilities": {
      "get": {
        "summary": "Capabilities",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "speech_recognition": {
                      "type": "object",
                      "properties": {
                        "file": {
                          "type": "boolean"
                        },
                        "live": {
                          "type": "boolean"
                        },
                        "live_format": {
                          "type": "string"
                        },
                        "region": {
                          "type": "string"
                        },
                        "languages": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/LanguageCode"
                          }
                        }
                      },
                      "required": [
                        "file",
                        "live",
                        "live_format",
                        "region",
                        "languages"
                      ]
                    },
                    "language_tools": {
                      "$ref": "#/components/schemas/LanguageCapabilities"
                    }
                  },
                  "required": ["speech_recognition", "language_tools"]
                }
              }
            }
          }
        },
        "security": [],
        "tags": ["Service and reporting"],
        "description": "JSON capabilities for this installation. Recognition lists supported language codes, and language_tools provides available translation directions by language, available voices, per-preset controls and source-note presets. Quality measurements are supplied by /v1/evidence."
      }
    },
    "/v1/translate": {
      "post": {
        "summary": "Translate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Translation"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TranslationResult"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Payment"
          },
          "429": {
            "$ref": "#/components/responses/Limit"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Language tools"],
        "description": "Translates up to 6,000 characters locally. Automatic quality selects a model by the source and target languages. Balanced and thorough are explicit choices. The response contains the translation and language codes. Source and target may match."
      }
    },
    "/v1/speech": {
      "post": {
        "summary": "Speech",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Speech"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Generated downloadable speech. Headerless PCM is 24 kHz, mono, signed 16-bit little endian. Ogg carries Opus and AAC uses ADTS.",
            "content": {
              "audio/wav": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/mpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/flac": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/ogg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/aac": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-Audio-Origin": {
                "schema": {
                  "const": "machine-generated"
                }
              },
              "Content-Disposition": {
                "schema": {
                  "type": "string"
                },
                "example": "attachment; filename=\"speech.ogg\""
              },
              "X-Audio-Format": {
                "description": "Raw PCM only.",
                "schema": {
                  "const": "s16le"
                }
              },
              "X-Sample-Rate": {
                "description": "Raw PCM only, in Hz.",
                "schema": {
                  "const": "24000"
                }
              },
              "X-Channels": {
                "description": "Raw PCM only.",
                "schema": {
                  "const": "1"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Payment"
          },
          "429": {
            "$ref": "#/components/responses/Limit"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Language tools"],
        "description": "Choose a stock voice and its supported speed and style from /v1/capabilities. A project voice ID accepts up to 500 characters using the default delivery. Granted voices accept the 60 codes in /v1/voices/terms. VoxCPM2 conditions synthesis directly on the granted reference in 27 languages. In the other 33, OpenVoice V2 transfers its timbre to locally synthesized target-language speech. Native-speaker assessments of speaker similarity have not been performed."
      }
    },
    "/v1/notes": {
      "post": {
        "summary": "Notes",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Notes"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotesResult"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Payment"
          },
          "429": {
            "$ref": "#/components/responses/Limit"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Language tools"],
        "description": "Produces source-grounded notes and exact evidence spans. Summary returns text; actions, key points, quotations and entities return lists. Quotes and entities are pattern-based. The source language and task select direct inference, a local translation step or lexical ranking. Speaker summaries and translation are separate recording-analysis presets."
      }
    },
    "/public/billing/wompi/prices": {
      "get": {
        "summary": "View current Colombian peso prices",
        "tags": ["Administration and billing"],
        "security": [],
        "description": "New purchases use the daily TRM certified by Colombia’s Superintendencia Financiera. An existing subscription keeps the amount authorized at signup. The payable amount is rounded to the nearest whole peso and expressed in centavos. This read does not reserve a price or create an order.",
        "responses": {
          "200": { "description": "Current rate and converted offer prices.", "content": { "application/json": { "schema": {
            "type": "object", "required": ["rate", "rate_date", "offers"], "properties": {
              "rate": { "$ref": "#/components/schemas/WompiRate" }, "rate_date": { "type": "string", "format": "date" },
              "offers": { "type": "object", "required": ["pack", "studio"], "properties": {
                "pack": { "$ref": "#/components/schemas/WompiPrice" }, "studio": { "$ref": "#/components/schemas/WompiPrice" }
              } }
            }
          } } } },
          "503": { "description": "The official rate for today could not be verified." }
        }
      }
    },
    "/console/wompi/quote": {
      "post": {
        "summary": "Reserve the peso amount for one purchase",
        "tags": ["Administration and billing"],
        "security": [{ "memberSession": [] }],
        "description": "Requires a workspace owner with Wompi enabled. Use a unique request_id per intended purchase. Retrying it within the same workspace for the same pending offer returns the original quote until expiry. Quotes expire after 30 minutes or at midnight in Colombia, whichever comes first. Review a fresh quote before submitting a new purchase. A Studio enrollment uses this quote to fix the monthly COP amount until cancellation. A credit pack is a one-time purchase.",
        "requestBody": { "required": true, "content": { "application/json": { "schema": {
          "type": "object", "additionalProperties": false, "required": ["offer", "request_id"], "properties": {
            "offer": { "enum": ["pack", "studio"] }, "request_id": { "type": "string", "minLength": 10, "maxLength": 100 }
          }
        } } } },
        "responses": {
          "200": { "description": "Reserved price and order ID.", "content": { "application/json": { "schema": {
            "allOf": [{ "$ref": "#/components/schemas/WompiPrice" }, { "type": "object", "required": ["id", "offer", "rate", "rate_date", "expires"], "properties": {
              "id": { "$ref": "#/components/schemas/WompiOrderId" }, "offer": { "enum": ["pack", "studio"] }, "rate": { "$ref": "#/components/schemas/WompiRate" },
              "rate_date": { "type": "string", "format": "date" }, "expires": { "type": "integer", "description": "Expiry in Unix seconds." }
            } }]
          } } } },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "description": "Requires the owner of a Wompi-enabled workspace." },
          "409": { "description": "The request ID refers to a closed quote, a different offer or a different environment." },
          "422": { "$ref": "#/components/responses/Invalid" },
          "503": { "description": "The official rate for today could not be verified." }
        }
      }
    },
    "/console/wompi/checkout": {
      "post": {
        "summary": "Open Wompi checkout for a reviewed quote",
        "tags": ["Administration and billing"],
        "security": [{ "memberSession": [] }],
        "description": "Send a reviewed credit pack quote ID. The server signs the stored order reference, COP amount and expiration. Retrying a pending quote returns a URL for the same order. Payment details are entered on Wompi.",
        "requestBody": { "required": true, "content": { "application/json": { "schema": {
          "type": "object", "additionalProperties": false, "required": ["quote_id"], "properties": { "quote_id": { "$ref": "#/components/schemas/WompiOrderId" } }
        } } } },
        "responses": {
          "200": { "description": "Hosted checkout URL.", "content": { "application/json": { "schema": {
            "type": "object", "required": ["url", "mode", "manual_return"], "properties": {
              "url": { "type": "string", "format": "uri" }, "mode": { "enum": ["wompi_test", "wompi_live"] },
              "manual_return": { "type": "boolean", "description": "True for a loopback sandbox. Keep the order screen open and reconcile the transaction ID shown in the hosted checkout." }
            }
          } } } },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "description": "Requires the owner of a Wompi-enabled workspace." },
          "404": { "description": "Quote not found in this workspace and environment." },
          "409": { "description": "The quote has closed or an active subscription conflicts with the purchase." },
          "422": { "$ref": "#/components/responses/Invalid" }
        }
      }
    },
    "/console/wompi/enrollment": {
      "get": {
        "summary": "Get the Wompi enrollment documents",
        "tags": ["Administration and billing"],
        "security": [{"memberSession": []}],
        "description": "Show both documents before the owner authorizes a monthly payment.",
        "responses": {
          "200": {
            "description": "Wompi public key and current merchant consent documents.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "public_key": {"type": "string", "minLength": 1},
                    "terms": {
                      "type": "object",
                      "properties": {"url": {"type": "string", "format": "uri"}, "token": {"type": "string", "minLength": 1}},
                      "required": ["url", "token"]
                    },
                    "personal_data": {
                      "type": "object",
                      "properties": {"url": {"type": "string", "format": "uri"}, "token": {"type": "string", "minLength": 1}},
                      "required": ["url", "token"]
                    }
                  },
                  "required": ["public_key", "terms", "personal_data"]
                }
              }
            }
          },
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "403": {"description": "Requires the owner of a Wompi-enabled workspace."}
        }
      }
    },
    "/console/wompi/card-frame": {
      "get": {
        "summary": "Open hosted card setup",
        "tags": ["Administration and billing"],
        "security": [{"memberSession": []}],
        "description": "Embed this page in the workspace checkout for the owner to enter the card directly on Wompi.",
        "responses": {
          "200": {"description": "Card setup frame.", "content": {"text/html": {"schema": {"type": "string"}}}},
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "403": {"description": "Requires the owner of a Wompi-enabled workspace."}
        }
      }
    },
    "/console/wompi/subscription": {
      "get": {
        "summary": "View the workspace Wompi subscription",
        "tags": ["Administration and billing"],
        "security": [{"memberSession": []}],
        "description": "Returns the accepted COP amount and original signup rate even when daily quotes change.",
        "responses": {
          "200": {
            "description": "Subscription state for the workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {"subscription": {"anyOf": [{"$ref": "#/components/schemas/WompiSubscription"}, {"type": "null"}]}},
                  "required": ["subscription"]
                }
              }
            }
          },
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "403": {"description": "Requires the owner of a Wompi-enabled workspace."}
        }
      },
      "post": {
        "summary": "Authorize a fixed monthly Studio charge",
        "tags": ["Administration and billing"],
        "security": [{"memberSession": []}],
        "description": "Use a current Studio quote, affirmative consent to the monthly amount, the card token and both Wompi acceptance tokens. The worker collects the authorized COP amount until canceled. A pending transaction grants credits only after approval.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "quote_id": {"$ref": "#/components/schemas/WompiOrderId"},
                  "cop_cents": {"type": "integer", "minimum": 100, "multipleOf": 100},
                  "consent": {"const": true},
                  "card_token": {"type": "string", "minLength": 1},
                  "acceptance_token": {"type": "string", "minLength": 1},
                  "accept_personal_auth": {"type": "string", "minLength": 1}
                },
                "required": ["quote_id", "cop_cents", "consent", "card_token", "acceptance_token", "accept_personal_auth"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Subscription state for the workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {"subscription": {"anyOf": [{"$ref": "#/components/schemas/WompiSubscription"}, {"type": "null"}]}},
                  "required": ["subscription"]
                }
              }
            }
          },
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "403": {"description": "Requires the owner of a Wompi-enabled workspace."},
          "409": {"description": "The operation conflicts with the current quote, subscription or payment."}
        }
      }
    },
    "/console/wompi/subscription/cancel": {
      "post": {
        "summary": "Cancel Wompi automatic renewal",
        "tags": ["Administration and billing"],
        "security": [{"memberSession": []}],
        "description": "Stops future debits. A payment already submitted can still settle. Paid time is preserved.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {"id": {"$ref": "#/components/schemas/WompiOrderId"}},
                "required": ["id"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Subscription state for the workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {"subscription": {"anyOf": [{"$ref": "#/components/schemas/WompiSubscription"}, {"type": "null"}]}},
                  "required": ["subscription"]
                }
              }
            }
          },
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "403": {"description": "Requires the owner of a Wompi-enabled workspace."},
          "409": {"description": "The operation conflicts with the current quote, subscription or payment."}
        }
      }
    },
    "/console/wompi/subscription/reconcile": {
      "post": {
        "summary": "Check an unresolved subscription charge",
        "tags": ["Administration and billing"],
        "security": [{"memberSession": []}],
        "description": "Read the canonical Wompi transaction and apply it to its matching workspace and subscription. This operation cannot initiate a debit.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {"$ref": "#/components/schemas/WompiOrderId"},
                  "transaction_id": {"$ref": "#/components/schemas/WompiTransactionId"}
                },
                "required": ["id", "transaction_id"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Subscription state for the workspace.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {"subscription": {"anyOf": [{"$ref": "#/components/schemas/WompiSubscription"}, {"type": "null"}]}},
                  "required": ["subscription"]
                }
              }
            }
          },
          "401": {"$ref": "#/components/responses/Unauthorized"},
          "403": {"description": "Requires the owner of a Wompi-enabled workspace."},
          "409": {"description": "The operation conflicts with the current quote, subscription or payment."}
        }
      }
    },
    "/console/wompi/return/{orderId}": {
      "get": {
        "summary": "Return the buyer from Wompi to their workspace",
        "tags": ["Administration and billing"],
        "security": [],
        "description": "A browser redirect to the order screen. When Wompi supplies a valid transaction ID, the redirect passes it as a hint for server-side verification. A redirect alone does not grant credits.",
        "parameters": [
          { "in": "path", "name": "orderId", "required": true, "schema": { "$ref": "#/components/schemas/WompiOrderId" } },
          { "in": "query", "name": "id", "schema": { "$ref": "#/components/schemas/WompiTransactionId" } }
        ],
        "responses": {
          "303": { "description": "Continue to the studio order status screen.", "headers": { "Location": { "schema": { "type": "string", "format": "uri-reference" } } } },
          "422": { "$ref": "#/components/responses/Invalid" }
        }
      }
    },
    "/console/wompi/orders/{orderId}": {
      "get": {
        "summary": "Read a Wompi order and its local receipt",
        "tags": ["Administration and billing"],
        "security": [{ "memberSession": [] }],
        "description": "The owner may poll a pending order. The optional transaction ID from the hosted return or the local sandbox payment result lets Velosyll reconcile the amount, currency and order reference against the provider before fulfilling a payment.",
        "parameters": [
          { "in": "path", "name": "orderId", "required": true, "schema": { "$ref": "#/components/schemas/WompiOrderId" } },
          { "in": "query", "name": "transaction_id", "schema": { "$ref": "#/components/schemas/WompiTransactionId" } }
        ],
        "responses": {
          "200": { "description": "Current workspace order.", "content": { "application/json": { "schema": {
            "type": "object", "required": ["status", "offer", "invoice", "livemode", "manual_return"], "properties": {
              "status": { "enum": ["pending", "paid", "failed", "expired", "voided"] }, "offer": { "enum": ["pack", "studio"] },
              "invoice": { "type": ["string", "null"] }, "livemode": { "type": "boolean" },
              "manual_return": { "type": "boolean", "description": "True when the sandbox cannot return to the local host." },
              "checkout_url": { "type": "string", "format": "uri", "description": "Present for an open, started, unexpired local sandbox order with no known transaction. Opens the same checkout from a separate tab." }
            }
          } } } },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "description": "Requires the owner of a Wompi-enabled workspace." },
          "404": { "description": "Order not found in this workspace and environment." },
          "409": { "description": "The provider transaction does not match the order." },
          "422": { "$ref": "#/components/responses/Invalid" },
          "503": { "description": "Wompi could not confirm the transaction." }
        }
      }
    },
    "/console/wompi/webhook": {
      "post": {
        "summary": "Receive signed Wompi payment updates",
        "tags": ["Administration and billing"],
        "security": [],
        "description": "Provider callback authenticated by a Wompi event checksum supplied in the header or signature.checksum. The environment must match the configured merchant. For transaction.updated, the signed fields must include transaction.id. Provider retries reconcile the canonical transaction without crediting a purchase twice.",
        "parameters": [{ "in": "header", "name": "X-Event-Checksum", "description": "May be supplied as signature.checksum in the JSON body.", "schema": { "type": "string", "pattern": "^[A-Fa-f0-9]{64}$" } }],
        "requestBody": { "required": true, "content": { "application/json": { "schema": {
          "type": "object", "required": ["event", "data", "environment", "timestamp", "signature"], "properties": {
            "event": { "type": "string", "examples": ["transaction.updated"] },
            "data": { "type": "object", "properties": { "transaction": { "type": "object", "properties": { "id": { "$ref": "#/components/schemas/WompiTransactionId" } } } } },
            "environment": { "enum": ["prod", "test"] }, "timestamp": { "type": "integer" },
            "signature": { "type": "object", "required": ["properties"], "properties": {
              "properties": { "type": "array", "minItems": 1, "maxItems": 64, "items": { "type": "string" } },
              "checksum": { "type": "string", "pattern": "^[A-Fa-f0-9]{64}$" }
            } }
          }
        } } } },
        "responses": {
          "200": { "description": "Acknowledged.", "content": { "application/json": { "schema": {
            "type": "object", "required": ["received"], "properties": { "received": { "const": true } }
          } } } },
          "400": { "description": "Event signature or environment rejected." },
          "403": { "description": "Wompi billing is disabled." },
          "409": { "description": "Payment conflicts with the stored order." },
          "422": { "$ref": "#/components/responses/Invalid" },
          "503": { "description": "Payment status could not yet be verified. The event can be retried." }
        }
      }
    },
    "/console/creem/checkout": {
      "post": {
        "summary": "Open a Creem test card checkout in USD",
        "tags": ["Administration and billing"],
        "security": [{ "memberSession": [] }],
        "requestBody": { "required": true, "content": { "application/json": {
          "schema": { "type": "object", "additionalProperties": false, "properties": {
            "offer": { "enum": ["pack", "studio"] }, "method": { "const": "card" }, "request_id": { "type": "string", "minLength": 10, "maxLength": 100 }
          }, "required": ["offer", "request_id"] }
        } } },
        "responses": {
          "200": { "description": "Hosted test checkout.", "content": { "application/json": { "schema": {
            "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "mode": { "const": "creem_test" }, "order_id": { "type": "string" } }, "required": ["url", "mode", "order_id"]
          } } } },
          "403": { "description": "Requires an owner in an enabled development workspace." },
          "409": { "description": "Order or subscription conflict." },
          "502": { "description": "Could not establish a matching fixed-price checkout." }
        }
      }
    },
    "/console/creem/orders/{orderId}": {
      "get": {
        "summary": "Read a Creem test order belonging to the current workspace",
        "tags": ["Administration and billing"],
        "security": [{ "memberSession": [] }],
        "parameters": [{ "name": "orderId", "in": "path", "required": true, "schema": { "type": "string" } }],
        "responses": {
          "200": { "description": "Order status and local purchase record.", "content": { "application/json": { "schema": {
            "type": "object", "properties": { "status": { "enum": ["pending", "paid", "failed", "expired"] }, "offer": { "enum": ["pack", "studio"] }, "invoice": { "type": ["string", "null"] }, "livemode": { "const": false } }, "required": ["status", "offer", "invoice", "livemode"]
          } } } },
          "404": { "description": "No matching order." }
        }
      }
    },
    "/console/creem/webhook": {
      "post": {
        "summary": "Receive a signed Creem test billing event",
        "tags": ["Administration and billing"],
        "security": [],
        "parameters": [{ "in": "header", "name": "creem-signature", "required": true, "schema": { "type": "string" } }],
        "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "required": ["id", "eventType", "object"] } } } },
        "responses": {
          "200": { "description": "Event received." },
          "400": { "description": "Invalid event, amount or signature." },
          "503": { "description": "Dependent checkout event has not arrived yet." }
        }
      }
    },
    "/console/stripe/checkout": {
      "post": {
        "summary": "Start hosted Stripe Checkout",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Checkout"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" }, "mode": { "enum": ["stripe_test", "stripe_live"] } }, "required": ["url", "mode"] }
              }
            }
          },
          "409": { "description": "Order conflict or requested method unavailable." },
          "502": { "description": "Stripe Checkout could not start or the session environment did not match the configuration." },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session and a hosted billing mode. Send a new request_id for each purchase and reuse it when retrying that purchase. The returned URL opens Stripe Checkout. Apple Pay and Google Pay use card-mode Checkout on eligible devices. PayPal requires a merchant account with PayPal enabled. Credit packs settle on a paid Checkout event and Studio credits settle on paid subscription invoices."
      }
    },
    "/console/stripe/orders/{orderId}": {
      "get": {
        "summary": "Read hosted checkout status",
        "description": "Read the payment state recorded for an order in the current workspace. New hosted checkout success URLs include this order ID. A pending response can be polled without initiating another charge. A paid response includes the receipt for the credit pack or initial subscription invoice.",
        "security": [{ "memberSession": [] }],
        "parameters": [{ "name": "orderId", "in": "path", "required": true, "schema": { "type": "string" } }],
        "responses": {
          "200": { "description": "Workspace order status.", "content": { "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "status": { "enum": ["pending", "paid", "failed", "expired"] },
                "offer": { "enum": ["pack", "studio"] },
                "invoice": { "type": ["string", "null"], "description": "Local receipt ID when the purchase settles." },
                "livemode": { "type": "boolean" }
              },
              "required": ["status", "offer", "invoice", "livemode"]
            }
          } } },
          "401": { "$ref": "#/components/responses/Unauthorized" },
          "403": { "description": "A workspace owner session is required." },
          "404": { "description": "No matching order in this workspace and billing environment." }
        },
        "tags": ["Administration and billing"]
      }
    },
    "/console/billing/invoices/{id}/pdf": {
      "get": {
        "summary": "Download the payment receipt as a PDF",
        "description": "Use the invoice ID returned for a settled purchase or listed in the console. The owner can download receipts for the current workspace, wallet and billing environment.",
        "tags": [
          "Administration and billing"
        ],
        "security": [
          {
            "memberSession": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "PDF receipt attachment.",
            "headers": {
              "Content-Disposition": {
                "description": "Attachment with a suggested filename.",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string",
                  "const": "private, no-store"
                }
              }
            },
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "Workspace owner session required."
          },
          "404": {
            "description": "No matching invoice in this workspace and billing environment."
          }
        }
      }
    },
    "/console/stripe/portal": {
      "post": {
        "summary": "Open the hosted Stripe billing portal",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" } }, "required": ["url"] }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "502": { "description": "The processor could not create the billing customer or open its portal." }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session and a hosted billing mode. Creates the workspace customer on first use and returns a short-lived Stripe portal URL. The owner can add a payment method before making a purchase and manage subscriptions according to the merchant’s portal configuration."
      }
    },
    "/v1/files": {
      "get": {
        "summary": "Files",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      },
      "post": {
        "summary": "Store File",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_store_file_v1_files_post"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "bytes": {
                      "type": "integer"
                    }
                  },
                  "required": ["id", "bytes"]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "$ref": "#/components/responses/Size"
          },
          "402": {
            "description": "At least one available workspace credit is required for new media work."
          },
          "429": {
            "description": "A workspace storage, transfer, daily intake, pending-job or monthly recording limit was reached. Inspect GET /v1/limits."
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/files/{fid}/content": {
      "get": {
        "summary": "Download a reusable file",
        "description": "Downloads the original file from the authenticated project as an attachment.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "206": {
            "description": "Byte range of the file."
          },
          "404": {
            "description": "The file is unavailable in this project."
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": [
          "Recordings and files"
        ],
        "parameters": [
          {
            "name": "fid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/files/{fid}": {
      "get": {
        "summary": "File Info",
        "parameters": [
          {
            "name": "fid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Fid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      },
      "delete": {
        "summary": "Delete File",
        "parameters": [
          {
            "name": "fid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Fid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/files/{fid}/transcribe": {
      "post": {
        "summary": "Reuse",
        "parameters": [
          {
            "name": "fid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Fid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourceSettings"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Queued for local processing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Queued"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "description": "A workspace storage, transfer, daily intake, pending-job or monthly recording limit was reached. Inspect GET /v1/limits."
          },
          "402": {
            "description": "At least one available workspace credit is required for new media work."
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/transcriptions/{jid}/rerun": {
      "post": {
        "summary": "Rerun",
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Jid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourceSettings"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Queued for local processing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Queued"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "description": "A workspace storage, transfer, daily intake, pending-job or monthly recording limit was reached. Inspect GET /v1/limits."
          },
          "402": {
            "description": "At least one available workspace credit is required for new media work."
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/transcriptions/{jid}/metadata": {
      "put": {
        "summary": "Metadata",
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Jid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Meta"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      },
      "get": {
        "summary": "Read recording metadata",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string"
                    },
                    "folder": {
                      "type": "string"
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": ["title", "folder", "tags"]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "jid",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/library": {
      "get": {
        "summary": "Search",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "",
              "title": "Q"
            }
          },
          {
            "name": "folder",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "",
              "title": "Folder"
            }
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "",
              "title": "Tag"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/transcriptions/{jid}/speakers": {
      "get": {
        "summary": "Speakers",
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Jid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/transcriptions/{jid}/speakers/{label}": {
      "put": {
        "summary": "Name Speaker",
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Jid"
            }
          },
          {
            "name": "label",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Label"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpeakerName"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      }
    },
    "/v1/voices/terms": {
      "get": {
        "summary": "Terms",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string"
                    },
                    "personal": {
                      "type": "string"
                    },
                    "synthetic-demo": {
                      "type": "string"
                    },
                    "usage": {
                      "type": "string"
                    },
                    "personal_enrollment": {
                      "type": "boolean"
                    },
                    "languages": {
                      "type": "array",
                      "uniqueItems": true,
                      "items": {
                        "$ref": "#/components/schemas/LanguageCode"
                      },
                      "description": "All language codes eligible for project-granted synthesis on this installation."
                    }
                  },
                  "required": [
                    "version",
                    "personal",
                    "synthetic-demo",
                    "usage",
                    "personal_enrollment",
                    "languages"
                  ]
                }
              }
            }
          }
        },
        "security": [],
        "tags": ["Voice grants"],
        "description": "Returns the terms version and rights text for each enrollment type, whether personal enrollment is enabled, and eligible synthesis languages. Granted voices accept the 60 codes in /v1/voices/terms. VoxCPM2 conditions synthesis directly on the granted reference in 27 languages. In the other 33, OpenVoice V2 transfers its timbre to locally synthesized target-language speech. Native-speaker assessments of speaker similarity have not been performed."
      }
    },
    "/v1/voices": {
      "get": {
        "summary": "Voices",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "voices": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/VoiceGrant"
                      }
                    }
                  },
                  "required": ["voices"]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Voice grants"],
        "description": "Available to a loopback client when local custom voices are enabled. "
      },
      "post": {
        "summary": "Enroll",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Enrollment"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/VoiceGrant"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "spoken_challenge": {
                          "type": ["string", "null"]
                        },
                        "challenge_expires": {
                          "type": ["integer", "null"]
                        }
                      },
                      "required": ["spoken_challenge", "challenge_expires"]
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Voice grants"],
        "description": "Available to a loopback client when local custom voices are enabled. "
      }
    },
    "/v1/voices/{voice_id}/consent": {
      "post": {
        "summary": "Consent",
        "parameters": [
          {
            "name": "voice_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Voice Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_consent_v1_voices__voice_id__consent_post"
              }
            }
          }
        },
        "responses": {
          "402": { "$ref": "#/components/responses/Payment" },
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": ["id", "status"]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "413": {
            "$ref": "#/components/responses/Size"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Voice grants"],
        "description": "Available to a loopback client when local custom voices are enabled. Verification requires at least four available credits. It costs one credit per started second of verified reference audio, up to 25 credits."
      }
    },
    "/v1/voices/{voice_id}": {
      "delete": {
        "summary": "Revoke",
        "parameters": [
          {
            "name": "voice_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Voice Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": ["id", "status"]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Voice grants"],
        "description": "Available to a loopback client when local custom voices are enabled. "
      },
      "get": {
        "summary": "Read project voice metadata",
        "description": "Returns grant metadata, rights and state. Available only in the local voice workspace. The private reference waveform and consent recording are excluded.",
        "tags": ["Custom voices"],
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Read project voice metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoiceGrant"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "voice_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/voices/{voice_id}/speech": {
      "post": {
        "summary": "Speak",
        "parameters": [
          {
            "name": "voice_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Voice Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Utterance"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Mono WAV audio.",
            "content": {
              "audio/wav": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-Audio-Origin": {
                "schema": {
                  "const": "machine-generated"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "402": {
            "$ref": "#/components/responses/Payment"
          },
          "429": {
            "$ref": "#/components/responses/Limit"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Voice grants"],
        "description": "Generates mono WAV for an active, unexpired project voice grant from a loopback client with local custom voices enabled. Granted voices accept the 60 codes in /v1/voices/terms. VoxCPM2 conditions synthesis directly on the granted reference in 27 languages. In the other 33, OpenVoice V2 transfers its timbre to locally synthesized target-language speech. Native-speaker assessments of speaker similarity have not been performed."
      }
    },
    "/console/organization/keys": {
      "get": {
        "summary": "Org Keys",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/OrganizationKeyMetadata"
                      }
                    }
                  },
                  "required": ["items"]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      },
      "post": {
        "summary": "Create Org Key",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrganizationKey"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Issued organization credential, shown once.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedOrganizationKey"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "A workspace owner issues an organization credential. organization:read is the default and permits reporting. project-keys:manage also permits project-key creation and revocation for projects in this workspace."
      }
    },
    "/console/organization/keys/{kid}": {
      "delete": {
        "summary": "Revoke Org Key",
        "parameters": [
          {
            "name": "kid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      }
    },
    "/v1/organization": {
      "get": {
        "summary": "Org",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "organizationKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Service and reporting"],
        "description": "Requires a workspace owner session or an organization reporting key."
      }
    },
    "/v1/organization/projects": {
      "get": {
        "summary": "Projects",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "organizationKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Service and reporting"],
        "description": "Requires a workspace owner session or an organization reporting key."
      }
    },
    "/v1/organization/balance": {
      "get": {
        "summary": "Balance",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/BillingWallet" }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "organizationKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Service and reporting"],
        "description": "Requires a workspace owner session or an organization reporting key."
      }
    },
    "/v1/organization/usage": {
      "get": {
        "summary": "Aggregate",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Start"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 17179869184,
              "title": "End"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "organizationKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Service and reporting"],
        "description": "Requires a workspace owner session or an organization reporting key."
      }
    },
    "/v1/organization/invoices": {
      "get": {
        "summary": "Invoice Rows",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/BillingInvoice" } } }, "required": ["items"] }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "organizationKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Service and reporting"],
        "description": "Requires a workspace owner session or an organization reporting key."
      }
    },
    "/v1/organization/export": {
      "get": {
        "summary": "Export Csv",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Start"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 17179869184,
              "title": "End"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Usage CSV attachment.",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "organizationKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Service and reporting"],
        "description": "Requires a workspace owner session or an organization reporting key."
      }
    },
    "/v1/usage": {
      "get": {
        "summary": "List recent project processing requests",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 100,
              "title": "Limit",
              "minimum": 1,
              "maximum": 1000
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Offset",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Processing requests for the selected project, newest first.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProcessingUsageEntry"
                      }
                    }
                  },
                  "required": [
                    "items"
                  ]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": [
          "Service and reporting"
        ]
      }
    },
    "/v1/limits": {
      "get": {
        "summary": "Limits",
        "responses": {
          "200": {
            "description": "Current project quota, credit ceiling, processing rates and installation capacities, including the idle time limit on live input.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/StreamCapacity"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "region": {
                          "type": "string"
                        },
                        "quota": {
                          "type": "integer"
                        },
                        "metering_rates": { "$ref": "#/components/schemas/MeteringRates" },
                        "monthly_org_limit": {
                          "type": ["integer", "null"]
                        },
                        "max_file_bytes": {
                          "type": "integer"
                        },
                        "max_file_seconds": {
                          "type": "integer"
                        },
                        "max_workspace_media_bytes": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "max_workspace_media_items": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "max_workspace_open_uploads": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "max_daily_workspace_ingress_bytes": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "max_daily_workspace_media_writes": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "max_daily_workspace_file_jobs": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "max_workspace_incoming_transfers": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "max_installation_incoming_transfers": {
                          "type": "integer",
                          "minimum": 1
                        }
                      },
                      "required": ["metering_rates"]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Service and reporting"]
      }
    },
    "/console/organization/budget": {
      "put": {
        "summary": "Set Budget",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Budget"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      }
    },
    "/console/project": {
      "put": {
        "summary": "Rename Project",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectSettings"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      }
    },
    "/console/organization": {
      "put": {
        "summary": "Rename Org",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectSettings"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      }
    },
    "/console/members": {
      "put": {
        "summary": "Member Role",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleChange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      }
    },
    "/console/members/{email}": {
      "delete": {
        "summary": "Remove Member",
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Email"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      }
    },
    "/v1/models": {
      "get": {
        "summary": "Models",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "file": {
                      "description": "Model used in the original reference run. See /v1/evidence items[].m4_profile for per-language routing.",
                      "type": "string"
                    },
                    "live": {
                      "description": "Model used in the original reference run. See /v1/evidence items[].m4_profile for per-language routing.",
                      "type": "string"
                    },
                    "language_assets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "measurement_url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "file",
                    "live",
                    "language_assets",
                    "measurement_url"
                  ]
                }
              }
            }
          }
        },
        "security": [],
        "tags": ["Service and reporting"]
      }
    },
    "/v1/evidence": {
      "get": {
        "summary": "Evidence",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "language": {
                            "type": "string"
                          },
                          "m4_profile": {
                            "description": "Measured Apple M4 Pro development setup. Live CPU routes and optional native MPS routes are shown separately.",
                            "type": "object",
                            "properties": {
                              "language": { "type": "string" },
                              "file": {
                                "type": "object",
                                "properties": {
                                  "clean": { "type": "string" },
                                  "telephone": { "type": "string" },
                                  "background": { "type": "string" }
                                },
                                "required": ["clean", "telephone", "background"]
                              },
                              "live": {
                                "type": "object",
                                "properties": {
                                  "partial": { "type": "string" },
                                  "refined_final": { "type": "string" }
                                },
                                "required": ["partial", "refined_final"]
                              },
                              "live_mps": {
                                "type": "object",
                                "description": "Live recording with known language on the development Mac when STT_DEVICE=mps is selected.",
                                "properties": {
                                  "partial": { "type": "string" },
                                  "default_final": { "type": "string" },
                                  "refined_final": { "type": "string" }
                                },
                                "required": ["partial", "default_final", "refined_final"]
                              },
                              "paired_file": {
                                "description": "Matched file recordings decoded using whisper.cpp Metal on M4 Pro. Timings are summed warm decode seconds.",
                                "type": "object",
                                "properties": {
                                  "recordings": { "type": "integer" },
                                  "reference_units": { "type": "integer" },
                                  "unit": { "type": "string", "enum": ["word", "character"] },
                                  "baseline": { "type": "string" },
                                  "baseline_errors": { "type": "integer" },
                                  "full_errors": { "type": "integer" },
                                  "baseline_seconds": { "type": "number" },
                                  "full_seconds": { "type": "number" }
                                },
                                "required": ["recordings", "reference_units", "unit", "baseline", "baseline_errors", "full_errors", "baseline_seconds", "full_seconds"]
                              },
                              "voice_engine": { "type": "string" }
                            },
                            "required": ["language", "file", "live", "voice_engine"]
                          },
                          "file": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "live": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "translation": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": true
                            }
                          },
                          "speech": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "speech_readback": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "file_holdout": {
                            "anyOf": [
                              {
                                "$ref": "#/components/schemas/FileModelComparison"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "stock_comparison": {
                            "anyOf": [
                              {
                                "$ref": "#/components/schemas/StockVoiceComparison"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "custom_voice_readback": {
                            "anyOf": [
                              {
                                "$ref": "#/components/schemas/GrantedVoiceReadback"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "language",
                          "file",
                          "live",
                          "translation",
                          "speech",
                          "speech_readback",
                          "file_holdout",
                          "stock_comparison",
                          "custom_voice_readback"
                        ]
                      }
                    },
                    "qualification": {
                      "type": "string"
                    },
                    "translation_quality_panel": {
                      "$ref": "#/components/schemas/TranslationPanels"
                    }
                  },
                  "required": [
                    "items",
                    "qualification",
                    "translation_quality_panel"
                  ]
                }
              }
            }
          }
        },
        "security": [],
        "tags": ["Service and reporting"],
        "description": "Returns local measurement rows by language, including available file holdout and stock voice comparisons. Readback metrics measure an ASR model’s agreement with a reference. Each language may carry a synthetic-grant ASR readback. translation_quality_panel summarizes two local models across primary directions and separate follow-ups."
      }
    },
    "/v1/evidence/translation": {
      "get": {
        "summary": "Translation Evidence",
        "parameters": [
          {
            "name": "source",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Source"
            }
          },
          {
            "name": "target",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Target"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string"
                    },
                    "target": {
                      "type": "string"
                    },
                    "measurements": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Direction"
                      }
                    },
                    "gpu_translation": {
                      "description": "Paired Apple GPU screening for this direction and its preferred standalone text tier.",
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "passages": { "type": "integer" },
                            "paired_completions": { "type": "integer" },
                            "recommended": { "type": "string", "enum": ["balanced", "thorough"] },
                            "mean_chrfpp": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "balanced": { "type": "number" },
                                    "thorough": { "type": "number" }
                                  },
                                  "required": ["balanced", "thorough"]
                                },
                                { "type": "null" }
                              ]
                            }
                          },
                          "required": ["passages", "paired_completions", "recommended", "mean_chrfpp"]
                        },
                        { "type": "null" }
                      ]
                    },
                    "route_comparison": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/TranslationRouteComparison"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "quality_comparisons": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/QualityPassageComparison"
                      }
                    },
                    "opus_comparisons": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/OpusComparison"
                      }
                    }
                  },
                  "required": [
                    "source",
                    "target",
                    "measurements",
                    "route_comparison",
                    "quality_comparisons",
                    "opus_comparisons"
                  ]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          }
        },
        "security": [],
        "tags": ["Service and reporting"],
        "description": "Returns the saved translation measurements for a direction and its optional held-out comparison between direct and English-pivot balanced routes. Available MADLAD-vs-balanced per-passage scores and OPUS-vs-M2M100 comparisons are returned in quality_comparisons and opus_comparisons. Unmeasured directions have empty comparison arrays."
      }
    },
    "/console/webhooks": {
      "get": {
        "summary": "Hooks",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      },
      "post": {
        "summary": "Register",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hook"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      }
    },
    "/console/webhooks/{hid}": {
      "delete": {
        "summary": "Revoke",
        "parameters": [
          {
            "name": "hid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Hid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Administration and billing"],
        "description": "Requires a workspace owner session. "
      }
    },
    "/v1/client-tokens": {
      "post": {
        "summary": "Mint",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StreamGrant"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "scope": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "integer"
                    }
                  },
                  "required": ["token", "scope", "expires_at"]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Service and reporting"],
        "description": "An owner session or project key can mint this short-lived, single-scope WebSocket credential."
      }
    },
    "/v1/transcriptions/{jid}/analysis": {
      "get": {
        "summary": "History",
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Jid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SavedAnalysis"
                      }
                    }
                  },
                  "required": ["items"]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"]
      },
      "post": {
        "summary": "Analyze",
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Jid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Task"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalysisResult"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "402": {
            "$ref": "#/components/responses/Payment"
          },
          "429": {
            "$ref": "#/components/responses/Limit"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          }
        },
        "security": [
          {
            "memberSession": []
          }
        ],
        "tags": ["Recordings and files"],
        "description": "Requires a signed-in member and the current completed recording revision. The recording, revision, task, source, target and quality together identify a reusable result. speaker_summaries requires attributable acoustic labels. Translations require a target. Summaries, quotes, entities, actions and key points retain source evidence. Translations accept auto, balanced or thorough. Auto selects a model for each segment using its source and the requested target. An explicit source applies to every segment. Omitting quality reuses balanced results. Other tasks accept only balanced."
      }
    },
    "/health": {
      "get": {
        "summary": "Health",
        "description": "Checks the web server and PostgreSQL. With local inference it also checks the child process. Remote workers can be stopped while the website and billing stay available.",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "server": {
                      "type": "string"
                    },
                    "database": {
                      "type": "string"
                    },
                    "client": {
                      "type": "string"
                    },
                    "inference": {
                      "type": "string"
                    },
                    "billing": {
                      "enum": [
                        "local_sandbox",
                        "stripe_test",
                        "stripe_live",
                        "creem_test",
                        "wompi_test",
                        "wompi_live",
                        "pending_live"
                      ]
                    }
                  },
                  "required": [
                    "status",
                    "server",
                    "database",
                    "client",
                    "inference",
                    "billing"
                  ]
                }
              }
            }
          }
        },
        "security": [],
        "tags": ["Service and reporting"]
      }
    },
    "/service-worker.js": {
      "get": {
        "summary": "Service Worker",
        "responses": {
          "200": {
            "description": "JavaScript service worker.",
            "content": {
              "application/javascript": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [],
        "tags": ["Web pages"]
      }
    },
    "/developer": {
      "get": {
        "summary": "Developer",
        "responses": {
          "200": {
            "description": "React application shell.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [],
        "tags": ["Web pages"]
      }
    },
    "/": {
      "get": {
        "summary": "Shell",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "React application shell.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          }
        },
        "security": [],
        "tags": ["Web pages"]
      }
    },
    "/app": {
      "get": {
        "summary": "Shell",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "React application shell.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          }
        },
        "security": [],
        "tags": ["Web pages"]
      }
    },
    "/shared/{token}": {
      "get": {
        "summary": "Shell",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "React application shell.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          }
        },
        "security": [],
        "tags": ["Web pages"]
      }
    },
    "/openapi.json": {
      "get": {
        "summary": "Read this API specification",
        "responses": {
          "200": {
            "description": "Successful response"
          }
        },
        "security": [],
        "tags": ["Service and reporting"]
      }
    },
    "/console/stripe/webhook": {
      "post": {
        "summary": "Accept a signed Stripe billing event",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "received": {
                      "type": "boolean"
                    }
                  },
                  "required": ["received"]
                }
              }
            }
          },
          "413": { "description": "The raw webhook body exceeds 1 MiB." },
          "400": {
            "description": "The raw event or signature is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "livemode": { "type": "boolean" },
                  "data": {
                    "type": "object",
                    "properties": { "object": { "type": "object", "properties": { "id": { "type": "string" }, "livemode": { "type": "boolean" } }, "required": ["id"] } },
                    "required": ["object"]
                  }
                },
                "required": ["id", "type", "livemode", "data"]
              }
            }
          }
        },
        "description": "Requires the configured Stripe webhook signing secret, the matching live/test event environment and a signature over the original JSON bytes. Processes checkout.session.completed, checkout.session.async_payment_succeeded, checkout.session.async_payment_failed, checkout.session.expired, invoice.paid, invoice.payment_failed, customer.subscription.updated and customer.subscription.deleted. Retries of an already-settled payment keep its existing credit grant. Limit 1 MiB.",
        "security": [
          {
            "stripeSignature": []
          }
        ],
        "tags": ["Administration and billing"]
      }
    },
    "/v1/concurrency": {
      "get": {
        "summary": "Current project concurrency",
        "description": "Authenticated sockets admitted to the project, including sockets initializing their model. Multiplexed synthesis counts once per connection.",
        "tags": ["Observability"],
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Current project concurrency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConcurrencyCurrent"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/v1/concurrency/history": {
      "get": {
        "summary": "Project concurrency history",
        "description": "Latest first. Each event reports the active socket count after its transition. Restart recovery closes an interrupted stream at its last observed timestamp. Default window is one day, maximum 31 days. Reuse start and end when paging.",
        "tags": ["Observability"],
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Project concurrency history.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConcurrencyHistory"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "description": "Inclusive UTC epoch seconds."
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "description": "Inclusive UTC epoch seconds."
          },
          {
            "in": "query",
            "name": "before",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Opaque cursor from next_before."
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 100
            },
            "description": "Events per page."
          }
        ]
      }
    },
    "/v1/usage/daily": {
      "get": {
        "summary": "Daily project usage",
        "description": "Days and metering operations with activity in the requested interval. Default window is 30 days, maximum 366 days. A request counts once across its current ledger status.",
        "tags": ["Observability"],
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Daily project usage.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DailyUsage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "start",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "description": "Inclusive UTC epoch seconds."
          },
          {
            "in": "query",
            "name": "end",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "description": "Inclusive UTC epoch seconds."
          }
        ]
      }
    },
    "/v1/organization/usage/monthly": {
      "get": {
        "summary": "Monthly organization usage and quotas",
        "description": "Workspace owner or organization reporting key. Projects include zero-usage entries. Remaining headroom subtracts settled and reserved units from current configured limits. A null organization ceiling means no configured cap.",
        "tags": ["Observability"],
        "security": [
          {
            "organizationKey": []
          },
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Monthly organization usage and quotas.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MonthlyOrganizationUsage"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "month",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$"
            },
            "description": "UTC calendar month. Defaults to the current UTC month."
          }
        ]
      }
    },
    "/v1/organization/limits": {
      "get": {
        "summary": "Organization and project limits",
        "description": "Current monthly organization credit ceiling, tenant project quotas and shared local installation stream limits. A null monthly_limit means no organization ceiling is configured.",
        "tags": ["Observability"],
        "security": [
          {
            "organizationKey": []
          },
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Current configured limits.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "organization",
                    "monthly_limit",
                    "projects",
                    "stream_limits"
                  ],
                  "properties": {
                    "organization": {
                      "type": "string"
                    },
                    "monthly_limit": {
                      "type": ["integer", "null"],
                      "minimum": 0
                    },
                    "projects": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": ["project", "name", "quota"],
                        "properties": {
                          "project": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "quota": {
                            "type": "integer"
                          }
                        }
                      }
                    },
                    "stream_limits": {
                      "$ref": "#/components/schemas/StreamCapacity"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/v1/files/count": {
      "get": {
        "summary": "Count reusable input files",
        "description": "Returns the count for the authenticated project. ",
        "tags": ["Files"],
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Count reusable input files.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCount"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/v1/transcriptions/count": {
      "get": {
        "summary": "Count transcription jobs in all statuses",
        "description": "Returns the count for the authenticated project. ",
        "tags": ["Transcriptions"],
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Count transcription jobs in all statuses.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCount"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/v1/voices/count": {
      "get": {
        "summary": "Count active and pending project voice grants",
        "description": "Returns the count for the authenticated project. The local custom-voice workspace must be enabled; pending/active status is refreshed before counting.",
        "tags": ["Custom voices"],
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Count active and pending project voice grants.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCount"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/v1/transcriptions/{jid}/transcript": {
      "get": {
        "summary": "Read the reviewed transcript",
        "description": "Reads the latest saved revision after the recording completes. Segment text includes saved edits. Time offsets are seconds from the beginning of the original recording. The job detail endpoint supplies original recognition and individual words.",
        "tags": ["Transcriptions"],
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Read the reviewed transcript.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewedTranscript"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "409": {
            "$ref": "#/components/responses/Conflict"
          }
        },
        "parameters": [
          {
            "name": "jid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/voices/{voice_id}/preview": {
      "post": {
        "summary": "Regenerate a project voice preview",
        "description": "A signed-in project member can synthesize and save a fixed English preview for an active grant on the local voice workspace. This consumes custom-speech credits. The grant is checked again before the preview is committed.",
        "tags": ["Custom voices"],
        "security": [
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Regenerate a project voice preview.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "preview_url": {
                      "type": "string"
                    }
                  },
                  "required": ["id", "preview_url"]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Payment"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/Limit"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "parameters": [
          {
            "name": "voice_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "get": {
        "summary": "Retrieve the saved project voice preview",
        "description": "Reads the stored WAV for an active, unexpired grant. Generate a preview first. Revocation and expiry clear stored preview audio.",
        "tags": ["Custom voices"],
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Saved mono WAV preview.",
            "content": {
              "audio/wav": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-Audio-Origin": {
                "schema": {
                  "const": "machine-generated"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "voice_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/stock-voices": {
      "get": {
        "summary": "List installed stock voice presets",
        "description": "Returns one row per language and preset for the installed engines. Optional filters match the language code, engine identifier and voice gender exactly. An empty match returns an empty list. Only applicable controls appear on each preset.",
        "tags": ["Language tools"],
        "security": [],
        "responses": {
          "200": {
            "description": "List installed stock voice presets.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/VoicePreset"
                          },
                          {
                            "type": "object",
                            "properties": {
                              "language": {
                                "$ref": "#/components/schemas/LanguageCode"
                              }
                            },
                            "required": ["language"]
                          }
                        ]
                      }
                    }
                  },
                  "required": ["items"]
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "parameters": [
          {
            "name": "language",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 12
            },
            "description": "Optional language filter."
          },
          {
            "name": "gender",
            "in": "query",
            "schema": { "type": "string", "enum": ["female", "male", "unspecified"] },
            "description": "Optional stock voice gender."
          },
          {
            "name": "engine",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 60
            },
            "description": "Optional engine identifier filter."
          }
        ]
      }
    },
    "/v1/organization/projects/{pid}/keys": {
      "get": {
        "summary": "List project keys within the organization",
        "description": "A workspace owner or an organization credential with either scope may read project-key metadata. Plaintext credentials are only returned at issuance.",
        "tags": ["Organizations"],
        "security": [
          {
            "organizationKey": []
          },
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "List project keys within the organization.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ProjectKeyMetadata"
                      }
                    }
                  },
                  "required": ["items"]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "post": {
        "summary": "Issue a key for an organization project",
        "description": "Requires an owner session or a project-keys:manage organization credential. The optional lifetime is 30–86,400 seconds.",
        "tags": ["Organizations"],
        "security": [
          {
            "organizationKey": []
          },
          {
            "memberSession": []
          }
        ],
        "responses": {
          "201": {
            "description": "Issue a key for an organization project.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedProjectKey"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          }
        },
        "parameters": [
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KeyIn"
              }
            }
          }
        }
      }
    },
    "/v1/organization/projects/{pid}/keys/{kid}": {
      "delete": {
        "summary": "Revoke an organization project key",
        "description": "Requires an owner session or a project-keys:manage organization credential. Revocation prevents dependent temporary keys from opening new streams.",
        "tags": ["Organizations"],
        "security": [
          {
            "organizationKey": []
          },
          {
            "memberSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Revoke an organization project key.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "revoked": {
                      "const": true
                    }
                  },
                  "required": ["revoked"]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "pid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/languages": {
      "get": {
        "summary": "Open the language directory",
        "responses": {
          "200": {
            "description": "React HTML application shell for the language directory.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [],
        "tags": ["Web pages"],
        "description": "Public React page with language search, filters and measured recognition coverage. Reads /v1/capabilities and /v1/evidence from the browser."
      }
    },
    "/demo/examples/{language}": {
      "post": {
        "summary": "Play a prepared transcription example",
        "description": "Returns prerecorded audio for the selected example. The request must originate on the site. The browser and network playback allowance applies. This endpoint accepts no customer content and runs no model.",
        "tags": [
          "Public examples"
        ],
        "security": [],
        "parameters": [
          {
            "in": "path",
            "name": "language",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "es",
                "he"
              ]
            }
          },
          {
            "in": "header",
            "name": "Origin",
            "required": true,
            "description": "Exact origin of the requesting website. Browsers set this header.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The original audio for the fixed example.",
            "content": {
              "audio/wav": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "audio/mpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "description": "Playback allowance reached. Retry-After indicates the wait in seconds.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          }
        }
      }
    },
    "/v1/speech/sequence": {
      "post": {
        "summary": "Generate a combined WAV from multiple languages and stock voices",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "segments": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/NarrationPhrase"
                    },
                    "minItems": 1,
                    "maxItems": 12
                  },
                  "word_timing": {
                    "type": "boolean",
                    "default": false
                  }
                },
                "required": ["segments"],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Sample-accurate phrase boundaries use start-inclusive/end-exclusive output WAV frame indices at 24 kHz. Optional word seconds are ASR estimates. Missing or unsegmented words carry null seconds.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NarrationResult"
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/Invalid"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Payment"
          },
          "429": {
            "$ref": "#/components/responses/Limit"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "security": [
          {
            "projectKey": []
          },
          {
            "memberSession": []
          }
        ],
        "tags": ["Language tools"],
        "description": "Up to 12 phrases, 2000 total Unicode code points and 180 output seconds. A project bearer token or an authenticated session is required. One speech reservation charges the combined text of all lines."
      }
    }
  },
  "components": {
    "schemas": {
      "VoicePreparation": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "openvoice-v2",
              "voxcpm2"
            ]
          },
          "revision": {
            "type": "string"
          },
          "updated": {
            "type": "integer"
          }
        },
        "required": [
          "model",
          "revision",
          "updated"
        ]
      },
      "ModelStockVoice": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "name": { "type": "string", "description": "Display name. Send id to select this voice." },
          "gender": { "type": "string", "enum": ["female", "male", "unspecified"] },
          "quality": { "type": "string", "description": "Synthesis method or experimental status. It is not a listener score." },
          "source": { "type": "string", "description": "Origin of the voice preset." },
          "preview_url": { "type": "string", "description": "Same-origin recording of this exact preset, when packaged." },
          "preview_text": { "type": "string", "description": "Original text spoken in the recording." },
          "engine": {
            "type": "string"
          },
          "default": {
            "type": "boolean"
          },
          "speed": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "number"
                  },
                  "max": {
                    "type": "number"
                  },
                  "default": {
                    "type": "number"
                  }
                },
                "required": [
                  "min",
                  "max",
                  "default"
                ]
              }
            ]
          },
          "styles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "language",
          "engine",
          "default",
          "speed",
          "styles"
        ]
      },
      "SynthesisModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "grant_languages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "preparation": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "properties": {
                  "revision": {
                    "type": "string"
                  },
                  "format": {
                    "type": "string"
                  }
                },
                "required": [
                  "revision",
                  "format"
                ]
              }
            ]
          },
          "stock_voices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModelStockVoice"
            }
          }
        },
        "required": [
          "id",
          "name",
          "grant_languages",
          "preparation",
          "stock_voices"
        ]
      },
      "Body_consent_v1_voices__voice_id__consent_post": {
        "properties": {
          "recording": {
            "type": "string",
            "format": "binary",
            "description": "Encoded audio upload, maximum 2 MiB."
          }
        },
        "type": "object",
        "required": ["recording"],
        "title": "Body_consent_v1_voices__voice_id__consent_post"
      },
      "Body_store_file_v1_files_post": {
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "Encoded audio upload, maximum 192 MiB."
          }
        },
        "type": "object",
        "required": ["file"],
        "title": "Body_store_file_v1_files_post"
      },
      "Body_transcribe_file_v1_transcriptions_post": {
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "Encoded audio upload, maximum 192 MiB."
          },
          "language": {
            "type": ["string", "null"],
            "maxLength": 12,
            "description": "Optional source language hint. Omit for language-switch detection."
          },
          "vocabulary": {
            "type": ["string", "null"],
            "maxLength": 1000
          },
          "diarization": {
            "type": "boolean",
            "title": "Diarization",
            "default": false
          },
          "detect_switches": {
            "type": "boolean",
            "title": "Detect Switches",
            "default": false
          },
          "recover_quiet": {
            "type": "boolean",
            "title": "Recover Quiet",
            "default": false
          },
          "speaker_count": {
            "type": ["integer", "null"],
            "minimum": 1,
            "maximum": 16
          }
        },
        "type": "object",
        "required": ["file"],
        "title": "Body_transcribe_file_v1_transcriptions_post"
      },
      "Budget": {
        "properties": {
          "units": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 1000000000.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Units"
          }
        },
        "type": "object",
        "title": "Budget"
      },
      "PaymentMethod": {
        "type": "string",
        "enum": ["card", "apple_pay", "google_pay", "paypal"]
      },
      "Checkout": {
        "additionalProperties": false,
        "properties": {
          "method": { "$ref": "#/components/schemas/PaymentMethod" },
          "outcome": { "const": "approve" },
          "offer": {
            "type": "string",
            "enum": ["pack", "studio"],
            "title": "Offer"
          },
          "request_id": {
            "type": "string",
            "maxLength": 100,
            "minLength": 10,
            "title": "Request Id"
          }
        },
        "type": "object",
        "required": ["offer", "request_id"],
        "title": "Checkout"
      },
      "Credentials": {
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "minLength": 3,
            "title": "Email",
            "format": "email"
          },
          "password": {
            "type": "string",
            "maxLength": 256,
            "minLength": 8,
            "title": "Password"
          },
          "name": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Name",
            "default": "My workspace"
          }
        },
        "type": "object",
        "required": ["email", "password"],
        "title": "Credentials"
      },
      "Edit": {
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Revision"
          },
          "segments": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Segments"
          }
        },
        "type": "object",
        "required": ["revision", "segments"],
        "title": "Edit"
      },
      "Enrollment": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Name"
          },
          "kind": {
            "type": "string",
            "enum": ["personal", "synthetic-demo"],
            "title": "Kind"
          },
          "expires_in_days": {
            "type": "integer",
            "maximum": 365.0,
            "minimum": 1.0,
            "title": "Expires In Days",
            "default": 30
          },
          "accept_terms": {
            "type": "boolean",
            "const": true
          }
        },
        "type": "object",
        "required": ["name", "kind", "accept_terms"],
        "title": "Enrollment"
      },
      "Hook": {
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 2000,
            "minLength": 12,
            "title": "Url"
          }
        },
        "type": "object",
        "required": ["url"],
        "title": "Hook"
      },
      "Invite": {
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "minLength": 3,
            "title": "Email"
          }
        },
        "type": "object",
        "required": ["email"],
        "title": "Invite"
      },
      "KeyIn": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "ttl_seconds": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 86400.0,
                "minimum": 30.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Ttl Seconds"
          }
        },
        "type": "object",
        "required": ["name"],
        "title": "KeyIn"
      },
      "Meta": {
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 180,
            "minLength": 1,
            "title": "Title"
          },
          "folder": {
            "type": "string",
            "maxLength": 100,
            "title": "Folder",
            "default": ""
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 16,
            "title": "Tags"
          }
        },
        "type": "object",
        "required": ["title"],
        "title": "Meta"
      },
      "Name": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          }
        },
        "type": "object",
        "required": ["name"],
        "title": "Name"
      },
      "Notes": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 6000,
            "minLength": 1,
            "title": "Text",
            "description": "Nonblank input. Character ranges in the response refer to the original submitted text."
          },
          "task": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ScribePreset"
              }
            ],
            "default": "summary"
          },
          "language": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LanguageCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional source-language hint for selecting the extraction strategy."
          }
        },
        "type": "object",
        "required": ["text"],
        "title": "Notes"
      },
      "Order": {
        "additionalProperties": false,
        "properties": {
          "method": { "$ref": "#/components/schemas/PaymentMethod" },
          "card_fixture": { "enum": ["visa_4242", "mastercard_4444", "visa_declined"] },
          "offer": {
            "type": "string",
            "enum": ["pack", "studio"],
            "title": "Offer"
          },
          "request_id": {
            "type": "string",
            "maxLength": 100,
            "minLength": 10,
            "title": "Request Id"
          },
          "outcome": {
            "type": "string",
            "enum": ["approve", "decline"],
            "title": "Outcome",
            "default": "approve"
          }
        },
        "type": "object",
        "required": ["offer", "request_id"],
        "title": "Order"
      },
      "WorkspaceSettings": {
        "type": "object",
        "properties": {
          "project": { "type": "string" },
          "storage": {
            "type": "object",
            "properties": {
              "recordings": { "type": "integer", "minimum": 0 },
              "recording_bytes": { "type": "integer", "minimum": 0 },
              "reusable_files": { "type": "integer", "minimum": 0 },
              "reusable_bytes": { "type": "integer", "minimum": 0 },
              "unfinished_uploads": { "type": "integer", "minimum": 0 },
              "unfinished_bytes": { "type": "integer", "minimum": 0 }
            },
            "required": [
              "recordings",
              "recording_bytes",
              "reusable_files",
              "reusable_bytes",
              "unfinished_uploads",
              "unfinished_bytes"
            ]
          },
          "usage": {
            "type": "object",
            "properties": {
              "workspace": { "type": "integer", "minimum": 0 },
              "project": { "type": "integer", "minimum": 0 }
            },
            "required": ["workspace", "project"]
          },
          "rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "scope": { "type": "string", "enum": ["workspace", "project"] },
                "threshold": {
                  "type": ["integer", "null"],
                  "minimum": 1,
                  "maximum": 1000000000
                },
                "recipient": {
                  "type": ["string", "null"],
                  "format": "email",
                  "maxLength": 254
                }
              },
              "required": ["scope", "threshold", "recipient"]
            }
          },
          "notices": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "scope": { "type": "string", "enum": ["workspace", "project"] },
                "month_start": {
                  "type": "integer",
                  "description": "Unix timestamp in seconds (UTC)."
                },
                "threshold": { "type": "integer" },
                "used": { "type": "integer" },
                "recipient": {
                  "type": "string",
                  "format": "email",
                  "maxLength": 254
                },
                "created": {
                  "type": "integer",
                  "description": "Unix timestamp in seconds (UTC)."
                }
              },
              "required": [
                "scope",
                "month_start",
                "threshold",
                "used",
                "recipient",
                "created"
              ]
            }
          }
        },
        "required": ["project", "storage"],
        "description": "Usage totals, rules and the latest 50 local notices are returned to workspace owners. Storage counts media bytes for the selected project."
      },
      "UsageAlertPreference": {
        "type": "object",
        "properties": {
          "project": {
            "type": "string",
            "description": "The active project ID shown when the owner opened settings."
          },
          "scope": { "type": "string", "enum": ["workspace", "project"] },
          "threshold": {
            "type": ["integer", "null"],
            "minimum": 1,
            "maximum": 1000000000
          },
          "recipient": {
            "type": ["string", "null"],
            "format": "email",
            "maxLength": 254
          }
        },
        "required": ["project", "scope", "threshold", "recipient"],
        "additionalProperties": false,
        "if": { "properties": { "threshold": { "type": "integer" } } },
        "then": {
          "properties": {
            "recipient": { "type": "string", "format": "email", "maxLength": 254 }
          }
        }
      },
      "BillingContact": {
        "type": "object",
        "properties": {
          "name": { "type": "string", "minLength": 1, "maxLength": 100 },
          "email": { "type": "string", "format": "email", "maxLength": 254 }
        },
        "required": ["name", "email"]
      },
      "WompiOrderId": { "type": "string", "pattern": "^[a-f0-9]{24}$" },
      "WompiTransactionId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,100}$" },
      "WompiRate": { "type": "number", "exclusiveMinimum": 0, "description": "Official TRM, in Colombian pesos per US dollar." },
      "WompiSubscription": {
        "type": "object",
        "properties": {
          "id": {"$ref": "#/components/schemas/WompiOrderId"},
          "status": {"enum": ["pending", "active", "past_due", "canceled"]},
          "cop_cents": {"type": "integer", "minimum": 100, "multipleOf": 100},
          "usd_cents": {"type": "integer"},
          "rate": {"$ref": "#/components/schemas/WompiRate"},
          "rate_date": {"type": "string", "format": "date"},
          "next_charge_at": {"type": ["integer", "null"], "description": "Unix seconds."},
          "paid_until": {"type": ["integer", "null"], "description": "Unix seconds."},
          "invoice": {"type": ["string", "null"]},
          "pending_charge": {"type": "boolean"},
          "charge_reference": {"type": ["string", "null"]},
          "can_enroll": {"type": "boolean"}
        },
        "required": [
          "id",
          "status",
          "cop_cents",
          "usd_cents",
          "rate",
          "rate_date",
          "next_charge_at",
          "paid_until",
          "invoice",
          "pending_charge",
          "charge_reference",
          "can_enroll"
        ]
      },
      "WompiPrice": {
        "type": "object",
        "required": ["usd_cents", "cop_cents"],
        "properties": {
          "usd_cents": { "type": "integer", "minimum": 1, "description": "Catalog reference amount in US cents." },
          "cop_cents": { "type": "integer", "minimum": 100, "multipleOf": 100, "description": "Payable amount in centavos of the Colombian peso, rounded to a whole peso." }
        }
      },
      "BillingWallet": {
        "type": "object",
        "properties": {
          "balance": { "type": "integer", "minimum": 0, "description": "Spendable credits in this wallet." },
          "plan": { "type": "string", "description": "Effective plan, including any current paid subscription." },
          "renewal": { "type": ["integer", "null"], "description": "Unix seconds. Next scheduled renewal or the end of the recorded paid period." },
          "cancel": { "type": "boolean", "description": "Whether a cancellation is scheduled." },
          "subscription_status": { "type": ["string", "null"], "description": "Included for workspaces with a hosted billing account. Wompi monthly subscriptions use pending, active, past_due or canceled. Earlier prepaid periods use prepaid or expired. It can be null before the first subscription event." }
        },
        "required": ["balance", "plan", "renewal", "cancel"]
      },
      "BillingInvoice": {
        "type": "object",
        "properties": {
          "id": { "type": "string" },
          "kind": { "type": "string", "enum": ["pack", "studio"] },
          "cents": { "type": "integer", "minimum": 0, "description": "Original offer amount in US cents. Wompi charges the value in cop_cents." },
          "cop_cents": { "type": ["integer", "null"], "multipleOf": 100, "description": "Amount charged by Wompi in COP centavos. For these orders cents is the reference price in USD cents." },
          "rate": { "type": ["string", "null"], "description": "Decimal TRM in COP per USD saved on the Wompi receipt." },
          "rate_date": { "type": ["string", "null"], "format": "date", "description": "Bogotá date of the official Colombian TRM used to price this payment. Recurring charges carry the original signup rate date." },
          "wompi_subscription_id": { "type": ["string", "null"], "description": "Wompi subscription that authorized this charge." },
          "wompi_period_end": { "type": ["integer", "null"], "description": "End of the paid subscription period in Unix seconds." },
          "voided_at": { "type": ["integer", "null"], "description": "Unix seconds when a settled Wompi purchase was recorded as voided." },
          "units": { "type": "integer", "minimum": 0, "description": "Credits granted." },
          "created": { "type": "integer", "description": "Unix timestamp in seconds (UTC)." },
          "payment_method": { "anyOf": [{ "$ref": "#/components/schemas/PaymentMethod" }, { "enum": ["creem", "wompi"] }, { "type": "null" }], "description": "Null when the settlement did not identify the specific instrument." },
          "payment_last4": { "type": ["string", "null"], "pattern": "^[0-9]{4}$" },
          "livemode": { "type": "boolean", "description": "True for receipts settled in a live billing environment. Test and preview receipts return false." }
        },
        "required": ["id", "kind", "cents", "units", "created", "payment_method", "payment_last4", "livemode"]
      },
      "WorkspaceConsole": {
        "type": "object",
        "properties": {
          "actor": {
            "type": "object",
            "properties": {
              "org": { "type": "string" },
              "project": { "type": "string" },
              "role": { "type": "string" },
              "user": { "type": "string" }
            },
            "required": ["org", "project", "role", "user"]
          },
          "workspace": { "$ref": "#/components/schemas/BillingWallet" },
          "projects": { "type": "array", "items": { "type": "object" } },
          "members": { "type": "array", "items": { "type": "object" } },
          "keys": { "type": "array", "items": { "type": "object" } },
          "invoices": { "type": "array", "items": { "$ref": "#/components/schemas/BillingInvoice" } },
          "usage": { "type": "array", "items": { "$ref": "#/components/schemas/ProcessingUsageEntry" }, "description": "Up to 200 recent processing requests for the selected project." },
          "metering_rates": { "$ref": "#/components/schemas/MeteringRates" },
          "monthly_units": { "type": "integer", "minimum": 0 },
          "billing_mode": {
            "type": "string",
            "enum": [
              "local_sandbox",
              "stripe_test",
              "stripe_live",
              "creem_test",
              "wompi_test",
              "wompi_live",
              "pending_live"
            ]
          },
          "billing_preview": { "type": "boolean" },
          "wompi_subscription": { "anyOf": [{ "$ref": "#/components/schemas/WompiSubscription" }, { "type": "null" }], "description": "Fixed monthly COP agreement for the workspace in the current billing environment." },
          "billing_wallet": { "$ref": "#/components/schemas/BillingWallet" },
          "credit_activity": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": { "type": "string" },
                "kind": { "type": "string" },
                "units": { "type": "integer" },
                "created": {
                  "type": "integer",
                  "description": "Unix timestamp in seconds (UTC)."
                },
                "project": { "type": ["string", "null"] },
                "status": {
                  "type": "string",
                  "enum": ["reserved", "settled", "refunded"]
                }
              },
              "required": ["id", "kind", "units", "created", "project", "status"]
            }
          },
          "payment_method": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "label": { "type": "string" },
                  "last4": { "type": "string", "enum": ["4242", "4444"] }
                },
                "required": ["label", "last4"]
              },
              { "type": "null" }
            ]
          },
          "billing_contact": {
            "type": "object",
            "properties": {
              "name": { "type": "string" },
              "email": { "type": "string" }
            },
            "required": ["name", "email"]
          },
          "checkout_methods": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": { "$ref": "#/components/schemas/PaymentMethod" },
                "mode": { "enum": ["local_sandbox", "stripe_test", "stripe_live", "creem_test", "wompi_test", "wompi_live"] },
                "available": { "type": "boolean" }
              },
              "required": ["id", "mode", "available"]
            }
          },
          "can_checkout": { "type": "boolean", "description": "True for a workspace owner." },
          "sandbox_checkout_enabled": { "type": "boolean", "description": "True when billing_mode is local_sandbox." },
          "stripe_portal": { "type": "boolean", "description": "True for a workspace owner using hosted Stripe billing, including before the first purchase." },
          "offers": { "type": "object" }
        },
        "required": [
          "actor",
          "workspace",
          "projects",
          "members",
          "keys",
          "invoices",
          "usage",
          "monthly_units",
          "metering_rates",
          "billing_mode",
          "billing_preview",
          "billing_wallet",
          "credit_activity",
          "payment_method",
          "billing_contact",
          "checkout_methods",
          "can_checkout",
          "sandbox_checkout_enabled",
          "stripe_portal",
          "offers"
        ]
      },
      "LocalCheckoutResult": {
        "type": "object",
        "properties": {
          "invoice": { "type": "string" },
          "mode": { "type": "string", "const": "local_sandbox" },
          "preview": {
            "type": "boolean",
            "description": "True when the invoice credits the separate preview wallet."
          }
        },
        "required": ["invoice", "mode", "preview"]
      },
      "ProjectSettings": {
        "properties": {
          "description": { "type": "string", "maxLength": 600 },
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          }
        },
        "type": "object",
        "required": ["name"],
        "title": "ProjectSettings"
      },
      "Quota": {
        "properties": {
          "units": {
            "type": "integer",
            "maximum": 1000000000.0,
            "minimum": 0.0,
            "title": "Units"
          }
        },
        "type": "object",
        "required": ["units"],
        "title": "Quota"
      },
      "RoleChange": {
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "minLength": 3,
            "title": "Email"
          },
          "role": {
            "type": "string",
            "enum": ["member", "owner"],
            "title": "Role"
          }
        },
        "type": "object",
        "required": ["email", "role"],
        "title": "RoleChange"
      },
      "SourceSettings": {
        "properties": {
          "recover_quiet": {
            "type": "boolean",
            "title": "Recover Quiet",
            "default": false
          },
          "detect_switches": {
            "type": "boolean",
            "title": "Detect Switches",
            "default": false
          },
          "diarization": {
            "type": "boolean",
            "title": "Diarization",
            "default": false
          },
          "speaker_count": {
            "type": ["integer", "null"],
            "minimum": 1,
            "maximum": 16
          },
          "language": {
            "type": ["string", "null"],
            "maxLength": 12,
            "description": "Optional source language hint. Omit for language-switch detection."
          },
          "vocabulary": {
            "type": ["string", "null"],
            "maxLength": 1000
          }
        },
        "type": "object",
        "title": "SourceSettings"
      },
      "SpeakerName": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "title": "Name",
            "default": ""
          },
          "role": {
            "type": "string",
            "maxLength": 80,
            "title": "Role",
            "default": ""
          }
        },
        "type": "object",
        "title": "SpeakerName"
      },
      "Speech": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 3000,
            "minLength": 1,
            "title": "Text"
          },
          "language": {
            "$ref": "#/components/schemas/LanguageCode"
          },
          "voice": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ],
            "title": "Voice"
          },
          "speed": {
            "anyOf": [
              {
                "type": "number",
                "maximum": 1.5,
                "minimum": 0.75
              },
              {
                "type": "null"
              }
            ],
            "title": "Speed"
          },
          "style": {
            "anyOf": [
              {
                "type": "string",
                "enum": ["laugh", "breath", "sigh"]
              },
              {
                "type": "null"
              }
            ],
            "title": "Style"
          },
          "format": {
            "type": "string",
            "enum": ["wav", "mp3", "flac", "ogg", "aac", "pcm"],
            "default": "wav",
            "description": "Ogg Opus uses audio/ogg; codecs=opus. AAC uses ADTS. PCM is fixed-rate signed 16-bit little endian."
          }
        },
        "type": "object",
        "required": ["text", "language"],
        "title": "Speech"
      },
      "StreamGrant": {
        "properties": {
          "scope": {
            "type": "string",
            "enum": ["listen", "speech", "interpret"],
            "title": "Scope"
          },
          "expires_in": {
            "type": "integer",
            "maximum": 300.0,
            "minimum": 5.0,
            "title": "Expires In",
            "default": 60
          }
        },
        "type": "object",
        "required": ["scope"],
        "title": "StreamGrant"
      },
      "Task": {
        "properties": {
          "task": {
            "$ref": "#/components/schemas/RecordingAnalysisTask"
          },
          "target": {
            "type": "string",
            "maxLength": 12,
            "title": "Target",
            "default": ""
          },
          "source": {
            "type": "string",
            "maxLength": 12,
            "title": "Source",
            "default": ""
          },
          "revision": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Revision"
          },
          "quality": {
            "$ref": "#/components/schemas/RecordingTranslationQuality"
          }
        },
        "type": "object",
        "required": ["task", "revision"],
        "title": "Task",
        "allOf": [
          {
            "if": {
              "properties": {
                "task": {
                  "const": "translation"
                }
              }
            },
            "then": {
              "required": ["target"],
              "properties": {
                "target": {
                  "$ref": "#/components/schemas/LanguageCode"
                }
              }
            },
            "else": {
              "properties": {
                "quality": {
                  "const": "balanced"
                }
              }
            }
          }
        ]
      },
      "Translation": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 6000,
            "minLength": 1,
            "title": "Text"
          },
          "source": {
            "$ref": "#/components/schemas/LanguageCode"
          },
          "target": {
            "$ref": "#/components/schemas/LanguageCode"
          },
          "quality": {
            "type": "string",
            "enum": ["auto", "balanced", "thorough"],
            "default": "auto",
            "description": "Auto uses installed MADLAD for language directions validated by Velosyll and otherwise starts with Balanced. The explicit tiers are documented under TranslationQuality."
          }
        },
        "type": "object",
        "required": ["text", "source", "target"],
        "title": "Translation"
      },
      "URLSource": {
        "properties": {
          "recover_quiet": {
            "type": "boolean",
            "title": "Recover Quiet",
            "default": false
          },
          "detect_switches": {
            "type": "boolean",
            "title": "Detect Switches",
            "default": false
          },
          "diarization": {
            "type": "boolean",
            "title": "Diarization",
            "default": false
          },
          "speaker_count": {
            "type": ["integer", "null"],
            "minimum": 1,
            "maximum": 16
          },
          "language": {
            "type": ["string", "null"],
            "maxLength": 12,
            "description": "Optional source language hint. Omit for language-switch detection."
          },
          "vocabulary": {
            "type": ["string", "null"],
            "maxLength": 1000
          },
          "url": {
            "type": "string",
            "maxLength": 4096,
            "title": "Url"
          },
          "title": {
            "type": "string",
            "maxLength": 180,
            "title": "Title",
            "default": "URL recording"
          }
        },
        "type": "object",
        "required": ["url"],
        "title": "URLSource"
      },
      "UploadName": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 180,
            "minLength": 1,
            "title": "Name"
          }
        },
        "type": "object",
        "required": ["name"],
        "title": "UploadName"
      },
      "Utterance": {
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 500,
            "minLength": 1,
            "title": "Text"
          },
          "language": {
            "$ref": "#/components/schemas/LanguageCode"
          }
        },
        "type": "object",
        "required": ["text", "language"],
        "title": "Utterance"
      },
      "Error": {
        "type": "object",
        "properties": {
          "detail": {
            "type": "string"
          }
        },
        "required": ["detail"],
        "description": "All Express HTTP errors use a single human-readable detail string."
      },
      "LanguageCode": {
        "type": "string",
        "enum": [
          "af",
          "ar",
          "az",
          "be",
          "bg",
          "bn",
          "bs",
          "ca",
          "cs",
          "cy",
          "da",
          "de",
          "el",
          "en",
          "es",
          "et",
          "eu",
          "fa",
          "fi",
          "fr",
          "gl",
          "gu",
          "he",
          "hi",
          "hr",
          "hu",
          "id",
          "it",
          "ja",
          "kk",
          "kn",
          "ko",
          "lt",
          "lv",
          "mk",
          "ml",
          "mr",
          "ms",
          "nl",
          "no",
          "pa",
          "pl",
          "pt",
          "ro",
          "ru",
          "sk",
          "sl",
          "sq",
          "sr",
          "sv",
          "sw",
          "ta",
          "te",
          "th",
          "tl",
          "tr",
          "uk",
          "ur",
          "vi",
          "zh"
        ],
        "description": "Code drawn from the shared local language catalog. Per-operation availability and installed voices are returned by /v1/capabilities."
      },
      "Queued": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "const": "queued"
          }
        },
        "required": ["id", "status"]
      },
      "Recording": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["queued", "processing", "completed", "failed"]
          },
          "source": {
            "type": "string"
          },
          "language": {
            "type": ["string", "null"]
          },
          "error": {
            "type": ["string", "null"]
          },
          "created": {
            "type": "integer"
          },
          "revision": {
            "type": "integer"
          },
          "result": {
            "type": ["object", "null"]
          },
          "edits": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "required": ["id", "title", "status", "revision"]
      },
      "TranslationResult": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "target": {
            "type": "string"
          }
        },
        "required": ["text", "source", "target"]
      },
      "NotesResult": {
        "type": "object",
        "properties": {
          "task": {
            "$ref": "#/components/schemas/ScribePreset"
          },
          "language": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LanguageCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "strategy": {
            "type": "string",
            "enum": [
              "source_patterns",
              "source_decision",
              "direct_dictalm",
              "local_translation_to_english_then_dictalm",
              "source_lexical_centrality"
            ]
          },
          "result": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          },
          "evidence": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScribeEvidence"
            }
          }
        },
        "required": ["task", "language", "strategy", "result", "evidence"],
        "allOf": [
          {
            "if": {
              "properties": {
                "task": {
                  "const": "summary"
                }
              }
            },
            "then": {
              "properties": {
                "result": {
                  "type": "string"
                }
              }
            },
            "else": {
              "properties": {
                "result": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        ]
      },
      "VoiceGrant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "enum": ["personal", "synthetic-demo"]
          },
          "status": {
            "enum": ["pending", "active", "revoked", "expired"]
          },
          "rights": {
            "type": "string"
          },
          "terms": {
            "type": "string"
          },
          "created": {
            "type": "integer"
          },
          "expires": {
            "type": "integer"
          },
          "granted": {
            "type": ["integer", "null"]
          },
          "preview_updated": {
            "type": ["integer", "null"],
            "description": "Unix seconds when the saved preview was last regenerated."
          }
        },
        "required": [
          "id",
          "name",
          "kind",
          "status",
          "rights",
          "terms",
          "created",
          "expires",
          "granted",
          "preview_updated"
        ]
      },
      "VoicePreset": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": { "type": "string", "description": "Display name. Send id to select this voice." },
          "gender": { "type": "string", "enum": ["female", "male", "unspecified"] },
          "quality": { "type": "string", "description": "Synthesis method or experimental status. It is not a listener score." },
          "source": { "type": "string", "description": "Origin of the voice preset." },
          "preview_url": { "type": "string", "description": "Same-origin recording of this exact preset, when packaged." },
          "preview_text": { "type": "string", "description": "Original text spoken in the recording." },
          "engine": {
            "type": "string"
          },
          "speed": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "min": {
                    "type": "number"
                  },
                  "max": {
                    "type": "number"
                  },
                  "default": {
                    "type": "number"
                  }
                },
                "required": ["min", "max", "default"]
              },
              {
                "type": "null"
              }
            ]
          },
          "styles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["id", "engine", "speed", "styles"]
      },
      "LanguageCapabilities": {
        "type": "object",
        "properties": {
          "translation": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LanguageCode"
            }
          },
          "voices": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "voice_options": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoicePreset"
              }
            }
          },
          "stock_voice_names": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "scribe_languages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LanguageCode"
            }
          },
          "translation_status": {
            "type": "string"
          },
          "speech_status": {
            "type": "string"
          },
          "scribe_presets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ScribePreset"
            }
          },
          "custom_voice_engines": {
            "type": "object",
            "propertyNames": {
              "$ref": "#/components/schemas/LanguageCode"
            },
            "additionalProperties": {
              "enum": ["voxcpm2", "openvoice-v2"]
            },
            "description": "Installed local granted-speech backend for each available stock language. VoxCPM2 directly conditions on the grant. OpenVoice V2 transfers its timbre to locally synthesized target-language speech. The current 60-code mapping is shown in the example. Native-speaker similarity is unmeasured.",
            "examples": [
              {
                "af": "openvoice-v2",
                "ar": "voxcpm2",
                "az": "openvoice-v2",
                "be": "openvoice-v2",
                "bg": "openvoice-v2",
                "bn": "openvoice-v2",
                "bs": "openvoice-v2",
                "ca": "openvoice-v2",
                "cs": "openvoice-v2",
                "cy": "openvoice-v2",
                "da": "voxcpm2",
                "de": "voxcpm2",
                "el": "voxcpm2",
                "en": "voxcpm2",
                "es": "voxcpm2",
                "et": "openvoice-v2",
                "eu": "openvoice-v2",
                "fa": "openvoice-v2",
                "fi": "voxcpm2",
                "fr": "voxcpm2",
                "gl": "openvoice-v2",
                "gu": "openvoice-v2",
                "he": "voxcpm2",
                "hi": "voxcpm2",
                "hr": "openvoice-v2",
                "hu": "openvoice-v2",
                "id": "voxcpm2",
                "it": "voxcpm2",
                "ja": "voxcpm2",
                "kk": "openvoice-v2",
                "kn": "openvoice-v2",
                "ko": "voxcpm2",
                "lt": "openvoice-v2",
                "lv": "openvoice-v2",
                "mk": "openvoice-v2",
                "ml": "openvoice-v2",
                "mr": "openvoice-v2",
                "ms": "voxcpm2",
                "nl": "voxcpm2",
                "no": "voxcpm2",
                "pa": "openvoice-v2",
                "pl": "voxcpm2",
                "pt": "voxcpm2",
                "ro": "openvoice-v2",
                "ru": "voxcpm2",
                "sk": "openvoice-v2",
                "sl": "openvoice-v2",
                "sq": "openvoice-v2",
                "sr": "openvoice-v2",
                "sv": "voxcpm2",
                "sw": "voxcpm2",
                "ta": "openvoice-v2",
                "te": "openvoice-v2",
                "th": "voxcpm2",
                "tl": "voxcpm2",
                "tr": "voxcpm2",
                "uk": "openvoice-v2",
                "ur": "openvoice-v2",
                "vi": "voxcpm2",
                "zh": "voxcpm2"
              }
            ]
          }
        },
        "required": [
          "translation",
          "voices",
          "voice_options",
          "stock_voice_names",
          "scribe_languages",
          "translation_status",
          "speech_status",
          "scribe_presets",
          "custom_voice_engines"
        ]
      },
      "Direction": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "route": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "index": {
            "type": "integer"
          },
          "completed": {
            "type": "boolean"
          },
          "chrfpp": {
            "type": "number"
          },
          "hypothesis": {
            "type": ["string", "null"]
          },
          "direct_decode_failed": {
            "type": "boolean"
          }
        },
        "required": [
          "source",
          "target",
          "route",
          "index",
          "completed",
          "chrfpp",
          "hypothesis"
        ]
      },
      "FileModelComparison": {
        "type": "object",
        "description": "Per-language file-mode Whisper Small and large-v3-turbo comparison on matched additional recordings. Each CER is the sum of model character edits divided by the sum of reference characters.",
        "properties": {
          "recordings": {
            "type": "integer",
            "minimum": 1
          },
          "reference_chars": {
            "type": "integer",
            "minimum": 1
          },
          "small_char_edits": {
            "type": "integer",
            "minimum": 0
          },
          "turbo_char_edits": {
            "type": "integer",
            "minimum": 0
          },
          "small_cer": {
            "type": "number",
            "minimum": 0
          },
          "turbo_cer": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "recordings",
          "reference_chars",
          "small_char_edits",
          "turbo_char_edits",
          "small_cer",
          "turbo_cer"
        ]
      },
      "ConcurrencyCurrent": {
        "type": "object",
        "required": ["project", "at_ms", "active", "by_scope"],
        "properties": {
          "project": {
            "type": "string"
          },
          "at_ms": {
            "type": "integer",
            "minimum": 0
          },
          "active": {
            "type": "integer",
            "minimum": 0
          },
          "by_scope": {
            "type": "object",
            "required": ["listen", "speech", "interpret"],
            "properties": {
              "listen": {
                "type": "integer",
                "minimum": 0
              },
              "speech": {
                "type": "integer",
                "minimum": 0
              },
              "interpret": {
                "type": "integer",
                "minimum": 0
              }
            }
          }
        }
      },
      "ConcurrencyChange": {
        "type": "object",
        "required": [
          "event_id",
          "stream_id",
          "scope",
          "at_ms",
          "event",
          "reason",
          "active"
        ],
        "properties": {
          "event_id": {
            "type": "integer",
            "minimum": 0
          },
          "stream_id": {
            "type": "string"
          },
          "scope": {
            "enum": ["listen", "interpret", "speech"]
          },
          "at_ms": {
            "type": "integer",
            "minimum": 0
          },
          "event": {
            "enum": ["opened", "closed"]
          },
          "reason": {
            "enum": [
              null,
              "completed",
              "disconnected",
              "failed",
              "shutdown",
              "interrupted"
            ]
          },
          "active": {
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "ConcurrencyHistory": {
        "type": "object",
        "required": ["project", "start", "end", "items", "next_before"],
        "properties": {
          "project": {
            "type": "string"
          },
          "start": {
            "type": "integer",
            "minimum": 0
          },
          "end": {
            "type": "integer",
            "minimum": 0
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConcurrencyChange"
            }
          },
          "next_before": {
            "type": ["string", "null"]
          }
        }
      },
      "DailyUsage": {
        "type": "object",
        "required": ["project", "start", "end", "items"],
        "properties": {
          "project": {
            "type": "string"
          },
          "start": {
            "type": "integer",
            "minimum": 0
          },
          "end": {
            "type": "integer",
            "minimum": 0
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "day",
                "kind",
                "settled_units",
                "reserved_units",
                "refunded_units",
                "requests"
              ],
              "properties": {
                "day": {
                  "type": "string",
                  "format": "date"
                },
                "kind": {
                  "type": "string"
                },
                "settled_units": {
                  "type": "integer",
                  "minimum": 0
                },
                "reserved_units": {
                  "type": "integer",
                  "minimum": 0
                },
                "refunded_units": {
                  "type": "integer",
                  "minimum": 0
                },
                "requests": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            }
          }
        }
      },
      "MonthlyOrganizationUsage": {
        "type": "object",
        "required": [
          "organization",
          "month",
          "start",
          "end_exclusive",
          "monthly_limit",
          "remaining_units",
          "totals",
          "projects"
        ],
        "properties": {
          "organization": {
            "type": "string"
          },
          "month": {
            "type": "string",
            "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$"
          },
          "start": {
            "type": "integer",
            "minimum": 0
          },
          "end_exclusive": {
            "type": "integer",
            "minimum": 0
          },
          "monthly_limit": {
            "type": ["integer", "null"],
            "minimum": 0
          },
          "remaining_units": {
            "type": ["integer", "null"],
            "minimum": 0
          },
          "totals": {
            "type": "object",
            "required": [
              "settled_units",
              "reserved_units",
              "refunded_units",
              "requests"
            ],
            "properties": {
              "settled_units": {
                "type": "integer",
                "minimum": 0
              },
              "reserved_units": {
                "type": "integer",
                "minimum": 0
              },
              "refunded_units": {
                "type": "integer",
                "minimum": 0
              },
              "requests": {
                "type": "integer",
                "minimum": 0
              }
            }
          },
          "projects": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "project",
                "name",
                "quota",
                "settled_units",
                "reserved_units",
                "refunded_units",
                "requests",
                "remaining_units"
              ],
              "properties": {
                "project": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "quota": {
                  "type": "integer",
                  "minimum": 0
                },
                "settled_units": {
                  "type": "integer",
                  "minimum": 0
                },
                "reserved_units": {
                  "type": "integer",
                  "minimum": 0
                },
                "refunded_units": {
                  "type": "integer",
                  "minimum": 0
                },
                "requests": {
                  "type": "integer",
                  "minimum": 0
                },
                "remaining_units": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            }
          }
        }
      },
      "ProcessingUsageEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "units": {
            "type": "integer",
            "minimum": 0,
            "description": "Credits recorded for this request; the status indicates whether they were reserved, settled or refunded."
          },
          "created": {
            "type": "integer",
            "description": "Unix timestamp in seconds."
          },
          "status": {
            "type": "string",
            "enum": [
              "reserved",
              "settled",
              "refunded"
            ]
          },
          "credits_per_second": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1,
            "description": "Audio rate recorded at reservation time. Null for text operations and older records without a saved rate."
          },
          "audio_seconds": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "description": "Funded seconds while reserved, billed input seconds after settlement, or zero after a refund. Null for text operations and older records without a saved rate."
          }
        },
        "required": [
          "id",
          "kind",
          "units",
          "created",
          "status",
          "credits_per_second",
          "audio_seconds"
        ]
      },
      "MeteringRates": {
        "type": "object",
        "description": "Processing unit rates returned by the active server.",
        "properties": {
          "file_credits_per_second": {
            "type": "integer",
            "minimum": 1,
            "description": "Credits per started second of file audio."
          },
          "live_credits_per_second": {
            "type": "integer",
            "minimum": 1,
            "description": "Credits per started second of accepted live audio on listen and interpret."
          },
          "text_characters_per_credit": {
            "type": "integer",
            "minimum": 1,
            "description": "Unicode code points per credit for translation, synthesis and other metered text. Partial blocks round up per call."
          },
          "voice_setup_credits_per_second": {
            "type": "integer",
            "minimum": 1,
            "description": "Credits per billed second of a voice verification or preparation sample."
          }
        },
        "required": [
          "file_credits_per_second",
          "live_credits_per_second",
          "text_characters_per_credit",
          "voice_setup_credits_per_second"
        ],
        "example": {
          "file_credits_per_second": 1,
          "live_credits_per_second": 5,
          "text_characters_per_credit": 100,
          "voice_setup_credits_per_second": 1
        }
      },
      "StreamCapacity": {
        "type": "object",
        "required": [
          "live_slots_per_installation",
          "voice_slots_per_installation",
          "capture_slots_per_identity",
          "max_synthesis_lanes_per_socket",
          "max_live_seconds",
          "live_input_idle_seconds",
          "max_live_frame_bytes"
        ],
        "properties": {
          "live_slots_per_installation": {
            "type": "integer",
            "minimum": 1,
            "example": 2
          },
          "voice_slots_per_installation": {
            "type": "integer",
            "minimum": 1,
            "example": 3
          },
          "capture_slots_per_identity": {
            "type": "integer",
            "minimum": 1,
            "example": 1
          },
          "max_synthesis_lanes_per_socket": {
            "type": "integer",
            "minimum": 1,
            "example": 2
          },
          "max_live_seconds": {
            "type": "integer",
            "minimum": 1,
            "example": 3600
          },
          "live_input_idle_seconds": {
            "type": "integer",
            "minimum": 1,
            "example": 45,
            "description": "Maximum interval without accepted binary input audio for live capture. Control frames do not reset this timer."
          },
          "max_live_frame_bytes": {
            "type": "integer",
            "minimum": 1,
            "example": 128000
          }
        }
      },
      "ResourceCount": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": ["count"]
      },
      "ReviewedSegment": {
        "type": "object",
        "properties": {
          "i": {
            "type": "integer",
            "minimum": 0
          },
          "start": {
            "type": "number",
            "minimum": 0
          },
          "end": {
            "type": "number",
            "minimum": 0
          },
          "text": {
            "type": "string"
          },
          "language": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LanguageCode"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["i", "start", "end", "text"]
      },
      "ReviewedTranscript": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          },
          "text": {
            "type": "string"
          },
          "language": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LanguageCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "segments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReviewedSegment"
            }
          }
        },
        "required": ["id", "revision", "text", "segments"]
      },
      "ProjectKeyMetadata": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "created": {
            "type": "integer",
            "minimum": 0
          },
          "expires": {
            "type": ["integer", "null"],
            "minimum": 0
          }
        },
        "required": ["id", "name", "created", "expires"]
      },
      "IssuedProjectKey": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "expires_in": {
            "type": ["integer", "null"],
            "minimum": 0
          }
        },
        "required": ["id", "key", "expires_in"]
      },
      "OrganizationKeyScope": {
        "type": "string",
        "enum": ["organization:read", "project-keys:manage"]
      },
      "CreateOrganizationKey": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "scope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OrganizationKeyScope"
              }
            ],
            "default": "organization:read"
          }
        },
        "required": ["name"]
      },
      "IssuedOrganizationKey": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "scope": {
            "$ref": "#/components/schemas/OrganizationKeyScope"
          }
        },
        "required": ["key", "scope"]
      },
      "OrganizationKeyMetadata": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "created": {
            "type": "integer",
            "minimum": 0
          },
          "scope": {
            "$ref": "#/components/schemas/OrganizationKeyScope"
          }
        },
        "required": ["id", "name", "created", "scope"]
      },
      "ScribePreset": {
        "type": "string",
        "enum": ["summary", "actions", "key_points", "quotes", "entities"]
      },
      "RecordingAnalysisTask": {
        "type": "string",
        "enum": [
          "summary",
          "actions",
          "key_points",
          "quotes",
          "entities",
          "speaker_summaries",
          "translation"
        ]
      },
      "ScribeEvidence": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "start_char": {
            "type": "integer",
            "minimum": 0
          },
          "end_char": {
            "type": "integer",
            "minimum": 0
          },
          "entity_type": {
            "type": "string",
            "enum": ["email", "url", "date", "percentage", "amount"]
          }
        },
        "required": ["text", "start_char", "end_char"],
        "description": "Exact source excerpt with half-open Unicode code-point offsets. entity_type is emitted by the entities preset."
      },
      "AnalysisPassage": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "segments": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0
            }
          },
          "start": {
            "type": "number",
            "minimum": 0
          },
          "end": {
            "type": "number",
            "minimum": 0
          },
          "start_char": {
            "type": "integer",
            "minimum": 0
          },
          "end_char": {
            "type": "integer",
            "minimum": 0
          },
          "speaker": {
            "type": "string"
          },
          "entity_type": {
            "type": "string",
            "enum": ["email", "url", "date", "percentage", "amount"]
          }
        },
        "required": ["text", "segments", "start", "end"],
        "description": "Audio time in seconds and source segment indices. Extracted evidence includes half-open Unicode code-point offsets within the referenced reviewed segment. Speaker summaries include the acoustic speaker label. Translated text has time and segment references."
      },
      "AnalysisResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "revision": {
            "type": "integer",
            "minimum": 0
          },
          "output": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnalysisPassage"
            }
          }
        },
        "required": ["id", "revision", "output"]
      },
      "SavedAnalysis": {
        "allOf": [
          {
            "$ref": "#/components/schemas/AnalysisResult"
          },
          {
            "type": "object",
            "properties": {
              "task": {
                "$ref": "#/components/schemas/RecordingAnalysisTask"
              },
              "target": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "created": {
                "type": "integer",
                "minimum": 0
              },
              "quality": {
                "$ref": "#/components/schemas/RecordingTranslationQuality"
              }
            },
            "required": ["task", "target", "source", "created", "quality"]
          }
        ]
      },
      "RecordingTranslationQuality": {
        "type": "string",
        "enum": ["auto", "balanced", "thorough"],
        "default": "balanced",
        "description": "For saved translations, auto chooses a primary model per segment from its source and target languages. Balanced and thorough explicitly select their tiers. Each choice has its own saved result. Omitting quality selects balanced."
      },
      "TranslationQuality": {
        "type": "string",
        "enum": ["balanced", "thorough"],
        "default": "balanced",
        "description": "Balanced uses the local M2M100/OPUS routes and can recover a decoding failure with installed MADLAD. Thorough selects the larger local MADLAD-400 int8 decoder up front. Both accept the shared 60-language catalog."
      },
      "StockVoiceComparison": {
        "type": "object",
        "properties": {
          "language": {
            "$ref": "#/components/schemas/LanguageCode"
          },
          "indices": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0
            }
          },
          "reference_chars": {
            "type": "integer",
            "minimum": 0
          },
          "formant": {
            "type": "object",
            "properties": {
              "char_edits": {
                "type": "integer",
                "minimum": 0
              },
              "cer": {
                "type": "number",
                "minimum": 0
              }
            },
            "required": ["char_edits", "cer"]
          },
          "variants": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "voice": {
                  "type": "string"
                },
                "engine": {
                  "type": "string"
                },
                "native": {
                  "type": "boolean"
                },
                "reference_chars": {
                  "type": "integer",
                  "minimum": 0
                },
                "char_edits": {
                  "type": "integer",
                  "minimum": 0
                },
                "cer": {
                  "type": "number",
                  "minimum": 0
                },
                "wins": {
                  "type": "integer",
                  "minimum": 0
                },
                "selection": {
                  "type": "string"
                }
              },
              "required": [
                "voice",
                "engine",
                "native",
                "reference_chars",
                "char_edits",
                "cer",
                "wins",
                "selection"
              ]
            }
          },
          "default_voice": {
            "type": "string"
          }
        },
        "required": [
          "language",
          "indices",
          "reference_chars",
          "formant",
          "variants",
          "default_voice"
        ],
        "description": "Held-out synthetic-waveform ASR readback. CER can exceed 1 when inserted characters outnumber the reference. Selection reflects the evaluated stock default or preview."
      },
      "TranslationRouteComparison": {
        "type": "object",
        "properties": {
          "pivot_selected": {
            "type": "boolean"
          },
          "passages": {
            "type": "integer",
            "minimum": 0
          },
          "direct_chrfpp": {
            "type": "number",
            "minimum": 0
          },
          "english_pivot_chrfpp": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "pivot_selected",
          "passages",
          "direct_chrfpp",
          "english_pivot_chrfpp"
        ]
      },
      "QualityModeStatistics": {
        "type": "object",
        "properties": {
          "completed": {
            "type": "integer",
            "minimum": 0
          },
          "mean_chrfpp": {
            "type": "number",
            "minimum": 0
          },
          "median_chrfpp": {
            "type": "number",
            "minimum": 0
          },
          "median_seconds": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "completed",
          "mean_chrfpp",
          "median_chrfpp",
          "median_seconds"
        ]
      },
      "QualityPanelStatistics": {
        "type": "object",
        "properties": {
          "passages": {
            "type": "integer",
            "minimum": 0
          },
          "directions": {
            "type": "integer",
            "minimum": 0
          },
          "balanced": {
            "$ref": "#/components/schemas/QualityModeStatistics"
          },
          "thorough": {
            "$ref": "#/components/schemas/QualityModeStatistics"
          },
          "thorough_higher": {
            "type": "integer",
            "minimum": 0
          },
          "balanced_higher": {
            "type": "integer",
            "minimum": 0
          },
          "tied": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "passages",
          "directions",
          "balanced",
          "thorough",
          "thorough_higher",
          "balanced_higher",
          "tied"
        ]
      },
      "TranslationPanels": {
        "type": "object",
        "properties": {
          "measured_directions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "source": {
                  "$ref": "#/components/schemas/LanguageCode"
                },
                "target": {
                  "$ref": "#/components/schemas/LanguageCode"
                },
                "madlad": {
                  "type": "boolean"
                },
                "opus": {
                  "type": "boolean"
                }
              },
              "required": ["source", "target", "madlad", "opus"]
            }
          },
          "primary": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QualityPanelStatistics"
              },
              {
                "type": "null"
              }
            ]
          },
          "followup": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QualityPanelStatistics"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["measured_directions", "primary", "followup"],
        "description": "One independently selected passage per primary direction. Follow-ups are separate passages in the lowest-scoring balanced directions. Values are mean or median sentence chrF++ and local elapsed seconds."
      },
      "GrantedVoiceReadback": {
        "type": "object",
        "properties": {
          "corpus": {
            "type": "string"
          },
          "sentence": {
            "type": "integer",
            "minimum": 0
          },
          "stock_engine": {
            "type": "string"
          },
          "stock_voice": {
            "type": "string"
          },
          "converter": {
            "type": "string"
          },
          "grant_kind": {
            "const": "synthetic-demo"
          },
          "duration_seconds": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "http_status": {
            "type": "integer",
            "minimum": 0
          },
          "above_minus_60_dbfs": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "asr_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "reference_chars": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "char_edits": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "cer": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "human_similarity_score": {
            "type": "null"
          }
        },
        "required": [
          "corpus",
          "sentence",
          "stock_engine",
          "stock_voice",
          "converter",
          "grant_kind",
          "duration_seconds",
          "http_status",
          "above_minus_60_dbfs",
          "asr_model",
          "reference_chars",
          "char_edits",
          "cer",
          "human_similarity_score"
        ],
        "description": "One granted synthetic voice on a public passage. The ASR score is character edit distance divided by reference length and may exceed one. Human speaker similarity is unmeasured."
      },
      "MeasuredTranslation": {
        "type": "object",
        "properties": {
          "completed": {
            "type": "boolean"
          },
          "seconds": {
            "type": "number",
            "minimum": 0
          },
          "chrfpp": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": ["completed", "seconds", "chrfpp"]
      },
      "QualityPassageComparison": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "minimum": 0
          },
          "cohort": {
            "enum": ["primary", "weak-balanced-followup"]
          },
          "balanced": {
            "$ref": "#/components/schemas/MeasuredTranslation"
          },
          "thorough": {
            "$ref": "#/components/schemas/MeasuredTranslation"
          }
        },
        "required": ["index", "cohort", "balanced", "thorough"]
      },
      "OpusComparison": {
        "type": "object",
        "properties": {
          "candidate_model": {
            "type": "string"
          },
          "passages": {
            "type": "integer",
            "minimum": 0
          },
          "indices": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0
            }
          },
          "m2m100_mean_chrf": {
            "type": "number",
            "minimum": 0
          },
          "opus_mean_chrf": {
            "type": "number",
            "minimum": 0
          },
          "opus_higher": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "candidate_model",
          "passages",
          "indices",
          "m2m100_mean_chrf",
          "opus_mean_chrf",
          "opus_higher"
        ],
        "description": "Pinned OPUS checkpoint vs M2M100 on identical public passages. Scores are means of sentence chrF (character n-grams). The candidate experiment measures reference agreement."
      },
      "NarrationPhrase": {
        "type": "object",
        "properties": {
          "language": {
            "$ref": "#/components/schemas/LanguageCode"
          },
          "voice": {
            "type": ["string", "null"],
            "maxLength": 64,
            "description": "Stock voice ID, or omit to use the language default."
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          }
        },
        "required": ["language", "text"]
      },
      "NarrationResult": {
        "type": "object",
        "properties": {
          "format": {
            "type": "string",
            "const": "wav"
          },
          "sample_rate": {
            "type": "integer",
            "const": 24000
          },
          "frames": {
            "type": "integer",
            "minimum": 0
          },
          "duration": {
            "type": "number",
            "minimum": 0
          },
          "audio_base64": {
            "type": "string",
            "contentEncoding": "base64",
            "contentMediaType": "audio/wav"
          },
          "cues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string"
                },
                "language": {
                  "$ref": "#/components/schemas/LanguageCode"
                },
                "voice": {
                  "type": ["string", "null"]
                },
                "source_rate": {
                  "type": "integer",
                  "minimum": 0
                },
                "start_frame": {
                  "type": "integer",
                  "minimum": 0
                },
                "end_frame": {
                  "type": "integer",
                  "minimum": 0
                },
                "start": {
                  "type": "number",
                  "minimum": 0
                },
                "end": {
                  "type": "number",
                  "minimum": 0
                },
                "word_status": {
                  "type": "string",
                  "enum": [
                    "all_matched",
                    "partially_matched",
                    "unmatched",
                    "unsegmented_source",
                    "recognition_unavailable"
                  ]
                },
                "words": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string"
                      },
                      "start_char": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "end_char": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "start": {
                        "type": ["number", "null"]
                      },
                      "end": {
                        "type": ["number", "null"]
                      }
                    },
                    "required": [
                      "text",
                      "start_char",
                      "end_char",
                      "start",
                      "end"
                    ]
                  }
                }
              },
              "required": [
                "text",
                "language",
                "source_rate",
                "start_frame",
                "end_frame",
                "start",
                "end"
              ]
            }
          }
        },
        "required": [
          "format",
          "sample_rate",
          "frames",
          "duration",
          "audio_base64",
          "cues"
        ],
        "description": "Sample-accurate phrase boundaries use start-inclusive/end-exclusive output WAV frame indices at 24 kHz. Optional word seconds are ASR estimates. Missing or unsegmented words carry null seconds."
      }
    },
    "securitySchemes": {
      "memberSession": {
        "type": "apiKey",
        "in": "cookie",
        "name": "velosyll_session",
        "description": "HttpOnly member session issued at sign-in after email verification."
      },
      "projectKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Project API key created by a workspace owner."
      },
      "organizationKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Organization-scoped bearer credential issued by a workspace owner. organization:read permits reporting and project-key listing. project-keys:manage also permits issuance and revocation of project keys in that organization."
      },
      "stripeSignature": {
        "type": "apiKey",
        "in": "header",
        "name": "Stripe-Signature",
        "description": "Stripe signature generated with the configured environment’s webhook secret over the complete raw JSON body."
      }
    },
    "responses": {
      "Invalid": {
        "description": "Invalid fields, input or media.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Valid credentials required.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Insufficient permission for this operation.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "The requested resource is absent or unavailable to this project.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Payment": {
        "description": "Insufficient credit balance.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Conflict": {
        "description": "The resource state, revision, upload offset or local processing capacity conflicts with this operation.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Limit": {
        "description": "The project or installation reached a usage limit.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Size": {
        "description": "The supplied data exceeds the transfer limit.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unavailable": {
        "description": "A local inference component or configured provider is unavailable.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "/",
      "description": "Current local Velosyll server"
    }
  ],
  "x-websockets": {
    "authentication": "Studio endpoints require a member session cookie, project bearer token, or a short-lived scope-matched key in the initial JSON configuration. Mint short-lived keys at /v1/client-tokens.",
    "endpoints": {
      "/v1/listen": {
        "scope": "listen",
        "configuration": [
          "language",
          "vocabulary",
          "diarization",
          "echo_reference",
          "key",
          "refine_finals"
        ],
        "input": "16 kHz signed little-endian mono PCM or JSON ping, commit, playback_reference, finish.",
        "output": "JSON ready, partial, final, pong, committed, error or done. The done event includes the persisted recording id.",
        "done_event": {
          "type": "object",
          "properties": {
            "type": {
              "const": "done"
            },
            "id": {
              "type": "string",
              "description": "ID of the saved recording."
            },
            "stop_reason": {
              "type": "string",
              "enum": [
                "input_timeout",
                "session_limit",
                "funding_limit"
              ],
              "description": "Optional on done when the server ends capture after input inactivity, the session duration limit, or a credit or quota restriction. Omitted for ordinary client finish. Receiving an error ends a failed session."
            }
          },
          "required": [
            "type",
            "id"
          ]
        },
        "refine_finals": {
          "type": "boolean",
          "description": "True refines each completed turn with a second pass. False keeps the live model for ordinary finals. When omitted, the recording service can enable refinement on qualified hardware for a known language. On a four-thread Apple M4 Pro using STT_DEVICE=mps, ordinary microphone recordings explicitly marked he use Small for partials and ivrit.ai for finals. Automatic language detection, custom vocabulary, diarization and other unqualified configurations use the fast default."
        }
      },
      "/v1/speech/stream": {
        "scope": "speech",
        "configuration": ["language", "voice", "key", "multiplex"],
        "input": "JSON text, flush and finish commands.",
        "output": "JSON ready, audio_start, audio_end, error and done interleaved with binary PCM16 blocks. Read the sample rate in audio_start.",
        "multiplex": {
          "enabled_by": {
            "multiplex": true
          },
          "ready": {
            "type": "ready",
            "sample_rate": "number",
            "multiplex": true,
            "max_streams": 2,
            "audio_transport": "json_base64"
          },
          "stream_id": "New 1–64 ASCII letters, digits, underscores or hyphens; up to 256 IDs per connection.",
          "commands": {
            "open": ["stream_id", "language?", "voice?"],
            "text": ["stream_id", "text"],
            "flush": ["stream_id"],
            "cancel": ["stream_id"],
            "finish": ["stream_id?"]
          },
          "events": {
            "opened": ["stream_id", "language", "voice?", "sample_rate"],
            "audio_start": [
              "stream_id",
              "id",
              "language",
              "sample_rate",
              "format",
              "channels"
            ],
            "audio_chunk": ["stream_id", "id", "pcm (base64 s16le)"],
            "audio_end": ["stream_id", "id"],
            "stream_done": ["stream_id"],
            "cancelled": ["stream_id"],
            "stream_error": ["stream_id", "message"],
            "command_error": ["stream_id?", "message"],
            "done": []
          },
          "limits": {
            "concurrent_streams": 2,
            "pending_characters_per_stream": 3000,
            "buffered_characters_per_stream": 6000,
            "characters_per_connection": 30000
          },
          "completion": "A scoped finish drains one stream. An unscoped finish drains all streams and closes the connection. Cancelling interrupts outstanding synthesis and discards buffered text. Already-delivered phrases retain their charges."
        }
      },
      "/v1/interpret": {
        "scope": "interpret",
        "configuration": [
          "language_a",
          "language_b",
          "voice_a",
          "voice_b",
          "source",
          "key",
          "refine_finals",
          "vocabulary",
          "echo_reference",
          "translation_quality"
        ],
        "input": "16 kHz signed little-endian mono PCM, with ping, commit or finish controls. Enable echo_reference in the opening message to accept playback_reference.",
        "output": "JSON ready, provisional/final source text, translation or untranslated, optional pong/committed, audio_start/audio_end, and done or error. Translation and target speech follow a recognized final turn; binary PCM uses the announced synthesis sample rate.",
        "done_event": {
          "type": "object",
          "properties": {
            "type": {
              "const": "done"
            },
            "stop_reason": {
              "type": "string",
              "enum": [
                "input_timeout",
                "session_limit",
                "funding_limit"
              ],
              "description": "Optional on done when the server ends capture after input inactivity, the session duration limit, or a credit or quota restriction. Omitted for ordinary client finish. Receiving an error ends a failed session."
            }
          },
          "required": [
            "type"
          ]
        },
        "refine_finals": {
          "type": "boolean",
          "default": false,
          "description": "Opt in to the local refined final decoding pass. Provisional tokens continue on the live decoding path. Refined finals may use a different model and arrive later; the selected local backend and language determine quality."
        },
        "translation_quality": {
          "type": "string",
          "enum": ["balanced", "thorough"],
          "default": "balanced",
          "description": "Balanced uses the local M2M100/OPUS routes and can recover a decoding failure with installed MADLAD. Thorough selects the larger local MADLAD-400 int8 decoder up front. Both accept the shared 60-language catalog. This opening-message field applies to translated final turns. It is independent of refine_finals for speech recognition."
        }
      }
    }
  }
}
