handleEntityReport
Resolves a reported entity by applying one or more actions.The Sublay space ID.
The ID of the report to resolve.
The ID of the reported entity.
One or more actions to apply:
"remove-entity", "ban-user", and/or "dismiss".A summary of the resolution.
The reason for the resolution.
The user to ban. Required when
actions includes "ban-user".userId here is the ban target — the user being banned — not the actor performing the moderation.Promise<{ message: string; code: string }>
handleCommentReport
Resolves a reported comment by applying one or more actions.The Sublay space ID.
The ID of the report to resolve.
The ID of the reported comment.
One or more actions to apply:
"remove-comment", "ban-user", and/or "dismiss".A summary of the resolution.
The reason for the resolution.
The user to ban. Required when
actions includes "ban-user".userId here is the ban target — the user being banned — not the actor performing the moderation.Promise<{ message: string; code: string }>
handleSpaceChatReport
Resolves a reported space chat message by applying one or more actions.The Sublay space ID.
The ID of the report to resolve.
One or more actions to apply:
"remove-message", "ban-user", and/or "dismiss".A summary of the resolution.
The reason for the resolution.
The user to ban. Required when
actions includes "ban-user".The message to remove. Required when
actions includes "remove-message".userId here is the ban target — the user being banned — not the actor performing the moderation.Promise<{ message: string; code: string }>
moderateSpaceEntity
Approves or removes an entity in a space.The Sublay space ID.
The ID of the entity to moderate.
The action to take:
"approve" or "remove".The reason for the moderation action.
Promise<{ message: string; moderationStatus: "approved" | "removed" }>
moderateSpaceComment
Approves or removes a comment in a space.The Sublay space ID.
The ID of the comment to moderate.
The action to take:
"approve" or "remove".The reason for the moderation action.
Promise<{ message: string; moderationStatus: "approved" | "removed" }>
moderateSpaceChatMessage
Applies a moderation status to a space chat message.The Sublay space ID.
The ID of the chat message to moderate.
The moderation status to apply:
"removed".The reason for the moderation action.
Promise<{ message: string; moderationStatus: string }>
fetchManyRules
Fetches all rules for a space.The Sublay space ID.
Promise<FetchManyRulesResponse>
fetchRule
Fetches a single rule by ID.The Sublay space ID.
The ID of the rule to fetch.
Promise<Rule>
createRule
Creates a rule in a space.The Sublay space ID.
The rule title.
The rule description.
Promise<Rule>
updateRule
Updates a rule’s title and/or description.The Sublay space ID.
The ID of the rule to update.
The new rule title.
The new rule description.
Promise<Rule>
deleteRule
Deletes a rule.The Sublay space ID.
The ID of the rule to delete.
Promise<DeleteRuleResponse>
reorderRules
Reorders a space’s rules.The Sublay space ID.
The rule IDs in the new order.
Promise<Rule[]>
fetchDigestConfig
Fetches the digest configuration for a space.The Sublay space ID.
Promise<DigestConfig>
updateDigestConfig
Updates the digest configuration.The Sublay space ID.
Whether digest delivery is enabled.
The webhook URL to deliver the digest to.
The secret used to sign digest webhook deliveries.
The hour of day at which the digest is delivered.
The timezone used to interpret the schedule hour.
Promise<DigestConfig>
