@simple-ai-lab/sdk) is a typed TypeScript client for the Simple AI API. It works in two places:
- Inside code actions — preinstalled and authenticated automatically; just import it.
- In your own applications — install it from npm and authenticate with an API key.
Inside a Code Action
No installation or keys needed. The handler’sclient is ready to use:
In Your Own Application
Error Handling
Every non-2xx API response throws aSimpleAIError with the HTTP status, a machine-readable code when available, and the parsed response body:
What’s Included Today
client.data— full custom data access: query, records, bulk upserts, and tablesdefineAction— typed code-action handlers
client object will gain new namespaces.