MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / submitRender

Function submitRender

packages/cli/src/commands/cloud/render.ts:604–614  ·  view source on GitHub ↗
(
  client: HyperframesCloudClient,
  opts: SubmitOptions,
)

Source from the content-addressed store, hash-verified

602}
603
604async function submitRender(
605 client: HyperframesCloudClient,
606 opts: SubmitOptions,
607): Promise<{ render_id: string }> {
608 const body = buildRenderBody(opts);
609 try {
610 return await client.createRender({ body, idempotencyKey: opts.idempotencyKey });
611 } catch (err) {
612 reportApiError("Submit failed", err);
613 }
614}
615
616// fallow-ignore-next-line complexity
617function buildRenderBody(opts: SubmitOptions): CreateHyperframesRenderRequest {

Callers 1

runFunction · 0.85

Calls 3

buildRenderBodyFunction · 0.85
reportApiErrorFunction · 0.85
createRenderMethod · 0.80

Tested by

no test coverage detected