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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/README.md +34 -0
  2. package/lib/credentials.d.ts +2 -2
  3. package/lib/credentials.d.ts.map +1 -1
  4. package/lib/credentials.js +3 -3
  5. package/lib/credentials.js.map +1 -1
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +1 -1
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +4 -4
  10. package/lib/index.d.ts.map +1 -1
  11. package/lib/index.js +4 -4
  12. package/lib/index.js.map +1 -1
  13. package/lib/pagination.d.ts.map +1 -1
  14. package/lib/pagination.js.map +1 -1
  15. package/lib/protocol.d.ts +3 -3
  16. package/lib/protocol.d.ts.map +1 -1
  17. package/lib/protocol.js +23 -22
  18. package/lib/protocol.js.map +1 -1
  19. package/lib/protocol.test.d.ts +2 -0
  20. package/lib/protocol.test.d.ts.map +1 -0
  21. package/lib/protocol.test.js +288 -0
  22. package/lib/protocol.test.js.map +1 -0
  23. package/lib/retry.d.ts +1 -1
  24. package/lib/retry.d.ts.map +1 -1
  25. package/lib/retry.js +1 -1
  26. package/lib/retry.js.map +1 -1
  27. package/lib/services/admin.d.ts +236 -29
  28. package/lib/services/admin.d.ts.map +1 -1
  29. package/lib/services/admin.js +417 -749
  30. package/lib/services/admin.js.map +1 -1
  31. package/lib/services/agents.d.ts +423 -0
  32. package/lib/services/agents.d.ts.map +1 -0
  33. package/lib/services/agents.js +315 -0
  34. package/lib/services/agents.js.map +1 -0
  35. package/lib/services/api.d.ts +1 -1
  36. package/lib/services/api.d.ts.map +1 -1
  37. package/lib/services/api.js +4 -6
  38. package/lib/services/api.js.map +1 -1
  39. package/lib/services/apps.d.ts +21 -3
  40. package/lib/services/apps.d.ts.map +1 -1
  41. package/lib/services/apps.js +65 -133
  42. package/lib/services/apps.js.map +1 -1
  43. package/lib/services/assistant.d.ts +4 -4
  44. package/lib/services/assistant.d.ts.map +1 -1
  45. package/lib/services/assistant.js +16 -38
  46. package/lib/services/assistant.js.map +1 -1
  47. package/lib/services/auth.d.ts +2 -2
  48. package/lib/services/auth.d.ts.map +1 -1
  49. package/lib/services/auth.js +11 -28
  50. package/lib/services/auth.js.map +1 -1
  51. package/lib/services/blocks.d.ts +1 -1
  52. package/lib/services/blocks.d.ts.map +1 -1
  53. package/lib/services/blocks.js +5 -9
  54. package/lib/services/blocks.js.map +1 -1
  55. package/lib/services/bookmarks.d.ts +4 -4
  56. package/lib/services/bookmarks.d.ts.map +1 -1
  57. package/lib/services/bookmarks.js +14 -30
  58. package/lib/services/bookmarks.js.map +1 -1
  59. package/lib/services/bots.d.ts +1 -1
  60. package/lib/services/bots.d.ts.map +1 -1
  61. package/lib/services/bots.js +7 -15
  62. package/lib/services/bots.js.map +1 -1
  63. package/lib/services/calls.d.ts +1 -1
  64. package/lib/services/calls.d.ts.map +1 -1
  65. package/lib/services/calls.js +13 -33
  66. package/lib/services/calls.js.map +1 -1
  67. package/lib/services/canvases.d.ts +22 -2
  68. package/lib/services/canvases.d.ts.map +1 -1
  69. package/lib/services/canvases.js +37 -48
  70. package/lib/services/canvases.js.map +1 -1
  71. package/lib/services/chat.d.ts +29 -25
  72. package/lib/services/chat.d.ts.map +1 -1
  73. package/lib/services/chat.js +47 -95
  74. package/lib/services/chat.js.map +1 -1
  75. package/lib/services/conversations.d.ts +10 -8
  76. package/lib/services/conversations.d.ts.map +1 -1
  77. package/lib/services/conversations.js +43 -115
  78. package/lib/services/conversations.js.map +1 -1
  79. package/lib/services/dialog.d.ts +1 -1
  80. package/lib/services/dialog.d.ts.map +1 -1
  81. package/lib/services/dialog.js +5 -9
  82. package/lib/services/dialog.js.map +1 -1
  83. package/lib/services/dnd.d.ts +1 -1
  84. package/lib/services/dnd.d.ts.map +1 -1
  85. package/lib/services/dnd.js +10 -24
  86. package/lib/services/dnd.js.map +1 -1
  87. package/lib/services/emoji.d.ts +1 -1
  88. package/lib/services/emoji.d.ts.map +1 -1
  89. package/lib/services/emoji.js +6 -11
  90. package/lib/services/emoji.js.map +1 -1
  91. package/lib/services/entity.d.ts +1 -1
  92. package/lib/services/entity.d.ts.map +1 -1
  93. package/lib/services/entity.js +8 -20
  94. package/lib/services/entity.js.map +1 -1
  95. package/lib/services/files.d.ts +5 -5
  96. package/lib/services/files.d.ts.map +1 -1
  97. package/lib/services/files.js +39 -109
  98. package/lib/services/files.js.map +1 -1
  99. package/lib/services/functions.d.ts +1 -1
  100. package/lib/services/functions.d.ts.map +1 -1
  101. package/lib/services/functions.js +28 -75
  102. package/lib/services/functions.js.map +1 -1
  103. package/lib/services/index.d.ts +1 -0
  104. package/lib/services/index.d.ts.map +1 -1
  105. package/lib/services/index.js +1 -0
  106. package/lib/services/index.js.map +1 -1
  107. package/lib/services/lists.d.ts +5 -1
  108. package/lib/services/lists.d.ts.map +1 -1
  109. package/lib/services/lists.js +35 -146
  110. package/lib/services/lists.js.map +1 -1
  111. package/lib/services/migration.d.ts +1 -1
  112. package/lib/services/migration.d.ts.map +1 -1
  113. package/lib/services/migration.js +5 -8
  114. package/lib/services/migration.js.map +1 -1
  115. package/lib/services/oauth.d.ts +38 -2
  116. package/lib/services/oauth.d.ts.map +1 -1
  117. package/lib/services/oauth.js +67 -50
  118. package/lib/services/oauth.js.map +1 -1
  119. package/lib/services/openid.d.ts +1 -1
  120. package/lib/services/openid.d.ts.map +1 -1
  121. package/lib/services/openid.js +7 -15
  122. package/lib/services/openid.js.map +1 -1
  123. package/lib/services/pins.d.ts +1 -1
  124. package/lib/services/pins.d.ts.map +1 -1
  125. package/lib/services/pins.js +7 -15
  126. package/lib/services/pins.js.map +1 -1
  127. package/lib/services/reactions.d.ts +2 -2
  128. package/lib/services/reactions.d.ts.map +1 -1
  129. package/lib/services/reactions.js +13 -29
  130. package/lib/services/reactions.js.map +1 -1
  131. package/lib/services/reminders.d.ts +1 -1
  132. package/lib/services/reminders.d.ts.map +1 -1
  133. package/lib/services/reminders.js +13 -33
  134. package/lib/services/reminders.js.map +1 -1
  135. package/lib/services/rtm.d.ts +1 -1
  136. package/lib/services/rtm.d.ts.map +1 -1
  137. package/lib/services/rtm.js +9 -21
  138. package/lib/services/rtm.js.map +1 -1
  139. package/lib/services/search.d.ts +1 -1
  140. package/lib/services/search.d.ts.map +1 -1
  141. package/lib/services/search.js +13 -30
  142. package/lib/services/search.js.map +1 -1
  143. package/lib/services/stars.d.ts +1 -1
  144. package/lib/services/stars.d.ts.map +1 -1
  145. package/lib/services/stars.js +10 -20
  146. package/lib/services/stars.js.map +1 -1
  147. package/lib/services/team.d.ts +1 -1
  148. package/lib/services/team.d.ts.map +1 -1
  149. package/lib/services/team.js +25 -62
  150. package/lib/services/team.js.map +1 -1
  151. package/lib/services/tooling.d.ts +1 -1
  152. package/lib/services/tooling.d.ts.map +1 -1
  153. package/lib/services/tooling.js +5 -9
  154. package/lib/services/tooling.js.map +1 -1
  155. package/lib/services/usergroups.d.ts +8 -3
  156. package/lib/services/usergroups.d.ts.map +1 -1
  157. package/lib/services/usergroups.js +23 -51
  158. package/lib/services/usergroups.js.map +1 -1
  159. package/lib/services/users.d.ts +2 -2
  160. package/lib/services/users.d.ts.map +1 -1
  161. package/lib/services/users.js +28 -81
  162. package/lib/services/users.js.map +1 -1
  163. package/lib/services/views.d.ts +1 -1
  164. package/lib/services/views.d.ts.map +1 -1
  165. package/lib/services/views.js +11 -27
  166. package/lib/services/views.js.map +1 -1
  167. package/lib/services/workflows.d.ts +1 -1
  168. package/lib/services/workflows.d.ts.map +1 -1
  169. package/lib/services/workflows.js +27 -71
  170. package/lib/services/workflows.js.map +1 -1
  171. package/package.json +16 -12
  172. package/src/credentials.ts +8 -10
  173. package/src/errors.ts +17 -31
  174. package/src/index.ts +4 -8
  175. package/src/pagination.ts +2 -5
  176. package/src/protocol.test.ts +372 -0
  177. package/src/protocol.ts +56 -72
  178. package/src/retry.ts +4 -9
  179. package/src/services/admin.ts +1241 -1557
  180. package/src/services/agents.ts +853 -0
  181. package/src/services/api.ts +4 -10
  182. package/src/services/apps.ts +146 -243
  183. package/src/services/assistant.ts +93 -144
  184. package/src/services/auth.ts +12 -33
  185. package/src/services/blocks.ts +9 -24
  186. package/src/services/bookmarks.ts +14 -34
  187. package/src/services/bots.ts +7 -19
  188. package/src/services/calls.ts +15 -43
  189. package/src/services/canvases.ts +82 -85
  190. package/src/services/chat.ts +134 -254
  191. package/src/services/conversations.ts +101 -217
  192. package/src/services/dialog.ts +5 -13
  193. package/src/services/dnd.ts +11 -31
  194. package/src/services/emoji.ts +9 -19
  195. package/src/services/entity.ts +17 -45
  196. package/src/services/files.ts +72 -165
  197. package/src/services/functions.ts +95 -168
  198. package/src/services/index.ts +1 -0
  199. package/src/services/lists.ts +65 -208
  200. package/src/services/migration.ts +8 -17
  201. package/src/services/oauth.ts +127 -60
  202. package/src/services/openid.ts +12 -34
  203. package/src/services/pins.ts +7 -19
  204. package/src/services/reactions.ts +19 -43
  205. package/src/services/reminders.ts +13 -37
  206. package/src/services/rtm.ts +9 -25
  207. package/src/services/search.ts +51 -92
  208. package/src/services/stars.ts +20 -31
  209. package/src/services/team.ts +81 -155
  210. package/src/services/tooling.ts +5 -13
  211. package/src/services/usergroups.ts +37 -68
  212. package/src/services/users.ts +35 -102
  213. package/src/services/views.ts +11 -31
  214. package/src/services/workflows.ts +65 -129
