From 3d03746c72ef4ab3c03ccd8758f3a9eb51391e21 Mon Sep 17 00:00:00 2001 From: heygen-rui-bot Date: Thu, 22 Oct 2026 02:54:28 +0300 Subject: [PATCH] codegen: resync cloud client from EF dcdadb9a --- packages/cli/src/cloud/_gen/client.ts | 2 +- packages/cli/src/cloud/_gen/types.ts | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/cloud/_gen/client.ts b/packages/cli/src/cloud/_gen/client.ts index d4b523fd4de..b8863c6de5c 100644 --- a/packages/cli/src/cloud/_gen/client.ts +++ b/packages/cli/src/cloud/_gen/client.ts @@ -204,7 +204,7 @@ export class HyperframesCloudClient { /** * Upload Asset * - * Uploads a file (image, video, audio, PDF, or SRT subtitle) and returns an asset_id for use in other endpoints. Max 32 MB. Supported types: png, jpeg, mp4, webm, mp3, wav, pdf, srt. + * Uploads a file (image, video, audio, PDF, or SRT subtitle) and returns an asset_id for use in other endpoints. Max 50 MB, or 32 MB for an image. Supported types: png, jpeg, mp4, webm, mp3, wav, pdf, srt. A file is checked against the content policy after it is uploaded; if it is blocked, the asset is removed and later requests for it return not found. */ async uploadAsset(args: { file: Blob | Buffer | Uint8Array; diff --git a/packages/cli/src/cloud/_gen/types.ts b/packages/cli/src/cloud/_gen/types.ts index 999e31001d6..c138487f4c2 100644 --- a/packages/cli/src/cloud/_gen/types.ts +++ b/packages/cli/src/cloud/_gen/types.ts @@ -174,6 +174,12 @@ export interface CreateHyperframesRenderRequest { * Output container/codec. */ format?: "mp4" | "webm" | "mov"; + /** + * Overrides the quality preset's constant rate factor (lower is higher quality + * and a larger file). Integer 0-51 for mp4, 0-63 for webm; ignored for mov. + * Omit to use the preset's CRF. + */ + crf?: number | null; /** * Output resolution tier. Defaults to '1080p'. Pass '4k' for 4K renders * (billed at 1.5x). @@ -305,6 +311,13 @@ export interface HyperframesRenderDetail { * Error description. Present only when status is 'failed'. */ failure_message?: string | null; + /** + * Why billing refused a finished render: 'hf_usage_exhausted', + * 'hf_subscription_required' or 'api_key_required'. Present only when status + * is 'failed' for that reason; nothing was charged, so the render can be sent + * again on a HeyGen API key. + */ + failure_code?: string | null; } /** @@ -339,6 +352,11 @@ export interface StandardAPIError { * errors by node). */ errors?: Array; + /** + * Request identifier, also returned in the X-HeyGen-Request-Id response + * header. Include it when contacting support. + */ + request_id?: string; } export interface StandardAPIErrorDetail {