@chatbotkit/sdk 1.27.0 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +0 -14
  2. package/dist/cjs/client.cjs +3 -5
  3. package/dist/cjs/client.d.ts +2 -7
  4. package/dist/cjs/index.cjs +21 -18
  5. package/dist/cjs/index.d.ts +3 -1
  6. package/dist/cjs/integration/index.cjs +24 -28
  7. package/dist/cjs/integration/index.d.ts +0 -4
  8. package/dist/cjs/platform/ability/index.cjs +0 -3
  9. package/dist/cjs/platform/ability/index.d.ts +0 -1
  10. package/dist/cjs/platform/ability/v1.cjs +0 -10
  11. package/dist/cjs/platform/ability/v1.d.ts +0 -5
  12. package/dist/cjs/platform/report/index.cjs +0 -9
  13. package/dist/cjs/platform/report/index.d.ts +0 -3
  14. package/dist/cjs/platform/report/v1.cjs +0 -30
  15. package/dist/cjs/platform/report/v1.d.ts +0 -12
  16. package/dist/cjs/platform/secret/index.cjs +0 -3
  17. package/dist/cjs/platform/secret/index.d.ts +0 -1
  18. package/dist/cjs/platform/secret/v1.cjs +0 -10
  19. package/dist/cjs/platform/secret/v1.d.ts +0 -5
  20. package/dist/cjs/report/index.cjs +18 -0
  21. package/dist/cjs/report/index.d.ts +6 -0
  22. package/dist/cjs/report/v1.cjs +22 -0
  23. package/dist/cjs/report/v1.d.ts +9 -0
  24. package/dist/cjs/types/api/v1.d.ts +679 -2274
  25. package/dist/cjs/types/report.d.ts +1 -139
  26. package/dist/esm/client.d.ts +2 -7
  27. package/dist/esm/client.js +3 -5
  28. package/dist/esm/index.d.ts +3 -1
  29. package/dist/esm/index.js +3 -0
  30. package/dist/esm/integration/index.d.ts +0 -4
  31. package/dist/esm/integration/index.js +0 -4
  32. package/dist/esm/platform/ability/index.d.ts +0 -1
  33. package/dist/esm/platform/ability/index.js +1 -4
  34. package/dist/esm/platform/ability/v1.d.ts +0 -5
  35. package/dist/esm/platform/ability/v1.js +0 -9
  36. package/dist/esm/platform/report/index.d.ts +0 -3
  37. package/dist/esm/platform/report/index.js +1 -10
  38. package/dist/esm/platform/report/v1.d.ts +0 -12
  39. package/dist/esm/platform/report/v1.js +0 -27
  40. package/dist/esm/platform/secret/index.d.ts +0 -1
  41. package/dist/esm/platform/secret/index.js +1 -4
  42. package/dist/esm/platform/secret/v1.d.ts +0 -5
  43. package/dist/esm/platform/secret/v1.js +0 -9
  44. package/dist/esm/report/index.d.ts +6 -0
  45. package/dist/esm/report/index.js +14 -0
  46. package/dist/esm/report/v1.d.ts +9 -0
  47. package/dist/esm/report/v1.js +18 -0
  48. package/dist/esm/types/api/v1.d.ts +679 -2274
  49. package/dist/esm/types/report.d.ts +1 -139
  50. package/package.json +51 -101
  51. package/dist/cjs/integration/googlechat/index.cjs +0 -30
  52. package/dist/cjs/integration/googlechat/index.d.ts +0 -11
  53. package/dist/cjs/integration/googlechat/v1.cjs +0 -50
  54. package/dist/cjs/integration/googlechat/v1.d.ts +0 -33
  55. package/dist/cjs/integration/teams/index.cjs +0 -30
  56. package/dist/cjs/integration/teams/index.d.ts +0 -11
  57. package/dist/cjs/integration/teams/v1.cjs +0 -50
  58. package/dist/cjs/integration/teams/v1.d.ts +0 -33
  59. package/dist/esm/integration/googlechat/index.d.ts +0 -11
  60. package/dist/esm/integration/googlechat/index.js +0 -26
  61. package/dist/esm/integration/googlechat/v1.d.ts +0 -33
  62. package/dist/esm/integration/googlechat/v1.js +0 -42
  63. package/dist/esm/integration/teams/index.d.ts +0 -11
  64. package/dist/esm/integration/teams/index.js +0 -26
  65. package/dist/esm/integration/teams/v1.d.ts +0 -33
  66. package/dist/esm/integration/teams/v1.js +0 -42
package/README.md CHANGED
@@ -9,20 +9,6 @@
9
9
 