@@ -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
 
@@ -27,18 +23,16 @@ export interface AppendStreamRequest {
27
23
  /** The timestamp of the streaming message. */
28
24
  ts: string;
29
25
  /** Accepts message text formatted in markdown. Limit this field to 12,000 characters. This text is what will be appended to the message received so far. */
30
- markdown_text: string;
26
+ markdown_text?: string;
31
27
  }
32
28
  export const AppendStreamRequest = /*@__PURE__*/ S.suspend(() =>
33
29
  S.Struct({
34
30
  channel: S.String,
35
31
  chunks: S.optional(AppendStreamRequestChunksList),
36
32
  ts: S.String,
37
- markdown_text: S.String,
33
+ markdown_text: S.optional(S.String),
38
34
  }).pipe(T.Http({ method: "POST", uri: "/chat.appendStream", code: 200 })),
39
- ).annotate({
40
- identifier: "AppendStreamRequest",
41
- }) as any as S.Schema<AppendStreamRequest>;
35
+ ).annotate({ identifier: "AppendStreamRequest" }) as any as S.Schema<AppendStreamRequest>;
42
36
 
43
37
  export interface AppendStreamResponse {
44
38
  /** Always `true` (a failed call raises a typed error instead). */
@@ -52,9 +46,7 @@ export const AppendStreamResponse = /*@__PURE__*/ S.suspend(() =>
52
46
  channel: S.String,
53
47
  ts: S.String,
54
48
  }),
55
- ).annotate({
56
- identifier: "AppendStreamResponse",
57
- }) as any as S.Schema<AppendStreamResponse>;
49
+ ).annotate({ identifier: "AppendStreamResponse" }) as any as S.Schema<AppendStreamResponse>;
58
50
 
59
51
  /** The source of the link to unfurl. The source may either be `composer`, when the link is inside the message composer, or `conversations_history`, when the link has been posted to a conversation. */
60
52
  export type ChatUnfurlRequestSource = "composer" | "conversations_history";
@@ -65,7 +57,7 @@ export interface ChatUnfurlRequest {
65
57
  channel?: string;
66
58
  /** Timestamp of the message to add unfurl behavior to. Required for public channels. */
67
59
  ts?: string;
68
- /** URL-encoded JSON map with keys set to URLs featured in the the message, pointing to their unfurl blocks or message attachments. Required for public channels. */
60
+ /** URL-encoded JSON map with keys set to URLs featured in the message, pointing to their unfurl blocks or message attachments. Required for public channels. */
69
61
  unfurls?: string;
70
62
  /** Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior. Provides two buttons, `Not now` or `Never ask me again`. */
71
63
  user_auth_message?: string | null;
@@ -92,9 +84,7 @@ export const ChatUnfurlRequest = /*@__PURE__*/ S.suspend(() =>
92
84
  unfurl_id: S.optional(S.String),
93
85
  source: S.optional(ChatUnfurlRequestSource),
94
86
  }).pipe(T.Http({ method: "POST", uri: "/chat.unfurl", code: 200 })),
95
- ).annotate({
96
- identifier: "ChatUnfurlRequest",
97
- }) as any as S.Schema<ChatUnfurlRequest>;
87
+ ).annotate({ identifier: "ChatUnfurlRequest" }) as any as S.Schema<ChatUnfurlRequest>;
98
88
 
99
89
  export interface ChatUnfurlResponse {
100
90
  /** Always `true` (a failed call raises a typed error instead). */
@@ -104,9 +94,7 @@ export const ChatUnfurlResponse = /*@__PURE__*/ S.suspend(() =>
104
94
  S.Struct({
105
95
  ok: S.Boolean,
106
96
  }),
107
- ).annotate({
108
- identifier: "ChatUnfurlResponse",
109
- }) as any as S.Schema<ChatUnfurlResponse>;
97
+ ).annotate({ identifier: "ChatUnfurlResponse" }) as any as S.Schema<ChatUnfurlResponse>;
110
98
 
111
99
  export interface DeleteChatRequest {
112
100
  /** (Legacy) Pass true to delete the message as the authed user with `chat:write:user` scope. Bot users in this context are considered authed users. See [legacy `as_user` parameter](#legacy_as_user) below. */
@@ -122,9 +110,7 @@ export const DeleteChatRequest = /*@__PURE__*/ S.suspend(() =>
122
110
  channel: S.String,
123
111
  ts: S.String,
124
112
  }).pipe(T.Http({ method: "POST", uri: "/chat.delete", code: 200 })),
125
- ).annotate({
126
- identifier: "DeleteChatRequest",
127
- }) as any as S.Schema<DeleteChatRequest>;
113
+ ).annotate({ identifier: "DeleteChatRequest" }) as any as S.Schema<DeleteChatRequest>;
128
114
 
129
115
  export interface DeleteChatResponse {
130
116
  /** Always `true` (a failed call raises a typed error instead). */
@@ -138,9 +124,7 @@ export const DeleteChatResponse = /*@__PURE__*/ S.suspend(() =>
138
124
  channel: S.String,
139
125
  ts: S.String,
140
126
  }),
141
- ).annotate({
142
- identifier: "DeleteChatResponse",
143
- }) as any as S.Schema<DeleteChatResponse>;
127
+ ).annotate({ identifier: "DeleteChatResponse" }) as any as S.Schema<DeleteChatResponse>;
144
128
 
145
129
  export interface DeleteScheduledMessageRequest {
146
130
  /** Pass true to delete the message as the authed user with `chat:write:user` scope. Bot users in this context are considered authed users. If unused or false, the message will be deleted with `chat:write:bot` scope. */
@@ -155,9 +139,7 @@ export const DeleteScheduledMessageRequest = /*@__PURE__*/ S.suspend(() =>
155
139
  as_user: S.optional(S.Boolean),
156
140
  channel: S.String,
157
141
  scheduled_message_id: S.String,
158
- }).pipe(
159
- T.Http({ method: "POST", uri: "/chat.deleteScheduledMessage", code: 200 }),
160
- ),
142
+ }).pipe(T.Http({ method: "POST", uri: "/chat.deleteScheduledMessage", code: 200 })),
161
143
  ).annotate({
162
144
  identifier: "DeleteScheduledMessageRequest",
163
145
  }) as any as S.Schema<DeleteScheduledMessageRequest>;
@@ -185,9 +167,7 @@ export const GetPermalinkRequest = /*@__PURE__*/ S.suspend(() =>
185
167
  channel: S.String.pipe(T.Query()),
186
168
  message_ts: S.String.pipe(T.Query()),
187
169
  }).pipe(T.Http({ method: "GET", uri: "/chat.getPermalink", code: 200 })),
188
- ).annotate({
189
- identifier: "GetPermalinkRequest",
190
- }) as any as S.Schema<GetPermalinkRequest>;
170
+ ).annotate({ identifier: "GetPermalinkRequest" }) as any as S.Schema<GetPermalinkRequest>;
191
171
 
192
172
  export interface GetPermalinkResponse {
193
173
  /** Always `true` (a failed call raises a typed error instead). */
@@ -201,9 +181,7 @@ export const GetPermalinkResponse = /*@__PURE__*/ S.suspend(() =>
201
181
  permalink: S.String,
202
182
  channel: S.String,
203
183
  }),
204
- ).annotate({
205
- identifier: "GetPermalinkResponse",
206
- }) as any as S.Schema<GetPermalinkResponse>;
184
+ ).annotate({ identifier: "GetPermalinkResponse" }) as any as S.Schema<GetPermalinkResponse>;
207
185
 
208
186
  export interface ListScheduledMessagesRequest {
209
187
  /** The channel of the scheduled messages */
@@ -227,9 +205,7 @@ export const ListScheduledMessagesRequest = /*@__PURE__*/ S.suspend(() =>
227
205
  limit: S.optional(S.Number),
228
206
  oldest: S.optional(S.String),
229
207
  team_id: S.optional(S.String),
230
- }).pipe(
231
- T.Http({ method: "POST", uri: "/chat.scheduledMessages.list", code: 200 }),
232
- ),
208
+ }).pipe(T.Http({ method: "POST", uri: "/chat.scheduledMessages.list", code: 200 })),
233
209
  ).annotate({
234
210
  identifier: "ListScheduledMessagesRequest",
235
211
  }) as any as S.Schema<ListScheduledMessagesRequest>;
@@ -241,39 +217,36 @@ export interface ListScheduledMessagesResponseScheduledMessagesItem {
241
217
  date_created: number;
242
218
  text?: string;
243
219
  }
244
- export const ListScheduledMessagesResponseScheduledMessagesItem =
245
- /*@__PURE__*/ S.suspend(() =>
246
- S.Struct({
247
- id: S.String,
248
- channel_id: S.String,
249
- post_at: S.Number,
250
- date_created: S.Number,
251
- text: S.optional(S.String),
252
- }),
253
- ).annotate({
254
- identifier: "ListScheduledMessagesResponseScheduledMessagesItem",
255
- }) as any as S.Schema<ListScheduledMessagesResponseScheduledMessagesItem>;
220
+ export const ListScheduledMessagesResponseScheduledMessagesItem = /*@__PURE__*/ S.suspend(() =>
221
+ S.Struct({
222
+ id: S.String,
223
+ channel_id: S.String,
224
+ post_at: S.Number,
225
+ date_created: S.Number,
226
+ text: S.optional(S.String),
227
+ }),
228
+ ).annotate({
229
+ identifier: "ListScheduledMessagesResponseScheduledMessagesItem",
230
+ }) as any as S.Schema<ListScheduledMessagesResponseScheduledMessagesItem>;
256
231
 
257
232
  export type ListScheduledMessagesResponseScheduledMessagesList =
258
233
  Array<ListScheduledMessagesResponseScheduledMessagesItem>;
259
- export const ListScheduledMessagesResponseScheduledMessagesList =
260
- /*@__PURE__*/ S.Array(
261
- ListScheduledMessagesResponseScheduledMessagesItem,
262
- ) as any as S.Schema<ListScheduledMessagesResponseScheduledMessagesList>;
234
+ export const ListScheduledMessagesResponseScheduledMessagesList = /*@__PURE__*/ S.Array(
235
+ ListScheduledMessagesResponseScheduledMessagesItem,
236
+ ) as any as S.Schema<ListScheduledMessagesResponseScheduledMessagesList>;
263
237
 
264
238
  /** Pagination metadata. An empty `next_cursor` means the last page. */
265
239
  export interface ListScheduledMessagesResponseResponseMetadata {
266
240
  /** Cursor for the next page — pass as `cursor` on the next call. */
267
241
  next_cursor?: string;
268
242
  }
