import type { Schema, UserBundle, FieldsParam, Entity, ListParams, User, UserGroup, DeepPartial } from "../../types"; import { ResourceApi } from "../common"; type UserBundleSchema = Schema; type UserSchema = Schema; type UserGroupSchema = Schema; type UserBundleEntity = Entity; type UserEntity = Entity; type UserGroupEntity = Entity; export declare class UserBundlesApi extends ResourceApi { /** * Get the list of all available user bundles in the system. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of UserBundle attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @param params.$top - Maximum number of entries to return in the response. * @param params.$skip - Number of entries to skip before returning the first one. * @returns A promise that resolves to the list of user bundles. */ getUserBundles(params?: FieldsParam & ListParams): Promise[]>; /** * Create a new user bundle in the system. * @param body - The details of the new user bundle. * @param params - Optional parameters for response filtering. * @param params.fields - A list of UserBundle attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the created user bundle. */ createUserBundle(body: DeepPartial, params?: FieldsParam): Promise>; /** * Get attributes of a user bundle with a specific ID. * @param bundleId - The database ID of the bundle. * @param params - Optional parameters for response filtering. * @param params.fields - A list of UserBundle attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the user bundle with the specified ID. */ getUserBundleById(bundleId: string, params?: FieldsParam): Promise>; /** * Update a user bundle with a specific ID. * @param bundleId - The database ID of the bundle. * @param body - The updated user bundle data. * @param params - Optional parameters for response filtering. * @param params.fields - A list of UserBundle attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the updated user bundle. */ updateUserBundle(bundleId: string, body: DeepPartial, params?: FieldsParam): Promise>; /** * Delete a user bundle with the specific ID. * @param bundleId - The database ID of the user bundle. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of UserBundleElement attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves when the user bundle is deleted. */ deleteUserBundle(bundleId: string, params?: FieldsParam): Promise>; /** * Get the list of all users that the user bundle contains. * @param bundleId - The database ID of the user bundle. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of User attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @param params.$top - Maximum number of entries to return in the response. * @param params.$skip - Number of entries to skip before returning the first one. * @returns A promise that resolves to the list of users in the bundle. */ getUserBundleAggregatedUsers(bundleId: string, params?: FieldsParam & ListParams): Promise[]>; /** * Get the list of all groups that are added to a specific user bundle. * @param bundleId - The database ID of the user bundle. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of UserGroup attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @param params.$top - Maximum number of entries to return in the response. * @param params.$skip - Number of entries to skip before returning the first one. * @returns A promise that resolves to the list of groups in the bundle. */ getUserBundleUserGroups(bundleId: string, params?: FieldsParam & ListParams): Promise[]>; /** * Add an existing group to the bundle. * @param bundleId - The database ID of the user bundle. * @param body - The ID of the group to add to the bundle. * @param params - Optional parameters for response filtering. * @param params.fields - A list of UserGroup attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the added group. */ addUserGroupToUserBundle(bundleId: string, body: { id: string; }, params?: FieldsParam): Promise>; /** * Get a specific user group that belongs to the user bundle. * @param bundleId - The database ID of the user bundle. * @param groupId - The database ID of the user group. * @param params - Optional parameters for response filtering. * @param params.fields - A list of UserGroup attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the group with the specified ID. */ getUserGroupInBundleById(bundleId: string, groupId: string, params?: FieldsParam): Promise>; /** * Remove a specific group from the bundle. * @param bundleId - The database ID of the user bundle. * @param groupId - The database ID of the user group to remove. * @param params - Optional parameters for response filtering. * @param params.fields - A list of UserGroup attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves when the group is removed from the bundle. */ deleteUserGroupFromUserBundle(bundleId: string, groupId: string, params?: FieldsParam): Promise>; /** * Get the list of all individual user accounts added to a specific user bundle. * @param bundleId - The database ID of the user bundle. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of User attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @param params.$top - Maximum number of entries to return in the response. * @param params.$skip - Number of entries to skip before returning the first one. * @returns A promise that resolves to the list of users in the bundle. */ getUserBundleIndividualUsers(bundleId: string, params?: FieldsParam & ListParams): Promise[]>; /** * Add an existing user to the bundle. * @param bundleId - The database ID of the user bundle. * @param body - The ID of the user to add to the bundle. * @param params - Optional parameters for response filtering. * @param params.fields - A list of User attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the added user. */ addIndividualUserToUserBundle(bundleId: string, body: { id: string; }, params?: FieldsParam): Promise>; /** * Get a specific user from the bundle. * @param bundleId - The database ID of the user bundle. * @param userId - The database ID of the user. * @param params - Optional parameters for response filtering. * @param params.fields - A list of User attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the user with the specified ID. */ getIndividualUserInBundleById(bundleId: string, userId: string, params?: FieldsParam): Promise>; /** * Remove a specific user from the bundle. * @param bundleId - The database ID of the user bundle. * @param userId - The database ID of the user to remove. * @param params - Optional parameters for response filtering. * @param params.fields - A list of User attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves when the user is removed from the bundle. */ removeIndividualUserFromUserBundle(bundleId: string, userId: string, params?: FieldsParam): Promise>; } export {};