/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 987a6cfd8178
 */
import { betaLibrariesAccessesDelete } from "../funcs/betaLibrariesAccessesDelete.js";
import { betaLibrariesAccessesList } from "../funcs/betaLibrariesAccessesList.js";
import { betaLibrariesAccessesUpdateOrCreate } from "../funcs/betaLibrariesAccessesUpdateOrCreate.js";
import { ClientSDK } from "../lib/sdks.js";
import { unwrapAsync } from "../types/fp.js";
export class Accesses extends ClientSDK {
    /**
     * List all of the access to this library.
     *
     * @remarks
     * Given a library, list all of the Entity that have access and to what level.
     */
    async list(request, options) {
        return unwrapAsync(betaLibrariesAccessesList(this, request, options));
    }
    /**
     * Create or update an access level.
     *
     * @remarks
     * Given a library id, you can create or update the access level of an entity. You have to be owner of the library to share a library. An owner cannot change their own role. A library cannot be shared outside of the organization.
     */
    async updateOrCreate(request, options) {
        return unwrapAsync(betaLibrariesAccessesUpdateOrCreate(this, request, options));
    }
    /**
     * Delete an access level.
     *
     * @remarks
     * Given a library id, you can delete the access level of an entity. An owner cannot delete it's own access. You have to be the owner of the library to delete an acces other than yours.
     */
    async delete(request, options) {
        return unwrapAsync(betaLibrariesAccessesDelete(this, request, options));
    }
}
//# sourceMappingURL=accesses.js.map