Skip to main content

Module types

Module types 

Source
Expand description

Slack Socket Mode + Web API wire types.

Block Kit is represented as raw serde_json::Value rather than a typed enum tree (spec §4.4, §7, §11.2) — Slack’s block/element/object surface is large and evolving; a raw escape hatch is the deliberate v1 choice.

Structs§

AckFrame
Sent back on the same socket a events_api/slash_commands envelope arrived on, within 3 seconds of receipt (spec §2.2 — hard correctness requirement).
DisconnectFrame
EventsApiEnvelope
EventsApiPayload
HelloFrame
OpenConnectionResponse
PostMessageBody
PostMessageResponse
SlackEvent
SlashCommandsEnvelope
Present for wire-compatibility only — not routed/acted on (see module doc).

Enums§

SocketEnvelope
Tagged on the wire "type" field. SlashCommands is parsed for forward compatibility (an envelope of this kind can arrive if the app has any slash command registered) but its payload is not modeled/acted on — slash command handling is explicitly out of scope for this PR (spec §2.5, §10 Phase 4).