Overview
The Space node is the root-level container in Brainbox. It represents a collaborative workspace with its own set of members, permissions, and visibility settings.Attributes Schema
Must be
'space'The name of the space
Optional description of the space
Optional avatar URL or emoji for the space
Map of user IDs to their roles in this space. Roles can be
'admin', 'member', or 'viewer'.Whether the space is visible to all workspace members (
'public') or only to collaborators ('private')Permissions
canCreate
Rules:- Must be at root level (
tree.length === 0) - User must have at least
'member'workspace role - Attributes must be of type
'space' - Collaborators list must not be empty
- Creating user must be listed as
'admin'in collaborators
/home/daytona/workspace/source/packages/core/src/registry/nodes/space.ts:21-44
canUpdateAttributes
Rules:- Cannot update if at root level
- User must have
'admin'role in the space
/home/daytona/workspace/source/packages/core/src/registry/nodes/space.ts:45-60
canUpdateDocument
Rules:- Always returns
false(spaces do not have documents)
canDelete
Rules:- Cannot delete if at root level
- User must have
'admin'role in the space
/home/daytona/workspace/source/packages/core/src/registry/nodes/space.ts:64-79
canReact
Rules:- Always returns
false(spaces cannot be reacted to)
Document Schema
Spaces do not support documents.Text Extraction
Mentions
Spaces do not support mentions. Always returns[].