@activepieces/piece-docsbot 0.0.1

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.
@@ -0,0 +1,107 @@
1
+ export type createSourceUrlParams = {
2
+ teamId: string;
3
+ botId: string;
4
+ };
5
+ export interface AuthenticationParams {
6
+ apiKey: string;
7
+ }
8
+ export interface askQuestionRequestParams extends AuthenticationParams {
9
+ teamId: string;
10
+ botId: string;
11
+ stream?: boolean;
12
+ conversationId: string;
13
+ question: string;
14
+ metadata?: object;
15
+ context_items?: number;
16
+ human_escalation?: boolean;
17
+ followup_rating?: boolean;
18
+ document_retriever?: boolean;
19
+ full_source?: boolean;
20
+ autocut?: number | boolean;
21
+ testing?: boolean;
22
+ image_urls?: string[];
23
+ model?: string;
24
+ default_language?: string;
25
+ reasoning_effort?: string;
26
+ }
27
+ export interface createSourceParams {
28
+ teamId: string;
29
+ botId: string;
30
+ type: string;
31
+ title?: string;
32
+ url?: string;
33
+ file?: string;
34
+ faqs?: {
35
+ question: string;
36
+ answer: string;
37
+ }[];
38
+ scheduleInterval?: string;
39
+ }
40
+ export interface createSourceRequestParams extends AuthenticationParams, createSourceParams {
41
+ }
42
+ export interface createBotRequestParams extends AuthenticationParams {
43
+ teamId: string;
44
+ name: string;
45
+ description: string;
46
+ privacy: 'public' | 'private';
47
+ language: 'en' | 'jp';
48
+ model?: 'string';
49
+ embeddingModel?: 'text-embedding-ada-002' | 'text-embedding-3-large' | 'text-embedding-3-small' | 'embed-multilingual-v3.0' | 'embed-v4.0';
50
+ copyFrom?: string;
51
+ }
52
+ export interface findBotParams extends AuthenticationParams {
53
+ teamId: string;
54
+ name: string;
55
+ }
56
+ export interface uploadSourceFileRequestParams extends AuthenticationParams {
57
+ teamId: string;
58
+ botId: string;
59
+ fileName: string;
60
+ }
61
+ export interface uploadToCloudStorageParams {
62
+ uploadUrl: string;
63
+ file: Buffer;
64
+ }
65
+ export interface listBotsParams extends AuthenticationParams {
66
+ teamId: string;
67
+ }
68
+ export interface Team {
69
+ id: string;
70
+ roles: Record<string, string>[];
71
+ name: string;
72
+ createdAt: string;
73
+ status: string;
74
+ questionCount: number;
75
+ pageCount: number;
76
+ sourceCount: number;
77
+ chunkCount: number;
78
+ openAIKey: string;
79
+ botCount: number;
80
+ plan: {
81
+ name: string;
82
+ bots: number;
83
+ sources: number;
84
+ pages: number;
85
+ questions: number;
86
+ };
87
+ }
88
+ export interface Bot {
89
+ id: string;
90
+ questionCount: number;
91
+ name: string;
92
+ description: string;
93
+ privacy: 'public' | 'private';
94
+ indexId: string;
95
+ customPrompt: null;
96
+ language: string;
97
+ model: string;
98
+ createdAt: string;
99
+ sourceCount: number;
100
+ pageCount: number;
101
+ chunkCount: number;
102
+ status: string;
103
+ }
104
+ export interface PresignedUpdateUrlResponse {
105
+ url: string;
106
+ file: string;
107
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/docsbot/src/lib/common/types.ts"],"names":[],"mappings":""}