@distilled.cloud/slack 1.0.0-rc.21 → 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.
- package/lib/services/admin.d.ts +4 -4
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/agents.d.ts +54 -28
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +1 -1
- package/lib/services/agents.js.map +1 -1
- package/lib/services/apps.d.ts +62 -2
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +34 -32
- package/lib/services/apps.js.map +1 -1
- package/lib/services/slackbot.d.ts +299 -7
- package/lib/services/slackbot.d.ts.map +1 -1
- package/lib/services/slackbot.js +1 -1
- package/lib/services/slackbot.js.map +1 -1
- package/lib/services.lazy/apps.js +2 -2
- package/package.json +4 -4
- package/src/services/admin.ts +4 -4
- package/src/services/agents.ts +87 -38
- package/src/services/apps.ts +250 -102
- package/src/services/slackbot.ts +685 -66
package/src/services/slackbot.ts
CHANGED
|
@@ -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,15 +695,90 @@ 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. - `
|
|
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(
|
|
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
783
|
errors: [],
|
|
466
784
|
serviceErrors: SlackServiceErrors,
|
|
@@ -471,15 +789,15 @@ export const addSkillsLibrary: API.OperationMethod<
|
|
|
471
789
|
}));
|
|
472
790
|
|
|
473
791
|
export type CreateSkillError = SlackOpError;
|
|
474
|
-
/** 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. - `
|
|
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 */
|
|
475
793
|
export const createSkill: API.OperationMethod<
|
|
476
794
|
CreateSkillRequest,
|
|
477
795
|
CreateSkillResponse,
|
|
478
796
|
CreateSkillError,
|
|
479
797
|
SlackOpContext
|
|
480
798
|
> = /*@__PURE__*/ API.make(() => ({
|
|
481
|
-
input: __S(
|
|
482
|
-
output: __S(
|
|
799
|
+
input: __S(44, __c11, 0) as any as S.Schema<CreateSkillRequest>,
|
|
800
|
+
output: __S(48, __c12, 0) as any as S.Schema<CreateSkillResponse>,
|
|
483
801
|
errors: [],
|
|
484
802
|
serviceErrors: SlackServiceErrors,
|
|
485
803
|
protocol: SlackProtocol,
|
|
@@ -488,15 +806,33 @@ export const createSkill: API.OperationMethod<
|
|
|
488
806
|
span: "CreateSkill",
|
|
489
807
|
}));
|
|
490
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
|
+
|
|
491
827
|
export type DeleteSkillError = SlackOpError;
|
|
492
|
-
/** 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. - `
|
|
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 */
|
|
493
829
|
export const deleteSkill: API.OperationMethod<
|
|
494
830
|
DeleteSkillRequest,
|
|
495
831
|
DeleteSkillResponse,
|
|
496
832
|
DeleteSkillError,
|
|
497
833
|
SlackOpContext
|
|
498
834
|
> = /*@__PURE__*/ API.make(() => ({
|
|
499
|
-
input: __S(
|
|
835
|
+
input: __S(72, __c18, 0) as any as S.Schema<DeleteSkillRequest>,
|
|
500
836
|
output: __S(4, __c1, 0) as any as S.Schema<DeleteSkillResponse>,
|
|
501
837
|
errors: [],
|
|
502
838
|
serviceErrors: SlackServiceErrors,
|
|
@@ -506,8 +842,26 @@ export const deleteSkill: API.OperationMethod<
|
|
|
506
842
|
span: "DeleteSkill",
|
|
507
843
|
}));
|
|
508
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
|
+
|
|
509
863
|
export type ListSkillsError = SlackOpError;
|
|
510
|
-
/** 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. - `
|
|
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 */
|
|
511
865
|
export const listSkills: API.PaginatedOperationMethod<
|
|
512
866
|
ListSkillsRequest,
|
|
513
867
|
ListSkillsResponse,
|
|
@@ -516,8 +870,8 @@ export const listSkills: API.PaginatedOperationMethod<
|
|
|
516
870
|
ListSkillsResponseSkillsItem
|
|
517
871
|
> = /*@__PURE__*/ API.makePaginated(
|
|
518
872
|
() => ({
|
|
519
|
-
input: __S(
|
|
520
|
-
output: __S(
|
|
873
|
+
input: __S(80, __c20, 0) as any as S.Schema<ListSkillsRequest>,
|
|
874
|
+
output: __S(82, __c20, 2) as any as S.Schema<ListSkillsResponse>,
|
|
521
875
|
errors: [],
|
|
522
876
|
serviceErrors: SlackServiceErrors,
|
|
523
877
|
protocol: SlackProtocol,
|
|
@@ -535,15 +889,80 @@ export const listSkills: API.PaginatedOperationMethod<
|
|
|
535
889
|
slackPaginate,
|
|
536
890
|
) as any;
|
|
537
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
|
+
|
|
538
957
|
export type RemoveSkillsLibraryError = SlackOpError;
|
|
539
|
-
/** 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. - `
|
|
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 */
|
|
540
959
|
export const removeSkillsLibrary: API.OperationMethod<
|
|
541
960
|
RemoveSkillsLibraryRequest,
|
|
542
961
|
RemoveSkillsLibraryResponse,
|
|
543
962
|
RemoveSkillsLibraryError,
|
|
544
963
|
SlackOpContext
|
|
545
964
|
> = /*@__PURE__*/ API.make(() => ({
|
|
546
|
-
input: __S(
|
|
965
|
+
input: __S(20, __c5, 0) as any as S.Schema<RemoveSkillsLibraryRequest>,
|
|
547
966
|
output: __S(4, __c1, 0) as any as S.Schema<RemoveSkillsLibraryResponse>,
|
|
548
967
|
errors: [],
|
|
549
968
|
serviceErrors: SlackServiceErrors,
|
|
@@ -553,16 +972,34 @@ export const removeSkillsLibrary: API.OperationMethod<
|
|
|
553
972
|
span: "RemoveSkillsLibrary",
|
|
554
973
|
}));
|
|
555
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
|
+
|
|
556
993
|
export type SkillsInfoError = SlackOpError;
|
|
557
|
-
/** 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. - `
|
|
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 */
|
|
558
995
|
export const skillsInfo: API.OperationMethod<
|
|
559
996
|
SkillsInfoRequest,
|
|
560
997
|
SkillsInfoResponse,
|
|
561
998
|
SkillsInfoError,
|
|
562
999
|
SlackOpContext
|
|
563
1000
|
> = /*@__PURE__*/ API.make(() => ({
|
|
564
|
-
input: __S(
|
|
565
|
-
output: __S(
|
|
1001
|
+
input: __S(28, __c7, 0) as any as S.Schema<SkillsInfoRequest>,
|
|
1002
|
+
output: __S(48, __c12, 0) as any as S.Schema<SkillsInfoResponse>,
|
|
566
1003
|
errors: [],
|
|
567
1004
|
serviceErrors: SlackServiceErrors,
|
|
568
1005
|
protocol: SlackProtocol,
|
|
@@ -572,15 +1009,15 @@ export const skillsInfo: API.OperationMethod<
|
|
|
572
1009
|
}));
|
|
573
1010
|
|
|
574
1011
|
export type UpdateSkillError = SlackOpError;
|
|
575
|
-
/** 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. - `
|
|
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 */
|
|
576
1013
|
export const updateSkill: API.OperationMethod<
|
|
577
1014
|
UpdateSkillRequest,
|
|
578
1015
|
UpdateSkillResponse,
|
|
579
1016
|
UpdateSkillError,
|
|
580
1017
|
SlackOpContext
|
|
581
1018
|
> = /*@__PURE__*/ API.make(() => ({
|
|
582
|
-
input: __S(
|
|
583
|
-
output: __S(
|
|
1019
|
+
input: __S(32, __c8, 0) as any as S.Schema<UpdateSkillRequest>,
|
|
1020
|
+
output: __S(48, __c12, 0) as any as S.Schema<UpdateSkillResponse>,
|
|
584
1021
|
errors: [],
|
|
585
1022
|
serviceErrors: SlackServiceErrors,
|
|
586
1023
|
protocol: SlackProtocol,
|
|
@@ -589,15 +1026,34 @@ export const updateSkill: API.OperationMethod<
|
|
|
589
1026
|
span: "UpdateSkill",
|
|
590
1027
|
}));
|
|
591
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
|
+
|
|
592
1047
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
593
1048
|
function __c0(j: number): any {
|
|
594
1049
|
switch (j) {
|
|
595
1050
|
case 0:
|
|
596
1051
|
return S.suspend(() =>
|
|
597
1052
|
S.Struct({
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
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" });
|
|
601
1057
|
}
|
|
602
1058
|
}
|
|
603
1059
|
function __c1(j: number): any {
|
|
@@ -607,10 +1063,121 @@ function __c1(j: number): any {
|
|
|
607
1063
|
S.Struct({
|
|
608
1064
|
ok: S.Boolean,
|
|
609
1065
|
}),
|
|
610
|
-
).annotate({ identifier: "
|
|
1066
|
+
).annotate({ identifier: "AddSkillSetsItemResponse" });
|
|
611
1067
|
}
|
|
612
1068
|
}
|
|
613
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 {
|
|
614
1181
|
switch (j) {
|
|
615
1182
|
case 0:
|
|
616
1183
|
return S.suspend(() =>
|
|
@@ -621,12 +1188,38 @@ function __c2(j: number): any {
|
|
|
621
1188
|
description: S.optional(S.String),
|
|
622
1189
|
category: S.optional(S.String),
|
|
623
1190
|
example_prompt: S.optional(S.String),
|
|
624
|
-
mcp_servers: S.optional(__S(
|
|
1191
|
+
mcp_servers: S.optional(__S(53, __c13, 1)),
|
|
625
1192
|
}).pipe(T.Http({ method: "POST", uri: "/slackbot.skills.create", code: 200 })),
|
|
626
1193
|
).annotate({ identifier: "CreateSkillRequest" });
|
|
627
1194
|
}
|
|
628
1195
|
}
|
|
629
|
-
function
|
|
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 {
|
|
630
1223
|
switch (j) {
|
|
631
1224
|
case 0:
|
|
632
1225
|
return S.suspend(() =>
|
|
@@ -640,7 +1233,7 @@ function __c3(j: number): any {
|
|
|
640
1233
|
}),
|
|
641
1234
|
).annotate({ identifier: "CreateSkillResponseSkillMcpServersItem" });
|
|
642
1235
|
case 1:
|
|
643
|
-
return S.Array(__S(
|
|
1236
|
+
return S.Array(__S(56, __c14, 0));
|
|
644
1237
|
case 2:
|
|
645
1238
|
return S.suspend(() =>
|
|
646
1239
|
S.Struct({
|
|
@@ -655,7 +1248,7 @@ function __c3(j: number): any {
|
|
|
655
1248
|
visibility: S.NullOr(S.String),
|
|
656
1249
|
is_official: S.Boolean,
|
|
657
1250
|
access: S.String,
|
|
658
|
-
mcp_servers: __S(
|
|
1251
|
+
mcp_servers: __S(57, __c14, 1),
|
|
659
1252
|
usage_count: S.Unknown,
|
|
660
1253
|
library_count: S.Unknown,
|
|
661
1254
|
creator_id: S.Unknown,
|
|
@@ -666,33 +1259,48 @@ function __c3(j: number): any {
|
|
|
666
1259
|
).annotate({ identifier: "CreateSkillResponseSkill" });
|
|
667
1260
|
}
|
|
668
1261
|
}
|
|
669
|
-
function
|
|
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 {
|
|
670
1274
|
switch (j) {
|
|
671
1275
|
case 0:
|
|
672
1276
|
return S.suspend(() =>
|
|
673
1277
|
S.Struct({
|
|
674
1278
|
ok: S.Boolean,
|
|
675
|
-
|
|
1279
|
+
skill_set: __S(68, __c17, 0),
|
|
676
1280
|
}),
|
|
677
|
-
).annotate({ identifier: "
|
|
1281
|
+
).annotate({ identifier: "CreateSkillSetResponse" });
|
|
678
1282
|
}
|
|
679
1283
|
}
|
|
680
|
-
function
|
|
1284
|
+
function __c17(j: number): any {
|
|
681
1285
|
switch (j) {
|
|
682
1286
|
case 0:
|
|
683
1287
|
return S.suspend(() =>
|
|
684
1288
|
S.Struct({
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
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,
|
|
689
1299
|
}),
|
|
690
|
-
).annotate({ identifier: "
|
|
691
|
-
case 1:
|
|
692
|
-
return S.Array(__S(20, __c5, 0));
|
|
1300
|
+
).annotate({ identifier: "CreateSkillSetResponseSkillSet" });
|
|
693
1301
|
}
|
|
694
1302
|
}
|
|
695
|
-
function
|
|
1303
|
+
function __c18(j: number): any {
|
|
696
1304
|
switch (j) {
|
|
697
1305
|
case 0:
|
|
698
1306
|
return S.suspend(() =>
|
|
@@ -702,7 +1310,17 @@ function __c6(j: number): any {
|
|
|
702
1310
|
).annotate({ identifier: "DeleteSkillRequest" });
|
|
703
1311
|
}
|
|
704
1312
|
}
|
|
705
|
-
function
|
|
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 {
|
|
706
1324
|
switch (j) {
|
|
707
1325
|
case 0:
|
|
708
1326
|
return S.suspend(() =>
|
|
@@ -714,57 +1332,58 @@ function __c7(j: number): any {
|
|
|
714
1332
|
}).pipe(T.Http({ method: "POST", uri: "/slackbot.skills.list", code: 200 })),
|
|
715
1333
|
).annotate({ identifier: "ListSkillsRequest" });
|
|
716
1334
|
case 1:
|
|
717
|
-
return S.Array(__S(
|
|
1335
|
+
return S.Array(__S(58, __c14, 2));
|
|
718
1336
|
case 2:
|
|
719
|
-
return S.suspend(() =>
|
|
720
|
-
S.Struct({
|
|
721
|
-
next_cursor: S.optional(S.String),
|
|
722
|
-
}),
|
|
723
|
-
).annotate({ identifier: "ListSkillsResponseResponseMetadata" });
|
|
724
|
-
case 3:
|
|
725
1337
|
return S.suspend(() =>
|
|
726
1338
|
S.Struct({
|
|
727
1339
|
ok: S.Boolean,
|
|
728
|
-
skills: __S(
|
|
729
|
-
response_metadata: S.optional(__S(
|
|
1340
|
+
skills: __S(81, __c20, 1),
|
|
1341
|
+
response_metadata: S.optional(__S(84, __c21, 0)),
|
|
730
1342
|
}),
|
|
731
1343
|
).annotate({ identifier: "ListSkillsResponse" });
|
|
732
1344
|
}
|
|
733
1345
|
}
|
|
734
|
-
function
|
|
1346
|
+
function __c21(j: number): any {
|
|
735
1347
|
switch (j) {
|
|
736
1348
|
case 0:
|
|
737
1349
|
return S.suspend(() =>
|
|
738
1350
|
S.Struct({
|
|
739
|
-
|
|
740
|
-
})
|
|
741
|
-
).annotate({ identifier: "
|
|
1351
|
+
next_cursor: S.optional(S.String),
|
|
1352
|
+
}),
|
|
1353
|
+
).annotate({ identifier: "ListSkillsResponseResponseMetadata" });
|
|
742
1354
|
}
|
|
743
1355
|
}
|
|
744
|
-
function
|
|
1356
|
+
function __c22(j: number): any {
|
|
745
1357
|
switch (j) {
|
|
746
1358
|
case 0:
|
|
747
1359
|
return S.suspend(() =>
|
|
748
1360
|
S.Struct({
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
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" });
|
|
752
1376
|
}
|
|
753
1377
|
}
|
|
754
|
-
function
|
|
1378
|
+
function __c23(j: number): any {
|
|
755
1379
|
switch (j) {
|
|
756
1380
|
case 0:
|
|
757
1381
|
return S.suspend(() =>
|
|
758
1382
|
S.Struct({
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
category: S.optional(S.String),
|
|
764
|
-
example_prompt: S.optional(S.String),
|
|
765
|
-
mcp_servers: S.optional(__S(21, __c5, 1)),
|
|
766
|
-
}).pipe(T.Http({ method: "POST", uri: "/slackbot.skills.update", code: 200 })),
|
|
767
|
-
).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" });
|
|
768
1387
|
}
|
|
769
1388
|
}
|
|
770
1389
|
// Schema table: entry i is schema j of builder f, made on first reach.
|