MonoCloud Management SDK
    Preparing search index...

    Hierarchy

    Index

    Constructors

    Properties

    fetcher: Fetcher

    Methods

    • Parameters

      • userId: string

        The unique identifier of the user.

      • groupId: string

        The unique identifier of the group.

      Returns Promise<MonoCloudResponse<UserGroup>>

      UserGroup - The user was assigned to the group successfully

      Adds the specified user to the group, establishing membership and enabling access configurations assigned to that group.

      UsersClient

    • Parameters

      Returns Promise<MonoCloudResponse<User>>

      User - The user was created successfully

      Creates a new user using identifiers such as email, phone number, or username, with an optional password or imported password hash. This endpoint also supports migration scenarios by allowing administrators to preserve verification states and bypass password policies or identifier restrictions when required.

      Configured sign-up policies are enforced by default; however, this allows authorized requests to override them when permitted.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • disableUserRequest: DisableUserRequest

        The request payload used to disable a user.

      Returns Promise<MonoCloudResponse<User>>

      User - The user was disabled successfully

      Marks the user account as disabled, preventing sign-in and access to connected applications. Optionally, active sessions can be revoked and existing opaque tokens invalidated, signing the user out immediately across all devices.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • groupId: string

        The unique identifier of the group.

      Returns Promise<MonoCloudResponse<UserGroup>>

      UserGroup - The user&#39;s group association was retrieved successfully

      Retrieves information about the specified group and the user’s membership in it.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • sessionId: string

        The unique identifier of the user session.

      Returns Promise<MonoCloudResponse<UserSession>>

      UserSession - The user session was retrieved successfully

      Retrieves detailed information about a specific session for the specified user.

      Access to user session management endpoints requires an active Pro plan subscription.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • Optionalpage: number

        The page number to retrieve.

      • Optionalsize: number

        The number of grants to return per page.

      • OptionalclientId: string

        Filters results to grants issued to the specified client.

      • OptionalsessionId: string

        Filters results to grants issued within the specified session.

      • Optionalsort: string

        Sort expression in the format field:direction, where direction is 1 for ascending or -1 for descending. Supported fields include - creation_time.

      Returns Promise<MonoCloudPageResponse<AuthorizationCode[]>>

      AuthorizationCode[] - The user&#39;s authorization codes were retrieved successfully

      Retrieves a paginated list of authorization codes issued for the specified user. Authorization codes are ephemeral credentials used in OAuth 2.0 authorization flows before token exchange. Optional query parameters allow searching, filtering, and sorting the results.

      Access to grant and token management endpoints requires an active Secure+ subscription.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • Optionalpage: number

        The page number to retrieve.

      • Optionalsize: number

        The number of blocked IPs to return per page.

      • Optionalfilter: string

        Optional Lucene-style filter expression used to search by attributes.

      • Optionalsort: string

        Sort expression in the format field:direction, where direction is 1 for ascending or -1 for descending. Supported fields include - block_until, last_sign_in_attempt, last_sign_in_success.

      Returns Promise<MonoCloudPageResponse<UserIpAccessDetails[]>>

      UserIpAccessDetails[] - The user’s blocked IP addresses were retrieved successfully

      Retrieves a paginated list of IP addresses currently blocked for the specified user. Optional query parameters allow searching, filtering, and sorting the results.

      UsersClient

    • Parameters

      • groupId: string

        The unique identifier of the group.

      • Optionalpage: number

        The page number to retrieve.

      • Optionalsize: number

        The number of users to return per page.

      • Optionalfilter: string

        Optional Lucene-style filter expression used to search by attributes.

      • Optionalsort: string

        Sort expression in the format field:direction, where direction is 1 for ascending or -1 for descending. Supported fields include - failure_count, last_sign_in_attempt, sign_in_attempts_count, last_sign_in_success, sign_in_success_count, last_activity, block_until, creation_time, last_updated.

      Returns Promise<MonoCloudPageResponse<UserSummary[]>>

      UserSummary[] - The users in the group were retrieved successfully

      Retrieves a paginated list of users assigned to the specified group. Optional query parameters allow searching, filtering, and sorting the results.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • Optionalpage: number

        The page number to retrieve.

      • Optionalsize: number

        The number of grants to return per page.

      • OptionalclientId: string

        Filters results to grants issued to the specified client.

      • OptionalsessionId: string

        Filters results to grants issued within the specified session.

      • Optionalsort: string

        Sort expression in the format field:direction, where direction is 1 for ascending or -1 for descending. Supported fields include - creation_time.

      Returns Promise<MonoCloudPageResponse<ReferenceToken[]>>

      ReferenceToken[] - The user&#39;s reference tokens were retrieved successfully

      Retrieves a paginated list of reference tokens issued for the specified user. Reference tokens are opaque access tokens that require introspection for validation. Optional query parameters allow searching, filtering, and sorting the results.

      Access to grant and token management endpoints requires an active Secure+ subscription.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • Optionalpage: number

        The page number to retrieve.

      • Optionalsize: number

        The number of grants to return per page.

      • OptionalclientId: string

        Filters results to grants issued to the specified client.

      • OptionalsessionId: string

        Filters results to grants issued within the specified session.

      • Optionalsort: string

        Sort expression in the format field:direction, where direction is 1 for ascending or -1 for descending. Supported fields include - creation_time.

      Returns Promise<MonoCloudPageResponse<RefreshToken[]>>

      RefreshToken[] - The user&#39;s refresh tokens were retrieved successfully

      Retrieves a paginated list of refresh tokens issued for the specified user. Optional query parameters allow searching, filtering, and sorting the results.

      Access to grant and token management endpoints requires an active Secure+ subscription.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • Optionalpage: number

        The page number to retrieve.

      • Optionalsize: number

        The number of grants to return per page.

      Returns Promise<MonoCloudPageResponse<UserClientGrants[]>>

      UserClientGrants[] - The user&#39;s client grants were retrieved successfully

      Retrieves a paginated list of client-specific grants for the specified user, including consent status and counts of issued refresh tokens, reference tokens, and authorization codes.

      Access to grant and token information endpoints requires an active Pro plan subscription.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • Optionalpage: number

        The page number to retrieve.

      • Optionalsize: number

        The number of consent grants to return per page.

      • OptionalclientId: string

        Filters results to consent grants issued to the specified client.

      • Optionalsort: string

        Sort expression in the format field:direction, where direction is 1 for ascending or -1 for descending. Supported fields include - creation_time.

      Returns Promise<MonoCloudPageResponse<UserConsent[]>>

      UserConsent[] - The user&#39;s consent grants were retrieved successfully

      Retrieves a paginated list of consents granted by the specified user. Each consent includes the application's approved scopes and associated metadata. Optional query parameters allow searching, filtering, and sorting the results.

      Access to grant and token management endpoints requires an active Secure+ subscription.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • Optionalpage: number

        The page number to retrieve.

      • Optionalsize: number

        The number of groups to return per page.

      • Optionalsort: string

        Sort expression in the format field:direction, where direction is 1 for ascending or -1 for descending. Supported fields include - creation_time.

      Returns Promise<MonoCloudPageResponse<UserGroup[]>>

      UserGroup[] - The user&#39;s group associations were retrieved successfully

      Retrieves a paginated list of user groups that the user is assigned to. Optional query parameters allow sorting of the results.

      UsersClient

    • Parameters

      • Optionalpage: number

        The page number to retrieve.

      • Optionalsize: number

        The number of users to return per page.

      • Optionalfilter: string

        Optional Lucene-style filter expression used to search by attributes.

      • Optionalsort: string

        Sort expression in the format field:direction, where direction is 1 for ascending or -1 for descending. Supported fields include - failure_count, last_sign_in_attempt, sign_in_attempts_count, last_sign_in_success, sign_in_success_count, last_activity, block_until, creation_time, last_updated.

      Returns Promise<MonoCloudPageResponse<UserSummary[]>>

      UserSummary[] - The users were retrieved successfully

      Retrieves a paginated list of users. Optional query parameters allow searching, filtering, and sorting the results.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • Optionalpage: number

        The page number to retrieve.

      • Optionalsize: number

        The number of user sessions to return per page.

      • OptionalclientId: string

        Filters results to user sessions associated with the specified client.

      • Optionalsort: string

        Sort expression in the format field:direction, where direction is 1 for ascending or -1 for descending. Supported fields include - session_id, initiated_at, expires_at, last_updated.

      Returns Promise<MonoCloudPageResponse<UserSession[]>>

      UserSession[] - The user&#39;s sessions were retrieved successfully

      Retrieves a paginated list of all active sessions for the specified user. Optional query parameters allow searching, filtering, and sorting the results.

      Access to user session management endpoints requires an active Pro plan subscription.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      Returns Promise<MonoCloudResponse<UserPrivateData>>

      UserPrivateData - The user&#39;s private data was retrieved successfully

      Retrieves the private data associated with the specified user.

      Private data contains sensitive or internal attributes intended only for trusted backend services. It should not be exposed directly to client applications or included in user-visible contexts.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      Returns Promise<MonoCloudResponse<UserPublicData>>

      UserPublicData - The user&#39;s public data was retrieved successfully

      Retrieves the public data associated with the specified user.

      Public data contains non-sensitive attributes that can be safely exposed to client applications and may be used to personalize user experiences.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • updateClaimsRequest: UpdateClaimsRequest

        The request payload used to update user claims.

      Returns Promise<MonoCloudResponse<User>>

      User - The user claims were updated successfully

      Applies a partial update to the claim values associated with the specified user. Only the claims provided in the request are modified. Claims can be removed by sending a null value for the corresponding key.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • updatePrivateDataRequest: UpdatePrivateDataRequest

        The request payload used to update a user's private data.

      Returns Promise<MonoCloudResponse<UserPrivateData>>

      UserPrivateData - The user&#39;s private data was updated successfully

      Applies a partial update to the private data associated with the specified user. Only fields included in the request are updated. Private data fields can be removed by sending a null value for the corresponding key.

      Intended for sensitive or internal-use attributes. Avoid exposing these values to client applications. If surfaced via custom claims, include them only in tokens issued to trusted backend services to prevent accidental disclosure.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • updatePublicDataRequest: UpdatePublicDataRequest

        The request payload used to update a user's public data.

      Returns Promise<MonoCloudResponse<UserPublicData>>

      UserPublicData - The user&#39;s public data was updated successfully

      Applies a partial update to the public data associated with the specified user. Only fields included in the request are updated. Public data fields can be removed by sending a null value for the corresponding key.

      Intended for non-sensitive attributes that may be safely exposed to client applications. When surfaced via custom claims, these values may appear in tokens issued to frontend or user-facing applications. Store only data that remains safe even if accessed through browser storage, logs, or debugging tools.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • identifierId: string

        The unique identifier of the email address.

      Returns Promise<MonoCloudResponse<User>>

      User - The user&#39;s email was removed successfully

      Removes the specified email address from the user’s account. Once removed, it is no longer available for authentication, verification or communication.

      Removing an email may affect flows that depend on it, such as password recovery or notification delivery.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • passkeyId: string

        The unique identifier of the passkey.

      Returns Promise<MonoCloudResponse<null>>

      The user&#39;s passkey was removed successfully

      Removes a passkey previously registered by the user. Once removed, the user will no longer be able to authenticate using that passkey.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      Returns Promise<MonoCloudResponse<null>>

      The user&#39;s password was removed successfully

      Removes the password from the specified user’s account. Once removed, the user will no longer be able to authenticate using a password until a new one is set.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • identifierId: string

        The unique identifier of the phone number.

      Returns Promise<MonoCloudResponse<User>>

      User - The user&#39;s phone number was removed successfully

      Removes the specified phone number from the user’s account. Once removed, it is no longer available for authentication, verification or communication.

      Removing a phone number may affect flows that depend on it, such as password recovery or notification delivery.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • groupId: string

        The unique identifier of the group.

      Returns Promise<MonoCloudResponse<null>>

      The user was removed from the group successfully

      Removes the specified user from the group. After removal, the user will no longer receive any access, permissions, or roles previously granted through that group.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • codeId: string

        The unique identifier of the authorization code grant.

      Returns Promise<MonoCloudResponse<null>>

      The authorization code was revoked successfully

      Revokes an authorization code that has not yet been exchanged for tokens, preventing any further use.

      Access to grant and token management endpoints requires an active Secure+ subscription.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • tokenId: string

        The unique identifier of the reference token grant.

      Returns Promise<MonoCloudResponse<null>>

      The reference token was revoked successfully

      Revokes the specified reference token issued to an application, rendering it invalid for future access to protected resources.

      Access to grant and token management endpoints requires an active Secure+ subscription.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • tokenId: string

        The unique identifier of the refresh token grant.

      Returns Promise<MonoCloudResponse<null>>

      The refresh token was revoked successfully

      Revokes the specified refresh token, rendering it unusable for obtaining new access tokens.

      Access to grant and token management endpoints requires an active Secure+ subscription.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • clientId: string

        The unique identifier of the client.

      Returns Promise<MonoCloudResponse<null>>

      All grants were revoked successfully

      Revokes all grants issued to the user for the specified application, invalidating existing authorizations.

      Access to grant and token management endpoints requires an active Secure+ subscription.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • consentId: string

        The unique identifier of the consent grant.

      Returns Promise<MonoCloudResponse<null>>

      The user&#39;s consent was revoked successfully

      Revokes the specified consent, invalidating any previously authorized scopes. If applicable, the application must obtain new consent before acting on behalf of the user again.

      Access to grant and token management endpoints requires an active Secure+ subscription.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • sessionId: string

        The unique identifier of the user session.

      Returns Promise<MonoCloudResponse<null>>

      The user&#39;s session was revoked successfully

      Revokes the specified user session, immediately terminating it and preventing further sign-in activity under that session.

      Access to user session management endpoints requires an active Pro plan subscription. Existing tokens remain active unless the application enforces token-to-session binding.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • identifierId: string

        The unique identifier of the email address.

      Returns Promise<MonoCloudResponse<User>>

      User - The user&#39;s email was marked as unverified successfully

      Marks the specified email address as unverified, preventing its use for authentication or any other security-sensitive actions until it is verified again.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • identifierId: string

        The unique identifier of the email address.

      Returns Promise<MonoCloudResponse<User>>

      User - The user&#39;s email was marked as verified successfully

      Marks the specified email address as verified, allowing its use for authentication, sensitive actions, and communication.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • identifierId: string

        The unique identifier of the phone number.

      Returns Promise<MonoCloudResponse<User>>

      User - The user&#39;s phone number was marked as unverified successfully

      Marks the specified phone number as unverified, preventing its use for authentication or any other security-sensitive actions until it is verified again.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • identifierId: string

        The unique identifier of the phone number.

      Returns Promise<MonoCloudResponse<User>>

      User - The user&#39;s phone number was marked as verified successfully

      Marks the specified phone number as verified, allowing its use for authentication and other security-sensitive actions.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • identifierId: string

        The unique identifier of the email address.

      Returns Promise<MonoCloudResponse<User>>

      User - The user&#39;s email was set as primary successfully

      Marks the specified email address as the user's primary email, making it the default for authentication, recovery, and communication.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • identifierId: string

        The unique identifier of the phone number.

      Returns Promise<MonoCloudResponse<User>>

      User - The user&#39;s phone number was set as primary successfully

      Marks the specified phone number as the user's primary number, making it the default for authentication and verification.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user whose IP address should be unblocked.

      • unblockIpRequest: UnblockIpRequest

        The request payload used to unblock a previously blocked IP address.

      Returns Promise<MonoCloudResponse<User>>

      User - The IP lockout was reset successfully

      Removes the lockout applied to the specified IP due to excessive failed authentication attempts, allowing sign-in attempts from that IP again. Providing the value all resets lockouts for every IP associated with the user.

      UsersClient

    • Parameters

      • userId: string

        The unique identifier of the user.

      • identifierId: string

        The unique identifier of the email address.

      • verifyEmailRequest: VerifyEmailRequest

        The request payload used to initiate email verification.

      Returns Promise<MonoCloudResponse<VerifyEmailResponse>>

      VerifyEmailResponse - The email verification link was generated successfully

      Generates a signed, time-bound verification link for the specified email address and sends it to the user. Once verified, the email becomes eligible for authentication and secure communication.

      UsersClient