# @llamaindex/llama-deploy

> Generated llama-deploy API client from OpenAPI specification

Latest version **0.0.2** (published 2025-06-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @llamaindex/llama-deploy
pnpm add @llamaindex/llama-deploy
yarn add @llamaindex/llama-deploy
bun add @llamaindex/llama-deploy
```

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2025-06-18 |
| First published | 2025-06-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 88.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yisding, emanuelclferreira, himself_65, marcusschiesser, octopoedi |

## Links

- npm: https://www.npmjs.com/package/@llamaindex/llama-deploy
- npm.io page: https://npm.io/package/@llamaindex/llama-deploy

## Recent versions

- 0.0.2 (latest) — 2025-06-18

## README

# @llamaindex/llama-deploy

This package provides a TypeScript llama-deploy API client generated from the OpenAPI specification using `@hey-api/openapi-ts`.

## Installation

```bash
npm install @llamaindex/llama-deploy
```

## Development

### Generate llama-deploy API client

To generate the llama-deploy API client from the OpenAPI specification:

```bash
npm run generate
```

This will read the OpenAPI JSON file from `../chat-ui/src/hook/openapi.json` and generate TypeScript client code in `src/generated/`.

### Build

To build the package:

```bash
npm run build
```

This will run the generator and compile TypeScript to the `dist/` directory.

### Clean

To clean generated files:

```bash
npm run clean
```

## Usage

```typescript
import { client, DeploymentsService } from '@llamaindex/llama-deploy'

// Configure the client
client.setConfig({
  baseUrl: 'https://your-api-base-url.com',
})

// Use the API services
const deployments = await DeploymentsService.readDeploymentsDeploymentsGet()
```

## API Services

The generated client includes services for:

- **DeploymentsService**: Manage deployments
- **TasksService**: Create and manage tasks
- **SessionsService**: Handle sessions
- **EventsService**: Stream and send events

## Generated Files

The following files are generated and should not be edited manually:

- `src/generated/client.ts` - HTTP client configuration
- `src/generated/services.ts` - API service methods
- `src/generated/types.ts` - TypeScript type definitions
- `src/generated/index.ts` - Main exports

## Configuration

The generation is configured in `openapi-ts.config.ts`. Key settings:

- **Input**: `../chat-ui/src/hook/openapi.json`
- **Output**: `./src/generated`
- **Client**: `@hey-api/client-fetch`
- **Format**: Prettier formatting applied

---
_Source: https://npm.io/package/@llamaindex/llama-deploy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
