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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/lib/credentials.d.ts +1 -1
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +39 -34
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +31 -31
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +41 -41
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +1 -1
  10. package/lib/index.js +9 -9
  11. package/lib/pagination.d.ts +2 -2
  12. package/lib/pagination.js +28 -28
  13. package/lib/protocol.d.ts.map +1 -1
  14. package/lib/protocol.js +61 -59
  15. package/lib/protocol.js.map +1 -1
  16. package/lib/retry.d.ts +2 -2
  17. package/lib/retry.d.ts.map +1 -1
  18. package/lib/retry.js +34 -33
  19. package/lib/retry.js.map +1 -1
  20. package/lib/services/admin.d.ts +123 -575
  21. package/lib/services/admin.d.ts.map +1 -1
  22. package/lib/services/admin.js +304 -2878
  23. package/lib/services/agents.d.ts +13 -55
  24. package/lib/services/agents.d.ts.map +1 -1
  25. package/lib/services/agents.js +48 -309
  26. package/lib/services/api.d.ts +0 -4
  27. package/lib/services/api.d.ts.map +1 -1
  28. package/lib/services/api.js +16 -18
  29. package/lib/services/apps.d.ts +25 -106
  30. package/lib/services/apps.d.ts.map +1 -1
  31. package/lib/services/apps.js +84 -509
  32. package/lib/services/assistant.d.ts +6 -40
  33. package/lib/services/assistant.d.ts.map +1 -1
  34. package/lib/services/assistant.js +33 -204
  35. package/lib/services/auth.d.ts +4 -15
  36. package/lib/services/auth.d.ts.map +1 -1
  37. package/lib/services/auth.js +22 -90
  38. package/lib/services/blocks.d.ts +1 -7
  39. package/lib/services/blocks.d.ts.map +1 -1
  40. package/lib/services/blocks.js +16 -21
  41. package/lib/services/bookmarks.d.ts +4 -15
  42. package/lib/services/bookmarks.d.ts.map +1 -1
  43. package/lib/services/bookmarks.js +27 -76
  44. package/lib/services/bots.d.ts +1 -9
  45. package/lib/services/bots.d.ts.map +1 -1
  46. package/lib/services/bots.js +17 -54
  47. package/lib/services/calls.d.ts +6 -22
  48. package/lib/services/calls.d.ts.map +1 -1
  49. package/lib/services/calls.js +35 -110
  50. package/lib/services/canvases.d.ts +7 -35
  51. package/lib/services/canvases.d.ts.map +1 -1
  52. package/lib/services/canvases.js +39 -135
  53. package/lib/services/chat.d.ts +14 -83
  54. package/lib/services/chat.d.ts.map +1 -1
  55. package/lib/services/chat.js +59 -381
  56. package/lib/services/conversations.d.ts +31 -116
  57. package/lib/services/conversations.d.ts.map +1 -1
  58. package/lib/services/conversations.js +94 -690
  59. package/lib/services/dialog.d.ts +1 -4
  60. package/lib/services/dialog.d.ts.map +1 -1
  61. package/lib/services/dialog.js +13 -17
  62. package/lib/services/dnd.d.ts +5 -17
  63. package/lib/services/dnd.d.ts.map +1 -1
  64. package/lib/services/dnd.js +26 -91
  65. package/lib/services/emoji.d.ts +1 -8
  66. package/lib/services/emoji.d.ts.map +1 -1
  67. package/lib/services/emoji.js +18 -29
  68. package/lib/services/entity.d.ts +4 -16
  69. package/lib/services/entity.d.ts.map +1 -1
  70. package/lib/services/entity.js +29 -71
  71. package/lib/services/files.d.ts +16 -80
  72. package/lib/services/files.d.ts.map +1 -1
  73. package/lib/services/files.js +75 -433
  74. package/lib/services/functions.d.ts +8 -49
  75. package/lib/services/functions.d.ts.map +1 -1
  76. package/lib/services/functions.js +45 -203
  77. package/lib/services/lists.d.ts +13 -55
  78. package/lib/services/lists.d.ts.map +1 -1
  79. package/lib/services/lists.js +53 -248
  80. package/lib/services/migration.d.ts +1 -7
  81. package/lib/services/migration.d.ts.map +1 -1
  82. package/lib/services/migration.js +18 -27
  83. package/lib/services/oauth.d.ts +7 -43
  84. package/lib/services/oauth.d.ts.map +1 -1
  85. package/lib/services/oauth.js +34 -289
  86. package/lib/services/openid.d.ts +3 -10
  87. package/lib/services/openid.d.ts.map +1 -1
  88. package/lib/services/openid.js +19 -79
  89. package/lib/services/pins.d.ts +3 -13
  90. package/lib/services/pins.d.ts.map +1 -1
  91. package/lib/services/pins.js +27 -61
  92. package/lib/services/reactions.d.ts +5 -17
  93. package/lib/services/reactions.d.ts.map +1 -1
  94. package/lib/services/reactions.js +30 -96
  95. package/lib/services/reminders.d.ts +5 -17
  96. package/lib/services/reminders.d.ts.map +1 -1
  97. package/lib/services/reminders.js +33 -83
  98. package/lib/services/rtm.d.ts +2 -11
  99. package/lib/services/rtm.d.ts.map +1 -1
  100. package/lib/services/rtm.js +22 -56
  101. package/lib/services/search.d.ts +4 -35
  102. package/lib/services/search.d.ts.map +1 -1
  103. package/lib/services/search.js +28 -167
  104. package/lib/services/stars.d.ts +4 -26
  105. package/lib/services/stars.d.ts.map +1 -1
  106. package/lib/services/stars.js +28 -128
  107. package/lib/services/team.d.ts +11 -63
  108. package/lib/services/team.d.ts.map +1 -1
  109. package/lib/services/team.js +45 -289
  110. package/lib/services/tooling.d.ts +2 -5
  111. package/lib/services/tooling.d.ts.map +1 -1
  112. package/lib/services/tooling.js +15 -28
  113. package/lib/services/usergroups.d.ts +7 -31
  114. package/lib/services/usergroups.d.ts.map +1 -1
  115. package/lib/services/usergroups.js +40 -146
  116. package/lib/services/users.d.ts +14 -48
  117. package/lib/services/users.d.ts.map +1 -1
  118. package/lib/services/users.js +54 -249
  119. package/lib/services/views.d.ts +4 -14
  120. package/lib/services/views.d.ts.map +1 -1
  121. package/lib/services/views.js +28 -73
  122. package/lib/services/workflows.d.ts +8 -51
  123. package/lib/services/workflows.d.ts.map +1 -1
  124. package/lib/services/workflows.js +37 -188
  125. package/lib/traits.d.ts +1 -1
  126. package/lib/traits.js +8 -8
  127. package/package.json +14 -10
  128. package/src/credentials.ts +20 -21
  129. package/src/errors.ts +31 -27
  130. package/src/index.ts +1 -1
  131. package/src/pagination.ts +2 -2
  132. package/src/protocol.ts +30 -29
  133. package/src/retry.ts +6 -6
  134. package/src/services/admin.ts +2717 -3451
  135. package/src/services/agents.ts +380 -370
  136. package/src/services/api.ts +31 -21
  137. package/src/services/apps.ts +569 -621
  138. package/src/services/assistant.ts +235 -270
  139. package/src/services/auth.ts +118 -100
  140. package/src/services/blocks.ts +33 -29
  141. package/src/services/bookmarks.ts +101 -83
  142. package/src/services/bots.ts +74 -67
  143. package/src/services/calls.ts +118 -124
  144. package/src/services/canvases.ts +171 -178
  145. package/src/services/chat.ts +428 -496
  146. package/src/services/conversations.ts +675 -761
  147. package/src/services/dialog.ts +30 -17
  148. package/src/services/dnd.ts +125 -99
  149. package/src/services/emoji.ts +46 -42
  150. package/src/services/entity.ts +94 -92
  151. package/src/services/files.ts +536 -531
  152. package/src/services/functions.ts +209 -274
  153. package/src/services/lists.ts +289 -304
  154. package/src/services/migration.ts +39 -37
  155. package/src/services/oauth.ts +345 -361
  156. package/src/services/openid.ts +137 -122
  157. package/src/services/pins.ts +83 -70
  158. package/src/services/reactions.ts +119 -103
  159. package/src/services/reminders.ts +112 -90
  160. package/src/services/rtm.ts +73 -65
  161. package/src/services/search.ts +193 -244
  162. package/src/services/stars.ts +101 -160
  163. package/src/services/team.ts +333 -369
  164. package/src/services/tooling.ts +43 -30
  165. package/src/services/usergroups.ts +175 -179
  166. package/src/services/users.ts +301 -268
  167. package/src/services/views.ts +85 -80
  168. package/src/services/workflows.ts +184 -269
  169. package/src/traits.ts +1 -1
  170. package/lib/protocol.test.d.ts +0 -2
  171. package/lib/protocol.test.d.ts.map +0 -1
  172. package/lib/protocol.test.js +0 -288
  173. package/lib/protocol.test.js.map +0 -1
  174. package/lib/services/admin.js.map +0 -1
  175. package/lib/services/agents.js.map +0 -1
  176. package/lib/services/api.js.map +0 -1
  177. package/lib/services/apps.js.map +0 -1
  178. package/lib/services/assistant.js.map +0 -1
  179. package/lib/services/auth.js.map +0 -1
  180. package/lib/services/blocks.js.map +0 -1
  181. package/lib/services/bookmarks.js.map +0 -1
  182. package/lib/services/bots.js.map +0 -1
  183. package/lib/services/calls.js.map +0 -1
  184. package/lib/services/canvases.js.map +0 -1
  185. package/lib/services/chat.js.map +0 -1
  186. package/lib/services/conversations.js.map +0 -1
  187. package/lib/services/dialog.js.map +0 -1
  188. package/lib/services/dnd.js.map +0 -1
  189. package/lib/services/emoji.js.map +0 -1
  190. package/lib/services/entity.js.map +0 -1
  191. package/lib/services/files.js.map +0 -1
  192. package/lib/services/functions.js.map +0 -1
  193. package/lib/services/lists.js.map +0 -1
  194. package/lib/services/migration.js.map +0 -1
  195. package/lib/services/oauth.js.map +0 -1
  196. package/lib/services/openid.js.map +0 -1
  197. package/lib/services/pins.js.map +0 -1
  198. package/lib/services/reactions.js.map +0 -1
  199. package/lib/services/reminders.js.map +0 -1
  200. package/lib/services/rtm.js.map +0 -1
  201. package/lib/services/search.js.map +0 -1
  202. package/lib/services/stars.js.map +0 -1
  203. package/lib/services/team.js.map +0 -1
  204. package/lib/services/tooling.js.map +0 -1
  205. package/lib/services/usergroups.js.map +0 -1
  206. package/lib/services/users.js.map +0 -1
  207. package/lib/services/views.js.map +0 -1
  208. package/lib/services/workflows.js.map +0 -1
  209. package/src/protocol.test.ts +0 -372
@@ -1,10 +1,13 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
3
- import * as S from "@distilled.cloud/core/schema";
3
+ import * as S from "@distilled.cloud/core/schema-lite";
4
+ import * as __L from "@distilled.cloud/core/schema-lite";
4
5
  import { SlackError, SlackRateLimited } from "../errors.ts";
5
6
  import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
6
7
  import * as Retry from "../retry.ts";
7
8
  import * as T from "../traits.ts";
9
+ // Schema table, filled on first reach (see __S at the end).
10
+ const __s: any[] = [];
8
11
 
9
12
  export type { SlackOpError, SlackOpContext };
10
13
 
@@ -13,46 +16,26 @@ export type SearchContextRequestChannelTypesItem =
13
16
  | "private_channel"
14
17
  | "mpim"
15
18
  | "im";
16
- export const SearchContextRequestChannelTypesItem = S.String;
17
-
18
19
  /** Mix and match channel types by providing a comma-separated list of any combination of `public_channel`, `private_channel`, `mpim`, `im`. */
19
20
  export type SearchContextRequestChannelTypesList = Array<
20
21
  SearchContextRequestChannelTypesItem | (string & {})
21
22
  >;
22
- export const SearchContextRequestChannelTypesList = /*@__PURE__*/ S.Array(
23
- SearchContextRequestChannelTypesItem,
24
- ) as any as S.Schema<SearchContextRequestChannelTypesList>;
25
-
26
23
  export type SearchContextRequestContentTypesItem =
