UNPKG

watchtower-node-sdk

Version:

A TypeScript Node.js SDK for the Watchtower API, providing API key management, connection string generation, and more

19 lines 588 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.APIKeyEndpoint = void 0; const base_1 = require("../base"); class APIKeyEndpoint extends base_1.BaseEndpoint { constructor(client) { super(client, '/api/apikey'); } /** * Roll an API key (organization, app, or tenant) * @param data - The roll API key request * @returns Promise with the new rolled API key */ async rollAPIKey(data) { return this.post('/roll', data); } } exports.APIKeyEndpoint = APIKeyEndpoint; //# sourceMappingURL=handler.js.map