Skip to content

Runta

Configure the TypeScript SDK client and access runtime, secret, and checkpoint operations.

class Runta
new Runta(config: RuntaConfig = {}): Runta
Name Type Default Description
config RuntaConfig {} Client or secret-injection configuration.
  • Runta
Name Type Description
endpoint string Resolved Runta API endpoint.
token string Bearer token used for authentication.
checkpoints CheckpointManager Tenant checkpoint lookup and deletion operations.
runtimes RuntimeManager Runtime creation, lookup, and listing operations.
secrets SecretManager Tenant secret and default secret-stub operations.

Release resources held by the client.

Runta.close(): Promise<void>
  • Promise<void>

Return whether the Runta API is reachable.

Runta.health(): Promise<boolean>
  • Promise<boolean>
const client = new Runta();
if (!(await client.health())) throw new Error("Runta API is unavailable");
  • AsyncRunta extends Runta for cross-SDK naming compatibility. All TypeScript operations already return promises; use Runta for new code.