Skip to content

Commit 3c0ca6a

Browse files
authored
feat: add support for work objects (#2652)
1 parent 509d6f6 commit 3c0ca6a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

examples/socket-mode/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ This app requires you setup a few environment variables. You can find these valu
3030

3131
```
3232
// can get this from OAuth & Permission page in app configuration
33-
export BOT_TOKEN=YOUR_SLACK_BOT_TOKEN
33+
export SLACK_BOT_TOKEN=YOUR_SLACK_BOT_TOKEN
3434
// can generate the app level token from basic information page in app configuration
35-
export APP_TOKEN=YOUR_SLACK_APP_TOKEN
35+
export SLACK_APP_TOKEN=YOUR_SLACK_APP_TOKEN
3636
3737
// if using OAuth, also export the following
3838
export CLIENT_ID=YOUR_SLACK_CLIENT_ID

src/types/view/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export interface ViewSubmitAction {
6464
view: ViewOutput;
6565
api_app_id: string;
6666
token: string;
67-
trigger_id: string; // undocumented
67+
trigger_id: string;
6868
// exists for enterprise installs
6969
is_enterprise_install?: boolean;
7070
enterprise?: {
@@ -313,6 +313,12 @@ export interface ViewOutput {
313313
clear_on_close: boolean;
314314
notify_on_close: boolean;
315315
external_id?: string;
316+
entity_url?: string;
317+
external_ref?: { id: string; type?: string };
318+
app_unfurl_url?: string;
319+
message_ts?: string;
320+
thread_ts?: string;
321+
channel?: string;
316322
}
317323

318324
export interface ViewUpdateResponseAction {

0 commit comments

Comments
 (0)