269
- export const ListScheduledMessagesResponseResponseMetadata =
270
- /*@__PURE__*/ S.suspend(() =>
271
- S.Struct({
272
- next_cursor: S.optional(S.String),
273
- }),
274
- ).annotate({
275
- identifier: "ListScheduledMessagesResponseResponseMetadata",
276
- }) as any as S.Schema<ListScheduledMessagesResponseResponseMetadata>;
243
+ export const ListScheduledMessagesResponseResponseMetadata = /*@__PURE__*/ S.suspend(() =>
244
+ S.Struct({
245
+ next_cursor: S.optional(S.String),
246
+ }),
247
+ ).annotate({
248
+ identifier: "ListScheduledMessagesResponseResponseMetadata",
249
+ }) as any as S.Schema<ListScheduledMessagesResponseResponseMetadata>;
277
250
 
278
251
  export interface ListScheduledMessagesResponse {
279
252
  /** Always `true` (a failed call raises a typed error instead). */
@@ -286,9 +259,7 @@ export const ListScheduledMessagesResponse = /*@__PURE__*/ S.suspend(() =>
286
259
  S.Struct({
287
260
  ok: S.Boolean,
288
261
  scheduled_messages: ListScheduledMessagesResponseScheduledMessagesList,
289
- response_metadata: S.optional(
290
- ListScheduledMessagesResponseResponseMetadata,
291
- ),
262
+ response_metadata: S.optional(ListScheduledMessagesResponseResponseMetadata),
292
263
  }),
293
264
  ).annotate({
294
265
  identifier: "ListScheduledMessagesResponse",
@@ -305,9 +276,7 @@ export const MeMessageRequest = /*@__PURE__*/ S.suspend(() =>
305
276
  channel: S.String,
306
277
  text: S.String,
307
278
  }).pipe(T.Http({ method: "POST", uri: "/chat.meMessage", code: 200 })),
308
- ).annotate({
309
- identifier: "MeMessageRequest",
310
- }) as any as S.Schema<MeMessageRequest>;
279
+ ).annotate({ identifier: "MeMessageRequest" }) as any as S.Schema<MeMessageRequest>;
311
280
 
312
281
  export interface MeMessageResponse {
313
282
  /** Always `true` (a failed call raises a typed error instead). */
@@ -321,18 +290,13 @@ export const MeMessageResponse = /*@__PURE__*/ S.suspend(() =>
321
290
  ts: S.optional(S.String),
322
291
  channel: S.optional(S.String),
323
292
  }),
324
- ).annotate({
325
- identifier: "MeMessageResponse",
326
- }) as any as S.Schema<MeMessageResponse>;
327
-
328
- export type PostEphemeralRequestAttachmentsCase1ItemMap = {
329
- [key: string]: unknown | undefined;
330
- };
331
- export const PostEphemeralRequestAttachmentsCase1ItemMap =
332
- /*@__PURE__*/ S.Record(
333
- S.String,
334
- S.Unknown,
335
- ) as any as S.Schema<PostEphemeralRequestAttachmentsCase1ItemMap>;
293
+ ).annotate({ identifier: "MeMessageResponse" }) as any as S.Schema<MeMessageResponse>;
294
+
295
+ export type PostEphemeralRequestAttachmentsCase1ItemMap = { [key: string]: unknown | undefined };
296
+ export const PostEphemeralRequestAttachmentsCase1ItemMap = /*@__PURE__*/ S.Record(
297
+ S.String,
298
+ S.Unknown,
299
+ ) as any as S.Schema<PostEphemeralRequestAttachmentsCase1ItemMap>;
336
300
 
337
301
  export type PostEphemeralRequestAttachmentsCase1List =
338
302
  Array<PostEphemeralRequestAttachmentsCase1ItemMap>;
@@ -341,41 +305,25 @@ export const PostEphemeralRequestAttachmentsCase1List = /*@__PURE__*/ S.Array(
341
305
  ) as any as S.Schema<PostEphemeralRequestAttachmentsCase1List>;
342
306
 
343
307
  /** A JSON-based array of structured attachments, presented as a URL-encoded string. */
344
- export type PostEphemeralRequestAttachments =
345
- | string
346
- | PostEphemeralRequestAttachmentsCase1List;
347
- export const PostEphemeralRequestAttachments = /*@__PURE__*/ S.Unknown.pipe(
348
- T.UnionCases([[], []]),
349
- );
308
+ export type PostEphemeralRequestAttachments = string | PostEphemeralRequestAttachmentsCase1List;
309
+ export const PostEphemeralRequestAttachments = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
350
310
 
351
- export type PostEphemeralRequestBlocksCase1ItemMap = {
352
- [key: string]: unknown | undefined;
353
- };
311
+ export type PostEphemeralRequestBlocksCase1ItemMap = { [key: string]: unknown | undefined };
354
312
  export const PostEphemeralRequestBlocksCase1ItemMap = /*@__PURE__*/ S.Record(
355
313
  S.String,
356
314
  S.Unknown,
357
315
  ) as any as S.Schema<PostEphemeralRequestBlocksCase1ItemMap>;
358
316
 
359
- export type PostEphemeralRequestBlocksCase1List =
360
- Array<PostEphemeralRequestBlocksCase1ItemMap>;
317
+ export type PostEphemeralRequestBlocksCase1List = Array<PostEphemeralRequestBlocksCase1ItemMap>;
361
318
  export const PostEphemeralRequestBlocksCase1List = /*@__PURE__*/ S.Array(
362
319
  PostEphemeralRequestBlocksCase1ItemMap,
363
320
  ) as any as S.Schema<PostEphemeralRequestBlocksCase1List>;
364
321
 
365
322
  /** A JSON-based array of structured blocks, presented as a URL-encoded string. */
366
- export type PostEphemeralRequestBlocks =
367
- | string
368
- | PostEphemeralRequestBlocksCase1List;
369
- export const PostEphemeralRequestBlocks = /*@__PURE__*/ S.Unknown.pipe(
370
- T.UnionCases([[], []]),
371
- );
323
+ export type PostEphemeralRequestBlocks = string | PostEphemeralRequestBlocksCase1List;
324
+ export const PostEphemeralRequestBlocks = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
372
325
 
373
- export type PostEphemeralRequestParse =
374
- | ""
375
- | "none"
376
- | "full"
377
- | "mrkdwn"
378
- | "false";
326
+ export type PostEphemeralRequestParse = "" | "none" | "full" | "mrkdwn" | "false";
379
327
  export const PostEphemeralRequestParse = S.String;
380
328
 
381
329
  export interface PostEphemeralRequest {
@@ -425,9 +373,7 @@ export const PostEphemeralRequest = /*@__PURE__*/ S.suspend(() =>
425
373
  user: S.String,
426
374
  username: S.optional(S.String),
427
375
  }).pipe(T.Http({ method: "POST", uri: "/chat.postEphemeral", code: 200 })),
428
- ).annotate({
429
- identifier: "PostEphemeralRequest",
430
- }) as any as S.Schema<PostEphemeralRequest>;
376
+ ).annotate({ identifier: "PostEphemeralRequest" }) as any as S.Schema<PostEphemeralRequest>;
431
377
 
432
378
  export interface PostEphemeralResponse {
433
379
  /** Always `true` (a failed call raises a typed error instead). */
@@ -439,13 +385,9 @@ export const PostEphemeralResponse = /*@__PURE__*/ S.suspend(() =>
439
385
  ok: S.Boolean,
440
386
  message_ts: S.String,
441
387
  }),
442
- ).annotate({
443
- identifier: "PostEphemeralResponse",
444
- }) as any as S.Schema<PostEphemeralResponse>;
388
+ ).annotate({ identifier: "PostEphemeralResponse" }) as any as S.Schema<PostEphemeralResponse>;
445
389
 
446
- export type PostMessageRequestAttachmentsCase1ItemMap = {
447
- [key: string]: unknown | undefined;
448
- };
390
+ export type PostMessageRequestAttachmentsCase1ItemMap = { [key: string]: unknown | undefined };
449
391
  export const PostMessageRequestAttachmentsCase1ItemMap = /*@__PURE__*/ S.Record(
450
392
  S.String,
451
393
  S.Unknown,
@@ -458,34 +400,23 @@ export const PostMessageRequestAttachmentsCase1List = /*@__PURE__*/ S.Array(
458
400
  ) as any as S.Schema<PostMessageRequestAttachmentsCase1List>;
459
401
 
460
402
  /** A JSON-based array of structured attachments, presented as a URL-encoded string. */
461
- export type PostMessageRequestAttachments =
462
- | string
463
- | PostMessageRequestAttachmentsCase1List;
464
- export const PostMessageRequestAttachments = /*@__PURE__*/ S.Unknown.pipe(
465
- T.UnionCases([[], []]),
466
- );
403
+ export type PostMessageRequestAttachments = string | PostMessageRequestAttachmentsCase1List;
404
+ export const PostMessageRequestAttachments = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
467
405
 
468
- export type PostMessageRequestBlocksCase1ItemMap = {
469
- [key: string]: unknown | undefined;
470
- };
406
+ export type PostMessageRequestBlocksCase1ItemMap = { [key: string]: unknown | undefined };
471
407
  export const PostMessageRequestBlocksCase1ItemMap = /*@__PURE__*/ S.Record(
472
408
  S.String,
473
409
  S.Unknown,
474
410
  ) as any as S.Schema<PostMessageRequestBlocksCase1ItemMap>;
475
411
 
476
- export type PostMessageRequestBlocksCase1List =
477
- Array<PostMessageRequestBlocksCase1ItemMap>;
412
+ export type PostMessageRequestBlocksCase1List = Array<PostMessageRequestBlocksCase1ItemMap>;
478
413
  export const PostMessageRequestBlocksCase1List = /*@__PURE__*/ S.Array(
479
414
  PostMessageRequestBlocksCase1ItemMap,
480
415
  ) as any as S.Schema<PostMessageRequestBlocksCase1List>;
481
416
 
482
417
  /** A JSON-based array of structured blocks, presented as a URL-encoded string. */
483
- export type PostMessageRequestBlocks =
484
- | string
485
- | PostMessageRequestBlocksCase1List;
486
- export const PostMessageRequestBlocks = /*@__PURE__*/ S.Unknown.pipe(
487
- T.UnionCases([[], []]),
488
- );
418
+ export type PostMessageRequestBlocks = string | PostMessageRequestBlocksCase1List;
419
+ export const PostMessageRequestBlocks = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
489
420
 
490
421
  export interface PostMessageRequest {
491
422
  /** (Legacy) Pass true to post the message as the authed user instead of as a bot. Defaults to false. Can only be used by classic apps. See [legacy `as_user` parameter](#legacy_as_user) below. */
@@ -524,6 +455,8 @@ export interface PostMessageRequest {
524
455
  unfurl_media?: boolean;
525
456
  /** Set your bot's user name. */
526
457
  username?: string | null;
458
+ /** Pass true to unfurl links from installed apps, or false to prevent app links from unfurling. When omitted, app links follow the `unfurl_links` setting. */
459
+ unfurl_app_links?: boolean;
527
460
  }
528
461
  export const PostMessageRequest = /*@__PURE__*/ S.suspend(() =>
529
462
  S.Struct({
@@ -545,10 +478,9 @@ export const PostMessageRequest = /*@__PURE__*/ S.suspend(() =>
545
478
  unfurl_links: S.optional(S.Boolean),
546
479
  unfurl_media: S.optional(S.Boolean),
547
480
  username: S.optional(S.NullOr(S.String)),
481
+ unfurl_app_links: S.optional(S.Boolean),
548
482
  }).pipe(T.Http({ method: "POST", uri: "/chat.postMessage", code: 200 })),
549
- ).annotate({
550
- identifier: "PostMessageRequest",
551
- }) as any as S.Schema<PostMessageRequest>;
483
+ ).annotate({ identifier: "PostMessageRequest" }) as any as S.Schema<PostMessageRequest>;
552
484
 
553
485
  export interface PostMessageResponse {
554
486
  /** Always `true` (a failed call raises a typed error instead). */
@@ -567,18 +499,13 @@ export const PostMessageResponse = /*@__PURE__*/ S.suspend(() =>
567
499
  message: S.optional(S.Unknown),
568
500
  is_duplicate: S.optional(S.Boolean),
569
501
  }),
570
- ).annotate({
571
- identifier: "PostMessageResponse",
572
- }) as any as S.Schema<PostMessageResponse>;
573
-
574
- export type ScheduleMessageRequestAttachmentsCase1ItemMap = {
575
- [key: string]: unknown | undefined;
576
- };
577
- export const ScheduleMessageRequestAttachmentsCase1ItemMap =
578
- /*@__PURE__*/ S.Record(
579
- S.String,
580
- S.Unknown,
581
- ) as any as S.Schema<ScheduleMessageRequestAttachmentsCase1ItemMap>;
502
+ ).annotate({ identifier: "PostMessageResponse" }) as any as S.Schema<PostMessageResponse>;
503
+
504
+ export type ScheduleMessageRequestAttachmentsCase1ItemMap = { [key: string]: unknown | undefined };
505
+ export const ScheduleMessageRequestAttachmentsCase1ItemMap = /*@__PURE__*/ S.Record(
506
+ S.String,
507
+ S.Unknown,
508
+ ) as any as S.Schema<ScheduleMessageRequestAttachmentsCase1ItemMap>;
582
509
 
