@chatbotkit/sdk 1.29.1 → 1.30.1

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.
@@ -1,8 +1,18 @@
1
1
  "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
2
13
  var _ChatBotKitClient_secret, _ChatBotKitClient_baseUrl, _ChatBotKitClient_endpoints, _ChatBotKitClient_runAsUserId, _ChatBotKitClient_runAsChildUserEmail, _ChatBotKitClient_timezone, _ChatBotKitClient_headers, _ChatBotKitClient_timeout, _ChatBotKitClient_retries, _ChatBotKitClient_retryDelay, _ChatBotKitClient_retryTimeout, _ChatBotKitClient_fetchFn, _ChatBotKitClient_cacheMap;
3
14
  Object.defineProperty(exports, "__esModule", { value: true });
4
15
  exports.ChatBotKitClient = exports.ResponsePromise = void 0;
5
- const tslib_1 = require("tslib");
6
16
  const fetch_1 = require("@chatbotkit/fetch");
7
17
  const fetchPlusPlus = (0, fetch_1.withRetry)((0, fetch_1.withTimeout)(fetch_1.fetch, { timeout: Infinity }), {
8
18
  retries: 3,
@@ -169,40 +179,40 @@ class ChatBotKitClient {
169
179
  _ChatBotKitClient_retryTimeout.set(this, void 0);
170
180
  _ChatBotKitClient_fetchFn.set(this, void 0);
171
181
  _ChatBotKitClient_cacheMap.set(this, void 0);
172
- tslib_1.__classPrivateFieldSet(this, _ChatBotKitClient_secret, options.secret, "f");
173
- tslib_1.__classPrivateFieldSet(this, _ChatBotKitClient_baseUrl, new URL(options.baseUrl || `https://api.chatbotkit.com`), "f");
182
+ __classPrivateFieldSet(this, _ChatBotKitClient_secret, options.secret, "f");
183
+ __classPrivateFieldSet(this, _ChatBotKitClient_baseUrl, new URL(options.baseUrl || `https://api.chatbotkit.com`), "f");
174
184
  if (options.host) {
175
- tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_baseUrl, "f").host = options.host;
185
+ __classPrivateFieldGet(this, _ChatBotKitClient_baseUrl, "f").host = options.host;
176
186
  }
177
187
  if (options.protocol) {
178
- tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_baseUrl, "f").protocol = options.protocol;
188
+ __classPrivateFieldGet(this, _ChatBotKitClient_baseUrl, "f").protocol = options.protocol;
179
189
  }
180
- tslib_1.__classPrivateFieldSet(this, _ChatBotKitClient_endpoints, options.endpoints || {}, "f");
181
- tslib_1.__classPrivateFieldSet(this, _ChatBotKitClient_runAsUserId, options.runAsUserId, "f");
182
- tslib_1.__classPrivateFieldSet(this, _ChatBotKitClient_runAsChildUserEmail, options.runAsChildUserEmail, "f");
183
- tslib_1.__classPrivateFieldSet(this, _ChatBotKitClient_timezone, options.timezone, "f");
184
- tslib_1.__classPrivateFieldSet(this, _ChatBotKitClient_headers, options.headers || {}, "f");
185
- tslib_1.__classPrivateFieldSet(this, _ChatBotKitClient_timeout, options.timeout, "f");
186
- tslib_1.__classPrivateFieldSet(this, _ChatBotKitClient_retries, options.retries, "f");
187
- tslib_1.__classPrivateFieldSet(this, _ChatBotKitClient_retryDelay, options.retryDelay, "f");
188
- tslib_1.__classPrivateFieldSet(this, _ChatBotKitClient_retryTimeout, options.retryTimeout, "f");
189
- tslib_1.__classPrivateFieldSet(this, _ChatBotKitClient_fetchFn, options.fetchFn || fetchPlusPlus, "f");
190
- tslib_1.__classPrivateFieldSet(this, _ChatBotKitClient_cacheMap, new Map(), "f");
190
+ __classPrivateFieldSet(this, _ChatBotKitClient_endpoints, options.endpoints || {}, "f");
191
+ __classPrivateFieldSet(this, _ChatBotKitClient_runAsUserId, options.runAsUserId, "f");
192
+ __classPrivateFieldSet(this, _ChatBotKitClient_runAsChildUserEmail, options.runAsChildUserEmail, "f");
193
+ __classPrivateFieldSet(this, _ChatBotKitClient_timezone, options.timezone, "f");
194
+ __classPrivateFieldSet(this, _ChatBotKitClient_headers, options.headers || {}, "f");
195
+ __classPrivateFieldSet(this, _ChatBotKitClient_timeout, options.timeout, "f");
196
+ __classPrivateFieldSet(this, _ChatBotKitClient_retries, options.retries, "f");
197
+ __classPrivateFieldSet(this, _ChatBotKitClient_retryDelay, options.retryDelay, "f");
198
+ __classPrivateFieldSet(this, _ChatBotKitClient_retryTimeout, options.retryTimeout, "f");
199
+ __classPrivateFieldSet(this, _ChatBotKitClient_fetchFn, options.fetchFn || fetchPlusPlus, "f");
200
+ __classPrivateFieldSet(this, _ChatBotKitClient_cacheMap, new Map(), "f");
191
201
  }
