Client
TypeScript SDK
One client object. Fourteen namespaces. The same lifecycle everywhere it applies.
@ultrahost/sdk is the framework-independent TypeScript client. React hooks and the admin client are separate packages that share its types and transport. See Packages.
import { createClient } from "@ultrahost/sdk";
const ultrahost = createClient({
projectId: "my-project",
token: userAccessToken
});Namespaces
| Namespace | Building block |
|---|---|
ultrahost.documents | Document Database |
ultrahost.timeseries | Timeseries Database |
ultrahost.cron | Cron |
ultrahost.llm | LLM Plane |
ultrahost.vectors | Vector DB |
ultrahost.contracts | Schemas & Ontology Versioning |
ultrahost.search | Search Engine |
ultrahost.auth | Federated Auth & User Management |
ultrahost.authorization | Authorization Layer |
ultrahost.sessions | Session Storage for Agents |
ultrahost.files | File Server |
ultrahost.rag | RAG |
ultrahost.graph | Graph DB |
ultrahost.functions | Custom Functions |
ultrahost.projects | Projects & operations |
ultrahost.operations | Projects & operations |
ultrahost.system | Projects & operations |
projects, operations, and system are platform helpers, not extra building blocks.
What the client hides
The client sets the project path, sends the caller credential, attaches idempotency keys on mutations, and follows operation ids. Application code passes resource names and the payload for the call.
The client does not bypass authorization. A method that exists on the object can still fail when the token lacks permission. That is intentional: one typed surface, enforced on the server.
Method names
| Situation | Pattern | Example |
|---|---|---|
| One resource type in the namespace | Short verb | cron.create(name, config) |
| Several resource types | Verb plus type | documents.createCollection(name, config?) |
| Run something now | A verb that says so | functions.invoke(name, input?) |
Each building block page lists the full method set.