10
10
  Welcome to the ChatBotKit Node SDK. This is a Node.js-based solution designed to simplify the process of building conversational AI chatbots. Utilize [ChatBotKit](https://chatbotkit.com) to rapidly develop and deploy AI bots capable of natural language interactions.
11
11
 
12
- ## Why ChatBotKit?
13
-
14
- **Build lighter, future-proof AI agents.** When you build with ChatBotKit, the heavy lifting happens on our servers—not in your application. This architectural advantage delivers:
15
-
16
- - 🪶 **Lightweight Agents**: Your agents stay lean because complex AI processing, model orchestration, and tool execution happen server-side. Less code in your app means faster load times and simpler maintenance.
17
-
18
- - 🛡️ **Robust & Streamlined**: Server-side processing provides a more reliable experience with built-in error handling, automatic retries, and consistent behavior across all platforms.
19
-
20
- - 🔄 **Backward & Forward Compatible**: As AI technology evolves—new models, new capabilities, new paradigms—your agents automatically benefit. No code changes required on your end.
21
-
22
- - 🔮 **Future-Proof**: Agents you build today will remain capable tomorrow. When we add support for new AI models or capabilities, your existing agents gain those powers without any updates to your codebase.
23
-
24
- This means you can focus on building great user experiences while ChatBotKit handles the complexity of the ever-changing AI landscape.
25
-
26
12
  ## Getting Started
27
13
 
28
14
  Embark on creating your chatbot with ChatBotKit in a few easy steps:
@@ -51,7 +51,6 @@ class ResponsePromise {
51
51
  retryDelay: params?.retryDelay ?? retryDelay,
52
52
  retryTimeout: params?.retryTimeout ?? retryTimeout,
53
53
  },
54
- ...(params?.abortSignal ? { signal: params.abortSignal } : {}),
55
54
  mode: 'cors',
56
55
  cache: 'no-cache',
57
56
  });
@@ -79,11 +78,10 @@ class ResponsePromise {
79
78
  }
80
79
  return this.fetchPromise;
81
80
  }
82
- getStreamPromise(params) {
81
+ getStreamPromise() {
83
82
  if (!this.streamPromise) {
84
83
  this.streamPromise = this.getRequest({
85
84
  headers: { Accept: 'application/jsonl' },
86
- abortSignal: params?.abortSignal,
87
85
  });
88
86
  }
89
87
  return this.streamPromise;
@@ -122,8 +120,8 @@ class ResponsePromise {
122
120
  throw reason;
123
121
  });
124
122
  }
