oz-node-sdk
v0.1.2
Published
Generated oz API Node SDK from OpenAPI
Maintainers
Readme
oz-node-sdk
Generated Node.js SDK for the oz API.
Install
bun add @oz/oz-node-sdkor
npm install @oz/oz-node-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 { OzNodeSdkClient } from '@oz/oz-node-sdk';
const client = new OzNodeSdkClient({
baseUrl: 'http://localhost:8787',
apiKey: 'oz_live_xxx',
});
const projects = await client.GET_v2_projects();