SDK overview
@abeauvois/platform-sdk exposes a single PlatformApiClient that composes one typed sub-client per vertical. Construct it once; every sub-client shares the same auth.
import { PlatformApiClient } from '@abeauvois/platform-sdk'
const client = new PlatformApiClient({ baseUrl: 'http://localhost:3000', credentials: 'include', // browser, or use getToken for bearer auth})See Install the SDK for auth modes.
Sub-clients
Section titled “Sub-clients”| Accessor | Vertical |
|---|---|
client.auth | sign in / up / out (syncs the token to every sub-client) |
client.apiKeys | API-key management |
client.config | runtime config |
client.settings | user + app settings |
client.sources | ingestion source reads |
client.jobs | jobs, presets, schedules, queue stats |
client.tasks | the /tasks kanban — every row the caller owns, including social/blog/link drafts and sales Deals, in one list (each carrying a channel) |
client.quoteRequest | quote requests |
client.blog | blog posts (admin + API-key public read) |
client.artifacts | deprecated — a thin wrapper over client.tasks kept for existing callers (translates the legacy Artifact* wire shapes); new code should use client.tasks directly |
client.observations | append-only numeric time-series (the watch history) |
client.skills | user-authored pipeline skills |
Auth helpers on the root client
Section titled “Auth helpers on the root client”client.setSessionToken(token)client.setSessionCookie(cookie)client.getSessionToken()client.clearSessionToken()The most commonly used surface — jobs — is documented on the next page.
