@chatbotkit/sdk 1.19.0 → 1.21.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 (78) hide show
  1. package/dist/cjs/channel/index.cjs +18 -0
  2. package/dist/cjs/channel/index.d.ts +7 -0
  3. package/dist/cjs/channel/v1.cjs +22 -0
  4. package/dist/cjs/channel/v1.d.ts +12 -0
  5. package/dist/cjs/client.cjs +64 -51
  6. package/dist/cjs/client.d.ts +1 -13
  7. package/dist/cjs/contact/index.cjs +5 -3
  8. package/dist/cjs/contact/index.d.ts +3 -1
  9. package/dist/cjs/contact/space/index.cjs +15 -0
  10. package/dist/cjs/contact/space/index.d.ts +6 -0
  11. package/dist/cjs/contact/space/v1.cjs +8 -0
  12. package/dist/cjs/contact/space/v1.d.ts +11 -0
  13. package/dist/cjs/conversation/index.cjs +1 -1
  14. package/dist/cjs/conversation/v1.cjs +3 -3
  15. package/dist/cjs/conversation/v1.d.ts +37 -67
  16. package/dist/cjs/index.cjs +56 -47
  17. package/dist/cjs/index.d.ts +8 -2
  18. package/dist/cjs/param.cjs +1 -1
  19. package/dist/cjs/platform/content/doc/index.cjs +21 -0
  20. package/dist/cjs/platform/content/doc/index.d.ts +8 -0
  21. package/dist/cjs/platform/content/doc/v1.cjs +26 -0
  22. package/dist/cjs/platform/content/doc/v1.d.ts +19 -0
  23. package/dist/cjs/platform/content/index.cjs +15 -0
  24. package/dist/cjs/platform/content/index.d.ts +8 -0
  25. package/dist/cjs/platform/content/manual/index.cjs +21 -0
  26. package/dist/cjs/platform/content/manual/index.d.ts +8 -0
  27. package/dist/cjs/platform/content/manual/v1.cjs +26 -0
  28. package/dist/cjs/platform/content/manual/v1.d.ts +19 -0
  29. package/dist/cjs/platform/index.cjs +8 -6
  30. package/dist/cjs/platform/index.d.ts +2 -0
  31. package/dist/cjs/portal/index.cjs +27 -0
  32. package/dist/cjs/portal/index.d.ts +10 -0
  33. package/dist/cjs/portal/v1.cjs +42 -0
  34. package/dist/cjs/portal/v1.d.ts +28 -0
  35. package/dist/cjs/space/index.cjs +27 -0
  36. package/dist/cjs/space/index.d.ts +10 -0
  37. package/dist/cjs/space/v1.cjs +42 -0
  38. package/dist/cjs/space/v1.d.ts +28 -0
  39. package/dist/esm/channel/index.d.ts +7 -0
  40. package/dist/esm/channel/index.js +14 -0
  41. package/dist/esm/channel/v1.d.ts +12 -0
  42. package/dist/esm/channel/v1.js +18 -0
  43. package/dist/esm/client.d.ts +1 -13
  44. package/dist/esm/client.js +48 -32
  45. package/dist/esm/contact/index.d.ts +3 -1
  46. package/dist/esm/contact/index.js +3 -1
  47. package/dist/esm/contact/space/index.d.ts +6 -0
  48. package/dist/esm/contact/space/index.js +11 -0
  49. package/dist/esm/contact/space/v1.d.ts +11 -0
  50. package/dist/esm/contact/space/v1.js +5 -0
  51. package/dist/esm/conversation/index.js +1 -1
  52. package/dist/esm/conversation/v1.d.ts +37 -67
  53. package/dist/esm/conversation/v1.js +3 -3
  54. package/dist/esm/index.d.ts +8 -2
  55. package/dist/esm/index.js +10 -1
  56. package/dist/esm/platform/content/doc/index.d.ts +8 -0
  57. package/dist/esm/platform/content/doc/index.js +17 -0
  58. package/dist/esm/platform/content/doc/v1.d.ts +19 -0
  59. package/dist/esm/platform/content/doc/v1.js +21 -0
  60. package/dist/esm/platform/content/index.d.ts +8 -0
  61. package/dist/esm/platform/content/index.js +11 -0
  62. package/dist/esm/platform/content/manual/index.d.ts +8 -0
  63. package/dist/esm/platform/content/manual/index.js +17 -0
  64. package/dist/esm/platform/content/manual/v1.d.ts +19 -0
  65. package/dist/esm/platform/content/manual/v1.js +21 -0
  66. package/dist/esm/platform/index.d.ts +2 -0
  67. package/dist/esm/platform/index.js +2 -0
  68. package/dist/esm/portal/index.d.ts +10 -0
  69. package/dist/esm/portal/index.js +23 -0
  70. package/dist/esm/portal/v1.d.ts +28 -0
  71. package/dist/esm/portal/v1.js +35 -0
  72. package/dist/esm/space/index.d.ts +10 -0
  73. package/dist/esm/space/index.js +23 -0
  74. package/dist/esm/space/v1.d.ts +28 -0
  75. package/dist/esm/space/v1.js +35 -0
  76. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  77. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  78. package/package.json +331 -1
@@ -1,62 +1,71 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChatBotKit = exports.UsageClient = exports.GraphqlClient = 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.BotClient = exports.BlueprintClient = void 0;
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.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");
7
7
  Object.defineProperty(exports, "BotClient", { enumerable: true, get: function () { return index_js_2.BotClient; } });
8
+ const index_js_3 = require("./channel/index.cjs");
9
+ Object.defineProperty(exports, "ChannelClient", { enumerable: true, get: function () { return index_js_3.ChannelClient; } });
8
10
  const client_js_1 = require("./client.cjs");
9
- const index_js_3 = require("./contact/index.cjs");
10
- Object.defineProperty(exports, "ContactClient", { enumerable: true, get: function () { return index_js_3.ContactClient; } });
11
- const index_js_4 = require("./conversation/index.cjs");
12
- Object.defineProperty(exports, "ConversationClient", { enumerable: true, get: function () { return index_js_4.ConversationClient; } });
13
- const index_js_5 = require("./dataset/index.cjs");
14
- Object.defineProperty(exports, "DatasetClient", { enumerable: true, get: function () { return index_js_5.DatasetClient; } });
15
- const index_js_6 = require("./file/index.cjs");
16
- Object.defineProperty(exports, "FileClient", { enumerable: true, get: function () { return index_js_6.FileClient; } });
17
- const index_js_7 = require("./graphql/index.cjs");
18
- Object.defineProperty(exports, "GraphqlClient", { enumerable: true, get: function () { return index_js_7.GraphqlClient; } });
19
- const index_js_8 = require("./integration/index.cjs");
20
- Object.defineProperty(exports, "IntegrationClient", { enumerable: true, get: function () { return index_js_8.IntegrationClient; } });
21
- const index_js_9 = require("./magic/index.cjs");
22
- Object.defineProperty(exports, "MagicClient", { enumerable: true, get: function () { return index_js_9.MagicClient; } });
23
- const index_js_10 = require("./memory/index.cjs");
24
- Object.defineProperty(exports, "MemoryClient", { enumerable: true, get: function () { return index_js_10.MemoryClient; } });
25
- const index_js_11 = require("./partner/index.cjs");
26
- Object.defineProperty(exports, "PartnerClient", { enumerable: true, get: function () { return index_js_11.PartnerClient; } });
27
- const index_js_12 = require("./platform/index.cjs");
28
- const index_js_13 = require("./policy/index.cjs");
29
- Object.defineProperty(exports, "PolicyClient", { enumerable: true, get: function () { return index_js_13.PolicyClient; } });
30
- const index_js_14 = require("./secret/index.cjs");
31
- Object.defineProperty(exports, "SecretClient", { enumerable: true, get: function () { return index_js_14.SecretClient; } });
32
- const index_js_15 = require("./skillset/index.cjs");
33
- Object.defineProperty(exports, "SkillsetClient", { enumerable: true, get: function () { return index_js_15.SkillsetClient; } });
34
- const index_js_16 = require("./task/index.cjs");
35
- const index_js_17 = require("./team/index.cjs");
36
- Object.defineProperty(exports, "TeamClient", { enumerable: true, get: function () { return index_js_17.TeamClient; } });
37
- const index_js_18 = require("./usage/index.cjs");
38
- Object.defineProperty(exports, "UsageClient", { enumerable: true, get: function () { return index_js_18.UsageClient; } });
11
+ const index_js_4 = require("./contact/index.cjs");
12
+ Object.defineProperty(exports, "ContactClient", { enumerable: true, get: function () { return index_js_4.ContactClient; } });
13
+ const index_js_5 = require("./conversation/index.cjs");
14
+ Object.defineProperty(exports, "ConversationClient", { enumerable: true, get: function () { return index_js_5.ConversationClient; } });
15
+ const index_js_6 = require("./dataset/index.cjs");
16
+ Object.defineProperty(exports, "DatasetClient", { enumerable: true, get: function () { return index_js_6.DatasetClient; } });
17
+ const index_js_7 = require("./file/index.cjs");
18
+ Object.defineProperty(exports, "FileClient", { enumerable: true, get: function () { return index_js_7.FileClient; } });
19
+ const index_js_8 = require("./graphql/index.cjs");
20
+ Object.defineProperty(exports, "GraphqlClient", { enumerable: true, get: function () { return index_js_8.GraphqlClient; } });
21
+ const index_js_9 = require("./integration/index.cjs");
22
+ Object.defineProperty(exports, "IntegrationClient", { enumerable: true, get: function () { return index_js_9.IntegrationClient; } });
23
+ const index_js_10 = require("./magic/index.cjs");
24
+ Object.defineProperty(exports, "MagicClient", { enumerable: true, get: function () { return index_js_10.MagicClient; } });
25
+ const index_js_11 = require("./memory/index.cjs");
26
+ Object.defineProperty(exports, "MemoryClient", { enumerable: true, get: function () { return index_js_11.MemoryClient; } });
27
+ const index_js_12 = require("./partner/index.cjs");
28
+ Object.defineProperty(exports, "PartnerClient", { enumerable: true, get: function () { return index_js_12.PartnerClient; } });
29
+ const index_js_13 = require("./platform/index.cjs");
30
+ const index_js_14 = require("./policy/index.cjs");
31
+ Object.defineProperty(exports, "PolicyClient", { enumerable: true, get: function () { return index_js_14.PolicyClient; } });
32
+ const index_js_15 = require("./portal/index.cjs");
33
+ Object.defineProperty(exports, "PortalClient", { enumerable: true, get: function () { return index_js_15.PortalClient; } });
34
+ const index_js_16 = require("./secret/index.cjs");
35
+ Object.defineProperty(exports, "SecretClient", { enumerable: true, get: function () { return index_js_16.SecretClient; } });
36
+ const index_js_17 = require("./skillset/index.cjs");
37
+ Object.defineProperty(exports, "SkillsetClient", { enumerable: true, get: function () { return index_js_17.SkillsetClient; } });
38
+ const index_js_18 = require("./space/index.cjs");
39
+ Object.defineProperty(exports, "SpaceClient", { enumerable: true, get: function () { return index_js_18.SpaceClient; } });
40
+ const index_js_19 = require("./task/index.cjs");
41
+ const index_js_20 = require("./team/index.cjs");
42
+ Object.defineProperty(exports, "TeamClient", { enumerable: true, get: function () { return index_js_20.TeamClient; } });
43
+ const index_js_21 = require("./usage/index.cjs");
44
+ Object.defineProperty(exports, "UsageClient", { enumerable: true, get: function () { return index_js_21.UsageClient; } });
39
45
  class ChatBotKit extends client_js_1.ChatBotKitClient {
40
46
  constructor(options) {
41
47
  super(options);
42
- this.platform = new index_js_12.PlatformClient(options);
48
+ this.platform = new index_js_13.PlatformClient(options);
43
49
  this.blueprint = new index_js_1.BlueprintClient(options);
44
50
  this.bot = new index_js_2.BotClient(options);
45
- this.file = new index_js_6.FileClient(options);
46
- this.magic = new index_js_9.MagicClient(options);
47
- this.partner = new index_js_11.PartnerClient(options);
48
- this.dataset = new index_js_5.DatasetClient(options);
49
- this.skillset = new index_js_15.SkillsetClient(options);
50
- this.integration = new index_js_8.IntegrationClient(options);
51
- this.team = new index_js_17.TeamClient(options);
52
- this.contact = new index_js_3.ContactClient(options);
53
- this.task = new index_js_16.TaskClient(options);
54
- this.conversation = new index_js_4.ConversationClient(options);
55
- this.memory = new index_js_10.MemoryClient(options);
56
- this.policy = new index_js_13.PolicyClient(options);
57
- this.usage = new index_js_18.UsageClient(options);
58
- this.secrets = new index_js_14.SecretClient(options);
59
- this.graphql = new index_js_7.GraphqlClient(options);
51
+ this.channel = new index_js_3.ChannelClient(options);
52
+ this.file = new index_js_7.FileClient(options);
53
+ this.secret = new index_js_16.SecretClient(options);
54
+ this.magic = new index_js_10.MagicClient(options);
55
+ this.partner = new index_js_12.PartnerClient(options);
56
+ this.dataset = new index_js_6.DatasetClient(options);
57
+ this.skillset = new index_js_17.SkillsetClient(options);
58
+ this.integration = new index_js_9.IntegrationClient(options);
59
+ this.team = new index_js_20.TeamClient(options);
60
+ this.contact = new index_js_4.ContactClient(options);
61
+ this.space = new index_js_18.SpaceClient(options);
62
+ this.task = new index_js_19.TaskClient(options);
63
+ this.conversation = new index_js_5.ConversationClient(options);
64
+ this.memory = new index_js_11.MemoryClient(options);
65
+ this.policy = new index_js_14.PolicyClient(options);
66
+ this.portal = new index_js_15.PortalClient(options);
67
+ this.usage = new index_js_21.UsageClient(options);
68
+ this.graphql = new index_js_8.GraphqlClient(options);
60
69
  }
61
70
  }
