spaces module: report handling, content moderation actions, community rules management, and digest newsletter configuration.
Reports
handleEntityReport
Resolves a report filed against an entity in a space by applying one or more moderation actions.The Sublay space ID where the report was filed.
The Sublay report ID.
The Sublay entity ID the report targets.
One or more actions to apply:
"remove-entity", "ban-user", and/or "dismiss".Optional moderator summary of the resolution.
Optional reason, stored for audit purposes.
The Sublay user ID of the moderator performing the action.
Promise<HandleReportResponse>
handleCommentReport
Resolves a report filed against a comment in a space by applying one or more moderation actions.The Sublay space ID where the report was filed.
The Sublay report ID.
The Sublay comment ID the report targets.
One or more actions to apply:
"remove-comment", "ban-user", and/or "dismiss".Optional moderator summary of the resolution.
Optional reason, stored for audit purposes.
The Sublay user ID of the moderator performing the action.
Promise<HandleReportResponse>
Content Moderation
moderateSpaceEntity
Approves or removes an entity within a space.The Sublay space ID.
The Sublay entity ID to moderate.
"approve" — makes the entity visible, or "remove" — hides/removes it from the space.Optional reason for the moderation action, stored for audit purposes.
Promise<ModerationResponse>
moderateSpaceComment
Approves or removes a comment within a space.The Sublay space ID.
The Sublay comment ID to moderate.
"approve" or "remove".Optional reason for the moderation action.
Promise<ModerationResponse>
Rules
Rules are community guidelines displayed to members. They are ordered and each consists of a title and optional description.fetchManyRules
Fetches all rules for a space.The Sublay space ID.
Promise<FetchManyRulesResponse>
fetchRule
Fetches a single rule by its ID.The Sublay space ID.
The Sublay rule ID.
Promise<Rule>
createRule
Creates a new rule for a space.The Sublay space ID.
Short title for the rule.
Extended explanation of the rule.
Promise<Rule>
updateRule
Updates an existing rule’s title or description.The Sublay space ID.
The Sublay rule ID to update.
New title.
New description.
Promise<Rule>
deleteRule
Deletes a rule from a space.The Sublay space ID.
The Sublay rule ID to delete.
Promise<DeleteRuleResponse>
reorderRules
Sets the display order of all rules for a space by providing an ordered array of rule IDs.The Sublay space ID.
Complete ordered array of all rule IDs for the space.
Promise<Rule[]> — the full list of rules in their new order.
Digest Newsletter
The digest feature allows a space to send a periodic newsletter-style webhook payload summarizing recent activity.fetchDigestConfig
Fetches the current digest configuration for a space.The Sublay space ID.
Promise<DigestConfig>
updateDigestConfig
Updates the digest configuration for a space.The Sublay space ID.
Enable or disable the digest webhook.
The URL that will receive the digest payload.
Secret used to sign the webhook payload for verification.
Hour of day (0–23) at which the digest fires, in the configured timezone.
IANA timezone identifier (e.g.,
"America/New_York", "Europe/London").Promise<DigestConfig>
