UNPKG

@slack/web-api

Version:

Official library for using the Slack Platform's Web API

79 lines • 4.2 kB
import type { OptionalArgument } from '../helpers'; import type { TokenOverridable } from './common'; export interface SlackbotSkillsCreateArguments extends TokenOverridable { /** @description Human-readable label. Max 255 characters; not unique. */ display_name: string; /** @description Markdown body of the skill. Send exactly one of `instructions` or `canvas_id`. */ instructions?: string; /** @description Canvas the caller owns to turn into a skill. Send exactly one of `instructions` or `canvas_id`. */ canvas_id?: string; /** @description When Slackbot should use the skill. Max 400 characters. */ description?: string; /** @description One of the skill categories. */ category?: 'communication' | 'customer_support' | 'data_and_analytics' | 'engineering' | 'other' | 'product_management' | 'productivity' | 'professional_development' | 'project_management' | 'sales' | 'system' | 'team_management'; /** @description Max 200 characters. May contain `{skill}`, which becomes the skill mention. */ example_prompt?: string; /** * @description Apps the skill needs, capped at the caller's MCP server limit. Declaring an app doesn't grant * access to it. */ mcp_servers?: { service_type: string; app_id?: string; server_id?: string; }[]; } export interface SlackbotSkillsDeleteArguments extends TokenOverridable { /** @description Skill to delete. */ skill_id: string; } export interface SlackbotSkillsInfoArguments extends TokenOverridable { /** @description Skill to fetch: a canvas file ID or a `builtin:` reference. */ skill_id: string; } export interface SlackbotSkillsLibraryAddArguments extends TokenOverridable { /** @description Skill to turn on for the caller. */ skill_id: string; } export interface SlackbotSkillsLibraryRemoveArguments extends TokenOverridable { /** @description Skill to turn off for the caller. */ skill_id: string; } export type SlackbotSkillsListArguments = OptionalArgument<TokenOverridable & { /** * @description `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. */ filter?: 'catalog' | 'library' | 'owned'; /** @description Only return skills in this category. */ category?: 'communication' | 'customer_support' | 'data_and_analytics' | 'engineering' | 'other' | 'product_management' | 'productivity' | 'professional_development' | 'project_management' | 'sales' | 'system' | 'team_management'; /** * @description 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` and * `category`. */ cursor?: string; /** @description The maximum number of skills to return. Fewer may be returned even when more remain. */ limit?: number; }>; export interface SlackbotSkillsUpdateArguments extends TokenOverridable { /** @description Skill to change. */ skill_id: string; /** @description Human-readable label. Max 255 characters. */ display_name?: string; /** @description Markdown that replaces the whole document. */ instructions?: string; /** @description When Slackbot should use the skill. Max 400 characters. Send an empty string to clear. */ description?: string; /** @description One of the skill categories. Send an empty string to clear. */ category?: 'communication' | 'customer_support' | 'data_and_analytics' | 'engineering' | 'other' | 'product_management' | 'productivity' | 'professional_development' | 'project_management' | 'sales' | 'system' | 'team_management' | ''; /** @description Max 200 characters. May contain `{skill}`. Send an empty string to clear. */ example_prompt?: string; /** @description Apps the skill needs. Replaces the whole list; send `[]` to clear. */ mcp_servers?: { service_type: string; app_id?: string; server_id?: string; }[]; } //# sourceMappingURL=slackbot.d.ts.map