192
202
  extend(extensionOptions) {
193
203
  const currentOptions = {
194
- secret: tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_secret, "f") || '',
195
- baseUrl: tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_baseUrl, "f").toString(),
196
- endpoints: { ...tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_endpoints, "f") },
197
- runAsUserId: tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_runAsUserId, "f"),
198
- runAsChildUserEmail: tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_runAsChildUserEmail, "f"),
199
- timezone: tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_timezone, "f"),
200
- headers: { ...tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_headers, "f") },
201
- timeout: tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_timeout, "f"),
202
- retries: tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_retries, "f"),
203
- retryDelay: tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_retryDelay, "f"),
204
- retryTimeout: tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_retryTimeout, "f"),
205
- fetchFn: tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_fetchFn, "f"),
204
+ secret: __classPrivateFieldGet(this, _ChatBotKitClient_secret, "f") || '',
205
+ baseUrl: __classPrivateFieldGet(this, _ChatBotKitClient_baseUrl, "f").toString(),
206
+ endpoints: { ...__classPrivateFieldGet(this, _ChatBotKitClient_endpoints, "f") },
207
+ runAsUserId: __classPrivateFieldGet(this, _ChatBotKitClient_runAsUserId, "f"),
208
+ runAsChildUserEmail: __classPrivateFieldGet(this, _ChatBotKitClient_runAsChildUserEmail, "f"),
209
+ timezone: __classPrivateFieldGet(this, _ChatBotKitClient_timezone, "f"),
210
+ headers: { ...__classPrivateFieldGet(this, _ChatBotKitClient_headers, "f") },
211
+ timeout: __classPrivateFieldGet(this, _ChatBotKitClient_timeout, "f"),
212
+ retries: __classPrivateFieldGet(this, _ChatBotKitClient_retries, "f"),
213
+ retryDelay: __classPrivateFieldGet(this, _ChatBotKitClient_retryDelay, "f"),
214
+ retryTimeout: __classPrivateFieldGet(this, _ChatBotKitClient_retryTimeout, "f"),
215
+ fetchFn: __classPrivateFieldGet(this, _ChatBotKitClient_fetchFn, "f"),
206
216
  };
207
217
  const mergedOptions = {
208
218
  ...currentOptions,
@@ -220,7 +230,7 @@ class ChatBotKitClient {
220
230
  }
221
231
  clientFetch(path, options) {
222
232
  let method = options?.method;
223
- const url = new URL(tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_endpoints, "f")[options?.endpoint || path] || path, tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_baseUrl, "f"));
233
+ const url = new URL(__classPrivateFieldGet(this, _ChatBotKitClient_endpoints, "f")[options?.endpoint || path] || path, __classPrivateFieldGet(this, _ChatBotKitClient_baseUrl, "f"));
224
234
  if (url.hostname === 'api.chatbotkit.com' &&
225
235
  url.pathname.startsWith('/api/')) {
226
236
  url.pathname = url.pathname.substring(4);
@@ -244,21 +254,21 @@ class ChatBotKitClient {
244
254
  }
245
255
  }
246
256
  const headers = {
247
- ...tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_headers, "f"),
257
+ ...__classPrivateFieldGet(this, _ChatBotKitClient_headers, "f"),
248
258
  };
249
259
  if (!options?.external) {
250
- if (tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_secret, "f")) {
251
- headers['authorization'] = `Bearer ${tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_secret, "f")}`;
260
+ if (__classPrivateFieldGet(this, _ChatBotKitClient_secret, "f")) {
261
+ headers['authorization'] = `Bearer ${__classPrivateFieldGet(this, _ChatBotKitClient_secret, "f")}`;
252
262
  }
253
- if (tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_runAsUserId, "f")) {
254
- headers['x-runas-user-id'] = tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_runAsUserId, "f");
263
+ if (__classPrivateFieldGet(this, _ChatBotKitClient_runAsUserId, "f")) {
264
+ headers['x-runas-user-id'] = __classPrivateFieldGet(this, _ChatBotKitClient_runAsUserId, "f");
255
265
  }
256
- if (tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_runAsChildUserEmail, "f")) {
257
- headers['x-runas-child-user-email'] = tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_runAsChildUserEmail, "f");
266
+ if (__classPrivateFieldGet(this, _ChatBotKitClient_runAsChildUserEmail, "f")) {
267
+ headers['x-runas-child-user-email'] = __classPrivateFieldGet(this, _ChatBotKitClient_runAsChildUserEmail, "f");
258
268
  }
259
269
  }
260
- if (tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_timezone, "f")) {
261
- headers['x-timezone'] = tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_timezone, "f");
270
+ if (__classPrivateFieldGet(this, _ChatBotKitClient_timezone, "f")) {
271
+ headers['x-timezone'] = __classPrivateFieldGet(this, _ChatBotKitClient_timezone, "f");
262
272
  }
263
273
  let data;
264
274
  if (options?.record) {
@@ -286,13 +296,13 @@ class ChatBotKitClient {
286
296
  method,
287
297
  headers,
288
298
  data,
289
- timeout: options?.timeout ?? tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_timeout, "f"),
290
- retries: options?.retries ?? tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_retries, "f"),
291
- retryDelay: options?.retryDelay ?? tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_retryDelay, "f"),
292
- retryTimeout: options?.retryTimeout ?? tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_retryTimeout, "f"),
293
- fetchFn: options?.fetchFn || tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_fetchFn, "f"),
299
+ timeout: options?.timeout ?? __classPrivateFieldGet(this, _ChatBotKitClient_timeout, "f"),
300
+ retries: options?.retries ?? __classPrivateFieldGet(this, _ChatBotKitClient_retries, "f"),
301
+ retryDelay: options?.retryDelay ?? __classPrivateFieldGet(this, _ChatBotKitClient_retryDelay, "f"),
302
+ retryTimeout: options?.retryTimeout ?? __classPrivateFieldGet(this, _ChatBotKitClient_retryTimeout, "f"),
303
+ fetchFn: options?.fetchFn || __classPrivateFieldGet(this, _ChatBotKitClient_fetchFn, "f"),
294
304
  };
295
- return new ResponsePromise(url, request, tslib_1.__classPrivateFieldGet(this, _ChatBotKitClient_cacheMap, "f"));
305
+ return new ResponsePromise(url, request, __classPrivateFieldGet(this, _ChatBotKitClient_cacheMap, "f"));
296
306
  }
297
307
  }
298
308
  exports.ChatBotKitClient = ChatBotKitClient;
@@ -2,10 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SpaceClient = void 0;
4
4
  const client_js_1 = require("../client.cjs");
5
+ const index_js_1 = require("./storage/index.cjs");
5
6
  const v1_js_1 = require("./v1.cjs");
