> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meibel.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# TypeScript SDK

> Official TypeScript SDK for the Meibel API

# TypeScript SDK

The official TypeScript SDK provides a fully typed interface to the Meibel API.

## Installation

```bash theme={null}
npm install meibel
# or
yarn add meibel
# or
pnpm add meibel
```

## Quick Start

```typescript theme={null}
import { MeibelClient } from 'meibel';

// Initialize the client
const client = new MeibelClient({ apiKey: 'your-api-key' });

// Make API calls
// ...
```

## Configuration

```typescript theme={null}
const client = new MeibelClient({
  apiKey: 'your-api-key',
  baseUrl: 'https://api.example.com',  // Custom base URL
  timeout: 30000,  // Request timeout in milliseconds
});
```

## Resources

* `client.agents` - Create, manage, and publish AI agents
* `client.agents.sessions` - Create, manage, and chat with agent sessions
* `client.artifactSchemas` - Define structured output schemas for agent artifacts
* `client.batches` - Create and manage batch processing definitions
* `client.batches.executions` - Run, monitor, and manage batch executions
* `client.confidenceScoring` - Track and analyze confidence scores
* `client.datasources` - Manage data source connections
* `client.datasources.dataElements` - Manage data elements within datasources
* `client.datasources.downloads` - Export datasources as downloadable files
* `client.datasources.fileUploads` - Upload and manage content files
* `client.datasources.ingest` - Trigger and monitor datasource ingestion
* `client.datasources.tables` - Manage table and column descriptions for AI context
* `client.documents` - Parse and transform documents into structured data
* `client.metadataModelCatalog` - Browse available metadata extraction models
* `client.sessions` - View session details across agents

## TypeScript Support

This SDK is written in TypeScript and provides:

* Full type definitions for all API types
* Zod schemas for runtime validation
* IntelliSense support in VS Code and other IDEs
