Add a new user.
The user details to be added.
A Promise that resolves to a User object.
If the request fails.
Get all sessions for a user.
The ID of the user to retrieve sessions for.
A Promise that resolves to an array of Session objects.
If no sessions are found for the given user ID.
If the request fails.
List users in chunks.
This method retrieves users in chunks of a specified size. It is a generator function that yields each chunk of users as they are retrieved.
The size of the user chunks to retrieve. Defaults to 100.
A Promise that resolves to an array of User objects.
If the request fails.
Update a user's details.
The updated user details.
A Promise that resolves to a User object with the updated details.
If the request no user is found for the given ID.
If the request fails.
UserManager class handles all user related operations such as adding, getting, updating, deleting, listing users and their sessions. It uses the IZepClient interface to make requests to the server.