Skip to main content

TypeScript SDK

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

Installation

npm install meibel
# or
yarn add meibel
# or
pnpm add meibel

Quick Start

import { MeibelClient } from 'meibel';

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

// Make API calls
// ...

Configuration

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