UNPKG

@mozaic-io/mozaic-sdk-node

Version:

The Mozaic Node SDK enables you to pay your creators easily via the Mozaic API.

30 lines 1.07 kB
import { Mozaic } from "../.."; import { Configuration, PermissionsApi } from "../../api"; import { BaseResource } from "../BaseResource"; /** * Use the Permissions class to get the UI visibility permissions for * the Personal Access Token supplied to the Mozaic SDK. * @group Resources */ export declare class Permissions extends BaseResource { private _permissionsApi; /** * @internal * You should not call this constructor directly. Instead, use the Mozaic main * entry point to get convinent access to the SDK classes. * @param configuration */ constructor(mozaic: Mozaic, configuration: Configuration); /** * Get the underlying API for direct calls to the Mozaic API. */ get PermissionsApi(): PermissionsApi; /** * Gets a list of permissions assigned to the Personal Access Token * that was used to initialize the Mozaic SDK. * @returns a list of visibility roles * @throws ApiException */ getPermissions(): Promise<string[]>; } //# sourceMappingURL=Permissions.d.ts.map