@distilled.cloud/slack 1.0.0-rc.13 → 1.0.0-rc.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +3 -3
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts.map +1 -1
  6. package/lib/errors.js +1 -1
  7. package/lib/errors.js.map +1 -1
  8. package/lib/index.d.ts +3 -3
  9. package/lib/index.d.ts.map +1 -1
  10. package/lib/index.js +3 -3
  11. package/lib/index.js.map +1 -1
  12. package/lib/pagination.d.ts.map +1 -1
  13. package/lib/pagination.js.map +1 -1
  14. package/lib/protocol.d.ts +3 -3
  15. package/lib/protocol.d.ts.map +1 -1
  16. package/lib/protocol.js +12 -18
  17. package/lib/protocol.js.map +1 -1
  18. package/lib/protocol.test.d.ts +2 -0
  19. package/lib/protocol.test.d.ts.map +1 -0
  20. package/lib/protocol.test.js +288 -0
  21. package/lib/protocol.test.js.map +1 -0
  22. package/lib/retry.d.ts +1 -1
  23. package/lib/retry.d.ts.map +1 -1
  24. package/lib/retry.js +1 -1
  25. package/lib/retry.js.map +1 -1
  26. package/lib/services/admin.d.ts +236 -29
  27. package/lib/services/admin.d.ts.map +1 -1
  28. package/lib/services/admin.js +417 -749
  29. package/lib/services/admin.js.map +1 -1
  30. package/lib/services/agents.d.ts +423 -0
  31. package/lib/services/agents.d.ts.map +1 -0
  32. package/lib/services/agents.js +315 -0
  33. package/lib/services/agents.js.map +1 -0
  34. package/lib/services/api.d.ts +1 -1
  35. package/lib/services/api.d.ts.map +1 -1
  36. package/lib/services/api.js +4 -6
  37. package/lib/services/api.js.map +1 -1
  38. package/lib/services/apps.d.ts +21 -3
  39. package/lib/services/apps.d.ts.map +1 -1
  40. package/lib/services/apps.js +65 -133
  41. package/lib/services/apps.js.map +1 -1
  42. package/lib/services/assistant.d.ts +4 -4
  43. package/lib/services/assistant.d.ts.map +1 -1
  44. package/lib/services/assistant.js +16 -38
  45. package/lib/services/assistant.js.map +1 -1
  46. package/lib/services/auth.d.ts +2 -2
  47. package/lib/services/auth.d.ts.map +1 -1
  48. package/lib/services/auth.js +11 -28
  49. package/lib/services/auth.js.map +1 -1
  50. package/lib/services/blocks.d.ts +1 -1
  51. package/lib/services/blocks.d.ts.map +1 -1
  52. package/lib/services/blocks.js +5 -9
  53. package/lib/services/blocks.js.map +1 -1
  54. package/lib/services/bookmarks.d.ts +4 -4
  55. package/lib/services/bookmarks.d.ts.map +1 -1
  56. package/lib/services/bookmarks.js +14 -30
  57. package/lib/services/bookmarks.js.map +1 -1
  58. package/lib/services/bots.d.ts +1 -1
  59. package/lib/services/bots.d.ts.map +1 -1
  60. package/lib/services/bots.js +7 -15
  61. package/lib/services/bots.js.map +1 -1
  62. package/lib/services/calls.d.ts +1 -1
  63. package/lib/services/calls.d.ts.map +1 -1
  64. package/lib/services/calls.js +13 -33
  65. package/lib/services/calls.js.map +1 -1
  66. package/lib/services/canvases.d.ts +22 -2
  67. package/lib/services/canvases.d.ts.map +1 -1
  68. package/lib/services/canvases.js +37 -48
  69. package/lib/services/canvases.js.map +1 -1
  70. package/lib/services/chat.d.ts +29 -25
  71. package/lib/services/chat.d.ts.map +1 -1
  72. package/lib/services/chat.js +47 -95
  73. package/lib/services/chat.js.map +1 -1
  74. package/lib/services/conversations.d.ts +10 -8
  75. package/lib/services/conversations.d.ts.map +1 -1
  76. package/lib/services/conversations.js +43 -115
  77. package/lib/services/conversations.js.map +1 -1
  78. package/lib/services/dialog.d.ts +1 -1
  79. package/lib/services/dialog.d.ts.map +1 -1
  80. package/lib/services/dialog.js +5 -9
  81. package/lib/services/dialog.js.map +1 -1
  82. package/lib/services/dnd.d.ts +1 -1
  83. package/lib/services/dnd.d.ts.map +1 -1
  84. package/lib/services/dnd.js +10 -24
  85. package/lib/services/dnd.js.map +1 -1
  86. package/lib/services/emoji.d.ts +1 -1
  87. package/lib/services/emoji.d.ts.map +1 -1
  88. package/lib/services/emoji.js +6 -11
  89. package/lib/services/emoji.js.map +1 -1
  90. package/lib/services/entity.d.ts +1 -1
  91. package/lib/services/entity.d.ts.map +1 -1
  92. package/lib/services/entity.js +8 -20
  93. package/lib/services/entity.js.map +1 -1
  94. package/lib/services/files.d.ts +5 -5
  95. package/lib/services/files.d.ts.map +1 -1
  96. package/lib/services/files.js +39 -109
  97. package/lib/services/files.js.map +1 -1
  98. package/lib/services/functions.d.ts +1 -1
  99. package/lib/services/functions.d.ts.map +1 -1
  100. package/lib/services/functions.js +28 -75
  101. package/lib/services/functions.js.map +1 -1
  102. package/lib/services/index.d.ts +1 -0
  103. package/lib/services/index.d.ts.map +1 -1
  104. package/lib/services/index.js +1 -0
  105. package/lib/services/index.js.map +1 -1
  106. package/lib/services/lists.d.ts +5 -1
  107. package/lib/services/lists.d.ts.map +1 -1
  108. package/lib/services/lists.js +35 -146
  109. package/lib/services/lists.js.map +1 -1
  110. package/lib/services/migration.d.ts +1 -1
  111. package/lib/services/migration.d.ts.map +1 -1
  112. package/lib/services/migration.js +5 -8
  113. package/lib/services/migration.js.map +1 -1
  114. package/lib/services/oauth.d.ts +38 -2
  115. package/lib/services/oauth.d.ts.map +1 -1
  116. package/lib/services/oauth.js +67 -50
  117. package/lib/services/oauth.js.map +1 -1
  118. package/lib/services/openid.d.ts +1 -1
  119. package/lib/services/openid.d.ts.map +1 -1
  120. package/lib/services/openid.js +7 -15
  121. package/lib/services/openid.js.map +1 -1
  122. package/lib/services/pins.d.ts +1 -1
  123. package/lib/services/pins.d.ts.map +1 -1
  124. package/lib/services/pins.js +7 -15
  125. package/lib/services/pins.js.map +1 -1
  126. package/lib/services/reactions.d.ts +2 -2
  127. package/lib/services/reactions.d.ts.map +1 -1
  128. package/lib/services/reactions.js +13 -29
  129. package/lib/services/reactions.js.map +1 -1
  130. package/lib/services/reminders.d.ts +1 -1
  131. package/lib/services/reminders.d.ts.map +1 -1
  132. package/lib/services/reminders.js +13 -33
  133. package/lib/services/reminders.js.map +1 -1
  134. package/lib/services/rtm.d.ts +1 -1
  135. package/lib/services/rtm.d.ts.map +1 -1
  136. package/lib/services/rtm.js +9 -21
  137. package/lib/services/rtm.js.map +1 -1
  138. package/lib/services/search.d.ts +1 -1
  139. package/lib/services/search.d.ts.map +1 -1
  140. package/lib/services/search.js +13 -30
  141. package/lib/services/search.js.map +1 -1
  142. package/lib/services/stars.d.ts +1 -1
  143. package/lib/services/stars.d.ts.map +1 -1
  144. package/lib/services/stars.js +10 -20
  145. package/lib/services/stars.js.map +1 -1
  146. package/lib/services/team.d.ts +1 -1
  147. package/lib/services/team.d.ts.map +1 -1
  148. package/lib/services/team.js +25 -62
  149. package/lib/services/team.js.map +1 -1
  150. package/lib/services/tooling.d.ts +1 -1
  151. package/lib/services/tooling.d.ts.map +1 -1
  152. package/lib/services/tooling.js +5 -9
  153. package/lib/services/tooling.js.map +1 -1
  154. package/lib/services/usergroups.d.ts +8 -3
  155. package/lib/services/usergroups.d.ts.map +1 -1
  156. package/lib/services/usergroups.js +23 -51
  157. package/lib/services/usergroups.js.map +1 -1
  158. package/lib/services/users.d.ts +2 -2
  159. package/lib/services/users.d.ts.map +1 -1
  160. package/lib/services/users.js +28 -81
  161. package/lib/services/users.js.map +1 -1
  162. package/lib/services/views.d.ts +1 -1
  163. package/lib/services/views.d.ts.map +1 -1
  164. package/lib/services/views.js +11 -27
  165. package/lib/services/views.js.map +1 -1
  166. package/lib/services/workflows.d.ts +1 -1
  167. package/lib/services/workflows.d.ts.map +1 -1
  168. package/lib/services/workflows.js +27 -71
  169. package/lib/services/workflows.js.map +1 -1
  170. package/package.json +15 -11
  171. package/src/credentials.ts +8 -10
  172. package/src/errors.ts +17 -31
  173. package/src/index.ts +3 -7
  174. package/src/pagination.ts +2 -5
  175. package/src/protocol.test.ts +372 -0
  176. package/src/protocol.ts +34 -66
  177. package/src/retry.ts +4 -9
  178. package/src/services/admin.ts +1241 -1557
  179. package/src/services/agents.ts +853 -0
  180. package/src/services/api.ts +4 -10
  181. package/src/services/apps.ts +146 -243
  182. package/src/services/assistant.ts +93 -144
  183. package/src/services/auth.ts +12 -33
  184. package/src/services/blocks.ts +9 -24
  185. package/src/services/bookmarks.ts +14 -34
  186. package/src/services/bots.ts +7 -19
  187. package/src/services/calls.ts +15 -43
  188. package/src/services/canvases.ts +82 -85
  189. package/src/services/chat.ts +134 -254
  190. package/src/services/conversations.ts +101 -217
  191. package/src/services/dialog.ts +5 -13
  192. package/src/services/dnd.ts +11 -31
  193. package/src/services/emoji.ts +9 -19
  194. package/src/services/entity.ts +17 -45
  195. package/src/services/files.ts +72 -165
  196. package/src/services/functions.ts +95 -168
  197. package/src/services/index.ts +1 -0
  198. package/src/services/lists.ts +65 -208
  199. package/src/services/migration.ts +8 -17
  200. package/src/services/oauth.ts +127 -60
  201. package/src/services/openid.ts +12 -34
  202. package/src/services/pins.ts +7 -19
  203. package/src/services/reactions.ts +19 -43
  204. package/src/services/reminders.ts +13 -37
  205. package/src/services/rtm.ts +9 -25
  206. package/src/services/search.ts +51 -92
  207. package/src/services/stars.ts +20 -31
  208. package/src/services/team.ts +81 -155
  209. package/src/services/tooling.ts +5 -13
  210. package/src/services/usergroups.ts +37 -68
  211. package/src/services/users.ts +35 -102
  212. package/src/services/views.ts +11 -31
  213. package/src/services/workflows.ts +65 -129
  214. package/lib/response-validation.test.d.ts +0 -4
  215. package/lib/response-validation.test.d.ts.map +0 -1
  216. package/lib/response-validation.test.js +0 -40
  217. package/lib/response-validation.test.js.map +0 -1
  218. package/src/response-validation.test.ts +0 -54
