@nativapi/sdk
v0.1.2
Published
Typed TypeScript client for the Nativ API.
Readme
@nativapi/sdk
Installation
npm i @nativapi/sdkQuick Start
import { Nativ } from "@nativapi/sdk";
const nativ = new Nativ({ apiKey: process.env.NATIV_API_KEY!, baseUrl: "https://your-nativ-api" });
// List available integrations
const integrations = await nativ.integrations.list();
// Execute a tool with MFA support
const run = await nativ.runUntilDone(
{ connectionId },
{ tool: "get_profile", onMfa: async (p) => prompt(p.message) }
);