diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7df6280..0cdddb0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1,12 @@ +# Salesforce Open Source project configuration +# Learn more: https://github.com/salesforce/oss-template +#ECCN:Open Source +#GUSINFO:Open Source,Open Source Workflow + +# @slackapi/denosaurs +# are code reviewers for all changes in this repo. * @slackapi/denosaurs + +# @slackapi/developer-education +# are code reviewers for changes in the `/docs` directory. +/docs/ @slackapi/developer-education diff --git a/src/README.md b/src/README.md index 17bf856..89440a3 100644 --- a/src/README.md +++ b/src/README.md @@ -2,8 +2,15 @@ [![codecov](https://codecov.io/gh/slackapi/deno-slack-api/graph/badge.svg?token=QKJCI23P5S)](https://codecov.io/gh/slackapi/deno-slack-api) + Slack API Client for Deno Run on Slack projects +## 📢 Important + +We recommend importing this package from +[JSR](https://jsr.io/@slack/sdk/versions). New releases will no longer be +published to `deno.land/x`. + ```ts import { SlackAPI } from "https://deno.land/x/deno_slack_api@2.1.1/mod.ts"; diff --git a/src/typed-method-types/workflows/triggers/event-data/channel_archived.ts b/src/typed-method-types/workflows/triggers/event-data/channel_archived.ts index a525a2c..85e95cf 100644 --- a/src/typed-method-types/workflows/triggers/event-data/channel_archived.ts +++ b/src/typed-method-types/workflows/triggers/event-data/channel_archived.ts @@ -11,7 +11,7 @@ export const ChannelArchived = { */ channel_name: "{{data.channel_name}}", /** - * The channel type for the channel that was archived. Can be one of "public" or "private". + * The channel type for the channel that was archived. Can be one of `public`, `private`, `im` or `mpim`. */ channel_type: "{{data.channel_type}}", /** diff --git a/src/typed-method-types/workflows/triggers/event-data/message_posted.ts b/src/typed-method-types/workflows/triggers/event-data/message_posted.ts index 8a962a6..f38fbe3 100644 --- a/src/typed-method-types/workflows/triggers/event-data/message_posted.ts +++ b/src/typed-method-types/workflows/triggers/event-data/message_posted.ts @@ -2,10 +2,6 @@ import base_trigger_data from "./common-objects/all_triggers.ts"; export const MessagePosted = { ...base_trigger_data, - /** - * A unique identifier for the app that posted the message. Only available when message is posted by an app. - */ - app_id: "{{data.app_id}}", /** * A unique identifier for the {@link https://api.slack.com/automation/types#channelid Slack channel} where message was posted. */ diff --git a/src/typed-method-types/workflows/triggers/event-data/reaction_added.ts b/src/typed-method-types/workflows/triggers/event-data/reaction_added.ts index dad1d90..535a164 100644 --- a/src/typed-method-types/workflows/triggers/event-data/reaction_added.ts +++ b/src/typed-method-types/workflows/triggers/event-data/reaction_added.ts @@ -10,14 +10,26 @@ export const ReactionAdded = { * The event type being invoked. At runtime will always be "slack#/events/reaction_added". */ event_type: "{{data.event_type}}", + /** + * A unique identifier for the {@link https://api.slack.com/automation/types#userid Slack user} who sent the message that was reacted to. + */ + item_user: "{{data.item_user}}", /** * A {@link https://api.slack.com/automation/types#message-context Message Context} object representing the message being reacted to. */ message_context: "{{data.message_context}}", + /** + * Link to the message that was reacted to. + */ + message_link: "{{data.message_link}}", /** * A unique {@link https://api.slack.com/automation/types#message-ts Slack message timestamp string} indicating when the message being reacted to was sent. */ message_ts: "{{data.message_ts}}", + /** + * Link to the parent of the message that was reacted to. Only available if reaction was added to a threaded reply. + */ + parent_message_link: "{{data.parent_message_link}}", /** * A string representing the emoji name. */ diff --git a/src/typed-method-types/workflows/triggers/event-data/user_joined_channel.ts b/src/typed-method-types/workflows/triggers/event-data/user_joined_channel.ts index 25cf785..90df06b 100644 --- a/src/typed-method-types/workflows/triggers/event-data/user_joined_channel.ts +++ b/src/typed-method-types/workflows/triggers/event-data/user_joined_channel.ts @@ -14,10 +14,6 @@ export const UserJoinedChannel = { * The event type being invoked. At runtime will always be "slack#/events/user_joined_channel". */ event_type: "{{data.event_type}}", - /** - * A unique identifier for the {@link https://api.slack.com/automation/types#userid Slack user} who invited the member to the channel. - */ - inviter_id: "{{data.inviter_id}}", /** * A unique identifier for the {@link https://api.slack.com/automation/types#userid Slack user} who joined the channel. */