Skip to content

MK1 TypeScript SDKDeveloper-friendly & type-safe SDK

Quick Start

Install the SDK using your preferred package manager:

bash
npm add https://gitpkg.now.sh/MeetKai/mk1-sdks/typescript
bash
pnpm add https://gitpkg.now.sh/MeetKai/mk1-sdks/typescript
bash
bun add https://gitpkg.now.sh/MeetKai/mk1-sdks/typescript
bash
yarn add https://gitpkg.now.sh/MeetKai/mk1-sdks/typescript

Basic Usage

typescript
import { SDK } from "@meetkai/mka1";

const sdk = new SDK({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await sdk.userManagement.checkUserPermission({
    user: "alice@example.com",
    permission: "reader",
    resource: "budget-2024",
  });

  console.log(result);
}

run();

Features Overview

Permission Model

The API uses a three-level hierarchical permission system:

  • owner: Full control over resources (includes writer and reader access)
  • writer: Can modify resources (includes reader access)
  • reader: Can view resources

Available Modules

  • User Management: Check, grant, revoke, and list user permissions
  • Group Management: Manage group permissions and membership
  • LLM Module: Chat completions, embeddings, image generation
  • Speech: Transcription and text-to-speech
  • Tables: Vector search and data management
  • Structured Extraction: Extract structured data from text
  • Feedback: Submit and manage feedback for completions
  • Usage: Track and analyze API usage statistics

Documentation

Explore the comprehensive documentation: