@chatbotkit/cli 1.26.2 → 1.26.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/command/api/blueprint/index.cjs +81 -0
- package/dist/cjs/command/api/blueprint/index.d.ts +8 -0
- package/dist/cjs/command/api/bot/index.cjs +61 -0
- package/dist/cjs/command/api/bot/index.d.ts +6 -0
- package/dist/cjs/command/api/contact/index.cjs +61 -0
- package/dist/cjs/command/api/contact/index.d.ts +6 -0
- package/dist/cjs/command/api/dataset/file/index.cjs +76 -0
- package/dist/cjs/command/api/dataset/file/index.d.ts +7 -0
- package/dist/cjs/command/api/dataset/index.cjs +7 -2
- package/dist/cjs/command/api/dataset/record/index.cjs +83 -0
- package/dist/cjs/command/api/dataset/record/index.d.ts +7 -0
- package/dist/cjs/command/api/file/index.cjs +71 -0
- package/dist/cjs/command/api/file/index.d.ts +7 -0
- package/dist/cjs/command/api/index.cjs +24 -8
- package/dist/cjs/command/api/integration/discord/index.cjs +71 -0
- package/dist/cjs/command/api/integration/discord/index.d.ts +7 -0
- package/dist/cjs/command/api/integration/email/index.cjs +71 -0
- package/dist/cjs/command/api/integration/email/index.d.ts +7 -0
- package/dist/cjs/command/api/integration/extract/index.cjs +61 -0
- package/dist/cjs/command/api/integration/extract/index.d.ts +6 -0
- package/dist/cjs/command/api/integration/index.cjs +44 -0
- package/dist/cjs/command/api/integration/index.d.ts +3 -0
- package/dist/cjs/command/api/integration/instagram/index.cjs +71 -0
- package/dist/cjs/command/api/integration/instagram/index.d.ts +7 -0
- package/dist/cjs/command/api/integration/mcpserver/index.cjs +61 -0
- package/dist/cjs/command/api/integration/mcpserver/index.d.ts +6 -0
- package/dist/cjs/command/api/integration/messenger/index.cjs +71 -0
- package/dist/cjs/command/api/integration/messenger/index.d.ts +7 -0
- package/dist/cjs/command/api/integration/notion/index.cjs +71 -0
- package/dist/cjs/command/api/integration/notion/index.d.ts +7 -0
- package/dist/cjs/command/api/integration/sitemap/index.cjs +71 -0
- package/dist/cjs/command/api/integration/sitemap/index.d.ts +7 -0
- package/dist/cjs/command/api/integration/slack/index.cjs +71 -0
- package/dist/cjs/command/api/integration/slack/index.d.ts +7 -0
- package/dist/cjs/command/api/integration/support/index.cjs +61 -0
- package/dist/cjs/command/api/integration/support/index.d.ts +6 -0
- package/dist/cjs/command/api/integration/telegram/index.cjs +71 -0
- package/dist/cjs/command/api/integration/telegram/index.d.ts +7 -0
- package/dist/cjs/command/api/integration/trigger/index.cjs +71 -0
- package/dist/cjs/command/api/integration/trigger/index.d.ts +7 -0
- package/dist/cjs/command/api/integration/twilio/index.cjs +71 -0
- package/dist/cjs/command/api/integration/twilio/index.d.ts +7 -0
- package/dist/cjs/command/api/integration/whatsapp/index.cjs +71 -0
- package/dist/cjs/command/api/integration/whatsapp/index.d.ts +7 -0
- package/dist/cjs/command/api/integration/widget/index.cjs +71 -0
- package/dist/cjs/command/api/integration/widget/index.d.ts +7 -0
- package/dist/cjs/command/api/memory/index.cjs +79 -0
- package/dist/cjs/command/api/memory/index.d.ts +7 -0
- package/dist/cjs/command/api/secret/index.cjs +81 -0
- package/dist/cjs/command/api/secret/index.d.ts +8 -0
- package/dist/cjs/command/api/skillset/ability/index.cjs +83 -0
- package/dist/cjs/command/api/skillset/ability/index.d.ts +7 -0
- package/dist/cjs/command/api/skillset/index.cjs +5 -2
- package/dist/cjs/command/api/team/index.cjs +42 -0
- package/dist/cjs/command/api/team/index.d.ts +4 -0
- package/dist/cjs/input.cjs +28 -0
- package/dist/cjs/input.d.ts +5 -0
- package/dist/cjs/solution/index.cjs +1 -1
- package/dist/esm/command/api/blueprint/index.d.ts +8 -0
- package/dist/esm/command/api/blueprint/index.js +78 -0
- package/dist/esm/command/api/bot/index.d.ts +6 -0
- package/dist/esm/command/api/bot/index.js +58 -0
- package/dist/esm/command/api/contact/index.d.ts +6 -0
- package/dist/esm/command/api/contact/index.js +58 -0
- package/dist/esm/command/api/dataset/file/index.d.ts +7 -0
- package/dist/esm/command/api/dataset/file/index.js +73 -0
- package/dist/esm/command/api/dataset/index.js +4 -0
- package/dist/esm/command/api/dataset/record/index.d.ts +7 -0
- package/dist/esm/command/api/dataset/record/index.js +80 -0
- package/dist/esm/command/api/file/index.d.ts +7 -0
- package/dist/esm/command/api/file/index.js +68 -0
- package/dist/esm/command/api/index.js +17 -1
- package/dist/esm/command/api/integration/discord/index.d.ts +7 -0
- package/dist/esm/command/api/integration/discord/index.js +68 -0
- package/dist/esm/command/api/integration/email/index.d.ts +7 -0
- package/dist/esm/command/api/integration/email/index.js +68 -0
- package/dist/esm/command/api/integration/extract/index.d.ts +6 -0
- package/dist/esm/command/api/integration/extract/index.js +58 -0
- package/dist/esm/command/api/integration/index.d.ts +3 -0
- package/dist/esm/command/api/integration/index.js +40 -0
- package/dist/esm/command/api/integration/instagram/index.d.ts +7 -0
- package/dist/esm/command/api/integration/instagram/index.js +68 -0
- package/dist/esm/command/api/integration/mcpserver/index.d.ts +6 -0
- package/dist/esm/command/api/integration/mcpserver/index.js +58 -0
- package/dist/esm/command/api/integration/messenger/index.d.ts +7 -0
- package/dist/esm/command/api/integration/messenger/index.js +68 -0
- package/dist/esm/command/api/integration/notion/index.d.ts +7 -0
- package/dist/esm/command/api/integration/notion/index.js +68 -0
- package/dist/esm/command/api/integration/sitemap/index.d.ts +7 -0
- package/dist/esm/command/api/integration/sitemap/index.js +68 -0
- package/dist/esm/command/api/integration/slack/index.d.ts +7 -0
- package/dist/esm/command/api/integration/slack/index.js +68 -0
- package/dist/esm/command/api/integration/support/index.d.ts +6 -0
- package/dist/esm/command/api/integration/support/index.js +58 -0
- package/dist/esm/command/api/integration/telegram/index.d.ts +7 -0
- package/dist/esm/command/api/integration/telegram/index.js +68 -0
- package/dist/esm/command/api/integration/trigger/index.d.ts +7 -0
- package/dist/esm/command/api/integration/trigger/index.js +68 -0
- package/dist/esm/command/api/integration/twilio/index.d.ts +7 -0
- package/dist/esm/command/api/integration/twilio/index.js +68 -0
- package/dist/esm/command/api/integration/whatsapp/index.d.ts +7 -0
- package/dist/esm/command/api/integration/whatsapp/index.js +68 -0
- package/dist/esm/command/api/integration/widget/index.d.ts +7 -0
- package/dist/esm/command/api/integration/widget/index.js +68 -0
- package/dist/esm/command/api/memory/index.d.ts +7 -0
- package/dist/esm/command/api/memory/index.js +76 -0
- package/dist/esm/command/api/secret/index.d.ts +8 -0
- package/dist/esm/command/api/secret/index.js +78 -0
- package/dist/esm/command/api/skillset/ability/index.d.ts +7 -0
- package/dist/esm/command/api/skillset/ability/index.js +80 -0
- package/dist/esm/command/api/skillset/index.js +2 -0
- package/dist/esm/command/api/team/index.d.ts +4 -0
- package/dist/esm/command/api/team/index.js +39 -0
- package/dist/esm/input.d.ts +5 -0
- package/dist/esm/input.js +27 -0
- package/dist/esm/solution/index.d.ts +74 -68
- package/dist/esm/solution/index.js +1 -1
- package/package.json +804 -26
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.command = exports.emailSetup = exports.emailDelete = exports.emailFetch = exports.emailList = void 0;
|
|
4
|
+
const env_js_1 = require("../../../../env.cjs");
|
|
5
|
+
const output_js_1 = require("../../../../output.cjs");
|
|
6
|
+
const index_js_1 = require("@chatbotkit/sdk/integration/email/index.js");
|
|
7
|
+
const commander_1 = require("commander");
|
|
8
|
+
function getClient() {
|
|
9
|
+
return new index_js_1.EmailIntegrationClient({
|
|
10
|
+
secret: (0, env_js_1.getSECRET)(),
|
|
11
|
+
runAsUserId: (0, env_js_1.getRUNAS_USERID)(),
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
exports.emailList = new commander_1.Command()
|
|
15
|
+
.name('list')
|
|
16
|
+
.description('List email integrations')
|
|
17
|
+
.option('-s, --stream', 'Stream email integrations')
|
|
18
|
+
.action(async (str, options) => {
|
|
19
|
+
const { stream } = options;
|
|
20
|
+
const client = getClient();
|
|
21
|
+
if (stream) {
|
|
22
|
+
for await (const email of client.list().stream()) {
|
|
23
|
+
(0, output_js_1.print)(email);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
const { items } = await client.list();
|
|
28
|
+
for (const email of items) {
|
|
29
|
+
(0, output_js_1.print)(email);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
exports.emailFetch = new commander_1.Command()
|
|
34
|
+
.name('fetch')
|
|
35
|
+
.description('Fetch email integration')
|
|
36
|
+
.argument('<emailId>', 'Email ID')
|
|
37
|
+
.action(async (emailId) => {
|
|
38
|
+
const client = getClient();
|
|
39
|
+
const email = await client.fetch(emailId);
|
|
40
|
+
(0, output_js_1.print)(email);
|
|
41
|
+
});
|
|
42
|
+
exports.emailDelete = new commander_1.Command()
|
|
43
|
+
.name('delete')
|
|
44
|
+
.description('Delete email integration')
|
|
45
|
+
.argument('<emailId>', 'Email ID')
|
|
46
|
+
.action(async (emailId) => {
|
|
47
|
+
const client = getClient();
|
|
48
|
+
await client.delete(emailId);
|
|
49
|
+
});
|
|
50
|
+
exports.emailSetup = new commander_1.Command()
|
|
51
|
+
.name('setup')
|
|
52
|
+
.description('Setup email integration')
|
|
53
|
+
.argument('<emailId>', 'Email ID')
|
|
54
|
+
.action(async (emailId) => {
|
|
55
|
+
const client = getClient();
|
|
56
|
+
const result = await client.setup(emailId);
|
|
57
|
+
(0, output_js_1.print)(result);
|
|
58
|
+
});
|
|
59
|
+
const commands = {
|
|
60
|
+
list: exports.emailList,
|
|
61
|
+
fetch: exports.emailFetch,
|
|
62
|
+
delete: exports.emailDelete,
|
|
63
|
+
setup: exports.emailSetup,
|
|
64
|
+
};
|
|
65
|
+
exports.command = new commander_1.Command()
|
|
66
|
+
.name('email')
|
|
67
|
+
.description('Email integration tools for ChatBotKit');
|
|
68
|
+
for (const cmd of Object.values(commands)) {
|
|
69
|
+
exports.command.addCommand(cmd);
|
|
70
|
+
}
|
|
71
|
+
exports.default = exports.command;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.command = exports.extractDelete = exports.extractFetch = exports.extractList = void 0;
|
|
4
|
+
const env_js_1 = require("../../../../env.cjs");
|
|
5
|
+
const output_js_1 = require("../../../../output.cjs");
|
|
6
|
+
const index_js_1 = require("@chatbotkit/sdk/integration/extract/index.js");
|
|
7
|
+
const commander_1 = require("commander");
|
|
8
|
+
function getClient() {
|
|
9
|
+
return new index_js_1.ExtractIntegrationClient({
|
|
10
|
+
secret: (0, env_js_1.getSECRET)(),
|
|
11
|
+
runAsUserId: (0, env_js_1.getRUNAS_USERID)(),
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
exports.extractList = new commander_1.Command()
|
|
15
|
+
.name('list')
|
|
16
|
+
.description('List extract integrations')
|
|
17
|
+
.option('-s, --stream', 'Stream extract integrations')
|
|
18
|
+
.action(async (str, options) => {
|
|
19
|
+
const { stream } = options;
|
|
20
|
+
const client = getClient();
|
|
21
|
+
if (stream) {
|
|
22
|
+
for await (const extract of client.list().stream()) {
|
|
23
|
+
(0, output_js_1.print)(extract);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
const { items } = await client.list();
|
|
28
|
+
for (const extract of items) {
|
|
29
|
+
(0, output_js_1.print)(extract);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
exports.extractFetch = new commander_1.Command()
|
|
34
|
+
.name('fetch')
|
|
35
|
+
.description('Fetch extract integration')
|
|
36
|
+
.argument('<extractId>', 'Extract ID')
|
|
37
|
+
.action(async (extractId) => {
|
|
38
|
+
const client = getClient();
|
|
39
|
+
const extract = await client.fetch(extractId);
|
|
40
|
+
(0, output_js_1.print)(extract);
|
|
41
|
+
});
|
|
42
|
+
exports.extractDelete = new commander_1.Command()
|
|
43
|
+
.name('delete')
|
|
44
|
+
.description('Delete extract integration')
|
|
45
|
+
.argument('<extractId>', 'Extract ID')
|
|
46
|
+
.action(async (extractId) => {
|
|
47
|
+
const client = getClient();
|
|
48
|
+
await client.delete(extractId);
|
|
49
|
+
});
|
|
50
|
+
const commands = {
|
|
51
|
+
list: exports.extractList,
|
|
52
|
+
fetch: exports.extractFetch,
|
|
53
|
+
delete: exports.extractDelete,
|
|
54
|
+
};
|
|
55
|
+
exports.command = new commander_1.Command()
|
|
56
|
+
.name('extract')
|
|
57
|
+
.description('Extract integration tools for ChatBotKit');
|
|
58
|
+
for (const cmd of Object.values(commands)) {
|
|
59
|
+
exports.command.addCommand(cmd);
|
|
60
|
+
}
|
|
61
|
+
exports.default = exports.command;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.command = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const index_js_1 = tslib_1.__importDefault(require("./discord/index.cjs"));
|
|
6
|
+
const index_js_2 = tslib_1.__importDefault(require("./email/index.cjs"));
|
|
7
|
+
const index_js_3 = tslib_1.__importDefault(require("./extract/index.cjs"));
|
|
8
|
+
const index_js_4 = tslib_1.__importDefault(require("./instagram/index.cjs"));
|
|
9
|
+
const index_js_5 = tslib_1.__importDefault(require("./mcpserver/index.cjs"));
|
|
10
|
+
const index_js_6 = tslib_1.__importDefault(require("./messenger/index.cjs"));
|
|
11
|
+
const index_js_7 = tslib_1.__importDefault(require("./notion/index.cjs"));
|
|
12
|
+
const index_js_8 = tslib_1.__importDefault(require("./sitemap/index.cjs"));
|
|
13
|
+
const index_js_9 = tslib_1.__importDefault(require("./slack/index.cjs"));
|
|
14
|
+
const index_js_10 = tslib_1.__importDefault(require("./support/index.cjs"));
|
|
15
|
+
const index_js_11 = tslib_1.__importDefault(require("./telegram/index.cjs"));
|
|
16
|
+
const index_js_12 = tslib_1.__importDefault(require("./trigger/index.cjs"));
|
|
17
|
+
const index_js_13 = tslib_1.__importDefault(require("./twilio/index.cjs"));
|
|
18
|
+
const index_js_14 = tslib_1.__importDefault(require("./whatsapp/index.cjs"));
|
|
19
|
+
const index_js_15 = tslib_1.__importDefault(require("./widget/index.cjs"));
|
|
20
|
+
const commander_1 = require("commander");
|
|
21
|
+
const commands = {
|
|
22
|
+
widget: index_js_15.default,
|
|
23
|
+
slack: index_js_9.default,
|
|
24
|
+
discord: index_js_1.default,
|
|
25
|
+
whatsapp: index_js_14.default,
|
|
26
|
+
messenger: index_js_6.default,
|
|
27
|
+
instagram: index_js_4.default,
|
|
28
|
+
telegram: index_js_11.default,
|
|
29
|
+
trigger: index_js_12.default,
|
|
30
|
+
email: index_js_2.default,
|
|
31
|
+
sitemap: index_js_8.default,
|
|
32
|
+
notion: index_js_7.default,
|
|
33
|
+
support: index_js_10.default,
|
|
34
|
+
extract: index_js_3.default,
|
|
35
|
+
mcpserver: index_js_5.default,
|
|
36
|
+
twilio: index_js_13.default,
|
|
37
|
+
};
|
|
38
|
+
exports.command = new commander_1.Command()
|
|
39
|
+
.name('integration')
|
|
40
|
+
.description('Integration tools for ChatBotKit');
|
|
41
|
+
for (const cmd of Object.values(commands)) {
|
|
42
|
+
exports.command.addCommand(cmd);
|
|
43
|
+
}
|
|
44
|
+
exports.default = exports.command;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.command = exports.instagramSetup = exports.instagramDelete = exports.instagramFetch = exports.instagramList = void 0;
|
|
4
|
+
const env_js_1 = require("../../../../env.cjs");
|
|
5
|
+
const output_js_1 = require("../../../../output.cjs");
|
|
6
|
+
const index_js_1 = require("@chatbotkit/sdk/integration/instagram/index.js");
|
|
7
|
+
const commander_1 = require("commander");
|
|
8
|
+
function getClient() {
|
|
9
|
+
return new index_js_1.InstagramIntegrationClient({
|
|
10
|
+
secret: (0, env_js_1.getSECRET)(),
|
|
11
|
+
runAsUserId: (0, env_js_1.getRUNAS_USERID)(),
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
exports.instagramList = new commander_1.Command()
|
|
15
|
+
.name('list')
|
|
16
|
+
.description('List instagram integrations')
|
|
17
|
+
.option('-s, --stream', 'Stream instagram integrations')
|
|
18
|
+
.action(async (str, options) => {
|
|
19
|
+
const { stream } = options;
|
|
20
|
+
const client = getClient();
|
|
21
|
+
if (stream) {
|
|
22
|
+
for await (const instagram of client.list().stream()) {
|
|
23
|
+
(0, output_js_1.print)(instagram);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
const { items } = await client.list();
|
|
28
|
+
for (const instagram of items) {
|
|
29
|
+
(0, output_js_1.print)(instagram);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
exports.instagramFetch = new commander_1.Command()
|
|
34
|
+
.name('fetch')
|
|
35
|
+
.description('Fetch instagram integration')
|
|
36
|
+
.argument('<instagramId>', 'Instagram ID')
|
|
37
|
+
.action(async (instagramId) => {
|
|
38
|
+
const client = getClient();
|
|
39
|
+
const instagram = await client.fetch(instagramId);
|
|
40
|
+
(0, output_js_1.print)(instagram);
|
|
41
|
+
});
|
|
42
|
+
exports.instagramDelete = new commander_1.Command()
|
|
43
|
+
.name('delete')
|
|
44
|
+
.description('Delete instagram integration')
|
|
45
|
+
.argument('<instagramId>', 'Instagram ID')
|
|
46
|
+
.action(async (instagramId) => {
|
|
47
|
+
const client = getClient();
|
|
48
|
+
await client.delete(instagramId);
|
|
49
|
+
});
|
|
50
|
+
exports.instagramSetup = new commander_1.Command()
|
|
51
|
+
.name('setup')
|
|
52
|
+
.description('Setup instagram integration')
|
|
53
|
+
.argument('<instagramId>', 'Instagram ID')
|
|
54
|
+
.action(async (instagramId) => {
|
|
55
|
+
const client = getClient();
|
|
56
|
+
const result = await client.setup(instagramId);
|
|
57
|
+
(0, output_js_1.print)(result);
|
|
58
|
+
});
|
|
59
|
+
const commands = {
|
|
60
|
+
list: exports.instagramList,
|
|
61
|
+
fetch: exports.instagramFetch,
|
|
62
|
+
delete: exports.instagramDelete,
|
|
63
|
+
setup: exports.instagramSetup,
|
|
64
|
+
};
|
|
65
|
+
exports.command = new commander_1.Command()
|
|
66
|
+
.name('instagram')
|
|
67
|
+
.description('Instagram integration tools for ChatBotKit');
|
|
68
|
+
for (const cmd of Object.values(commands)) {
|
|
69
|
+
exports.command.addCommand(cmd);
|
|
70
|
+
}
|
|
71
|
+
exports.default = exports.command;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.command = exports.mcpserverDelete = exports.mcpserverFetch = exports.mcpserverList = void 0;
|
|
4
|
+
const env_js_1 = require("../../../../env.cjs");
|
|
5
|
+
const output_js_1 = require("../../../../output.cjs");
|
|
6
|
+
const index_js_1 = require("@chatbotkit/sdk/integration/mcpserver/index.js");
|
|
7
|
+
const commander_1 = require("commander");
|
|
8
|
+
function getClient() {
|
|
9
|
+
return new index_js_1.McpServerIntegrationClient({
|
|
10
|
+
secret: (0, env_js_1.getSECRET)(),
|
|
11
|
+
runAsUserId: (0, env_js_1.getRUNAS_USERID)(),
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
exports.mcpserverList = new commander_1.Command()
|
|
15
|
+
.name('list')
|
|
16
|
+
.description('List MCP server integrations')
|
|
17
|
+
.option('-s, --stream', 'Stream MCP server integrations')
|
|
18
|
+
.action(async (str, options) => {
|
|
19
|
+
const { stream } = options;
|
|
20
|
+
const client = getClient();
|
|
21
|
+
if (stream) {
|
|
22
|
+
for await (const mcpserver of client.list().stream()) {
|
|
23
|
+
(0, output_js_1.print)(mcpserver);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
const { items } = await client.list();
|
|
28
|
+
for (const mcpserver of items) {
|
|
29
|
+
(0, output_js_1.print)(mcpserver);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
exports.mcpserverFetch = new commander_1.Command()
|
|
34
|
+
.name('fetch')
|
|
35
|
+
.description('Fetch MCP server integration')
|
|
36
|
+
.argument('<mcpserverId>', 'MCP Server ID')
|
|
37
|
+
.action(async (mcpserverId) => {
|
|
38
|
+
const client = getClient();
|
|
39
|
+
const mcpserver = await client.fetch(mcpserverId);
|
|
40
|
+
(0, output_js_1.print)(mcpserver);
|
|
41
|
+
});
|
|
42
|
+
exports.mcpserverDelete = new commander_1.Command()
|
|
43
|
+
.name('delete')
|
|
44
|
+
.description('Delete MCP server integration')
|
|
45
|
+
.argument('<mcpserverId>', 'MCP Server ID')
|
|
46
|
+
.action(async (mcpserverId) => {
|
|
47
|
+
const client = getClient();
|
|
48
|
+
await client.delete(mcpserverId);
|
|
49
|
+
});
|
|
50
|
+
const commands = {
|
|
51
|
+
list: exports.mcpserverList,
|
|
52
|
+
fetch: exports.mcpserverFetch,
|
|
53
|
+
delete: exports.mcpserverDelete,
|
|
54
|
+
};
|
|
55
|
+
exports.command = new commander_1.Command()
|
|
56
|
+
.name('mcpserver')
|
|
57
|
+
.description('MCP Server integration tools for ChatBotKit');
|
|
58
|
+
for (const cmd of Object.values(commands)) {
|
|
59
|
+
exports.command.addCommand(cmd);
|
|
60
|
+
}
|
|
61
|
+
exports.default = exports.command;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.command = exports.messengerSetup = exports.messengerDelete = exports.messengerFetch = exports.messengerList = void 0;
|
|
4
|
+
const env_js_1 = require("../../../../env.cjs");
|
|
5
|
+
const output_js_1 = require("../../../../output.cjs");
|
|
6
|
+
const index_js_1 = require("@chatbotkit/sdk/integration/messenger/index.js");
|
|
7
|
+
const commander_1 = require("commander");
|
|
8
|
+
function getClient() {
|
|
9
|
+
return new index_js_1.MessengerIntegrationClient({
|
|
10
|
+
secret: (0, env_js_1.getSECRET)(),
|
|
11
|
+
runAsUserId: (0, env_js_1.getRUNAS_USERID)(),
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
exports.messengerList = new commander_1.Command()
|
|
15
|
+
.name('list')
|
|
16
|
+
.description('List messenger integrations')
|
|
17
|
+
.option('-s, --stream', 'Stream messenger integrations')
|
|
18
|
+
.action(async (str, options) => {
|
|
19
|
+
const { stream } = options;
|
|
20
|
+
const client = getClient();
|
|
21
|
+
if (stream) {
|
|
22
|
+
for await (const messenger of client.list().stream()) {
|
|
23
|
+
(0, output_js_1.print)(messenger);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
const { items } = await client.list();
|
|
28
|
+
for (const messenger of items) {
|
|
29
|
+
(0, output_js_1.print)(messenger);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
exports.messengerFetch = new commander_1.Command()
|
|
34
|
+
.name('fetch')
|
|
35
|
+
.description('Fetch messenger integration')
|
|
36
|
+
.argument('<messengerId>', 'Messenger ID')
|
|
37
|
+
.action(async (messengerId) => {
|
|
38
|
+
const client = getClient();
|
|
39
|
+
const messenger = await client.fetch(messengerId);
|
|
40
|
+
(0, output_js_1.print)(messenger);
|
|
41
|
+
});
|
|
42
|
+
exports.messengerDelete = new commander_1.Command()
|
|
43
|
+
.name('delete')
|
|
44
|
+
.description('Delete messenger integration')
|
|
45
|
+
.argument('<messengerId>', 'Messenger ID')
|
|
46
|
+
.action(async (messengerId) => {
|
|
47
|
+
const client = getClient();
|
|
48
|
+
await client.delete(messengerId);
|
|
49
|
+
});
|
|
50
|
+
exports.messengerSetup = new commander_1.Command()
|
|
51
|
+
.name('setup')
|
|
52
|
+
.description('Setup messenger integration')
|
|
53
|
+
.argument('<messengerId>', 'Messenger ID')
|
|
54
|
+
.action(async (messengerId) => {
|
|
55
|
+
const client = getClient();
|
|
56
|
+
const result = await client.setup(messengerId);
|
|
57
|
+
(0, output_js_1.print)(result);
|
|
58
|
+
});
|
|
59
|
+
const commands = {
|
|
60
|
+
list: exports.messengerList,
|
|
61
|
+
fetch: exports.messengerFetch,
|
|
62
|
+
delete: exports.messengerDelete,
|
|
63
|
+
setup: exports.messengerSetup,
|
|
64
|
+
};
|
|
65
|
+
exports.command = new commander_1.Command()
|
|
66
|
+
.name('messenger')
|
|
67
|
+
.description('Messenger integration tools for ChatBotKit');
|
|
68
|
+
for (const cmd of Object.values(commands)) {
|
|
69
|
+
exports.command.addCommand(cmd);
|
|
70
|
+
}
|
|
71
|
+
exports.default = exports.command;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.command = exports.notionSync = exports.notionDelete = exports.notionFetch = exports.notionList = void 0;
|
|
4
|
+
const env_js_1 = require("../../../../env.cjs");
|
|
5
|
+
const output_js_1 = require("../../../../output.cjs");
|
|
6
|
+
const index_js_1 = require("@chatbotkit/sdk/integration/notion/index.js");
|
|
7
|
+
const commander_1 = require("commander");
|
|
8
|
+
function getClient() {
|
|
9
|
+
return new index_js_1.NotionIntegrationClient({
|
|
10
|
+
secret: (0, env_js_1.getSECRET)(),
|
|
11
|
+
runAsUserId: (0, env_js_1.getRUNAS_USERID)(),
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
exports.notionList = new commander_1.Command()
|
|
15
|
+
.name('list')
|
|
16
|
+
.description('List notion integrations')
|
|
17
|
+
.option('-s, --stream', 'Stream notion integrations')
|
|
18
|
+
.action(async (str, options) => {
|
|
19
|
+
const { stream } = options;
|
|
20
|
+
const client = getClient();
|
|
21
|
+
if (stream) {
|
|
22
|
+
for await (const notion of client.list().stream()) {
|
|
23
|
+
(0, output_js_1.print)(notion);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
const { items } = await client.list();
|
|
28
|
+
for (const notion of items) {
|
|
29
|
+
(0, output_js_1.print)(notion);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
exports.notionFetch = new commander_1.Command()
|
|
34
|
+
.name('fetch')
|
|
35
|
+
.description('Fetch notion integration')
|
|
36
|
+
.argument('<notionId>', 'Notion ID')
|
|
37
|
+
.action(async (notionId) => {
|
|
38
|
+
const client = getClient();
|
|
39
|
+
const notion = await client.fetch(notionId);
|
|
40
|
+
(0, output_js_1.print)(notion);
|
|
41
|
+
});
|
|
42
|
+
exports.notionDelete = new commander_1.Command()
|
|
43
|
+
.name('delete')
|
|
44
|
+
.description('Delete notion integration')
|
|
45
|
+
.argument('<notionId>', 'Notion ID')
|
|
46
|
+
.action(async (notionId) => {
|
|
47
|
+
const client = getClient();
|
|
48
|
+
await client.delete(notionId);
|
|
49
|
+
});
|
|
50
|
+
exports.notionSync = new commander_1.Command()
|
|
51
|
+
.name('sync')
|
|
52
|
+
.description('Sync notion integration')
|
|
53
|
+
.argument('<notionId>', 'Notion ID')
|
|
54
|
+
.action(async (notionId) => {
|
|
55
|
+
const client = getClient();
|
|
56
|
+
const result = await client.sync(notionId);
|
|
57
|
+
(0, output_js_1.print)(result);
|
|
58
|
+
});
|
|
59
|
+
const commands = {
|
|
60
|
+
list: exports.notionList,
|
|
61
|
+
fetch: exports.notionFetch,
|
|
62
|
+
delete: exports.notionDelete,
|
|
63
|
+
sync: exports.notionSync,
|
|
64
|
+
};
|
|
65
|
+
exports.command = new commander_1.Command()
|
|
66
|
+
.name('notion')
|
|
67
|
+
.description('Notion integration tools for ChatBotKit');
|
|
68
|
+
for (const cmd of Object.values(commands)) {
|
|
69
|
+
exports.command.addCommand(cmd);
|
|
70
|
+
}
|
|
71
|
+
exports.default = exports.command;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.command = exports.sitemapSync = exports.sitemapDelete = exports.sitemapFetch = exports.sitemapList = void 0;
|
|
4
|
+
const env_js_1 = require("../../../../env.cjs");
|
|
5
|
+
const output_js_1 = require("../../../../output.cjs");
|
|
6
|
+
const index_js_1 = require("@chatbotkit/sdk/integration/sitemap/index.js");
|
|
7
|
+
const commander_1 = require("commander");
|
|
8
|
+
function getClient() {
|
|
9
|
+
return new index_js_1.SitemapIntegrationClient({
|
|
10
|
+
secret: (0, env_js_1.getSECRET)(),
|
|
11
|
+
runAsUserId: (0, env_js_1.getRUNAS_USERID)(),
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
exports.sitemapList = new commander_1.Command()
|
|
15
|
+
.name('list')
|
|
16
|
+
.description('List sitemap integrations')
|
|
17
|
+
.option('-s, --stream', 'Stream sitemap integrations')
|
|
18
|
+
.action(async (str, options) => {
|
|
19
|
+
const { stream } = options;
|
|
20
|
+
const client = getClient();
|
|
21
|
+
if (stream) {
|
|
22
|
+
for await (const sitemap of client.list().stream()) {
|
|
23
|
+
(0, output_js_1.print)(sitemap);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
const { items } = await client.list();
|
|
28
|
+
for (const sitemap of items) {
|
|
29
|
+
(0, output_js_1.print)(sitemap);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
exports.sitemapFetch = new commander_1.Command()
|
|
34
|
+
.name('fetch')
|
|
35
|
+
.description('Fetch sitemap integration')
|
|
36
|
+
.argument('<sitemapId>', 'Sitemap ID')
|
|
37
|
+
.action(async (sitemapId) => {
|
|
38
|
+
const client = getClient();
|
|
39
|
+
const sitemap = await client.fetch(sitemapId);
|
|
40
|
+
(0, output_js_1.print)(sitemap);
|
|
41
|
+
});
|
|
42
|
+
exports.sitemapDelete = new commander_1.Command()
|
|
43
|
+
.name('delete')
|
|
44
|
+
.description('Delete sitemap integration')
|
|
45
|
+
.argument('<sitemapId>', 'Sitemap ID')
|
|
46
|
+
.action(async (sitemapId) => {
|
|
47
|
+
const client = getClient();
|
|
48
|
+
await client.delete(sitemapId);
|
|
49
|
+
});
|
|
50
|
+
exports.sitemapSync = new commander_1.Command()
|
|
51
|
+
.name('sync')
|
|
52
|
+
.description('Sync sitemap integration')
|
|
53
|
+
.argument('<sitemapId>', 'Sitemap ID')
|
|
54
|
+
.action(async (sitemapId) => {
|
|
55
|
+
const client = getClient();
|
|
56
|
+
const result = await client.sync(sitemapId);
|
|
57
|
+
(0, output_js_1.print)(result);
|
|
58
|
+
});
|
|
59
|
+
const commands = {
|
|
60
|
+
list: exports.sitemapList,
|
|
61
|
+
fetch: exports.sitemapFetch,
|
|
62
|
+
delete: exports.sitemapDelete,
|
|
63
|
+
sync: exports.sitemapSync,
|
|
64
|
+
};
|
|
65
|
+
exports.command = new commander_1.Command()
|
|
66
|
+
.name('sitemap')
|
|
67
|
+
.description('Sitemap integration tools for ChatBotKit');
|
|
68
|
+
for (const cmd of Object.values(commands)) {
|
|
69
|
+
exports.command.addCommand(cmd);
|
|
70
|
+
}
|
|
71
|
+
exports.default = exports.command;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.command = exports.slackSetup = exports.slackDelete = exports.slackFetch = exports.slackList = void 0;
|
|
4
|
+
const env_js_1 = require("../../../../env.cjs");
|
|
5
|
+
const output_js_1 = require("../../../../output.cjs");
|
|
6
|
+
const index_js_1 = require("@chatbotkit/sdk/integration/slack/index.js");
|
|
7
|
+
const commander_1 = require("commander");
|
|
8
|
+
function getClient() {
|
|
9
|
+
return new index_js_1.SlackIntegrationClient({
|
|
10
|
+
secret: (0, env_js_1.getSECRET)(),
|
|
11
|
+
runAsUserId: (0, env_js_1.getRUNAS_USERID)(),
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
exports.slackList = new commander_1.Command()
|
|
15
|
+
.name('list')
|
|
16
|
+
.description('List slack integrations')
|
|
17
|
+
.option('-s, --stream', 'Stream slack integrations')
|
|
18
|
+
.action(async (str, options) => {
|
|
19
|
+
const { stream } = options;
|
|
20
|
+
const client = getClient();
|
|
21
|
+
if (stream) {
|
|
22
|
+
for await (const slack of client.list().stream()) {
|
|
23
|
+
(0, output_js_1.print)(slack);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
const { items } = await client.list();
|
|
28
|
+
for (const slack of items) {
|
|
29
|
+
(0, output_js_1.print)(slack);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
exports.slackFetch = new commander_1.Command()
|
|
34
|
+
.name('fetch')
|
|
35
|
+
.description('Fetch slack integration')
|
|
36
|
+
.argument('<slackId>', 'Slack ID')
|
|
37
|
+
.action(async (slackId) => {
|
|
38
|
+
const client = getClient();
|
|
39
|
+
const slack = await client.fetch(slackId);
|
|
40
|
+
(0, output_js_1.print)(slack);
|
|
41
|
+
});
|
|
42
|
+
exports.slackDelete = new commander_1.Command()
|
|
43
|
+
.name('delete')
|
|
44
|
+
.description('Delete slack integration')
|
|
45
|
+
.argument('<slackId>', 'Slack ID')
|
|
46
|
+
.action(async (slackId) => {
|
|
47
|
+
const client = getClient();
|
|
48
|
+
await client.delete(slackId);
|
|
49
|
+
});
|
|
50
|
+
exports.slackSetup = new commander_1.Command()
|
|
51
|
+
.name('setup')
|
|
52
|
+
.description('Setup slack integration')
|
|
53
|
+
.argument('<slackId>', 'Slack ID')
|
|
54
|
+
.action(async (slackId) => {
|
|
55
|
+
const client = getClient();
|
|
56
|
+
const result = await client.setup(slackId);
|
|
57
|
+
(0, output_js_1.print)(result);
|
|
58
|
+
});
|
|
59
|
+
const commands = {
|
|
60
|
+
list: exports.slackList,
|
|
61
|
+
fetch: exports.slackFetch,
|
|
62
|
+
delete: exports.slackDelete,
|
|
63
|
+
setup: exports.slackSetup,
|
|
64
|
+
};
|
|
65
|
+
exports.command = new commander_1.Command()
|
|
66
|
+
.name('slack')
|
|
67
|
+
.description('Slack integration tools for ChatBotKit');
|
|
68
|
+
for (const cmd of Object.values(commands)) {
|
|
69
|
+
exports.command.addCommand(cmd);
|
|
70
|
+
}
|
|
71
|
+
exports.default = exports.command;
|