583
510
  export type ScheduleMessageRequestAttachmentsCase1List =
584
511
  Array<ScheduleMessageRequestAttachmentsCase1ItemMap>;
@@ -587,34 +514,25 @@ export const ScheduleMessageRequestAttachmentsCase1List = /*@__PURE__*/ S.Array(
587
514
  ) as any as S.Schema<ScheduleMessageRequestAttachmentsCase1List>;
588
515
 
589
516
  /** A JSON-based array of structured attachments, presented as a URL-encoded string. */
590
- export type ScheduleMessageRequestAttachments =
591
- | string
592
- | ScheduleMessageRequestAttachmentsCase1List;
517
+ export type ScheduleMessageRequestAttachments = string | ScheduleMessageRequestAttachmentsCase1List;
593
518
  export const ScheduleMessageRequestAttachments = /*@__PURE__*/ S.Unknown.pipe(
594
519
  T.UnionCases([[], []]),
595
520
  );
596
521
 
597
- export type ScheduleMessageRequestBlocksCase1ItemMap = {
598
- [key: string]: unknown | undefined;
599
- };
522
+ export type ScheduleMessageRequestBlocksCase1ItemMap = { [key: string]: unknown | undefined };
600
523
  export const ScheduleMessageRequestBlocksCase1ItemMap = /*@__PURE__*/ S.Record(
601
524
  S.String,
602
525
  S.Unknown,
603
526
  ) as any as S.Schema<ScheduleMessageRequestBlocksCase1ItemMap>;
604
527
 
605
- export type ScheduleMessageRequestBlocksCase1List =
606
- Array<ScheduleMessageRequestBlocksCase1ItemMap>;
528
+ export type ScheduleMessageRequestBlocksCase1List = Array<ScheduleMessageRequestBlocksCase1ItemMap>;
607
529
  export const ScheduleMessageRequestBlocksCase1List = /*@__PURE__*/ S.Array(
608
530
  ScheduleMessageRequestBlocksCase1ItemMap,
609
531
  ) as any as S.Schema<ScheduleMessageRequestBlocksCase1List>;
610
532
 
611
533
  /** A JSON-based array of structured blocks, presented as a URL-encoded string. */
612
- export type ScheduleMessageRequestBlocks =
613
- | string
614
- | ScheduleMessageRequestBlocksCase1List;
615
- export const ScheduleMessageRequestBlocks = /*@__PURE__*/ S.Unknown.pipe(
616
- T.UnionCases([[], []]),
617
- );
534
+ export type ScheduleMessageRequestBlocks = string | ScheduleMessageRequestBlocksCase1List;
535
+ export const ScheduleMessageRequestBlocks = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
618
536
 
619
537
  /** Change how messages are treated. See [chat.postMessage](chat.postMessage#formatting). */
620
538
  export type ScheduleMessageRequestParse = "none" | "full";
@@ -667,13 +585,9 @@ export const ScheduleMessageRequest = /*@__PURE__*/ S.suspend(() =>
667
585
  unfurl_media: S.optional(S.Boolean),
668
586
  metadata: S.optional(S.NullOr(S.String)),
669
587
  }).pipe(T.Http({ method: "POST", uri: "/chat.scheduleMessage", code: 200 })),
670
- ).annotate({
671
- identifier: "ScheduleMessageRequest",
672
- }) as any as S.Schema<ScheduleMessageRequest>;
588
+ ).annotate({ identifier: "ScheduleMessageRequest" }) as any as S.Schema<ScheduleMessageRequest>;
673
589
 
674
- export type ScheduleMessageResponseMessageMap = {
675
- [key: string]: unknown | undefined;
676
- };
590
+ export type ScheduleMessageResponseMessageMap = { [key: string]: unknown | undefined };
677
591
  export const ScheduleMessageResponseMessageMap = /*@__PURE__*/ S.Record(
678
592
  S.String,
679
593
  S.Unknown,
@@ -695,58 +609,54 @@ export const ScheduleMessageResponse = /*@__PURE__*/ S.suspend(() =>
695
609
  scheduled_message_id: S.String,
696
610
  message: ScheduleMessageResponseMessageMap,
697
611
  }),
698
- ).annotate({
699
- identifier: "ScheduleMessageResponse",
700
- }) as any as S.Schema<ScheduleMessageResponse>;
612
+ ).annotate({ identifier: "ScheduleMessageResponse" }) as any as S.Schema<ScheduleMessageResponse>;
701
613
 
702
- /** Array of streaming chunks. */
614
+ /** Array of streaming chunks. Can include [markdown text chunk](#markdown_text-chunks) objects, [task update chunk](#task_update-chunks) objects, [plan update chunks](#plan_update-chunks), or [blocks chunks](#blocks-chunks). */
703
615
  export type StartStreamRequestChunksList = Array<unknown>;
704
616
  export const StartStreamRequestChunksList = /*@__PURE__*/ S.Array(
705
617
  S.Unknown,
706
618
  ) as any as S.Schema<StartStreamRequestChunksList>;
707
619
 
708
- /** Specifies how tasks are displayed in the message. A `timeline` displays individual tasks with text in sequential order, `plan` displays all tasks together, with the first tasks's placement determining the placement of the rest of the tasks, and `dense` collapses consecutive tool calls into a single summarized task card. */
709
- export type StartStreamRequestTaskDisplayMode = "timeline" | "plan" | "dense";
620
+ /** Specifies how tasks are displayed in the message. `timeline` task updates render as individual task cards interleaved with streamed text. `plan` task updates render together in a plan block. */
621
+ export type StartStreamRequestTaskDisplayMode = "timeline" | "plan";
710
622
  export const StartStreamRequestTaskDisplayMode = S.String;
711
623
 
712
624
  export interface StartStreamRequest {
713
- /** An encoded ID that represents a channel thread or DM. */
625
+ /** An encoded ID that represents a channel, thread, or DM. */
714
626
  channel: string;
715
- /** Array of streaming chunks. */
627
+ /** Array of streaming chunks. Can include [markdown text chunk](#markdown_text-chunks) objects, [task update chunk](#task_update-chunks) objects, [plan update chunks](#plan_update-chunks), or [blocks chunks](#blocks-chunks). */
716
628
  chunks?: StartStreamRequestChunksList;
717
629
  /** Accepts message text formatted in markdown. Limit this field to 12,000 characters. */
718
630
  markdown_text?: string;
719
- /** Provide another message's `ts` value to reply to. Streamed messages should always be replies to a user request. */
720
- thread_ts: string;
631
+ /** Provide another message's `ts` value to reply to. Omit it to stream a top-level message instead of a thread reply; this is only supported in channels where the whole channel is one session, such as Slack Code, and returns `invalid_thread_ts` elsewhere. Passing `"0"` is equivalent to omitting it. */
632
+ thread_ts?: string;
721
633
  /** The encoded ID of the user to receive the streaming text. Required when streaming to channels. */
722
634
  recipient_user_id?: string;
723
635
  /** The encoded ID of the team the user receiving the streaming text belongs to. Required when streaming to channels. */
724
636
  recipient_team_id?: string;
725
- /** Specifies how tasks are displayed in the message. A `timeline` displays individual tasks with text in sequential order, `plan` displays all tasks together, with the first tasks's placement determining the placement of the rest of the tasks, and `dense` collapses consecutive tool calls into a single summarized task card. */
637
+ /** Specifies how tasks are displayed in the message. `timeline` task updates render as individual task cards interleaved with streamed text. `plan` task updates render together in a plan block. */
726
638
  task_display_mode?: StartStreamRequestTaskDisplayMode | (string & {});
727
639
  /** Emoji to use as the icon for this message. Overrides `icon_url`. */
728
- icon_emoji?: string;
640
+ icon_emoji?: string | null;
729
641
  /** Image URL to use as the icon for this message. */
730
- icon_url?: string;
642
+ icon_url?: string | null;
731
643
  /** The bot's username to display. */
732
- username?: string;
644
+ username?: string | null;
733
645
  }
734
646
  export const StartStreamRequest = /*@__PURE__*/ S.suspend(() =>
735
647
  S.Struct({
736
648
  channel: S.String,
737
649
  chunks: S.optional(StartStreamRequestChunksList),
738
650
  markdown_text: S.optional(S.String),
739
- thread_ts: S.String,
651
+ thread_ts: S.optional(S.String),
740
652
  recipient_user_id: S.optional(S.String),
741
653
  recipient_team_id: S.optional(S.String),
742
654
  task_display_mode: S.optional(StartStreamRequestTaskDisplayMode),
743
- icon_emoji: S.optional(S.String),
744
- icon_url: S.optional(S.String),
745
- username: S.optional(S.String),
655
+ icon_emoji: S.optional(S.NullOr(S.String)),
656
+ icon_url: S.optional(S.NullOr(S.String)),
657
+ username: S.optional(S.NullOr(S.String)),
746
658
  }).pipe(T.Http({ method: "POST", uri: "/chat.startStream", code: 200 })),
747
- ).annotate({
748
- identifier: "StartStreamRequest",
749
- }) as any as S.Schema<StartStreamRequest>;
659
+ ).annotate({ identifier: "StartStreamRequest" }) as any as S.Schema<StartStreamRequest>;
750
660
 
