@distilled.cloud/slack 0.0.0 → 1.0.0-rc.10

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.
Files changed (212) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts +27 -0
  3. package/lib/credentials.d.ts.map +1 -0
  4. package/lib/credentials.js +53 -0
  5. package/lib/credentials.js.map +1 -0
  6. package/lib/errors.d.ts +83 -0
  7. package/lib/errors.d.ts.map +1 -0
  8. package/lib/errors.js +59 -0
  9. package/lib/errors.js.map +1 -0
  10. package/lib/index.d.ts +17 -0
  11. package/lib/index.d.ts.map +1 -0
  12. package/lib/index.js +17 -0
  13. package/lib/index.js.map +1 -0
  14. package/lib/pagination.d.ts +31 -0
  15. package/lib/pagination.d.ts.map +1 -0
  16. package/lib/pagination.js +31 -0
  17. package/lib/pagination.js.map +1 -0
  18. package/lib/protocol.d.ts +18 -0
  19. package/lib/protocol.d.ts.map +1 -0
  20. package/lib/protocol.js +230 -0
  21. package/lib/protocol.js.map +1 -0
  22. package/lib/retry.d.ts +52 -0
  23. package/lib/retry.d.ts.map +1 -0
  24. package/lib/retry.js +45 -0
  25. package/lib/retry.js.map +1 -0
  26. package/lib/services/admin.d.ts +2796 -0
  27. package/lib/services/admin.d.ts.map +1 -0
  28. package/lib/services/admin.js +3217 -0
  29. package/lib/services/admin.js.map +1 -0
  30. package/lib/services/api.d.ts +23 -0
  31. package/lib/services/api.d.ts.map +1 -0
  32. package/lib/services/api.js +26 -0
  33. package/lib/services/api.js.map +1 -0
  34. package/lib/services/apps.d.ts +568 -0
  35. package/lib/services/apps.d.ts.map +1 -0
  36. package/lib/services/apps.js +584 -0
  37. package/lib/services/apps.js.map +1 -0
  38. package/lib/services/assistant.d.ts +290 -0
  39. package/lib/services/assistant.d.ts.map +1 -0
  40. package/lib/services/assistant.js +232 -0
  41. package/lib/services/assistant.js.map +1 -0
  42. package/lib/services/auth.d.ts +90 -0
  43. package/lib/services/auth.d.ts.map +1 -0
  44. package/lib/services/auth.js +114 -0
  45. package/lib/services/auth.js.map +1 -0
  46. package/lib/services/blocks.d.ts +31 -0
  47. package/lib/services/blocks.d.ts.map +1 -0
  48. package/lib/services/blocks.js +31 -0
  49. package/lib/services/blocks.js.map +1 -0
  50. package/lib/services/bookmarks.d.ts +91 -0
  51. package/lib/services/bookmarks.d.ts.map +1 -0
  52. package/lib/services/bookmarks.js +98 -0
  53. package/lib/services/bookmarks.js.map +1 -0
  54. package/lib/services/bots.d.ts +60 -0
  55. package/lib/services/bots.d.ts.map +1 -0
  56. package/lib/services/bots.js +68 -0
  57. package/lib/services/bots.js.map +1 -0
  58. package/lib/services/calls.d.ts +124 -0
  59. package/lib/services/calls.d.ts.map +1 -0
  60. package/lib/services/calls.js +136 -0
  61. package/lib/services/calls.js.map +1 -0
  62. package/lib/services/canvases.d.ts +152 -0
  63. package/lib/services/canvases.d.ts.map +1 -0
  64. package/lib/services/canvases.js +152 -0
  65. package/lib/services/canvases.js.map +1 -0
  66. package/lib/services/chat.d.ts +525 -0
  67. package/lib/services/chat.d.ts.map +1 -0
  68. package/lib/services/chat.js +436 -0
  69. package/lib/services/chat.js.map +1 -0
  70. package/lib/services/conversations.d.ts +642 -0
  71. package/lib/services/conversations.d.ts.map +1 -0
  72. package/lib/services/conversations.js +769 -0
  73. package/lib/services/conversations.js.map +1 -0
  74. package/lib/services/dialog.d.ts +20 -0
  75. package/lib/services/dialog.d.ts.map +1 -0
  76. package/lib/services/dialog.js +27 -0
  77. package/lib/services/dialog.js.map +1 -0
  78. package/lib/services/dnd.d.ts +94 -0
  79. package/lib/services/dnd.d.ts.map +1 -0
  80. package/lib/services/dnd.js +111 -0
  81. package/lib/services/dnd.js.map +1 -0
  82. package/lib/services/emoji.d.ts +35 -0
  83. package/lib/services/emoji.d.ts.map +1 -0
  84. package/lib/services/emoji.js +40 -0
  85. package/lib/services/emoji.js.map +1 -0
  86. package/lib/services/entity.d.ts +93 -0
  87. package/lib/services/entity.d.ts.map +1 -0
  88. package/lib/services/entity.js +89 -0
  89. package/lib/services/entity.js.map +1 -0
  90. package/lib/services/files.d.ts +473 -0
  91. package/lib/services/files.d.ts.map +1 -0
  92. package/lib/services/files.js +510 -0
  93. package/lib/services/files.js.map +1 -0
  94. package/lib/services/functions.d.ts +235 -0
  95. package/lib/services/functions.d.ts.map +1 -0
  96. package/lib/services/functions.js +256 -0
  97. package/lib/services/functions.js.map +1 -0
  98. package/lib/services/index.d.ts +35 -0
  99. package/lib/services/index.d.ts.map +1 -0
  100. package/lib/services/index.js +36 -0
  101. package/lib/services/index.js.map +1 -0
  102. package/lib/services/lists.d.ts +300 -0
  103. package/lib/services/lists.d.ts.map +1 -0
  104. package/lib/services/lists.js +366 -0
  105. package/lib/services/lists.js.map +1 -0
  106. package/lib/services/migration.d.ts +34 -0
  107. package/lib/services/migration.d.ts.map +1 -0
  108. package/lib/services/migration.js +36 -0
  109. package/lib/services/migration.js.map +1 -0
  110. package/lib/services/oauth.d.ts +307 -0
  111. package/lib/services/oauth.d.ts.map +1 -0
  112. package/lib/services/oauth.js +278 -0
  113. package/lib/services/oauth.js.map +1 -0
  114. package/lib/services/openid.d.ts +86 -0
  115. package/lib/services/openid.d.ts.map +1 -0
  116. package/lib/services/openid.js +93 -0
  117. package/lib/services/openid.js.map +1 -0
  118. package/lib/services/pins.d.ts +64 -0
  119. package/lib/services/pins.d.ts.map +1 -0
  120. package/lib/services/pins.js +75 -0
  121. package/lib/services/pins.js.map +1 -0
  122. package/lib/services/reactions.d.ts +108 -0
  123. package/lib/services/reactions.d.ts.map +1 -0
  124. package/lib/services/reactions.js +119 -0
  125. package/lib/services/reactions.js.map +1 -0
  126. package/lib/services/reminders.d.ts +89 -0
  127. package/lib/services/reminders.d.ts.map +1 -0
  128. package/lib/services/reminders.js +109 -0
  129. package/lib/services/reminders.js.map +1 -0
  130. package/lib/services/rtm.d.ts +68 -0
  131. package/lib/services/rtm.d.ts.map +1 -0
  132. package/lib/services/rtm.js +74 -0
  133. package/lib/services/rtm.js.map +1 -0
  134. package/lib/services/search.d.ts +239 -0
  135. package/lib/services/search.d.ts.map +1 -0
  136. package/lib/services/search.js +190 -0
  137. package/lib/services/search.js.map +1 -0
  138. package/lib/services/stars.d.ts +126 -0
  139. package/lib/services/stars.d.ts.map +1 -0
  140. package/lib/services/stars.js +145 -0
  141. package/lib/services/stars.js.map +1 -0
  142. package/lib/services/team.d.ts +309 -0
  143. package/lib/services/team.d.ts.map +1 -0
  144. package/lib/services/team.js +333 -0
  145. package/lib/services/team.js.map +1 -0
  146. package/lib/services/tooling.d.ts +31 -0
  147. package/lib/services/tooling.d.ts.map +1 -0
  148. package/lib/services/tooling.js +38 -0
  149. package/lib/services/tooling.js.map +1 -0
  150. package/lib/services/usergroups.d.ts +183 -0
  151. package/lib/services/usergroups.d.ts.map +1 -0
  152. package/lib/services/usergroups.js +180 -0
  153. package/lib/services/usergroups.js.map +1 -0
  154. package/lib/services/users.d.ts +246 -0
  155. package/lib/services/users.d.ts.map +1 -0
  156. package/lib/services/users.js +309 -0
  157. package/lib/services/users.js.map +1 -0
  158. package/lib/services/views.d.ts +84 -0
  159. package/lib/services/views.d.ts.map +1 -0
  160. package/lib/services/views.js +95 -0
  161. package/lib/services/views.js.map +1 -0
  162. package/lib/services/workflows.d.ts +231 -0
  163. package/lib/services/workflows.d.ts.map +1 -0
  164. package/lib/services/workflows.js +238 -0
  165. package/lib/services/workflows.js.map +1 -0
  166. package/lib/traits.d.ts +11 -0
  167. package/lib/traits.d.ts.map +1 -0
  168. package/lib/traits.js +12 -0
  169. package/lib/traits.js.map +1 -0
  170. package/package.json +82 -4
  171. package/src/credentials.ts +86 -0
  172. package/src/errors.ts +101 -0
  173. package/src/index.ts +20 -0
  174. package/src/pagination.ts +35 -0
  175. package/src/protocol.ts +326 -0
  176. package/src/retry.ts +76 -0
  177. package/src/services/admin.ts +7722 -0
  178. package/src/services/api.ts +58 -0
  179. package/src/services/apps.ts +1441 -0
  180. package/src/services/assistant.ts +639 -0
  181. package/src/services/auth.ts +241 -0
  182. package/src/services/blocks.ts +80 -0
  183. package/src/services/bookmarks.ts +223 -0
  184. package/src/services/bots.ts +144 -0
  185. package/src/services/calls.ts +318 -0
  186. package/src/services/canvases.ts +392 -0
  187. package/src/services/chat.ts +1191 -0
  188. package/src/services/conversations.ts +1754 -0
  189. package/src/services/dialog.ts +55 -0
  190. package/src/services/dnd.ts +246 -0
  191. package/src/services/emoji.ts +91 -0
  192. package/src/services/entity.ts +225 -0
  193. package/src/services/files.ts +1192 -0
  194. package/src/services/functions.ts +642 -0
  195. package/src/services/index.ts +35 -0
  196. package/src/services/lists.ts +832 -0
  197. package/src/services/migration.ts +85 -0
  198. package/src/services/oauth.ts +658 -0
  199. package/src/services/openid.ts +243 -0
  200. package/src/services/pins.ts +167 -0
  201. package/src/services/reactions.ts +272 -0
  202. package/src/services/reminders.ts +240 -0
  203. package/src/services/rtm.ts +162 -0
  204. package/src/services/search.ts +507 -0
  205. package/src/services/stars.ts +323 -0
  206. package/src/services/team.ts +834 -0
  207. package/src/services/tooling.ts +78 -0
  208. package/src/services/usergroups.ts +441 -0
  209. package/src/services/users.ts +685 -0
  210. package/src/services/views.ts +212 -0
  211. package/src/services/workflows.ts +605 -0
  212. package/src/traits.ts +45 -0
@@ -0,0 +1,642 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
4
+ export type { SlackOpError, SlackOpContext };
5
+ export interface AcceptSharedInviteRequest {
6
+ /** Name of the channel. If the channel does not exist already in your workspace, this name is the one that the channel will take. */
7
+ channel_name: string;
8
+ /** Whether the channel should be private. */
9
+ is_private?: boolean;
10
+ /** Whether you'd like to use your workspace's free trial to begin using Slack Connect. */
11
+ free_trial_accepted?: boolean;
12
+ /** 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. */
13
+ invite_id?: string;
14
+ /** ID of the channel that you'd like to accept. Must provide either `invite_id` or `channel_id`. */
15
+ channel_id?: string;
16
+ /** 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. */
17
+ team_id?: string;
18
+ }
19
+ export declare const AcceptSharedInviteRequest: S.Schema<AcceptSharedInviteRequest>;
20
+ export interface AcceptSharedInviteResponse {
21
+ /** Always `true` (a failed call raises a typed error instead). */
22
+ ok: boolean;
23
+ /** Indicates if the shared channel invite was implicitly approved by the away team. */
24
+ implicit_approval: boolean;
25
+ channel_id: string;
26
+ invite_id: string;
27
+ /** Indicates if the acceptor can SCDM the inviter */
28
+ can_open_scdm: boolean;
29
+ }
30
+ export declare const AcceptSharedInviteResponse: S.Schema<AcceptSharedInviteResponse>;
31
+ /** 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. */
32
+ export interface ApproveRequestSharedInviteRequestMessage {
33
+ /** text to include along with email invite */
34
+ text: string;
35
+ /** When true will override the user specified message. Otherwise text will be appended to the user specified message on the invite request. */
36
+ is_override: boolean;
37
+ }
38
+ export declare const ApproveRequestSharedInviteRequestMessage: S.Schema<ApproveRequestSharedInviteRequestMessage>;
39
+ export interface ApproveRequestSharedInviteRequest {
40
+ /** ID of the requested shared channel invite to approve. */
41
+ invite_id: string;
42
+ /** Optional boolean on whether the invited team will have post-only permissions in the channel. Will override the value on the requested invite. */
43
+ is_external_limited?: boolean;
44
+ /** Optional channel_id to which external user will be invited to. Will override the value on the requested invite. */
45
+ channel_id?: string;
46
+ /** 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. */
47
+ message?: ApproveRequestSharedInviteRequestMessage;
48
+ }
49
+ export declare const ApproveRequestSharedInviteRequest: S.Schema<ApproveRequestSharedInviteRequest>;
50
+ export interface ApproveRequestSharedInviteResponse {
51
+ /** Always `true` (a failed call raises a typed error instead). */
52
+ ok: boolean;
53
+ invite_id: string;
54
+ confirmation_code?: string;
55
+ url?: string;
56
+ }
57
+ export declare const ApproveRequestSharedInviteResponse: S.Schema<ApproveRequestSharedInviteResponse>;
58
+ export interface ApproveSharedInviteRequest {
59
+ /** ID of the shared channel invite to approve */
60
+ invite_id: string;
61
+ /** The team or enterprise ID of the receiving party involved in the invitation you are approving */
62
+ target_team?: string;
63
+ }
64
+ export declare const ApproveSharedInviteRequest: S.Schema<ApproveSharedInviteRequest>;
65
+ export interface ApproveSharedInviteResponse {
66
+ ok: boolean;
67
+ }
68
+ export declare const ApproveSharedInviteResponse: S.Schema<ApproveSharedInviteResponse>;
69
+ export interface ArchiveConversationRequest {
70
+ /** ID of conversation to archive */
71
+ channel: string;
72
+ }
73
+ export declare const ArchiveConversationRequest: S.Schema<ArchiveConversationRequest>;
74
+ export interface ArchiveConversationResponse {
75
+ /** Always `true` (a failed call raises a typed error instead). */
76
+ ok: boolean;
77
+ }
78
+ export declare const ArchiveConversationResponse: S.Schema<ArchiveConversationResponse>;
79
+ export interface ConversationsCloseRequest {
80
+ /** Conversation to close. */
81
+ channel: string;
82
+ }
83
+ export declare const ConversationsCloseRequest: S.Schema<ConversationsCloseRequest>;
84
+ export interface ConversationsCloseResponse {
85
+ /** Always `true` (a failed call raises a typed error instead). */
86
+ ok: boolean;
87
+ already_closed?: boolean;
88
+ no_op?: boolean;
89
+ }
90
+ export declare const ConversationsCloseResponse: S.Schema<ConversationsCloseResponse>;
91
+ export interface ConversationsHistoryRequest {
92
+ /** Conversation ID to fetch history for. */
93
+ channel: string;
94
+ /** 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. */
95
+ cursor?: string;
96
+ /** Return all metadata associated with this message. */
97
+ include_all_metadata?: boolean;
98
+ /** Include messages with `oldest` or `latest` timestamps in results. Ignored unless either timestamp is specified. */
99
+ inclusive?: boolean;
100
+ /** Only messages before this Unix timestamp will be included in results. Default is the current time. */
101
+ latest?: string;
102
+ /** 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. */
103
+ limit?: number;
104
+ /** Only messages after this Unix timestamp will be included in results. */
105
+ oldest?: string;
106
+ }
107
+ export declare const ConversationsHistoryRequest: S.Schema<ConversationsHistoryRequest>;
108
+ export type ConversationsHistoryResponseMessagesList = Array<unknown>;
109
+ export declare const ConversationsHistoryResponseMessagesList: S.Schema<ConversationsHistoryResponseMessagesList>;
110
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
111
+ export interface ConversationsHistoryResponseResponseMetadata {
112
+ /** Cursor for the next page — pass as `cursor` on the next call. */
113
+ next_cursor?: string;
114
+ }
115
+ export declare const ConversationsHistoryResponseResponseMetadata: S.Schema<ConversationsHistoryResponseResponseMetadata>;
116
+ export type ConversationsHistoryResponseUsersMap = {
117
+ [key: string]: unknown | undefined;
118
+ };
119
+ export declare const ConversationsHistoryResponseUsersMap: S.Schema<ConversationsHistoryResponseUsersMap>;
120
+ export type ConversationsHistoryResponseDeletedList = Array<string>;
121
+ export declare const ConversationsHistoryResponseDeletedList: S.Schema<ConversationsHistoryResponseDeletedList>;
122
+ export interface ConversationsHistoryResponseMutationTimestamps {
123
+ latest: string;
124
+ updated: string;
125
+ history_invalid: string;
126
+ }
127
+ export declare const ConversationsHistoryResponseMutationTimestamps: S.Schema<ConversationsHistoryResponseMutationTimestamps>;
128
+ export type ConversationsHistoryResponseWarningsList = Array<string>;
129
+ export declare const ConversationsHistoryResponseWarningsList: S.Schema<ConversationsHistoryResponseWarningsList>;
130
+ export type ConversationsHistoryResponseLatestUpdatesMap = {
131
+ [key: string]: unknown | undefined;
132
+ };
133
+ export declare const ConversationsHistoryResponseLatestUpdatesMap: S.Schema<ConversationsHistoryResponseLatestUpdatesMap>;
134
+ export type ConversationsHistoryResponseUnchangedMessagesList = Array<string>;
135
+ export declare const ConversationsHistoryResponseUnchangedMessagesList: S.Schema<ConversationsHistoryResponseUnchangedMessagesList>;
136
+ export interface ConversationsHistoryResponse {
137
+ /** Always `true` (a failed call raises a typed error instead). */
138
+ ok: boolean;
139
+ messages: ConversationsHistoryResponseMessagesList;
140
+ has_more: boolean;
141
+ pin_count?: number;
142
+ channel_actions_ts: unknown;
143
+ channel_actions_count: number;
144
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
145
+ response_metadata?: ConversationsHistoryResponseResponseMetadata;
146
+ oldest?: string;
147
+ is_limited?: boolean;
148
+ latest?: string;
149
+ unread_count_display?: number;
150
+ users?: ConversationsHistoryResponseUsersMap;
151
+ deleted?: ConversationsHistoryResponseDeletedList;
152
+ mutation_timestamps?: ConversationsHistoryResponseMutationTimestamps;
153
+ deleted_overflow?: boolean;
154
+ warnings?: ConversationsHistoryResponseWarningsList;
155
+ next_ts?: number;
156
+ latest_updates?: ConversationsHistoryResponseLatestUpdatesMap;
157
+ unchanged_messages?: ConversationsHistoryResponseUnchangedMessagesList;
158
+ }
159
+ export declare const ConversationsHistoryResponse: S.Schema<ConversationsHistoryResponse>;
160
+ export interface ConversationsInfoRequest {
161
+ /** Conversation ID to learn more about */
162
+ channel: string;
163
+ /** Set this to `true` to receive the locale for this conversation. Defaults to `false` */
164
+ include_locale?: boolean;
165
+ /** Set to `true` to include the member count for the specified conversation. Defaults to `false` */
166
+ include_num_members?: boolean;
167
+ }
168
+ export declare const ConversationsInfoRequest: S.Schema<ConversationsInfoRequest>;
169
+ export interface ConversationsInfoResponse {
170
+ /** Always `true` (a failed call raises a typed error instead). */
171
+ ok: boolean;
172
+ app_home?: unknown;
173
+ channel: unknown;
174
+ home_view?: unknown | null;
175
+ }
176
+ export declare const ConversationsInfoResponse: S.Schema<ConversationsInfoResponse>;
177
+ export interface ConversationsKickRequest {
178
+ /** ID of conversation to remove user from. */
179
+ channel: string;
180
+ /** User ID to be removed. */
181
+ user?: string;
182
+ }
183
+ export declare const ConversationsKickRequest: S.Schema<ConversationsKickRequest>;
184
+ export interface ConversationsKickResponse {
185
+ /** Always `true` (a failed call raises a typed error instead). */
186
+ ok: boolean;
187
+ }
188
+ export declare const ConversationsKickResponse: S.Schema<ConversationsKickResponse>;
189
+ export interface ConversationsMarkRequest {
190
+ /** Channel or conversation to set the read cursor for. */
191
+ channel: string;
192
+ /** Unique identifier of message you want marked as most recently seen in this conversation. */
193
+ ts: string;
194
+ }
195
+ export declare const ConversationsMarkRequest: S.Schema<ConversationsMarkRequest>;
196
+ export interface ConversationsMarkResponse {
197
+ /** Always `true` (a failed call raises a typed error instead). */
198
+ ok: boolean;
199
+ }
200
+ export declare const ConversationsMarkResponse: S.Schema<ConversationsMarkResponse>;
201
+ export interface ConversationsMembersRequest {
202
+ /** ID of the conversation to retrieve members for */
203
+ channel: string;
204
+ /** 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. */
205
+ cursor?: string;
206
+ /** 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. */
207
+ limit?: number;
208
+ }
209
+ export declare const ConversationsMembersRequest: S.Schema<ConversationsMembersRequest>;
210
+ export type ConversationsMembersResponseMembersList = Array<string>;
211
+ export declare const ConversationsMembersResponseMembersList: S.Schema<ConversationsMembersResponseMembersList>;
212
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
213
+ export type ConversationsMembersResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
214
+ export declare const ConversationsMembersResponseResponseMetadata: S.Schema<ConversationsHistoryResponseResponseMetadata>;
215
+ export interface ConversationsMembersResponse {
216
+ /** Always `true` (a failed call raises a typed error instead). */
217
+ ok: boolean;
218
+ members: ConversationsMembersResponseMembersList;
219
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
220
+ response_metadata?: ConversationsHistoryResponseResponseMetadata;
221
+ }
222
+ export declare const ConversationsMembersResponse: S.Schema<ConversationsMembersResponse>;
223
+ export interface ConversationsOpenRequest {
224
+ /** Resume a conversation by supplying an `im` or `mpim`'s ID. Or provide the `users` field instead. */
225
+ channel?: string | null;
226
+ /** Boolean, indicates you want the full IM channel definition in the response. */
227
+ return_im?: boolean;
228
+ /** 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`. */
229
+ users?: string;
230
+ /** Do not create a direct message or multi-person direct message. This is used to see if there is an existing dm or mpdm. */
231
+ prevent_creation?: boolean;
232
+ }
233
+ export declare const ConversationsOpenRequest: S.Schema<ConversationsOpenRequest>;
234
+ export interface ConversationsOpenResponse {
235
+ /** Always `true` (a failed call raises a typed error instead). */
236
+ ok: boolean;
237
+ already_open?: boolean;
238
+ no_op?: boolean;
239
+ channel?: unknown;
240
+ app_home?: unknown;
241
+ home_view?: unknown | null;
242
+ }
243
+ export declare const ConversationsOpenResponse: S.Schema<ConversationsOpenResponse>;
244
+ export interface ConversationsRepliesRequest {
245
+ /** Conversation ID to fetch thread from. */
246
+ channel: string;
247
+ /** 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. */
248
+ cursor?: string;
249
+ /** Return all metadata associated with this message. */
250
+ include_all_metadata?: boolean;
251
+ /** Include messages with `oldest` or `latest` timestamps in results. Ignored unless either timestamp is specified. */
252
+ inclusive?: boolean;
253
+ /** Only messages before this Unix timestamp will be included in results. */
254
+ latest?: string;
255
+ /** 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. */
256
+ limit?: number;
257
+ /** Only messages after this Unix timestamp will be included in results. */
258
+ oldest?: string;
259
+ /** 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. */
260
+ ts: string;
261
+ }
262
+ export declare const ConversationsRepliesRequest: S.Schema<ConversationsRepliesRequest>;
263
+ export type ConversationsRepliesResponseMessagesList = Array<unknown>;
264
+ export declare const ConversationsRepliesResponseMessagesList: S.Schema<ConversationsRepliesResponseMessagesList>;
265
+ export type ConversationsRepliesResponseLatestUpdatesMap = {
266
+ [key: string]: unknown | undefined;
267
+ };
268
+ export declare const ConversationsRepliesResponseLatestUpdatesMap: S.Schema<ConversationsRepliesResponseLatestUpdatesMap>;
269
+ export type ConversationsRepliesResponseUnchangedMessagesList = Array<string>;
270
+ export declare const ConversationsRepliesResponseUnchangedMessagesList: S.Schema<ConversationsRepliesResponseUnchangedMessagesList>;
271
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
272
+ export type ConversationsRepliesResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
273
+ export declare const ConversationsRepliesResponseResponseMetadata: S.Schema<ConversationsHistoryResponseResponseMetadata>;
274
+ export interface ConversationsRepliesResponse {
275
+ /** Always `true` (a failed call raises a typed error instead). */
276
+ ok: boolean;
277
+ has_more?: boolean;
278
+ messages: ConversationsRepliesResponseMessagesList;
279
+ latest_updates?: ConversationsRepliesResponseLatestUpdatesMap;
280
+ unchanged_messages?: ConversationsRepliesResponseUnchangedMessagesList;
281
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
282
+ response_metadata?: ConversationsHistoryResponseResponseMetadata;
283
+ }
284
+ export declare const ConversationsRepliesResponse: S.Schema<ConversationsRepliesResponse>;
285
+ export interface CreateCanvaseRequest {
286
+ /** Channel ID of the channel the canvas will be tabbed in. */
287
+ channel_id: string;
288
+ /** Structure describing the type and value of the content to create. The markdown content is limited to 1 MiB (1,048,576 characters). */
289
+ document_content?: unknown;
290
+ /** Title of the newly created canvas */
291
+ title?: string;
292
+ }
293
+ export declare const CreateCanvaseRequest: S.Schema<CreateCanvaseRequest>;
294
+ export interface CreateCanvaseResponse {
295
+ /** Always `true` (a failed call raises a typed error instead). */
296
+ ok: boolean;
297
+ /** Encoded ID of the canvas */
298
+ canvas_id: string;
299
+ }
300
+ export declare const CreateCanvaseResponse: S.Schema<CreateCanvaseResponse>;
301
+ export interface CreateConversationRequest {
302
+ /** Create a private channel instead of a public one */
303
+ is_private?: boolean;
304
+ /** Name of the public or private channel to create */
305
+ name: string;
306
+ /** encoded team id to create the channel in, required if org token is used */
307
+ team_id?: string | null;
308
+ }
309
+ export declare const CreateConversationRequest: S.Schema<CreateConversationRequest>;
310
+ export interface CreateConversationResponse {
311
+ /** Always `true` (a failed call raises a typed error instead). */
312
+ ok: boolean;
313
+ channel: unknown;
314
+ }
315
+ export declare const CreateConversationResponse: S.Schema<CreateConversationResponse>;
316
+ export interface InviteConversationRequest {
317
+ /** The ID of the public or private channel to invite user(s) to. */
318
+ channel: string;
319
+ /** When set to `true` and multiple user IDs are provided, continue inviting the valid ones while disregarding invalid IDs. Defaults to `false`. */
320
+ force?: boolean;
321
+ /** A comma separated list of user IDs. Up to 100 users may be listed. */
322
+ users: string;
323
+ }
324
+ export declare const InviteConversationRequest: S.Schema<InviteConversationRequest>;
325
+ export type InviteConversationResponseErrorsList = Array<unknown>;
326
+ export declare const InviteConversationResponseErrorsList: S.Schema<InviteConversationResponseErrorsList>;
327
+ export interface InviteConversationResponse {
328
+ /** Always `true` (a failed call raises a typed error instead). */
329
+ ok: boolean;
330
+ channel?: unknown;
331
+ group?: unknown;
332
+ errors?: InviteConversationResponseErrorsList;
333
+ }
334
+ export declare const InviteConversationResponse: S.Schema<InviteConversationResponse>;
335
+ export interface InviteDeclineSharedRequest {
336
+ /** 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. */
337
+ invite_id: string;
338
+ /** The team or enterprise id of the other party involved in the invitation you are declining */
339
+ target_team?: string;
340
+ }
341
+ export declare const InviteDeclineSharedRequest: S.Schema<InviteDeclineSharedRequest>;
342
+ export interface InviteDeclineSharedResponse {
343
+ ok: boolean;
344
+ }
345
+ export declare const InviteDeclineSharedResponse: S.Schema<InviteDeclineSharedResponse>;
346
+ /** 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. */
347
+ export type InviteSharedRequestEmailsList = Array<string>;
348
+ export declare const InviteSharedRequestEmailsList: S.Schema<InviteSharedRequestEmailsList>;
349
+ /** 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. */
350
+ export type InviteSharedRequestUserIdsList = Array<string>;
351
+ export declare const InviteSharedRequestUserIdsList: S.Schema<InviteSharedRequestUserIdsList>;
352
+ export interface InviteSharedRequest {
353
+ /** ID of the channel on your team that you'd like to share */
354
+ channel: string;
355
+ /** 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. */
356
+ emails?: InviteSharedRequestEmailsList;
357
+ /** 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. */
358
+ user_ids?: InviteSharedRequestUserIdsList;
359
+ /** Optional boolean on whether invite is to an external limited member. Defaults to `true`. */
360
+ external_limited?: boolean;
361
+ }
362
+ export declare const InviteSharedRequest: S.Schema<InviteSharedRequest>;
363
+ export interface InviteSharedResponse {
364
+ /** Always `true` (a failed call raises a typed error instead). */
365
+ ok: boolean;
366
+ url?: string;
367
+ invite_id?: string;
368
+ conf_code?: string;
369
+ is_legacy_shared_channel?: boolean;
370
+ }
371
+ export declare const InviteSharedResponse: S.Schema<InviteSharedResponse>;
372
+ export interface JoinConversationRequest {
373
+ /** ID of conversation to join */
374
+ channel: string;
375
+ }
376
+ export declare const JoinConversationRequest: S.Schema<JoinConversationRequest>;
377
+ export type JoinConversationResponseResponseMetadataWarningsList = Array<string>;
378
+ export declare const JoinConversationResponseResponseMetadataWarningsList: S.Schema<JoinConversationResponseResponseMetadataWarningsList>;
379
+ export interface JoinConversationResponseResponseMetadata {
380
+ warnings?: JoinConversationResponseResponseMetadataWarningsList;
381
+ }
382
+ export declare const JoinConversationResponseResponseMetadata: S.Schema<JoinConversationResponseResponseMetadata>;
383
+ export interface JoinConversationResponse {
384
+ /** Always `true` (a failed call raises a typed error instead). */
385
+ ok: boolean;
386
+ channel: unknown;
387
+ response_metadata?: JoinConversationResponseResponseMetadata;
388
+ }
389
+ export declare const JoinConversationResponse: S.Schema<JoinConversationResponse>;
390
+ export interface LeaveConversationRequest {
391
+ /** Conversation to leave */
392
+ channel: string;
393
+ }
394
+ export declare const LeaveConversationRequest: S.Schema<LeaveConversationRequest>;
395
+ export interface LeaveConversationResponse {
396
+ /** Always `true` (a failed call raises a typed error instead). */
397
+ ok: boolean;
398
+ not_in_channel?: boolean;
399
+ }
400
+ export declare const LeaveConversationResponse: S.Schema<LeaveConversationResponse>;
401
+ export interface ListConnectInvitesRequest {
402
+ /** Encoded team id for the workspace to retrieve invites for, required if org token is used */
403
+ team_id?: string;
404
+ /** Maximum number of invites to return */
405
+ count?: number;
406
+ /** Set to `next_cursor` returned by previous call to list items in subsequent page */
407
+ cursor?: string;
408
+ }
409
+ export declare const ListConnectInvitesRequest: S.Schema<ListConnectInvitesRequest>;
410
+ export type ListConnectInvitesResponseInvitesList = Array<unknown>;
411
+ export declare const ListConnectInvitesResponseInvitesList: S.Schema<ListConnectInvitesResponseInvitesList>;
412
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
413
+ export type ListConnectInvitesResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
414
+ export declare const ListConnectInvitesResponseResponseMetadata: S.Schema<ConversationsHistoryResponseResponseMetadata>;
415
+ export interface ListConnectInvitesResponse {
416
+ /** Always `true` (a failed call raises a typed error instead). */
417
+ ok: boolean;
418
+ invites: ListConnectInvitesResponseInvitesList;
419
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
420
+ response_metadata?: ConversationsHistoryResponseResponseMetadata;
421
+ }
422
+ export declare const ListConnectInvitesResponse: S.Schema<ListConnectInvitesResponse>;
423
+ export interface ListConversationsRequest {
424
+ /** 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. */
425
+ cursor?: string;
426
+ /** Set to `true` to exclude archived channels from the list. */
427
+ exclude_archived?: boolean;
428
+ /** 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. */
429
+ limit?: number;
430
+ /** encoded team id to list channels in, required if token belongs to org-wide app */
431
+ team_id?: string;
432
+ /** Mix and match channel types by providing a comma-separated list of any combination of `public_channel`, `private_channel`, `mpim`, `im` */
433
+ types?: string;
434
+ }
435
+ export declare const ListConversationsRequest: S.Schema<ListConversationsRequest>;
436
+ export type ListConversationsResponseChannelsList = Array<unknown>;
437
+ export declare const ListConversationsResponseChannelsList: S.Schema<ListConversationsResponseChannelsList>;
438
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
439
+ export type ListConversationsResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
440
+ export declare const ListConversationsResponseResponseMetadata: S.Schema<ConversationsHistoryResponseResponseMetadata>;
441
+ export interface ListConversationsResponse {
442
+ /** Always `true` (a failed call raises a typed error instead). */
443
+ ok: boolean;
444
+ channels: ListConversationsResponseChannelsList;
445
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
446
+ response_metadata?: ConversationsHistoryResponseResponseMetadata;
447
+ }
448
+ export declare const ListConversationsResponse: S.Schema<ListConversationsResponse>;
449
+ /** An optional list of invitation ids to look up */
450
+ export type ListRequestSharedInviteRequestInviteIdsList = Array<string>;
451
+ export declare const ListRequestSharedInviteRequestInviteIdsList: S.Schema<ListRequestSharedInviteRequestInviteIdsList>;
452
+ export interface ListRequestSharedInviteRequest {
453
+ /** Optional filter to return invitation requests for the inviting user. */
454
+ user_id?: string;
455
+ /** When true expired invitation requests will be returned, otherwise they will be excluded */
456
+ include_expired?: boolean;
457
+ /** When true approved invitation requests will be returned, otherwise they will be excluded */
458
+ include_approved?: boolean;
459
+ /** When true denied invitation requests will be returned, otherwise they will be excluded */
460
+ include_denied?: boolean;
461
+ /** An optional list of invitation ids to look up */
462
+ invite_ids?: ListRequestSharedInviteRequestInviteIdsList;
463
+ /** The number of items to return. Must be between 1 - 1000 (inclusive). */
464
+ limit?: number;
465
+ /** 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. */
466
+ cursor?: string;
467
+ }
468
+ export declare const ListRequestSharedInviteRequest: S.Schema<ListRequestSharedInviteRequest>;
469
+ export type ListRequestSharedInviteResponseInviteRequestsList = Array<unknown>;
470
+ export declare const ListRequestSharedInviteResponseInviteRequestsList: S.Schema<ListRequestSharedInviteResponseInviteRequestsList>;
471
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
472
+ export type ListRequestSharedInviteResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
473
+ export declare const ListRequestSharedInviteResponseResponseMetadata: S.Schema<ConversationsHistoryResponseResponseMetadata>;
474
+ export interface ListRequestSharedInviteResponse {
475
+ /** Always `true` (a failed call raises a typed error instead). */
476
+ ok: boolean;
477
+ invite_requests: ListRequestSharedInviteResponseInviteRequestsList;
478
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
479
+ response_metadata?: ConversationsHistoryResponseResponseMetadata;
480
+ }
481
+ export declare const ListRequestSharedInviteResponse: S.Schema<ListRequestSharedInviteResponse>;
482
+ export interface RenameConversationRequest {
483
+ /** ID of conversation to rename */
484
+ channel: string;
485
+ /** New name for conversation. */
486
+ name: string;
487
+ }
488
+ export declare const RenameConversationRequest: S.Schema<RenameConversationRequest>;
489
+ export interface RenameConversationResponse {
490
+ /** Always `true` (a failed call raises a typed error instead). */
491
+ ok: boolean;
492
+ channel: unknown;
493
+ }
494
+ export declare const RenameConversationResponse: S.Schema<RenameConversationResponse>;
495
+ export interface RequestSharedInviteDenyRequest {
496
+ /** ID of the requested shared channel invite to deny. */
497
+ invite_id: string;
498
+ /** Optional message explaining why the request to invite was denied. */
499
+ message?: string;
500
+ }
501
+ export declare const RequestSharedInviteDenyRequest: S.Schema<RequestSharedInviteDenyRequest>;
502
+ export interface RequestSharedInviteDenyResponse {
503
+ ok: boolean;
504
+ }
505
+ export declare const RequestSharedInviteDenyResponse: S.Schema<RequestSharedInviteDenyResponse>;
506
+ /** Type of action to be taken: upgrade or downgrade */
507
+ export type SetExternalInvitePermissionsRequestAction = "upgrade" | "downgrade";
508
+ export declare const SetExternalInvitePermissionsRequestAction: any;
509
+ export interface SetExternalInvitePermissionsRequest {
510
+ /** The channel ID to change external invite permissions for */
511
+ channel: string;
512
+ /** The encoded team ID of the target team. Must be in the specified channel. */
513
+ target_team: string;
514
+ /** Type of action to be taken: upgrade or downgrade */
515
+ action: SetExternalInvitePermissionsRequestAction | (string & {});
516
+ }
517
+ export declare const SetExternalInvitePermissionsRequest: S.Schema<SetExternalInvitePermissionsRequest>;
518
+ export interface SetExternalInvitePermissionsResponse {
519
+ ok: boolean;
520
+ }
521
+ export declare const SetExternalInvitePermissionsResponse: S.Schema<SetExternalInvitePermissionsResponse>;
522
+ export interface SetPurposeRequest {
523
+ /** Channel to set the description of */
524
+ channel: string;
525
+ /** The description */
526
+ purpose: string;
527
+ }
528
+ export declare const SetPurposeRequest: S.Schema<SetPurposeRequest>;
529
+ export interface SetPurposeResponse {
530
+ /** Always `true` (a failed call raises a typed error instead). */
531
+ ok: boolean;
532
+ channel: unknown;
533
+ }
534
+ export declare const SetPurposeResponse: S.Schema<SetPurposeResponse>;
535
+ export interface SetTopicRequest {
536
+ /** Conversation to set the topic of */
537
+ channel: string;
538
+ /** The new topic string. Does not support formatting or linkification. */
539
+ topic: string;
540
+ }
541
+ export declare const SetTopicRequest: S.Schema<SetTopicRequest>;
542
+ export interface SetTopicResponse {
543
+ /** Always `true` (a failed call raises a typed error instead). */
544
+ ok: boolean;
545
+ channel: unknown;
546
+ }
547
+ export declare const SetTopicResponse: S.Schema<SetTopicResponse>;
548
+ export interface UnarchiveConversationRequest {
549
+ /** ID of conversation to unarchive */
550
+ channel: string;
551
+ }
552
+ export declare const UnarchiveConversationRequest: S.Schema<UnarchiveConversationRequest>;
553
+ export interface UnarchiveConversationResponse {
554
+ /** Always `true` (a failed call raises a typed error instead). */
555
+ ok: boolean;
556
+ }
557
+ export declare const UnarchiveConversationResponse: S.Schema<UnarchiveConversationResponse>;
558
+ export type AcceptSharedInviteError = SlackOpError;
559
+ /** Accepts 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): - `channel_conversion_in_progress` — Unable to create a channel connection while a channel conversion is in progress - `connection_limit_exceeded` — This channel has hit the limit of external connections. - `email_does_not_match` — User's email does not match the email in the invite. - `failed_to_start_trial` — Unable to initiate a trial on shared invite acceptance - `has_already_connected_to_org` — A team on the workspace of the org is already in the channel. - `invalid_arguments` — Invalid API arguments were provided. Either `sig` or `invite_id` must be specified. - `invalid_emoji_not_allowed` — The desired name contains emoji. - `invalid_host_team` — The host workspace is invalid. - `invalid_link` — We couldn't find an invite associated with the ID provided. - `invalid_name` — The value passed for `channel_name` was invalid. - `invalid_name_maxlength` — The value passed for `channel_name` exceeded the maximum length. - `invalid_name_punctuation` — The value passed for `channel_name` contained only punctuation. - `invalid_name_required` — The value passed for `channel_name` was empty. - `invalid_name_specials` — The value passed for `channel_name` contained unallowed special characters or upper case characters. - `invite_from_same_org` — You can't accept an invite from the same org or workspace. - `invite_not_found` — We couldn't find a Slack Connect channel invite with the ID provided. - `invalid_privacy` — An invalid channel privacy was provided. - `invalid_recipient_team` — The accepting team does not match the expected recipient team. - `invalid_target_team` — The target workspace is invalid. - `invite_used` — This invite has already been accepted. - `is_pending_connected_to_org` — A team pending to join the channel is on the org of the team trying to accept. - `legacy_connection_invalid_org` — Teams not previously connected to this legacy channel can't connect. - `legacy_connection_limit_exceeded` — You cannot share a legacy ESC channel with a third team - `name_taken` — The desired channel name is already taken in your workspace. - `not_allowed_for_grid_workspace` — Acceptance is not allowed for this workspace. - `not_paid` — This workspace doesn't have access to this feature. - `restricted_action` — A team preference prevents the authenticated user from creating private channels. - `team_not_found` — The team provided in the `team_id` argument does not exits. - `user_cannot_create_channel` — This user is not allowed to create a channel. - `user_is_restricted` — This user is restricted and cannot accept the invite. - `user_not_found` — The user accepting the invite is not a member of the team provided in the `team_id` argument. - `user_required_to_accept_as_private_but_cannot` — This uer cannot accept a private channel invitation. See https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite */
560
+ export declare const acceptSharedInvite: API.OperationMethod<AcceptSharedInviteRequest, AcceptSharedInviteResponse, AcceptSharedInviteError, SlackOpContext>;
561
+ export type ApproveRequestSharedInviteError = SlackOpError;
562
+ /** Approves a request to add an external user to a channel and sends them a Slack Connect invite Required scopes — bot: `conversations.connect:manage` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invite_not_found` — We couldn't find a Slack Connect channel invite with the ID provided. - `invite_already_approved` — This invite was already approved. - `invite_already_denied` — This invite was already denied. - `invite_expired` — This invite is expired. - `channel_not_found` — The provided channel was not found or the channel is no longer visible to the user who requested the invite. - `user_not_found` — Can not find the user who requested the invite. - `team_not_found` — Can not find the team who requested the invite. - `restricted_action` — A team preference prevents the invite from being approved. - `no_external_invite_permission` — Channel manager has restricted external invites for a given channel. - `internal_error` — Something unexpected went wrong. - `message_too_long` — If the passed in approve message is greater than 560 characters. See https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.approve */
563
+ export declare const approveRequestSharedInvite: API.OperationMethod<ApproveRequestSharedInviteRequest, ApproveRequestSharedInviteResponse, ApproveRequestSharedInviteError, SlackOpContext>;
564
+ export type ApproveSharedInviteError = SlackOpError;
565
+ /** Approves an invitation to a Slack Connect channel Required scopes — bot: `conversations.connect:manage` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `already_approved` — This invite was already approved by this team. - `approval_inactive` — The approval associated with the invite ID is not active. - `approval_not_found` — We could not find an approval associated with the invite ID provided. - `channel_conversion_in_progress` — A channel conversion is in progress - `channel_not_found` — The channel associated with this invite wasn't found. - `invalid_action` — This action is no longer valid, e.g., trying to approve an invite that has already been approved. - `invalid_link` — The link provided was invalid. - `invite_not_found` — The invite specified wasn't found. - `missing_target_team` — The `target_team` parameter is required for this request. The inviting team must provide this argument. - `not_paid` — The team attempting to approve this invite is not paid and therefore not eligible. - `restricted_action` — A team preference prevents the authenticated user from creating private channels. See https://docs.slack.dev/reference/methods/conversations.approveSharedInvite */
566
+ export declare const approveSharedInvite: API.OperationMethod<ApproveSharedInviteRequest, ApproveSharedInviteResponse, ApproveSharedInviteError, SlackOpContext>;
567
+ export type ArchiveConversationError = SlackOpError;
568
+ /** Archives a conversation. Required scopes — bot: `groups:write`, `im:write`, `mpim:write`, `channels:write`, `channels:manage`; user: `groups:write`, `im:write`, `mpim:write`, `channels:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `already_archived` — Channel has already been archived. - `cant_archive_general` — You cannot archive the general channel - `cant_archive_required` — You cannot archive a required channel - `channel_not_found` — Value passed for `channel` was invalid. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `not_in_channel` — The token can not be found in channel. - `restricted_action` — A team preference prevents the authenticated user from archiving. See https://docs.slack.dev/reference/methods/conversations.archive */
569
+ export declare const archiveConversation: API.OperationMethod<ArchiveConversationRequest, ArchiveConversationResponse, ArchiveConversationError, SlackOpContext>;
570
+ export type ConversationsCloseError = SlackOpError;
571
+ /** Closes a direct message or multi-person direct message. Required scopes — bot: `groups:write`, `im:write`, `mpim:write`, `channels:write`, `channels:manage`; user: `groups:write`, `im:write`, `mpim:write`, `channels:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value passed for `channel` was invalid. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `user_does_not_own_channel` — Calling user does not own this DM channel. - `not_permitted` — Not permitted. - `external_channel_migrating` — External channel migrating. See https://docs.slack.dev/reference/methods/conversations.close */
572
+ export declare const conversationsClose: API.OperationMethod<ConversationsCloseRequest, ConversationsCloseResponse, ConversationsCloseError, SlackOpContext>;
573
+ export type ConversationsHistoryError = SlackOpError;
574
+ /** Fetches a conversation's history of messages and events. Required scopes — bot: `groups:history`, `im:history`, `mpim:history`, `channels:history`; user: `groups:history`, `im:history`, `mpim:history`, `channels:history` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_is_limited_access` — The user has no access to the channel. This is only applicable to private Salesforce record channels. - `channel_not_found` — Value passed for `channel` was invalid. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_metadata_filter_keys` — Value passed for `metadata_keys_to_include` was invalid. Must be valid json array of strings. - `invalid_ts_latest` — Value passed for `latest` was invalid - `invalid_ts_oldest` — Value passed for `oldest` was invalid - `not_in_channel` — The token used does not have access to the proper channel. Only user tokens can access public channels they are not in. See https://docs.slack.dev/reference/methods/conversations.history */
575
+ export declare const conversationsHistory: API.PaginatedOperationMethod<ConversationsHistoryRequest, ConversationsHistoryResponse, ConversationsHistoryError, SlackOpContext, unknown>;
576
+ export type ConversationsInfoError = SlackOpError;
577
+ /** Retrieve information about a conversation. Required scopes — bot: `groups:read`, `im:read`, `mpim:read`, `channels:read`; user: `groups:read`, `im:read`, `mpim:read`, `channels:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_is_limited_access` — The user has no access to the channel. Only applicable to Salesforce limited access channels. - `channel_not_found` — Value passed for `channel` was invalid. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. See https://docs.slack.dev/reference/methods/conversations.info */
578
+ export declare const conversationsInfo: API.OperationMethod<ConversationsInfoRequest, ConversationsInfoResponse, ConversationsInfoError, SlackOpContext>;
579
+ export type ConversationsKickError = SlackOpError;
580
+ /** Removes a user from a conversation. Required scopes — bot: `groups:write`, `channels:manage`; user: `groups:write`, `channels:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `cant_kick_from_general` — User cannot be removed from #general. - `cant_kick_self` — Authenticated user can't kick themselves from a channel. - `channel_not_found` — Value passed for `channel` was invalid. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `not_in_channel` — User was not in the channel. - `not_supported` — This is not supported for this channel and user combination. - `restricted_action` — A team preference prevents the authenticated user from kicking. - `user_not_found` — Value passed for `user` was invalid. See https://docs.slack.dev/reference/methods/conversations.kick */
581
+ export declare const conversationsKick: API.OperationMethod<ConversationsKickRequest, ConversationsKickResponse, ConversationsKickError, SlackOpContext>;
582
+ export type ConversationsMarkError = SlackOpError;
583
+ /** Sets the read cursor in a channel. Required scopes — bot: `groups:write`, `im:write`, `mpim:write`, `channels:write`, `channels:manage`; user: `groups:write`, `im:write`, `mpim:write`, `channels:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value passed for `channel` was invalid. - `invalid_timestamp` — Value passed for `timestamp` was invalid. - `not_in_channel` — Caller is not a member of the channel. See https://docs.slack.dev/reference/methods/conversations.mark */
584
+ export declare const conversationsMark: API.OperationMethod<ConversationsMarkRequest, ConversationsMarkResponse, ConversationsMarkError, SlackOpContext>;
585
+ export type ConversationsMembersError = SlackOpError;
586
+ /** Retrieve members of a conversation. Required scopes — bot: `groups:read`, `im:read`, `mpim:read`, `channels:read`; user: `groups:read`, `im:read`, `mpim:read`, `channels:read` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value passed for `channel` was invalid. - `fetch_members_failed` — Failed to fetch members for the conversation. - `invalid_cursor` — Value passed for `cursor` was invalid. - `invalid_limit` — Value passed for `limit` was invalid. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. See https://docs.slack.dev/reference/methods/conversations.members */
587
+ export declare const conversationsMembers: API.PaginatedOperationMethod<ConversationsMembersRequest, ConversationsMembersResponse, ConversationsMembersError, SlackOpContext, string>;
588
+ export type ConversationsOpenError = SlackOpError;
589
+ /** Opens or resumes a direct message or multi-person direct message. Required scopes — bot: `channels:manage`, `groups:write`, `im:write`, `mpim:write`; user: `channels:write`, `groups:write`, `im:write`, `mpim:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value passed for `channel` was invalid. - `invalid_user_combination` — All external people must already be in at least one channel together to send a message. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `not_enough_users` — Needs at least 2 users to open - `too_many_users` — Needs at most 8 users to open - `user_disabled` — A specified `user` has been disabled. - `user_not_found` — Value(s) passed for `users` was invalid. - `user_not_visible` — The calling user is restricted from seeing the requested user. - `users_list_not_supplied` — Missing `users` in request See https://docs.slack.dev/reference/methods/conversations.open */
590
+ export declare const conversationsOpen: API.OperationMethod<ConversationsOpenRequest, ConversationsOpenResponse, ConversationsOpenError, SlackOpContext>;
591
+ export type ConversationsRepliesError = SlackOpError;
592
+ /** Retrieve a thread of messages posted to a conversation Required scopes — bot: `groups:history`, `im:history`, `mpim:history`, `channels:history`; user: `groups:history`, `im:history`, `mpim:history`, `channels:history` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value for `channel` was missing or invalid. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_metadata_filter_keys` — Value passed for `metadata_keys_to_include` was invalid. Must be valid json array of strings. - `invalid_ts_latest` — Value passed for `latest` was invalid - `invalid_ts_oldest` — Value passed for `oldest` was invalid - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `thread_not_found` — Value for `ts` was missing or invalid. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `list_record_comment_fetch_failed` — Failed to fetch list record comments. See https://docs.slack.dev/reference/methods/conversations.replies */
593
+ export declare const conversationsReplies: API.PaginatedOperationMethod<ConversationsRepliesRequest, ConversationsRepliesResponse, ConversationsRepliesError, SlackOpContext, unknown>;
594
+ export type CreateCanvaseError = SlackOpError;
595
+ /** 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. See https://docs.slack.dev/reference/methods/conversations.canvases.create */
596
+ export declare const createCanvase: API.OperationMethod<CreateCanvaseRequest, CreateCanvaseResponse, CreateCanvaseError, SlackOpContext>;
597
+ export type CreateConversationError = SlackOpError;
598
+ /** Initiates a public or private channel-based conversation Required scopes — bot: `groups:write`, `im:write`, `mpim:write`, `channels:write`, `channels:manage`; user: `groups:write`, `im:write`, `mpim:write`, `channels:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `cannot_create_channel` — This channel is unable to be created. - `invalid_name` — Value passed for `name` was invalid. - `invalid_name_maxlength` — Value passed for `name` exceeded max length. - `invalid_name_punctuation` — Value passed for `name` contained only punctuation. - `invalid_name_required` — Value passed for `name` was empty. - `invalid_name_specials` — Value passed for `name` contained unallowed special characters or upper case characters. - `missing_argument` — A required argument is missing. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `name_taken` — A channel cannot be created with the given name. - `no_channel` — Value passed for `name` was empty. - `restricted_action` — A team (workspace) preference prevents the authenticated user from creating channels. - `canvas_disabled_user_team` — Canvas is disabled on user's team See https://docs.slack.dev/reference/methods/conversations.create */
599
+ export declare const createConversation: API.OperationMethod<CreateConversationRequest, CreateConversationResponse, CreateConversationError, SlackOpContext>;
600
+ export type InviteConversationError = SlackOpError;
601
+ /** Invites users to a channel. Required scopes — bot: `channels:write.invites`, `groups:write.invites`, `channels:manage`, `groups:write`, `im:write`, `mpim:write`; user: `channels:write.invites`, `groups:write.invites`, `channels:write`, `groups:write`, `im:write`, `mpim:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `already_in_channel` — Invited user is already in the channel. - `app_cannot_join_channel` — This app cannot be invited to this channel. - `cant_invite` — User cannot be invited to this channel. - `cant_invite_self` — Authenticated user cannot invite themselves to a channel. - `channel_not_found` — Value passed for `channel` was invalid. - `invitee_cant_see_channel` — The Enterprise org multi-workspace channel you are inviting a user to is not shared with any workspaces the user is currently a member of. - `is_archived` — Channel has been archived. - `org_user_not_in_team` — One or more members invited are part of the Enterprise organization but not the specific workspace you're interfacing with. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `no_permission` — User does not have permission to invite that specific user to the channel - `no_external_invite_permission` — User does not have permission to invite that external user to the channel - `no_user` — No value was passed for `users`. - `not_in_channel` — Authenticated user is not in the channel. - `ura_max_channels` — An invited user is a single-channel guest user ('ultra restricted access') that is already in the maximum number of conversations. - `user_is_restricted` — An invited user is a guest user that is restricted from accessing this conversation. - `user_not_found` — Value passed for `users` was invalid. - `external_channel_migrating` — External channel migrating. See https://docs.slack.dev/reference/methods/conversations.invite */
602
+ export declare const inviteConversation: API.OperationMethod<InviteConversationRequest, InviteConversationResponse, InviteConversationError, SlackOpContext>;
603
+ export type InviteDeclineSharedError = SlackOpError;
604
+ /** Declines a Slack Connect channel invite. Required scopes — bot: `conversations.connect:manage` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `approval_inactive` — This approval is no longer active, it may have expired or been declined. - `approval_not_found` — We could not find a Slack Connect approval for the invite provided. - `inactive_invite` — This invitation is no longer active, it may have expired or been revoked. - `invite_not_found` — We could not find a Slack Connect invite associated with the ID provided. - `missing_target_team` — The `target_team` parameter is required for this request. - `not_paid` — The workspace is not eligible to use Slack Connect. - `restricted_action` — A team preference prevents the authenticated user from declining Slack Connect invites.. See https://docs.slack.dev/reference/methods/conversations.declineSharedInvite */
605
+ export declare const inviteDeclineShared: API.OperationMethod<InviteDeclineSharedRequest, InviteDeclineSharedResponse, InviteDeclineSharedError, SlackOpContext>;
606
+ export type InviteSharedError = SlackOpError;
607
+ /** 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 */
608
+ export declare const inviteShared: API.OperationMethod<InviteSharedRequest, InviteSharedResponse, InviteSharedError, SlackOpContext>;
609
+ export type JoinConversationError = SlackOpError;
610
+ /** Joins an existing conversation. Required scopes — user: `channels:write`; bot: `channels:join` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_is_limited_access` — The user has no access to the channel. This is only applicable to private Salesforce record channels. - `channel_not_found` — Value passed for `channel` was invalid. - `is_archived` — Channel has been archived. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `too_many_members` — The membership in the channel has exceeded our maximum member limit. No more users can join the channel. See https://docs.slack.dev/reference/methods/conversations.join */
611
+ export declare const joinConversation: API.OperationMethod<JoinConversationRequest, JoinConversationResponse, JoinConversationError, SlackOpContext>;
612
+ export type LeaveConversationError = SlackOpError;
613
+ /** Leaves a conversation. Required scopes — bot: `groups:write`, `im:write`, `mpim:write`, `channels:write`, `channels:manage`; user: `groups:write`, `im:write`, `mpim:write`, `channels:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `cant_leave_general` — Authenticated user cannot leave the general channel - `channel_not_found` — Value passed for `channel` was invalid. - `is_archived` — Channel has been archived. - `last_member` — The last member party to a channel cannot leave the channel. Someone else must join the channel before this user is permitted to exit. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `user_is_restricted` — Restricted and guest users cannot leave channel See https://docs.slack.dev/reference/methods/conversations.leave */
614
+ export declare const leaveConversation: API.OperationMethod<LeaveConversationRequest, LeaveConversationResponse, LeaveConversationError, SlackOpContext>;
615
+ export type ListConnectInvitesError = SlackOpError;
616
+ /** Lists shared channel invites that have been generated or received but have not been approved by all parties Required scopes — bot: `conversations.connect:manage` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — An invalid argument was supplied to the method. - `restricted_action` — A team preference prevents the authenticated user from viewing shared channel invites. See https://docs.slack.dev/reference/methods/conversations.listConnectInvites */
617
+ export declare const listConnectInvites: API.PaginatedOperationMethod<ListConnectInvitesRequest, ListConnectInvitesResponse, ListConnectInvitesError, SlackOpContext, unknown>;
618
+ export type ListConversationsError = SlackOpError;
619
+ /** Lists all channels in a Slack team. Required scopes — bot: `groups:read`, `im:read`, `mpim:read`, `channels:read`; user: `groups:read`, `im:read`, `mpim:read`, `channels:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_limit` — Value passed for `limit` is not understood. - `invalid_types` — Value passed for `type` could not be used based on the method's capabilities or the permission scopes granted to the used token. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_argument` — A required argument is missing. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. See https://docs.slack.dev/reference/methods/conversations.list */
620
+ export declare const listConversations: API.PaginatedOperationMethod<ListConversationsRequest, ListConversationsResponse, ListConversationsError, SlackOpContext, unknown>;
621
+ export type ListRequestSharedInviteError = SlackOpError;
622
+ /** Lists requests to add external users to channels with ability to filter. Required scopes — bot: `conversations.connect:manage` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `restricted_action` — A team preference prevents the user from listing invitation requests. - `invalid_cursor` — The provided cursor is not valid. - `internal_error` — Something unexpected went wrong. - `not_implemented` — its not implemented! TODO: remove me See https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.list */
623
+ export declare const listRequestSharedInvite: API.PaginatedOperationMethod<ListRequestSharedInviteRequest, ListRequestSharedInviteResponse, ListRequestSharedInviteError, SlackOpContext, unknown>;
624
+ export type RenameConversationError = SlackOpError;
625
+ /** Renames a conversation. Required scopes — bot: `groups:write`, `im:write`, `mpim:write`, `channels:write`, `channels:manage`; user: `groups:write`, `im:write`, `mpim:write`, `channels:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value passed for `channel` was invalid. - `invalid_name` — Value passed for `name` was invalid. - `invalid_name_maxlength` — Value passed for `name` exceeded max length. - `invalid_name_punctuation` — Value passed for `name` contained only punctuation. - `invalid_name_required` — Value passed for `name` was empty. - `invalid_name_specials` — Value passed for `name` contained unallowed special characters or upper case characters. - `is_archived` — Cannot rename archived channel. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `name_taken` — New channel name is taken. - `not_authorized` — Caller cannot rename this channel. - `not_in_channel` — Caller is not a member of the channel. See https://docs.slack.dev/reference/methods/conversations.rename */
626
+ export declare const renameConversation: API.OperationMethod<RenameConversationRequest, RenameConversationResponse, RenameConversationError, SlackOpContext>;
627
+ export type RequestSharedInviteDenyError = SlackOpError;
628
+ /** Denies a request to invite an external user to a channel Required scopes — bot: `conversations.connect:manage` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invite_not_found` — We couldn't find a Slack Connect channel invite with the ID provided. - `user_not_found` — We could not find the user who made the invite request. - `team_not_found` — We could not find the team which made the invite request. - `channel_not_found` — We could not find the channel where the request was made. - `invite_already_approved` — This invite was already approved. - `invite_already_denied` — This invite was already denied. - `invite_expired` — This invite is expired. - `restricted_action` — A team preference prevents the invite from being denied. - `internal_error` — Something unexpected went wrong. - `message_too_long` — If the passed in deny message is greater than 560 characters. See https://docs.slack.dev/reference/methods/conversations.requestSharedInvite.deny */
629
+ export declare const requestSharedInviteDeny: API.OperationMethod<RequestSharedInviteDenyRequest, RequestSharedInviteDenyResponse, RequestSharedInviteDenyError, SlackOpContext>;
630
+ export type SetExternalInvitePermissionsError = SlackOpError;
631
+ /** 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 provid a valid action. Valid actions are 'upgrade' or 'downgrade'. See https://docs.slack.dev/reference/methods/conversations.externalInvitePermissions.set */
632
+ export declare const setExternalInvitePermissions: API.OperationMethod<SetExternalInvitePermissionsRequest, SetExternalInvitePermissionsResponse, SetExternalInvitePermissionsError, SlackOpContext>;
633
+ export type SetPurposeError = SlackOpError;
634
+ /** Sets the channel description. Required scopes — bot: `channels:write.topic`, `groups:write.topic`, `mpim:write.topic`, `im:write.topic`, `channels:manage`, `groups:write`, `im:write`, `mpim:write`; user: `channels:write.topic`, `groups:write.topic`, `mpim:write.topic`, `im:write.topic`, `channels:write`, `groups:write`, `im:write`, `mpim:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value passed for `channel` was invalid. - `is_archived` — Channel has been archived. - `method_not_supported_for_channel_type` — This conversation type cannot be used with this method. - `missing_scope` — The calling token has not been granted the necessary scopes to complete this operation. - `not_in_channel` — Authenticated user is not in the channel. - `too_long` — Description was longer than 250 characters. - `user_is_restricted` — Setting the channel description is a restricted action. See https://docs.slack.dev/reference/methods/conversations.setPurpose */
635
+ export declare const setPurpose: API.OperationMethod<SetPurposeRequest, SetPurposeResponse, SetPurposeError, SlackOpContext>;
636
+ export type SetTopicError = SlackOpError;
637
+ /** Sets the topic for a conversation. Required scopes — bot: `channels:write.topic`, `groups:write.topic`, `mpim:write.topic`, `im:write.topic`, `channels:manage`, `groups:write`, `im:write`, `mpim:write`; user: `channels:write.topic`, `groups:write.topic`, `mpim:write.topic`, `im:write.topic`, `channels:write`, `groups:write`, `im:write`, `mpim:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value passed for `channel` was invalid. - `is_archived` — Channel has been archived. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `not_in_channel` — Authenticated user is not in the channel. - `too_long` — Topic was longer than 250 characters. - `user_is_restricted` — Setting the topic is a restricted action. See https://docs.slack.dev/reference/methods/conversations.setTopic */
638
+ export declare const setTopic: API.OperationMethod<SetTopicRequest, SetTopicResponse, SetTopicError, SlackOpContext>;
639
+ export type UnarchiveConversationError = SlackOpError;
640
+ /** Reverses conversation archival. Required scopes — bot: `groups:write`, `im:write`, `mpim:write`, `channels:write`, `channels:manage`; user: `groups:write`, `im:write`, `mpim:write`, `channels:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value passed for `channel` was invalid. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `not_archived` — Channel is not archived. See https://docs.slack.dev/reference/methods/conversations.unarchive */
641
+ export declare const unarchiveConversation: API.OperationMethod<UnarchiveConversationRequest, UnarchiveConversationResponse, UnarchiveConversationError, SlackOpContext>;
642
+ //# sourceMappingURL=conversations.d.ts.map