Skip to content
OAOpenAppPhysical Security as a Service
Login

TypeScript SDK

The OpenApp TypeScript SDK (@tomers/openapp-sdk) is the official Node.js client. It ships OpenAPI-generated types plus an async AsyncClient over the shared core bridge.

Package registrynpm @tomers/openapp-sdk
Published packagenpm (package files)
Issuesnpm package issues · GitHub issues

Sources ship with the npm tarball (types in dist/). There is no separate public GitHub mirror tree for this package today.

Terminal window
npm install @tomers/openapp-sdk

Requires Node.js 20+ and an OpenApp API key.

import { AsyncClient } from "@tomers/openapp-sdk";
const client = new AsyncClient(process.env.OPENAPP_API_KEY!);
try {
const orgs = await client.orgs.list();
console.log(orgs);
} finally {
client.close();
}
import { AsyncClient } from "@tomers/openapp-sdk";
const client = new AsyncClient(process.env.OPENAPP_API_KEY!);
const created = await client.orgs.create("Example Org");
const org = await client.orgs.get("org_123");
const devices = await client.devices.list("org_123");
const plan = await client.billing.plan("org_123");
const invites = await client.me.invitations();
client.close();
import { AsyncClient, ApiError, AuthError } from "@tomers/openapp-sdk";
const client = new AsyncClient(process.env.OPENAPP_API_KEY!);
try {
await client.orgs.list();
} catch (err) {
if (err instanceof AuthError) {
console.error("Authentication failed:", err.message);
} else if (err instanceof ApiError) {
console.error("API error:", err.message, err.code);
} else {
console.error("Unexpected error:", err);
}
} finally {
client.close();
}

The package exports OpenAPI-aligned TypeScript types in addition to the runtime client:

import type { paths } from "@tomers/openapp-sdk";

Cross-language topics (TypeScript examples appear where the façade exposes the operation):

Some resources are not on the high-level AsyncClient façade yet; use the shared transport patterns documented on the resource pages or another SDK for full coverage.

HTTP contract: API reference · OpenAPI JSON