Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

enum TypeScript API Client

TypeScript client for the enum API.

Installation

npm install @enumco/client

Usage

import { 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" });

Services

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

Options

Option Description
token Bearer token for authentication
baseUrl Override the API endpoint (default: https://api.enum.co)

Documentation

See enum Docs.

License

Apache License 2.0

About

enum TypeScript API Client

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages