feat: add app_context_changed event type#2633
Conversation
|
…on setSuggestedPrompts Adds AppContextChangedEvent to @slack/types with typed entity discriminated union (channel_id, canvas_id, list_id, message_context). Also adds app_context field to GenericMessageEvent since the context is delivered inline on messages too. Makes thread_ts optional on AssistantThreadsSetSuggestedPromptsArguments in @slack/web-api since agent_view DMs don't require it.
18aa667 to
3ee37fb
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2633 +/- ##
=======================================
Coverage 88.90% 88.90%
=======================================
Files 63 63
Lines 10256 10256
Branches 452 452
=======================================
Hits 9118 9118
Misses 1117 1117
Partials 21 21
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Summary
AppContextChangedEventto@slack/typeswith a discriminated union for entity types (slack#/types/channel_id,slack#/types/canvas_id,slack#/types/list_id,slack#/types/message_context)app_contextoptional field toGenericMessageEvent(the context is delivered inline on messages too)thread_tsoptional onAssistantThreadsSetSuggestedPromptsArgumentsin@slack/web-api— agent_view DMs set prompts at the channel level without a threadTest plan
npm run build --workspace=@slack/typespassesnpm run build --workspace=@slack/web-apipassesapp.event('app_context_changed', ...)usingExtract<SlackEvent, { type: 'app_context_changed' }>setSuggestedPromptsaccepts calls withoutthread_ts🤖 Generated with Claude Code