Skip to content

Repository files navigation

Wazoo Worlds

TypeScript client for the Wazoo Platform API.

JSR JSR Score GitHub Ask DeepWiki

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

Requires Deno (version pinned in .tool-versions).

deno task ci

Run deno task 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.

Run deno task generate to regenerate src/generated/ from the synced spec via @hey-api/openapi-ts.

About

TypeScript client for the Wazoo Platform API generated from OpenAPI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages