@distilled.cloud/slack 1.0.0-rc.15 → 1.0.0-rc.16

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 (209) hide show
  1. package/lib/credentials.d.ts +1 -1
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +39 -34
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +31 -31
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +41 -41
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +1 -1
  10. package/lib/index.js +9 -9
  11. package/lib/pagination.d.ts +2 -2
  12. package/lib/pagination.js +28 -28
  13. package/lib/protocol.d.ts.map +1 -1
  14. package/lib/protocol.js +61 -59
  15. package/lib/protocol.js.map +1 -1
  16. package/lib/retry.d.ts +2 -2
  17. package/lib/retry.d.ts.map +1 -1
  18. package/lib/retry.js +34 -33
  19. package/lib/retry.js.map +1 -1
  20. package/lib/services/admin.d.ts +123 -575
  21. package/lib/services/admin.d.ts.map +1 -1
  22. package/lib/services/admin.js +304 -2878
  23. package/lib/services/agents.d.ts +13 -55
  24. package/lib/services/agents.d.ts.map +1 -1
  25. package/lib/services/agents.js +48 -309
  26. package/lib/services/api.d.ts +0 -4
  27. package/lib/services/api.d.ts.map +1 -1
  28. package/lib/services/api.js +16 -18
  29. package/lib/services/apps.d.ts +25 -106
  30. package/lib/services/apps.d.ts.map +1 -1
  31. package/lib/services/apps.js +84 -509
  32. package/lib/services/assistant.d.ts +6 -40
  33. package/lib/services/assistant.d.ts.map +1 -1
  34. package/lib/services/assistant.js +33 -204
  35. package/lib/services/auth.d.ts +4 -15
  36. package/lib/services/auth.d.ts.map +1 -1
  37. package/lib/services/auth.js +22 -90
  38. package/lib/services/blocks.d.ts +1 -7
  39. package/lib/services/blocks.d.ts.map +1 -1
  40. package/lib/services/blocks.js +16 -21
  41. package/lib/services/bookmarks.d.ts +4 -15
  42. package/lib/services/bookmarks.d.ts.map +1 -1
  43. package/lib/services/bookmarks.js +27 -76
  44. package/lib/services/bots.d.ts +1 -9
  45. package/lib/services/bots.d.ts.map +1 -1
  46. package/lib/services/bots.js +17 -54
  47. package/lib/services/calls.d.ts +6 -22
  48. package/lib/services/calls.d.ts.map +1 -1
  49. package/lib/services/calls.js +35 -110
  50. package/lib/services/canvases.d.ts +7 -35
  51. package/lib/services/canvases.d.ts.map +1 -1
  52. package/lib/services/canvases.js +39 -135
  53. package/lib/services/chat.d.ts +14 -83
  54. package/lib/services/chat.d.ts.map +1 -1
  55. package/lib/services/chat.js +59 -381
  56. package/lib/services/conversations.d.ts +31 -116
  57. package/lib/services/conversations.d.ts.map +1 -1
  58. package/lib/services/conversations.js +94 -690
  59. package/lib/services/dialog.d.ts +1 -4
  60. package/lib/services/dialog.d.ts.map +1 -1
  61. package/lib/services/dialog.js +13 -17
  62. package/lib/services/dnd.d.ts +5 -17
  63. package/lib/services/dnd.d.ts.map +1 -1
  64. package/lib/services/dnd.js +26 -91
  65. package/lib/services/emoji.d.ts +1 -8
  66. package/lib/services/emoji.d.ts.map +1 -1
  67. package/lib/services/emoji.js +18 -29
  68. package/lib/services/entity.d.ts +4 -16
  69. package/lib/services/entity.d.ts.map +1 -1
  70. package/lib/services/entity.js +29 -71
  71. package/lib/services/files.d.ts +16 -80
  72. package/lib/services/files.d.ts.map +1 -1
  73. package/lib/services/files.js +75 -433
  74. package/lib/services/functions.d.ts +8 -49
  75. package/lib/services/functions.d.ts.map +1 -1
  76. package/lib/services/functions.js +45 -203
  77. package/lib/services/lists.d.ts +13 -55
  78. package/lib/services/lists.d.ts.map +1 -1
  79. package/lib/services/lists.js +53 -248
  80. package/lib/services/migration.d.ts +1 -7
  81. package/lib/services/migration.d.ts.map +1 -1
  82. package/lib/services/migration.js +18 -27
  83. package/lib/services/oauth.d.ts +7 -43
  84. package/lib/services/oauth.d.ts.map +1 -1
  85. package/lib/services/oauth.js +34 -289
  86. package/lib/services/openid.d.ts +3 -10
  87. package/lib/services/openid.d.ts.map +1 -1
  88. package/lib/services/openid.js +19 -79
  89. package/lib/services/pins.d.ts +3 -13
  90. package/lib/services/pins.d.ts.map +1 -1
  91. package/lib/services/pins.js +27 -61
  92. package/lib/services/reactions.d.ts +5 -17
  93. package/lib/services/reactions.d.ts.map +1 -1
  94. package/lib/services/reactions.js +30 -96
  95. package/lib/services/reminders.d.ts +5 -17
  96. package/lib/services/reminders.d.ts.map +1 -1
  97. package/lib/services/reminders.js +33 -83
  98. package/lib/services/rtm.d.ts +2 -11
  99. package/lib/services/rtm.d.ts.map +1 -1
  100. package/lib/services/rtm.js +22 -56
  101. package/lib/services/search.d.ts +4 -35
  102. package/lib/services/search.d.ts.map +1 -1
  103. package/lib/services/search.js +28 -167
  104. package/lib/services/stars.d.ts +4 -26
  105. package/lib/services/stars.d.ts.map +1 -1
  106. package/lib/services/stars.js +28 -128
  107. package/lib/services/team.d.ts +11 -63
  108. package/lib/services/team.d.ts.map +1 -1
  109. package/lib/services/team.js +45 -289
  110. package/lib/services/tooling.d.ts +2 -5
  111. package/lib/services/tooling.d.ts.map +1 -1
  112. package/lib/services/tooling.js +15 -28
  113. package/lib/services/usergroups.d.ts +7 -31
  114. package/lib/services/usergroups.d.ts.map +1 -1
  115. package/lib/services/usergroups.js +40 -146
  116. package/lib/services/users.d.ts +14 -48
  117. package/lib/services/users.d.ts.map +1 -1
  118. package/lib/services/users.js +54 -249
  119. package/lib/services/views.d.ts +4 -14
  120. package/lib/services/views.d.ts.map +1 -1
  121. package/lib/services/views.js +28 -73
  122. package/lib/services/workflows.d.ts +8 -51
  123. package/lib/services/workflows.d.ts.map +1 -1
  124. package/lib/services/workflows.js +37 -188
  125. package/lib/traits.d.ts +1 -1
  126. package/lib/traits.js +8 -8
  127. package/package.json +14 -10
  128. package/src/credentials.ts +20 -21
  129. package/src/errors.ts +31 -27
  130. package/src/index.ts +1 -1
  131. package/src/pagination.ts +2 -2
  132. package/src/protocol.ts +30 -29
  133. package/src/retry.ts +6 -6
  134. package/src/services/admin.ts +2717 -3451
  135. package/src/services/agents.ts +380 -370
  136. package/src/services/api.ts +31 -21
  137. package/src/services/apps.ts +569 -621
  138. package/src/services/assistant.ts +235 -270
  139. package/src/services/auth.ts +118 -100
  140. package/src/services/blocks.ts +33 -29
  141. package/src/services/bookmarks.ts +101 -83
  142. package/src/services/bots.ts +74 -67
  143. package/src/services/calls.ts +118 -124
  144. package/src/services/canvases.ts +171 -178
  145. package/src/services/chat.ts +428 -496
  146. package/src/services/conversations.ts +675 -761
  147. package/src/services/dialog.ts +30 -17
  148. package/src/services/dnd.ts +125 -99
  149. package/src/services/emoji.ts +46 -42
  150. package/src/services/entity.ts +94 -92
  151. package/src/services/files.ts +536 -531
  152. package/src/services/functions.ts +209 -274
  153. package/src/services/lists.ts +289 -304
  154. package/src/services/migration.ts +39 -37
  155. package/src/services/oauth.ts +345 -361
  156. package/src/services/openid.ts +137 -122
  157. package/src/services/pins.ts +83 -70
  158. package/src/services/reactions.ts +119 -103
  159. package/src/services/reminders.ts +112 -90
  160. package/src/services/rtm.ts +73 -65
  161. package/src/services/search.ts +193 -244
  162. package/src/services/stars.ts +101 -160
  163. package/src/services/team.ts +333 -369
  164. package/src/services/tooling.ts +43 -30
  165. package/src/services/usergroups.ts +175 -179
  166. package/src/services/users.ts +301 -268
  167. package/src/services/views.ts +85 -80
  168. package/src/services/workflows.ts +184 -269
  169. package/src/traits.ts +1 -1
  170. package/lib/protocol.test.d.ts +0 -2
  171. package/lib/protocol.test.d.ts.map +0 -1
  172. package/lib/protocol.test.js +0 -288
  173. package/lib/protocol.test.js.map +0 -1
  174. package/lib/services/admin.js.map +0 -1
  175. package/lib/services/agents.js.map +0 -1
  176. package/lib/services/api.js.map +0 -1
  177. package/lib/services/apps.js.map +0 -1
  178. package/lib/services/assistant.js.map +0 -1
  179. package/lib/services/auth.js.map +0 -1
  180. package/lib/services/blocks.js.map +0 -1
  181. package/lib/services/bookmarks.js.map +0 -1
  182. package/lib/services/bots.js.map +0 -1
  183. package/lib/services/calls.js.map +0 -1
  184. package/lib/services/canvases.js.map +0 -1
  185. package/lib/services/chat.js.map +0 -1
  186. package/lib/services/conversations.js.map +0 -1
  187. package/lib/services/dialog.js.map +0 -1
  188. package/lib/services/dnd.js.map +0 -1
  189. package/lib/services/emoji.js.map +0 -1
  190. package/lib/services/entity.js.map +0 -1
  191. package/lib/services/files.js.map +0 -1
  192. package/lib/services/functions.js.map +0 -1
  193. package/lib/services/lists.js.map +0 -1
  194. package/lib/services/migration.js.map +0 -1
  195. package/lib/services/oauth.js.map +0 -1
  196. package/lib/services/openid.js.map +0 -1
  197. package/lib/services/pins.js.map +0 -1
  198. package/lib/services/reactions.js.map +0 -1
  199. package/lib/services/reminders.js.map +0 -1
  200. package/lib/services/rtm.js.map +0 -1
  201. package/lib/services/search.js.map +0 -1
  202. package/lib/services/stars.js.map +0 -1
  203. package/lib/services/team.js.map +0 -1
  204. package/lib/services/tooling.js.map +0 -1
  205. package/lib/services/usergroups.js.map +0 -1
  206. package/lib/services/users.js.map +0 -1
  207. package/lib/services/views.js.map +0 -1
  208. package/lib/services/workflows.js.map +0 -1
  209. package/src/protocol.test.ts +0 -372
