@distilled.cloud/slack 1.0.0-rc.20 → 1.0.0-rc.22

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 (189) hide show
  1. package/README.md +2 -2
  2. package/lib/.lazy.json +1 -1
  3. package/lib/_bundle/sdk.js +1 -1
  4. package/lib/_bundle/sdk.js.map +1 -1
  5. package/lib/credentials.d.ts +6 -2
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/errors.d.ts +10 -0
  8. package/lib/errors.d.ts.map +1 -1
  9. package/lib/errors.js +1 -1
  10. package/lib/index.d.ts +0 -1
  11. package/lib/index.d.ts.map +1 -1
  12. package/lib/index.js +0 -1
  13. package/lib/pagination.d.ts.map +1 -1
  14. package/lib/protocol.d.ts +47 -12
  15. package/lib/protocol.d.ts.map +1 -1
  16. package/lib/retry.d.ts +1 -2
  17. package/lib/retry.d.ts.map +1 -1
  18. package/lib/services/admin.d.ts +268 -87
  19. package/lib/services/admin.d.ts.map +1 -1
  20. package/lib/services/admin.js +154 -149
  21. package/lib/services/admin.js.map +1 -1
  22. package/lib/services/agents.d.ts +54 -28
  23. package/lib/services/agents.d.ts.map +1 -1
  24. package/lib/services/agents.js +1 -1
  25. package/lib/services/agents.js.map +1 -1
  26. package/lib/services/api.d.ts.map +1 -1
  27. package/lib/services/api.js +1 -1
  28. package/lib/services/api.js.map +1 -1
  29. package/lib/services/apps.d.ts +69 -9
  30. package/lib/services/apps.d.ts.map +1 -1
  31. package/lib/services/apps.js +36 -34
  32. package/lib/services/apps.js.map +1 -1
  33. package/lib/services/assistant.d.ts +4 -1
  34. package/lib/services/assistant.d.ts.map +1 -1
  35. package/lib/services/assistant.js +1 -1
  36. package/lib/services/assistant.js.map +1 -1
  37. package/lib/services/auth.d.ts.map +1 -1
  38. package/lib/services/auth.js +1 -1
  39. package/lib/services/auth.js.map +1 -1
  40. package/lib/services/blocks.d.ts.map +1 -1
  41. package/lib/services/blocks.js +1 -1
  42. package/lib/services/blocks.js.map +1 -1
  43. package/lib/services/bookmarks.d.ts.map +1 -1
  44. package/lib/services/bookmarks.js +1 -1
  45. package/lib/services/bookmarks.js.map +1 -1
  46. package/lib/services/bots.d.ts.map +1 -1
  47. package/lib/services/bots.js +1 -1
  48. package/lib/services/bots.js.map +1 -1
  49. package/lib/services/calls.d.ts.map +1 -1
  50. package/lib/services/calls.js +1 -1
  51. package/lib/services/calls.js.map +1 -1
  52. package/lib/services/canvases.d.ts +1 -1
  53. package/lib/services/canvases.d.ts.map +1 -1
  54. package/lib/services/canvases.js +1 -1
  55. package/lib/services/canvases.js.map +1 -1
  56. package/lib/services/chat.d.ts.map +1 -1
  57. package/lib/services/chat.js +1 -1
  58. package/lib/services/chat.js.map +1 -1
  59. package/lib/services/conversations.d.ts +5 -5
  60. package/lib/services/conversations.d.ts.map +1 -1
  61. package/lib/services/conversations.js +39 -39
  62. package/lib/services/conversations.js.map +1 -1
  63. package/lib/services/dialog.d.ts.map +1 -1
  64. package/lib/services/dialog.js +1 -1
  65. package/lib/services/dialog.js.map +1 -1
  66. package/lib/services/dnd.d.ts.map +1 -1
  67. package/lib/services/dnd.js +1 -1
  68. package/lib/services/dnd.js.map +1 -1
  69. package/lib/services/emoji.d.ts.map +1 -1
  70. package/lib/services/emoji.js +1 -1
  71. package/lib/services/emoji.js.map +1 -1
  72. package/lib/services/entity.d.ts.map +1 -1
  73. package/lib/services/entity.js +1 -1
  74. package/lib/services/entity.js.map +1 -1
  75. package/lib/services/files.d.ts +1 -1
  76. package/lib/services/files.d.ts.map +1 -1
  77. package/lib/services/files.js +28 -28
  78. package/lib/services/files.js.map +1 -1
  79. package/lib/services/functions.d.ts.map +1 -1
  80. package/lib/services/functions.js +1 -1
  81. package/lib/services/functions.js.map +1 -1
  82. package/lib/services/index.d.ts.map +1 -1
  83. package/lib/services/lists.d.ts.map +1 -1
  84. package/lib/services/lists.js +1 -1
  85. package/lib/services/lists.js.map +1 -1
  86. package/lib/services/migration.d.ts.map +1 -1
  87. package/lib/services/migration.js +1 -1
  88. package/lib/services/migration.js.map +1 -1
  89. package/lib/services/oauth.d.ts +6 -6
  90. package/lib/services/oauth.d.ts.map +1 -1
  91. package/lib/services/oauth.js +1 -1
  92. package/lib/services/oauth.js.map +1 -1
  93. package/lib/services/openid.d.ts +2 -2
  94. package/lib/services/openid.d.ts.map +1 -1
  95. package/lib/services/openid.js +1 -1
  96. package/lib/services/openid.js.map +1 -1
  97. package/lib/services/pins.d.ts.map +1 -1
  98. package/lib/services/pins.js +1 -1
  99. package/lib/services/pins.js.map +1 -1
  100. package/lib/services/reactions.d.ts.map +1 -1
  101. package/lib/services/reactions.js +1 -1
  102. package/lib/services/reactions.js.map +1 -1
  103. package/lib/services/reminders.d.ts.map +1 -1
  104. package/lib/services/reminders.js +1 -1
  105. package/lib/services/reminders.js.map +1 -1
  106. package/lib/services/rtm.d.ts.map +1 -1
  107. package/lib/services/rtm.js +1 -1
  108. package/lib/services/rtm.js.map +1 -1
  109. package/lib/services/search.d.ts.map +1 -1
  110. package/lib/services/search.js +1 -1
  111. package/lib/services/search.js.map +1 -1
  112. package/lib/services/slackbot.d.ts +299 -7
  113. package/lib/services/slackbot.d.ts.map +1 -1
  114. package/lib/services/slackbot.js +1 -1
  115. package/lib/services/slackbot.js.map +1 -1
  116. package/lib/services/stars.d.ts.map +1 -1
  117. package/lib/services/stars.js +1 -1
  118. package/lib/services/stars.js.map +1 -1
  119. package/lib/services/team.d.ts +1 -1
  120. package/lib/services/team.d.ts.map +1 -1
  121. package/lib/services/team.js +1 -1
  122. package/lib/services/team.js.map +1 -1
  123. package/lib/services/tooling.d.ts +1 -1
  124. package/lib/services/tooling.d.ts.map +1 -1
  125. package/lib/services/tooling.js +1 -1
  126. package/lib/services/tooling.js.map +1 -1
  127. package/lib/services/usergroups.d.ts.map +1 -1
  128. package/lib/services/usergroups.js +1 -1
  129. package/lib/services/usergroups.js.map +1 -1
  130. package/lib/services/users.d.ts +73 -1
  131. package/lib/services/users.d.ts.map +1 -1
  132. package/lib/services/users.js +1 -1
  133. package/lib/services/users.js.map +1 -1
  134. package/lib/services/views.d.ts.map +1 -1
  135. package/lib/services/views.js +1 -1
  136. package/lib/services/views.js.map +1 -1
  137. package/lib/services/workflows.d.ts +4 -4
  138. package/lib/services/workflows.d.ts.map +1 -1
  139. package/lib/services/workflows.js +1 -1
  140. package/lib/services/workflows.js.map +1 -1
  141. package/lib/services.lazy/admin.js +2 -2
  142. package/lib/services.lazy/apps.js +2 -2
  143. package/lib/services.lazy/conversations.js +1 -1
  144. package/lib/services.lazy/files.js +1 -1
  145. package/lib/traits.d.ts.map +1 -1
  146. package/package.json +6 -7
  147. package/src/credentials.ts +20 -15
  148. package/src/errors.ts +12 -1
  149. package/src/index.ts +0 -1
  150. package/src/protocol.ts +96 -86
  151. package/src/retry.ts +1 -2
  152. package/src/services/admin.ts +1527 -955
  153. package/src/services/agents.ts +110 -50
  154. package/src/services/api.ts +3 -2
  155. package/src/services/apps.ts +307 -136
  156. package/src/services/assistant.ts +17 -8
  157. package/src/services/auth.ts +7 -4
  158. package/src/services/blocks.ts +3 -2
  159. package/src/services/bookmarks.ts +9 -5
  160. package/src/services/bots.ts +3 -2
  161. package/src/services/calls.ts +13 -7
  162. package/src/services/canvases.ts +16 -9
  163. package/src/services/chat.ts +27 -14
  164. package/src/services/conversations.ts +62 -34
  165. package/src/services/dialog.ts +3 -2
  166. package/src/services/dnd.ts +11 -6
  167. package/src/services/emoji.ts +3 -2
  168. package/src/services/entity.ts +7 -4
  169. package/src/services/files.ts +32 -17
  170. package/src/services/functions.ts +17 -9
  171. package/src/services/lists.ts +25 -13
  172. package/src/services/migration.ts +3 -2
  173. package/src/services/oauth.ts +23 -17
  174. package/src/services/openid.ts +8 -6
  175. package/src/services/pins.ts +7 -4
  176. package/src/services/reactions.ts +9 -5
  177. package/src/services/reminders.ts +11 -6
  178. package/src/services/rtm.ts +5 -3
  179. package/src/services/search.ts +7 -4
  180. package/src/services/slackbot.ts +700 -74
  181. package/src/services/stars.ts +7 -4
  182. package/src/services/team.ts +20 -11
  183. package/src/services/tooling.ts +5 -4
  184. package/src/services/usergroups.ts +15 -8
  185. package/src/services/users.ts +136 -17
  186. package/src/services/views.ts +9 -5
  187. package/src/services/workflows.ts +21 -13
  188. package/lib/index.lazy.js +0 -7
  189. package/lib/index.lazy.js.map +0 -1
