- migrate files_upload.py to use the slack_sdk helper method files_upload_v2. API endpoint files.upload is deprecated and will stop functioning on March 11, 2025.
- fix "all" reference for
post_attachment
- Added action
post_attachment - Added missing
icon_urlto config schema
- Upgrade lxml dependency from 3.8.0 to 4.6.5
- Add
blocksfrom slack message to sensorpayload
- Add support for
conversations.infoslack method asgroups.infoandchannels.infowere deprecated. - Fix a bug in
SlackSensor._api_call. There is no need tojson.loadsthe result as slackclient 1.3.1 already parses the json.
- Add support for Slack apps created post Feb. 24, 2021 that no longer support tokens being passed in the url
- Make the
http_methodparameter tofiles.uploadnot required, and make it an enum parameter since only POST and GET are supported anyway.
- Remove default value from
slack.files.uploadfile_pathparameter
- Drop Python 2.7 support
- Extended override logic in
./bin/generate_openapi.pyto allow for global param overrides. token[required] is now forced tofalse#60 - Fix python 2.7/3.6 compatibility for ./actions/run.py #63 #58 #59
- CODEOWNER file
- Basic unit testing and structure for expanded unit testing
-
Added the ability for
slack.files.uploadto upload a file from the filesystem using the newfile_pathparameter. See the README for more details. -
Fixed bugs in
slack.files.uploadwhere the upload wasn't sending data via the API in the correct format, causing the uplaods to fail.Contributed by Nick Maludy (@nmaludy)
-
Updated all actions to latest API spec as of 2020-06-11.
-
Converted action auto-generator to using both the OpenAPI spec and the HTTP reference.
-
Removed old action auto-generator so we can develop on a common tool.
Contributed by Nick Maludy (@nmaludy)
- Various improvements to the
slack.post_messageaction:- Make
icon_emojiconfig option and parameter option. If it's not specified, it will now use server-side default. - Add new
icon_urlparameter to the action. - Make
post_message_action.webhook_urlconfig optional. This value can either be specified in the config or overriden on per action invocation basis.
- Make
- Don't require
post_message_actionconfig option to be set whenwebhook_urlparameter is provided when callingslack.post_messageaction.
- fix
attachmentsparameter type in sensor. - update
jinjadependency to 2.10.1+ - use upstream
slackclientpackage
- Fix
textparameter inchat.updateto berequired: false, same aschat.postMessage.textonly required whenattachmentsisNone - Update icon to new rebranded Slack icon
- Bump allowed
requests()version, remove httplib
- Added
is_botattribute to the user payload inslack_sensorsensor.
- Added
attachmentsas part of theslack_sensorsensor payload.
- Added the option
allow_bot_messagesin theslack_sensorsensor.
- Fix
textparameter to be optional inchat.postMessageaction.
- Handling of cyrillic and special symbols in
run.pythrough adding utf-8 encoding.
- All actions now uses preferred HTTP method mentioned in official API reference.
- Sync with the latest Slack API.
- Modified:
files.infogroups.listmpim.listreactions.liststars.list- Add optional parameters:
cursor,limit
- Add optional parameters:
- Sync with the latest Slack API.
- Added:
apps.permissions.infoapps.permissions.requestapps.permissions.resources.listapps.permissions.scopes.listapps.permissions.users.listapps.permissions.users.requestchat.getPermalinkchat.postEphemeralconversations.archiveconversations.closeconversations.createconversations.historyconversations.infoconversations.inviteconversations.joinconversations.kickconversations.leaveconversations.listconversations.membersconversations.openconversations.renameconversations.repliesconversations.setPurposeconversations.setTopicconversations.unarchivedialog.openmigration.exchangeoauth.tokenusers.conversationsusers.lookupByEmail
- Modified:
oauth.access- Add
single_channeloptional parameter
- Add
- Add thread_ts parameter to
files.uploadaction.
- Fix to use POST in
files.uploadaction so that it can upload larger content.
- Fortify
send_invite.pyto better handle optional parameters.
- Add
secret: trueforwebhook_urlin config.schema.yaml.
- Added custom
users_filter_byaction.
- Enforce default values to be a string type in YAML action definitions.
- Update actions according to latest Slack API changes.
- Remove
groups.closeaction that is no longer available among Slack API methods.
- Remove required flag from
action_tokensince other sections could be configured without relying on it.
- Updated action
runner_typefromrun-pythontopython-script
- Rename
config.yamltoconfig.schema.yamland update to use schema.