6
7
  class SpaceClient extends client_js_1.ChatBotKitClient {
7
8
  constructor(options) {
8
9
  super(options);
10
+ this.storage = new index_js_1.SpaceStorageClient(options);
9
11
  }
10
12
  list(request) {
11
13
  return (0, v1_js_1.listSpaces)(this, request);
@@ -1,4 +1,5 @@
1
1
  export class SpaceClient extends ChatBotKitClient {
2
+ storage: SpaceStorageClient;
2
3
  list(request?: import("./v1.js").SpaceListRequest): ResponsePromise<import("./v1.js").SpaceListResponse, import("./v1.js").SpaceListStreamType>;
3
4
  fetch(spaceId: string): ResponsePromise<import("./v1.js").SpaceFetchResponse, never>;
4
5
  create(request: import("./v1.js").SpaceCreateRequest): Promise<import("./v1.js").SpaceCreateResponse>;
@@ -8,3 +9,4 @@ export class SpaceClient extends ChatBotKitClient {
8
9
  export default SpaceClient;
9
10
  export type ResponsePromise<T, U> = import("../client.js").ResponsePromise<T, U>;
10
11
  import { ChatBotKitClient } from '../client.cjs';
12
+ import { SpaceStorageClient } from './storage/index.cjs';
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpaceStorageClient = void 0;
4
+ const client_js_1 = require("../../client.cjs");
5
+ const v1_js_1 = require("./v1.cjs");
6
+ class SpaceStorageClient extends client_js_1.ChatBotKitClient {
7
+ constructor(options) {
8
+ super(options);
9
+ }
10
+ list(spaceId, path, request) {
11
+ return (0, v1_js_1.listSpaceStorage)(this, spaceId, path, request);
12
+ }
13
+ download(spaceId, path, request) {
14
+ return (0, v1_js_1.downloadSpaceStorage)(this, spaceId, path, request);
15
+ }
16
+ upload(spaceId, path, request) {
17
+ return (0, v1_js_1.uploadSpaceStorage)(this, spaceId, path, request);
18
+ }
19
+ delete(spaceId, path, request) {
20
+ return (0, v1_js_1.deleteSpaceStorage)(this, spaceId, path, request);
21
+ }
22
+ copy(spaceId, path, request) {
23
+ return (0, v1_js_1.copySpaceStorage)(this, spaceId, path, request);
24
+ }
25
+ move(spaceId, path, request) {
26
+ return (0, v1_js_1.moveSpaceStorage)(this, spaceId, path, request);
27
+ }
28
+ }
29
+ exports.SpaceStorageClient = SpaceStorageClient;
30
+ exports.default = SpaceStorageClient;
@@ -0,0 +1,11 @@
1
+ export class SpaceStorageClient extends ChatBotKitClient {
2
+ list(spaceId: string, path?: string, request?: import("./v1.js").SpaceStorageListRequest): ResponsePromise<import("./v1.js").SpaceStorageListResponse, never>;
3
+ download(spaceId: string, path: string, request?: import("./v1.js").SpaceStorageDownloadRequest): ResponsePromise<import("./v1.js").SpaceStorageDownloadResponse, never>;
4
+ upload(spaceId: string, path: string, request: import("./v1.js").SpaceStorageUploadRequest): Promise<import("./v1.js").SpaceStorageUploadResponse>;
5
+ delete(spaceId: string, path: string, request?: import("./v1.js").SpaceStorageDeleteRequest): Promise<import("./v1.js").SpaceStorageDeleteResponse>;
6
+ copy(spaceId: string, path: string, request: import("./v1.js").SpaceStorageCopyRequest): Promise<import("./v1.js").SpaceStorageCopyResponse>;
7
+ move(spaceId: string, path: string, request: import("./v1.js").SpaceStorageMoveRequest): Promise<import("./v1.js").SpaceStorageMoveResponse>;
8
+ }
9
+ export default SpaceStorageClient;
10
+ export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
11
+ import { ChatBotKitClient } from '../../client.cjs';
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listSpaceStorage = listSpaceStorage;
4
+ exports.downloadSpaceStorage = downloadSpaceStorage;
5
+ exports.uploadSpaceStorage = uploadSpaceStorage;
6
+ exports.deleteSpaceStorage = deleteSpaceStorage;
7
+ exports.copySpaceStorage = copySpaceStorage;
8
+ exports.moveSpaceStorage = moveSpaceStorage;
9
+ function encodeStoragePath(path) {
10
+ return path.split('/').map(encodeURIComponent).join('/');
11
+ }
12
+ function listSpaceStorage(client, spaceId, path, request) {
13
+ const url = `/api/v1/space/${spaceId}/storage/list${path ? `/${encodeStoragePath(path)}` : ''}`;
14
+ const response = client.clientFetch(url, { query: request });
15
+ return response;
16
+ }
17
+ function downloadSpaceStorage(client, spaceId, path, request) {
18
+ const url = `/api/v1/space/${spaceId}/storage/download/${encodeStoragePath(path)}`;
19
+ const response = client.clientFetch(url, {
20
+ headers: { Accept: 'application/json' },
21
+ query: request,
22
+ });
23
+ return response;
24
+ }
25
+ async function uploadSpaceStorage(client, spaceId, path, request) {
26
+ const url = `/api/v1/space/${spaceId}/storage/upload/${encodeStoragePath(path)}`;
27
+ const response = await client.clientFetch(url, {
28
+ record: { ...request },
29
+ });
30
+ return response;
31
+ }
32
+ async function deleteSpaceStorage(client, spaceId, path, request) {
33
+ const url = `/api/v1/space/${spaceId}/storage/delete/${encodeStoragePath(path)}`;
34
+ const response = await client.clientFetch(url, {
35
+ record: request ? { ...request } : {},
36
+ });
37
+ return response;
38
+ }
39
+ async function copySpaceStorage(client, spaceId, path, request) {
40
+ const url = `/api/v1/space/${spaceId}/storage/copy/${encodeStoragePath(path)}`;
41
+ const response = await client.clientFetch(url, {
42
+ record: { ...request },
43
+ });
44
+ return response;
45
+ }
46
+ async function moveSpaceStorage(client, spaceId, path, request) {
47
+ const url = `/api/v1/space/${spaceId}/storage/move/${encodeStoragePath(path)}`;
48
+ const response = await client.clientFetch(url, {
49
+ record: { ...request },
50
+ });
51
+ return response;
52
+ }
@@ -0,0 +1,20 @@
1
+ export function listSpaceStorage(client: ChatBotKitClient, spaceId: string, path?: string, request?: SpaceStorageListRequest): ResponsePromise<SpaceStorageListResponse, never>;
2
+ export function downloadSpaceStorage(client: ChatBotKitClient, spaceId: string, path: string, request?: SpaceStorageDownloadRequest): ResponsePromise<SpaceStorageDownloadResponse, never>;
3
+ export function uploadSpaceStorage(client: ChatBotKitClient, spaceId: string, path: string, request: SpaceStorageUploadRequest): Promise<SpaceStorageUploadResponse>;
4
+ export function deleteSpaceStorage(client: ChatBotKitClient, spaceId: string, path: string, request?: SpaceStorageDeleteRequest): Promise<SpaceStorageDeleteResponse>;
5
+ export function copySpaceStorage(client: ChatBotKitClient, spaceId: string, path: string, request: SpaceStorageCopyRequest): Promise<SpaceStorageCopyResponse>;
6
+ export function moveSpaceStorage(client: ChatBotKitClient, spaceId: string, path: string, request: SpaceStorageMoveRequest): Promise<SpaceStorageMoveResponse>;
7
+ export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
8
+ export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
9
+ export type SpaceStorageListRequest = NonNullable<import("../../types/api/v1.js").operations["listSpaceStoragePath"]["parameters"]["query"]>;
10
+ export type SpaceStorageListResponse = import("../../types/api/v1.js").operations["listSpaceStoragePath"]["responses"]["200"]["content"]["application/json"];
11
+ export type SpaceStorageDownloadRequest = NonNullable<import("../../types/api/v1.js").operations["downloadSpaceStoragePath"]["parameters"]["query"]>;
12
+ export type SpaceStorageDownloadResponse = import("../../types/api/v1.js").operations["downloadSpaceStoragePath"]["responses"]["200"]["content"]["application/json"];
13
+ export type SpaceStorageUploadRequest = import("../../types/api/v1.js").operations["uploadSpaceStoragePath"]["requestBody"]["content"]["application/json"];
14
+ export type SpaceStorageUploadResponse = import("../../types/api/v1.js").operations["uploadSpaceStoragePath"]["responses"]["200"]["content"]["application/json"];
15
+ export type SpaceStorageDeleteRequest = NonNullable<import("../../types/api/v1.js").operations["deleteSpaceStoragePath"]["requestBody"]>["content"]["application/json"];
16
+ export type SpaceStorageDeleteResponse = import("../../types/api/v1.js").operations["deleteSpaceStoragePath"]["responses"]["200"]["content"]["application/json"];
17
+ export type SpaceStorageCopyRequest = import("../../types/api/v1.js").operations["copySpaceStoragePath"]["requestBody"]["content"]["application/json"];
18
+ export type SpaceStorageCopyResponse = import("../../types/api/v1.js").operations["copySpaceStoragePath"]["responses"]["200"]["content"]["application/json"];
19
+ export type SpaceStorageMoveRequest = import("../../types/api/v1.js").operations["moveSpaceStoragePath"]["requestBody"]["content"]["application/json"];
20
+ export type SpaceStorageMoveResponse = import("../../types/api/v1.js").operations["moveSpaceStoragePath"]["responses"]["200"]["content"]["application/json"];
@@ -33,10 +33,12 @@ export type CbkAbilityName = 'abort'
33
33
  | 'conversation/list[bot]'
34
34
  | 'conversation/list[contact]'
35
35
  | 'conversation/mcp/install[url]'
36
+ | 'conversation/mcp/uninstall[url]'
36
37
  | 'conversation/search'
37
38
  | 'conversation/search[bot]'
38
39
  | 'conversation/search[contact]'
39
40
  | 'conversation/skillset/install[by-id]'
41
+ | 'conversation/skillset/uninstall[by-id]'
40
42
  | 'dataset/create'
41
43
  | 'dataset/file/create[url]'
42
44
  | 'dataset/list'
@@ -348,6 +350,11 @@ export type ConversationMcpInstallUrlParameters = {
348
350
  url: string
349
351
  }
350
352
 
353
+ export type ConversationMcpUninstallUrlParameters = {
354
+ /** the remote MCP URL to uninstall */
355
+ url: string
356
+ }
357
+
351
358
  export type ConversationSearchParameters = {
352
359
  /** the search query to find conversations */
353
360
  query: string
@@ -368,6 +375,11 @@ export type ConversationSkillsetInstallByIdParameters = {
368
375
  skillsetId: string
369
376
  }
370
377
 
378
+ export type ConversationSkillsetUninstallByIdParameters = {
379
+ /** the skillset ID to uninstall */
380
+ skillsetId: string
381
+ }
382
+
371
383
  export type DatasetCreateParameters = {
372
384
  /** the name of the dataset */
373
385
  name: string
@@ -1530,6 +1542,11 @@ export interface CbkAbilityRegistry {
1530
1542
  description: 'Bring MCP (model context protocol) functions into context'
1531
1543
  parameters: ConversationMcpInstallUrlParameters
1532
1544
  }
1545
+ 'conversation/mcp/uninstall[url]': {
1546
+ name: 'Uninstall MCP'
1547
+ description: 'Remove MCP (model context protocol) functions from context'
1548
+ parameters: ConversationMcpUninstallUrlParameters
1549
+ }
1533
1550
  'conversation/search': {
1534
1551
  name: 'Search Conversations'
1535
1552
  description: 'Search conversations by query'
@@ -1550,6 +1567,11 @@ export interface CbkAbilityRegistry {
1550
1567
  description: 'Bring a skillset into context by its ID'
1551
1568
  parameters: ConversationSkillsetInstallByIdParameters
1552
1569
  }
1570
+ 'conversation/skillset/uninstall[by-id]': {
1571
+ name: 'Uninstall Skillset'
1572
+ description: 'Remove a skillset from context by its ID'
1573
+ parameters: ConversationSkillsetUninstallByIdParameters
1574
+ }
1553
1575
  'dataset/create': {
1554
1576
  name: 'Create Dataset'
1555
1577
  description: 'Create a new dataset'