@distilled.cloud/slack 1.0.0-rc.18 → 1.0.0-rc.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/protocol.d.ts +2 -1
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/admin.d.ts +594 -356
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +149 -140
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts +89 -97
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +1 -1
- package/lib/services/agents.js.map +1 -1
- package/lib/services/api.d.ts +2 -2
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +1 -1
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts +74 -74
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +32 -32
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +55 -46
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +1 -1
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts +27 -27
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +1 -1
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts +3 -3
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +1 -1
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts +19 -19
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +1 -1
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts +23 -23
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +1 -1
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts +10 -10
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +1 -1
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts +18 -18
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +1 -1
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts +103 -103
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +1 -1
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts +109 -103
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +38 -38
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.js +1 -1
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts +14 -14
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +1 -1
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts +6 -6
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +1 -1
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts +14 -14
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +1 -1
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts +106 -106
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +26 -26
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts +37 -37
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -1
- package/lib/services/functions.js.map +1 -1
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +1 -0
- package/lib/services/lists.d.ts +47 -45
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +1 -1
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts +3 -3
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +1 -1
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts +102 -102
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +1 -1
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts +40 -40
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +1 -1
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts +9 -9
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +1 -1
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts +23 -23
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +1 -1
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts +8 -8
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +1 -1
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts +11 -11
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +1 -1
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts +84 -80
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +1 -1
- package/lib/services/search.js.map +1 -1
- package/lib/services/slackbot.d.ts +366 -0
- package/lib/services/slackbot.d.ts.map +1 -0
- package/lib/services/slackbot.js +2 -0
- package/lib/services/slackbot.js.map +1 -0
- package/lib/services/stars.d.ts +16 -16
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +1 -1
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts +39 -37
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +1 -1
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.js +1 -1
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts +30 -30
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +1 -1
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts +37 -37
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +1 -1
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts +9 -9
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +1 -1
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts +16 -16
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +1 -1
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/admin.js +2 -2
- package/lib/services.lazy/apps.js +1 -1
- package/lib/services.lazy/conversations.js +1 -1
- package/lib/services.lazy/files.js +1 -1
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/slackbot.js +1 -0
- package/package.json +6 -6
- package/src/protocol.ts +3 -5
- package/src/services/admin.ts +1609 -1016
- package/src/services/agents.ts +93 -103
- package/src/services/api.ts +2 -2
- package/src/services/apps.ts +74 -74
- package/src/services/assistant.ts +88 -56
- package/src/services/auth.ts +27 -27
- package/src/services/blocks.ts +3 -3
- package/src/services/bookmarks.ts +19 -19
- package/src/services/bots.ts +23 -23
- package/src/services/calls.ts +10 -10
- package/src/services/canvases.ts +50 -46
- package/src/services/chat.ts +103 -103
- package/src/services/conversations.ts +126 -115
- package/src/services/dnd.ts +14 -14
- package/src/services/emoji.ts +6 -6
- package/src/services/entity.ts +14 -14
- package/src/services/files.ts +106 -106
- package/src/services/functions.ts +37 -37
- package/src/services/index.ts +1 -0
- package/src/services/lists.ts +49 -46
- package/src/services/migration.ts +3 -3
- package/src/services/oauth.ts +102 -102
- package/src/services/openid.ts +40 -40
- package/src/services/pins.ts +9 -9
- package/src/services/reactions.ts +23 -23
- package/src/services/reminders.ts +8 -8
- package/src/services/rtm.ts +11 -11
- package/src/services/search.ts +123 -130
- package/src/services/slackbot.ts +766 -0
- package/src/services/stars.ts +16 -16
- package/src/services/team.ts +42 -37
- package/src/services/usergroups.ts +30 -30
- package/src/services/users.ts +37 -37
- package/src/services/views.ts +9 -9
- package/src/services/workflows.ts +16 -16
|
@@ -29,15 +29,15 @@ export interface AcceptSharedInviteRequest {
|
|
|
29
29
|
/** Name of the channel. If the channel does not exist already in your workspace, this name is the one that the channel will take. */
|
|
30
30
|
channel_name: string;
|
|
31
31
|
/** Whether the channel should be private. */
|
|
32
|
-
is_private?: boolean;
|
|
32
|
+
is_private?: boolean | undefined;
|
|
33
33
|
/** Whether you'd like to use your workspace's free trial to begin using Slack Connect. */
|
|
34
|
-
free_trial_accepted?: boolean;
|
|
34
|
+
free_trial_accepted?: boolean | undefined;
|
|
35
35
|
/** ID of the invite that you'd like to accept. Must provide either `invite_id` or `channel_id`. See the [`shared_channel_invite_received`](/reference/events/shared_channel_invite_received) event payload for more details on how to retrieve the ID of the invitation. */
|
|
36
|
-
invite_id?: string;
|
|
36
|
+
invite_id?: string | undefined;
|
|
37
37
|
/** ID of the channel that you'd like to accept. Must provide either `invite_id` or `channel_id`. */
|
|
38
|
-
channel_id?: string;
|
|
38
|
+
channel_id?: string | undefined;
|
|
39
39
|
/** The ID of the workspace to accept the channel in. If an org-level token is used to call this method, the `team_id` argument is required. */
|
|
40
|
-
team_id?: string;
|
|
40
|
+
team_id?: string | undefined;
|
|
41
41
|
}
|
|
42
42
|
export interface AcceptSharedInviteResponse {
|
|
43
43
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -60,24 +60,24 @@ export interface ApproveRequestSharedInviteRequest {
|
|
|
60
60
|
/** ID of the requested shared channel invite to approve. */
|
|
61
61
|
invite_id: string;
|
|
62
62
|
/** Optional boolean on whether the invited team will have post-only permissions in the channel. Will override the value on the requested invite. */
|
|
63
|
-
is_external_limited?: boolean;
|
|
63
|
+
is_external_limited?: boolean | undefined;
|
|
64
64
|
/** Optional channel_id to which external user will be invited to. Will override the value on the requested invite. */
|
|
65
|
-
channel_id?: string;
|
|
65
|
+
channel_id?: string | undefined;
|
|
66
66
|
/** Object describing the text to send along with the invite. If this object is specified, both `text` and `is_override` are required properties. If `is_override` is set to `true`, `text` will override the original invitation message. Otherwise, `text` will be appended to the original invitation message. The total length of the message cannot exceed 560 characters. If `is_override` is set to `false`, the length of `text` and the user specified message on the invite request in total must be less than 560 characters. */
|
|
67
|
-
message?: ApproveRequestSharedInviteRequestMessage;
|
|
67
|
+
message?: ApproveRequestSharedInviteRequestMessage | undefined;
|
|
68
68
|
}
|
|
69
69
|
export interface ApproveRequestSharedInviteResponse {
|
|
70
70
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
71
71
|
ok: boolean;
|
|
72
72
|
invite_id: string;
|
|
73
|
-
confirmation_code?: string;
|
|
74
|
-
url?: string;
|
|
73
|
+
confirmation_code?: string | undefined;
|
|
74
|
+
url?: string | undefined;
|
|
75
75
|
}
|
|
76
76
|
export interface ApproveSharedInviteRequest {
|
|
77
77
|
/** ID of the shared channel invite to approve */
|
|
78
78
|
invite_id: string;
|
|
79
79
|
/** The team or enterprise ID of the receiving party involved in the invitation you are approving */
|
|
80
|
-
target_team?: string;
|
|
80
|
+
target_team?: string | undefined;
|
|
81
81
|
}
|
|
82
82
|
export interface ApproveSharedInviteResponse {
|
|
83
83
|
ok: boolean;
|
|
@@ -97,30 +97,30 @@ export interface ConversationsCloseRequest {
|
|
|
97
97
|
export interface ConversationsCloseResponse {
|
|
98
98
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
99
99
|
ok: boolean;
|
|
100
|
-
already_closed?: boolean;
|
|
101
|
-
no_op?: boolean;
|
|
100
|
+
already_closed?: boolean | undefined;
|
|
101
|
+
no_op?: boolean | undefined;
|
|
102
102
|
}
|
|
103
103
|
export interface ConversationsHistoryRequest {
|
|
104
104
|
/** Conversation ID to fetch history for. */
|
|
105
105
|
channel: string;
|
|
106
106
|
/** 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](/apis/web-api/pagination) for more detail. */
|
|
107
|
-
cursor?: string;
|
|
107
|
+
cursor?: string | undefined;
|
|
108
108
|
/** Return all metadata associated with this message. */
|
|
109
|
-
include_all_metadata?: boolean;
|
|
109
|
+
include_all_metadata?: boolean | undefined;
|
|
110
110
|
/** Include messages with `oldest` or `latest` timestamps in results. Ignored unless either timestamp is specified. */
|
|
111
|
-
inclusive?: boolean;
|
|
111
|
+
inclusive?: boolean | undefined;
|
|
112
112
|
/** Only messages before this Unix timestamp will be included in results. Default is the current time. */
|
|
113
|
-
latest?: string;
|
|
113
|
+
latest?: string | undefined;
|
|
114
114
|
/** The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the conversation history hasn't been reached. Maximum of 999. */
|
|
115
|
-
limit?: number;
|
|
115
|
+
limit?: number | undefined;
|
|
116
116
|
/** Only messages after this Unix timestamp will be included in results. */
|
|
117
|
-
oldest?: string;
|
|
117
|
+
oldest?: string | undefined;
|
|
118
118
|
}
|
|
119
119
|
export type ConversationsHistoryResponseMessagesList = Array<unknown>;
|
|
120
120
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
121
121
|
export interface ConversationsHistoryResponseResponseMetadata {
|
|
122
122
|
/** Cursor for the next page -- pass as `cursor` on the next call. */
|
|
123
|
-
next_cursor?: string;
|
|
123
|
+
next_cursor?: string | undefined;
|
|
124
124
|
}
|
|
125
125
|
export type ConversationsHistoryResponseUsersMap = { [key: string]: unknown | undefined };
|
|
126
126
|
export type ConversationsHistoryResponseDeletedList = Array<string>;
|
|
@@ -137,50 +137,52 @@ export interface ConversationsHistoryResponse {
|
|
|
137
137
|
ok: boolean;
|
|
138
138
|
messages: ConversationsHistoryResponseMessagesList;
|
|
139
139
|
has_more: boolean;
|
|
140
|
-
pin_count?: number;
|
|
140
|
+
pin_count?: number | undefined;
|
|
141
141
|
channel_actions_ts: unknown;
|
|
142
142
|
channel_actions_count: number;
|
|
143
143
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
144
|
-
response_metadata?: ConversationsHistoryResponseResponseMetadata;
|
|
145
|
-
oldest?: string;
|
|
146
|
-
is_limited?: boolean;
|
|
147
|
-
latest?: string;
|
|
148
|
-
unread_count_display?: number;
|
|
149
|
-
users?: ConversationsHistoryResponseUsersMap;
|
|
150
|
-
deleted?: ConversationsHistoryResponseDeletedList;
|
|
151
|
-
mutation_timestamps?: ConversationsHistoryResponseMutationTimestamps;
|
|
152
|
-
deleted_overflow?: boolean;
|
|
153
|
-
warnings?: ConversationsHistoryResponseWarningsList;
|
|
154
|
-
next_ts?: number;
|
|
155
|
-
latest_updates?: ConversationsHistoryResponseLatestUpdatesMap;
|
|
156
|
-
unchanged_messages?: ConversationsHistoryResponseUnchangedMessagesList;
|
|
144
|
+
response_metadata?: ConversationsHistoryResponseResponseMetadata | undefined;
|
|
145
|
+
oldest?: string | undefined;
|
|
146
|
+
is_limited?: boolean | undefined;
|
|
147
|
+
latest?: string | undefined;
|
|
148
|
+
unread_count_display?: number | undefined;
|
|
149
|
+
users?: ConversationsHistoryResponseUsersMap | undefined;
|
|
150
|
+
deleted?: ConversationsHistoryResponseDeletedList | undefined;
|
|
151
|
+
mutation_timestamps?: ConversationsHistoryResponseMutationTimestamps | undefined;
|
|
152
|
+
deleted_overflow?: boolean | undefined;
|
|
153
|
+
warnings?: ConversationsHistoryResponseWarningsList | undefined;
|
|
154
|
+
next_ts?: number | undefined;
|
|
155
|
+
latest_updates?: ConversationsHistoryResponseLatestUpdatesMap | undefined;
|
|
156
|
+
unchanged_messages?: ConversationsHistoryResponseUnchangedMessagesList | undefined;
|
|
157
157
|
/** Unix timestamp of when the user joined the channel */
|
|
158
|
-
date_joined?: number;
|
|
158
|
+
date_joined?: number | undefined;
|
|
159
159
|
}
|
|
160
160
|
export interface ConversationsInfoRequest {
|
|
161
161
|
/** Conversation ID to learn more about */
|
|
162
162
|
channel: string;
|
|
163
163
|
/** Set this to `true` to receive the locale for this conversation. Defaults to `false` */
|
|
164
|
-
include_locale?: boolean;
|
|
164
|
+
include_locale?: boolean | undefined;
|
|
165
165
|
/** Set to `true` to include the member count for the specified conversation. Defaults to `false` */
|
|
166
|
-
include_num_members?: boolean;
|
|
166
|
+
include_num_members?: boolean | undefined;
|
|
167
167
|
}
|
|
168
168
|
export interface ConversationsInfoResponse {
|
|
169
169
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
170
170
|
ok: boolean;
|
|
171
|
-
app_home?: unknown;
|
|
171
|
+
app_home?: unknown | undefined;
|
|
172
172
|
channel: unknown;
|
|
173
|
-
home_view?: unknown | null;
|
|
173
|
+
home_view?: unknown | null | undefined;
|
|
174
174
|
}
|
|
175
175
|
export interface ConversationsKickRequest {
|
|
176
176
|
/** ID of conversation to remove user from. */
|
|
177
177
|
channel: string;
|
|
178
178
|
/** User ID to be removed. */
|
|
179
|
-
user?: string;
|
|
179
|
+
user?: string | undefined;
|
|
180
180
|
}
|
|
181
|
+
export type ConversationsKickResponseErrorsMap = { [key: string]: unknown | undefined };
|
|
181
182
|
export interface ConversationsKickResponse {
|
|
182
183
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
183
184
|
ok: boolean;
|
|
185
|
+
errors?: ConversationsKickResponseErrorsMap | undefined;
|
|
184
186
|
}
|
|
185
187
|
export interface ConversationsMarkRequest {
|
|
186
188
|
/** Channel or conversation to set the read cursor for. */
|
|
@@ -196,9 +198,9 @@ export interface ConversationsMembersRequest {
|
|
|
196
198
|
/** ID of the conversation to retrieve members for */
|
|
197
199
|
channel: string;
|
|
198
200
|
/** 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](/apis/web-api/pagination) for more detail. */
|
|
199
|
-
cursor?: string;
|
|
201
|
+
cursor?: string | undefined;
|
|
200
202
|
/** The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached. */
|
|
201
|
-
limit?: number;
|
|
203
|
+
limit?: number | undefined;
|
|
202
204
|
}
|
|
203
205
|
export type ConversationsMembersResponseMembersList = Array<string>;
|
|
204
206
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -209,42 +211,42 @@ export interface ConversationsMembersResponse {
|
|
|
209
211
|
ok: boolean;
|
|
210
212
|
members: ConversationsMembersResponseMembersList;
|
|
211
213
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
212
|
-
response_metadata?: ConversationsHistoryResponseResponseMetadata;
|
|
214
|
+
response_metadata?: ConversationsHistoryResponseResponseMetadata | undefined;
|
|
213
215
|
}
|
|
214
216
|
export interface ConversationsOpenRequest {
|
|
215
217
|
/** Resume a conversation by supplying an `im` or `mpim`'s ID. Or provide the `users` field instead. */
|
|
216
|
-
channel?: string | null;
|
|
218
|
+
channel?: string | null | undefined;
|
|
217
219
|
/** Boolean, indicates you want the full IM channel definition in the response. */
|
|
218
|
-
return_im?: boolean;
|
|
220
|
+
return_im?: boolean | undefined;
|
|
219
221
|
/** Comma separated lists of users. If only one user is included, this creates a 1:1 DM. The ordering of the users is preserved whenever a multi-person direct message is returned. Supply a `channel` when not supplying `users`. */
|
|
220
|
-
users?: string;
|
|
222
|
+
users?: string | undefined;
|
|
221
223
|
/** Do not create a direct message or multi-person direct message. This is used to see if there is an existing dm or mpdm. */
|
|
222
|
-
prevent_creation?: boolean;
|
|
224
|
+
prevent_creation?: boolean | undefined;
|
|
223
225
|
}
|
|
224
226
|
export interface ConversationsOpenResponse {
|
|
225
227
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
226
228
|
ok: boolean;
|
|
227
|
-
already_open?: boolean;
|
|
228
|
-
no_op?: boolean;
|
|
229
|
-
channel?: unknown;
|
|
230
|
-
app_home?: unknown;
|
|
231
|
-
home_view?: unknown | null;
|
|
229
|
+
already_open?: boolean | undefined;
|
|
230
|
+
no_op?: boolean | undefined;
|
|
231
|
+
channel?: unknown | undefined;
|
|
232
|
+
app_home?: unknown | undefined;
|
|
233
|
+
home_view?: unknown | null | undefined;
|
|
232
234
|
}
|
|
233
235
|
export interface ConversationsRepliesRequest {
|
|
234
236
|
/** Conversation ID to fetch thread from. */
|
|
235
237
|
channel: string;
|
|
236
238
|
/** 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](/apis/web-api/pagination) for more detail. */
|
|
237
|
-
cursor?: string;
|
|
239
|
+
cursor?: string | undefined;
|
|
238
240
|
/** Return all metadata associated with this message. */
|
|
239
|
-
include_all_metadata?: boolean;
|
|
241
|
+
include_all_metadata?: boolean | undefined;
|
|
240
242
|
/** Include messages with `oldest` or `latest` timestamps in results. Ignored unless either timestamp is specified. */
|
|
241
|
-
inclusive?: boolean;
|
|
243
|
+
inclusive?: boolean | undefined;
|
|
242
244
|
/** Only messages before this Unix timestamp will be included in results. */
|
|
243
|
-
latest?: string;
|
|
245
|
+
latest?: string | undefined;
|
|
244
246
|
/** The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached. */
|
|
245
|
-
limit?: number;
|
|
247
|
+
limit?: number | undefined;
|
|
246
248
|
/** Only messages after this Unix timestamp will be included in results. */
|
|
247
|
-
oldest?: string;
|
|
249
|
+
oldest?: string | undefined;
|
|
248
250
|
/** Unique identifier of either a thread's parent message or a message in the thread. `ts` must be the timestamp of an existing message with 0 or more replies. If there are no replies then just the single message referenced by `ts` will return - it is just an ordinary, unthreaded message. */
|
|
249
251
|
ts: string;
|
|
250
252
|
}
|
|
@@ -257,20 +259,20 @@ export type ConversationsRepliesResponseResponseMetadata =
|
|
|
257
259
|
export interface ConversationsRepliesResponse {
|
|
258
260
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
259
261
|
ok: boolean;
|
|
260
|
-
has_more?: boolean;
|
|
262
|
+
has_more?: boolean | undefined;
|
|
261
263
|
messages: ConversationsRepliesResponseMessagesList;
|
|
262
|
-
latest_updates?: ConversationsRepliesResponseLatestUpdatesMap;
|
|
263
|
-
unchanged_messages?: ConversationsRepliesResponseUnchangedMessagesList;
|
|
264
|
+
latest_updates?: ConversationsRepliesResponseLatestUpdatesMap | undefined;
|
|
265
|
+
unchanged_messages?: ConversationsRepliesResponseUnchangedMessagesList | undefined;
|
|
264
266
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
265
|
-
response_metadata?: ConversationsHistoryResponseResponseMetadata;
|
|
267
|
+
response_metadata?: ConversationsHistoryResponseResponseMetadata | undefined;
|
|
266
268
|
}
|
|
267
269
|
export interface CreateCanvaseRequest {
|
|
268
270
|
/** Channel ID of the channel the canvas will be tabbed in. */
|
|
269
271
|
channel_id: string;
|
|
270
272
|
/** Structure describing the type and value of the content to create. The markdown content is limited to 1 MiB (1,048,576 characters). */
|
|
271
|
-
document_content?: unknown;
|
|
273
|
+
document_content?: unknown | undefined;
|
|
272
274
|
/** Title of the newly created canvas */
|
|
273
|
-
title?: string;
|
|
275
|
+
title?: string | undefined;
|
|
274
276
|
}
|
|
275
277
|
export interface CreateCanvaseResponse {
|
|
276
278
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -280,11 +282,11 @@ export interface CreateCanvaseResponse {
|
|
|
280
282
|
}
|
|
281
283
|
export interface CreateConversationRequest {
|
|
282
284
|
/** Create a private channel instead of a public one */
|
|
283
|
-
is_private?: boolean;
|
|
285
|
+
is_private?: boolean | undefined;
|
|
284
286
|
/** Name of the public or private channel to create */
|
|
285
287
|
name: string;
|
|
286
288
|
/** encoded team id to create the channel in, required if org token is used */
|
|
287
|
-
team_id?: string | null;
|
|
289
|
+
team_id?: string | null | undefined;
|
|
288
290
|
}
|
|
289
291
|
export interface CreateConversationResponse {
|
|
290
292
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -295,7 +297,7 @@ export interface InviteConversationRequest {
|
|
|
295
297
|
/** The ID of the public or private channel to invite user(s) to. */
|
|
296
298
|
channel: string;
|
|
297
299
|
/** When set to `true` and multiple user IDs are provided, continue inviting the valid ones while disregarding invalid IDs. Defaults to `false`. */
|
|
298
|
-
force?: boolean;
|
|
300
|
+
force?: boolean | undefined;
|
|
299
301
|
/** A comma separated list of user IDs. Up to 1000 users may be listed. */
|
|
300
302
|
users: string;
|
|
301
303
|
}
|
|
@@ -303,15 +305,15 @@ export type InviteConversationResponseErrorsList = Array<unknown>;
|
|
|
303
305
|
export interface InviteConversationResponse {
|
|
304
306
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
305
307
|
ok: boolean;
|
|
306
|
-
channel?: unknown;
|
|
307
|
-
group?: unknown;
|
|
308
|
-
errors?: InviteConversationResponseErrorsList;
|
|
308
|
+
channel?: unknown | undefined;
|
|
309
|
+
group?: unknown | undefined;
|
|
310
|
+
errors?: InviteConversationResponseErrorsList | undefined;
|
|
309
311
|
}
|
|
310
312
|
export interface InviteDeclineSharedRequest {
|
|
311
313
|
/** ID of the Slack Connect invite to decline. Subscribe to the [`shared_channel_invite_accepted`](/reference/events/shared_channel_invite_accepted) event to receive IDs of Slack Connect channel invites that have been accepted and are awaiting approval. */
|
|
312
314
|
invite_id: string;
|
|
313
315
|
/** The team or enterprise id of the other party involved in the invitation you are declining */
|
|
314
|
-
target_team?: string;
|
|
316
|
+
target_team?: string | undefined;
|
|
315
317
|
}
|
|
316
318
|
export interface InviteDeclineSharedResponse {
|
|
317
319
|
ok: boolean;
|
|
@@ -324,19 +326,21 @@ export interface InviteSharedRequest {
|
|
|
324
326
|
/** ID of the channel on your team that you'd like to share */
|
|
325
327
|
channel: string;
|
|
326
328
|
/** Optional email to receive this invite. Either `emails` or `user_ids` must be provided. Only one email or one user ID may be invited at a time. */
|
|
327
|
-
emails?: InviteSharedRequestEmailsList;
|
|
329
|
+
emails?: InviteSharedRequestEmailsList | undefined;
|
|
328
330
|
/** Optional user_id to receive this invite. Either `emails` or `user_ids` must be provided. Only one email or one user ID may be invited at a time. */
|
|
329
|
-
user_ids?: InviteSharedRequestUserIdsList;
|
|
331
|
+
user_ids?: InviteSharedRequestUserIdsList | undefined;
|
|
330
332
|
/** Optional boolean on whether invite is to an external limited member. Defaults to `true`. */
|
|
331
|
-
external_limited?: boolean;
|
|
333
|
+
external_limited?: boolean | undefined;
|
|
332
334
|
}
|
|
333
335
|
export interface InviteSharedResponse {
|
|
334
336
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
335
337
|
ok: boolean;
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
/** Signed accept link for the invite. Omitted for invites addressed to `emails` or `user_ids` (the link is delivered to the recipient directly) and for `external_limited` invites. */
|
|
339
|
+
url?: string | undefined;
|
|
340
|
+
invite_id?: string | undefined;
|
|
341
|
+
/** Confirmation code for the invite. Omitted for invites addressed to `emails` or `user_ids` (it is delivered to the recipient directly) and for `external_limited` invites. */
|
|
342
|
+
conf_code?: string | undefined;
|
|
343
|
+
is_legacy_shared_channel?: boolean | undefined;
|
|
340
344
|
}
|
|
341
345
|
export interface JoinConversationRequest {
|
|
342
346
|
/** ID of conversation to join */
|
|
@@ -344,13 +348,13 @@ export interface JoinConversationRequest {
|
|
|
344
348
|
}
|
|
345
349
|
export type JoinConversationResponseResponseMetadataWarningsList = Array<string>;
|
|
346
350
|
export interface JoinConversationResponseResponseMetadata {
|
|
347
|
-
warnings?: JoinConversationResponseResponseMetadataWarningsList;
|
|
351
|
+
warnings?: JoinConversationResponseResponseMetadataWarningsList | undefined;
|
|
348
352
|
}
|
|
349
353
|
export interface JoinConversationResponse {
|
|
350
354
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
351
355
|
ok: boolean;
|
|
352
356
|
channel: unknown;
|
|
353
|
-
response_metadata?: JoinConversationResponseResponseMetadata;
|
|
357
|
+
response_metadata?: JoinConversationResponseResponseMetadata | undefined;
|
|
354
358
|
}
|
|
355
359
|
export interface LeaveConversationRequest {
|
|
356
360
|
/** Conversation to leave */
|
|
@@ -359,15 +363,15 @@ export interface LeaveConversationRequest {
|
|
|
359
363
|
export interface LeaveConversationResponse {
|
|
360
364
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
361
365
|
ok: boolean;
|
|
362
|
-
not_in_channel?: boolean;
|
|
366
|
+
not_in_channel?: boolean | undefined;
|
|
363
367
|
}
|
|
364
368
|
export interface ListConnectInvitesRequest {
|
|
365
369
|
/** Encoded team id for the workspace to retrieve invites for, required if org token is used */
|
|
366
|
-
team_id?: string;
|
|
370
|
+
team_id?: string | undefined;
|
|
367
371
|
/** Maximum number of invites to return */
|
|
368
|
-
count?: number;
|
|
372
|
+
count?: number | undefined;
|
|
369
373
|
/** Set to `next_cursor` returned by previous call to list items in subsequent page */
|
|
370
|
-
cursor?: string;
|
|
374
|
+
cursor?: string | undefined;
|
|
371
375
|
}
|
|
372
376
|
export type ListConnectInvitesResponseInvitesList = Array<unknown>;
|
|
373
377
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -378,19 +382,19 @@ export interface ListConnectInvitesResponse {
|
|
|
378
382
|
ok: boolean;
|
|
379
383
|
invites: ListConnectInvitesResponseInvitesList;
|
|
380
384
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
381
|
-
response_metadata?: ConversationsHistoryResponseResponseMetadata;
|
|
385
|
+
response_metadata?: ConversationsHistoryResponseResponseMetadata | undefined;
|
|
382
386
|
}
|
|
383
387
|
export interface ListConversationsRequest {
|
|
384
388
|
/** 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](/apis/web-api/pagination) for more detail. */
|
|
385
|
-
cursor?: string;
|
|
389
|
+
cursor?: string | undefined;
|
|
386
390
|
/** Set to `true` to exclude archived channels from the list. */
|
|
387
|
-
exclude_archived?: boolean;
|
|
391
|
+
exclude_archived?: boolean | undefined;
|
|
388
392
|
/** The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached. Must be an integer under 1000. */
|
|
389
|
-
limit?: number;
|
|
393
|
+
limit?: number | undefined;
|
|
390
394
|
/** encoded team id to list channels in, required if token belongs to org-wide app */
|
|
391
|
-
team_id?: string;
|
|
395
|
+
team_id?: string | undefined;
|
|
392
396
|
/** Mix and match channel types by providing a comma-separated list of any combination of `public_channel`, `private_channel`, `mpim`, `im` */
|
|
393
|
-
types?: string;
|
|
397
|
+
types?: string | undefined;
|
|
394
398
|
}
|
|
395
399
|
export type ListConversationsResponseChannelsList = Array<unknown>;
|
|
396
400
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -401,25 +405,25 @@ export interface ListConversationsResponse {
|
|
|
401
405
|
ok: boolean;
|
|
402
406
|
channels: ListConversationsResponseChannelsList;
|
|
403
407
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
404
|
-
response_metadata?: ConversationsHistoryResponseResponseMetadata;
|
|
408
|
+
response_metadata?: ConversationsHistoryResponseResponseMetadata | undefined;
|
|
405
409
|
}
|
|
406
410
|
/** An optional list of invitation ids to look up */
|
|
407
411
|
export type ListRequestSharedInviteRequestInviteIdsList = Array<string>;
|
|
408
412
|
export interface ListRequestSharedInviteRequest {
|
|
409
413
|
/** Optional filter to return invitation requests for the inviting user. */
|
|
410
|
-
user_id?: string;
|
|
414
|
+
user_id?: string | undefined;
|
|
411
415
|
/** When true expired invitation requests will be returned, otherwise they will be excluded */
|
|
412
|
-
include_expired?: boolean;
|
|
416
|
+
include_expired?: boolean | undefined;
|
|
413
417
|
/** When true approved invitation requests will be returned, otherwise they will be excluded */
|
|
414
|
-
include_approved?: boolean;
|
|
418
|
+
include_approved?: boolean | undefined;
|
|
415
419
|
/** When true denied invitation requests will be returned, otherwise they will be excluded */
|
|
416
|
-
include_denied?: boolean;
|
|
420
|
+
include_denied?: boolean | undefined;
|
|
417
421
|
/** An optional list of invitation ids to look up */
|
|
418
|
-
invite_ids?: ListRequestSharedInviteRequestInviteIdsList;
|
|
422
|
+
invite_ids?: ListRequestSharedInviteRequestInviteIdsList | undefined;
|
|
419
423
|
/** The number of items to return. Must be between 1 - 1000 (inclusive). */
|
|
420
|
-
limit?: number;
|
|
424
|
+
limit?: number | undefined;
|
|
421
425
|
/** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. See [pagination](/apis/web-api/pagination) for more detail. */
|
|
422
|
-
cursor?: string;
|
|
426
|
+
cursor?: string | undefined;
|
|
423
427
|
}
|
|
424
428
|
export type ListRequestSharedInviteResponseInviteRequestsList = Array<unknown>;
|
|
425
429
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
@@ -430,7 +434,7 @@ export interface ListRequestSharedInviteResponse {
|
|
|
430
434
|
ok: boolean;
|
|
431
435
|
invite_requests: ListRequestSharedInviteResponseInviteRequestsList;
|
|
432
436
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
433
|
-
response_metadata?: ConversationsHistoryResponseResponseMetadata;
|
|
437
|
+
response_metadata?: ConversationsHistoryResponseResponseMetadata | undefined;
|
|
434
438
|
}
|
|
435
439
|
export interface RenameConversationRequest {
|
|
436
440
|
/** ID of conversation to rename */
|
|
@@ -447,7 +451,7 @@ export interface RequestSharedInviteDenyRequest {
|
|
|
447
451
|
/** ID of the requested shared channel invite to deny. */
|
|
448
452
|
invite_id: string;
|
|
449
453
|
/** Optional message explaining why the request to invite was denied. */
|
|
450
|
-
message?: string;
|
|
454
|
+
message?: string | undefined;
|
|
451
455
|
}
|
|
452
456
|
export interface RequestSharedInviteDenyResponse {
|
|
453
457
|
ok: boolean;
|
|
@@ -634,7 +638,7 @@ export const conversationsKick: API.OperationMethod<
|
|
|
634
638
|
SlackOpContext
|
|
635
639
|
> = /*@__PURE__*/ API.make(() => ({
|
|
636
640
|
input: __S(124, __c31, 0) as any as S.Schema<ConversationsKickRequest>,
|
|
637
|
-
output: __S(
|
|
641
|
+
output: __S(125, __c31, 1) as any as S.Schema<ConversationsKickResponse>,
|
|
638
642
|
errors: [SlackError, SlackRateLimited],
|
|
639
643
|
protocol: SlackProtocol,
|
|
640
644
|
retry: Retry.Retry,
|
|
@@ -733,7 +737,7 @@ export const conversationsReplies: API.PaginatedOperationMethod<
|
|
|
733
737
|
) as any;
|
|
734
738
|
|
|
735
739
|
export type CreateCanvaseError = SlackOpError;
|
|
736
|
-
/** Create a channel canvas for a channel Required scopes -- bot: `canvases:write`; user: `canvases:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `canvas_disabled_user_team` -- Canvas is disabled on user's team - `restricted_action` -- User does not have permission to perform this action. - `channel_canvas_creation_failed` -- Channel canvas was unable to be created. - `channel_canvas_already_exists` -- Channel canvas for the specified channel already exists. - `team_tier_cannot_create_channel_canvases` -- Team tier cannot create channel canvases - `canvas_creation_failed` -- Canvas was unable to be created. - `canvas_tab_creation_failed` -- Canvas tab was unable to be created. - `free_team_canvas_tab_already_exists` -- Canvas tab for specified channel and team tier already exists. - `posting_to_channel_denied` -- Permission to post to a channel denied See https://docs.slack.dev/reference/methods/conversations.canvases.create */
|
|
740
|
+
/** Create a channel canvas for a channel Required scopes -- bot: `canvases:write`; user: `canvases:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `canvas_disabled_user_team` -- Canvas is disabled on user's team - `restricted_action` -- User does not have permission to perform this action. - `channel_canvas_creation_failed` -- Channel canvas was unable to be created. - `channel_canvas_already_exists` -- Channel canvas for the specified channel already exists. - `team_tier_cannot_create_channel_canvases` -- Team tier cannot create channel canvases - `canvas_creation_failed` -- Canvas was unable to be created. - `canvas_tab_creation_failed` -- Canvas tab was unable to be created. - `free_team_canvas_tab_already_exists` -- Canvas tab for specified channel and team tier already exists. - `posting_to_channel_denied` -- Permission to post to a channel denied - `channel_not_found` -- Value passed for `channel_id` was invalid. See https://docs.slack.dev/reference/methods/conversations.canvases.create */
|
|
737
741
|
export const createCanvase: API.OperationMethod<
|
|
738
742
|
CreateCanvaseRequest,
|
|
739
743
|
CreateCanvaseResponse,
|
|
@@ -801,7 +805,7 @@ export const inviteDeclineShared: API.OperationMethod<
|
|
|
801
805
|
}));
|
|
802
806
|
|
|
803
807
|
export type InviteSharedError = SlackOpError;
|
|
804
|
-
/** Sends an invitation to a Slack Connect channel Required scopes -- bot: `conversations.connect:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_in_channel` -- User is already in the channel. - `cannot_share_cross_workspace_channel` -- You cannot share a cross-workspace or org-wide channel. - `cannot_share_mandatory_channel` -- You cannot share #general or mandatory channels. - `channel_archived` -- You cannot share an archived channel. - `channel_not_found` -- The channel provided was not found. - `connection_limit_exceeded` -- This channel has hit the limit of external connections. - `connection_limit_exceeded_pending` -- This channel already has a pending invite. - `invalid_channel_type` -- You cannot share MPDMs or DMs. - `invalid_email` -- At least one email address provided is invalid. - `invite_lookup_error` -- An error occurred while attempting to look for existing invites. - `invite_not_found` -- An error occurred while inviting users. - `legacy_connection_limit_exceeded` -- You cannot share a legacy ESC channel with a third team - `member_limit_exceeded` -- This channel that has hit the limit of members - `message_too_long` -- The provided message was longer than 560 characters. - `not_allowed_for_grid_workspace` -- This workspace does not have Slack Connect enabled. - `not_in_channel` -- The app is not a member of the channel to invite. - `not_owner` -- Only the host organization for a channel can request to share it. - `not_paid` -- This feature is only available to paid teams. - `not_supported` -- This channel cannot be shared. - `ratelimit` -- The rate-limit for this method has been reached. The ratelimit is applied on a per-user basis when you pass the `emails` parameter. - `recipients_not_specified` -- Bots are required to specify which users to invite. - `restricted_action` -- A team preference does not allow this authorization to send invites. - `too_many_emails` -- Too many email recipients were passed in the `emails` parameter. - `url_in_message` -- The message contained a URL. - `user_not_found` -- User lookup failed. - `no_external_invite_permission` -- User does not have permission to invite an external user. See https://docs.slack.dev/reference/methods/conversations.inviteShared */
|
|
808
|
+
/** Sends an invitation to a Slack Connect channel Required scopes -- bot: `conversations.connect:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_in_channel` -- User is already in the channel. - `cannot_share_cross_workspace_channel` -- You cannot share a cross-workspace or org-wide channel. - `cannot_share_mandatory_channel` -- You cannot share #general or mandatory channels. - `channel_archived` -- You cannot share an archived channel. - `channel_not_found` -- The channel provided was not found. - `connection_limit_exceeded` -- This channel has hit the limit of external connections. - `connection_limit_exceeded_pending` -- This channel already has a pending invite. - `invalid_channel_type` -- You cannot share MPDMs or DMs. - `invalid_email` -- At least one email address provided is invalid. - `invite_lookup_error` -- An error occurred while attempting to look for existing invites. - `invite_not_found` -- An error occurred while inviting users. - `legacy_connection_limit_exceeded` -- You cannot share a legacy ESC channel with a third team - `member_limit_exceeded` -- This channel that has hit the limit of members - `message_too_long` -- The provided message was longer than 560 characters. - `not_allowed_for_grid_workspace` -- This workspace does not have Slack Connect enabled. - `not_in_channel` -- The app is not a member of the channel to invite. - `not_owner` -- Only the host organization for a channel can request to share it. - `not_paid` -- This feature is only available to paid teams. - `not_supported` -- This channel cannot be shared. - `ratelimit` -- The rate-limit for this method has been reached. The ratelimit is applied on a per-user basis when you pass the `emails` parameter. - `recipients_not_specified` -- Bots are required to specify which users to invite. - `restricted_action` -- A team preference does not allow this authorization to send invites. - `too_many_emails` -- Too many email recipients were passed in the `emails` parameter. - `url_in_message` -- The message contained a URL. - `user_not_found` -- User lookup failed. - `no_external_invite_permission` -- User does not have permission to invite an external user. - `inviter_email_not_verified` -- The inviting user has not verified the email address on their own account. They must verify it before they can send Slack Connect invites, since the invite presents that address as theirs. See https://docs.slack.dev/reference/methods/conversations.inviteShared */
|
|
805
809
|
export const inviteShared: API.OperationMethod<
|
|
806
810
|
InviteSharedRequest,
|
|
807
811
|
InviteSharedResponse,
|
|
@@ -969,7 +973,7 @@ export const requestSharedInviteDeny: API.OperationMethod<
|
|
|
969
973
|
}));
|
|
970
974
|
|
|
971
975
|
export type SetExternalInvitePermissionsError = SlackOpError;
|
|
972
|
-
/** Upgrade or downgrade Slack Connect channel permissions between 'can post only' and 'can post and invite'. Required scopes -- bot: `conversations.connect:manage` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Cannot find channel - `not_supported` -- Attempting to upgrade a channel that cannot be upgraded - `restricted_action` -- A team preference prevents the user from taking this action. - `invalid_target_team` -- The target team provided is not valid for the channel. - `invalid_action` -- The user did not
|
|
976
|
+
/** Upgrade or downgrade Slack Connect channel permissions between 'can post only' and 'can post and invite'. Required scopes -- bot: `conversations.connect:manage` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Cannot find channel - `not_supported` -- Attempting to upgrade a channel that cannot be upgraded - `restricted_action` -- A team preference prevents the user from taking this action. - `invalid_target_team` -- The target team provided is not valid for the channel. - `invalid_action` -- The user did not provide a valid action. Valid actions are 'upgrade' or 'downgrade'. See https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set */
|
|
973
977
|
export const setExternalInvitePermissions: API.OperationMethod<
|
|
974
978
|
SetExternalInvitePermissionsRequest,
|
|
975
979
|
SetExternalInvitePermissionsResponse,
|
|
@@ -1137,8 +1141,8 @@ function __c3(j: number): any {
|
|
|
1137
1141
|
S.Struct({
|
|
1138
1142
|
ok: S.Boolean,
|
|
1139
1143
|
has_more: S.optional(S.Boolean),
|
|
1140
|
-
messages: __S(
|
|
1141
|
-
latest_updates: S.optional(__S(
|
|
1144
|
+
messages: __S(104, __c26, 0),
|
|
1145
|
+
latest_updates: S.optional(__S(108, __c27, 0)),
|
|
1142
1146
|
unchanged_messages: S.optional(__S(112, __c28, 0)),
|
|
1143
1147
|
response_metadata: S.optional(__S(116, __c29, 0)),
|
|
1144
1148
|
}),
|
|
@@ -1203,7 +1207,7 @@ function __c7(j: number): any {
|
|
|
1203
1207
|
ok: S.Boolean,
|
|
1204
1208
|
channel: S.optional(S.Unknown),
|
|
1205
1209
|
group: S.optional(S.Unknown),
|
|
1206
|
-
errors: S.optional(__S(
|
|
1210
|
+
errors: S.optional(__S(104, __c26, 0)),
|
|
1207
1211
|
}),
|
|
1208
1212
|
).annotate({ identifier: "InviteConversationResponse" });
|
|
1209
1213
|
}
|
|
@@ -1297,7 +1301,7 @@ function __c12(j: number): any {
|
|
|
1297
1301
|
return S.suspend(() =>
|
|
1298
1302
|
S.Struct({
|
|
1299
1303
|
ok: S.Boolean,
|
|
1300
|
-
invites: __S(
|
|
1304
|
+
invites: __S(104, __c26, 0),
|
|
1301
1305
|
response_metadata: S.optional(__S(116, __c29, 0)),
|
|
1302
1306
|
}),
|
|
1303
1307
|
).annotate({ identifier: "ListConnectInvitesResponse" });
|
|
@@ -1340,7 +1344,7 @@ function __c15(j: number): any {
|
|
|
1340
1344
|
return S.suspend(() =>
|
|
1341
1345
|
S.Struct({
|
|
1342
1346
|
ok: S.Boolean,
|
|
1343
|
-
channels: __S(
|
|
1347
|
+
channels: __S(104, __c26, 0),
|
|
1344
1348
|
response_metadata: S.optional(__S(116, __c29, 0)),
|
|
1345
1349
|
}),
|
|
1346
1350
|
).annotate({ identifier: "ListConversationsResponse" });
|
|
@@ -1366,7 +1370,7 @@ function __c16(j: number): any {
|
|
|
1366
1370
|
return S.suspend(() =>
|
|
1367
1371
|
S.Struct({
|
|
1368
1372
|
ok: S.Boolean,
|
|
1369
|
-
invite_requests: __S(
|
|
1373
|
+
invite_requests: __S(104, __c26, 0),
|
|
1370
1374
|
response_metadata: S.optional(__S(116, __c29, 0)),
|
|
1371
1375
|
}),
|
|
1372
1376
|
).annotate({ identifier: "ListRequestSharedInviteResponse" });
|
|
@@ -1501,7 +1505,7 @@ function __c25(j: number): any {
|
|
|
1501
1505
|
return S.suspend(() =>
|
|
1502
1506
|
S.Struct({
|
|
1503
1507
|
ok: S.Boolean,
|
|
1504
|
-
messages: __S(
|
|
1508
|
+
messages: __S(104, __c26, 0),
|
|
1505
1509
|
has_more: S.Boolean,
|
|
1506
1510
|
pin_count: S.optional(S.Number),
|
|
1507
1511
|
channel_actions_ts: S.Unknown,
|
|
@@ -1511,13 +1515,13 @@ function __c25(j: number): any {
|
|
|
1511
1515
|
is_limited: S.optional(S.Boolean),
|
|
1512
1516
|
latest: S.optional(S.String),
|
|
1513
1517
|
unread_count_display: S.optional(S.Number),
|
|
1514
|
-
users: S.optional(__S(
|
|
1518
|
+
users: S.optional(__S(108, __c27, 0)),
|
|
1515
1519
|
deleted: S.optional(__S(112, __c28, 0)),
|
|
1516
1520
|
mutation_timestamps: S.optional(__S(101, __c25, 1)),
|
|
1517
1521
|
deleted_overflow: S.optional(S.Boolean),
|
|
1518
1522
|
warnings: S.optional(__S(112, __c28, 0)),
|
|
1519
1523
|
next_ts: S.optional(S.Number),
|
|
1520
|
-
latest_updates: S.optional(__S(
|
|
1524
|
+
latest_updates: S.optional(__S(108, __c27, 0)),
|
|
1521
1525
|
unchanged_messages: S.optional(__S(112, __c28, 0)),
|
|
1522
1526
|
date_joined: S.optional(S.Number),
|
|
1523
1527
|
}),
|
|
@@ -1527,13 +1531,13 @@ function __c25(j: number): any {
|
|
|
1527
1531
|
function __c26(j: number): any {
|
|
1528
1532
|
switch (j) {
|
|
1529
1533
|
case 0:
|
|
1530
|
-
return S.
|
|
1534
|
+
return S.Array(S.Unknown);
|
|
1531
1535
|
}
|
|
1532
1536
|
}
|
|
1533
1537
|
function __c27(j: number): any {
|
|
1534
1538
|
switch (j) {
|
|
1535
1539
|
case 0:
|
|
1536
|
-
return S.
|
|
1540
|
+
return S.Record(S.String, S.Unknown);
|
|
1537
1541
|
}
|
|
1538
1542
|
}
|
|
1539
1543
|
function __c28(j: number): any {
|
|
@@ -1582,6 +1586,13 @@ function __c31(j: number): any {
|
|
|
1582
1586
|
user: S.optional(S.String),
|
|
1583
1587
|
}).pipe(T.Http({ method: "POST", uri: "/conversations.kick", code: 200 })),
|
|
1584
1588
|
).annotate({ identifier: "ConversationsKickRequest" });
|
|
1589
|
+
case 1:
|
|
1590
|
+
return S.suspend(() =>
|
|
1591
|
+
S.Struct({
|
|
1592
|
+
ok: S.Boolean,
|
|
1593
|
+
errors: S.optional(__S(108, __c27, 0)),
|
|
1594
|
+
}),
|
|
1595
|
+
).annotate({ identifier: "ConversationsKickResponse" });
|
|
1585
1596
|
}
|
|
1586
1597
|
}
|
|
1587
1598
|
function __c32(j: number): any {
|
package/src/services/dnd.ts
CHANGED
|
@@ -26,9 +26,9 @@ const TELEMETRY = {
|
|
|
26
26
|
|
|
27
27
|
export interface DndInfoRequest {
|
|
28
28
|
/** User to fetch status for (defaults to current user) */
|
|
29
|
-
user?: string;
|
|
29
|
+
user?: string | undefined;
|
|
30
30
|
/** Encoded team id where passed in user param belongs, required if org token is used. If no user param is passed, then a team which has access to the app should be passed */
|
|
31
|
-
team_id?: string;
|
|
31
|
+
team_id?: string | undefined;
|
|
32
32
|
}
|
|
33
33
|
export interface DndInfoResponse {
|
|
34
34
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -36,11 +36,11 @@ export interface DndInfoResponse {
|
|
|
36
36
|
dnd_enabled: boolean;
|
|
37
37
|
next_dnd_start_ts: number;
|
|
38
38
|
next_dnd_end_ts: number;
|
|
39
|
-
snooze_enabled?: boolean;
|
|
40
|
-
snooze_endtime?: number;
|
|
41
|
-
snooze_remaining?: number;
|
|
42
|
-
snooze_is_indefinite?: boolean;
|
|
43
|
-
dnd_profile_status?: unknown;
|
|
39
|
+
snooze_enabled?: boolean | undefined;
|
|
40
|
+
snooze_endtime?: number | undefined;
|
|
41
|
+
snooze_remaining?: number | undefined;
|
|
42
|
+
snooze_is_indefinite?: boolean | undefined;
|
|
43
|
+
dnd_profile_status?: unknown | undefined;
|
|
44
44
|
}
|
|
45
45
|
export interface EndDndRequest {}
|
|
46
46
|
export interface EndDndResponse {
|
|
@@ -55,9 +55,9 @@ export interface EndSnoozeResponse {
|
|
|
55
55
|
dnd_enabled: boolean;
|
|
56
56
|
next_dnd_end_ts: number;
|
|
57
57
|
next_dnd_start_ts: number;
|
|
58
|
-
snooze_endtime?: number;
|
|
59
|
-
snooze_remaining?: number;
|
|
60
|
-
dnd_profile_status?: unknown;
|
|
58
|
+
snooze_endtime?: number | undefined;
|
|
59
|
+
snooze_remaining?: number | undefined;
|
|
60
|
+
dnd_profile_status?: unknown | undefined;
|
|
61
61
|
}
|
|
62
62
|
export interface SetSnoozeRequest {
|
|
63
63
|
/** This argument is required. Number of minutes, from now, to snooze until. */
|
|
@@ -66,16 +66,16 @@ export interface SetSnoozeRequest {
|
|
|
66
66
|
export interface SetSnoozeResponse {
|
|
67
67
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
68
68
|
ok: boolean;
|
|
69
|
-
snooze_endtime?: number;
|
|
69
|
+
snooze_endtime?: number | undefined;
|
|
70
70
|
snooze_enabled: boolean;
|
|
71
|
-
snooze_remaining?: number;
|
|
72
|
-
snooze_is_indefinite?: boolean;
|
|
71
|
+
snooze_remaining?: number | undefined;
|
|
72
|
+
snooze_is_indefinite?: boolean | undefined;
|
|
73
73
|
}
|
|
74
74
|
export interface TeamInfoRequest {
|
|
75
75
|
/** Comma-separated list of users to fetch Do Not Disturb status for */
|
|
76
76
|
users: string;
|
|
77
77
|
/** Encoded team id where passed in users belong, required if org token is used */
|
|
78
|
-
team_id?: string;
|
|
78
|
+
team_id?: string | undefined;
|
|
79
79
|
}
|
|
80
80
|
export type TeamInfoResponseUsersMap = { [key: string]: unknown | undefined };
|
|
81
81
|
export interface TeamInfoResponse {
|