chore: import clean Agent Desk snapshot (3/7)

This commit is contained in:
2026-10-16 11:58:36 +00:00
parent 89c5231c4c
commit fe4a99cf4b
127 changed files with 29641 additions and 0 deletions

37
internal/slack/types.go Normal file
View File

@@ -0,0 +1,37 @@
package slack
// SendMessageRequest represents payload for Slack chat.postMessage API.
type SendMessageRequest struct {
Channel string `json:"channel"`
Text string `json:"text"`
ThreadTS string `json:"thread_ts,omitempty"`
ParseMode string `json:"parse,omitempty"`
}
// SendMessageResponse represents response from Slack Web API.
type SendMessageResponse struct {
OK bool `json:"ok"`
Channel string `json:"channel,omitempty"`
TS string `json:"ts,omitempty"`
Error string `json:"error,omitempty"`
}
// EventCallback represents incoming Slack Events API payload.
type EventCallback struct {
Token string `json:"token"`
TeamID string `json:"team_id"`
APIAppID string `json:"api_app_id"`
Type string `json:"type"` // url_verification | event_callback
Challenge string `json:"challenge"` // for url_verification
Event *struct {
Type string `json:"type"` // message | app_mention
User string `json:"user"`
Text string `json:"text"`
TS string `json:"ts"`
ThreadTS string `json:"thread_ts,omitempty"`
Channel string `json:"channel"`
ChannelType string `json:"channel_type"` // im | channel | group
BotID string `json:"bot_id,omitempty"`
Subtype string `json:"subtype,omitempty"`
} `json:"event,omitempty"`
}