@distilled.cloud/slack 1.0.0-rc.17 → 1.0.0-rc.19
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/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +2 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/index.d.ts +3 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.lazy.js.map +1 -1
- package/lib/protocol.d.ts +3 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/admin.d.ts +594 -356
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +149 -139
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts +89 -97
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +1 -1
- package/lib/services/agents.js.map +1 -1
- package/lib/services/api.d.ts +2 -2
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +1 -1
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts +74 -74
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +34 -33
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +55 -46
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +1 -1
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts +27 -27
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +1 -1
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts +3 -3
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +1 -1
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts +19 -19
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +1 -1
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts +23 -23
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +1 -1
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts +10 -10
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +1 -1
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts +18 -18
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +1 -1
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts +103 -103
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +1 -1
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts +109 -103
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +39 -38
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +1 -1
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts +14 -14
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +1 -1
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts +6 -6
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +1 -1
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts +14 -14
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +1 -1
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts +106 -106
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +30 -1
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts +37 -37
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -1
- package/lib/services/functions.js.map +1 -1
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +1 -0
- package/lib/services/lists.d.ts +47 -45
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +1 -1
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts +3 -3
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +1 -1
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts +102 -102
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +1 -1
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts +40 -40
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +1 -1
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts +9 -9
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +1 -1
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts +23 -23
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +1 -1
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts +8 -8
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +1 -1
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts +11 -11
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +1 -1
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts +84 -80
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +1 -1
- package/lib/services/search.js.map +1 -1
- package/lib/services/slackbot.d.ts +366 -0
- package/lib/services/slackbot.d.ts.map +1 -0
- package/lib/services/slackbot.js +2 -0
- package/lib/services/slackbot.js.map +1 -0
- package/lib/services/stars.d.ts +16 -16
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +1 -1
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts +39 -37
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +1 -1
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +1 -1
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts +30 -30
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +1 -1
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts +37 -37
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +1 -1
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts +9 -9
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +1 -1
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts +16 -16
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +1 -1
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/admin.js +2 -2
- package/lib/services.lazy/apps.js +1 -1
- package/lib/services.lazy/conversations.js +1 -1
- package/lib/services.lazy/files.js +3 -1
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/slackbot.js +1 -0
- package/package.json +8 -7
- package/src/credentials.ts +3 -2
- package/src/index.ts +3 -4
- package/src/protocol.ts +23 -21
- package/src/services/admin.ts +1882 -1034
- package/src/services/agents.ts +128 -103
- package/src/services/api.ts +17 -2
- package/src/services/apps.ts +133 -74
- package/src/services/assistant.ts +109 -54
- package/src/services/auth.ts +46 -27
- package/src/services/blocks.ts +18 -3
- package/src/services/bookmarks.ts +40 -19
- package/src/services/bots.ts +38 -23
- package/src/services/calls.ts +35 -10
- package/src/services/canvases.ts +77 -46
- package/src/services/chat.ts +142 -103
- package/src/services/conversations.ts +195 -115
- package/src/services/dialog.ts +15 -0
- package/src/services/dnd.ts +37 -14
- package/src/services/emoji.ts +21 -6
- package/src/services/entity.ts +33 -14
- package/src/services/files.ts +149 -106
- package/src/services/functions.ts +66 -37
- package/src/services/index.ts +1 -0
- package/src/services/lists.ts +86 -46
- package/src/services/migration.ts +18 -3
- package/src/services/oauth.ts +127 -102
- package/src/services/openid.ts +57 -40
- package/src/services/pins.ts +28 -9
- package/src/services/reactions.ts +44 -23
- package/src/services/reminders.ts +31 -8
- package/src/services/rtm.ts +28 -11
- package/src/services/search.ts +142 -130
- package/src/services/slackbot.ts +766 -0
- package/src/services/stars.ts +35 -16
- package/src/services/team.ts +73 -37
- package/src/services/tooling.ts +15 -0
- package/src/services/usergroups.ts +57 -30
- package/src/services/users.ts +76 -37
- package/src/services/views.ts +30 -9
- package/src/services/workflows.ts +45 -16
package/lib/services/admin.d.ts
CHANGED
|
@@ -21,11 +21,11 @@ export interface AddAppsPermissionsRequest {
|
|
|
21
21
|
/** Encoded ID of the app */
|
|
22
22
|
app_id: string;
|
|
23
23
|
/** List of user IDs to allow for named_entities visibility */
|
|
24
|
-
user_ids?: AddAppsPermissionsRequestUserIdsList;
|
|
24
|
+
user_ids?: AddAppsPermissionsRequestUserIdsList | undefined;
|
|
25
25
|
/** List of encoded usergroup IDs */
|
|
26
|
-
usergroup_ids?: AddAppsPermissionsRequestUsergroupIdsList;
|
|
26
|
+
usergroup_ids?: AddAppsPermissionsRequestUsergroupIdsList | undefined;
|
|
27
27
|
/** List of encoded channel IDs to add to the channel restriction list. Interpretation depends on the app's `channel_restriction_mode`, which is configured via the `admin.apps.permissions.set` method. */
|
|
28
|
-
channel_ids?: AddAppsPermissionsRequestChannelIdsList;
|
|
28
|
+
channel_ids?: AddAppsPermissionsRequestChannelIdsList | undefined;
|
|
29
29
|
}
|
|
30
30
|
export interface AddAppsPermissionsResponse {
|
|
31
31
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -47,7 +47,7 @@ export interface AddAssignmentsResponse {
|
|
|
47
47
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
48
48
|
ok: boolean;
|
|
49
49
|
/** A string representation of the error type */
|
|
50
|
-
error?: string;
|
|
50
|
+
error?: string | undefined;
|
|
51
51
|
}
|
|
52
52
|
/** Comma separated string of channel IDs. */
|
|
53
53
|
export type AddChannelsRequestChannelIdsList = Array<string>;
|
|
@@ -55,7 +55,7 @@ export interface AddChannelsRequest {
|
|
|
55
55
|
/** ID of the IDP group to add default channels for. */
|
|
56
56
|
usergroup_id: string;
|
|
57
57
|
/** The workspace to add default channels in. */
|
|
58
|
-
team_id?: string;
|
|
58
|
+
team_id?: string | undefined;
|
|
59
59
|
/** Comma separated string of channel IDs. */
|
|
60
60
|
channel_ids: AddChannelsRequestChannelIdsList;
|
|
61
61
|
}
|
|
@@ -65,15 +65,15 @@ export interface AddChannelsResponse {
|
|
|
65
65
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
66
66
|
ok: boolean;
|
|
67
67
|
/** A string representation of the error type */
|
|
68
|
-
error?: string;
|
|
68
|
+
error?: string | undefined;
|
|
69
69
|
/** List of channel IDs that are not valid for this action */
|
|
70
|
-
invalid_channels?: AddChannelsResponseInvalidChannelsList;
|
|
70
|
+
invalid_channels?: AddChannelsResponseInvalidChannelsList | undefined;
|
|
71
71
|
}
|
|
72
72
|
export interface AddEmojiRequest {
|
|
73
73
|
/** The name of the emoji to be added (using lower-case letters only). Colons (`:myemoji:`) around the value are not required, although they may be included. */
|
|
74
74
|
name: string;
|
|
75
75
|
/** The URL of a file to use as an image for the emoji. Square images under 128KB and with transparent backgrounds work best. */
|
|
76
|
-
url?: string;
|
|
76
|
+
url?: string | undefined;
|
|
77
77
|
}
|
|
78
78
|
export interface AddEmojiResponse {
|
|
79
79
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -81,7 +81,7 @@ export interface AddEmojiResponse {
|
|
|
81
81
|
}
|
|
82
82
|
export interface AddGroupRequest {
|
|
83
83
|
/** The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization. */
|
|
84
|
-
team_id?: string;
|
|
84
|
+
team_id?: string | undefined;
|
|
85
85
|
/** The [IDP Group](https://slack.com/help/articles/115001435788-Connect-identity-provider-groups-to-your-Enterprise-organization) ID to be an allowlist for the private channel. */
|
|
86
86
|
group_id: string;
|
|
87
87
|
/** The channel to link this group to. */
|
|
@@ -98,7 +98,7 @@ export interface AddTeamsRequest {
|
|
|
98
98
|
/** A comma separated list of encoded team (workspace) IDs. Each workspace *MUST* belong to the organization associated with the token. */
|
|
99
99
|
team_ids: AddTeamsRequestTeamIdsList;
|
|
100
100
|
/** When `true`, this method automatically creates new workspace accounts for the IDP group members. */
|
|
101
|
-
auto_provision?: boolean;
|
|
101
|
+
auto_provision?: boolean | undefined;
|
|
102
102
|
}
|
|
103
103
|
export interface AddTeamsResponse {
|
|
104
104
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -122,8 +122,8 @@ export interface AddUsersResponse {
|
|
|
122
122
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
123
123
|
ok: boolean;
|
|
124
124
|
/** A string representation of the error type */
|
|
125
|
-
error?: string;
|
|
126
|
-
invalid_users?: AddUsersResponseInvalidUsersList;
|
|
125
|
+
error?: string | undefined;
|
|
126
|
+
invalid_users?: AddUsersResponseInvalidUsersList | undefined;
|
|
127
127
|
}
|
|
128
128
|
/** Array of workflow IDs to edit; max 50 */
|
|
129
129
|
export type AddWorkflowsCollaboratorRequestWorkflowIdsList = Array<string>;
|
|
@@ -143,35 +143,35 @@ export interface AnalyticsMessagesActivityRequest {
|
|
|
143
143
|
/** Channel ID for channel of the message activity to query. */
|
|
144
144
|
channel: string;
|
|
145
145
|
/** Oldest timestamp to include in the results. Defaults to 7 days before current time. If not passed while still passing the `latest_ts` parameter, defaults to 7 days before `latest_ts`. */
|
|
146
|
-
oldest_ts?: string;
|
|
146
|
+
oldest_ts?: string | undefined;
|
|
147
147
|
/** Most recent timestamp to include in results. Defaults to current time. If not passed while still passing the `oldest_ts` parameter, defaults to 7 days after `oldest_ts`. */
|
|
148
|
-
latest_ts?: string;
|
|
148
|
+
latest_ts?: string | undefined;
|
|
149
149
|
/** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. */
|
|
150
|
-
cursor?: string;
|
|
150
|
+
cursor?: string | undefined;
|
|
151
151
|
/** Maximum number of entries to return. Defaults to 50 if not passed. Max allowed is 100. */
|
|
152
|
-
limit?: number;
|
|
152
|
+
limit?: number | undefined;
|
|
153
153
|
}
|
|
154
154
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
155
155
|
export interface AnalyticsMessagesActivityResponseResponseMetadata {
|
|
156
156
|
/** Cursor for the next page -- pass as `cursor` on the next call. */
|
|
157
|
-
next_cursor?: string;
|
|
157
|
+
next_cursor?: string | undefined;
|
|
158
158
|
}
|
|
159
159
|
export interface AnalyticsMessagesActivityResponse {
|
|
160
160
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
161
161
|
ok: boolean;
|
|
162
162
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
163
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
163
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
164
164
|
message_activities: unknown;
|
|
165
165
|
}
|
|
166
166
|
export interface AnalyticsMessagesMetadataRequest {
|
|
167
167
|
/** Channel ID for channel containing the messages to query. */
|
|
168
168
|
channel: string;
|
|
169
169
|
/** Oldest timestamp to include in the results */
|
|
170
|
-
oldest_ts?: string;
|
|
170
|
+
oldest_ts?: string | undefined;
|
|
171
171
|
/** Most recent timestamp to include in the results. If not passed, defaults to current time. */
|
|
172
|
-
latest_ts?: string;
|
|
172
|
+
latest_ts?: string | undefined;
|
|
173
173
|
/** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Default value fetches the first "page" of the collection. See [pagination](https://docs.slack.dev/apis/web-api/pagination) for more detail. */
|
|
174
|
-
cursor?: string;
|
|
174
|
+
cursor?: string | undefined;
|
|
175
175
|
}
|
|
176
176
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
177
177
|
export type AnalyticsMessagesMetadataResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
|
|
@@ -191,47 +191,47 @@ export interface AnalyticsMessagesMetadataResponseMessagesItemFilesItem {
|
|
|
191
191
|
/** Unix timestamp of the file */
|
|
192
192
|
timestamp: number;
|
|
193
193
|
/** MIME type of the file */
|
|
194
|
-
mimetype?: string;
|
|
194
|
+
mimetype?: string | undefined;
|
|
195
195
|
/** File type */
|
|
196
|
-
filetype?: string;
|
|
196
|
+
filetype?: string | undefined;
|
|
197
197
|
/** File subtype */
|
|
198
|
-
subtype?: string;
|
|
198
|
+
subtype?: string | undefined;
|
|
199
199
|
/** Human-readable file type */
|
|
200
|
-
pretty_type?: string;
|
|
200
|
+
pretty_type?: string | undefined;
|
|
201
201
|
/** Whether the file is external */
|
|
202
|
-
is_external?: boolean;
|
|
202
|
+
is_external?: boolean | undefined;
|
|
203
203
|
/** Type of external file */
|
|
204
|
-
external_type?: string;
|
|
204
|
+
external_type?: string | undefined;
|
|
205
205
|
/** Whether the file is public */
|
|
206
|
-
is_public?: boolean;
|
|
206
|
+
is_public?: boolean | undefined;
|
|
207
207
|
/** Whether the public URL is shared */
|
|
208
|
-
public_url_shared?: boolean;
|
|
208
|
+
public_url_shared?: boolean | undefined;
|
|
209
209
|
/** Whether to display as bot */
|
|
210
|
-
display_as_bot?: boolean;
|
|
210
|
+
display_as_bot?: boolean | undefined;
|
|
211
211
|
/** Duration in milliseconds for media files */
|
|
212
|
-
duration_ms?: number;
|
|
212
|
+
duration_ms?: number | undefined;
|
|
213
213
|
/** Display type for media files */
|
|
214
|
-
media_display_type?: string;
|
|
214
|
+
media_display_type?: string | undefined;
|
|
215
215
|
}
|
|
216
216
|
/** An array of files attached to the message */
|
|
217
217
|
export type AnalyticsMessagesMetadataResponseMessagesItemFilesList = Array<AnalyticsMessagesMetadataResponseMessagesItemFilesItem>;
|
|
218
218
|
export interface AnalyticsMessagesMetadataResponseMessagesItem {
|
|
219
219
|
/** Encoded ID of user who authored message */
|
|
220
|
-
user_id?: string;
|
|
220
|
+
user_id?: string | undefined;
|
|
221
221
|
type: string;
|
|
222
|
-
subtype?: string;
|
|
222
|
+
subtype?: string | undefined;
|
|
223
223
|
/** Timestamp of the message */
|
|
224
224
|
ts: string;
|
|
225
225
|
/** Timestamp of message at the root of the thread */
|
|
226
|
-
thread_ts?: string;
|
|
227
|
-
display_as_bot?: boolean;
|
|
228
|
-
client_msg_id?: string;
|
|
226
|
+
thread_ts?: string | undefined;
|
|
227
|
+
display_as_bot?: boolean | undefined;
|
|
228
|
+
client_msg_id?: string | undefined;
|
|
229
229
|
/** Number of characters in the message text */
|
|
230
|
-
text_character_count?: number;
|
|
230
|
+
text_character_count?: number | undefined;
|
|
231
231
|
/** An array of reaction counts */
|
|
232
|
-
reactions?: AnalyticsMessagesMetadataResponseMessagesItemReactionsList;
|
|
232
|
+
reactions?: AnalyticsMessagesMetadataResponseMessagesItemReactionsList | undefined;
|
|
233
233
|
/** An array of files attached to the message */
|
|
234
|
-
files?: AnalyticsMessagesMetadataResponseMessagesItemFilesList;
|
|
234
|
+
files?: AnalyticsMessagesMetadataResponseMessagesItemFilesList | undefined;
|
|
235
235
|
}
|
|
236
236
|
/** An array of message metadata */
|
|
237
237
|
export type AnalyticsMessagesMetadataResponseMessagesList = Array<AnalyticsMessagesMetadataResponseMessagesItem>;
|
|
@@ -239,25 +239,25 @@ export interface AnalyticsMessagesMetadataResponse {
|
|
|
239
239
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
240
240
|
ok: boolean;
|
|
241
241
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
242
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
242
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
243
243
|
/** An array of message metadata */
|
|
244
244
|
messages: AnalyticsMessagesMetadataResponseMessagesList;
|
|
245
245
|
}
|
|
246
246
|
export interface ApproveAppRequest {
|
|
247
247
|
/** Auto-create an Admin-Approved App automation rule that pre-approves future child app installs from this manager app. */
|
|
248
|
-
allow_child_auto_install?: boolean;
|
|
248
|
+
allow_child_auto_install?: boolean | undefined;
|
|
249
249
|
/** The id of the app to approve. */
|
|
250
|
-
app_id?: string;
|
|
250
|
+
app_id?: string | undefined;
|
|
251
251
|
/** The id of the request to approve. */
|
|
252
|
-
request_id?: string;
|
|
252
|
+
request_id?: string | undefined;
|
|
253
253
|
/** The ID of the workspace to approve the app on */
|
|
254
|
-
team_id?: string;
|
|
254
|
+
team_id?: string | undefined;
|
|
255
255
|
/** The ID of the enterprise to approve the app on */
|
|
256
|
-
enterprise_id?: string;
|
|
256
|
+
enterprise_id?: string | undefined;
|
|
257
257
|
/** User scopes to approve for the app */
|
|
258
|
-
user_scopes?: string;
|
|
258
|
+
user_scopes?: string | undefined;
|
|
259
259
|
/** Bot scopes to approve for the app */
|
|
260
|
-
bot_scopes?: string;
|
|
260
|
+
bot_scopes?: string | undefined;
|
|
261
261
|
}
|
|
262
262
|
export interface ApproveAppResponse {
|
|
263
263
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -265,7 +265,7 @@ export interface ApproveAppResponse {
|
|
|
265
265
|
}
|
|
266
266
|
export interface ApproveInviteRequestRequest {
|
|
267
267
|
/** ID for the workspace where the invite request was made. */
|
|
268
|
-
team_id?: string;
|
|
268
|
+
team_id?: string | undefined;
|
|
269
269
|
/** ID of the request to invite. */
|
|
270
270
|
invite_request_id: string;
|
|
271
271
|
}
|
|
@@ -275,13 +275,13 @@ export interface ApproveInviteRequestResponse {
|
|
|
275
275
|
}
|
|
276
276
|
export interface AppsRestrictRequest {
|
|
277
277
|
/** The id of the app to restrict. */
|
|
278
|
-
app_id?: string;
|
|
278
|
+
app_id?: string | undefined;
|
|
279
279
|
/** The id of the request to restrict. */
|
|
280
|
-
request_id?: string;
|
|
280
|
+
request_id?: string | undefined;
|
|
281
281
|
/** The ID of the workspace to approve the app on */
|
|
282
|
-
team_id?: string;
|
|
282
|
+
team_id?: string | undefined;
|
|
283
283
|
/** The ID of the enterprise to approve the app on */
|
|
284
|
-
enterprise_id?: string;
|
|
284
|
+
enterprise_id?: string | undefined;
|
|
285
285
|
}
|
|
286
286
|
export interface AppsRestrictResponse {
|
|
287
287
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -316,11 +316,11 @@ export interface AssignUserRequest {
|
|
|
316
316
|
/** The ID of the user to add to the workspace. */
|
|
317
317
|
user_id: string;
|
|
318
318
|
/** True if user should be added to the workspace as a guest. */
|
|
319
|
-
is_restricted?: boolean;
|
|
319
|
+
is_restricted?: boolean | undefined;
|
|
320
320
|
/** True if user should be added to the workspace as a single-channel guest. */
|
|
321
|
-
is_ultra_restricted?: boolean;
|
|
321
|
+
is_ultra_restricted?: boolean | undefined;
|
|
322
322
|
/** Comma separated values of channel IDs to add user in the new workspace. */
|
|
323
|
-
channel_ids?: string;
|
|
323
|
+
channel_ids?: string | undefined;
|
|
324
324
|
}
|
|
325
325
|
export interface AssignUserResponse {
|
|
326
326
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -445,9 +445,9 @@ export interface CancelAppsRequestRequest {
|
|
|
445
445
|
/** The id of the request to cancel. */
|
|
446
446
|
request_id: string;
|
|
447
447
|
/** The ID of the workspace where this request belongs */
|
|
448
|
-
team_id?: string;
|
|
448
|
+
team_id?: string | undefined;
|
|
449
449
|
/** The ID of the enterprise where this request belongs */
|
|
450
|
-
enterprise_id?: string;
|
|
450
|
+
enterprise_id?: string | undefined;
|
|
451
451
|
}
|
|
452
452
|
export interface CancelAppsRequestResponse {
|
|
453
453
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -457,9 +457,9 @@ export interface ClearResolutionRequest {
|
|
|
457
457
|
/** The id of the app whose resolution you want to clear/undo. */
|
|
458
458
|
app_id: string;
|
|
459
459
|
/** The workspace to clear the app resolution from */
|
|
460
|
-
team_id?: string;
|
|
460
|
+
team_id?: string | undefined;
|
|
461
461
|
/** The enterprise to clear the app resolution from */
|
|
462
|
-
enterprise_id?: string;
|
|
462
|
+
enterprise_id?: string | undefined;
|
|
463
463
|
}
|
|
464
464
|
export interface ClearResolutionResponse {
|
|
465
465
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -474,11 +474,36 @@ export interface ClearSettingsRequest {
|
|
|
474
474
|
export interface ClearSettingsResponse {
|
|
475
475
|
ok: boolean;
|
|
476
476
|
}
|
|
477
|
+
/** The users to remove from the channel. */
|
|
478
|
+
export type ConversationsKickRequestUserIdsList = Array<string>;
|
|
479
|
+
export interface ConversationsKickRequest {
|
|
480
|
+
/** ID of conversation to remove users from. */
|
|
481
|
+
channel_id: string;
|
|
482
|
+
/** The users to remove from the channel. */
|
|
483
|
+
user_ids: ConversationsKickRequestUserIdsList;
|
|
484
|
+
}
|
|
485
|
+
/** User IDs that were successfully removed. */
|
|
486
|
+
export type ConversationsKickResponseRemovedUserIdsList = Array<string>;
|
|
487
|
+
export interface ConversationsKickResponseFailedUserIdsItem {
|
|
488
|
+
user_id: string;
|
|
489
|
+
/** The error code explaining why the removal failed. */
|
|
490
|
+
error: string;
|
|
491
|
+
}
|
|
492
|
+
/** User IDs that could not be removed, with error details. */
|
|
493
|
+
export type ConversationsKickResponseFailedUserIdsList = Array<ConversationsKickResponseFailedUserIdsItem>;
|
|
494
|
+
export interface ConversationsKickResponse {
|
|
495
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
496
|
+
ok: boolean;
|
|
497
|
+
/** User IDs that were successfully removed. */
|
|
498
|
+
removed_user_ids: ConversationsKickResponseRemovedUserIdsList;
|
|
499
|
+
/** User IDs that could not be removed, with error details. */
|
|
500
|
+
failed_user_ids: ConversationsKickResponseFailedUserIdsList;
|
|
501
|
+
}
|
|
477
502
|
export interface ConvertToPrivateRequest {
|
|
478
503
|
/** The channel to convert to private. */
|
|
479
504
|
channel_id: string;
|
|
480
505
|
/** Name of private channel to create. Only respected when converting an MPIM. */
|
|
481
|
-
name?: string;
|
|
506
|
+
name?: string | undefined;
|
|
482
507
|
}
|
|
483
508
|
export interface ConvertToPrivateResponse {
|
|
484
509
|
ok: boolean;
|
|
@@ -511,17 +536,17 @@ export interface CreateConversationRequest {
|
|
|
511
536
|
/** Name of the public or private channel to create. */
|
|
512
537
|
name: string;
|
|
513
538
|
/** Description of the public or private channel to create. */
|
|
514
|
-
description?: string;
|
|
539
|
+
description?: string | undefined;
|
|
515
540
|
/** When `true`, creates a private channel instead of a public channel */
|
|
516
541
|
is_private: boolean;
|
|
517
542
|
/** When `true`, the channel will be available org-wide. Note: if the channel is not `org_wide=true`, you must specify a `team_id` for this channel */
|
|
518
|
-
org_wide?: boolean;
|
|
543
|
+
org_wide?: boolean | undefined;
|
|
519
544
|
/** The workspace to create the channel in. Note: this argument is required unless you set `org_wide=true`. */
|
|
520
|
-
team_id?: string;
|
|
545
|
+
team_id?: string | undefined;
|
|
521
546
|
}
|
|
522
547
|
export interface CreateConversationResponse {
|
|
523
548
|
ok: boolean;
|
|
524
|
-
channel_id?: string;
|
|
549
|
+
channel_id?: string | undefined;
|
|
525
550
|
}
|
|
526
551
|
export interface CreateForObjectsRequest {
|
|
527
552
|
/** Object / Record ID (15 or 18 digit accepted). See [here](https://help.salesforce.com/s/articleView?id=000385008&type=1) for how to look up an ID. */
|
|
@@ -529,7 +554,7 @@ export interface CreateForObjectsRequest {
|
|
|
529
554
|
/** Salesforce org ID (15 or 18 digit accepted). See [here](https://help.salesforce.com/s/articleView?id=000385215&type=1) for how to look up Salesforce org ID. */
|
|
530
555
|
salesforce_org_id: string;
|
|
531
556
|
/** Optional flag to add all team members related to the object to the newly created Salesforce channel. When true, adds a maximum of 100 team members to the channel. */
|
|
532
|
-
invite_object_team?: boolean;
|
|
557
|
+
invite_object_team?: boolean | undefined;
|
|
533
558
|
}
|
|
534
559
|
export interface CreateForObjectsResponse {
|
|
535
560
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -543,9 +568,9 @@ export interface CreateTeamRequest {
|
|
|
543
568
|
/** Team name (for example, Slack Softball Team). */
|
|
544
569
|
team_name: string;
|
|
545
570
|
/** Description for the team. */
|
|
546
|
-
team_description?: string;
|
|
571
|
+
team_description?: string | undefined;
|
|
547
572
|
/** Who can join the team. A team's discoverability can be `open`, `closed`, `invite_only`, or `unlisted`. */
|
|
548
|
-
team_discoverability?: string;
|
|
573
|
+
team_discoverability?: string | undefined;
|
|
549
574
|
}
|
|
550
575
|
export interface CreateTeamResponse {
|
|
551
576
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -556,18 +581,26 @@ export interface CreateUsergroupRequest {
|
|
|
556
581
|
/** Unique name for the usergroup */
|
|
557
582
|
name: string;
|
|
558
583
|
/** Optional handle used to mention the usergroup in channel, must be unique */
|
|
559
|
-
handle?: string;
|
|
584
|
+
handle?: string | undefined;
|
|
560
585
|
/** Optional purpose that describes what the usergroup is about */
|
|
561
|
-
purpose?: string;
|
|
586
|
+
purpose?: string | undefined;
|
|
562
587
|
/** Configure whether or not this usergroup should be visible in the client */
|
|
563
|
-
is_visible?: boolean;
|
|
588
|
+
is_visible?: boolean | undefined;
|
|
564
589
|
}
|
|
565
590
|
export interface CreateUsergroupResponse {
|
|
566
591
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
567
592
|
ok: boolean;
|
|
568
593
|
/** A string representation of the error type */
|
|
569
|
-
error?: string;
|
|
570
|
-
subteam?: unknown;
|
|
594
|
+
error?: string | undefined;
|
|
595
|
+
subteam?: unknown | undefined;
|
|
596
|
+
}
|
|
597
|
+
export interface DeactivateUserRequest {
|
|
598
|
+
/** The ID of the user to deactivate. */
|
|
599
|
+
user_id: string;
|
|
600
|
+
}
|
|
601
|
+
export interface DeactivateUserResponse {
|
|
602
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
603
|
+
ok: boolean;
|
|
571
604
|
}
|
|
572
605
|
export interface DeleteBarrierRequest {
|
|
573
606
|
/** The ID of the barrier you're trying to delete */
|
|
@@ -589,16 +622,16 @@ export interface DisconnectSharedRequest {
|
|
|
589
622
|
/** The channel to be disconnected from some workspaces. */
|
|
590
623
|
channel_id: string;
|
|
591
624
|
/** Used for disconnecting a team from a shared channel. Only one team ID may be passed at a time. */
|
|
592
|
-
leaving_team_ids?: DisconnectSharedRequestLeavingTeamIdsList;
|
|
625
|
+
leaving_team_ids?: DisconnectSharedRequestLeavingTeamIdsList | undefined;
|
|
593
626
|
}
|
|
594
627
|
export interface DisconnectSharedResponse {
|
|
595
628
|
ok: boolean;
|
|
596
629
|
}
|
|
597
630
|
export interface ExportUsersUnsupportedVersionRequest {
|
|
598
631
|
/** Unix timestamp of a date to start looking for user sessions. If not provided will start six months ago. */
|
|
599
|
-
date_sessions_started?: number;
|
|
632
|
+
date_sessions_started?: number | undefined;
|
|
600
633
|
/** Unix timestamp of the date of past or upcoming end of support cycles. If not provided will include all announced end of support cycles. */
|
|
601
|
-
date_end_of_support?: number;
|
|
634
|
+
date_end_of_support?: number | undefined;
|
|
602
635
|
}
|
|
603
636
|
export interface ExportUsersUnsupportedVersionResponse {
|
|
604
637
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -623,9 +656,9 @@ export type GetConversationPrefsResponsePrefsWhoCanPostTypeList = Array<string>;
|
|
|
623
656
|
export type GetConversationPrefsResponsePrefsWhoCanPostUserList = Array<string>;
|
|
624
657
|
export interface GetConversationPrefsResponsePrefsWhoCanPost {
|
|
625
658
|
/** Comma separated string of user types */
|
|
626
|
-
type?: GetConversationPrefsResponsePrefsWhoCanPostTypeList;
|
|
659
|
+
type?: GetConversationPrefsResponsePrefsWhoCanPostTypeList | undefined;
|
|
627
660
|
/** Comma separated string of user IDs */
|
|
628
|
-
user?: GetConversationPrefsResponsePrefsWhoCanPostUserList;
|
|
661
|
+
user?: GetConversationPrefsResponsePrefsWhoCanPostUserList | undefined;
|
|
629
662
|
}
|
|
630
663
|
/** Comma separated string of user types */
|
|
631
664
|
export type GetConversationPrefsResponsePrefsCanThreadTypeList = Array<string>;
|
|
@@ -633,37 +666,37 @@ export type GetConversationPrefsResponsePrefsCanThreadTypeList = Array<string>;
|
|
|
633
666
|
export type GetConversationPrefsResponsePrefsCanThreadUserList = Array<string>;
|
|
634
667
|
export interface GetConversationPrefsResponsePrefsCanThread {
|
|
635
668
|
/** Comma separated string of user types */
|
|
636
|
-
type?: GetConversationPrefsResponsePrefsCanThreadTypeList;
|
|
669
|
+
type?: GetConversationPrefsResponsePrefsCanThreadTypeList | undefined;
|
|
637
670
|
/** Comma separated string of user IDs */
|
|
638
|
-
user?: GetConversationPrefsResponsePrefsCanThreadUserList;
|
|
671
|
+
user?: GetConversationPrefsResponsePrefsCanThreadUserList | undefined;
|
|
639
672
|
}
|
|
640
673
|
export interface GetConversationPrefsResponsePrefsMembershipLimit {
|
|
641
674
|
/** Membership limit value */
|
|
642
|
-
value?: number;
|
|
675
|
+
value?: number | undefined;
|
|
643
676
|
}
|
|
644
677
|
export interface GetConversationPrefsResponsePrefsCanHuddle {
|
|
645
678
|
/** Can start a huddle */
|
|
646
|
-
enabled?: boolean;
|
|
679
|
+
enabled?: boolean | undefined;
|
|
647
680
|
}
|
|
648
681
|
export interface GetConversationPrefsResponsePrefsEnableAtChannel {
|
|
649
682
|
/** Enable channel mentions in channel. */
|
|
650
|
-
enabled?: boolean;
|
|
683
|
+
enabled?: boolean | undefined;
|
|
651
684
|
}
|
|
652
685
|
export interface GetConversationPrefsResponsePrefsEnableAtHere {
|
|
653
686
|
/** Enable here mentions in channel. */
|
|
654
|
-
enabled?: boolean;
|
|
687
|
+
enabled?: boolean | undefined;
|
|
655
688
|
}
|
|
656
689
|
export interface GetConversationPrefsResponsePrefs {
|
|
657
|
-
who_can_post?: GetConversationPrefsResponsePrefsWhoCanPost;
|
|
658
|
-
can_thread?: GetConversationPrefsResponsePrefsCanThread;
|
|
659
|
-
membership_limit?: GetConversationPrefsResponsePrefsMembershipLimit;
|
|
660
|
-
can_huddle?: GetConversationPrefsResponsePrefsCanHuddle;
|
|
661
|
-
enable_at_channel?: GetConversationPrefsResponsePrefsEnableAtChannel;
|
|
662
|
-
enable_at_here?: GetConversationPrefsResponsePrefsEnableAtHere;
|
|
690
|
+
who_can_post?: GetConversationPrefsResponsePrefsWhoCanPost | undefined;
|
|
691
|
+
can_thread?: GetConversationPrefsResponsePrefsCanThread | undefined;
|
|
692
|
+
membership_limit?: GetConversationPrefsResponsePrefsMembershipLimit | undefined;
|
|
693
|
+
can_huddle?: GetConversationPrefsResponsePrefsCanHuddle | undefined;
|
|
694
|
+
enable_at_channel?: GetConversationPrefsResponsePrefsEnableAtChannel | undefined;
|
|
695
|
+
enable_at_here?: GetConversationPrefsResponsePrefsEnableAtHere | undefined;
|
|
663
696
|
}
|
|
664
697
|
export interface GetConversationPrefsResponse {
|
|
665
698
|
ok: boolean;
|
|
666
|
-
prefs?: GetConversationPrefsResponsePrefs;
|
|
699
|
+
prefs?: GetConversationPrefsResponsePrefs | undefined;
|
|
667
700
|
}
|
|
668
701
|
export interface GetCustomRetentionRequest {
|
|
669
702
|
/** The conversation to get the retention policy for. */
|
|
@@ -681,11 +714,11 @@ export interface GetEntitiesRequest {
|
|
|
681
714
|
/** The name of the policy to fetch entities for. Currently, `email_password` is the only policy that may be used with this method. */
|
|
682
715
|
policy_name: string;
|
|
683
716
|
/** The type of entity to assign to the policy. Currently, `USER` is supported. */
|
|
684
|
-
entity_type?: unknown;
|
|
717
|
+
entity_type?: unknown | undefined;
|
|
685
718
|
/** The maximum number of items to return. Must be between 1 and 1000, both inclusive. */
|
|
686
|
-
limit?: number;
|
|
719
|
+
limit?: number | undefined;
|
|
687
720
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
|
|
688
|
-
cursor?: string;
|
|
721
|
+
cursor?: string | undefined;
|
|
689
722
|
}
|
|
690
723
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
691
724
|
export type GetEntitiesResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
|
|
@@ -703,7 +736,7 @@ export interface GetEntitiesResponse {
|
|
|
703
736
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
704
737
|
ok: boolean;
|
|
705
738
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
706
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
739
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
707
740
|
/** Entities assigned to the policy */
|
|
708
741
|
entities: GetEntitiesResponseEntitiesList;
|
|
709
742
|
/** Count of entities under the policy and provided filter conditions */
|
|
@@ -713,19 +746,34 @@ export interface GetExpirationRequest {
|
|
|
713
746
|
/** The ID of the guest user to get the expiration for. */
|
|
714
747
|
user_id: string;
|
|
715
748
|
/** If an org token is passed in and this team is on the org, it will operate on the workspace level on the specified team. Otherwise it will operate on the org or team in context. */
|
|
716
|
-
target_team?: string;
|
|
749
|
+
target_team?: string | undefined;
|
|
750
|
+
}
|
|
751
|
+
export interface GetExpirationResponseUser {
|
|
752
|
+
/** Encoded user ID */
|
|
753
|
+
id: string;
|
|
754
|
+
/** Username of user */
|
|
755
|
+
username?: string | undefined;
|
|
756
|
+
/** Email address of user */
|
|
757
|
+
email: string;
|
|
758
|
+
/** Whether the user is a multi-channel guest. */
|
|
759
|
+
is_restricted: boolean;
|
|
760
|
+
/** Whether the user is a single-channel guest. */
|
|
761
|
+
is_ultra_restricted: boolean;
|
|
762
|
+
/** Expiration timestamp for the guest user. */
|
|
763
|
+
expiration_ts?: number | undefined;
|
|
717
764
|
}
|
|
718
765
|
export interface GetExpirationResponse {
|
|
719
766
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
720
767
|
ok: boolean;
|
|
768
|
+
user?: GetExpirationResponseUser | undefined;
|
|
721
769
|
}
|
|
722
770
|
export interface GetFileRequest {
|
|
723
771
|
/** Date to retrieve the analytics data for, expressed as `YYYY-MM-DD` in UTC. Required unless `metadata_only` is set to true. */
|
|
724
|
-
date?: string;
|
|
772
|
+
date?: string | undefined;
|
|
725
773
|
/** The type of analytics to retrieve. The options are currently limited to `member` (for Enterprise org member analytics) and `public_channel` (for public channel analytics). */
|
|
726
774
|
type: string;
|
|
727
775
|
/** Retrieve metadata for the `type` of analytics indicated. Can be used only with `type` set to `public_channel` analytics. See [detail below](#metadata_only). Omit the `date` parameter when using this argument. */
|
|
728
|
-
metadata_only?: boolean;
|
|
776
|
+
metadata_only?: boolean | undefined;
|
|
729
777
|
}
|
|
730
778
|
export type GetFileResponse = unknown;
|
|
731
779
|
export interface GetItemRequest {
|
|
@@ -738,9 +786,9 @@ export interface GetItemResponse {
|
|
|
738
786
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
739
787
|
ok: boolean;
|
|
740
788
|
/** allow list of IPv4 addresses using cidr notation in the Enterprise organization configuration */
|
|
741
|
-
trusted_cidr?: GetItemResponseTrustedCidrList;
|
|
789
|
+
trusted_cidr?: GetItemResponseTrustedCidrList | undefined;
|
|
742
790
|
/** allow list of Autonomous System Numbers (ASN) in the Enterprise organization configuration */
|
|
743
|
-
trusted_asns?: GetItemResponseTrustedAsnsList;
|
|
791
|
+
trusted_asns?: GetItemResponseTrustedAsnsList | undefined;
|
|
744
792
|
}
|
|
745
793
|
/** The IDs of users you'd like to fetch session settings for. Note: if a user does not have any active sessions, they will not be returned in the response. */
|
|
746
794
|
export type GetSettingsRequestUserIdsList = Array<string>;
|
|
@@ -762,24 +810,24 @@ export interface GetSettingsResponse {
|
|
|
762
810
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
763
811
|
ok: boolean;
|
|
764
812
|
/** User specific session settings */
|
|
765
|
-
session_settings?: GetSettingsResponseSessionSettingsList;
|
|
813
|
+
session_settings?: GetSettingsResponseSessionSettingsList | undefined;
|
|
766
814
|
/** The IDs of users requested that do not have any user session settings applied. */
|
|
767
|
-
no_settings_applied?: GetSettingsResponseNoSettingsAppliedList;
|
|
815
|
+
no_settings_applied?: GetSettingsResponseNoSettingsAppliedList | undefined;
|
|
768
816
|
}
|
|
769
817
|
export interface GetTeamsRequest {
|
|
770
818
|
/** The channel to determine connected workspaces within the organization for. */
|
|
771
819
|
channel_id: string;
|
|
772
820
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
|
|
773
|
-
cursor?: string;
|
|
821
|
+
cursor?: string | undefined;
|
|
774
822
|
/** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
|
|
775
|
-
limit?: number;
|
|
823
|
+
limit?: number | undefined;
|
|
776
824
|
}
|
|
777
825
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
778
826
|
export type GetTeamsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
|
|
779
827
|
export interface GetTeamsResponse {
|
|
780
828
|
ok: boolean;
|
|
781
829
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
782
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
830
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
783
831
|
}
|
|
784
832
|
export interface InvalidateUsersSessionRequest {
|
|
785
833
|
/** ID of the user that the session belongs to. */
|
|
@@ -804,7 +852,7 @@ export interface InviteConversationResponse {
|
|
|
804
852
|
}
|
|
805
853
|
export interface InviteRequestsDenyRequest {
|
|
806
854
|
/** ID for the workspace where the invite request was made. */
|
|
807
|
-
team_id?: string;
|
|
855
|
+
team_id?: string | undefined;
|
|
808
856
|
/** ID of the request to invite. */
|
|
809
857
|
invite_request_id: string;
|
|
810
858
|
}
|
|
@@ -820,19 +868,19 @@ export interface InviteUserRequest {
|
|
|
820
868
|
/** A comma-separated list of `channel_id`s for this user to join. At least one channel is required. */
|
|
821
869
|
channel_ids: string;
|
|
822
870
|
/** An optional message to send to the user in the invite email. */
|
|
823
|
-
custom_message?: string;
|
|
871
|
+
custom_message?: string | undefined;
|
|
824
872
|
/** Full name of the user. */
|
|
825
|
-
real_name?: string;
|
|
873
|
+
real_name?: string | undefined;
|
|
826
874
|
/** Allow this invite to be resent in the future if a user has not signed up yet. Resending can only be done via the UI and has no expiration. (default: false) */
|
|
827
|
-
resend?: boolean;
|
|
875
|
+
resend?: boolean | undefined;
|
|
828
876
|
/** Is this user a multi-channel guest user? (default: false) */
|
|
829
|
-
is_restricted?: boolean;
|
|
877
|
+
is_restricted?: boolean | undefined;
|
|
830
878
|
/** Is this user a single channel guest user? (default: false) */
|
|
831
|
-
is_ultra_restricted?: boolean;
|
|
879
|
+
is_ultra_restricted?: boolean | undefined;
|
|
832
880
|
/** Timestamp when guest account should be disabled. Only include this timestamp if you are inviting a guest user and you want their account to expire on a certain date. */
|
|
833
|
-
guest_expiration_ts?: string;
|
|
881
|
+
guest_expiration_ts?: string | undefined;
|
|
834
882
|
/** Allow invited user to sign in via email and password. Only available for Enterprise org teams via admin invite. */
|
|
835
|
-
email_password_policy_enabled?: boolean;
|
|
883
|
+
email_password_policy_enabled?: boolean | undefined;
|
|
836
884
|
}
|
|
837
885
|
export interface InviteUserResponse {
|
|
838
886
|
ok: boolean;
|
|
@@ -853,31 +901,31 @@ export interface LinkObjectsResponse {
|
|
|
853
901
|
export type ListAppsActivitiesRequestSortDirection = "asc" | "desc";
|
|
854
902
|
export interface ListAppsActivitiesRequest {
|
|
855
903
|
/** The ID of the app to get activities from. */
|
|
856
|
-
app_id?: string;
|
|
904
|
+
app_id?: string | undefined;
|
|
857
905
|
/** The team who owns this log. */
|
|
858
|
-
team_id?: string;
|
|
906
|
+
team_id?: string | undefined;
|
|
859
907
|
/** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. See [pagination](/apis/web-api/pagination) for more detail. */
|
|
860
|
-
cursor?: string;
|
|
908
|
+
cursor?: string | undefined;
|
|
861
909
|
/** The maximum number of items to return. */
|
|
862
|
-
limit?: number;
|
|
910
|
+
limit?: number | undefined;
|
|
863
911
|
/** The minimum log level of the log events to be returned. Defaults to `info`. Acceptable values (in order of relative importance from smallest to largest) are `trace`, `debug`, `info`, `warn`, `error` and `fatal`. */
|
|
864
|
-
min_log_level?: string;
|
|
912
|
+
min_log_level?: string | undefined;
|
|
865
913
|
/** The event type of log events to be returned. */
|
|
866
|
-
log_event_type?: string;
|
|
914
|
+
log_event_type?: string | undefined;
|
|
867
915
|
/** The source of log events to be returned. Acceptable values are `slack` and `developer`. */
|
|
868
|
-
source?: string;
|
|
916
|
+
source?: string | undefined;
|
|
869
917
|
/** The component type of log events to be returned. Acceptable values are `events_api`, `workflows`, `functions` and `tables`. */
|
|
870
|
-
component_type?: string;
|
|
918
|
+
component_type?: string | undefined;
|
|
871
919
|
/** The component ID of log events to be returned. Will be `FnXXXXXX` for functions, and `WfXXXXXX` for workflows */
|
|
872
|
-
component_id?: string;
|
|
920
|
+
component_id?: string | undefined;
|
|
873
921
|
/** The trace ID of log events to be returned. */
|
|
874
|
-
trace_id?: string;
|
|
922
|
+
trace_id?: string | undefined;
|
|
875
923
|
/** The earliest timestamp of the log to retrieve (epoch microseconds). */
|
|
876
|
-
min_date_created?: number;
|
|
924
|
+
min_date_created?: number | undefined;
|
|
877
925
|
/** The latest timestamp of the log to retrieve (epoch microseconds). */
|
|
878
|
-
max_date_created?: number;
|
|
926
|
+
max_date_created?: number | undefined;
|
|
879
927
|
/** The direction you want the data sorted by (always by timestamp) */
|
|
880
|
-
sort_direction?: ListAppsActivitiesRequestSortDirection | (string & {});
|
|
928
|
+
sort_direction?: ListAppsActivitiesRequestSortDirection | (string & {}) | undefined;
|
|
881
929
|
}
|
|
882
930
|
export type ListAppsActivitiesResponseActivitiesList = Array<unknown>;
|
|
883
931
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -887,17 +935,17 @@ export interface ListAppsActivitiesResponse {
|
|
|
887
935
|
ok: boolean;
|
|
888
936
|
activities: ListAppsActivitiesResponseActivitiesList;
|
|
889
937
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
890
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
938
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
891
939
|
}
|
|
892
940
|
export interface ListAppsApprovedRequest {
|
|
893
941
|
/** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
|
|
894
|
-
limit?: number;
|
|
942
|
+
limit?: number | undefined;
|
|
895
943
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
|
|
896
|
-
cursor?: string;
|
|
897
|
-
team_id?: string;
|
|
898
|
-
enterprise_id?: string;
|
|
944
|
+
cursor?: string | undefined;
|
|
945
|
+
team_id?: string | undefined;
|
|
946
|
+
enterprise_id?: string | undefined;
|
|
899
947
|
/** Limit the results to only include certified apps. When false, no certified apps will appear in the result */
|
|
900
|
-
certified?: boolean;
|
|
948
|
+
certified?: boolean | undefined;
|
|
901
949
|
}
|
|
902
950
|
export type ListAppsApprovedResponseApprovedAppsList = Array<unknown>;
|
|
903
951
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -907,13 +955,13 @@ export interface ListAppsApprovedResponse {
|
|
|
907
955
|
ok: boolean;
|
|
908
956
|
approved_apps: ListAppsApprovedResponseApprovedAppsList;
|
|
909
957
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
910
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
958
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
911
959
|
}
|
|
912
960
|
export interface ListAppsMcpServersRequest {
|
|
913
961
|
/** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
|
|
914
|
-
limit?: number;
|
|
962
|
+
limit?: number | undefined;
|
|
915
963
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
|
|
916
|
-
cursor?: string;
|
|
964
|
+
cursor?: string | undefined;
|
|
917
965
|
}
|
|
918
966
|
export interface ListAppsMcpServersResponseServersItem {
|
|
919
967
|
/** Encoded ID of the MCP server */
|
|
@@ -937,7 +985,7 @@ export interface ListAppsMcpServersResponse {
|
|
|
937
985
|
ok: boolean;
|
|
938
986
|
servers: ListAppsMcpServersResponseServersList;
|
|
939
987
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
940
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
988
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
941
989
|
}
|
|
942
990
|
export interface ListAppsMcpServersPermissionsRequest {
|
|
943
991
|
/** Encoded ID of the app */
|
|
@@ -959,13 +1007,13 @@ export interface ListAppsPermissionsResponse {
|
|
|
959
1007
|
}
|
|
960
1008
|
export interface ListAppsRequestsRequest {
|
|
961
1009
|
/** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
|
|
962
|
-
limit?: number;
|
|
1010
|
+
limit?: number | undefined;
|
|
963
1011
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
|
|
964
|
-
cursor?: string;
|
|
965
|
-
team_id?: string;
|
|
966
|
-
enterprise_id?: string;
|
|
1012
|
+
cursor?: string | undefined;
|
|
1013
|
+
team_id?: string | undefined;
|
|
1014
|
+
enterprise_id?: string | undefined;
|
|
967
1015
|
/** Include requests for certified apps */
|
|
968
|
-
certified?: boolean;
|
|
1016
|
+
certified?: boolean | undefined;
|
|
969
1017
|
}
|
|
970
1018
|
export type ListAppsRequestsResponseAppRequestsList = Array<unknown>;
|
|
971
1019
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -975,17 +1023,17 @@ export interface ListAppsRequestsResponse {
|
|
|
975
1023
|
ok: boolean;
|
|
976
1024
|
app_requests: ListAppsRequestsResponseAppRequestsList;
|
|
977
1025
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
978
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1026
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
979
1027
|
}
|
|
980
1028
|
export interface ListAppsRestrictedRequest {
|
|
981
1029
|
/** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
|
|
982
|
-
limit?: number;
|
|
1030
|
+
limit?: number | undefined;
|
|
983
1031
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
|
|
984
|
-
cursor?: string;
|
|
985
|
-
team_id?: string;
|
|
986
|
-
enterprise_id?: string;
|
|
1032
|
+
cursor?: string | undefined;
|
|
1033
|
+
team_id?: string | undefined;
|
|
1034
|
+
enterprise_id?: string | undefined;
|
|
987
1035
|
/** Limit the results to only include certified apps. When false, no certified apps will appear in the result */
|
|
988
|
-
certified?: boolean;
|
|
1036
|
+
certified?: boolean | undefined;
|
|
989
1037
|
}
|
|
990
1038
|
export type ListAppsRestrictedResponseRestrictedAppsList = Array<unknown>;
|
|
991
1039
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -995,21 +1043,21 @@ export interface ListAppsRestrictedResponse {
|
|
|
995
1043
|
ok: boolean;
|
|
996
1044
|
restricted_apps: ListAppsRestrictedResponseRestrictedAppsList;
|
|
997
1045
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
998
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1046
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
999
1047
|
}
|
|
1000
1048
|
export type ListAssignmentsRequestRoleIdsList = Array<string>;
|
|
1001
1049
|
export type ListAssignmentsRequestEntityIdsList = Array<string>;
|
|
1002
1050
|
export interface ListAssignmentsRequest {
|
|
1003
1051
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
|
|
1004
|
-
cursor?: string;
|
|
1052
|
+
cursor?: string | undefined;
|
|
1005
1053
|
/** The maximum number of items to return. Must be between 1 - 200 both inclusive. */
|
|
1006
|
-
limit?: number;
|
|
1054
|
+
limit?: number | undefined;
|
|
1007
1055
|
/** collection of role ids to scope results by */
|
|
1008
|
-
role_ids?: ListAssignmentsRequestRoleIdsList;
|
|
1056
|
+
role_ids?: ListAssignmentsRequestRoleIdsList | undefined;
|
|
1009
1057
|
/** The entities for which the roles apply */
|
|
1010
|
-
entity_ids?: ListAssignmentsRequestEntityIdsList;
|
|
1058
|
+
entity_ids?: ListAssignmentsRequestEntityIdsList | undefined;
|
|
1011
1059
|
/** Sort direction. Default is descending on date_create, can be either ASC or DESC */
|
|
1012
|
-
sort_dir?: string;
|
|
1060
|
+
sort_dir?: string | undefined;
|
|
1013
1061
|
}
|
|
1014
1062
|
export interface ListAssignmentsResponseRoleAssignmentsItem {
|
|
1015
1063
|
/** ID of the role that is assigned */
|
|
@@ -1028,16 +1076,16 @@ export interface ListAssignmentsResponse {
|
|
|
1028
1076
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1029
1077
|
ok: boolean;
|
|
1030
1078
|
/** A string representation of the error type */
|
|
1031
|
-
error?: string;
|
|
1079
|
+
error?: string | undefined;
|
|
1032
1080
|
role_assignments: ListAssignmentsResponseRoleAssignmentsList;
|
|
1033
1081
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1034
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1082
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1035
1083
|
}
|
|
1036
1084
|
export interface ListBarriersRequest {
|
|
1037
1085
|
/** The maximum number of items to return. Must be between 1 - 1000 both inclusive */
|
|
1038
|
-
limit?: number;
|
|
1086
|
+
limit?: number | undefined;
|
|
1039
1087
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
|
|
1040
|
-
cursor?: string;
|
|
1088
|
+
cursor?: string | undefined;
|
|
1041
1089
|
}
|
|
1042
1090
|
export type ListBarriersResponseBarriersList = Array<unknown>;
|
|
1043
1091
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -1046,15 +1094,15 @@ export interface ListBarriersResponse {
|
|
|
1046
1094
|
ok: boolean;
|
|
1047
1095
|
barriers: ListBarriersResponseBarriersList;
|
|
1048
1096
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1049
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1097
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1050
1098
|
}
|
|
1051
1099
|
export interface ListChannelsRequest {
|
|
1052
1100
|
/** ID of the IDP group to list default channels for. */
|
|
1053
1101
|
usergroup_id: string;
|
|
1054
1102
|
/** ID of the the workspace. */
|
|
1055
|
-
team_id?: string;
|
|
1103
|
+
team_id?: string | undefined;
|
|
1056
1104
|
/** Flag to include or exclude the count of members per channel. */
|
|
1057
|
-
include_num_members?: boolean;
|
|
1105
|
+
include_num_members?: boolean | undefined;
|
|
1058
1106
|
}
|
|
1059
1107
|
export type ListChannelsResponseChannelsList = Array<string>;
|
|
1060
1108
|
export interface ListChannelsResponse {
|
|
@@ -1062,13 +1110,13 @@ export interface ListChannelsResponse {
|
|
|
1062
1110
|
ok: boolean;
|
|
1063
1111
|
channels: ListChannelsResponseChannelsList;
|
|
1064
1112
|
/** A string representation of the error type */
|
|
1065
|
-
error?: string;
|
|
1113
|
+
error?: string | undefined;
|
|
1066
1114
|
}
|
|
1067
1115
|
export interface ListEmojiRequest {
|
|
1068
1116
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
|
|
1069
|
-
cursor?: string;
|
|
1117
|
+
cursor?: string | undefined;
|
|
1070
1118
|
/** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
|
|
1071
|
-
limit?: number;
|
|
1119
|
+
limit?: number | undefined;
|
|
1072
1120
|
}
|
|
1073
1121
|
export type ListEmojiResponseEmojiMap = {
|
|
1074
1122
|
[key: string]: unknown | undefined;
|
|
@@ -1080,21 +1128,21 @@ export interface ListEmojiResponse {
|
|
|
1080
1128
|
ok: boolean;
|
|
1081
1129
|
emoji: ListEmojiResponseEmojiMap;
|
|
1082
1130
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1083
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1131
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1084
1132
|
}
|
|
1085
1133
|
/** Comma-separated array of app IDs to get functions for; max 50. */
|
|
1086
1134
|
export type ListFunctionsRequestAppIdsList = Array<string>;
|
|
1087
1135
|
export interface ListFunctionsRequest {
|
|
1088
1136
|
/** The team context to retrieve functions from. */
|
|
1089
|
-
team_id?: string;
|
|
1137
|
+
team_id?: string | undefined;
|
|
1090
1138
|
/** Comma-separated array of app IDs to get functions for; max 50. */
|
|
1091
1139
|
app_ids: ListFunctionsRequestAppIdsList;
|
|
1092
1140
|
/** Whether to also include functions that are not yet distributed to any users in the function list. This is needed for admins that are approving an app request and will only work if the team owns the app. */
|
|
1093
|
-
include_non_distributed_functions?: boolean;
|
|
1141
|
+
include_non_distributed_functions?: boolean | undefined;
|
|
1094
1142
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
|
|
1095
|
-
cursor?: string;
|
|
1143
|
+
cursor?: string | undefined;
|
|
1096
1144
|
/** The number of results that will be returned by the API on each invocation. Must be between 1 and 1000, both inclusive. */
|
|
1097
|
-
limit?: number;
|
|
1145
|
+
limit?: number | undefined;
|
|
1098
1146
|
}
|
|
1099
1147
|
export type ListFunctionsResponseFunctionsList = Array<unknown>;
|
|
1100
1148
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -1104,12 +1152,12 @@ export interface ListFunctionsResponse {
|
|
|
1104
1152
|
ok: boolean;
|
|
1105
1153
|
functions: ListFunctionsResponseFunctionsList;
|
|
1106
1154
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1107
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1155
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1108
1156
|
}
|
|
1109
1157
|
export interface ListGroupsRequest {
|
|
1110
1158
|
channel_id: string;
|
|
1111
1159
|
/** The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization. */
|
|
1112
|
-
team_id?: string;
|
|
1160
|
+
team_id?: string | undefined;
|
|
1113
1161
|
}
|
|
1114
1162
|
export type ListGroupsResponseGroupIdsList = Array<string>;
|
|
1115
1163
|
export interface ListGroupsResponse {
|
|
@@ -1118,11 +1166,11 @@ export interface ListGroupsResponse {
|
|
|
1118
1166
|
}
|
|
1119
1167
|
export interface ListInviteRequestsRequest {
|
|
1120
1168
|
/** ID for the workspace where the invite requests were made. */
|
|
1121
|
-
team_id?: string;
|
|
1169
|
+
team_id?: string | undefined;
|
|
1122
1170
|
/** Value of the `next_cursor` field sent as part of the previous API response */
|
|
1123
|
-
cursor?: string;
|
|
1171
|
+
cursor?: string | undefined;
|
|
1124
1172
|
/** The number of results that will be returned by the API on each invocation. Must be between 1 - 1000, both inclusive */
|
|
1125
|
-
limit?: number;
|
|
1173
|
+
limit?: number | undefined;
|
|
1126
1174
|
}
|
|
1127
1175
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1128
1176
|
export type ListInviteRequestsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
|
|
@@ -1131,16 +1179,16 @@ export interface ListInviteRequestsResponse {
|
|
|
1131
1179
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1132
1180
|
ok: boolean;
|
|
1133
1181
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1134
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1182
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1135
1183
|
invite_requests: ListInviteRequestsResponseInviteRequestsList;
|
|
1136
1184
|
}
|
|
1137
1185
|
export interface ListInviteRequestsApprovedRequest {
|
|
1138
1186
|
/** ID for the workspace where the invite requests were made. */
|
|
1139
|
-
team_id?: string;
|
|
1187
|
+
team_id?: string | undefined;
|
|
1140
1188
|
/** Value of the `next_cursor` field sent as part of the previous API response */
|
|
1141
|
-
cursor?: string;
|
|
1189
|
+
cursor?: string | undefined;
|
|
1142
1190
|
/** The number of results that will be returned by the API on each invocation. Must be between 1 - 1000, both inclusive */
|
|
1143
|
-
limit?: number;
|
|
1191
|
+
limit?: number | undefined;
|
|
1144
1192
|
}
|
|
1145
1193
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1146
1194
|
export type ListInviteRequestsApprovedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
|
|
@@ -1149,16 +1197,16 @@ export interface ListInviteRequestsApprovedResponse {
|
|
|
1149
1197
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1150
1198
|
ok: boolean;
|
|
1151
1199
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1152
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1200
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1153
1201
|
approved_requests: ListInviteRequestsApprovedResponseApprovedRequestsList;
|
|
1154
1202
|
}
|
|
1155
1203
|
export interface ListInviteRequestsDeniedRequest {
|
|
1156
1204
|
/** ID for the workspace where the invite requests were made */
|
|
1157
|
-
team_id?: string;
|
|
1205
|
+
team_id?: string | undefined;
|
|
1158
1206
|
/** Value of the `next_cursor` field sent as part of the previous api response */
|
|
1159
|
-
cursor?: string;
|
|
1207
|
+
cursor?: string | undefined;
|
|
1160
1208
|
/** The number of results that will be returned by the API on each invocation. Must be between 1 - 1000 both inclusive */
|
|
1161
|
-
limit?: number;
|
|
1209
|
+
limit?: number | undefined;
|
|
1162
1210
|
}
|
|
1163
1211
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1164
1212
|
export type ListInviteRequestsDeniedResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
|
|
@@ -1167,18 +1215,18 @@ export interface ListInviteRequestsDeniedResponse {
|
|
|
1167
1215
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1168
1216
|
ok: boolean;
|
|
1169
1217
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1170
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1218
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1171
1219
|
denied_requests: ListInviteRequestsDeniedResponseDeniedRequestsList;
|
|
1172
1220
|
}
|
|
1173
1221
|
export interface ListOriginalConnectedChannelInfoRequest {
|
|
1174
1222
|
/** A comma-separated list of channels to filter to. */
|
|
1175
|
-
channel_ids?: string;
|
|
1223
|
+
channel_ids?: string | undefined;
|
|
1176
1224
|
/** A comma-separated list of the workspaces to which the channels you would like returned belong. */
|
|
1177
|
-
team_ids?: string;
|
|
1225
|
+
team_ids?: string | undefined;
|
|
1178
1226
|
/** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
|
|
1179
|
-
limit?: number;
|
|
1227
|
+
limit?: number | undefined;
|
|
1180
1228
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
|
|
1181
|
-
cursor?: string;
|
|
1229
|
+
cursor?: string | undefined;
|
|
1182
1230
|
}
|
|
1183
1231
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1184
1232
|
export type ListOriginalConnectedChannelInfoResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
|
|
@@ -1194,14 +1242,94 @@ export interface ListOriginalConnectedChannelInfoResponse {
|
|
|
1194
1242
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1195
1243
|
ok: boolean;
|
|
1196
1244
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1197
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1245
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1198
1246
|
channels: ListOriginalConnectedChannelInfoResponseChannelsList;
|
|
1199
1247
|
}
|
|
1248
|
+
/** Only return skills in this category. */
|
|
1249
|
+
export type ListSlackbotSkillsRequestCategory = "communication" | "customer_support" | "data_and_analytics" | "engineering" | "product_management" | "productivity" | "professional_development" | "project_management" | "sales" | "system" | "team_management" | "other";
|
|
1250
|
+
/** Only return skills created by these users. Accepts U or W user IDs. */
|
|
1251
|
+
export type ListSlackbotSkillsRequestCreatorIdsList = Array<string>;
|
|
1252
|
+
/** Filter by publication to the org catalog. */
|
|
1253
|
+
export type ListSlackbotSkillsRequestPublishStatus = "all" | "published" | "unpublished";
|
|
1254
|
+
/** Filter by org deployment, independently of publication. */
|
|
1255
|
+
export type ListSlackbotSkillsRequestAutoEnabledStatus = "all" | "enabled" | "disabled";
|
|
1256
|
+
/** Sort across the inventory. Name uses case-insensitive ordering. Unedited skills use their creation date for date_updated sorting. */
|
|
1257
|
+
export type ListSlackbotSkillsRequestSort = "name" | "usage_count" | "date_updated";
|
|
1258
|
+
/** Sort direction; file ID breaks ties. */
|
|
1259
|
+
export type ListSlackbotSkillsRequestSortDir = "asc" | "desc";
|
|
1260
|
+
export interface ListSlackbotSkillsRequest {
|
|
1261
|
+
/** Only return skills in this category. */
|
|
1262
|
+
category?: ListSlackbotSkillsRequestCategory | (string & {}) | undefined;
|
|
1263
|
+
/** Continuation from the previous page. Keep all filters and sorting unchanged. Pages can be empty while a continuation remains; continue until next_cursor is empty. Changes during traversal may move results; pagination is not a snapshot. */
|
|
1264
|
+
cursor?: string | undefined;
|
|
1265
|
+
/** The maximum number of skills to return. Fewer may be returned even when more remain. */
|
|
1266
|
+
limit?: number | undefined;
|
|
1267
|
+
/** Only return skills created by these users. Accepts U or W user IDs. */
|
|
1268
|
+
creator_ids?: ListSlackbotSkillsRequestCreatorIdsList | undefined;
|
|
1269
|
+
/** Filter by publication to the org catalog. */
|
|
1270
|
+
publish_status?: ListSlackbotSkillsRequestPublishStatus | (string & {}) | undefined;
|
|
1271
|
+
/** Filter by org deployment, independently of publication. */
|
|
1272
|
+
auto_enabled_status?: ListSlackbotSkillsRequestAutoEnabledStatus | (string & {}) | undefined;
|
|
1273
|
+
/** Sort across the inventory. Name uses case-insensitive ordering. Unedited skills use their creation date for date_updated sorting. */
|
|
1274
|
+
sort?: ListSlackbotSkillsRequestSort | (string & {}) | undefined;
|
|
1275
|
+
/** Sort direction; file ID breaks ties. */
|
|
1276
|
+
sort_dir?: ListSlackbotSkillsRequestSortDir | (string & {}) | undefined;
|
|
1277
|
+
}
|
|
1278
|
+
/** Enumerates the categories available for organizing AI skills. */
|
|
1279
|
+
export type ListSlackbotSkillsResponseSkillsItemCategory = "communication" | "customer_support" | "data_and_analytics" | "engineering" | "product_management" | "productivity" | "professional_development" | "project_management" | "sales" | "system" | "team_management" | "other";
|
|
1280
|
+
/** Who in the workspace can view and share this skill. Derived from the highest ORG/WORKSPACE-level access grant on the underlying skill canvas: `invite_only` when no such grant exists (only the creator and explicitly invited members), `anyone_can_view` when a read or comment grant exists, `anyone_can_edit` when a write grant exists. */
|
|
1281
|
+
export type ListSlackbotSkillsResponseSkillsItemVisibility = "invite_only" | "anyone_can_view" | "anyone_can_edit";
|
|
1282
|
+
/** Who receives a skill automatically. This setting does not grant access to its instructions. */
|
|
1283
|
+
export type ListSlackbotSkillsResponseSkillsItemAutoEnabledPermissionType = "everyone" | "named_entities" | "no_one";
|
|
1284
|
+
/** Deployment audience within this organization. Empty for everyone or no_one. */
|
|
1285
|
+
export type ListSlackbotSkillsResponseSkillsItemAutoEnabledUsergroupIdsList = Array<string>;
|
|
1286
|
+
export interface ListSlackbotSkillsResponseSkillsItemAutoEnabled {
|
|
1287
|
+
/** Who receives a skill automatically. This setting does not grant access to its instructions. */
|
|
1288
|
+
permission_type: ListSlackbotSkillsResponseSkillsItemAutoEnabledPermissionType;
|
|
1289
|
+
/** Deployment audience within this organization. Empty for everyone or no_one. */
|
|
1290
|
+
usergroup_ids: ListSlackbotSkillsResponseSkillsItemAutoEnabledUsergroupIdsList;
|
|
1291
|
+
}
|
|
1292
|
+
/** Explicit metadata-only inventory projection, including invite-only skills. No access level or skill content is implied. */
|
|
1293
|
+
export interface ListSlackbotSkillsResponseSkillsItem {
|
|
1294
|
+
/** Canvas skill file ID. */
|
|
1295
|
+
id: string;
|
|
1296
|
+
/** Human-readable label. Not unique. */
|
|
1297
|
+
display_name: string;
|
|
1298
|
+
/** When Slackbot should use the skill. */
|
|
1299
|
+
description: unknown;
|
|
1300
|
+
/** Skill category. */
|
|
1301
|
+
category: ListSlackbotSkillsResponseSkillsItemCategory | null;
|
|
1302
|
+
/** User ID of the skill's creator. */
|
|
1303
|
+
creator_id: unknown;
|
|
1304
|
+
/** Unix timestamp when the skill was created. */
|
|
1305
|
+
date_created: unknown;
|
|
1306
|
+
/** Unix timestamp when the skill was last updated. Null if it was never edited. */
|
|
1307
|
+
date_updated: unknown;
|
|
1308
|
+
/** Org-wide visibility. Null if visibility could not be determined. */
|
|
1309
|
+
visibility: ListSlackbotSkillsResponseSkillsItemVisibility | null;
|
|
1310
|
+
/** Whether the skill is published to the organization's catalog. */
|
|
1311
|
+
is_official: boolean;
|
|
1312
|
+
/** Approximate number of runs. */
|
|
1313
|
+
usage_count: unknown;
|
|
1314
|
+
/** Approximate number of people who have the skill enabled. */
|
|
1315
|
+
library_count: unknown;
|
|
1316
|
+
auto_enabled: ListSlackbotSkillsResponseSkillsItemAutoEnabled;
|
|
1317
|
+
}
|
|
1318
|
+
export type ListSlackbotSkillsResponseSkillsList = Array<ListSlackbotSkillsResponseSkillsItem>;
|
|
1319
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1320
|
+
export type ListSlackbotSkillsResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1321
|
+
export interface ListSlackbotSkillsResponse {
|
|
1322
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
1323
|
+
ok: boolean;
|
|
1324
|
+
skills: ListSlackbotSkillsResponseSkillsList;
|
|
1325
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1326
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1327
|
+
}
|
|
1200
1328
|
export interface ListTeamsRequest {
|
|
1201
1329
|
/** The maximum number of items to return. Must be a positive integer no larger than 1000. */
|
|
1202
|
-
limit?: number;
|
|
1330
|
+
limit?: number | undefined;
|
|
1203
1331
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
|
|
1204
|
-
cursor?: string;
|
|
1332
|
+
cursor?: string | undefined;
|
|
1205
1333
|
}
|
|
1206
1334
|
export interface ListTeamsResponseTeamsItemPrimaryOwner {
|
|
1207
1335
|
/** Encoded user ID of the primary owner of the workspace */
|
|
@@ -1211,7 +1339,7 @@ export interface ListTeamsResponseTeamsItemPrimaryOwner {
|
|
|
1211
1339
|
}
|
|
1212
1340
|
export interface ListTeamsResponseTeamsItem {
|
|
1213
1341
|
/** Encoded ID of the workspace */
|
|
1214
|
-
id?: string;
|
|
1342
|
+
id?: string | undefined;
|
|
1215
1343
|
/** Name of the workspace */
|
|
1216
1344
|
name: string;
|
|
1217
1345
|
/** Who is able to join this workspace */
|
|
@@ -1228,13 +1356,13 @@ export interface ListTeamsResponse {
|
|
|
1228
1356
|
ok: boolean;
|
|
1229
1357
|
teams: ListTeamsResponseTeamsList;
|
|
1230
1358
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1231
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1359
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1232
1360
|
}
|
|
1233
1361
|
export interface ListTeamsAdminsRequest {
|
|
1234
1362
|
/** The maximum number of items to return. */
|
|
1235
|
-
limit?: number;
|
|
1363
|
+
limit?: number | undefined;
|
|
1236
1364
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
|
|
1237
|
-
cursor?: string;
|
|
1365
|
+
cursor?: string | undefined;
|
|
1238
1366
|
team_id: string;
|
|
1239
1367
|
}
|
|
1240
1368
|
export type ListTeamsAdminsResponseAdminIdsList = Array<string>;
|
|
@@ -1245,14 +1373,14 @@ export interface ListTeamsAdminsResponse {
|
|
|
1245
1373
|
ok: boolean;
|
|
1246
1374
|
admin_ids: ListTeamsAdminsResponseAdminIdsList;
|
|
1247
1375
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1248
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1376
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1249
1377
|
}
|
|
1250
1378
|
export interface ListTeamsOwnersRequest {
|
|
1251
1379
|
team_id: string;
|
|
1252
1380
|
/** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
|
|
1253
|
-
limit?: number;
|
|
1381
|
+
limit?: number | undefined;
|
|
1254
1382
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
|
|
1255
|
-
cursor?: string;
|
|
1383
|
+
cursor?: string | undefined;
|
|
1256
1384
|
}
|
|
1257
1385
|
export type ListTeamsOwnersResponseOwnerIdsList = Array<string>;
|
|
1258
1386
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -1262,25 +1390,25 @@ export interface ListTeamsOwnersResponse {
|
|
|
1262
1390
|
ok: boolean;
|
|
1263
1391
|
owner_ids: ListTeamsOwnersResponseOwnerIdsList;
|
|
1264
1392
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1265
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1393
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1266
1394
|
}
|
|
1267
1395
|
export interface ListUsersRequest {
|
|
1268
1396
|
/** The ID (T1234) of a workspace. Filters results to just the specified workspace. */
|
|
1269
|
-
team_id?: string;
|
|
1397
|
+
team_id?: string | undefined;
|
|
1270
1398
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
|
|
1271
|
-
cursor?: string;
|
|
1399
|
+
cursor?: string | undefined;
|
|
1272
1400
|
/** If true, only active users will be returned. If false, only deactivated users will be returned. Default is true. */
|
|
1273
|
-
is_active?: boolean;
|
|
1401
|
+
is_active?: boolean | undefined;
|
|
1274
1402
|
/** Only applies with org token and no team_id. If true, return `workspaces` for a user even if they may be deactivated on them. If false, return `workspaces` for a user only when user is active on them. Default is false. */
|
|
1275
|
-
include_deactivated_user_workspaces?: boolean;
|
|
1403
|
+
include_deactivated_user_workspaces?: boolean | undefined;
|
|
1276
1404
|
/** If true, returns only guests and their expiration dates that belong to the team_id. */
|
|
1277
|
-
only_guests?: boolean;
|
|
1405
|
+
only_guests?: boolean | undefined;
|
|
1278
1406
|
/** If true, only admin users will be returned (excludes owners). Returns all admins and owners when combined with `include_owners`. Cannot be used together with `only_guests`. */
|
|
1279
|
-
include_admins?: boolean;
|
|
1407
|
+
include_admins?: boolean | undefined;
|
|
1280
1408
|
/** If true, only owner users will be returned. Cannot be used together with `only_guests`. */
|
|
1281
|
-
include_owners?: boolean;
|
|
1409
|
+
include_owners?: boolean | undefined;
|
|
1282
1410
|
/** Limit for how many users to be retrieved per page */
|
|
1283
|
-
limit?: number;
|
|
1411
|
+
limit?: number | undefined;
|
|
1284
1412
|
}
|
|
1285
1413
|
/** Roles that a user has */
|
|
1286
1414
|
export type ListUsersResponseUsersItemRolesList = Array<string>;
|
|
@@ -1290,13 +1418,13 @@ export interface ListUsersResponseUsersItem {
|
|
|
1290
1418
|
/** Encoded user ID */
|
|
1291
1419
|
id: string;
|
|
1292
1420
|
/** Username of user */
|
|
1293
|
-
username?: string;
|
|
1421
|
+
username?: string | undefined;
|
|
1294
1422
|
/** Full name of user */
|
|
1295
|
-
full_name?: string;
|
|
1423
|
+
full_name?: string | undefined;
|
|
1296
1424
|
/** If 2FA is enabled. Only returned with org token and no team_id. */
|
|
1297
|
-
has_2fa?: boolean;
|
|
1425
|
+
has_2fa?: boolean | undefined;
|
|
1298
1426
|
/** If SSO is enabled. Only returned with org token and no team_id. */
|
|
1299
|
-
has_sso?: boolean;
|
|
1427
|
+
has_sso?: boolean | undefined;
|
|
1300
1428
|
/** Email address of user */
|
|
1301
1429
|
email: string;
|
|
1302
1430
|
/** Is this user an admin? */
|
|
@@ -1312,19 +1440,19 @@ export interface ListUsersResponseUsersItem {
|
|
|
1312
1440
|
/** Is this user a bot user? */
|
|
1313
1441
|
is_bot: boolean;
|
|
1314
1442
|
/** For a guest user, what is their expiration timestamp? (On workspaces only.) */
|
|
1315
|
-
expiration_ts?: number;
|
|
1443
|
+
expiration_ts?: number | undefined;
|
|
1316
1444
|
/** Roles that a user has */
|
|
1317
|
-
roles?: ListUsersResponseUsersItemRolesList;
|
|
1445
|
+
roles?: ListUsersResponseUsersItemRolesList | undefined;
|
|
1318
1446
|
/** Last active timestamp for a user. Only applies with org token and no team_id */
|
|
1319
|
-
last_active_ts?: number;
|
|
1447
|
+
last_active_ts?: number | undefined;
|
|
1320
1448
|
/** IDs of the workspaces that a user belongs to */
|
|
1321
|
-
workspaces?: ListUsersResponseUsersItemWorkspacesList;
|
|
1449
|
+
workspaces?: ListUsersResponseUsersItemWorkspacesList | undefined;
|
|
1322
1450
|
/** Is this user active? */
|
|
1323
|
-
is_active?: boolean;
|
|
1451
|
+
is_active?: boolean | undefined;
|
|
1324
1452
|
/** date of when the user was created, returned as epoch seconds */
|
|
1325
|
-
date_created?: number;
|
|
1453
|
+
date_created?: number | undefined;
|
|
1326
1454
|
/** date of when the user was deactivated, returned as epoch seconds */
|
|
1327
|
-
deactivated_ts?: number;
|
|
1455
|
+
deactivated_ts?: number | undefined;
|
|
1328
1456
|
}
|
|
1329
1457
|
export type ListUsersResponseUsersList = Array<ListUsersResponseUsersItem>;
|
|
1330
1458
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -1334,43 +1462,43 @@ export interface ListUsersResponse {
|
|
|
1334
1462
|
ok: boolean;
|
|
1335
1463
|
users: ListUsersResponseUsersList;
|
|
1336
1464
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1337
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1465
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1338
1466
|
}
|
|
1339
1467
|
export interface ListUsersSessionRequest {
|
|
1340
1468
|
/** The ID of the workspace you'd like active sessions for. If you pass a `team_id`, you'll need to pass a `user_id` as well. */
|
|
1341
|
-
team_id?: string;
|
|
1469
|
+
team_id?: string | undefined;
|
|
1342
1470
|
/** The ID of user you'd like active sessions for. If you pass a `user_id`, you'll need to pass a `team_id` as well. */
|
|
1343
|
-
user_id?: string;
|
|
1471
|
+
user_id?: string | undefined;
|
|
1344
1472
|
/** The maximum number of items to return. Must be between 1 - 1000 both inclusive. */
|
|
1345
|
-
limit?: number;
|
|
1473
|
+
limit?: number | undefined;
|
|
1346
1474
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
|
|
1347
|
-
cursor?: string;
|
|
1475
|
+
cursor?: string | undefined;
|
|
1348
1476
|
}
|
|
1349
1477
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1350
1478
|
export type ListUsersSessionResponseResponseMetadata = AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1351
1479
|
export interface ListUsersSessionResponseActiveSessionsItemRecent {
|
|
1352
1480
|
/** Type of device */
|
|
1353
|
-
device_hardware?: string;
|
|
1481
|
+
device_hardware?: string | undefined;
|
|
1354
1482
|
/** Type of OS */
|
|
1355
|
-
os?: string;
|
|
1483
|
+
os?: string | undefined;
|
|
1356
1484
|
/** Version of the OS */
|
|
1357
|
-
os_version?: string;
|
|
1485
|
+
os_version?: string | undefined;
|
|
1358
1486
|
/** Version of the Slack client (if available) */
|
|
1359
|
-
slack_client_version?: string;
|
|
1487
|
+
slack_client_version?: string | undefined;
|
|
1360
1488
|
/** IP address */
|
|
1361
|
-
ip?: string;
|
|
1489
|
+
ip?: string | undefined;
|
|
1362
1490
|
}
|
|
1363
1491
|
export interface ListUsersSessionResponseActiveSessionsItemCreated {
|
|
1364
1492
|
/** Type of device used when session was created */
|
|
1365
|
-
device_hardware?: string;
|
|
1493
|
+
device_hardware?: string | undefined;
|
|
1366
1494
|
/** Type of OS used when session was created */
|
|
1367
|
-
os?: string;
|
|
1495
|
+
os?: string | undefined;
|
|
1368
1496
|
/** Version of the OS used when session was created */
|
|
1369
|
-
os_version?: string;
|
|
1497
|
+
os_version?: string | undefined;
|
|
1370
1498
|
/** Version of the Slack client (if available) used when session was created */
|
|
1371
|
-
slack_client_version?: string;
|
|
1499
|
+
slack_client_version?: string | undefined;
|
|
1372
1500
|
/** IP address used when session was created */
|
|
1373
|
-
ip?: string;
|
|
1501
|
+
ip?: string | undefined;
|
|
1374
1502
|
}
|
|
1375
1503
|
export interface ListUsersSessionResponseActiveSessionsItem {
|
|
1376
1504
|
/** Encoded ID of the user */
|
|
@@ -1379,7 +1507,7 @@ export interface ListUsersSessionResponseActiveSessionsItem {
|
|
|
1379
1507
|
team_id: string;
|
|
1380
1508
|
/** ID of the session */
|
|
1381
1509
|
session_id: number;
|
|
1382
|
-
recent?: ListUsersSessionResponseActiveSessionsItemRecent;
|
|
1510
|
+
recent?: ListUsersSessionResponseActiveSessionsItemRecent | undefined;
|
|
1383
1511
|
created: ListUsersSessionResponseActiveSessionsItemCreated;
|
|
1384
1512
|
}
|
|
1385
1513
|
/** Active user session data */
|
|
@@ -1388,7 +1516,7 @@ export interface ListUsersSessionResponse {
|
|
|
1388
1516
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1389
1517
|
ok: boolean;
|
|
1390
1518
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1391
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1519
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1392
1520
|
/** Active user session data */
|
|
1393
1521
|
active_sessions: ListUsersSessionResponseActiveSessionsList;
|
|
1394
1522
|
}
|
|
@@ -1399,15 +1527,17 @@ export type LookupAppsConfigRequestRichLinkPreviewTypesItem = "all_details" | "l
|
|
|
1399
1527
|
export type LookupAppsConfigRequestRichLinkPreviewTypesList = Array<LookupAppsConfigRequestRichLinkPreviewTypesItem | (string & {})>;
|
|
1400
1528
|
export interface LookupAppsConfigRequest {
|
|
1401
1529
|
/** An array of app IDs to get app configs for */
|
|
1402
|
-
app_ids?: LookupAppsConfigRequestAppIdsList;
|
|
1530
|
+
app_ids?: LookupAppsConfigRequestAppIdsList | undefined;
|
|
1403
1531
|
/** return apps with the corresponding rich link preview layouts */
|
|
1404
|
-
rich_link_preview_types?: LookupAppsConfigRequestRichLinkPreviewTypesList;
|
|
1532
|
+
rich_link_preview_types?: LookupAppsConfigRequestRichLinkPreviewTypesList | undefined;
|
|
1405
1533
|
}
|
|
1406
1534
|
export type LookupAppsConfigResponseConfigsItemWorkflowAuthStrategy = "builder_choice" | "end_user_only";
|
|
1535
|
+
export type LookupAppsConfigResponseConfigsItemRichLinkPreviewType = "all_details" | "limited_details" | "no_preview" | "default_to_global_setting";
|
|
1407
1536
|
export interface LookupAppsConfigResponseConfigsItem {
|
|
1408
1537
|
app_id: string;
|
|
1409
1538
|
workflow_auth_strategy: LookupAppsConfigResponseConfigsItemWorkflowAuthStrategy;
|
|
1410
1539
|
domain_restrictions: unknown;
|
|
1540
|
+
rich_link_preview_type?: LookupAppsConfigResponseConfigsItemRichLinkPreviewType | undefined;
|
|
1411
1541
|
}
|
|
1412
1542
|
export type LookupAppsConfigResponseConfigsList = Array<LookupAppsConfigResponseConfigsItem>;
|
|
1413
1543
|
export interface LookupAppsConfigResponse {
|
|
@@ -1421,13 +1551,13 @@ export interface LookupConversationRequest {
|
|
|
1421
1551
|
/** Array of team IDs to filter by */
|
|
1422
1552
|
team_ids: LookupConversationRequestTeamIdsList;
|
|
1423
1553
|
/** Filter by *public* channels with member count *equal to or less than* the specified number */
|
|
1424
|
-
max_member_count?: number;
|
|
1554
|
+
max_member_count?: number | undefined;
|
|
1425
1555
|
/** Filter by *public* channels where the most recent message was sent *before* last_message_activity */
|
|
1426
1556
|
last_message_activity_before: number;
|
|
1427
1557
|
/** Set `cursor` to `next_cursor` returned in the previous call, to fetch the next page. */
|
|
1428
|
-
cursor?: string;
|
|
1558
|
+
cursor?: string | undefined;
|
|
1429
1559
|
/** Maximum number of results */
|
|
1430
|
-
limit?: number;
|
|
1560
|
+
limit?: number | undefined;
|
|
1431
1561
|
}
|
|
1432
1562
|
export type LookupConversationResponseChannelIdsList = Array<string>;
|
|
1433
1563
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -1437,7 +1567,7 @@ export interface LookupConversationResponse {
|
|
|
1437
1567
|
ok: boolean;
|
|
1438
1568
|
channel_ids: LookupConversationResponseChannelIdsList;
|
|
1439
1569
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1440
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1570
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1441
1571
|
}
|
|
1442
1572
|
/** An array of function IDs to get permissions for */
|
|
1443
1573
|
export type LookupFunctionsPermissionsRequestFunctionIdsList = Array<string>;
|
|
@@ -1467,7 +1597,7 @@ export interface LookupWorkflowsPermissionsRequest {
|
|
|
1467
1597
|
/** An array of workflow IDs to look up permissions for */
|
|
1468
1598
|
workflow_ids: LookupWorkflowsPermissionsRequestWorkflowIdsList;
|
|
1469
1599
|
/** Maximum number of triggers to fetch for each workflow when determining overall run permissions; max 1000 */
|
|
1470
|
-
max_workflow_triggers?: number;
|
|
1600
|
+
max_workflow_triggers?: number | undefined;
|
|
1471
1601
|
}
|
|
1472
1602
|
export type LookupWorkflowsPermissionsResponsePermissionsMap = {
|
|
1473
1603
|
[key: string]: unknown | undefined;
|
|
@@ -1495,6 +1625,37 @@ export interface LookupWorkflowsTriggersTypesPermissionsResponse {
|
|
|
1495
1625
|
permissions: LookupWorkflowsTriggersTypesPermissionsResponsePermissionsMap;
|
|
1496
1626
|
metadata: LookupWorkflowsTriggersTypesPermissionsResponseMetadataMap;
|
|
1497
1627
|
}
|
|
1628
|
+
/** IDs of frontline members in the authenticated organization. Valid users are queued; rejected IDs are returned in invalid_users. */
|
|
1629
|
+
export type PauseUsersAccessRequestUserIdsList = Array<string>;
|
|
1630
|
+
export interface PauseUsersAccessRequest {
|
|
1631
|
+
/** IDs of frontline members in the authenticated organization. Valid users are queued; rejected IDs are returned in invalid_users. */
|
|
1632
|
+
user_ids: PauseUsersAccessRequestUserIdsList;
|
|
1633
|
+
/** Optional explanation for the access change. */
|
|
1634
|
+
reason?: string | undefined;
|
|
1635
|
+
}
|
|
1636
|
+
export type PauseUsersAccessResponseInvalidUsersItemReason = "user_not_found" | "user_not_frontline_member";
|
|
1637
|
+
export interface PauseUsersAccessResponseInvalidUsersItem {
|
|
1638
|
+
user_id: string;
|
|
1639
|
+
reason: PauseUsersAccessResponseInvalidUsersItemReason;
|
|
1640
|
+
}
|
|
1641
|
+
/** Rejected users. An empty array on success; populated in failed_for_all_users and failed_for_some_users error responses. */
|
|
1642
|
+
export type PauseUsersAccessResponseInvalidUsersList = Array<PauseUsersAccessResponseInvalidUsersItem>;
|
|
1643
|
+
export interface PauseUsersAccessResponse {
|
|
1644
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
1645
|
+
ok: boolean;
|
|
1646
|
+
/** Rejected users. An empty array on success; populated in failed_for_all_users and failed_for_some_users error responses. */
|
|
1647
|
+
invalid_users: PauseUsersAccessResponseInvalidUsersList;
|
|
1648
|
+
}
|
|
1649
|
+
/** One to 50 skill IDs. Successful items are not rolled back if other items fail. */
|
|
1650
|
+
export type PublishSlackbotSkillRequestSkillIdsList = Array<string>;
|
|
1651
|
+
export interface PublishSlackbotSkillRequest {
|
|
1652
|
+
/** One to 50 skill IDs. Successful items are not rolled back if other items fail. */
|
|
1653
|
+
skill_ids: PublishSlackbotSkillRequestSkillIdsList;
|
|
1654
|
+
}
|
|
1655
|
+
export interface PublishSlackbotSkillResponse {
|
|
1656
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
1657
|
+
ok: boolean;
|
|
1658
|
+
}
|
|
1498
1659
|
/** List of user IDs whose named_entities access will be revoked */
|
|
1499
1660
|
export type RemoveAppsPermissionsRequestUserIdsList = Array<string>;
|
|
1500
1661
|
/** List of encoded usergroup IDs */
|
|
@@ -1505,11 +1666,11 @@ export interface RemoveAppsPermissionsRequest {
|
|
|
1505
1666
|
/** Encoded ID of the app */
|
|
1506
1667
|
app_id: string;
|
|
1507
1668
|
/** List of user IDs whose named_entities access will be revoked */
|
|
1508
|
-
user_ids?: RemoveAppsPermissionsRequestUserIdsList;
|
|
1669
|
+
user_ids?: RemoveAppsPermissionsRequestUserIdsList | undefined;
|
|
1509
1670
|
/** List of encoded usergroup IDs */
|
|
1510
|
-
usergroup_ids?: RemoveAppsPermissionsRequestUsergroupIdsList;
|
|
1671
|
+
usergroup_ids?: RemoveAppsPermissionsRequestUsergroupIdsList | undefined;
|
|
1511
1672
|
/** List of encoded channel IDs to remove from the channel restriction list. Interpretation depends on the app's `channel_restriction_mode`, which is configured via the `admin.apps.permissions.set` method. */
|
|
1512
|
-
channel_ids?: RemoveAppsPermissionsRequestChannelIdsList;
|
|
1673
|
+
channel_ids?: RemoveAppsPermissionsRequestChannelIdsList | undefined;
|
|
1513
1674
|
}
|
|
1514
1675
|
export interface RemoveAppsPermissionsResponse {
|
|
1515
1676
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -1531,7 +1692,7 @@ export interface RemoveAssignmentsResponse {
|
|
|
1531
1692
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1532
1693
|
ok: boolean;
|
|
1533
1694
|
/** A string representation of the error type */
|
|
1534
|
-
error?: string;
|
|
1695
|
+
error?: string | undefined;
|
|
1535
1696
|
}
|
|
1536
1697
|
/** Comma-separated string of channel IDs */
|
|
1537
1698
|
export type RemoveChannelsRequestChannelIdsList = Array<string>;
|
|
@@ -1547,9 +1708,9 @@ export interface RemoveChannelsResponse {
|
|
|
1547
1708
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1548
1709
|
ok: boolean;
|
|
1549
1710
|
/** A string representation of the error type */
|
|
1550
|
-
error?: string;
|
|
1711
|
+
error?: string | undefined;
|
|
1551
1712
|
/** List of channel IDs that are not valid for this action */
|
|
1552
|
-
invalid_channels?: RemoveChannelsResponseInvalidChannelsList;
|
|
1713
|
+
invalid_channels?: RemoveChannelsResponseInvalidChannelsList | undefined;
|
|
1553
1714
|
}
|
|
1554
1715
|
export interface RemoveCustomRetentionRequest {
|
|
1555
1716
|
/** The conversation to set the retention policy for. */
|
|
@@ -1666,9 +1827,9 @@ export interface ResetBulkRequest {
|
|
|
1666
1827
|
/** The list of up to 1,000 user IDs to wipe sessions for */
|
|
1667
1828
|
user_ids: ResetBulkRequestUserIdsList;
|
|
1668
1829
|
/** Only expire mobile sessions (default: false) */
|
|
1669
|
-
mobile_only?: boolean;
|
|
1830
|
+
mobile_only?: boolean | undefined;
|
|
1670
1831
|
/** Only expire web sessions (default: false) */
|
|
1671
|
-
web_only?: boolean;
|
|
1832
|
+
web_only?: boolean | undefined;
|
|
1672
1833
|
}
|
|
1673
1834
|
export interface ResetBulkResponse {
|
|
1674
1835
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -1678,14 +1839,35 @@ export interface ResetUsersSessionRequest {
|
|
|
1678
1839
|
/** The ID of the user to wipe sessions for */
|
|
1679
1840
|
user_id: string;
|
|
1680
1841
|
/** Only expire mobile sessions (default: false) */
|
|
1681
|
-
mobile_only?: boolean;
|
|
1842
|
+
mobile_only?: boolean | undefined;
|
|
1682
1843
|
/** Only expire web sessions (default: false) */
|
|
1683
|
-
web_only?: boolean;
|
|
1844
|
+
web_only?: boolean | undefined;
|
|
1684
1845
|
}
|
|
1685
1846
|
export interface ResetUsersSessionResponse {
|
|
1686
1847
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1687
1848
|
ok: boolean;
|
|
1688
1849
|
}
|
|
1850
|
+
/** IDs of frontline members in the authenticated organization. Valid users are queued; rejected IDs are returned in invalid_users. */
|
|
1851
|
+
export type ResumeUsersAccessRequestUserIdsList = Array<string>;
|
|
1852
|
+
export interface ResumeUsersAccessRequest {
|
|
1853
|
+
/** IDs of frontline members in the authenticated organization. Valid users are queued; rejected IDs are returned in invalid_users. */
|
|
1854
|
+
user_ids: ResumeUsersAccessRequestUserIdsList;
|
|
1855
|
+
/** Optional explanation for the access change. */
|
|
1856
|
+
reason?: string | undefined;
|
|
1857
|
+
}
|
|
1858
|
+
export type ResumeUsersAccessResponseInvalidUsersItemReason = "user_not_found" | "user_not_frontline_member";
|
|
1859
|
+
export interface ResumeUsersAccessResponseInvalidUsersItem {
|
|
1860
|
+
user_id: string;
|
|
1861
|
+
reason: ResumeUsersAccessResponseInvalidUsersItemReason;
|
|
1862
|
+
}
|
|
1863
|
+
/** Rejected users. An empty array on success; populated in failed_for_all_users and failed_for_some_users error responses. */
|
|
1864
|
+
export type ResumeUsersAccessResponseInvalidUsersList = Array<ResumeUsersAccessResponseInvalidUsersItem>;
|
|
1865
|
+
export interface ResumeUsersAccessResponse {
|
|
1866
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
1867
|
+
ok: boolean;
|
|
1868
|
+
/** Rejected users. An empty array on success; populated in failed_for_all_users and failed_for_some_users error responses. */
|
|
1869
|
+
invalid_users: ResumeUsersAccessResponseInvalidUsersList;
|
|
1870
|
+
}
|
|
1689
1871
|
/** Comma separated string of team IDs, signifying the internal workspaces to search through. */
|
|
1690
1872
|
export type SearchConversationRequestTeamIdsList = Array<string>;
|
|
1691
1873
|
/** Array of encoded team IDs, signifying the external orgs to search through. */
|
|
@@ -1694,23 +1876,23 @@ export type SearchConversationRequestConnectedTeamIdsList = Array<string>;
|
|
|
1694
1876
|
export type SearchConversationRequestSearchChannelTypesList = Array<string>;
|
|
1695
1877
|
export interface SearchConversationRequest {
|
|
1696
1878
|
/** Comma separated string of team IDs, signifying the internal workspaces to search through. */
|
|
1697
|
-
team_ids?: SearchConversationRequestTeamIdsList;
|
|
1879
|
+
team_ids?: SearchConversationRequestTeamIdsList | undefined;
|
|
1698
1880
|
/** Array of encoded team IDs, signifying the external orgs to search through. */
|
|
1699
|
-
connected_team_ids?: SearchConversationRequestConnectedTeamIdsList;
|
|
1700
|
-
/** Name of the
|
|
1701
|
-
query?: string;
|
|
1881
|
+
connected_team_ids?: SearchConversationRequestConnectedTeamIdsList | undefined;
|
|
1882
|
+
/** Name of the channel to query by. */
|
|
1883
|
+
query?: string | undefined;
|
|
1702
1884
|
/** Maximum number of items to be returned. Must be between 1 - 20 both inclusive. Default is 10. */
|
|
1703
|
-
limit?: number;
|
|
1885
|
+
limit?: number | undefined;
|
|
1704
1886
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
|
|
1705
|
-
cursor?: string;
|
|
1887
|
+
cursor?: string | undefined;
|
|
1706
1888
|
/** The type of channel to include or exclude in the search. For example `private` will search private channels, while `private_exclude` will exclude them. For a full list of types, check the [Types section](#types). */
|
|
1707
|
-
search_channel_types?: SearchConversationRequestSearchChannelTypesList;
|
|
1889
|
+
search_channel_types?: SearchConversationRequestSearchChannelTypesList | undefined;
|
|
1708
1890
|
/** Possible values are `relevant` (search ranking based on what we think is closest), `name` (alphabetical), `member_count` (number of users in the channel), and `created` (date channel was created). You can optionally pair this with the `sort_dir` arg to change how it is sorted */
|
|
1709
|
-
sort?: string;
|
|
1891
|
+
sort?: string | undefined;
|
|
1710
1892
|
/** Sort direction. Possible values are `asc` for ascending order like (1, 2, 3) or (a, b, c), and `desc` for descending order like (3, 2, 1) or (c, b, a) */
|
|
1711
|
-
sort_dir?: string;
|
|
1893
|
+
sort_dir?: string | undefined;
|
|
1712
1894
|
/** Only return the total_count of channels. Omits channel data and allows access for admins without channel manager permissions. */
|
|
1713
|
-
total_count_only?: boolean;
|
|
1895
|
+
total_count_only?: boolean | undefined;
|
|
1714
1896
|
}
|
|
1715
1897
|
export type SearchConversationResponseConversationsList = Array<string>;
|
|
1716
1898
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -1724,9 +1906,9 @@ export interface SearchConversationResponse {
|
|
|
1724
1906
|
/** Total number of channels that exist in the search index and match the query string */
|
|
1725
1907
|
total_count: number;
|
|
1726
1908
|
/** A string representation of the error type */
|
|
1727
|
-
error?: string;
|
|
1909
|
+
error?: string | undefined;
|
|
1728
1910
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1729
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1911
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1730
1912
|
}
|
|
1731
1913
|
/** Only include workflows where all of the provided user IDs are a manager/collaborator of that workflow */
|
|
1732
1914
|
export type SearchWorkflowRequestCollaboratorIdsList = Array<string>;
|
|
@@ -1742,33 +1924,33 @@ export type SearchWorkflowRequestPublishStatus = "all" | "published" | "unpublis
|
|
|
1742
1924
|
export type SearchWorkflowRequestStepFunctionIdsList = Array<string>;
|
|
1743
1925
|
export interface SearchWorkflowRequest {
|
|
1744
1926
|
/** A search query to filter for workflow name or description */
|
|
1745
|
-
query?: string;
|
|
1927
|
+
query?: string | undefined;
|
|
1746
1928
|
/** The parent app ID for which to return workflows */
|
|
1747
|
-
app_id?: string;
|
|
1929
|
+
app_id?: string | undefined;
|
|
1748
1930
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page */
|
|
1749
|
-
cursor?: string;
|
|
1931
|
+
cursor?: string | undefined;
|
|
1750
1932
|
/** The number of results that will be returned by the API on each invocation */
|
|
1751
|
-
limit?: number;
|
|
1933
|
+
limit?: number | undefined;
|
|
1752
1934
|
/** Only include workflows with no collaborators in the result; default is false */
|
|
1753
|
-
no_collaborators?: boolean;
|
|
1935
|
+
no_collaborators?: boolean | undefined;
|
|
1754
1936
|
/** Only include workflows where all of the provided user IDs are a manager/collaborator of that workflow */
|
|
1755
|
-
collaborator_ids?: SearchWorkflowRequestCollaboratorIdsList;
|
|
1937
|
+
collaborator_ids?: SearchWorkflowRequestCollaboratorIdsList | undefined;
|
|
1756
1938
|
/** Number of trigger IDs to fetch for each workflow; default is 10 */
|
|
1757
|
-
num_trigger_ids?: number;
|
|
1939
|
+
num_trigger_ids?: number | undefined;
|
|
1758
1940
|
/** Filter workflows by their Sales Elevate status */
|
|
1759
|
-
is_sales_elevate?: boolean;
|
|
1941
|
+
is_sales_elevate?: boolean | undefined;
|
|
1760
1942
|
/** Source of workflow creation, either from code or workflow builder */
|
|
1761
|
-
source?: SearchWorkflowRequestSource | (string & {});
|
|
1943
|
+
source?: SearchWorkflowRequestSource | (string & {}) | undefined;
|
|
1762
1944
|
/** The field used to sort the returned workflows */
|
|
1763
|
-
sort?: SearchWorkflowRequestSort | (string & {});
|
|
1945
|
+
sort?: SearchWorkflowRequestSort | (string & {}) | undefined;
|
|
1764
1946
|
/** Sort direction. Possible values are `asc` for ascending order like (1, 2, 3) or (a, b, c), and `desc` for descending order like (3, 2, 1) or (c, b, a) */
|
|
1765
|
-
sort_dir?: SearchWorkflowRequestSortDir | (string & {});
|
|
1947
|
+
sort_dir?: SearchWorkflowRequestSortDir | (string & {}) | undefined;
|
|
1766
1948
|
/** Only include workflows with this trigger type */
|
|
1767
|
-
trigger_type_id?: string;
|
|
1949
|
+
trigger_type_id?: string | undefined;
|
|
1768
1950
|
/** Filter workflows by their published status */
|
|
1769
|
-
publish_status?: SearchWorkflowRequestPublishStatus | (string & {});
|
|
1951
|
+
publish_status?: SearchWorkflowRequestPublishStatus | (string & {}) | undefined;
|
|
1770
1952
|
/** Only include workflows that use all of the provided step function ids */
|
|
1771
|
-
step_function_ids?: SearchWorkflowRequestStepFunctionIdsList;
|
|
1953
|
+
step_function_ids?: SearchWorkflowRequestStepFunctionIdsList | undefined;
|
|
1772
1954
|
}
|
|
1773
1955
|
export type SearchWorkflowResponseWorkflowsList = Array<unknown>;
|
|
1774
1956
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -1778,7 +1960,7 @@ export interface SearchWorkflowResponse {
|
|
|
1778
1960
|
ok: boolean;
|
|
1779
1961
|
workflows: SearchWorkflowResponseWorkflowsList;
|
|
1780
1962
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
1781
|
-
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata;
|
|
1963
|
+
response_metadata?: AnalyticsMessagesActivityResponseResponseMetadata | undefined;
|
|
1782
1964
|
/** The total number of workflows that match this search criteria */
|
|
1783
1965
|
total_found: number;
|
|
1784
1966
|
}
|
|
@@ -1803,19 +1985,19 @@ export type SetAppsConfigRequestDomainRestrictionsEmailsList = Array<string>;
|
|
|
1803
1985
|
/** Domain restrictions for the app. Should be an object with two properties: `urls` and `emails`. Each is an array of strings, and each sets the allowed URLs and emails for connector authorization, respectively. */
|
|
1804
1986
|
export interface SetAppsConfigRequestDomainRestrictions {
|
|
1805
1987
|
/** List of URLs for allowed connector authorization */
|
|
1806
|
-
urls?: SetAppsConfigRequestDomainRestrictionsUrlsList;
|
|
1988
|
+
urls?: SetAppsConfigRequestDomainRestrictionsUrlsList | undefined;
|
|
1807
1989
|
/** List of emails for allowed connector authorization */
|
|
1808
|
-
emails?: SetAppsConfigRequestDomainRestrictionsEmailsList;
|
|
1990
|
+
emails?: SetAppsConfigRequestDomainRestrictionsEmailsList | undefined;
|
|
1809
1991
|
}
|
|
1810
1992
|
export interface SetAppsConfigRequest {
|
|
1811
1993
|
/** The encoded app ID to set the app config for */
|
|
1812
1994
|
app_id: string;
|
|
1813
1995
|
/** The workflow auth permission. Can be one of `builder_choice` or `end_user_only`. */
|
|
1814
|
-
workflow_auth_strategy?: SetAppsConfigRequestWorkflowAuthStrategy | (string & {});
|
|
1996
|
+
workflow_auth_strategy?: SetAppsConfigRequestWorkflowAuthStrategy | (string & {}) | undefined;
|
|
1815
1997
|
/** Indicates the app-level override for rich link preview. Unsupported for free teams. */
|
|
1816
|
-
rich_link_preview_type?: SetAppsConfigRequestRichLinkPreviewType | (string & {});
|
|
1998
|
+
rich_link_preview_type?: SetAppsConfigRequestRichLinkPreviewType | (string & {}) | undefined;
|
|
1817
1999
|
/** Domain restrictions for the app. Should be an object with two properties: `urls` and `emails`. Each is an array of strings, and each sets the allowed URLs and emails for connector authorization, respectively. */
|
|
1818
|
-
domain_restrictions?: SetAppsConfigRequestDomainRestrictions;
|
|
2000
|
+
domain_restrictions?: SetAppsConfigRequestDomainRestrictions | undefined;
|
|
1819
2001
|
}
|
|
1820
2002
|
export interface SetAppsConfigResponse {
|
|
1821
2003
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -1835,19 +2017,19 @@ export interface SetAppsMcpServersPermissionsRequest {
|
|
|
1835
2017
|
/** The type of permission that defines who can use this MCP server */
|
|
1836
2018
|
permission_type: SetAppsMcpServersPermissionsRequestPermissionType | (string & {});
|
|
1837
2019
|
/** List of user IDs to set for named_entities or named_entities_exclude */
|
|
1838
|
-
user_ids?: SetAppsMcpServersPermissionsRequestUserIdsList;
|
|
2020
|
+
user_ids?: SetAppsMcpServersPermissionsRequestUserIdsList | undefined;
|
|
1839
2021
|
/** List of encoded usergroup IDs */
|
|
1840
|
-
usergroup_ids?: SetAppsMcpServersPermissionsRequestUsergroupIdsList;
|
|
2022
|
+
usergroup_ids?: SetAppsMcpServersPermissionsRequestUsergroupIdsList | undefined;
|
|
1841
2023
|
}
|
|
1842
2024
|
export interface SetAppsMcpServersPermissionsResponse {
|
|
1843
2025
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1844
2026
|
ok: boolean;
|
|
1845
2027
|
}
|
|
1846
2028
|
/** The type of permission that defines who can access the app */
|
|
1847
|
-
export type SetAppsPermissionsRequestPermissionType = "everyone" | "named_entities" | "no_one";
|
|
2029
|
+
export type SetAppsPermissionsRequestPermissionType = "everyone" | "named_entities" | "named_entities_exclude" | "no_one";
|
|
1848
2030
|
/** List of user IDs to allow for named_entities visibility */
|
|
1849
2031
|
export type SetAppsPermissionsRequestUserIdsList = Array<string>;
|
|
1850
|
-
/** List of encoded usergroup IDs */
|
|
2032
|
+
/** List of encoded usergroup IDs the permission applies to. With named_entities the listed groups may access the app; with named_entities_exclude they may not */
|
|
1851
2033
|
export type SetAppsPermissionsRequestUsergroupIdsList = Array<string>;
|
|
1852
2034
|
/** The mode that defines where the app can be used in channels */
|
|
1853
2035
|
export type SetAppsPermissionsRequestChannelRestrictionMode = "all_channels" | "specific_channels" | "all_channels_except";
|
|
@@ -1859,18 +2041,41 @@ export interface SetAppsPermissionsRequest {
|
|
|
1859
2041
|
/** The type of permission that defines who can access the app */
|
|
1860
2042
|
permission_type: SetAppsPermissionsRequestPermissionType | (string & {});
|
|
1861
2043
|
/** List of user IDs to allow for named_entities visibility */
|
|
1862
|
-
user_ids?: SetAppsPermissionsRequestUserIdsList;
|
|
1863
|
-
/** List of encoded usergroup IDs */
|
|
1864
|
-
usergroup_ids?: SetAppsPermissionsRequestUsergroupIdsList;
|
|
2044
|
+
user_ids?: SetAppsPermissionsRequestUserIdsList | undefined;
|
|
2045
|
+
/** List of encoded usergroup IDs the permission applies to. With named_entities the listed groups may access the app; with named_entities_exclude they may not */
|
|
2046
|
+
usergroup_ids?: SetAppsPermissionsRequestUsergroupIdsList | undefined;
|
|
1865
2047
|
/** The mode that defines where the app can be used in channels */
|
|
1866
|
-
channel_restriction_mode?: SetAppsPermissionsRequestChannelRestrictionMode | (string & {});
|
|
2048
|
+
channel_restriction_mode?: SetAppsPermissionsRequestChannelRestrictionMode | (string & {}) | undefined;
|
|
1867
2049
|
/** List of encoded channel IDs for channel restrictions. Semantics depend on channel_restriction_mode: allowlist for specific_channels, exclusion list for all_channels_except */
|
|
1868
|
-
channel_ids?: SetAppsPermissionsRequestChannelIdsList;
|
|
2050
|
+
channel_ids?: SetAppsPermissionsRequestChannelIdsList | undefined;
|
|
1869
2051
|
}
|
|
1870
2052
|
export interface SetAppsPermissionsResponse {
|
|
1871
2053
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1872
2054
|
ok: boolean;
|
|
1873
2055
|
}
|
|
2056
|
+
/** Deployment audience. */
|
|
2057
|
+
export type SetAutoEnabledRequestPermissionType = "everyone" | "named_entities" | "no_one";
|
|
2058
|
+
/** One to 100 user groups for named_entities. Duplicates count toward the input limit and are stored once. Omit for other permission types. */
|
|
2059
|
+
export type SetAutoEnabledRequestUsergroupIdsList = Array<string>;
|
|
2060
|
+
export interface SetAutoEnabledRequest {
|
|
2061
|
+
/** Canvas skill to deploy. */
|
|
2062
|
+
skill_id: string;
|
|
2063
|
+
/** Deployment audience. */
|
|
2064
|
+
permission_type: SetAutoEnabledRequestPermissionType | (string & {});
|
|
2065
|
+
/** One to 100 user groups for named_entities. Duplicates count toward the input limit and are stored once. Omit for other permission types. */
|
|
2066
|
+
usergroup_ids?: SetAutoEnabledRequestUsergroupIdsList | undefined;
|
|
2067
|
+
}
|
|
2068
|
+
/** Who receives a skill automatically. This setting does not grant access to its instructions. */
|
|
2069
|
+
export type SetAutoEnabledResponsePermissionType = "everyone" | "named_entities" | "no_one";
|
|
2070
|
+
export type SetAutoEnabledResponseUsergroupIdsList = Array<string>;
|
|
2071
|
+
export interface SetAutoEnabledResponse {
|
|
2072
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
2073
|
+
ok: boolean;
|
|
2074
|
+
skill_id: string;
|
|
2075
|
+
/** Who receives a skill automatically. This setting does not grant access to its instructions. */
|
|
2076
|
+
permission_type: SetAutoEnabledResponsePermissionType;
|
|
2077
|
+
usergroup_ids: SetAutoEnabledResponseUsergroupIdsList;
|
|
2078
|
+
}
|
|
1874
2079
|
export interface SetConversationPrefsRequest {
|
|
1875
2080
|
/** The channel to set the prefs for */
|
|
1876
2081
|
channel_id: string;
|
|
@@ -1921,7 +2126,7 @@ export interface SetDiscoverabilityResponse {
|
|
|
1921
2126
|
}
|
|
1922
2127
|
export interface SetExpirationRequest {
|
|
1923
2128
|
/** The ID (`T1234`) of the workspace. */
|
|
1924
|
-
team_id?: string;
|
|
2129
|
+
team_id?: string | undefined;
|
|
1925
2130
|
/** The ID of the user to set an expiration for. */
|
|
1926
2131
|
user_id: string;
|
|
1927
2132
|
/** Epoch timestamp in seconds when guest account should be disabled. */
|
|
@@ -1942,7 +2147,7 @@ export interface SetFunctionsPermissionsRequestPermissionsItem {
|
|
|
1942
2147
|
visibility: SetFunctionsPermissionsRequestPermissionsItemVisibility | (string & {});
|
|
1943
2148
|
permission_type: SetFunctionsPermissionsRequestPermissionsItemPermissionType | (string & {});
|
|
1944
2149
|
/** List of user IDs to allow for `named_entities` visibility. */
|
|
1945
|
-
user_ids?: SetFunctionsPermissionsRequestPermissionsItemUserIdsList;
|
|
2150
|
+
user_ids?: SetFunctionsPermissionsRequestPermissionsItemUserIdsList | undefined;
|
|
1946
2151
|
}
|
|
1947
2152
|
/** Array of permissions for the function. */
|
|
1948
2153
|
export type SetFunctionsPermissionsRequestPermissionsList = Array<SetFunctionsPermissionsRequestPermissionsItem>;
|
|
@@ -1950,11 +2155,11 @@ export interface SetFunctionsPermissionsRequest {
|
|
|
1950
2155
|
/** The function ID to set permissions for. */
|
|
1951
2156
|
function_id: string;
|
|
1952
2157
|
/** The function visibility. */
|
|
1953
|
-
visibility?: SetFunctionsPermissionsRequestVisibility | (string & {});
|
|
2158
|
+
visibility?: SetFunctionsPermissionsRequestVisibility | (string & {}) | undefined;
|
|
1954
2159
|
/** List of user IDs to allow for `named_entities` visibility. */
|
|
1955
|
-
user_ids?: SetFunctionsPermissionsRequestUserIdsList;
|
|
2160
|
+
user_ids?: SetFunctionsPermissionsRequestUserIdsList | undefined;
|
|
1956
2161
|
/** Array of permissions for the function. */
|
|
1957
|
-
permissions?: SetFunctionsPermissionsRequestPermissionsList;
|
|
2162
|
+
permissions?: SetFunctionsPermissionsRequestPermissionsList | undefined;
|
|
1958
2163
|
}
|
|
1959
2164
|
export interface SetFunctionsPermissionsResponse {
|
|
1960
2165
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -2005,9 +2210,9 @@ export interface SetSettingsRequest {
|
|
|
2005
2210
|
/** The list of up to 1,000 user IDs to apply the session settings for */
|
|
2006
2211
|
user_ids: SetSettingsRequestUserIdsList;
|
|
2007
2212
|
/** The session duration, in seconds. The minimum value is 28800, which represents 8 hours; the max value is 315569520 or 10 years (that's a long Slack session). */
|
|
2008
|
-
duration?: number;
|
|
2213
|
+
duration?: number | undefined;
|
|
2009
2214
|
/** Terminate the session when the client--either the desktop app or a browser window--is closed. */
|
|
2010
|
-
desktop_app_browser_quit?: boolean;
|
|
2215
|
+
desktop_app_browser_quit?: boolean | undefined;
|
|
2011
2216
|
}
|
|
2012
2217
|
export interface SetSettingsResponse {
|
|
2013
2218
|
ok: boolean;
|
|
@@ -2018,11 +2223,11 @@ export interface SetTeamsRequest {
|
|
|
2018
2223
|
/** The encoded `channel_id` to add or remove to workspaces. */
|
|
2019
2224
|
channel_id: string;
|
|
2020
2225
|
/** The workspace to which the channel belongs if the channel is a local workspace channel. Omit this argument if the channel is a cross-workspace or org-wide shared channel. */
|
|
2021
|
-
team_id?: string;
|
|
2226
|
+
team_id?: string | undefined;
|
|
2022
2227
|
/** A comma-separated list of workspaces to which the channel should be shared. Not required if the channel is being shared org-wide. */
|
|
2023
|
-
target_team_ids?: SetTeamsRequestTargetTeamIdsList;
|
|
2228
|
+
target_team_ids?: SetTeamsRequestTargetTeamIdsList | undefined;
|
|
2024
2229
|
/** True if channel has to be converted to an org channel */
|
|
2025
|
-
org_channel?: boolean;
|
|
2230
|
+
org_channel?: boolean | undefined;
|
|
2026
2231
|
}
|
|
2027
2232
|
export interface SetTeamsResponse {
|
|
2028
2233
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -2039,16 +2244,16 @@ export type SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap
|
|
|
2039
2244
|
};
|
|
2040
2245
|
export interface SetWorkflowsTriggersTypesPermissionsRequestPermissions {
|
|
2041
2246
|
/** Dict of permissions keyed by permission type ID. */
|
|
2042
|
-
permissions?: SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap;
|
|
2247
|
+
permissions?: SetWorkflowsTriggersTypesPermissionsRequestPermissionsPermissionsMap | undefined;
|
|
2043
2248
|
}
|
|
2044
2249
|
export interface SetWorkflowsTriggersTypesPermissionsRequest {
|
|
2045
2250
|
/** The trigger type ID for which to set the permissions */
|
|
2046
2251
|
id: string;
|
|
2047
2252
|
/** The function visibility */
|
|
2048
|
-
visibility?: SetWorkflowsTriggersTypesPermissionsRequestVisibility | (string & {});
|
|
2253
|
+
visibility?: SetWorkflowsTriggersTypesPermissionsRequestVisibility | (string & {}) | undefined;
|
|
2049
2254
|
/** List of user IDs to allow for named_entities visibility */
|
|
2050
|
-
user_ids?: SetWorkflowsTriggersTypesPermissionsRequestUserIdsList;
|
|
2051
|
-
permissions?: SetWorkflowsTriggersTypesPermissionsRequestPermissions;
|
|
2255
|
+
user_ids?: SetWorkflowsTriggersTypesPermissionsRequestUserIdsList | undefined;
|
|
2256
|
+
permissions?: SetWorkflowsTriggersTypesPermissionsRequestPermissions | undefined;
|
|
2052
2257
|
}
|
|
2053
2258
|
export interface SetWorkflowsTriggersTypesPermissionsResponse {
|
|
2054
2259
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -2057,21 +2262,20 @@ export interface SetWorkflowsTriggersTypesPermissionsResponse {
|
|
|
2057
2262
|
export interface TeamsSettingsInfoRequest {
|
|
2058
2263
|
team_id: string;
|
|
2059
2264
|
}
|
|
2060
|
-
export type
|
|
2061
|
-
export interface
|
|
2062
|
-
id?: string;
|
|
2063
|
-
name?: string;
|
|
2064
|
-
domain?: string;
|
|
2065
|
-
email_domain?: string;
|
|
2066
|
-
icon?: unknown;
|
|
2067
|
-
enterprise_id?: string;
|
|
2068
|
-
enterprise_name?: string;
|
|
2069
|
-
default_channels?:
|
|
2070
|
-
}
|
|
2071
|
-
export type TeamsSettingsInfoResponseTeamList = Array<TeamsSettingsInfoResponseTeamItem>;
|
|
2265
|
+
export type TeamsSettingsInfoResponseTeamDefaultChannelsList = Array<unknown>;
|
|
2266
|
+
export interface TeamsSettingsInfoResponseTeam {
|
|
2267
|
+
id?: string | undefined;
|
|
2268
|
+
name?: string | undefined;
|
|
2269
|
+
domain?: string | undefined;
|
|
2270
|
+
email_domain?: string | undefined;
|
|
2271
|
+
icon?: unknown | undefined;
|
|
2272
|
+
enterprise_id?: string | undefined;
|
|
2273
|
+
enterprise_name?: string | undefined;
|
|
2274
|
+
default_channels?: TeamsSettingsInfoResponseTeamDefaultChannelsList | undefined;
|
|
2275
|
+
}
|
|
2072
2276
|
export interface TeamsSettingsInfoResponse {
|
|
2073
2277
|
ok: boolean;
|
|
2074
|
-
team:
|
|
2278
|
+
team: TeamsSettingsInfoResponseTeam;
|
|
2075
2279
|
}
|
|
2076
2280
|
export interface UnarchiveConversationRequest {
|
|
2077
2281
|
/** The channel to unarchive. */
|
|
@@ -2084,9 +2288,9 @@ export interface UninstallAppRequest {
|
|
|
2084
2288
|
/** The ID of the app to uninstall. */
|
|
2085
2289
|
app_id: string;
|
|
2086
2290
|
/** IDs of the teams to uninstall from (max 100). With an org-level token, this or `enterprise_id` is required. */
|
|
2087
|
-
team_ids?: string;
|
|
2291
|
+
team_ids?: string | undefined;
|
|
2088
2292
|
/** The enterprise to completely uninstall the application from (across all workspaces). With an org-level token, this or `team_ids` is required. */
|
|
2089
|
-
enterprise_id?: string;
|
|
2293
|
+
enterprise_id?: string | undefined;
|
|
2090
2294
|
}
|
|
2091
2295
|
export interface UninstallAppResponse {
|
|
2092
2296
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -2102,6 +2306,16 @@ export interface UnlinkObjectsResponse {
|
|
|
2102
2306
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
2103
2307
|
ok: boolean;
|
|
2104
2308
|
}
|
|
2309
|
+
/** One to 50 skill IDs. Successful items are not rolled back if other items fail. */
|
|
2310
|
+
export type UnpublishSlackbotSkillRequestSkillIdsList = Array<string>;
|
|
2311
|
+
export interface UnpublishSlackbotSkillRequest {
|
|
2312
|
+
/** One to 50 skill IDs. Successful items are not rolled back if other items fail. */
|
|
2313
|
+
skill_ids: UnpublishSlackbotSkillRequestSkillIdsList;
|
|
2314
|
+
}
|
|
2315
|
+
export interface UnpublishSlackbotSkillResponse {
|
|
2316
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
2317
|
+
ok: boolean;
|
|
2318
|
+
}
|
|
2105
2319
|
/** Array of workflow IDs to unpublish */
|
|
2106
2320
|
export type UnpublishWorkflowRequestWorkflowIdsList = Array<string>;
|
|
2107
2321
|
export interface UnpublishWorkflowRequest {
|
|
@@ -2137,9 +2351,9 @@ export type UpdateItemRequestTrustedCidrList = Array<string>;
|
|
|
2137
2351
|
export type UpdateItemRequestTrustedAsnsList = Array<number>;
|
|
2138
2352
|
export interface UpdateItemRequest {
|
|
2139
2353
|
/** allow list of IPv4 addresses using cidr notation in the Enterprise organization configuration */
|
|
2140
|
-
trusted_cidr?: UpdateItemRequestTrustedCidrList;
|
|
2354
|
+
trusted_cidr?: UpdateItemRequestTrustedCidrList | undefined;
|
|
2141
2355
|
/** allow list of Autonomous System Numbers (ASN) in the Enterprise organization configuration */
|
|
2142
|
-
trusted_asns?: UpdateItemRequestTrustedAsnsList;
|
|
2356
|
+
trusted_asns?: UpdateItemRequestTrustedAsnsList | undefined;
|
|
2143
2357
|
}
|
|
2144
2358
|
export interface UpdateItemResponse {
|
|
2145
2359
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -2149,30 +2363,30 @@ export interface UpdateUsergroupRequest {
|
|
|
2149
2363
|
/** ID of the usergroup to update */
|
|
2150
2364
|
id: string;
|
|
2151
2365
|
/** The name of the group. */
|
|
2152
|
-
name?: string;
|
|
2366
|
+
name?: string | undefined;
|
|
2153
2367
|
/** The handle used for mentioning the group in a channel, must be unique. */
|
|
2154
|
-
handle?: string;
|
|
2368
|
+
handle?: string | undefined;
|
|
2155
2369
|
/** The usergroup's purpose or description. */
|
|
2156
|
-
description?: string;
|
|
2370
|
+
description?: string | undefined;
|
|
2157
2371
|
/** Configure whether or not this usergroup should be visible in the client. */
|
|
2158
|
-
is_visible?: boolean;
|
|
2372
|
+
is_visible?: boolean | undefined;
|
|
2159
2373
|
}
|
|
2160
2374
|
/** List of user IDs who would exceed their channel limit */
|
|
2161
2375
|
export type UpdateUsergroupResponseChannelLimitUserIdsList = Array<string>;
|
|
2162
2376
|
export interface UpdateUsergroupResponse {
|
|
2163
2377
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
2164
2378
|
ok: boolean;
|
|
2165
|
-
subteam?: unknown;
|
|
2379
|
+
subteam?: unknown | undefined;
|
|
2166
2380
|
/** List of user IDs who would exceed their channel limit */
|
|
2167
|
-
channel_limit_user_ids?: UpdateUsergroupResponseChannelLimitUserIdsList;
|
|
2381
|
+
channel_limit_user_ids?: UpdateUsergroupResponseChannelLimitUserIdsList | undefined;
|
|
2168
2382
|
}
|
|
2169
2383
|
export interface UploadUsersRequest {
|
|
2170
2384
|
/** ID of the usergroup to upload users to */
|
|
2171
2385
|
id: string;
|
|
2172
2386
|
/** Csv of users to upload in format member id, email */
|
|
2173
|
-
file?: unknown;
|
|
2387
|
+
file?: unknown | undefined;
|
|
2174
2388
|
}
|
|
2175
|
-
export type UploadUsersResponseInvalidUsersItemReason = "guest_user" | "deleted_user" | "user_not_found" | "insert_failed" | "channel_limit_exceeded" | "multi_workspace_idp_group" | "usergroup_limit_exceeded";
|
|
2389
|
+
export type UploadUsersResponseInvalidUsersItemReason = "guest_user" | "deleted_user" | "user_not_found" | "insert_failed" | "channel_limit_exceeded" | "multi_workspace_idp_group" | "usergroup_limit_exceeded" | "non_frontline_user";
|
|
2176
2390
|
export interface UploadUsersResponseInvalidUsersItem {
|
|
2177
2391
|
user_id: string;
|
|
2178
2392
|
reason: UploadUsersResponseInvalidUsersItemReason;
|
|
@@ -2183,13 +2397,13 @@ export interface UploadUsersResponse {
|
|
|
2183
2397
|
ok: boolean;
|
|
2184
2398
|
/** How many users were successfully added */
|
|
2185
2399
|
successful_user_count: number;
|
|
2186
|
-
invalid_users?: UploadUsersResponseInvalidUsersList;
|
|
2400
|
+
invalid_users?: UploadUsersResponseInvalidUsersList | undefined;
|
|
2187
2401
|
}
|
|
2188
2402
|
export type AddAliasError = SlackOpError;
|
|
2189
2403
|
/** Add an emoji alias. Required scopes -- user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `emoji_limit_reached` -- Unable to add emoji due to limit reached. - `error_bad_name_i18n` -- Value passed for `name` was invalid. - `error_invalid_alias` -- Value passed for `alias_for` does not exist. - `error_missing_name` -- Value passed for `name` is missing or empty. - `error_name_taken` -- Value passed for `name` already exists. - `error_name_taken_i18n` -- The name has already been taken by another emoji, in the international set. Emoji must have unique names. - `failed_to_alias_emoji` -- Failed to alias the specified emoji. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `no_alias_selected` -- Value passed for `alias_for` was invalid. - `not_an_admin` -- This method is only accessible by org owners and Admins. See https://docs.slack.dev/reference/methods/admin.emoji.addAlias */
|
|
2190
2404
|
export declare const addAlias: API.OperationMethod<AddAliasRequest, AddAliasResponse, AddAliasError, SlackOpContext>;
|
|
2191
2405
|
export type AddAppsPermissionsError = SlackOpError;
|
|
2192
|
-
/** Grant permission for entities to access an app that has its permission type set to named_entities Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` -- Invalid authorization token - `access_denied` -- This actor does not have access to the permissions on this resource. - `invalid_permission_type` -- This app requires permission_type to be set as named_entities before adding users. - `no_valid_named_entities` -- None of the provided named entities were valid - `too_many_named_entities` -- Too many named entities passed into the app permissions setting. - `app_not_found` -- This app does not exist. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `app_acl_not_found` -- This app does not have an ACL. - `internal_error` -- Internal error - `user_not_found` -- Value passed for `user_ids` was invalid. - `invalid_entities` -- Invalid entities. - `invalid_channel_restriction_mode` -- Cannot add channels when channel_restriction_mode is all_channels. Use set to configure a restriction mode first. - `channel_not_found` -- One or more channel IDs are not valid. - `failed_to_update_channels` -- An error occurred while updating the channel restriction list. - `restricted_action` -- User does not have permission to perform this action. See https://docs.slack.dev/reference/methods/admin.apps.permissions.add */
|
|
2406
|
+
/** Grant permission for entities to access an app that has its permission type set to named_entities Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` -- Invalid authorization token - `access_denied` -- This actor does not have access to the permissions on this resource. - `invalid_permission_type` -- This app requires permission_type to be set as named_entities before adding users. - `no_valid_named_entities` -- None of the provided named entities were valid - `too_many_named_entities` -- Too many named entities passed into the app permissions setting. - `app_not_found` -- This app does not exist. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `app_acl_not_found` -- This app does not have an ACL. - `internal_error` -- Internal error - `user_not_found` -- Value passed for `user_ids` was invalid. - `invalid_entities` -- Invalid entities. - `invalid_channel_restriction_mode` -- Cannot add channels when channel_restriction_mode is all_channels. Use set to configure a restriction mode first. - `channel_not_found` -- One or more channel IDs are not valid, are not in this organization, or name a private channel the caller is neither a member of nor permitted to manage. - `failed_to_update_channels` -- An error occurred while updating the channel restriction list. - `restricted_action` -- User does not have permission to perform this action. See https://docs.slack.dev/reference/methods/admin.apps.permissions.add */
|
|
2193
2407
|
export declare const addAppsPermissions: API.OperationMethod<AddAppsPermissionsRequest, AddAppsPermissionsResponse, AddAppsPermissionsError, SlackOpContext>;
|
|
2194
2408
|
export type AddAssignmentsError = SlackOpError;
|
|
2195
2409
|
/** Adds members to the specified role with the specified scopes Required scopes -- user: `admin.roles:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_modify_role_admin` -- The user does not have permission to modify the admin role. - `failed_for_some_entities` -- At least one role scope ID was invalid - `failed_for_some_users` -- At least one user ID was invalid - `failed_for_some_users_and_entities` -- At least one role scope ID was invalid - `feature_not_enabled` -- This API is currently not enabled. - `invalid_actor` -- This API is only enabled for the Admins/Owners. - `invalid_role_id` -- The role type passed does not exist. - `no_valid_entities` -- None of the entities passed were valid. - `no_valid_users` -- None of the users passed were valid. - `too_many_entities` -- More than 10 role scopes were passed. - `too_many_users` -- More than 10 users were passed. See https://docs.slack.dev/reference/methods/admin.roles.addAssignments */
|
|
@@ -2213,13 +2427,13 @@ export type AddWorkflowsCollaboratorError = SlackOpError;
|
|
|
2213
2427
|
/** Add collaborators to workflows within the team or enterprise Required scopes -- user: `admin.workflows:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `not_allowed` -- The user is not allowed to access this API method - `error_adding_collaborators` -- There were one or more errors adding workflow collaborators See https://docs.slack.dev/reference/methods/admin.workflows.collaborators.add */
|
|
2214
2428
|
export declare const addWorkflowsCollaborator: API.OperationMethod<AddWorkflowsCollaboratorRequest, AddWorkflowsCollaboratorResponse, AddWorkflowsCollaboratorError, SlackOpContext>;
|
|
2215
2429
|
export type AnalyticsMessagesActivityError = SlackOpError;
|
|
2216
|
-
/** Retrieves activity metrics for messages from a given channel
|
|
2430
|
+
/** Retrieves activity metrics for messages from a given channel, created between oldest_ts and latest_ts Required scopes -- user: `admin.analytics:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The specified channel was not found. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `restricted_action` -- The token does not have permission to access this resource, or the channel is not public and the organization has disabled private channel analytics. - `not_an_enterprise` -- The user token does not belong to an enterprise. - `restricted_plan_level` -- The enterprise plan level does not have access to this feature. - `rate_limited` -- Too many requests in a short amount of time. See https://docs.slack.dev/reference/methods/admin.analytics.messages.activity */
|
|
2217
2431
|
export declare const analyticsMessagesActivity: API.OperationMethod<AnalyticsMessagesActivityRequest, AnalyticsMessagesActivityResponse, AnalyticsMessagesActivityError, SlackOpContext>;
|
|
2218
2432
|
export type AnalyticsMessagesMetadataError = SlackOpError;
|
|
2219
|
-
/** Retrieves metadata for a list of messages from a given channel. Required scopes -- user: `admin.analytics:read` Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The specified channel was not found - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `not_an_enterprise` -- The user token does not belong to an enterprise. - `analytics_unavailable` -- We were unable to find analytics for you. - `admin_analytics_disabled` -- We're having issues returning your analytics. Please wait and try again. - `restricted_plan_level` -- This feature is not available for your current product plan. - `different_team_owns_message_metadata_for_channel` -- Message metadata must be accessed by an actor from the same team that owns the channel. This may be the org or a specific enterprise workspace. - `rate_limited` -- Too many requests in a short amount of time. See https://docs.slack.dev/reference/methods/admin.analytics.messages.metadata */
|
|
2433
|
+
/** Retrieves metadata for a list of messages from a given channel. Required scopes -- user: `admin.analytics:read` Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The specified channel was not found - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `not_an_enterprise` -- The user token does not belong to an enterprise. - `analytics_unavailable` -- We were unable to find analytics for you. - `admin_analytics_disabled` -- We're having issues returning your analytics. Please wait and try again. - `restricted_plan_level` -- This feature is not available for your current product plan. - `different_team_owns_message_metadata_for_channel` -- Message metadata must be accessed by an actor from the same team that owns the channel. This may be the org or a specific enterprise workspace. - `rate_limited` -- Too many requests in a short amount of time. - `restricted_action` -- The token does not have permission to access this resource, or the channel is not public and the organization has disabled private channel analytics. See https://docs.slack.dev/reference/methods/admin.analytics.messages.metadata */
|
|
2220
2434
|
export declare const analyticsMessagesMetadata: API.PaginatedOperationMethod<AnalyticsMessagesMetadataRequest, AnalyticsMessagesMetadataResponse, AnalyticsMessagesMetadataError, SlackOpContext, AnalyticsMessagesMetadataResponseMessagesItem>;
|
|
2221
2435
|
export type ApproveAppError = SlackOpError;
|
|
2222
|
-
/** Approve an app for installation on a workspace. Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` -- The app management app must be installed on the org. - `app_not_eligible_for_auto_install` -- The app does not have the required scope to be eligible for auto-install rule creation. - `app_restricted_org_wide` -- The app is already restricted org wide. - `auto_install_rule_creation_failed` -- The app was approved successfully, but the auto-install AAA rule could not be created. Please create the rule manually. - `custom_integration_not_allowed_at_enterprise` -- Returned when the install request is for custom integration app. - `feature_not_enabled` -- Returned when the Admin APIs feature is not enabled for this team. - `invalid_request_id` -- The `request_id` passed is invalid. - `invalid_app_id` -- The `app_id` passed is invalid. - `org_resolution_required` -- The `team_id` is in an Enterprise org while `app_id` is certified. - `invalid_scopes` -- Some of the provided scopes do not exist. - `not_allowed_to_create_automation_rule` -- The actor does not have permission to create AAA automation rules. The app was approved but the auto-install rule was not created. - `not_an_admin` -- This method is only accessible by org owners and admins. - `request_already_resolved` -- The app request has already been resolved. - `request_id_or_app_id_is_required` -- Must include a `request_id` or `app_id`. - `request_id_required_for_custom_integrations` -- A `request_id` is required for custom integrations. - `team_not_found` -- Returned when team id is not found. - `too_many_ids_provided` -- Please provide only `app_id` OR `request_id`. - `too_many_teams_provided` -- Please provide only `team_id` OR `enterprise_id`. See https://docs.slack.dev/reference/methods/admin.apps.approve */
|
|
2436
|
+
/** Approve an app for installation on a workspace. Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` -- The app management app must be installed on the org. - `app_not_eligible_for_auto_install` -- The app does not have the required scope to be eligible for auto-install rule creation. - `app_restricted_org_wide` -- The app is already restricted org wide. - `auto_install_rule_creation_failed` -- The app was approved successfully, but the auto-install AAA rule could not be created. Please create the rule manually. - `custom_integration_not_allowed_at_enterprise` -- Returned when the install request is for custom integration app. - `feature_not_enabled` -- Returned when the Admin APIs feature is not enabled for this team. - `invalid_request_id` -- The `request_id` passed is invalid. - `invalid_app_id` -- The `app_id` passed is invalid. - `org_resolution_required` -- The `team_id` is in an Enterprise org while `app_id` is certified. - `invalid_scopes` -- Some of the provided scopes do not exist. - `not_allowed_to_create_automation_rule` -- The actor does not have permission to create AAA automation rules. The app was approved but the auto-install rule was not created. - `not_an_admin` -- This method is only accessible by org owners and admins. - `request_already_resolved` -- The app request has already been resolved. - `request_id_or_app_id_is_required` -- Must include a `request_id` or `app_id`. - `request_id_required_for_custom_integrations` -- A `request_id` is required for custom integrations. - `team_not_found` -- Returned when team id is not found. - `too_many_ids_provided` -- Please provide only `app_id` OR `request_id`. - `too_many_teams_provided` -- Please provide only `team_id` OR `enterprise_id`. - `invalid_approved_acl` -- The `approved_acl` passed is invalid, or can't be applied to this request. The app was not approved. See https://docs.slack.dev/reference/methods/admin.apps.approve */
|
|
2223
2437
|
export declare const approveApp: API.OperationMethod<ApproveAppRequest, ApproveAppResponse, ApproveAppError, SlackOpContext>;
|
|
2224
2438
|
export type ApproveInviteRequestError = SlackOpError;
|
|
2225
2439
|
/** Approve a workspace invite request. Required scopes -- user: `admin.invites:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_processed` -- The `invite_request_id` passed has already been approved or denied. - `failed_to_send_invite` -- The actual invite (separate from approval) failed to process. This may happen because the user is disabled, already in the team, etc. - `feature_not_enabled` -- The Invite Request Admin APIs are not enabled for this team. - `invalid_request` -- The `invite_request_id` passed is invalid. - `missing_scope` -- This token doesn't have the scope required. - `not_an_admin` -- This token doesn't have admin privileges. - `team_not_found` -- The `team_id` specified wasn't found. See https://docs.slack.dev/reference/methods/admin.inviteRequests.approve */
|
|
@@ -2228,13 +2442,13 @@ export type AppsRestrictError = SlackOpError;
|
|
|
2228
2442
|
/** Restrict an app for installation on a workspace. Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_management_app_not_installed_on_org` -- The app management app must be installed on the org. - `custom_integration_not_allowed_at_enterprise` -- Returned when the install request is for custom integration app. - `feature_not_enabled` -- Returned when the Admin APIs feature is not enabled for this team - `invalid_request_id` -- The `request_id` passed is invalid. - `invalid_app_id` -- The `app_id` passed is invalid. - `invalid_scopes` -- Some of the provided scopes do not exist - `not_an_admin` -- This method is only accessible by org owners and admins - `request_already_resolved` -- The app request has already been resolved - `request_id_or_app_id_is_required` -- Must include a `request_id` or `app_id` - `request_id_required_for_custom_integrations` -- A `request_id` is required for custom integrations - `team_not_found` -- Returned when team id is not found. - `too_many_ids_provided` -- Please provide only `app_id` OR `request_id` - `too_many_teams_provided` -- Please provide only `team_id` OR `enterprise_id` See https://docs.slack.dev/reference/methods/admin.apps.restrict */
|
|
2229
2443
|
export declare const appsRestrict: API.OperationMethod<AppsRestrictRequest, AppsRestrictResponse, AppsRestrictError, SlackOpContext>;
|
|
2230
2444
|
export type ArchiveConversationError = SlackOpError;
|
|
2231
|
-
/** Archive a public or private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_archived` -- This channel has already been archived. - `cant_archive_general` -- You cannot archive the 'general' channel. - `channel_not_found` -- The value passed for `channel` was invalid. - `channel_type_not_supported` -- The value passed for `channel` was an MPDM, DM, or the 'general' channel. - `could_not_archive_channel` -- The provided channel could not be archived. - `default_org_wide_channel` -- The default org-wide channel cannot be archived. - `feature_not_enabled` -- The token provided does not have access to this method. - `restricted_action` -- A workspace preference prevents the authenticated user from archiving this channel. See https://docs.slack.dev/reference/methods/admin.conversations.archive */
|
|
2445
|
+
/** Archive a public or private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_archived` -- This channel has already been archived. - `cant_archive_general` -- You cannot archive the 'general' channel. - `channel_not_found` -- The value passed for `channel` was invalid, or the channel belongs to a workspace other than the token's workspace and isn't shared with it. - `channel_type_not_supported` -- The value passed for `channel` was an MPDM, DM, or the 'general' channel. - `could_not_archive_channel` -- The provided channel could not be archived. - `default_org_wide_channel` -- The default org-wide channel cannot be archived. - `feature_not_enabled` -- The token provided does not have access to this method. - `restricted_action` -- A workspace preference prevents the authenticated user from archiving this channel. - `target_team_not_on_org` -- The specified target_team is not part of the organization. See https://docs.slack.dev/reference/methods/admin.conversations.archive */
|
|
2232
2446
|
export declare const archiveConversation: API.OperationMethod<ArchiveConversationRequest, ArchiveConversationResponse, ArchiveConversationError, SlackOpContext>;
|
|
2233
2447
|
export type AssignEntitiesError = SlackOpError;
|
|
2234
2448
|
/** Assign entities to a particular authentication policy. Required scopes -- user: `admin.users:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` -- The token provided doesn't have permission to revoke a session. - `entity_not_found` -- At least one `entity_id` was not found. - `feature_not_enabled` -- This method is only available for Enterprise organizations. - `internal_error` -- There was an internal error processing this request--please retry. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `invalid_auth` -- The token doesn't have access to this endpoint. - `not_an_admin` -- This method is only accessible by Org Owners and Admins. - `over_max_entity_limit` -- The number of entities assigned to this policy has reached its upper limit. - `policy_not_found` -- The policy name doesn't match any of the existing org policies. - `ratelimited` -- The rate limit for this endpoint has been reached. - `unknown_method` -- This method is currently not available. See https://docs.slack.dev/reference/methods/admin.auth.policy.assignEntities */
|
|
2235
2449
|
export declare const assignEntities: API.OperationMethod<AssignEntitiesRequest, AssignEntitiesResponse, AssignEntitiesError, SlackOpContext>;
|
|
2236
2450
|
export type AssignUserError = SlackOpError;
|
|
2237
|
-
/** Add an Enterprise user to a workspace. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team - `invalid_role_for_user` -- The requested status is incompatible with the user's role on another workspace. - `invited_user_not_created` -- The invited user could not be created. - `invited_user_not_reactivated` -- The invited user could not be reactivated. - `invitor_cannot_see_channel` -- The invitor is not part of one or many channels that the user was requested to be added to - `not_an_admin` -- This method wasn't called by an admin. - `team_not_found` -- `team_id was not found. - `too_many_channels` -- The user was requested to be added to more channels than is allowed. - `user_already_team_member` -- The given user is already active on the given team. - `user_is_bot` -- The given user is a bot from an app. This api only works with humans. - `user_not_found` -- `user_id` was not found. - `user_cannot_be_added_to_workspace` -- The user can't be added to this workspace because of their account type or the workspace's configuration. See https://docs.slack.dev/reference/methods/admin.users.assign */
|
|
2451
|
+
/** Add an Enterprise user to a workspace. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team - `invalid_role_for_user` -- The requested status is incompatible with the user's role on another workspace. - `invited_user_not_created` -- The invited user could not be created. - `invited_user_not_reactivated` -- The invited user could not be reactivated. - `invitor_cannot_see_channel` -- The invitor is not part of one or many channels that the user was requested to be added to - `not_an_admin` -- This method wasn't called by an admin. - `team_not_found` -- `team_id was not found. - `too_many_channels` -- The user was requested to be added to more channels than is allowed. - `user_already_team_member` -- The given user is already active on the given team. - `user_is_bot` -- The given user is a bot from an app. This api only works with humans. - `user_not_found` -- `user_id` was not found. - `user_cannot_be_added_to_workspace` -- The user can't be added to this workspace because of their account type or the workspace's configuration. - `inviter_email_not_verified` -- The user is still invited, and the user whose token is calling this method has not verified the email address on their own account. They must verify it before adding an invited user to a workspace. See https://docs.slack.dev/reference/methods/admin.users.assign */
|
|
2238
2452
|
export declare const assignUser: API.OperationMethod<AssignUserRequest, AssignUserResponse, AssignUserError, SlackOpContext>;
|
|
2239
2453
|
export type BulkArchiveError = SlackOpError;
|
|
2240
2454
|
/** Archive public or private channels in bulk. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `action_already_in_progress` -- Another bulk action request is currently in progress - `internal_error` -- Something unexpected happened, try again in a little bit. Sorry for that! - `invalid_enterprise` -- Enterprise does not exist - `no_valid_channels` -- All input channels are invalid - `team_not_found` -- Team ID provided does not exist - `restricted_action` -- User does not have permission to perform this action See https://docs.slack.dev/reference/methods/admin.conversations.bulkArchive */
|
|
@@ -2260,6 +2474,9 @@ export declare const clearResolution: API.OperationMethod<ClearResolutionRequest
|
|
|
2260
2474
|
export type ClearSettingsError = SlackOpError;
|
|
2261
2475
|
/** Clear user-specific session settings--the session duration and what happens when the client closes--for a list of users. Required scopes -- user: `admin.users:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` -- The owner of this token isn't authorized to clear sessions. - `bots_not_allowed` -- Bot users may not have their settings cleared. - `feature_not_enabled` -- This method is only available to Enterprise customers. - `internal_error` -- There was an internal error processing this request--please retry. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `invalid_auth` -- The provided token doesn't have access to this endpoint. - `not_an_admin` -- The owner of this token isn't an Org Owner or Admin. - `unknown_method` -- This method is currently not available. - `user_not_found` -- There was an error finding a requested user. See https://docs.slack.dev/reference/methods/admin.users.session.clearSettings */
|
|
2262
2476
|
export declare const clearSettings: API.OperationMethod<ClearSettingsRequest, ClearSettingsResponse, ClearSettingsError, SlackOpContext>;
|
|
2477
|
+
export type ConversationsKickError = SlackOpError;
|
|
2478
|
+
/** Remove multiple users from a conversation. Admin version of conversations.kick with support for bulk user removal. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The value passed for `channel_id` was invalid. - `channel_type_not_supported` -- The provided `channel_id` is a DM, MPDM, or cannot be used with this method. - `external_channel_migrating` -- The channel is an externally shared channel that is currently being migrated and members can't be removed. - `failed_for_all_users` -- All users could not be removed from the channel. Check `failed_user_ids` for details. - `not_supported` -- This type of channel doesn't support removing members through this method. - `restricted_action` -- The authenticated user lacks channel management permissions for this channel type, or a team preference prevents them from removing members. - `too_many_users` -- Too many user IDs provided (maximum 100). - `permission_denied` -- The user does not have permission to remove members from the channel. See https://docs.slack.dev/reference/methods/admin.conversations.kick */
|
|
2479
|
+
export declare const conversationsKick: API.OperationMethod<ConversationsKickRequest, ConversationsKickResponse, ConversationsKickError, SlackOpContext>;
|
|
2263
2480
|
export type ConvertToPrivateError = SlackOpError;
|
|
2264
2481
|
/** Convert a public channel to a private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The value passed for `channel` was invalid. - `channel_type_not_supported` -- The value passed for `channel` was a DM, MPDM, private, or the 'general' channel. - `could_not_convert_channel` -- This channel could not be converted to private. - `default_org_wide_channel` -- The default org-wide channel cannot be converted to private. - `external_channel_migrating` -- This external channel is migrating, so it can't be converted to private. - `feature_not_enabled` -- The provided token doesn't have access to this method. - `method_not_supported_for_channel_type` -- This type of conversation cannot be used with this method. - `name_taken` -- A private channel cannot be created with the given name. - `restricted_action` -- A workspace preference prevents the authenticated user from creating private channels. See https://docs.slack.dev/reference/methods/admin.conversations.convertToPrivate */
|
|
2265
2482
|
export declare const convertToPrivate: API.OperationMethod<ConvertToPrivateRequest, ConvertToPrivateResponse, ConvertToPrivateError, SlackOpContext>;
|
|
@@ -2281,6 +2498,9 @@ export declare const createTeam: API.OperationMethod<CreateTeamRequest, CreateTe
|
|
|
2281
2498
|
export type CreateUsergroupError = SlackOpError;
|
|
2282
2499
|
/** Create a new organizational usergroup. This method is only available to Enterprise Grid organizations. Required scopes -- user: `admin.usergroups:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this workspace. - `invalid_auth` -- The workspace specified is not part of this organization. - `restricted_action` -- The calling user is not allowed to create usergroups. - `not_an_enterprise` -- The token passed in does not belong to an Enterprise organization. - `name_already_exists` -- The name specified is used by another usergroup and cannot be created. - `handle_already_exists` -- The handle specified is used by another usergroup or entity and cannot be created. See https://docs.slack.dev/reference/methods/admin.usergroups.create */
|
|
2283
2500
|
export declare const createUsergroup: API.OperationMethod<CreateUsergroupRequest, CreateUsergroupResponse, CreateUsergroupError, SlackOpContext>;
|
|
2501
|
+
export type DeactivateUserError = SlackOpError;
|
|
2502
|
+
/** Deactivate a user from an enterprise organization and all its workspaces. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- The caller does not have permission to perform this action. Must be an org admin or owner. - `user_not_found` -- The user was not found or does not belong to this enterprise. - `invalid_user` -- The user was not found or is not a valid target for deactivation. - `deactivation_failed` -- The deactivation operation failed. - `user_is_team_primary_owner` -- The user is a primary owner of one or more workspaces and cannot be deactivated. See https://docs.slack.dev/reference/methods/admin.users.deactivate */
|
|
2503
|
+
export declare const deactivateUser: API.OperationMethod<DeactivateUserRequest, DeactivateUserResponse, DeactivateUserError, SlackOpContext>;
|
|
2284
2504
|
export type DeleteBarrierError = SlackOpError;
|
|
2285
2505
|
/** Delete an existing Information Barrier Required scopes -- user: `admin.barriers:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `barrier_not_found` -- The barrier you're trying to delete cannot be found. - `feature_not_enabled` -- The information barrier feature is not enabled, please reach out to your CSM. - `not_an_admin` -- The token provided is not associated with an org admin. See https://docs.slack.dev/reference/methods/admin.barriers.delete */
|
|
2286
2506
|
export declare const deleteBarrier: API.OperationMethod<DeleteBarrierRequest, DeleteBarrierResponse, DeleteBarrierError, SlackOpContext>;
|
|
@@ -2288,7 +2508,7 @@ export type DeleteConversationError = SlackOpError;
|
|
|
2288
2508
|
/** Delete a public or private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The value passed for `channel_id` was invalid. - `channel_type_not_supported` -- The provided `channel_id` was a DM, MPDM, or the 'general' channel. - `could_not_delete_channel` -- The channel could not be deleted. - `default_org_wide_channel` -- The default org-wide channel cannot be deleted. - `feature_not_enabled` -- The token provided doesn't have access to this method. - `missing_scope` -- The provided token hasn't obtained the necessary scopes to use this method. - `not_an_admin` -- The token provided is not associated with an Org Owner or Admin. - `restricted_action` -- A workspace preference prevents the authenticated user from deleting this channel. See https://docs.slack.dev/reference/methods/admin.conversations.delete */
|
|
2289
2509
|
export declare const deleteConversation: API.OperationMethod<DeleteConversationRequest, DeleteConversationResponse, DeleteConversationError, SlackOpContext>;
|
|
2290
2510
|
export type DisconnectSharedError = SlackOpError;
|
|
2291
|
-
/** Disconnect a connected channel from one or more workspaces. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_kick_home_team` -- The originating workspace cannot be kicked from the channel. - `cannot_kick_team` -- Only the originating workspace for a connected channel may remove other workspaces from the channel. - `channel_not_found` -- The value passed for `channel_id` was invalid. - `channel_type_not_supported` -- The value passed for `channel_id` was an MPDM, DM, or the 'general' channel. - `feature_not_enabled` -- The token provided does not have access to this method. - `leaving_team_not_in_channel` -- The workspace being removed is not connected to the channel. - `leaving_team_required` -- There are more than two teams in the channel--you must supplied a `leaving_team_id` parameter. - `missing_scope` -- The provided token does not have the required scopes to use this method. - `no_teams_to_disconnect` -- This channel is not shared, so there are no workspaces to disconnect. - `not_an_admin` -- The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` -- This endpoint can only be called for an Enterprise organization. - `not_supported` -- The passed `channel_id` was a DM, MPDM, or the 'general' channel. - `restricted_action` -- A workspace preference prevents the authenticated user from disconnecting a channel. - `team_not_found` -- At least one of the supplied `leaving_team_ids` are invalid. See https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared */
|
|
2511
|
+
/** Disconnect a connected channel from one or more workspaces. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_kick_home_team` -- The originating workspace cannot be kicked from the channel. - `cannot_kick_team` -- Only the originating workspace for a connected channel may remove other workspaces from the channel. - `channel_not_found` -- The value passed for `channel_id` was invalid. - `channel_type_not_supported` -- The value passed for `channel_id` was an MPDM, DM, or the 'general' channel. - `feature_not_enabled` -- The token provided does not have access to this method. - `leaving_team_not_in_channel` -- The workspace being removed is not connected to the channel. - `leaving_team_required` -- There are more than two teams in the channel--you must supplied a `leaving_team_id` parameter. - `missing_scope` -- The provided token does not have the required scopes to use this method. - `no_teams_to_disconnect` -- This channel is not shared, so there are no workspaces to disconnect. - `not_an_admin` -- The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` -- This endpoint can only be called for an Enterprise organization. - `not_supported` -- The passed `channel_id` was a DM, MPDM, or the 'general' channel. - `restricted_action` -- A workspace preference prevents the authenticated user from disconnecting a channel. - `team_not_found` -- At least one of the supplied `leaving_team_ids` are invalid. - `external_channel_migrating` -- The channel is an externally shared channel that is currently being migrated. - `default_org_wide_channel` -- The channel is a default org-wide channel, which isn't supported by this method. See https://docs.slack.dev/reference/methods/admin.conversations.disconnectShared */
|
|
2292
2512
|
export declare const disconnectShared: API.OperationMethod<DisconnectSharedRequest, DisconnectSharedResponse, DisconnectSharedError, SlackOpContext>;
|
|
2293
2513
|
export type ExportUsersUnsupportedVersionError = SlackOpError;
|
|
2294
2514
|
/** Ask Slackbot to send you an export listing all workspace members using unsupported software, presented as a zipped CSV file. Required scopes -- user: `admin.users:read` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `could_not_export` -- For some reason, the export could not be started - `invalid_auth` -- Invalid authentication token provided. - `invalid_team_id` -- The team ID passed is invalid - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `not_authed` -- No authentication token provided. - `not_an_enterprise` -- Only enterprises are supported. See https://docs.slack.dev/reference/methods/admin.users.unsupportedVersions.export */
|
|
@@ -2297,10 +2517,10 @@ export type FetchUsergroupError = SlackOpError;
|
|
|
2297
2517
|
/** Fetch an organizational usergroup. Required scopes -- user: `admin.usergroups:read` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this workspace. - `invalid_auth` -- The workspace specified is not part of this organization. - `restricted_action` -- The calling user is not allowed to view the specified usergroup. - `not_an_enterprise` -- The token passed in does not belong to an Enterprise organization. - `invalid_usergroup` -- A usergroup with the specified ID does not exist. See https://docs.slack.dev/reference/methods/admin.usergroups.fetch */
|
|
2298
2518
|
export declare const fetchUsergroup: API.OperationMethod<FetchUsergroupRequest, FetchUsergroupResponse, FetchUsergroupError, SlackOpContext>;
|
|
2299
2519
|
export type GetConversationPrefsError = SlackOpError;
|
|
2300
|
-
/** Get conversation preferences for a public or private channel. Required scopes -- user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The value passed for `channel_id` was invalid. - `channel_type_not_supported` -- The provided `channel_id` was a DM, MPDM, or the 'general' channel. - `could_not_get_conversation_prefs` -- There was an error getting the conversation preferences for this channel. - `feature_not_enabled` -- The token provided does not have access to this method. - `missing_scope` -- The token provided doesn't have the required scopes. - `not_an_admin` -- The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` -- This endpoint can only be called by an Enterprise organization. - `restricted_action` -- A workspace preference prevents the authenticated user from listing preferences. See https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs */
|
|
2520
|
+
/** Get conversation preferences for a public or private channel. Required scopes -- user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The value passed for `channel_id` was invalid, or the channel belongs to a workspace other than the token's workspace and isn't shared with it. - `channel_type_not_supported` -- The provided `channel_id` was a DM, MPDM, or the 'general' channel. - `could_not_get_conversation_prefs` -- There was an error getting the conversation preferences for this channel. - `feature_not_enabled` -- The token provided does not have access to this method. - `missing_scope` -- The token provided doesn't have the required scopes. - `not_an_admin` -- The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` -- This endpoint can only be called by an Enterprise organization. - `restricted_action` -- A workspace preference prevents the authenticated user from listing preferences. - `target_team_not_on_org` -- The specified target_team is not part of the organization. See https://docs.slack.dev/reference/methods/admin.conversations.getConversationPrefs */
|
|
2301
2521
|
export declare const getConversationPrefs: API.OperationMethod<GetConversationPrefsRequest, GetConversationPrefsResponse, GetConversationPrefsError, SlackOpContext>;
|
|
2302
2522
|
export type GetCustomRetentionError = SlackOpError;
|
|
2303
|
-
/** This API endpoint can be used by any admin to get a conversation's retention policy. Required scopes -- user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value given for `channel_id` was invalid. - `channel_type_not_supported` -- Value given for `channel_id` was a #general channel. - `could_not_get_retention` -- The retention policy could not be retrieved. - `default_org_wide_channel` -- The channel given is a default org-wide channel. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `not_an_admin` -- The token provided is not associated with an org admin. - `restricted_action` -- A team preference prevents the authenticated user from modifying the retention policy of this channel. - `retention_override_not_allowed` -- The current org retention policy disallows modifying the retention policy of this channel. See https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention */
|
|
2523
|
+
/** This API endpoint can be used by any admin to get a conversation's retention policy. Required scopes -- user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value given for `channel_id` was invalid. - `channel_type_not_supported` -- Value given for `channel_id` was a #general channel. - `could_not_get_retention` -- The retention policy could not be retrieved. - `default_org_wide_channel` -- The channel given is a default org-wide channel. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `not_an_admin` -- The token provided is not associated with an org admin. - `restricted_action` -- A team preference prevents the authenticated user from modifying the retention policy of this channel. - `retention_override_not_allowed` -- The current org retention policy disallows modifying the retention policy of this channel. - `not_supported` -- This type of channel isn't supported by this method. - `external_channel_migrating` -- The channel is an externally shared channel that is currently being migrated. See https://docs.slack.dev/reference/methods/admin.conversations.getCustomRetention */
|
|
2304
2524
|
export declare const getCustomRetention: API.OperationMethod<GetCustomRetentionRequest, GetCustomRetentionResponse, GetCustomRetentionError, SlackOpContext>;
|
|
2305
2525
|
export type GetEntitiesError = SlackOpError;
|
|
2306
2526
|
/** Fetch all the entities assigned to a particular authentication policy by name. Required scopes -- user: `admin.users:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- This method is only available for Enterprise organizations. - `internal_error` -- There was an internal error processing this request--please retry. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `invalid_auth` -- The token doesn't have access to this endpoint. - `invalid_cursor` -- The cursor passed was invalid. - `not_an_admin` -- This method is only accessible by Org Owners and Admins. - `policy_not_found` -- The `policy_name` could not be found. - `ratelimited` -- The rate limit for this endpoint has been reached. See https://docs.slack.dev/reference/methods/admin.auth.policy.getEntities */
|
|
@@ -2318,7 +2538,7 @@ export type GetSettingsError = SlackOpError;
|
|
|
2318
2538
|
/** Get user-specific session settings--the session duration and what happens when the client closes--given a list of users. Required scopes -- user: `admin.users:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` -- The owner of this token isn't authorized to list sessions. - `bots_not_allowed` -- Bot sessions are not listed by this method. - `feature_not_enabled` -- This method is only available to Enterprise customers. - `internal_error` -- There was an internal error processing this request--please retry. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `invalid_auth` -- The provided token doesn't have access to this endpoint. - `restricted_action` -- The owner of this token isn't an Org Owner or Admin. - `not_an_admin` -- The owner of this token isn't an Org Owner or Admin. - `unknown_method` -- This method is currently not available. - `user_not_found` -- There was an error finding the requested user. See https://docs.slack.dev/reference/methods/admin.users.session.getSettings */
|
|
2319
2539
|
export declare const getSettings: API.OperationMethod<GetSettingsRequest, GetSettingsResponse, GetSettingsError, SlackOpContext>;
|
|
2320
2540
|
export type GetTeamsError = SlackOpError;
|
|
2321
|
-
/** Get all the workspaces a given public or private channel is connected to within this Enterprise org. Required scopes -- user: `admin.conversations:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The channel wasn't found or isn't connected to multiple workspaces. - `channel_type_not_supported` -- The `channel_id` provided was a DM, MPDM, or the 'general' channel. - `could_not_get_teams` -- Could not fetch the workspaces that the channel is shared with in this organization. - `external_channel_migrating` -- The channel is actively being migrated - `feature_not_enabled` -- The token provided doesn't have access to this method. - `invalid_cursor` -- The provided cursor wasn't valid. - `invalid_limit` -- The value passed for `limit` wasn't valid. - `restricted_action` -- A workspace preference prevents the authenticated user from listing the workspaces connected to a channel. - `unsupported_team_type` -- This endpoint can only called by Enterprise organizations. See https://docs.slack.dev/reference/methods/admin.conversations.getTeams */
|
|
2541
|
+
/** Get all the workspaces a given public or private channel is connected to within this Enterprise org. Required scopes -- user: `admin.conversations:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- The channel wasn't found or isn't connected to multiple workspaces. - `channel_type_not_supported` -- The `channel_id` provided was a DM, MPDM, or the 'general' channel. - `could_not_get_teams` -- Could not fetch the workspaces that the channel is shared with in this organization. - `external_channel_migrating` -- The channel is actively being migrated - `feature_not_enabled` -- The token provided doesn't have access to this method. - `invalid_cursor` -- The provided cursor wasn't valid. - `invalid_limit` -- The value passed for `limit` wasn't valid. - `restricted_action` -- A workspace preference prevents the authenticated user from listing the workspaces connected to a channel. - `unsupported_team_type` -- This endpoint can only called by Enterprise organizations. - `target_team_not_on_org` -- The specified target_team is not part of the organization. - `not_supported` -- This type of channel isn't supported by this method. - `default_org_wide_channel` -- The channel is a default org-wide channel, which isn't supported by this method. See https://docs.slack.dev/reference/methods/admin.conversations.getTeams */
|
|
2322
2542
|
export declare const getTeams: API.OperationMethod<GetTeamsRequest, GetTeamsResponse, GetTeamsError, SlackOpContext>;
|
|
2323
2543
|
export type InvalidateUsersSessionError = SlackOpError;
|
|
2324
2544
|
/** Revoke a single session for a user. The user will be forced to login to Slack. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` -- The token provided doesn't have permission to revoke a session. - `cannot_invalidate_primary_owner` -- Only the primary owner of an organization can invalidate a primary owner's sessions. - `feature_not_enabled` -- The token provided can't call this method. - `invalid_auth` -- The provided token doesn't have access to this endpoint. - `not_an_admin` -- This method must be called by an Org Owner or Admin. - `session_invalidation_failed` -- There was an error invalidating the session. - `session_not_found` -- The requested session wasn't found. - `unknown_method` -- This method is currently not available. - `user_not_found` -- The requested user wasn't found. See https://docs.slack.dev/reference/methods/admin.users.session.invalidate */
|
|
@@ -2330,7 +2550,7 @@ export type InviteRequestsDenyError = SlackOpError;
|
|
|
2330
2550
|
/** Deny a workspace invite request. Required scopes -- user: `admin.invites:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_processed` -- The `invite_request_id` passed has already been approved or denied. - `feature_not_enabled` -- The Invite Request Admin APIs feature is not enabled - `invalid_request` -- The `invite_request_id` passed is invalid. - `missing_scope` -- This token doesn't have the scope required. - `not_an_admin` -- This token doesn't have admin privileges. - `team_not_found` -- The `team_id` specified wasn't found. See https://docs.slack.dev/reference/methods/admin.inviteRequests.deny */
|
|
2331
2551
|
export declare const inviteRequestsDeny: API.OperationMethod<InviteRequestsDenyRequest, InviteRequestsDenyResponse, InviteRequestsDenyError, SlackOpContext>;
|
|
2332
2552
|
export type InviteUserError = SlackOpError;
|
|
2333
|
-
/** Invite a user to a workspace. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_in_team` -- The user is already on the team. - `already_in_team_invited_user` -- The user has already been invited to the team. - `failed_looking_up_user` -- We couldn't find the requested user. - `failed_to_send_invite` -- The invite failed to send. - `failed_to_validate_caller` -- The token calling this method doesn't have permission to invite a user. - `failed_to_validate_channels` -- `channel_ids` was invalid. - `failed_to_validate_custom_message` -- `extra_message` was invalid. - `failed_to_validate_expiration` -- `expiration_ts` was invalid. - `failed_to_validate_team` -- The team calling this method was invalid. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_email` -- Email address was not valid. - `not_an_admin` -- The user token does not have admin privileges. - `team_not_found` -- `team_id` was not found. - `user_disabled` -- The user is disabled. See https://docs.slack.dev/reference/methods/admin.users.invite */
|
|
2553
|
+
/** Invite a user to a workspace. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_in_team` -- The user is already on the team. - `already_in_team_invited_user` -- The user has already been invited to the team. - `failed_looking_up_user` -- We couldn't find the requested user. - `failed_to_send_invite` -- The invite failed to send. - `failed_to_validate_caller` -- The token calling this method doesn't have permission to invite a user. - `failed_to_validate_channels` -- `channel_ids` was invalid. - `failed_to_validate_custom_message` -- `extra_message` was invalid. - `failed_to_validate_expiration` -- `expiration_ts` was invalid. - `failed_to_validate_team` -- The team calling this method was invalid. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_email` -- Email address was not valid. - `not_an_admin` -- The user token does not have admin privileges. - `team_not_found` -- `team_id` was not found. - `user_disabled` -- The user is disabled. - `inviter_email_not_verified` -- The user whose token is calling this method has not verified the email address on their own account. They must verify it before they can send invites, since the invite email presents that address as theirs. See https://docs.slack.dev/reference/methods/admin.users.invite */
|
|
2334
2554
|
export declare const inviteUser: API.OperationMethod<InviteUserRequest, InviteUserResponse, InviteUserError, SlackOpContext>;
|
|
2335
2555
|
export type LinkObjectsError = SlackOpError;
|
|
2336
2556
|
/** Link a Salesforce record to a channel Required scopes -- user: `admin.conversations:manage_objects` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_already_exists` -- Object is linked to a different channel. - `channel_conversion_incomplete` -- An active channel conversion is preventing linking. - `channel_is_archived` -- Channel is archived. - `channel_not_found` -- Value passed for `channel` is invalid. - `channel_not_org_wide_shared` -- Channel is not Org-wide shared. - `channel_shared_with_nonapproved_team` -- Channel is shared with a non-approved external team. - `config_not_found` -- Missing record configuration. - `invalid_channel_type` -- Channel type cannot be linked. - `name_taken` -- A channel cannot be created with the given name. - `not_allowed_for_grid_workspace` -- Channel type is not allowed for this Enterprise org workspace. - `restricted_action` -- User does not have access to perform this action. - `record_channel_already_exists` -- Record is linked to a different channel. - `record_channel_cannot_be_externally_shared` -- Channel cannot be linked because it is externally shared. - `record_not_found` -- Value passed for `record_id` is invalid. See https://docs.slack.dev/reference/methods/admin.conversations.linkObjects */
|
|
@@ -2345,7 +2565,7 @@ export type ListAppsMcpServersError = SlackOpError;
|
|
|
2345
2565
|
/** List third-party app MCP servers approved for an organization, derived from the org's MCP server allowlist. Entries reflect allowlist state, not install/scope liveness: servers of apps that are uninstalled (but not deleted) are still listed. Required scopes -- user: `admin.apps:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- User does not have permission to perform this action. - `invalid_auth` -- Invalid authorization token - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `internal_error` -- Internal error - `feature_not_enabled` -- The MCP server admin API feature is not enabled for this team. See https://docs.slack.dev/reference/methods/admin.apps.mcp.servers.list */
|
|
2346
2566
|
export declare const listAppsMcpServers: API.PaginatedOperationMethod<ListAppsMcpServersRequest, ListAppsMcpServersResponse, ListAppsMcpServersError, SlackOpContext, ListAppsMcpServersResponseServersItem>;
|
|
2347
2567
|
export type ListAppsMcpServersPermissionsError = SlackOpError;
|
|
2348
|
-
/** List MCP servers for an app with their access control permissions Required scopes -- user: `admin.apps:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- User does not have permission to perform this action. - `invalid_auth` -- Invalid authorization token - `app_not_found` -- This app does not exist. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `
|
|
2568
|
+
/** List MCP servers for an app with their access control permissions Required scopes -- user: `admin.apps:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- User does not have permission to perform this action. - `invalid_auth` -- Invalid authorization token - `app_not_found` -- This app does not exist. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `internal_error` -- An internal error occurred while resolving the app's approved domains or ACLs. Retry the request. See https://docs.slack.dev/reference/methods/admin.apps.mcp.servers.permissions.list */
|
|
2349
2569
|
export declare const listAppsMcpServersPermissions: API.OperationMethod<ListAppsMcpServersPermissionsRequest, ListAppsMcpServersPermissionsResponse, ListAppsMcpServersPermissionsError, SlackOpContext>;
|
|
2350
2570
|
export type ListAppsPermissionsError = SlackOpError;
|
|
2351
2571
|
/** Returns the permission type of an app and if applicable, includes the entities that have been granted access Required scopes -- user: `admin.apps:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- User does not have permission to perform this action. - `invalid_auth` -- Invalid authorization token - `access_denied` -- This actor does not have access to the permissions on this resource. - `app_not_found` -- This app does not exist. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `invalid_permission_type` -- The ACL has an invalid permission type. See https://docs.slack.dev/reference/methods/admin.apps.permissions.list */
|
|
@@ -2386,6 +2606,9 @@ export declare const listInviteRequestsDenied: API.PaginatedOperationMethod<List
|
|
|
2386
2606
|
export type ListOriginalConnectedChannelInfoError = SlackOpError;
|
|
2387
2607
|
/** List all disconnected channels--i.e., channels that were once connected to other workspaces and then disconnected--and the corresponding original channel IDs for key revocation with EKM. Required scopes -- user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` -- Invalid cursor. - `invalid_limit` -- The value passed for `limit` was not valid. - `not_an_admin` -- This method is only accessible by Org owners and Admins. - `not_enabled` -- The API endpoint is not enabled for your team. - `restricted_action` -- The caller of this API is not allowed to perform this operation. - `unsupported_arguments` -- The provided method arguments are not supported. See https://docs.slack.dev/reference/methods/admin.conversations.ekm.listOriginalConnectedChannelInfo */
|
|
2388
2608
|
export declare const listOriginalConnectedChannelInfo: API.PaginatedOperationMethod<ListOriginalConnectedChannelInfoRequest, ListOriginalConnectedChannelInfoResponse, ListOriginalConnectedChannelInfoError, SlackOpContext, ListOriginalConnectedChannelInfoResponseChannelsItem>;
|
|
2609
|
+
export type ListSlackbotSkillsError = SlackOpError;
|
|
2610
|
+
/** Lists metadata for skills owned by the organization, including invite-only skills. Required scopes -- user: `admin.skills:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` -- The cursor is malformed or belongs to different filters, sorting, user, or organization. - `invalid_category` -- The category isn't one of the supported skill categories. - `feature_not_enabled` -- The Skills API isn't enabled for this organization or workspace. - `restricted_action` -- The caller must be an org admin or owner with permission to manage skills. - `internal_error` -- A lookup failed, so the page couldn't be built completely. Retry the request with the same cursor. See https://docs.slack.dev/reference/methods/admin.slackbot.skills.list */
|
|
2611
|
+
export declare const listSlackbotSkills: API.PaginatedOperationMethod<ListSlackbotSkillsRequest, ListSlackbotSkillsResponse, ListSlackbotSkillsError, SlackOpContext, ListSlackbotSkillsResponseSkillsItem>;
|
|
2389
2612
|
export type ListTeamsError = SlackOpError;
|
|
2390
2613
|
/** List all teams in an Enterprise organization Required scopes -- user: `admin.teams:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_cursor` -- Invalid cursor. - `invalid_limit` -- Value passed for `limit` was not valid. - `not_an_admin` -- This method is only accessible by org owners and admins. See https://docs.slack.dev/reference/methods/admin.teams.list */
|
|
2391
2614
|
export declare const listTeams: API.PaginatedOperationMethod<ListTeamsRequest, ListTeamsResponse, ListTeamsError, SlackOpContext, ListTeamsResponseTeamsItem>;
|
|
@@ -2416,8 +2639,14 @@ export declare const lookupWorkflowsPermissions: API.OperationMethod<LookupWorkf
|
|
|
2416
2639
|
export type LookupWorkflowsTriggersTypesPermissionsError = SlackOpError;
|
|
2417
2640
|
/** List the permissions for using each trigger type. Required scopes -- user: `client` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- This actor does not have access to view the permissions on this resource - `trigger_type_id_not_found` -- The given trigger type ID(s) do not map to valid trigger types See https://docs.slack.dev/reference/methods/admin.workflows.triggers.types.permissions.lookup */
|
|
2418
2641
|
export declare const lookupWorkflowsTriggersTypesPermissions: API.OperationMethod<LookupWorkflowsTriggersTypesPermissionsRequest, LookupWorkflowsTriggersTypesPermissionsResponse, LookupWorkflowsTriggersTypesPermissionsError, SlackOpContext>;
|
|
2642
|
+
export type PauseUsersAccessError = SlackOpError;
|
|
2643
|
+
/** Pause access across the organization for up to 1,000 frontline members. Success means the request was queued, not that all updates have completed. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- Only organization admins and owners can perform this action. - `feature_not_enabled` -- Frontline access management is not enabled for this organization. - `failed_job_enqueue` -- The access change could not be queued. Retry the request. - `failed_for_all_users` -- No valid users were found. Nothing was queued. invalid_users lists the rejected IDs and reasons. - `failed_for_some_users` -- Valid users were queued, but some users were rejected. invalid_users lists the rejected IDs and reasons. Correct and retry only those IDs. See https://docs.slack.dev/reference/methods/admin.users.access.pause */
|
|
2644
|
+
export declare const pauseUsersAccess: API.OperationMethod<PauseUsersAccessRequest, PauseUsersAccessResponse, PauseUsersAccessError, SlackOpContext>;
|
|
2645
|
+
export type PublishSlackbotSkillError = SlackOpError;
|
|
2646
|
+
/** Publishes Slackbot skills to an organization's catalog. Required scopes -- user: `admin.skills:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Skills API is not enabled for this organization or workspace. - `restricted_action` -- The caller must be an org admin or owner with permission to manage skills, and must be able to edit and share any canvas that needs org-wide access. - `internal_error` -- The operation could not be completed. Retry the request. - `failed_for_some_skills` -- Some skills failed. `failed_skills` lists each distinct failed skill ID and its error: `skill_not_found`, `method_not_supported_for_skill_type`, `restricted_action`, or `internal_error`. Missing, deleted, non-skill, and other organizations' files all return `skill_not_found`. See https://docs.slack.dev/reference/methods/admin.slackbot.skills.publish */
|
|
2647
|
+
export declare const publishSlackbotSkill: API.OperationMethod<PublishSlackbotSkillRequest, PublishSlackbotSkillResponse, PublishSlackbotSkillError, SlackOpContext>;
|
|
2419
2648
|
export type RemoveAppsPermissionsError = SlackOpError;
|
|
2420
|
-
/** Revoke an entity's access to an app that has its permission type set to named_entities Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` -- Invalid authorization token - `access_denied` -- This actor does not have access to the permissions on this resource. - `named_entities_cannot_be_empty` -- There must be at least one valid named entity - `app_not_found` -- This app does not exist. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `invalid_permission_type` -- This app requires permission_type to be set as named_entities before removing users. - `too_many_named_entities` -- Too many named entities passed into the app permissions setting. - `app_acl_not_found` -- This app does not have an ACL. - `internal_error` -- Internal error - `user_not_found` -- Value passed for `user_ids` was invalid. - `invalid_channel_restriction_mode` -- Cannot remove channels when channel_restriction_mode is all_channels. - `channel_not_found` -- One or more channel IDs are not valid. - `failed_to_update_channels` -- An error occurred while updating the channel restriction list. - `restricted_action` -- User does not have permission to perform this action. See https://docs.slack.dev/reference/methods/admin.apps.permissions.remove */
|
|
2649
|
+
/** Revoke an entity's access to an app that has its permission type set to named_entities Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` -- Invalid authorization token - `access_denied` -- This actor does not have access to the permissions on this resource. - `named_entities_cannot_be_empty` -- There must be at least one valid named entity - `app_not_found` -- This app does not exist. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `invalid_permission_type` -- This app requires permission_type to be set as named_entities before removing users. - `too_many_named_entities` -- Too many named entities passed into the app permissions setting. - `app_acl_not_found` -- This app does not have an ACL. - `internal_error` -- Internal error - `user_not_found` -- Value passed for `user_ids` was invalid. - `invalid_channel_restriction_mode` -- Cannot remove channels when channel_restriction_mode is all_channels. - `channel_not_found` -- One or more channel IDs are not valid. - `failed_to_update_channels` -- An error occurred while updating the channel restriction list. - `restricted_action` -- User does not have permission to perform this action. - `app_acl_write_failed` -- A transient database error (e.g. a deadlock) prevented the permission change from being saved. No change was applied; retry the request. See https://docs.slack.dev/reference/methods/admin.apps.permissions.remove */
|
|
2421
2650
|
export declare const removeAppsPermissions: API.OperationMethod<RemoveAppsPermissionsRequest, RemoveAppsPermissionsResponse, RemoveAppsPermissionsError, SlackOpContext>;
|
|
2422
2651
|
export type RemoveAssignmentsError = SlackOpError;
|
|
2423
2652
|
/** Removes a set of users from a role for the given scopes and entities Required scopes -- user: `admin.roles:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_for_some_entities` -- At least one role scope ID was invalid - `failed_for_some_users` -- At least one user ID was invalid - `failed_for_some_users_and_entities` -- At least one role scope ID was invalid - `feature_not_enabled` -- This API is currently not enabled. - `invalid_actor` -- This API is only enabled for the Admins/Owners. - `invalid_role_id` -- The role type passed does not exist. - `no_valid_entities` -- None of the entities passed were valid. - `no_valid_users` -- None of the users passed were valid. - `too_many_entities` -- More than 10 role scopes were passed. - `too_many_users` -- More than 10 users were passed. - `cannot_modify_role_admin` -- The user does not have permission to modify the admin role. See https://docs.slack.dev/reference/methods/admin.roles.removeAssignments */
|
|
@@ -2426,7 +2655,7 @@ export type RemoveChannelsError = SlackOpError;
|
|
|
2426
2655
|
/** Remove one or more default channels from an org-level IDP group (user group). Required scopes -- user: `admin.usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- At least one of the provided channel IDs could not be found, or one of those channels has a type that is not supported. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this workspace. - `invalid_auth` -- The workspace specified is not part of this Enterprise organization. - `invalid_channels_limit` -- The number of channel IDs passed in is larger than 100. - `not_an_admin` -- The calling user cannot update the specified usergroup. - `not_an_enterprise` -- The token passed in does not belong to an Enterprise organization. - `usergroup_not_found` -- The IDP group provided was not found. - `internal_error` -- There was an internal error processing this request--please retry. See https://docs.slack.dev/reference/methods/admin.usergroups.removeChannels */
|
|
2427
2656
|
export declare const removeChannels: API.OperationMethod<RemoveChannelsRequest, RemoveChannelsResponse, RemoveChannelsError, SlackOpContext>;
|
|
2428
2657
|
export type RemoveCustomRetentionError = SlackOpError;
|
|
2429
|
-
/** This API endpoint can be used by any admin to remove a conversation's retention policy. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value given for `channel_id` was invalid. - `channel_type_not_supported` -- Value given for `channel_id` was a #general channel. - `could_not_remove_retention` -- The retention policy could not be removed. - `default_org_wide_channel` -- The channel given is a default org-wide channel. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `not_an_admin` -- The token provided is not associated with an admin. - `restricted_action` -- A team preference prevents the authenticated user from modifying the retention policy of this channel. - `retention_override_not_allowed` -- The current retention policy disallows modifying the retention policy of this channel. See https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention */
|
|
2658
|
+
/** This API endpoint can be used by any admin to remove a conversation's retention policy. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value given for `channel_id` was invalid. - `channel_type_not_supported` -- Value given for `channel_id` was a #general channel. - `could_not_remove_retention` -- The retention policy could not be removed. - `default_org_wide_channel` -- The channel given is a default org-wide channel. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `not_an_admin` -- The token provided is not associated with an admin. - `restricted_action` -- A team preference prevents the authenticated user from modifying the retention policy of this channel. - `retention_override_not_allowed` -- The current retention policy disallows modifying the retention policy of this channel. - `not_supported` -- This type of channel isn't supported by this method. - `external_channel_migrating` -- The channel is an externally shared channel that is currently being migrated. See https://docs.slack.dev/reference/methods/admin.conversations.removeCustomRetention */
|
|
2430
2659
|
export declare const removeCustomRetention: API.OperationMethod<RemoveCustomRetentionRequest, RemoveCustomRetentionResponse, RemoveCustomRetentionError, SlackOpContext>;
|
|
2431
2660
|
export type RemoveEmojiError = SlackOpError;
|
|
2432
2661
|
/** Remove an emoji across an Enterprise organization Required scopes -- user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `emoji_not_found` -- Value passed for `name` was invalid. - `failed_to_remove_emoji` -- Failed to remove the specified emoji. - `failure_removing_emoji` -- This emoji could not be removed. It might be part of the standard Unicode set or the default Slack package. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `not_an_admin` -- This method is only accessible by org owners and Admins. See https://docs.slack.dev/reference/methods/admin.emoji.remove */
|
|
@@ -2461,8 +2690,11 @@ export declare const resetBulk: API.OperationMethod<ResetBulkRequest, ResetBulkR
|
|
|
2461
2690
|
export type ResetUsersSessionError = SlackOpError;
|
|
2462
2691
|
/** Wipes all valid sessions on all devices for a given user Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_reset_bot` -- Cannot reset bot users - `cannot_reset_primary_owner` -- Only primary owner can reset primary owner's sessions - `feature_not_enabled` -- This method is not available for this product level - `internal_error` -- There was an internal error processing this request! Please try again. - `invalid_auth` -- The token doesn't have access to this endpoint - `not_an_admin` -- This method is only accessible by org/compliance team owners and admins - `unknown_method` -- This method is currently not available - `user_not_found` -- Error fetching user - `user_session_reset_failed` -- There was an error starting the session reset. Try again. See https://docs.slack.dev/reference/methods/admin.users.session.reset */
|
|
2463
2692
|
export declare const resetUsersSession: API.OperationMethod<ResetUsersSessionRequest, ResetUsersSessionResponse, ResetUsersSessionError, SlackOpContext>;
|
|
2693
|
+
export type ResumeUsersAccessError = SlackOpError;
|
|
2694
|
+
/** Resume access across the organization for up to 1,000 frontline members. Success means the request was queued, not that all updates have completed. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- Only organization admins and owners can perform this action. - `failed_job_enqueue` -- The access change could not be queued. Retry the request. - `failed_for_all_users` -- No valid users were found. Nothing was queued. invalid_users lists the rejected IDs and reasons. - `failed_for_some_users` -- Valid users were queued, but some users were rejected. invalid_users lists the rejected IDs and reasons. Correct and retry only those IDs. See https://docs.slack.dev/reference/methods/admin.users.access.resume */
|
|
2695
|
+
export declare const resumeUsersAccess: API.OperationMethod<ResumeUsersAccessRequest, ResumeUsersAccessResponse, ResumeUsersAccessError, SlackOpContext>;
|
|
2464
2696
|
export type SearchConversationError = SlackOpError;
|
|
2465
|
-
/** Search for public or private channels in an Enterprise organization. Required scopes -- user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `connected_team_passed_in_is_not_top_level_team` -- One of the orgs provided in the external connected teams filter is not a top level team. - `external_team_not_connected_to_this_org` -- One of the teams provided in the external connected teams filter is not connected to the org. - `feature_not_enabled` -- The token provided doesn't have access to this method. - `invalid_auth` -- The token provided does not belong to an Enterprise organization, or a specified workspace wasn't part of this Enterprise. - `invalid_cursor` -- The provided cursor is not valid, often due to not urlencoding query parameters. - `invalid_search_channel_type` -- An invalid `search_channel_types` arg was passed. Make sure there are no spaces between your args and that each is one of the enumerated options listed above. - `invalid_sort` -- The provided `sort` argument wasn't valid. - `invalid_sort_dir` -- The provided `sort_dir` argument wasn't valid. - `not_allowed` -- The authenticated user does not have the permission to call this method. - `not_an_admin` -- The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` -- This endpoint can only be called by an Enterprise organization. - `team_not_found` -- One of the workspaces provided in the list wasn't found. See https://docs.slack.dev/reference/methods/admin.conversations.search */
|
|
2697
|
+
/** Search for public or private channels in an Enterprise organization. Required scopes -- user: `admin.conversations:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `connected_team_passed_in_is_not_top_level_team` -- One of the orgs provided in the external connected teams filter is not a top level team. Pass the connected org's top-level ID. - `external_team_not_connected_to_this_org` -- One of the teams provided in the external connected teams filter is not connected to the org. - `feature_not_enabled` -- The token provided doesn't have access to this method. - `invalid_auth` -- The token provided does not belong to an Enterprise organization, or a specified workspace wasn't part of this Enterprise. - `invalid_cursor` -- The provided cursor is not valid, often due to not urlencoding query parameters. - `invalid_search_channel_type` -- An invalid `search_channel_types` arg was passed. Make sure there are no spaces between your args and that each is one of the enumerated options listed above. - `invalid_sort` -- The provided `sort` argument wasn't valid. - `invalid_sort_dir` -- The provided `sort_dir` argument wasn't valid. - `not_allowed` -- The authenticated user does not have the permission to call this method. - `not_an_admin` -- The token provided is not associated with an Org Admin or Owner. - `not_an_enterprise` -- This endpoint can only be called by an Enterprise organization. - `team_not_found` -- One of the workspaces provided in the list wasn't found. - `target_team_not_on_org` -- The specified target_team is not part of the organization. See https://docs.slack.dev/reference/methods/admin.conversations.search */
|
|
2466
2698
|
export declare const searchConversation: API.PaginatedOperationMethod<SearchConversationRequest, SearchConversationResponse, SearchConversationError, SlackOpContext, string>;
|
|
2467
2699
|
export type SearchWorkflowError = SlackOpError;
|
|
2468
2700
|
/** Search workflows within the team or enterprise Required scopes -- user: `admin.workflows:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` -- Value passed for `cursor` was not valid or is no longer valid. - `not_allowed` -- The user is not allowed to access this API method. See https://docs.slack.dev/reference/methods/admin.workflows.search */
|
|
@@ -2474,16 +2706,19 @@ export type SetAppsConfigError = SlackOpError;
|
|
|
2474
2706
|
/** Set the app config for a connector Required scopes -- user: `admin.apps:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` -- This actor does not have access to the permissions on this resource. - `no_domains_provided` -- At least one allowed domain must be specified if populating the argument - `too_many_domains_provided` -- Too many domains provided. Please provide 50 or less for each type of domain - `url_restriction_not_supported` -- URL restriction is not supported for this app. - `invalid_domains` -- At least one URL or email is invalid - `invalid_app` -- App is invalid - `invalid_workflow_auth_strategy` -- workflow auth strategy is invalid - `restricted_plan_level` -- The given parameter is not supported on this team. - `unknown_method` -- This method does not exist. See https://docs.slack.dev/reference/methods/admin.apps.config.set */
|
|
2475
2707
|
export declare const setAppsConfig: API.OperationMethod<SetAppsConfigRequest, SetAppsConfigResponse, SetAppsConfigError, SlackOpContext>;
|
|
2476
2708
|
export type SetAppsMcpServersPermissionsError = SlackOpError;
|
|
2477
|
-
/** Set the access control permission for who can use an MCP server Required scopes -- user: `admin.apps:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- User does not have permission to perform this action. - `invalid_auth` -- Invalid authorization token - `app_not_found` -- This app does not exist. - `server_not_found` -- The specified MCP server does not exist for this app. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `
|
|
2709
|
+
/** Set the access control permission for who can use an MCP server Required scopes -- user: `admin.apps:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` -- User does not have permission to perform this action. - `invalid_auth` -- Invalid authorization token - `app_not_found` -- This app does not exist. - `server_not_found` -- The specified MCP server does not exist for this app. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `invalid_permission_type` -- The permission_type value is not valid. - `named_entities_cannot_be_empty` -- Must pass at least one valid named entity when permission_type is named_entities or named_entities_exclude. - `no_valid_named_entities` -- None of the provided named entities were valid. - `user_not_found` -- One or more user IDs are not valid. - `usergroup_not_found` -- One or more usergroup IDs are not valid. - `server_acl_type_broader_than_app` -- The chosen permission type is broader than the app-level ACL allows. - `server_acl_entities_not_in_scope` -- One or more entities in the server ACL are not in scope of the app-level ACL. - `entities_not_supported` -- user_ids or usergroup_ids were provided, but the permission_type does not accept named entities. Only named_entities and named_entities_exclude do. See https://docs.slack.dev/reference/methods/admin.apps.mcp.servers.permissions.set */
|
|
2478
2710
|
export declare const setAppsMcpServersPermissions: API.OperationMethod<SetAppsMcpServersPermissionsRequest, SetAppsMcpServersPermissionsResponse, SetAppsMcpServersPermissionsError, SlackOpContext>;
|
|
2479
2711
|
export type SetAppsPermissionsError = SlackOpError;
|
|
2480
|
-
/** Set the permission type for who can access an app Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` -- Invalid authorization token - `access_denied` -- This actor does not have access to the permissions on this resource. - `invalid_permission_type` -- This app requires permission_type to be set as named_entities before adding users. - `named_entities_cannot_be_empty` -- Must pass at least one valid named entity. - `no_valid_named_entities` -- None of the provided named entities were valid - `too_many_named_entities` -- Too many named_entities passed into the app permissions setting. - `app_not_found` -- This app does not exist. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `user_not_found` -- This actor does not have access to at least one valid named entity. - `usergroup_not_found` -- The usergroup is not valid. - `invalid_channel_restriction_mode` -- The channel_restriction_mode value is not valid. - `channel_ids_required` -- channel_ids is required when channel_restriction_mode is specific_channels or all_channels_except. - `channel_not_found` -- One or more channel IDs are not valid. - `restricted_action` -- User does not have permission to perform this action. - `channel_restrictions_not_available` -- Channel restrictions are not available for this workspace. - `channel_restriction_requires_app_access` -- Channel access cannot be configured while the app is set to no_one, since the app can't be used in any channel. See https://docs.slack.dev/reference/methods/admin.apps.permissions.set */
|
|
2712
|
+
/** Set the permission type for who can access an app Required scopes -- user: `admin.apps:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` -- Invalid authorization token - `access_denied` -- This actor does not have access to the permissions on this resource. - `invalid_permission_type` -- This app requires permission_type to be set as named_entities before adding users. - `named_entities_cannot_be_empty` -- Must pass at least one valid named entity. - `no_valid_named_entities` -- None of the provided named entities were valid - `too_many_named_entities` -- Too many named_entities passed into the app permissions setting. - `app_not_found` -- This app does not exist. - `not_an_enterprise` -- This feature is only available on Enterprise Grid plans. - `user_not_found` -- This actor does not have access to at least one valid named entity. - `usergroup_not_found` -- The usergroup is not valid. - `invalid_channel_restriction_mode` -- The channel_restriction_mode value is not valid. - `channel_ids_required` -- channel_ids is required when channel_restriction_mode is specific_channels or all_channels_except. - `channel_not_found` -- One or more channel IDs are not valid, are not in this organization, or name a private channel that is not already set on the app and that the caller is neither a member of nor permitted to manage. - `restricted_action` -- User does not have permission to perform this action. - `channel_restrictions_not_available` -- Channel restrictions are not available for this workspace. - `channel_restriction_requires_app_access` -- Channel access cannot be configured while the app is set to no_one, since the app can't be used in any channel. - `app_acl_write_failed` -- A transient database error (e.g. a deadlock) prevented the permission change from being saved. No change was applied; retry the request. See https://docs.slack.dev/reference/methods/admin.apps.permissions.set */
|
|
2481
2713
|
export declare const setAppsPermissions: API.OperationMethod<SetAppsPermissionsRequest, SetAppsPermissionsResponse, SetAppsPermissionsError, SlackOpContext>;
|
|
2714
|
+
export type SetAutoEnabledError = SlackOpError;
|
|
2715
|
+
/** Sets who a Slackbot skill is automatically turned on for. Required scopes -- user: `admin.skills:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Skills API is not enabled for this organization or workspace. - `restricted_action` -- The caller must be an org admin or owner with permission to manage skills. - `internal_error` -- The operation could not be completed. Retry the request. - `skill_not_found` -- The skill is missing, deleted, no longer a skill, or outside this organization or workspace. - `method_not_supported_for_skill_type` -- Only canvas skills can be deployed. - `skill_not_visible_to_audience` -- Share the skill first. usergroup_ids lists the groups that cannot view it. - `audience_too_large` -- Validating this audience requires more than 1,000 member checks across the requested groups. Overlapping members count once per group. Select a smaller audience, or share the canvas org-wide if that access is intended, before retrying. - `named_entities_cannot_be_empty` -- Provide at least one user group for named_entities. - `usergroup_not_found` -- invalid_usergroup_ids lists missing, deleted or foreign user groups. - `too_many_named_entities` -- Provide at most 100 user groups. - `invalid_permission_type` -- Use everyone, named_entities or no_one. - `usergroup_ids_not_allowed` -- Only named_entities accepts usergroup_ids. See https://docs.slack.dev/reference/methods/admin.slackbot.skills.setAutoEnabled */
|
|
2716
|
+
export declare const setAutoEnabled: API.OperationMethod<SetAutoEnabledRequest, SetAutoEnabledResponse, SetAutoEnabledError, SlackOpContext>;
|
|
2482
2717
|
export type SetConversationPrefsError = SlackOpError;
|
|
2483
2718
|
/** Set the posting permissions for a public or private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_mention_sync_required` -- If setting channel mention restriction prefs, both mention prefs must be passed and they must be the same value. - `channel_not_found` -- Value passed for `channel` was invalid. - `channel_type_not_supported` -- Value given for `channel_id` was a #general channel. - `could_not_set_channel_pref` -- Setting the preference or permission failed. - `default_org_wide_channel` -- Returned when you try to modify a default org wide channel. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_value` -- Value passed for the preferences are invalid - `missing_scope` -- The calling token is not granted the necessary scopes to complete this operation. - `not_an_admin` -- The token provided is not associated with an org admin. - `restricted_action` -- A workspace preference prevents the authenticated user from archiving. See https://docs.slack.dev/reference/methods/admin.conversations.setConversationPrefs */
|
|
2484
2719
|
export declare const setConversationPrefs: API.OperationMethod<SetConversationPrefsRequest, SetConversationPrefsResponse, SetConversationPrefsError, SlackOpContext>;
|
|
2485
2720
|
export type SetCustomRetentionError = SlackOpError;
|
|
2486
|
-
/** This API endpoint can be used by any admin to set a conversation's retention policy. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value given for `channel_id` was invalid. - `channel_type_not_supported` -- Value given for `channel_id` was a group dm, direct message, or #general channel. - `could_not_set_retention` -- The retention policy could not be set. - `default_org_wide_channel` -- The channel given is a default org-wide channel. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_duration` -- Retention `duration_days` must be an integer greater than 0 days and less than 36500 days (100 years). - `not_an_admin` -- The token provided is not associated with an admin. - `restricted_action` -- A team preference prevents the authenticated user from modifying the retention policy of this channel. - `retention_override_not_allowed` -- The current retention policy disallows modifying the retention policy of this channel. See https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention */
|
|
2721
|
+
/** This API endpoint can be used by any admin to set a conversation's retention policy. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value given for `channel_id` was invalid. - `channel_type_not_supported` -- Value given for `channel_id` was a group dm, direct message, or #general channel. - `could_not_set_retention` -- The retention policy could not be set. - `default_org_wide_channel` -- The channel given is a default org-wide channel. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_duration` -- Retention `duration_days` must be an integer greater than 0 days and less than 36500 days (100 years). - `not_an_admin` -- The token provided is not associated with an admin. - `restricted_action` -- A team preference prevents the authenticated user from modifying the retention policy of this channel. - `retention_override_not_allowed` -- The current retention policy disallows modifying the retention policy of this channel. - `not_supported` -- This type of channel isn't supported by this method. - `external_channel_migrating` -- The channel is an externally shared channel that is currently being migrated. See https://docs.slack.dev/reference/methods/admin.conversations.setCustomRetention */
|
|
2487
2722
|
export declare const setCustomRetention: API.OperationMethod<SetCustomRetentionRequest, SetCustomRetentionResponse, SetCustomRetentionError, SlackOpContext>;
|
|
2488
2723
|
export type SetDefaultChannelsError = SlackOpError;
|
|
2489
2724
|
/** Set the default channels of a workspace. Required scopes -- user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_to_set_default_channels` -- We encountered an error while trying to set the default channel. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_auth` -- The given token is not authorized for the requested `team_id`. - `not_an_admin` -- This method is only accessible by org owners and admins. - `one_or_more_invalid_channels` -- One or more of the passed channel IDs was invalid. - `restricted_action` -- The actor does not have admin permissions for the team in context - `team_not_found` -- `team_id` was not found. See https://docs.slack.dev/reference/methods/admin.teams.settings.setDefaultChannels */
|
|
@@ -2495,7 +2730,7 @@ export type SetDiscoverabilityError = SlackOpError;
|
|
|
2495
2730
|
/** An API method that allows admins to set the discoverability of a given workspace Required scopes -- user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `discoverability_setting_invalid` -- The discovery setting must be set to one of `open`, `invite_only`, `closed`, or `unlisted`. - `failed_to_set_discoverability` -- There was an error setting the discoverability of this workspace. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `team_not_found` -- The `team_id` was not found. See https://docs.slack.dev/reference/methods/admin.teams.settings.setDiscoverability */
|
|
2496
2731
|
export declare const setDiscoverability: API.OperationMethod<SetDiscoverabilityRequest, SetDiscoverabilityResponse, SetDiscoverabilityError, SlackOpContext>;
|
|
2497
2732
|
export type SetExpirationError = SlackOpError;
|
|
2498
|
-
/** Set an expiration for a guest user Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `failed_looking_up_user` -- We couldn't find the requested user. - `failed_to_set_expiration` -- The expiration could not be set for the user. - `failed_to_validate_caller` -- The token calling this method doesn't have permission to invite a user. - `failed_to_validate_expiration` -- `expiration_ts` was invalid. - `failed_to_validate_team` -- The team calling this method was invalid. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_arguments` -- The passed arguments were invalid. - `invalid_auth` -- This action could not be authorized. - `team_id_required_for_enterprise` -- Team ID required. - `team_not_found` -- `team_id` was not found. - `user_is_already_deleted` -- The user has already been deleted and disabled. - `user_is_deactivated` -- User has been deactivated. - `user_is_not_a_guest` -- The passed user_id does not belong to a guest user. - `user_not_found` -- The user could not be found. See https://docs.slack.dev/reference/methods/admin.users.setExpiration */
|
|
2733
|
+
/** Set an expiration for a guest user Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_modify_external_guest` -- The user is an external huddle guest, whose expiration can't be changed. - `failed_looking_up_user` -- We couldn't find the requested user. - `failed_to_set_expiration` -- The expiration could not be set for the user. - `failed_to_validate_caller` -- The token calling this method doesn't have permission to invite a user. - `failed_to_validate_expiration` -- `expiration_ts` was invalid. - `failed_to_validate_team` -- The team calling this method was invalid. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_arguments` -- The passed arguments were invalid. - `invalid_auth` -- This action could not be authorized. - `team_id_required_for_enterprise` -- Team ID required. - `team_not_found` -- `team_id` was not found. - `user_is_already_deleted` -- The user has already been deleted and disabled. - `user_is_deactivated` -- User has been deactivated. - `user_is_not_a_guest` -- The passed user_id does not belong to a guest user. - `user_not_found` -- The user could not be found. See https://docs.slack.dev/reference/methods/admin.users.setExpiration */
|
|
2499
2734
|
export declare const setExpiration: API.OperationMethod<SetExpirationRequest, SetExpirationResponse, SetExpirationError, SlackOpContext>;
|
|
2500
2735
|
export type SetFunctionsPermissionsError = SlackOpError;
|
|
2501
2736
|
/** Set the visibility of a Slack function and define the users or workspaces if it is set to named_entities. Required scopes -- user: `admin.workflows:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `access_denied` -- This actor does not have access to the permissions on this resource. - `function_not_found` -- The referenced function does not exist. - `invalid_visibility` -- Invalid value for visibility. - `invalid_permission_type` -- Invalid value for permission type. - `invalid_permission` -- Invalid value for permission - `unknown_method` -- This method does not exist. - `invalid_setting` -- The `app_collaborators` setting is not allowed for apps not owned by your team/org. - `restricted_action` -- This actor does not have access to the permissions on this resource. See https://docs.slack.dev/reference/methods/admin.functions.permissions.set */
|
|
@@ -2510,29 +2745,32 @@ export type SetOwnerError = SlackOpError;
|
|
|
2510
2745
|
/** Set an existing regular user or admin to be a workspace or org owner. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_modify_primary_owner` -- The primary owner cannot be modified. - `failed_to_set_user_to_owner` -- The change to the user's role failed. - `failed_to_set_owner_on_workspaces` -- Failed to set the user as an owner on all workspaces. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_role_for_user` -- The user cannot be made into an owner. - `not_an_admin` -- This method can only be accessed by org owners and admins. - `not_supported` -- This is not a supported action. - `team_not_found` -- `team_id` was not found. - `user_must_be_in_workspace` -- This user must be a member of at least one workspace. - `user_not_found` -- The requested user was not found. See https://docs.slack.dev/reference/methods/admin.users.setOwner */
|
|
2511
2746
|
export declare const setOwner: API.OperationMethod<SetOwnerRequest, SetOwnerResponse, SetOwnerError, SlackOpContext>;
|
|
2512
2747
|
export type SetRegularError = SlackOpError;
|
|
2513
|
-
/** Set an existing guest user, admin user, or owner to be a regular user. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_set_org_admin_to_regular_at_workspace_level` -- Org admins cannot be set to regular at the workspace level. Change their user type at the org level instead. - `cannot_set_this_guest_to_regular_at_team_level` -- This guest cannot be set to regular because they are active on multiple workspaces. - `cannot_modify_primary_owner` -- The primary owner cannot be modified. - `failed_to_set_user_to_regular` -- Changing a user to a regular member failed. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_role_for_user` -- The user's current role does not allow this change. - `not_an_admin` -- This method can only be accessed by org owners and admins. - `team_not_found` -- `team_id` was not found. - `user_not_found` -- The requested user was not found. See https://docs.slack.dev/reference/methods/admin.users.setRegular */
|
|
2748
|
+
/** Set an existing guest user, admin user, or owner to be a regular user. Required scopes -- user: `admin.users:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_set_org_admin_to_regular_at_workspace_level` -- Org admins cannot be set to regular at the workspace level. Change their user type at the org level instead. - `cannot_set_this_guest_to_regular_at_team_level` -- This guest cannot be set to regular because they are active on multiple workspaces. - `cannot_modify_primary_owner` -- The primary owner cannot be modified. - `failed_to_set_user_to_regular` -- Changing a user to a regular member failed. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `invalid_role_for_user` -- The user's current role does not allow this change. - `not_an_admin` -- This method can only be accessed by org owners and admins. - `team_not_found` -- `team_id` was not found. - `user_not_found` -- The requested user was not found. - `inviter_email_not_verified` -- The target is an invited user, and the user whose token is calling this method has not verified the email address on their own account. They must verify it before changing an invited user's account type. See https://docs.slack.dev/reference/methods/admin.users.setRegular */
|
|
2514
2749
|
export declare const setRegular: API.OperationMethod<SetRegularRequest, SetRegularResponse, SetRegularError, SlackOpContext>;
|
|
2515
2750
|
export type SetSettingsError = SlackOpError;
|
|
2516
2751
|
/** Configure the user-level session settings--the session duration and what happens when the client closes--for one or more users. Required scopes -- user: `admin.users:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `admin_unauthorized` -- The token provided doesn't have permission to revoke a session. - `at_least_one_session_setting_required` -- At least one session setting is required. - `bots_not_allowed` -- Bot sessions are not listed by this method. - `feature_not_enabled` -- This method is only available for Enterprise organizations. - `internal_error` -- There was an internal error processing this request--please retry. - `invalid_arguments` -- Required arguments either were not provided or contain invalid values. - `invalid_auth` -- The token doesn't have access to this endpoint. - `not_an_admin` -- This method is only accessible by Org Owners and Admins - `ratelimited` -- The rate limit for this endpoint has been reached. - `unable_to_update_existing_sessions` -- The session settings could not be applied to users' existing sessions. - `unknown_method` -- This method is currently not available. - `user_not_found` -- At least one of the requested users doesn't exist. See https://docs.slack.dev/reference/methods/admin.users.session.setSettings */
|
|
2517
2752
|
export declare const setSettings: API.OperationMethod<SetSettingsRequest, SetSettingsResponse, SetSettingsError, SlackOpContext>;
|
|
2518
2753
|
export type SetTeamsError = SlackOpError;
|
|
2519
|
-
/** Set the workspaces in an Enterprise org that connect to a public or private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_add_legacy_disconnected_channel_to_workspaces` -- Cannot add legacy disconnected channel to workspaces - `cannot_move_local_channel` -- This API cannot be used to move a local channel from one workspace to another. - `channel_cannot_be_unshared` -- Channel cannot be unshared from this workspace. - `channel_not_found` -- The channel wasn't found or isn't shared to this workspace. - `channel_type_not_supported` -- The requested `channel_id` is not a supported type of channel. - `could_not_set_teams_for_channel` -- The requested `channel_id` has not been shared with the target workspace. - `default_org_wide_channel` -- Default org wide channel cannot be unshared from a workspace. - `externally_shared_or_disconnected_channel` -- The channel is or was externally shared. - `invalid_channel_id` -- `channel_id` was invalid. - `invalid_target_team` -- Target workspace is invalid. - `managed_channel_not_supported` -- Cannot unshare a managed channel - `name_taken` -- The proposed new name for the channel is already in use within your organization. - `not_allowed_for_grid_workspace` -- Slack Connect is not allowed for this Enterprise org workspace - `not_enabled` -- The API endpoint is not enabled for your team. - `restricted_action` -- The caller of this API is not allowed to perform this operation. - `too_many_target_teams` -- Too many `target_team_ids` were provided. - `unsupported_arguments` -- The provided method arguments are not supported. See https://docs.slack.dev/reference/methods/admin.conversations.setTeams */
|
|
2754
|
+
/** Set the workspaces in an Enterprise org that connect to a public or private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_add_legacy_disconnected_channel_to_workspaces` -- Cannot add legacy disconnected channel to workspaces - `cannot_move_local_channel` -- This API cannot be used to move a local channel from one workspace to another. - `channel_cannot_be_unshared` -- Channel cannot be unshared from this workspace. - `channel_not_found` -- The channel wasn't found or isn't shared to this workspace. - `channel_type_not_supported` -- The requested `channel_id` is not a supported type of channel. - `could_not_set_teams_for_channel` -- The requested `channel_id` has not been shared with the target workspace. - `default_org_wide_channel` -- Default org wide channel cannot be unshared from a workspace. - `externally_shared_or_disconnected_channel` -- The channel is or was externally shared. - `invalid_channel_id` -- `channel_id` was invalid. - `invalid_target_team` -- Target workspace is invalid. - `managed_channel_not_supported` -- Cannot unshare a managed channel - `name_taken` -- The proposed new name for the channel is already in use within your organization. - `not_allowed_for_grid_workspace` -- Slack Connect is not allowed for this Enterprise org workspace - `not_enabled` -- The API endpoint is not enabled for your team. - `restricted_action` -- The caller of this API is not allowed to perform this operation. - `too_many_target_teams` -- Too many `target_team_ids` were provided. - `unsupported_arguments` -- The provided method arguments are not supported. - `insufficient_permissions_to_share_channel` -- The authenticated user isn't an org admin or owner and tried to add or remove an unlisted workspace that isn't visible to them. Ask an org admin or owner with permission to manage the channel to make this change. See https://docs.slack.dev/reference/methods/admin.conversations.setTeams */
|
|
2520
2755
|
export declare const setTeams: API.OperationMethod<SetTeamsRequest, SetTeamsResponse, SetTeamsError, SlackOpContext>;
|
|
2521
2756
|
export type SetWorkflowsTriggersTypesPermissionsError = SlackOpError;
|
|
2522
|
-
/** Set the permissions for using a trigger type Required scopes -- user: `client` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_named_entities` -- Named entities visibility requires a valid set of named entities to be specified - `invalid_permission_type` -- This permission type is invalid. - `invalid_permission_set` -- This permission set is invalid. - `required_visibility` -- Visibility is required on this resource. - `restricted_action` -- This actor does not have access to the permissions on this resource. - `trigger_type_id_not_found` -- The referenced trigger type ID does not exist. - `visibility_is_not_named_entities` -- The visibility should be named entities when the user_ids, team_ids, or org_ids args are set See https://docs.slack.dev/reference/methods/admin.workflows.triggers.types.permissions.set */
|
|
2757
|
+
/** Set the permissions for using a trigger type Required scopes -- user: `client` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_named_entities` -- Named entities visibility requires a valid set of named entities to be specified - `invalid_permission_type` -- This permission type is invalid. - `invalid_permission_set` -- This permission set is invalid. - `required_visibility` -- Visibility is required on this resource. - `restricted_action` -- This actor does not have access to the permissions on this resource. - `trigger_type_id_not_found` -- The referenced trigger type ID does not exist. - `visibility_is_not_named_entities` -- The visibility should be named entities when the user_ids, team_ids, or org_ids args are set - `user_not_found` -- A value passed in `user_ids` was invalid. See https://docs.slack.dev/reference/methods/admin.workflows.triggers.types.permissions.set */
|
|
2523
2758
|
export declare const setWorkflowsTriggersTypesPermissions: API.OperationMethod<SetWorkflowsTriggersTypesPermissionsRequest, SetWorkflowsTriggersTypesPermissionsResponse, SetWorkflowsTriggersTypesPermissionsError, SlackOpContext>;
|
|
2524
2759
|
export type TeamsSettingsInfoError = SlackOpError;
|
|
2525
2760
|
/** Fetch information about settings in a workspace Required scopes -- user: `admin.teams:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `failed_to_fetch_info` -- There was an error fetching info for this workspace. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `team_not_found` -- The `team_id` was not found. See https://docs.slack.dev/reference/methods/admin.teams.settings.info */
|
|
2526
2761
|
export declare const teamsSettingsInfo: API.OperationMethod<TeamsSettingsInfoRequest, TeamsSettingsInfoResponse, TeamsSettingsInfoError, SlackOpContext>;
|
|
2527
2762
|
export type UnarchiveConversationError = SlackOpError;
|
|
2528
|
-
/** Unarchive a public or private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_archived` -- The passed channel is not currently archived. - `channel_not_found` -- The value passed for `channel_id` was invalid. - `channel_type_not_supported` -- The value passed for `channel` was a DM, MPDM, or the 'general' channel - `could_not_unarchive_channel` -- The channel could not be unarchived. - `default_org_wide_channel` -- You can't unarchive a default org-wide channel. - `feature_not_enabled` -- The token provided doesn't have access to this method. - `missing_scope` -- The token provided doesn't have the required scopes. - `restricted_action` -- A workspace preference prevents the authenticated user from unarchiving. See https://docs.slack.dev/reference/methods/admin.conversations.unarchive */
|
|
2763
|
+
/** Unarchive a public or private channel. Required scopes -- user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_archived` -- The passed channel is not currently archived. - `channel_not_found` -- The value passed for `channel_id` was invalid, or the channel belongs to a workspace other than the token's workspace and isn't shared with it. - `channel_type_not_supported` -- The value passed for `channel` was a DM, MPDM, or the 'general' channel - `could_not_unarchive_channel` -- The channel could not be unarchived. - `default_org_wide_channel` -- You can't unarchive a default org-wide channel. - `feature_not_enabled` -- The token provided doesn't have access to this method. - `missing_scope` -- The token provided doesn't have the required scopes. - `restricted_action` -- A workspace preference prevents the authenticated user from unarchiving. - `target_team_not_on_org` -- The specified target_team is not part of the organization. See https://docs.slack.dev/reference/methods/admin.conversations.unarchive */
|
|
2529
2764
|
export declare const unarchiveConversation: API.OperationMethod<UnarchiveConversationRequest, UnarchiveConversationResponse, UnarchiveConversationError, SlackOpContext>;
|
|
2530
2765
|
export type UninstallAppError = SlackOpError;
|
|
2531
|
-
/** Uninstall an app from one or many workspaces, or an entire enterprise organization. Required scopes -- user: `admin.apps:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` -- The provided `app_id` was not found. - `can_not_uninstall` -- This application can not be uninstalled via the API. - `enterprise_not_found` -- The provided `enterprise_id` was not found. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `must_revoke_access` -- Organization-deployed apps cannot be uninstalled from specific workspaces using this API. - `permission_denied` -- You do not have permission to uninstall applications from the
|
|
2766
|
+
/** Uninstall an app from one or many workspaces, or an entire enterprise organization. Required scopes -- user: `admin.apps:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` -- The provided `app_id` was not found. - `can_not_uninstall` -- This application can not be uninstalled via the API. - `enterprise_not_found` -- The provided `enterprise_id` was not found. - `feature_not_enabled` -- The Admin APIs feature is not enabled for this team. - `must_revoke_access` -- Organization-deployed apps cannot be uninstalled from specific workspaces using this API. - `permission_denied` -- You do not have permission to uninstall applications from the requested org or workspaces. - `specify_enterprise_or_teams` -- Provide exactly one of `enterprise_id` or `team_ids`. - `teams_not_found` -- One or more of the provided `team_ids` were not found. - `too_many_teams` -- Too many IDs are present in `team_ids`. - `restricted_action` -- the user is not authorized to perform this action See https://docs.slack.dev/reference/methods/admin.apps.uninstall */
|
|
2532
2767
|
export declare const uninstallApp: API.OperationMethod<UninstallAppRequest, UninstallAppResponse, UninstallAppError, SlackOpContext>;
|
|
2533
2768
|
export type UnlinkObjectsError = SlackOpError;
|
|
2534
2769
|
/** Unlink a Salesforce record from a channel Required scopes -- user: `admin.conversations:manage_objects` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Value passed for `channel` is invalid. - `restricted_action` -- User does not have access to perform this action. - `invalid_name_specials` -- Value passed for `name` contained unallowed special characters or upper case characters. - `name_taken` -- A channel cannot be created with the given name. See https://docs.slack.dev/reference/methods/admin.conversations.unlinkObjects */
|
|
2535
2770
|
export declare const unlinkObjects: API.OperationMethod<UnlinkObjectsRequest, UnlinkObjectsResponse, UnlinkObjectsError, SlackOpContext>;
|
|
2771
|
+
export type UnpublishSlackbotSkillError = SlackOpError;
|
|
2772
|
+
/** Removes Slackbot skills from the org catalog, preserving access, libraries, and deployments. Required scopes -- user: `admin.skills:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Skills API is not enabled for this organization or workspace. - `restricted_action` -- The caller must be an org admin or owner with permission to manage skills. - `internal_error` -- The operation could not be completed. Retry the request. - `failed_for_some_skills` -- Some skills failed. `failed_skills` lists each distinct failed skill ID and its error: `skill_not_found`, `method_not_supported_for_skill_type`, `restricted_action`, or `internal_error`. Missing, deleted, non-skill, and other organizations' files all return `skill_not_found`. See https://docs.slack.dev/reference/methods/admin.slackbot.skills.unpublish */
|
|
2773
|
+
export declare const unpublishSlackbotSkill: API.OperationMethod<UnpublishSlackbotSkillRequest, UnpublishSlackbotSkillResponse, UnpublishSlackbotSkillError, SlackOpContext>;
|
|
2536
2774
|
export type UnpublishWorkflowError = SlackOpError;
|
|
2537
2775
|
/** Unpublish workflows within the team or enterprise Required scopes -- user: `admin.workflows:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `not_allowed` -- The user is not allowed to access this API method - `error_unpublishing_workflows` -- There were one or more errors unpublishing workflows See https://docs.slack.dev/reference/methods/admin.workflows.unpublish */
|
|
2538
2776
|
export declare const unpublishWorkflow: API.OperationMethod<UnpublishWorkflowRequest, UnpublishWorkflowResponse, UnpublishWorkflowError, SlackOpContext>;
|
|
@@ -2546,6 +2784,6 @@ export type UpdateUsergroupError = SlackOpError;
|
|
|
2546
2784
|
/** Update one or more properties of an existing organizational usergroup. Required scopes -- user: `admin.usergroups:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this workspace. - `invalid_auth` -- The workspace specified is not part of this organization. - `restricted_action` -- The calling user cannot modify the specified usergroup, or the usergroup is managed by an identity provider (IdP) and its name cannot be changed through this API. - `not_an_enterprise` -- The token passed in does not belong to an Enterprise organization. - `invalid_usergroup` -- A usergroup with the specified ID does not exist. - `name_already_exists` -- The name specified is used by another usergroup and cannot be updated. - `handle_already_exists` -- The handle specified is used by another usergroup or entity and cannot be updated. - `visible_group_needs_handle` -- Tried to set the group to visible but did not provide a handle. - `too_many_usergroup_members_to_make_visible` -- Tried to set the group to visible but the group has too many members - `user_channel_limit_exceeded` -- Adding these channels would cause one or more members to exceed their channel limit. - `cannot_modify_pref_after_creation` -- This preference can only be set when the group is created and cannot be changed afterward. See https://docs.slack.dev/reference/methods/admin.usergroups.update */
|
|
2547
2785
|
export declare const updateUsergroup: API.OperationMethod<UpdateUsergroupRequest, UpdateUsergroupResponse, UpdateUsergroupError, SlackOpContext>;
|
|
2548
2786
|
export type UploadUsersError = SlackOpError;
|
|
2549
|
-
/** Add members to an existing organizational usergroup in bulk via CSV upload. This method is only available to Enterprise Grid organizations. Required scopes -- user: `admin.usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this workspace. - `invalid_auth` -- The workspace specified is not part of this organization. - `restricted_action` -- The calling user cannot modify the specified usergroup, or the usergroup's membership is managed by an identity provider (IdP) and can only be changed through SCIM. - `not_an_enterprise` -- The token passed in does not belong to an Enterprise organization. - `invalid_usergroup` -- A usergroup with the specified ID does not exist. - `no_valid_users` -- There were no valid users provided in the csv. - `unable_to_parse_csv` -- Could not parse the uploaded csv. - `member_count_would_exceed_visible_limit` -- The usergroup is visible and the member count would exceed the limit. - `cannot_modify_role_admin` -- The user does not have permission to modify the roles admin role. See https://docs.slack.dev/reference/methods/admin.usergroups.uploadUsers */
|
|
2787
|
+
/** Add members to an existing organizational usergroup in bulk via CSV upload. This method is only available to Enterprise Grid organizations. Required scopes -- user: `admin.usergroups:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `feature_not_enabled` -- The Admin APIs feature is not enabled for this workspace. - `invalid_auth` -- The workspace specified is not part of this organization. - `restricted_action` -- The calling user cannot modify the specified usergroup, or the usergroup's membership is managed by an identity provider (IdP) and can only be changed through SCIM. - `not_an_enterprise` -- The token passed in does not belong to an Enterprise organization. - `invalid_usergroup` -- A usergroup with the specified ID does not exist. - `no_valid_users` -- There were no valid users provided in the csv. - `unable_to_parse_csv` -- Could not parse the uploaded csv. - `member_count_would_exceed_visible_limit` -- The usergroup is visible and the member count would exceed the limit. - `cannot_modify_role_admin` -- The user does not have permission to modify the roles admin role. - `subteam_limit_exceeded` -- A csv upload can only contain at most 15k users. See https://docs.slack.dev/reference/methods/admin.usergroups.uploadUsers */
|
|
2550
2788
|
export declare const uploadUsers: API.OperationMethod<UploadUsersRequest, UploadUsersResponse, UploadUsersError, SlackOpContext>;
|
|
2551
2789
|
//# sourceMappingURL=admin.d.ts.map
|