751
661
  export interface StartStreamResponse {
752
662
  /** Always `true` (a failed call raises a typed error instead). */
@@ -761,21 +671,17 @@ export const StartStreamResponse = /*@__PURE__*/ S.suspend(() =>
761
671
  channel: S.String,
762
672
  ts: S.String,
763
673
  }),
764
- ).annotate({
765
- identifier: "StartStreamResponse",
766
- }) as any as S.Schema<StartStreamResponse>;
674
+ ).annotate({ identifier: "StartStreamResponse" }) as any as S.Schema<StartStreamResponse>;
767
675
 
768
- /** Array of streaming chunks. */
769
- export type StopStreamRequestChunksList = Array<unknown>;
770
- export const StopStreamRequestChunksList = /*@__PURE__*/ S.Array(
771
- S.Unknown,
772
- ) as any as S.Schema<StopStreamRequestChunksList>;
676
+ /** The session status to set after stopping the stream. */
677
+ export type StopStreamRequestSessionStatus = "active" | "processing" | "suspended" | "closed";
678
+ export const StopStreamRequestSessionStatus = S.String;
773
679
 
774
680
  export interface StopStreamRequest {
775
681
  /** An encoded ID that represents a channel, private group, or DM */
776
682
  channel: string;
777
- /** Array of streaming chunks. */
778
- chunks?: StopStreamRequestChunksList;
683
+ /** Array of streaming chunks. Can include [markdown text chunk](#markdown_text-chunks) objects, [task update chunk](#task_update-chunks) objects, [plan update chunks](#plan_update-chunks), or [blocks chunks](#blocks-chunks). */
684
+ chunks?: unknown;
779
685
  /** The timestamp of the streaming message. */
780
686
  ts: string;
781
687
  /** Accepts message text formatted in markdown. Limit this field to 12,000 characters. */
@@ -784,19 +690,20 @@ export interface StopStreamRequest {
784
690
  blocks?: unknown;
785
691
  /** JSON object with event_type and event_payload fields, presented as a URL-encoded string. Metadata you post to Slack is accessible to any app or user who is a member of that workspace. */
786
692
  metadata?: string | null;
693
+ /** The session status to set after stopping the stream. */
694
+ session_status?: StopStreamRequestSessionStatus | (string & {});
787
695
  }
788
696
  export const StopStreamRequest = /*@__PURE__*/ S.suspend(() =>
789
697
  S.Struct({
790
698
  channel: S.String,
791
- chunks: S.optional(StopStreamRequestChunksList),
699
+ chunks: S.optional(S.Unknown),
792
700
  ts: S.String,
793
701
  markdown_text: S.optional(S.String),
794
702
  blocks: S.optional(S.Unknown),
795
703
  metadata: S.optional(S.NullOr(S.String)),
704
+ session_status: S.optional(StopStreamRequestSessionStatus),
796
705
  }).pipe(T.Http({ method: "POST", uri: "/chat.stopStream", code: 200 })),
797
- ).annotate({
798
- identifier: "StopStreamRequest",
799
- }) as any as S.Schema<StopStreamRequest>;
706
+ ).annotate({ identifier: "StopStreamRequest" }) as any as S.Schema<StopStreamRequest>;
800
707
 
801
708
  export interface StopStreamResponse {
802
709
  /** Always `true` (a failed call raises a typed error instead). */
@@ -812,63 +719,45 @@ export const StopStreamResponse = /*@__PURE__*/ S.suspend(() =>
812
719
  ts: S.String,
813
720
  message: S.Unknown,
814
721
  }),
815
- ).annotate({
816
- identifier: "StopStreamResponse",
817
- }) as any as S.Schema<StopStreamResponse>;
722
+ ).annotate({ identifier: "StopStreamResponse" }) as any as S.Schema<StopStreamResponse>;
818
723
 
819
724
  /** Pass true to update the message as the authed user. Bot users in this context are considered authed users. */
820
725
  export type UpdateChatRequestAsUser = boolean | string;
821
- export const UpdateChatRequestAsUser = /*@__PURE__*/ S.Unknown.pipe(
822
- T.UnionCases([[], []]),
823
- );
726
+ export const UpdateChatRequestAsUser = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
824
727
 
825
- export type UpdateChatRequestAttachmentsCase1ItemMap = {
826
- [key: string]: unknown | undefined;
827
- };
728
+ export type UpdateChatRequestAttachmentsCase1ItemMap = { [key: string]: unknown | undefined };
828
729
  export const UpdateChatRequestAttachmentsCase1ItemMap = /*@__PURE__*/ S.Record(
829
730
  S.String,
830
731
  S.Unknown,
831
732
  ) as any as S.Schema<UpdateChatRequestAttachmentsCase1ItemMap>;
832
733
 
833
- export type UpdateChatRequestAttachmentsCase1List =
834
- Array<UpdateChatRequestAttachmentsCase1ItemMap>;
734
+ export type UpdateChatRequestAttachmentsCase1List = Array<UpdateChatRequestAttachmentsCase1ItemMap>;
835
735
  export const UpdateChatRequestAttachmentsCase1List = /*@__PURE__*/ S.Array(
836
736
  UpdateChatRequestAttachmentsCase1ItemMap,
837
737
  ) as any as S.Schema<UpdateChatRequestAttachmentsCase1List>;
838
738
 
839
739
  /** A JSON-based array of structured attachments, presented as a URL-encoded string. */
840
- export type UpdateChatRequestAttachments =
841
- | string
842
- | UpdateChatRequestAttachmentsCase1List;
843
- export const UpdateChatRequestAttachments = /*@__PURE__*/ S.Unknown.pipe(
844
- T.UnionCases([[], []]),
845
- );
740
+ export type UpdateChatRequestAttachments = string | UpdateChatRequestAttachmentsCase1List;
741
+ export const UpdateChatRequestAttachments = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
846
742
 
847
- export type UpdateChatRequestBlocksCase1ItemMap = {
848
- [key: string]: unknown | undefined;
849
- };
743
+ export type UpdateChatRequestBlocksCase1ItemMap = { [key: string]: unknown | undefined };
850
744
  export const UpdateChatRequestBlocksCase1ItemMap = /*@__PURE__*/ S.Record(
851
745
  S.String,
852
746
  S.Unknown,
853
747
  ) as any as S.Schema<UpdateChatRequestBlocksCase1ItemMap>;
854
748
 
855
- export type UpdateChatRequestBlocksCase1List =
856
- Array<UpdateChatRequestBlocksCase1ItemMap>;
749
+ export type UpdateChatRequestBlocksCase1List = Array<UpdateChatRequestBlocksCase1ItemMap>;
857
750
  export const UpdateChatRequestBlocksCase1List = /*@__PURE__*/ S.Array(
858
751
  UpdateChatRequestBlocksCase1ItemMap,
859
752
  ) as any as S.Schema<UpdateChatRequestBlocksCase1List>;
860
753
 
861
754
  /** A JSON-based array of structured blocks, presented as a URL-encoded string. */
862
755
  export type UpdateChatRequestBlocks = string | UpdateChatRequestBlocksCase1List;
863
- export const UpdateChatRequestBlocks = /*@__PURE__*/ S.Unknown.pipe(
864
- T.UnionCases([[], []]),
865
- );
756
+ export const UpdateChatRequestBlocks = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
866
757
 
867
758
  /** Find and link channel names and usernames. Defaults to `none`. If you do not specify a value for this field, the original value set for the message will be overwritten with the default, `none`. */
868
759
  export type UpdateChatRequestLinkNames = boolean | string;
869
- export const UpdateChatRequestLinkNames = /*@__PURE__*/ S.Unknown.pipe(
870
- T.UnionCases([[], []]),
871
- );
760
+ export const UpdateChatRequestLinkNames = /*@__PURE__*/ S.Unknown.pipe(T.UnionCases([[], []]));
872
761
 
873
762
  /** Array of new file ids that will be sent with this message. */
874
763
  export type UpdateChatRequestFileIdsList = Array<string>;
@@ -920,18 +809,13 @@ export const UpdateChatRequest = /*@__PURE__*/ S.suspend(() =>
920
809
  reply_broadcast: S.optional(S.Boolean),
921
810
  file_ids: S.optional(UpdateChatRequestFileIdsList),
922
811
  }).pipe(T.Http({ method: "POST", uri: "/chat.update", code: 200 })),
923
- ).annotate({
924
- identifier: "UpdateChatRequest",
925
- }) as any as S.Schema<UpdateChatRequest>;
926
-
927
- export type UpdateChatResponseMessageAttachmentsItemMap = {
928
- [key: string]: unknown | undefined;
929
- };
930
- export const UpdateChatResponseMessageAttachmentsItemMap =
931
- /*@__PURE__*/ S.Record(
932
- S.String,
933
- S.Unknown,
934
- ) as any as S.Schema<UpdateChatResponseMessageAttachmentsItemMap>;
812
+ ).annotate({ identifier: "UpdateChatRequest" }) as any as S.Schema<UpdateChatRequest>;
813
+
814
+ export type UpdateChatResponseMessageAttachmentsItemMap = { [key: string]: unknown | undefined };
815
+ export const UpdateChatResponseMessageAttachmentsItemMap = /*@__PURE__*/ S.Record(
816
+ S.String,
817
+ S.Unknown,
818
+ ) as any as S.Schema<UpdateChatResponseMessageAttachmentsItemMap>;
935
819
 
936
820
  export type UpdateChatResponseMessageAttachmentsList =
937
821
  Array<UpdateChatResponseMessageAttachmentsItemMap>;
@@ -939,9 +823,7 @@ export const UpdateChatResponseMessageAttachmentsList = /*@__PURE__*/ S.Array(
939
823
  UpdateChatResponseMessageAttachmentsItemMap,
940
824
  ) as any as S.Schema<UpdateChatResponseMessageAttachmentsList>;
941
825
 
942
- export type UpdateChatResponseMessageMetadataMap = {
943
- [key: string]: unknown | undefined;
944
- };
826
+ export type UpdateChatResponseMessageMetadataMap = { [key: string]: unknown | undefined };
945
827
  export const UpdateChatResponseMessageMetadataMap = /*@__PURE__*/ S.Record(
946
828
  S.String,
947
829
  S.Unknown,
@@ -980,12 +862,10 @@ export const UpdateChatResponse = /*@__PURE__*/ S.suspend(() =>
980
862
  text: S.String,
981
863
  message: UpdateChatResponseMessage,
982
864
  }),
983
- ).annotate({
984
- identifier: "UpdateChatResponse",
985
- }) as any as S.Schema<UpdateChatResponse>;
865
+ ).annotate({ identifier: "UpdateChatResponse" }) as any as S.Schema<UpdateChatResponse>;
986
866
 
987
867
  export type AppendStreamError = SlackOpError;
