@anaella/client
v0.1.8
Published
TypeScript client for the anaella.com /v1 API.
Readme
@anaella/client
A minimal, zero-dependency TypeScript client for the anaella.com /v1 API. Construct it with new AnaellaClient({ apiKey, baseUrl }), then call listChannels() to list connected channels, createPost(body: CreatePostBody) to create a post, listPosts({ limit?, cursor? }) to page through posts, getPost(id) to fetch one, and deletePost(id) to remove one — all returning typed promises (V1Channel, V1Post, etc.). Any non-2xx response or network failure rejects with an AnaellaApiError (status, code, message, and optional details), so callers can catch and branch on err.code (e.g. 'validation_failed', 'network_error').
