@terella/keeper-sdk
v0.2.5
Published
Generated terella-keeper API Node SDK from OpenAPI
Downloads
95
Maintainers
Readme
@terella/keeper-sdk
Generated Node.js SDK for the terella-keeper API.
Install
bun add @terella/keeper-sdkor
npm install @terella/keeper-sdkBuild
From this directory run:
OPENAPI_SPEC_PATH=../../target/openapi/openapi.json bun run buildThe script reads the generated OpenAPI artifact and writes SDK artifacts to dist/.
Publish
bun run clean
OPENAPI_SPEC_PATH=../../target/openapi/openapi.json bun run build
bun publish --access publicprepublishOnly is configured to regenerate dist automatically before publish.
Usage
import { KeeperSdkClient } from '@terella/keeper-sdk';
const client = new KeeperSdkClient({
baseUrl: 'http://localhost:8787',
apiKey: 'ozzy_live_xxx',
});
const projects = await client.GET_v2_projects();