988
- /** Appends text to an existing streaming conversation. Required scopes — bot: `chat:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `message_not_in_streaming_state` — The message is not in the streaming state. - `messaging_processing_failed` — Failed to process the message. - `as_user_not_supported` — The `as_user` parameter does not function with workspace apps. - `channel_not_found` — Value passed for `channel` was invalid. - `duplicate_channel_not_found` — Channel associated with `client_msg_id` was invalid. - `duplicate_message_not_found` — No duplicate message exists associated with `client_msg_id`. - `ekm_access_denied` — Your message couldn’t be sent because your admins have disabled sending messages to this channel. - `invalid_blocks` — Blocks submitted with this message are not valid. - `invalid_chunks` — Chunks submitted with this message are not valid. - `invalid_metadata_format` — Invalid metadata format provided - `invalid_metadata_schema` — Invalid metadata schema provided - `is_archived` — Channel has been archived. - `message_limit_exceeded` — Members on this team are sending too many messages. For more details, see https://slack.com/help/articles/115002422943-Usage-limits-for-free-workspaces - `messages_tab_disabled` — Messages tab for the app is disabled. - `metadata_must_be_sent_from_app` — Message metadata can only be posted or updated using an app-level token - `msg_blocks_too_long` — Blocks submitted with this message are too long. - `msg_blocks_too_many` — Max blocks exceeded, blocks are limited to 50 per message. - `metadata_too_large` — Metadata exceeds size limit - `no_text` — No message text provided - `not_in_channel` — Cannot post user messages to a channel they are not in. - `rate_limited` — Application has posted too many messages, [read the Rate Limit documentation](/apis/web-api/rate-limits) for more information - `restricted_action` — A workspace preference prevents the authenticated user from posting. - `restricted_action_non_threadable_channel` — Cannot post thread replies into a non_threadable channel. - `restricted_action_read_only_channel` — Cannot post any message into a read-only channel. - `restricted_action_thread_locked` — Cannot post replies to a thread that has been locked by admins. - `restricted_action_thread_only_channel` — Cannot post top-level messages into a thread-only channel. - `slack_connect_canvas_sharing_blocked` — Admin has disabled Canvas File sharing in all Slack Connect communications - `slack_connect_file_link_sharing_blocked` — Admin has disabled Slack File sharing in all Slack Connect communications - `slack_connect_lists_sharing_blocked` — Admin has disabled Lists sharing in all Slack Connect communications - `team_not_found` — This error occurs if, when using an org-wide token, the `channel_name` is passed instead of the `channel_id`. - `too_many_attachments` — Too many attachments were provided with this message. A maximum of 100 attachments are allowed on a message. - `too_many_contact_cards` — Too many contact_cards were provided with this message. A maximum of 10 contact cards are allowed on a message. - `message_not_found` — Message not found - `channel_type_not_supported` — Channel type not supported - `stopped_by_user` — The streaming message was stopped by the user and no further appends are accepted. - `message_not_owned_by_app` — The message is not owned by the app. See https://docs.slack.dev/reference/methods/chat.appendStream */
868
+ /** Appends text to an existing streaming conversation. Required scopes — bot: `chat:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `message_not_in_streaming_state` — The message is not in the streaming state. - `messaging_processing_failed` — Failed to process the message. - `as_user_not_supported` — The `as_user` parameter does not function with workspace apps. - `channel_not_found` — Value passed for `channel` was invalid. - `duplicate_channel_not_found` — Channel associated with `client_msg_id` was invalid. - `duplicate_message_not_found` — No duplicate message exists associated with `client_msg_id`. - `ekm_access_denied` — Your message couldn’t be sent because your admins have disabled sending messages to this channel. - `invalid_blocks` — Blocks submitted with this message are not valid. - `invalid_chunks` — Chunks submitted with this message are not valid. - `invalid_metadata_format` — Invalid metadata format provided - `invalid_metadata_schema` — Invalid metadata schema provided - `is_archived` — Channel has been archived. - `message_limit_exceeded` — Members on this team are sending too many messages. For more details, see https://slack.com/help/articles/115002422943-Usage-limits-for-free-workspaces - `messages_tab_disabled` — Messages tab for the app is disabled. - `metadata_must_be_sent_from_app` — Message metadata can only be posted or updated using an app-level token - `msg_blocks_too_long` — Blocks submitted with this message are too long. - `msg_blocks_too_many` — Max blocks exceeded, blocks are limited to 50 per message. - `metadata_too_large` — Metadata exceeds size limit - `no_text` — No message text provided - `not_in_channel` — Cannot post user messages to a channel they are not in. - `rate_limited` — Application has posted too many messages, [read the Rate Limit documentation](/apis/web-api/rate-limits) for more information - `restricted_action` — A workspace preference prevents the authenticated user from posting. - `restricted_action_non_threadable_channel` — Cannot post thread replies into a non_threadable channel. - `restricted_action_read_only_channel` — Cannot post any message into a read-only channel. - `restricted_action_thread_locked` — Cannot post replies to a thread that has been locked by admins. - `restricted_action_thread_only_channel` — Cannot post top-level messages into a thread-only channel. - `slack_connect_canvas_sharing_blocked` — Admin has disabled Canvas File sharing in all Slack Connect communications - `slack_connect_file_link_sharing_blocked` — Admin has disabled Slack File sharing in all Slack Connect communications - `slack_connect_lists_sharing_blocked` — Admin has disabled Lists sharing in all Slack Connect communications - `team_not_found` — This error occurs if, when using an org-wide token, the `channel_name` is passed instead of the `channel_id`. - `too_many_attachments` — Too many attachments were provided with this message. A maximum of 100 attachments are allowed on a message. - `too_many_contact_cards` — Too many contact_cards were provided with this message. A maximum of 10 contact cards are allowed on a message. - `message_not_found` — Message not found - `channel_type_not_supported` — Channel type not supported - `stopped_by_user` — The streaming message was stopped by the user and no further appends are accepted. - `message_not_owned_by_app` — The message is not owned by the app. - `markdown_text_required` — Missing required field: 'markdown_text' - `markdown_text_or_chunks_required` — One of 'markdown_text' or 'chunks' is required - `streaming_mode_mismatch` — The streaming mode must be the same as the streaming mode used to start the stream. If you started the stream with `markdown_text`, you must append with `markdown_text`. If you started the stream with `chunks`, you must append with `chunks`. - `cannot_provide_both_markdown_text_and_chunks` — Cannot provide both `markdown_text` and `chunks` in the same request. See https://docs.slack.dev/reference/methods/chat.appendStream */
989
869
  export const appendStream: API.OperationMethod<
990
870
  AppendStreamRequest,
991
871
  AppendStreamResponse,
@@ -1015,7 +895,7 @@ export const chatUnfurl: API.OperationMethod<
1015
895
  }));
1016
896
 
1017
897
  export type DeleteChatError = SlackOpError;
1018
- /** Deletes a message. Required scopes — bot: `chat:write`; user: `chat:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `cant_delete_message` — Authenticated user does not have permission to delete this message. - `channel_not_found` — Value passed for `channel` was invalid. - `message_not_found` — No message exists with the requested timestamp. See https://docs.slack.dev/reference/methods/chat.delete */
898
+ /** Deletes a message. Required scopes — bot: `chat:write`; user: `chat:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `cant_delete_message` — Authenticated user does not have permission to delete this message. - `channel_not_found` — Value passed for `channel` was invalid. - `message_not_found` — No message exists with the requested timestamp. - `invalid_channel_id` — Value passed for `channel` was not a valid channel ID. See https://docs.slack.dev/reference/methods/chat.delete */
1019
899
  export const deleteChat: API.OperationMethod<
1020
900
  DeleteChatRequest,
1021
901
  DeleteChatResponse,
@@ -1116,7 +996,7 @@ export const postEphemeral: API.OperationMethod<
1116
996
  }));
1117
997
 
1118
998
  export type PostMessageError = SlackOpError;
1119
- /** Sends a message to a channel. Required scopes — bot: `chat:write`; user: `chat:write` Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `app_access_restricted` — The user does not have permission to use this app. - `as_user_not_supported` — The `as_user` parameter does not function with workspace apps. - `channel_not_found` — Value passed for `channel` was invalid. - `draft_already_deleted` — The draft has already been deleted. - `draft_already_sent` — The draft has already been sent. - `draft_has_conflict` — The client draft version is out of sync with the server draft version. - `draft_not_found` — The draft was not found. - `duplicate_channel_not_found` — Channel associated with `client_msg_id` was invalid. - `duplicate_message_not_found` — No duplicate message exists associated with `client_msg_id`. - `ekm_access_denied` — Your message couldn’t be sent because your admins have disabled sending messages to this channel. - `invalid_blocks` — Blocks submitted with this message are not valid. - `invalid_blocks_format` — The `blocks` is not a valid JSON object or doesn't match the Block Kit syntax. - `invalid_metadata_format` — Invalid metadata format provided. - `invalid_metadata_schema` — Invalid metadata schema provided. - `is_archived` — Channel has been archived. - `markdown_text_conflict` — Markdown text cannot be used in conjunction with `blocks` or `text` argument. - `message_limit_exceeded` — Members on this team are sending too many messages. For more details, see https://slack.com/help/articles/115002422943-Usage-limits-for-free-workspaces. - `messages_tab_disabled` — Messages tab for the app is disabled. - `metadata_must_be_sent_from_app` — Message metadata can only be posted or updated using an app-level token. - `metadata_too_large` — Metadata exceeds size limit. - `msg_blocks_too_long` — Blocks submitted with this message are too long. - `no_text` — No message text provided. - `not_in_channel` — Cannot post user messages to a channel they are not in. - `rate_limited` — Application has posted too many messages, [read the Rate Limit documentation](/apis/web-api/rate-limits) for more information. - `restricted_action` — A workspace preference prevents the authenticated user from posting. - `restricted_action_non_threadable_channel` — Cannot post thread replies into a non_threadable channel. - `restricted_action_read_only_channel` — Cannot post any message into a read-only channel. - `restricted_action_thread_locked` — Cannot post replies to a thread that has been locked by admins. - `restricted_action_thread_only_channel` — Cannot post top-level messages into a thread-only channel. - `send_on_behalf_not_allowed` — Cannot send on behalf of the provided user. - `slack_connect_canvas_sharing_blocked` — Admin has disabled Canvas File sharing in all Slack Connect communications. - `slack_connect_file_link_sharing_blocked` — Admin has disabled Slack File sharing in all Slack Connect communications. - `slack_connect_lists_sharing_blocked` — Admin has disabled Lists sharing in all Slack Connect communications. - `team_not_found` — This error occurs if, when using an org-wide token, the `channel_name` is passed instead of the `channel_id`. - `too_many_attachments` — Too many attachments were provided with this message. A maximum of 100 attachments are allowed on a message. - `too_many_contact_cards` — Too many contact_cards were provided with this message. A maximum of 10 contact cards are allowed on a message. - `cannot_reply_to_message` — This message type cannot have thread replies. - `missing_file_data` — Attempted to share a file but some required data was missing. - `attachment_payload_limit_exceeded` — Attachment payload size is too long. See https://docs.slack.dev/reference/methods/chat.postMessage */
999
+ /** Sends a message to a channel. Required scopes — bot: `chat:write`; user: `chat:write` Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `agent_prompt_display_not_allowed` — `client_context.agent_prompt_display` may only be set by the Slack client when posting to the user's Slackbot DM. - `app_access_restricted` — The user does not have permission to use this app. - `as_user_not_supported` — The `as_user` parameter does not function with workspace apps. - `channel_not_found` — Value passed for `channel` was invalid. - `draft_already_deleted` — The draft has already been deleted. - `draft_already_sent` — The draft has already been sent. - `draft_has_conflict` — The client draft version is out of sync with the server draft version. - `draft_not_found` — The draft was not found. - `duplicate_channel_not_found` — Channel associated with `client_msg_id` was invalid. - `duplicate_message_not_found` — No duplicate message exists associated with `client_msg_id`. - `ekm_access_denied` — Your message couldn’t be sent because your admins have disabled sending messages to this channel. - `invalid_blocks` — Blocks submitted with this message are not valid. - `invalid_blocks_format` — The `blocks` is not a valid JSON object or doesn't match the Block Kit syntax. - `invalid_metadata_format` — Invalid metadata format provided. - `invalid_metadata_schema` — Invalid metadata schema provided. - `is_archived` — Channel has been archived. - `markdown_text_conflict` — Markdown text cannot be used in conjunction with `blocks` or `text` argument. - `message_limit_exceeded` — Members on this team are sending too many messages. For more details, see https://slack.com/help/articles/115002422943-Usage-limits-for-free-workspaces. - `messages_tab_disabled` — Messages tab for the app is disabled. - `metadata_must_be_sent_from_app` — Message metadata can only be posted or updated using an app-level token. - `metadata_too_large` — Metadata exceeds size limit. - `msg_blocks_too_long` — Blocks submitted with this message are too long. - `no_text` — No message text provided. - `not_in_channel` — Cannot post user messages to a channel they are not in. - `rate_limited` — Application has posted too many messages, [read the Rate Limit documentation](/apis/web-api/rate-limits) for more information. - `restricted_action` — A workspace preference prevents the authenticated user from posting. - `restricted_action_non_threadable_channel` — Cannot post thread replies into a non_threadable channel. - `restricted_action_read_only_channel` — Cannot post any message into a read-only channel. - `restricted_action_thread_locked` — Cannot post replies to a thread that has been locked by admins. - `restricted_action_thread_only_channel` — Cannot post top-level messages into a thread-only channel. - `send_on_behalf_not_allowed` — Cannot send on behalf of the provided user. - `slack_connect_canvas_sharing_blocked` — Admin has disabled Canvas File sharing in all Slack Connect communications. - `slack_connect_file_link_sharing_blocked` — Admin has disabled Slack File sharing in all Slack Connect communications. - `slack_connect_lists_sharing_blocked` — Admin has disabled Lists sharing in all Slack Connect communications. - `team_not_found` — This error occurs if, when using an org-wide token, the `channel_name` is passed instead of the `channel_id`. - `too_many_attachments` — Too many attachments were provided with this message. A maximum of 100 attachments are allowed on a message. - `too_many_contact_cards` — Too many contact_cards were provided with this message. A maximum of 10 contact cards are allowed on a message. - `cannot_reply_to_message` — This message type cannot have thread replies. - `missing_file_data` — Attempted to share a file but some required data was missing. - `attachment_payload_limit_exceeded` — Attachment payload size is too long. See https://docs.slack.dev/reference/methods/chat.postMessage */
1120
1000
  export const postMessage: API.OperationMethod<
