# KubeBlocks Cloud TypeScript SDK

Auto-generated TypeScript SDK for KubeBlocks Cloud API.

## Install

```bash
npm install kb-cloud-client-typescript
# or
yarn add kb-cloud-client-typescript
```

## Usage

### User Portal API (`openapi`)

```ts
import { Configuration, OpenApi } from 'kb-cloud-client-typescript';

const api = new OpenApi.OrganizationApi(
  new Configuration({ basePath: 'https://api.example.com' })
);
const orgs = await api.listOrg();
```

### Admin Portal API (`adminapi`)

```ts
import { Configuration, AdminApi } from 'kb-cloud-client-typescript/adminapi';

const api = new AdminApi.OrganizationApi(
  new Configuration({ basePath: 'https://api.example.com' })
);
```

### Internal API (`internalapi`)

```ts
import { Configuration, InternalApi } from 'kb-cloud-client-typescript/internalapi';

const api = new InternalApi.SomeApi(
  new Configuration({ basePath: 'https://api.example.com' })
);
```

## Available SDKs

| Import Path | Description |
|---|---|
| `kb-cloud-client-typescript/openapi` | User Portal API |
| `kb-cloud-client-typescript/adminapi` | Admin Portal API |
| `kb-cloud-client-typescript/internalapi` | Internal API |

## API Documentation

Refer to the [KubeBlocks API documentation](https://docs.kubeblocks.io) for endpoint details.
