UNPKG

@nicodoggie/node-kiwi-tcms-api

Version:

Vibe-coded Node.js wrapper for Kiwi TCMS XML-RPC API. Use at your own risk.

29 lines 666 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AuthAPI = void 0; /** * Authentication API module */ class AuthAPI { client; constructor(client) { this.client = client; } /** * Login to Kiwi TCMS * @param username - Username * @param password - Password * @returns Session ID */ async login(username, password) { return await this.client.call('Auth.login', [username, password]); } /** * Logout from Kiwi TCMS */ async logout() { await this.client.call('Auth.logout'); } } exports.AuthAPI = AuthAPI; //# sourceMappingURL=auth.js.map