@slonge/agent-sdk
v0.2.0
Published
TypeScript SDK for the Slonge Billing HTTP API — Zod schemas, typed resource classes, and a thin HTTP client.
Downloads
29
Maintainers
Readme
@slonge/agent-sdk
TypeScript SDK for the Slonge Billing HTTP API. Zod schemas, typed resource classes, and a thin SdkClient HTTP wrapper.
Used by @slonge/cli and @slonge/mcp-server. You can also consume it directly to build your own automations.
Install
npm install @slonge/agent-sdkUsage
import { SdkClient, ClientResource } from '@slonge/agent-sdk';
const client = new SdkClient({
baseUrl: 'https://app.slonge-billing.ch',
apiToken: process.env.SLONGE_API_TOKEN!,
});
const clients = await new ClientResource(client).list();
console.log(clients);Issue an API token from Settings → API Tokens in the dashboard.
License
MIT
