codegen: resync cloud client from EF 58de81bf

This commit is contained in:
heygen-rui-bot
2026-10-22 01:52:34 +03:00
committed by GitHub
parent 4371981b74
commit 6ccc94d4f2
2 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -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;
+18
View File
@@ -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<StandardAPIErrorDetail>;
/**
* Request identifier, also returned in the X-HeyGen-Request-Id response
* header. Include it when contacting support.
*/
request_id?: string;
}
export interface StandardAPIErrorDetail {