@@ -1,15 +1,11 @@
1
+ import * as API from "@distilled.cloud/core/api";
1
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
2
3
  import * as S from "@distilled.cloud/core/schema";
3
- import * as API from "@distilled.cloud/core/api";
4
- import * as T from "../traits.ts";
5
- import {
6
- SlackProtocol,
7
- type SlackOpError,
8
- type SlackOpContext,
9
- } from "../protocol.ts";
10
- import { slackPaginate } from "../pagination.ts";
11
4
  import { SlackError, SlackRateLimited } from "../errors.ts";
5
+ import { slackPaginate } from "../pagination.ts";
6
+ import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
12
7
  import * as Retry from "../retry.ts";
8
+ import * as T from "../traits.ts";
13
9
 
14
10
  export type { SlackOpError, SlackOpContext };
15
11
 
@@ -35,13 +31,7 @@ export const AcceptSharedInviteRequest = /*@__PURE__*/ S.suspend(() =>
35
31
  invite_id: S.optional(S.String),
36
32
  channel_id: S.optional(S.String),
37
33
  team_id: S.optional(S.String),
38
- }).pipe(
39
- T.Http({
40
- method: "POST",
41
- uri: "/conversations.acceptSharedInvite",
42
- code: 200,
43
- }),
44
- ),
34
+ }).pipe(T.Http({ method: "POST", uri: "/conversations.acceptSharedInvite", code: 200 })),
45
35
  ).annotate({
46
36
  identifier: "AcceptSharedInviteRequest",
47
37
  }) as any as S.Schema<AcceptSharedInviteRequest>;
@@ -75,12 +65,11 @@ export interface ApproveRequestSharedInviteRequestMessage {
75
65
  /** When true will override the user specified message. Otherwise text will be appended to the user specified message on the invite request. */
76
66
  is_override: boolean;
77
67
  }
78
- export const ApproveRequestSharedInviteRequestMessage = /*@__PURE__*/ S.suspend(
79
- () =>
80
- S.Struct({
81
- text: S.String,
82
- is_override: S.Boolean,
83
- }),
68
+ export const ApproveRequestSharedInviteRequestMessage = /*@__PURE__*/ S.suspend(() =>
69
+ S.Struct({
70
+ text: S.String,
71
+ is_override: S.Boolean,
72
+ }),
84
73
  ).annotate({
85
74
  identifier: "ApproveRequestSharedInviteRequestMessage",
86
75
  }) as any as S.Schema<ApproveRequestSharedInviteRequestMessage>;
@@ -101,13 +90,7 @@ export const ApproveRequestSharedInviteRequest = /*@__PURE__*/ S.suspend(() =>
101
90
  is_external_limited: S.optional(S.Boolean),
102
91
  channel_id: S.optional(S.String),
103
92
  message: S.optional(ApproveRequestSharedInviteRequestMessage),
104
- }).pipe(
105
- T.Http({
106
- method: "POST",
107
- uri: "/conversations.requestSharedInvite.approve",
108
- code: 200,
109
- }),
110
- ),
93
+ }).pipe(T.Http({ method: "POST", uri: "/conversations.requestSharedInvite.approve", code: 200 })),
111
94
  ).annotate({
112
95
  identifier: "ApproveRequestSharedInviteRequest",
113
96
  }) as any as S.Schema<ApproveRequestSharedInviteRequest>;
@@ -140,13 +123,7 @@ export const ApproveSharedInviteRequest = /*@__PURE__*/ S.suspend(() =>
140
123
  S.Struct({
141
124
  invite_id: S.String,
142
125
  target_team: S.optional(S.String),
143
- }).pipe(
144
- T.Http({
145
- method: "POST",
146
- uri: "/conversations.approveSharedInvite",
147
- code: 200,
148
- }),
149
- ),
126
+ }).pipe(T.Http({ method: "POST", uri: "/conversations.approveSharedInvite", code: 200 })),
150
127
  ).annotate({
151
128
  identifier: "ApproveSharedInviteRequest",
152
129
  }) as any as S.Schema<ApproveSharedInviteRequest>;
@@ -254,18 +231,15 @@ export interface ConversationsHistoryResponseResponseMetadata {
254
231
  /** Cursor for the next page — pass as `cursor` on the next call. */
255
232
  next_cursor?: string;
256
233
  }
257
- export const ConversationsHistoryResponseResponseMetadata =
258
- /*@__PURE__*/ S.suspend(() =>
259
- S.Struct({
260
- next_cursor: S.optional(S.String),
261
- }),
262
- ).annotate({
263
- identifier: "ConversationsHistoryResponseResponseMetadata",
264
- }) as any as S.Schema<ConversationsHistoryResponseResponseMetadata>;
234
+ export const ConversationsHistoryResponseResponseMetadata = /*@__PURE__*/ S.suspend(() =>
235
+ S.Struct({
236
+ next_cursor: S.optional(S.String),
237
+ }),
238
+ ).annotate({
239
+ identifier: "ConversationsHistoryResponseResponseMetadata",
240
+ }) as any as S.Schema<ConversationsHistoryResponseResponseMetadata>;
265
241
 
266
- export type ConversationsHistoryResponseUsersMap = {
267
- [key: string]: unknown | undefined;
268
- };
242
+ export type ConversationsHistoryResponseUsersMap = { [key: string]: unknown | undefined };
269
243
  export const ConversationsHistoryResponseUsersMap = /*@__PURE__*/ S.Record(
270
244
  S.String,
271
245
  S.Unknown,
@@ -281,36 +255,31 @@ export interface ConversationsHistoryResponseMutationTimestamps {
281
255
  updated: string;
282
256
  history_invalid: string;
283
257
  }
284
- export const ConversationsHistoryResponseMutationTimestamps =
285
- /*@__PURE__*/ S.suspend(() =>
286
- S.Struct({
287
- latest: S.String,
288
- updated: S.String,
289
- history_invalid: S.String,
290
- }),
291
- ).annotate({
292
- identifier: "ConversationsHistoryResponseMutationTimestamps",
293
- }) as any as S.Schema<ConversationsHistoryResponseMutationTimestamps>;
258
+ export const ConversationsHistoryResponseMutationTimestamps = /*@__PURE__*/ S.suspend(() =>
259
+ S.Struct({
260
+ latest: S.String,
261
+ updated: S.String,
262
+ history_invalid: S.String,
263
+ }),
264
+ ).annotate({
265
+ identifier: "ConversationsHistoryResponseMutationTimestamps",
266
+ }) as any as S.Schema<ConversationsHistoryResponseMutationTimestamps>;
294
267
 
295
268
  export type ConversationsHistoryResponseWarningsList = Array<string>;
296
269
  export const ConversationsHistoryResponseWarningsList = /*@__PURE__*/ S.Array(
297
270
  S.String,
298
271
  ) as any as S.Schema<ConversationsHistoryResponseWarningsList>;
299
272
 
300
- export type ConversationsHistoryResponseLatestUpdatesMap = {
301
- [key: string]: unknown | undefined;
302
- };
303
- export const ConversationsHistoryResponseLatestUpdatesMap =
304
- /*@__PURE__*/ S.Record(
305
- S.String,
306
- S.Unknown,
307
- ) as any as S.Schema<ConversationsHistoryResponseLatestUpdatesMap>;
273
+ export type ConversationsHistoryResponseLatestUpdatesMap = { [key: string]: unknown | undefined };
274
+ export const ConversationsHistoryResponseLatestUpdatesMap = /*@__PURE__*/ S.Record(
275
+ S.String,
276
+ S.Unknown,
277
+ ) as any as S.Schema<ConversationsHistoryResponseLatestUpdatesMap>;
308
278
 
309
279
  export type ConversationsHistoryResponseUnchangedMessagesList = Array<string>;
310
- export const ConversationsHistoryResponseUnchangedMessagesList =
311
- /*@__PURE__*/ S.Array(
312
- S.String,
313
- ) as any as S.Schema<ConversationsHistoryResponseUnchangedMessagesList>;
280
+ export const ConversationsHistoryResponseUnchangedMessagesList = /*@__PURE__*/ S.Array(
281
+ S.String,
282
+ ) as any as S.Schema<ConversationsHistoryResponseUnchangedMessagesList>;
314
283
 
315
284
  export interface ConversationsHistoryResponse {
316
285
  /** Always `true` (a failed call raises a typed error instead). */
@@ -334,6 +303,8 @@ export interface ConversationsHistoryResponse {
334
303
  next_ts?: number;
335
304
  latest_updates?: ConversationsHistoryResponseLatestUpdatesMap;
336
305
  unchanged_messages?: ConversationsHistoryResponseUnchangedMessagesList;
306
+ /** Unix timestamp of when the user joined the channel */
307
+ date_joined?: number;
337
308
  }
338
309
  export const ConversationsHistoryResponse = /*@__PURE__*/ S.suspend(() =>
339
310
  S.Struct({
@@ -350,16 +321,13 @@ export const ConversationsHistoryResponse = /*@__PURE__*/ S.suspend(() =>
350
321
  unread_count_display: S.optional(S.Number),
351
322
  users: S.optional(ConversationsHistoryResponseUsersMap),
352
323
  deleted: S.optional(ConversationsHistoryResponseDeletedList),
353
- mutation_timestamps: S.optional(
354
- ConversationsHistoryResponseMutationTimestamps,
355
- ),
324
+ mutation_timestamps: S.optional(ConversationsHistoryResponseMutationTimestamps),
356
325
  deleted_overflow: S.optional(S.Boolean),
357
326
  warnings: S.optional(ConversationsHistoryResponseWarningsList),
358
327
  next_ts: S.optional(S.Number),
359
328
  latest_updates: S.optional(ConversationsHistoryResponseLatestUpdatesMap),
360
- unchanged_messages: S.optional(
361
- ConversationsHistoryResponseUnchangedMessagesList,
362
- ),
329
+ unchanged_messages: S.optional(ConversationsHistoryResponseUnchangedMessagesList),
330
+ date_joined: S.optional(S.Number),
363
331
  }),
364
332
  ).annotate({
365
333
  identifier: "ConversationsHistoryResponse",
@@ -379,9 +347,7 @@ export const ConversationsInfoRequest = /*@__PURE__*/ S.suspend(() =>
379
347
  include_locale: S.optional(S.Boolean.pipe(T.Query())),
380
348
  include_num_members: S.optional(S.Boolean.pipe(T.Query())),
381
349
  }).pipe(T.Http({ method: "GET", uri: "/conversations.info", code: 200 })),
382
- ).annotate({
383
- identifier: "ConversationsInfoRequest",
384
- }) as any as S.Schema<ConversationsInfoRequest>;
350
+ ).annotate({ identifier: "ConversationsInfoRequest" }) as any as S.Schema<ConversationsInfoRequest>;
385
351
 
386
352
  export interface ConversationsInfoResponse {
387
353
  /** Always `true` (a failed call raises a typed error instead). */
@@ -412,9 +378,7 @@ export const ConversationsKickRequest = /*@__PURE__*/ S.suspend(() =>
412
378
  channel: S.String,
413
379
  user: S.optional(S.String),
414
380
  }).pipe(T.Http({ method: "POST", uri: "/conversations.kick", code: 200 })),
415
- ).annotate({
416
- identifier: "ConversationsKickRequest",
417
- }) as any as S.Schema<ConversationsKickRequest>;
381
+ ).annotate({ identifier: "ConversationsKickRequest" }) as any as S.Schema<ConversationsKickRequest>;
418
382
 
419
383
  export interface ConversationsKickResponse {
420
384
  /** Always `true` (a failed call raises a typed error instead). */
@@ -439,9 +403,7 @@ export const ConversationsMarkRequest = /*@__PURE__*/ S.suspend(() =>
439
403
  channel: S.String,
440
404
  ts: S.String,
441
405
  }).pipe(T.Http({ method: "POST", uri: "/conversations.mark", code: 200 })),
442
- ).annotate({
443
- identifier: "ConversationsMarkRequest",
444
- }) as any as S.Schema<ConversationsMarkRequest>;
406
+ ).annotate({ identifier: "ConversationsMarkRequest" }) as any as S.Schema<ConversationsMarkRequest>;
445
407
 
446
408
  export interface ConversationsMarkResponse {
447
409
  /** Always `true` (a failed call raises a typed error instead). */
@@ -518,9 +480,7 @@ export const ConversationsOpenRequest = /*@__PURE__*/ S.suspend(() =>
518
480
  users: S.optional(S.String),
519
481
  prevent_creation: S.optional(S.Boolean),
520
482
  }).pipe(T.Http({ method: "POST", uri: "/conversations.open", code: 200 })),
521
- ).annotate({
522
- identifier: "ConversationsOpenRequest",
523
- }) as any as S.Schema<ConversationsOpenRequest>;
483
+ ).annotate({ identifier: "ConversationsOpenRequest" }) as any as S.Schema<ConversationsOpenRequest>;
524
484
 
525
485
  export interface ConversationsOpenResponse {
526
486
  /** Always `true` (a failed call raises a typed error instead). */
@@ -582,20 +542,16 @@ export const ConversationsRepliesResponseMessagesList = /*@__PURE__*/ S.Array(
582
542
  S.Unknown,
583
543
  ) as any as S.Schema<ConversationsRepliesResponseMessagesList>;
584
544
 
585
- export type ConversationsRepliesResponseLatestUpdatesMap = {
586
- [key: string]: unknown | undefined;
587
- };
588
- export const ConversationsRepliesResponseLatestUpdatesMap =
589
- /*@__PURE__*/ S.Record(
590
- S.String,
591
- S.Unknown,
592
- ) as any as S.Schema<ConversationsRepliesResponseLatestUpdatesMap>;
545
+ export type ConversationsRepliesResponseLatestUpdatesMap = { [key: string]: unknown | undefined };
546
+ export const ConversationsRepliesResponseLatestUpdatesMap = /*@__PURE__*/ S.Record(
547
+ S.String,
548
+ S.Unknown,
549
+ ) as any as S.Schema<ConversationsRepliesResponseLatestUpdatesMap>;
593
550
 
594
551
  export type ConversationsRepliesResponseUnchangedMessagesList = Array<string>;
595
- export const ConversationsRepliesResponseUnchangedMessagesList =
596
- /*@__PURE__*/ S.Array(
597
- S.String,
598
- ) as any as S.Schema<ConversationsRepliesResponseUnchangedMessagesList>;
552
+ export const ConversationsRepliesResponseUnchangedMessagesList = /*@__PURE__*/ S.Array(
553
+ S.String,
554
+ ) as any as S.Schema<ConversationsRepliesResponseUnchangedMessagesList>;
599
555
 
600
556
  /** Pagination metadata. An empty `next_cursor` means the last page. */
601
557
  export type ConversationsRepliesResponseResponseMetadata =
@@ -619,9 +575,7 @@ export const ConversationsRepliesResponse = /*@__PURE__*/ S.suspend(() =>
619
575
  has_more: S.optional(S.Boolean),
620
576
  messages: ConversationsRepliesResponseMessagesList,
621
577
  latest_updates: S.optional(ConversationsRepliesResponseLatestUpdatesMap),
622
- unchanged_messages: S.optional(
623
- ConversationsRepliesResponseUnchangedMessagesList,
624
- ),
578
+ unchanged_messages: S.optional(ConversationsRepliesResponseUnchangedMessagesList),
625
579
  response_metadata: S.optional(ConversationsHistoryResponseResponseMetadata),
626
580
  }),
627
581
  ).annotate({
@@ -641,16 +595,8 @@ export const CreateCanvaseRequest = /*@__PURE__*/ S.suspend(() =>
641
595
  channel_id: S.String,
642
596
  document_content: S.optional(S.Unknown),
643
597
  title: S.optional(S.String),
644
- }).pipe(
645
- T.Http({
646
- method: "POST",
647
- uri: "/conversations.canvases.create",
648
- code: 200,
649
- }),
650
- ),
651
- ).annotate({
652
- identifier: "CreateCanvaseRequest",
653
- }) as any as S.Schema<CreateCanvaseRequest>;
598
+ }).pipe(T.Http({ method: "POST", uri: "/conversations.canvases.create", code: 200 })),
599
+ ).annotate({ identifier: "CreateCanvaseRequest" }) as any as S.Schema<CreateCanvaseRequest>;
654
600
 
655
601
  export interface CreateCanvaseResponse {
656
602
  /** Always `true` (a failed call raises a typed error instead). */
@@ -663,9 +609,7 @@ export const CreateCanvaseResponse = /*@__PURE__*/ S.suspend(() =>
663
609
  ok: S.Boolean,
664
610
  canvas_id: S.String,
665
611
  }),
666
- ).annotate({
667
- identifier: "CreateCanvaseResponse",
668
- }) as any as S.Schema<CreateCanvaseResponse>;
612
+ ).annotate({ identifier: "CreateCanvaseResponse" }) as any as S.Schema<CreateCanvaseResponse>;
669
613
 
670
614
  export interface CreateConversationRequest {
671
615
  /** Create a private channel instead of a public one */
@@ -704,7 +648,7 @@ export interface InviteConversationRequest {
704
648
  channel: string;
705
649
  /** When set to `true` and multiple user IDs are provided, continue inviting the valid ones while disregarding invalid IDs. Defaults to `false`. */
706
650
  force?: boolean;
707
- /** A comma separated list of user IDs. Up to 100 users may be listed. */
651
+ /** A comma separated list of user IDs. Up to 1000 users may be listed. */
708
652
  users: string;
709
653
  }
710
654
  export const InviteConversationRequest = /*@__PURE__*/ S.suspend(() =>
@@ -750,13 +694,7 @@ export const InviteDeclineSharedRequest = /*@__PURE__*/ S.suspend(() =>
750
694
  S.Struct({
751
695
  invite_id: S.String.pipe(T.Query()),
752
696
  target_team: S.optional(S.String.pipe(T.Query())),
753
- }).pipe(
754
- T.Http({
755
- method: "GET",
756
- uri: "/conversations.declineSharedInvite",
757
- code: 200,
758
- }),
759
- ),
697
+ }).pipe(T.Http({ method: "GET", uri: "/conversations.declineSharedInvite", code: 200 })),
760
698
  ).annotate({
761
699
  identifier: "InviteDeclineSharedRequest",
762
700
  }) as any as S.Schema<InviteDeclineSharedRequest>;
@@ -800,12 +738,8 @@ export const InviteSharedRequest = /*@__PURE__*/ S.suspend(() =>
800
738
  emails: S.optional(InviteSharedRequestEmailsList),
801
739
  user_ids: S.optional(InviteSharedRequestUserIdsList),
802
740
  external_limited: S.optional(S.Boolean),
803
- }).pipe(
804
- T.Http({ method: "POST", uri: "/conversations.inviteShared", code: 200 }),
805
- ),
806
- ).annotate({
807
- identifier: "InviteSharedRequest",
808
- }) as any as S.Schema<InviteSharedRequest>;
741
+ }).pipe(T.Http({ method: "POST", uri: "/conversations.inviteShared", code: 200 })),
742
+ ).annotate({ identifier: "InviteSharedRequest" }) as any as S.Schema<InviteSharedRequest>;
809
743
 
810
744
  export interface InviteSharedResponse {
811
745
  /** Always `true` (a failed call raises a typed error instead). */
@@ -823,9 +757,7 @@ export const InviteSharedResponse = /*@__PURE__*/ S.suspend(() =>
823
757
  conf_code: S.optional(S.String),
824
758
  is_legacy_shared_channel: S.optional(S.Boolean),
825
759
  }),
826
- ).annotate({
827
- identifier: "InviteSharedResponse",
828
- }) as any as S.Schema<InviteSharedResponse>;
760
+ ).annotate({ identifier: "InviteSharedResponse" }) as any as S.Schema<InviteSharedResponse>;
829
761
 
830
762
  export interface JoinConversationRequest {
831
763
  /** ID of conversation to join */
@@ -835,27 +767,20 @@ export const JoinConversationRequest = /*@__PURE__*/ S.suspend(() =>
835
767
  S.Struct({
836
768
  channel: S.String,
837
769
  }).pipe(T.Http({ method: "POST", uri: "/conversations.join", code: 200 })),
838
- ).annotate({
839
- identifier: "JoinConversationRequest",
840
- }) as any as S.Schema<JoinConversationRequest>;
770
+ ).annotate({ identifier: "JoinConversationRequest" }) as any as S.Schema<JoinConversationRequest>;
841
771
 
842
- export type JoinConversationResponseResponseMetadataWarningsList =
843
- Array<string>;
844
- export const JoinConversationResponseResponseMetadataWarningsList =
845
- /*@__PURE__*/ S.Array(
846
- S.String,
847
- ) as any as S.Schema<JoinConversationResponseResponseMetadataWarningsList>;
772
+ export type JoinConversationResponseResponseMetadataWarningsList = Array<string>;
773
+ export const JoinConversationResponseResponseMetadataWarningsList = /*@__PURE__*/ S.Array(
774
+ S.String,
775
+ ) as any as S.Schema<JoinConversationResponseResponseMetadataWarningsList>;
848
776
 
849
777
  export interface JoinConversationResponseResponseMetadata {
850
778
  warnings?: JoinConversationResponseResponseMetadataWarningsList;
851
779
  }
