Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/src/cloud/_gen/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
18 changes: 18 additions & 0 deletions packages/cli/src/cloud/_gen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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 {
Expand Down
Loading