polyv-live-cli
Version:
CLI tool for managing PolyV live streaming services.
36 lines • 1.43 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebAppServiceSdk = void 0;
const sdk_1 = require("../sdk");
class WebAppServiceSdk {
constructor(authConfig, config) {
this.authConfig = authConfig;
this.config = config;
}
async listPermissions() {
const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl);
return client.v4WebApp.listPermissions();
}
async createRole(params) {
const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl);
return client.v4WebApp.createRole(params);
}
async getRole(roleId) {
const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl);
return client.v4WebApp.getRole(roleId);
}
async listRoles(params = {}) {
const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl);
return client.v4WebApp.listRoles(params);
}
async updateRole(params) {
const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl);
return client.v4WebApp.updateRole(params);
}
async deleteRole(roleId) {
const client = (0, sdk_1.createSdkClient)(this.authConfig, this.config.baseUrl);
return client.v4WebApp.deleteRole(roleId);
}
}
exports.WebAppServiceSdk = WebAppServiceSdk;
//# sourceMappingURL=webapp-service.js.map