852
- export const JoinConversationResponseResponseMetadata = /*@__PURE__*/ S.suspend(
853
- () =>
854
- S.Struct({
855
- warnings: S.optional(
856
- JoinConversationResponseResponseMetadataWarningsList,
857
- ),
858
- }),
780
+ export const JoinConversationResponseResponseMetadata = /*@__PURE__*/ S.suspend(() =>
781
+ S.Struct({
782
+ warnings: S.optional(JoinConversationResponseResponseMetadataWarningsList),
783
+ }),
859
784
  ).annotate({
860
785
  identifier: "JoinConversationResponseResponseMetadata",
861
786
  }) as any as S.Schema<JoinConversationResponseResponseMetadata>;
@@ -872,9 +797,7 @@ export const JoinConversationResponse = /*@__PURE__*/ S.suspend(() =>
872
797
  channel: S.Unknown,
873
798
  response_metadata: S.optional(JoinConversationResponseResponseMetadata),
874
799
  }),
875
- ).annotate({
876
- identifier: "JoinConversationResponse",
877
- }) as any as S.Schema<JoinConversationResponse>;
800
+ ).annotate({ identifier: "JoinConversationResponse" }) as any as S.Schema<JoinConversationResponse>;
878
801
 
879
802
  export interface LeaveConversationRequest {
880
803
  /** Conversation to leave */
@@ -884,9 +807,7 @@ export const LeaveConversationRequest = /*@__PURE__*/ S.suspend(() =>
884
807
  S.Struct({
885
808
  channel: S.String,
886
809
  }).pipe(T.Http({ method: "POST", uri: "/conversations.leave", code: 200 })),
887
- ).annotate({
888
- identifier: "LeaveConversationRequest",
889
- }) as any as S.Schema<LeaveConversationRequest>;
810
+ ).annotate({ identifier: "LeaveConversationRequest" }) as any as S.Schema<LeaveConversationRequest>;
890
811
 
891
812
  export interface LeaveConversationResponse {
892
813
  /** Always `true` (a failed call raises a typed error instead). */
@@ -915,13 +836,7 @@ export const ListConnectInvitesRequest = /*@__PURE__*/ S.suspend(() =>
915
836
  team_id: S.optional(S.String),
916
837
  count: S.optional(S.Number),
917
838
  cursor: S.optional(S.String),
918
- }).pipe(
919
- T.Http({
920
- method: "POST",
921
- uri: "/conversations.listConnectInvites",
922
- code: 200,
923
- }),
924
- ),
839
+ }).pipe(T.Http({ method: "POST", uri: "/conversations.listConnectInvites", code: 200 })),
925
840
  ).annotate({
926
841
  identifier: "ListConnectInvitesRequest",
927
842
  }) as any as S.Schema<ListConnectInvitesRequest>;
@@ -974,9 +889,7 @@ export const ListConversationsRequest = /*@__PURE__*/ S.suspend(() =>
974
889
  team_id: S.optional(S.String.pipe(T.Query())),
975
890
  types: S.optional(S.String.pipe(T.Query())),
976
891
  }).pipe(T.Http({ method: "GET", uri: "/conversations.list", code: 200 })),
977
- ).annotate({
978
- identifier: "ListConversationsRequest",
979
- }) as any as S.Schema<ListConversationsRequest>;
892
+ ).annotate({ identifier: "ListConversationsRequest" }) as any as S.Schema<ListConversationsRequest>;
980
893
 
981
894
  export type ListConversationsResponseChannelsList = Array<unknown>;
982
895
  export const ListConversationsResponseChannelsList = /*@__PURE__*/ S.Array(
@@ -1008,10 +921,9 @@ export const ListConversationsResponse = /*@__PURE__*/ S.suspend(() =>
1008
921
 
1009
922
  /** An optional list of invitation ids to look up */
1010
923
  export type ListRequestSharedInviteRequestInviteIdsList = Array<string>;
1011
- export const ListRequestSharedInviteRequestInviteIdsList =
1012
- /*@__PURE__*/ S.Array(
1013
- S.String,
1014
- ) as any as S.Schema<ListRequestSharedInviteRequestInviteIdsList>;
924
+ export const ListRequestSharedInviteRequestInviteIdsList = /*@__PURE__*/ S.Array(
925
+ S.String,
926
+ ) as any as S.Schema<ListRequestSharedInviteRequestInviteIdsList>;
1015
927
 
1016
928
  export interface ListRequestSharedInviteRequest {
1017
929
  /** Optional filter to return invitation requests for the inviting user. */
@@ -1038,22 +950,15 @@ export const ListRequestSharedInviteRequest = /*@__PURE__*/ S.suspend(() =>
1038
950
  invite_ids: S.optional(ListRequestSharedInviteRequestInviteIdsList),
1039
951
  limit: S.optional(S.Number),
1040
952
  cursor: S.optional(S.String),
1041
- }).pipe(
1042
- T.Http({
1043
- method: "POST",
1044
- uri: "/conversations.requestSharedInvite.list",
1045
- code: 200,
1046
- }),
1047
- ),
953
+ }).pipe(T.Http({ method: "POST", uri: "/conversations.requestSharedInvite.list", code: 200 })),
1048
954
  ).annotate({
1049
955
  identifier: "ListRequestSharedInviteRequest",
1050
956
  }) as any as S.Schema<ListRequestSharedInviteRequest>;
1051
957
 
1052
958
  export type ListRequestSharedInviteResponseInviteRequestsList = Array<unknown>;
1053
- export const ListRequestSharedInviteResponseInviteRequestsList =
1054
- /*@__PURE__*/ S.Array(
1055
- S.Unknown,
1056
- ) as any as S.Schema<ListRequestSharedInviteResponseInviteRequestsList>;
959
+ export const ListRequestSharedInviteResponseInviteRequestsList = /*@__PURE__*/ S.Array(
960
+ S.Unknown,
961
+ ) as any as S.Schema<ListRequestSharedInviteResponseInviteRequestsList>;
1057
962
 
1058
963
  /** Pagination metadata. An empty `next_cursor` means the last page. */
1059
964
  export type ListRequestSharedInviteResponseResponseMetadata =
@@ -1117,13 +1022,7 @@ export const RequestSharedInviteDenyRequest = /*@__PURE__*/ S.suspend(() =>
1117
1022
  S.Struct({
1118
1023
  invite_id: S.String,
1119
1024
  message: S.optional(S.String),
1120
- }).pipe(
1121
- T.Http({
1122
- method: "POST",
1123
- uri: "/conversations.requestSharedInvite.deny",
1124
- code: 200,
1125
- }),
1126
- ),
1025
+ }).pipe(T.Http({ method: "POST", uri: "/conversations.requestSharedInvite.deny", code: 200 })),
1127
1026
  ).annotate({
1128
1027
  identifier: "RequestSharedInviteDenyRequest",
1129
1028
  }) as any as S.Schema<RequestSharedInviteDenyRequest>;
@@ -1171,11 +1070,10 @@ export const SetExternalInvitePermissionsRequest = /*@__PURE__*/ S.suspend(() =>
1171
1070
  export interface SetExternalInvitePermissionsResponse {
1172
1071
  ok: boolean;
1173
1072
  }
1174
- export const SetExternalInvitePermissionsResponse = /*@__PURE__*/ S.suspend(
1175
- () =>
1176
- S.Struct({
1177
- ok: S.Boolean,
1178
- }),
1073
+ export const SetExternalInvitePermissionsResponse = /*@__PURE__*/ S.suspend(() =>
1074
+ S.Struct({
1075
+ ok: S.Boolean,
1076
+ }),
1179
1077
  ).annotate({
1180
1078
  identifier: "SetExternalInvitePermissionsResponse",
1181
1079
  }) as any as S.Schema<SetExternalInvitePermissionsResponse>;
@@ -1190,12 +1088,8 @@ export const SetPurposeRequest = /*@__PURE__*/ S.suspend(() =>
1190
1088
  S.Struct({
1191
1089
  channel: S.String,
1192
1090
  purpose: S.String,
1193
- }).pipe(
1194
- T.Http({ method: "POST", uri: "/conversations.setPurpose", code: 200 }),
1195
- ),
1196
- ).annotate({
1197
- identifier: "SetPurposeRequest",
1198
- }) as any as S.Schema<SetPurposeRequest>;
1091
+ }).pipe(T.Http({ method: "POST", uri: "/conversations.setPurpose", code: 200 })),
1092
+ ).annotate({ identifier: "SetPurposeRequest" }) as any as S.Schema<SetPurposeRequest>;
1199
1093
 
1200
1094
  export interface SetPurposeResponse {
1201
1095
  /** Always `true` (a failed call raises a typed error instead). */
@@ -1207,9 +1101,7 @@ export const SetPurposeResponse = /*@__PURE__*/ S.suspend(() =>
1207
1101
  ok: S.Boolean,
1208
1102
  channel: S.Unknown,
1209
1103
  }),
1210
- ).annotate({
1211
- identifier: "SetPurposeResponse",
1212
- }) as any as S.Schema<SetPurposeResponse>;
1104
+ ).annotate({ identifier: "SetPurposeResponse" }) as any as S.Schema<SetPurposeResponse>;
1213
1105
 
1214
1106
  export interface SetTopicRequest {
1215
1107
  /** Conversation to set the topic of */
@@ -1221,12 +1113,8 @@ export const SetTopicRequest = /*@__PURE__*/ S.suspend(() =>
1221
1113
  S.Struct({
1222
1114
  channel: S.String,
1223
1115
  topic: S.String,
1224
- }).pipe(
1225
- T.Http({ method: "POST", uri: "/conversations.setTopic", code: 200 }),
1226
- ),
1227
- ).annotate({
1228
- identifier: "SetTopicRequest",
1229
- }) as any as S.Schema<SetTopicRequest>;
1116
+ }).pipe(T.Http({ method: "POST", uri: "/conversations.setTopic", code: 200 })),
1117
+ ).annotate({ identifier: "SetTopicRequest" }) as any as S.Schema<SetTopicRequest>;
1230
1118
 
1231
1119
  export interface SetTopicResponse {
1232
1120
  /** Always `true` (a failed call raises a typed error instead). */
@@ -1238,9 +1126,7 @@ export const SetTopicResponse = /*@__PURE__*/ S.suspend(() =>
1238
1126
  ok: S.Boolean,
1239
1127
  channel: S.Unknown,
1240
1128
  }),
1241
- ).annotate({
1242
- identifier: "SetTopicResponse",
1243
- }) as any as S.Schema<SetTopicResponse>;
1129
+ ).annotate({ identifier: "SetTopicResponse" }) as any as S.Schema<SetTopicResponse>;
1244
1130
 
1245
1131
  export interface UnarchiveConversationRequest {
1246
1132
  /** ID of conversation to unarchive */
@@ -1249,9 +1135,7 @@ export interface UnarchiveConversationRequest {
1249
1135
  export const UnarchiveConversationRequest = /*@__PURE__*/ S.suspend(() =>
1250
1136
  S.Struct({
1251
1137
  channel: S.String,
1252
- }).pipe(
1253
- T.Http({ method: "POST", uri: "/conversations.unarchive", code: 200 }),
1254
- ),
1138
+ }).pipe(T.Http({ method: "POST", uri: "/conversations.unarchive", code: 200 })),
1255
1139
  ).annotate({
1256
1140
  identifier: "UnarchiveConversationRequest",
1257
1141
  }) as any as S.Schema<UnarchiveConversationRequest>;
@@ -1269,7 +1153,7 @@ export const UnarchiveConversationResponse = /*@__PURE__*/ S.suspend(() =>
1269
1153
  }) as any as S.Schema<UnarchiveConversationResponse>;
1270
1154
 
1271
1155
  export type AcceptSharedInviteError = SlackOpError;
1272
- /** Accepts an invitation to a Slack Connect channel. Required scopes — bot: `conversations.connect:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `channel_conversion_in_progress` — Unable to create a channel connection while a channel conversion is in progress - `connection_limit_exceeded` — This channel has hit the limit of external connections. - `email_does_not_match` — User's email does not match the email in the invite. - `failed_to_start_trial` — Unable to initiate a trial on shared invite acceptance - `has_already_connected_to_org` — A team on the workspace of the org is already in the channel. - `invalid_arguments` — Invalid API arguments were provided. Either `sig` or `invite_id` must be specified. - `invalid_emoji_not_allowed` — The desired name contains emoji. - `invalid_host_team` — The host workspace is invalid. - `invalid_link` — We couldn't find an invite associated with the ID provided. - `invalid_name` — The value passed for `channel_name` was invalid. - `invalid_name_maxlength` — The value passed for `channel_name` exceeded the maximum length. - `invalid_name_punctuation` — The value passed for `channel_name` contained only punctuation. - `invalid_name_required` — The value passed for `channel_name` was empty. - `invalid_name_specials` — The value passed for `channel_name` contained unallowed special characters or upper case characters. - `invite_from_same_org` — You can't accept an invite from the same org or workspace. - `invite_not_found` — We couldn't find a Slack Connect channel invite with the ID provided. - `invalid_privacy` — An invalid channel privacy was provided. - `invalid_recipient_team` — The accepting team does not match the expected recipient team. - `invalid_target_team` — The target workspace is invalid. - `invite_used` — This invite has already been accepted. - `is_pending_connected_to_org` — A team pending to join the channel is on the org of the team trying to accept. - `legacy_connection_invalid_org` — Teams not previously connected to this legacy channel can't connect. - `legacy_connection_limit_exceeded` — You cannot share a legacy ESC channel with a third team - `name_taken` — The desired channel name is already taken in your workspace. - `not_allowed_for_grid_workspace` — Acceptance is not allowed for this workspace. - `not_paid` — This workspace doesn't have access to this feature. - `restricted_action` — A team preference prevents the authenticated user from creating private channels. - `team_not_found` — The team provided in the `team_id` argument does not exits. - `user_cannot_create_channel` — This user is not allowed to create a channel. - `user_is_restricted` — This user is restricted and cannot accept the invite. - `user_not_found` — The user accepting the invite is not a member of the team provided in the `team_id` argument. - `user_required_to_accept_as_private_but_cannot` — This uer cannot accept a private channel invitation. See https://docs.slack.dev/reference/methods/conversations.acceptSharedInvite */
1156
+ /** 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 */
1273
1157
  export const acceptSharedInvite: API.OperationMethod<
