import type { GlobalPermission } from '../models/GlobalPermission.js'; import type { OperationDescription } from '../models/OperationDescription.js'; import type { SpacePermissionsForSubject } from '../models/SpacePermissionsForSubject.js'; import type { CancelablePromise } from '../core/CancelablePromise.js'; export declare class GlobalPermissionsService { /** * Get global permissions * Returns list of permissions granted to users and groups. * * Example request URI's: * * `https://example.com/confluence/rest/api/permissions` * @returns GlobalPermission Returns a JSON representation of all global permissions granted to users/groups/anonymous user. * @throws ApiError */ static getAllGlobalPermissions(): CancelablePromise>; /** * Set global permissions to multiple users/groups * Sets global permissions to multiple users/groups. * * Request should contain all permissions that users/groups will have. * * If permission is absent in the request, but was granted before, it will be revoked. * * If empty list of permissions passed to users/groups, then all their existing permissions will be revoked. * * If users/groups not mentioned in the request, their permissions will not be revoked. * * * Maximum 40 different users/groups could be passed in the request by default * . * * Multiple permissions could be passed in one request. Supported targetType and operationKey pairs: * * * application use * * application administer * * system administer * * personal_space create * * space create * * See Global Permissions documentation for additional information about supported permissions. * * * Example request URI's: * `https://example.com/confluence/rest/api/permissions` * @param requestBody * @returns void * @throws ApiError */ static setPermissions(requestBody?: Array): CancelablePromise; /** * Gets the permissions granted to an anonymous user * Returns list of permissions granted to anonymous user. * * Example request URI's: * * `https://example.com/confluence/rest/api/permissions/anonymous` * @returns GlobalPermission Returns a JSON representation of the permissions granted to the group. * @throws ApiError */ static getPermissionsGrantedToAnonymousUsers(): CancelablePromise>; /** * Gets global permissions granted to a group * Returns list of permissions granted to group. * * Example request URI's: * * `https://example.com/confluence/rest/api/permissions/group/{groupName}}` * @param groupName the name of the group to look up. * @returns GlobalPermission Returns a JSON representation of the permissions granted to the group. * @throws ApiError */ static getPermissionsGrantedToGroup(groupName: string): CancelablePromise>; /** * Gets the permissions granted to an unlicensed users * Returns list of permissions granted to unlicensed users. * * Example request URI's: * * `https://example.com/confluence/rest/api/permissions/unlicensed` * @returns GlobalPermission Returns a JSON representation of the permissions granted to the group. * @throws ApiError */ static getPermissionsGrantedToUnlicensedUsers(): CancelablePromise>; /** * Gets global permissions granted to a user * Returns list of permissions granted to user. * * Example request URI's: * * with userKey: `https://example.com/confluence/rest/api/permissions/user/{userKey}` * * with username: `https://example.com/confluence/rest/api/permissions/user/{username}` * @param user the key or username of the user to look up. * @returns GlobalPermission Returns a JSON representation of the permissions granted to the user. * @throws ApiError */ static getPermissionsGrantedToUser(user: string): CancelablePromise>; /** * Grants global permissions to anonymous users * Grant global permissions to anonymous users. * * Operation doesn't override existing permissions, will only add those one that weren't granted before. * * Multiple permissions could be passed in one request. Supported targetType and operationKey pairs: * * * application use * * read user * * Example request URI's: * * `https://example.com/confluence/rest/api/permissions/anonymous/grant` * @param requestBody * @returns void * @throws ApiError */ static grantPermissionsToAnonymousUsers(requestBody?: Array): CancelablePromise; /** * Grants global permissions to a group * Grant global permissions to a group. * * Operation doesn't override existing permissions, will only add those one that weren't granted before. * * Multiple permissions could be passed in one request. Supported targetType and operationKey pairs: * * * application use * * application administer * * system administer * * personal_space create * * space create * * See Global Permissions documentation for additional information about supported permissions. * * * Example request URI's: * * `https://example.com/confluence/rest/api/permissions/group/test-group-name/grant` * @param groupName the name of the group to look up. * @param requestBody * @returns void * @throws ApiError */ static grantPermissionsToGroup(groupName: string, requestBody?: Array): CancelablePromise; /** * Grants global permissions to unlicensed users * Grant global permissions to unlicensed users. * * Operation doesn't override existing permissions, will only add those one that weren't granted before. * * Multiple permissions could be passed in one request. Supported targetType and operationKey pairs: * * * application use_unlicensed * * read user * * Example request URI's: * * `https://example.com/confluence/rest/api/permissions/unlicensed/grant` * @param requestBody * @returns void * @throws ApiError */ static grantPermissionsToUnlicensedUsers(requestBody?: Array): CancelablePromise; /** * Grants global permissions to a user * Grant global permissions to a user. * * Operation doesn't override existing permissions, will only add those one that weren't granted before. * * Multiple permissions could be passed in one request. Supported targetType and operationKey pairs: * * * application use * * application administer * * system administer * * personal_space create * * space create * * Example request URI's: * * with userKey: `https://example.com/confluence/rest/api/permissions/user/{userKey}/grant` * * with username: `https://example.com/confluence/rest/api/permissions/user/{username}/grant` * @param user the key or username of the user to look up. * @param requestBody * @returns void * @throws ApiError */ static grantPermissionsToUser(user: string, requestBody?: Array): CancelablePromise; /** * Revoke global permissions from anonymous users * Revoke global permissions from anonymous users. * * When 'application use' is revoked, all granted permissions will be removed from anonymous users. * * Multiple permissions could be passed in one request. Supported targetType and operationKey pairs: * * * application use * * read user * * Example request URI's: * * `https://example.com/confluence/rest/api/permissions/anonymous/revoke` * @param requestBody * @returns void * @throws ApiError */ static revokePermissionsFromAnonymousUsers(requestBody?: Array): CancelablePromise; /** * Revoke global permissions from a group * Revoke global permissions from a group. * * When 'application use' is revoked, all granted permissions will be removed from target group. * * Multiple permissions could be passed in one request. Supported targetType and operationKey pairs: * * * application use * * application administer * * system administer * * personal_space create * * space create * * See Global Permissions documentation for additional information about supported permissions. * * * Example request URI's: * * `https://example.com/confluence/rest/api/permissions/group/test-group-name/revoke` * @param groupName the name of the group to look up. * @param requestBody * @returns void * @throws ApiError */ static revokePermissionsFromGroup(groupName: string, requestBody?: Array): CancelablePromise; /** * Revoke global permissions from unlicensed users * Revoke global permissions from unlicensed users. * * When 'application use_unlicensed' is revoked, all granted permissions will be removed from unlicensed users. * * Multiple permissions could be passed in one request. Supported targetType and operationKey pairs: * * * application use_unlicensed * * read user * * Example request URI's: * * `https://example.com/confluence/rest/api/permissions/unlicensed/revoke` * @param requestBody * @returns void * @throws ApiError */ static revokePermissionsFromUnlicensedUsers(requestBody?: Array): CancelablePromise; /** * Revoke global permissions from a user * Revoke global permissions from a user. * * When 'application use' is revoked, all granted permissions will be removed from target user. * * Multiple permissions could be passed in one request. Supported targetType and operationKey pairs: * * * application use * * application administer * * system administer * * personal_space create * * space create * * See Global Permissions documentation for additional information about supported permissions. * * * Example request URI's: * * with userKey: `https://example.com/confluence/rest/api/permissions/user/{userKey}/revoke` * * with username: `https://example.com/confluence/rest/api/permissions/user/{username}/revoke` * @param user the key or username of the user to look up. * @param requestBody * @returns void * @throws ApiError */ static revokePermissionsFromUser(user: string, requestBody?: Array): CancelablePromise; } //# sourceMappingURL=GlobalPermissionsService.d.ts.map