Optionaloptions: { env?: string; host?: string; token?: string }ProtectedenvProtectedhostProtectedtokenCreate a new role
Role data including name, permissions, workspaces, and level
Delete a role
Role UUID
Edit user profile
Profile update data
Edit a role
Role UUID
Role update data including permissions, workspaces, and level
Get current user's claims
Get the current token's permissions.
Returns the resolved permission set carried by the calling token. For a
forge actor token this is the scoped intersection minted at launch time —
see getPrincipalPermissions() for the underlying user's full set.
Get the FULL permissions of the user the current token is acting on behalf of (the "principal").
When a forge app runs under an actor token, getPermissions() returns only
the token's scoped permissions — the intersection of the app's declared
runtime permissions and the user's permissions. This instead returns the
complete permission set of the underlying user, so the app can check what
that user is actually allowed to do, independent of what the app itself was
granted. The token scope is unchanged: this exposes knowledge, not capability.
For a normal user session (no actor token) it returns the caller's own
permissions, identical to getPermissions()'s scope.
Get role details by UUID
Role UUID
Get current user's model
Get list of available permissions
List all roles
Request password reset email This only sends an email with a reset link, does not expose or change passwords
User email
Resend confirmation email
User email
Base client for the platform API Classes that extend PlatformBaseClient have intentins of only working in platform context
PlatformBaseClient
Param: client
The axios instance to use for the client
Example