@activepieces/piece-docsbot 0.1.4 → 0.1.6

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/README.md DELETED
@@ -1,7 +0,0 @@
1
- # pieces-docsbot
2
-
3
- This library was generated with [Nx](https://nx.dev).
4
-
5
- ## Building
6
-
7
- Run `nx build pieces-docsbot` to build the library.
package/src/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const docsbot: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").SecretTextProperty<true>>;
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/docsbot/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA6D;AAC7D,6DAAyD;AACzD,yDAAqD;AACrD,+DAA2D;AAC3D,qDAAiD;AACjD,yEAAoE;AACpE,yCAA0D;AAC1D,+DAAwE;AACxE,iDAAqD;AAExC,QAAA,OAAO,GAAG,IAAA,8BAAW,EAAC;IACjC,WAAW,EAAE,SAAS;IACtB,WAAW,EACT,6NAA6N;IAC/N,IAAI,EAAE,oBAAW;IACjB,uBAAuB,EAAE,QAAQ;IACjC,UAAU,EAAC,CAAC,sBAAa,CAAC,uBAAuB,EAAC,sBAAa,CAAC,YAAY,CAAC;IAC7E,OAAO,EAAE,iDAAiD;IAC1D,OAAO,EAAE,CAAC,SAAS,CAAC;IACpB,OAAO,EAAE;QACP,0BAAW;QACX,4BAAY;QACZ,qCAAgB;QAChB,sBAAS;QACT,kBAAO;QACP,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,sBAAa,CAAC,OAAO;YACpC,IAAI,EAAE,oBAAW;YACjB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,OAAO;oBACL,aAAa,EAAE,UAAU,IAAI,EAAE;iBAChC,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -1,17 +0,0 @@
1
- export declare const askQuestion: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
- botId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- question: import("@activepieces/pieces-framework").LongTextProperty<true>;
5
- metadata: import("@activepieces/pieces-framework").ObjectProperty<false>;
6
- context_items: import("@activepieces/pieces-framework").NumberProperty<false>;
7
- human_escalation: import("@activepieces/pieces-framework").CheckboxProperty<false>;
8
- followup_rating: import("@activepieces/pieces-framework").CheckboxProperty<false>;
9
- document_retriever: import("@activepieces/pieces-framework").CheckboxProperty<false>;
10
- full_source: import("@activepieces/pieces-framework").CheckboxProperty<false>;
11
- autocut: import("@activepieces/pieces-framework").NumberProperty<false>;
12
- testing: import("@activepieces/pieces-framework").CheckboxProperty<false>;
13
- image_urls: import("@activepieces/pieces-framework").ArrayProperty<false>;
14
- model: import("@activepieces/pieces-framework").ShortTextProperty<false>;
15
- default_language: import("@activepieces/pieces-framework").ShortTextProperty<false>;
16
- reasoning_effort: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
17
- }>;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.askQuestion = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_common_1 = require("@activepieces/pieces-common");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const common_1 = require("../common");
8
- exports.askQuestion = (0, pieces_framework_1.createAction)({
9
- auth: common_1.docsbotAuth,
10
- name: 'askQuestion',
11
- displayName: 'Ask Question',
12
- description: 'Ask a question to a specific bot in a specific team.',
13
- props: common_1.docsbotCommon.askQuestionProperties(),
14
- run(_a) {
15
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth: apiKey, propsValue }) {
16
- yield pieces_common_1.propsValidation.validateZod(propsValue, common_1.docsbotCommon.askQuestionSchema);
17
- const { image_urls } = propsValue, restProps = tslib_1.__rest(propsValue, ["image_urls"]);
18
- const conversationId = crypto.randomUUID();
19
- return yield common_1.docsbotCommon.askQuestion(Object.assign({ apiKey, image_urls: Array.isArray(image_urls)
20
- ? image_urls
21
- : undefined, conversationId }, (restProps)));
22
- });
23
- },
24
- });
25
- //# sourceMappingURL=ask-question.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ask-question.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/docsbot/src/lib/actions/ask-question.ts"],"names":[],"mappings":";;;;AAAA,+DAA8D;AAC9D,qEAA8D;AAC9D,sCAAuD;AAE1C,QAAA,WAAW,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,oBAAW;IACjB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,sDAAsD;IACnE,KAAK,EAAE,sBAAa,CAAC,qBAAqB,EAAE;IACtC,GAAG;qEAAC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE;YACpC,MAAM,+BAAe,CAAC,WAAW,CAAC,UAAU,EAAE,sBAAa,CAAC,iBAAiB,CAAC,CAAC;YAE/E,MAAM,EAAE,UAAU,KAAmB,UAAU,EAAxB,SAAS,kBAAK,UAAU,EAAzC,cAA4B,CAAa,CAAC;YAChD,MAAM,cAAc,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;YAC3C,OAAO,MAAM,sBAAa,CAAC,WAAW,iBACpC,MAAM,EACN,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;oBACrC,CAAC,CAAE,UAAmC;oBACtC,CAAC,CAAC,SAAS,EACX,cAAc,IACX,CAAC,SAAS,CAAC,EACd,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- export declare const createBot: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
- name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- description: import("@activepieces/pieces-framework").LongTextProperty<true>;
5
- privacy: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
6
- language: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
7
- model: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
8
- embeddingModel: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
9
- copyFrom: import("@activepieces/pieces-framework").ShortTextProperty<false>;
10
- }>;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createBot = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_common_1 = require("@activepieces/pieces-common");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const common_1 = require("../common");
8
- exports.createBot = (0, pieces_framework_1.createAction)({
9
- auth: common_1.docsbotAuth,
10
- name: 'createBot',
11
- displayName: 'Create Bot',
12
- description: 'Creates a new bot.',
13
- props: common_1.docsbotCommon.createBotProperties(),
14
- run(_a) {
15
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth: apiKey, propsValue }) {
16
- yield pieces_common_1.propsValidation.validateZod(propsValue, common_1.docsbotCommon.createBotSchema);
17
- return yield common_1.docsbotCommon.createBot(Object.assign(Object.assign({ apiKey }, propsValue), { language: propsValue.language, privacy: propsValue.privacy, model: propsValue.model, embeddingModel: propsValue.embeddingModel }));
18
- });
19
- },
20
- });
21
- //# sourceMappingURL=create-bot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-bot.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/docsbot/src/lib/actions/create-bot.ts"],"names":[],"mappings":";;;;AAAA,+DAA8D;AAC9D,qEAA8D;AAC9D,sCAAuD;AAE1C,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,oBAAW;IACjB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,oBAAoB;IACjC,KAAK,EAAE,sBAAa,CAAC,mBAAmB,EAAE;IACpC,GAAG;qEAAC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE;YACpC,MAAM,+BAAe,CAAC,WAAW,CAAC,UAAU,EAAE,sBAAa,CAAC,eAAe,CAAC,CAAC;YAE7E,OAAO,MAAM,sBAAa,CAAC,SAAS,+BAClC,MAAM,IACH,UAAU,KACb,QAAQ,EAAE,UAAU,CAAC,QAAuB,EAC5C,OAAO,EAAE,UAAU,CAAC,OAA+B,EACnD,KAAK,EAAE,UAAU,CAAC,KAA6B,EAC/C,cAAc,EAAE,UAAU,CAAC,cAMd,IACb,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare const createSource: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
- botId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
5
- sourceProperties: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
6
- }>;
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSource = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const zod_1 = tslib_1.__importDefault(require("zod"));
7
- const common_1 = require("../common");
8
- exports.createSource = (0, pieces_framework_1.createAction)({
9
- auth: common_1.docsbotAuth,
10
- name: 'createSource',
11
- displayName: 'Create Source',
12
- description: 'Create a new source for a bot.',
13
- props: common_1.docsbotCommon.createSourceProperties(),
14
- run(_a) {
15
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth: apiKey, propsValue }) {
16
- // Some fields are conditionally required, so we need to use Zod validation manually here
17
- const { sourceProperties } = propsValue, props = tslib_1.__rest(propsValue, ["sourceProperties"]);
18
- const parsedProps = Object.assign(Object.assign({}, props), sourceProperties);
19
- try {
20
- yield common_1.docsbotCommon.createSourceSchema.parseAsync(parsedProps);
21
- }
22
- catch (error) {
23
- if (error instanceof zod_1.default.ZodError) {
24
- const errors = error.issues.reduce((acc, err) => {
25
- const path = err.path.join('.');
26
- return Object.assign(Object.assign({}, acc), { [path]: err.message });
27
- }, {});
28
- throw new Error(JSON.stringify({ errors }, null, 2));
29
- }
30
- throw error;
31
- }
32
- const { faqs } = parsedProps, restProps = tslib_1.__rest(parsedProps, ["faqs"]);
33
- return yield common_1.docsbotCommon.createSource(Object.assign(Object.assign({ apiKey }, restProps), { faqs: faqs }));
34
- });
35
- },
36
- });
37
- //# sourceMappingURL=create-source.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-source.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/docsbot/src/lib/actions/create-source.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,sDAAoB;AACpB,sCAAuD;AAG1C,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,oBAAW;IACjB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,gCAAgC;IAC7C,KAAK,EAAE,sBAAa,CAAC,sBAAsB,EAAE;IACvC,GAAG;qEAAC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE;YACpC,yFAAyF;YACzF,MAAM,EAAE,gBAAgB,KAAe,UAAU,EAApB,KAAK,kBAAK,UAAU,EAA3C,oBAA8B,CAAa,CAAC;YAClD,MAAM,WAAW,mCACZ,KAAK,GACL,gBAAgB,CACpB,CAAC;YACF,IAAI,CAAC;gBACH,MAAM,sBAAa,CAAC,kBAAkB,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YACjE,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,KAAK,YAAY,aAAC,CAAC,QAAQ,EAAE,CAAC;oBAChC,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAA2B,EAAE,GAAe,EAAE,EAAE;wBAClF,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;wBAChC,uCACK,GAAG,KACN,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,IACnB;oBACJ,CAAC,EAAE,EAAE,CAAC,CAAC;oBACP,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;gBACvD,CAAC;gBACD,MAAM,KAAK,CAAC;YACd,CAAC;YAED,MAAM,EAAE,IAAI,KAAmB,WAAW,EAAzB,SAAS,kBAAK,WAAW,EAApC,QAAsB,CAAc,CAAC;YAE3C,OAAO,MAAM,sBAAa,CAAC,YAAY,+BACrC,MAAM,IACH,SAAS,KACZ,IAAI,EAAE,IAA0D,IAChE,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const findBot: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
- name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- }>;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.findBot = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_common_1 = require("@activepieces/pieces-common");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const common_1 = require("../common");
8
- exports.findBot = (0, pieces_framework_1.createAction)({
9
- auth: common_1.docsbotAuth,
10
- name: 'findBot',
11
- displayName: 'Find Bot',
12
- description: 'Finds bot by name.',
13
- props: common_1.docsbotCommon.findBotProperties(),
14
- run(_a) {
15
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth: apiKey, propsValue }) {
16
- yield pieces_common_1.propsValidation.validateZod(propsValue, common_1.docsbotCommon.findBotSchema);
17
- const { teamId, name } = propsValue;
18
- const teamBots = yield common_1.docsbotCommon.listBots({
19
- apiKey,
20
- teamId,
21
- });
22
- const needle = (name !== null && name !== void 0 ? name : '').trim().toLowerCase();
23
- // Try to find case-insensitive and partial match
24
- const bot = teamBots.filter((bot) => { var _a; return ((_a = bot.name) !== null && _a !== void 0 ? _a : '').toLowerCase().includes(needle); });
25
- if (bot.length === 0) {
26
- throw new Error(`No bot found with a name containing "${name}" in the selected team.`);
27
- }
28
- return bot;
29
- });
30
- },
31
- });
32
- //# sourceMappingURL=find-bot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-bot.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/docsbot/src/lib/actions/find-bot.ts"],"names":[],"mappings":";;;;AAAA,+DAA8D;AAC9D,qEAA8D;AAC9D,sCAAuD;AAE1C,QAAA,OAAO,GAAG,IAAA,+BAAY,EAAC;IAClC,IAAI,EAAE,oBAAW;IACjB,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,oBAAoB;IACjC,KAAK,EAAE,sBAAa,CAAC,iBAAiB,EAAE;IAClC,GAAG;qEAAC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE;YACpC,MAAM,+BAAe,CAAC,WAAW,CAAC,UAAU,EAAE,sBAAa,CAAC,aAAa,CAAC,CAAC;YAE3E,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC;YACpC,MAAM,QAAQ,GAAG,MAAM,sBAAa,CAAC,QAAQ,CAAC;gBAC5C,MAAM;gBACN,MAAM;aACP,CAAC,CAAC;YACH,MAAM,MAAM,GAAG,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;YACjD,iDAAiD;YACjD,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,WAClC,OAAA,CAAC,MAAA,GAAG,CAAC,IAAI,mCAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA,EAAA,CAChD,CAAC;YAEF,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACrB,MAAM,IAAI,KAAK,CACb,wCAAwC,IAAI,yBAAyB,CACtE,CAAC;YACJ,CAAC;YAED,OAAO,GAAG,CAAC;QACb,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const uploadSourceFile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
- botId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- file: import("@activepieces/pieces-framework").FileProperty<true>;
5
- }>;
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.uploadSourceFile = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_common_1 = require("@activepieces/pieces-common");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const common_1 = require("../common");
8
- exports.uploadSourceFile = (0, pieces_framework_1.createAction)({
9
- auth: common_1.docsbotAuth,
10
- name: 'uploadSourceFile',
11
- displayName: 'Upload Source File',
12
- description: 'Upload a file to be used as a source.',
13
- props: common_1.docsbotCommon.uploadSourceFileProperties(),
14
- run(_a) {
15
- return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth: apiKey, propsValue }) {
16
- console.log("file:", propsValue.file, typeof propsValue.file);
17
- yield pieces_common_1.propsValidation.validateZod(propsValue, common_1.docsbotCommon.uploadSourceFileSchema);
18
- const { botId, file, teamId } = propsValue;
19
- const presignedUrl = yield common_1.docsbotCommon.createPresignedFileUploadURL({
20
- apiKey,
21
- teamId,
22
- botId,
23
- fileName: file.filename,
24
- });
25
- yield common_1.docsbotCommon.uploadFileToCloudStorage({
26
- uploadUrl: presignedUrl.url,
27
- file: file.data,
28
- });
29
- return presignedUrl;
30
- });
31
- },
32
- });
33
- //# sourceMappingURL=upload-source-file.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upload-source-file.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/docsbot/src/lib/actions/upload-source-file.ts"],"names":[],"mappings":";;;;AAAA,+DAA8D;AAC9D,qEAA8D;AAC9D,sCAAuD;AAE1C,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,oBAAW;IACjB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,oBAAoB;IACjC,WAAW,EAAE,uCAAuC;IACpD,KAAK,EAAE,sBAAa,CAAC,0BAA0B,EAAE;IAC3C,GAAG;qEAAC,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE;YACpC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,EAAE,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;YAC9D,MAAM,+BAAe,CAAC,WAAW,CAC/B,UAAU,EACV,sBAAa,CAAC,sBAAsB,CACrC,CAAC;YAEF,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC;YAC3C,MAAM,YAAY,GAAG,MAAM,sBAAa,CAAC,4BAA4B,CAAC;gBACpE,MAAM;gBACN,MAAM;gBACN,KAAK;gBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACxB,CAAC,CAAC;YACH,MAAM,sBAAa,CAAC,wBAAwB,CAAC;gBAC3C,SAAS,EAAE,YAAY,CAAC,GAAG;gBAC3B,IAAI,EAAE,IAAI,CAAC,IAAI;aAChB,CAAC,CAAC;YACH,OAAO,YAAY,CAAC;QACtB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,145 +0,0 @@
1
- import { askQuestionRequestParams, Bot, createBotRequestParams, createSourceRequestParams, listBotsParams, PresignedUpdateUrlResponse, Team, createSourceUrlParams as teamAndBotUrlParams, uploadSourceFileRequestParams, uploadToCloudStorageParams } from './types';
2
- export declare const docsbotAuth: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- export declare const docsbotCommon: {
4
- baseUrl: string;
5
- endpoints: {
6
- askQuestion: ({ teamId, botId }: teamAndBotUrlParams) => string;
7
- createSource: ({ teamId, botId }: teamAndBotUrlParams) => string;
8
- createBot: (teamId: string) => string;
9
- createPresignedFileUploadURL: ({ teamId, botId }: teamAndBotUrlParams) => string;
10
- listTeams: () => string;
11
- listBots: (teamId: string) => string;
12
- };
13
- askQuestionProperties: () => {
14
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
15
- botId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
16
- question: import("@activepieces/pieces-framework").LongTextProperty<true>;
17
- metadata: import("@activepieces/pieces-framework").ObjectProperty<false>;
18
- context_items: import("@activepieces/pieces-framework").NumberProperty<false>;
19
- human_escalation: import("@activepieces/pieces-framework").CheckboxProperty<false>;
20
- followup_rating: import("@activepieces/pieces-framework").CheckboxProperty<false>;
21
- document_retriever: import("@activepieces/pieces-framework").CheckboxProperty<false>;
22
- full_source: import("@activepieces/pieces-framework").CheckboxProperty<false>;
23
- autocut: import("@activepieces/pieces-framework").NumberProperty<false>;
24
- testing: import("@activepieces/pieces-framework").CheckboxProperty<false>;
25
- image_urls: import("@activepieces/pieces-framework").ArrayProperty<false>;
26
- model: import("@activepieces/pieces-framework").ShortTextProperty<false>;
27
- default_language: import("@activepieces/pieces-framework").ShortTextProperty<false>;
28
- reasoning_effort: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
29
- };
30
- createSourceProperties: () => {
31
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
32
- botId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
33
- type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
34
- sourceProperties: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
35
- };
36
- uploadSourceFileProperties: () => {
37
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
38
- botId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
39
- file: import("@activepieces/pieces-framework").FileProperty<true>;
40
- };
41
- createBotProperties: () => {
42
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
43
- name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
44
- description: import("@activepieces/pieces-framework").LongTextProperty<true>;
45
- privacy: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
46
- language: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
47
- model: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
48
- embeddingModel: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
49
- copyFrom: import("@activepieces/pieces-framework").ShortTextProperty<false>;
50
- };
51
- findBotProperties: () => {
52
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
53
- name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
54
- };
55
- askQuestionSchema: {
56
- teamId: import("zod").ZodString;
57
- botId: import("zod").ZodString;
58
- question: import("zod").ZodString;
59
- metadata: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$strip>>;
60
- context_items: import("zod").ZodOptional<import("zod").ZodNumber>;
61
- human_escalation: import("zod").ZodOptional<import("zod").ZodBoolean>;
62
- followup_rating: import("zod").ZodOptional<import("zod").ZodBoolean>;
63
- document_retriever: import("zod").ZodOptional<import("zod").ZodBoolean>;
64
- full_source: import("zod").ZodOptional<import("zod").ZodBoolean>;
65
- autocut: import("zod").ZodOptional<import("zod").ZodNumber>;
66
- testing: import("zod").ZodOptional<import("zod").ZodBoolean>;
67
- image_urls: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
68
- model: import("zod").ZodOptional<import("zod").ZodString>;
69
- default_language: import("zod").ZodOptional<import("zod").ZodString>;
70
- reasoning_effort: import("zod").ZodOptional<import("zod").ZodEnum<{
71
- minimal: "minimal";
72
- low: "low";
73
- medium: "medium";
74
- high: "high";
75
- }>>;
76
- };
77
- createSourceSchema: import("zod").ZodObject<{
78
- type: import("zod").ZodEnum<{
79
- url: "url";
80
- document: "document";
81
- sitemap: "sitemap";
82
- wp: "wp";
83
- urls: "urls";
84
- csv: "csv";
85
- rss: "rss";
86
- qa: "qa";
87
- youtube: "youtube";
88
- }>;
89
- title: import("zod").ZodOptional<import("zod").ZodString>;
90
- url: import("zod").ZodOptional<import("zod").ZodString>;
91
- file: import("zod").ZodOptional<import("zod").ZodString>;
92
- faqs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
93
- question: import("zod").ZodString;
94
- answer: import("zod").ZodString;
95
- }, import("zod/v4/core").$strip>>>;
96
- scheduleInterval: import("zod").ZodOptional<import("zod").ZodEnum<{
97
- daily: "daily";
98
- weekly: "weekly";
99
- monthly: "monthly";
100
- none: "none";
101
- }>>;
102
- }, import("zod/v4/core").$strip>;
103
- uploadSourceFileSchema: {
104
- teamId: import("zod").ZodString;
105
- botId: import("zod").ZodString;
106
- file: import("zod").ZodObject<{
107
- filename: import("zod").ZodString;
108
- data: import("zod").ZodCustom<Buffer, Buffer>;
109
- extension: import("zod").ZodOptional<import("zod").ZodString>;
110
- }, import("zod/v4/core").$strip>;
111
- };
112
- createBotSchema: {
113
- teamId: import("zod").ZodString;
114
- name: import("zod").ZodString;
115
- description: import("zod").ZodString;
116
- privacy: import("zod").ZodEnum<{
117
- public: "public";
118
- private: "private";
119
- }>;
120
- language: import("zod").ZodEnum<{
121
- en: "en";
122
- jp: "jp";
123
- }>;
124
- model: import("zod").ZodOptional<import("zod").ZodString>;
125
- embeddingModel: import("zod").ZodOptional<import("zod").ZodEnum<{
126
- "text-embedding-ada-002": "text-embedding-ada-002";
127
- "text-embedding-3-large": "text-embedding-3-large";
128
- "text-embedding-3-small": "text-embedding-3-small";
129
- "embed-multilingual-v3.0": "embed-multilingual-v3.0";
130
- "embed-v4.0": "embed-v4.0";
131
- }>>;
132
- copyFrom: import("zod").ZodOptional<import("zod").ZodString>;
133
- };
134
- findBotSchema: {
135
- teamId: import("zod").ZodString;
136
- name: import("zod").ZodString;
137
- };
138
- askQuestion: ({ apiKey, teamId, botId, ...chatParams }: askQuestionRequestParams) => Promise<any>;
139
- createSource: ({ apiKey, teamId, botId, ...sourceParams }: createSourceRequestParams) => Promise<any>;
140
- createBot: ({ apiKey, teamId, ...botParams }: createBotRequestParams) => Promise<any>;
141
- createPresignedFileUploadURL: ({ apiKey, teamId, botId, fileName, }: uploadSourceFileRequestParams) => Promise<PresignedUpdateUrlResponse>;
142
- uploadFileToCloudStorage: ({ uploadUrl, file, }: uploadToCloudStorageParams) => Promise<any>;
143
- listBots: ({ apiKey, teamId }: listBotsParams) => Promise<Bot[]>;
144
- listTeams: (apiKey: string) => Promise<Team[]>;
145
- };
@@ -1,122 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.docsbotCommon = exports.docsbotAuth = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_common_1 = require("@activepieces/pieces-common");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const properties = tslib_1.__importStar(require("./properties"));
8
- const schemas = tslib_1.__importStar(require("./schemas"));
9
- exports.docsbotAuth = pieces_framework_1.PieceAuth.SecretText({
10
- displayName: 'API Key',
11
- required: true,
12
- description: 'The API key for authenticating with DocsBot.',
13
- });
14
- exports.docsbotCommon = {
15
- // API Info
16
- baseUrl: 'https://docsbot.ai/api',
17
- endpoints: {
18
- askQuestion: ({ teamId, botId }) => `https://api.docsbot.ai/teams/${teamId}/bots/${botId}/chat-agent`,
19
- createSource: ({ teamId, botId }) => `${exports.docsbotCommon.baseUrl}/teams/${teamId}/bots/${botId}/sources`,
20
- createBot: (teamId) => `${exports.docsbotCommon.baseUrl}/teams/${teamId}/bots`,
21
- createPresignedFileUploadURL: ({ teamId, botId }) => `${exports.docsbotCommon.baseUrl}/teams/${teamId}/bots/${botId}/upload-url`,
22
- listTeams: () => `${exports.docsbotCommon.baseUrl}/teams`,
23
- listBots: (teamId) => `${exports.docsbotCommon.baseUrl}/teams/${teamId}/bots`,
24
- },
25
- // Properties
26
- askQuestionProperties: properties.askQuestion,
27
- createSourceProperties: properties.createSource,
28
- uploadSourceFileProperties: properties.uploadSourceFile,
29
- createBotProperties: properties.createBot,
30
- findBotProperties: properties.findBot,
31
- // Schemas
32
- askQuestionSchema: schemas.askQuestion,
33
- createSourceSchema: schemas.createSource,
34
- uploadSourceFileSchema: schemas.uploadSourceFile,
35
- createBotSchema: schemas.createBot,
36
- findBotSchema: schemas.findBot,
37
- // Methods
38
- askQuestion: (_a) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
39
- var { apiKey, teamId, botId } = _a, chatParams = tslib_1.__rest(_a, ["apiKey", "teamId", "botId"]);
40
- const response = yield pieces_common_1.httpClient.sendRequest({
41
- method: pieces_common_1.HttpMethod.POST,
42
- url: exports.docsbotCommon.endpoints.askQuestion({ teamId, botId }),
43
- headers: {
44
- Authorization: `Bearer ${apiKey.secret_text}`,
45
- },
46
- body: Object.assign({}, chatParams),
47
- });
48
- return response.body;
49
- }),
50
- createSource: (_a) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
51
- var { apiKey, teamId, botId } = _a, sourceParams = tslib_1.__rest(_a, ["apiKey", "teamId", "botId"]);
52
- const response = yield pieces_common_1.httpClient.sendRequest({
53
- method: pieces_common_1.HttpMethod.POST,
54
- url: exports.docsbotCommon.endpoints.createSource({
55
- teamId: teamId,
56
- botId: botId,
57
- }),
58
- headers: {
59
- Authorization: `Bearer ${apiKey.secret_text}`,
60
- },
61
- body: Object.assign({}, sourceParams),
62
- });
63
- return response.body;
64
- }),
65
- createBot: (_a) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
66
- var { apiKey, teamId } = _a, botParams = tslib_1.__rest(_a, ["apiKey", "teamId"]);
67
- const response = yield pieces_common_1.httpClient.sendRequest({
68
- method: pieces_common_1.HttpMethod.POST,
69
- url: exports.docsbotCommon.endpoints.createBot(teamId),
70
- headers: {
71
- Authorization: `Bearer ${apiKey.secret_text}`,
72
- },
73
- body: Object.assign({}, botParams),
74
- });
75
- return response.body;
76
- }),
77
- createPresignedFileUploadURL: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ apiKey, teamId, botId, fileName, }) {
78
- const response = yield pieces_common_1.httpClient.sendRequest({
79
- method: pieces_common_1.HttpMethod.GET,
80
- url: exports.docsbotCommon.endpoints.createPresignedFileUploadURL({
81
- teamId,
82
- botId,
83
- }) + `?fileName=${encodeURIComponent(fileName)}`,
84
- headers: {
85
- Authorization: `Bearer ${apiKey.secret_text}`,
86
- },
87
- });
88
- return response.body;
89
- }),
90
- uploadFileToCloudStorage: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ uploadUrl, file, }) {
91
- const response = yield pieces_common_1.httpClient.sendRequest({
92
- method: pieces_common_1.HttpMethod.PUT,
93
- url: uploadUrl,
94
- headers: {
95
- 'Content-Type': 'application/octet-stream',
96
- },
97
- body: file,
98
- });
99
- return response.body;
100
- }),
101
- listBots: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ apiKey, teamId }) {
102
- const resonse = yield pieces_common_1.httpClient.sendRequest({
103
- method: pieces_common_1.HttpMethod.GET,
104
- url: exports.docsbotCommon.endpoints.listBots(teamId),
105
- headers: {
106
- Authorization: `Bearer ${apiKey.secret_text}`,
107
- },
108
- });
109
- return resonse.body;
110
- }),
111
- listTeams: (apiKey) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
112
- const response = yield pieces_common_1.httpClient.sendRequest({
113
- method: pieces_common_1.HttpMethod.GET,
114
- url: exports.docsbotCommon.endpoints.listTeams(),
115
- headers: {
116
- Authorization: `Bearer ${apiKey}`,
117
- },
118
- });
119
- return response.body;
120
- }),
121
- };
122
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/docsbot/src/lib/common/index.ts"],"names":[],"mappings":"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"}
@@ -1,42 +0,0 @@
1
- export declare const askQuestion: () => {
2
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
3
- botId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
4
- question: import("@activepieces/pieces-framework").LongTextProperty<true>;
5
- metadata: import("@activepieces/pieces-framework").ObjectProperty<false>;
6
- context_items: import("@activepieces/pieces-framework").NumberProperty<false>;
7
- human_escalation: import("@activepieces/pieces-framework").CheckboxProperty<false>;
8
- followup_rating: import("@activepieces/pieces-framework").CheckboxProperty<false>;
9
- document_retriever: import("@activepieces/pieces-framework").CheckboxProperty<false>;
10
- full_source: import("@activepieces/pieces-framework").CheckboxProperty<false>;
11
- autocut: import("@activepieces/pieces-framework").NumberProperty<false>;
12
- testing: import("@activepieces/pieces-framework").CheckboxProperty<false>;
13
- image_urls: import("@activepieces/pieces-framework").ArrayProperty<false>;
14
- model: import("@activepieces/pieces-framework").ShortTextProperty<false>;
15
- default_language: import("@activepieces/pieces-framework").ShortTextProperty<false>;
16
- reasoning_effort: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
17
- };
18
- export declare const createSource: () => {
19
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
20
- botId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
21
- type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
22
- sourceProperties: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
23
- };
24
- export declare const uploadSourceFile: () => {
25
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
26
- botId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
27
- file: import("@activepieces/pieces-framework").FileProperty<true>;
28
- };
29
- export declare const createBot: () => {
30
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
31
- name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
32
- description: import("@activepieces/pieces-framework").LongTextProperty<true>;
33
- privacy: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
34
- language: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
35
- model: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
36
- embeddingModel: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
37
- copyFrom: import("@activepieces/pieces-framework").ShortTextProperty<false>;
38
- };
39
- export declare const findBot: () => {
40
- teamId: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
41
- name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
42
- };