Skip to main content
Version: Current

Role Types

  • GrantRoleResult​

    Defines the possible results of granting a role.

    A GrantRoleResult can be one of the following values:

  • GrantRoleSuccess​

    Defines an interface that represents a successful request to grant a role.

    Members​

    • success true​

  • GrantRoleFailure​

    Defines an interface that represents a failed request to grant a role.

    Members​

    • errorCode ("not_logged_in" | "record_not_found" | "invalid_record_key" | "unacceptable_request" | "server_error" | "not_authorized" | "subscription_limit_reached" | "action_not_supported" | "roles_too_large")​

      The error code that indicates why the request failed.

    • errorMessage string​

      The error message that indicates why the request failed.

    • success false​

  • RevokeRoleResult​

    Defines the possible results of revoking a role.

    A RevokeRoleResult can be one of the following values:

  • RevokeRoleSuccess​

    Defines an interface that represents a successful request to revoke a role.

    Members​

    • success true​

  • RevokeRoleFailure​

    Defines an interface that represents a failed request to revoke a role.

    Members​

    • errorCode ("not_logged_in" | "record_not_found" | "invalid_record_key" | "unacceptable_request" | "server_error" | "not_authorized" | "subscription_limit_reached" | "action_not_supported" | "roles_too_large")​

      The error code that indicates why the request failed.

    • errorMessage string​

      The error message that indicates why the request failed.

    • success false​