import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; export declare class Permissions extends ClientSDK { /** * Update document permissions * * @remarks * Updates the permissions for a given document without modifying document content. */ updatePermissions(request: components.UpdatePermissionsRequest, options?: RequestOptions): Promise; /** * Index user * * @remarks * Adds a datasource user or updates an existing user. */ indexUser(request: components.IndexUserRequest, options?: RequestOptions): Promise; /** * Bulk index users * * @remarks * Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. * Note: Any users deleted from the existing set will have their associated memberships deleted as well. */ bulkIndexUsers(request: components.BulkIndexUsersRequest, options?: RequestOptions): Promise; /** * Index group * * @remarks * Add or update a group in the datasource. */ indexGroup(request: components.IndexGroupRequest, options?: RequestOptions): Promise; /** * Bulk index groups * * @remarks * Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. * Note: Any groups deleted from the existing set will have their associated memberships deleted as well. */ bulkIndexGroups(request: components.BulkIndexGroupsRequest, options?: RequestOptions): Promise; /** * Index membership * * @remarks * Add the memberships of a group in the datasource. */ indexMembership(request: components.IndexMembershipRequest, options?: RequestOptions): Promise; /** * Bulk index memberships for a group * * @remarks * Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. */ bulkIndexMemberships(request: components.BulkIndexMembershipsRequest, options?: RequestOptions): Promise; /** * Schedules the processing of group memberships * * @remarks * Schedules the immediate processing of all group memberships uploaded through the indexing API. By default the uploaded group memberships will be processed asynchronously but this API can be used to schedule processing of all memberships on demand. */ processMemberships(request?: components.ProcessAllMembershipsRequest | undefined, options?: RequestOptions): Promise; /** * Delete user * * @remarks * Delete the user from the datasource. Silently succeeds if user is not present. * Note: All memberships associated with the deleted user will also be deleted. */ deleteUser(request: components.DeleteUserRequest, options?: RequestOptions): Promise; /** * Delete group * * @remarks * Delete group from the datasource. Silently succeeds if group is not present. * Note: All memberships associated with the deleted group will also be deleted. */ deleteGroup(request: components.DeleteGroupRequest, options?: RequestOptions): Promise; /** * Delete membership * * @remarks * Delete membership to a group in the specified datasource. Silently succeeds if membership is not present. */ deleteMembership(request: components.DeleteMembershipRequest, options?: RequestOptions): Promise; /** * Beta users * * @remarks * Allow the datasource be visible to the specified beta users. The default behaviour is datasource being visible to all users if it is enabled and not visible to any user if it is not enabled. */ authorizeBetaUsers(request: components.GreenlistUsersRequest, options?: RequestOptions): Promise; } //# sourceMappingURL=permissions.d.ts.map