Missing admin client for Apache Pulsar. Autogenerated from Swagger definitions.
At the time of May 26, 2022, the official Pulsar client for Node doesn't support Pulsar admin API that can be used for editing tenants, namespaces, etc.
For our project we needed it to setup better test environment.
npm i pulsar-admin-client
import * as pulsarAdmin from "pulsar-admin-client";
const pulsarAdminClient = new pulsarAdmin.Client({ BASE: "http://localhost:8080/admin/v2" });
await pulsarAdminClient.tenants.createTenant(
"new-tenant",
{ allowedClusters: ["standalone"] }
);