@distilled.cloud/slack 1.0.0-rc.14 → 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,26 +1,18 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
- import * as S from "@distilled.cloud/core/schema";
3
2
  import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
4
3
  export type { SlackOpError, SlackOpContext };
5
4
  export type SearchContextRequestChannelTypesItem = "public_channel" | "private_channel" | "mpim" | "im";
6
- export declare const SearchContextRequestChannelTypesItem: any;
7
5
  /** Mix and match channel types by providing a comma-separated list of any combination of `public_channel`, `private_channel`, `mpim`, `im`. */
8
6
  export type SearchContextRequestChannelTypesList = Array<SearchContextRequestChannelTypesItem | (string & {})>;
9
- export declare const SearchContextRequestChannelTypesList: S.Schema<SearchContextRequestChannelTypesList>;
10
7
  export type SearchContextRequestContentTypesItem = "messages" | "files" | "enterprise" | "channels" | "users";
11
- export declare const SearchContextRequestContentTypesItem: any;
12
8
  /** Content types to include, a comma-separated list of any combination of `messages`, `files`, `channels`, `users`. */
13
9
  export type SearchContextRequestContentTypesList = Array<SearchContextRequestContentTypesItem | (string & {})>;
14
- export declare const SearchContextRequestContentTypesList: S.Schema<SearchContextRequestContentTypesList>;
15
10
  /** The field to sort the results by. Defaults to score. Can be one of: score, timestamp. */
16
11
  export type SearchContextRequestSort = "score" | "timestamp";
17
- export declare const SearchContextRequestSort: any;
18
12
  /** The direction to sort the results by. Defaults to desc. */
19
13
  export type SearchContextRequestSortDir = "asc" | "desc";
20
- export declare const SearchContextRequestSortDir: any;
21
14
  /** 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). */
22
15
  export type SearchContextRequestTermClausesList = Array<string>;
