@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.
@@ -1,288 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.findBot = exports.createBot = exports.uploadSourceFile = exports.createSource = exports.askQuestion = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const _1 = require(".");
7
- // Base reusable properties
8
- const teamProperty = ({ displayName, description, }) => pieces_framework_1.Property.Dropdown({
9
- auth: _1.docsbotAuth,
10
- displayName: displayName || 'Team',
11
- description: description || 'The team to use.',
12
- required: true,
13
- refreshers: ['auth'],
14
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
15
- if (!auth) {
16
- return {
17
- disabled: true,
18
- placeholder: 'Please connect your account first.',
19
- options: [],
20
- };
21
- }
22
- const teams = yield _1.docsbotCommon.listTeams(auth.secret_text);
23
- return {
24
- options: teams.map((team) => ({
25
- label: team.name,
26
- value: team.id,
27
- })),
28
- };
29
- }),
30
- });
31
- const botProperty = ({ displayName, description, }) => pieces_framework_1.Property.ShortText({
32
- displayName: displayName || 'Bot',
33
- description: description || 'The bot to use.',
34
- required: true,
35
- });
36
- // Action properties
37
- const askQuestion = () => ({
38
- teamId: teamProperty({}),
39
- botId: botProperty({}),
40
- question: pieces_framework_1.Property.LongText({
41
- displayName: 'Question',
42
- required: true,
43
- description: 'The question to ask the bot. 2 to 500 characters. Max increased to 8K tokens (roughtly 32k chars) when authenticated.',
44
- }),
45
- metadata: pieces_framework_1.Property.Object({
46
- displayName: 'Metadata',
47
- description: 'A user identification object with arbitrary metadata about the user. Will be saved to the question and conversation. Keys referrer, email, and name are shown in question history logs. Optional, defaults to null.',
48
- required: false,
49
- }),
50
- context_items: pieces_framework_1.Property.Number({
51
- displayName: 'Context Items',
52
- description: 'Number of sources to lookup for the bot to answer from. Optional, default is 5. Research mode uses 16 (more expensive token usage).',
53
- required: false,
54
- }),
55
- human_escalation: pieces_framework_1.Property.Checkbox({
56
- displayName: 'Human Escalation',
57
- description: 'Whether to enable human escalation for this question. Optional, default is false.',
58
- required: false,
59
- }),
60
- followup_rating: pieces_framework_1.Property.Checkbox({
61
- displayName: 'Follow-up Rating',
62
- description: 'Whether to ask the user for a follow-up rating after the question is answered. Optional, default is false.',
63
- required: false,
64
- }),
65
- document_retriever: pieces_framework_1.Property.Checkbox({
66
- displayName: 'Document Retriever',
67
- description: 'Whether to use the document retriever for this question. Optional, default is false.',
68
- required: false,
69
- }),
70
- full_source: pieces_framework_1.Property.Checkbox({
71
- displayName: 'Full Source',
72
- description: 'Whether to return the full source content in the response. Optional, default is false.',
73
- required: false,
74
- }),
75
- autocut: pieces_framework_1.Property.Number({
76
- displayName: 'Autocut',
77
- description: 'Autocut results to num groups. Optional, defaults to false.',
78
- required: false,
79
- }),
80
- testing: pieces_framework_1.Property.Checkbox({
81
- displayName: 'Testing',
82
- description: 'Whether the request is for testing purposes. Optional, defaults to false.',
83
- required: false,
84
- }),
85
- image_urls: pieces_framework_1.Property.Array({
86
- displayName: 'Image URLs',
87
- description: 'List of image URLs to include with the question as context. Optional, defaults to null.',
88
- required: false,
89
- }),
90
- model: pieces_framework_1.Property.ShortText({
91
- displayName: 'Model',
92
- description: 'Override the model used for this request. Requires an OpenAI API key to be set on your team. Optional, defaults to the model configured for the bot.',
93
- required: false,
94
- }),
95
- default_language: pieces_framework_1.Property.ShortText({
96
- displayName: 'Default Language',
97
- description: "The default language to use if the language of the conversation is unclear. Use locale codes like 'en' or 'en-US'. Optional, defaults to the bot's configured language.",
98
- required: false,
99
- }),
100
- reasoning_effort: pieces_framework_1.Property.StaticDropdown({
101
- displayName: 'Reasoning Effort',
102
- description: 'Reasoning depth for the response. Requires authentication to override default.',
103
- required: false,
104
- options: {
105
- options: [
106
- { label: 'Minimal', value: 'minimal' },
107
- { label: 'Low', value: 'low' },
108
- { label: 'Medium', value: 'medium' },
109
- { label: 'High', value: 'high' },
110
- ],
111
- },
112
- }),
113
- });
114
- exports.askQuestion = askQuestion;
115
- const createSource = () => ({
116
- teamId: teamProperty({}),
117
- botId: botProperty({}),
118
- type: pieces_framework_1.Property.StaticDropdown({
119
- displayName: 'Type',
120
- description: 'Can be url, document, sitemap, wp, urls, csv, rss, qa, youtube. All but url, sitemap, and youtube require uploading a formatted file.',
121
- required: true,
122
- options: {
123
- options: [
124
- { label: 'URL', value: 'url' },
125
- { label: 'Document', value: 'document' },
126
- { label: 'Sitemap', value: 'sitemap' },
127
- { label: 'WP', value: 'wp' },
128
- { label: 'Multiple URLs', value: 'urls' },
129
- { label: 'CSV', value: 'csv' },
130
- { label: 'RSS', value: 'rss' },
131
- { label: 'Q&A', value: 'qa' },
132
- { label: 'YouTube', value: 'youtube' },
133
- ],
134
- },
135
- }),
136
- sourceProperties: pieces_framework_1.Property.DynamicProperties({
137
- auth: _1.docsbotAuth,
138
- displayName: 'Source Properties',
139
- description: 'Create Source Properties',
140
- required: true,
141
- refreshers: ['auth', 'type'],
142
- props: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ type }) {
143
- return {
144
- title: pieces_framework_1.Property.ShortText({
145
- displayName: 'Title',
146
- description: 'The source title. Required only for document type.',
147
- required: typeof type === 'string' && type === 'document' ? true : false,
148
- }),
149
- url: pieces_framework_1.Property.ShortText({
150
- displayName: 'URL',
151
- description: 'The source url. Optional except for url, sitemap, youtube, and rss types.',
152
- required: typeof type === 'string' &&
153
- ['url', 'sitemap', 'youtube', 'rss'].includes(type)
154
- ? true
155
- : false,
156
- }),
157
- file: pieces_framework_1.Property.ShortText({
158
- displayName: 'File URL',
159
- description: 'The source file path. Required if type is urls, csv, document, or wp. The is usually the cloud storage path from the Upload Source File action.',
160
- required: typeof type === 'string' &&
161
- ['urls', 'csv', 'document', 'wp'].includes(type)
162
- ? true
163
- : false,
164
- }),
165
- faqs: pieces_framework_1.Property.Array({
166
- displayName: 'FAQs',
167
- description: 'An array of question and answer objects. Required if type is qa.',
168
- required: typeof type === 'string' && type === 'qa' ? true : false,
169
- properties: {
170
- question: pieces_framework_1.Property.LongText({
171
- displayName: 'Question',
172
- required: true,
173
- description: 'The question.',
174
- }),
175
- answer: pieces_framework_1.Property.LongText({
176
- displayName: 'Answer',
177
- required: true,
178
- description: 'The answer.',
179
- }),
180
- },
181
- }),
182
- scheduleInterval: pieces_framework_1.Property.StaticDropdown({
183
- displayName: 'Schedule Interval',
184
- description: 'The source refresh scheduled interval. Can be daily, weekly, monthly, or none depending on your plan. Optional, defaults to none.',
185
- required: false,
186
- defaultValue: 'none',
187
- options: {
188
- options: [
189
- { label: 'Daily', value: 'daily' },
190
- { label: 'Weekly', value: 'weekly' },
191
- { label: 'Monthly', value: 'monthly' },
192
- { label: 'None', value: 'none' },
193
- ],
194
- },
195
- }),
196
- };
197
- }),
198
- }),
199
- });
200
- exports.createSource = createSource;
201
- const uploadSourceFile = () => ({
202
- teamId: teamProperty({}),
203
- botId: botProperty({}),
204
- file: pieces_framework_1.Property.File({
205
- displayName: 'File',
206
- description: 'The file to upload.',
207
- required: true,
208
- }),
209
- });
210
- exports.uploadSourceFile = uploadSourceFile;
211
- const createBot = () => ({
212
- teamId: teamProperty({}),
213
- name: pieces_framework_1.Property.ShortText({
214
- displayName: 'Name',
215
- description: 'The bot name. Used publically.',
216
- required: true,
217
- }),
218
- description: pieces_framework_1.Property.LongText({
219
- displayName: 'Description',
220
- description: 'The bot description. Shown by default in embeds and share links.',
221
- required: true,
222
- }),
223
- privacy: pieces_framework_1.Property.StaticDropdown({
224
- displayName: 'Privacy',
225
- description: 'The bot privacy. Can be public or private.',
226
- required: true,
227
- options: {
228
- options: [
229
- { label: 'Public', value: 'public' },
230
- { label: 'Private', value: 'private' },
231
- ],
232
- },
233
- }),
234
- language: pieces_framework_1.Property.StaticDropdown({
235
- displayName: 'Language',
236
- description: 'The bot language.',
237
- required: true,
238
- options: {
239
- options: [
240
- { label: 'English', value: 'en' },
241
- { label: 'Japanese', value: 'jp' },
242
- ],
243
- },
244
- }),
245
- model: pieces_framework_1.Property.StaticDropdown({
246
- displayName: 'Model',
247
- description: 'The OpenAI model.',
248
- required: false,
249
- options: {
250
- options: [
251
- { label: 'GPT-4.1', value: 'gpt-4.1' },
252
- { label: 'GPT-4.1 Mini', value: 'gpt-4.1-mini' },
253
- { label: 'GPT-4o', value: 'gpt-4o' },
254
- { label: 'GPT-4o Mini', value: 'gpt-4o-mini' },
255
- ],
256
- },
257
- }),
258
- embeddingModel: pieces_framework_1.Property.StaticDropdown({
259
- displayName: 'Embedding Model',
260
- description: 'The embedding model. Currently supports text-embedding-ada-002, text-embedding-3-large, text-embedding-3-small, embed-multilingual-v3.0, and embed-v4.0 (Cohere) depending on your plan.',
261
- required: false,
262
- options: {
263
- options: [
264
- { label: 'Text Embedding ADA 002', value: 'text-embedding-ada-002' },
265
- { label: 'Text Embedding 3 Large', value: 'text-embedding-3-large' },
266
- { label: 'Text Embedding 3 Small', value: 'text-embedding-3-small' },
267
- { label: 'Embed Multilingual V3.0', value: 'embed-multilingual-v3.0' },
268
- { label: 'Embed V4.0', value: 'embed-v4.0' },
269
- ],
270
- },
271
- }),
272
- copyFrom: pieces_framework_1.Property.ShortText({
273
- displayName: 'Copy From',
274
- description: 'The ID of an existing bot in your team to copy from. If provided, the new bot will be created as a copy of the specified bot, with all sources copied over after creation.',
275
- required: false,
276
- }),
277
- });
278
- exports.createBot = createBot;
279
- const findBot = () => ({
280
- teamId: teamProperty({}),
281
- name: pieces_framework_1.Property.ShortText({
282
- displayName: 'Name',
283
- description: 'The bot name.',
284
- required: true,
285
- }),
286
- });
287
- exports.findBot = findBot;
288
- //# sourceMappingURL=properties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/docsbot/src/lib/common/properties.ts"],"names":[],"mappings":";;;;AAAA,qEAA0D;AAC1D,wBAA+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;AArEU,QAAA,SAAS,aAqEnB;AAEI,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,CAAC;IAC5B,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC;IACxB,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;QACvB,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,eAAe;QAC5B,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC,CAAC;AAPU,QAAA,OAAO,WAOjB"}
@@ -1,84 +0,0 @@
1
- import z from 'zod';
2
- export declare const askQuestion: {
3
- teamId: z.ZodString;
4
- botId: z.ZodString;
5
- question: z.ZodString;
6
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
7
- context_items: z.ZodOptional<z.ZodNumber>;
8
- human_escalation: z.ZodOptional<z.ZodBoolean>;
9
- followup_rating: z.ZodOptional<z.ZodBoolean>;
10
- document_retriever: z.ZodOptional<z.ZodBoolean>;
11
- full_source: z.ZodOptional<z.ZodBoolean>;
12
- autocut: z.ZodOptional<z.ZodNumber>;
13
- testing: z.ZodOptional<z.ZodBoolean>;
14
- image_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
- model: z.ZodOptional<z.ZodString>;
16
- default_language: z.ZodOptional<z.ZodString>;
17
- reasoning_effort: z.ZodOptional<z.ZodEnum<{
18
- minimal: "minimal";
19
- low: "low";
20
- medium: "medium";
21
- high: "high";
22
- }>>;
23
- };
24
- export declare const createSource: z.ZodObject<{
25
- type: z.ZodEnum<{
26
- url: "url";
27
- document: "document";
28
- sitemap: "sitemap";
29
- wp: "wp";
30
- urls: "urls";
31
- csv: "csv";
32
- rss: "rss";
33
- qa: "qa";
34
- youtube: "youtube";
35
- }>;
36
- title: z.ZodOptional<z.ZodString>;
37
- url: z.ZodOptional<z.ZodString>;
38
- file: z.ZodOptional<z.ZodString>;
39
- faqs: z.ZodOptional<z.ZodArray<z.ZodObject<{
40
- question: z.ZodString;
41
- answer: z.ZodString;
42
- }, z.core.$strip>>>;
43
- scheduleInterval: z.ZodOptional<z.ZodEnum<{
44
- daily: "daily";
45
- weekly: "weekly";
46
- monthly: "monthly";
47
- none: "none";
48
- }>>;
49
- }, z.core.$strip>;
50
- export declare const uploadSourceFile: {
51
- teamId: z.ZodString;
52
- botId: z.ZodString;
53
- file: z.ZodObject<{
54
- filename: z.ZodString;
55
- data: z.ZodCustom<Buffer, Buffer>;
56
- extension: z.ZodOptional<z.ZodString>;
57
- }, z.core.$strip>;
58
- };
59
- export declare const createBot: {
60
- teamId: z.ZodString;
61
- name: z.ZodString;
62
- description: z.ZodString;
63
- privacy: z.ZodEnum<{
64
- public: "public";
65
- private: "private";
66
- }>;
67
- language: z.ZodEnum<{
68
- en: "en";
69
- jp: "jp";
70
- }>;
71
- model: z.ZodOptional<z.ZodString>;
72
- embeddingModel: z.ZodOptional<z.ZodEnum<{
73
- "text-embedding-ada-002": "text-embedding-ada-002";
74
- "text-embedding-3-large": "text-embedding-3-large";
75
- "text-embedding-3-small": "text-embedding-3-small";
76
- "embed-multilingual-v3.0": "embed-multilingual-v3.0";
77
- "embed-v4.0": "embed-v4.0";
78
- }>>;
79
- copyFrom: z.ZodOptional<z.ZodString>;
80
- };
81
- export declare const findBot: {
82
- teamId: z.ZodString;
83
- name: z.ZodString;
84
- };
@@ -1,110 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.findBot = exports.createBot = exports.uploadSourceFile = exports.createSource = exports.askQuestion = void 0;
4
- const tslib_1 = require("tslib");
5
- const zod_1 = tslib_1.__importDefault(require("zod"));
6
- exports.askQuestion = {
7
- teamId: zod_1.default.string(),
8
- botId: zod_1.default.string(),
9
- question: zod_1.default.string(),
10
- metadata: zod_1.default.object({}).optional(),
11
- context_items: zod_1.default.number().min(1).optional(),
12
- human_escalation: zod_1.default.boolean().optional(),
13
- followup_rating: zod_1.default.boolean().optional(),
14
- document_retriever: zod_1.default.boolean().optional(),
15
- full_source: zod_1.default.boolean().optional(),
16
- autocut: zod_1.default.number().optional(),
17
- testing: zod_1.default.boolean().optional(),
18
- image_urls: zod_1.default.array(zod_1.default.string().url()).optional(),
19
- model: zod_1.default.string().optional(),
20
- default_language: zod_1.default.string().optional(),
21
- reasoning_effort: zod_1.default.enum(['minimal', 'low', 'medium', 'high']).optional(),
22
- };
23
- exports.createSource = zod_1.default
24
- .object({
25
- type: zod_1.default.enum([
26
- 'url',
27
- 'document',
28
- 'sitemap',
29
- 'wp',
30
- 'urls',
31
- 'csv',
32
- 'rss',
33
- 'qa',
34
- 'youtube',
35
- ]),
36
- title: zod_1.default.string().optional(),
37
- url: zod_1.default.string().url().optional(),
38
- file: zod_1.default.string().optional(),
39
- faqs: zod_1.default
40
- .array(zod_1.default.object({
41
- question: zod_1.default.string(),
42
- answer: zod_1.default.string(),
43
- }))
44
- .optional(),
45
- scheduleInterval: zod_1.default.enum(['daily', 'weekly', 'monthly', 'none']).optional(),
46
- })
47
- .superRefine((data, ctx) => {
48
- if (data.type === 'document' && (!data.title || data.title.trim() === '')) {
49
- ctx.addIssue({
50
- code: zod_1.default.ZodIssueCode.custom,
51
- path: ['title'],
52
- message: '"title" is required when type is "document".',
53
- });
54
- }
55
- if (['url', 'sitemap', 'youtube', 'rss'].includes(data.type) &&
56
- (!data.url || data.url.trim() === '')) {
57
- ctx.addIssue({
58
- code: zod_1.default.ZodIssueCode.custom,
59
- path: ['url'],
60
- message: '"url" is required when type is "url", "sitemap", "youtube", or "rss".',
61
- });
62
- }
63
- if (['urls', 'csv', 'document', 'wp'].includes(data.type) &&
64
- (!data.file || data.file.trim() === '')) {
65
- ctx.addIssue({
66
- code: zod_1.default.ZodIssueCode.custom,
67
- path: ['file'],
68
- message: '"file" is required when type is "urls", "csv", "document", or "wp".',
69
- });
70
- }
71
- if (data.type === 'qa' && (!data.faqs || data.faqs.length === 0)) {
72
- ctx.addIssue({
73
- code: zod_1.default.ZodIssueCode.custom,
74
- path: ['faqs'],
75
- message: '"faqs" is required when type is "qa".',
76
- });
77
- }
78
- });
79
- exports.uploadSourceFile = {
80
- teamId: zod_1.default.string(),
81
- botId: zod_1.default.string(),
82
- file: zod_1.default.object({
83
- filename: zod_1.default.string(),
84
- data: zod_1.default.instanceof(Buffer),
85
- extension: zod_1.default.string().optional(),
86
- }),
87
- };
88
- exports.createBot = {
89
- teamId: zod_1.default.string(),
90
- name: zod_1.default.string(),
91
- description: zod_1.default.string(),
92
- privacy: zod_1.default.enum(['public', 'private']),
93
- language: zod_1.default.enum(['en', 'jp']),
94
- model: zod_1.default.string().optional(),
95
- embeddingModel: zod_1.default
96
- .enum([
97
- 'text-embedding-ada-002',
98
- 'text-embedding-3-large',
99
- 'text-embedding-3-small',
100
- 'embed-multilingual-v3.0',
101
- 'embed-v4.0',
102
- ])
103
- .optional(),
104
- copyFrom: zod_1.default.string().optional(),
105
- };
106
- exports.findBot = {
107
- teamId: zod_1.default.string(),
108
- name: zod_1.default.string(),
109
- };
110
- //# sourceMappingURL=schemas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/docsbot/src/lib/common/schemas.ts"],"names":[],"mappings":";;;;AAAA,sDAAoB;AAEP,QAAA,WAAW,GAAG;IACzB,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,aAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3C,gBAAgB,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACxC,eAAe,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACvC,kBAAkB,EAAE,aAAC,CAAC,OAAO,EAAE,CAA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,CAAC;AAEW,QAAA,OAAO,GAAG;IACrB,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;CACjB,CAAC"}
@@ -1,109 +0,0 @@
1
- import { AppConnectionValueForAuthProperty } from "@activepieces/pieces-framework";
2
- import { docsbotAuth } from ".";
3
- export type createSourceUrlParams = {
4
- teamId: string;
5
- botId: string;
6
- };
7
- export interface AuthenticationParams {
8
- apiKey: AppConnectionValueForAuthProperty<typeof docsbotAuth>;
9
- }
10
- export interface askQuestionRequestParams extends AuthenticationParams {
11
- teamId: string;
12
- botId: string;
13
- stream?: boolean;
14
- conversationId: string;
15
- question: string;
16
- metadata?: object;
17
- context_items?: number;
18
- human_escalation?: boolean;
19
- followup_rating?: boolean;
20
- document_retriever?: boolean;
21
- full_source?: boolean;
22
- autocut?: number | boolean;
23
- testing?: boolean;
24
- image_urls?: string[];
25
- model?: string;
26
- default_language?: string;
27
- reasoning_effort?: string;
28
- }
29
- export interface createSourceParams {
30
- teamId: string;
31
- botId: string;
32
- type: string;
33
- title?: string;
34
- url?: string;
35
- file?: string;
36
- faqs?: {
37
- question: string;
38
- answer: string;
39
- }[];
40
- scheduleInterval?: string;
41
- }
42
- export interface createSourceRequestParams extends AuthenticationParams, createSourceParams {
43
- }
44
- export interface createBotRequestParams extends AuthenticationParams {
45
- teamId: string;
46
- name: string;
47
- description: string;
48
- privacy: 'public' | 'private';
49
- language: 'en' | 'jp';
50
- model?: 'string';
51
- embeddingModel?: 'text-embedding-ada-002' | 'text-embedding-3-large' | 'text-embedding-3-small' | 'embed-multilingual-v3.0' | 'embed-v4.0';
52
- copyFrom?: string;
53
- }
54
- export interface findBotParams extends AuthenticationParams {
55
- teamId: string;
56
- name: string;
57
- }
58
- export interface uploadSourceFileRequestParams extends AuthenticationParams {
59
- teamId: string;
60
- botId: string;
61
- fileName: string;
62
- }
63
- export interface uploadToCloudStorageParams {
64
- uploadUrl: string;
65
- file: Buffer;
66
- }
67
- export interface listBotsParams extends AuthenticationParams {
68
- teamId: string;
69
- }
70
- export interface Team {
71
- id: string;
72
- roles: Record<string, string>[];
73
- name: string;
74
- createdAt: string;
75
- status: string;
76
- questionCount: number;
77
- pageCount: number;
78
- sourceCount: number;
79
- chunkCount: number;
80
- openAIKey: string;
81
- botCount: number;
82
- plan: {
83
- name: string;
84
- bots: number;
85
- sources: number;
86
- pages: number;
87
- questions: number;
88
- };
89
- }
90
- export interface Bot {
91
- id: string;
92
- questionCount: number;
93
- name: string;
94
- description: string;
95
- privacy: 'public' | 'private';
96
- indexId: string;
97
- customPrompt: null;
98
- language: string;
99
- model: string;
100
- createdAt: string;
101
- sourceCount: number;
102
- pageCount: number;
103
- chunkCount: number;
104
- status: string;
105
- }
106
- export interface PresignedUpdateUrlResponse {
107
- url: string;
108
- file: string;
109
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/docsbot/src/lib/common/types.ts"],"names":[],"mappings":""}