id | string | Unique space identifier (UUID). |
shortId | string | Short human-readable ID for the space (URL-safe, generated automatically). |
projectId | string | The project this space belongs to. |
slug | string | null | Optional URL-friendly slug. Unique per project when set. |
name | string | Display name of the space (3–100 characters). |
description | string | null | Optional description (up to 1,000 characters). |
userId | string | ID of the space creator/owner. |
avatarFileId | string | null | ID of the space’s avatar image file. |
avatarFile | File | undefined | Populated avatar file object. Only present when include: "files" is requested. |
bannerFileId | string | null | ID of the space’s banner image file. |
bannerFile | File | undefined | Populated banner file object. Only present when include: "files" is requested. |
readingPermission | "anyone" | "members" | Who can read content in the space. |
postingPermission | "anyone" | "members" | "admins" | Who can post content in the space. |
requireJoinApproval | boolean | Whether joining requires moderator/admin approval. When true, new joins enter pending status. |
parentSpaceId | string | null | ID of the parent space, if this is a sub-space. |
depth | number | Nesting depth (0 for root spaces, incremented for each sub-level). Maximum depth is 10. |
metadata | Record<string, any> | Arbitrary key-value data attached to the space. Up to 1 MB. |
isMember | boolean | undefined | Whether the authenticated user is a member of this space. Only present when the user is signed in. |
membersCount | number | Computed count of active members. |
childSpacesCount | number | Computed count of direct child spaces. |
createdAt | Date | Timestamp when the space was created. |
updatedAt | Date | Timestamp when the space was last updated. |