Overview
This page provides comprehensive documentation for all Maikers SDK methods and interfaces. The SDK is built with TypeScript and provides full type safety for all operations.Authentication
Manage API authentication and sessions
Agent Operations
Create, manage, and interact with AI agents
Type Definitions
TypeScript interfaces and types
Error Handling
Error types and handling patterns
SDK Initialization
Constructor
SDKConfig Interface:
Authentication Methods
auth()
Returns:
Promise<AuthResponse>
AuthResponse Interface:
isAuthenticated()
boolean
Example:
logout()
Agent Operations
agent.create()
AgentConfig Interface:
Promise<Agent>
Agent Interface:
agent.get()
Returns:
Promise<Agent>
Example:
agent.list()
ListOptions Interface:
Promise<Agent[]>
Example:
agent.update()
Returns:
Promise<Agent>
Example:
agent.updateSettings()
Returns:
Promise<Agent>
Example:
agent.delete()
Returns:
Promise<void>
Example:
Agent Interaction
agent.query()
QueryRequest Interface:
Promise<QueryResponse>
QueryResponse Interface:
agent.chat()
ChatOptions Interface:
Promise<ChatSession>
ChatSession Interface:
Error Handling
Error Types
The SDK throws specific error types for different scenarios:Error Handling Examples
Utility Methods
getCredits()
Promise<CreditsInfo>
CreditsInfo Interface:
getUsage()
Returns:
Promise<UsageStats>
UsageStats Interface:
Type Definitions
Complete Type Reference
Next Steps
Quick Start
Get started with the SDK in minutes
Examples
Explore practical examples and use cases
CLI Tool
Learn about the command-line interface
GitHub
View source code and contribute