1121
1001
  PostMessageRequest,
1122
1002
  PostMessageResponse,
@@ -1146,7 +1026,7 @@ export const scheduleMessage: API.OperationMethod<
1146
1026
  }));
1147
1027
 
1148
1028
  export type StartStreamError = SlackOpError;
1149
- /** Starts a new streaming conversation. Required scopes — bot: `chat:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `messaging_processing_failed` — Failed to process the message. - `channel_not_found` — Value passed for `channel` was invalid. - `duplicate_channel_not_found` — Channel associated with `client_msg_id` was invalid. - `duplicate_message_not_found` — No duplicate message exists associated with `client_msg_id`. - `ekm_access_denied` — Your message couldn’t be sent because your admins have disabled sending messages to this channel. - `invalid_blocks` — Blocks submitted with this message are not valid - `invalid_chunks` — Chunks submitted with this message are not valid. - `invalid_blocks_format` — The `blocks` is not a valid JSON object or doesn't match the Block Kit syntax. - `invalid_metadata_format` — Invalid metadata format provided - `invalid_metadata_schema` — Invalid metadata schema provided - `is_archived` — Channel has been archived. - `message_limit_exceeded` — Members on this team are sending too many messages. For more details, see https://slack.com/help/articles/115002422943-Usage-limits-for-free-workspaces - `messages_tab_disabled` — Messages tab for the app is disabled. - `metadata_must_be_sent_from_app` — Message metadata can only be posted or updated using an app-level token - `metadata_too_large` — Metadata exceeds size limit - `msg_blocks_too_long` — Blocks submitted with this message are too long. - `msg_blocks_too_many` — Max blocks exceeded, blocks are limited to 50 per message. - `no_text` — No message text provided - `not_in_channel` — Cannot post user messages to a channel they are not in. - `rate_limited` — Application has posted too many messages, [read the Rate Limit documentation](/apis/web-api/rate-limits) for more information - `restricted_action` — A workspace preference prevents the authenticated user from posting. - `restricted_action_non_threadable_channel` — Cannot post thread replies into a non_threadable channel. - `restricted_action_read_only_channel` — Cannot post any message into a read-only channel. - `restricted_action_thread_locked` — Cannot post replies to a thread that has been locked by admins. - `restricted_action_thread_only_channel` — Cannot post top-level messages into a thread-only channel. - `slack_connect_canvas_sharing_blocked` — Admin has disabled Canvas File sharing in all Slack Connect communications - `slack_connect_file_link_sharing_blocked` — Admin has disabled Slack File sharing in all Slack Connect communications - `slack_connect_lists_sharing_blocked` — Admin has disabled Lists sharing in all Slack Connect communications - `team_not_found` — This error occurs if, when using an org-wide token, the `channel_name` is passed instead of the `channel_id`. - `channel_type_not_supported` — Channel type not supported - `user_not_found` — User not found. - `missing_recipient_team_id` — Missing recipient team ID. - `missing_recipient_user_id` — Missing recipient user ID. - `not_subscribed_to_message_stream_stopped` — The app must be subscribed to the `message_stream_stopped` event to use `is_stoppable`. See https://docs.slack.dev/reference/methods/chat.startStream */
1029
+ /** Starts a new streaming conversation. Required scopes — bot: `chat:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `messaging_processing_failed` — Failed to process the message. - `channel_not_found` — Value passed for `channel` was invalid. - `duplicate_channel_not_found` — Channel associated with `client_msg_id` was invalid. - `duplicate_message_not_found` — No duplicate message exists associated with `client_msg_id`. - `ekm_access_denied` — Your message couldn’t be sent because your admins have disabled sending messages to this channel. - `invalid_blocks` — Blocks submitted with this message are not valid - `invalid_chunks` — Chunks submitted with this message are not valid. - `invalid_blocks_format` — The `blocks` is not a valid JSON object or doesn't match the Block Kit syntax. - `invalid_metadata_format` — Invalid metadata format provided - `invalid_metadata_schema` — Invalid metadata schema provided - `is_archived` — Channel has been archived. - `message_limit_exceeded` — Members on this team are sending too many messages. For more details, see https://slack.com/help/articles/115002422943-Usage-limits-for-free-workspaces - `messages_tab_disabled` — Messages tab for the app is disabled. - `metadata_must_be_sent_from_app` — Message metadata can only be posted or updated using an app-level token - `metadata_too_large` — Metadata exceeds size limit - `msg_blocks_too_long` — Blocks submitted with this message are too long. - `msg_blocks_too_many` — Max blocks exceeded, blocks are limited to 50 per message. - `no_text` — No message text provided - `not_in_channel` — Cannot post user messages to a channel they are not in. - `rate_limited` — Application has posted too many messages, [read the Rate Limit documentation](/apis/web-api/rate-limits) for more information - `restricted_action` — A workspace preference prevents the authenticated user from posting. - `restricted_action_non_threadable_channel` — Cannot post thread replies into a non_threadable channel. - `restricted_action_read_only_channel` — Cannot post any message into a read-only channel. - `restricted_action_thread_locked` — Cannot post replies to a thread that has been locked by admins. - `restricted_action_thread_only_channel` — Cannot post top-level messages into a thread-only channel. - `slack_connect_canvas_sharing_blocked` — Admin has disabled Canvas File sharing in all Slack Connect communications - `slack_connect_file_link_sharing_blocked` — Admin has disabled Slack File sharing in all Slack Connect communications - `slack_connect_lists_sharing_blocked` — Admin has disabled Lists sharing in all Slack Connect communications - `team_not_found` — This error occurs if, when using an org-wide token, the `channel_name` is passed instead of the `channel_id`. - `channel_type_not_supported` — Channel type not supported - `user_not_found` — User not found. - `missing_recipient_team_id` — Missing recipient team ID. - `missing_recipient_user_id` — Missing recipient user ID. - `cannot_provide_both_markdown_text_and_chunks` — Cannot provide both `markdown_text` and `chunks` in the same request. See https://docs.slack.dev/reference/methods/chat.startStream */
1150
1030
  export const startStream: API.OperationMethod<
1151
1031
  StartStreamRequest,
1152
1032
  StartStreamResponse,
@@ -1161,7 +1041,7 @@ export const startStream: API.OperationMethod<
1161
1041
  }));
1162
1042
 
1163
1043
  export type StopStreamError = SlackOpError;
