import Base, { MaybeRaw } from "../../../../Base"; import { PaginatedResponse, SearchParams } from "../../../../interfaces/global"; import { OrganizationMember, OrgMemberPatch } from "../../../../interfaces/idp/organization/member"; import IdpOrganizationMemberInvitations from "./invitations"; export declare class IdpOrganizationMember extends Base { get invitations(): IdpOrganizationMemberInvitations; private _invitations?; /** * Retrieves all organization members that match the provided search filter(s). Will return all members of the organization if no search filter is provided. * @param orgName Name of the Organization * @param filters (optional) Array of search filters * @param excludeTeamByName (optional) Name of a team whos members shall be excluded * @param sorting (optional) Sorting object * @param limit (optional) Max number of results (1-100; defaults to 25) * @param page (optional) Page number to skip the first (page * limit) results (defaults to 0) * @returns Object containing an array of Organization Members and the total number of results found in the database (independent of limit and page) */ searchOrganizationMembers({ orgName, filters, excludeTeamByName, excludeServiceAccounts, sorting, limit, page, }: SearchParams & { orgName: string; excludeTeamByName?: string; excludeServiceAccounts?: boolean; }, raw?: { raw: R; }): Promise>>; /** * Retrieves an organization member by its user ID. * @param orgName Name of the organization * @param userId ID of the user * @returns The requested Organization Member */ getOrganizationMember(orgName: string, userId: string, raw?: { raw: R; }): Promise>; /** * Updates the role of a User in the specified Organization. * @param orgName Name of the Organization * @param userId ID of the User * @param orgMemberPatch New role * @returns The updated OrganizationMember */ patchOrganizationMemberRole(orgName: string, userId: string, orgMemberPatch: OrgMemberPatch, raw?: { raw: R; }): Promise>; /** * Updates the executionTarget flag of a User in the specified Organization. * @param orgName Name of the Organization * @param userId ID of the User * @param executionTarget Boolean value to set * @returns The updated OrganizationMember */ patchOrganizationExecutionTarget(orgName: string, userId: string, executionTarget: boolean, raw?: { raw: R; }): Promise>; /** * Removes a Member from an Organization. * @param orgName Name of the Organization * @param userId ID of the User */ removeOrganizationMember(orgName: string, userId: string, raw?: { raw: R; }): Promise>; /** * Member leaves the organization independently. * @param orgName Name of the Organization */ leaveOrganization(orgName: string, raw?: { raw: R; }): Promise>; protected getEndpoint(endpoint: string): string; }