27
24
  | "messages"
28
25
  | "files"
29
26
  | "enterprise"
30
27
  | "channels"
31
28
  | "users";
32
- export const SearchContextRequestContentTypesItem = S.String;
33
-
34
29
  /** Content types to include, a comma-separated list of any combination of `messages`, `files`, `channels`, `users`. */
35
30
  export type SearchContextRequestContentTypesList = Array<
36
31
  SearchContextRequestContentTypesItem | (string & {})
37
32
  >;
38
- export const SearchContextRequestContentTypesList = /*@__PURE__*/ S.Array(
39
- SearchContextRequestContentTypesItem,
40
- ) as any as S.Schema<SearchContextRequestContentTypesList>;
41
-
42
33
  /** The field to sort the results by. Defaults to score. Can be one of: score, timestamp. */
43
34
  export type SearchContextRequestSort = "score" | "timestamp";
44
- export const SearchContextRequestSort = S.String;
45
-
46
35
  /** The direction to sort the results by. Defaults to desc. */
47
36
  export type SearchContextRequestSortDir = "asc" | "desc";
48
- export const SearchContextRequestSortDir = S.String;
49
-
50
37
  /** A list of term clauses. A term clause is a string with search terms. Search results returned will match every term clause specified (i.e., conjunctive normal form). */
51
38
  export type SearchContextRequestTermClausesList = Array<string>;
