@distilled.cloud/slack 1.0.0-rc.17 → 1.0.0-rc.19
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/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +2 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/index.d.ts +3 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.lazy.js.map +1 -1
- package/lib/protocol.d.ts +3 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/admin.d.ts +594 -356
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +149 -139
- package/lib/services/admin.js.map +1 -1
- package/lib/services/agents.d.ts +89 -97
- 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/api.d.ts +2 -2
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +1 -1
- package/lib/services/api.js.map +1 -1
- package/lib/services/apps.d.ts +74 -74
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +34 -33
- package/lib/services/apps.js.map +1 -1
- package/lib/services/assistant.d.ts +55 -46
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +1 -1
- package/lib/services/assistant.js.map +1 -1
- package/lib/services/auth.d.ts +27 -27
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +1 -1
- package/lib/services/auth.js.map +1 -1
- package/lib/services/blocks.d.ts +3 -3
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +1 -1
- package/lib/services/blocks.js.map +1 -1
- package/lib/services/bookmarks.d.ts +19 -19
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +1 -1
- package/lib/services/bookmarks.js.map +1 -1
- package/lib/services/bots.d.ts +23 -23
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +1 -1
- package/lib/services/bots.js.map +1 -1
- package/lib/services/calls.d.ts +10 -10
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +1 -1
- package/lib/services/calls.js.map +1 -1
- package/lib/services/canvases.d.ts +18 -18
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +1 -1
- package/lib/services/canvases.js.map +1 -1
- package/lib/services/chat.d.ts +103 -103
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +1 -1
- package/lib/services/chat.js.map +1 -1
- package/lib/services/conversations.d.ts +109 -103
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +39 -38
- package/lib/services/conversations.js.map +1 -1
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +1 -1
- package/lib/services/dialog.js.map +1 -1
- package/lib/services/dnd.d.ts +14 -14
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +1 -1
- package/lib/services/dnd.js.map +1 -1
- package/lib/services/emoji.d.ts +6 -6
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +1 -1
- package/lib/services/emoji.js.map +1 -1
- package/lib/services/entity.d.ts +14 -14
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +1 -1
- package/lib/services/entity.js.map +1 -1
- package/lib/services/files.d.ts +106 -106
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +30 -1
- package/lib/services/files.js.map +1 -1
- package/lib/services/functions.d.ts +37 -37
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -1
- package/lib/services/functions.js.map +1 -1
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +1 -0
- package/lib/services/lists.d.ts +47 -45
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +1 -1
- package/lib/services/lists.js.map +1 -1
- package/lib/services/migration.d.ts +3 -3
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +1 -1
- package/lib/services/migration.js.map +1 -1
- package/lib/services/oauth.d.ts +102 -102
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +1 -1
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/openid.d.ts +40 -40
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +1 -1
- package/lib/services/openid.js.map +1 -1
- package/lib/services/pins.d.ts +9 -9
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +1 -1
- package/lib/services/pins.js.map +1 -1
- package/lib/services/reactions.d.ts +23 -23
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +1 -1
- package/lib/services/reactions.js.map +1 -1
- package/lib/services/reminders.d.ts +8 -8
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +1 -1
- package/lib/services/reminders.js.map +1 -1
- package/lib/services/rtm.d.ts +11 -11
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +1 -1
- package/lib/services/rtm.js.map +1 -1
- package/lib/services/search.d.ts +84 -80
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +1 -1
- package/lib/services/search.js.map +1 -1
- package/lib/services/slackbot.d.ts +366 -0
- package/lib/services/slackbot.d.ts.map +1 -0
- package/lib/services/slackbot.js +2 -0
- package/lib/services/slackbot.js.map +1 -0
- package/lib/services/stars.d.ts +16 -16
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +1 -1
- package/lib/services/stars.js.map +1 -1
- package/lib/services/team.d.ts +39 -37
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +1 -1
- package/lib/services/team.js.map +1 -1
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +1 -1
- package/lib/services/tooling.js.map +1 -1
- package/lib/services/usergroups.d.ts +30 -30
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +1 -1
- package/lib/services/usergroups.js.map +1 -1
- package/lib/services/users.d.ts +37 -37
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +1 -1
- package/lib/services/users.js.map +1 -1
- package/lib/services/views.d.ts +9 -9
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +1 -1
- package/lib/services/views.js.map +1 -1
- package/lib/services/workflows.d.ts +16 -16
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +1 -1
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/admin.js +2 -2
- package/lib/services.lazy/apps.js +1 -1
- package/lib/services.lazy/conversations.js +1 -1
- package/lib/services.lazy/files.js +3 -1
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/slackbot.js +1 -0
- package/package.json +8 -7
- package/src/credentials.ts +3 -2
- package/src/index.ts +3 -4
- package/src/protocol.ts +23 -21
- package/src/services/admin.ts +1882 -1034
- package/src/services/agents.ts +128 -103
- package/src/services/api.ts +17 -2
- package/src/services/apps.ts +133 -74
- package/src/services/assistant.ts +109 -54
- package/src/services/auth.ts +46 -27
- package/src/services/blocks.ts +18 -3
- package/src/services/bookmarks.ts +40 -19
- package/src/services/bots.ts +38 -23
- package/src/services/calls.ts +35 -10
- package/src/services/canvases.ts +77 -46
- package/src/services/chat.ts +142 -103
- package/src/services/conversations.ts +195 -115
- package/src/services/dialog.ts +15 -0
- package/src/services/dnd.ts +37 -14
- package/src/services/emoji.ts +21 -6
- package/src/services/entity.ts +33 -14
- package/src/services/files.ts +149 -106
- package/src/services/functions.ts +66 -37
- package/src/services/index.ts +1 -0
- package/src/services/lists.ts +86 -46
- package/src/services/migration.ts +18 -3
- package/src/services/oauth.ts +127 -102
- package/src/services/openid.ts +57 -40
- package/src/services/pins.ts +28 -9
- package/src/services/reactions.ts +44 -23
- package/src/services/reminders.ts +31 -8
- package/src/services/rtm.ts +28 -11
- package/src/services/search.ts +142 -130
- package/src/services/slackbot.ts +766 -0
- package/src/services/stars.ts +35 -16
- package/src/services/team.ts +73 -37
- package/src/services/tooling.ts +15 -0
- package/src/services/usergroups.ts +57 -30
- package/src/services/users.ts +76 -37
- package/src/services/views.ts +30 -9
- package/src/services/workflows.ts +45 -16
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
3
|
+
export type { SlackOpError, SlackOpContext };
|
|
4
|
+
export interface AddSkillsLibraryRequest {
|
|
5
|
+
/** Skill to turn on for the caller. */
|
|
6
|
+
skill_id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AddSkillsLibraryResponse {
|
|
9
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
10
|
+
ok: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** One of the skill categories. */
|
|
13
|
+
export type CreateSkillRequestCategory = "communication" | "customer_support" | "data_and_analytics" | "engineering" | "product_management" | "productivity" | "professional_development" | "project_management" | "sales" | "system" | "team_management" | "other";
|
|
14
|
+
/** An app the skill needs. App servers use `app_id` and `server_id`, Salesforce servers use `permission_namespace`, and built-in servers use `service_type` alone. */
|
|
15
|
+
export interface CreateSkillRequestMcpServersItem {
|
|
16
|
+
/** The server's service type: `app` for an app's MCP server, `salesforce`, or a built-in service type. */
|
|
17
|
+
service_type: string;
|
|
18
|
+
/** App ID. Present for app servers (`service_type` is `app`). */
|
|
19
|
+
app_id?: string | undefined;
|
|
20
|
+
/** ID of the app's MCP server. Present for app servers (`service_type` is `app`). */
|
|
21
|
+
server_id?: string | undefined;
|
|
22
|
+
/** Permission namespace. Present for Salesforce servers (`service_type` is `salesforce`). */
|
|
23
|
+
permission_namespace?: string | undefined;
|
|
24
|
+
}
|
|
25
|
+
/** Apps the skill needs, capped at the caller's MCP server limit. Declaring an app doesn't grant access to it. */
|
|
26
|
+
export type CreateSkillRequestMcpServersList = Array<CreateSkillRequestMcpServersItem>;
|
|
27
|
+
export interface CreateSkillRequest {
|
|
28
|
+
/** Human-readable label. Max 255 characters; not unique. */
|
|
29
|
+
display_name: string;
|
|
30
|
+
/** Markdown body of the skill. Send exactly one of `instructions` or `canvas_id`. */
|
|
31
|
+
instructions?: string | undefined;
|
|
32
|
+
/** Canvas the caller owns to turn into a skill. Send exactly one of `instructions` or `canvas_id`. */
|
|
33
|
+
canvas_id?: string | undefined;
|
|
34
|
+
/** When Slackbot should use the skill. Max 400 characters. */
|
|
35
|
+
description?: string | undefined;
|
|
36
|
+
/** One of the skill categories. */
|
|
37
|
+
category?: CreateSkillRequestCategory | (string & {}) | undefined;
|
|
38
|
+
/** Max 200 characters. May contain `{skill}`, which becomes the skill mention. */
|
|
39
|
+
example_prompt?: string | undefined;
|
|
40
|
+
/** Apps the skill needs, capped at the caller's MCP server limit. Declaring an app doesn't grant access to it. */
|
|
41
|
+
mcp_servers?: CreateSkillRequestMcpServersList | undefined;
|
|
42
|
+
}
|
|
43
|
+
/** Where the skill is defined. */
|
|
44
|
+
export type CreateSkillResponseSkillType = "canvas" | "builtin";
|
|
45
|
+
/** Enumerates the categories available for organizing AI skills. */
|
|
46
|
+
export type CreateSkillResponseSkillCategory = "communication" | "customer_support" | "data_and_analytics" | "engineering" | "product_management" | "productivity" | "professional_development" | "project_management" | "sales" | "system" | "team_management" | "other";
|
|
47
|
+
/** 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. */
|
|
48
|
+
export type CreateSkillResponseSkillVisibility = "invite_only" | "anyone_can_view" | "anyone_can_edit";
|
|
49
|
+
/** 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. */
|
|
50
|
+
export type CreateSkillResponseSkillAccess = "read" | "comment" | "write" | "owner";
|
|
51
|
+
/** 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. */
|
|
52
|
+
export interface CreateSkillResponseSkillMcpServersItem {
|
|
53
|
+
/** The server's service type: "app" for an app's MCP server, "salesforce", or a built-in service type. */
|
|
54
|
+
service_type: string;
|
|
55
|
+
/** App ID. Present for app servers. */
|
|
56
|
+
app_id?: string | undefined;
|
|
57
|
+
/** ID of the app's MCP server. Present for app servers. */
|
|
58
|
+
server_id?: string | undefined;
|
|
59
|
+
/** Permission namespace. Present for Salesforce servers. */
|
|
60
|
+
permission_namespace?: string | undefined;
|
|
61
|
+
/** The server's current name as the caller sees it, or null when the server isn't available to the caller. */
|
|
62
|
+
display_name: unknown;
|
|
63
|
+
/** Whether the caller can use this server. */
|
|
64
|
+
is_available: boolean;
|
|
65
|
+
}
|
|
66
|
+
/** Apps and MCP servers the skill needs. */
|
|
67
|
+
export type CreateSkillResponseSkillMcpServersList = Array<CreateSkillResponseSkillMcpServersItem>;
|
|
68
|
+
/** A Slackbot skill as returned by the slackbot.skills.* Web API methods. Fields with no value are null. */
|
|
69
|
+
export interface CreateSkillResponseSkill {
|
|
70
|
+
/** Skill ID: a canvas file ID for canvas skills, or a `builtin:` reference for built-in skills. */
|
|
71
|
+
id: string;
|
|
72
|
+
/** Where the skill is defined. */
|
|
73
|
+
type: CreateSkillResponseSkillType;
|
|
74
|
+
/** Human-readable label. Not unique. */
|
|
75
|
+
display_name: string;
|
|
76
|
+
/** Reserved for a future machine-readable skill name. Always null. */
|
|
77
|
+
name: unknown;
|
|
78
|
+
/** When Slackbot should use the skill. */
|
|
79
|
+
description: unknown;
|
|
80
|
+
/** Skill category. */
|
|
81
|
+
category: CreateSkillResponseSkillCategory | null;
|
|
82
|
+
/** Example prompt. `{skill}` stands for the skill mention. */
|
|
83
|
+
example_prompt: unknown;
|
|
84
|
+
/** Markdown instructions. Only returned by slackbot.skills.info; null elsewhere. */
|
|
85
|
+
instructions: unknown;
|
|
86
|
+
/** Who in the organization can view the skill. Null for built-in skills. */
|
|
87
|
+
visibility: CreateSkillResponseSkillVisibility | null;
|
|
88
|
+
/** Whether the skill is published to the organization's catalog. */
|
|
89
|
+
is_official: boolean;
|
|
90
|
+
/** 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. */
|
|
91
|
+
access: CreateSkillResponseSkillAccess;
|
|
92
|
+
/** Apps and MCP servers the skill needs. */
|
|
93
|
+
mcp_servers: CreateSkillResponseSkillMcpServersList;
|
|
94
|
+
/** Approximate number of runs. */
|
|
95
|
+
usage_count: unknown;
|
|
96
|
+
/** Approximate number of people who have the skill enabled. */
|
|
97
|
+
library_count: unknown;
|
|
98
|
+
/** User ID of the skill's creator. Null for built-in skills. */
|
|
99
|
+
creator_id: unknown;
|
|
100
|
+
/** Unix timestamp when the skill was created. */
|
|
101
|
+
date_created: unknown;
|
|
102
|
+
/** Unix timestamp when the skill was last updated. */
|
|
103
|
+
date_updated: unknown;
|
|
104
|
+
/** Link to the skill. */
|
|
105
|
+
permalink: string;
|
|
106
|
+
}
|
|
107
|
+
export interface CreateSkillResponse {
|
|
108
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
109
|
+
ok: boolean;
|
|
110
|
+
/** A Slackbot skill as returned by the slackbot.skills.* Web API methods. Fields with no value are null. */
|
|
111
|
+
skill: CreateSkillResponseSkill;
|
|
112
|
+
}
|
|
113
|
+
export interface DeleteSkillRequest {
|
|
114
|
+
/** Skill to delete. */
|
|
115
|
+
skill_id: string;
|
|
116
|
+
}
|
|
117
|
+
export interface DeleteSkillResponse {
|
|
118
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
119
|
+
ok: boolean;
|
|
120
|
+
}
|
|
121
|
+
/** `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. */
|
|
122
|
+
export type ListSkillsRequestFilter = "library" | "owned" | "catalog";
|
|
123
|
+
export interface ListSkillsRequest {
|
|
124
|
+
/** `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. */
|
|
125
|
+
filter?: ListSkillsRequestFilter | (string & {}) | undefined;
|
|
126
|
+
/** Only return skills in this category. */
|
|
127
|
+
category?: string | undefined;
|
|
128
|
+
/** 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`. */
|
|
129
|
+
cursor?: string | undefined;
|
|
130
|
+
/** The maximum number of skills to return. Fewer may be returned even when more remain. */
|
|
131
|
+
limit?: number | undefined;
|
|
132
|
+
}
|
|
133
|
+
/** Where the skill is defined. */
|
|
134
|
+
export type ListSkillsResponseSkillsItemType = "canvas" | "builtin";
|
|
135
|
+
/** Enumerates the categories available for organizing AI skills. */
|
|
136
|
+
export type ListSkillsResponseSkillsItemCategory = "communication" | "customer_support" | "data_and_analytics" | "engineering" | "product_management" | "productivity" | "professional_development" | "project_management" | "sales" | "system" | "team_management" | "other";
|
|
137
|
+
/** 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. */
|
|
138
|
+
export type ListSkillsResponseSkillsItemVisibility = "invite_only" | "anyone_can_view" | "anyone_can_edit";
|
|
139
|
+
/** 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. */
|
|
140
|
+
export type ListSkillsResponseSkillsItemAccess = "read" | "comment" | "write" | "owner";
|
|
141
|
+
/** 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. */
|
|
142
|
+
export type ListSkillsResponseSkillsItemMcpServersItem = CreateSkillResponseSkillMcpServersItem;
|
|
143
|
+
/** Apps and MCP servers the skill needs. */
|
|
144
|
+
export type ListSkillsResponseSkillsItemMcpServersList = Array<CreateSkillResponseSkillMcpServersItem>;
|
|
145
|
+
/** A Slackbot skill as returned by the slackbot.skills.* Web API methods. Fields with no value are null. */
|
|
146
|
+
export interface ListSkillsResponseSkillsItem {
|
|
147
|
+
/** Skill ID: a canvas file ID for canvas skills, or a `builtin:` reference for built-in skills. */
|
|
148
|
+
id: string;
|
|
149
|
+
/** Where the skill is defined. */
|
|
150
|
+
type: ListSkillsResponseSkillsItemType;
|
|
151
|
+
/** Human-readable label. Not unique. */
|
|
152
|
+
display_name: string;
|
|
153
|
+
/** Reserved for a future machine-readable skill name. Always null. */
|
|
154
|
+
name: unknown;
|
|
155
|
+
/** When Slackbot should use the skill. */
|
|
156
|
+
description: unknown;
|
|
157
|
+
/** Skill category. */
|
|
158
|
+
category: ListSkillsResponseSkillsItemCategory | null;
|
|
159
|
+
/** Example prompt. `{skill}` stands for the skill mention. */
|
|
160
|
+
example_prompt: unknown;
|
|
161
|
+
/** Markdown instructions. Only returned by slackbot.skills.info; null elsewhere. */
|
|
162
|
+
instructions: unknown;
|
|
163
|
+
/** Who in the organization can view the skill. Null for built-in skills. */
|
|
164
|
+
visibility: ListSkillsResponseSkillsItemVisibility | null;
|
|
165
|
+
/** Whether the skill is published to the organization's catalog. */
|
|
166
|
+
is_official: boolean;
|
|
167
|
+
/** 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. */
|
|
168
|
+
access: ListSkillsResponseSkillsItemAccess;
|
|
169
|
+
/** Apps and MCP servers the skill needs. */
|
|
170
|
+
mcp_servers: ListSkillsResponseSkillsItemMcpServersList;
|
|
171
|
+
/** Approximate number of runs. */
|
|
172
|
+
usage_count: unknown;
|
|
173
|
+
/** Approximate number of people who have the skill enabled. */
|
|
174
|
+
library_count: unknown;
|
|
175
|
+
/** User ID of the skill's creator. Null for built-in skills. */
|
|
176
|
+
creator_id: unknown;
|
|
177
|
+
/** Unix timestamp when the skill was created. */
|
|
178
|
+
date_created: unknown;
|
|
179
|
+
/** Unix timestamp when the skill was last updated. */
|
|
180
|
+
date_updated: unknown;
|
|
181
|
+
/** Link to the skill. */
|
|
182
|
+
permalink: string;
|
|
183
|
+
}
|
|
184
|
+
export type ListSkillsResponseSkillsList = Array<ListSkillsResponseSkillsItem>;
|
|
185
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
186
|
+
export interface ListSkillsResponseResponseMetadata {
|
|
187
|
+
/** Cursor for the next page -- pass as `cursor` on the next call. */
|
|
188
|
+
next_cursor?: string | undefined;
|
|
189
|
+
}
|
|
190
|
+
export interface ListSkillsResponse {
|
|
191
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
192
|
+
ok: boolean;
|
|
193
|
+
skills: ListSkillsResponseSkillsList;
|
|
194
|
+
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
195
|
+
response_metadata?: ListSkillsResponseResponseMetadata | undefined;
|
|
196
|
+
}
|
|
197
|
+
export interface RemoveSkillsLibraryRequest {
|
|
198
|
+
/** Skill to turn off for the caller. */
|
|
199
|
+
skill_id: string;
|
|
200
|
+
}
|
|
201
|
+
export interface RemoveSkillsLibraryResponse {
|
|
202
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
203
|
+
ok: boolean;
|
|
204
|
+
}
|
|
205
|
+
export interface SkillsInfoRequest {
|
|
206
|
+
/** Skill to fetch: a canvas file ID or a `builtin:` reference. */
|
|
207
|
+
skill_id: string;
|
|
208
|
+
}
|
|
209
|
+
/** Where the skill is defined. */
|
|
210
|
+
export type SkillsInfoResponseSkillType = "canvas" | "builtin";
|
|
211
|
+
/** Enumerates the categories available for organizing AI skills. */
|
|
212
|
+
export type SkillsInfoResponseSkillCategory = "communication" | "customer_support" | "data_and_analytics" | "engineering" | "product_management" | "productivity" | "professional_development" | "project_management" | "sales" | "system" | "team_management" | "other";
|
|
213
|
+
/** 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. */
|
|
214
|
+
export type SkillsInfoResponseSkillVisibility = "invite_only" | "anyone_can_view" | "anyone_can_edit";
|
|
215
|
+
/** 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. */
|
|
216
|
+
export type SkillsInfoResponseSkillAccess = "read" | "comment" | "write" | "owner";
|
|
217
|
+
/** 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. */
|
|
218
|
+
export type SkillsInfoResponseSkillMcpServersItem = CreateSkillResponseSkillMcpServersItem;
|
|
219
|
+
/** Apps and MCP servers the skill needs. */
|
|
220
|
+
export type SkillsInfoResponseSkillMcpServersList = Array<CreateSkillResponseSkillMcpServersItem>;
|
|
221
|
+
/** A Slackbot skill as returned by the slackbot.skills.* Web API methods. Fields with no value are null. */
|
|
222
|
+
export interface SkillsInfoResponseSkill {
|
|
223
|
+
/** Skill ID: a canvas file ID for canvas skills, or a `builtin:` reference for built-in skills. */
|
|
224
|
+
id: string;
|
|
225
|
+
/** Where the skill is defined. */
|
|
226
|
+
type: SkillsInfoResponseSkillType;
|
|
227
|
+
/** Human-readable label. Not unique. */
|
|
228
|
+
display_name: string;
|
|
229
|
+
/** Reserved for a future machine-readable skill name. Always null. */
|
|
230
|
+
name: unknown;
|
|
231
|
+
/** When Slackbot should use the skill. */
|
|
232
|
+
description: unknown;
|
|
233
|
+
/** Skill category. */
|
|
234
|
+
category: SkillsInfoResponseSkillCategory | null;
|
|
235
|
+
/** Example prompt. `{skill}` stands for the skill mention. */
|
|
236
|
+
example_prompt: unknown;
|
|
237
|
+
/** Markdown instructions. Only returned by slackbot.skills.info; null elsewhere. */
|
|
238
|
+
instructions: unknown;
|
|
239
|
+
/** Who in the organization can view the skill. Null for built-in skills. */
|
|
240
|
+
visibility: SkillsInfoResponseSkillVisibility | null;
|
|
241
|
+
/** Whether the skill is published to the organization's catalog. */
|
|
242
|
+
is_official: boolean;
|
|
243
|
+
/** 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. */
|
|
244
|
+
access: SkillsInfoResponseSkillAccess;
|
|
245
|
+
/** Apps and MCP servers the skill needs. */
|
|
246
|
+
mcp_servers: SkillsInfoResponseSkillMcpServersList;
|
|
247
|
+
/** Approximate number of runs. */
|
|
248
|
+
usage_count: unknown;
|
|
249
|
+
/** Approximate number of people who have the skill enabled. */
|
|
250
|
+
library_count: unknown;
|
|
251
|
+
/** User ID of the skill's creator. Null for built-in skills. */
|
|
252
|
+
creator_id: unknown;
|
|
253
|
+
/** Unix timestamp when the skill was created. */
|
|
254
|
+
date_created: unknown;
|
|
255
|
+
/** Unix timestamp when the skill was last updated. */
|
|
256
|
+
date_updated: unknown;
|
|
257
|
+
/** Link to the skill. */
|
|
258
|
+
permalink: string;
|
|
259
|
+
}
|
|
260
|
+
export interface SkillsInfoResponse {
|
|
261
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
262
|
+
ok: boolean;
|
|
263
|
+
/** A Slackbot skill as returned by the slackbot.skills.* Web API methods. Fields with no value are null. */
|
|
264
|
+
skill: SkillsInfoResponseSkill;
|
|
265
|
+
}
|
|
266
|
+
/** One of the skill categories. Send an empty string to clear. */
|
|
267
|
+
export type UpdateSkillRequestCategory = "communication" | "customer_support" | "data_and_analytics" | "engineering" | "product_management" | "productivity" | "professional_development" | "project_management" | "sales" | "system" | "team_management" | "other" | "";
|
|
268
|
+
/** An app the skill needs. App servers use `app_id` and `server_id`, Salesforce servers use `permission_namespace`, and built-in servers use `service_type` alone. */
|
|
269
|
+
export type UpdateSkillRequestMcpServersItem = CreateSkillRequestMcpServersItem;
|
|
270
|
+
/** Apps the skill needs. Replaces the whole list; send `[]` to clear. */
|
|
271
|
+
export type UpdateSkillRequestMcpServersList = Array<CreateSkillRequestMcpServersItem>;
|
|
272
|
+
export interface UpdateSkillRequest {
|
|
273
|
+
/** Skill to change. */
|
|
274
|
+
skill_id: string;
|
|
275
|
+
/** Human-readable label. Max 255 characters. */
|
|
276
|
+
display_name?: string | undefined;
|
|
277
|
+
/** Markdown that replaces the whole document. */
|
|
278
|
+
instructions?: string | undefined;
|
|
279
|
+
/** When Slackbot should use the skill. Max 400 characters. Send an empty string to clear. */
|
|
280
|
+
description?: string | undefined;
|
|
281
|
+
/** One of the skill categories. Send an empty string to clear. */
|
|
282
|
+
category?: UpdateSkillRequestCategory | (string & {}) | undefined;
|
|
283
|
+
/** Max 200 characters. May contain `{skill}`. Send an empty string to clear. */
|
|
284
|
+
example_prompt?: string | undefined;
|
|
285
|
+
/** Apps the skill needs. Replaces the whole list; send `[]` to clear. */
|
|
286
|
+
mcp_servers?: UpdateSkillRequestMcpServersList | undefined;
|
|
287
|
+
}
|
|
288
|
+
/** Where the skill is defined. */
|
|
289
|
+
export type UpdateSkillResponseSkillType = "canvas" | "builtin";
|
|
290
|
+
/** Enumerates the categories available for organizing AI skills. */
|
|
291
|
+
export type UpdateSkillResponseSkillCategory = "communication" | "customer_support" | "data_and_analytics" | "engineering" | "product_management" | "productivity" | "professional_development" | "project_management" | "sales" | "system" | "team_management" | "other";
|
|
292
|
+
/** 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. */
|
|
293
|
+
export type UpdateSkillResponseSkillVisibility = "invite_only" | "anyone_can_view" | "anyone_can_edit";
|
|
294
|
+
/** 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. */
|
|
295
|
+
export type UpdateSkillResponseSkillAccess = "read" | "comment" | "write" | "owner";
|
|
296
|
+
/** 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. */
|
|
297
|
+
export type UpdateSkillResponseSkillMcpServersItem = CreateSkillResponseSkillMcpServersItem;
|
|
298
|
+
/** Apps and MCP servers the skill needs. */
|
|
299
|
+
export type UpdateSkillResponseSkillMcpServersList = Array<CreateSkillResponseSkillMcpServersItem>;
|
|
300
|
+
/** A Slackbot skill as returned by the slackbot.skills.* Web API methods. Fields with no value are null. */
|
|
301
|
+
export interface UpdateSkillResponseSkill {
|
|
302
|
+
/** Skill ID: a canvas file ID for canvas skills, or a `builtin:` reference for built-in skills. */
|
|
303
|
+
id: string;
|
|
304
|
+
/** Where the skill is defined. */
|
|
305
|
+
type: UpdateSkillResponseSkillType;
|
|
306
|
+
/** Human-readable label. Not unique. */
|
|
307
|
+
display_name: string;
|
|
308
|
+
/** Reserved for a future machine-readable skill name. Always null. */
|
|
309
|
+
name: unknown;
|
|
310
|
+
/** When Slackbot should use the skill. */
|
|
311
|
+
description: unknown;
|
|
312
|
+
/** Skill category. */
|
|
313
|
+
category: UpdateSkillResponseSkillCategory | null;
|
|
314
|
+
/** Example prompt. `{skill}` stands for the skill mention. */
|
|
315
|
+
example_prompt: unknown;
|
|
316
|
+
/** Markdown instructions. Only returned by slackbot.skills.info; null elsewhere. */
|
|
317
|
+
instructions: unknown;
|
|
318
|
+
/** Who in the organization can view the skill. Null for built-in skills. */
|
|
319
|
+
visibility: UpdateSkillResponseSkillVisibility | null;
|
|
320
|
+
/** Whether the skill is published to the organization's catalog. */
|
|
321
|
+
is_official: boolean;
|
|
322
|
+
/** 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. */
|
|
323
|
+
access: UpdateSkillResponseSkillAccess;
|
|
324
|
+
/** Apps and MCP servers the skill needs. */
|
|
325
|
+
mcp_servers: UpdateSkillResponseSkillMcpServersList;
|
|
326
|
+
/** Approximate number of runs. */
|
|
327
|
+
usage_count: unknown;
|
|
328
|
+
/** Approximate number of people who have the skill enabled. */
|
|
329
|
+
library_count: unknown;
|
|
330
|
+
/** User ID of the skill's creator. Null for built-in skills. */
|
|
331
|
+
creator_id: unknown;
|
|
332
|
+
/** Unix timestamp when the skill was created. */
|
|
333
|
+
date_created: unknown;
|
|
334
|
+
/** Unix timestamp when the skill was last updated. */
|
|
335
|
+
date_updated: unknown;
|
|
336
|
+
/** Link to the skill. */
|
|
337
|
+
permalink: string;
|
|
338
|
+
}
|
|
339
|
+
export interface UpdateSkillResponse {
|
|
340
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
341
|
+
ok: boolean;
|
|
342
|
+
/** A Slackbot skill as returned by the slackbot.skills.* Web API methods. Fields with no value are null. */
|
|
343
|
+
skill: UpdateSkillResponseSkill;
|
|
344
|
+
}
|
|
345
|
+
export type AddSkillsLibraryError = SlackOpError;
|
|
346
|
+
/** 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 */
|
|
347
|
+
export declare const addSkillsLibrary: API.OperationMethod<AddSkillsLibraryRequest, AddSkillsLibraryResponse, AddSkillsLibraryError, SlackOpContext>;
|
|
348
|
+
export type CreateSkillError = SlackOpError;
|
|
349
|
+
/** 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 */
|
|
350
|
+
export declare const createSkill: API.OperationMethod<CreateSkillRequest, CreateSkillResponse, CreateSkillError, SlackOpContext>;
|
|
351
|
+
export type DeleteSkillError = SlackOpError;
|
|
352
|
+
/** 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 */
|
|
353
|
+
export declare const deleteSkill: API.OperationMethod<DeleteSkillRequest, DeleteSkillResponse, DeleteSkillError, SlackOpContext>;
|
|
354
|
+
export type ListSkillsError = SlackOpError;
|
|
355
|
+
/** 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 */
|
|
356
|
+
export declare const listSkills: API.PaginatedOperationMethod<ListSkillsRequest, ListSkillsResponse, ListSkillsError, SlackOpContext, ListSkillsResponseSkillsItem>;
|
|
357
|
+
export type RemoveSkillsLibraryError = SlackOpError;
|
|
358
|
+
/** 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 */
|
|
359
|
+
export declare const removeSkillsLibrary: API.OperationMethod<RemoveSkillsLibraryRequest, RemoveSkillsLibraryResponse, RemoveSkillsLibraryError, SlackOpContext>;
|
|
360
|
+
export type SkillsInfoError = SlackOpError;
|
|
361
|
+
/** 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 */
|
|
362
|
+
export declare const skillsInfo: API.OperationMethod<SkillsInfoRequest, SkillsInfoResponse, SkillsInfoError, SlackOpContext>;
|
|
363
|
+
export type UpdateSkillError = SlackOpError;
|
|
364
|
+
/** 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 */
|
|
365
|
+
export declare const updateSkill: API.OperationMethod<UpdateSkillRequest, UpdateSkillResponse, UpdateSkillError, SlackOpContext>;
|
|
366
|
+
//# sourceMappingURL=slackbot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slackbot.d.ts","sourceRoot":"","sources":["../../src/services/slackbot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAMjD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAe7C,MAAM,WAAW,uBAAuB;IACtC,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,WAAW,wBAAwB;IACvC,kEAAkE;IAClE,EAAE,EAAE,OAAO,CAAC;CACb;AACD,mCAAmC;AACnC,MAAM,MAAM,0BAA0B,GAClC,eAAe,GACf,kBAAkB,GAClB,oBAAoB,GACpB,aAAa,GACb,oBAAoB,GACpB,cAAc,GACd,0BAA0B,GAC1B,oBAAoB,GACpB,OAAO,GACP,QAAQ,GACR,iBAAiB,GACjB,OAAO,CAAC;AACZ,sKAAsK;AACtK,MAAM,WAAW,gCA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,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAC5C,gxBAAgxB;AAChxB,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,CASb,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAC3C,8uBAA8uB;AAC9uB,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,wBAAwB,CACnD,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,4BAA4B,CAmBtB,CAAC;AAET,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC;AACpD,ylBAAylB;AACzlB,eAAO,MAAM,mBAAmB,EAAE,GAAG,CAAC,eAAe,CACnD,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,cAAc,CASb,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAC3C,0jBAA0jB;AAC1jB,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,eAAe,CAC1C,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,cAAc,CASb,CAAC;AAEJ,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAC5C,++CAA++C;AAC/+C,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,CASb,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Lc as e,Mc as t,Tc as n,Uc as r,Xc as i,Yc as a,a as o,c as s,cd as c,ed as l,errors$SlackError as u,errors$SlackRateLimited as d,jd as f,k as p,kd as m,m as h,n as g,pagination$slackPaginate as _,protocol$SlackProtocol as v,retry$Retry as y,traits$Http as b}from"../_bundle/sdk.js";const x={system:`slack-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`},{header:`x-slack-req-id`,name:`http.response.header.x-slack-req-id`,transform:`list`}],prefix:`Slack`,service:`Slackbot`,propagate:`w3c`};const S=/*@__PURE__*/ h(e=>e===o?p(`AddSkillsLibrary`,`{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9,telemetry:$10,span:"%"};$4(>2)@"%Request";$3({skill_id:$2}).pipe($1({method:"POST",uri:"/slackbot.skills.library.add",code:200}))`,[l,b,i,a,m,__d0,u,d,v,y,x]):s(S,e));const C=/*@__PURE__*/ h(e=>e===o?p(`CreateSkill`,`{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>2)@"%Request";$5({display_name:$2,instructions:$3($2),canvas_id:$3($2),description:$3($2),category:$3($2),example_prompt:$3($2),mcp_servers:$3(#4:1)}).pipe($1({method:"POST",uri:"/slackbot.skills.create",code:200}))`,[l,b,i,f,__d3,a,m,__d2,u,d,v,y,x]):s(C,e));const w=/*@__PURE__*/ h(e=>e===o?p(`DeleteSkill`,`{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9,telemetry:$10,span:"%"};$4(>2)@"%Request";$3({skill_id:$2}).pipe($1({method:"POST",uri:"/slackbot.skills.delete",code:200}))`,[l,b,i,a,m,__d0,u,d,v,y,x]):s(w,e));const T=/*@__PURE__*/ g(n=>n===o?p(`ListSkills`,`{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13,telemetry:$14,span:"%",pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"skills",pageSize:"limit"},strategy:$15};$6(>5)@"%Request";$8(#7:2);$6(>6)@"%ResponseResponseMetadata";$6(>7)@"%Response";$5({filter:$3($2),category:$3($2),cursor:$3($2),limit:$3($4)}).pipe($1({method:"POST",uri:"/slackbot.skills.list",code:200}));$5({next_cursor:$3($2)});$5({ok:$9,skills:#2,response_metadata:$3(#3)})`,[l,b,i,f,r,a,m,__d1,e,t,u,d,v,y,x,_]):s(T,n));const E=/*@__PURE__*/ h(e=>e===o?p(`RemoveSkillsLibrary`,`{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9,telemetry:$10,span:"%"};$4(>2)@"%Request";$3({skill_id:$2}).pipe($1({method:"POST",uri:"/slackbot.skills.library.remove",code:200}))`,[l,b,i,a,m,__d0,u,d,v,y,x]):s(E,e));const D=/*@__PURE__*/ h(e=>e===o?p(`SkillsInfo`,`{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9,telemetry:$10,span:"%"};$4(>2)@"%Request";$3({skill_id:$2}).pipe($1({method:"POST",uri:"/slackbot.skills.info",code:200}))`,[l,b,i,a,m,__d2,u,d,v,y,x]):s(D,e));const O=/*@__PURE__*/ h(e=>e===o?p(`UpdateSkill`,`{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11,telemetry:$12,span:"%"};$6(>2)@"%Request";$5({skill_id:$2,display_name:$3($2),instructions:$3($2),description:$3($2),category:$3($2),example_prompt:$3($2),mcp_servers:$3(#4:1)}).pipe($1({method:"POST",uri:"/slackbot.skills.update",code:200}))`,[l,b,i,f,__d3,a,m,__d2,u,d,v,y,x]):s(O,e));function __d0(){return[`$3(>1)@"AddSkillsLibraryResponse";$2({ok:$1})`,[l,t,a,m]]}function __d1(){return[`$6(>3)@"CreateSkillResponseSkillMcpServersItem";$7(#0);$6(>4)@"CreateSkillResponseSkill";$5({service_type:$1,app_id:$2($1),server_id:$2($1),permission_namespace:$2($1),display_name:$3,is_available:$4});$5({id:$1,type:$1,display_name:$1,name:$3,description:$3,category:$8($1),example_prompt:$3,instructions:$3,visibility:$8($1),is_official:$4,access:$1,mcp_servers:#1,usage_count:$3,library_count:$3,creator_id:$3,date_created:$3,date_updated:$3,permalink:$1})`,[l,i,f,c,t,a,m,e,n]]}function __d2(){return[`$4(>1)@"CreateSkillResponse";$3({ok:$1,skill:#2:2})`,[l,t,__d1,a,m]]}function __d3(){return[`$4(>2)@"CreateSkillRequestMcpServersItem";$5(#0);$3({service_type:$1,app_id:$2($1),server_id:$2($1),permission_namespace:$2($1)})`,[l,i,f,a,m,e]]}export{S as addSkillsLibrary,C as createSkill,w as deleteSkill,T as listSkills,E as removeSkillsLibrary,D as skillsInfo,O as updateSkill};
|
|
2
|
+
//# sourceMappingURL=slackbot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slackbot.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.Struct","S.suspend","Retry.Retry","API.call","S.optional","S.Number","S.Array","S.Boolean","S.Unknown","S.NullOr","Array","Boolean","NullOr","Number","String","Struct","D","call","Unknown","at","SlackError","SlackRateLimited","optional","named","suspend","op","opPaginated","slackPaginate","SlackProtocol","Retry","Http","TELEMETRY","addSkillsLibrary","i","createSkill","deleteSkill","listSkills","removeSkillsLibrary","skillsInfo","updateSkill"],"sources":["../../src/services/slackbot.ts"],"mappings":"kSAaA,MAAMoC,EAAY,CAChB,OAAQ,YACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,EACnF,CAAE,OAAQ,iBAAkB,KAAM,sCAAuC,UAAW,MAAO,CAC7F,EACA,OAAQ,QACR,QAAS,WACT,UAAW,KACb,EA+aA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMtC,EAAQC,EAAU,mBAAoB,8LAA+L,CAACC,EAAQC,EAAQC,EAAUC,EAAUC,EAAW,KAAMmB,EAAYC,EAAkBO,EAAe1B,EAAa6B,CAAS,CAAC,EAAI5B,EAAS6B,EAAkBC,CAAC,CAAC,EAIhb,MAAaC,EAKK,gBAAQ,GAAgBD,IAAMtC,EAAQC,EAAU,cAAe,kTAAmT,CAACC,EAAQC,EAAQC,EAAUK,EAAY,KAAMJ,EAAUC,EAAW,KAAMmB,EAAYC,EAAkBO,EAAe1B,EAAa6B,CAAS,CAAC,EAAI5B,EAAS+B,EAAaD,CAAC,CAAC,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I,EAAWD,EAAWP,EAAUC,EAAWK,EAASG,CAAQ,CAAC,CACrjB,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,sDAAuD,CAACZ,EAAQU,EAAW,KAAMP,EAAUC,CAAS,CAAC,CAC/G,CACA,SAAS,MAAY,CACnB,MAAO,CAAC,oIAAqI,CAACJ,EAAQE,EAAUK,EAAYJ,EAAUC,EAAWK,CAAO,CAAC,CAC3M"}
|
package/lib/services/stars.d.ts
CHANGED
|
@@ -3,27 +3,27 @@ import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
|
3
3
|
export type { SlackOpError, SlackOpContext };
|
|
4
4
|
export interface AddStarRequest {
|
|
5
5
|
/** Channel to add star to, or channel where the message to add star to was posted (used with `timestamp`). */
|
|
6
|
-
channel?: string;
|
|
6
|
+
channel?: string | undefined;
|
|
7
7
|
/** File to add star to. */
|
|
8
|
-
file?: string;
|
|
8
|
+
file?: string | undefined;
|
|
9
9
|
/** File comment to add star to. */
|
|
10
|
-
file_comment?: string;
|
|
10
|
+
file_comment?: string | undefined;
|
|
11
11
|
/** Timestamp of the message to add star to. */
|
|
12
|
-
timestamp?: string;
|
|
12
|
+
timestamp?: string | undefined;
|
|
13
13
|
}
|
|
14
14
|
export interface AddStarResponse {
|
|
15
15
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
16
16
|
ok: boolean;
|
|
17
17
|
}
|
|
18
18
|
export interface ListStarsRequest {
|
|
19
|
-
count?: number;
|
|
19
|
+
count?: number | undefined;
|
|
20
20
|
/** Parameter for pagination. Set `cursor` equal to the `next_cursor` attribute returned by the previous request's `response_metadata`. This parameter is optional, but pagination is mandatory: the default value simply fetches the first "page" of the collection. See [pagination](/apis/web-api/pagination) for more details. */
|
|
21
|
-
cursor?: string;
|
|
21
|
+
cursor?: string | undefined;
|
|
22
22
|
/** The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the list hasn't been reached. */
|
|
23
|
-
limit?: number;
|
|
24
|
-
page?: number;
|
|
23
|
+
limit?: number | undefined;
|
|
24
|
+
page?: number | undefined;
|
|
25
25
|
/** encoded team id to list stars in, required if org token is used */
|
|
26
|
-
team_id?: string;
|
|
26
|
+
team_id?: string | undefined;
|
|
27
27
|
}
|
|
28
28
|
export type ListStarsResponseItemsItemCase0Type = "message";
|
|
29
29
|
export interface ListStarsResponseItemsItemCase0 {
|
|
@@ -68,25 +68,25 @@ export type ListStarsResponseItemsList = Array<ListStarsResponseItemsItem>;
|
|
|
68
68
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
69
69
|
export interface ListStarsResponseResponseMetadata {
|
|
70
70
|
/** Cursor for the next page -- pass as `cursor` on the next call. */
|
|
71
|
-
next_cursor?: string;
|
|
71
|
+
next_cursor?: string | undefined;
|
|
72
72
|
}
|
|
73
73
|
export interface ListStarsResponse {
|
|
74
74
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
75
75
|
ok: boolean;
|
|
76
76
|
items: ListStarsResponseItemsList;
|
|
77
|
-
paging?: unknown;
|
|
77
|
+
paging?: unknown | undefined;
|
|
78
78
|
/** Pagination metadata. An empty `next_cursor` means the last page. */
|
|
79
|
-
response_metadata?: ListStarsResponseResponseMetadata;
|
|
79
|
+
response_metadata?: ListStarsResponseResponseMetadata | undefined;
|
|
80
80
|
}
|
|
81
81
|
export interface RemoveStarRequest {
|
|
82
82
|
/** Channel to remove star from, or channel where the message to remove star from was posted (used with `timestamp`). */
|
|
83
|
-
channel?: string;
|
|
83
|
+
channel?: string | undefined;
|
|
84
84
|
/** File to remove star from. */
|
|
85
|
-
file?: string;
|
|
85
|
+
file?: string | undefined;
|
|
86
86
|
/** File comment to remove star from. */
|
|
87
|
-
file_comment?: string;
|
|
87
|
+
file_comment?: string | undefined;
|
|
88
88
|
/** Timestamp of the message to remove star from. */
|
|
89
|
-
timestamp?: string;
|
|
89
|
+
timestamp?: string | undefined;
|
|
90
90
|
}
|
|
91
91
|
export interface RemoveStarResponse {
|
|
92
92
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stars.d.ts","sourceRoot":"","sources":["../../src/services/stars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAMjD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"stars.d.ts","sourceRoot":"","sources":["../../src/services/stars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAMjD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAe7C,MAAM,WAAW,cAAc;IAC7B,8GAA8G;IAC9G,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AACD,MAAM,WAAW,eAAe;IAC9B,kEAAkE;IAClE,EAAE,EAAE,OAAO,CAAC;CACb;AACD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,qUAAqU;IACrU,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,wJAAwJ;IACxJ,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AACD,MAAM,M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AAc,CASb,CAAC"}
|
package/lib/services/stars.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Lc as e,Mc as t,Uc as n,Xc as r,Yc as i,a,c as o,cd as s,ed as c,errors$SlackError as l,errors$SlackRateLimited as u,jd as d,k as f,kd as p,m,n as h,pagination$slackPaginate as g,protocol$SlackProtocol as _,retry$Retry as v,traits$Http as y,traits$Query as b,traits$UnionCases as x}from"../_bundle/sdk.js";const S={system:`slack-api`,responseHeaders:[{header:`x-request-id`,name:`http.response.header.x-request-id`,transform:`list`},{header:`request-id`,name:`http.response.header.request-id`,transform:`list`},{header:`x-slack-req-id`,name:`http.response.header.x-slack-req-id`,transform:`list`}],prefix:`Slack`,service:`Stars`,propagate:`w3c`};const C=/*@__PURE__*/ m(e=>e===a?f(`AddStar`,`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({channel:$3($2),file:$3($2),file_comment:$3($2),timestamp:$3($2)}).pipe($1({method:"POST",uri:"/stars.add",code:200}))`,[c,y,r,d,i,p,__d0,l,u,_,v,S]):o(C,e));const w=/*@__PURE__*/ h(m=>m===a?f(`date_create`,`{input:#1,output:#5,errors:[$12,$13],protocol:$14,retry:$15,telemetry:$16,span:"ListStars",pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"items",pageSize:"limit"},strategy:$17};$7(>6)@"ListStarsRequest";$9.pipe($8([["type","channel","message","%"],["type","file","%"],["type","file","comment","%"],["type","channel","%"],["type","channel","%"],["type","channel","%"]],{key:"type",values:["message","file","file_comment","channel","im","group"]}));$10(#2);$7(>7)@"ListStarsResponseResponseMetadata";$7(>8)@"ListStarsResponse";$6({count:$4($3.pipe($2())),cursor:$4($5.pipe($2())),limit:$4($3.pipe($2())),page:$4($3.pipe($2())),team_id:$4($5.pipe($2()))}).pipe($1({method:"GET",uri:"/stars.list",code:200}));$6({next_cursor:$4($5)});$6({ok:$11,items:#3,paging:$4($9),response_metadata:$4(#4)})`,[c,y,b,n,d,r,i,p,x,s,e,t,l,u,_,v,S,g]):o(w,m));const T=/*@__PURE__*/ m(e=>e===a?f(`RemoveStar`,`{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10,telemetry:$11,span:"%"};$5(>2)@"%Request";$4({channel:$3($2),file:$3($2),file_comment:$3($2),timestamp:$3($2)}).pipe($1({method:"POST",uri:"/stars.remove",code:200}))`,[c,y,r,d,i,p,__d0,l,u,_,v,S]):o(T,e));function __d0(){return[`$3(>1)@"AddStarResponse";$2({ok:$1})`,[c,t,i,p]]}export{C as addStar,w as listStars,T as removeStar};
|
|
2
2
|
//# sourceMappingURL=stars.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stars.js","names":["API.D","__L.at","T.Http","S.String","S.optional","S.Struct","S.suspend","Retry.Retry","API.call","
|
|
1
|
+
{"version":3,"file":"stars.js","names":["API.D","API.named","__L.at","T.Http","S.String","S.optional","S.Struct","S.suspend","Retry.Retry","API.call","T.Query","S.Number","T.UnionCases","S.Unknown","S.Array","S.Boolean","Array","Boolean","Number","String","Struct","call","Unknown","at","SlackError","SlackRateLimited","optional","named","suspend","opPaginated","slackPaginate","SlackProtocol","Retry","Http","Query","UnionCases","TELEMETRY","addStar","i","D","listStars","removeStar"],"sources":["../../src/services/stars.ts"],"mappings":"yTAaA,MAAMoC,EAAY,CAChB,OAAQ,YACR,gBAAiB,CACf,CAAE,OAAQ,eAAgB,KAAM,oCAAqC,UAAW,MAAO,EACvF,CAAE,OAAQ,aAAc,KAAM,kCAAmC,UAAW,MAAO,EACnF,CAAE,OAAQ,iBAAkB,KAAM,sCAAuC,UAAW,MAAO,CAC7F,EACA,OAAQ,QACR,QAAS,QACT,UAAW,KACb,EAqGA,MAAaC,EAKK,gBAAQ,GAAgBC,IAAMtC,EAAQC,EAAU,UAAW,iOAAkO,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAUC,EAAW,KAAMiB,EAAYC,EAAkBM,EAAevB,EAAa4B,CAAS,CAAC,EAAI3B,EAAS4B,EAASC,CAAC,CAAC,EAI7c,MAAaE,EAMK,gBAAiB,GAAgBF,IAAMtC,EAAQC,EAAU,cAAe,20BAA40B,CAACC,EAAQC,EAAQO,EAASC,EAAUN,EAAYD,EAAUE,EAAUC,EAAWK,EAAcC,EAAWC,EAASC,EAAWS,EAAYC,EAAkBM,EAAevB,EAAa4B,EAAWN,CAAa,CAAC,EAAIrB,EAAS+B,EAAWF,CAAC,CAAC,EAI/oC,MAAaG,EAKK,gBAAQ,GAAgBH,IAAMtC,EAAQC,EAAU,aAAc,oOAAqO,CAACC,EAAQC,EAAQC,EAAUC,EAAYC,EAAUC,EAAW,KAAMiB,EAAYC,EAAkBM,EAAevB,EAAa4B,CAAS,CAAC,EAAI3B,EAASgC,EAAYH,CAAC,CAAC,EAMtd,SAAS,MAAY,CACnB,MAAO,CAAC,uCAAwC,CAACpC,EAAQa,EAAWT,EAAUC,CAAS,CAAC,CAC1F"}
|