Skip to navigation

TypeScript SDK

Use the generated Alpha client from Node.js, TypeScript, or modern JavaScript.
View as Markdown

Install

npm install @openantares/alpha
import { AlphaClient } from "@openantares/alpha";
const alpha = new AlphaClient({
token: process.env.ALPHA_API_KEY,
});
const vaults = await alpha.vaults.listVaults();
const result = await alpha.knowledge.searchKnowledge({
vault: "Northstar Fulfillment",
query: "pilot blockers",
});
console.log(vaults.data);
console.log(result.data);

Read raw response headers

const { data, rawResponse } = await alpha.knowledge
.getBrief({ vault: "Northstar Fulfillment" })
.withRawResponse();
console.log(rawResponse.headers.get("x-request-id"));
console.log(data.data);

The client supports configurable timeouts, retries, custom headers, abort signals, structured errors, and custom fetch implementations.

The published package is @openantares/alpha. Its generated source and release workflow live in openantares/alpha-typescript.