@dxpos/knowledge 0.6.0 → 0.7.0
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/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +113 -39
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +265 -59
- package/dist/generated/types.gen.d.ts +993 -254
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/index.d.ts +22 -8
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ export type ClientOptions = {
|
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
4
|
export type FileStatus = 'pending' | 'ready' | 'failed';
|
|
5
|
-
export type FileScope = 'general' | 'knowledge' | 'chat';
|
|
5
|
+
export type FileScope = 'general' | 'knowledge' | 'chat' | 'rag';
|
|
6
6
|
export type StoredFile = {
|
|
7
7
|
id: string;
|
|
8
8
|
objectKey: string;
|
|
@@ -84,6 +84,7 @@ export type Message = {
|
|
|
84
84
|
export type Conversation = {
|
|
85
85
|
id: string;
|
|
86
86
|
title: string;
|
|
87
|
+
ragId: number | null;
|
|
87
88
|
systemPrompt: string | null;
|
|
88
89
|
splitPrompt: string | null;
|
|
89
90
|
splitQuery: boolean | null;
|
|
@@ -92,6 +93,7 @@ export type Conversation = {
|
|
|
92
93
|
deepThinking: 'default' | 'false' | 'low' | 'medium' | 'high' | null;
|
|
93
94
|
multiTurn: boolean | null;
|
|
94
95
|
contextThreshold: number | null;
|
|
96
|
+
retrieveLimit: number | null;
|
|
95
97
|
imageMaxCount: number | null;
|
|
96
98
|
imageMaxEdge: number | null;
|
|
97
99
|
contextSummary: string | null;
|
|
@@ -130,7 +132,24 @@ export type ChatAnswer = {
|
|
|
130
132
|
score: number;
|
|
131
133
|
}>;
|
|
132
134
|
};
|
|
133
|
-
export type
|
|
135
|
+
export type KnowledgeBase = {
|
|
136
|
+
id: number;
|
|
137
|
+
name: string;
|
|
138
|
+
mark: string;
|
|
139
|
+
description: string | null;
|
|
140
|
+
chunkSize: number | null;
|
|
141
|
+
chunkOverlap: number | null;
|
|
142
|
+
createdBy: string | null;
|
|
143
|
+
updatedBy: string | null;
|
|
144
|
+
createdAt: string;
|
|
145
|
+
updatedAt: string;
|
|
146
|
+
};
|
|
147
|
+
export type Rag = {
|
|
148
|
+
id: number;
|
|
149
|
+
name: string;
|
|
150
|
+
description: string | null;
|
|
151
|
+
mark: string | null;
|
|
152
|
+
kbId: number;
|
|
134
153
|
systemPrompt: string | null;
|
|
135
154
|
splitPrompt: string | null;
|
|
136
155
|
splitQuery: boolean | null;
|
|
@@ -139,20 +158,86 @@ export type ChatModuleSettings = {
|
|
|
139
158
|
deepThinking: 'default' | 'false' | 'low' | 'medium' | 'high' | null;
|
|
140
159
|
multiTurn: boolean | null;
|
|
141
160
|
contextThreshold: number | null;
|
|
161
|
+
retrieveLimit: number | null;
|
|
142
162
|
imageMaxCount: number | null;
|
|
143
163
|
imageMaxEdge: number | null;
|
|
164
|
+
welcome: RagWelcomeConfig;
|
|
165
|
+
recommendedQuestions: Array<string> | null;
|
|
166
|
+
createdBy: string | null;
|
|
144
167
|
updatedBy: string | null;
|
|
168
|
+
createdAt: string;
|
|
145
169
|
updatedAt: string;
|
|
146
170
|
};
|
|
171
|
+
export type RagWelcomeConfig = {
|
|
172
|
+
text: string | null;
|
|
173
|
+
images?: Array<RagWelcomeImage>;
|
|
174
|
+
} | null;
|
|
175
|
+
export type RagWelcomeImage = {
|
|
176
|
+
fileId: string;
|
|
177
|
+
mimeType: string;
|
|
178
|
+
url?: string;
|
|
179
|
+
};
|
|
147
180
|
export type SearchHit = {
|
|
148
181
|
documentId: string;
|
|
149
182
|
filename: string;
|
|
150
183
|
chunkIndex: number;
|
|
151
184
|
content: string;
|
|
152
|
-
headingPath: string;
|
|
153
185
|
snippet: string;
|
|
154
186
|
filenameSnippet: string;
|
|
155
|
-
|
|
187
|
+
};
|
|
188
|
+
export type Visibility = 'public' | 'internal' | 'private';
|
|
189
|
+
export type DocumentStatus = 'processing' | 'ready' | 'failed';
|
|
190
|
+
export type Document = {
|
|
191
|
+
id: string;
|
|
192
|
+
kbId: number;
|
|
193
|
+
folderId: string | null;
|
|
194
|
+
filename: string;
|
|
195
|
+
content: string;
|
|
196
|
+
charCount: number;
|
|
197
|
+
chunkCount: number;
|
|
198
|
+
status: DocumentStatus;
|
|
199
|
+
visibility: Visibility;
|
|
200
|
+
chunkSize: number | null;
|
|
201
|
+
chunkOverlap: number | null;
|
|
202
|
+
createdBy: string | null;
|
|
203
|
+
updatedBy: string | null;
|
|
204
|
+
createdAt: string;
|
|
205
|
+
updatedAt: string;
|
|
206
|
+
};
|
|
207
|
+
export type DocumentSummary = {
|
|
208
|
+
id: string;
|
|
209
|
+
kbId: number;
|
|
210
|
+
folderId: string | null;
|
|
211
|
+
filename: string;
|
|
212
|
+
charCount: number;
|
|
213
|
+
chunkCount: number;
|
|
214
|
+
status: DocumentStatus;
|
|
215
|
+
visibility: Visibility;
|
|
216
|
+
chunkSize: number | null;
|
|
217
|
+
chunkOverlap: number | null;
|
|
218
|
+
createdBy: string | null;
|
|
219
|
+
updatedBy: string | null;
|
|
220
|
+
createdAt: string;
|
|
221
|
+
updatedAt: string;
|
|
222
|
+
};
|
|
223
|
+
export type DocumentTreeNode = {
|
|
224
|
+
type: 'folder';
|
|
225
|
+
folder: Folder;
|
|
226
|
+
children: Array<DocumentTreeNode>;
|
|
227
|
+
} | {
|
|
228
|
+
type: 'file';
|
|
229
|
+
document: DocumentSummary;
|
|
230
|
+
};
|
|
231
|
+
export type Folder = {
|
|
232
|
+
id: string;
|
|
233
|
+
kbId: number;
|
|
234
|
+
name: string;
|
|
235
|
+
parentId: string | null;
|
|
236
|
+
visibility: Visibility;
|
|
237
|
+
createdBy: string | null;
|
|
238
|
+
updatedBy: string | null;
|
|
239
|
+
createdAt: string;
|
|
240
|
+
updatedAt: string;
|
|
156
241
|
};
|
|
157
242
|
export type ErrorResponse = {
|
|
158
243
|
/**
|
|
@@ -164,22 +249,12 @@ export type ErrorResponse = {
|
|
|
164
249
|
[key: string]: unknown;
|
|
165
250
|
} | Array<unknown> | null;
|
|
166
251
|
};
|
|
167
|
-
export type
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
waitTimeoutSec: number | null;
|
|
174
|
-
effective: LlmConcurrencyConfig;
|
|
175
|
-
updatedBy: string | null;
|
|
176
|
-
updatedAt: string;
|
|
177
|
-
};
|
|
178
|
-
export type LlmConcurrencyConfig = {
|
|
179
|
-
globalMax: number;
|
|
180
|
-
userMax: number;
|
|
181
|
-
queueMax: number;
|
|
182
|
-
waitTimeoutSec: number;
|
|
252
|
+
export type RagDetail = {
|
|
253
|
+
id: number;
|
|
254
|
+
name: string;
|
|
255
|
+
mark: string | null;
|
|
256
|
+
welcome: RagWelcomeConfig;
|
|
257
|
+
recommendedQuestions: Array<string> | null;
|
|
183
258
|
};
|
|
184
259
|
export type DeleteApiFilesData = {
|
|
185
260
|
body: {
|
|
@@ -691,196 +766,6 @@ export type PostApiChatResponses = {
|
|
|
691
766
|
};
|
|
692
767
|
};
|
|
693
768
|
export type PostApiChatResponse = PostApiChatResponses[keyof PostApiChatResponses];
|
|
694
|
-
export type GetApiChatSettingsData = {
|
|
695
|
-
body?: never;
|
|
696
|
-
path?: never;
|
|
697
|
-
query?: never;
|
|
698
|
-
url: '/api/chat/settings';
|
|
699
|
-
};
|
|
700
|
-
export type GetApiChatSettingsErrors = {
|
|
701
|
-
/**
|
|
702
|
-
* 未登录
|
|
703
|
-
*/
|
|
704
|
-
401: ErrorResponse;
|
|
705
|
-
/**
|
|
706
|
-
* 无权限
|
|
707
|
-
*/
|
|
708
|
-
403: ErrorResponse;
|
|
709
|
-
/**
|
|
710
|
-
* 服务器内部错误
|
|
711
|
-
*/
|
|
712
|
-
500: ErrorResponse;
|
|
713
|
-
};
|
|
714
|
-
export type GetApiChatSettingsError = GetApiChatSettingsErrors[keyof GetApiChatSettingsErrors];
|
|
715
|
-
export type GetApiChatSettingsResponses = {
|
|
716
|
-
/**
|
|
717
|
-
* 成功
|
|
718
|
-
*/
|
|
719
|
-
200: {
|
|
720
|
-
/**
|
|
721
|
-
* 业务码,成功为 0
|
|
722
|
-
*/
|
|
723
|
-
code: number;
|
|
724
|
-
message: string;
|
|
725
|
-
data: ChatModuleSettings;
|
|
726
|
-
};
|
|
727
|
-
};
|
|
728
|
-
export type GetApiChatSettingsResponse = GetApiChatSettingsResponses[keyof GetApiChatSettingsResponses];
|
|
729
|
-
export type PutApiChatSettingsData = {
|
|
730
|
-
body: {
|
|
731
|
-
systemPrompt?: string | null;
|
|
732
|
-
splitPrompt?: string | null;
|
|
733
|
-
splitQuery?: boolean | null;
|
|
734
|
-
scoreThreshold?: number | null;
|
|
735
|
-
lowScoreReply?: string | null;
|
|
736
|
-
deepThinking?: 'default' | 'false' | 'low' | 'medium' | 'high' | null;
|
|
737
|
-
multiTurn?: boolean | null;
|
|
738
|
-
contextThreshold?: number | null;
|
|
739
|
-
imageMaxCount?: number | null;
|
|
740
|
-
imageMaxEdge?: number | null;
|
|
741
|
-
};
|
|
742
|
-
path?: never;
|
|
743
|
-
query?: never;
|
|
744
|
-
url: '/api/chat/settings';
|
|
745
|
-
};
|
|
746
|
-
export type PutApiChatSettingsErrors = {
|
|
747
|
-
/**
|
|
748
|
-
* 请求参数无效
|
|
749
|
-
*/
|
|
750
|
-
400: ErrorResponse;
|
|
751
|
-
/**
|
|
752
|
-
* 未登录
|
|
753
|
-
*/
|
|
754
|
-
401: ErrorResponse;
|
|
755
|
-
/**
|
|
756
|
-
* 无权限
|
|
757
|
-
*/
|
|
758
|
-
403: ErrorResponse;
|
|
759
|
-
/**
|
|
760
|
-
* 资源不存在
|
|
761
|
-
*/
|
|
762
|
-
404: ErrorResponse;
|
|
763
|
-
/**
|
|
764
|
-
* LLM 并发已满
|
|
765
|
-
*/
|
|
766
|
-
429: ErrorResponse;
|
|
767
|
-
/**
|
|
768
|
-
* 服务器内部错误
|
|
769
|
-
*/
|
|
770
|
-
500: ErrorResponse;
|
|
771
|
-
};
|
|
772
|
-
export type PutApiChatSettingsError = PutApiChatSettingsErrors[keyof PutApiChatSettingsErrors];
|
|
773
|
-
export type PutApiChatSettingsResponses = {
|
|
774
|
-
/**
|
|
775
|
-
* 成功
|
|
776
|
-
*/
|
|
777
|
-
200: {
|
|
778
|
-
/**
|
|
779
|
-
* 业务码,成功为 0
|
|
780
|
-
*/
|
|
781
|
-
code: number;
|
|
782
|
-
message: string;
|
|
783
|
-
data: ChatModuleSettings;
|
|
784
|
-
};
|
|
785
|
-
};
|
|
786
|
-
export type PutApiChatSettingsResponse = PutApiChatSettingsResponses[keyof PutApiChatSettingsResponses];
|
|
787
|
-
export type GetApiChatSettingsByUserByUserIdData = {
|
|
788
|
-
body?: never;
|
|
789
|
-
path: {
|
|
790
|
-
userId: string;
|
|
791
|
-
};
|
|
792
|
-
query?: never;
|
|
793
|
-
url: '/api/chat/settings/by-user/{userId}';
|
|
794
|
-
};
|
|
795
|
-
export type GetApiChatSettingsByUserByUserIdErrors = {
|
|
796
|
-
/**
|
|
797
|
-
* 未登录
|
|
798
|
-
*/
|
|
799
|
-
401: ErrorResponse;
|
|
800
|
-
/**
|
|
801
|
-
* 无权限
|
|
802
|
-
*/
|
|
803
|
-
403: ErrorResponse;
|
|
804
|
-
/**
|
|
805
|
-
* 服务器内部错误
|
|
806
|
-
*/
|
|
807
|
-
500: ErrorResponse;
|
|
808
|
-
};
|
|
809
|
-
export type GetApiChatSettingsByUserByUserIdError = GetApiChatSettingsByUserByUserIdErrors[keyof GetApiChatSettingsByUserByUserIdErrors];
|
|
810
|
-
export type GetApiChatSettingsByUserByUserIdResponses = {
|
|
811
|
-
/**
|
|
812
|
-
* 成功
|
|
813
|
-
*/
|
|
814
|
-
200: {
|
|
815
|
-
/**
|
|
816
|
-
* 业务码,成功为 0
|
|
817
|
-
*/
|
|
818
|
-
code: number;
|
|
819
|
-
message: string;
|
|
820
|
-
data: ChatModuleSettings;
|
|
821
|
-
};
|
|
822
|
-
};
|
|
823
|
-
export type GetApiChatSettingsByUserByUserIdResponse = GetApiChatSettingsByUserByUserIdResponses[keyof GetApiChatSettingsByUserByUserIdResponses];
|
|
824
|
-
export type PutApiChatSettingsByUserByUserIdData = {
|
|
825
|
-
body: {
|
|
826
|
-
systemPrompt?: string | null;
|
|
827
|
-
splitPrompt?: string | null;
|
|
828
|
-
splitQuery?: boolean | null;
|
|
829
|
-
scoreThreshold?: number | null;
|
|
830
|
-
lowScoreReply?: string | null;
|
|
831
|
-
deepThinking?: 'default' | 'false' | 'low' | 'medium' | 'high' | null;
|
|
832
|
-
multiTurn?: boolean | null;
|
|
833
|
-
contextThreshold?: number | null;
|
|
834
|
-
imageMaxCount?: number | null;
|
|
835
|
-
imageMaxEdge?: number | null;
|
|
836
|
-
};
|
|
837
|
-
path: {
|
|
838
|
-
userId: string;
|
|
839
|
-
};
|
|
840
|
-
query?: never;
|
|
841
|
-
url: '/api/chat/settings/by-user/{userId}';
|
|
842
|
-
};
|
|
843
|
-
export type PutApiChatSettingsByUserByUserIdErrors = {
|
|
844
|
-
/**
|
|
845
|
-
* 请求参数无效
|
|
846
|
-
*/
|
|
847
|
-
400: ErrorResponse;
|
|
848
|
-
/**
|
|
849
|
-
* 未登录
|
|
850
|
-
*/
|
|
851
|
-
401: ErrorResponse;
|
|
852
|
-
/**
|
|
853
|
-
* 无权限
|
|
854
|
-
*/
|
|
855
|
-
403: ErrorResponse;
|
|
856
|
-
/**
|
|
857
|
-
* 资源不存在
|
|
858
|
-
*/
|
|
859
|
-
404: ErrorResponse;
|
|
860
|
-
/**
|
|
861
|
-
* LLM 并发已满
|
|
862
|
-
*/
|
|
863
|
-
429: ErrorResponse;
|
|
864
|
-
/**
|
|
865
|
-
* 服务器内部错误
|
|
866
|
-
*/
|
|
867
|
-
500: ErrorResponse;
|
|
868
|
-
};
|
|
869
|
-
export type PutApiChatSettingsByUserByUserIdError = PutApiChatSettingsByUserByUserIdErrors[keyof PutApiChatSettingsByUserByUserIdErrors];
|
|
870
|
-
export type PutApiChatSettingsByUserByUserIdResponses = {
|
|
871
|
-
/**
|
|
872
|
-
* 成功
|
|
873
|
-
*/
|
|
874
|
-
200: {
|
|
875
|
-
/**
|
|
876
|
-
* 业务码,成功为 0
|
|
877
|
-
*/
|
|
878
|
-
code: number;
|
|
879
|
-
message: string;
|
|
880
|
-
data: ChatModuleSettings;
|
|
881
|
-
};
|
|
882
|
-
};
|
|
883
|
-
export type PutApiChatSettingsByUserByUserIdResponse = PutApiChatSettingsByUserByUserIdResponses[keyof PutApiChatSettingsByUserByUserIdResponses];
|
|
884
769
|
export type GetApiChatLimitsData = {
|
|
885
770
|
body?: never;
|
|
886
771
|
path?: never;
|
|
@@ -921,6 +806,8 @@ export type GetApiChatLimitsResponses = {
|
|
|
921
806
|
data: {
|
|
922
807
|
imageMaxCount: number;
|
|
923
808
|
imageMaxEdge: number;
|
|
809
|
+
welcome: RagWelcomeConfig;
|
|
810
|
+
recommendedQuestions: Array<string>;
|
|
924
811
|
};
|
|
925
812
|
};
|
|
926
813
|
};
|
|
@@ -928,7 +815,10 @@ export type GetApiChatLimitsResponse = GetApiChatLimitsResponses[keyof GetApiCha
|
|
|
928
815
|
export type GetApiChatConversationsData = {
|
|
929
816
|
body?: never;
|
|
930
817
|
path?: never;
|
|
931
|
-
query?:
|
|
818
|
+
query?: {
|
|
819
|
+
userId?: string;
|
|
820
|
+
ragId?: number;
|
|
821
|
+
};
|
|
932
822
|
url: '/api/chat/conversations';
|
|
933
823
|
};
|
|
934
824
|
export type GetApiChatConversationsErrors = {
|
|
@@ -959,6 +849,8 @@ export type GetApiChatConversationsResponse = GetApiChatConversationsResponses[k
|
|
|
959
849
|
export type PostApiChatConversationsData = {
|
|
960
850
|
body?: {
|
|
961
851
|
title?: string;
|
|
852
|
+
userId?: string;
|
|
853
|
+
ragId: number;
|
|
962
854
|
systemPrompt?: string | null;
|
|
963
855
|
splitPrompt?: string | null;
|
|
964
856
|
splitQuery?: boolean | null;
|
|
@@ -967,6 +859,7 @@ export type PostApiChatConversationsData = {
|
|
|
967
859
|
deepThinking?: 'default' | 'false' | 'low' | 'medium' | 'high' | null;
|
|
968
860
|
multiTurn?: boolean | null;
|
|
969
861
|
contextThreshold?: number | null;
|
|
862
|
+
retrieveLimit?: number | null;
|
|
970
863
|
imageMaxCount?: number | null;
|
|
971
864
|
imageMaxEdge?: number | null;
|
|
972
865
|
};
|
|
@@ -1127,6 +1020,7 @@ export type PatchApiChatConversationsByIdData = {
|
|
|
1127
1020
|
deepThinking?: 'default' | 'false' | 'low' | 'medium' | 'high' | null;
|
|
1128
1021
|
multiTurn?: boolean | null;
|
|
1129
1022
|
contextThreshold?: number | null;
|
|
1023
|
+
retrieveLimit?: number | null;
|
|
1130
1024
|
imageMaxCount?: number | null;
|
|
1131
1025
|
imageMaxEdge?: number | null;
|
|
1132
1026
|
};
|
|
@@ -1185,6 +1079,14 @@ export type GetApiSearchData = {
|
|
|
1185
1079
|
* 关键词
|
|
1186
1080
|
*/
|
|
1187
1081
|
q: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* 知识库 ID,与 mark 不能同时为空
|
|
1084
|
+
*/
|
|
1085
|
+
kbId?: number;
|
|
1086
|
+
/**
|
|
1087
|
+
* 知识库标识,与 kbId 不能同时为空
|
|
1088
|
+
*/
|
|
1089
|
+
mark?: string;
|
|
1188
1090
|
limit?: number;
|
|
1189
1091
|
};
|
|
1190
1092
|
url: '/api/search';
|
|
@@ -1198,18 +1100,10 @@ export type GetApiSearchErrors = {
|
|
|
1198
1100
|
* 未登录
|
|
1199
1101
|
*/
|
|
1200
1102
|
401: ErrorResponse;
|
|
1201
|
-
/**
|
|
1202
|
-
* 无权限
|
|
1203
|
-
*/
|
|
1204
|
-
403: ErrorResponse;
|
|
1205
1103
|
/**
|
|
1206
1104
|
* 资源不存在
|
|
1207
1105
|
*/
|
|
1208
1106
|
404: ErrorResponse;
|
|
1209
|
-
/**
|
|
1210
|
-
* LLM 并发已满
|
|
1211
|
-
*/
|
|
1212
|
-
429: ErrorResponse;
|
|
1213
1107
|
/**
|
|
1214
1108
|
* 服务器内部错误
|
|
1215
1109
|
*/
|
|
@@ -1286,13 +1180,54 @@ export type PostApiSearchClickResponses = {
|
|
|
1286
1180
|
};
|
|
1287
1181
|
};
|
|
1288
1182
|
export type PostApiSearchClickResponse = PostApiSearchClickResponses[keyof PostApiSearchClickResponses];
|
|
1289
|
-
export type
|
|
1183
|
+
export type GetApiKnowledgeBasesData = {
|
|
1290
1184
|
body?: never;
|
|
1291
1185
|
path?: never;
|
|
1292
1186
|
query?: never;
|
|
1293
|
-
url: '/api/
|
|
1187
|
+
url: '/api/knowledge-bases';
|
|
1188
|
+
};
|
|
1189
|
+
export type GetApiKnowledgeBasesErrors = {
|
|
1190
|
+
/**
|
|
1191
|
+
* 未登录
|
|
1192
|
+
*/
|
|
1193
|
+
401: ErrorResponse;
|
|
1194
|
+
/**
|
|
1195
|
+
* 服务器内部错误
|
|
1196
|
+
*/
|
|
1197
|
+
500: ErrorResponse;
|
|
1198
|
+
};
|
|
1199
|
+
export type GetApiKnowledgeBasesError = GetApiKnowledgeBasesErrors[keyof GetApiKnowledgeBasesErrors];
|
|
1200
|
+
export type GetApiKnowledgeBasesResponses = {
|
|
1201
|
+
/**
|
|
1202
|
+
* 成功
|
|
1203
|
+
*/
|
|
1204
|
+
200: {
|
|
1205
|
+
/**
|
|
1206
|
+
* 业务码,成功为 0
|
|
1207
|
+
*/
|
|
1208
|
+
code: number;
|
|
1209
|
+
message: string;
|
|
1210
|
+
data: Array<KnowledgeBase>;
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
export type GetApiKnowledgeBasesResponse = GetApiKnowledgeBasesResponses[keyof GetApiKnowledgeBasesResponses];
|
|
1214
|
+
export type PostApiKnowledgeBasesData = {
|
|
1215
|
+
body: {
|
|
1216
|
+
name: string;
|
|
1217
|
+
mark: string;
|
|
1218
|
+
description?: string | null;
|
|
1219
|
+
chunkSize?: number | null;
|
|
1220
|
+
chunkOverlap?: number | null;
|
|
1221
|
+
};
|
|
1222
|
+
path?: never;
|
|
1223
|
+
query?: never;
|
|
1224
|
+
url: '/api/knowledge-bases';
|
|
1294
1225
|
};
|
|
1295
|
-
export type
|
|
1226
|
+
export type PostApiKnowledgeBasesErrors = {
|
|
1227
|
+
/**
|
|
1228
|
+
* 请求参数无效
|
|
1229
|
+
*/
|
|
1230
|
+
400: ErrorResponse;
|
|
1296
1231
|
/**
|
|
1297
1232
|
* 未登录
|
|
1298
1233
|
*/
|
|
@@ -1306,30 +1241,32 @@ export type GetApiLlmConcurrencyErrors = {
|
|
|
1306
1241
|
*/
|
|
1307
1242
|
500: ErrorResponse;
|
|
1308
1243
|
};
|
|
1309
|
-
export type
|
|
1310
|
-
export type
|
|
1244
|
+
export type PostApiKnowledgeBasesError = PostApiKnowledgeBasesErrors[keyof PostApiKnowledgeBasesErrors];
|
|
1245
|
+
export type PostApiKnowledgeBasesResponses = {
|
|
1311
1246
|
/**
|
|
1312
1247
|
* 成功
|
|
1313
1248
|
*/
|
|
1314
|
-
|
|
1249
|
+
201: {
|
|
1315
1250
|
/**
|
|
1316
1251
|
* 业务码,成功为 0
|
|
1317
1252
|
*/
|
|
1318
1253
|
code: number;
|
|
1319
1254
|
message: string;
|
|
1320
|
-
data:
|
|
1255
|
+
data: {
|
|
1256
|
+
id: number;
|
|
1257
|
+
};
|
|
1321
1258
|
};
|
|
1322
1259
|
};
|
|
1323
|
-
export type
|
|
1324
|
-
export type
|
|
1260
|
+
export type PostApiKnowledgeBasesResponse = PostApiKnowledgeBasesResponses[keyof PostApiKnowledgeBasesResponses];
|
|
1261
|
+
export type DeleteApiKnowledgeBasesByIdData = {
|
|
1325
1262
|
body?: never;
|
|
1326
1263
|
path: {
|
|
1327
|
-
|
|
1264
|
+
id: string;
|
|
1328
1265
|
};
|
|
1329
1266
|
query?: never;
|
|
1330
|
-
url: '/api/
|
|
1267
|
+
url: '/api/knowledge-bases/{id}';
|
|
1331
1268
|
};
|
|
1332
|
-
export type
|
|
1269
|
+
export type DeleteApiKnowledgeBasesByIdErrors = {
|
|
1333
1270
|
/**
|
|
1334
1271
|
* 请求参数无效
|
|
1335
1272
|
*/
|
|
@@ -1355,8 +1292,8 @@ export type DeleteApiLlmConcurrencyByUserIdErrors = {
|
|
|
1355
1292
|
*/
|
|
1356
1293
|
500: ErrorResponse;
|
|
1357
1294
|
};
|
|
1358
|
-
export type
|
|
1359
|
-
export type
|
|
1295
|
+
export type DeleteApiKnowledgeBasesByIdError = DeleteApiKnowledgeBasesByIdErrors[keyof DeleteApiKnowledgeBasesByIdErrors];
|
|
1296
|
+
export type DeleteApiKnowledgeBasesByIdResponses = {
|
|
1360
1297
|
/**
|
|
1361
1298
|
* 成功
|
|
1362
1299
|
*/
|
|
@@ -1366,19 +1303,19 @@ export type DeleteApiLlmConcurrencyByUserIdResponses = {
|
|
|
1366
1303
|
*/
|
|
1367
1304
|
code: number;
|
|
1368
1305
|
message: string;
|
|
1369
|
-
data:
|
|
1306
|
+
data: null;
|
|
1370
1307
|
};
|
|
1371
1308
|
};
|
|
1372
|
-
export type
|
|
1373
|
-
export type
|
|
1309
|
+
export type DeleteApiKnowledgeBasesByIdResponse = DeleteApiKnowledgeBasesByIdResponses[keyof DeleteApiKnowledgeBasesByIdResponses];
|
|
1310
|
+
export type GetApiKnowledgeBasesByIdData = {
|
|
1374
1311
|
body?: never;
|
|
1375
1312
|
path: {
|
|
1376
|
-
|
|
1313
|
+
id: string;
|
|
1377
1314
|
};
|
|
1378
1315
|
query?: never;
|
|
1379
|
-
url: '/api/
|
|
1316
|
+
url: '/api/knowledge-bases/{id}';
|
|
1380
1317
|
};
|
|
1381
|
-
export type
|
|
1318
|
+
export type GetApiKnowledgeBasesByIdErrors = {
|
|
1382
1319
|
/**
|
|
1383
1320
|
* 请求参数无效
|
|
1384
1321
|
*/
|
|
@@ -1404,8 +1341,8 @@ export type GetApiLlmConcurrencyByUserIdErrors = {
|
|
|
1404
1341
|
*/
|
|
1405
1342
|
500: ErrorResponse;
|
|
1406
1343
|
};
|
|
1407
|
-
export type
|
|
1408
|
-
export type
|
|
1344
|
+
export type GetApiKnowledgeBasesByIdError = GetApiKnowledgeBasesByIdErrors[keyof GetApiKnowledgeBasesByIdErrors];
|
|
1345
|
+
export type GetApiKnowledgeBasesByIdResponses = {
|
|
1409
1346
|
/**
|
|
1410
1347
|
* 成功
|
|
1411
1348
|
*/
|
|
@@ -1415,23 +1352,825 @@ export type GetApiLlmConcurrencyByUserIdResponses = {
|
|
|
1415
1352
|
*/
|
|
1416
1353
|
code: number;
|
|
1417
1354
|
message: string;
|
|
1418
|
-
data:
|
|
1355
|
+
data: KnowledgeBase;
|
|
1419
1356
|
};
|
|
1420
1357
|
};
|
|
1421
|
-
export type
|
|
1422
|
-
export type
|
|
1358
|
+
export type GetApiKnowledgeBasesByIdResponse = GetApiKnowledgeBasesByIdResponses[keyof GetApiKnowledgeBasesByIdResponses];
|
|
1359
|
+
export type PatchApiKnowledgeBasesByIdData = {
|
|
1423
1360
|
body: {
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1361
|
+
name?: string;
|
|
1362
|
+
mark?: string;
|
|
1363
|
+
description?: string | null;
|
|
1364
|
+
chunkSize?: number | null;
|
|
1365
|
+
chunkOverlap?: number | null;
|
|
1427
1366
|
};
|
|
1428
1367
|
path: {
|
|
1429
|
-
|
|
1368
|
+
id: string;
|
|
1369
|
+
};
|
|
1370
|
+
query?: never;
|
|
1371
|
+
url: '/api/knowledge-bases/{id}';
|
|
1372
|
+
};
|
|
1373
|
+
export type PatchApiKnowledgeBasesByIdErrors = {
|
|
1374
|
+
/**
|
|
1375
|
+
* 请求参数无效
|
|
1376
|
+
*/
|
|
1377
|
+
400: ErrorResponse;
|
|
1378
|
+
/**
|
|
1379
|
+
* 未登录
|
|
1380
|
+
*/
|
|
1381
|
+
401: ErrorResponse;
|
|
1382
|
+
/**
|
|
1383
|
+
* 无权限
|
|
1384
|
+
*/
|
|
1385
|
+
403: ErrorResponse;
|
|
1386
|
+
/**
|
|
1387
|
+
* 资源不存在
|
|
1388
|
+
*/
|
|
1389
|
+
404: ErrorResponse;
|
|
1390
|
+
/**
|
|
1391
|
+
* LLM 并发已满
|
|
1392
|
+
*/
|
|
1393
|
+
429: ErrorResponse;
|
|
1394
|
+
/**
|
|
1395
|
+
* 服务器内部错误
|
|
1396
|
+
*/
|
|
1397
|
+
500: ErrorResponse;
|
|
1398
|
+
};
|
|
1399
|
+
export type PatchApiKnowledgeBasesByIdError = PatchApiKnowledgeBasesByIdErrors[keyof PatchApiKnowledgeBasesByIdErrors];
|
|
1400
|
+
export type PatchApiKnowledgeBasesByIdResponses = {
|
|
1401
|
+
/**
|
|
1402
|
+
* 成功
|
|
1403
|
+
*/
|
|
1404
|
+
200: {
|
|
1405
|
+
/**
|
|
1406
|
+
* 业务码,成功为 0
|
|
1407
|
+
*/
|
|
1408
|
+
code: number;
|
|
1409
|
+
message: string;
|
|
1410
|
+
data: KnowledgeBase;
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
export type PatchApiKnowledgeBasesByIdResponse = PatchApiKnowledgeBasesByIdResponses[keyof PatchApiKnowledgeBasesByIdResponses];
|
|
1414
|
+
export type GetApiRagsData = {
|
|
1415
|
+
body?: never;
|
|
1416
|
+
path?: never;
|
|
1417
|
+
query?: never;
|
|
1418
|
+
url: '/api/rags';
|
|
1419
|
+
};
|
|
1420
|
+
export type GetApiRagsErrors = {
|
|
1421
|
+
/**
|
|
1422
|
+
* 未登录
|
|
1423
|
+
*/
|
|
1424
|
+
401: ErrorResponse;
|
|
1425
|
+
/**
|
|
1426
|
+
* 服务器内部错误
|
|
1427
|
+
*/
|
|
1428
|
+
500: ErrorResponse;
|
|
1429
|
+
};
|
|
1430
|
+
export type GetApiRagsError = GetApiRagsErrors[keyof GetApiRagsErrors];
|
|
1431
|
+
export type GetApiRagsResponses = {
|
|
1432
|
+
/**
|
|
1433
|
+
* 成功
|
|
1434
|
+
*/
|
|
1435
|
+
200: {
|
|
1436
|
+
/**
|
|
1437
|
+
* 业务码,成功为 0
|
|
1438
|
+
*/
|
|
1439
|
+
code: number;
|
|
1440
|
+
message: string;
|
|
1441
|
+
data: Array<Rag>;
|
|
1442
|
+
};
|
|
1443
|
+
};
|
|
1444
|
+
export type GetApiRagsResponse = GetApiRagsResponses[keyof GetApiRagsResponses];
|
|
1445
|
+
export type PostApiRagsData = {
|
|
1446
|
+
body: {
|
|
1447
|
+
name: string;
|
|
1448
|
+
description?: string | null;
|
|
1449
|
+
mark?: string | null;
|
|
1450
|
+
kbId: number;
|
|
1451
|
+
systemPrompt?: string | null;
|
|
1452
|
+
splitPrompt?: string | null;
|
|
1453
|
+
splitQuery?: boolean | null;
|
|
1454
|
+
scoreThreshold?: number | null;
|
|
1455
|
+
lowScoreReply?: string | null;
|
|
1456
|
+
deepThinking?: 'default' | 'false' | 'low' | 'medium' | 'high' | null;
|
|
1457
|
+
multiTurn?: boolean | null;
|
|
1458
|
+
contextThreshold?: number | null;
|
|
1459
|
+
retrieveLimit?: number | null;
|
|
1460
|
+
imageMaxCount?: number | null;
|
|
1461
|
+
imageMaxEdge?: number | null;
|
|
1462
|
+
welcome?: RagWelcomeConfig;
|
|
1463
|
+
recommendedQuestions?: Array<string> | null;
|
|
1464
|
+
};
|
|
1465
|
+
path?: never;
|
|
1466
|
+
query?: never;
|
|
1467
|
+
url: '/api/rags';
|
|
1468
|
+
};
|
|
1469
|
+
export type PostApiRagsErrors = {
|
|
1470
|
+
/**
|
|
1471
|
+
* 请求参数无效
|
|
1472
|
+
*/
|
|
1473
|
+
400: ErrorResponse;
|
|
1474
|
+
/**
|
|
1475
|
+
* 未登录
|
|
1476
|
+
*/
|
|
1477
|
+
401: ErrorResponse;
|
|
1478
|
+
/**
|
|
1479
|
+
* 服务器内部错误
|
|
1480
|
+
*/
|
|
1481
|
+
500: ErrorResponse;
|
|
1482
|
+
};
|
|
1483
|
+
export type PostApiRagsError = PostApiRagsErrors[keyof PostApiRagsErrors];
|
|
1484
|
+
export type PostApiRagsResponses = {
|
|
1485
|
+
/**
|
|
1486
|
+
* 成功
|
|
1487
|
+
*/
|
|
1488
|
+
201: {
|
|
1489
|
+
/**
|
|
1490
|
+
* 业务码,成功为 0
|
|
1491
|
+
*/
|
|
1492
|
+
code: number;
|
|
1493
|
+
message: string;
|
|
1494
|
+
data: {
|
|
1495
|
+
id: number;
|
|
1496
|
+
};
|
|
1497
|
+
};
|
|
1498
|
+
};
|
|
1499
|
+
export type PostApiRagsResponse = PostApiRagsResponses[keyof PostApiRagsResponses];
|
|
1500
|
+
export type DeleteApiRagsByIdData = {
|
|
1501
|
+
body?: never;
|
|
1502
|
+
path: {
|
|
1503
|
+
id: string;
|
|
1504
|
+
};
|
|
1505
|
+
query?: never;
|
|
1506
|
+
url: '/api/rags/{id}';
|
|
1507
|
+
};
|
|
1508
|
+
export type DeleteApiRagsByIdErrors = {
|
|
1509
|
+
/**
|
|
1510
|
+
* 请求参数无效
|
|
1511
|
+
*/
|
|
1512
|
+
400: ErrorResponse;
|
|
1513
|
+
/**
|
|
1514
|
+
* 未登录
|
|
1515
|
+
*/
|
|
1516
|
+
401: ErrorResponse;
|
|
1517
|
+
/**
|
|
1518
|
+
* 无权限
|
|
1519
|
+
*/
|
|
1520
|
+
403: ErrorResponse;
|
|
1521
|
+
/**
|
|
1522
|
+
* 资源不存在
|
|
1523
|
+
*/
|
|
1524
|
+
404: ErrorResponse;
|
|
1525
|
+
/**
|
|
1526
|
+
* LLM 并发已满
|
|
1527
|
+
*/
|
|
1528
|
+
429: ErrorResponse;
|
|
1529
|
+
/**
|
|
1530
|
+
* 服务器内部错误
|
|
1531
|
+
*/
|
|
1532
|
+
500: ErrorResponse;
|
|
1533
|
+
};
|
|
1534
|
+
export type DeleteApiRagsByIdError = DeleteApiRagsByIdErrors[keyof DeleteApiRagsByIdErrors];
|
|
1535
|
+
export type DeleteApiRagsByIdResponses = {
|
|
1536
|
+
/**
|
|
1537
|
+
* 成功
|
|
1538
|
+
*/
|
|
1539
|
+
200: {
|
|
1540
|
+
/**
|
|
1541
|
+
* 业务码,成功为 0
|
|
1542
|
+
*/
|
|
1543
|
+
code: number;
|
|
1544
|
+
message: string;
|
|
1545
|
+
data: null;
|
|
1546
|
+
};
|
|
1547
|
+
};
|
|
1548
|
+
export type DeleteApiRagsByIdResponse = DeleteApiRagsByIdResponses[keyof DeleteApiRagsByIdResponses];
|
|
1549
|
+
export type GetApiRagsByIdData = {
|
|
1550
|
+
body?: never;
|
|
1551
|
+
path: {
|
|
1552
|
+
id: string;
|
|
1553
|
+
};
|
|
1554
|
+
query?: never;
|
|
1555
|
+
url: '/api/rags/{id}';
|
|
1556
|
+
};
|
|
1557
|
+
export type GetApiRagsByIdErrors = {
|
|
1558
|
+
/**
|
|
1559
|
+
* 请求参数无效
|
|
1560
|
+
*/
|
|
1561
|
+
400: ErrorResponse;
|
|
1562
|
+
/**
|
|
1563
|
+
* 未登录
|
|
1564
|
+
*/
|
|
1565
|
+
401: ErrorResponse;
|
|
1566
|
+
/**
|
|
1567
|
+
* 无权限
|
|
1568
|
+
*/
|
|
1569
|
+
403: ErrorResponse;
|
|
1570
|
+
/**
|
|
1571
|
+
* 资源不存在
|
|
1572
|
+
*/
|
|
1573
|
+
404: ErrorResponse;
|
|
1574
|
+
/**
|
|
1575
|
+
* LLM 并发已满
|
|
1576
|
+
*/
|
|
1577
|
+
429: ErrorResponse;
|
|
1578
|
+
/**
|
|
1579
|
+
* 服务器内部错误
|
|
1580
|
+
*/
|
|
1581
|
+
500: ErrorResponse;
|
|
1582
|
+
};
|
|
1583
|
+
export type GetApiRagsByIdError = GetApiRagsByIdErrors[keyof GetApiRagsByIdErrors];
|
|
1584
|
+
export type GetApiRagsByIdResponses = {
|
|
1585
|
+
/**
|
|
1586
|
+
* 成功
|
|
1587
|
+
*/
|
|
1588
|
+
200: {
|
|
1589
|
+
/**
|
|
1590
|
+
* 业务码,成功为 0
|
|
1591
|
+
*/
|
|
1592
|
+
code: number;
|
|
1593
|
+
message: string;
|
|
1594
|
+
data: Rag;
|
|
1595
|
+
};
|
|
1596
|
+
};
|
|
1597
|
+
export type GetApiRagsByIdResponse = GetApiRagsByIdResponses[keyof GetApiRagsByIdResponses];
|
|
1598
|
+
export type PatchApiRagsByIdData = {
|
|
1599
|
+
body: {
|
|
1600
|
+
name?: string;
|
|
1601
|
+
description?: string | null;
|
|
1602
|
+
mark?: string | null;
|
|
1603
|
+
kbId?: number;
|
|
1604
|
+
systemPrompt?: string | null;
|
|
1605
|
+
splitPrompt?: string | null;
|
|
1606
|
+
splitQuery?: boolean | null;
|
|
1607
|
+
scoreThreshold?: number | null;
|
|
1608
|
+
lowScoreReply?: string | null;
|
|
1609
|
+
deepThinking?: 'default' | 'false' | 'low' | 'medium' | 'high' | null;
|
|
1610
|
+
multiTurn?: boolean | null;
|
|
1611
|
+
contextThreshold?: number | null;
|
|
1612
|
+
retrieveLimit?: number | null;
|
|
1613
|
+
imageMaxCount?: number | null;
|
|
1614
|
+
imageMaxEdge?: number | null;
|
|
1615
|
+
welcome?: RagWelcomeConfig;
|
|
1616
|
+
recommendedQuestions?: Array<string> | null;
|
|
1617
|
+
};
|
|
1618
|
+
path: {
|
|
1619
|
+
id: string;
|
|
1620
|
+
};
|
|
1621
|
+
query?: never;
|
|
1622
|
+
url: '/api/rags/{id}';
|
|
1623
|
+
};
|
|
1624
|
+
export type PatchApiRagsByIdErrors = {
|
|
1625
|
+
/**
|
|
1626
|
+
* 请求参数无效
|
|
1627
|
+
*/
|
|
1628
|
+
400: ErrorResponse;
|
|
1629
|
+
/**
|
|
1630
|
+
* 未登录
|
|
1631
|
+
*/
|
|
1632
|
+
401: ErrorResponse;
|
|
1633
|
+
/**
|
|
1634
|
+
* 无权限
|
|
1635
|
+
*/
|
|
1636
|
+
403: ErrorResponse;
|
|
1637
|
+
/**
|
|
1638
|
+
* 资源不存在
|
|
1639
|
+
*/
|
|
1640
|
+
404: ErrorResponse;
|
|
1641
|
+
/**
|
|
1642
|
+
* LLM 并发已满
|
|
1643
|
+
*/
|
|
1644
|
+
429: ErrorResponse;
|
|
1645
|
+
/**
|
|
1646
|
+
* 服务器内部错误
|
|
1647
|
+
*/
|
|
1648
|
+
500: ErrorResponse;
|
|
1649
|
+
};
|
|
1650
|
+
export type PatchApiRagsByIdError = PatchApiRagsByIdErrors[keyof PatchApiRagsByIdErrors];
|
|
1651
|
+
export type PatchApiRagsByIdResponses = {
|
|
1652
|
+
/**
|
|
1653
|
+
* 成功
|
|
1654
|
+
*/
|
|
1655
|
+
200: {
|
|
1656
|
+
/**
|
|
1657
|
+
* 业务码,成功为 0
|
|
1658
|
+
*/
|
|
1659
|
+
code: number;
|
|
1660
|
+
message: string;
|
|
1661
|
+
data: Rag;
|
|
1662
|
+
};
|
|
1663
|
+
};
|
|
1664
|
+
export type PatchApiRagsByIdResponse = PatchApiRagsByIdResponses[keyof PatchApiRagsByIdResponses];
|
|
1665
|
+
export type GetApiRagsDetailData = {
|
|
1666
|
+
body?: never;
|
|
1667
|
+
path?: never;
|
|
1668
|
+
query?: {
|
|
1669
|
+
id?: number | null;
|
|
1670
|
+
mark?: string;
|
|
1671
|
+
};
|
|
1672
|
+
url: '/api/rags/detail';
|
|
1673
|
+
};
|
|
1674
|
+
export type GetApiRagsDetailErrors = {
|
|
1675
|
+
/**
|
|
1676
|
+
* 请求参数无效
|
|
1677
|
+
*/
|
|
1678
|
+
400: ErrorResponse;
|
|
1679
|
+
/**
|
|
1680
|
+
* 未登录
|
|
1681
|
+
*/
|
|
1682
|
+
401: ErrorResponse;
|
|
1683
|
+
/**
|
|
1684
|
+
* 资源不存在
|
|
1685
|
+
*/
|
|
1686
|
+
404: ErrorResponse;
|
|
1687
|
+
/**
|
|
1688
|
+
* 服务器内部错误
|
|
1689
|
+
*/
|
|
1690
|
+
500: ErrorResponse;
|
|
1691
|
+
};
|
|
1692
|
+
export type GetApiRagsDetailError = GetApiRagsDetailErrors[keyof GetApiRagsDetailErrors];
|
|
1693
|
+
export type GetApiRagsDetailResponses = {
|
|
1694
|
+
/**
|
|
1695
|
+
* 成功
|
|
1696
|
+
*/
|
|
1697
|
+
200: {
|
|
1698
|
+
/**
|
|
1699
|
+
* 业务码,成功为 0
|
|
1700
|
+
*/
|
|
1701
|
+
code: number;
|
|
1702
|
+
message: string;
|
|
1703
|
+
data: RagDetail;
|
|
1704
|
+
};
|
|
1705
|
+
};
|
|
1706
|
+
export type GetApiRagsDetailResponse = GetApiRagsDetailResponses[keyof GetApiRagsDetailResponses];
|
|
1707
|
+
export type DeleteApiDocumentsData = {
|
|
1708
|
+
body?: never;
|
|
1709
|
+
path?: never;
|
|
1710
|
+
query: {
|
|
1711
|
+
/**
|
|
1712
|
+
* 知识库 ID
|
|
1713
|
+
*/
|
|
1714
|
+
kbId: number;
|
|
1715
|
+
};
|
|
1716
|
+
url: '/api/documents';
|
|
1717
|
+
};
|
|
1718
|
+
export type DeleteApiDocumentsErrors = {
|
|
1719
|
+
/**
|
|
1720
|
+
* 请求参数无效
|
|
1721
|
+
*/
|
|
1722
|
+
400: ErrorResponse;
|
|
1723
|
+
/**
|
|
1724
|
+
* 未登录
|
|
1725
|
+
*/
|
|
1726
|
+
401: ErrorResponse;
|
|
1727
|
+
/**
|
|
1728
|
+
* 无权限
|
|
1729
|
+
*/
|
|
1730
|
+
403: ErrorResponse;
|
|
1731
|
+
/**
|
|
1732
|
+
* 服务器内部错误
|
|
1733
|
+
*/
|
|
1734
|
+
500: ErrorResponse;
|
|
1735
|
+
};
|
|
1736
|
+
export type DeleteApiDocumentsError = DeleteApiDocumentsErrors[keyof DeleteApiDocumentsErrors];
|
|
1737
|
+
export type DeleteApiDocumentsResponses = {
|
|
1738
|
+
/**
|
|
1739
|
+
* 成功
|
|
1740
|
+
*/
|
|
1741
|
+
200: {
|
|
1742
|
+
/**
|
|
1743
|
+
* 业务码,成功为 0
|
|
1744
|
+
*/
|
|
1745
|
+
code: number;
|
|
1746
|
+
message: string;
|
|
1747
|
+
data: null;
|
|
1748
|
+
};
|
|
1749
|
+
};
|
|
1750
|
+
export type DeleteApiDocumentsResponse = DeleteApiDocumentsResponses[keyof DeleteApiDocumentsResponses];
|
|
1751
|
+
export type GetApiDocumentsData = {
|
|
1752
|
+
body?: never;
|
|
1753
|
+
path?: never;
|
|
1754
|
+
query: {
|
|
1755
|
+
/**
|
|
1756
|
+
* 知识库 ID
|
|
1757
|
+
*/
|
|
1758
|
+
kbId: number;
|
|
1759
|
+
};
|
|
1760
|
+
url: '/api/documents';
|
|
1761
|
+
};
|
|
1762
|
+
export type GetApiDocumentsErrors = {
|
|
1763
|
+
/**
|
|
1764
|
+
* 请求参数无效
|
|
1765
|
+
*/
|
|
1766
|
+
400: ErrorResponse;
|
|
1767
|
+
/**
|
|
1768
|
+
* 未登录
|
|
1769
|
+
*/
|
|
1770
|
+
401: ErrorResponse;
|
|
1771
|
+
/**
|
|
1772
|
+
* 服务器内部错误
|
|
1773
|
+
*/
|
|
1774
|
+
500: ErrorResponse;
|
|
1775
|
+
};
|
|
1776
|
+
export type GetApiDocumentsError = GetApiDocumentsErrors[keyof GetApiDocumentsErrors];
|
|
1777
|
+
export type GetApiDocumentsResponses = {
|
|
1778
|
+
/**
|
|
1779
|
+
* 成功
|
|
1780
|
+
*/
|
|
1781
|
+
200: {
|
|
1782
|
+
/**
|
|
1783
|
+
* 业务码,成功为 0
|
|
1784
|
+
*/
|
|
1785
|
+
code: number;
|
|
1786
|
+
message: string;
|
|
1787
|
+
data: Array<DocumentSummary>;
|
|
1788
|
+
};
|
|
1789
|
+
};
|
|
1790
|
+
export type GetApiDocumentsResponse = GetApiDocumentsResponses[keyof GetApiDocumentsResponses];
|
|
1791
|
+
export type PostApiDocumentsData = {
|
|
1792
|
+
body?: {
|
|
1793
|
+
filename: string;
|
|
1794
|
+
folderId?: string | null;
|
|
1795
|
+
visibility?: Visibility;
|
|
1796
|
+
};
|
|
1797
|
+
path?: never;
|
|
1798
|
+
query: {
|
|
1799
|
+
/**
|
|
1800
|
+
* 知识库 ID
|
|
1801
|
+
*/
|
|
1802
|
+
kbId: number;
|
|
1803
|
+
};
|
|
1804
|
+
url: '/api/documents';
|
|
1805
|
+
};
|
|
1806
|
+
export type PostApiDocumentsErrors = {
|
|
1807
|
+
/**
|
|
1808
|
+
* 请求参数无效
|
|
1809
|
+
*/
|
|
1810
|
+
400: ErrorResponse;
|
|
1811
|
+
/**
|
|
1812
|
+
* 未登录
|
|
1813
|
+
*/
|
|
1814
|
+
401: ErrorResponse;
|
|
1815
|
+
/**
|
|
1816
|
+
* 无权限
|
|
1817
|
+
*/
|
|
1818
|
+
403: ErrorResponse;
|
|
1819
|
+
/**
|
|
1820
|
+
* 服务器内部错误
|
|
1821
|
+
*/
|
|
1822
|
+
500: ErrorResponse;
|
|
1823
|
+
};
|
|
1824
|
+
export type PostApiDocumentsError = PostApiDocumentsErrors[keyof PostApiDocumentsErrors];
|
|
1825
|
+
export type PostApiDocumentsResponses = {
|
|
1826
|
+
/**
|
|
1827
|
+
* JSON 创建成功返回文档摘要;multipart 返回 NDJSON 进度事件流
|
|
1828
|
+
*/
|
|
1829
|
+
201: {
|
|
1830
|
+
/**
|
|
1831
|
+
* 业务码,成功为 0
|
|
1832
|
+
*/
|
|
1833
|
+
code: number;
|
|
1834
|
+
message: string;
|
|
1835
|
+
data: DocumentSummary;
|
|
1836
|
+
};
|
|
1837
|
+
};
|
|
1838
|
+
export type PostApiDocumentsResponse = PostApiDocumentsResponses[keyof PostApiDocumentsResponses];
|
|
1839
|
+
export type GetApiDocumentsTreeData = {
|
|
1840
|
+
body?: never;
|
|
1841
|
+
path?: never;
|
|
1842
|
+
query: {
|
|
1843
|
+
/**
|
|
1844
|
+
* 知识库标识
|
|
1845
|
+
*/
|
|
1846
|
+
mark: string;
|
|
1847
|
+
};
|
|
1848
|
+
url: '/api/documents/tree';
|
|
1849
|
+
};
|
|
1850
|
+
export type GetApiDocumentsTreeErrors = {
|
|
1851
|
+
/**
|
|
1852
|
+
* 请求参数无效
|
|
1853
|
+
*/
|
|
1854
|
+
400: ErrorResponse;
|
|
1855
|
+
/**
|
|
1856
|
+
* 未登录
|
|
1857
|
+
*/
|
|
1858
|
+
401: ErrorResponse;
|
|
1859
|
+
/**
|
|
1860
|
+
* 资源不存在
|
|
1861
|
+
*/
|
|
1862
|
+
404: ErrorResponse;
|
|
1863
|
+
/**
|
|
1864
|
+
* 服务器内部错误
|
|
1865
|
+
*/
|
|
1866
|
+
500: ErrorResponse;
|
|
1867
|
+
};
|
|
1868
|
+
export type GetApiDocumentsTreeError = GetApiDocumentsTreeErrors[keyof GetApiDocumentsTreeErrors];
|
|
1869
|
+
export type GetApiDocumentsTreeResponses = {
|
|
1870
|
+
/**
|
|
1871
|
+
* 成功
|
|
1872
|
+
*/
|
|
1873
|
+
200: {
|
|
1874
|
+
/**
|
|
1875
|
+
* 业务码,成功为 0
|
|
1876
|
+
*/
|
|
1877
|
+
code: number;
|
|
1878
|
+
message: string;
|
|
1879
|
+
data: Array<DocumentTreeNode>;
|
|
1880
|
+
};
|
|
1881
|
+
};
|
|
1882
|
+
export type GetApiDocumentsTreeResponse = GetApiDocumentsTreeResponses[keyof GetApiDocumentsTreeResponses];
|
|
1883
|
+
export type DeleteApiDocumentsByIdData = {
|
|
1884
|
+
body?: never;
|
|
1885
|
+
path: {
|
|
1886
|
+
id: string;
|
|
1887
|
+
};
|
|
1888
|
+
query?: never;
|
|
1889
|
+
url: '/api/documents/{id}';
|
|
1890
|
+
};
|
|
1891
|
+
export type DeleteApiDocumentsByIdErrors = {
|
|
1892
|
+
/**
|
|
1893
|
+
* 请求参数无效
|
|
1894
|
+
*/
|
|
1895
|
+
400: ErrorResponse;
|
|
1896
|
+
/**
|
|
1897
|
+
* 未登录
|
|
1898
|
+
*/
|
|
1899
|
+
401: ErrorResponse;
|
|
1900
|
+
/**
|
|
1901
|
+
* 无权限
|
|
1902
|
+
*/
|
|
1903
|
+
403: ErrorResponse;
|
|
1904
|
+
/**
|
|
1905
|
+
* 资源不存在
|
|
1906
|
+
*/
|
|
1907
|
+
404: ErrorResponse;
|
|
1908
|
+
/**
|
|
1909
|
+
* LLM 并发已满
|
|
1910
|
+
*/
|
|
1911
|
+
429: ErrorResponse;
|
|
1912
|
+
/**
|
|
1913
|
+
* 服务器内部错误
|
|
1914
|
+
*/
|
|
1915
|
+
500: ErrorResponse;
|
|
1916
|
+
};
|
|
1917
|
+
export type DeleteApiDocumentsByIdError = DeleteApiDocumentsByIdErrors[keyof DeleteApiDocumentsByIdErrors];
|
|
1918
|
+
export type DeleteApiDocumentsByIdResponses = {
|
|
1919
|
+
/**
|
|
1920
|
+
* 成功
|
|
1921
|
+
*/
|
|
1922
|
+
200: {
|
|
1923
|
+
/**
|
|
1924
|
+
* 业务码,成功为 0
|
|
1925
|
+
*/
|
|
1926
|
+
code: number;
|
|
1927
|
+
message: string;
|
|
1928
|
+
data: null;
|
|
1929
|
+
};
|
|
1930
|
+
};
|
|
1931
|
+
export type DeleteApiDocumentsByIdResponse = DeleteApiDocumentsByIdResponses[keyof DeleteApiDocumentsByIdResponses];
|
|
1932
|
+
export type GetApiDocumentsByIdData = {
|
|
1933
|
+
body?: never;
|
|
1934
|
+
path: {
|
|
1935
|
+
id: string;
|
|
1936
|
+
};
|
|
1937
|
+
query?: {
|
|
1938
|
+
source?: 'docs' | 'search';
|
|
1939
|
+
};
|
|
1940
|
+
url: '/api/documents/{id}';
|
|
1941
|
+
};
|
|
1942
|
+
export type GetApiDocumentsByIdErrors = {
|
|
1943
|
+
/**
|
|
1944
|
+
* 无权限
|
|
1945
|
+
*/
|
|
1946
|
+
403: ErrorResponse;
|
|
1947
|
+
/**
|
|
1948
|
+
* 资源不存在
|
|
1949
|
+
*/
|
|
1950
|
+
404: ErrorResponse;
|
|
1951
|
+
/**
|
|
1952
|
+
* 服务器内部错误
|
|
1953
|
+
*/
|
|
1954
|
+
500: ErrorResponse;
|
|
1955
|
+
};
|
|
1956
|
+
export type GetApiDocumentsByIdError = GetApiDocumentsByIdErrors[keyof GetApiDocumentsByIdErrors];
|
|
1957
|
+
export type GetApiDocumentsByIdResponses = {
|
|
1958
|
+
/**
|
|
1959
|
+
* 成功
|
|
1960
|
+
*/
|
|
1961
|
+
200: {
|
|
1962
|
+
/**
|
|
1963
|
+
* 业务码,成功为 0
|
|
1964
|
+
*/
|
|
1965
|
+
code: number;
|
|
1966
|
+
message: string;
|
|
1967
|
+
data: Document;
|
|
1968
|
+
};
|
|
1969
|
+
};
|
|
1970
|
+
export type GetApiDocumentsByIdResponse = GetApiDocumentsByIdResponses[keyof GetApiDocumentsByIdResponses];
|
|
1971
|
+
export type PatchApiDocumentsByIdData = {
|
|
1972
|
+
body: {
|
|
1973
|
+
filename?: string;
|
|
1974
|
+
content?: string;
|
|
1975
|
+
visibility?: Visibility;
|
|
1976
|
+
chunkSize?: number | null;
|
|
1977
|
+
chunkOverlap?: number | null;
|
|
1978
|
+
};
|
|
1979
|
+
path: {
|
|
1980
|
+
id: string;
|
|
1981
|
+
};
|
|
1982
|
+
query?: never;
|
|
1983
|
+
url: '/api/documents/{id}';
|
|
1984
|
+
};
|
|
1985
|
+
export type PatchApiDocumentsByIdErrors = {
|
|
1986
|
+
/**
|
|
1987
|
+
* 请求参数无效
|
|
1988
|
+
*/
|
|
1989
|
+
400: ErrorResponse;
|
|
1990
|
+
/**
|
|
1991
|
+
* 未登录
|
|
1992
|
+
*/
|
|
1993
|
+
401: ErrorResponse;
|
|
1994
|
+
/**
|
|
1995
|
+
* 无权限
|
|
1996
|
+
*/
|
|
1997
|
+
403: ErrorResponse;
|
|
1998
|
+
/**
|
|
1999
|
+
* 资源不存在
|
|
2000
|
+
*/
|
|
2001
|
+
404: ErrorResponse;
|
|
2002
|
+
/**
|
|
2003
|
+
* LLM 并发已满
|
|
2004
|
+
*/
|
|
2005
|
+
429: ErrorResponse;
|
|
2006
|
+
/**
|
|
2007
|
+
* 服务器内部错误
|
|
2008
|
+
*/
|
|
2009
|
+
500: ErrorResponse;
|
|
2010
|
+
};
|
|
2011
|
+
export type PatchApiDocumentsByIdError = PatchApiDocumentsByIdErrors[keyof PatchApiDocumentsByIdErrors];
|
|
2012
|
+
export type PatchApiDocumentsByIdResponses = {
|
|
2013
|
+
/**
|
|
2014
|
+
* 成功
|
|
2015
|
+
*/
|
|
2016
|
+
200: {
|
|
2017
|
+
/**
|
|
2018
|
+
* 业务码,成功为 0
|
|
2019
|
+
*/
|
|
2020
|
+
code: number;
|
|
2021
|
+
message: string;
|
|
2022
|
+
data: Document;
|
|
2023
|
+
};
|
|
2024
|
+
};
|
|
2025
|
+
export type PatchApiDocumentsByIdResponse = PatchApiDocumentsByIdResponses[keyof PatchApiDocumentsByIdResponses];
|
|
2026
|
+
export type GetApiFoldersData = {
|
|
2027
|
+
body?: never;
|
|
2028
|
+
path?: never;
|
|
2029
|
+
query?: {
|
|
2030
|
+
kbId?: number | null;
|
|
2031
|
+
mark?: string;
|
|
2032
|
+
};
|
|
2033
|
+
url: '/api/folders';
|
|
2034
|
+
};
|
|
2035
|
+
export type GetApiFoldersErrors = {
|
|
2036
|
+
/**
|
|
2037
|
+
* 请求参数无效
|
|
2038
|
+
*/
|
|
2039
|
+
400: ErrorResponse;
|
|
2040
|
+
/**
|
|
2041
|
+
* 未登录
|
|
2042
|
+
*/
|
|
2043
|
+
401: ErrorResponse;
|
|
2044
|
+
/**
|
|
2045
|
+
* 资源不存在
|
|
2046
|
+
*/
|
|
2047
|
+
404: ErrorResponse;
|
|
2048
|
+
/**
|
|
2049
|
+
* 服务器内部错误
|
|
2050
|
+
*/
|
|
2051
|
+
500: ErrorResponse;
|
|
2052
|
+
};
|
|
2053
|
+
export type GetApiFoldersError = GetApiFoldersErrors[keyof GetApiFoldersErrors];
|
|
2054
|
+
export type GetApiFoldersResponses = {
|
|
2055
|
+
/**
|
|
2056
|
+
* 成功
|
|
2057
|
+
*/
|
|
2058
|
+
200: {
|
|
2059
|
+
/**
|
|
2060
|
+
* 业务码,成功为 0
|
|
2061
|
+
*/
|
|
2062
|
+
code: number;
|
|
2063
|
+
message: string;
|
|
2064
|
+
data: Array<Folder>;
|
|
2065
|
+
};
|
|
2066
|
+
};
|
|
2067
|
+
export type GetApiFoldersResponse = GetApiFoldersResponses[keyof GetApiFoldersResponses];
|
|
2068
|
+
export type PostApiFoldersData = {
|
|
2069
|
+
body: {
|
|
2070
|
+
name: string;
|
|
2071
|
+
parentId?: string | null;
|
|
2072
|
+
visibility?: Visibility;
|
|
2073
|
+
kbId: number;
|
|
2074
|
+
};
|
|
2075
|
+
path?: never;
|
|
2076
|
+
query?: never;
|
|
2077
|
+
url: '/api/folders';
|
|
2078
|
+
};
|
|
2079
|
+
export type PostApiFoldersErrors = {
|
|
2080
|
+
/**
|
|
2081
|
+
* 请求参数无效
|
|
2082
|
+
*/
|
|
2083
|
+
400: ErrorResponse;
|
|
2084
|
+
/**
|
|
2085
|
+
* 未登录
|
|
2086
|
+
*/
|
|
2087
|
+
401: ErrorResponse;
|
|
2088
|
+
/**
|
|
2089
|
+
* 无权限
|
|
2090
|
+
*/
|
|
2091
|
+
403: ErrorResponse;
|
|
2092
|
+
/**
|
|
2093
|
+
* 服务器内部错误
|
|
2094
|
+
*/
|
|
2095
|
+
500: ErrorResponse;
|
|
2096
|
+
};
|
|
2097
|
+
export type PostApiFoldersError = PostApiFoldersErrors[keyof PostApiFoldersErrors];
|
|
2098
|
+
export type PostApiFoldersResponses = {
|
|
2099
|
+
/**
|
|
2100
|
+
* 成功
|
|
2101
|
+
*/
|
|
2102
|
+
201: {
|
|
2103
|
+
/**
|
|
2104
|
+
* 业务码,成功为 0
|
|
2105
|
+
*/
|
|
2106
|
+
code: number;
|
|
2107
|
+
message: string;
|
|
2108
|
+
data: Folder;
|
|
2109
|
+
};
|
|
2110
|
+
};
|
|
2111
|
+
export type PostApiFoldersResponse = PostApiFoldersResponses[keyof PostApiFoldersResponses];
|
|
2112
|
+
export type DeleteApiFoldersByIdData = {
|
|
2113
|
+
body?: never;
|
|
2114
|
+
path: {
|
|
2115
|
+
id: string;
|
|
2116
|
+
};
|
|
2117
|
+
query?: never;
|
|
2118
|
+
url: '/api/folders/{id}';
|
|
2119
|
+
};
|
|
2120
|
+
export type DeleteApiFoldersByIdErrors = {
|
|
2121
|
+
/**
|
|
2122
|
+
* 请求参数无效
|
|
2123
|
+
*/
|
|
2124
|
+
400: ErrorResponse;
|
|
2125
|
+
/**
|
|
2126
|
+
* 未登录
|
|
2127
|
+
*/
|
|
2128
|
+
401: ErrorResponse;
|
|
2129
|
+
/**
|
|
2130
|
+
* 无权限
|
|
2131
|
+
*/
|
|
2132
|
+
403: ErrorResponse;
|
|
2133
|
+
/**
|
|
2134
|
+
* 资源不存在
|
|
2135
|
+
*/
|
|
2136
|
+
404: ErrorResponse;
|
|
2137
|
+
/**
|
|
2138
|
+
* LLM 并发已满
|
|
2139
|
+
*/
|
|
2140
|
+
429: ErrorResponse;
|
|
2141
|
+
/**
|
|
2142
|
+
* 服务器内部错误
|
|
2143
|
+
*/
|
|
2144
|
+
500: ErrorResponse;
|
|
2145
|
+
};
|
|
2146
|
+
export type DeleteApiFoldersByIdError = DeleteApiFoldersByIdErrors[keyof DeleteApiFoldersByIdErrors];
|
|
2147
|
+
export type DeleteApiFoldersByIdResponses = {
|
|
2148
|
+
/**
|
|
2149
|
+
* 成功
|
|
2150
|
+
*/
|
|
2151
|
+
200: {
|
|
2152
|
+
/**
|
|
2153
|
+
* 业务码,成功为 0
|
|
2154
|
+
*/
|
|
2155
|
+
code: number;
|
|
2156
|
+
message: string;
|
|
2157
|
+
data: null;
|
|
2158
|
+
};
|
|
2159
|
+
};
|
|
2160
|
+
export type DeleteApiFoldersByIdResponse = DeleteApiFoldersByIdResponses[keyof DeleteApiFoldersByIdResponses];
|
|
2161
|
+
export type PatchApiFoldersByIdData = {
|
|
2162
|
+
body: {
|
|
2163
|
+
name?: string;
|
|
2164
|
+
parentId?: string | null;
|
|
2165
|
+
visibility?: Visibility;
|
|
2166
|
+
};
|
|
2167
|
+
path: {
|
|
2168
|
+
id: string;
|
|
1430
2169
|
};
|
|
1431
2170
|
query?: never;
|
|
1432
|
-
url: '/api/
|
|
2171
|
+
url: '/api/folders/{id}';
|
|
1433
2172
|
};
|
|
1434
|
-
export type
|
|
2173
|
+
export type PatchApiFoldersByIdErrors = {
|
|
1435
2174
|
/**
|
|
1436
2175
|
* 请求参数无效
|
|
1437
2176
|
*/
|
|
@@ -1457,8 +2196,8 @@ export type PutApiLlmConcurrencyByUserIdErrors = {
|
|
|
1457
2196
|
*/
|
|
1458
2197
|
500: ErrorResponse;
|
|
1459
2198
|
};
|
|
1460
|
-
export type
|
|
1461
|
-
export type
|
|
2199
|
+
export type PatchApiFoldersByIdError = PatchApiFoldersByIdErrors[keyof PatchApiFoldersByIdErrors];
|
|
2200
|
+
export type PatchApiFoldersByIdResponses = {
|
|
1462
2201
|
/**
|
|
1463
2202
|
* 成功
|
|
1464
2203
|
*/
|
|
@@ -1468,8 +2207,8 @@ export type PutApiLlmConcurrencyByUserIdResponses = {
|
|
|
1468
2207
|
*/
|
|
1469
2208
|
code: number;
|
|
1470
2209
|
message: string;
|
|
1471
|
-
data:
|
|
2210
|
+
data: Folder;
|
|
1472
2211
|
};
|
|
1473
2212
|
};
|
|
1474
|
-
export type
|
|
2213
|
+
export type PatchApiFoldersByIdResponse = PatchApiFoldersByIdResponses[keyof PatchApiFoldersByIdResponses];
|
|
1475
2214
|
//# sourceMappingURL=types.gen.d.ts.map
|