cloudstructs 0.4.18 → 0.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/assets/slack-app/provider.lambda/index.js +7 -2
- package/assets/slack-textract/detect.lambda/index.js +54 -49
- package/assets/toolkit-cleaner/clean-images.lambda/index.js +7 -1
- package/changelog.md +1 -6
- package/lib/codecommit-mirror/index.d.ts +14 -39
- package/lib/codecommit-mirror/index.js +10 -19
- package/lib/ecs-service-roller/index.d.ts +10 -30
- package/lib/ecs-service-roller/index.js +7 -18
- package/lib/email-receiver/receiver.d.ts +7 -23
- package/lib/email-receiver/receiver.js +4 -8
- package/lib/saml-identity-provider/index.d.ts +6 -17
- package/lib/saml-identity-provider/index.js +5 -11
- package/lib/slack-app/manifest.d.ts +52 -133
- package/lib/slack-app/manifest.js +15 -12
- package/lib/slack-app/slack-app.d.ts +21 -53
- package/lib/slack-app/slack-app.js +8 -20
- package/lib/slack-events/index.d.ts +6 -19
- package/lib/slack-events/index.js +3 -8
- package/lib/slack-textract/index.d.ts +3 -16
- package/lib/slack-textract/index.js +3 -8
- package/lib/state-machine-cr-provider/index.d.ts +7 -23
- package/lib/state-machine-cr-provider/index.js +3 -8
- package/lib/static-website/index.d.ts +14 -36
- package/lib/static-website/index.js +5 -12
- package/lib/toolkit-cleaner/clean-images.lambda.js +8 -2
- package/lib/toolkit-cleaner/index.d.ts +5 -18
- package/lib/toolkit-cleaner/index.js +2 -7
- package/lib/url-shortener/index.d.ts +9 -25
- package/lib/url-shortener/index.js +3 -8
- package/node_modules/@sindresorhus/is/dist/index.d.ts +9 -4
- package/node_modules/@sindresorhus/is/dist/index.js +9 -3
- package/node_modules/@sindresorhus/is/package.json +1 -1
- package/node_modules/@sindresorhus/is/readme.md +24 -4
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +92 -2
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +10 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +92 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +10 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +92 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +10 -6
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +92 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/url.d.ts +10 -6
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +92 -2
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +10 -6
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +92 -2
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +10 -6
- package/node_modules/follow-redirects/index.js +82 -77
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/keyv/.nyc_output/{adb04494-7d0a-443f-9130-94b19c3fa19c.json → 5d6b8dd1-67cf-42ee-8492-c8ae62ce826c.json} +0 -0
- package/node_modules/keyv/.nyc_output/{17c338d1-cd21-4d2f-9d97-398f18a945cf.json → ce27532e-5888-46d4-ae10-5a71058d3f0c.json} +0 -0
- package/node_modules/keyv/.nyc_output/processinfo/5d6b8dd1-67cf-42ee-8492-c8ae62ce826c.json +1 -0
- package/node_modules/keyv/.nyc_output/processinfo/ce27532e-5888-46d4-ae10-5a71058d3f0c.json +1 -0
- package/node_modules/keyv/.nyc_output/processinfo/index.json +1 -1
- package/node_modules/keyv/package.json +7 -7
- package/node_modules/keyv/test/testdb.sqlite +0 -0
- package/package.json +7 -7
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
- package/node_modules/keyv/.nyc_output/67b1f344-0eec-41a3-a665-c824c346e898.json +0 -1
- package/node_modules/keyv/.nyc_output/processinfo/17c338d1-cd21-4d2f-9d97-398f18a945cf.json +0 -1
- package/node_modules/keyv/.nyc_output/processinfo/67b1f344-0eec-41a3-a665-c824c346e898.json +0 -1
- package/node_modules/keyv/.nyc_output/processinfo/adb04494-7d0a-443f-9130-94b19c3fa19c.json +0 -1
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { IConstruct } from 'constructs';
|
|
2
2
|
/**
|
|
3
|
-
* Properties for a Slack app manifest
|
|
3
|
+
* Properties for a Slack app manifest
|
|
4
4
|
*
|
|
5
5
|
* @see https://api.slack.com/reference/manifests
|
|
6
|
-
* @stability stable
|
|
7
6
|
*/
|
|
8
7
|
export interface SlackAppManifestProps {
|
|
9
8
|
/**
|
|
10
9
|
* The name of the app.
|
|
11
10
|
*
|
|
12
11
|
* Maximum length is 35 characters.
|
|
13
|
-
*
|
|
14
|
-
* @stability stable
|
|
15
12
|
*/
|
|
16
13
|
readonly name: string;
|
|
17
14
|
/**
|
|
@@ -20,87 +17,75 @@ export interface SlackAppManifestProps {
|
|
|
20
17
|
* Maximum length is 140 characters.
|
|
21
18
|
*
|
|
22
19
|
* @default - no short description
|
|
23
|
-
* @stability stable
|
|
24
20
|
*/
|
|
25
21
|
readonly description?: string;
|
|
26
22
|
/**
|
|
27
23
|
* A longer version of the description of the app.
|
|
28
24
|
*
|
|
29
25
|
* Maximum length is 4000 characters.
|
|
30
|
-
*
|
|
31
|
-
* @stability stable
|
|
32
26
|
*/
|
|
33
27
|
readonly longDescription?: string;
|
|
34
28
|
/**
|
|
35
|
-
* A hex color value that specifies the background color used on hovercards
|
|
29
|
+
* A hex color value that specifies the background color used on hovercards
|
|
30
|
+
* that display information about your app.
|
|
36
31
|
*
|
|
37
32
|
* Can be 3-digit (#000) or 6-digit (#000000) hex values with or without #
|
|
38
|
-
*
|
|
39
|
-
* @stability stable
|
|
40
33
|
*/
|
|
41
34
|
readonly backgroundColor?: string;
|
|
42
35
|
/**
|
|
43
36
|
* The major version of the manifest schema to target.
|
|
44
37
|
*
|
|
45
38
|
* @default - do not target a specific major version
|
|
46
|
-
* @stability stable
|
|
47
39
|
*/
|
|
48
40
|
readonly majorVersion?: number;
|
|
49
41
|
/**
|
|
50
|
-
* The minor version of the manifest schema to target
|
|
42
|
+
* The minor version of the manifest schema to target
|
|
51
43
|
*
|
|
52
44
|
* @default - do not target a specific minor version
|
|
53
|
-
* @stability stable
|
|
54
45
|
*/
|
|
55
46
|
readonly minorVersion?: number;
|
|
56
47
|
/**
|
|
57
|
-
* An array of IP addresses that conform to the Allowed IP Ranges feature
|
|
48
|
+
* An array of IP addresses that conform to the Allowed IP Ranges feature
|
|
58
49
|
*
|
|
59
50
|
* @see https://api.slack.com/authentication/best-practices#ip_allowlisting
|
|
60
|
-
* @stability stable
|
|
61
51
|
*/
|
|
62
52
|
readonly allowedIpAddressRanges?: string[];
|
|
63
53
|
/**
|
|
64
|
-
* Events API configuration for the app
|
|
54
|
+
* Events API configuration for the app
|
|
65
55
|
*
|
|
66
56
|
* @see https://api.slack.com/events-api
|
|
67
|
-
* @stability stable
|
|
68
57
|
*/
|
|
69
58
|
readonly eventSubscriptions?: SlackAppManifestEventSubscriptions;
|
|
70
59
|
/**
|
|
71
|
-
* Interactivity configuration for the app
|
|
72
|
-
*
|
|
73
|
-
* @stability stable
|
|
60
|
+
* Interactivity configuration for the app
|
|
74
61
|
*/
|
|
75
62
|
readonly interactivity?: SlackAppManifestInteractivity;
|
|
76
63
|
/**
|
|
77
64
|
* Whether org-wide deploy is enabled.
|
|
78
65
|
*
|
|
79
|
-
* @default false
|
|
80
66
|
* @see https://api.slack.com/enterprise/apps
|
|
81
|
-
*
|
|
67
|
+
*
|
|
68
|
+
* @default false
|
|
82
69
|
*/
|
|
83
70
|
readonly orgDeploy?: boolean;
|
|
84
71
|
/**
|
|
85
|
-
* Whether Socket Mode is enabled
|
|
72
|
+
* Whether Socket Mode is enabled
|
|
86
73
|
*
|
|
87
|
-
* @default false
|
|
88
74
|
* @see https://api.slack.com/apis/connections/socket
|
|
89
|
-
*
|
|
75
|
+
*
|
|
76
|
+
* @default false
|
|
90
77
|
*/
|
|
91
78
|
readonly socketMode?: boolean;
|
|
92
79
|
/**
|
|
93
|
-
* App Home configuration
|
|
80
|
+
* App Home configuration
|
|
94
81
|
*
|
|
95
82
|
* @see https://api.slack.com/surfaces/tabs
|
|
96
|
-
* @stability stable
|
|
97
83
|
*/
|
|
98
84
|
readonly appHome?: SlackAppManifestAppHome;
|
|
99
85
|
/**
|
|
100
|
-
* Bot user configuration
|
|
86
|
+
* Bot user configuration
|
|
101
87
|
*
|
|
102
88
|
* @see https://api.slack.com/bot-users
|
|
103
|
-
* @stability stable
|
|
104
89
|
*/
|
|
105
90
|
readonly botUser?: SlackkAppManifestBotUser;
|
|
106
91
|
/**
|
|
@@ -109,7 +94,6 @@ export interface SlackAppManifestProps {
|
|
|
109
94
|
* A maximum of 5 shortcuts can be included.
|
|
110
95
|
*
|
|
111
96
|
* @see https://api.slack.com/interactivity/shortcuts
|
|
112
|
-
* @stability stable
|
|
113
97
|
*/
|
|
114
98
|
readonly shortcuts?: SlackAppManifestShortcut[];
|
|
115
99
|
/**
|
|
@@ -118,7 +102,6 @@ export interface SlackAppManifestProps {
|
|
|
118
102
|
* A maximum of 5 slash commands can be included.
|
|
119
103
|
*
|
|
120
104
|
* @see https://api.slack.com/interactivity/slash-commands
|
|
121
|
-
* @stability stable
|
|
122
105
|
*/
|
|
123
106
|
readonly slashCommands?: SlackAppManifestSlashCommand[];
|
|
124
107
|
/**
|
|
@@ -127,7 +110,6 @@ export interface SlackAppManifestProps {
|
|
|
127
110
|
* A maximum of 10 workflow steps can be included.
|
|
128
111
|
*
|
|
129
112
|
* @see https://api.slack.com/workflows/steps
|
|
130
|
-
* @stability stable
|
|
131
113
|
*/
|
|
132
114
|
readonly workflowSteps?: SlackAppManifestWorkflowStep[];
|
|
133
115
|
/**
|
|
@@ -136,71 +118,60 @@ export interface SlackAppManifestProps {
|
|
|
136
118
|
* A maximum of 5 unfurl domains can be included.
|
|
137
119
|
*
|
|
138
120
|
* @see https://api.slack.com/reference/messaging/link-unfurling#configuring_domains
|
|
139
|
-
* @stability stable
|
|
140
121
|
*/
|
|
141
122
|
readonly unfurlDomains?: string[];
|
|
142
123
|
/**
|
|
143
|
-
* OAuth configuration for the app
|
|
144
|
-
*
|
|
145
|
-
* @stability stable
|
|
124
|
+
* OAuth configuration for the app
|
|
146
125
|
*/
|
|
147
126
|
readonly oauthConfig?: SlackAppManifestOauthConfig;
|
|
148
127
|
}
|
|
149
128
|
/**
|
|
150
|
-
* Settings section of the app config pages
|
|
151
|
-
*
|
|
152
|
-
* @stability stable
|
|
129
|
+
* Settings section of the app config pages
|
|
153
130
|
*/
|
|
154
131
|
export interface SlackAppManifestSettings {
|
|
155
132
|
/**
|
|
156
|
-
* An array of IP addresses that conform to the Allowed IP Ranges feature
|
|
133
|
+
* An array of IP addresses that conform to the Allowed IP Ranges feature
|
|
157
134
|
*
|
|
158
135
|
* @see https://api.slack.com/authentication/best-practices#ip_allowlisting
|
|
159
|
-
* @stability stable
|
|
160
136
|
*/
|
|
161
137
|
readonly allowedIpAddressRanges?: string[];
|
|
162
138
|
/**
|
|
163
|
-
* Events API configuration for the app
|
|
139
|
+
* Events API configuration for the app
|
|
164
140
|
*
|
|
165
141
|
* @see https://api.slack.com/events-api
|
|
166
|
-
* @stability stable
|
|
167
142
|
*/
|
|
168
143
|
readonly eventSubscriptions?: SlackAppManifestEventSubscriptions;
|
|
169
144
|
/**
|
|
170
|
-
* Interactivity configuration for the app
|
|
171
|
-
*
|
|
172
|
-
* @stability stable
|
|
145
|
+
* Interactivity configuration for the app
|
|
173
146
|
*/
|
|
174
147
|
readonly interactivity?: SlackAppManifestInteractivity;
|
|
175
148
|
/**
|
|
176
149
|
* Whether org-wide deploy is enabled.
|
|
177
150
|
*
|
|
178
|
-
* @default false
|
|
179
151
|
* @see https://api.slack.com/enterprise/apps
|
|
180
|
-
*
|
|
152
|
+
*
|
|
153
|
+
* @default false
|
|
181
154
|
*/
|
|
182
155
|
readonly orgDeploy?: boolean;
|
|
183
156
|
/**
|
|
184
|
-
* Whether Socket Mode is enabled
|
|
157
|
+
* Whether Socket Mode is enabled
|
|
185
158
|
*
|
|
186
|
-
* @default false
|
|
187
159
|
* @see https://api.slack.com/apis/connections/socket
|
|
188
|
-
*
|
|
160
|
+
*
|
|
161
|
+
* @default false
|
|
189
162
|
*/
|
|
190
163
|
readonly socketMode?: boolean;
|
|
191
164
|
}
|
|
192
165
|
/**
|
|
193
|
-
* Events API configuration for the app
|
|
166
|
+
* Events API configuration for the app
|
|
194
167
|
*
|
|
195
168
|
* @see https://api.slack.com/events-api
|
|
196
|
-
* @stability stable
|
|
197
169
|
*/
|
|
198
170
|
export interface SlackAppManifestEventSubscriptions {
|
|
199
171
|
/**
|
|
200
|
-
* The full https URL that acts as the Events API request URL
|
|
172
|
+
* The full https URL that acts as the Events API request URL
|
|
201
173
|
*
|
|
202
174
|
* @see https://api.slack.com/events-api#the-events-api__subscribing-to-event-types__events-api-request-urls
|
|
203
|
-
* @stability stable
|
|
204
175
|
*/
|
|
205
176
|
readonly requestUrl: string;
|
|
206
177
|
/**
|
|
@@ -209,239 +180,196 @@ export interface SlackAppManifestEventSubscriptions {
|
|
|
209
180
|
* A maximum of 100 event types can be used
|
|
210
181
|
*
|
|
211
182
|
* @see https://api.slack.com/events
|
|
212
|
-
* @stability stable
|
|
213
183
|
*/
|
|
214
184
|
readonly botEvents?: string[];
|
|
215
185
|
/**
|
|
216
186
|
* Event types you want the app to subscribe to on behalf of authorized users.
|
|
217
187
|
*
|
|
218
188
|
* A maximum of 100 event types can be used.
|
|
219
|
-
*
|
|
220
|
-
* @stability stable
|
|
221
189
|
*/
|
|
222
190
|
readonly userEvents?: string[];
|
|
223
191
|
}
|
|
224
192
|
/**
|
|
225
|
-
* Interactivity configuration for the app
|
|
193
|
+
* Interactivity configuration for the app
|
|
226
194
|
*
|
|
227
195
|
* @see https://api.slack.com/interactivity/handling#setup
|
|
228
|
-
* @stability stable
|
|
229
196
|
*/
|
|
230
197
|
export interface SlackAppManifestInteractivity {
|
|
231
198
|
/**
|
|
232
|
-
* Whether or not interactivity features are enabled
|
|
199
|
+
* Whether or not interactivity features are enabled
|
|
233
200
|
*
|
|
234
201
|
* @default true
|
|
235
|
-
* @stability stable
|
|
236
202
|
*/
|
|
237
203
|
readonly enabled?: boolean;
|
|
238
204
|
/**
|
|
239
|
-
* The full https URL that acts as the interactive Request URL
|
|
240
|
-
*
|
|
241
|
-
* @stability stable
|
|
205
|
+
* The full https URL that acts as the interactive Request URL
|
|
242
206
|
*/
|
|
243
207
|
readonly requestUrl?: string;
|
|
244
208
|
/**
|
|
245
|
-
* The full https URL that acts as th interactive Options Load URL
|
|
246
|
-
*
|
|
247
|
-
* @stability stable
|
|
209
|
+
* The full https URL that acts as th interactive Options Load URL
|
|
248
210
|
*/
|
|
249
211
|
readonly messageMenuOptionsUrl?: string;
|
|
250
212
|
}
|
|
251
213
|
/**
|
|
252
|
-
* App Home configuration
|
|
214
|
+
* App Home configuration
|
|
253
215
|
*
|
|
254
216
|
* @see https://api.slack.com/surfaces/tabs
|
|
255
|
-
* @stability stable
|
|
256
217
|
*/
|
|
257
218
|
export interface SlackAppManifestAppHome {
|
|
258
219
|
/**
|
|
259
|
-
* Wether the Home tab is enabled
|
|
220
|
+
* Wether the Home tab is enabled
|
|
260
221
|
*
|
|
261
222
|
* @default false
|
|
262
|
-
* @stability stable
|
|
263
223
|
*/
|
|
264
224
|
readonly homeTab?: boolean;
|
|
265
225
|
/**
|
|
266
|
-
* Wether the Messages is enabled
|
|
226
|
+
* Wether the Messages is enabled
|
|
267
227
|
*
|
|
268
228
|
* @default false
|
|
269
|
-
* @stability stable
|
|
270
229
|
*/
|
|
271
230
|
readonly messagesTab?: boolean;
|
|
272
231
|
/**
|
|
273
|
-
* Whether the users can send messages to your app in the
|
|
232
|
+
* Whether the users can send messages to your app in the
|
|
233
|
+
* Messages tab of your App Home
|
|
274
234
|
*
|
|
275
235
|
* @default false
|
|
276
|
-
* @stability stable
|
|
277
236
|
*/
|
|
278
237
|
readonly messagesTabReadOnly?: boolean;
|
|
279
238
|
}
|
|
280
239
|
/**
|
|
281
|
-
* Bot user configuration
|
|
240
|
+
* Bot user configuration
|
|
282
241
|
*
|
|
283
242
|
* @see https://api.slack.com/bot-users
|
|
284
|
-
* @stability stable
|
|
285
243
|
*/
|
|
286
244
|
export interface SlackkAppManifestBotUser {
|
|
287
245
|
/**
|
|
288
246
|
* The display name of the bot user.
|
|
289
247
|
*
|
|
290
248
|
* Maximum length is 80 characters.
|
|
291
|
-
*
|
|
292
|
-
* @stability stable
|
|
293
249
|
*/
|
|
294
250
|
readonly displayName: string;
|
|
295
251
|
/**
|
|
296
|
-
* Whether the bot user will always appear to be online
|
|
252
|
+
* Whether the bot user will always appear to be online
|
|
297
253
|
*
|
|
298
254
|
* @default false
|
|
299
|
-
* @stability stable
|
|
300
255
|
*/
|
|
301
256
|
readonly alwaysOnline?: boolean;
|
|
302
257
|
}
|
|
303
258
|
/**
|
|
304
|
-
* Shortcut configuration
|
|
259
|
+
* Shortcut configuration
|
|
305
260
|
*
|
|
306
261
|
* @see https://api.slack.com/interactivity/shortcuts
|
|
307
|
-
* @stability stable
|
|
308
262
|
*/
|
|
309
263
|
export interface SlackAppManifestShortcut {
|
|
310
264
|
/**
|
|
311
|
-
* The name of the shortcut
|
|
312
|
-
*
|
|
313
|
-
* @stability stable
|
|
265
|
+
* The name of the shortcut
|
|
314
266
|
*/
|
|
315
267
|
readonly name: string;
|
|
316
268
|
/**
|
|
317
|
-
* The type of shortcut
|
|
269
|
+
* The type of shortcut
|
|
318
270
|
*
|
|
319
271
|
* @see https://api.slack.com/interactivity/shortcuts
|
|
320
|
-
* @stability stable
|
|
321
272
|
*/
|
|
322
273
|
readonly type: SlackAppManifestShortcutType;
|
|
323
274
|
/**
|
|
324
275
|
* The callback ID of the shortcut.
|
|
325
276
|
*
|
|
326
277
|
* Maximum length is 255 characters.
|
|
327
|
-
*
|
|
328
|
-
* @stability stable
|
|
329
278
|
*/
|
|
330
279
|
readonly callbackId: string;
|
|
331
280
|
/**
|
|
332
|
-
* A short description of the shortcut
|
|
281
|
+
* A short description of the shortcut
|
|
333
282
|
*
|
|
334
283
|
* Maximum length is 150 characters
|
|
335
|
-
*
|
|
336
|
-
* @stability stable
|
|
337
284
|
*/
|
|
338
285
|
readonly description: string;
|
|
339
286
|
}
|
|
340
287
|
/**
|
|
341
|
-
* Type of shortcuts
|
|
288
|
+
* Type of shortcuts
|
|
342
289
|
*
|
|
343
290
|
* @see https://api.slack.com/interactivity/shortcuts
|
|
344
|
-
* @stability stable
|
|
345
291
|
*/
|
|
346
292
|
export declare enum SlackAppManifestShortcutType {
|
|
347
293
|
/**
|
|
348
|
-
* Message shortcuts are shown to users in the context menus of messages within Slack
|
|
294
|
+
* Message shortcuts are shown to users in the context menus of messages within Slack
|
|
349
295
|
*
|
|
350
296
|
* @see https://api.slack.com/interactivity/shortcuts/using#message_shortcuts
|
|
351
|
-
* @stability stable
|
|
352
297
|
*/
|
|
353
298
|
MESSAGE = "message",
|
|
354
299
|
/**
|
|
355
|
-
* Global shortcuts are available to users via the shortcuts button in the composer,
|
|
300
|
+
* Global shortcuts are available to users via the shortcuts button in the composer,
|
|
301
|
+
* and when using search in Slack
|
|
356
302
|
*
|
|
357
303
|
* @see https://api.slack.com/interactivity/shortcuts/using#global_shortcuts
|
|
358
|
-
* @stability stable
|
|
359
304
|
*/
|
|
360
305
|
GLOBAL = "global"
|
|
361
306
|
}
|
|
362
307
|
/**
|
|
363
|
-
* Slash command configuration
|
|
308
|
+
* Slash command configuration
|
|
364
309
|
*
|
|
365
310
|
* @see https://api.slack.com/interactivity/slash-commands
|
|
366
|
-
* @stability stable
|
|
367
311
|
*/
|
|
368
312
|
export interface SlackAppManifestSlashCommand {
|
|
369
313
|
/**
|
|
370
314
|
* The actual slash command.
|
|
371
315
|
*
|
|
372
316
|
* Maximum length is 32 characters
|
|
373
|
-
*
|
|
374
|
-
* @stability stable
|
|
375
317
|
*/
|
|
376
318
|
readonly command: string;
|
|
377
319
|
/**
|
|
378
320
|
* The description of the slash command.
|
|
379
321
|
*
|
|
380
322
|
* Maximum length is 2000 characters.
|
|
381
|
-
*
|
|
382
|
-
* @stability stable
|
|
383
323
|
*/
|
|
384
324
|
readonly description: string;
|
|
385
325
|
/**
|
|
386
|
-
* The full https URL that acts as the slash command's request URL
|
|
326
|
+
* The full https URL that acts as the slash command's request URL
|
|
387
327
|
*
|
|
388
328
|
* @see https://api.slack.com/interactivity/slash-commands#creating_commands
|
|
389
|
-
* @stability stable
|
|
390
329
|
*/
|
|
391
330
|
readonly url?: string;
|
|
392
331
|
/**
|
|
393
332
|
* The short usage hint about the slash command for users.
|
|
394
333
|
*
|
|
395
334
|
* Maximum length is 1000 characters.
|
|
396
|
-
*
|
|
397
|
-
* @stability stable
|
|
398
335
|
*/
|
|
399
336
|
readonly usageHint?: string;
|
|
400
337
|
/**
|
|
401
|
-
* Whether channels, users, and links typed with the slash command should be escaped
|
|
338
|
+
* Whether channels, users, and links typed with the slash command should be escaped
|
|
402
339
|
*
|
|
403
340
|
* @default false
|
|
404
|
-
* @stability stable
|
|
405
341
|
*/
|
|
406
342
|
readonly shouldEscape?: boolean;
|
|
407
343
|
}
|
|
408
344
|
/**
|
|
409
|
-
* Workflow step
|
|
345
|
+
* Workflow step
|
|
410
346
|
*
|
|
411
347
|
* @see https://api.slack.com/workflows/steps
|
|
412
|
-
* @stability stable
|
|
413
348
|
*/
|
|
414
349
|
export interface SlackAppManifestWorkflowStep {
|
|
415
350
|
/**
|
|
416
351
|
* The name of the workflow step.
|
|
417
352
|
*
|
|
418
353
|
* Maximum length of 50 characters.
|
|
419
|
-
*
|
|
420
|
-
* @stability stable
|
|
421
354
|
*/
|
|
422
355
|
readonly name: string;
|
|
423
356
|
/**
|
|
424
357
|
* The callback ID of the workflow step.
|
|
425
358
|
*
|
|
426
359
|
* Maximum length of 50 characters.
|
|
427
|
-
*
|
|
428
|
-
* @stability stable
|
|
429
360
|
*/
|
|
430
361
|
readonly callbackId: string;
|
|
431
362
|
}
|
|
432
363
|
/**
|
|
433
|
-
* OAuth configuration for the app
|
|
434
|
-
*
|
|
435
|
-
* @stability stable
|
|
364
|
+
* OAuth configuration for the app
|
|
436
365
|
*/
|
|
437
366
|
export interface SlackAppManifestOauthConfig {
|
|
438
367
|
/**
|
|
439
|
-
* OAuth redirect URLs
|
|
368
|
+
* OAuth redirect URLs
|
|
440
369
|
*
|
|
441
370
|
* A maximum of 1000 redirect URLs can be included.
|
|
442
371
|
*
|
|
443
372
|
* @see https://api.slack.com/authentication/oauth-v2#redirect_urls
|
|
444
|
-
* @stability stable
|
|
445
373
|
*/
|
|
446
374
|
readonly redirectUrls?: string[];
|
|
447
375
|
/**
|
|
@@ -450,7 +378,6 @@ export interface SlackAppManifestOauthConfig {
|
|
|
450
378
|
* A maximum of 255 scopes can be included.
|
|
451
379
|
*
|
|
452
380
|
* @see https://api.slack.com/scopes
|
|
453
|
-
* @stability stable
|
|
454
381
|
*/
|
|
455
382
|
readonly botScopes?: string[];
|
|
456
383
|
/**
|
|
@@ -459,24 +386,16 @@ export interface SlackAppManifestOauthConfig {
|
|
|
459
386
|
* A maximum of 255 scopes can be included.
|
|
460
387
|
*
|
|
461
388
|
* @see https://api.slack.com/scopes
|
|
462
|
-
* @stability stable
|
|
463
389
|
*/
|
|
464
390
|
readonly userScopes?: string[];
|
|
465
391
|
}
|
|
466
392
|
/**
|
|
467
|
-
* A Slack app manifest
|
|
393
|
+
* A Slack app manifest
|
|
468
394
|
*
|
|
469
395
|
* @see https://api.slack.com/reference/manifests
|
|
470
|
-
* @stability stable
|
|
471
396
|
*/
|
|
472
397
|
export declare class SlackAppManifest {
|
|
473
398
|
private readonly props;
|
|
474
|
-
/**
|
|
475
|
-
* @stability stable
|
|
476
|
-
*/
|
|
477
399
|
constructor(props: SlackAppManifestProps);
|
|
478
|
-
/**
|
|
479
|
-
* @stability stable
|
|
480
|
-
*/
|
|
481
400
|
render(construct: IConstruct): string;
|
|
482
401
|
}
|