@chatbotkit/sdk 1.15.1 → 1.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/blueprint/index.cjs +30 -0
- package/dist/cjs/blueprint/index.d.ts +11 -0
- package/dist/cjs/blueprint/v1.cjs +51 -0
- package/dist/cjs/blueprint/v1.d.ts +49 -0
- package/dist/cjs/contact/index.d.ts +3 -3
- package/dist/cjs/contact/v1.d.ts +1 -0
- package/dist/cjs/index.cjs +36 -31
- package/dist/cjs/index.d.ts +5 -1
- package/dist/cjs/integration/discord/index.d.ts +3 -3
- package/dist/cjs/integration/discord/v1.d.ts +1 -0
- package/dist/cjs/integration/slack/index.d.ts +3 -3
- package/dist/cjs/integration/slack/v1.d.ts +1 -0
- package/dist/cjs/integration/trigger/index.d.ts +4 -4
- package/dist/cjs/integration/trigger/v1.d.ts +1 -0
- package/dist/cjs/platform/ability/index.cjs +15 -0
- package/dist/cjs/platform/ability/index.d.ts +6 -0
- package/dist/cjs/platform/ability/v1.cjs +9 -0
- package/dist/cjs/platform/ability/v1.d.ts +27 -0
- package/dist/cjs/platform/index.cjs +17 -0
- package/dist/cjs/platform/index.d.ts +10 -0
- package/dist/cjs/platform/model/index.cjs +15 -0
- package/dist/cjs/platform/model/index.d.ts +6 -0
- package/dist/cjs/platform/model/v1.cjs +9 -0
- package/dist/cjs/platform/model/v1.d.ts +27 -0
- package/dist/cjs/platform/secret/index.cjs +15 -0
- package/dist/cjs/platform/secret/index.d.ts +6 -0
- package/dist/cjs/platform/secret/v1.cjs +9 -0
- package/dist/cjs/platform/secret/v1.d.ts +27 -0
- package/dist/cjs/platform/v1.cjs +0 -0
- package/dist/cjs/platform/v1.d.ts +0 -0
- package/dist/cjs/secret/v1.d.ts +1 -0
- package/dist/cjs/skillset/ability/v1.d.ts +1 -0
- package/dist/esm/blueprint/index.d.ts +11 -0
- package/dist/esm/blueprint/index.js +26 -0
- package/dist/esm/blueprint/v1.d.ts +49 -0
- package/dist/esm/blueprint/v1.js +42 -0
- package/dist/esm/contact/v1.d.ts +1 -0
- package/dist/esm/index.d.ts +5 -1
- package/dist/esm/index.js +5 -0
- package/dist/esm/integration/discord/v1.d.ts +1 -0
- package/dist/esm/integration/slack/v1.d.ts +1 -0
- package/dist/esm/integration/trigger/v1.d.ts +1 -0
- package/dist/esm/platform/ability/index.d.ts +6 -0
- package/dist/esm/platform/ability/index.js +11 -0
- package/dist/esm/platform/ability/v1.d.ts +27 -0
- package/dist/esm/platform/ability/v1.js +5 -0
- package/dist/esm/platform/index.d.ts +10 -0
- package/dist/esm/platform/index.js +13 -0
- package/dist/esm/platform/model/index.d.ts +6 -0
- package/dist/esm/platform/model/index.js +11 -0
- package/dist/esm/platform/model/v1.d.ts +27 -0
- package/dist/esm/platform/model/v1.js +5 -0
- package/dist/esm/platform/secret/index.d.ts +6 -0
- package/dist/esm/platform/secret/index.js +11 -0
- package/dist/esm/platform/secret/v1.d.ts +27 -0
- package/dist/esm/platform/secret/v1.js +5 -0
- package/dist/esm/platform/v1.d.ts +1 -0
- package/dist/esm/platform/v1.js +1 -0
- package/dist/esm/secret/v1.d.ts +1 -0
- package/dist/esm/skillset/ability/v1.d.ts +1 -0
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +251 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlueprintClient = void 0;
|
|
4
|
+
const client_js_1 = require("../client.cjs");
|
|
5
|
+
const v1_js_1 = require("./v1.cjs");
|
|
6
|
+
class BlueprintClient extends client_js_1.ChatBotKitClient {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
}
|
|
10
|
+
list(request) {
|
|
11
|
+
return (0, v1_js_1.listBlueprints)(this, request);
|
|
12
|
+
}
|
|
13
|
+
fetch(blueprintId) {
|
|
14
|
+
return (0, v1_js_1.fetchBlueprint)(this, blueprintId);
|
|
15
|
+
}
|
|
16
|
+
create(request) {
|
|
17
|
+
return (0, v1_js_1.createBlueprint)(this, request);
|
|
18
|
+
}
|
|
19
|
+
update(blueprintId, request) {
|
|
20
|
+
return (0, v1_js_1.updateBlueprint)(this, blueprintId, request);
|
|
21
|
+
}
|
|
22
|
+
delete(blueprintId) {
|
|
23
|
+
return (0, v1_js_1.deleteBlueprint)(this, blueprintId);
|
|
24
|
+
}
|
|
25
|
+
clone(blueprintId) {
|
|
26
|
+
return (0, v1_js_1.cloneBlueprint)(this, blueprintId);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.BlueprintClient = BlueprintClient;
|
|
30
|
+
exports.default = BlueprintClient;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export class BlueprintClient extends ChatBotKitClient {
|
|
2
|
+
list(request?: import('./v1.cjs').BlueprintListRequest): ResponsePromise<import('./v1.cjs').BlueprintListResponse, import('./v1.cjs').BlueprintListStreamType>;
|
|
3
|
+
fetch(blueprintId: string): Promise<import('./v1.cjs').BlueprintFetchResponse>;
|
|
4
|
+
create(request: import('./v1.cjs').BlueprintCreateRequest): Promise<import('./v1.cjs').BlueprintCreateResponse>;
|
|
5
|
+
update(blueprintId: string, request: import('./v1.cjs').BlueprintUpdateRequest): Promise<import('./v1.cjs').BlueprintUpdateResponse>;
|
|
6
|
+
delete(blueprintId: string): Promise<import('./v1.cjs').BlueprintDeleteResponse>;
|
|
7
|
+
clone(blueprintId: string): Promise<import('./v1.cjs').BlueprintCloneResponse>;
|
|
8
|
+
}
|
|
9
|
+
export default BlueprintClient;
|
|
10
|
+
export type ResponsePromise<T, U> = import('../client.cjs').ResponsePromise<T, U>;
|
|
11
|
+
import { ChatBotKitClient } from '../client.cjs';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cloneBlueprint = exports.deleteBlueprint = exports.updateBlueprint = exports.createBlueprint = exports.fetchBlueprint = exports.listBlueprints = void 0;
|
|
4
|
+
function listBlueprints(client, request) {
|
|
5
|
+
let url = `/api/v1/blueprint/list`;
|
|
6
|
+
const response = client.clientFetch(url, { query: request });
|
|
7
|
+
return response;
|
|
8
|
+
}
|
|
9
|
+
exports.listBlueprints = listBlueprints;
|
|
10
|
+
async function fetchBlueprint(client, blueprintId) {
|
|
11
|
+
const url = `/api/v1/blueprint/${blueprintId}/fetch`;
|
|
12
|
+
const response = await client.clientFetch(url);
|
|
13
|
+
return response;
|
|
14
|
+
}
|
|
15
|
+
exports.fetchBlueprint = fetchBlueprint;
|
|
16
|
+
async function createBlueprint(client, request) {
|
|
17
|
+
const url = `/api/v1/blueprint/create`;
|
|
18
|
+
const response = await client.clientFetch(url, {
|
|
19
|
+
record: {
|
|
20
|
+
...request,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
return response;
|
|
24
|
+
}
|
|
25
|
+
exports.createBlueprint = createBlueprint;
|
|
26
|
+
async function updateBlueprint(client, blueprintId, request) {
|
|
27
|
+
const url = `/api/v1/blueprint/${blueprintId}/update`;
|
|
28
|
+
const response = await client.clientFetch(url, {
|
|
29
|
+
record: {
|
|
30
|
+
...request,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
return response;
|
|
34
|
+
}
|
|
35
|
+
exports.updateBlueprint = updateBlueprint;
|
|
36
|
+
async function deleteBlueprint(client, blueprintId) {
|
|
37
|
+
const url = `/api/v1/blueprint/${blueprintId}/delete`;
|
|
38
|
+
const response = await client.clientFetch(url, {
|
|
39
|
+
record: {},
|
|
40
|
+
});
|
|
41
|
+
return response;
|
|
42
|
+
}
|
|
43
|
+
exports.deleteBlueprint = deleteBlueprint;
|
|
44
|
+
async function cloneBlueprint(client, blueprintId) {
|
|
45
|
+
const url = `/api/v1/blueprint/${blueprintId}/clone`;
|
|
46
|
+
const response = await client.clientFetch(url, {
|
|
47
|
+
record: {},
|
|
48
|
+
});
|
|
49
|
+
return response;
|
|
50
|
+
}
|
|
51
|
+
exports.cloneBlueprint = cloneBlueprint;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export function listBlueprints(client: ChatBotKitClient, request?: BlueprintListRequest): ResponsePromise<BlueprintListResponse, BlueprintListStreamType>;
|
|
2
|
+
export function fetchBlueprint(client: ChatBotKitClient, blueprintId: string): Promise<BlueprintFetchResponse>;
|
|
3
|
+
export function createBlueprint(client: ChatBotKitClient, request: BlueprintCreateRequest): Promise<BlueprintCreateResponse>;
|
|
4
|
+
export function updateBlueprint(client: ChatBotKitClient, blueprintId: string, request: BlueprintUpdateRequest): Promise<BlueprintUpdateResponse>;
|
|
5
|
+
export function deleteBlueprint(client: ChatBotKitClient, blueprintId: string): Promise<BlueprintDeleteResponse>;
|
|
6
|
+
export function cloneBlueprint(client: ChatBotKitClient, blueprintId: string): Promise<BlueprintCloneResponse>;
|
|
7
|
+
export type ChatBotKitClient = import('../client.cjs').ChatBotKitClient;
|
|
8
|
+
export type ResponsePromise<T, U> = import('../client.cjs').ResponsePromise<T, U>;
|
|
9
|
+
export type BlueprintOptions = {
|
|
10
|
+
name?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
meta?: Record<string, any>;
|
|
13
|
+
};
|
|
14
|
+
export type BlueprintInstance = BlueprintOptions & {
|
|
15
|
+
id: string;
|
|
16
|
+
createdAt: number;
|
|
17
|
+
updatedAt: number;
|
|
18
|
+
};
|
|
19
|
+
export type BlueprintListRequest = {
|
|
20
|
+
cursor?: string;
|
|
21
|
+
order?: 'desc' | 'asc';
|
|
22
|
+
take?: number;
|
|
23
|
+
meta?: Record<string, string>;
|
|
24
|
+
};
|
|
25
|
+
export type BlueprintListResponse = {
|
|
26
|
+
items: BlueprintInstance[];
|
|
27
|
+
};
|
|
28
|
+
export type BlueprintListStreamItemType = {
|
|
29
|
+
type: 'item';
|
|
30
|
+
data: BlueprintInstance;
|
|
31
|
+
};
|
|
32
|
+
export type BlueprintListStreamType = BlueprintListStreamItemType;
|
|
33
|
+
export type BlueprintFetchResponse = BlueprintInstance & {};
|
|
34
|
+
export type BlueprintCreateRequest = BlueprintOptions & {
|
|
35
|
+
model?: import('../model/v1.cjs').Model;
|
|
36
|
+
};
|
|
37
|
+
export type BlueprintCreateResponse = {
|
|
38
|
+
id: string;
|
|
39
|
+
};
|
|
40
|
+
export type BlueprintUpdateRequest = BlueprintOptions & {};
|
|
41
|
+
export type BlueprintUpdateResponse = {
|
|
42
|
+
id: string;
|
|
43
|
+
};
|
|
44
|
+
export type BlueprintDeleteResponse = {
|
|
45
|
+
id: string;
|
|
46
|
+
};
|
|
47
|
+
export type BlueprintCloneResponse = {
|
|
48
|
+
id: string;
|
|
49
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export class ContactClient extends ChatBotKitClient {
|
|
2
|
-
list(request?: import('./v1.
|
|
2
|
+
list(request?: import('./v1.js').ContactListRequest): ResponsePromise<import('./v1.js').ContactListResponse, import('./v1.cjs').ContactListStreamType>;
|
|
3
3
|
fetch(contactId: string): Promise<import('./v1.cjs').ContactFetchResponse>;
|
|
4
|
-
create(request: import('./v1.
|
|
5
|
-
update(contactId: string, request: import('./v1.
|
|
4
|
+
create(request: import('./v1.js').ContactCreateRequest): Promise<import('./v1.cjs').ContactCreateResponse>;
|
|
5
|
+
update(contactId: string, request: import('./v1.js').ContactUpdateRequest): Promise<import('./v1.cjs').ContactUpdateResponse>;
|
|
6
6
|
delete(contactId: string): Promise<import('./v1.cjs').ContactDeleteResponse>;
|
|
7
7
|
}
|
|
8
8
|
export default ContactClient;
|
package/dist/cjs/contact/v1.d.ts
CHANGED
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,40 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChatBotKit = exports.SecretClient = exports.ContactClient = exports.ConversationClient = exports.IntegrationClient = exports.SkillsetClient = exports.DatasetClient = exports.PartnerClient = exports.MagicClient = exports.FileClient = exports.BotClient = void 0;
|
|
4
|
-
const index_js_1 = require("./
|
|
5
|
-
Object.defineProperty(exports, "
|
|
3
|
+
exports.ChatBotKit = exports.BlueprintClient = exports.SecretClient = exports.ContactClient = exports.ConversationClient = exports.IntegrationClient = exports.SkillsetClient = exports.DatasetClient = exports.PartnerClient = exports.MagicClient = exports.FileClient = exports.BotClient = void 0;
|
|
4
|
+
const index_js_1 = require("./blueprint/index.cjs");
|
|
5
|
+
Object.defineProperty(exports, "BlueprintClient", { enumerable: true, get: function () { return index_js_1.BlueprintClient; } });
|
|
6
|
+
const index_js_2 = require("./bot/index.cjs");
|
|
7
|
+
Object.defineProperty(exports, "BotClient", { enumerable: true, get: function () { return index_js_2.BotClient; } });
|
|
6
8
|
const client_js_1 = require("./client.cjs");
|
|
7
|
-
const
|
|
8
|
-
Object.defineProperty(exports, "ContactClient", { enumerable: true, get: function () { return
|
|
9
|
-
const
|
|
10
|
-
Object.defineProperty(exports, "ConversationClient", { enumerable: true, get: function () { return
|
|
11
|
-
const
|
|
12
|
-
Object.defineProperty(exports, "DatasetClient", { enumerable: true, get: function () { return
|
|
13
|
-
const
|
|
14
|
-
Object.defineProperty(exports, "FileClient", { enumerable: true, get: function () { return
|
|
15
|
-
const
|
|
16
|
-
Object.defineProperty(exports, "IntegrationClient", { enumerable: true, get: function () { return
|
|
17
|
-
const
|
|
18
|
-
Object.defineProperty(exports, "MagicClient", { enumerable: true, get: function () { return
|
|
19
|
-
const
|
|
20
|
-
Object.defineProperty(exports, "PartnerClient", { enumerable: true, get: function () { return
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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("./integration/index.cjs");
|
|
18
|
+
Object.defineProperty(exports, "IntegrationClient", { enumerable: true, get: function () { return index_js_7.IntegrationClient; } });
|
|
19
|
+
const index_js_8 = require("./magic/index.cjs");
|
|
20
|
+
Object.defineProperty(exports, "MagicClient", { enumerable: true, get: function () { return index_js_8.MagicClient; } });
|
|
21
|
+
const index_js_9 = require("./partner/index.cjs");
|
|
22
|
+
Object.defineProperty(exports, "PartnerClient", { enumerable: true, get: function () { return index_js_9.PartnerClient; } });
|
|
23
|
+
const index_js_10 = require("./platform/index.cjs");
|
|
24
|
+
const index_js_11 = require("./secret/index.cjs");
|
|
25
|
+
Object.defineProperty(exports, "SecretClient", { enumerable: true, get: function () { return index_js_11.SecretClient; } });
|
|
26
|
+
const index_js_12 = require("./skillset/index.cjs");
|
|
27
|
+
Object.defineProperty(exports, "SkillsetClient", { enumerable: true, get: function () { return index_js_12.SkillsetClient; } });
|
|
25
28
|
class ChatBotKit extends client_js_1.ChatBotKitClient {
|
|
26
29
|
constructor(options) {
|
|
27
30
|
super(options);
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
31
|
+
this.platform = new index_js_10.PlatformClient(options);
|
|
32
|
+
this.blueprint = new index_js_1.BlueprintClient(options);
|
|
33
|
+
this.bot = new index_js_2.BotClient(options);
|
|
34
|
+
this.file = new index_js_6.FileClient(options);
|
|
35
|
+
this.magic = new index_js_8.MagicClient(options);
|
|
36
|
+
this.partner = new index_js_9.PartnerClient(options);
|
|
37
|
+
this.dataset = new index_js_5.DatasetClient(options);
|
|
38
|
+
this.skillset = new index_js_12.SkillsetClient(options);
|
|
39
|
+
this.integration = new index_js_7.IntegrationClient(options);
|
|
40
|
+
this.conversation = new index_js_4.ConversationClient(options);
|
|
41
|
+
this.contact = new index_js_3.ContactClient(options);
|
|
42
|
+
this.secrets = new index_js_11.SecretClient(options);
|
|
38
43
|
}
|
|
39
44
|
}
|
|
40
45
|
exports.ChatBotKit = ChatBotKit;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export class ChatBotKit extends ChatBotKitClient {
|
|
2
|
+
platform: PlatformClient;
|
|
3
|
+
blueprint: BlueprintClient;
|
|
2
4
|
bot: BotClient;
|
|
3
5
|
file: FileClient;
|
|
4
6
|
magic: MagicClient;
|
|
@@ -21,5 +23,7 @@ import { IntegrationClient } from './integration/index.cjs';
|
|
|
21
23
|
import { ConversationClient } from './conversation/index.cjs';
|
|
22
24
|
import { ContactClient } from './contact/index.cjs';
|
|
23
25
|
import { SecretClient } from './secret/index.cjs';
|
|
26
|
+
import { BlueprintClient } from './blueprint/index.cjs';
|
|
24
27
|
import { ChatBotKitClient } from './client.cjs';
|
|
25
|
-
|
|
28
|
+
import { PlatformClient } from './platform/index.cjs';
|
|
29
|
+
export { BotClient, FileClient, MagicClient, PartnerClient, DatasetClient, SkillsetClient, IntegrationClient, ConversationClient, ContactClient, SecretClient, BlueprintClient };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export class DiscordIntegrationClient extends ChatBotKitClient {
|
|
2
|
-
list(request?: import('./v1.
|
|
2
|
+
list(request?: import('./v1.js').DiscordIntegrationListRequest): ResponsePromise<import('./v1.js').DiscordIntegrationListResponse, import('./v1.cjs').DiscordIntegrationListStreamType>;
|
|
3
3
|
fetch(discordId: string): Promise<import('./v1.cjs').DiscordIntegrationFetchResponse>;
|
|
4
|
-
create(request: import('./v1.
|
|
5
|
-
update(discordId: string, request: import('./v1.
|
|
4
|
+
create(request: import('./v1.js').DiscordIntegrationCreateRequest): Promise<import('./v1.cjs').DiscordIntegrationCreateResponse>;
|
|
5
|
+
update(discordId: string, request: import('./v1.js').DiscordIntegrationUpdateRequest): Promise<import('./v1.cjs').DiscordIntegrationUpdateResponse>;
|
|
6
6
|
delete(discordId: string): Promise<import('./v1.cjs').DiscordIntegrationDeleteResponse>;
|
|
7
7
|
setup(discordId: string): Promise<import('./v1.cjs').DiscordIntegrationSetupResponse>;
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export class SlackIntegrationClient extends ChatBotKitClient {
|
|
2
|
-
list(request?: import('./v1.
|
|
2
|
+
list(request?: import('./v1.js').SlackIntegrationListRequest): ResponsePromise<import('./v1.js').SlackIntegrationListResponse, import('./v1.cjs').SlackIntegrationListStreamType>;
|
|
3
3
|
fetch(slackId: string): Promise<import('./v1.cjs').SlackIntegrationFetchResponse>;
|
|
4
|
-
create(request: import('./v1.
|
|
5
|
-
update(slackId: string, request: import('./v1.
|
|
4
|
+
create(request: import('./v1.js').SlackIntegrationCreateRequest): Promise<import('./v1.cjs').SlackIntegrationCreateResponse>;
|
|
5
|
+
update(slackId: string, request: import('./v1.js').SlackIntegrationUpdateRequest): Promise<import('./v1.cjs').SlackIntegrationUpdateResponse>;
|
|
6
6
|
delete(slackId: string): Promise<import('./v1.cjs').SlackIntegrationDeleteResponse>;
|
|
7
7
|
setup(slackId: string): Promise<import('./v1.cjs').SlackIntegrationSetupResponse>;
|
|
8
8
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export class TriggerIntegrationClient extends ChatBotKitClient {
|
|
2
|
-
list(request?: import('./v1.js').TriggerIntegrationListRequest): ResponsePromise<import('./v1.
|
|
2
|
+
list(request?: import('./v1.js').TriggerIntegrationListRequest): ResponsePromise<import('./v1.js').TriggerIntegrationListResponse, import('./v1.cjs').TriggerIntegrationListStreamType>;
|
|
3
3
|
fetch(triggerId: string): Promise<import('./v1.cjs').TriggerIntegrationFetchResponse>;
|
|
4
|
-
create(request: import('./v1.
|
|
5
|
-
update(triggerId: string, request: import('./v1.
|
|
4
|
+
create(request: import('./v1.js').TriggerIntegrationCreateRequest): Promise<import('./v1.cjs').TriggerIntegrationCreateResponse>;
|
|
5
|
+
update(triggerId: string, request: import('./v1.js').TriggerIntegrationUpdateRequest): Promise<import('./v1.cjs').TriggerIntegrationUpdateResponse>;
|
|
6
6
|
delete(triggerId: string): Promise<import('./v1.cjs').TriggerIntegrationDeleteResponse>;
|
|
7
7
|
setup(triggerId: string): Promise<import('./v1.cjs').TriggerIntegrationSetupResponse>;
|
|
8
|
-
invoke(triggerId: string, request: import('./v1.
|
|
8
|
+
invoke(triggerId: string, request: import('./v1.js').TriggerIntegrationInvokeRequest): Promise<import('./v1.cjs').TriggerIntegrationInvokeResponse>;
|
|
9
9
|
}
|
|
10
10
|
export default TriggerIntegrationClient;
|
|
11
11
|
export type ResponsePromise<T, U> = import('../../client.cjs').ResponsePromise<T, U>;
|
|
@@ -23,6 +23,7 @@ export type TriggerIntegrationOptions = BotRefOrConfig & {
|
|
|
23
23
|
name?: string;
|
|
24
24
|
description?: string;
|
|
25
25
|
authenticate?: boolean;
|
|
26
|
+
triggerSchedule?: "never" | "quarterhourly" | "halfhourly" | "hourly" | "daily" | "weekly" | "monthly";
|
|
26
27
|
sessionDuration?: number;
|
|
27
28
|
meta?: Record<string, any>;
|
|
28
29
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformAbilityClient = void 0;
|
|
4
|
+
const client_js_1 = require("../../client.cjs");
|
|
5
|
+
const v1_js_1 = require("./v1.cjs");
|
|
6
|
+
class PlatformAbilityClient extends client_js_1.ChatBotKitClient {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
}
|
|
10
|
+
list(request) {
|
|
11
|
+
return (0, v1_js_1.listPlatformAbilities)(this, request);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.PlatformAbilityClient = PlatformAbilityClient;
|
|
15
|
+
exports.default = PlatformAbilityClient;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export class PlatformAbilityClient extends ChatBotKitClient {
|
|
2
|
+
list(request?: import('./v1.cjs').PlatformAbilityListRequest): ResponsePromise<import('./v1.cjs').PlatformAbilityListResponse, import('./v1.cjs').PlatformAbilityListStreamType>;
|
|
3
|
+
}
|
|
4
|
+
export default PlatformAbilityClient;
|
|
5
|
+
export type ResponsePromise<T, U> = import('../../client.cjs').ResponsePromise<T, U>;
|
|
6
|
+
import { ChatBotKitClient } from '../../client.cjs';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listPlatformAbilities = void 0;
|
|
4
|
+
function listPlatformAbilities(client, request) {
|
|
5
|
+
let url = `/api/v1/platform/ability/list`;
|
|
6
|
+
const response = client.clientFetch(url, { query: request });
|
|
7
|
+
return response;
|
|
8
|
+
}
|
|
9
|
+
exports.listPlatformAbilities = listPlatformAbilities;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function listPlatformAbilities(client: ChatBotKitClient, request?: PlatformAbilityListRequest): ResponsePromise<PlatformAbilityListResponse, PlatformAbilityListStreamType>;
|
|
2
|
+
export type ChatBotKitClient = import('../../client.cjs').ChatBotKitClient;
|
|
3
|
+
export type ResponsePromise<T, U> = import('../../client.cjs').ResponsePromise<T, U>;
|
|
4
|
+
export type PlatformAbilityOptions = {
|
|
5
|
+
name?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
meta?: Record<string, any>;
|
|
8
|
+
};
|
|
9
|
+
export type PlatformAbilityInstance = PlatformAbilityOptions & {
|
|
10
|
+
id: string;
|
|
11
|
+
createdAt: number;
|
|
12
|
+
updatedAt: number;
|
|
13
|
+
};
|
|
14
|
+
export type PlatformAbilityListRequest = {
|
|
15
|
+
cursor?: string;
|
|
16
|
+
order?: 'desc' | 'asc';
|
|
17
|
+
take?: number;
|
|
18
|
+
meta?: Record<string, string>;
|
|
19
|
+
};
|
|
20
|
+
export type PlatformAbilityListResponse = {
|
|
21
|
+
items: PlatformAbilityInstance[];
|
|
22
|
+
};
|
|
23
|
+
export type PlatformAbilityListStreamItemType = {
|
|
24
|
+
type: 'item';
|
|
25
|
+
data: PlatformAbilityInstance;
|
|
26
|
+
};
|
|
27
|
+
export type PlatformAbilityListStreamType = PlatformAbilityListStreamItemType;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformClient = void 0;
|
|
4
|
+
const client_js_1 = require("../client.cjs");
|
|
5
|
+
const index_js_1 = require("./ability/index.cjs");
|
|
6
|
+
const index_js_2 = require("./model/index.cjs");
|
|
7
|
+
const index_js_3 = require("./secret/index.cjs");
|
|
8
|
+
class PlatformClient extends client_js_1.ChatBotKitClient {
|
|
9
|
+
constructor(options) {
|
|
10
|
+
super(options);
|
|
11
|
+
this.user = new index_js_2.PlatformModelClient(options);
|
|
12
|
+
this.ability = new index_js_1.PlatformAbilityClient(options);
|
|
13
|
+
this.secrets = new index_js_3.PlatformSecretClient(options);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.PlatformClient = PlatformClient;
|
|
17
|
+
exports.default = PlatformClient;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class PlatformClient extends ChatBotKitClient {
|
|
2
|
+
user: PlatformModelClient;
|
|
3
|
+
ability: PlatformAbilityClient;
|
|
4
|
+
secrets: PlatformSecretClient;
|
|
5
|
+
}
|
|
6
|
+
export default PlatformClient;
|
|
7
|
+
import { ChatBotKitClient } from '../client.cjs';
|
|
8
|
+
import { PlatformModelClient } from './model/index.cjs';
|
|
9
|
+
import { PlatformAbilityClient } from './ability/index.cjs';
|
|
10
|
+
import { PlatformSecretClient } from './secret/index.cjs';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformModelClient = void 0;
|
|
4
|
+
const client_js_1 = require("../../client.cjs");
|
|
5
|
+
const v1_js_1 = require("./v1.cjs");
|
|
6
|
+
class PlatformModelClient extends client_js_1.ChatBotKitClient {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
}
|
|
10
|
+
list(request) {
|
|
11
|
+
return (0, v1_js_1.listPlatformModels)(this, request);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.PlatformModelClient = PlatformModelClient;
|
|
15
|
+
exports.default = PlatformModelClient;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export class PlatformModelClient extends ChatBotKitClient {
|
|
2
|
+
list(request?: import('./v1.cjs').PlatformModelListRequest): ResponsePromise<import('./v1.cjs').PlatformModelListResponse, import('./v1.cjs').PlatformModelListStreamType>;
|
|
3
|
+
}
|
|
4
|
+
export default PlatformModelClient;
|
|
5
|
+
export type ResponsePromise<T, U> = import('../../client.cjs').ResponsePromise<T, U>;
|
|
6
|
+
import { ChatBotKitClient } from '../../client.cjs';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listPlatformModels = void 0;
|
|
4
|
+
function listPlatformModels(client, request) {
|
|
5
|
+
let url = `/api/v1/platform/model/list`;
|
|
6
|
+
const response = client.clientFetch(url, { query: request });
|
|
7
|
+
return response;
|
|
8
|
+
}
|
|
9
|
+
exports.listPlatformModels = listPlatformModels;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function listPlatformModels(client: ChatBotKitClient, request?: PlatformModelListRequest): ResponsePromise<PlatformModelListResponse, PlatformModelListStreamType>;
|
|
2
|
+
export type ChatBotKitClient = import('../../client.cjs').ChatBotKitClient;
|
|
3
|
+
export type ResponsePromise<T, U> = import('../../client.cjs').ResponsePromise<T, U>;
|
|
4
|
+
export type PlatformModelOptions = {
|
|
5
|
+
name?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
meta?: Record<string, any>;
|
|
8
|
+
};
|
|
9
|
+
export type PlatformModelInstance = PlatformModelOptions & {
|
|
10
|
+
id: string;
|
|
11
|
+
createdAt: number;
|
|
12
|
+
updatedAt: number;
|
|
13
|
+
};
|
|
14
|
+
export type PlatformModelListRequest = {
|
|
15
|
+
cursor?: string;
|
|
16
|
+
order?: 'desc' | 'asc';
|
|
17
|
+
take?: number;
|
|
18
|
+
meta?: Record<string, string>;
|
|
19
|
+
};
|
|
20
|
+
export type PlatformModelListResponse = {
|
|
21
|
+
items: PlatformModelInstance[];
|
|
22
|
+
};
|
|
23
|
+
export type PlatformModelListStreamItemType = {
|
|
24
|
+
type: 'item';
|
|
25
|
+
data: PlatformModelInstance;
|
|
26
|
+
};
|
|
27
|
+
export type PlatformModelListStreamType = PlatformModelListStreamItemType;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformSecretClient = void 0;
|
|
4
|
+
const client_js_1 = require("../../client.cjs");
|
|
5
|
+
const v1_js_1 = require("./v1.cjs");
|
|
6
|
+
class PlatformSecretClient extends client_js_1.ChatBotKitClient {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
}
|
|
10
|
+
list(request) {
|
|
11
|
+
return (0, v1_js_1.listPlatformSecrets)(this, request);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.PlatformSecretClient = PlatformSecretClient;
|
|
15
|
+
exports.default = PlatformSecretClient;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export class PlatformSecretClient extends ChatBotKitClient {
|
|
2
|
+
list(request?: import('./v1.cjs').PlatformSecretListRequest): ResponsePromise<import('./v1.cjs').PlatformSecretListResponse, import('./v1.cjs').PlatformSecretListStreamType>;
|
|
3
|
+
}
|
|
4
|
+
export default PlatformSecretClient;
|
|
5
|
+
export type ResponsePromise<T, U> = import('../../client.cjs').ResponsePromise<T, U>;
|
|
6
|
+
import { ChatBotKitClient } from '../../client.cjs';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listPlatformSecrets = void 0;
|
|
4
|
+
function listPlatformSecrets(client, request) {
|
|
5
|
+
let url = `/api/v1/platform/secret/list`;
|
|
6
|
+
const response = client.clientFetch(url, { query: request });
|
|
7
|
+
return response;
|
|
8
|
+
}
|
|
9
|
+
exports.listPlatformSecrets = listPlatformSecrets;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function listPlatformSecrets(client: ChatBotKitClient, request?: PlatformSecretListRequest): ResponsePromise<PlatformSecretListResponse, PlatformSecretListStreamType>;
|
|
2
|
+
export type ChatBotKitClient = import('../../client.cjs').ChatBotKitClient;
|
|
3
|
+
export type ResponsePromise<T, U> = import('../../client.cjs').ResponsePromise<T, U>;
|
|
4
|
+
export type PlatformSecretOptions = {
|
|
5
|
+
name?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
meta?: Record<string, any>;
|
|
8
|
+
};
|
|
9
|
+
export type PlatformSecretInstance = PlatformSecretOptions & {
|
|
10
|
+
id: string;
|
|
11
|
+
createdAt: number;
|
|
12
|
+
updatedAt: number;
|
|
13
|
+
};
|
|
14
|
+
export type PlatformSecretListRequest = {
|
|
15
|
+
cursor?: string;
|
|
16
|
+
order?: 'desc' | 'asc';
|
|
17
|
+
take?: number;
|
|
18
|
+
meta?: Record<string, string>;
|
|
19
|
+
};
|
|
20
|
+
export type PlatformSecretListResponse = {
|
|
21
|
+
items: PlatformSecretInstance[];
|
|
22
|
+
};
|
|
23
|
+
export type PlatformSecretListStreamItemType = {
|
|
24
|
+
type: 'item';
|
|
25
|
+
data: PlatformSecretInstance;
|
|
26
|
+
};
|
|
27
|
+
export type PlatformSecretListStreamType = PlatformSecretListStreamItemType;
|
|
File without changes
|
|
File without changes
|
package/dist/cjs/secret/v1.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export type ResponsePromise<T, U> = import('../client.cjs').ResponsePromise<T, U
|
|
|
8
8
|
export type SecretOptions = {
|
|
9
9
|
name?: string;
|
|
10
10
|
description?: string;
|
|
11
|
+
kind?: 'shared' | 'personal';
|
|
11
12
|
type?: 'plain' | 'basic' | 'bearer' | 'oauth' | 'template';
|
|
12
13
|
value?: string;
|
|
13
14
|
meta?: Record<string, any>;
|
|
@@ -6,6 +6,7 @@ export function deleteSkillsetAbility(client: ChatBotKitClient, skillsetId: stri
|
|
|
6
6
|
export type ChatBotKitClient = import('../../client.cjs').ChatBotKitClient;
|
|
7
7
|
export type ResponsePromise<T, U> = import('../../client.cjs').ResponsePromise<T, U>;
|
|
8
8
|
export type SkillsetAbilityOptions = {
|
|
9
|
+
secretId?: string;
|
|
9
10
|
name: string;
|
|
10
11
|
description: string;
|
|
11
12
|
instruction: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export class BlueprintClient extends ChatBotKitClient {
|
|
2
|
+
list(request?: import("./v1.js").BlueprintListRequest | undefined): ResponsePromise<import('./v1.js').BlueprintListResponse, import('./v1.js').BlueprintListStreamType>;
|
|
3
|
+
fetch(blueprintId: string): Promise<import('./v1.js').BlueprintFetchResponse>;
|
|
4
|
+
create(request: import('./v1.js').BlueprintCreateRequest): Promise<import('./v1.js').BlueprintCreateResponse>;
|
|
5
|
+
update(blueprintId: string, request: import('./v1.js').BlueprintUpdateRequest): Promise<import('./v1.js').BlueprintUpdateResponse>;
|
|
6
|
+
delete(blueprintId: string): Promise<import('./v1.js').BlueprintDeleteResponse>;
|
|
7
|
+
clone(blueprintId: string): Promise<import('./v1.js').BlueprintCloneResponse>;
|
|
8
|
+
}
|
|
9
|
+
export default BlueprintClient;
|
|
10
|
+
export type ResponsePromise<T, U> = import('../client.js').ResponsePromise<T, U>;
|
|
11
|
+
import { ChatBotKitClient } from '../client.js';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ChatBotKitClient } from '../client.js';
|
|
2
|
+
import { cloneBlueprint, createBlueprint, deleteBlueprint, fetchBlueprint, listBlueprints, updateBlueprint, } from './v1.js';
|
|
3
|
+
export class BlueprintClient extends ChatBotKitClient {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
}
|
|
7
|
+
list(request) {
|
|
8
|
+
return listBlueprints(this, request);
|
|
9
|
+
}
|
|
10
|
+
fetch(blueprintId) {
|
|
11
|
+
return fetchBlueprint(this, blueprintId);
|
|
12
|
+
}
|
|
13
|
+
create(request) {
|
|
14
|
+
return createBlueprint(this, request);
|
|
15
|
+
}
|
|
16
|
+
update(blueprintId, request) {
|
|
17
|
+
return updateBlueprint(this, blueprintId, request);
|
|
18
|
+
}
|
|
19
|
+
delete(blueprintId) {
|
|
20
|
+
return deleteBlueprint(this, blueprintId);
|
|
21
|
+
}
|
|
22
|
+
clone(blueprintId) {
|
|
23
|
+
return cloneBlueprint(this, blueprintId);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export default BlueprintClient;
|