@distilled.cloud/slack 1.0.0-rc.12 → 1.0.0-rc.14
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/README.md +34 -0
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +3 -3
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/pagination.js.map +1 -1
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +23 -22
- package/lib/protocol.js.map +1 -1
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +288 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/retry.js.map +1 -1
- package/lib/services/admin.d.ts +236 -29
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +417 -749
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts +423 -0
- package/lib/services/agents.d.ts.map +1 -0
- package/lib/services/agents.js +315 -0
- package/lib/services/agents.js.map +1 -0
- package/lib/services/api.d.ts +1 -1
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +4 -6
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts +21 -3
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +65 -133
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +4 -4
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +16 -38
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts +2 -2
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +11 -28
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts +1 -1
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +5 -9
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts +4 -4
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +14 -30
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts +1 -1
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +7 -15
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts +1 -1
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +13 -33
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts +22 -2
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +37 -48
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts +29 -25
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +47 -95
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts +10 -8
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +43 -115
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.d.ts +1 -1
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +5 -9
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts +1 -1
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +10 -24
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts +1 -1
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +6 -11
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts +1 -1
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +8 -20
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts +5 -5
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +39 -109
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts +1 -1
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +28 -75
- 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/index.js.map +1 -1
- package/lib/services/lists.d.ts +5 -1
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +35 -146
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts +1 -1
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +5 -8
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts +38 -2
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +67 -50
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts +1 -1
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +7 -15
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts +1 -1
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +7 -15
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts +2 -2
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +13 -29
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts +1 -1
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +13 -33
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts +1 -1
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +9 -21
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts +1 -1
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +13 -30
- package/lib/services/search.js.map +1 -1
- package/lib/services/stars.d.ts +1 -1
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +10 -20
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts +1 -1
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +25 -62
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.d.ts +1 -1
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +5 -9
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts +8 -3
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +23 -51
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts +2 -2
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +28 -81
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts +1 -1
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +11 -27
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +27 -71
- package/lib/services/workflows.js.map +1 -1
- package/package.json +16 -12
- package/src/credentials.ts +8 -10
- package/src/errors.ts +17 -31
- package/src/index.ts +4 -8
- package/src/pagination.ts +2 -5
- package/src/protocol.test.ts +372 -0
- package/src/protocol.ts +56 -72
- package/src/retry.ts +4 -9
- package/src/services/admin.ts +1241 -1557
- package/src/services/agents.ts +853 -0
- package/src/services/api.ts +4 -10
- package/src/services/apps.ts +146 -243
- package/src/services/assistant.ts +93 -144
- package/src/services/auth.ts +12 -33
- package/src/services/blocks.ts +9 -24
- package/src/services/bookmarks.ts +14 -34
- package/src/services/bots.ts +7 -19
- package/src/services/calls.ts +15 -43
- package/src/services/canvases.ts +82 -85
- package/src/services/chat.ts +134 -254
- package/src/services/conversations.ts +101 -217
- package/src/services/dialog.ts +5 -13
- package/src/services/dnd.ts +11 -31
- package/src/services/emoji.ts +9 -19
- package/src/services/entity.ts +17 -45
- package/src/services/files.ts +72 -165
- package/src/services/functions.ts +95 -168
- package/src/services/index.ts +1 -0
- package/src/services/lists.ts +65 -208
- package/src/services/migration.ts +8 -17
- package/src/services/oauth.ts +127 -60
- package/src/services/openid.ts +12 -34
- package/src/services/pins.ts +7 -19
- package/src/services/reactions.ts +19 -43
- package/src/services/reminders.ts +13 -37
- package/src/services/rtm.ts +9 -25
- package/src/services/search.ts +51 -92
- package/src/services/stars.ts +20 -31
- package/src/services/team.ts +81 -155
- package/src/services/tooling.ts +5 -13
- package/src/services/usergroups.ts +37 -68
- package/src/services/users.ts +35 -102
- package/src/services/views.ts +11 -31
- package/src/services/workflows.ts +65 -129
package/lib/services/admin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
2
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
3
|
import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
4
4
|
export type { SlackOpError, SlackOpContext };
|
|
5
5
|
export interface AddAliasRequest {
|
|
@@ -20,6 +20,9 @@ export declare const AddAppsPermissionsRequestUserIdsList: S.Schema<AddAppsPermi
|
|
|
20
20
|
/** List of encoded usergroup IDs */
|
|
21
21
|
export type AddAppsPermissionsRequestUsergroupIdsList = Array<string>;
|
|
22
22
|
export declare const AddAppsPermissionsRequestUsergroupIdsList: S.Schema<AddAppsPermissionsRequestUsergroupIdsList>;
|
|
23
|
+
/** 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. */
|
|
24
|
+
export type AddAppsPermissionsRequestChannelIdsList = Array<string>;
|
|
25
|
+
export declare const AddAppsPermissionsRequestChannelIdsList: S.Schema<AddAppsPermissionsRequestChannelIdsList>;
|
|
23
26
|
export interface AddAppsPermissionsRequest {
|
|
24
27
|
/** Encoded ID of the app */
|
|
25
28
|
app_id: string;
|
|
@@ -27,6 +30,8 @@ export interface AddAppsPermissionsRequest {
|
|
|
27
30
|
user_ids?: AddAppsPermissionsRequestUserIdsList;
|
|
28
31
|
/** List of encoded usergroup IDs */
|
|
29
32
|
usergroup_ids?: AddAppsPermissionsRequestUsergroupIdsList;
|
|
33
|
+
/** 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. */
|
|
34
|
+
channel_ids?: AddAppsPermissionsRequestChannelIdsList;
|
|
30
35
|
}
|
|
31
36
|
export declare const AddAppsPermissionsRequest: S.Schema<AddAppsPermissionsRequest>;
|
|
32
37
|
export interface AddAppsPermissionsResponse {
|
|
@@ -71,9 +76,6 @@ export declare const AddChannelsRequest: S.Schema<AddChannelsRequest>;
|
|
|
71
76
|
/** List of channel IDs that are not valid for this action */
|
|
72
77
|
export type AddChannelsResponseInvalidChannelsList = Array<string>;
|
|
73
78
|
export declare const AddChannelsResponseInvalidChannelsList: S.Schema<AddChannelsResponseInvalidChannelsList>;
|
|
74
|
-
/** List of user IDs who would exceed their channel limit */
|
|
75
|
-
export type AddChannelsResponseChannelLimitUserIdsList = Array<string>;
|
|
76
|
-
export declare const AddChannelsResponseChannelLimitUserIdsList: S.Schema<AddChannelsResponseChannelLimitUserIdsList>;
|
|
77
79
|
export interface AddChannelsResponse {
|
|
78
80
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
79
81
|
ok: boolean;
|
|
@@ -81,8 +83,6 @@ export interface AddChannelsResponse {
|
|
|
81
83
|
error?: string;
|
|
82
84
|
/** List of channel IDs that are not valid for this action */
|
|
83
85
|
invalid_channels?: AddChannelsResponseInvalidChannelsList;
|
|
84
|
-
/** List of user IDs who would exceed their channel limit */
|
|
85
|
-
channel_limit_user_ids?: AddChannelsResponseChannelLimitUserIdsList;
|
|
86
86
|
}
|
|
87
87
|
export declare const AddChannelsResponse: S.Schema<AddChannelsResponse>;
|
|
88
88
|
export interface AddEmojiRequest {
|
|
@@ -127,6 +127,33 @@ export interface AddTeamsResponse {
|
|
|
127
127
|
ok: boolean;
|
|
128
128
|
}
|
|
129
129
|
export declare const AddTeamsResponse: S.Schema<AddTeamsResponse>;
|
|
130
|
+
/** The encoded user IDs to add to the usergroup, provided as a JSON array or a comma-separated string. */
|
|
131
|
+
export type AddUsersRequestUsersList = Array<string>;
|
|
132
|
+
export declare const AddUsersRequestUsersList: S.Schema<AddUsersRequestUsersList>;
|
|
133
|
+
export interface AddUsersRequest {
|
|
134
|
+
/** ID of the usergroup to add users to */
|
|
135
|
+
id: string;
|
|
136
|
+
/** The encoded user IDs to add to the usergroup, provided as a JSON array or a comma-separated string. */
|
|
137
|
+
users: AddUsersRequestUsersList;
|
|
138
|
+
}
|
|
139
|
+
export declare const AddUsersRequest: S.Schema<AddUsersRequest>;
|
|
140
|
+
export type AddUsersResponseInvalidUsersItemReason = "guest_user" | "deleted_user" | "user_not_found" | "insert_failed" | "channel_limit_exceeded" | "multi_workspace_idp_group" | "usergroup_limit_exceeded";
|
|
141
|
+
export declare const AddUsersResponseInvalidUsersItemReason: any;
|
|
142
|
+
export interface AddUsersResponseInvalidUsersItem {
|
|
143
|
+
user_id: string;
|
|
144
|
+
reason: AddUsersResponseInvalidUsersItemReason;
|
|
145
|
+
}
|
|
146
|
+
export declare const AddUsersResponseInvalidUsersItem: S.Schema<AddUsersResponseInvalidUsersItem>;
|
|
147
|
+
export type AddUsersResponseInvalidUsersList = Array<AddUsersResponseInvalidUsersItem>;
|
|
148
|
+
export declare const AddUsersResponseInvalidUsersList: S.Schema<AddUsersResponseInvalidUsersList>;
|
|
149
|
+
export interface AddUsersResponse {
|
|
150
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
151
|
+
ok: boolean;
|
|
152
|
+
/** A string representation of the error type */
|
|
153
|
+
error?: string;
|
|
154
|
+
invalid_users?: AddUsersResponseInvalidUsersList;
|
|
155
|
+
}
|
|
156
|
+
export declare const AddUsersResponse: S.Schema<AddUsersResponse>;
|
|
130
157
|
/** Array of workflow IDs to edit; max 50 */
|
|
131
158
|
export type AddWorkflowsCollaboratorRequestWorkflowIdsList = Array<string>;
|
|
132
159
|
export declare const AddWorkflowsCollaboratorRequestWorkflowIdsList: S.Schema<AddWorkflowsCollaboratorRequestWorkflowIdsList>;
|
|
@@ -154,7 +181,7 @@ export interface AnalyticsMessagesActivityRequest {
|
|
|
154
181
|
latest_ts?: string;
|
|
155
182
|
/** 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. */
|
|
156
183
|
cursor?: string;
|
|
157
|
-
/** Maximum number of entries to return.
|
|
184
|
+
/** Maximum number of entries to return. Defaults to 50 if not passed. Max allowed is 100. */
|
|
158
185
|
limit?: number;
|
|
159
186
|
}
|
|
160
187
|
export declare const AnalyticsMessagesActivityRequest: S.Schema<AnalyticsMessagesActivityRequest>;
|
|
@@ -179,7 +206,7 @@ export interface AnalyticsMessagesMetadataRequest {
|
|
|
179
206
|
oldest_ts?: string;
|
|
180
207
|
/** Most recent timestamp to include in the results. If not passed, defaults to current time. */
|
|
181
208
|
latest_ts?: string;
|
|
182
|
-
/** 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](
|
|
209
|
+
/** 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. */
|
|
183
210
|
cursor?: string;
|
|
184
211
|
}
|
|
185
212
|
export declare const AnalyticsMessagesMetadataRequest: S.Schema<AnalyticsMessagesMetadataRequest>;
|
|
@@ -472,6 +499,36 @@ export interface BulkSetExcludeFromSlackAiResponse {
|
|
|
472
499
|
not_added: BulkSetExcludeFromSlackAiResponseNotAddedList;
|
|
473
500
|
}
|
|
474
501
|
export declare const BulkSetExcludeFromSlackAiResponse: S.Schema<BulkSetExcludeFromSlackAiResponse>;
|
|
502
|
+
/** An array of channel IDs on which to set the property. */
|
|
503
|
+
export type BulkSetPropertiesRequestChannelIdsList = Array<string>;
|
|
504
|
+
export declare const BulkSetPropertiesRequestChannelIdsList: S.Schema<BulkSetPropertiesRequestChannelIdsList>;
|
|
505
|
+
export interface BulkSetPropertiesRequest {
|
|
506
|
+
/** An array of channel IDs on which to set the property. */
|
|
507
|
+
channel_ids: BulkSetPropertiesRequestChannelIdsList;
|
|
508
|
+
/** The property for this channel in a key value format. Only one property can be updated at a time */
|
|
509
|
+
property: string;
|
|
510
|
+
}
|
|
511
|
+
export declare const BulkSetPropertiesRequest: S.Schema<BulkSetPropertiesRequest>;
|
|
512
|
+
/** The reasons the channel was not updated */
|
|
513
|
+
export type BulkSetPropertiesResponseNotUpdatedItemErrorsList = Array<string>;
|
|
514
|
+
export declare const BulkSetPropertiesResponseNotUpdatedItemErrorsList: S.Schema<BulkSetPropertiesResponseNotUpdatedItemErrorsList>;
|
|
515
|
+
export interface BulkSetPropertiesResponseNotUpdatedItem {
|
|
516
|
+
channel_id: string;
|
|
517
|
+
/** The reasons the channel was not updated */
|
|
518
|
+
errors: BulkSetPropertiesResponseNotUpdatedItemErrorsList;
|
|
519
|
+
}
|
|
520
|
+
export declare const BulkSetPropertiesResponseNotUpdatedItem: S.Schema<BulkSetPropertiesResponseNotUpdatedItem>;
|
|
521
|
+
/** Channels that could not be updated, with reasons */
|
|
522
|
+
export type BulkSetPropertiesResponseNotUpdatedList = Array<BulkSetPropertiesResponseNotUpdatedItem>;
|
|
523
|
+
export declare const BulkSetPropertiesResponseNotUpdatedList: S.Schema<BulkSetPropertiesResponseNotUpdatedList>;
|
|
524
|
+
export interface BulkSetPropertiesResponse {
|
|
525
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
526
|
+
ok: boolean;
|
|
527
|
+
bulk_action_id: string;
|
|
528
|
+
/** Channels that could not be updated, with reasons */
|
|
529
|
+
not_updated: BulkSetPropertiesResponseNotUpdatedList;
|
|
530
|
+
}
|
|
531
|
+
export declare const BulkSetPropertiesResponse: S.Schema<BulkSetPropertiesResponse>;
|
|
475
532
|
export interface CancelAppsRequestRequest {
|
|
476
533
|
/** The id of the request to cancel. */
|
|
477
534
|
request_id: string;
|
|
@@ -605,6 +662,25 @@ export interface CreateTeamResponse {
|
|
|
605
662
|
team: string;
|
|
606
663
|
}
|
|
607
664
|
export declare const CreateTeamResponse: S.Schema<CreateTeamResponse>;
|
|
665
|
+
export interface CreateUsergroupRequest {
|
|
666
|
+
/** Unique name for the usergroup */
|
|
667
|
+
name: string;
|
|
668
|
+
/** Optional handle used to mention the usergroup in channel, must be unique */
|
|
669
|
+
handle?: string;
|
|
670
|
+
/** Optional purpose that describes what the usergroup is about */
|
|
671
|
+
purpose?: string;
|
|
672
|
+
/** Configure whether or not this usergroup should be visible in the client */
|
|
673
|
+
is_visible?: boolean;
|
|
674
|
+
}
|
|
675
|
+
export declare const CreateUsergroupRequest: S.Schema<CreateUsergroupRequest>;
|
|
676
|
+
export interface CreateUsergroupResponse {
|
|
677
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
678
|
+
ok: boolean;
|
|
679
|
+
/** A string representation of the error type */
|
|
680
|
+
error?: string;
|
|
681
|
+
subteam?: unknown;
|
|
682
|
+
}
|
|
683
|
+
export declare const CreateUsergroupResponse: S.Schema<CreateUsergroupResponse>;
|
|
608
684
|
export interface DeleteBarrierRequest {
|
|
609
685
|
/** The ID of the barrier you're trying to delete */
|
|
610
686
|
barrier_id: string;
|
|
@@ -649,6 +725,17 @@ export interface ExportUsersUnsupportedVersionResponse {
|
|
|
649
725
|
ok: boolean;
|
|
650
726
|
}
|
|
651
727
|
export declare const ExportUsersUnsupportedVersionResponse: S.Schema<ExportUsersUnsupportedVersionResponse>;
|
|
728
|
+
export interface FetchUsergroupRequest {
|
|
729
|
+
/** ID of the usergroup to fetch */
|
|
730
|
+
id: string;
|
|
731
|
+
}
|
|
732
|
+
export declare const FetchUsergroupRequest: S.Schema<FetchUsergroupRequest>;
|
|
733
|
+
export interface FetchUsergroupResponse {
|
|
734
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
735
|
+
ok: boolean;
|
|
736
|
+
subteam: unknown;
|
|
737
|
+
}
|
|
738
|
+
export declare const FetchUsergroupResponse: S.Schema<FetchUsergroupResponse>;
|
|
652
739
|
export interface GetConversationPrefsRequest {
|
|
653
740
|
/** The channel to get preferences for. */
|
|
654
741
|
channel_id: string;
|
|
@@ -767,7 +854,7 @@ export interface GetEntitiesResponse {
|
|
|
767
854
|
export declare const GetEntitiesResponse: S.Schema<GetEntitiesResponse>;
|
|
768
855
|
export interface GetExpirationRequest {
|
|
769
856
|
/** The ID of the guest user to get the expiration for. */
|
|
770
|
-
user_id
|
|
857
|
+
user_id: string;
|
|
771
858
|
/** 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. */
|
|
772
859
|
target_team?: string;
|
|
773
860
|
}
|
|
@@ -855,8 +942,6 @@ export interface GetTeamsResponse {
|
|
|
855
942
|
}
|
|
856
943
|
export declare const GetTeamsResponse: S.Schema<GetTeamsResponse>;
|
|
857
944
|
export interface InvalidateUsersSessionRequest {
|
|
858
|
-
/** ID of the workspace that the session belongs to. */
|
|
859
|
-
team_id?: string;
|
|
860
945
|
/** ID of the user that the session belongs to. */
|
|
861
946
|
user_id: string;
|
|
862
947
|
/** ID of the session to invalidate. */
|
|
@@ -1221,7 +1306,7 @@ export interface ListFunctionsRequest {
|
|
|
1221
1306
|
team_id?: string;
|
|
1222
1307
|
/** Comma-separated array of app IDs to get functions for; max 50. */
|
|
1223
1308
|
app_ids: ListFunctionsRequestAppIdsList;
|
|
1224
|
-
/** Whether to also include functions that are not yet distributed to any users in the function
|
|
1309
|
+
/** 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. */
|
|
1225
1310
|
include_non_distributed_functions?: boolean;
|
|
1226
1311
|
/** Set `cursor` to `next_cursor` returned by the previous call to list items in the next page. */
|
|
1227
1312
|
cursor?: string;
|
|
@@ -1444,7 +1529,7 @@ export interface ListUsersRequest {
|
|
|
1444
1529
|
is_active?: boolean;
|
|
1445
1530
|
/** 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. */
|
|
1446
1531
|
include_deactivated_user_workspaces?: boolean;
|
|
1447
|
-
/** If true, returns only guests and their expiration dates that belong to the team_id */
|
|
1532
|
+
/** If true, returns only guests and their expiration dates that belong to the team_id. */
|
|
1448
1533
|
only_guests?: boolean;
|
|
1449
1534
|
/** 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`. */
|
|
1450
1535
|
include_admins?: boolean;
|
|
@@ -1675,9 +1760,14 @@ export interface LookupWorkflowsPermissionsRequest {
|
|
|
1675
1760
|
max_workflow_triggers?: number;
|
|
1676
1761
|
}
|
|
1677
1762
|
export declare const LookupWorkflowsPermissionsRequest: S.Schema<LookupWorkflowsPermissionsRequest>;
|
|
1763
|
+
export type LookupWorkflowsPermissionsResponsePermissionsMap = {
|
|
1764
|
+
[key: string]: unknown | undefined;
|
|
1765
|
+
};
|
|
1766
|
+
export declare const LookupWorkflowsPermissionsResponsePermissionsMap: S.Schema<LookupWorkflowsPermissionsResponsePermissionsMap>;
|
|
1678
1767
|
export interface LookupWorkflowsPermissionsResponse {
|
|
1679
1768
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
1680
1769
|
ok: boolean;
|
|
1770
|
+
permissions: LookupWorkflowsPermissionsResponsePermissionsMap;
|
|
1681
1771
|
}
|
|
1682
1772
|
export declare const LookupWorkflowsPermissionsResponse: S.Schema<LookupWorkflowsPermissionsResponse>;
|
|
1683
1773
|
/** The trigger type IDs for which to get the permissions. */
|
|
@@ -1709,6 +1799,9 @@ export declare const RemoveAppsPermissionsRequestUserIdsList: S.Schema<RemoveApp
|
|
|
1709
1799
|
/** List of encoded usergroup IDs */
|
|
1710
1800
|
export type RemoveAppsPermissionsRequestUsergroupIdsList = Array<string>;
|
|
1711
1801
|
export declare const RemoveAppsPermissionsRequestUsergroupIdsList: S.Schema<RemoveAppsPermissionsRequestUsergroupIdsList>;
|
|
1802
|
+
/** 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. */
|
|
1803
|
+
export type RemoveAppsPermissionsRequestChannelIdsList = Array<string>;
|
|
1804
|
+
export declare const RemoveAppsPermissionsRequestChannelIdsList: S.Schema<RemoveAppsPermissionsRequestChannelIdsList>;
|
|
1712
1805
|
export interface RemoveAppsPermissionsRequest {
|
|
1713
1806
|
/** Encoded ID of the app */
|
|
1714
1807
|
app_id: string;
|
|
@@ -1716,6 +1809,8 @@ export interface RemoveAppsPermissionsRequest {
|
|
|
1716
1809
|
user_ids?: RemoveAppsPermissionsRequestUserIdsList;
|
|
1717
1810
|
/** List of encoded usergroup IDs */
|
|
1718
1811
|
usergroup_ids?: RemoveAppsPermissionsRequestUsergroupIdsList;
|
|
1812
|
+
/** 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. */
|
|
1813
|
+
channel_ids?: RemoveAppsPermissionsRequestChannelIdsList;
|
|
1719
1814
|
}
|
|
1720
1815
|
export declare const RemoveAppsPermissionsRequest: S.Schema<RemoveAppsPermissionsRequest>;
|
|
1721
1816
|
export interface RemoveAppsPermissionsResponse {
|
|
@@ -1819,6 +1914,21 @@ export interface RemoveGroupResponse {
|
|
|
1819
1914
|
ok: boolean;
|
|
1820
1915
|
}
|
|
1821
1916
|
export declare const RemoveGroupResponse: S.Schema<RemoveGroupResponse>;
|
|
1917
|
+
/** A comma separated list of encoded team (workspace) IDs. Each workspace *MUST* belong to the organization associated with the token. */
|
|
1918
|
+
export type RemoveTeamsRequestTeamIdsList = Array<string>;
|
|
1919
|
+
export declare const RemoveTeamsRequestTeamIdsList: S.Schema<RemoveTeamsRequestTeamIdsList>;
|
|
1920
|
+
export interface RemoveTeamsRequest {
|
|
1921
|
+
/** An encoded usergroup (IDP Group) ID. */
|
|
1922
|
+
usergroup_id: string;
|
|
1923
|
+
/** A comma separated list of encoded team (workspace) IDs. Each workspace *MUST* belong to the organization associated with the token. */
|
|
1924
|
+
team_ids: RemoveTeamsRequestTeamIdsList;
|
|
1925
|
+
}
|
|
1926
|
+
export declare const RemoveTeamsRequest: S.Schema<RemoveTeamsRequest>;
|
|
1927
|
+
export interface RemoveTeamsResponse {
|
|
1928
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
1929
|
+
ok: boolean;
|
|
1930
|
+
}
|
|
1931
|
+
export declare const RemoveTeamsResponse: S.Schema<RemoveTeamsResponse>;
|
|
1822
1932
|
export interface RemoveUserRequest {
|
|
1823
1933
|
/** The ID (`T1234`) of the workspace. */
|
|
1824
1934
|
team_id: string;
|
|
@@ -1831,6 +1941,21 @@ export interface RemoveUserResponse {
|
|
|
1831
1941
|
ok: boolean;
|
|
1832
1942
|
}
|
|
1833
1943
|
export declare const RemoveUserResponse: S.Schema<RemoveUserResponse>;
|
|
1944
|
+
/** The encoded user IDs to remove from the usergroup, provided as a JSON array or a comma-separated string. */
|
|
1945
|
+
export type RemoveUsersRequestUsersList = Array<string>;
|
|
1946
|
+
export declare const RemoveUsersRequestUsersList: S.Schema<RemoveUsersRequestUsersList>;
|
|
1947
|
+
export interface RemoveUsersRequest {
|
|
1948
|
+
/** ID of the usergroup to remove users from */
|
|
1949
|
+
id: string;
|
|
1950
|
+
/** The encoded user IDs to remove from the usergroup, provided as a JSON array or a comma-separated string. */
|
|
1951
|
+
users: RemoveUsersRequestUsersList;
|
|
1952
|
+
}
|
|
1953
|
+
export declare const RemoveUsersRequest: S.Schema<RemoveUsersRequest>;
|
|
1954
|
+
export interface RemoveUsersResponse {
|
|
1955
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
1956
|
+
ok: boolean;
|
|
1957
|
+
}
|
|
1958
|
+
export declare const RemoveUsersResponse: S.Schema<RemoveUsersResponse>;
|
|
1834
1959
|
/** Array of workflow IDs to edit; max 50 */
|
|
1835
1960
|
export type RemoveWorkflowsCollaboratorRequestWorkflowIdsList = Array<string>;
|
|
1836
1961
|
export declare const RemoveWorkflowsCollaboratorRequestWorkflowIdsList: S.Schema<RemoveWorkflowsCollaboratorRequestWorkflowIdsList>;
|
|
@@ -2099,6 +2224,12 @@ export declare const SetAppsPermissionsRequestUserIdsList: S.Schema<SetAppsPermi
|
|
|
2099
2224
|
/** List of encoded usergroup IDs */
|
|
2100
2225
|
export type SetAppsPermissionsRequestUsergroupIdsList = Array<string>;
|
|
2101
2226
|
export declare const SetAppsPermissionsRequestUsergroupIdsList: S.Schema<SetAppsPermissionsRequestUsergroupIdsList>;
|
|
2227
|
+
/** The mode that defines where the app can be used in channels */
|
|
2228
|
+
export type SetAppsPermissionsRequestChannelRestrictionMode = "all_channels" | "specific_channels" | "all_channels_except";
|
|
2229
|
+
export declare const SetAppsPermissionsRequestChannelRestrictionMode: any;
|
|
2230
|
+
/** List of encoded channel IDs for channel restrictions. Semantics depend on channel_restriction_mode: allowlist for specific_channels, exclusion list for all_channels_except */
|
|
2231
|
+
export type SetAppsPermissionsRequestChannelIdsList = Array<string>;
|
|
2232
|
+
export declare const SetAppsPermissionsRequestChannelIdsList: S.Schema<SetAppsPermissionsRequestChannelIdsList>;
|
|
2102
2233
|
export interface SetAppsPermissionsRequest {
|
|
2103
2234
|
/** Encoded ID of the app */
|
|
2104
2235
|
app_id: string;
|
|
@@ -2108,6 +2239,10 @@ export interface SetAppsPermissionsRequest {
|
|
|
2108
2239
|
user_ids?: SetAppsPermissionsRequestUserIdsList;
|
|
2109
2240
|
/** List of encoded usergroup IDs */
|
|
2110
2241
|
usergroup_ids?: SetAppsPermissionsRequestUsergroupIdsList;
|
|
2242
|
+
/** The mode that defines where the app can be used in channels */
|
|
2243
|
+
channel_restriction_mode?: SetAppsPermissionsRequestChannelRestrictionMode | (string & {});
|
|
2244
|
+
/** List of encoded channel IDs for channel restrictions. Semantics depend on channel_restriction_mode: allowlist for specific_channels, exclusion list for all_channels_except */
|
|
2245
|
+
channel_ids?: SetAppsPermissionsRequestChannelIdsList;
|
|
2111
2246
|
}
|
|
2112
2247
|
export declare const SetAppsPermissionsRequest: S.Schema<SetAppsPermissionsRequest>;
|
|
2113
2248
|
export interface SetAppsPermissionsResponse {
|
|
@@ -2191,14 +2326,14 @@ export declare const SetExpirationResponse: S.Schema<SetExpirationResponse>;
|
|
|
2191
2326
|
export type SetFunctionsPermissionsRequestVisibility = "everyone" | "app_collaborators" | "named_entities" | "no_one";
|
|
2192
2327
|
export declare const SetFunctionsPermissionsRequestVisibility: any;
|
|
2193
2328
|
/** List of user IDs to allow for `named_entities` visibility. */
|
|
2194
|
-
export type SetFunctionsPermissionsRequestUserIdsList = Array<
|
|
2329
|
+
export type SetFunctionsPermissionsRequestUserIdsList = Array<string>;
|
|
2195
2330
|
export declare const SetFunctionsPermissionsRequestUserIdsList: S.Schema<SetFunctionsPermissionsRequestUserIdsList>;
|
|
2196
2331
|
export type SetFunctionsPermissionsRequestPermissionsItemVisibility = "everyone" | "named_entities" | "no_one";
|
|
2197
2332
|
export declare const SetFunctionsPermissionsRequestPermissionsItemVisibility: any;
|
|
2198
|
-
export type SetFunctionsPermissionsRequestPermissionsItemPermissionType = "slack_function" | "private_channel_access";
|
|
2333
|
+
export type SetFunctionsPermissionsRequestPermissionsItemPermissionType = "slack_function" | "private_channel_access" | "connector_resource";
|
|
2199
2334
|
export declare const SetFunctionsPermissionsRequestPermissionsItemPermissionType: any;
|
|
2200
2335
|
/** List of user IDs to allow for `named_entities` visibility. */
|
|
2201
|
-
export type SetFunctionsPermissionsRequestPermissionsItemUserIdsList = Array<
|
|
2336
|
+
export type SetFunctionsPermissionsRequestPermissionsItemUserIdsList = Array<string>;
|
|
2202
2337
|
export declare const SetFunctionsPermissionsRequestPermissionsItemUserIdsList: S.Schema<SetFunctionsPermissionsRequestPermissionsItemUserIdsList>;
|
|
2203
2338
|
export interface SetFunctionsPermissionsRequestPermissionsItem {
|
|
2204
2339
|
visibility: SetFunctionsPermissionsRequestPermissionsItemVisibility | (string & {});
|
|
@@ -2454,11 +2589,59 @@ export interface UpdateItemResponse {
|
|
|
2454
2589
|
ok: boolean;
|
|
2455
2590
|
}
|
|
2456
2591
|
export declare const UpdateItemResponse: S.Schema<UpdateItemResponse>;
|
|
2592
|
+
export interface UpdateUsergroupRequest {
|
|
2593
|
+
/** ID of the usergroup to update */
|
|
2594
|
+
id: string;
|
|
2595
|
+
/** The name of the group. */
|
|
2596
|
+
name?: string;
|
|
2597
|
+
/** The handle used for mentioning the group in a channel, must be unique. */
|
|
2598
|
+
handle?: string;
|
|
2599
|
+
/** The usergroup's purpose or description. */
|
|
2600
|
+
description?: string;
|
|
2601
|
+
/** Configure whether or not this usergroup should be visible in the client. */
|
|
2602
|
+
is_visible?: boolean;
|
|
2603
|
+
}
|
|
2604
|
+
export declare const UpdateUsergroupRequest: S.Schema<UpdateUsergroupRequest>;
|
|
2605
|
+
/** List of user IDs who would exceed their channel limit */
|
|
2606
|
+
export type UpdateUsergroupResponseChannelLimitUserIdsList = Array<string>;
|
|
2607
|
+
export declare const UpdateUsergroupResponseChannelLimitUserIdsList: S.Schema<UpdateUsergroupResponseChannelLimitUserIdsList>;
|
|
2608
|
+
export interface UpdateUsergroupResponse {
|
|
2609
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
2610
|
+
ok: boolean;
|
|
2611
|
+
subteam?: unknown;
|
|
2612
|
+
/** List of user IDs who would exceed their channel limit */
|
|
2613
|
+
channel_limit_user_ids?: UpdateUsergroupResponseChannelLimitUserIdsList;
|
|
2614
|
+
}
|
|
2615
|
+
export declare const UpdateUsergroupResponse: S.Schema<UpdateUsergroupResponse>;
|
|
2616
|
+
export interface UploadUsersRequest {
|
|
2617
|
+
/** ID of the usergroup to upload users to */
|
|
2618
|
+
id: string;
|
|
2619
|
+
/** Csv of users to upload in format member id, email */
|
|
2620
|
+
file?: unknown;
|
|
2621
|
+
}
|
|
2622
|
+
export declare const UploadUsersRequest: S.Schema<UploadUsersRequest>;
|
|
2623
|
+
export type UploadUsersResponseInvalidUsersItemReason = "guest_user" | "deleted_user" | "user_not_found" | "insert_failed" | "channel_limit_exceeded" | "multi_workspace_idp_group" | "usergroup_limit_exceeded";
|
|
2624
|
+
export declare const UploadUsersResponseInvalidUsersItemReason: any;
|
|
2625
|
+
export interface UploadUsersResponseInvalidUsersItem {
|
|
2626
|
+
user_id: string;
|
|
2627
|
+
reason: UploadUsersResponseInvalidUsersItemReason;
|
|
2628
|
+
}
|
|
2629
|
+
export declare const UploadUsersResponseInvalidUsersItem: S.Schema<UploadUsersResponseInvalidUsersItem>;
|
|
2630
|
+
export type UploadUsersResponseInvalidUsersList = Array<UploadUsersResponseInvalidUsersItem>;
|
|
2631
|
+
export declare const UploadUsersResponseInvalidUsersList: S.Schema<UploadUsersResponseInvalidUsersList>;
|
|
2632
|
+
export interface UploadUsersResponse {
|
|
2633
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
2634
|
+
ok: boolean;
|
|
2635
|
+
/** How many users were successfully added */
|
|
2636
|
+
successful_user_count: number;
|
|
2637
|
+
invalid_users?: UploadUsersResponseInvalidUsersList;
|
|
2638
|
+
}
|
|
2639
|
+
export declare const UploadUsersResponse: S.Schema<UploadUsersResponse>;
|
|
2457
2640
|
export type AddAliasError = SlackOpError;
|
|
2458
2641
|
/** 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 */
|
|
2459
2642
|
export declare const addAlias: API.OperationMethod<AddAliasRequest, AddAliasResponse, AddAliasError, SlackOpContext>;
|
|
2460
2643
|
export type AddAppsPermissionsError = SlackOpError;
|
|
2461
|
-
/** 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. See https://docs.slack.dev/reference/methods/admin.apps.permissions.add */
|
|
2644
|
+
/** 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 */
|
|
2462
2645
|
export declare const addAppsPermissions: API.OperationMethod<AddAppsPermissionsRequest, AddAppsPermissionsResponse, AddAppsPermissionsError, SlackOpContext>;
|
|
2463
2646
|
export type AddAssignmentsError = SlackOpError;
|
|
2464
2647
|
/** 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 */
|
|
@@ -2473,16 +2656,19 @@ export type AddGroupError = SlackOpError;
|
|
|
2473
2656
|
/** Add an allowlist of IDP groups for accessing a channel Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_add_more_channels_to_group` — The maximum number of channels have already been linked to the group. - `cannot_add_more_groups_to_channel` — The maximum number of groups have already been linked to the channel. - `channel_is_not_private` — The channel is a public channel, a multi-party direct message, a direct message, or is externally-shared. - `channel_not_found` — `channel_id` can’t be found. - `default_channel_restricted` — The channel is a default channel on the workspace. - `feature_not_enabled` — Feature not enabled - `group_already_linked_to_channel` — The IDP group is already linked to the channel - `group_must_not_be_empty` — The IDP group is currently empty. - `group_not_found` — `group_id` can’t be found. - `invalid_auth` — Token does not belong to enterprise or team id passed in not part of this enterprise - `invalid_channel` — The channel can’t be linked to an IDP group (i.e., it's a public channel or external shared channel). - `invalid_channel_type` — The channel is a public channel, a multi-party direct message, a direct message, or is externally-shared. - `no_channel_memberships` — The channel has no members. - `not_an_admin` — This token does not belong to an Org Admin or Owner. - `team_not_found` — `team_id` can’t be found. - `unable_to_link_idp_group_and_channel` — The IDP group and the channel cannot be linked. See https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.addGroup */
|
|
2474
2657
|
export declare const addGroup: API.OperationMethod<AddGroupRequest, AddGroupResponse, AddGroupError, SlackOpContext>;
|
|
2475
2658
|
export type AddTeamsError = SlackOpError;
|
|
2476
|
-
/** Associate one or more default workspaces with an organization-wide IDP group. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `auto_provision_failure` — A failure occurred while assigning IDP group members to a specific workspace; see `errors` element for a list of failed team IDs. - `internal_error` — An unexpected error occurred. - `invalid_team_ids` — One or more team IDs provided were invalid; see the `errors` field in the response for the list of invalid team IDs. - `multi_workspace_restriction` — The IDP group has members that cannot be linked to more than one workspace. - `no_team_ids_given` — The `team_ids` parameter was empty. - `restricted_action` — The calling user cannot update the specified usergroup. - `team_limit_exceeded` — The number of teams associated with the org group would exceed the limit. - `usergroup_not_found` — `usergroup_id` wasn't found. See https://docs.slack.dev/reference/methods/admin.usergroups.addTeams */
|
|
2659
|
+
/** Associate one or more default workspaces with an organization-wide IDP group. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `auto_provision_failure` — A failure occurred while assigning IDP group members to a specific workspace; see `errors` element for a list of failed team IDs. - `internal_error` — An unexpected error occurred. - `invalid_team_ids` — One or more team IDs provided were invalid; see the `errors` field in the response for the list of invalid team IDs. - `multi_workspace_restriction` — The IDP group has members that cannot be linked to more than one workspace. - `no_team_ids_given` — The `team_ids` parameter was empty. - `restricted_action` — The calling user cannot update the specified usergroup. - `team_limit_exceeded` — The number of teams associated with the org group would exceed the limit. - `usergroup_not_found` — `usergroup_id` wasn't found. - `auto_provision_required` — The IDP group requires a mandatory workspace link, so `auto_provision` must be `true`. - `workspace_not_eligible` — The workspace is not eligible to be linked to this IDP group; it is not on the org's allow-list of eligible workspaces. See https://docs.slack.dev/reference/methods/admin.usergroups.addTeams */
|
|
2477
2660
|
export declare const addTeams: API.OperationMethod<AddTeamsRequest, AddTeamsResponse, AddTeamsError, SlackOpContext>;
|
|
2661
|
+
export type AddUsersError = SlackOpError;
|
|
2662
|
+
/** Add members to an existing organizational usergroup. 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. - `invalid_users` — One or more users provided can not be added to the usergroup. - `user_not_found` — One or more users provided are invalid or are not a member of the organization. - `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.addUsers */
|
|
2663
|
+
export declare const addUsers: API.OperationMethod<AddUsersRequest, AddUsersResponse, AddUsersError, SlackOpContext>;
|
|
2478
2664
|
export type AddWorkflowsCollaboratorError = SlackOpError;
|
|
2479
2665
|
/** 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 */
|
|
2480
2666
|
export declare const addWorkflowsCollaborator: API.OperationMethod<AddWorkflowsCollaboratorRequest, AddWorkflowsCollaboratorResponse, AddWorkflowsCollaboratorError, SlackOpContext>;
|
|
2481
2667
|
export type AnalyticsMessagesActivityError = SlackOpError;
|
|
2482
|
-
/** Retrieves activity metrics for messages from a given channel. 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. - `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. See https://docs.slack.dev/reference/methods/admin.analytics.messages.activity */
|
|
2668
|
+
/** Retrieves activity metrics for messages from a given channel. 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. - `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 */
|
|
2483
2669
|
export declare const analyticsMessagesActivity: API.OperationMethod<AnalyticsMessagesActivityRequest, AnalyticsMessagesActivityResponse, AnalyticsMessagesActivityError, SlackOpContext>;
|
|
2484
2670
|
export type AnalyticsMessagesMetadataError = SlackOpError;
|
|
2485
|
-
/** 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. See https://docs.slack.dev/reference/methods/admin.analytics.messages.metadata */
|
|
2671
|
+
/** 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 */
|
|
2486
2672
|
export declare const analyticsMessagesMetadata: API.PaginatedOperationMethod<AnalyticsMessagesMetadataRequest, AnalyticsMessagesMetadataResponse, AnalyticsMessagesMetadataError, SlackOpContext, AnalyticsMessagesMetadataResponseMessagesItem>;
|
|
2487
2673
|
export type ApproveAppError = SlackOpError;
|
|
2488
2674
|
/** 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 */
|
|
@@ -2500,7 +2686,7 @@ export type AssignEntitiesError = SlackOpError;
|
|
|
2500
2686
|
/** 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 */
|
|
2501
2687
|
export declare const assignEntities: API.OperationMethod<AssignEntitiesRequest, AssignEntitiesResponse, AssignEntitiesError, SlackOpContext>;
|
|
2502
2688
|
export type AssignUserError = SlackOpError;
|
|
2503
|
-
/** 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. - `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. See https://docs.slack.dev/reference/methods/admin.users.assign */
|
|
2689
|
+
/** 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 */
|
|
2504
2690
|
export declare const assignUser: API.OperationMethod<AssignUserRequest, AssignUserResponse, AssignUserError, SlackOpContext>;
|
|
2505
2691
|
export type BulkArchiveError = SlackOpError;
|
|
2506
2692
|
/** 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 */
|
|
@@ -2512,8 +2698,11 @@ export type BulkMoveError = SlackOpError;
|
|
|
2512
2698
|
/** Move 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 - `team_not_found` — Target team cannot be found - `internal_error` — Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` — All input channels are invalid - `target_team_not_found` — Target 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.bulkMove */
|
|
2513
2699
|
export declare const bulkMove: API.OperationMethod<BulkMoveRequest, BulkMoveResponse, BulkMoveError, SlackOpContext>;
|
|
2514
2700
|
export type BulkSetExcludeFromSlackAiError = SlackOpError;
|
|
2515
|
-
/** Exclude channels from Slack AI 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! - `no_valid_channels` — All input channels are invalid - `restricted_action` — User does not have permission to perform this action - `feature_not_enabled` — The feature is not enabled See https://docs.slack.dev/reference/methods/admin.conversations.bulkSetExcludeFromSlackAi */
|
|
2701
|
+
/** Exclude channels from Slack AI 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! - `no_valid_channels` — All input channels are invalid - `restricted_action` — User does not have permission to perform this action - `feature_not_enabled` — The feature is not enabled - `disallowed_action` — This property cannot be set on DMs or MPDMs. See https://docs.slack.dev/reference/methods/admin.conversations.bulkSetExcludeFromSlackAi */
|
|
2516
2702
|
export declare const bulkSetExcludeFromSlackAi: API.OperationMethod<BulkSetExcludeFromSlackAiRequest, BulkSetExcludeFromSlackAiResponse, BulkSetExcludeFromSlackAiError, SlackOpContext>;
|
|
2703
|
+
export type BulkSetPropertiesError = SlackOpError;
|
|
2704
|
+
/** Set properties on 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 - `invalid_arguments` — The property argument is not a valid JSON object representing a channel property. - `internal_error` — Something unexpected happened, try again in a little bit. Sorry for that! - `no_valid_channels` — All input channels are invalid - `restricted_action` — User does not have permission to perform this action - `feature_not_enabled` — The feature is not enabled - `disallowed_action` — This property cannot be set on this channel type. - `restricted_plan_level` — This API is only available to Enterprise+ customers. - `too_many_properties` — Only one channel property can be updated at a time. - `property_not_allowed` — The property passed in is not allowed to be updated. See https://docs.slack.dev/reference/methods/admin.conversations.bulkSetProperties */
|
|
2705
|
+
export declare const bulkSetProperties: API.OperationMethod<BulkSetPropertiesRequest, BulkSetPropertiesResponse, BulkSetPropertiesError, SlackOpContext>;
|
|
2517
2706
|
export type CancelAppsRequestError = SlackOpError;
|
|
2518
2707
|
/** Cancel app request for team 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. - `feature_not_enabled` — Returned when the Admin APIs feature is not enabled for this team - `invalid_request_id` — The `request_id` passed is invalid. - `not_an_admin` — This method is only accessible by org owners and admins - `request_already_resolved` — The app request has already been resolved - `team_not_found` — Returned when team id is not found. - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id` - `restricted_action` — User is not authorized to perform this action - `invalid_auth` — invalid token or actor does not have access See https://docs.slack.dev/reference/methods/admin.apps.requests.cancel */
|
|
2519
2708
|
export declare const cancelAppsRequest: API.OperationMethod<CancelAppsRequestRequest, CancelAppsRequestResponse, CancelAppsRequestError, SlackOpContext>;
|
|
@@ -2536,11 +2725,14 @@ export type CreateConversationError = SlackOpError;
|
|
|
2536
2725
|
/** Create a public or private channel-based conversation. Required scopes — user: `admin.conversations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `could_not_create_channel` — The channel could not be created. - `feature_not_enabled` — The token provided doesn't have access to this method. - `invalid_name` — The value passed for `name` was invalid. - `invalid_team` — The provided workspace is invalid. - `name_taken` — A channel cannot be created with the given name. - `no_local_user_on_team` — The workspace provided had no users. - `restricted_action` — A workspace preference prevents the authenticated user from creating channels. - `team_id_or_org_required` — You must provide a `team_id` or set `org_wide` to `true`. - `team_not_found` — No workspace was found for the `team_id` provided. See https://docs.slack.dev/reference/methods/admin.conversations.create */
|
|
2537
2726
|
export declare const createConversation: API.OperationMethod<CreateConversationRequest, CreateConversationResponse, CreateConversationError, SlackOpContext>;
|
|
2538
2727
|
export type CreateForObjectsError = SlackOpError;
|
|
2539
|
-
/** Create a Salesforce channel for the corresponding object provided. Required scopes — user: `admin.conversations:manage_objects` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` — User does not have access to perform this action. - `record_not_found` — Value passed for `
|
|
2728
|
+
/** Create a Salesforce channel for the corresponding object provided. Required scopes — user: `admin.conversations:manage_objects` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` — User does not have access to perform this action. - `record_not_found` — Value passed for `salesforce_org_id` or `object_id` is invalid. - `feature_not_enabled` — Feature not enabled. - `channel_already_exists` — Object is linked to a different channel. - `missing_record_channel_config` — Record Channels are not enabled for the given object type. See https://docs.slack.dev/reference/methods/admin.conversations.createForObjects */
|
|
2540
2729
|
export declare const createForObjects: API.OperationMethod<CreateForObjectsRequest, CreateForObjectsResponse, CreateForObjectsError, SlackOpContext>;
|
|
2541
2730
|
export type CreateTeamError = SlackOpError;
|
|
2542
2731
|
/** Create an Enterprise team. Required scopes — user: `admin.teams:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `bad_url` — Invalid URL. Note that domains can be at most 21 characters. - `could_not_create_workspace` — The workspace could not be created. - `discoverability_setting_invalid` — The given discoverability setting is invalid. - `domain_taken` — The requested domain is taken. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `must_provide_team_domain` — No team domain has been provided. - `must_provide_team_name` — No team name has been provided. - `name_taken_in_org` — The team with the specified name already exists in the org. - `not_an_admin` — This method is only accessible by org owners and admins. See https://docs.slack.dev/reference/methods/admin.teams.create */
|
|
2543
2732
|
export declare const createTeam: API.OperationMethod<CreateTeamRequest, CreateTeamResponse, CreateTeamError, SlackOpContext>;
|
|
2733
|
+
export type CreateUsergroupError = SlackOpError;
|
|
2734
|
+
/** 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 */
|
|
2735
|
+
export declare const createUsergroup: API.OperationMethod<CreateUsergroupRequest, CreateUsergroupResponse, CreateUsergroupError, SlackOpContext>;
|
|
2544
2736
|
export type DeleteBarrierError = SlackOpError;
|
|
2545
2737
|
/** 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 */
|
|
2546
2738
|
export declare const deleteBarrier: API.OperationMethod<DeleteBarrierRequest, DeleteBarrierResponse, DeleteBarrierError, SlackOpContext>;
|
|
@@ -2553,6 +2745,9 @@ export declare const disconnectShared: API.OperationMethod<DisconnectSharedReque
|
|
|
2553
2745
|
export type ExportUsersUnsupportedVersionError = SlackOpError;
|
|
2554
2746
|
/** 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 */
|
|
2555
2747
|
export declare const exportUsersUnsupportedVersion: API.OperationMethod<ExportUsersUnsupportedVersionRequest, ExportUsersUnsupportedVersionResponse, ExportUsersUnsupportedVersionError, SlackOpContext>;
|
|
2748
|
+
export type FetchUsergroupError = SlackOpError;
|
|
2749
|
+
/** 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 */
|
|
2750
|
+
export declare const fetchUsergroup: API.OperationMethod<FetchUsergroupRequest, FetchUsergroupResponse, FetchUsergroupError, SlackOpContext>;
|
|
2556
2751
|
export type GetConversationPrefsError = SlackOpError;
|
|
2557
2752
|
/** 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 */
|
|
2558
2753
|
export declare const getConversationPrefs: API.OperationMethod<GetConversationPrefsRequest, GetConversationPrefsResponse, GetConversationPrefsError, SlackOpContext>;
|
|
@@ -2608,7 +2803,7 @@ export type ListAppsPermissionsError = SlackOpError;
|
|
|
2608
2803
|
/** 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 */
|
|
2609
2804
|
export declare const listAppsPermissions: API.OperationMethod<ListAppsPermissionsRequest, ListAppsPermissionsResponse, ListAppsPermissionsError, SlackOpContext>;
|
|
2610
2805
|
export type ListAppsRequestsError = SlackOpError;
|
|
2611
|
-
/** List app requests for a team/workspace. Required scopes — user: `admin.apps:read` 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. - `enterprise_not_found` — Returned when enterprise id is not found. - `feature_not_enabled` — Returned when the Admin APIs feature is not enabled for this team - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_auth` — invalid token or actor does not have access - `not_allowed` — The user is not allowed to access this API method - `not_an_admin` — This method is only accessible by org owners and admins - `restricted_action` — The action is restricted for this team - `user_is_restricted` — This method is only accessible by org owners, admins, and integration managers - `no_team_or_enterprise_provided` — Must provide team ID or enterprise ID - `team_not_found` — Returned when team id is not found. - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id` See https://docs.slack.dev/reference/methods/admin.apps.requests.list */
|
|
2806
|
+
/** List app requests for a team/workspace. Required scopes — user: `admin.apps:read` 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. - `enterprise_not_found` — Returned when enterprise id is not found. - `feature_not_enabled` — Returned when the Admin APIs feature is not enabled for this team - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_auth` — invalid token or actor does not have access - `not_allowed` — The user is not allowed to access this API method - `not_an_admin` — This method is only accessible by org owners and admins - `restricted_action` — The action is restricted for this team - `user_is_restricted` — This method is only accessible by org owners, admins, and integration managers - `no_team_or_enterprise_provided` — Must provide team ID or enterprise ID - `team_not_found` — Returned when team id is not found. - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id` - `invalid_scopes` — One or more of the given scopes is not a recognized OAuth scope See https://docs.slack.dev/reference/methods/admin.apps.requests.list */
|
|
2612
2807
|
export declare const listAppsRequests: API.PaginatedOperationMethod<ListAppsRequestsRequest, ListAppsRequestsResponse, ListAppsRequestsError, SlackOpContext, unknown>;
|
|
2613
2808
|
export type ListAppsRestrictedError = SlackOpError;
|
|
2614
2809
|
/** List restricted apps for an org or workspace. Required scopes — user: `admin.apps:read` 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. - `feature_not_enabled` — Returned when the Admin APIs feature is not enabled for this team - `invalid_actor` — The provided actor_id is not a valid user or application - `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 - `not_an_admin` — This method is only accessible by org/workspace owners and admins - `team_not_found` — Returned when team id is not found. - `too_many_teams_provided` — Please provide only `team_id` OR `enterprise_id`. - `restricted_action` — User does not have permission to access method See https://docs.slack.dev/reference/methods/admin.apps.restricted.list */
|
|
@@ -2674,10 +2869,10 @@ export type LookupWorkflowsTriggersTypesPermissionsError = SlackOpError;
|
|
|
2674
2869
|
/** 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 */
|
|
2675
2870
|
export declare const lookupWorkflowsTriggersTypesPermissions: API.OperationMethod<LookupWorkflowsTriggersTypesPermissionsRequest, LookupWorkflowsTriggersTypesPermissionsResponse, LookupWorkflowsTriggersTypesPermissionsError, SlackOpContext>;
|
|
2676
2871
|
export type RemoveAppsPermissionsError = SlackOpError;
|
|
2677
|
-
/** 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. See https://docs.slack.dev/reference/methods/admin.apps.permissions.remove */
|
|
2872
|
+
/** 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 */
|
|
2678
2873
|
export declare const removeAppsPermissions: API.OperationMethod<RemoveAppsPermissionsRequest, RemoveAppsPermissionsResponse, RemoveAppsPermissionsError, SlackOpContext>;
|
|
2679
2874
|
export type RemoveAssignmentsError = SlackOpError;
|
|
2680
|
-
/** 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` —
|
|
2875
|
+
/** 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 */
|
|
2681
2876
|
export declare const removeAssignments: API.OperationMethod<RemoveAssignmentsRequest, RemoveAssignmentsResponse, RemoveAssignmentsError, SlackOpContext>;
|
|
2682
2877
|
export type RemoveChannelsError = SlackOpError;
|
|
2683
2878
|
/** 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 */
|
|
@@ -2694,14 +2889,20 @@ export declare const removeEntities: API.OperationMethod<RemoveEntitiesRequest,
|
|
|
2694
2889
|
export type RemoveGroupError = SlackOpError;
|
|
2695
2890
|
/** Remove a linked IDP group linked from a private channel Required scopes — user: `admin.conversations:write` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — `channel_id` can’t be found. - `failed_to_remove_group_users` — Returned when could not remove the users in the channel of the group being removed - `failed_to_unlink_channel` — Removing the link in the database failed. Please retry. - `feature_not_enabled` — Feature not enabled - `group_not_found` — `group_id` can’t be found. - `invalid_auth` — Token does not belong to enterprise or team id passed in not part of this enterprise - `invalid_channel` — The channel could not be linked to an IDP group (i.e., it's a public channel or external shared channel). - `link_not_found` — There was no link found between the specified channel and the IDP group. - `not_an_admin` — This token does not belong to an Org Admin or Owner. - `team_not_found` — `team_id` can’t be found. - `unable_to_unlink_idp_group_and_channel` — The IDP group and channel cannot be unlinked. See https://docs.slack.dev/reference/methods/admin.conversations.restrictAccess.removeGroup */
|
|
2696
2891
|
export declare const removeGroup: API.OperationMethod<RemoveGroupRequest, RemoveGroupResponse, RemoveGroupError, SlackOpContext>;
|
|
2892
|
+
export type RemoveTeamsError = SlackOpError;
|
|
2893
|
+
/** Remove one or more default workspaces from an organization-wide IDP Group or Admin Group. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An unexpected error occurred. - `invalid_team_ids` — One or more team IDs provided were invalid; see the `errors` field in the response for the list of invalid team IDs. - `no_team_ids_given` — The `team_ids` parameter was empty. - `usergroup_not_found` — `usergroup_id` wasn't found. - `restricted_action` — The calling user cannot update the specified usergroup. See https://docs.slack.dev/reference/methods/admin.usergroups.removeTeams */
|
|
2894
|
+
export declare const removeTeams: API.OperationMethod<RemoveTeamsRequest, RemoveTeamsResponse, RemoveTeamsError, SlackOpContext>;
|
|
2697
2895
|
export type RemoveUserError = SlackOpError;
|
|
2698
2896
|
/** Remove a user from a workspace. 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_remove_user_from_workspace` — Removing this user from the workspace failed. - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `invalid_auth` — The request could not be authorized - `invalid_permissions` — This method is only accessible by org owners and admins. - `team_not_found` — `team_id` was not found. - `user_already_deleted` — The requested user has already been marked as deleted. - `user_not_found` — The user was not found. See https://docs.slack.dev/reference/methods/admin.users.remove */
|
|
2699
2897
|
export declare const removeUser: API.OperationMethod<RemoveUserRequest, RemoveUserResponse, RemoveUserError, SlackOpContext>;
|
|
2898
|
+
export type RemoveUsersError = SlackOpError;
|
|
2899
|
+
/** Remove members from an existing organizational usergroup. 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. - `invalid_users` — One or more users provided can not be removed from the usergroup. - `user_not_found` — One or more users provided are invalid or are not a member of the organization. See https://docs.slack.dev/reference/methods/admin.usergroups.removeUsers */
|
|
2900
|
+
export declare const removeUsers: API.OperationMethod<RemoveUsersRequest, RemoveUsersResponse, RemoveUsersError, SlackOpContext>;
|
|
2700
2901
|
export type RemoveWorkflowsCollaboratorError = SlackOpError;
|
|
2701
2902
|
/** Remove collaborators from 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_removing_collaborators` — There were one or more errors adding workflow collaborators See https://docs.slack.dev/reference/methods/admin.workflows.collaborators.remove */
|
|
2702
2903
|
export declare const removeWorkflowsCollaborator: API.OperationMethod<RemoveWorkflowsCollaboratorRequest, RemoveWorkflowsCollaboratorResponse, RemoveWorkflowsCollaboratorError, SlackOpContext>;
|
|
2703
2904
|
export type RenameConversationError = SlackOpError;
|
|
2704
|
-
/** Rename 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_rename_channel` — The channel could not be renamed. - `default_org_wide_channel` — The default org-wide channel can't be renamed. - `feature_not_enabled` — The token provided doesn't have access to this method. - `invalid_name_maxlength` — The channel name exceeds the maximum allowed length. - `name_taken` — The channel's name is already being used elsewhere. - `restricted_action` — A workspace preference prevents the authenticated user from renaming a channel. See https://docs.slack.dev/reference/methods/admin.conversations.rename */
|
|
2905
|
+
/** Rename 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_rename_channel` — The channel could not be renamed. - `default_org_wide_channel` — The default org-wide channel can't be renamed. - `feature_not_enabled` — The token provided doesn't have access to this method. - `invalid_name_maxlength` — The channel name exceeds the maximum allowed length. - `name_taken` — The channel's name is already being used elsewhere. - `restricted_action` — A workspace preference prevents the authenticated user from renaming a channel. - `external_channel_migrating` — The channel is an externally shared channel that is currently being migrated and can't be renamed. - `not_supported` — This type of channel doesn't support renaming through this method. See https://docs.slack.dev/reference/methods/admin.conversations.rename */
|
|
2705
2906
|
export declare const renameConversation: API.OperationMethod<RenameConversationRequest, RenameConversationResponse, RenameConversationError, SlackOpContext>;
|
|
2706
2907
|
export type RenameEmojiError = SlackOpError;
|
|
2707
2908
|
/** Rename an emoji. Required scopes — user: `admin.teams:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_resolve_alias` — The alias emoji could not be resolved - `error_bad_name_i18n` — Value passed for `new_name` was invalid. - `error_invalid_emoji_to_rename` — Value passed for `name` was invalid. - `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_fetch_active_team` — There are no active teams on the org and we need at least one. - `failed_to_rename_emoji` — The emoji could not be renamed. - `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.rename */
|
|
@@ -2728,7 +2929,7 @@ export type SetAppsMcpServersPermissionsError = SlackOpError;
|
|
|
2728
2929
|
/** 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. - `feature_not_enabled` — The MCP server ACL feature is not enabled for this team. - `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. - `too_many_named_entities` — Too many named entities provided. - `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. See https://docs.slack.dev/reference/methods/admin.apps.mcp.servers.permissions.set */
|
|
2729
2930
|
export declare const setAppsMcpServersPermissions: API.OperationMethod<SetAppsMcpServersPermissionsRequest, SetAppsMcpServersPermissionsResponse, SetAppsMcpServersPermissionsError, SlackOpContext>;
|
|
2730
2931
|
export type SetAppsPermissionsError = SlackOpError;
|
|
2731
|
-
/** 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. See https://docs.slack.dev/reference/methods/admin.apps.permissions.set */
|
|
2932
|
+
/** 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 */
|
|
2732
2933
|
export declare const setAppsPermissions: API.OperationMethod<SetAppsPermissionsRequest, SetAppsPermissionsResponse, SetAppsPermissionsError, SlackOpContext>;
|
|
2733
2934
|
export type SetConversationPrefsError = SlackOpError;
|
|
2734
2935
|
/** 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 */
|
|
@@ -2758,7 +2959,7 @@ export type SetNameError = SlackOpError;
|
|
|
2758
2959
|
/** Set the name of a given workspace. Required scopes — user: `admin.teams:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `failed_to_set_name` — Returned when there is an error to set the name - `feature_not_enabled` — The Admin APIs feature is not enabled for this team. - `team_not_found` — Returned when team_id can’t be resolved See https://docs.slack.dev/reference/methods/admin.teams.settings.setName */
|
|
2759
2960
|
export declare const setName: API.OperationMethod<SetNameRequest, SetNameResponse, SetNameError, SlackOpContext>;
|
|
2760
2961
|
export type SetOwnerError = SlackOpError;
|
|
2761
|
-
/** 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. - `
|
|
2962
|
+
/** 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 */
|
|
2762
2963
|
export declare const setOwner: API.OperationMethod<SetOwnerRequest, SetOwnerResponse, SetOwnerError, SlackOpContext>;
|
|
2763
2964
|
export type SetRegularError = SlackOpError;
|
|
2764
2965
|
/** 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 */
|
|
@@ -2793,4 +2994,10 @@ export declare const updateBarrier: API.OperationMethod<UpdateBarrierRequest, Up
|
|
|
2793
2994
|
export type UpdateItemError = SlackOpError;
|
|
2794
2995
|
/** API to allow Enterprise org admins to write/overwrite the allow list of IP blocks and ASNs from the enterprise configuration. Required scopes — user: `admin` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `endpoint_unavailable` — The requested endpoint is currently unavailable. - `invalid_field_or_data` — user attempted to write and invalid field or data to the team config - `unable_to_process_post_request` — The user sent a malformed post request - `unsupported_action_describe` — The user specified describe action is unsupported - `unsupported_action_put` — The user specified put action is unsupported See https://docs.slack.dev/reference/methods/admin.audit.anomaly.allow.updateItem */
|
|
2795
2996
|
export declare const updateItem: API.OperationMethod<UpdateItemRequest, UpdateItemResponse, UpdateItemError, SlackOpContext>;
|
|
2997
|
+
export type UpdateUsergroupError = SlackOpError;
|
|
2998
|
+
/** 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 */
|
|
2999
|
+
export declare const updateUsergroup: API.OperationMethod<UpdateUsergroupRequest, UpdateUsergroupResponse, UpdateUsergroupError, SlackOpContext>;
|
|
3000
|
+
export type UploadUsersError = SlackOpError;
|
|
3001
|
+
/** 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 */
|
|
3002
|
+
export declare const uploadUsers: API.OperationMethod<UploadUsersRequest, UploadUsersResponse, UploadUsersError, SlackOpContext>;
|
|
2796
3003
|
//# sourceMappingURL=admin.d.ts.map
|