@im-more/dsh-slack 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/cordis.patch.yml +13 -0
- package/lib/index.js +2659 -0
- package/lib/index.js.map +1 -0
- package/lib/types/bot.d.ts +66 -0
- package/lib/types/bot.d.ts.map +1 -0
- package/lib/types/bot.js +165 -0
- package/lib/types/bot.js.map +1 -0
- package/lib/types/config.d.ts +49 -0
- package/lib/types/config.d.ts.map +1 -0
- package/lib/types/config.js +54 -0
- package/lib/types/config.js.map +1 -0
- package/lib/types/decode.d.ts +126 -0
- package/lib/types/decode.d.ts.map +1 -0
- package/lib/types/decode.js +396 -0
- package/lib/types/decode.js.map +1 -0
- package/lib/types/errors.d.ts +61 -0
- package/lib/types/errors.d.ts.map +1 -0
- package/lib/types/errors.js +196 -0
- package/lib/types/errors.js.map +1 -0
- package/lib/types/identity.d.ts +27 -0
- package/lib/types/identity.d.ts.map +1 -0
- package/lib/types/identity.js +35 -0
- package/lib/types/identity.js.map +1 -0
- package/lib/types/index.d.ts +14 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +14 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/modes/mrkdwn.d.ts +17 -0
- package/lib/types/modes/mrkdwn.d.ts.map +1 -0
- package/lib/types/modes/mrkdwn.js +123 -0
- package/lib/types/modes/mrkdwn.js.map +1 -0
- package/lib/types/modes/shared.d.ts +164 -0
- package/lib/types/modes/shared.d.ts.map +1 -0
- package/lib/types/modes/shared.js +411 -0
- package/lib/types/modes/shared.js.map +1 -0
- package/lib/types/mrkdwn.d.ts +41 -0
- package/lib/types/mrkdwn.d.ts.map +1 -0
- package/lib/types/mrkdwn.js +137 -0
- package/lib/types/mrkdwn.js.map +1 -0
- package/lib/types/request.d.ts +225 -0
- package/lib/types/request.d.ts.map +1 -0
- package/lib/types/request.js +330 -0
- package/lib/types/request.js.map +1 -0
- package/lib/types/send.d.ts +74 -0
- package/lib/types/send.d.ts.map +1 -0
- package/lib/types/send.js +200 -0
- package/lib/types/send.js.map +1 -0
- package/lib/types/transport/socket.d.ts +58 -0
- package/lib/types/transport/socket.d.ts.map +1 -0
- package/lib/types/transport/socket.js +297 -0
- package/lib/types/transport/socket.js.map +1 -0
- package/lib/types/transport/webhook.d.ts +48 -0
- package/lib/types/transport/webhook.d.ts.map +1 -0
- package/lib/types/transport/webhook.js +210 -0
- package/lib/types/transport/webhook.js.map +1 -0
- package/lib/types/types/admin.d.ts +682 -0
- package/lib/types/types/admin.d.ts.map +1 -0
- package/lib/types/types/admin.js +172 -0
- package/lib/types/types/admin.js.map +1 -0
- package/lib/types/types/api.d.ts +20 -0
- package/lib/types/types/api.d.ts.map +1 -0
- package/lib/types/types/api.js +7 -0
- package/lib/types/types/api.js.map +1 -0
- package/lib/types/types/apps.d.ts +138 -0
- package/lib/types/types/apps.d.ts.map +1 -0
- package/lib/types/types/apps.js +28 -0
- package/lib/types/types/apps.js.map +1 -0
- package/lib/types/types/auth.d.ts +36 -0
- package/lib/types/types/auth.d.ts.map +1 -0
- package/lib/types/types/auth.js +10 -0
- package/lib/types/types/auth.js.map +1 -0
- package/lib/types/types/bots.d.ts +32 -0
- package/lib/types/types/bots.d.ts.map +1 -0
- package/lib/types/types/bots.js +7 -0
- package/lib/types/types/bots.js.map +1 -0
- package/lib/types/types/calls.d.ts +82 -0
- package/lib/types/types/calls.d.ts.map +1 -0
- package/lib/types/types/calls.js +22 -0
- package/lib/types/types/calls.js.map +1 -0
- package/lib/types/types/chat.d.ts +208 -0
- package/lib/types/types/chat.d.ts.map +1 -0
- package/lib/types/types/chat.js +34 -0
- package/lib/types/types/chat.js.map +1 -0
- package/lib/types/types/conversations.d.ts +266 -0
- package/lib/types/types/conversations.d.ts.map +1 -0
- package/lib/types/types/conversations.js +58 -0
- package/lib/types/types/conversations.js.map +1 -0
- package/lib/types/types/definition.d.ts +505 -0
- package/lib/types/types/definition.d.ts.map +1 -0
- package/lib/types/types/definition.js +2 -0
- package/lib/types/types/definition.js.map +1 -0
- package/lib/types/types/dialog.d.ts +20 -0
- package/lib/types/types/dialog.d.ts.map +1 -0
- package/lib/types/types/dialog.js +7 -0
- package/lib/types/types/dialog.js.map +1 -0
- package/lib/types/types/dnd.d.ts +70 -0
- package/lib/types/types/dnd.d.ts.map +1 -0
- package/lib/types/types/dnd.js +19 -0
- package/lib/types/types/dnd.js.map +1 -0
- package/lib/types/types/emoji.d.ts +18 -0
- package/lib/types/types/emoji.d.ts.map +1 -0
- package/lib/types/types/emoji.js +7 -0
- package/lib/types/types/emoji.js.map +1 -0
- package/lib/types/types/events/base-events.d.ts +235 -0
- package/lib/types/types/events/base-events.d.ts.map +1 -0
- package/lib/types/types/events/base-events.js +3 -0
- package/lib/types/types/events/base-events.js.map +1 -0
- package/lib/types/types/events/index.d.ts +97 -0
- package/lib/types/types/events/index.d.ts.map +1 -0
- package/lib/types/types/events/index.js +3 -0
- package/lib/types/types/events/index.js.map +1 -0
- package/lib/types/types/events/message-events.d.ts +215 -0
- package/lib/types/types/events/message-events.d.ts.map +1 -0
- package/lib/types/types/events/message-events.js +3 -0
- package/lib/types/types/events/message-events.js.map +1 -0
- package/lib/types/types/files.d.ts +189 -0
- package/lib/types/types/files.d.ts.map +1 -0
- package/lib/types/types/files.js +43 -0
- package/lib/types/types/files.js.map +1 -0
- package/lib/types/types/index.d.ts +82 -0
- package/lib/types/types/index.d.ts.map +1 -0
- package/lib/types/types/index.js +29 -0
- package/lib/types/types/index.js.map +1 -0
- package/lib/types/types/internal.d.ts +17 -0
- package/lib/types/types/internal.d.ts.map +1 -0
- package/lib/types/types/internal.js +60 -0
- package/lib/types/types/internal.js.map +1 -0
- package/lib/types/types/migration.d.ts +25 -0
- package/lib/types/types/migration.d.ts.map +1 -0
- package/lib/types/types/migration.js +7 -0
- package/lib/types/types/migration.js.map +1 -0
- package/lib/types/types/oauth.d.ts +50 -0
- package/lib/types/types/oauth.d.ts.map +1 -0
- package/lib/types/types/oauth.js +13 -0
- package/lib/types/types/oauth.js.map +1 -0
- package/lib/types/types/pins.d.ts +39 -0
- package/lib/types/types/pins.d.ts.map +1 -0
- package/lib/types/types/pins.js +13 -0
- package/lib/types/types/pins.js.map +1 -0
- package/lib/types/types/reactions.d.ts +75 -0
- package/lib/types/types/reactions.d.ts.map +1 -0
- package/lib/types/types/reactions.js +16 -0
- package/lib/types/types/reactions.js.map +1 -0
- package/lib/types/types/reminders.d.ts +64 -0
- package/lib/types/types/reminders.d.ts.map +1 -0
- package/lib/types/types/reminders.js +19 -0
- package/lib/types/types/reminders.js.map +1 -0
- package/lib/types/types/rtm.d.ts +30 -0
- package/lib/types/types/rtm.d.ts.map +1 -0
- package/lib/types/types/rtm.js +7 -0
- package/lib/types/types/rtm.js.map +1 -0
- package/lib/types/types/search.d.ts +24 -0
- package/lib/types/types/search.d.ts.map +1 -0
- package/lib/types/types/search.js +7 -0
- package/lib/types/types/search.js.map +1 -0
- package/lib/types/types/stars.d.ts +56 -0
- package/lib/types/types/stars.d.ts.map +1 -0
- package/lib/types/types/stars.js +13 -0
- package/lib/types/types/stars.js.map +1 -0
- package/lib/types/types/team.d.ts +98 -0
- package/lib/types/types/team.d.ts.map +1 -0
- package/lib/types/types/team.js +19 -0
- package/lib/types/types/team.js.map +1 -0
- package/lib/types/types/usergroups.d.ts +103 -0
- package/lib/types/types/usergroups.d.ts.map +1 -0
- package/lib/types/types/usergroups.js +25 -0
- package/lib/types/types/usergroups.js.map +1 -0
- package/lib/types/types/users.d.ts +169 -0
- package/lib/types/types/users.d.ts.map +1 -0
- package/lib/types/types/users.js +40 -0
- package/lib/types/types/users.js.map +1 -0
- package/lib/types/types/views.d.ts +56 -0
- package/lib/types/types/views.d.ts.map +1 -0
- package/lib/types/types/views.js +16 -0
- package/lib/types/types/views.js.map +1 -0
- package/lib/types/types/workflows.d.ts +45 -0
- package/lib/types/types/workflows.d.ts.map +1 -0
- package/lib/types/types/workflows.js +13 -0
- package/lib/types/types/workflows.js.map +1 -0
- package/package.json +65 -3
- package/src/bot.ts +273 -0
- package/src/config.ts +92 -0
- package/src/decode.ts +489 -0
- package/src/errors.ts +230 -0
- package/src/identity.ts +59 -0
- package/src/index.ts +64 -0
- package/src/modes/mrkdwn.ts +159 -0
- package/src/modes/shared.ts +515 -0
- package/src/mrkdwn.ts +146 -0
- package/src/request.ts +449 -0
- package/src/send.ts +300 -0
- package/src/transport/socket.ts +393 -0
- package/src/transport/webhook.ts +269 -0
- package/src/types/admin.ts +910 -0
- package/src/types/api.ts +28 -0
- package/src/types/apps.ts +175 -0
- package/src/types/auth.ts +49 -0
- package/src/types/bots.ts +40 -0
- package/src/types/calls.ts +110 -0
- package/src/types/chat.ts +255 -0
- package/src/types/conversations.ts +342 -0
- package/src/types/definition.ts +530 -0
- package/src/types/dialog.ts +28 -0
- package/src/types/dnd.ts +94 -0
- package/src/types/emoji.ts +26 -0
- package/src/types/events/base-events.ts +281 -0
- package/src/types/events/index.ts +125 -0
- package/src/types/events/message-events.ts +253 -0
- package/src/types/files.ts +245 -0
- package/src/types/index.ts +84 -0
- package/src/types/internal.ts +60 -0
- package/src/types/migration.ts +34 -0
- package/src/types/oauth.ts +66 -0
- package/src/types/pins.ts +55 -0
- package/src/types/reactions.ts +95 -0
- package/src/types/reminders.ts +88 -0
- package/src/types/rtm.ts +38 -0
- package/src/types/search.ts +32 -0
- package/src/types/stars.ts +72 -0
- package/src/types/team.ts +122 -0
- package/src/types/usergroups.ts +135 -0
- package/src/types/users.ts +221 -0
- package/src/types/views.ts +76 -0
- package/src/types/workflows.ts +61 -0
- package/README.md +0 -3
|
@@ -0,0 +1,682 @@
|
|
|
1
|
+
import { Definitions } from './definition.ts';
|
|
2
|
+
export declare namespace Admin {
|
|
3
|
+
namespace Params {
|
|
4
|
+
interface AppsApprove {
|
|
5
|
+
app_id?: string;
|
|
6
|
+
request_id?: string;
|
|
7
|
+
team_id?: string;
|
|
8
|
+
}
|
|
9
|
+
interface AppsApprovedList {
|
|
10
|
+
limit?: number;
|
|
11
|
+
cursor?: string;
|
|
12
|
+
team_id?: string;
|
|
13
|
+
enterprise_id?: string;
|
|
14
|
+
}
|
|
15
|
+
interface AppsRequestsList {
|
|
16
|
+
limit?: number;
|
|
17
|
+
cursor?: string;
|
|
18
|
+
team_id?: string;
|
|
19
|
+
}
|
|
20
|
+
interface AppsRestrict {
|
|
21
|
+
app_id?: string;
|
|
22
|
+
request_id?: string;
|
|
23
|
+
team_id?: string;
|
|
24
|
+
}
|
|
25
|
+
interface AppsRestrictedList {
|
|
26
|
+
limit?: number;
|
|
27
|
+
cursor?: string;
|
|
28
|
+
team_id?: string;
|
|
29
|
+
enterprise_id?: string;
|
|
30
|
+
}
|
|
31
|
+
interface ConversationsArchive {
|
|
32
|
+
channel_id: string;
|
|
33
|
+
}
|
|
34
|
+
interface ConversationsConvertToPrivate {
|
|
35
|
+
channel_id: string;
|
|
36
|
+
}
|
|
37
|
+
interface ConversationsCreate {
|
|
38
|
+
name: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
is_private: boolean;
|
|
41
|
+
org_wide?: boolean;
|
|
42
|
+
team_id?: string;
|
|
43
|
+
}
|
|
44
|
+
interface ConversationsDelete {
|
|
45
|
+
channel_id: string;
|
|
46
|
+
}
|
|
47
|
+
interface ConversationsDisconnectShared {
|
|
48
|
+
channel_id: string;
|
|
49
|
+
leaving_team_ids?: string;
|
|
50
|
+
}
|
|
51
|
+
interface ConversationsEkmListOriginalConnectedChannelInfo {
|
|
52
|
+
channel_ids?: string;
|
|
53
|
+
team_ids?: string;
|
|
54
|
+
limit?: number;
|
|
55
|
+
cursor?: string;
|
|
56
|
+
}
|
|
57
|
+
interface ConversationsGetConversationPrefs {
|
|
58
|
+
channel_id: string;
|
|
59
|
+
}
|
|
60
|
+
interface ConversationsGetTeams {
|
|
61
|
+
channel_id: string;
|
|
62
|
+
cursor?: string;
|
|
63
|
+
limit?: number;
|
|
64
|
+
}
|
|
65
|
+
interface ConversationsInvite {
|
|
66
|
+
user_ids: string;
|
|
67
|
+
channel_id: string;
|
|
68
|
+
}
|
|
69
|
+
interface ConversationsRename {
|
|
70
|
+
channel_id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
}
|
|
73
|
+
interface ConversationsRestrictAccessAddGroup {
|
|
74
|
+
team_id?: string;
|
|
75
|
+
group_id: string;
|
|
76
|
+
channel_id: string;
|
|
77
|
+
}
|
|
78
|
+
interface ConversationsRestrictAccessListGroups {
|
|
79
|
+
channel_id: string;
|
|
80
|
+
team_id?: string;
|
|
81
|
+
}
|
|
82
|
+
interface ConversationsRestrictAccessRemoveGroup {
|
|
83
|
+
team_id: string;
|
|
84
|
+
group_id: string;
|
|
85
|
+
channel_id: string;
|
|
86
|
+
}
|
|
87
|
+
interface ConversationsSearch {
|
|
88
|
+
team_ids?: string;
|
|
89
|
+
query?: string;
|
|
90
|
+
limit?: number;
|
|
91
|
+
cursor?: string;
|
|
92
|
+
search_channel_types?: string;
|
|
93
|
+
sort?: string;
|
|
94
|
+
sort_dir?: string;
|
|
95
|
+
}
|
|
96
|
+
interface ConversationsSetConversationPrefs {
|
|
97
|
+
channel_id: string;
|
|
98
|
+
prefs: string;
|
|
99
|
+
}
|
|
100
|
+
interface ConversationsSetTeams {
|
|
101
|
+
channel_id: string;
|
|
102
|
+
team_id?: string;
|
|
103
|
+
target_team_ids?: string;
|
|
104
|
+
org_channel?: boolean;
|
|
105
|
+
}
|
|
106
|
+
interface ConversationsUnarchive {
|
|
107
|
+
channel_id: string;
|
|
108
|
+
}
|
|
109
|
+
interface EmojiAdd {
|
|
110
|
+
name: string;
|
|
111
|
+
url: string;
|
|
112
|
+
}
|
|
113
|
+
interface EmojiAddAlias {
|
|
114
|
+
name: string;
|
|
115
|
+
alias_for: string;
|
|
116
|
+
}
|
|
117
|
+
interface EmojiList {
|
|
118
|
+
cursor?: string;
|
|
119
|
+
limit?: number;
|
|
120
|
+
}
|
|
121
|
+
interface EmojiRemove {
|
|
122
|
+
name: string;
|
|
123
|
+
}
|
|
124
|
+
interface EmojiRename {
|
|
125
|
+
name: string;
|
|
126
|
+
new_name: string;
|
|
127
|
+
}
|
|
128
|
+
interface InviteRequestsApprove {
|
|
129
|
+
team_id?: string;
|
|
130
|
+
invite_request_id: string;
|
|
131
|
+
}
|
|
132
|
+
interface InviteRequestsApprovedList {
|
|
133
|
+
team_id?: string;
|
|
134
|
+
cursor?: string;
|
|
135
|
+
limit?: number;
|
|
136
|
+
}
|
|
137
|
+
interface InviteRequestsDeniedList {
|
|
138
|
+
team_id?: string;
|
|
139
|
+
cursor?: string;
|
|
140
|
+
limit?: number;
|
|
141
|
+
}
|
|
142
|
+
interface InviteRequestsDeny {
|
|
143
|
+
team_id?: string;
|
|
144
|
+
invite_request_id: string;
|
|
145
|
+
}
|
|
146
|
+
interface InviteRequestsList {
|
|
147
|
+
team_id?: string;
|
|
148
|
+
cursor?: string;
|
|
149
|
+
limit?: number;
|
|
150
|
+
}
|
|
151
|
+
interface TeamsAdminsList {
|
|
152
|
+
limit?: number;
|
|
153
|
+
cursor?: string;
|
|
154
|
+
team_id: string;
|
|
155
|
+
}
|
|
156
|
+
interface TeamsCreate {
|
|
157
|
+
team_domain: string;
|
|
158
|
+
team_name: string;
|
|
159
|
+
team_description?: string;
|
|
160
|
+
team_discoverability?: string;
|
|
161
|
+
}
|
|
162
|
+
interface TeamsList {
|
|
163
|
+
limit?: number;
|
|
164
|
+
cursor?: string;
|
|
165
|
+
}
|
|
166
|
+
interface TeamsOwnersList {
|
|
167
|
+
team_id: string;
|
|
168
|
+
limit?: number;
|
|
169
|
+
cursor?: string;
|
|
170
|
+
}
|
|
171
|
+
interface TeamsSettingsInfo {
|
|
172
|
+
team_id: string;
|
|
173
|
+
}
|
|
174
|
+
interface TeamsSettingsSetDefaultChannels {
|
|
175
|
+
team_id: string;
|
|
176
|
+
channel_ids: string;
|
|
177
|
+
}
|
|
178
|
+
interface TeamsSettingsSetDescription {
|
|
179
|
+
team_id: string;
|
|
180
|
+
description: string;
|
|
181
|
+
}
|
|
182
|
+
interface TeamsSettingsSetDiscoverability {
|
|
183
|
+
team_id: string;
|
|
184
|
+
discoverability: string;
|
|
185
|
+
}
|
|
186
|
+
interface TeamsSettingsSetIcon {
|
|
187
|
+
image_url: string;
|
|
188
|
+
team_id: string;
|
|
189
|
+
}
|
|
190
|
+
interface TeamsSettingsSetName {
|
|
191
|
+
team_id: string;
|
|
192
|
+
name: string;
|
|
193
|
+
}
|
|
194
|
+
interface UsergroupsAddChannels {
|
|
195
|
+
usergroup_id: string;
|
|
196
|
+
team_id?: string;
|
|
197
|
+
channel_ids: string;
|
|
198
|
+
}
|
|
199
|
+
interface UsergroupsAddTeams {
|
|
200
|
+
usergroup_id: string;
|
|
201
|
+
team_ids: string;
|
|
202
|
+
auto_provision?: boolean;
|
|
203
|
+
}
|
|
204
|
+
interface UsergroupsListChannels {
|
|
205
|
+
usergroup_id: string;
|
|
206
|
+
team_id?: string;
|
|
207
|
+
include_num_members?: boolean;
|
|
208
|
+
}
|
|
209
|
+
interface UsergroupsRemoveChannels {
|
|
210
|
+
usergroup_id: string;
|
|
211
|
+
channel_ids: string;
|
|
212
|
+
}
|
|
213
|
+
interface UsersAssign {
|
|
214
|
+
team_id: string;
|
|
215
|
+
user_id: string;
|
|
216
|
+
is_restricted?: boolean;
|
|
217
|
+
is_ultra_restricted?: boolean;
|
|
218
|
+
channel_ids?: string;
|
|
219
|
+
}
|
|
220
|
+
interface UsersInvite {
|
|
221
|
+
team_id: string;
|
|
222
|
+
email: string;
|
|
223
|
+
channel_ids: string;
|
|
224
|
+
custom_message?: string;
|
|
225
|
+
real_name?: string;
|
|
226
|
+
resend?: boolean;
|
|
227
|
+
is_restricted?: boolean;
|
|
228
|
+
is_ultra_restricted?: boolean;
|
|
229
|
+
guest_expiration_ts?: string;
|
|
230
|
+
}
|
|
231
|
+
interface UsersList {
|
|
232
|
+
team_id: string;
|
|
233
|
+
cursor?: string;
|
|
234
|
+
limit?: number;
|
|
235
|
+
}
|
|
236
|
+
interface UsersRemove {
|
|
237
|
+
team_id: string;
|
|
238
|
+
user_id: string;
|
|
239
|
+
}
|
|
240
|
+
interface UsersSessionInvalidate {
|
|
241
|
+
team_id: string;
|
|
242
|
+
session_id: number;
|
|
243
|
+
}
|
|
244
|
+
interface UsersSessionReset {
|
|
245
|
+
user_id: string;
|
|
246
|
+
mobile_only?: boolean;
|
|
247
|
+
web_only?: boolean;
|
|
248
|
+
}
|
|
249
|
+
interface UsersSetAdmin {
|
|
250
|
+
team_id: string;
|
|
251
|
+
user_id: string;
|
|
252
|
+
}
|
|
253
|
+
interface UsersSetExpiration {
|
|
254
|
+
team_id: string;
|
|
255
|
+
user_id: string;
|
|
256
|
+
expiration_ts: number;
|
|
257
|
+
}
|
|
258
|
+
interface UsersSetOwner {
|
|
259
|
+
team_id: string;
|
|
260
|
+
user_id: string;
|
|
261
|
+
}
|
|
262
|
+
interface UsersSetRegular {
|
|
263
|
+
team_id: string;
|
|
264
|
+
user_id: string;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
declare module './internal' {
|
|
269
|
+
interface Internal {
|
|
270
|
+
/**
|
|
271
|
+
* Approve an app for installation on a workspace.
|
|
272
|
+
* @see https://api.slack.com/methods/admin.apps.approve
|
|
273
|
+
*/
|
|
274
|
+
adminAppsApprove(token: TokenInput, params: Admin.Params.AppsApprove): Promise<{
|
|
275
|
+
ok: boolean;
|
|
276
|
+
}>;
|
|
277
|
+
/**
|
|
278
|
+
* List approved apps for an org or workspace.
|
|
279
|
+
* @see https://api.slack.com/methods/admin.apps.approved.list
|
|
280
|
+
*/
|
|
281
|
+
adminAppsApprovedList(token: TokenInput, params: Admin.Params.AppsApprovedList): Promise<{
|
|
282
|
+
ok: boolean;
|
|
283
|
+
}>;
|
|
284
|
+
/**
|
|
285
|
+
* List app requests for a team/workspace.
|
|
286
|
+
* @see https://api.slack.com/methods/admin.apps.requests.list
|
|
287
|
+
*/
|
|
288
|
+
adminAppsRequestsList(token: TokenInput, params: Admin.Params.AppsRequestsList): Promise<{
|
|
289
|
+
ok: boolean;
|
|
290
|
+
}>;
|
|
291
|
+
/**
|
|
292
|
+
* Restrict an app for installation on a workspace.
|
|
293
|
+
* @see https://api.slack.com/methods/admin.apps.restrict
|
|
294
|
+
*/
|
|
295
|
+
adminAppsRestrict(token: TokenInput, params: Admin.Params.AppsRestrict): Promise<{
|
|
296
|
+
ok: boolean;
|
|
297
|
+
}>;
|
|
298
|
+
/**
|
|
299
|
+
* List restricted apps for an org or workspace.
|
|
300
|
+
* @see https://api.slack.com/methods/admin.apps.restricted.list
|
|
301
|
+
*/
|
|
302
|
+
adminAppsRestrictedList(token: TokenInput, params: Admin.Params.AppsRestrictedList): Promise<{
|
|
303
|
+
ok: boolean;
|
|
304
|
+
}>;
|
|
305
|
+
/**
|
|
306
|
+
* Archive a public or private channel.
|
|
307
|
+
* @see https://api.slack.com/methods/admin.conversations.archive
|
|
308
|
+
*/
|
|
309
|
+
adminConversationsArchive(token: TokenInput, params: Admin.Params.ConversationsArchive): Promise<{
|
|
310
|
+
ok: boolean;
|
|
311
|
+
}>;
|
|
312
|
+
/**
|
|
313
|
+
* Convert a public channel to a private channel.
|
|
314
|
+
* @see https://api.slack.com/methods/admin.conversations.convertToPrivate
|
|
315
|
+
*/
|
|
316
|
+
adminConversationsConvertToPrivate(token: TokenInput, params: Admin.Params.ConversationsConvertToPrivate): Promise<{
|
|
317
|
+
ok: boolean;
|
|
318
|
+
}>;
|
|
319
|
+
/**
|
|
320
|
+
* Create a public or private channel-based conversation.
|
|
321
|
+
* @see https://api.slack.com/methods/admin.conversations.create
|
|
322
|
+
*/
|
|
323
|
+
adminConversationsCreate(token: TokenInput, params: Admin.Params.ConversationsCreate): Promise<{
|
|
324
|
+
channel_id?: string;
|
|
325
|
+
ok: boolean;
|
|
326
|
+
}>;
|
|
327
|
+
/**
|
|
328
|
+
* Delete a public or private channel.
|
|
329
|
+
* @see https://api.slack.com/methods/admin.conversations.delete
|
|
330
|
+
*/
|
|
331
|
+
adminConversationsDelete(token: TokenInput, params: Admin.Params.ConversationsDelete): Promise<{
|
|
332
|
+
ok: boolean;
|
|
333
|
+
}>;
|
|
334
|
+
/**
|
|
335
|
+
* Disconnect a connected channel from one or more workspaces.
|
|
336
|
+
* @see https://api.slack.com/methods/admin.conversations.disconnectShared
|
|
337
|
+
*/
|
|
338
|
+
adminConversationsDisconnectShared(token: TokenInput, params: Admin.Params.ConversationsDisconnectShared): Promise<{
|
|
339
|
+
ok: boolean;
|
|
340
|
+
}>;
|
|
341
|
+
/**
|
|
342
|
+
* List all disconnected channels
|
|
343
|
+
* — i.e., channels that were once connected to other workspaces and then disconnected
|
|
344
|
+
* — and the corresponding original channel IDs for key revocation with EKM.
|
|
345
|
+
* @see https://api.slack.com/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo
|
|
346
|
+
*/
|
|
347
|
+
adminConversationsEkmListOriginalConnectedChannelInfo(token: TokenInput, params: Admin.Params.ConversationsEkmListOriginalConnectedChannelInfo): Promise<{
|
|
348
|
+
ok: boolean;
|
|
349
|
+
}>;
|
|
350
|
+
/**
|
|
351
|
+
* Get conversation preferences for a public or private channel.
|
|
352
|
+
* @see https://api.slack.com/methods/admin.conversations.getConversationPrefs
|
|
353
|
+
*/
|
|
354
|
+
adminConversationsGetConversationPrefs(token: TokenInput, params: Admin.Params.ConversationsGetConversationPrefs): Promise<{
|
|
355
|
+
ok: boolean;
|
|
356
|
+
prefs?: {
|
|
357
|
+
can_thread: {
|
|
358
|
+
type: string[];
|
|
359
|
+
user: string[];
|
|
360
|
+
};
|
|
361
|
+
who_can_post: {
|
|
362
|
+
type: string[];
|
|
363
|
+
user: string[];
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
}>;
|
|
367
|
+
/**
|
|
368
|
+
* Get all the workspaces a given public or private channel is connected to within this Enterprise org.
|
|
369
|
+
* @see https://api.slack.com/methods/admin.conversations.getTeams
|
|
370
|
+
*/
|
|
371
|
+
adminConversationsGetTeams(token: TokenInput, params: Admin.Params.ConversationsGetTeams): Promise<{
|
|
372
|
+
ok: boolean;
|
|
373
|
+
response_metadata?: {
|
|
374
|
+
next_cursor: string;
|
|
375
|
+
};
|
|
376
|
+
team_ids: string[];
|
|
377
|
+
}>;
|
|
378
|
+
/**
|
|
379
|
+
* Invite a user to a public or private channel.
|
|
380
|
+
* @see https://api.slack.com/methods/admin.conversations.invite
|
|
381
|
+
*/
|
|
382
|
+
adminConversationsInvite(token: TokenInput, params: Admin.Params.ConversationsInvite): Promise<{
|
|
383
|
+
ok: boolean;
|
|
384
|
+
}>;
|
|
385
|
+
/**
|
|
386
|
+
* Rename a public or private channel.
|
|
387
|
+
* @see https://api.slack.com/methods/admin.conversations.rename
|
|
388
|
+
*/
|
|
389
|
+
adminConversationsRename(token: TokenInput, params: Admin.Params.ConversationsRename): Promise<{
|
|
390
|
+
ok: boolean;
|
|
391
|
+
}>;
|
|
392
|
+
/**
|
|
393
|
+
* Add an allowlist of IDP groups for accessing a channel
|
|
394
|
+
* @see https://api.slack.com/methods/admin.conversations.restrictAccess.addGroup
|
|
395
|
+
*/
|
|
396
|
+
adminConversationsRestrictAccessAddGroup(token: TokenInput, params: Admin.Params.ConversationsRestrictAccessAddGroup): Promise<{
|
|
397
|
+
ok: boolean;
|
|
398
|
+
}>;
|
|
399
|
+
/**
|
|
400
|
+
* List all IDP Groups linked to a channel
|
|
401
|
+
* @see https://api.slack.com/methods/admin.conversations.restrictAccess.listGroups
|
|
402
|
+
*/
|
|
403
|
+
adminConversationsRestrictAccessListGroups(token: TokenInput, params: Admin.Params.ConversationsRestrictAccessListGroups): Promise<{
|
|
404
|
+
ok: boolean;
|
|
405
|
+
}>;
|
|
406
|
+
/**
|
|
407
|
+
* Remove a linked IDP group linked from a private channel
|
|
408
|
+
* @see https://api.slack.com/methods/admin.conversations.restrictAccess.removeGroup
|
|
409
|
+
*/
|
|
410
|
+
adminConversationsRestrictAccessRemoveGroup(token: TokenInput, params: Admin.Params.ConversationsRestrictAccessRemoveGroup): Promise<{
|
|
411
|
+
ok: boolean;
|
|
412
|
+
}>;
|
|
413
|
+
/**
|
|
414
|
+
* Search for public or private channels in an Enterprise organization.
|
|
415
|
+
* @see https://api.slack.com/methods/admin.conversations.search
|
|
416
|
+
*/
|
|
417
|
+
adminConversationsSearch(token: TokenInput, params: Admin.Params.ConversationsSearch): Promise<{
|
|
418
|
+
channels: Definitions.Channel[];
|
|
419
|
+
next_cursor: string;
|
|
420
|
+
}>;
|
|
421
|
+
/**
|
|
422
|
+
* Set the posting permissions for a public or private channel.
|
|
423
|
+
* @see https://api.slack.com/methods/admin.conversations.setConversationPrefs
|
|
424
|
+
*/
|
|
425
|
+
adminConversationsSetConversationPrefs(token: TokenInput, params: Admin.Params.ConversationsSetConversationPrefs): Promise<{
|
|
426
|
+
ok: boolean;
|
|
427
|
+
}>;
|
|
428
|
+
/**
|
|
429
|
+
* Set the workspaces in an Enterprise grid org that connect to a public or private channel.
|
|
430
|
+
* @see https://api.slack.com/methods/admin.conversations.setTeams
|
|
431
|
+
*/
|
|
432
|
+
adminConversationsSetTeams(token: TokenInput, params: Admin.Params.ConversationsSetTeams): Promise<{
|
|
433
|
+
ok: boolean;
|
|
434
|
+
}>;
|
|
435
|
+
/**
|
|
436
|
+
* Unarchive a public or private channel.
|
|
437
|
+
* @see https://api.slack.com/methods/admin.conversations.unarchive
|
|
438
|
+
*/
|
|
439
|
+
adminConversationsUnarchive(token: TokenInput, params: Admin.Params.ConversationsUnarchive): Promise<{
|
|
440
|
+
ok: boolean;
|
|
441
|
+
}>;
|
|
442
|
+
/**
|
|
443
|
+
* Add an emoji.
|
|
444
|
+
* @see https://api.slack.com/methods/admin.emoji.add
|
|
445
|
+
*/
|
|
446
|
+
adminEmojiAdd(token: TokenInput, params: Admin.Params.EmojiAdd): Promise<{
|
|
447
|
+
ok: boolean;
|
|
448
|
+
}>;
|
|
449
|
+
/**
|
|
450
|
+
* Add an emoji alias.
|
|
451
|
+
* @see https://api.slack.com/methods/admin.emoji.addAlias
|
|
452
|
+
*/
|
|
453
|
+
adminEmojiAddAlias(token: TokenInput, params: Admin.Params.EmojiAddAlias): Promise<{
|
|
454
|
+
ok: boolean;
|
|
455
|
+
}>;
|
|
456
|
+
/**
|
|
457
|
+
* List emoji for an Enterprise Grid organization.
|
|
458
|
+
* @see https://api.slack.com/methods/admin.emoji.list
|
|
459
|
+
*/
|
|
460
|
+
adminEmojiList(token: TokenInput, params: Admin.Params.EmojiList): Promise<{
|
|
461
|
+
ok: boolean;
|
|
462
|
+
}>;
|
|
463
|
+
/**
|
|
464
|
+
* Remove an emoji across an Enterprise Grid organization
|
|
465
|
+
* @see https://api.slack.com/methods/admin.emoji.remove
|
|
466
|
+
*/
|
|
467
|
+
adminEmojiRemove(token: TokenInput, params: Admin.Params.EmojiRemove): Promise<{
|
|
468
|
+
ok: boolean;
|
|
469
|
+
}>;
|
|
470
|
+
/**
|
|
471
|
+
* Rename an emoji.
|
|
472
|
+
* @see https://api.slack.com/methods/admin.emoji.rename
|
|
473
|
+
*/
|
|
474
|
+
adminEmojiRename(token: TokenInput, params: Admin.Params.EmojiRename): Promise<{
|
|
475
|
+
ok: boolean;
|
|
476
|
+
}>;
|
|
477
|
+
/**
|
|
478
|
+
* Approve a workspace invite request.
|
|
479
|
+
* @see https://api.slack.com/methods/admin.inviteRequests.approve
|
|
480
|
+
*/
|
|
481
|
+
adminInviteRequestsApprove(token: TokenInput, params: Admin.Params.InviteRequestsApprove): Promise<{
|
|
482
|
+
ok: boolean;
|
|
483
|
+
}>;
|
|
484
|
+
/**
|
|
485
|
+
* List all approved workspace invite requests.
|
|
486
|
+
* @see https://api.slack.com/methods/admin.inviteRequests.approved.list
|
|
487
|
+
*/
|
|
488
|
+
adminInviteRequestsApprovedList(token: TokenInput, params: Admin.Params.InviteRequestsApprovedList): Promise<{
|
|
489
|
+
ok: boolean;
|
|
490
|
+
}>;
|
|
491
|
+
/**
|
|
492
|
+
* List all denied workspace invite requests.
|
|
493
|
+
* @see https://api.slack.com/methods/admin.inviteRequests.denied.list
|
|
494
|
+
*/
|
|
495
|
+
adminInviteRequestsDeniedList(token: TokenInput, params: Admin.Params.InviteRequestsDeniedList): Promise<{
|
|
496
|
+
ok: boolean;
|
|
497
|
+
}>;
|
|
498
|
+
/**
|
|
499
|
+
* Deny a workspace invite request.
|
|
500
|
+
* @see https://api.slack.com/methods/admin.inviteRequests.deny
|
|
501
|
+
*/
|
|
502
|
+
adminInviteRequestsDeny(token: TokenInput, params: Admin.Params.InviteRequestsDeny): Promise<{
|
|
503
|
+
ok: boolean;
|
|
504
|
+
}>;
|
|
505
|
+
/**
|
|
506
|
+
* List all pending workspace invite requests.
|
|
507
|
+
* @see https://api.slack.com/methods/admin.inviteRequests.list
|
|
508
|
+
*/
|
|
509
|
+
adminInviteRequestsList(token: TokenInput, params: Admin.Params.InviteRequestsList): Promise<{
|
|
510
|
+
ok: boolean;
|
|
511
|
+
}>;
|
|
512
|
+
/**
|
|
513
|
+
* List all of the admins on a given workspace.
|
|
514
|
+
* @see https://api.slack.com/methods/admin.teams.admins.list
|
|
515
|
+
*/
|
|
516
|
+
adminTeamsAdminsList(token: TokenInput, params: Admin.Params.TeamsAdminsList): Promise<{
|
|
517
|
+
ok: boolean;
|
|
518
|
+
}>;
|
|
519
|
+
/**
|
|
520
|
+
* Create an Enterprise team.
|
|
521
|
+
* @see https://api.slack.com/methods/admin.teams.create
|
|
522
|
+
*/
|
|
523
|
+
adminTeamsCreate(token: TokenInput, params: Admin.Params.TeamsCreate): Promise<{
|
|
524
|
+
ok: boolean;
|
|
525
|
+
}>;
|
|
526
|
+
/**
|
|
527
|
+
* List all teams on an Enterprise organization
|
|
528
|
+
* @see https://api.slack.com/methods/admin.teams.list
|
|
529
|
+
*/
|
|
530
|
+
adminTeamsList(token: TokenInput, params: Admin.Params.TeamsList): Promise<{
|
|
531
|
+
ok: boolean;
|
|
532
|
+
}>;
|
|
533
|
+
/**
|
|
534
|
+
* List all of the owners on a given workspace.
|
|
535
|
+
* @see https://api.slack.com/methods/admin.teams.owners.list
|
|
536
|
+
*/
|
|
537
|
+
adminTeamsOwnersList(token: TokenInput, params: Admin.Params.TeamsOwnersList): Promise<{
|
|
538
|
+
ok: boolean;
|
|
539
|
+
}>;
|
|
540
|
+
/**
|
|
541
|
+
* Fetch information about settings in a workspace
|
|
542
|
+
* @see https://api.slack.com/methods/admin.teams.settings.info
|
|
543
|
+
*/
|
|
544
|
+
adminTeamsSettingsInfo(token: TokenInput, params: Admin.Params.TeamsSettingsInfo): Promise<{
|
|
545
|
+
ok: boolean;
|
|
546
|
+
}>;
|
|
547
|
+
/**
|
|
548
|
+
* Set the default channels of a workspace.
|
|
549
|
+
* @see https://api.slack.com/methods/admin.teams.settings.setDefaultChannels
|
|
550
|
+
*/
|
|
551
|
+
adminTeamsSettingsSetDefaultChannels(token: TokenInput, params: Admin.Params.TeamsSettingsSetDefaultChannels): Promise<{
|
|
552
|
+
ok: boolean;
|
|
553
|
+
}>;
|
|
554
|
+
/**
|
|
555
|
+
* Set the description of a given workspace.
|
|
556
|
+
* @see https://api.slack.com/methods/admin.teams.settings.setDescription
|
|
557
|
+
*/
|
|
558
|
+
adminTeamsSettingsSetDescription(token: TokenInput, params: Admin.Params.TeamsSettingsSetDescription): Promise<{
|
|
559
|
+
ok: boolean;
|
|
560
|
+
}>;
|
|
561
|
+
/**
|
|
562
|
+
* An API method that allows admins to set the discoverability of a given workspace
|
|
563
|
+
* @see https://api.slack.com/methods/admin.teams.settings.setDiscoverability
|
|
564
|
+
*/
|
|
565
|
+
adminTeamsSettingsSetDiscoverability(token: TokenInput, params: Admin.Params.TeamsSettingsSetDiscoverability): Promise<{
|
|
566
|
+
ok: boolean;
|
|
567
|
+
}>;
|
|
568
|
+
/**
|
|
569
|
+
* Sets the icon of a workspace.
|
|
570
|
+
* @see https://api.slack.com/methods/admin.teams.settings.setIcon
|
|
571
|
+
*/
|
|
572
|
+
adminTeamsSettingsSetIcon(token: TokenInput, params: Admin.Params.TeamsSettingsSetIcon): Promise<{
|
|
573
|
+
ok: boolean;
|
|
574
|
+
}>;
|
|
575
|
+
/**
|
|
576
|
+
* Set the name of a given workspace.
|
|
577
|
+
* @see https://api.slack.com/methods/admin.teams.settings.setName
|
|
578
|
+
*/
|
|
579
|
+
adminTeamsSettingsSetName(token: TokenInput, params: Admin.Params.TeamsSettingsSetName): Promise<{
|
|
580
|
+
ok: boolean;
|
|
581
|
+
}>;
|
|
582
|
+
/**
|
|
583
|
+
* Add one or more default channels to an IDP group.
|
|
584
|
+
* @see https://api.slack.com/methods/admin.usergroups.addChannels
|
|
585
|
+
*/
|
|
586
|
+
adminUsergroupsAddChannels(token: TokenInput, params: Admin.Params.UsergroupsAddChannels): Promise<{
|
|
587
|
+
ok: boolean;
|
|
588
|
+
}>;
|
|
589
|
+
/**
|
|
590
|
+
* Associate one or more default workspaces with an organization-wide IDP group.
|
|
591
|
+
* @see https://api.slack.com/methods/admin.usergroups.addTeams
|
|
592
|
+
*/
|
|
593
|
+
adminUsergroupsAddTeams(token: TokenInput, params: Admin.Params.UsergroupsAddTeams): Promise<{
|
|
594
|
+
ok: boolean;
|
|
595
|
+
}>;
|
|
596
|
+
/**
|
|
597
|
+
* List the channels linked to an org-level IDP group (user group).
|
|
598
|
+
* @see https://api.slack.com/methods/admin.usergroups.listChannels
|
|
599
|
+
*/
|
|
600
|
+
adminUsergroupsListChannels(token: TokenInput, params: Admin.Params.UsergroupsListChannels): Promise<{
|
|
601
|
+
ok: boolean;
|
|
602
|
+
}>;
|
|
603
|
+
/**
|
|
604
|
+
* Remove one or more default channels from an org-level IDP group (user group).
|
|
605
|
+
* @see https://api.slack.com/methods/admin.usergroups.removeChannels
|
|
606
|
+
*/
|
|
607
|
+
adminUsergroupsRemoveChannels(token: TokenInput, params: Admin.Params.UsergroupsRemoveChannels): Promise<{
|
|
608
|
+
ok: boolean;
|
|
609
|
+
}>;
|
|
610
|
+
/**
|
|
611
|
+
* Add an Enterprise user to a workspace.
|
|
612
|
+
* @see https://api.slack.com/methods/admin.users.assign
|
|
613
|
+
*/
|
|
614
|
+
adminUsersAssign(token: TokenInput, params: Admin.Params.UsersAssign): Promise<{
|
|
615
|
+
ok: boolean;
|
|
616
|
+
}>;
|
|
617
|
+
/**
|
|
618
|
+
* Invite a user to a workspace.
|
|
619
|
+
* @see https://api.slack.com/methods/admin.users.invite
|
|
620
|
+
*/
|
|
621
|
+
adminUsersInvite(token: TokenInput, params: Admin.Params.UsersInvite): Promise<{
|
|
622
|
+
ok: boolean;
|
|
623
|
+
}>;
|
|
624
|
+
/**
|
|
625
|
+
* List users on a workspace
|
|
626
|
+
* @see https://api.slack.com/methods/admin.users.list
|
|
627
|
+
*/
|
|
628
|
+
adminUsersList(token: TokenInput, params: Admin.Params.UsersList): Promise<{
|
|
629
|
+
ok: boolean;
|
|
630
|
+
}>;
|
|
631
|
+
/**
|
|
632
|
+
* Remove a user from a workspace.
|
|
633
|
+
* @see https://api.slack.com/methods/admin.users.remove
|
|
634
|
+
*/
|
|
635
|
+
adminUsersRemove(token: TokenInput, params: Admin.Params.UsersRemove): Promise<{
|
|
636
|
+
ok: boolean;
|
|
637
|
+
}>;
|
|
638
|
+
/**
|
|
639
|
+
* Invalidate a single session for a user by session_id
|
|
640
|
+
* @see https://api.slack.com/methods/admin.users.session.invalidate
|
|
641
|
+
*/
|
|
642
|
+
adminUsersSessionInvalidate(token: TokenInput, params: Admin.Params.UsersSessionInvalidate): Promise<{
|
|
643
|
+
ok: boolean;
|
|
644
|
+
}>;
|
|
645
|
+
/**
|
|
646
|
+
* Wipes all valid sessions on all devices for a given user
|
|
647
|
+
* @see https://api.slack.com/methods/admin.users.session.reset
|
|
648
|
+
*/
|
|
649
|
+
adminUsersSessionReset(token: TokenInput, params: Admin.Params.UsersSessionReset): Promise<{
|
|
650
|
+
ok: boolean;
|
|
651
|
+
}>;
|
|
652
|
+
/**
|
|
653
|
+
* Set an existing guest, regular user, or owner to be an admin user.
|
|
654
|
+
* @see https://api.slack.com/methods/admin.users.setAdmin
|
|
655
|
+
*/
|
|
656
|
+
adminUsersSetAdmin(token: TokenInput, params: Admin.Params.UsersSetAdmin): Promise<{
|
|
657
|
+
ok: boolean;
|
|
658
|
+
}>;
|
|
659
|
+
/**
|
|
660
|
+
* Set an expiration for a guest user
|
|
661
|
+
* @see https://api.slack.com/methods/admin.users.setExpiration
|
|
662
|
+
*/
|
|
663
|
+
adminUsersSetExpiration(token: TokenInput, params: Admin.Params.UsersSetExpiration): Promise<{
|
|
664
|
+
ok: boolean;
|
|
665
|
+
}>;
|
|
666
|
+
/**
|
|
667
|
+
* Set an existing guest, regular user, or admin user to be a workspace owner.
|
|
668
|
+
* @see https://api.slack.com/methods/admin.users.setOwner
|
|
669
|
+
*/
|
|
670
|
+
adminUsersSetOwner(token: TokenInput, params: Admin.Params.UsersSetOwner): Promise<{
|
|
671
|
+
ok: boolean;
|
|
672
|
+
}>;
|
|
673
|
+
/**
|
|
674
|
+
* Set an existing guest user, admin user, or owner to be a regular user.
|
|
675
|
+
* @see https://api.slack.com/methods/admin.users.setRegular
|
|
676
|
+
*/
|
|
677
|
+
adminUsersSetRegular(token: TokenInput, params: Admin.Params.UsersSetRegular): Promise<{
|
|
678
|
+
ok: boolean;
|
|
679
|
+
}>;
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
//# sourceMappingURL=admin.d.ts.map
|