-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslack_api_scope.ml
66 lines (60 loc) · 1.04 KB
/
slack_api_scope.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
(*
Slack documentation for scopes is incomplete, confusing and possibly wrong.
Good luck!
https://api.slack.com/docs/oauth-scopes
*)
let oauth_scopes_to_api_methods = [
"users:read";
"channels:write";
"channels:history";
"channels:read";
"chat:write:bot";
"chat:write:user";
"dnd:write";
"dnd:read";
"emoji:read";
"files:write:user";
"files:read";
"groups:write";
"groups:history";
"groups:read";
"im:write";
"im:history";
"im:read";
"mpim:write";
"mpim:history";
"mpim:read";
"pins:write";
"pins:read";
"reactions:write";
"reactions:read";
"reminders:write";
"reminders:read";
"search:read";
"stars:write";
"stars:read";
"team:read";
"usergroups:write";
"usergroups:read";
"identity.basic";
"users:write";
]
let slack_app_scopes = [
"incoming-webhook";
"commands";
"bot";
]
let special_scopes = [
"identify";
"client";
"admin";
]
let deprecated_scopes = [
"read";
"post";
]
let unlisted_scopes = [
"identity.team";
]
let combine scopes =
String.concat "," scopes