Core Objects
User
A unique identifier for the user.
The user’s email address.
The user’s first name.
The user’s last name.
The user’s display name (typically first name + last name or email).
URL to the user’s avatar image.
The user’s role in the system.
The current status of the user account.
The date and time when the user account was created.
The date and time when the user account was last updated.
The date and time when the user last logged in.
The user’s personal preferences and settings.
The permissions granted to this user.
UserPreferences
The user’s preferred UI theme.
The user’s preferred language code.
The user’s timezone.
The user’s notification preferences.
The ID of the user’s default domain.
NotificationPreferences
Whether to receive email notifications.
Whether to receive in-app notifications.
Whether to receive digest notifications.
How frequently to receive notifications.
Permission
A unique identifier for the permission.
The name of the permission.
A description of what the permission allows.
The resource this permission applies to.
The action this permission allows.
The scope of the permission.
Enums
UserRole
The role of a user in the system defines their level of access and capabilities. Here are the values and their description:Value | Description |
---|---|
ADMIN | System administrator with full access |
EDITOR | Can create and edit content |
VIEWER | Can view content but not edit |
ANALYST | Can perform data analysis |
GUEST | Limited access guest user |
UserStatus
The status of a user account indicates its current operational state. Here are the values and their description:Value | Description |
---|---|
ACTIVE | User account is active |
INACTIVE | User account is inactive |
SUSPENDED | User account is suspended |
PENDING | User account is pending activation |
DELETED | User account has been deleted |
Theme
UI theme options allow users to customize the appearance of the interface. Here are the values and their description:Value | Description |
---|---|
LIGHT | Light theme |
DARK | Dark theme |
AUTO | Automatically switch based on system preference |
NotificationFrequency
Frequency options for notifications determine how often users receive alerts. Here are the values and their description:Value | Description |
---|---|
IMMEDIATE | Send notifications immediately |
HOURLY | Send notifications hourly |
DAILY | Send notifications daily |
WEEKLY | Send notifications weekly |
NEVER | Never send notifications |
PermissionScope
The scope of a permission defines the level at which it applies within the system. Here are the values and their description:Value | Description |
---|---|
GLOBAL | Permission applies globally |
DOMAIN | Permission applies to specific domains |
CONNECTION | Permission applies to specific connections |
USER | Permission applies to specific users |
Scalar Types
DateTime
A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with thedate-time
format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
JSON
TheJSON
scalar type represents JSON values as specified by ECMA-404.
ID
TheID
scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable.
String
TheString
scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
Boolean
TheBoolean
scalar type represents true
or false
.
Int
TheInt
scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.