Rest
...args: [params: AnonViewerLogin] | [AtlasViewer]Protected
_attrOptional
default_The users default organization.
The user email
Name
The users name as registered in auth0
nomicai
Nickname
The users nickname
nomicai
Optional
organizations?: { Organizations
All of the organizations this user belongs to
[]
Optional
picture?: stringPicture
The users profile image
Optional
stripe_Stripe Customer Id
The users stripe account.
Sub
Unique user id
auth0|12345678
Updated At Format: date-time
The last time user information was updated on Auth0 side.
Optional
waitlisted?: booleanWaitlisted
Whether or not the user is wait-listed for Atlas access
false
Protected
attributereturns the object's information; this may be undefined
Protected
endpointFetches basic information about the object.
By default, this caches the call; if you want to
bust the cache, pass true
as the first argument.
This immediately.
Whether to refetch the relevant information
A promise that resolves to the organization info.
return only organizations where the user has this role (default: null, return all organizations)
A list of organizations where the user has the specified role
All projects that the user has access to.
Loads the information associated with the class, removing any existing caches.
a LoadedObject instance of the class that is guaranteed to
have its attr
slot populated with appropriate information.
const loadedProject = await (new AtlasProject(projectId)).withLoadedAttributes()
// OR, in cases where we want to do stuff immediately with the project and ensure
// that later calls there don't double-fetch information.
const project = new AtlasProject(projectId)
// do stuff right away.
const projection = new AtlasProjection(projectionId, {project: project})
const loadedProjection = await projection.withLoadedAttributes()
// do stuff with loadedProjection
Default Organization Format: uuid