@terrantula/sdk is the official TypeScript client for the Terrantula API. It wraps every project-scoped and org-scoped route with typed methods backed by the Hono RPC client.
createClient returns a typed client object with top-level namespaces for every resource:
| Namespace | Resource |
|---|---|
client.orgs | Organizations |
client.projects | Projects within an org |
client.entities | Entities (project-scoped, optionally filtered to one import source) |
client.entityTypes | Entity type catalog |
client.cells | Cells |
client.relationships | Relationships (project-scoped) |
client.relationshipTypes | Relationship type catalog |
client.actions | Actions |
client.actionRuns | Action run records |
client.secrets | Secrets (project-scoped) |
client.apply | Catalog apply |
client.catalogRevisions | Catalog revision history |
client.auditEvents | Audit log |
client.driftEvents | Drift detection events |
client.stats | Project statistics |
client.graphViews | Saved graph views |
client.notifications | Notifications |
client.auditExport | Audit export configuration |
client.userPreferences | User preferences |
client.importSources | Import source configuration |
client.exportCatalog | Catalog export |
client.admin | Admin-only operations |
client.github | GitHub App integration |
TerrantulaError, withSchemaThere is no published symbol-level reference right now. It was generated with TypeDoc, whose supported TypeScript range stops before 7.x, so it was dropped when this repo moved to TypeScript 7; replacement tooling is deferred to a later docs pass.
Until then, the authoritative surface is the .d.ts bundled with the package — bun add @terrantula/sdk and your editor resolves every exported type, interface, and function from node_modules/@terrantula/sdk.