@@ -2,7 +2,7 @@ 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
3
  import * as S from "@distilled.cloud/core/schema-lite";
4
4
  import * as __L from "@distilled.cloud/core/schema-lite";
5
- import { SlackError, SlackRateLimited } from "../errors.ts";
5
+ import { SlackServiceErrors } from "../errors.ts";
6
6
  import { slackPaginate } from "../pagination.ts";
7
7
  import { SlackProtocol, type SlackOpError, type SlackOpContext } from "../protocol.ts";
8
8
  import * as Retry from "../retry.ts";
@@ -25,6 +25,26 @@ const TELEMETRY = {
25
25
  propagate: "w3c",
26
26
  } as const;
27
27
 
28
+ /** 1 to 20 canvas skill IDs. Each distinct ID is processed once, in the order it first appears. Successful items are not rolled back if other items fail. */
29
+ export type AddSkillSetsItemRequestSkillIdsList = Array<string>;
30
+ export interface AddSkillSetsItemRequest {
31
+ /** Skill set to add the skills to. */
32
+ skill_set_id: string;
33
+ /** 1 to 20 canvas skill IDs. Each distinct ID is processed once, in the order it first appears. Successful items are not rolled back if other items fail. */
34
+ skill_ids: AddSkillSetsItemRequestSkillIdsList;
35
+ }
36
+ export interface AddSkillSetsItemResponse {
37
+ /** Always `true` (a failed call raises a typed error instead). */
38
+ ok: boolean;
39
+ }
40
+ export interface AddSkillSetsLibraryRequest {
41
+ /** Skill set to add to the caller's library. */
42
+ skill_set_id: string;
43
+ }
44
+ export interface AddSkillSetsLibraryResponse {
45
+ /** Always `true` (a failed call raises a typed error instead). */
46
+ ok: boolean;
47
+ }
28
48
  export interface AddSkillsLibraryRequest {
29
49
  /** Skill to turn on for the caller. */
30
50
  skill_id: string;
@@ -161,6 +181,43 @@ export interface CreateSkillResponse {
161
181
  /** A Slackbot skill as returned by the slackbot.skills.* Web API methods. Fields with no value are null. */
162
182
  skill: CreateSkillResponseSkill;
163
183
  }
184
+ export interface CreateSkillSetRequest {
185
+ /** Human-readable label, 1 to 255 characters. Not unique. */
186
+ display_name: string;
187
+ /** What the skill set is for. Max 2,000 characters. */
188
+ description?: string | undefined;
189
+ }
190
+ /** The caller's effective access to the skill set, as in files.info. */
191
+ export type CreateSkillSetResponseSkillSetAccess = "read" | "write" | "owner";
192
+ /** A Slackbot skill set as returned by the slackbot.skillSets.* Web API methods. Fields with no value are null. */
193
+ export interface CreateSkillSetResponseSkillSet {
194
+ /** Skill set ID: the file ID of the folder that holds the set. */
195
+ id: string;
196
+ /** Human-readable label. Not unique. */
197
+ display_name: string;
198
+ /** What the skill set is for. */
199
+ description: unknown;
200
+ /** The caller's effective access to the skill set, as in files.info. */
201
+ access: CreateSkillSetResponseSkillSetAccess;
202
+ /** Whether the skill set is in the caller's library. Doesn't imply access to every skill in the set. */
203
+ is_in_library: boolean;
204
+ /** Number of skills stored in the set, including skills the caller can't see. */
205
+ skill_count: number;
206
+ /** User ID of the skill set's creator. */
207
+ creator_id: unknown;
208
+ /** Unix timestamp when the skill set was created. */
209
+ date_created: unknown;
210
+ /** Unix timestamp when the skill set was last updated. */
211
+ date_updated: unknown;
212
+ /** Link to the skill set. */
213
+ permalink: string;
214
+ }
215
+ export interface CreateSkillSetResponse {
216
+ /** Always `true` (a failed call raises a typed error instead). */
217
+ ok: boolean;
218
+ /** A Slackbot skill set as returned by the slackbot.skillSets.* Web API methods. Fields with no value are null. */
219
+ skill_set: CreateSkillSetResponseSkillSet;
220
+ }
164
221
  export interface DeleteSkillRequest {
165
222
  /** Skill to delete. */
166
223
  skill_id: string;
@@ -169,6 +226,14 @@ export interface DeleteSkillResponse {
169
226
  /** Always `true` (a failed call raises a typed error instead). */
170
227
  ok: boolean;
171
228
  }
229
+ export interface DeleteSkillSetRequest {
230
+ /** Skill set to delete. */
231
+ skill_set_id: string;
232
+ }
233
+ export interface DeleteSkillSetResponse {
234
+ /** Always `true` (a failed call raises a typed error instead). */
235
+ ok: boolean;
236
+ }
172
237
  /** `library`: skills enabled for the caller, including auto-enabled skills and skills from skill sets. `owned`: skills the caller created. `catalog`: the organization's official skills. */
173
238
  export type ListSkillsRequestFilter = "library" | "owned" | "catalog";
174
239
  export interface ListSkillsRequest {
@@ -261,6 +326,71 @@ export interface ListSkillsResponse {
261
326
  /** Pagination metadata. An empty `next_cursor` means the last page. */
262
327
  response_metadata?: ListSkillsResponseResponseMetadata | undefined;
263
328
  }
329
+ /** `library`: skill sets in the caller's library. `owned`: skill sets the caller created. `editable`: skill sets the caller can edit. `accessible`: skill sets the caller can view. */
330
+ export type ListSkillSetsRequestFilter = "library" | "owned" | "editable" | "accessible";
331
+ export interface ListSkillSetsRequest {
332
+ /** `library`: skill sets in the caller's library. `owned`: skill sets the caller created. `editable`: skill sets the caller can edit. `accessible`: skill sets the caller can view. */
333
+ filter?: ListSkillSetsRequestFilter | (string & {}) | undefined;
334
+ /** Paginate through collections of data by setting the `cursor` parameter to a `next_cursor` attribute returned by a previous request's `response_metadata`. Must be used with the same `filter`. */
335
+ cursor?: string | undefined;
336
+ /** The maximum number of skill sets to return. Fewer may be returned even when more remain. */
337
+ limit?: number | undefined;
338
+ }
339
+ /** The caller's effective access to the skill set, as in files.info. */
340
+ export type ListSkillSetsResponseSkillSetsItemAccess = "read" | "write" | "owner";
341
+ /** A Slackbot skill set as returned by the slackbot.skillSets.* Web API methods. Fields with no value are null. */
342
+ export interface ListSkillSetsResponseSkillSetsItem {
343
+ /** Skill set ID: the file ID of the folder that holds the set. */
344
+ id: string;
345
+ /** Human-readable label. Not unique. */
346
+ display_name: string;
347
+ /** What the skill set is for. */
348
+ description: unknown;
349
+ /** The caller's effective access to the skill set, as in files.info. */
350
+ access: ListSkillSetsResponseSkillSetsItemAccess;
351
+ /** Whether the skill set is in the caller's library. Doesn't imply access to every skill in the set. */
352
+ is_in_library: boolean;
353
+ /** Number of skills stored in the set, including skills the caller can't see. */
354
+ skill_count: number;
355
+ /** User ID of the skill set's creator. */
356
+ creator_id: unknown;
357
+ /** Unix timestamp when the skill set was created. */
358
+ date_created: unknown;
359
+ /** Unix timestamp when the skill set was last updated. */
360
+ date_updated: unknown;
361
+ /** Link to the skill set. */
362
+ permalink: string;
363
+ }
364
+ export type ListSkillSetsResponseSkillSetsList = Array<ListSkillSetsResponseSkillSetsItem>;
365
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
366
+ export type ListSkillSetsResponseResponseMetadata = ListSkillsResponseResponseMetadata;
367
+ export interface ListSkillSetsResponse {
368
+ /** Always `true` (a failed call raises a typed error instead). */
369
+ ok: boolean;
370
+ skill_sets: ListSkillSetsResponseSkillSetsList;
371
+ /** Pagination metadata. An empty `next_cursor` means the last page. */
372
+ response_metadata?: ListSkillsResponseResponseMetadata | undefined;
373
+ }
374
+ /** 1 to 20 skill IDs. Each distinct ID is processed once. Successful items are not rolled back if other items fail. */
375
+ export type RemoveSkillSetsItemRequestSkillIdsList = Array<string>;
376
+ export interface RemoveSkillSetsItemRequest {
377
+ /** Skill set to remove the skills from. */
378
+ skill_set_id: string;
379
+ /** 1 to 20 skill IDs. Each distinct ID is processed once. Successful items are not rolled back if other items fail. */
380
+ skill_ids: RemoveSkillSetsItemRequestSkillIdsList;
381
+ }
382
+ export interface RemoveSkillSetsItemResponse {
383
+ /** Always `true` (a failed call raises a typed error instead). */
384
+ ok: boolean;
385
+ }
386
+ export interface RemoveSkillSetsLibraryRequest {
387
+ /** Skill set to remove from the caller's library. */
388
+ skill_set_id: string;
389
+ }
390
+ export interface RemoveSkillSetsLibraryResponse {
391
+ /** Always `true` (a failed call raises a typed error instead). */
392
+ ok: boolean;
393
+ }
264
394
  export interface RemoveSkillsLibraryRequest {
265
395
  /** Skill to turn off for the caller. */
266
396
  skill_id: string;
@@ -269,6 +399,119 @@ export interface RemoveSkillsLibraryResponse {
269
399
  /** Always `true` (a failed call raises a typed error instead). */
270
400
  ok: boolean;
271
401
  }
402
+ export interface SkillSetsInfoRequest {
403
+ /** Skill set to fetch. */
404
+ skill_set_id: string;
405
+ }
406
+ /** The caller's effective access to the skill set, as in files.info. */
407
+ export type SkillSetsInfoResponseSkillSetAccess = "read" | "write" | "owner";
408
+ /** A Slackbot skill set as returned by the slackbot.skillSets.* Web API methods. Fields with no value are null. */
409
+ export interface SkillSetsInfoResponseSkillSet {
410
+ /** Skill set ID: the file ID of the folder that holds the set. */
411
+ id: string;
412
+ /** Human-readable label. Not unique. */
413
+ display_name: string;
414
+ /** What the skill set is for. */
415
+ description: unknown;
416
+ /** The caller's effective access to the skill set, as in files.info. */
417
+ access: SkillSetsInfoResponseSkillSetAccess;
418
+ /** Whether the skill set is in the caller's library. Doesn't imply access to every skill in the set. */
419
+ is_in_library: boolean;
420
+ /** Number of skills stored in the set, including skills the caller can't see. */
421
+ skill_count: number;
422
+ /** User ID of the skill set's creator. */
423
+ creator_id: unknown;
424
+ /** Unix timestamp when the skill set was created. */
425
+ date_created: unknown;
426
+ /** Unix timestamp when the skill set was last updated. */
427
+ date_updated: unknown;
428
+ /** Link to the skill set. */
429
+ permalink: string;
430
+ }
431
+ /** Where the skill is defined. */
432
+ export type SkillSetsInfoResponseItemsItemSkillType = "canvas" | "builtin";
433
+ /** Enumerates the categories available for organizing AI skills. */
434
+ export type SkillSetsInfoResponseItemsItemSkillCategory =
435
+ | "communication"
436
+ | "customer_support"
437
+ | "data_and_analytics"
438
+ | "engineering"
439
+ | "product_management"
440
+ | "productivity"
441
+ | "professional_development"
442
+ | "project_management"
443
+ | "sales"
444
+ | "system"
445
+ | "team_management"
446
+ | "other";
447
+ /** Who in the workspace can view and share this skill. Derived from the highest ORG/WORKSPACE-level access grant on the underlying skill canvas: `invite_only` when no such grant exists (only the creator and explicitly invited members), `anyone_can_view` when a read or comment grant exists, `anyone_can_edit` when a write grant exists. */
448
+ export type SkillSetsInfoResponseItemsItemSkillVisibility =
449
+ | "invite_only"
450
+ | "anyone_can_view"
451
+ | "anyone_can_edit";
452
+ /** The caller's effective access to the skill. For canvas skills, the caller's access to the canvas, as in files.info. Built-in skills are always read. */
453
+ export type SkillSetsInfoResponseItemsItemSkillAccess = "read" | "comment" | "write" | "owner";
454
+ /** An app or MCP server a skill declares it needs. Listing a server does not grant access to it; normal OAuth and server permissions still apply when the skill runs. */
455
+ export type SkillSetsInfoResponseItemsItemSkillMcpServersItem =
456
+ CreateSkillResponseSkillMcpServersItem;
457
+ /** Apps and MCP servers the skill needs. */
458
+ export type SkillSetsInfoResponseItemsItemSkillMcpServersList =
459
+ Array<CreateSkillResponseSkillMcpServersItem>;
460
+ /** A Slackbot skill as returned by the slackbot.skills.* Web API methods. Fields with no value are null. */
461
+ export interface SkillSetsInfoResponseItemsItemSkill {
462
+ /** Skill ID: a canvas file ID for canvas skills, or a `builtin:` reference for built-in skills. */
463
+ id: string;
464
+ /** Where the skill is defined. */
465
+ type: SkillSetsInfoResponseItemsItemSkillType;
466
+ /** Human-readable label. Not unique. */
467
+ display_name: string;
468
+ /** Reserved for a future machine-readable skill name. Always null. */
469
+ name: unknown;
470
+ /** When Slackbot should use the skill. */
471
+ description: unknown;
472
+ /** Skill category. */
473
+ category: SkillSetsInfoResponseItemsItemSkillCategory | null;
474
+ /** Example prompt. `{skill}` stands for the skill mention. */
475
+ example_prompt: unknown;
476
+ /** Markdown instructions. Only returned by slackbot.skills.info; null elsewhere. */
477
+ instructions: unknown;
478
+ /** Who in the organization can view the skill. Null for built-in skills. */
479
+ visibility: SkillSetsInfoResponseItemsItemSkillVisibility | null;
480
+ /** Whether the skill is published to the organization's catalog. */
481
+ is_official: boolean;
482
+ /** The caller's effective access to the skill. For canvas skills, the caller's access to the canvas, as in files.info. Built-in skills are always read. */
483
+ access: SkillSetsInfoResponseItemsItemSkillAccess;
484
+ /** Apps and MCP servers the skill needs. */
485
+ mcp_servers: SkillSetsInfoResponseItemsItemSkillMcpServersList;
486
+ /** Approximate number of runs. */
487
+ usage_count: unknown;
488
+ /** Approximate number of people who have the skill enabled. */
489
+ library_count: unknown;
490
+ /** User ID of the skill's creator. Null for built-in skills. */
491
+ creator_id: unknown;
492
+ /** Unix timestamp when the skill was created. */
493
+ date_created: unknown;
494
+ /** Unix timestamp when the skill was last updated. */
495
+ date_updated: unknown;
496
+ /** Link to the skill. */
497
+ permalink: string;
498
+ }
499
+ export interface SkillSetsInfoResponseItemsItem {
500
+ /** ID of the skill stored in the set. Kept even when the skill is unavailable. */
501
+ skill_id: string;
502
+ /** The skill's metadata, with `instructions` set to null. Null if the skill is unavailable to the caller or deleted. */
503
+ skill: SkillSetsInfoResponseItemsItemSkill | null;
504
+ }
505
+ /** The skills in the set, in display order. */
506
+ export type SkillSetsInfoResponseItemsList = Array<SkillSetsInfoResponseItemsItem>;
507
+ export interface SkillSetsInfoResponse {
508
+ /** Always `true` (a failed call raises a typed error instead). */
509
+ ok: boolean;
510
+ /** A Slackbot skill set as returned by the slackbot.skillSets.* Web API methods. Fields with no value are null. */
511
+ skill_set: SkillSetsInfoResponseSkillSet;
512
+ /** The skills in the set, in display order. */
513
+ items: SkillSetsInfoResponseItemsList;
514
+ }
272
515
  export interface SkillsInfoRequest {
273
516
  /** Skill to fetch: a canvas file ID or a `builtin:` reference. */
274
517
  skill_id: string;
@@ -452,17 +695,93 @@ export interface UpdateSkillResponse {
452
695
  /** A Slackbot skill as returned by the slackbot.skills.* Web API methods. Fields with no value are null. */
453
696
  skill: UpdateSkillResponseSkill;
454
697
  }
698
+ export interface UpdateSkillSetRequest {
699
+ /** Skill set to change. */
700
+ skill_set_id: string;
701
+ /** Human-readable label, 1 to 255 characters. Not unique. */
702
+ display_name?: string | undefined;
703
+ /** What the skill set is for. Max 2,000 characters. Send an empty string to clear. */
704
+ description?: string | undefined;
705
+ }
706
+ /** The caller's effective access to the skill set, as in files.info. */
707
+ export type UpdateSkillSetResponseSkillSetAccess = "read" | "write" | "owner";
708
+ /** A Slackbot skill set as returned by the slackbot.skillSets.* Web API methods. Fields with no value are null. */
709
+ export interface UpdateSkillSetResponseSkillSet {
710
+ /** Skill set ID: the file ID of the folder that holds the set. */
711
+ id: string;
712
+ /** Human-readable label. Not unique. */
713
+ display_name: string;
714
+ /** What the skill set is for. */
715
+ description: unknown;
716
+ /** The caller's effective access to the skill set, as in files.info. */
717
+ access: UpdateSkillSetResponseSkillSetAccess;
718
+ /** Whether the skill set is in the caller's library. Doesn't imply access to every skill in the set. */
719
+ is_in_library: boolean;
720
+ /** Number of skills stored in the set, including skills the caller can't see. */
721
+ skill_count: number;
722
+ /** User ID of the skill set's creator. */
723
+ creator_id: unknown;
724
+ /** Unix timestamp when the skill set was created. */
725
+ date_created: unknown;
726
+ /** Unix timestamp when the skill set was last updated. */
727
+ date_updated: unknown;
728
+ /** Link to the skill set. */
729
+ permalink: string;
730
+ }
731
+ export interface UpdateSkillSetResponse {
732
+ /** Always `true` (a failed call raises a typed error instead). */
733
+ ok: boolean;
734
+ /** A Slackbot skill set as returned by the slackbot.skillSets.* Web API methods. Fields with no value are null. */
735
+ skill_set: UpdateSkillSetResponseSkillSet;
736
+ }
737
+ export type AddSkillSetsItemError = SlackOpError;
738
+ /** Adds skills to a Slackbot skill set. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_set_not_found` -- The skill set doesn't exist or the caller can't see it. - `restricted_action` -- The caller can't use skill sets or can't edit this skill set. - `failed_for_some_skills` -- Some skills failed. `failed_skills` lists each distinct failed skill ID and its error: `skill_not_found`, `method_not_supported_for_skill_type`, `restricted_action`, `skill_set_full`, or `internal_error`. Skills that were added stay in the set. - `internal_error` -- A lookup or notification failed. Some skills may already have been added; retrying the same request is safe. See https://docs.slack.dev/reference/methods/slackbot.skillSets.items.add */
739
+ export const addSkillSetsItem: API.OperationMethod<
740
+ AddSkillSetsItemRequest,
741
+ AddSkillSetsItemResponse,
742
+ AddSkillSetsItemError,
743
+ SlackOpContext
744
+ > = /*@__PURE__*/ API.make(() => ({
745
+ input: __S(0, __c0, 0) as any as S.Schema<AddSkillSetsItemRequest>,
746
+ output: __S(4, __c1, 0) as any as S.Schema<AddSkillSetsItemResponse>,
747
+ errors: [],
748
+ serviceErrors: SlackServiceErrors,
749
+ protocol: SlackProtocol,
750
+ retry: Retry.Retry,
751
+ telemetry: TELEMETRY,
752
+ span: "AddSkillSetsItem",
753
+ }));
754
+
755
+ export type AddSkillSetsLibraryError = SlackOpError;
756
+ /** Adds a Slackbot skill set to the caller's library. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_set_not_found` -- The skill set doesn't exist or the caller can't see it. - `restricted_action` -- The caller can't use skill sets, or the skill set belongs to another organization. - `internal_error` -- The library couldn't be updated. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skillSets.library.add */
757
+ export const addSkillSetsLibrary: API.OperationMethod<
758
+ AddSkillSetsLibraryRequest,
759
+ AddSkillSetsLibraryResponse,
760
+ AddSkillSetsLibraryError,
761
+ SlackOpContext
762
+ > = /*@__PURE__*/ API.make(() => ({
763
+ input: __S(12, __c3, 0) as any as S.Schema<AddSkillSetsLibraryRequest>,
764
+ output: __S(4, __c1, 0) as any as S.Schema<AddSkillSetsLibraryResponse>,
765
+ errors: [],
766
+ serviceErrors: SlackServiceErrors,
767
+ protocol: SlackProtocol,
768
+ retry: Retry.Retry,
769
+ telemetry: TELEMETRY,
770
+ span: "AddSkillSetsLibrary",
771
+ }));
772
+
455
773
  export type AddSkillsLibraryError = SlackOpError;
456
- /** Turns a skill on in the caller's personal library. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_not_found` -- The skill doesn't exist or the caller can't see it. - `feature_not_enabled` -- The Skills API isn't enabled for this organization. - `restricted_action` -- The caller cannot use skills or cannot use this skill in their library. - `internal_error` -- The library could not be updated. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.library.add */
774
+ /** Turns a skill on in the caller's personal library. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_not_found` -- The skill doesn't exist or the caller can't see it. - `restricted_action` -- The caller cannot use skills or cannot use this skill in their library. - `internal_error` -- The library could not be updated. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.library.add */
457
775
  export const addSkillsLibrary: API.OperationMethod<
458
776
  AddSkillsLibraryRequest,
459
777
  AddSkillsLibraryResponse,
460
778
  AddSkillsLibraryError,
461
779
  SlackOpContext
462
780
  > = /*@__PURE__*/ API.make(() => ({
463
- input: __S(0, __c0, 0) as any as S.Schema<AddSkillsLibraryRequest>,
781
+ input: __S(40, __c10, 0) as any as S.Schema<AddSkillsLibraryRequest>,
464
782
  output: __S(4, __c1, 0) as any as S.Schema<AddSkillsLibraryResponse>,
465
- errors: [SlackError, SlackRateLimited],
783
+ errors: [],
784
+ serviceErrors: SlackServiceErrors,
466
785
  protocol: SlackProtocol,
467
786
  retry: Retry.Retry,
468
787
  telemetry: TELEMETRY,
@@ -470,41 +789,79 @@ export const addSkillsLibrary: API.OperationMethod<
470
789
  }));
471
790
 
472
791
  export type CreateSkillError = SlackOpError;
473
- /** Creates a skill from markdown instructions, or turns an existing canvas the caller owns into a skill. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The arguments are invalid, for example both or neither of `instructions` and `canvas_id` were sent. - `canvas_not_found` -- The canvas doesn't exist or the caller can't see it. - `not_canvas_owner` -- Only the canvas owner can turn it into a skill. - `is_a_template` -- Canvas templates can't be turned into skills. - `already_a_skill` -- The canvas is already a skill. Use `slackbot.skills.update` to change it. - `invalid_category` -- `category` isn't one of the skill categories. - `display_name_too_long` -- `display_name` is longer than 255 characters. - `description_too_long` -- `description` is longer than 400 characters. - `example_prompt_too_long` -- `example_prompt` is longer than 200 characters. - `instructions_too_large` -- `instructions` is larger than 500,000 bytes. - `too_many_mcp_servers` -- More apps were declared than the caller can enable at once. - `mcp_server_not_found` -- One or more declared apps don't exist or aren't available to the caller. `invalid_mcp_servers` lists them. - `restricted_action` -- The caller isn't allowed to author skills. - `feature_not_enabled` -- The Skills API isn't enabled for this organization. - `canvas_disabled_user_team` -- Canvases are disabled for the caller's team. - `free_teams_cannot_create_standalone_canvases` -- Free teams can't create standalone canvases. - `canvas_editing_locked` -- Another edit to the canvas is in progress. Retry the request. - `canvas_creation_failed` -- The skill's canvas couldn't be created. - `internal_error` -- The skill couldn't be saved. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.create */
792
+ /** Creates a skill from markdown instructions, or turns an existing canvas the caller owns into a skill. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- The arguments are invalid, for example both or neither of `instructions` and `canvas_id` were sent. - `canvas_not_found` -- The canvas doesn't exist or the caller can't see it. - `not_canvas_owner` -- Only the canvas owner can turn it into a skill. - `is_a_template` -- Canvas templates can't be turned into skills. - `already_a_skill` -- The canvas is already a skill. Use `slackbot.skills.update` to change it. - `category_inactive` -- `category` is a built-in category the org's admins turned off. Pick an active category or omit `category`. - `invalid_category` -- `category` isn't one of the skill categories. - `display_name_too_long` -- `display_name` is longer than 255 characters. - `description_too_long` -- `description` is longer than 400 characters. - `example_prompt_too_long` -- `example_prompt` is longer than 200 characters. - `instructions_too_large` -- `instructions` is larger than 500,000 bytes. - `too_many_mcp_servers` -- More apps were declared than the caller can enable at once. - `mcp_server_not_found` -- One or more declared apps don't exist or aren't available to the caller. `invalid_mcp_servers` lists them. - `restricted_action` -- The caller isn't allowed to author skills. - `canvas_disabled_user_team` -- Canvases are disabled for the caller's team. - `free_teams_cannot_create_standalone_canvases` -- Free teams can't create standalone canvases. - `canvas_editing_locked` -- Another edit to the canvas is in progress. Retry the request. - `canvas_creation_failed` -- The skill's canvas couldn't be created. - `internal_error` -- The skill couldn't be saved. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.create */
474
793
  export const createSkill: API.OperationMethod<
475
794
  CreateSkillRequest,
476
795
  CreateSkillResponse,
477
796
  CreateSkillError,
478
797
  SlackOpContext
479
798
  > = /*@__PURE__*/ API.make(() => ({
480
- input: __S(8, __c2, 0) as any as S.Schema<CreateSkillRequest>,
481
- output: __S(16, __c4, 0) as any as S.Schema<CreateSkillResponse>,
482
- errors: [SlackError, SlackRateLimited],
799
+ input: __S(44, __c11, 0) as any as S.Schema<CreateSkillRequest>,
800
+ output: __S(48, __c12, 0) as any as S.Schema<CreateSkillResponse>,
801
+ errors: [],
802
+ serviceErrors: SlackServiceErrors,
483
803
  protocol: SlackProtocol,
484
804
  retry: Retry.Retry,
485
805
  telemetry: TELEMETRY,
486
806
  span: "CreateSkill",
487
807
  }));
488
808
 
809
+ export type CreateSkillSetError = SlackOpError;
810
+ /** Creates an empty, private Slackbot skill set and attempts to add it to the caller's library. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `display_name_required` -- `display_name` is empty or blank. - `display_name_too_long` -- `display_name` is longer than 255 characters. - `description_too_long` -- `description` is longer than 2,000 characters. - `skill_set_creation_failed` -- The skill set couldn't be created, or the caller couldn't be given access to it. The skill set may already exist, so retrying can create a duplicate. - `restricted_action` -- The caller isn't allowed to create skill sets. - `internal_error` -- A lookup failed before the skill set was created. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skillSets.create */
811
+ export const createSkillSet: API.OperationMethod<
812
+ CreateSkillSetRequest,
813
+ CreateSkillSetResponse,
814
+ CreateSkillSetError,
815
+ SlackOpContext
816
+ > = /*@__PURE__*/ API.make(() => ({
817
+ input: __S(60, __c15, 0) as any as S.Schema<CreateSkillSetRequest>,
818
+ output: __S(64, __c16, 0) as any as S.Schema<CreateSkillSetResponse>,
819
+ errors: [],
820
+ serviceErrors: SlackServiceErrors,
821
+ protocol: SlackProtocol,
822
+ retry: Retry.Retry,
823
+ telemetry: TELEMETRY,
824
+ span: "CreateSkillSet",
825
+ }));
826
+
489
827
  export type DeleteSkillError = SlackOpError;
490
- /** Deletes a Slackbot skill and its canvas, and removes it from every library, skill set, and the org catalog. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `skill_not_found` -- The skill doesn't exist or the caller can't see it. - `method_not_supported_for_skill_type` -- Only canvas skills can be deleted. - `restricted_action` -- The caller isn't allowed to delete this skill. - `feature_not_enabled` -- The Skills API isn't enabled for this organization. - `canvas_deleting_disabled` -- Deleting canvases is disabled for the caller's team. - `internal_error` -- The skill couldn't be deleted. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.delete */
828
+ /** Deletes a Slackbot skill and its canvas, and removes it from every library, skill set, and the org catalog. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `skill_not_found` -- The skill doesn't exist or the caller can't see it. - `method_not_supported_for_skill_type` -- Only canvas skills can be deleted. - `restricted_action` -- The caller isn't allowed to delete this skill. - `canvas_deleting_disabled` -- Deleting canvases is disabled for the caller's team. - `internal_error` -- The skill couldn't be deleted. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.delete */
491
829
  export const deleteSkill: API.OperationMethod<
492
830
  DeleteSkillRequest,
493
831
  DeleteSkillResponse,
494
832
  DeleteSkillError,
495
833
  SlackOpContext
496
834
  > = /*@__PURE__*/ API.make(() => ({
497
- input: __S(24, __c6, 0) as any as S.Schema<DeleteSkillRequest>,
835
+ input: __S(72, __c18, 0) as any as S.Schema<DeleteSkillRequest>,
498
836
  output: __S(4, __c1, 0) as any as S.Schema<DeleteSkillResponse>,
499
- errors: [SlackError, SlackRateLimited],
837
+ errors: [],
838
+ serviceErrors: SlackServiceErrors,
500
839
  protocol: SlackProtocol,
501
840
  retry: Retry.Retry,
502
841
  telemetry: TELEMETRY,
503
842
  span: "DeleteSkill",
504
843
  }));
505
844
 
845
+ export type DeleteSkillSetError = SlackOpError;
846
+ /** Deletes a Slackbot skill set. The skills in it, and their library entries, are kept. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `skill_set_not_found` -- The skill set doesn't exist or the caller can't see it. - `restricted_action` -- The caller can't use skill sets or isn't allowed to delete this skill set. - `skill_set_delete_failed` -- Deleting the skill set or cleaning up its references failed. The skill set may already be deleted, so retrying can return `skill_set_not_found`. - `internal_error` -- A lookup or write failed. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skillSets.delete */
847
+ export const deleteSkillSet: API.OperationMethod<
848
+ DeleteSkillSetRequest,
849
+ DeleteSkillSetResponse,
850
+ DeleteSkillSetError,
851
+ SlackOpContext
852
+ > = /*@__PURE__*/ API.make(() => ({
853
+ input: __S(76, __c19, 0) as any as S.Schema<DeleteSkillSetRequest>,
854
+ output: __S(4, __c1, 0) as any as S.Schema<DeleteSkillSetResponse>,
855
+ errors: [],
856
+ serviceErrors: SlackServiceErrors,
857
+ protocol: SlackProtocol,
858
+ retry: Retry.Retry,
859
+ telemetry: TELEMETRY,
860
+ span: "DeleteSkillSet",
861
+ }));
862
+
506
863
  export type ListSkillsError = SlackOpError;
507
- /** Lists Slackbot skills from the caller's point of view. Instructions are not included. Required scopes -- bot: `skills:read`; user: `skills:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` -- The cursor is malformed, expired, or was issued for a different filter or category. - `invalid_category` -- The category isn't one of the supported skill categories. - `feature_not_enabled` -- The Skills API isn't enabled for this organization. - `restricted_action` -- The caller isn't allowed to use skills. - `internal_error` -- A lookup failed, so the page couldn't be built completely. Retry the request with the same cursor. See https://docs.slack.dev/reference/methods/slackbot.skills.list */
864
+ /** Lists Slackbot skills from the caller's point of view. Instructions are not included. Required scopes -- bot: `skills:read`; user: `skills:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` -- The cursor is malformed, expired, or was issued for a different filter or category. - `invalid_category` -- The category isn't one of the supported skill categories. - `restricted_action` -- The caller isn't allowed to use skills. - `internal_error` -- A lookup failed, so the page couldn't be built completely. Retry the request with the same cursor. See https://docs.slack.dev/reference/methods/slackbot.skills.list */
508
865
  export const listSkills: API.PaginatedOperationMethod<
509
866
  ListSkillsRequest,
510
867
  ListSkillsResponse,
@@ -513,9 +870,10 @@ export const listSkills: API.PaginatedOperationMethod<
513
870
  ListSkillsResponseSkillsItem
514
871
  > = /*@__PURE__*/ API.makePaginated(
515
872
  () => ({
516
- input: __S(28, __c7, 0) as any as S.Schema<ListSkillsRequest>,
517
- output: __S(31, __c7, 3) as any as S.Schema<ListSkillsResponse>,
518
- errors: [SlackError, SlackRateLimited],
873
+ input: __S(80, __c20, 0) as any as S.Schema<ListSkillsRequest>,
874
+ output: __S(82, __c20, 2) as any as S.Schema<ListSkillsResponse>,
875
+ errors: [],
876
+ serviceErrors: SlackServiceErrors,
519
877
  protocol: SlackProtocol,
520
878
  retry: Retry.Retry,
521
879
  telemetry: TELEMETRY,
@@ -531,34 +889,119 @@ export const listSkills: API.PaginatedOperationMethod<
531
889
  slackPaginate,
532
890
  ) as any;
533
891
 
892
+ export type ListSkillSetsError = SlackOpError;
893
+ /** Lists Slackbot skill sets from the caller's point of view. The skills in each set are not included. Required scopes -- bot: `skills:read`; user: `skills:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_cursor` -- The cursor is malformed, or was issued to a different caller, workspace, or filter. - `restricted_action` -- The caller isn't allowed to use skill sets. - `internal_error` -- A lookup failed. Retry the request with the same cursor. See https://docs.slack.dev/reference/methods/slackbot.skillSets.list */
894
+ export const listSkillSets: API.PaginatedOperationMethod<
895
+ ListSkillSetsRequest,
896
+ ListSkillSetsResponse,
897
+ ListSkillSetsError,
898
+ SlackOpContext,
899
+ ListSkillSetsResponseSkillSetsItem
900
+ > = /*@__PURE__*/ API.makePaginated(
901
+ () => ({
902
+ input: __S(88, __c22, 0) as any as S.Schema<ListSkillSetsRequest>,
903
+ output: __S(90, __c22, 2) as any as S.Schema<ListSkillSetsResponse>,
904
+ errors: [],
905
+ serviceErrors: SlackServiceErrors,
906
+ protocol: SlackProtocol,
907
+ retry: Retry.Retry,
908
+ telemetry: TELEMETRY,
909
+ span: "ListSkillSets",
910
+ pagination: {
911
+ mode: "cursor",
912
+ inputToken: "cursor",
913
+ outputToken: "response_metadata.next_cursor",
914
+ items: "skill_sets",
915
+ pageSize: "limit",
916
+ } as const,
917
+ }),
918
+ slackPaginate,
919
+ ) as any;
920
+
921
+ export type RemoveSkillSetsItemError = SlackOpError;
922
+ /** Removes skills from a Slackbot skill set. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_set_not_found` -- The skill set doesn't exist or the caller can't see it. - `restricted_action` -- The caller can't use skill sets or can't edit this skill set. - `failed_for_some_skills` -- Some skills couldn't be removed. `failed_skills` lists each distinct failed skill ID with the error `internal_error`. Skills that were removed stay removed, and retrying the same request is safe. - `internal_error` -- A lookup or notification failed. Some skills may already have been removed; retrying the same request is safe. See https://docs.slack.dev/reference/methods/slackbot.skillSets.items.remove */
923
+ export const removeSkillSetsItem: API.OperationMethod<
924
+ RemoveSkillSetsItemRequest,
925
+ RemoveSkillSetsItemResponse,
926
+ RemoveSkillSetsItemError,
927
+ SlackOpContext
928
+ > = /*@__PURE__*/ API.make(() => ({
929
+ input: __S(92, __c23, 0) as any as S.Schema<RemoveSkillSetsItemRequest>,
930
+ output: __S(4, __c1, 0) as any as S.Schema<RemoveSkillSetsItemResponse>,
931
+ errors: [],
932
+ serviceErrors: SlackServiceErrors,
933
+ protocol: SlackProtocol,
934
+ retry: Retry.Retry,
935
+ telemetry: TELEMETRY,
936
+ span: "RemoveSkillSetsItem",
937
+ }));
938
+
939
+ export type RemoveSkillSetsLibraryError = SlackOpError;
940
+ /** Removes a Slackbot skill set from the caller's library. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_set_not_found` -- The skill set doesn't exist or the caller can't see it. - `restricted_action` -- The caller can't use skill sets. - `internal_error` -- The library couldn't be updated. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skillSets.library.remove */
941
+ export const removeSkillSetsLibrary: API.OperationMethod<
942
+ RemoveSkillSetsLibraryRequest,
943
+ RemoveSkillSetsLibraryResponse,
944
+ RemoveSkillSetsLibraryError,
945
+ SlackOpContext
946
+ > = /*@__PURE__*/ API.make(() => ({
947
+ input: __S(16, __c4, 0) as any as S.Schema<RemoveSkillSetsLibraryRequest>,
948
+ output: __S(4, __c1, 0) as any as S.Schema<RemoveSkillSetsLibraryResponse>,
949
+ errors: [],
950
+ serviceErrors: SlackServiceErrors,
951
+ protocol: SlackProtocol,
952
+ retry: Retry.Retry,
953
+ telemetry: TELEMETRY,
954
+ span: "RemoveSkillSetsLibrary",
955
+ }));
956
+
534
957
  export type RemoveSkillsLibraryError = SlackOpError;
535
- /** Turns a skill off in the caller's personal library. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_not_found` -- The skill doesn't exist or the caller can't see it. - `feature_not_enabled` -- The Skills API isn't enabled for this organization. - `restricted_action` -- The caller cannot use skills or cannot use this skill in their library. - `internal_error` -- The library could not be updated. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.library.remove */
958
+ /** Turns a skill off in the caller's personal library. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_not_found` -- The skill doesn't exist or the caller can't see it. - `restricted_action` -- The caller cannot use skills or cannot use this skill in their library. - `internal_error` -- The library could not be updated. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.library.remove */
536
959
  export const removeSkillsLibrary: API.OperationMethod<
537
960
  RemoveSkillsLibraryRequest,
538
961
  RemoveSkillsLibraryResponse,
539
962
  RemoveSkillsLibraryError,
540
963
  SlackOpContext
541
964
  > = /*@__PURE__*/ API.make(() => ({
542
- input: __S(32, __c8, 0) as any as S.Schema<RemoveSkillsLibraryRequest>,
965
+ input: __S(20, __c5, 0) as any as S.Schema<RemoveSkillsLibraryRequest>,
543
966
  output: __S(4, __c1, 0) as any as S.Schema<RemoveSkillsLibraryResponse>,
544
- errors: [SlackError, SlackRateLimited],
967
+ errors: [],
968
+ serviceErrors: SlackServiceErrors,
545
969
  protocol: SlackProtocol,
546
970
  retry: Retry.Retry,
547
971
  telemetry: TELEMETRY,
548
972
  span: "RemoveSkillsLibrary",
549
973
  }));
550
974
 
975
+ export type SkillSetsInfoError = SlackOpError;
976
+ /** Returns one Slackbot skill set and the skills in it, in display order. Required scopes -- bot: `skills:read`; user: `skills:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_set_not_found` -- The skill set doesn't exist or the caller can't see it. - `restricted_action` -- The caller isn't allowed to use skill sets. - `internal_error` -- A lookup failed. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skillSets.info */
977
+ export const skillSetsInfo: API.OperationMethod<
978
+ SkillSetsInfoRequest,
979
+ SkillSetsInfoResponse,
980
+ SkillSetsInfoError,
981
+ SlackOpContext
982
+ > = /*@__PURE__*/ API.make(() => ({
983
+ input: __S(24, __c6, 0) as any as S.Schema<SkillSetsInfoRequest>,
984
+ output: __S(27, __c6, 3) as any as S.Schema<SkillSetsInfoResponse>,
985
+ errors: [],
986
+ serviceErrors: SlackServiceErrors,
987
+ protocol: SlackProtocol,
988
+ retry: Retry.Retry,
989
+ telemetry: TELEMETRY,
990
+ span: "SkillSetsInfo",
991
+ }));
992
+
551
993
  export type SkillsInfoError = SlackOpError;
552
- /** Returns one Slackbot skill, including its instructions. Required scopes -- bot: `skills:read`; user: `skills:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_not_found` -- The skill doesn't exist or the caller can't see it. - `feature_not_enabled` -- The Skills API isn't enabled for this organization. - `restricted_action` -- The caller isn't allowed to use skills. - `internal_error` -- The skill's instructions couldn't be read. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.info */
994
+ /** Returns one Slackbot skill, including its instructions. Required scopes -- bot: `skills:read`; user: `skills:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_not_found` -- The skill doesn't exist or the caller can't see it. - `restricted_action` -- The caller isn't allowed to use skills. - `internal_error` -- The skill's instructions couldn't be read. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.info */
553
995
  export const skillsInfo: API.OperationMethod<
554
996
  SkillsInfoRequest,
555
997
  SkillsInfoResponse,
556
998
  SkillsInfoError,
557
999
  SlackOpContext
558
1000
  > = /*@__PURE__*/ API.make(() => ({
559
- input: __S(36, __c9, 0) as any as S.Schema<SkillsInfoRequest>,
560
- output: __S(16, __c4, 0) as any as S.Schema<SkillsInfoResponse>,
561
- errors: [SlackError, SlackRateLimited],
1001
+ input: __S(28, __c7, 0) as any as S.Schema<SkillsInfoRequest>,
1002
+ output: __S(48, __c12, 0) as any as S.Schema<SkillsInfoResponse>,
1003
+ errors: [],
1004
+ serviceErrors: SlackServiceErrors,
562
1005
  protocol: SlackProtocol,
563
1006
  retry: Retry.Retry,
564
1007
  telemetry: TELEMETRY,
@@ -566,31 +1009,51 @@ export const skillsInfo: API.OperationMethod<
566
1009
  }));
567
1010
 
568
1011
  export type UpdateSkillError = SlackOpError;
569
- /** Changes a Slackbot skill's instructions or metadata. Only the inputs you send are changed; a call that changes nothing succeeds without writing. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_not_found` -- The skill doesn't exist or the caller can't see it. - `method_not_supported_for_skill_type` -- Only canvas skills can be changed. - `restricted_action` -- The caller isn't allowed to change this skill. - `feature_not_enabled` -- The Skills API isn't enabled for this organization. - `canvas_editing_locked` -- Another edit to the skill is in progress. Retry the request. - `canvas_editing_failed` -- The skill's instructions or display name couldn't be saved. - `invalid_category` -- `category` isn't one of the skill categories. - `display_name_too_long` -- `display_name` is longer than 255 characters. - `description_too_long` -- `description` is longer than 400 characters. - `example_prompt_too_long` -- `example_prompt` is longer than 200 characters. - `instructions_too_large` -- `instructions` is larger than 500,000 bytes. - `too_many_mcp_servers` -- More apps were declared than the caller can enable at once. - `mcp_server_not_found` -- One or more declared apps don't exist or aren't available to the caller. `invalid_mcp_servers` lists them. - `internal_error` -- The skill's metadata couldn't be saved. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.update */
1012
+ /** Changes a Slackbot skill's instructions or metadata. Only the inputs you send are changed; a call that changes nothing succeeds without writing. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_not_found` -- The skill doesn't exist or the caller can't see it. - `method_not_supported_for_skill_type` -- Only canvas skills can be changed. - `restricted_action` -- The caller isn't allowed to change this skill. - `canvas_editing_locked` -- Another edit to the skill is in progress. Retry the request. - `canvas_editing_failed` -- The skill's instructions or display name couldn't be saved. - `category_inactive` -- `category` is a built-in category the org's admins turned off. Pick an active category, resend the skill's current one, or omit `category`. - `invalid_category` -- `category` isn't one of the skill categories. - `display_name_too_long` -- `display_name` is longer than 255 characters. - `description_too_long` -- `description` is longer than 400 characters. - `example_prompt_too_long` -- `example_prompt` is longer than 200 characters. - `instructions_too_large` -- `instructions` is larger than 500,000 bytes. - `too_many_mcp_servers` -- More apps were declared than the caller can enable at once. - `mcp_server_not_found` -- One or more declared apps don't exist or aren't available to the caller. `invalid_mcp_servers` lists them. - `internal_error` -- The skill's metadata couldn't be saved. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skills.update */
570
1013
  export const updateSkill: API.OperationMethod<
571
1014
  UpdateSkillRequest,
572
1015
  UpdateSkillResponse,
573
1016
  UpdateSkillError,
574
1017
  SlackOpContext
575
1018
  > = /*@__PURE__*/ API.make(() => ({
576
- input: __S(40, __c10, 0) as any as S.Schema<UpdateSkillRequest>,
577
- output: __S(16, __c4, 0) as any as S.Schema<UpdateSkillResponse>,
578
- errors: [SlackError, SlackRateLimited],
1019
+ input: __S(32, __c8, 0) as any as S.Schema<UpdateSkillRequest>,
1020
+ output: __S(48, __c12, 0) as any as S.Schema<UpdateSkillResponse>,
1021
+ errors: [],
1022
+ serviceErrors: SlackServiceErrors,
579
1023
  protocol: SlackProtocol,
580
1024
  retry: Retry.Retry,
581
1025
  telemetry: TELEMETRY,
582
1026
  span: "UpdateSkill",
583
1027
  }));
584
1028
 
1029
+ export type UpdateSkillSetError = SlackOpError;
1030
+ /** Changes a Slackbot skill set's display name or description. Required scopes -- bot: `skills:write`; user: `skills:write` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `skill_set_not_found` -- The skill set doesn't exist or the caller can't see it. - `restricted_action` -- The caller can't use skill sets or can't edit this skill set. - `display_name_required` -- `display_name` is empty or blank. - `display_name_too_long` -- `display_name` is longer than 255 characters. - `description_too_long` -- `description` is longer than 2,000 characters. - `skill_set_update_failed` -- The change couldn't be saved, for example because of a conflicting edit. Read the current skill set before retrying. - `internal_error` -- A lookup or write failed. Retry the request. See https://docs.slack.dev/reference/methods/slackbot.skillSets.update */
1031
+ export const updateSkillSet: API.OperationMethod<
1032
+ UpdateSkillSetRequest,
1033
+ UpdateSkillSetResponse,
1034
+ UpdateSkillSetError,
1035
+ SlackOpContext
1036
+ > = /*@__PURE__*/ API.make(() => ({
1037
+ input: __S(36, __c9, 0) as any as S.Schema<UpdateSkillSetRequest>,
1038
+ output: __S(64, __c16, 0) as any as S.Schema<UpdateSkillSetResponse>,
1039
+ errors: [],
1040
+ serviceErrors: SlackServiceErrors,
1041
+ protocol: SlackProtocol,
1042
+ retry: Retry.Retry,
1043
+ telemetry: TELEMETRY,
1044
+ span: "UpdateSkillSet",
1045
+ }));
1046
+
585
1047
  // Schema builders: each runs one schema initializer, on that schema's first use.
586
1048
  function __c0(j: number): any {
587
1049
  switch (j) {
588
1050
  case 0:
589
1051
  return S.suspend(() =>
590
1052
  S.Struct({
591
- skill_id: S.String,
592
- }).pipe(T.Http({ method: "POST", uri: "/slackbot.skills.library.add", code: 200 })),
593
- ).annotate({ identifier: "AddSkillsLibraryRequest" });
1053
+ skill_set_id: S.String,
1054
+ skill_ids: __S(8, __c2, 0),
1055
+ }).pipe(T.Http({ method: "POST", uri: "/slackbot.skillSets.items.add", code: 200 })),
1056
+ ).annotate({ identifier: "AddSkillSetsItemRequest" });
594
1057
  }
595
1058
  }
596
1059
  function __c1(j: number): any {
@@ -600,10 +1063,121 @@ function __c1(j: number): any {
600
1063
  S.Struct({
601
1064
  ok: S.Boolean,
602
1065
  }),
603
- ).annotate({ identifier: "AddSkillsLibraryResponse" });
1066
+ ).annotate({ identifier: "AddSkillSetsItemResponse" });
604
1067
  }
605
1068
  }
606
1069
  function __c2(j: number): any {
1070
+ switch (j) {
1071
+ case 0:
1072
+ return S.Array(S.String);
1073
+ }
1074
+ }
1075
+ function __c3(j: number): any {
1076
+ switch (j) {
1077
+ case 0:
1078
+ return S.suspend(() =>
1079
+ S.Struct({
1080
+ skill_set_id: S.String,
1081
+ }).pipe(T.Http({ method: "POST", uri: "/slackbot.skillSets.library.add", code: 200 })),
1082
+ ).annotate({ identifier: "AddSkillSetsLibraryRequest" });
1083
+ }
1084
+ }
1085
+ function __c4(j: number): any {
1086
+ switch (j) {
1087
+ case 0:
1088
+ return S.suspend(() =>
1089
+ S.Struct({
1090
+ skill_set_id: S.String,
1091
+ }).pipe(T.Http({ method: "POST", uri: "/slackbot.skillSets.library.remove", code: 200 })),
1092
+ ).annotate({ identifier: "RemoveSkillSetsLibraryRequest" });
1093
+ }
1094
+ }
1095
+ function __c5(j: number): any {
1096
+ switch (j) {
1097
+ case 0:
1098
+ return S.suspend(() =>
1099
+ S.Struct({
1100
+ skill_id: S.String,
1101
+ }).pipe(T.Http({ method: "POST", uri: "/slackbot.skills.library.remove", code: 200 })),
1102
+ ).annotate({ identifier: "RemoveSkillsLibraryRequest" });
1103
+ }
1104
+ }
1105
+ function __c6(j: number): any {
1106
+ switch (j) {
1107
+ case 0:
1108
+ return S.suspend(() =>
1109
+ S.Struct({
1110
+ skill_set_id: S.String,
1111
+ }).pipe(T.Http({ method: "POST", uri: "/slackbot.skillSets.info", code: 200 })),
1112
+ ).annotate({ identifier: "SkillSetsInfoRequest" });
1113
+ case 1:
1114
+ return S.suspend(() =>
1115
+ S.Struct({
1116
+ skill_id: S.String,
1117
+ skill: S.NullOr(__S(58, __c14, 2)),
1118
+ }),
1119
+ ).annotate({ identifier: "SkillSetsInfoResponseItemsItem" });
1120
+ case 2:
1121
+ return S.Array(__S(25, __c6, 1));
1122
+ case 3:
1123
+ return S.suspend(() =>
1124
+ S.Struct({
1125
+ ok: S.Boolean,
1126
+ skill_set: __S(68, __c17, 0),
1127
+ items: __S(26, __c6, 2),
1128
+ }),
1129
+ ).annotate({ identifier: "SkillSetsInfoResponse" });
1130
+ }
1131
+ }
1132
+ function __c7(j: number): any {
1133
+ switch (j) {
1134
+ case 0:
1135
+ return S.suspend(() =>
1136
+ S.Struct({
1137
+ skill_id: S.String,
1138
+ }).pipe(T.Http({ method: "POST", uri: "/slackbot.skills.info", code: 200 })),
1139
+ ).annotate({ identifier: "SkillsInfoRequest" });
1140
+ }
1141
+ }
1142
+ function __c8(j: number): any {
1143
+ switch (j) {
1144
+ case 0:
1145
+ return S.suspend(() =>
1146
+ S.Struct({
1147
+ skill_id: S.String,
1148
+ display_name: S.optional(S.String),
1149
+ instructions: S.optional(S.String),
1150
+ description: S.optional(S.String),
1151
+ category: S.optional(S.String),
1152
+ example_prompt: S.optional(S.String),
1153
+ mcp_servers: S.optional(__S(53, __c13, 1)),
1154
+ }).pipe(T.Http({ method: "POST", uri: "/slackbot.skills.update", code: 200 })),
1155
+ ).annotate({ identifier: "UpdateSkillRequest" });
1156
+ }
1157
+ }
1158
+ function __c9(j: number): any {
1159
+ switch (j) {
1160
+ case 0:
1161
+ return S.suspend(() =>
1162
+ S.Struct({
1163
+ skill_set_id: S.String,
1164
+ display_name: S.optional(S.String),
1165
+ description: S.optional(S.String),
1166
+ }).pipe(T.Http({ method: "POST", uri: "/slackbot.skillSets.update", code: 200 })),
1167
+ ).annotate({ identifier: "UpdateSkillSetRequest" });
1168
+ }
1169
+ }
1170
+ function __c10(j: number): any {
1171
+ switch (j) {
1172
+ case 0:
1173
+ return S.suspend(() =>
1174
+ S.Struct({
1175
+ skill_id: S.String,
1176
+ }).pipe(T.Http({ method: "POST", uri: "/slackbot.skills.library.add", code: 200 })),
1177
+ ).annotate({ identifier: "AddSkillsLibraryRequest" });
1178
+ }
1179
+ }
1180
+ function __c11(j: number): any {
607
1181
  switch (j) {
608
1182
  case 0:
609
1183
  return S.suspend(() =>
@@ -614,12 +1188,38 @@ function __c2(j: number): any {
614
1188
  description: S.optional(S.String),
615
1189
  category: S.optional(S.String),
616
1190
  example_prompt: S.optional(S.String),
617
- mcp_servers: S.optional(__S(21, __c5, 1)),
1191
+ mcp_servers: S.optional(__S(53, __c13, 1)),
618
1192
  }).pipe(T.Http({ method: "POST", uri: "/slackbot.skills.create", code: 200 })),
619
1193
  ).annotate({ identifier: "CreateSkillRequest" });
620
1194
  }
621
1195
  }
622
- function __c3(j: number): any {
1196
+ function __c12(j: number): any {
1197
+ switch (j) {
1198
+ case 0:
1199
+ return S.suspend(() =>
1200
+ S.Struct({
1201
+ ok: S.Boolean,
1202
+ skill: __S(58, __c14, 2),
1203
+ }),
1204
+ ).annotate({ identifier: "CreateSkillResponse" });
1205
+ }
1206
+ }
1207
+ function __c13(j: number): any {
1208
+ switch (j) {
1209
+ case 0:
1210
+ return S.suspend(() =>
1211
+ S.Struct({
1212
+ service_type: S.String,
1213
+ app_id: S.optional(S.String),
1214
+ server_id: S.optional(S.String),
1215
+ permission_namespace: S.optional(S.String),
1216
+ }),
1217
+ ).annotate({ identifier: "CreateSkillRequestMcpServersItem" });
1218
+ case 1:
1219
+ return S.Array(__S(52, __c13, 0));
1220
+ }
1221
+ }
1222
+ function __c14(j: number): any {
623
1223
  switch (j) {
624
1224
  case 0:
625
1225
  return S.suspend(() =>
@@ -633,7 +1233,7 @@ function __c3(j: number): any {
633
1233
  }),
634
1234
  ).annotate({ identifier: "CreateSkillResponseSkillMcpServersItem" });
635
1235
  case 1:
636
- return S.Array(__S(12, __c3, 0));
1236
+ return S.Array(__S(56, __c14, 0));
637
1237
  case 2:
638
1238
  return S.suspend(() =>
639
1239
  S.Struct({
@@ -648,7 +1248,7 @@ function __c3(j: number): any {
648
1248
  visibility: S.NullOr(S.String),
649
1249
  is_official: S.Boolean,
650
1250
  access: S.String,
651
- mcp_servers: __S(13, __c3, 1),
1251
+ mcp_servers: __S(57, __c14, 1),
652
1252
  usage_count: S.Unknown,
653
1253
  library_count: S.Unknown,
654
1254
  creator_id: S.Unknown,
@@ -659,33 +1259,48 @@ function __c3(j: number): any {
659
1259
  ).annotate({ identifier: "CreateSkillResponseSkill" });
660
1260
  }
661
1261
  }
662
- function __c4(j: number): any {
1262
+ function __c15(j: number): any {
1263
+ switch (j) {
1264
+ case 0:
1265
+ return S.suspend(() =>
1266
+ S.Struct({
1267
+ display_name: S.String,
1268
+ description: S.optional(S.String),
1269
+ }).pipe(T.Http({ method: "POST", uri: "/slackbot.skillSets.create", code: 200 })),
1270
+ ).annotate({ identifier: "CreateSkillSetRequest" });
1271
+ }
1272
+ }
1273
+ function __c16(j: number): any {
663
1274
  switch (j) {
664
1275
  case 0:
665
1276
  return S.suspend(() =>
666
1277
  S.Struct({
667
1278
  ok: S.Boolean,
668
- skill: __S(14, __c3, 2),
1279
+ skill_set: __S(68, __c17, 0),
669
1280
  }),
670
- ).annotate({ identifier: "CreateSkillResponse" });
1281
+ ).annotate({ identifier: "CreateSkillSetResponse" });
671
1282
  }
672
1283
  }
673
- function __c5(j: number): any {
1284
+ function __c17(j: number): any {
674
1285
  switch (j) {
675
1286
  case 0:
676
1287
  return S.suspend(() =>
677
1288
  S.Struct({
678
- service_type: S.String,
679
- app_id: S.optional(S.String),
680
- server_id: S.optional(S.String),
681
- permission_namespace: S.optional(S.String),
1289
+ id: S.String,
1290
+ display_name: S.String,
1291
+ description: S.Unknown,
1292
+ access: S.String,
1293
+ is_in_library: S.Boolean,
1294
+ skill_count: S.Number,
1295
+ creator_id: S.Unknown,
1296
+ date_created: S.Unknown,
1297
+ date_updated: S.Unknown,
1298
+ permalink: S.String,
682
1299
  }),
683
- ).annotate({ identifier: "CreateSkillRequestMcpServersItem" });
684
- case 1:
685
- return S.Array(__S(20, __c5, 0));
1300
+ ).annotate({ identifier: "CreateSkillSetResponseSkillSet" });
686
1301
  }
687
1302
  }
688
- function __c6(j: number): any {
1303
+ function __c18(j: number): any {
689
1304
  switch (j) {
690
1305
  case 0:
691
1306
  return S.suspend(() =>
@@ -695,7 +1310,17 @@ function __c6(j: number): any {
695
1310
  ).annotate({ identifier: "DeleteSkillRequest" });
696
1311
  }
697
1312
  }
698
- function __c7(j: number): any {
1313
+ function __c19(j: number): any {
1314
+ switch (j) {
1315
+ case 0:
1316
+ return S.suspend(() =>
1317
+ S.Struct({
1318
+ skill_set_id: S.String,
1319
+ }).pipe(T.Http({ method: "POST", uri: "/slackbot.skillSets.delete", code: 200 })),
1320
+ ).annotate({ identifier: "DeleteSkillSetRequest" });
1321
+ }
1322
+ }
1323
+ function __c20(j: number): any {
699
1324
  switch (j) {
700
1325
  case 0:
701
1326
  return S.suspend(() =>
@@ -707,57 +1332,58 @@ function __c7(j: number): any {
707
1332
  }).pipe(T.Http({ method: "POST", uri: "/slackbot.skills.list", code: 200 })),
708
1333
  ).annotate({ identifier: "ListSkillsRequest" });
709
1334
  case 1:
710
- return S.Array(__S(14, __c3, 2));
1335
+ return S.Array(__S(58, __c14, 2));
711
1336
  case 2:
712
- return S.suspend(() =>
713
- S.Struct({
714
- next_cursor: S.optional(S.String),
715
- }),
716
- ).annotate({ identifier: "ListSkillsResponseResponseMetadata" });
717
- case 3:
718
1337
  return S.suspend(() =>
719
1338
  S.Struct({
720
1339
  ok: S.Boolean,
721
- skills: __S(29, __c7, 1),
722
- response_metadata: S.optional(__S(30, __c7, 2)),
1340
+ skills: __S(81, __c20, 1),
1341
+ response_metadata: S.optional(__S(84, __c21, 0)),
723
1342
  }),
724
1343
  ).annotate({ identifier: "ListSkillsResponse" });
725
1344
  }
726
1345
  }
727
- function __c8(j: number): any {
1346
+ function __c21(j: number): any {
728
1347
  switch (j) {
729
1348
  case 0:
730
1349
  return S.suspend(() =>
731
1350
  S.Struct({
732
- skill_id: S.String,
733
- }).pipe(T.Http({ method: "POST", uri: "/slackbot.skills.library.remove", code: 200 })),
734
- ).annotate({ identifier: "RemoveSkillsLibraryRequest" });
1351
+ next_cursor: S.optional(S.String),
1352
+ }),
1353
+ ).annotate({ identifier: "ListSkillsResponseResponseMetadata" });
735
1354
  }
736
1355
  }
737
- function __c9(j: number): any {
1356
+ function __c22(j: number): any {
738
1357
  switch (j) {
739
1358
  case 0:
740
1359
  return S.suspend(() =>
741
1360
  S.Struct({
742
- skill_id: S.String,
743
- }).pipe(T.Http({ method: "POST", uri: "/slackbot.skills.info", code: 200 })),
744
- ).annotate({ identifier: "SkillsInfoRequest" });
1361
+ filter: S.optional(S.String),
1362
+ cursor: S.optional(S.String),
1363
+ limit: S.optional(S.Number),
1364
+ }).pipe(T.Http({ method: "POST", uri: "/slackbot.skillSets.list", code: 200 })),
1365
+ ).annotate({ identifier: "ListSkillSetsRequest" });
1366
+ case 1:
1367
+ return S.Array(__S(68, __c17, 0));
1368
+ case 2:
1369
+ return S.suspend(() =>
1370
+ S.Struct({
1371
+ ok: S.Boolean,
1372
+ skill_sets: __S(89, __c22, 1),
1373
+ response_metadata: S.optional(__S(84, __c21, 0)),
1374
+ }),
1375
+ ).annotate({ identifier: "ListSkillSetsResponse" });
745
1376
  }
746
1377
  }
747
- function __c10(j: number): any {
1378
+ function __c23(j: number): any {
748
1379
  switch (j) {
749
1380
  case 0:
750
1381
  return S.suspend(() =>
751
1382
  S.Struct({
752
- skill_id: S.String,
753
- display_name: S.optional(S.String),
754
- instructions: S.optional(S.String),
755
- description: S.optional(S.String),
756
- category: S.optional(S.String),
757
- example_prompt: S.optional(S.String),
758
- mcp_servers: S.optional(__S(21, __c5, 1)),
759
- }).pipe(T.Http({ method: "POST", uri: "/slackbot.skills.update", code: 200 })),
760
- ).annotate({ identifier: "UpdateSkillRequest" });
1383
+ skill_set_id: S.String,
1384
+ skill_ids: __S(8, __c2, 0),
1385
+ }).pipe(T.Http({ method: "POST", uri: "/slackbot.skillSets.items.remove", code: 200 })),
1386
+ ).annotate({ identifier: "RemoveSkillSetsItemRequest" });
761
1387
  }
762
1388
  }
763
1389
  // Schema table: entry i is schema j of builder f, made on first reach.