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: by sign-up, sign-in, token refresh, external-user verification and a profile update. It carries exactly these fields; the other User fields (avatarFileId, bannerFileId, birthdate, location, updatedAt, spaceReputation) are not on it.

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

User fetches by ID, foreign ID and username accept an include parameter that populates additional fields. Its only value is "files", which populates 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 (over REST, the spaceReputationId param), which adds a spaceReputation field to each returned user. Only spaces the viewer can read count: a space they can’t read reads 0 (see Who sees space reputation). See the Reputation data model for the full opt-in read contract.

See Also