52
- export const SearchContextRequestTermClausesList = /*@__PURE__*/ S.Array(
53
- S.String,
54
- ) as any as S.Schema<SearchContextRequestTermClausesList>;
55
-
56
39
  export interface SearchContextRequest {
57
40
  /** User prompt or search query */
58
41
  query: string;
@@ -95,66 +78,18 @@ export interface SearchContextRequest {
95
78
  /** Whether to disable semantic search. When true, only keyword-based search is used. Defaults to false. */
96
79
  disable_semantic_search?: boolean;
97
80
  }
98
- export const SearchContextRequest = /*@__PURE__*/ S.suspend(() =>
99
- S.Struct({
100
- query: S.String,
101
- action_token: S.optional(S.String),
102
- channel_types: S.optional(SearchContextRequestChannelTypesList),
103
- content_types: S.optional(SearchContextRequestContentTypesList),
104
- include_bots: S.optional(S.Boolean),
105
- include_deleted_users: S.optional(S.Boolean),
106
- before: S.optional(S.Number),
107
- after: S.optional(S.Number),
108
- include_context_messages: S.optional(S.Boolean),
109
- context_channel_id: S.optional(S.String),
110
- cursor: S.optional(S.String),
111
- limit: S.optional(S.Number),
112
- sort: S.optional(SearchContextRequestSort),
113
- sort_dir: S.optional(SearchContextRequestSortDir),
114
- include_message_blocks: S.optional(S.Boolean),
115
- highlight: S.optional(S.Boolean),
116
- term_clauses: S.optional(SearchContextRequestTermClausesList),
117
- modifiers: S.optional(S.String),
118
- include_archived_channels: S.optional(S.Boolean),
119
- disable_semantic_search: S.optional(S.Boolean),
120
- }).pipe(T.Http({ method: "POST", uri: "/assistant.search.context", code: 200 })),
121
- ).annotate({ identifier: "SearchContextRequest" }) as any as S.Schema<SearchContextRequest>;
122
-
123
81
  /** Messages before the current message, if applicable. */
124
82
  export type SearchContextResponseResultsMessagesItemContextMessagesBeforeList = Array<unknown>;
125
- export const SearchContextResponseResultsMessagesItemContextMessagesBeforeList =
126
- /*@__PURE__*/ S.Array(
127
- S.Unknown,
128
- ) as any as S.Schema<SearchContextResponseResultsMessagesItemContextMessagesBeforeList>;
129
-
130
83
  /** Messages after the current message. */
131
84
  export type SearchContextResponseResultsMessagesItemContextMessagesAfterList = Array<unknown>;
132
- export const SearchContextResponseResultsMessagesItemContextMessagesAfterList =
133
- /*@__PURE__*/ S.Array(
134
- S.Unknown,
135
- ) as any as S.Schema<SearchContextResponseResultsMessagesItemContextMessagesAfterList>;
136
-
137
85
  export interface SearchContextResponseResultsMessagesItemContextMessages {
138
86
  /** Messages before the current message, if applicable. */
139
87
  before?: SearchContextResponseResultsMessagesItemContextMessagesBeforeList;
140
88
  /** Messages after the current message. */
141
89
  after?: SearchContextResponseResultsMessagesItemContextMessagesAfterList;
142
90
  }
143
- export const SearchContextResponseResultsMessagesItemContextMessages = /*@__PURE__*/ S.suspend(() =>
144
- S.Struct({
145
- before: S.optional(SearchContextResponseResultsMessagesItemContextMessagesBeforeList),
146
- after: S.optional(SearchContextResponseResultsMessagesItemContextMessagesAfterList),
147
- }),
148
- ).annotate({
149
- identifier: "SearchContextResponseResultsMessagesItemContextMessages",
150
- }) as any as S.Schema<SearchContextResponseResultsMessagesItemContextMessages>;
151
-
152
91
  /** Blocks from the retrieved message. */
153
92
  export type SearchContextResponseResultsMessagesItemBlocksList = Array<unknown>;
154
- export const SearchContextResponseResultsMessagesItemBlocksList = /*@__PURE__*/ S.Array(
155
- S.Unknown,
156
- ) as any as S.Schema<SearchContextResponseResultsMessagesItemBlocksList>;
157
-
158
93
  export interface SearchContextResponseResultsMessagesItem {
159
94
  /** Full name of the user who authored the message. */
160
95
  author_name: string;
@@ -180,32 +115,8 @@ export interface SearchContextResponseResultsMessagesItem {
180
115
  blocks?: SearchContextResponseResultsMessagesItemBlocksList;
181
116
  reply_count?: number;
182
117
  }
183
- export const SearchContextResponseResultsMessagesItem = /*@__PURE__*/ S.suspend(() =>
184
- S.Struct({
185
- author_name: S.String,
186
- author_email: S.optional(S.String),
187
- author_user_id: S.String,
188
- team_id: S.String,
189
- channel_id: S.String,
190
- channel_name: S.String,
191
- message_ts: S.String,
192
- content: S.String,
193
- is_author_bot: S.Boolean,
194
- permalink: S.String,
195
- context_messages: S.optional(SearchContextResponseResultsMessagesItemContextMessages),
196
- blocks: S.optional(SearchContextResponseResultsMessagesItemBlocksList),
197
- reply_count: S.optional(S.Number),
198
- }),
199
- ).annotate({
200
- identifier: "SearchContextResponseResultsMessagesItem",
201
- }) as any as S.Schema<SearchContextResponseResultsMessagesItem>;
202
-
203
118
  export type SearchContextResponseResultsMessagesList =
204
119
  Array<SearchContextResponseResultsMessagesItem>;
205
- export const SearchContextResponseResultsMessagesList = /*@__PURE__*/ S.Array(
206
- SearchContextResponseResultsMessagesItem,
207
- ) as any as S.Schema<SearchContextResponseResultsMessagesList>;
208
-
209
120
  export interface SearchContextResponseResultsFilesItem {
210
121
  /** Full name of the user who uploaded or created the file. */
211
122
  author_name: string;
@@ -234,36 +145,8 @@ export interface SearchContextResponseResultsFilesItem {
234
145
  /** Size of the file in bytes. */
235
146
  size?: number;
236
147
  }
237
- export const SearchContextResponseResultsFilesItem = /*@__PURE__*/ S.suspend(() =>
238
- S.Struct({
239
- author_name: S.String,
240
- author_email: S.optional(S.String),
241
- author_user_id: S.String,
242
- uploader_user_id: S.String,
243
- team_id: S.String,
244
- file_id: S.String,
245
- date_created: S.Number,
246
- date_updated: S.Number,
247
- title: S.String,
248
- file_type: S.String,
249
- permalink: S.String,
250
- content: S.String,
251
- size: S.optional(S.Number),
252
- }),
253
- ).annotate({
254
- identifier: "SearchContextResponseResultsFilesItem",
255
- }) as any as S.Schema<SearchContextResponseResultsFilesItem>;
256
-
257
148
  export type SearchContextResponseResultsFilesList = Array<SearchContextResponseResultsFilesItem>;
258
- export const SearchContextResponseResultsFilesList = /*@__PURE__*/ S.Array(
259
- SearchContextResponseResultsFilesItem,
260
- ) as any as S.Schema<SearchContextResponseResultsFilesList>;
261
-
262
149
  export type SearchContextResponseResultsEnterpriseList = Array<unknown>;
263
- export const SearchContextResponseResultsEnterpriseList = /*@__PURE__*/ S.Array(
264
- S.Unknown,
265
- ) as any as S.Schema<SearchContextResponseResultsEnterpriseList>;
266
-
267
150
  export interface SearchContextResponseResultsChannelsItem {
268
151
  /** ID of the workspace in which the channel was created. */
269
152
  team_id: string;
@@ -286,29 +169,8 @@ export interface SearchContextResponseResultsChannelsItem {
286
169
  /** Whether the channel is archived. */
287
170
  is_archived: boolean;
288
171
  }
289
- export const SearchContextResponseResultsChannelsItem = /*@__PURE__*/ S.suspend(() =>
290
- S.Struct({
291
- team_id: S.String,
292
- creator_user_id: S.String,
293
- creator_name: S.optional(S.String),
294
- date_created: S.Number,
295
- date_updated: S.Number,
296
- name: S.String,
297
- topic: S.optional(S.String),
298
- purpose: S.optional(S.String),
299
- permalink: S.String,
300
- is_archived: S.Boolean,
301
- }),
302
- ).annotate({
303
- identifier: "SearchContextResponseResultsChannelsItem",
304
- }) as any as S.Schema<SearchContextResponseResultsChannelsItem>;
305
-
306
172
  export type SearchContextResponseResultsChannelsList =
307
173
  Array<SearchContextResponseResultsChannelsItem>;
308
- export const SearchContextResponseResultsChannelsList = /*@__PURE__*/ S.Array(
309
- SearchContextResponseResultsChannelsItem,
310
- ) as any as S.Schema<SearchContextResponseResultsChannelsList>;
311
-
312
174
  export interface SearchContextResponseResultsUsersItem {
313
175
  /** The encoded user ID */
314
176
  user_id: string;
@@ -325,25 +187,7 @@ export interface SearchContextResponseResultsUsersItem {
325
187
  /** The user's email address. */
326
188
  email: string;
327
189
  }
328
- export const SearchContextResponseResultsUsersItem = /*@__PURE__*/ S.suspend(() =>
329
- S.Struct({
330
- user_id: S.String,
331
- permalink: S.String,
332
- profile_pic_permalink: S.optional(S.String),
333
- full_name: S.String,
334
- title: S.String,
335
- timezone: S.String,
336
- email: S.String,
337
- }),
338
- ).annotate({
339
- identifier: "SearchContextResponseResultsUsersItem",
340
- }) as any as S.Schema<SearchContextResponseResultsUsersItem>;
341
-
342
190
  export type SearchContextResponseResultsUsersList = Array<SearchContextResponseResultsUsersItem>;
343
- export const SearchContextResponseResultsUsersList = /*@__PURE__*/ S.Array(
344
- SearchContextResponseResultsUsersItem,
345
- ) as any as S.Schema<SearchContextResponseResultsUsersList>;
346
-
347
191
  export interface SearchContextResponseResults {
348
192
  messages?: SearchContextResponseResultsMessagesList;
349
193
  files?: SearchContextResponseResultsFilesList;
@@ -351,31 +195,11 @@ export interface SearchContextResponseResults {
351
195
  channels?: SearchContextResponseResultsChannelsList;
352
196
  users?: SearchContextResponseResultsUsersList;
353
197
  }
354
- export const SearchContextResponseResults = /*@__PURE__*/ S.suspend(() =>
355
- S.Struct({
356
- messages: S.optional(SearchContextResponseResultsMessagesList),
357
- files: S.optional(SearchContextResponseResultsFilesList),
358
- enterprise: S.optional(SearchContextResponseResultsEnterpriseList),
359
- channels: S.optional(SearchContextResponseResultsChannelsList),
360
- users: S.optional(SearchContextResponseResultsUsersList),
361
- }),
362
- ).annotate({
363
- identifier: "SearchContextResponseResults",
364
- }) as any as S.Schema<SearchContextResponseResults>;
365
-
366
198
  /** Pagination metadata. An empty `next_cursor` means the last page. */
367
199
  export interface SearchContextResponseResponseMetadata {
368
- /** Cursor for the next page — pass as `cursor` on the next call. */
200
+ /** Cursor for the next page -- pass as `cursor` on the next call. */
369
201
  next_cursor?: string;
370
202
  }
371
- export const SearchContextResponseResponseMetadata = /*@__PURE__*/ S.suspend(() =>
372
- S.Struct({
373
- next_cursor: S.optional(S.String),
374
- }),
375
- ).annotate({
376
- identifier: "SearchContextResponseResponseMetadata",
377
- }) as any as S.Schema<SearchContextResponseResponseMetadata>;
378
-
379
203
  export interface SearchContextResponse {
380
204
  /** Always `true` (a failed call raises a typed error instead). */
381
205
  ok: boolean;
@@ -383,38 +207,15 @@ export interface SearchContextResponse {
383
207
  /** Pagination metadata. An empty `next_cursor` means the last page. */
384
208
  response_metadata?: SearchContextResponseResponseMetadata;
385
209
  }
386
- export const SearchContextResponse = /*@__PURE__*/ S.suspend(() =>
387
- S.Struct({
388
- ok: S.Boolean,
389
- results: SearchContextResponseResults,
390
- response_metadata: S.optional(SearchContextResponseResponseMetadata),
391
- }),
392
- ).annotate({ identifier: "SearchContextResponse" }) as any as S.Schema<SearchContextResponse>;
393
-
394
210
  export interface SearchInfoRequest {}
395
- export const SearchInfoRequest = /*@__PURE__*/ S.suspend(() =>
396
- S.Struct({}).pipe(T.Http({ method: "POST", uri: "/assistant.search.info", code: 200 })),
397
- ).annotate({ identifier: "SearchInfoRequest" }) as any as S.Schema<SearchInfoRequest>;
398
-
399
211
  export interface SearchInfoResponse {
400
212
  /** Always `true` (a failed call raises a typed error instead). */
401
213
  ok: boolean;
402
214
  /** Whether AI search is enabled for the team */
403
215
  is_ai_search_enabled: boolean;
404
216
  }
405
- export const SearchInfoResponse = /*@__PURE__*/ S.suspend(() =>
406
- S.Struct({
407
- ok: S.Boolean,
408
- is_ai_search_enabled: S.Boolean,
409
- }),
410
- ).annotate({ identifier: "SearchInfoResponse" }) as any as S.Schema<SearchInfoResponse>;
411
-
412
217
  /** The list of messages to rotate through as a loading indicator. Maximum of 10 messages. */
413
218
  export type SetStatusRequestLoadingMessagesList = Array<string>;
414
- export const SetStatusRequestLoadingMessagesList = /*@__PURE__*/ S.Array(
415
- S.String,
416
- ) as any as S.Schema<SetStatusRequestLoadingMessagesList>;
417
-
418
219
  export interface SetStatusRequest {
419
220
  /** Channel ID containing the assistant thread. */
420
221
  channel_id: string;
@@ -431,28 +232,10 @@ export interface SetStatusRequest {
431
232
  /** The bot's username to display. */
432
233
  username?: string;
433
234
  }
434
- export const SetStatusRequest = /*@__PURE__*/ S.suspend(() =>
435
- S.Struct({
436
- channel_id: S.String,
437
- thread_ts: S.String,
438
- status: S.String,
439
- loading_messages: S.optional(SetStatusRequestLoadingMessagesList),
440
- icon_emoji: S.optional(S.String),
441
- icon_url: S.optional(S.String),
442
- username: S.optional(S.String),
443
- }).pipe(T.Http({ method: "POST", uri: "/assistant.threads.setStatus", code: 200 })),
444
- ).annotate({ identifier: "SetStatusRequest" }) as any as S.Schema<SetStatusRequest>;
445
-
446
235
  export interface SetStatusResponse {
447
236
  /** Always `true` (a failed call raises a typed error instead). */
448
237
  ok: boolean;
449
238
  }
450
- export const SetStatusResponse = /*@__PURE__*/ S.suspend(() =>
451
- S.Struct({
452
- ok: S.Boolean,
453
- }),
454
- ).annotate({ identifier: "SetStatusResponse" }) as any as S.Schema<SetStatusResponse>;
455
-
456
239
  export interface SetSuggestedPromptsRequest {
457
240
  /** Channel ID containing the assistant thread. */
458
241
  channel_id: string;
@@ -463,29 +246,10 @@ export interface SetSuggestedPromptsRequest {
463
246
  /** Title for the list of provided prompts. For example: Suggested Prompts, Related Questions. */
464
247
  title?: string;
465
248
  }
466
- export const SetSuggestedPromptsRequest = /*@__PURE__*/ S.suspend(() =>
467
- S.Struct({
468
- channel_id: S.String,
469
- thread_ts: S.optional(S.String),
470
- prompts: S.Unknown,
471
- title: S.optional(S.String),
472
- }).pipe(T.Http({ method: "POST", uri: "/assistant.threads.setSuggestedPrompts", code: 200 })),
473
- ).annotate({
474
- identifier: "SetSuggestedPromptsRequest",
475
- }) as any as S.Schema<SetSuggestedPromptsRequest>;
476
-
477
249
  export interface SetSuggestedPromptsResponse {
478
250
  /** Always `true` (a failed call raises a typed error instead). */
479
251
  ok: boolean;
480
252
  }
481
- export const SetSuggestedPromptsResponse = /*@__PURE__*/ S.suspend(() =>
482
- S.Struct({
483
- ok: S.Boolean,
484
- }),
485
- ).annotate({
486
- identifier: "SetSuggestedPromptsResponse",
487
- }) as any as S.Schema<SetSuggestedPromptsResponse>;
488
-
489
253
  export interface SetTitleRequest {
490
254
  /** Channel ID containing the assistant thread. */
491
255
  channel_id: string;
@@ -494,95 +258,296 @@ export interface SetTitleRequest {
494
258
  /** The title to use for the thread. */
495
259
  title: string;
496
260
  }
497
- export const SetTitleRequest = /*@__PURE__*/ S.suspend(() =>
498
- S.Struct({
499
- channel_id: S.String,
500
- thread_ts: S.String,
501
- title: S.String,
502
- }).pipe(T.Http({ method: "POST", uri: "/assistant.threads.setTitle", code: 200 })),
503
- ).annotate({ identifier: "SetTitleRequest" }) as any as S.Schema<SetTitleRequest>;
504
-
505
261
  export interface SetTitleResponse {
506
262
  /** Always `true` (a failed call raises a typed error instead). */
507
263
  ok: boolean;
508
264
  }
509
- export const SetTitleResponse = /*@__PURE__*/ S.suspend(() =>
510
- S.Struct({
511
- ok: S.Boolean,
512
- }),
513
- ).annotate({ identifier: "SetTitleResponse" }) as any as S.Schema<SetTitleResponse>;
514
-
515
265
  export type SearchContextError = SlackOpError;
516
- /** Searches messages, files, channels and users across your Slack organization. Required scopes — user: `search:read.public`, `search:read.private`, `search:read.im`, `search:read.mpim`, `search:read.files`, `search:read.users`; bot: `search:read.public`, `search:read.files`, `search:read.users` Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — Internal error. - `rate_limited` — Rate limited. - `missing_query` — Missing query. - `query_too_long` — Query too long. - `feature_not_enabled` — The feature is not available on the current workspace. - `invalid_action_token` — The `action_token` provided is not valid. - `invalid_cursor` — The cursormark provided is not valid. - `context_channel_not_found` — Specified `context_channel_id` is invalid or the user lacks permission to view it. - `missing_scope` — The requested channel types are not allowed by the provided scopes. - `assistant_search_context_disabled` — We're having issues returning your search results. Please wait and try again. See https://docs.slack.dev/reference/methods/assistant.search.context */
266
+ /** Searches messages, files, channels and users across your Slack organization. Required scopes -- user: `search:read.public`, `search:read.private`, `search:read.im`, `search:read.mpim`, `search:read.files`, `search:read.users`; bot: `search:read.public`, `search:read.files`, `search:read.users` Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- Internal error. - `rate_limited` -- Rate limited. - `missing_query` -- Missing query. - `query_too_long` -- Query too long. - `feature_not_enabled` -- The feature is not available on the current workspace. - `invalid_action_token` -- The `action_token` provided is not valid. - `invalid_cursor` -- The cursormark provided is not valid. - `context_channel_not_found` -- Specified `context_channel_id` is invalid or the user lacks permission to view it. - `missing_scope` -- The requested channel types are not allowed by the provided scopes. - `assistant_search_context_disabled` -- We're having issues returning your search results. Please wait and try again. See https://docs.slack.dev/reference/methods/assistant.search.context */
517
267
  export const searchContext: API.OperationMethod<
518
268
  SearchContextRequest,
519
269
  SearchContextResponse,
520
270
  SearchContextError,
521
271
  SlackOpContext
522
272
  > = /*@__PURE__*/ API.make(() => ({
523
- input: SearchContextRequest,
524
- output: SearchContextResponse,
273
+ input: __S(1, __c0, 1) as any as S.Schema<SearchContextRequest>,
274
+ output: __S(14, __c0, 14) as any as S.Schema<SearchContextResponse>,
525
275
  errors: [SlackError, SlackRateLimited],
526
276
  protocol: SlackProtocol,
527
277
  retry: Retry.Retry,
528
278
  }));
529
279
 
530
280
  export type SearchInfoError = SlackOpError;
531
- /** Returns search capabilities on a given team. Required scopes — user: `search:read.public`; bot: `search:read.public` Rate limit tier: 2 See https://docs.slack.dev/reference/methods/assistant.search.info */
281
+ /** Returns search capabilities on a given team. Required scopes -- user: `search:read.public`; bot: `search:read.public` Rate limit tier: 2 See https://docs.slack.dev/reference/methods/assistant.search.info */
532
282
  export const searchInfo: API.OperationMethod<
533
283
  SearchInfoRequest,
534
284
  SearchInfoResponse,
535
285
  SearchInfoError,
536
286
  SlackOpContext
537
287
  > = /*@__PURE__*/ API.make(() => ({
538
- input: SearchInfoRequest,
539
- output: SearchInfoResponse,
288
+ input: __S(32, __c2, 0) as any as S.Schema<SearchInfoRequest>,
289
+ output: __S(33, __c2, 1) as any as S.Schema<SearchInfoResponse>,
540
290
  errors: [SlackError, SlackRateLimited],
541
291
  protocol: SlackProtocol,
542
292
  retry: Retry.Retry,
543
293
  }));
544
294
 
545
295
  export type SetStatusError = SlackOpError;
546
- /** Set the status for an AI assistant thread. Required scopes — bot: `chat:write` Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` — Error returned when given an invalid channel_id - `invalid_thread_ts` — Error returned when given an invalid thread_ts - `reserved_username` — Reserved usernames are not allowed to be used. - `method_not_supported_for_channel_type` — This type of conversation cannot be used with this method. Use `agents.sessions.setStatus` to set status in a session channel. See https://docs.slack.dev/reference/methods/assistant.threads.setStatus */
296
+ /** Set the status for an AI assistant thread. Required scopes -- bot: `chat:write` Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `channel_not_found` -- Error returned when given an invalid channel_id - `invalid_thread_ts` -- Error returned when given an invalid thread_ts - `reserved_username` -- Reserved usernames are not allowed to be used. - `method_not_supported_for_channel_type` -- This type of conversation cannot be used with this method. Use `agents.sessions.setStatus` to set status in a session channel. See https://docs.slack.dev/reference/methods/assistant.threads.setStatus */
547
297
  export const setStatus: API.OperationMethod<
548
298
  SetStatusRequest,
549
299
  SetStatusResponse,
550
300
  SetStatusError,
551
301
  SlackOpContext
552
302
  > = /*@__PURE__*/ API.make(() => ({
553
- input: SetStatusRequest,
554
- output: SetStatusResponse,
303
+ input: __S(48, __c3, 0) as any as S.Schema<SetStatusRequest>,
304
+ output: __S(64, __c4, 0) as any as S.Schema<SetStatusResponse>,
555
305
  errors: [SlackError, SlackRateLimited],
556
306
  protocol: SlackProtocol,
557
307
  retry: Retry.Retry,
558
308
  }));
559
309
 
560
310
  export type SetSuggestedPromptsError = SlackOpError;
561
- /** Set suggested prompts for the given assistant thread Required scopes — bot: `assistant:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_thread_ts` — Thread not found - `missing_thread_ts` — Missing thread_ts - `channel_not_found` — Error returned when given an invalid channel_id - `message_not_found` — Error returned when given an invalid message - `not_agent_app` — This method requires the app to be configured as an agent. Enable the Agent feature in your app configuration at https://api.slack.com/apps. - `static_prompts_configured` — Suggested prompts can't be set dynamically without thread_ts because the app already has static suggested prompts configured. Remove the static prompts in your app configuration to set them via this method without thread_ts. See https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts */
311
+ /** Set suggested prompts for the given assistant thread Required scopes -- bot: `assistant:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_thread_ts` -- Thread not found - `missing_thread_ts` -- Missing thread_ts - `channel_not_found` -- Error returned when given an invalid channel_id - `message_not_found` -- Error returned when given an invalid message - `not_agent_app` -- This method requires the app to be configured as an agent. Enable the Agent feature in your app configuration at https://api.slack.com/apps. - `static_prompts_configured` -- Suggested prompts can't be set dynamically without thread_ts because the app already has static suggested prompts configured. Remove the static prompts in your app configuration to set them via this method without thread_ts. See https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts */
562
312
  export const setSuggestedPrompts: API.OperationMethod<
563
313
  SetSuggestedPromptsRequest,
564
314
  SetSuggestedPromptsResponse,
565
315
  SetSuggestedPromptsError,
566
316
  SlackOpContext
567
317
  > = /*@__PURE__*/ API.make(() => ({
568
- input: SetSuggestedPromptsRequest,
569
- output: SetSuggestedPromptsResponse,
318
+ input: __S(80, __c5, 0) as any as S.Schema<SetSuggestedPromptsRequest>,
319
+ output: __S(64, __c4, 0) as any as S.Schema<SetSuggestedPromptsResponse>,
570
320
  errors: [SlackError, SlackRateLimited],
571
321
  protocol: SlackProtocol,
572
322
  retry: Retry.Retry,
573
323
  }));
574
324
 
575
325
  export type SetTitleError = SlackOpError;
576
- /** Set the title for the given assistant thread Required scopes — bot: `assistant:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_thread_ts` — Thread not found - `channel_not_found` — Error returned when given an invalid channel_id See https://docs.slack.dev/reference/methods/assistant.threads.setTitle */
326
+ /** Set the title for the given assistant thread Required scopes -- bot: `assistant:write` Rate limit tier: 4 Method-specific errors (the `error` slug on the SlackError): - `invalid_thread_ts` -- Thread not found - `channel_not_found` -- Error returned when given an invalid channel_id See https://docs.slack.dev/reference/methods/assistant.threads.setTitle */
577
327
  export const setTitle: API.OperationMethod<
578
328
  SetTitleRequest,
579
329
  SetTitleResponse,
580
330
  SetTitleError,
581
331
  SlackOpContext
582
332
  > = /*@__PURE__*/ API.make(() => ({
583
- input: SetTitleRequest,
584
- output: SetTitleResponse,
333
+ input: __S(96, __c6, 0) as any as S.Schema<SetTitleRequest>,
334
+ output: __S(64, __c4, 0) as any as S.Schema<SetTitleResponse>,
585
335
  errors: [SlackError, SlackRateLimited],
586
336
  protocol: SlackProtocol,
587
337
  retry: Retry.Retry,
588
338
  }));
339
+
340
+ // Schema builders: each runs one schema initializer, on that schema's first use.
341
+ function __c0(j: number): any {
342
+ switch (j) {
343
+ case 0:
344
+ return S.Array(S.String);
345
+ case 1:
346
+ return S.suspend(() =>
347
+ S.Struct({
348
+ query: S.String,
349
+ action_token: S.optional(S.String),
350
+ channel_types: S.optional(__S(0, __c0, 0)),
351
+ content_types: S.optional(__S(0, __c0, 0)),
352
+ include_bots: S.optional(S.Boolean),
353
+ include_deleted_users: S.optional(S.Boolean),
354
+ before: S.optional(S.Number),
355
+ after: S.optional(S.Number),
356
+ include_context_messages: S.optional(S.Boolean),
357
+ context_channel_id: S.optional(S.String),
358
+ cursor: S.optional(S.String),
359
+ limit: S.optional(S.Number),
360
+ sort: S.optional(S.String),
361
+ sort_dir: S.optional(S.String),
362
+ include_message_blocks: S.optional(S.Boolean),
363
+ highlight: S.optional(S.Boolean),
364
+ term_clauses: S.optional(__S(16, __c1, 0)),
365
+ modifiers: S.optional(S.String),
366
+ include_archived_channels: S.optional(S.Boolean),
367
+ disable_semantic_search: S.optional(S.Boolean),
368
+ }).pipe(T.Http({ method: "POST", uri: "/assistant.search.context", code: 200 })),
369
+ ).annotate({ identifier: "SearchContextRequest" });
370
+ case 2:
371
+ return S.Array(S.Unknown);
372
+ case 3:
373
+ return S.suspend(() =>
374
+ S.Struct({
375
+ before: S.optional(__S(2, __c0, 2)),
376
+ after: S.optional(__S(2, __c0, 2)),
377
+ }),
378
+ ).annotate({ identifier: "SearchContextResponseResultsMessagesItemContextMessages" });
379
+ case 4:
380
+ return S.suspend(() =>
381
+ S.Struct({
382
+ author_name: S.String,
383
+ author_email: S.optional(S.String),
384
+ author_user_id: S.String,
385
+ team_id: S.String,
386
+ channel_id: S.String,
387
+ channel_name: S.String,
388
+ message_ts: S.String,
389
+ content: S.String,
390
+ is_author_bot: S.Boolean,
391
+ permalink: S.String,
392
+ context_messages: S.optional(__S(3, __c0, 3)),
393
+ blocks: S.optional(__S(2, __c0, 2)),
394
+ reply_count: S.optional(S.Number),
395
+ }),
396
+ ).annotate({ identifier: "SearchContextResponseResultsMessagesItem" });
397
+ case 5:
398
+ return S.Array(__S(4, __c0, 4));
399
+ case 6:
400
+ return S.suspend(() =>
401
+ S.Struct({
402
+ author_name: S.String,
403
+ author_email: S.optional(S.String),
404
+ author_user_id: S.String,
405
+ uploader_user_id: S.String,
406
+ team_id: S.String,
407
+ file_id: S.String,
408
+ date_created: S.Number,
409
+ date_updated: S.Number,
410
+ title: S.String,
411
+ file_type: S.String,
412
+ permalink: S.String,
413
+ content: S.String,
414
+ size: S.optional(S.Number),
415
+ }),
416
+ ).annotate({ identifier: "SearchContextResponseResultsFilesItem" });
417
+ case 7:
418
+ return S.Array(__S(6, __c0, 6));
419
+ case 8:
420
+ return S.suspend(() =>
421
+ S.Struct({
422
+ team_id: S.String,
423
+ creator_user_id: S.String,
424
+ creator_name: S.optional(S.String),
425
+ date_created: S.Number,
426
+ date_updated: S.Number,
427
+ name: S.String,
428
+ topic: S.optional(S.String),
429
+ purpose: S.optional(S.String),
430
+ permalink: S.String,
431
+ is_archived: S.Boolean,
432
+ }),
433
+ ).annotate({ identifier: "SearchContextResponseResultsChannelsItem" });
434
+ case 9:
435
+ return S.Array(__S(8, __c0, 8));
436
+ case 10:
437
+ return S.suspend(() =>
438
+ S.Struct({
439
+ user_id: S.String,
440
+ permalink: S.String,
441
+ profile_pic_permalink: S.optional(S.String),
442
+ full_name: S.String,
443
+ title: S.String,
444
+ timezone: S.String,
445
+ email: S.String,
446
+ }),
447
+ ).annotate({ identifier: "SearchContextResponseResultsUsersItem" });
448
+ case 11:
449
+ return S.Array(__S(10, __c0, 10));
450
+ case 12:
451
+ return S.suspend(() =>
452
+ S.Struct({
453
+ messages: S.optional(__S(5, __c0, 5)),
454
+ files: S.optional(__S(7, __c0, 7)),
455
+ enterprise: S.optional(__S(2, __c0, 2)),
456
+ channels: S.optional(__S(9, __c0, 9)),
457
+ users: S.optional(__S(11, __c0, 11)),
458
+ }),
459
+ ).annotate({ identifier: "SearchContextResponseResults" });
460
+ case 13:
461
+ return S.suspend(() =>
462
+ S.Struct({
463
+ next_cursor: S.optional(S.String),
464
+ }),
465
+ ).annotate({ identifier: "SearchContextResponseResponseMetadata" });
466
+ case 14:
467
+ return S.suspend(() =>
468
+ S.Struct({
469
+ ok: S.Boolean,
470
+ results: __S(12, __c0, 12),
471
+ response_metadata: S.optional(__S(13, __c0, 13)),
472
+ }),
473
+ ).annotate({ identifier: "SearchContextResponse" });
474
+ }
475
+ }
476
+ function __c1(j: number): any {
477
+ switch (j) {
478
+ case 0:
479
+ return S.Array(S.String);
480
+ }
481
+ }
482
+ function __c2(j: number): any {
483
+ switch (j) {
484
+ case 0:
485
+ return S.suspend(() =>
486
+ S.Struct({}).pipe(T.Http({ method: "POST", uri: "/assistant.search.info", code: 200 })),
487
+ ).annotate({ identifier: "SearchInfoRequest" });
488
+ case 1:
489
+ return S.suspend(() =>
490
+ S.Struct({
491
+ ok: S.Boolean,
492
+ is_ai_search_enabled: S.Boolean,
493
+ }),
494
+ ).annotate({ identifier: "SearchInfoResponse" });
495
+ }
496
+ }
497
+ function __c3(j: number): any {
498
+ switch (j) {
499
+ case 0:
500
+ return S.suspend(() =>
501
+ S.Struct({
502
+ channel_id: S.String,
503
+ thread_ts: S.String,
504
+ status: S.String,
505
+ loading_messages: S.optional(__S(16, __c1, 0)),
506
+ icon_emoji: S.optional(S.String),
507
+ icon_url: S.optional(S.String),
508
+ username: S.optional(S.String),
509
+ }).pipe(T.Http({ method: "POST", uri: "/assistant.threads.setStatus", code: 200 })),
510
+ ).annotate({ identifier: "SetStatusRequest" });
511
+ }
512
+ }
513
+ function __c4(j: number): any {
514
+ switch (j) {
515
+ case 0:
516
+ return S.suspend(() =>
517
+ S.Struct({
518
+ ok: S.Boolean,
519
+ }),
520
+ ).annotate({ identifier: "SetStatusResponse" });
521
+ }
522
+ }
523
+ function __c5(j: number): any {
524
+ switch (j) {
525
+ case 0:
526
+ return S.suspend(() =>
527
+ S.Struct({
528
+ channel_id: S.String,
529
+ thread_ts: S.optional(S.String),
530
+ prompts: S.Unknown,
531
+ title: S.optional(S.String),
532
+ }).pipe(
533
+ T.Http({ method: "POST", uri: "/assistant.threads.setSuggestedPrompts", code: 200 }),
534
+ ),
535
+ ).annotate({ identifier: "SetSuggestedPromptsRequest" });
536
+ }
537
+ }
538
+ function __c6(j: number): any {
539
+ switch (j) {
540
+ case 0:
541
+ return S.suspend(() =>
542
+ S.Struct({
543
+ channel_id: S.String,
544
+ thread_ts: S.String,
545
+ title: S.String,
546
+ }).pipe(T.Http({ method: "POST", uri: "/assistant.threads.setTitle", code: 200 })),
547
+ ).annotate({ identifier: "SetTitleRequest" });
548
+ }
549
+ }
550
+ // Schema table: entry i is schema j of builder f, made on first reach.
551
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
552
+ return (__s[i] ??= __L.at(f, j));
553
+ }