62
71
  exports.ChatBotKit = ChatBotKit;
@@ -2,7 +2,9 @@ export class ChatBotKit extends ChatBotKitClient {
2
2
  platform: PlatformClient;
3
3
  blueprint: BlueprintClient;
4
4
  bot: BotClient;
5
+ channel: ChannelClient;
5
6
  file: FileClient;
7
+ secret: SecretClient;
6
8
  magic: MagicClient;
7
9
  partner: PartnerClient;
8
10
  dataset: DatasetClient;
@@ -10,17 +12,19 @@ export class ChatBotKit extends ChatBotKitClient {
10
12
  integration: IntegrationClient;
11
13
  team: TeamClient;
12
14
  contact: ContactClient;
15
+ space: SpaceClient;
13
16
  task: TaskClient;
14
17
  conversation: ConversationClient;
15
18
  memory: MemoryClient;
16
19
  policy: PolicyClient;
20
+ portal: PortalClient;
17
21
  usage: UsageClient;
18
- secrets: SecretClient;
19
22
  graphql: GraphqlClient;
20
23
  }
21
24
  export default ChatBotKit;
22
25
  import { BlueprintClient } from './blueprint/index.cjs';
23
26
  import { BotClient } from './bot/index.cjs';
27
+ import { ChannelClient } from './channel/index.cjs';
24
28
  import { FileClient } from './file/index.cjs';
25
29
  import { MagicClient } from './magic/index.cjs';
26
30
  import { PartnerClient } from './partner/index.cjs';
@@ -33,9 +37,11 @@ import { SecretClient } from './secret/index.cjs';
33
37
  import { TeamClient } from './team/index.cjs';
34
38
  import { MemoryClient } from './memory/index.cjs';
35
39
  import { PolicyClient } from './policy/index.cjs';
40
+ import { PortalClient } from './portal/index.cjs';
36
41
  import { GraphqlClient } from './graphql/index.cjs';
42
+ import { SpaceClient } from './space/index.cjs';
37
43
  import { UsageClient } from './usage/index.cjs';
38
44
  import { ChatBotKitClient } from './client.cjs';
39
45
  import { PlatformClient } from './platform/index.cjs';
40
46
  import { TaskClient } from './task/index.cjs';
41
- export { BlueprintClient, BotClient, FileClient, MagicClient, PartnerClient, DatasetClient, SkillsetClient, IntegrationClient, ConversationClient, ContactClient, SecretClient, TeamClient, MemoryClient, PolicyClient, GraphqlClient, UsageClient };
47
+ export { BlueprintClient, BotClient, ChannelClient, FileClient, MagicClient, PartnerClient, DatasetClient, SkillsetClient, IntegrationClient, ConversationClient, ContactClient, SecretClient, TeamClient, MemoryClient, PolicyClient, PortalClient, GraphqlClient, SpaceClient, UsageClient };
@@ -5,7 +5,7 @@ function buildParamString(name, params, defaultParams) {
5
5
  const parts = [];
6
6
  for (const [name, value] of Object.entries(params || {})) {
7
7
  if (value) {
8
- if ((defaultParams === null || defaultParams === void 0 ? void 0 : defaultParams[name]) != value) {
8
+ if (defaultParams?.[name] != value) {
9
9
  parts.push(`${name}=${value}`);
10
10
  }
11
11
  }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlatformContentDocClient = void 0;
4
+ const client_js_1 = require("../../../client.cjs");
5
+ const v1_js_1 = require("./v1.cjs");
6
+ class PlatformContentDocClient extends client_js_1.ChatBotKitClient {
7
+ constructor(options) {
8
+ super(options);
9
+ }
10
+ list(request) {
11
+ return (0, v1_js_1.listPlatformContentDocs)(this, request);
12
+ }
13
+ search(request) {
14
+ return (0, v1_js_1.searchPlatformContentDocs)(this, request);
15
+ }
16
+ fetch(docId) {
17
+ return (0, v1_js_1.fetchPlatformContentDoc)(this, docId);
18
+ }
19
+ }
20
+ exports.PlatformContentDocClient = PlatformContentDocClient;
21
+ exports.default = PlatformContentDocClient;
@@ -0,0 +1,8 @@
1
+ export class PlatformContentDocClient extends ChatBotKitClient {
2
+ list(request?: import("./v1.js").PlatformContentDocListRequest): ResponsePromise<import("./v1.js").PlatformContentDocListResponse, import("./v1.js").PlatformContentDocListStreamType>;
3
+ search(request: import("./v1.js").PlatformContentDocSearchRequest): Promise<import("./v1.js").PlatformContentDocSearchResponse>;
4
+ fetch(docId: string): ResponsePromise<import("./v1.js").PlatformContentDocFetchResponse, never>;
5
+ }
6
+ export default PlatformContentDocClient;
7
+ export type ResponsePromise<T, U> = import("../../../client.js").ResponsePromise<T, U>;
8
+ import { ChatBotKitClient } from '../../../client.cjs';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listPlatformContentDocs = listPlatformContentDocs;
4
+ exports.searchPlatformContentDocs = searchPlatformContentDocs;
5
+ exports.fetchPlatformContentDoc = fetchPlatformContentDoc;
6
+ function listPlatformContentDocs(client, request) {
7
+ let url = `/api/v1/platform/content/doc/list`;
8
+ const response = client.clientFetch(url, { query: request });
9
+ return response;
10
+ }
11
+ async function searchPlatformContentDocs(client, request) {
12
+ const url = `/api/v1/platform/content/doc/search`;
13
+ const response = await client.clientFetch(url, {
14
+ record: {
15
+ ...request,
16
+ },
17
+ });
18
+ return response;
19
+ }
20
+ function fetchPlatformContentDoc(client, docId) {
21
+ const url = `/api/v1/platform/content/doc/${docId}/fetch`;
22
+ const response = client.clientFetch(url, {
23
+ endpoint: '/api/v1/platform/content/doc/{docId}/fetch',
24
+ });
25
+ return response;
26
+ }
@@ -0,0 +1,19 @@
1
+ export function listPlatformContentDocs(client: ChatBotKitClient, request?: PlatformContentDocListRequest): ResponsePromise<PlatformContentDocListResponse, PlatformContentDocListStreamType>;
2
+ export function searchPlatformContentDocs(client: ChatBotKitClient, request: PlatformContentDocSearchRequest): Promise<PlatformContentDocSearchResponse>;
3
+ export function fetchPlatformContentDoc(client: ChatBotKitClient, docId: string): ResponsePromise<PlatformContentDocFetchResponse, never>;
4
+ export type ChatBotKitClient = import("../../../client.js").ChatBotKitClient;
5
+ export type ResponsePromise<T, U> = import("../../../client.js").ResponsePromise<T, U>;
6
+ export type PlatformContentDocListRequest = {
7
+ cursor?: string;
8
+ order?: "desc" | "asc";
9
+ take?: number;
10
+ meta?: Record<string, string>;
11
+ };
12
+ export type PlatformContentDocListResponse = import("../../../types/api/v1.js").operations["listPlatformContentDocs"]["responses"]["200"]["content"]["application/json"];
13
+ export type PlatformContentDocListItem = PlatformContentDocListResponse["items"][number];
14
+ export type PlatformContentDocListStreamType = import("../../../types/api/v1.js").operations["listPlatformContentDocs"]["responses"]["200"]["content"]["application/jsonl"];
15
+ export type PlatformContentDocSearchRequestBody = import("../../../types/api/v1.js").operations["searchPlatformContentDocs"]["requestBody"]["content"]["application/json"];
16
+ export type PlatformContentDocSearchRequest = PlatformContentDocSearchRequestBody;
17
+ export type PlatformContentDocSearchResponseBody = import("../../../types/api/v1.js").operations["searchPlatformContentDocs"]["responses"]["200"]["content"]["application/json"];
18
+ export type PlatformContentDocSearchResponse = PlatformContentDocSearchResponseBody;
19
+ export type PlatformContentDocFetchResponse = import("../../../types/api/v1.js").operations["fetchPlatformContentDoc"]["responses"]["200"]["content"]["application/json"];
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlatformContentClient = void 0;
4
+ const client_js_1 = require("../../client.cjs");
5
+ const index_js_1 = require("./doc/index.cjs");
6
+ const index_js_2 = require("./manual/index.cjs");
7
+ class PlatformContentClient extends client_js_1.ChatBotKitClient {
8
+ constructor(options) {
9
+ super(options);
10
+ this.doc = new index_js_1.PlatformContentDocClient(options);
11
+ this.manual = new index_js_2.PlatformContentManualClient(options);
12
+ }
13
+ }
14
+ exports.PlatformContentClient = PlatformContentClient;
15
+ exports.default = PlatformContentClient;
@@ -0,0 +1,8 @@
1
+ export class PlatformContentClient extends ChatBotKitClient {
2
+ doc: PlatformContentDocClient;
3
+ manual: PlatformContentManualClient;
4
+ }
5
+ export default PlatformContentClient;
6
+ import { ChatBotKitClient } from '../../client.cjs';
7
+ import { PlatformContentDocClient } from './doc/index.cjs';
8
+ import { PlatformContentManualClient } from './manual/index.cjs';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlatformContentManualClient = void 0;
4
+ const client_js_1 = require("../../../client.cjs");
5
+ const v1_js_1 = require("./v1.cjs");
6
+ class PlatformContentManualClient extends client_js_1.ChatBotKitClient {
7
+ constructor(options) {
8
+ super(options);
9
+ }
10
+ list(request) {
11
+ return (0, v1_js_1.listPlatformContentManuals)(this, request);
12
+ }
13
+ search(request) {
14
+ return (0, v1_js_1.searchPlatformContentManuals)(this, request);
15
+ }
16
+ fetch(manualId) {
17
+ return (0, v1_js_1.fetchPlatformContentManual)(this, manualId);
18
+ }
19
+ }
20
+ exports.PlatformContentManualClient = PlatformContentManualClient;
21
+ exports.default = PlatformContentManualClient;
@@ -0,0 +1,8 @@
1
+ export class PlatformContentManualClient extends ChatBotKitClient {
2
+ list(request?: import("./v1.js").PlatformContentManualListRequest): ResponsePromise<import("./v1.js").PlatformContentManualListResponse, import("./v1.js").PlatformContentManualListStreamType>;
3
+ search(request: import("./v1.js").PlatformContentManualSearchRequest): Promise<import("./v1.js").PlatformContentManualSearchResponse>;
4
+ fetch(manualId: string): ResponsePromise<import("./v1.js").PlatformContentManualFetchResponse, never>;
5
+ }
6
+ export default PlatformContentManualClient;
7
+ export type ResponsePromise<T, U> = import("../../../client.js").ResponsePromise<T, U>;
8
+ import { ChatBotKitClient } from '../../../client.cjs';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listPlatformContentManuals = listPlatformContentManuals;
4
+ exports.searchPlatformContentManuals = searchPlatformContentManuals;
5
+ exports.fetchPlatformContentManual = fetchPlatformContentManual;
6
+ function listPlatformContentManuals(client, request) {
7
+ let url = `/api/v1/platform/content/manual/list`;
8
+ const response = client.clientFetch(url, { query: request });
9
+ return response;
10
+ }
11
+ async function searchPlatformContentManuals(client, request) {
12
+ const url = `/api/v1/platform/content/manual/search`;
13
+ const response = await client.clientFetch(url, {
14
+ record: {
15
+ ...request,
16
+ },
17
+ });
18
+ return response;
19
+ }
20
+ function fetchPlatformContentManual(client, manualId) {
21
+ const url = `/api/v1/platform/content/manual/${manualId}/fetch`;
22
+ const response = client.clientFetch(url, {
23
+ endpoint: '/api/v1/platform/content/manual/{manualId}/fetch',
24
+ });
25
+ return response;
26
+ }
@@ -0,0 +1,19 @@
1
+ export function listPlatformContentManuals(client: ChatBotKitClient, request?: PlatformContentManualListRequest): ResponsePromise<PlatformContentManualListResponse, PlatformContentManualListStreamType>;
2
+ export function searchPlatformContentManuals(client: ChatBotKitClient, request: PlatformContentManualSearchRequest): Promise<PlatformContentManualSearchResponse>;
3
+ export function fetchPlatformContentManual(client: ChatBotKitClient, manualId: string): ResponsePromise<PlatformContentManualFetchResponse, never>;
4
+ export type ChatBotKitClient = import("../../../client.js").ChatBotKitClient;
5
+ export type ResponsePromise<T, U> = import("../../../client.js").ResponsePromise<T, U>;
6
+ export type PlatformContentManualListRequest = {
7
+ cursor?: string;
8
+ order?: "desc" | "asc";
9
+ take?: number;
10
+ meta?: Record<string, string>;
11
+ };
12
+ export type PlatformContentManualListResponse = import("../../../types/api/v1.js").operations["listPlatformContentManuals"]["responses"]["200"]["content"]["application/json"];
13
+ export type PlatformContentManualListItem = PlatformContentManualListResponse["items"][number];
14
+ export type PlatformContentManualListStreamType = import("../../../types/api/v1.js").operations["listPlatformContentManuals"]["responses"]["200"]["content"]["application/jsonl"];
15
+ export type PlatformContentManualSearchRequestBody = import("../../../types/api/v1.js").operations["searchPlatformContentManuals"]["requestBody"]["content"]["application/json"];
16
+ export type PlatformContentManualSearchRequest = PlatformContentManualSearchRequestBody;
17
+ export type PlatformContentManualSearchResponseBody = import("../../../types/api/v1.js").operations["searchPlatformContentManuals"]["responses"]["200"]["content"]["application/json"];
18
+ export type PlatformContentManualSearchResponse = PlatformContentManualSearchResponseBody;
19
+ export type PlatformContentManualFetchResponse = import("../../../types/api/v1.js").operations["fetchPlatformContentManual"]["responses"]["200"]["content"]["application/json"];
@@ -4,17 +4,19 @@ exports.PlatformClient = void 0;
4
4
  const client_js_1 = require("../client.cjs");
5
5
  const index_js_1 = require("./ability/index.cjs");
6
6
  const index_js_2 = require("./action/index.cjs");
7
- const index_js_3 = require("./example/index.cjs");
8
- const index_js_4 = require("./model/index.cjs");
9
- const index_js_5 = require("./secret/index.cjs");
7
+ const index_js_3 = require("./content/index.cjs");
8
+ const index_js_4 = require("./example/index.cjs");
9
+ const index_js_5 = require("./model/index.cjs");
10
+ const index_js_6 = require("./secret/index.cjs");
10
11
  class PlatformClient extends client_js_1.ChatBotKitClient {
11
12
  constructor(options) {
12
13
  super(options);
13
- this.model = new index_js_4.PlatformModelClient(options);
14
+ this.model = new index_js_5.PlatformModelClient(options);
14
15
  this.ability = new index_js_1.PlatformAbilityClient(options);
15
16
  this.action = new index_js_2.PlatformActionClient(options);
16
- this.secrets = new index_js_5.PlatformSecretClient(options);
17
- this.example = new index_js_3.PlatformExampleClient(options);
17
+ this.content = new index_js_3.PlatformContentClient(options);
18
+ this.secrets = new index_js_6.PlatformSecretClient(options);
19
+ this.example = new index_js_4.PlatformExampleClient(options);
18
20
  }
19
21
  }
20
22
  exports.PlatformClient = PlatformClient;
@@ -2,6 +2,7 @@ export class PlatformClient extends ChatBotKitClient {
2
2
  model: PlatformModelClient;
3
3
  ability: PlatformAbilityClient;
4
4
  action: PlatformActionClient;
5
+ content: PlatformContentClient;
5
6
  secrets: PlatformSecretClient;
6
7
  example: PlatformExampleClient;
7
8
  }
@@ -10,5 +11,6 @@ import { ChatBotKitClient } from '../client.cjs';
10
11
  import { PlatformModelClient } from './model/index.cjs';
11
12
  import { PlatformAbilityClient } from './ability/index.cjs';
12
13
  import { PlatformActionClient } from './action/index.cjs';
14
+ import { PlatformContentClient } from './content/index.cjs';
13
15
  import { PlatformSecretClient } from './secret/index.cjs';
14
16
  import { PlatformExampleClient } from './example/index.cjs';
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PortalClient = void 0;
4
+ const client_js_1 = require("../client.cjs");
5
+ const v1_js_1 = require("./v1.cjs");
6
+ class PortalClient extends client_js_1.ChatBotKitClient {
7
+ constructor(options) {
8
+ super(options);
9
+ }
10
+ list(request) {
11
+ return (0, v1_js_1.listPortals)(this, request);
12
+ }
13
+ fetch(portalId) {
14
+ return (0, v1_js_1.fetchPortal)(this, portalId);
15
+ }
16
+ create(request) {
17
+ return (0, v1_js_1.createPortal)(this, request);
18
+ }
19
+ update(portalId, request) {
20
+ return (0, v1_js_1.updatePortal)(this, portalId, request);
21
+ }
22
+ delete(portalId) {
23
+ return (0, v1_js_1.deletePortal)(this, portalId);
24
+ }
25
+ }
26
+ exports.PortalClient = PortalClient;
27
+ exports.default = PortalClient;
@@ -0,0 +1,10 @@
1
+ export class PortalClient extends ChatBotKitClient {
2
+ list(request?: import("./v1.js").PortalListRequest): ResponsePromise<import("./v1.js").PortalListResponse, import("./v1.js").PortalListStreamType>;
3
+ fetch(portalId: string): ResponsePromise<import("./v1.js").PortalFetchResponse, never>;
4
+ create(request: import("./v1.js").PortalCreateRequest): Promise<import("./v1.js").PortalCreateResponse>;
5
+ update(portalId: string, request: import("./v1.js").PortalUpdateRequest): Promise<import("./v1.js").PortalUpdateResponse>;
6
+ delete(portalId: string): Promise<import("./v1.js").PortalDeleteResponse>;
7
+ }
8
+ export default PortalClient;
9
+ export type ResponsePromise<T, U> = import("../client.js").ResponsePromise<T, U>;
10
+ import { ChatBotKitClient } from '../client.cjs';
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listPortals = listPortals;
4
+ exports.fetchPortal = fetchPortal;
5
+ exports.createPortal = createPortal;
6
+ exports.updatePortal = updatePortal;
7
+ exports.deletePortal = deletePortal;
8
+ function listPortals(client, request) {
9
+ let url = `/api/v1/portal/list`;
10
+ const response = client.clientFetch(url, { query: request });
11
+ return response;
12
+ }
13
+ function fetchPortal(client, portalId) {
14
+ const url = `/api/v1/portal/${portalId}/fetch`;
15
+ const response = client.clientFetch(url);
16
+ return response;
17
+ }
18
+ async function createPortal(client, request) {
19
+ const url = `/api/v1/portal/create`;
20
+ const response = await client.clientFetch(url, {
21
+ record: {
22
+ ...request,
23
+ },
24
+ });
25
+ return response;
26
+ }
27
+ async function updatePortal(client, portalId, request) {
28
+ const url = `/api/v1/portal/${portalId}/update`;
29
+ const response = await client.clientFetch(url, {
30
+ record: {
31
+ ...request,
32
+ },
33
+ });
34
+ return response;
35
+ }
36
+ async function deletePortal(client, portalId) {
37
+ const url = `/api/v1/portal/${portalId}/delete`;
38
+ const response = await client.clientFetch(url, {
39
+ record: {},
40
+ });
41
+ return response;
42
+ }
@@ -0,0 +1,28 @@
1
+ export function listPortals(client: ChatBotKitClient, request?: PortalListRequest): ResponsePromise<PortalListResponse, PortalListStreamType>;
2
+ export function fetchPortal(client: ChatBotKitClient, portalId: string): ResponsePromise<PortalFetchResponse, never>;
3
+ export function createPortal(client: ChatBotKitClient, request: PortalCreateRequest): Promise<PortalCreateResponse>;
4
+ export function updatePortal(client: ChatBotKitClient, portalId: string, request: PortalUpdateRequest): Promise<PortalUpdateResponse>;
5
+ export function deletePortal(client: ChatBotKitClient, portalId: string): Promise<PortalDeleteResponse>;
6
+ export type ChatBotKitClient = import("../client.js").ChatBotKitClient;
7
+ export type ResponsePromise<T, U> = import("../client.js").ResponsePromise<T, U>;
8
+ export type PortalListRequest = {
9
+ cursor?: string;
10
+ order?: "desc" | "asc";
11
+ take?: number;
12
+ meta?: Record<string, string>;
13
+ };
14
+ export type PortalListResponse = import("../types/api/v1.js").operations["listPortals"]["responses"]["200"]["content"]["application/json"];
15
+ export type PortalListStreamType = import("../types/api/v1.js").operations["listPortals"]["responses"]["200"]["content"]["application/jsonl"];
16
+ export type PortalFetchResponse = import("../types/api/v1.js").operations["fetchPortal"]["responses"]["200"]["content"]["application/json"];
17
+ export type PortalCreateRequestBody = import("../types/api/v1.js").operations["createPortal"]["requestBody"]["content"]["application/json"];
18
+ export type PortalCreateRequest = PortalCreateRequestBody;
19
+ export type PortalCreateResponseBody = import("../types/api/v1.js").operations["createPortal"]["responses"]["200"]["content"]["application/json"];
20
+ export type PortalCreateResponse = PortalCreateResponseBody;
21
+ export type PortalUpdateRequestBody = import("../types/api/v1.js").operations["updatePortal"]["requestBody"]["content"]["application/json"];
22
+ export type PortalUpdateRequest = PortalUpdateRequestBody;
23
+ export type PortalUpdateResponseBody = import("../types/api/v1.js").operations["updatePortal"]["responses"]["200"]["content"]["application/json"];
24
+ export type PortalUpdateResponse = PortalUpdateResponseBody;
25
+ export type PortalDeleteRequestBody = import("../types/api/v1.js").operations["deletePortal"]["requestBody"]["content"]["application/json"];
26
+ export type PortalDeleteRequest = PortalDeleteRequestBody;
27
+ export type PortalDeleteResponseBody = import("../types/api/v1.js").operations["deletePortal"]["responses"]["200"]["content"]["application/json"];
28
+ export type PortalDeleteResponse = PortalDeleteResponseBody;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpaceClient = void 0;
4
+ const client_js_1 = require("../client.cjs");
5
+ const v1_js_1 = require("./v1.cjs");
6
+ class SpaceClient extends client_js_1.ChatBotKitClient {
7
+ constructor(options) {
8
+ super(options);
9
+ }
10
+ list(request) {
11
+ return (0, v1_js_1.listSpaces)(this, request);
12
+ }
13
+ fetch(spaceId) {
14
+ return (0, v1_js_1.fetchSpace)(this, spaceId);
15
+ }
16
+ create(request) {
17
+ return (0, v1_js_1.createSpace)(this, request);
18
+ }
19
+ update(spaceId, request) {
20
+ return (0, v1_js_1.updateSpace)(this, spaceId, request);
21
+ }
22
+ delete(spaceId) {
23
+ return (0, v1_js_1.deleteSpace)(this, spaceId);
24
+ }
25
+ }
26
+ exports.SpaceClient = SpaceClient;
27
+ exports.default = SpaceClient;
@@ -0,0 +1,10 @@
1
+ export class SpaceClient extends ChatBotKitClient {
2
+ list(request?: import("./v1.js").SpaceListRequest): ResponsePromise<import("./v1.js").SpaceListResponse, import("./v1.js").SpaceListStreamType>;
3
+ fetch(spaceId: string): ResponsePromise<import("./v1.js").SpaceFetchResponse, never>;
4
+ create(request: import("./v1.js").SpaceCreateRequest): Promise<import("./v1.js").SpaceCreateResponse>;
5
+ update(spaceId: string, request: import("./v1.js").SpaceUpdateRequest): Promise<import("./v1.js").SpaceUpdateResponse>;
6
+ delete(spaceId: string): Promise<import("./v1.js").SpaceDeleteResponse>;
7
+ }
8
+ export default SpaceClient;
9
+ export type ResponsePromise<T, U> = import("../client.js").ResponsePromise<T, U>;
10
+ import { ChatBotKitClient } from '../client.cjs';
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listSpaces = listSpaces;
4
+ exports.fetchSpace = fetchSpace;
5
+ exports.createSpace = createSpace;
6
+ exports.updateSpace = updateSpace;
7
+ exports.deleteSpace = deleteSpace;
8
+ function listSpaces(client, request) {
9
+ let url = `/api/v1/space/list`;
10
+ const response = client.clientFetch(url, { query: request });
11
+ return response;
12
+ }
13
+ function fetchSpace(client, spaceId) {
14
+ const url = `/api/v1/space/${spaceId}/fetch`;
15
+ const response = client.clientFetch(url);
16
+ return response;
17
+ }
18
+ async function createSpace(client, request) {
19
+ const url = `/api/v1/space/create`;
20
+ const response = await client.clientFetch(url, {
21
+ record: {
22
+ ...request,
23
+ },
24
+ });
25
+ return response;
26
+ }
27
+ async function updateSpace(client, spaceId, request) {
28
+ const url = `/api/v1/space/${spaceId}/update`;
29
+ const response = await client.clientFetch(url, {
30
+ record: {
31
+ ...request,
32
+ },
33
+ });
34
+ return response;
35
+ }
36
+ async function deleteSpace(client, spaceId) {
37
+ const url = `/api/v1/space/${spaceId}/delete`;
38
+ const response = await client.clientFetch(url, {
39
+ record: {},
40
+ });
41
+ return response;
42
+ }