import "../ApiClient-fBZ10h6n.mjs"; import "../QueryFilterOp-I6iNIMKZ.mjs"; import { t as ApiGroupSummary_default } from "../ApiGroupSummary-BHD1MDr5.mjs"; import "../GroupIdentifierMembership-DQfdgRy0.mjs"; import { t as IAMGroupControllerApiGroupDetail_default } from "../IAMGroupControllerApiGroupDetail-DvaavHxN.mjs"; import "../IAMGroupControllerApiGroupMembership-_fgeKe49.mjs"; import { t as IAMGroupControllerApiGroupMember_default } from "../IAMGroupControllerApiGroupMember-Cz-DBPxP.mjs"; import { t as PagedResultsApiGroupSummary_default } from "../PagedResultsApiGroupSummary-hAPWYEf2.mjs"; import { t as PagedResultsIAMGroupControllerApiGroupMember_default } from "../PagedResultsIAMGroupControllerApiGroupMember-B994yMyU.mjs"; import { t as IQueryFilter } from "../IQueryFilter-C0EgxMlb.mjs"; //#region src/api/GroupsApi.d.ts /** * Groups service. * @module api/GroupsApi */ declare class GroupsApi { /** * Constructs a new GroupsApi. * @alias module:api/GroupsApi * @class * @param {module:ApiClient} [apiClient] Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ constructor(apiClient?: any); apiClient: any; /** * Add a user to a group * Adds the specified user to the given group. If the user does not already have access to the tenant, tenant access will be created automatically. * @param {String} id The ID of the group * @param {String} userId The ID of the user to add to the group * @param {String} tenant * @return {Promise} */ addUserToGroupWithHttpInfo(id: string, userId: string, tenant: string): Promise; /** * Add a user to a group * Adds the specified user to the given group. If the user does not already have access to the tenant, tenant access will be created automatically. * @param {String} id The ID of the group * @param {String} userId The ID of the user to add to the group * @param {String} tenant * @return {Promise} */ addUserToGroup(id: string, userId: string, tenant: string): Promise; /** * List groups for autocomplete * @param {String} tenant * @param {module:model/ApiAutocomplete} apiAutocomplete Autocomplete request * @return {Promise>} */ autocompleteGroupsWithHttpInfo(tenant: string, apiAutocomplete: any): Promise>; /** * List groups for autocomplete * @param {String} tenant * @param {module:model/ApiAutocomplete} apiAutocomplete Autocomplete request * @return {Promise>} */ autocompleteGroups(tenant: string, apiAutocomplete: any): Promise>; /** * Create a group * @param {String} tenant * @param {module:model/IAMGroupControllerApiCreateGroupRequest} iAMGroupControllerApiCreateGroupRequest The group * @return {Promise} */ createGroupWithHttpInfo(tenant: string, iAMGroupControllerApiCreateGroupRequest: any): Promise; /** * Create a group * @param {String} tenant * @param {module:model/IAMGroupControllerApiCreateGroupRequest} iAMGroupControllerApiCreateGroupRequest The group * @return {Promise} */ createGroup(tenant: string, iAMGroupControllerApiCreateGroupRequest: any): Promise; /** * Delete a group * @param {String} id The group id * @param {String} tenant * @return {Promise< >} */ deleteGroupWithHttpInfo(id: string, tenant: string): Promise; /** * Delete a group * @param {String} id The group id * @param {String} tenant * @return {Promise< >} */ deleteGroup(id: string, tenant: string): Promise; /** * Remove a user from a group * Removes the specified user from the given group. If the user has no other group bindings within the tenant, their access to the tenant will also be revoked. * @param {String} id The ID of the group * @param {String} userId The ID of the user to remove from the group * @param {String} tenant * @return {Promise} */ deleteUserFromGroupWithHttpInfo(id: string, userId: string, tenant: string): Promise; /** * Remove a user from a group * Removes the specified user from the given group. If the user has no other group bindings within the tenant, their access to the tenant will also be revoked. * @param {String} id The ID of the group * @param {String} userId The ID of the user to remove from the group * @param {String} tenant * @return {Promise} */ deleteUserFromGroup(id: string, userId: string, tenant: string): Promise; /** * Retrieve a group * Retrieves details of a specific group by its ID within the current tenant. * @param {String} id The group id * @param {String} tenant * @return {Promise} */ groupWithHttpInfo(id: string, tenant: string): Promise; /** * Retrieve a group * Retrieves details of a specific group by its ID within the current tenant. * @param {String} id The group id * @param {String} tenant * @return {Promise} */ group(id: string, tenant: string): Promise; /** * List groups by ids * @param {String} tenant * @param {module:model/ApiIds} apiIds The ids that must be present on results * @return {Promise>} */ listGroupIdsWithHttpInfo(tenant: string, apiIds: any): Promise>; /** * List groups by ids * @param {String} tenant * @param {module:model/ApiIds} apiIds The ids that must be present on results * @return {Promise>} */ listGroupIds(tenant: string, apiIds: any): Promise>; /** * Search for users in a group * @param {String} id The group id * @param {Array.} filters Filters * @param {String} tenant * @param {Object} opts Optional parameters * @param {Number} [page = 1)] The current page * @param {Number} [size = 10)] The current page size * @param {Array.} [sort] The sort of current page * @return {Promise} */ searchGroupMembersWithHttpInfo(id: string, filters: Array, tenant: string, opts: any): Promise; /** * Search for users in a group * @param {String} id The group id * @param {Array.} filters Filters * @param {String} tenant * @param {Object} [opts] Optional parameters * @param {Number} [opts.page (default to 1)] The current page * @param {Number} [opts.size (default to 10)] The current page size * @param {Array.} [opts.sort] The sort of current page * @return {Promise} */ searchGroupMembers(id: string, filters: Array, tenant: string, opts?: { page?: number; size?: number; sort?: Array; }): Promise; /** * Search for groups * @param {String} tenant * @param {Object} opts Optional parameters * @param {String} [q] A string filter * @param {Number} [page = 1)] The current page * @param {Number} [size = 10)] The current page size * @param {Array.} [sort] The sort of current page * @return {Promise} */ searchGroupsWithHttpInfo(tenant: string, opts: any): Promise; /** * Search for groups * @param {String} tenant * @param {Object} [opts] Optional parameters * @param {String} [opts.q] A string filter * @param {Number} [opts.page (default to 1)] The current page * @param {Number} [opts.size (default to 10)] The current page size * @param {Array.} [opts.sort] The sort of current page * @return {Promise} */ searchGroups(tenant: string, opts?: { q?: string; page?: number; size?: number; sort?: Array; }): Promise; /** * Update a user's membership type in a group * Allows a group owner or an authorized user to change the role of a user within a group to OWNER or MEMBER. * @param {String} id The ID of the group * @param {String} userId The ID of the user whose membership is being updated * @param {module:model/GroupIdentifierMembership} membership The new membership type to assign to the user. * @param {String} tenant * @return {Promise} */ setUserMembershipForGroupWithHttpInfo(id: string, userId: string, membership: any, tenant: string): Promise; /** * Update a user's membership type in a group * Allows a group owner or an authorized user to change the role of a user within a group to OWNER or MEMBER. * @param {String} id The ID of the group * @param {String} userId The ID of the user whose membership is being updated * @param {module:model/GroupIdentifierMembership} membership The new membership type to assign to the user. * @param {String} tenant * @return {Promise} */ setUserMembershipForGroup(id: string, userId: string, membership: any, tenant: string): Promise; /** * Update a group * @param {String} id The group id * @param {String} tenant * @param {module:model/IAMGroupControllerApiUpdateGroupRequest} iAMGroupControllerApiUpdateGroupRequest The group * @return {Promise} */ updateGroupWithHttpInfo(id: string, tenant: string, iAMGroupControllerApiUpdateGroupRequest: any): Promise; /** * Update a group * @param {String} id The group id * @param {String} tenant * @param {module:model/IAMGroupControllerApiUpdateGroupRequest} iAMGroupControllerApiUpdateGroupRequest The group * @return {Promise} */ updateGroup(id: string, tenant: string, iAMGroupControllerApiUpdateGroupRequest: any): Promise; } //#endregion export { GroupsApi as default };