1164
- /** Stops a streaming conversation. Required scopes — bot: `chat:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `message_not_found` — The message was not found. - `message_not_in_streaming_state` — The message is not in a streaming state. - `as_user_not_supported` — The `as_user` parameter does not function with workspace apps. - `channel_not_found` — Value passed for `channel` was invalid. - `channel_type_not_supported` — Channel type not supported. - `duplicate_channel_not_found` — Channel associated with `client_msg_id` was invalid. - `duplicate_message_not_found` — No duplicate message exists associated with `client_msg_id`. - `ekm_access_denied` — Your message couldn’t be sent because your admins have disabled sending messages to this channel. - `invalid_blocks` — Blocks submitted with this message are not valid. - `invalid_chunks` — Chunks submitted with this message are not valid. - `invalid_metadata_format` — Invalid metadata format provided - `invalid_metadata_schema` — Invalid metadata schema provided - `is_archived` — Channel has been archived. - `message_limit_exceeded` — Members on this team are sending too many messages. For more details, see https://slack.com/help/articles/115002422943-Usage-limits-for-free-workspaces - `message_not_owned_by_app` — The message is not owned by the app. - `messages_tab_disabled` — Messages tab for the app is disabled. - `metadata_must_be_sent_from_app` — Message metadata can only be posted or updated using an app-level token - `metadata_too_large` — Metadata exceeds size limit - `msg_blocks_too_long` — Blocks submitted with this message are too long. - `msg_blocks_too_many` — Max blocks exceeded, blocks are limited to 50 per message. - `no_text` — No message text provided - `not_in_channel` — Cannot post user messages to a channel they are not in. - `rate_limited` — Application has posted too many messages, [read the Rate Limit documentation](/apis/web-api/rate-limits) for more information - `restricted_action` — A workspace preference prevents the authenticated user from posting. - `restricted_action_non_threadable_channel` — Cannot post thread replies into a non_threadable channel. - `restricted_action_read_only_channel` — Cannot post any message into a read-only channel. - `restricted_action_thread_locked` — Cannot post replies to a thread that has been locked by admins. - `restricted_action_thread_only_channel` — Cannot post top-level messages into a thread-only channel. - `slack_connect_canvas_sharing_blocked` — Admin has disabled Canvas File sharing in all Slack Connect communications - `slack_connect_file_link_sharing_blocked` — Admin has disabled Slack File sharing in all Slack Connect communications - `slack_connect_lists_sharing_blocked` — Admin has disabled Lists sharing in all Slack Connect communications - `team_not_found` — This error occurs if, when using an org-wide token, the `channel_name` is passed instead of the `channel_id`. - `too_many_attachments` — Too many attachments were provided with this message. A maximum of 100 attachments are allowed on a message. - `too_many_contact_cards` — Too many contact_cards were provided with this message. A maximum of 10 contact cards are allowed on a message. - `cannot_reply_to_message` — This message type cannot have thread replies. - `missing_file_data` — Attempted to share a file but some required data was missing. - `attachment_payload_limit_exceeded` — Attachment payload size is too long. See https://docs.slack.dev/reference/methods/chat.stopStream */
1044
+ /** Stops a streaming conversation. Required scopes — bot: `chat:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `message_not_found` — The message was not found. - `message_not_in_streaming_state` — The message is not in a streaming state. - `as_user_not_supported` — The `as_user` parameter does not function with workspace apps. - `channel_not_found` — Value passed for `channel` was invalid. - `channel_type_not_supported` — Channel type not supported. - `duplicate_channel_not_found` — Channel associated with `client_msg_id` was invalid. - `duplicate_message_not_found` — No duplicate message exists associated with `client_msg_id`. - `ekm_access_denied` — Your message couldn’t be sent because your admins have disabled sending messages to this channel. - `invalid_blocks` — Blocks submitted with this message are not valid. - `invalid_chunks` — Chunks submitted with this message are not valid. - `invalid_metadata_format` — Invalid metadata format provided - `invalid_metadata_schema` — Invalid metadata schema provided - `is_archived` — Channel has been archived. - `message_limit_exceeded` — Members on this team are sending too many messages. For more details, see https://slack.com/help/articles/115002422943-Usage-limits-for-free-workspaces - `message_not_owned_by_app` — The message is not owned by the app. - `messages_tab_disabled` — Messages tab for the app is disabled. - `metadata_must_be_sent_from_app` — Message metadata can only be posted or updated using an app-level token - `metadata_too_large` — Metadata exceeds size limit - `msg_blocks_too_long` — Blocks submitted with this message are too long. - `msg_blocks_too_many` — Max blocks exceeded, blocks are limited to 50 per message. - `no_text` — No message text provided - `not_in_channel` — Cannot post user messages to a channel they are not in. - `rate_limited` — Application has posted too many messages, [read the Rate Limit documentation](/apis/web-api/rate-limits) for more information - `restricted_action` — A workspace preference prevents the authenticated user from posting. - `restricted_action_non_threadable_channel` — Cannot post thread replies into a non_threadable channel. - `restricted_action_read_only_channel` — Cannot post any message into a read-only channel. - `restricted_action_thread_locked` — Cannot post replies to a thread that has been locked by admins. - `restricted_action_thread_only_channel` — Cannot post top-level messages into a thread-only channel. - `slack_connect_canvas_sharing_blocked` — Admin has disabled Canvas File sharing in all Slack Connect communications - `slack_connect_file_link_sharing_blocked` — Admin has disabled Slack File sharing in all Slack Connect communications - `slack_connect_lists_sharing_blocked` — Admin has disabled Lists sharing in all Slack Connect communications - `team_not_found` — This error occurs if, when using an org-wide token, the `channel_name` is passed instead of the `channel_id`. - `too_many_attachments` — Too many attachments were provided with this message. A maximum of 100 attachments are allowed on a message. - `too_many_contact_cards` — Too many contact_cards were provided with this message. A maximum of 10 contact cards are allowed on a message. - `cannot_reply_to_message` — This message type cannot have thread replies. - `missing_file_data` — Attempted to share a file but some required data was missing. - `attachment_payload_limit_exceeded` — Attachment payload size is too long. - `cannot_provide_both_markdown_text_and_chunks` — Cannot provide both `markdown_text` and `chunks` in the same request. - `streaming_mode_mismatch` — The streaming mode must be the same as the streaming mode used to start the stream. If you started the stream with `markdown_text`, you must append with `markdown_text`. If you started the stream with `chunks`, you must append with `chunks`. See https://docs.slack.dev/reference/methods/chat.stopStream */
1165
1045
  export const stopStream: API.OperationMethod<
1166
1046
  StopStreamRequest,
1167
1047
  StopStreamResponse,
@@ -1176,7 +1056,7 @@ export const stopStream: API.OperationMethod<
1176
1056
  }));
1177
1057
 
1178
1058
  export type UpdateChatError = SlackOpError;
1179
- /** Updates a message. Required scopes — bot: `chat:write`; user: `chat:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `as_user_not_supported` — The `as_user` parameter does not function with workspace apps. - `blocked_file_type` — Admin has disabled uploading this type of file. - `block_mismatch` — Rich-text blocks cannot be replaced with non-rich-text blocks - `cant_broadcast_message` — Unable to broadcast this message. - `cant_update_message` — Authenticated user does not have permission to update this message. - `channel_not_found` — Value passed for `channel` was invalid. - `edit_window_closed` — The message cannot be edited due to the team message edit settings - `external_channel_migrating` — The channel is in the process of migrating and so the message cannot be updated at this time. - `file_deleted` — File to share deleted. - `file_is_deleted` — The file is deleted. - `file_not_found` — One or more of the provided file IDs could not be found. - `file_share_limit_reached` — The file has reached the share limit. - `invalid_attachments` — The attachments were invalid. - `invalid_blocks` — The blocks were invalid for the requesting user. - `invalid_blocks_format` — The `blocks` array is not a valid JSON object or doesn't match the Block Kit syntax. - `invalid_metadata_format` — Invalid metadata format provided - `invalid_metadata_schema` — Invalid metadata schema provided - `is_inactive` — The message cannot be edited within a frozen, archived or deleted channel. - `markdown_text_conflict` — Markdown text cannot be used in conjunction with `blocks` or `text` argument. - `max_file_sharing_exceeded` — Exceeded max allowed files shared. - `message_limit_exceeded` — Members on this team are sending too many messages. For more details, see https://slack.com/help/articles/115002422943-Usage-limits-for-free-workspaces. - `message_not_found` — No message exists with the requested timestamp. - `metadata_must_be_sent_from_app` — Message metadata can only be posted or updated using an app-level token - `metadata_too_large` — Metadata exceeds size limit - `msg_too_long` — Message text is too long. The `text` field cannot exceed 4,000 characters. - `no_dual_broadcast_content_update` — Can't broadcast an old reply and update the content at the same time. - `no_text` — No message text provided - `posting_to_channel_denied` — The user does not have permission to share files in this channel. - `slack_connect_blocked_file_type` — Files with certain extensions are blocked from being uploaded in all Slack Connect messages. - `slack_connect_canvas_sharing_blocked` — Admin has disabled sharing of canvas links in all Slack Connect messages. - `slack_connect_clip_sharing_blocked` — Admin has disabled Clip uploads in Slack Connect channels. - `slack_connect_file_link_sharing_blocked` — Admin has disabled Slack file sharing in all Slack Connect messages. - `slack_connect_file_upload_sharing_blocked` — Admin has disabled file uploads in all Slack Connect messages. - `streaming_state_conflict` — The message is currently streaming text and cannot be edited. - `team_not_found` — Team associated with the message and channel could not be found. - `too_many_attachments` — Too many attachments were provided with this message. A maximum of 100 attachments are allowed on a message. - `unable_to_share_files` — Sharing the files failed. - `update_failed` — Internal update failure. See https://docs.slack.dev/reference/methods/chat.update */
1059
+ /** Updates a message. Required scopes — bot: `chat:write`; user: `chat:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `as_user_not_supported` — The `as_user` parameter does not function with workspace apps. - `blocked_file_type` — Admin has disabled uploading this type of file. - `block_mismatch` — Rich-text blocks cannot be replaced with non-rich-text blocks - `cant_broadcast_message` — Unable to broadcast this message. - `cant_update_message` — Authenticated user does not have permission to update this message. - `channel_not_found` — Value passed for `channel` was invalid. - `edit_window_closed` — The message cannot be edited due to the team message edit settings - `external_channel_migrating` — The channel is in the process of migrating and so the message cannot be updated at this time. - `file_deleted` — File to share deleted. - `file_is_deleted` — The file is deleted. - `file_not_found` — One or more of the provided file IDs could not be found. - `file_share_limit_reached` — The file has reached the share limit. - `invalid_attachments` — The attachments were invalid. - `invalid_blocks` — The blocks were invalid for the requesting user. - `invalid_blocks_format` — The `blocks` array is not a valid JSON object or doesn't match the Block Kit syntax. - `invalid_metadata_format` — Invalid metadata format provided - `invalid_metadata_schema` — Invalid metadata schema provided - `is_inactive` — The message cannot be edited within a frozen, archived or deleted channel. - `markdown_text_conflict` — Markdown text cannot be used in conjunction with `blocks` or `text` argument. - `max_file_sharing_exceeded` — Exceeded max allowed files shared. - `message_limit_exceeded` — Members on this team are sending too many messages. For more details, see https://slack.com/help/articles/115002422943-Usage-limits-for-free-workspaces. - `message_not_found` — No message exists with the requested timestamp. - `metadata_must_be_sent_from_app` — Message metadata can only be posted or updated using an app-level token - `metadata_too_large` — Metadata exceeds size limit - `msg_too_long` — Message text is too long. The `text` field cannot exceed 4,000 characters. - `no_dual_broadcast_content_update` — Can't broadcast an old reply and update the content at the same time. - `no_text` — No message text provided - `posting_to_channel_denied` — The user does not have permission to share files in this channel. - `slack_connect_blocked_file_type` — Files with certain extensions are blocked from being uploaded in all Slack Connect messages. - `slack_connect_canvas_sharing_blocked` — Admin has disabled sharing of canvas links in all Slack Connect messages. - `slack_connect_clip_sharing_blocked` — Admin has disabled Clip uploads in Slack Connect channels. - `slack_connect_file_link_sharing_blocked` — Admin has disabled Slack file sharing in all Slack Connect messages. - `slack_connect_file_upload_sharing_blocked` — Admin has disabled file uploads in all Slack Connect messages. - `streaming_state_conflict` — The message is currently streaming text and cannot be edited. - `team_not_found` — Team associated with the message and channel could not be found. - `too_many_attachments` — Too many attachments were provided with this message. A maximum of 100 attachments are allowed on a message. - `unable_to_share_files` — Sharing the files failed. - `update_failed` — Internal update failure. - `invalid_channel_id` — Value passed for `channel` was not a valid channel ID. See https://docs.slack.dev/reference/methods/chat.update */
1180
1060
  export const updateChat: API.OperationMethod<
1181
1061
  UpdateChatRequest,
1182
1062
  UpdateChatResponse,