What's Changed
Added
- OAuth PKCE support -
OAuthOptionCodeVerifieroption forGetOAuthV2Response, plusGenerateCodeVerifier()andGenerateCodeChallenge()helpers (RFC 7636).client_secretis now conditionally omitted when empty in bothGetOAuthV2ResponseContextandRefreshOAuthV2TokenContext. - Manifest scope fields -
BotOptionalandUserOptionalonOAuthScopes. - Rich text styles -
Underline,Highlight,ClientHighlight, andUnlinkonRichTextSectionTextStyle.Stylefield onRichTextSectionUserGroupElement. - Assistant search context -
Sort,SortDir,Before,After,Highlight,IncludeContextMessages,IncludeDeletedUsers,IncludeMessageBlocks,IncludeArchivedChannels,DisableSemanticSearch,Modifiers,TermClausesparameters and new response types (AssistantSearchContextFile,AssistantSearchContextChannel,AssistantSearchContextMessageContext).
Fixed
- socketmode: malformed JSON no longer forces reconnect -
json.SyntaxErrorandjson.UnmarshalTypeErrornow emit anEventTypeIncomingErrorevent and continue reading instead of killing the WebSocket connection. - socketmode:
debug_reconnectsquery param applied correctly - the parameter was silently discarded due to a missingurl.RawQueryassignment. ChannelTypesandContentTypesnow send comma-separated values instead of repeated form keys, matching the convention used by every other method in the library.
Docs
assistant:writescope marked as deprecated in favour ofchat:write.
Full Changelog: v0.21.1...v0.22.0