23
- export declare const SearchContextRequestTermClausesList: S.Schema<SearchContextRequestTermClausesList>;
24
16
  export interface SearchContextRequest {
25
17
  /** User prompt or search query */
26
18
  query: string;
@@ -63,23 +55,18 @@ export interface SearchContextRequest {
63
55
  /** Whether to disable semantic search. When true, only keyword-based search is used. Defaults to false. */
64
56
  disable_semantic_search?: boolean;
65
57
  }
66
- export declare const SearchContextRequest: S.Schema<SearchContextRequest>;
67
58
  /** Messages before the current message, if applicable. */
68
59
  export type SearchContextResponseResultsMessagesItemContextMessagesBeforeList = Array<unknown>;
69
- export declare const SearchContextResponseResultsMessagesItemContextMessagesBeforeList: S.Schema<SearchContextResponseResultsMessagesItemContextMessagesBeforeList>;
70
60
  /** Messages after the current message. */
71
61
  export type SearchContextResponseResultsMessagesItemContextMessagesAfterList = Array<unknown>;
72
- export declare const SearchContextResponseResultsMessagesItemContextMessagesAfterList: S.Schema<SearchContextResponseResultsMessagesItemContextMessagesAfterList>;
73
62
  export interface SearchContextResponseResultsMessagesItemContextMessages {
74
63
  /** Messages before the current message, if applicable. */
75
64
  before?: SearchContextResponseResultsMessagesItemContextMessagesBeforeList;
76
65
  /** Messages after the current message. */
77
66
  after?: SearchContextResponseResultsMessagesItemContextMessagesAfterList;
78
67
  }
79
- export declare const SearchContextResponseResultsMessagesItemContextMessages: S.Schema<SearchContextResponseResultsMessagesItemContextMessages>;
80
68
  /** Blocks from the retrieved message. */
81
69
  export type SearchContextResponseResultsMessagesItemBlocksList = Array<unknown>;
82
- export declare const SearchContextResponseResultsMessagesItemBlocksList: S.Schema<SearchContextResponseResultsMessagesItemBlocksList>;
83
70
  export interface SearchContextResponseResultsMessagesItem {
84
71
  /** Full name of the user who authored the message. */
85
72
  author_name: string;
@@ -105,9 +92,7 @@ export interface SearchContextResponseResultsMessagesItem {
105
92
  blocks?: SearchContextResponseResultsMessagesItemBlocksList;
106
93
  reply_count?: number;
107
94
  }
108
- export declare const SearchContextResponseResultsMessagesItem: S.Schema<SearchContextResponseResultsMessagesItem>;
109
95
  export type SearchContextResponseResultsMessagesList = Array<SearchContextResponseResultsMessagesItem>;
110
- export declare const SearchContextResponseResultsMessagesList: S.Schema<SearchContextResponseResultsMessagesList>;
111
96
  export interface SearchContextResponseResultsFilesItem {
112
97
  /** Full name of the user who uploaded or created the file. */
113
98
  author_name: string;
@@ -136,11 +121,8 @@ export interface SearchContextResponseResultsFilesItem {
136
121
  /** Size of the file in bytes. */
137
122
  size?: number;
138
123
  }
139
- export declare const SearchContextResponseResultsFilesItem: S.Schema<SearchContextResponseResultsFilesItem>;
140
124
  export type SearchContextResponseResultsFilesList = Array<SearchContextResponseResultsFilesItem>;
141
- export declare const SearchContextResponseResultsFilesList: S.Schema<SearchContextResponseResultsFilesList>;
142
125
  export type SearchContextResponseResultsEnterpriseList = Array<unknown>;
143
- export declare const SearchContextResponseResultsEnterpriseList: S.Schema<SearchContextResponseResultsEnterpriseList>;
144
126
  export interface SearchContextResponseResultsChannelsItem {
145
127
  /** ID of the workspace in which the channel was created. */
146
128
  team_id: string;
@@ -163,9 +145,7 @@ export interface SearchContextResponseResultsChannelsItem {
163
145
  /** Whether the channel is archived. */
164
146
  is_archived: boolean;
165
147
  }
166
- export declare const SearchContextResponseResultsChannelsItem: S.Schema<SearchContextResponseResultsChannelsItem>;
167
148
  export type SearchContextResponseResultsChannelsList = Array<SearchContextResponseResultsChannelsItem>;
168
- export declare const SearchContextResponseResultsChannelsList: S.Schema<SearchContextResponseResultsChannelsList>;
169
149
  export interface SearchContextResponseResultsUsersItem {
170
150
  /** The encoded user ID */
171
151
  user_id: string;
@@ -182,9 +162,7 @@ export interface SearchContextResponseResultsUsersItem {
182
162
  /** The user's email address. */
183
163
  email: string;
184
164
  }
185
- export declare const SearchContextResponseResultsUsersItem: S.Schema<SearchContextResponseResultsUsersItem>;
186
165
  export type SearchContextResponseResultsUsersList = Array<SearchContextResponseResultsUsersItem>;
187
- export declare const SearchContextResponseResultsUsersList: S.Schema<SearchContextResponseResultsUsersList>;
188
166
  export interface SearchContextResponseResults {
189
167
  messages?: SearchContextResponseResultsMessagesList;
190
168
  files?: SearchContextResponseResultsFilesList;
@@ -192,13 +170,11 @@ export interface SearchContextResponseResults {
192
170
  channels?: SearchContextResponseResultsChannelsList;
193
171
  users?: SearchContextResponseResultsUsersList;
194
172
  }
195
- export declare const SearchContextResponseResults: S.Schema<SearchContextResponseResults>;
196
173
  /** Pagination metadata. An empty `next_cursor` means the last page. */
197
174
  export interface SearchContextResponseResponseMetadata {
198
- /** Cursor for the next page — pass as `cursor` on the next call. */
175
+ /** Cursor for the next page -- pass as `cursor` on the next call. */
199
176
  next_cursor?: string;
200
177
  }
201
- export declare const SearchContextResponseResponseMetadata: S.Schema<SearchContextResponseResponseMetadata>;
202
178
  export interface SearchContextResponse {
203
179
  /** Always `true` (a failed call raises a typed error instead). */
204
180
  ok: boolean;
@@ -206,20 +182,16 @@ export interface SearchContextResponse {
206
182
  /** Pagination metadata. An empty `next_cursor` means the last page. */
207
183
  response_metadata?: SearchContextResponseResponseMetadata;
208
184
  }
209
- export declare const SearchContextResponse: S.Schema<SearchContextResponse>;
210
185
  export interface SearchInfoRequest {
211
186
  }
212
- export declare const SearchInfoRequest: S.Schema<SearchInfoRequest>;
213
187
  export interface SearchInfoResponse {
214
188
  /** Always `true` (a failed call raises a typed error instead). */
215
189
  ok: boolean;
216
190
  /** Whether AI search is enabled for the team */
217
191
  is_ai_search_enabled: boolean;
218
192
  }
219
- export declare const SearchInfoResponse: S.Schema<SearchInfoResponse>;
220
193
  /** The list of messages to rotate through as a loading indicator. Maximum of 10 messages. */
221
194
  export type SetStatusRequestLoadingMessagesList = Array<string>;
222
- export declare const SetStatusRequestLoadingMessagesList: S.Schema<SetStatusRequestLoadingMessagesList>;
223
195
  export interface SetStatusRequest {
224
196
  /** Channel ID containing the assistant thread. */
225
197
  channel_id: string;
@@ -236,12 +208,10 @@ export interface SetStatusRequest {
236
208
  /** The bot's username to display. */
237
209
  username?: string;
238
210
  }
239
- export declare const SetStatusRequest: S.Schema<SetStatusRequest>;
240
211
  export interface SetStatusResponse {
241
212
  /** Always `true` (a failed call raises a typed error instead). */
242
213
  ok: boolean;
243
214
  }
244
- export declare const SetStatusResponse: S.Schema<SetStatusResponse>;
245
215
  export interface SetSuggestedPromptsRequest {
246
216
  /** Channel ID containing the assistant thread. */
247
217
  channel_id: string;
@@ -252,12 +222,10 @@ export interface SetSuggestedPromptsRequest {
252
222
  /** Title for the list of provided prompts. For example: Suggested Prompts, Related Questions. */
253
223
  title?: string;
254
224
  }
255
- export declare const SetSuggestedPromptsRequest: S.Schema<SetSuggestedPromptsRequest>;
256
225
  export interface SetSuggestedPromptsResponse {
257
226
  /** Always `true` (a failed call raises a typed error instead). */
258
227
  ok: boolean;
259
228
  }
260
- export declare const SetSuggestedPromptsResponse: S.Schema<SetSuggestedPromptsResponse>;
261
229
  export interface SetTitleRequest {
262
230
  /** Channel ID containing the assistant thread. */
263
231
  channel_id: string;
@@ -266,25 +234,23 @@ export interface SetTitleRequest {
266
234
  /** The title to use for the thread. */
267
235
  title: string;
268
236
  }
269
- export declare const SetTitleRequest: S.Schema<SetTitleRequest>;
270
237
  export interface SetTitleResponse {
271
238
  /** Always `true` (a failed call raises a typed error instead). */
272
239
  ok: boolean;
273
240
  }
274
- export declare const SetTitleResponse: S.Schema<SetTitleResponse>;
275
241
  export type SearchContextError = SlackOpError;
276
- /** 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 */
242
+ /** 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 */
277
243
  export declare const searchContext: API.OperationMethod<SearchContextRequest, SearchContextResponse, SearchContextError, SlackOpContext>;
278
244
  export type SearchInfoError = SlackOpError;
279
- /** 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 */
245
+ /** 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 */
280
246
  export declare const searchInfo: API.OperationMethod<SearchInfoRequest, SearchInfoResponse, SearchInfoError, SlackOpContext>;
281
247
  export type SetStatusError = SlackOpError;
282
- /** 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 */
248
+ /** 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 */
283
249
  export declare const setStatus: API.OperationMethod<SetStatusRequest, SetStatusResponse, SetStatusError, SlackOpContext>;
284
250
  export type SetSuggestedPromptsError = SlackOpError;
285
- /** 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 */
251
+ /** 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 */
286
252
  export declare const setSuggestedPrompts: API.OperationMethod<SetSuggestedPromptsRequest, SetSuggestedPromptsResponse, SetSuggestedPromptsError, SlackOpContext>;
287
253
  export type SetTitleError = SlackOpError;
288
- /** 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 */
254
+ /** 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 */
289
255
  export declare const setTitle: API.OperationMethod<SetTitleRequest, SetTitleResponse, SetTitleError, SlackOpContext>;
290
256
  //# sourceMappingURL=assistant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"assistant.d.ts","sourceRoot":"","sources":["../../src/services/assistant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAEjD,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAElD,OAAO,EAAiB,KAAK,YAAY,EA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;IAC9B,kDAAkD;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,gBAAgB;IAC/B,kEAAkE;IAClE,EAAE,EAAE,OAAO,CAAC;CACb;AACD,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAC9C,6mCAA6mC;AAC7mC,eAAO,MAAM,aAAa,EAAE,GAAG,CAAC,eAAe,CAC7C,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAC3C,kNAAkN;AAClN,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,eAAe,CAC1C,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC;AAC1C,onBAAonB;AACpnB,eAAO,MAAM,SAAS,EAAE,GAAG,CAAC,eAAe,CACzC,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC;AACpD,g5BAAg5B;AACh5B,eAAO,MAAM,mBAAmB,EAAE,GAAG,CAAC,eAAe,CACnD,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,cAAc,CAOb,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC;AACzC,wWAAwW;AACxW,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,eAAe,CACxC,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,cAAc,CAOb,CAAC"}
@@ -1,210 +1,39 @@
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.js";
5
6
  import { SlackProtocol } from "../protocol.js";
6
7
  import * as Retry from "../retry.js";
7
8
  import * as T from "../traits.js";
8
- export const SearchContextRequestChannelTypesItem = S.String;
9
- export const SearchContextRequestChannelTypesList = /*@__PURE__*/ S.Array(SearchContextRequestChannelTypesItem);
10
- export const SearchContextRequestContentTypesItem = S.String;
11
- export const SearchContextRequestContentTypesList = /*@__PURE__*/ S.Array(SearchContextRequestContentTypesItem);
12
- export const SearchContextRequestSort = S.String;
13
- export const SearchContextRequestSortDir = S.String;
14
- export const SearchContextRequestTermClausesList = /*@__PURE__*/ S.Array(S.String);
15
- export const SearchContextRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
16
- query: S.String,
17
- action_token: S.optional(S.String),
18
- channel_types: S.optional(SearchContextRequestChannelTypesList),
19
- content_types: S.optional(SearchContextRequestContentTypesList),
20
- include_bots: S.optional(S.Boolean),
21
- include_deleted_users: S.optional(S.Boolean),
22
- before: S.optional(S.Number),
23
- after: S.optional(S.Number),
24
- include_context_messages: S.optional(S.Boolean),
25
- context_channel_id: S.optional(S.String),
26
- cursor: S.optional(S.String),
27
- limit: S.optional(S.Number),
28
- sort: S.optional(SearchContextRequestSort),
29
- sort_dir: S.optional(SearchContextRequestSortDir),
30
- include_message_blocks: S.optional(S.Boolean),
31
- highlight: S.optional(S.Boolean),
32
- term_clauses: S.optional(SearchContextRequestTermClausesList),
33
- modifiers: S.optional(S.String),
34
- include_archived_channels: S.optional(S.Boolean),
35
- disable_semantic_search: S.optional(S.Boolean),
36
- }).pipe(T.Http({ method: "POST", uri: "/assistant.search.context", code: 200 }))).annotate({ identifier: "SearchContextRequest" });
37
- export const SearchContextResponseResultsMessagesItemContextMessagesBeforeList =
38
- /*@__PURE__*/ S.Array(S.Unknown);
39
- export const SearchContextResponseResultsMessagesItemContextMessagesAfterList =
40
- /*@__PURE__*/ S.Array(S.Unknown);
41
- export const SearchContextResponseResultsMessagesItemContextMessages = /*@__PURE__*/ S.suspend(() => S.Struct({
42
- before: S.optional(SearchContextResponseResultsMessagesItemContextMessagesBeforeList),
43
- after: S.optional(SearchContextResponseResultsMessagesItemContextMessagesAfterList),
44
- })).annotate({
45
- identifier: "SearchContextResponseResultsMessagesItemContextMessages",
46
- });
47
- export const SearchContextResponseResultsMessagesItemBlocksList = /*@__PURE__*/ S.Array(S.Unknown);
48
- export const SearchContextResponseResultsMessagesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
49
- author_name: S.String,
50
- author_email: S.optional(S.String),
51
- author_user_id: S.String,
52
- team_id: S.String,
53
- channel_id: S.String,
54
- channel_name: S.String,
55
- message_ts: S.String,
56
- content: S.String,
57
- is_author_bot: S.Boolean,
58
- permalink: S.String,
59
- context_messages: S.optional(SearchContextResponseResultsMessagesItemContextMessages),
60
- blocks: S.optional(SearchContextResponseResultsMessagesItemBlocksList),
61
- reply_count: S.optional(S.Number),
62
- })).annotate({
63
- identifier: "SearchContextResponseResultsMessagesItem",
64
- });
65
- export const SearchContextResponseResultsMessagesList = /*@__PURE__*/ S.Array(SearchContextResponseResultsMessagesItem);
66
- export const SearchContextResponseResultsFilesItem = /*@__PURE__*/ S.suspend(() => S.Struct({
67
- author_name: S.String,
68
- author_email: S.optional(S.String),
69
- author_user_id: S.String,
70
- uploader_user_id: S.String,
71
- team_id: S.String,
72
- file_id: S.String,
73
- date_created: S.Number,
74
- date_updated: S.Number,
75
- title: S.String,
76
- file_type: S.String,
77
- permalink: S.String,
78
- content: S.String,
79
- size: S.optional(S.Number),
80
- })).annotate({
81
- identifier: "SearchContextResponseResultsFilesItem",
82
- });
83
- export const SearchContextResponseResultsFilesList = /*@__PURE__*/ S.Array(SearchContextResponseResultsFilesItem);
84
- export const SearchContextResponseResultsEnterpriseList = /*@__PURE__*/ S.Array(S.Unknown);
85
- export const SearchContextResponseResultsChannelsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
86
- team_id: S.String,
87
- creator_user_id: S.String,
88
- creator_name: S.optional(S.String),
89
- date_created: S.Number,
90
- date_updated: S.Number,
91
- name: S.String,
92
- topic: S.optional(S.String),
93
- purpose: S.optional(S.String),
94
- permalink: S.String,
95
- is_archived: S.Boolean,
96
- })).annotate({
97
- identifier: "SearchContextResponseResultsChannelsItem",
98
- });
99
- export const SearchContextResponseResultsChannelsList = /*@__PURE__*/ S.Array(SearchContextResponseResultsChannelsItem);
100
- export const SearchContextResponseResultsUsersItem = /*@__PURE__*/ S.suspend(() => S.Struct({
101
- user_id: S.String,
102
- permalink: S.String,
103
- profile_pic_permalink: S.optional(S.String),
104
- full_name: S.String,
105
- title: S.String,
106
- timezone: S.String,
107
- email: S.String,
108
- })).annotate({
109
- identifier: "SearchContextResponseResultsUsersItem",
110
- });
111
- export const SearchContextResponseResultsUsersList = /*@__PURE__*/ S.Array(SearchContextResponseResultsUsersItem);
112
- export const SearchContextResponseResults = /*@__PURE__*/ S.suspend(() => S.Struct({
113
- messages: S.optional(SearchContextResponseResultsMessagesList),
114
- files: S.optional(SearchContextResponseResultsFilesList),
115
- enterprise: S.optional(SearchContextResponseResultsEnterpriseList),
116
- channels: S.optional(SearchContextResponseResultsChannelsList),
117
- users: S.optional(SearchContextResponseResultsUsersList),
118
- })).annotate({
119
- identifier: "SearchContextResponseResults",
120
- });
121
- export const SearchContextResponseResponseMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
122
- next_cursor: S.optional(S.String),
123
- })).annotate({
124
- identifier: "SearchContextResponseResponseMetadata",
125
- });
126
- export const SearchContextResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
127
- ok: S.Boolean,
128
- results: SearchContextResponseResults,
129
- response_metadata: S.optional(SearchContextResponseResponseMetadata),
130
- })).annotate({ identifier: "SearchContextResponse" });
131
- export const SearchInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/assistant.search.info", code: 200 }))).annotate({ identifier: "SearchInfoRequest" });
132
- export const SearchInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
133
- ok: S.Boolean,
134
- is_ai_search_enabled: S.Boolean,
135
- })).annotate({ identifier: "SearchInfoResponse" });
136
- export const SetStatusRequestLoadingMessagesList = /*@__PURE__*/ S.Array(S.String);
137
- export const SetStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
138
- channel_id: S.String,
139
- thread_ts: S.String,
140
- status: S.String,
141
- loading_messages: S.optional(SetStatusRequestLoadingMessagesList),
142
- icon_emoji: S.optional(S.String),
143
- icon_url: S.optional(S.String),
144
- username: S.optional(S.String),
145
- }).pipe(T.Http({ method: "POST", uri: "/assistant.threads.setStatus", code: 200 }))).annotate({ identifier: "SetStatusRequest" });
146
- export const SetStatusResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
147
- ok: S.Boolean,
148
- })).annotate({ identifier: "SetStatusResponse" });
149
- export const SetSuggestedPromptsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
150
- channel_id: S.String,
151
- thread_ts: S.optional(S.String),
152
- prompts: S.Unknown,
153
- title: S.optional(S.String),
154
- }).pipe(T.Http({ method: "POST", uri: "/assistant.threads.setSuggestedPrompts", code: 200 }))).annotate({
155
- identifier: "SetSuggestedPromptsRequest",
156
- });
157
- export const SetSuggestedPromptsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
158
- ok: S.Boolean,
159
- })).annotate({
160
- identifier: "SetSuggestedPromptsResponse",
161
- });
162
- export const SetTitleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
163
- channel_id: S.String,
164
- thread_ts: S.String,
165
- title: S.String,
166
- }).pipe(T.Http({ method: "POST", uri: "/assistant.threads.setTitle", code: 200 }))).annotate({ identifier: "SetTitleRequest" });
167
- export const SetTitleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
168
- ok: S.Boolean,
169
- })).annotate({ identifier: "SetTitleResponse" });
170
- /** 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 */
171
- export const searchContext = /*@__PURE__*/ API.make(() => ({
172
- input: SearchContextRequest,
173
- output: SearchContextResponse,
174
- errors: [SlackError, SlackRateLimited],
175
- protocol: SlackProtocol,
176
- retry: Retry.Retry,
177
- }));
178
- /** 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 */
179
- export const searchInfo = /*@__PURE__*/ API.make(() => ({
180
- input: SearchInfoRequest,
181
- output: SearchInfoResponse,
182
- errors: [SlackError, SlackRateLimited],
183
- protocol: SlackProtocol,
184
- retry: Retry.Retry,
185
- }));
186
- /** 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 */
187
- export const setStatus = /*@__PURE__*/ API.make(() => ({
188
- input: SetStatusRequest,
189
- output: SetStatusResponse,
190
- errors: [SlackError, SlackRateLimited],
191
- protocol: SlackProtocol,
192
- retry: Retry.Retry,
193
- }));
194
- /** 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 */
195
- export const setSuggestedPrompts = /*@__PURE__*/ API.make(() => ({
196
- input: SetSuggestedPromptsRequest,
197
- output: SetSuggestedPromptsResponse,
198
- errors: [SlackError, SlackRateLimited],
199
- protocol: SlackProtocol,
200
- retry: Retry.Retry,
201
- }));
202
- /** 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 */
203
- export const setTitle = /*@__PURE__*/ API.make(() => ({
204
- input: SetTitleRequest,
205
- output: SetTitleResponse,
206
- errors: [SlackError, SlackRateLimited],
207
- protocol: SlackProtocol,
208
- retry: Retry.Retry,
209
- }));
210
- //# sourceMappingURL=assistant.js.map
9
+ const __0 = __L.at;
10
+ const __1 = S.String;
11
+ const __2 = S.Array;
12
+ const __3 = T.Http;
13
+ const __4 = S.optional;
14
+ const __5 = S.Boolean;
15
+ const __6 = S.Number;
16
+ const __7 = S.Struct;
17
+ const __8 = S.suspend;
18
+ const __9 = S.Unknown;
19
+
20
+ export const searchContext = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("SearchContextResponse", '{input:#2,output:#15,errors:[$11,$12],protocol:$13,retry:$14};$2($1);$9(>16)@"SearchContextRequest";$2($10);$9(>17)@"%ResultsMessagesItemContextMessages";$9(>18)@"%ResultsMessagesItem";$2(#5);$9(>19)@"%ResultsFilesItem";$2(#7);$9(>20)@"%ResultsChannelsItem";$2(#9);$9(>21)@"%ResultsUsersItem";$2(#11);$9(>22)@"%Results";$9(>23)@"%ResponseMetadata";$9(>24)@"%";$8({query:$1,action_token:$4($1),channel_types:$4(#1),content_types:$4(#1),include_bots:$4($5),include_deleted_users:$4($5),before:$4($6),after:$4($6),include_context_messages:$4($5),context_channel_id:$4($1),cursor:$4($1),limit:$4($6),sort:$4($1),sort_dir:$4($1),include_message_blocks:$4($5),highlight:$4($5),term_clauses:$4(#7:0),modifiers:$4($1),include_archived_channels:$4($5),disable_semantic_search:$4($5)}).pipe($3({method:"POST",uri:"/assistant.search.context",code:200}));$8({before:$4(#3),after:$4(#3)});$8({author_name:$1,author_email:$4($1),author_user_id:$1,team_id:$1,channel_id:$1,channel_name:$1,message_ts:$1,content:$1,is_author_bot:$5,permalink:$1,context_messages:$4(#4),blocks:$4(#3),reply_count:$4($6)});$8({author_name:$1,author_email:$4($1),author_user_id:$1,uploader_user_id:$1,team_id:$1,file_id:$1,date_created:$6,date_updated:$6,title:$1,file_type:$1,permalink:$1,content:$1,size:$4($6)});$8({team_id:$1,creator_user_id:$1,creator_name:$4($1),date_created:$6,date_updated:$6,name:$1,topic:$4($1),purpose:$4($1),permalink:$1,is_archived:$5});$8({user_id:$1,permalink:$1,profile_pic_permalink:$4($1),full_name:$1,title:$1,timezone:$1,email:$1});$8({messages:$4(#6),files:$4(#8),enterprise:$4(#3),channels:$4(#10),users:$4(#12)});$8({next_cursor:$4($1)});$8({ok:$5,results:#13,response_metadata:$4(#14)})', [__0, __1, __2, __3, __4, __5, __6, __d0, __7, __8, __9, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]) : API.call(searchContext, i));
21
+
22
+ export const searchInfo = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$5,$6],protocol:$7,retry:$8};$3(>3)@"SearchInfoRequest";$3(>4)@"SearchInfoResponse";$2({}).pipe($1({method:"POST",uri:"/assistant.search.info",code:200}));$2({ok:$4,is_ai_search_enabled:$4})', [__0, __3, __7, __8, __5, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(searchInfo, i));
23
+
24
+ export const setStatus = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"SetStatusRequest";$5({channel_id:$2,thread_ts:$2,status:$2,loading_messages:$4(#3:0),icon_emoji:$4($2),icon_url:$4($2),username:$4($2)}).pipe($1({method:"POST",uri:"/assistant.threads.setStatus",code:200}))', [__0, __3, __1, __d0, __4, __7, __8, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setStatus, i));
25
+
26
+ export const setSuggestedPrompts = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"SetSuggestedPromptsRequest";$5({channel_id:$2,thread_ts:$3($2),prompts:$4,title:$3($2)}).pipe($1({method:"POST",uri:"/assistant.threads.setSuggestedPrompts",code:200}))', [__0, __3, __1, __4, __9, __7, __8, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setSuggestedPrompts, i));
27
+
28
+ export const setTitle = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"SetTitleRequest";$3({channel_id:$2,thread_ts:$2,title:$2}).pipe($1({method:"POST",uri:"/assistant.threads.setTitle",code:200}))', [__0, __3, __1, __7, __8, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(setTitle, i));
29
+ // Schema builders: each runs one schema initializer, on that schema's first use.
30
+ // Schema table: entry i is schema j of builder f, made on first reach.
31
+
32
+
33
+ // Shared schema data (see `op` in core/api).
34
+ function __d0() {
35
+ return ['$2($1)', [__0, __1, __2]];
36
+ }
37
+ function __d1() {
38
+ return ['$3(>1)@"SetStatusResponse";$2({ok:$1})', [__0, __5, __7, __8]];
39
+ }
@@ -1,5 +1,4 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
- import * as S from "@distilled.cloud/core/schema";
3
2
  import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
4
3
  export type { SlackOpError, SlackOpContext };
5
4
  export interface ListTeamsRequest {
@@ -10,7 +9,6 @@ export interface ListTeamsRequest {
10
9
  /** Whether to return icon paths for each workspace. An icon path represents a URI pointing to the image signifying the workspace. */
11
10
  include_icon?: boolean;
12
11
  }
13
- export declare const ListTeamsRequest: S.Schema<ListTeamsRequest>;
14
12
  /** Paths to icons */
15
13
  export interface ListTeamsResponseTeamsItemIcon {
16
14
  image_34?: string;
@@ -22,7 +20,6 @@ export interface ListTeamsResponseTeamsItemIcon {
22
20
  image_230?: string;
23
21
  image_default?: boolean;
24
22
  }
25
- export declare const ListTeamsResponseTeamsItemIcon: S.Schema<ListTeamsResponseTeamsItemIcon>;
26
23
  export interface ListTeamsResponseTeamsItem {
27
24
  /** ID of the workspace */
28
25
  id?: string;
@@ -31,15 +28,12 @@ export interface ListTeamsResponseTeamsItem {
31
28
  /** Paths to icons */
32
29
  icon?: ListTeamsResponseTeamsItemIcon;
33
30
  }
34
- export declare const ListTeamsResponseTeamsItem: S.Schema<ListTeamsResponseTeamsItem>;
35
31
  export type ListTeamsResponseTeamsList = Array<ListTeamsResponseTeamsItem>;
36
- export declare const ListTeamsResponseTeamsList: S.Schema<ListTeamsResponseTeamsList>;
37
32
  /** Pagination metadata. An empty `next_cursor` means the last page. */
38
33
  export interface ListTeamsResponseResponseMetadata {
39
- /** Cursor for the next page — pass as `cursor` on the next call. */
34
+ /** Cursor for the next page -- pass as `cursor` on the next call. */
40
35
  next_cursor?: string;
41
36
  }
42
- export declare const ListTeamsResponseResponseMetadata: S.Schema<ListTeamsResponseResponseMetadata>;
43
37
  export interface ListTeamsResponse {
44
38
  /** Always `true` (a failed call raises a typed error instead). */
45
39
  ok: boolean;
@@ -47,21 +41,17 @@ export interface ListTeamsResponse {
47
41
  /** Pagination metadata. An empty `next_cursor` means the last page. */
48
42
  response_metadata?: ListTeamsResponseResponseMetadata;
49
43
  }
50
- export declare const ListTeamsResponse: S.Schema<ListTeamsResponse>;
51
44
  export interface RevokeAuthRequest {
52
45
  /** Setting this parameter to `1` triggers a _testing mode_ where the specified token will not actually be revoked. */
53
46
  test?: boolean;
54
47
  }
55
- export declare const RevokeAuthRequest: S.Schema<RevokeAuthRequest>;
56
48
  export interface RevokeAuthResponse {
57
49
  /** Always `true` (a failed call raises a typed error instead). */
58
50
  ok: boolean;
59
51
  revoked: boolean;
60
52
  }
61
- export declare const RevokeAuthResponse: S.Schema<RevokeAuthResponse>;
62
53
  export interface TestAuthRequest {
63
54
  }
64
- export declare const TestAuthRequest: S.Schema<TestAuthRequest>;
65
55
  export interface TestAuthResponse {
66
56
  /** Always `true` (a failed call raises a typed error instead). */
67
57
  ok: boolean;
@@ -77,14 +67,13 @@ export interface TestAuthResponse {
77
67
  is_enterprise_install?: boolean;
78
68
  expires_in?: number | null;
79
69
  }
80
- export declare const TestAuthResponse: S.Schema<TestAuthResponse>;
81
70
  export type ListTeamsError = SlackOpError;
82
- /** Obtain a full list of workspaces your org-wide app has been approved for. Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` — Invalid cursor. - `invalid_limit` — The value passed for `limit` was not valid. - `invalid_auth` — The token doesn't have access to this endpoint. - `internal_error` — There was an internal error. See https://docs.slack.dev/reference/methods/auth.teams.list */
71
+ /** Obtain a full list of workspaces your org-wide app has been approved for. Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` -- Invalid cursor. - `invalid_limit` -- The value passed for `limit` was not valid. - `invalid_auth` -- The token doesn't have access to this endpoint. - `internal_error` -- There was an internal error. See https://docs.slack.dev/reference/methods/auth.teams.list */
83
72
  export declare const listTeams: API.PaginatedOperationMethod<ListTeamsRequest, ListTeamsResponse, ListTeamsError, SlackOpContext, ListTeamsResponseTeamsItem>;
84
73
  export type RevokeAuthError = SlackOpError;
85
- /** Revokes a token. Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — Internal system error - `not_bearer_token` — Incompatible token type provided See https://docs.slack.dev/reference/methods/auth.revoke */
74
+ /** Revokes a token. Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- Internal system error - `not_bearer_token` -- Incompatible token type provided See https://docs.slack.dev/reference/methods/auth.revoke */
86
75
  export declare const revokeAuth: API.OperationMethod<RevokeAuthRequest, RevokeAuthResponse, RevokeAuthError, SlackOpContext>;
87
76
  export type TestAuthError = SlackOpError;
88
- /** Checks authentication & identity. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — An internal error has been found. - `invalid_auth` — Method was called with invalid credentials See https://docs.slack.dev/reference/methods/auth.test */
77
+ /** Checks authentication & identity. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- An internal error has been found. - `invalid_auth` -- Method was called with invalid credentials See https://docs.slack.dev/reference/methods/auth.test */
89
78
  export declare const testAuth: API.OperationMethod<TestAuthRequest, TestAuthResponse, TestAuthError, SlackOpContext>;
90
79
  //# sourceMappingURL=auth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/services/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAEjD,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAIvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE7C,MAAM,WAAW,gBAAgB;IAC/B,kGAAkG;IAClG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,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