@@ -1,5 +1,4 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
- import * as S from "@distilled.cloud/core/schema";
3
2
  import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
4
3
  export type { SlackOpError, SlackOpContext };
5
4
  export interface AcceptSharedInviteRequest {
@@ -9,14 +8,13 @@ export interface AcceptSharedInviteRequest {
9
8
  is_private?: boolean;
10
9
  /** Whether you'd like to use your workspace's free trial to begin using Slack Connect. */
11
10
  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. */
11
+ /** 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
12
  invite_id?: string;
14
13
  /** ID of the channel that you'd like to accept. Must provide either `invite_id` or `channel_id`. */
15
14
  channel_id?: string;
16
15
  /** 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
16
  team_id?: string;
18
17
  }
19
- export declare const AcceptSharedInviteRequest: S.Schema<AcceptSharedInviteRequest>;
20
18
  export interface AcceptSharedInviteResponse {
21
19
  /** Always `true` (a failed call raises a typed error instead). */
22
20
  ok: boolean;
@@ -27,7 +25,6 @@ export interface AcceptSharedInviteResponse {
27
25
  /** Indicates if the acceptor can SCDM the inviter */
28
26
  can_open_scdm: boolean;
29
27
  }
30
- export declare const AcceptSharedInviteResponse: S.Schema<AcceptSharedInviteResponse>;
31
28
  /** 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
29
  export interface ApproveRequestSharedInviteRequestMessage {
33
30
  /** text to include along with email invite */
@@ -35,7 +32,6 @@ export interface ApproveRequestSharedInviteRequestMessage {
35
32
  /** When true will override the user specified message. Otherwise text will be appended to the user specified message on the invite request. */
36
33
  is_override: boolean;
37
34
  }
38
- export declare const ApproveRequestSharedInviteRequestMessage: S.Schema<ApproveRequestSharedInviteRequestMessage>;
39
35
  export interface ApproveRequestSharedInviteRequest {
40
36
  /** ID of the requested shared channel invite to approve. */
41
37
  invite_id: string;
@@ -46,7 +42,6 @@ export interface ApproveRequestSharedInviteRequest {
46
42
  /** 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
43
  message?: ApproveRequestSharedInviteRequestMessage;
48
44
  }
49
- export declare const ApproveRequestSharedInviteRequest: S.Schema<ApproveRequestSharedInviteRequest>;
50
45
  export interface ApproveRequestSharedInviteResponse {
51
46
  /** Always `true` (a failed call raises a typed error instead). */
52
47
  ok: boolean;
@@ -54,40 +49,33 @@ export interface ApproveRequestSharedInviteResponse {
54
49
  confirmation_code?: string;
55
50
  url?: string;
56
51
  }
57
- export declare const ApproveRequestSharedInviteResponse: S.Schema<ApproveRequestSharedInviteResponse>;
58
52
  export interface ApproveSharedInviteRequest {
59
53
  /** ID of the shared channel invite to approve */
60
54
  invite_id: string;
61
55
  /** The team or enterprise ID of the receiving party involved in the invitation you are approving */
62
56
  target_team?: string;
63
57
  }
64
- export declare const ApproveSharedInviteRequest: S.Schema<ApproveSharedInviteRequest>;
65
58
  export interface ApproveSharedInviteResponse {
66
59
  ok: boolean;
67
60
  }
68
- export declare const ApproveSharedInviteResponse: S.Schema<ApproveSharedInviteResponse>;
69
61
  export interface ArchiveConversationRequest {
70
62
  /** ID of conversation to archive */
71
63
  channel: string;
72
64
  }
73
- export declare const ArchiveConversationRequest: S.Schema<ArchiveConversationRequest>;
74
65
  export interface ArchiveConversationResponse {
75
66
  /** Always `true` (a failed call raises a typed error instead). */
76
67
  ok: boolean;
77
68
  }
78
- export declare const ArchiveConversationResponse: S.Schema<ArchiveConversationResponse>;
79
69
  export interface ConversationsCloseRequest {
80
70
  /** Conversation to close. */
81
71
  channel: string;
82
72
  }
83
- export declare const ConversationsCloseRequest: S.Schema<ConversationsCloseRequest>;
84
73
  export interface ConversationsCloseResponse {
85
74
  /** Always `true` (a failed call raises a typed error instead). */
86
75
  ok: boolean;
87
76
  already_closed?: boolean;
88
77
  no_op?: boolean;
89
78
  }
90
- export declare const ConversationsCloseResponse: S.Schema<ConversationsCloseResponse>;
91
79
  export interface ConversationsHistoryRequest {
92
80
  /** Conversation ID to fetch history for. */
93
81
  channel: string;
@@ -104,35 +92,26 @@ export interface ConversationsHistoryRequest {
104
92
  /** Only messages after this Unix timestamp will be included in results. */
105
93
  oldest?: string;
106
94
  }
107
- export declare const ConversationsHistoryRequest: S.Schema<ConversationsHistoryRequest>;
108
95
  export type ConversationsHistoryResponseMessagesList = Array<unknown>;
109
- export declare const ConversationsHistoryResponseMessagesList: S.Schema<ConversationsHistoryResponseMessagesList>;
110
96
  /** Pagination metadata. An empty `next_cursor` means the last page. */
111
97
  export interface ConversationsHistoryResponseResponseMetadata {
112
- /** Cursor for the next page — pass as `cursor` on the next call. */
98
+ /** Cursor for the next page -- pass as `cursor` on the next call. */
113
99
  next_cursor?: string;
114
100
  }
115
- export declare const ConversationsHistoryResponseResponseMetadata: S.Schema<ConversationsHistoryResponseResponseMetadata>;
116
101
  export type ConversationsHistoryResponseUsersMap = {
117
102
  [key: string]: unknown | undefined;
118
103
  };
119
- export declare const ConversationsHistoryResponseUsersMap: S.Schema<ConversationsHistoryResponseUsersMap>;
120
104
  export type ConversationsHistoryResponseDeletedList = Array<string>;
121
- export declare const ConversationsHistoryResponseDeletedList: S.Schema<ConversationsHistoryResponseDeletedList>;
122
105
  export interface ConversationsHistoryResponseMutationTimestamps {
123
106
  latest: string;
124
107
  updated: string;
125
108
  history_invalid: string;
126
109
  }
127
- export declare const ConversationsHistoryResponseMutationTimestamps: S.Schema<ConversationsHistoryResponseMutationTimestamps>;
128
110
  export type ConversationsHistoryResponseWarningsList = Array<string>;
129
- export declare const ConversationsHistoryResponseWarningsList: S.Schema<ConversationsHistoryResponseWarningsList>;
130
111
  export type ConversationsHistoryResponseLatestUpdatesMap = {
131
112
  [key: string]: unknown | undefined;
132
113
  };
133
- export declare const ConversationsHistoryResponseLatestUpdatesMap: S.Schema<ConversationsHistoryResponseLatestUpdatesMap>;
134
114
  export type ConversationsHistoryResponseUnchangedMessagesList = Array<string>;
135
- export declare const ConversationsHistoryResponseUnchangedMessagesList: S.Schema<ConversationsHistoryResponseUnchangedMessagesList>;
136
115
  export interface ConversationsHistoryResponse {
137
116
  /** Always `true` (a failed call raises a typed error instead). */
138
117
  ok: boolean;
@@ -158,7 +137,6 @@ export interface ConversationsHistoryResponse {
158
137
  /** Unix timestamp of when the user joined the channel */
159
138
  date_joined?: number;
160
139
  }
161
- export declare const ConversationsHistoryResponse: S.Schema<ConversationsHistoryResponse>;
162
140
  export interface ConversationsInfoRequest {
163
141
  /** Conversation ID to learn more about */
164
142
  channel: string;
@@ -167,7 +145,6 @@ export interface ConversationsInfoRequest {
167
145
  /** Set to `true` to include the member count for the specified conversation. Defaults to `false` */
168
146
  include_num_members?: boolean;
169
147
  }
170
- export declare const ConversationsInfoRequest: S.Schema<ConversationsInfoRequest>;
171
148
  export interface ConversationsInfoResponse {
172
149
  /** Always `true` (a failed call raises a typed error instead). */
173
150
  ok: boolean;
@@ -175,31 +152,26 @@ export interface ConversationsInfoResponse {
175
152
  channel: unknown;
176
153
  home_view?: unknown | null;
177
154
  }
178
- export declare const ConversationsInfoResponse: S.Schema<ConversationsInfoResponse>;
179
155
  export interface ConversationsKickRequest {
180
156
  /** ID of conversation to remove user from. */
181
157
  channel: string;
182
158
  /** User ID to be removed. */
183
159
  user?: string;
184
160
  }
185
- export declare const ConversationsKickRequest: S.Schema<ConversationsKickRequest>;
186
161
  export interface ConversationsKickResponse {
187
162
  /** Always `true` (a failed call raises a typed error instead). */
188
163
  ok: boolean;
189
164
  }
190
- export declare const ConversationsKickResponse: S.Schema<ConversationsKickResponse>;
191
165
  export interface ConversationsMarkRequest {
192
166
  /** Channel or conversation to set the read cursor for. */
193
167
  channel: string;
194
168
  /** Unique identifier of message you want marked as most recently seen in this conversation. */
195
169
  ts: string;
196
170
  }
197
- export declare const ConversationsMarkRequest: S.Schema<ConversationsMarkRequest>;
198
171
  export interface ConversationsMarkResponse {
199
172
  /** Always `true` (a failed call raises a typed error instead). */
200
173
  ok: boolean;
201
174
  }
202
- export declare const ConversationsMarkResponse: S.Schema<ConversationsMarkResponse>;
203
175
  export interface ConversationsMembersRequest {
204
176
  /** ID of the conversation to retrieve members for */
205
177
  channel: string;
@@ -208,12 +180,9 @@ export interface ConversationsMembersRequest {
208
180
  /** 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. */
209
181
  limit?: number;
210
182
  }
211
- export declare const ConversationsMembersRequest: S.Schema<ConversationsMembersRequest>;
212
183
  export type ConversationsMembersResponseMembersList = Array<string>;
213
- export declare const ConversationsMembersResponseMembersList: S.Schema<ConversationsMembersResponseMembersList>;
214
184
  /** Pagination metadata. An empty `next_cursor` means the last page. */
215
185
  export type ConversationsMembersResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
216
- export declare const ConversationsMembersResponseResponseMetadata: S.Schema<ConversationsHistoryResponseResponseMetadata>;
217
186
  export interface ConversationsMembersResponse {
218
187
  /** Always `true` (a failed call raises a typed error instead). */
219
188
  ok: boolean;
@@ -221,7 +190,6 @@ export interface ConversationsMembersResponse {
221
190
  /** Pagination metadata. An empty `next_cursor` means the last page. */
222
191
  response_metadata?: ConversationsHistoryResponseResponseMetadata;
223
192
  }
224
- export declare const ConversationsMembersResponse: S.Schema<ConversationsMembersResponse>;
225
193
  export interface ConversationsOpenRequest {
226
194
  /** Resume a conversation by supplying an `im` or `mpim`'s ID. Or provide the `users` field instead. */
227
195
  channel?: string | null;
@@ -232,7 +200,6 @@ export interface ConversationsOpenRequest {
232
200
  /** Do not create a direct message or multi-person direct message. This is used to see if there is an existing dm or mpdm. */
233
201
  prevent_creation?: boolean;
234
202
  }
235
- export declare const ConversationsOpenRequest: S.Schema<ConversationsOpenRequest>;
236
203
  export interface ConversationsOpenResponse {
237
204
  /** Always `true` (a failed call raises a typed error instead). */
238
205
  ok: boolean;
@@ -242,7 +209,6 @@ export interface ConversationsOpenResponse {
242
209
  app_home?: unknown;
243
210
  home_view?: unknown | null;
244
211
  }
245
- export declare const ConversationsOpenResponse: S.Schema<ConversationsOpenResponse>;
246
212
  export interface ConversationsRepliesRequest {
247
213
  /** Conversation ID to fetch thread from. */
248
214
  channel: string;
@@ -258,21 +224,16 @@ export interface ConversationsRepliesRequest {
258
224
  limit?: number;
259
225
  /** Only messages after this Unix timestamp will be included in results. */
260
226
  oldest?: string;
261
- /** 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. */
227
+ /** 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. */
262
228
  ts: string;
263
229
  }
264
- export declare const ConversationsRepliesRequest: S.Schema<ConversationsRepliesRequest>;
265
230
  export type ConversationsRepliesResponseMessagesList = Array<unknown>;
266
- export declare const ConversationsRepliesResponseMessagesList: S.Schema<ConversationsRepliesResponseMessagesList>;
267
231
  export type ConversationsRepliesResponseLatestUpdatesMap = {
268
232
  [key: string]: unknown | undefined;
269
233
  };
270
- export declare const ConversationsRepliesResponseLatestUpdatesMap: S.Schema<ConversationsRepliesResponseLatestUpdatesMap>;
271
234
  export type ConversationsRepliesResponseUnchangedMessagesList = Array<string>;
272
- export declare const ConversationsRepliesResponseUnchangedMessagesList: S.Schema<ConversationsRepliesResponseUnchangedMessagesList>;
273
235
  /** Pagination metadata. An empty `next_cursor` means the last page. */
274
236
  export type ConversationsRepliesResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
275
- export declare const ConversationsRepliesResponseResponseMetadata: S.Schema<ConversationsHistoryResponseResponseMetadata>;
276
237
  export interface ConversationsRepliesResponse {
277
238
  /** Always `true` (a failed call raises a typed error instead). */
278
239
  ok: boolean;
@@ -283,7 +244,6 @@ export interface ConversationsRepliesResponse {
283
244
  /** Pagination metadata. An empty `next_cursor` means the last page. */
284
245
  response_metadata?: ConversationsHistoryResponseResponseMetadata;
285
246
  }
286
- export declare const ConversationsRepliesResponse: S.Schema<ConversationsRepliesResponse>;
287
247
  export interface CreateCanvaseRequest {
288
248
  /** Channel ID of the channel the canvas will be tabbed in. */
289
249
  channel_id: string;
@@ -292,14 +252,12 @@ export interface CreateCanvaseRequest {
292
252
  /** Title of the newly created canvas */
293
253
  title?: string;
294
254
  }
295
- export declare const CreateCanvaseRequest: S.Schema<CreateCanvaseRequest>;
296
255
  export interface CreateCanvaseResponse {
297
256
  /** Always `true` (a failed call raises a typed error instead). */
298
257
  ok: boolean;
299
258
  /** Encoded ID of the canvas */
300
259
  canvas_id: string;
301
260
  }
302
- export declare const CreateCanvaseResponse: S.Schema<CreateCanvaseResponse>;
303
261
  export interface CreateConversationRequest {
304
262
  /** Create a private channel instead of a public one */
305
263
  is_private?: boolean;
@@ -308,13 +266,11 @@ export interface CreateConversationRequest {
308
266
  /** encoded team id to create the channel in, required if org token is used */
309
267
  team_id?: string | null;
310
268
  }
311
- export declare const CreateConversationRequest: S.Schema<CreateConversationRequest>;
312
269
  export interface CreateConversationResponse {
313
270
  /** Always `true` (a failed call raises a typed error instead). */
314
271
  ok: boolean;
315
272
  channel: unknown;
316
273
  }
317
- export declare const CreateConversationResponse: S.Schema<CreateConversationResponse>;
318
274
  export interface InviteConversationRequest {
319
275
  /** The ID of the public or private channel to invite user(s) to. */
320
276
  channel: string;
@@ -323,9 +279,7 @@ export interface InviteConversationRequest {
323
279
  /** A comma separated list of user IDs. Up to 1000 users may be listed. */
324
280
  users: string;
325
281
  }
326
- export declare const InviteConversationRequest: S.Schema<InviteConversationRequest>;
327
282
  export type InviteConversationResponseErrorsList = Array<unknown>;
328
- export declare const InviteConversationResponseErrorsList: S.Schema<InviteConversationResponseErrorsList>;
329
283
  export interface InviteConversationResponse {
330
284
  /** Always `true` (a failed call raises a typed error instead). */
331
285
  ok: boolean;
@@ -333,24 +287,19 @@ export interface InviteConversationResponse {
333
287
  group?: unknown;
334
288
  errors?: InviteConversationResponseErrorsList;
335
289
  }
336
- export declare const InviteConversationResponse: S.Schema<InviteConversationResponse>;
337
290
  export interface InviteDeclineSharedRequest {
338
291
  /** 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. */
339
292
  invite_id: string;
340
293
  /** The team or enterprise id of the other party involved in the invitation you are declining */
341
294
  target_team?: string;
342
295
  }
343
- export declare const InviteDeclineSharedRequest: S.Schema<InviteDeclineSharedRequest>;
344
296
  export interface InviteDeclineSharedResponse {
345
297
  ok: boolean;
346
298
  }
347
- export declare const InviteDeclineSharedResponse: S.Schema<InviteDeclineSharedResponse>;
348
299
  /** 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. */
349
300
  export type InviteSharedRequestEmailsList = Array<string>;
350
- export declare const InviteSharedRequestEmailsList: S.Schema<InviteSharedRequestEmailsList>;
351
301
  /** 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. */
352
302
  export type InviteSharedRequestUserIdsList = Array<string>;
353
- export declare const InviteSharedRequestUserIdsList: S.Schema<InviteSharedRequestUserIdsList>;
354
303
  export interface InviteSharedRequest {
355
304
  /** ID of the channel on your team that you'd like to share */
356
305
  channel: string;
@@ -361,7 +310,6 @@ export interface InviteSharedRequest {
361
310
  /** Optional boolean on whether invite is to an external limited member. Defaults to `true`. */
362
311
  external_limited?: boolean;
363
312
  }
364
- export declare const InviteSharedRequest: S.Schema<InviteSharedRequest>;
365
313
  export interface InviteSharedResponse {
366
314
  /** Always `true` (a failed call raises a typed error instead). */
367
315
  ok: boolean;
@@ -370,36 +318,29 @@ export interface InviteSharedResponse {
370
318
  conf_code?: string;
371
319
  is_legacy_shared_channel?: boolean;
372
320
  }
373
- export declare const InviteSharedResponse: S.Schema<InviteSharedResponse>;
374
321
  export interface JoinConversationRequest {
375
322
  /** ID of conversation to join */
376
323
  channel: string;
377
324
  }
378
- export declare const JoinConversationRequest: S.Schema<JoinConversationRequest>;
379
325
  export type JoinConversationResponseResponseMetadataWarningsList = Array<string>;
380
- export declare const JoinConversationResponseResponseMetadataWarningsList: S.Schema<JoinConversationResponseResponseMetadataWarningsList>;
381
326
  export interface JoinConversationResponseResponseMetadata {
382
327
  warnings?: JoinConversationResponseResponseMetadataWarningsList;
383
328
  }
384
- export declare const JoinConversationResponseResponseMetadata: S.Schema<JoinConversationResponseResponseMetadata>;
385
329
  export interface JoinConversationResponse {
386
330
  /** Always `true` (a failed call raises a typed error instead). */
387
331
  ok: boolean;
388
332
  channel: unknown;
389
333
  response_metadata?: JoinConversationResponseResponseMetadata;
390
334
  }
391
- export declare const JoinConversationResponse: S.Schema<JoinConversationResponse>;
392
335
  export interface LeaveConversationRequest {
393
336
  /** Conversation to leave */
394
337
  channel: string;
395
338
  }
396
- export declare const LeaveConversationRequest: S.Schema<LeaveConversationRequest>;
397
339
  export interface LeaveConversationResponse {
398
340
  /** Always `true` (a failed call raises a typed error instead). */
399
341
  ok: boolean;
400
342
  not_in_channel?: boolean;
401
343
  }
402
- export declare const LeaveConversationResponse: S.Schema<LeaveConversationResponse>;
403
344
  export interface ListConnectInvitesRequest {
404
345
  /** Encoded team id for the workspace to retrieve invites for, required if org token is used */
405
346
  team_id?: string;
@@ -408,12 +349,9 @@ export interface ListConnectInvitesRequest {
408
349
  /** Set to `next_cursor` returned by previous call to list items in subsequent page */
409
350
  cursor?: string;
410
351
  }
411
- export declare const ListConnectInvitesRequest: S.Schema<ListConnectInvitesRequest>;
412
352
  export type ListConnectInvitesResponseInvitesList = Array<unknown>;
413
- export declare const ListConnectInvitesResponseInvitesList: S.Schema<ListConnectInvitesResponseInvitesList>;
414
353
  /** Pagination metadata. An empty `next_cursor` means the last page. */
415
354
  export type ListConnectInvitesResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
416
- export declare const ListConnectInvitesResponseResponseMetadata: S.Schema<ConversationsHistoryResponseResponseMetadata>;
417
355
  export interface ListConnectInvitesResponse {
418
356
  /** Always `true` (a failed call raises a typed error instead). */
419
357
  ok: boolean;
@@ -421,7 +359,6 @@ export interface ListConnectInvitesResponse {
421
359
  /** Pagination metadata. An empty `next_cursor` means the last page. */
422
360
  response_metadata?: ConversationsHistoryResponseResponseMetadata;
423
361
  }
424
- export declare const ListConnectInvitesResponse: S.Schema<ListConnectInvitesResponse>;
425
362
  export interface ListConversationsRequest {
426
363
  /** 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. */
427
364
  cursor?: string;
@@ -434,12 +371,9 @@ export interface ListConversationsRequest {
434
371
  /** Mix and match channel types by providing a comma-separated list of any combination of `public_channel`, `private_channel`, `mpim`, `im` */
435
372
  types?: string;
436
373
  }
437
- export declare const ListConversationsRequest: S.Schema<ListConversationsRequest>;
438
374
  export type ListConversationsResponseChannelsList = Array<unknown>;
439
- export declare const ListConversationsResponseChannelsList: S.Schema<ListConversationsResponseChannelsList>;
440
375
  /** Pagination metadata. An empty `next_cursor` means the last page. */
441
376
  export type ListConversationsResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
442
- export declare const ListConversationsResponseResponseMetadata: S.Schema<ConversationsHistoryResponseResponseMetadata>;
443
377
  export interface ListConversationsResponse {
444
378
  /** Always `true` (a failed call raises a typed error instead). */
445
379
  ok: boolean;
@@ -447,10 +381,8 @@ export interface ListConversationsResponse {
447
381
  /** Pagination metadata. An empty `next_cursor` means the last page. */
448
382
  response_metadata?: ConversationsHistoryResponseResponseMetadata;
449
383
  }
450
- export declare const ListConversationsResponse: S.Schema<ListConversationsResponse>;
451
384
  /** An optional list of invitation ids to look up */
452
385
  export type ListRequestSharedInviteRequestInviteIdsList = Array<string>;
453
- export declare const ListRequestSharedInviteRequestInviteIdsList: S.Schema<ListRequestSharedInviteRequestInviteIdsList>;
454
386
  export interface ListRequestSharedInviteRequest {
455
387
  /** Optional filter to return invitation requests for the inviting user. */
456
388
  user_id?: string;
@@ -467,12 +399,9 @@ export interface ListRequestSharedInviteRequest {
467
399
  /** 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. */
468
400
  cursor?: string;
469
401
  }
470
- export declare const ListRequestSharedInviteRequest: S.Schema<ListRequestSharedInviteRequest>;
471
402
  export type ListRequestSharedInviteResponseInviteRequestsList = Array<unknown>;
472
- export declare const ListRequestSharedInviteResponseInviteRequestsList: S.Schema<ListRequestSharedInviteResponseInviteRequestsList>;
473
403
  /** Pagination metadata. An empty `next_cursor` means the last page. */
474
404
  export type ListRequestSharedInviteResponseResponseMetadata = ConversationsHistoryResponseResponseMetadata;
475
- export declare const ListRequestSharedInviteResponseResponseMetadata: S.Schema<ConversationsHistoryResponseResponseMetadata>;
476
405
  export interface ListRequestSharedInviteResponse {
477
406
  /** Always `true` (a failed call raises a typed error instead). */
478
407
  ok: boolean;
@@ -480,34 +409,28 @@ export interface ListRequestSharedInviteResponse {
480
409
  /** Pagination metadata. An empty `next_cursor` means the last page. */
481
410
  response_metadata?: ConversationsHistoryResponseResponseMetadata;
482
411
  }
483
- export declare const ListRequestSharedInviteResponse: S.Schema<ListRequestSharedInviteResponse>;
484
412
  export interface RenameConversationRequest {
485
413
  /** ID of conversation to rename */
486
414
  channel: string;
487
415
  /** New name for conversation. */
488
416
  name: string;
489
417
  }
490
- export declare const RenameConversationRequest: S.Schema<RenameConversationRequest>;
491
418
  export interface RenameConversationResponse {
492
419
  /** Always `true` (a failed call raises a typed error instead). */
493
420
  ok: boolean;
494
421
  channel: unknown;
495
422
  }
496
- export declare const RenameConversationResponse: S.Schema<RenameConversationResponse>;
497
423
  export interface RequestSharedInviteDenyRequest {
498
424
  /** ID of the requested shared channel invite to deny. */
499
425
  invite_id: string;
500
426
  /** Optional message explaining why the request to invite was denied. */
501
427
  message?: string;
502
428
  }
503
- export declare const RequestSharedInviteDenyRequest: S.Schema<RequestSharedInviteDenyRequest>;
504
429
  export interface RequestSharedInviteDenyResponse {
505
430
  ok: boolean;
506
431
  }
507
- export declare const RequestSharedInviteDenyResponse: S.Schema<RequestSharedInviteDenyResponse>;
508
432
  /** Type of action to be taken: upgrade or downgrade */
509
433
  export type SetExternalInvitePermissionsRequestAction = "upgrade" | "downgrade";
510
- export declare const SetExternalInvitePermissionsRequestAction: any;
511
434
  export interface SetExternalInvitePermissionsRequest {
512
435
  /** The channel ID to change external invite permissions for */
513
436
  channel: string;
@@ -516,129 +439,121 @@ export interface SetExternalInvitePermissionsRequest {
516
439
  /** Type of action to be taken: upgrade or downgrade */
517
440
  action: SetExternalInvitePermissionsRequestAction | (string & {});
518
441
  }
519
- export declare const SetExternalInvitePermissionsRequest: S.Schema<SetExternalInvitePermissionsRequest>;
520
442
  export interface SetExternalInvitePermissionsResponse {
521
443
  ok: boolean;
522
444
  }
523
- export declare const SetExternalInvitePermissionsResponse: S.Schema<SetExternalInvitePermissionsResponse>;
524
445
  export interface SetPurposeRequest {
525
446
  /** Channel to set the description of */
526
447
  channel: string;
527
448
  /** The description */
528
449
  purpose: string;
529
450
  }
530
- export declare const SetPurposeRequest: S.Schema<SetPurposeRequest>;
531
451
  export interface SetPurposeResponse {
532
452
  /** Always `true` (a failed call raises a typed error instead). */
533
453
  ok: boolean;
534
454
  channel: unknown;
535
455
  }
536
- export declare const SetPurposeResponse: S.Schema<SetPurposeResponse>;
537
456
  export interface SetTopicRequest {
538
457
  /** Conversation to set the topic of */
539
458
  channel: string;
540
459
  /** The new topic string. Does not support formatting or linkification. */
541
460
  topic: string;
542
461
  }
543
- export declare const SetTopicRequest: S.Schema<SetTopicRequest>;
544
462
  export interface SetTopicResponse {
545
463
  /** Always `true` (a failed call raises a typed error instead). */
546
464
  ok: boolean;
547
465
  channel: unknown;
548
466
  }
549
- export declare const SetTopicResponse: S.Schema<SetTopicResponse>;
550
467
  export interface UnarchiveConversationRequest {
551
468
  /** ID of conversation to unarchive */
552
469
  channel: string;
553
470
  }
554
- export declare const UnarchiveConversationRequest: S.Schema<UnarchiveConversationRequest>;
555
471
  export interface UnarchiveConversationResponse {
556
472
  /** Always `true` (a failed call raises a typed error instead). */
557
473
  ok: boolean;
558
474
  }
559
- export declare const UnarchiveConversationResponse: S.Schema<UnarchiveConversationResponse>;
560
475
  export type AcceptSharedInviteError = SlackOpError;
561
- /** 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. - `accepter_email_not_verified` — The accepting user has not verified the email address on their account. They must verify it before accepting. See https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite */
476
+ /** 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. - `accepter_email_not_verified` -- The accepting user has not verified the email address on their account. They must verify it before accepting. See https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite */
562
477
  export declare const acceptSharedInvite: API.OperationMethod<AcceptSharedInviteRequest, AcceptSharedInviteResponse, AcceptSharedInviteError, SlackOpContext>;
563
478
  export type ApproveRequestSharedInviteError = SlackOpError;
564
- /** 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 */
479
+ /** 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 */
565
480
  export declare const approveRequestSharedInvite: API.OperationMethod<ApproveRequestSharedInviteRequest, ApproveRequestSharedInviteResponse, ApproveRequestSharedInviteError, SlackOpContext>;
566
481
  export type ApproveSharedInviteError = SlackOpError;
567
- /** 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 */
482
+ /** 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 */
568
483
  export declare const approveSharedInvite: API.OperationMethod<ApproveSharedInviteRequest, ApproveSharedInviteResponse, ApproveSharedInviteError, SlackOpContext>;
569
484
  export type ArchiveConversationError = SlackOpError;
570
- /** 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 */
485
+ /** 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 */
571
486
  export declare const archiveConversation: API.OperationMethod<ArchiveConversationRequest, ArchiveConversationResponse, ArchiveConversationError, SlackOpContext>;
572
487
  export type ConversationsCloseError = SlackOpError;
573
- /** 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 */
488
+ /** 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 */
574
489
  export declare const conversationsClose: API.OperationMethod<ConversationsCloseRequest, ConversationsCloseResponse, ConversationsCloseError, SlackOpContext>;
575
490
  export type ConversationsHistoryError = SlackOpError;
576
- /** 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. - `restricted_action` — User does not have permission to perform this action. See https://docs.slack.dev/reference/methods/conversations.history */
491
+ /** 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. - `restricted_action` -- User does not have permission to perform this action. See https://docs.slack.dev/reference/methods/conversations.history */
577
492
  export declare const conversationsHistory: API.PaginatedOperationMethod<ConversationsHistoryRequest, ConversationsHistoryResponse, ConversationsHistoryError, SlackOpContext, unknown>;
578
493
  export type ConversationsInfoError = SlackOpError;
579
- /** 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 */
494
+ /** 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 */
580
495
  export declare const conversationsInfo: API.OperationMethod<ConversationsInfoRequest, ConversationsInfoResponse, ConversationsInfoError, SlackOpContext>;
581
496
  export type ConversationsKickError = SlackOpError;
582
- /** 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. - `no_user` — No value was passed for `user` or `users`. - `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 */
497
+ /** 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. - `no_user` -- No value was passed for `user` or `users`. - `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 */
583
498
  export declare const conversationsKick: API.OperationMethod<ConversationsKickRequest, ConversationsKickResponse, ConversationsKickError, SlackOpContext>;
584
499
  export type ConversationsMarkError = SlackOpError;
585
- /** 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 */
500
+ /** 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 */
586
501
  export declare const conversationsMark: API.OperationMethod<ConversationsMarkRequest, ConversationsMarkResponse, ConversationsMarkError, SlackOpContext>;
587
502
  export type ConversationsMembersError = SlackOpError;
588
- /** 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 */
503
+ /** 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 */
589
504
  export declare const conversationsMembers: API.PaginatedOperationMethod<ConversationsMembersRequest, ConversationsMembersResponse, ConversationsMembersError, SlackOpContext, string>;
590
505
  export type ConversationsOpenError = SlackOpError;
591
- /** 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 - `restricted_action` — User does not have permission to perform this action. - `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 - `app_cannot_join_channel` — This app cannot be added to this conversation. See https://docs.slack.dev/reference/methods/conversations.open */
506
+ /** 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 - `restricted_action` -- User does not have permission to perform this action. - `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 - `app_cannot_join_channel` -- This app cannot be added to this conversation. See https://docs.slack.dev/reference/methods/conversations.open */
592
507
  export declare const conversationsOpen: API.OperationMethod<ConversationsOpenRequest, ConversationsOpenResponse, ConversationsOpenError, SlackOpContext>;
593
508
  export type ConversationsRepliesError = SlackOpError;
594
- /** 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 */
509
+ /** 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 */
595
510
  export declare const conversationsReplies: API.PaginatedOperationMethod<ConversationsRepliesRequest, ConversationsRepliesResponse, ConversationsRepliesError, SlackOpContext, unknown>;
596
511
  export type CreateCanvaseError = SlackOpError;
597
- /** 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 */
512
+ /** 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 */
598
513
  export declare const createCanvase: API.OperationMethod<CreateCanvaseRequest, CreateCanvaseResponse, CreateCanvaseError, SlackOpContext>;
599
514
  export type CreateConversationError = SlackOpError;
600
- /** 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 */
515
+ /** 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 */
601
516
  export declare const createConversation: API.OperationMethod<CreateConversationRequest, CreateConversationResponse, CreateConversationError, SlackOpContext>;
602
517
  export type InviteConversationError = SlackOpError;
603
- /** 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 */
518
+ /** 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 */
604
519
  export declare const inviteConversation: API.OperationMethod<InviteConversationRequest, InviteConversationResponse, InviteConversationError, SlackOpContext>;
605
520
  export type InviteDeclineSharedError = SlackOpError;
606
- /** 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 */
521
+ /** 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 */
607
522
  export declare const inviteDeclineShared: API.OperationMethod<InviteDeclineSharedRequest, InviteDeclineSharedResponse, InviteDeclineSharedError, SlackOpContext>;
608
523
  export type InviteSharedError = SlackOpError;
609
- /** 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 */
524
+ /** 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 */
610
525
  export declare const inviteShared: API.OperationMethod<InviteSharedRequest, InviteSharedResponse, InviteSharedError, SlackOpContext>;
611
526
  export type JoinConversationError = SlackOpError;
612
- /** 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. - `app_cannot_join_channel` — This app cannot join this channel. See https://docs.slack.dev/reference/methods/conversations.join */
527
+ /** 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. - `app_cannot_join_channel` -- This app cannot join this channel. See https://docs.slack.dev/reference/methods/conversations.join */
613
528
  export declare const joinConversation: API.OperationMethod<JoinConversationRequest, JoinConversationResponse, JoinConversationError, SlackOpContext>;
614
529
  export type LeaveConversationError = SlackOpError;
615
- /** 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 */
530
+ /** 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 */
616
531
  export declare const leaveConversation: API.OperationMethod<LeaveConversationRequest, LeaveConversationResponse, LeaveConversationError, SlackOpContext>;
617
532
  export type ListConnectInvitesError = SlackOpError;
618
- /** 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 */
533
+ /** 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 */
619
534
  export declare const listConnectInvites: API.PaginatedOperationMethod<ListConnectInvitesRequest, ListConnectInvitesResponse, ListConnectInvitesError, SlackOpContext, unknown>;
620
535
  export type ListConversationsError = SlackOpError;
621
- /** 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 */
536
+ /** 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 */
622
537
  export declare const listConversations: API.PaginatedOperationMethod<ListConversationsRequest, ListConversationsResponse, ListConversationsError, SlackOpContext, unknown>;
623
538
  export type ListRequestSharedInviteError = SlackOpError;
624
- /** 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 */
539
+ /** 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 */
625
540
  export declare const listRequestSharedInvite: API.PaginatedOperationMethod<ListRequestSharedInviteRequest, ListRequestSharedInviteResponse, ListRequestSharedInviteError, SlackOpContext, unknown>;
626
541
  export type RenameConversationError = SlackOpError;
627
- /** 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 */
542
+ /** 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 */
628
543
  export declare const renameConversation: API.OperationMethod<RenameConversationRequest, RenameConversationResponse, RenameConversationError, SlackOpContext>;
629
544
  export type RequestSharedInviteDenyError = SlackOpError;
630
- /** 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 */
545
+ /** 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 */
631
546
  export declare const requestSharedInviteDeny: API.OperationMethod<RequestSharedInviteDenyRequest, RequestSharedInviteDenyResponse, RequestSharedInviteDenyError, SlackOpContext>;
632
547
  export type SetExternalInvitePermissionsError = SlackOpError;
633
- /** 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 */
548
+ /** 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 */
634
549
  export declare const setExternalInvitePermissions: API.OperationMethod<SetExternalInvitePermissionsRequest, SetExternalInvitePermissionsResponse, SetExternalInvitePermissionsError, SlackOpContext>;
635
550
  export type SetPurposeError = SlackOpError;
636
- /** 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 */
551
+ /** 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 */
637
552
  export declare const setPurpose: API.OperationMethod<SetPurposeRequest, SetPurposeResponse, SetPurposeError, SlackOpContext>;
638
553
  export type SetTopicError = SlackOpError;
639
- /** 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 */
554
+ /** 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 */
640
555
  export declare const setTopic: API.OperationMethod<SetTopicRequest, SetTopicResponse, SetTopicError, SlackOpContext>;
641
556
  export type UnarchiveConversationError = SlackOpError;
642
- /** 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 */
557
+ /** 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 */
643
558
  export declare const unarchiveConversation: API.OperationMethod<UnarchiveConversationRequest, UnarchiveConversationResponse, UnarchiveConversationError, SlackOpContext>;
644
559
  //# sourceMappingURL=conversations.d.ts.map