Skip to main content
Home
Works with
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score47%
License
MIT
Downloads9/wk
Published2 weeks ago (0.1.4)

@wazoo/client

TypeScript client for the Wazoo Platform API at api.wazoo.dev.

This package is generated from the canonical Wazoo Platform OpenAPI document. Use it for management-plane operations: users, Worlds, platform tokens, World data-plane tokens, usage, limits, and beta billing.

For data-plane graph operations against worlds-api.wazoo.dev, use the Worlds SDK/custom data-plane client instead.

Install

npx jsr add @wazoo/client

Usage

import { createClient, listWorlds } from "@wazoo/client";

const client = createClient({
  baseUrl: "https://api.wazoo.dev",
  auth: process.env.WAZOO_PLATFORM_TOKEN,
});

const response = await listWorlds({
  client,
  query: { email: "user@example.com" },
});

console.log(response.data?.worlds);

Development

npm install
npm run check

Run npm run sync:openapi to refresh openapi/openapi.json. By default, it reads ../wazoo-api/src/openapi/spec.ts for local development. Set WAZOO_API_OPENAPI_URL=https://api.wazoo.dev/openapi.json to sync from a deployed API.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@wazoo/client

Import symbol

import * as client from "@wazoo/client";
or

Import directly with a jsr specifier

import * as client from "jsr:@wazoo/client";