feat: add status reactions across messaging channels

This commit is contained in:
xmanrui 2026-08-25 17:12:28 +08:00
parent aa8fd71b93
commit da01e3acee
30 changed files with 1853 additions and 274 deletions

View file

@ -276,6 +276,34 @@ export class SlackApi {
});
}
addReaction({ channelId, messageTs, emojiName, signal, timeoutMs }) {
return this.#request('reactions.add', {
tokenKind: 'bot',
signal,
timeoutMs,
retry: false,
body: {
channel: slackId(channelId, 'channel id'),
timestamp: requiredString(messageTs, 'message timestamp'),
name: requiredString(emojiName, 'reaction name'),
},
});
}
removeReaction({ channelId, messageTs, emojiName, signal, timeoutMs }) {
return this.#request('reactions.remove', {
tokenKind: 'bot',
signal,
timeoutMs,
retry: false,
body: {
channel: slackId(channelId, 'channel id'),
timestamp: requiredString(messageTs, 'message timestamp'),
name: requiredString(emojiName, 'reaction name'),
},
});
}
startStream({ channelId, threadTs, recipientTeamId, recipientUserId, markdownText, signal }) {
return this.#request('chat.startStream', {
tokenKind: 'bot',