Skip to main content
Sublay exposes two user type variants depending on context: User (public profile) and AuthUser (the authenticated user’s own data). All SDK hooks and API endpoints return one of these two types.

User

The User type is returned when fetching another user’s public profile. Sensitive and internal fields are excluded.

GeoPoint

AuthUser

The AuthUser type is returned to the currently authenticated user about themselves. It extends User with additional fields not visible to others. All User fields above are included, plus:

Suspension

An active suspension is an enforced, platform-wide timeout: it blocks all participation and content writes while leaving reads, sign-in, and account self-management open. Multiple active suspensions can coexist; the “effective” one is the furthest-reaching active row (an indefinite endDate of null reaches furthest). The useUser hook derives isSuspended and activeSuspension from this array. See Suspensions for the full behavior and response contract.

Includes

Some endpoints accept an include parameter that populates additional fields. Pass "files" to populate avatarFile and bannerFile with File objects.

Reputation

Every user object always carries reputation — the maintained sum of the user’s reputation across all spaces. When the optional reputation bundle is installed, you can additionally read a user’s reputation in a specific space via the spaceReputation object (deprecating the older spaceReputationId param), which adds a spaceReputation field to each returned user. See the Reputation data model for the full opt-in read contract.

See Also