TypeScript client for the enum API.
npm install @enumco/clientimport { createClient } from "@enumco/client";
const client = createClient({ token: "your-api-token" });
const { users } = await client.users.listUsers({});
const { organization } = await client.organizations.getOrganization({ id: "org-123" });
const { project } = await client.projects.getProject({ id: "proj-456" });| Property | Service |
|---|---|
client.users |
UserService |
client.organizations |
OrganizationService |
client.projects |
ProjectService |
client.regions |
RegionService |
client.dns |
DnsService |
client.kubernetes.clusters |
KubernetesClusterService |
client.storage.users |
ObjectStorageUserService |
client.storage.accessKeys |
ObjectStorageAccessKeyService |
client.storage.buckets |
ObjectStorageBucketService |
client.storage.policies |
ObjectStorageUserPolicyService |
client.serviceAccounts |
ServiceAccountService |
| Option | Description |
|---|---|
token |
Bearer token for authentication |
baseUrl |
Override the API endpoint (default: https://api.enum.co) |
See enum Docs.