Files
sam c5f24ec914 chore: delete code no binary reaches
Removes the Kit task-tool result shim (and with it the MCP go-sdk
dependency), the messaging enable/disable/restart helpers and channel
rebuild closures nothing calls since channels became extensions, the
unused messaging capability, ephemeral and text-fallback types, and
single stragglers in telemetry, releaseupdate, skill, storepkg and
webui. The egress sandbox relay stays for #1867.
2026-11-13 03:33:32 +11:00

41 lines
1.6 KiB
Go

package messaging
// MessageType discriminates inbound gateway messages.
type MessageType string
const (
MsgText MessageType = "text"
MsgImage MessageType = "image"
MsgAudio MessageType = "audio"
MsgVideo MessageType = "video"
MsgDocument MessageType = "document"
MsgLocation MessageType = "location"
MsgContact MessageType = "contact"
MsgSticker MessageType = "sticker"
MsgReaction MessageType = "reaction"
MsgCallback MessageType = "callback"
MsgEdited MessageType = "edited"
MsgDeleted MessageType = "deleted"
MsgSystem MessageType = "system"
)
// MessageEvent is the rich message model for gateway channels.
type MessageEvent struct {
Type MessageType `json:"type"`
Text string `json:"text,omitempty"`
ID string `json:"id,omitempty"`
ChannelID string `json:"channel_id"`
Platform string `json:"platform"`
SenderID string `json:"sender_id"`
SenderName string `json:"sender_name,omitempty"`
ReplyToID string `json:"reply_to_id,omitempty"`
ThreadID string `json:"thread_id,omitempty"`
Media []MediaAttachment `json:"media,omitempty"`
EditedFrom string `json:"edited_from,omitempty"`
Reaction string `json:"reaction,omitempty"`
ReactedToID string `json:"reacted_to_id,omitempty"`
CallbackData string `json:"callback_data,omitempty"`
Timestamp int64 `json:"timestamp,omitempty"`
Raw map[string]any `json:"raw,omitempty"`
}