125
- async *stream(params) {
126
- const response = await this.getStreamPromise(params);
123
+ async *stream() {
124
+ const response = await this.getStreamPromise();
127
125
  if (!response.body) {
128
126
  return;
129
127
  }
@@ -33,18 +33,13 @@ export class ResponsePromise<T, U> {
33
33
  retryDelay?: number;
34
34
  retryTimeout?: boolean;
35
35
  fetchFn?: FetchFunction;
36
- abortSignal?: AbortSignal;
37
36
  }): Promise<Response>;
38
37
  getFetchPromise(): Promise<Response>;
39
- getStreamPromise(params?: {
40
- abortSignal?: AbortSignal;
41
- }): Promise<Response>;
38
+ getStreamPromise(): Promise<Response>;
42
39
  then<TResult1, TResult2>(onSuccess?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onFail?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
43
40
  catch<TResult>(fn?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
44
41
  finally(fn?: (() => void) | undefined | null): Promise<T>;
45
- stream(params?: {
46
- abortSignal?: AbortSignal;
47
- }): AsyncGenerator<U>;
42
+ stream(): AsyncGenerator<U>;
48
43
  cache(key?: string): Promise<T>;
49
44
  get [Symbol.toStringTag](): string;
50
45
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChatBotKit = exports.UsageClient = exports.SpaceClient = exports.GraphqlClient = exports.PortalClient = exports.PolicyClient = exports.MemoryClient = exports.TeamClient = exports.SecretClient = exports.ContactClient = exports.ConversationClient = exports.IntegrationClient = exports.SkillsetClient = exports.DatasetClient = exports.PartnerClient = exports.MagicClient = exports.FileClient = exports.EventClient = exports.ChannelClient = exports.BotClient = exports.BlueprintClient = void 0;
3
+ exports.ChatBotKit = exports.UsageClient = exports.SpaceClient = exports.GraphqlClient = exports.ReportClient = exports.PortalClient = exports.PolicyClient = exports.MemoryClient = exports.TeamClient = exports.SecretClient = exports.ContactClient = exports.ConversationClient = exports.IntegrationClient = exports.SkillsetClient = exports.DatasetClient = exports.PartnerClient = exports.MagicClient = exports.FileClient = exports.EventClient = exports.ChannelClient = exports.BotClient = exports.BlueprintClient = void 0;
4
4
  const index_js_1 = require("./blueprint/index.cjs");
5
5
  Object.defineProperty(exports, "BlueprintClient", { enumerable: true, get: function () { return index_js_1.BlueprintClient; } });
6
6
  const index_js_2 = require("./bot/index.cjs");
@@ -33,17 +33,19 @@ const index_js_15 = require("./policy/index.cjs");
33
33
  Object.defineProperty(exports, "PolicyClient", { enumerable: true, get: function () { return index_js_15.PolicyClient; } });
34
34
  const index_js_16 = require("./portal/index.cjs");
35
35
  Object.defineProperty(exports, "PortalClient", { enumerable: true, get: function () { return index_js_16.PortalClient; } });
36
- const index_js_17 = require("./secret/index.cjs");
37
- Object.defineProperty(exports, "SecretClient", { enumerable: true, get: function () { return index_js_17.SecretClient; } });
38
- const index_js_18 = require("./skillset/index.cjs");
39
- Object.defineProperty(exports, "SkillsetClient", { enumerable: true, get: function () { return index_js_18.SkillsetClient; } });
40
- const index_js_19 = require("./space/index.cjs");
41
- Object.defineProperty(exports, "SpaceClient", { enumerable: true, get: function () { return index_js_19.SpaceClient; } });
42
- const index_js_20 = require("./task/index.cjs");
43
- const index_js_21 = require("./team/index.cjs");
44
- Object.defineProperty(exports, "TeamClient", { enumerable: true, get: function () { return index_js_21.TeamClient; } });
45
- const index_js_22 = require("./usage/index.cjs");
46
- Object.defineProperty(exports, "UsageClient", { enumerable: true, get: function () { return index_js_22.UsageClient; } });
36
+ const index_js_17 = require("./report/index.cjs");
37
+ Object.defineProperty(exports, "ReportClient", { enumerable: true, get: function () { return index_js_17.ReportClient; } });
38
+ const index_js_18 = require("./secret/index.cjs");
39
+ Object.defineProperty(exports, "SecretClient", { enumerable: true, get: function () { return index_js_18.SecretClient; } });
40
+ const index_js_19 = require("./skillset/index.cjs");
41
+ Object.defineProperty(exports, "SkillsetClient", { enumerable: true, get: function () { return index_js_19.SkillsetClient; } });
42
+ const index_js_20 = require("./space/index.cjs");
43
+ Object.defineProperty(exports, "SpaceClient", { enumerable: true, get: function () { return index_js_20.SpaceClient; } });
44
+ const index_js_21 = require("./task/index.cjs");
45
+ const index_js_22 = require("./team/index.cjs");
46
+ Object.defineProperty(exports, "TeamClient", { enumerable: true, get: function () { return index_js_22.TeamClient; } });
47
+ const index_js_23 = require("./usage/index.cjs");
48
+ Object.defineProperty(exports, "UsageClient", { enumerable: true, get: function () { return index_js_23.UsageClient; } });
47
49
  class ChatBotKit extends client_js_1.ChatBotKitClient {
48
50
  constructor(options) {
49
51
  super(options);
@@ -53,21 +55,22 @@ class ChatBotKit extends client_js_1.ChatBotKitClient {
53
55
  this.channel = new index_js_3.ChannelClient(options);
54
56
  this.event = new index_js_7.EventClient(options);
55
57
  this.file = new index_js_8.FileClient(options);
56
- this.secret = new index_js_17.SecretClient(options);
58
+ this.secret = new index_js_18.SecretClient(options);
57
59
  this.magic = new index_js_11.MagicClient(options);
58
60
  this.partner = new index_js_13.PartnerClient(options);
59
61
  this.dataset = new index_js_6.DatasetClient(options);
60
- this.skillset = new index_js_18.SkillsetClient(options);
62
+ this.skillset = new index_js_19.SkillsetClient(options);
61
63
  this.integration = new index_js_10.IntegrationClient(options);
62
- this.team = new index_js_21.TeamClient(options);
64
+ this.team = new index_js_22.TeamClient(options);
63
65
  this.contact = new index_js_4.ContactClient(options);
64
- this.space = new index_js_19.SpaceClient(options);
65
- this.task = new index_js_20.TaskClient(options);
66
+ this.space = new index_js_20.SpaceClient(options);
67
+ this.task = new index_js_21.TaskClient(options);
66
68
  this.conversation = new index_js_5.ConversationClient(options);
67
69
  this.memory = new index_js_12.MemoryClient(options);
68
70
  this.policy = new index_js_15.PolicyClient(options);
69
71
  this.portal = new index_js_16.PortalClient(options);
70
- this.usage = new index_js_22.UsageClient(options);
72
+ this.report = new index_js_17.ReportClient(options);
73
+ this.usage = new index_js_23.UsageClient(options);
71
74
  this.graphql = new index_js_9.GraphqlClient(options);
72
75
  }
73
76
  }
@@ -19,6 +19,7 @@ export class ChatBotKit extends ChatBotKitClient {
19
19
  memory: MemoryClient;
20
20
  policy: PolicyClient;
21
21
  portal: PortalClient;
22
+ report: ReportClient;
22
23
  usage: UsageClient;
23
24
  graphql: GraphqlClient;
24
25
  }
@@ -40,10 +41,11 @@ import { TeamClient } from './team/index.cjs';
40
41
  import { MemoryClient } from './memory/index.cjs';
41
42
  import { PolicyClient } from './policy/index.cjs';
42
43
  import { PortalClient } from './portal/index.cjs';
44
+ import { ReportClient } from './report/index.cjs';
43
45
  import { GraphqlClient } from './graphql/index.cjs';
44
46
  import { SpaceClient } from './space/index.cjs';
45
47
  import { UsageClient } from './usage/index.cjs';
46
48
  import { ChatBotKitClient } from './client.cjs';
47
49
  import { PlatformClient } from './platform/index.cjs';
48
50
  import { TaskClient } from './task/index.cjs';
49
- export { BlueprintClient, BotClient, ChannelClient, EventClient, FileClient, MagicClient, PartnerClient, DatasetClient, SkillsetClient, IntegrationClient, ConversationClient, ContactClient, SecretClient, TeamClient, MemoryClient, PolicyClient, PortalClient, GraphqlClient, SpaceClient, UsageClient };
51
+ export { BlueprintClient, BotClient, ChannelClient, EventClient, FileClient, MagicClient, PartnerClient, DatasetClient, SkillsetClient, IntegrationClient, ConversationClient, ContactClient, SecretClient, TeamClient, MemoryClient, PolicyClient, PortalClient, ReportClient, GraphqlClient, SpaceClient, UsageClient };
@@ -5,40 +5,36 @@ const client_js_1 = require("../client.cjs");
5
5
  const index_js_1 = require("./discord/index.cjs");
6
6
  const index_js_2 = require("./email/index.cjs");
7
7
  const index_js_3 = require("./extract/index.cjs");
8
- const index_js_4 = require("./googlechat/index.cjs");
9
- const index_js_5 = require("./instagram/index.cjs");
10
- const index_js_6 = require("./mcpserver/index.cjs");
11
- const index_js_7 = require("./messenger/index.cjs");
12
- const index_js_8 = require("./notion/index.cjs");
13
- const index_js_9 = require("./sitemap/index.cjs");
14
- const index_js_10 = require("./slack/index.cjs");
15
- const index_js_11 = require("./support/index.cjs");
16
- const index_js_12 = require("./teams/index.cjs");
17
- const index_js_13 = require("./telegram/index.cjs");
18
- const index_js_14 = require("./trigger/index.cjs");
19
- const index_js_15 = require("./twilio/index.cjs");
20
- const index_js_16 = require("./whatsapp/index.cjs");
21
- const index_js_17 = require("./widget/index.cjs");
8
+ const index_js_4 = require("./instagram/index.cjs");
9
+ const index_js_5 = require("./mcpserver/index.cjs");
10
+ const index_js_6 = require("./messenger/index.cjs");
11
+ const index_js_7 = require("./notion/index.cjs");
12
+ const index_js_8 = require("./sitemap/index.cjs");
13
+ const index_js_9 = require("./slack/index.cjs");
14
+ const index_js_10 = require("./support/index.cjs");
15
+ const index_js_11 = require("./telegram/index.cjs");
16
+ const index_js_12 = require("./trigger/index.cjs");
17
+ const index_js_13 = require("./twilio/index.cjs");
18
+ const index_js_14 = require("./whatsapp/index.cjs");
19
+ const index_js_15 = require("./widget/index.cjs");
22
20
  class IntegrationClient extends client_js_1.ChatBotKitClient {
23
21
  constructor(options) {
24
22
  super(options);
25
- this.widget = new index_js_17.WidgetIntegrationClient(options);
26
- this.slack = new index_js_10.SlackIntegrationClient(options);
23
+ this.widget = new index_js_15.WidgetIntegrationClient(options);
24
+ this.slack = new index_js_9.SlackIntegrationClient(options);
27
25
  this.discord = new index_js_1.DiscordIntegrationClient(options);
28
- this.whatsapp = new index_js_16.WhatsAppIntegrationClient(options);
29
- this.messenger = new index_js_7.MessengerIntegrationClient(options);
30
- this.instagram = new index_js_5.InstagramIntegrationClient(options);
31
- this.telegram = new index_js_13.TelegramIntegrationClient(options);
32
- this.trigger = new index_js_14.TriggerIntegrationClient(options);
26
+ this.whatsapp = new index_js_14.WhatsAppIntegrationClient(options);
27
+ this.messenger = new index_js_6.MessengerIntegrationClient(options);
28
+ this.instagram = new index_js_4.InstagramIntegrationClient(options);
29
+ this.telegram = new index_js_11.TelegramIntegrationClient(options);
30
+ this.trigger = new index_js_12.TriggerIntegrationClient(options);
33
31
  this.email = new index_js_2.EmailIntegrationClient(options);
34
- this.sitemap = new index_js_9.SitemapIntegrationClient(options);
35
- this.notion = new index_js_8.NotionIntegrationClient(options);
36
- this.support = new index_js_11.SupportIntegrationClient(options);
32
+ this.sitemap = new index_js_8.SitemapIntegrationClient(options);
33
+ this.notion = new index_js_7.NotionIntegrationClient(options);
34
+ this.support = new index_js_10.SupportIntegrationClient(options);
37
35
  this.extract = new index_js_3.ExtractIntegrationClient(options);
38
- this.mcpserver = new index_js_6.McpServerIntegrationClient(options);
39
- this.twilio = new index_js_15.TwilioIntegrationClient(options);
40
- this.teams = new index_js_12.TeamsIntegrationClient(options);
41
- this.googlechat = new index_js_4.GooglechatIntegrationClient(options);
36
+ this.mcpserver = new index_js_5.McpServerIntegrationClient(options);
37
+ this.twilio = new index_js_13.TwilioIntegrationClient(options);
42
38
  }
43
39
  }
44
40
  exports.IntegrationClient = IntegrationClient;
@@ -14,8 +14,6 @@ export class IntegrationClient extends ChatBotKitClient {
14
14
  extract: ExtractIntegrationClient;
15
15
  mcpserver: McpServerIntegrationClient;
16
16
  twilio: TwilioIntegrationClient;
17
- teams: TeamsIntegrationClient;
18
- googlechat: GooglechatIntegrationClient;
19
17
  }
20
18
  export default IntegrationClient;
21
19
  import { ChatBotKitClient } from '../client.cjs';
@@ -34,5 +32,3 @@ import { SupportIntegrationClient } from './support/index.cjs';
34
32
  import { ExtractIntegrationClient } from './extract/index.cjs';
35
33
  import { McpServerIntegrationClient } from './mcpserver/index.cjs';
36
34
  import { TwilioIntegrationClient } from './twilio/index.cjs';
37
- import { TeamsIntegrationClient } from './teams/index.cjs';
38
- import { GooglechatIntegrationClient } from './googlechat/index.cjs';
@@ -10,9 +10,6 @@ class PlatformAbilityClient extends client_js_1.ChatBotKitClient {
10
10
  list(request) {
11
11
  return (0, v1_js_1.listPlatformAbilities)(this, request);
12
12
  }
13
- search(request) {
14
- return (0, v1_js_1.searchPlatformAbilities)(this, request);
15
- }
16
13
  }
17
14
  exports.PlatformAbilityClient = PlatformAbilityClient;
18
15
  exports.default = PlatformAbilityClient;
@@ -1,6 +1,5 @@
1
1
  export class PlatformAbilityClient extends ChatBotKitClient {
2
2
  list(request?: import("./v1.js").PlatformAbilityListRequest): ResponsePromise<import("./v1.js").PlatformAbilityListResponse, import("./v1.js").PlatformAbilityListStreamType>;
3
- search(request: import("./v1.js").PlatformAbilitySearchRequest): Promise<import("./v1.js").PlatformAbilitySearchResponse>;
4
3
  }
5
4
  export default PlatformAbilityClient;
6
5
  export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
@@ -1,18 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.listPlatformAbilities = listPlatformAbilities;
4
- exports.searchPlatformAbilities = searchPlatformAbilities;
5
4
  function listPlatformAbilities(client, request) {
6
5
  let url = `/api/v1/platform/ability/list`;
7
6
  const response = client.clientFetch(url, { query: request });
8
7
  return response;
9
8
  }
10
- async function searchPlatformAbilities(client, request) {
11
- const url = `/api/v1/platform/ability/search`;
12
- const response = await client.clientFetch(url, {
13
- record: {
14
- ...request,
15
- },
16
- });
17
- return response;
18
- }
@@ -1,5 +1,4 @@
1
1
  export function listPlatformAbilities(client: ChatBotKitClient, request?: PlatformAbilityListRequest): ResponsePromise<PlatformAbilityListResponse, PlatformAbilityListStreamType>;
2
- export function searchPlatformAbilities(client: ChatBotKitClient, request: PlatformAbilitySearchRequest): Promise<PlatformAbilitySearchResponse>;
3
2
  export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
4
3
  export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
5
4
  export type PlatformAbilityListRequest = {
@@ -11,7 +10,3 @@ export type PlatformAbilityListRequest = {
11
10
  export type PlatformAbilityListResponse = import("../../types/api/v1.js").operations["listPlatformAbilities"]["responses"]["200"]["content"]["application/json"];
12
11
  export type PlatformAbilityListItem = PlatformAbilityListResponse["items"][number];
13
12
  export type PlatformAbilityListStreamType = import("../../types/api/v1.js").operations["listPlatformAbilities"]["responses"]["200"]["content"]["application/jsonl"];
14
- export type PlatformAbilitySearchRequestBody = import("../../types/api/v1.js").operations["searchPlatformAbilities"]["requestBody"]["content"]["application/json"];
15
- export type PlatformAbilitySearchRequest = PlatformAbilitySearchRequestBody;
16
- export type PlatformAbilitySearchResponseBody = import("../../types/api/v1.js").operations["searchPlatformAbilities"]["responses"]["200"]["content"]["application/json"];
17
- export type PlatformAbilitySearchResponse = PlatformAbilitySearchResponseBody;
@@ -10,15 +10,6 @@ class PlatformReportClient extends client_js_1.ChatBotKitClient {
10
10
  list(request) {
11
11
  return (0, v1_js_1.listPlatformReports)(this, request);
12
12
  }
13
- generate(reportId, request) {
14
- return (0, v1_js_1.generatePlatformReport)(this, reportId, request);
15
- }
16
- generateTyped(reportId, request) {
17
- return (0, v1_js_1.generateTypedPlatformReport)(this, reportId, request);
18
- }
19
- generateBatch(request) {
20
- return (0, v1_js_1.generatePlatformReports)(this, request);
21
- }
22
13
  }
23
14
  exports.PlatformReportClient = PlatformReportClient;
24
15
  exports.default = PlatformReportClient;
@@ -1,8 +1,5 @@
1
1
  export class PlatformReportClient extends ChatBotKitClient {
2
2
  list(request?: import("./v1.js").PlatformReportListRequest): ResponsePromise<import("./v1.js").PlatformReportListResponse, import("./v1.js").PlatformReportListStreamType>;
3
- generate(reportId: string, request: import("./v1.js").PlatformReportGenerateRequest): Promise<import("./v1.js").PlatformReportGenerateResponse>;
4
- generateTyped<T extends import("./v1.js").ReportId>(reportId: T, request: import("./v1.js").ReportInputTypes[T]): Promise<import("./v1.js").ReportOutputTypes[T]>;
5
- generateBatch(request: import("./v1.js").PlatformReportsGenerateRequest): Promise<import("./v1.js").PlatformReportsGenerateResponse>;
6
3
  }
7
4
  export default PlatformReportClient;
8
5
  export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
@@ -1,38 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.listPlatformReports = listPlatformReports;
4
- exports.generatePlatformReport = generatePlatformReport;
5
- exports.generateTypedPlatformReport = generateTypedPlatformReport;
6
- exports.generatePlatformReports = generatePlatformReports;
7
4
  function listPlatformReports(client, request) {
8
5
  let url = `/api/v1/platform/report/list`;
9
6
  const response = client.clientFetch(url, { query: request });
10
7
  return response;
11
8
  }
12
- async function generatePlatformReport(client, reportId, request) {
13
- const url = `/api/v1/platform/report/${reportId}/generate`;
14
- const response = await client.clientFetch(url, {
15
- record: {
16
- ...request,
17
- },
18
- });
19
- return response;
20
- }
21
- async function generateTypedPlatformReport(client, reportId, request) {
22
- const url = `/api/v1/platform/report/${reportId}/generate`;
23
- const response = await client.clientFetch(url, {
24
- record: {
25
- ...request,
26
- },
27
- });
28
- return response;
29
- }
30
- async function generatePlatformReports(client, request) {
31
- const url = `/api/v1/platform/report/generate`;
32
- const response = await client.clientFetch(url, {
33
- record: {
34
- ...request,
35
- },
36
- });
37
- return response;
38
- }
@@ -1,7 +1,4 @@
1
1
  export function listPlatformReports(client: ChatBotKitClient, request?: PlatformReportListRequest): ResponsePromise<PlatformReportListResponse, PlatformReportListStreamType>;
2
- export function generatePlatformReport(client: ChatBotKitClient, reportId: string, request: PlatformReportGenerateRequest): Promise<PlatformReportGenerateResponse>;
3
- export function generateTypedPlatformReport<T extends ReportId>(client: ChatBotKitClient, reportId: T, request: ReportInputTypes[T]): Promise<ReportOutputTypes[T]>;
4
- export function generatePlatformReports(client: ChatBotKitClient, request: PlatformReportsGenerateRequest): Promise<PlatformReportsGenerateResponse>;
5
2
  export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
6
3
  export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
7
4
  export type PlatformReportListRequest = {
@@ -13,12 +10,3 @@ export type PlatformReportListRequest = {
13
10
  export type PlatformReportListResponse = import("../../types/api/v1.js").operations["listPlatformReports"]["responses"]["200"]["content"]["application/json"];
14
11
  export type PlatformReportListItem = PlatformReportListResponse["items"][number];
15
12
  export type PlatformReportListStreamType = import("../../types/api/v1.js").operations["listPlatformReports"]["responses"]["200"]["content"]["application/jsonl"];
16
- export type PlatformReportGenerateRequestBody = import("../../types/api/v1.js").operations["generatePlatformReport"]["requestBody"]["content"]["application/json"];
17
- export type PlatformReportGenerateRequest = PlatformReportGenerateRequestBody;
18
- export type PlatformReportGenerateResponse = import("../../types/api/v1.js").operations["generatePlatformReport"]["responses"]["200"]["content"]["application/json"];
19
- export type ReportId = import("../../types/report.js").ReportId;
20
- export type ReportInputTypes = import("../../types/report.js").ReportInputTypes;
21
- export type ReportOutputTypes = import("../../types/report.js").ReportOutputTypes;
22
- export type PlatformReportsGenerateRequestBody = import("../../types/api/v1.js").operations["generatePlatformReports"]["requestBody"]["content"]["application/json"];
23
- export type PlatformReportsGenerateRequest = PlatformReportsGenerateRequestBody;
24
- export type PlatformReportsGenerateResponse = import("../../types/api/v1.js").operations["generatePlatformReports"]["responses"]["200"]["content"]["application/json"];
@@ -10,9 +10,6 @@ class PlatformSecretClient extends client_js_1.ChatBotKitClient {
10
10
  list(request) {
11
11
  return (0, v1_js_1.listPlatformSecrets)(this, request);
12
12
  }
13
- search(request) {
14
- return (0, v1_js_1.searchPlatformSecrets)(this, request);
15
- }
16
13
  }
17
14
  exports.PlatformSecretClient = PlatformSecretClient;
18
15
  exports.default = PlatformSecretClient;
@@ -1,6 +1,5 @@
1
1
  export class PlatformSecretClient extends ChatBotKitClient {
2
2
  list(request?: import("./v1.js").PlatformSecretListRequest): ResponsePromise<import("./v1.js").PlatformSecretListResponse, import("./v1.js").PlatformSecretListStreamType>;
3
- search(request: import("./v1.js").PlatformSecretSearchRequest): Promise<import("./v1.js").PlatformSecretSearchResponse>;
4
3
  }
5
4
  export default PlatformSecretClient;
6
5
  export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
@@ -1,18 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.listPlatformSecrets = listPlatformSecrets;
4
- exports.searchPlatformSecrets = searchPlatformSecrets;
5
4
  function listPlatformSecrets(client, request) {
6
5
  let url = `/api/v1/platform/secret/list`;
7
6
  const response = client.clientFetch(url, { query: request });
8
7
  return response;
9
8
  }
10
- async function searchPlatformSecrets(client, request) {
11
- const url = `/api/v1/platform/secret/search`;
12
- const response = await client.clientFetch(url, {
13
- record: {
14
- ...request,
15
- },
16
- });
17
- return response;
18
- }
@@ -1,5 +1,4 @@
1
1
  export function listPlatformSecrets(client: ChatBotKitClient, request?: PlatformSecretListRequest): ResponsePromise<PlatformSecretListResponse, PlatformSecretListStreamType>;
2
- export function searchPlatformSecrets(client: ChatBotKitClient, request: PlatformSecretSearchRequest): Promise<PlatformSecretSearchResponse>;
3
2
  export type ChatBotKitClient = import("../../client.js").ChatBotKitClient;
4
3
  export type ResponsePromise<T, U> = import("../../client.js").ResponsePromise<T, U>;
5
4
  export type PlatformSecretListRequest = {
@@ -10,7 +9,3 @@ export type PlatformSecretListRequest = {
10
9
  export type PlatformSecretListResponse = import("../../types/api/v1.js").operations["listPlatformSecrets"]["responses"]["200"]["content"]["application/json"];
11
10
  export type PlatformSecretListItem = PlatformSecretListResponse["items"][number];
12
11
  export type PlatformSecretListStreamType = import("../../types/api/v1.js").operations["listPlatformSecrets"]["responses"]["200"]["content"]["application/jsonl"];
13
- export type PlatformSecretSearchRequestBody = import("../../types/api/v1.js").operations["searchPlatformSecrets"]["requestBody"]["content"]["application/json"];
14
- export type PlatformSecretSearchRequest = PlatformSecretSearchRequestBody;
15
- export type PlatformSecretSearchResponseBody = import("../../types/api/v1.js").operations["searchPlatformSecrets"]["responses"]["200"]["content"]["application/json"];
16
- export type PlatformSecretSearchResponse = PlatformSecretSearchResponseBody;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReportClient = void 0;
4
+ const client_js_1 = require("../client.cjs");
5
+ const v1_js_1 = require("./v1.cjs");
6
+ class ReportClient extends client_js_1.ChatBotKitClient {
7
+ constructor(options) {
8
+ super(options);
9
+ }
10
+ generate(reportId, request) {
11
+ return (0, v1_js_1.generateReport)(this, reportId, request);
12
+ }
13
+ generateTyped(reportId, request) {
14
+ return (0, v1_js_1.generateTypedReport)(this, reportId, request);
15
+ }
16
+ }
17
+ exports.ReportClient = ReportClient;
18
+ exports.default = ReportClient;
@@ -0,0 +1,6 @@
1
+ export class ReportClient extends ChatBotKitClient {
2
+ generate(reportId: string, request: import("./v1.js").ReportGenerateRequest): Promise<import("./v1.js").ReportGenerateResponse>;
3
+ generateTyped<T extends import("./v1.js").ReportId>(reportId: T, request: import("./v1.js").ReportInputTypes[T]): Promise<import("./v1.js").ReportOutputTypes[T]>;
4
+ }
5
+ export default ReportClient;
6
+ import { ChatBotKitClient } from '../client.cjs';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.generateReport = generateReport;
4
+ exports.generateTypedReport = generateTypedReport;
5
+ async function generateReport(client, reportId, request) {
6
+ const url = `/api/v1/report/${reportId}/generate`;
7
+ const response = await client.clientFetch(url, {
8
+ record: {
9
+ ...request,
10
+ },
11
+ });
12
+ return response;
13
+ }
14
+ async function generateTypedReport(client, reportId, request) {
15
+ const url = `/api/v1/report/${reportId}/generate`;
16
+ const response = await client.clientFetch(url, {
17
+ record: {
18
+ ...request,
19
+ },
20
+ });
21
+ return response;
22
+ }
@@ -0,0 +1,9 @@
1
+ export function generateReport(client: ChatBotKitClient, reportId: string, request: ReportGenerateRequest): Promise<ReportGenerateResponse>;
2
+ export function generateTypedReport<T extends ReportId>(client: ChatBotKitClient, reportId: T, request: ReportInputTypes[T]): Promise<ReportOutputTypes[T]>;
3
+ export type ChatBotKitClient = import("../client.js").ChatBotKitClient;
4
+ export type ReportGenerateRequestBody = import("../types/api/v1.js").operations["generateReport"]["requestBody"]["content"]["application/json"];
5
+ export type ReportGenerateRequest = ReportGenerateRequestBody;
6
+ export type ReportGenerateResponse = import("../types/api/v1.js").operations["generateReport"]["responses"]["200"]["content"]["application/json"];
7
+ export type ReportId = import("../types/report.js").ReportId;
8
+ export type ReportInputTypes = import("../types/report.js").ReportInputTypes;
9
+ export type ReportOutputTypes = import("../types/report.js").ReportOutputTypes;