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