1274
1158
  AcceptSharedInviteRequest,
1275
1159
  AcceptSharedInviteResponse,
@@ -1344,7 +1228,7 @@ export const conversationsClose: API.OperationMethod<
1344
1228
  }));
1345
1229
 
1346
1230
  export type ConversationsHistoryError = SlackOpError;
1347
- /** Fetches a conversation's history of messages and events. Required scopes — bot: `groups:history`, `im:history`, `mpim:history`, `channels:history`; user: `groups:history`, `im:history`, `mpim:history`, `channels:history` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_is_limited_access` — The user has no access to the channel. This is only applicable to private Salesforce record channels. - `channel_not_found` — Value passed for `channel` was invalid. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_metadata_filter_keys` — Value passed for `metadata_keys_to_include` was invalid. Must be valid json array of strings. - `invalid_ts_latest` — Value passed for `latest` was invalid - `invalid_ts_oldest` — Value passed for `oldest` was invalid - `not_in_channel` — The token used does not have access to the proper channel. Only user tokens can access public channels they are not in. See https://docs.slack.dev/reference/methods/conversations.history */
1231
+ /** 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 */
1348
1232
  export const conversationsHistory: API.PaginatedOperationMethod<
1349
1233
  ConversationsHistoryRequest,
1350
1234
  ConversationsHistoryResponse,
@@ -1385,7 +1269,7 @@ export const conversationsInfo: API.OperationMethod<
1385
1269
  }));
1386
1270
 
1387
1271
  export type ConversationsKickError = SlackOpError;
1388
- /** Removes a user from a conversation. Required scopes — bot: `groups:write`, `channels:manage`; user: `groups:write`, `channels:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `cant_kick_from_general` — User cannot be removed from #general. - `cant_kick_self` — Authenticated user can't kick themselves from a channel. - `channel_not_found` — Value passed for `channel` was invalid. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `not_in_channel` — User was not in the channel. - `not_supported` — This is not supported for this channel and user combination. - `restricted_action` — A team preference prevents the authenticated user from kicking. - `user_not_found` — Value passed for `user` was invalid. See https://docs.slack.dev/reference/methods/conversations.kick */
1272
+ /** 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 */
1389
1273
  export const conversationsKick: API.OperationMethod<
1390
1274
  ConversationsKickRequest,
1391
1275
  ConversationsKickResponse,
@@ -1441,7 +1325,7 @@ export const conversationsMembers: API.PaginatedOperationMethod<
1441
1325
  ) as any;
1442
1326
 
1443
1327
  export type ConversationsOpenError = SlackOpError;
1444
- /** Opens or resumes a direct message or multi-person direct message. Required scopes — bot: `channels:manage`, `groups:write`, `im:write`, `mpim:write`; user: `channels:write`, `groups:write`, `im:write`, `mpim:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Value passed for `channel` was invalid. - `invalid_user_combination` — All external people must already be in at least one channel together to send a message. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `not_enough_users` — Needs at least 2 users to open - `too_many_users` — Needs at most 8 users to open - `user_disabled` — A specified `user` has been disabled. - `user_not_found` — Value(s) passed for `users` was invalid. - `user_not_visible` — The calling user is restricted from seeing the requested user. - `users_list_not_supplied` — Missing `users` in request See https://docs.slack.dev/reference/methods/conversations.open */
1328
+ /** 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 */
1445
1329
  export const conversationsOpen: API.OperationMethod<
1446
1330
  ConversationsOpenRequest,
1447
1331
  ConversationsOpenResponse,
@@ -1482,7 +1366,7 @@ export const conversationsReplies: API.PaginatedOperationMethod<
1482
1366
  ) as any;
1483
1367
 
1484
1368
  export type CreateCanvaseError = SlackOpError;
1485
- /** Create a channel canvas for a channel Required scopes — bot: `canvases:write`; user: `canvases:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `canvas_disabled_user_team` — Canvas is disabled on user's team - `restricted_action` — User does not have permission to perform this action. - `channel_canvas_creation_failed` — Channel canvas was unable to be created. - `channel_canvas_already_exists` — Channel canvas for the specified channel already exists. - `team_tier_cannot_create_channel_canvases` — Team tier cannot create channel canvases - `canvas_creation_failed` — Canvas was unable to be created. - `canvas_tab_creation_failed` — Canvas tab was unable to be created. - `free_team_canvas_tab_already_exists` — Canvas tab for specified channel and team tier already exists. See https://docs.slack.dev/reference/methods/conversations.canvases.create */
1369
+ /** 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 */
1486
1370
  export const createCanvase: API.OperationMethod<
1487
1371
  CreateCanvaseRequest,
1488
1372
  CreateCanvaseResponse,
@@ -1557,7 +1441,7 @@ export const inviteShared: API.OperationMethod<
1557
1441
  }));
1558
1442
 
1559
1443
  export type JoinConversationError = SlackOpError;
1560
- /** Joins an existing conversation. Required scopes — user: `channels:write`; bot: `channels:join` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `channel_is_limited_access` — The user has no access to the channel. This is only applicable to private Salesforce record channels. - `channel_not_found` — Value passed for `channel` was invalid. - `is_archived` — Channel has been archived. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. - `missing_scope` — The calling token is not granted the necessary scopes to complete this operation. - `too_many_members` — The membership in the channel has exceeded our maximum member limit. No more users can join the channel. See https://docs.slack.dev/reference/methods/conversations.join */
1444
+ /** 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 */
1561
1445
  export const joinConversation: API.OperationMethod<
1562
1446
  JoinConversationRequest,
1563
1447
  JoinConversationResponse,