@dxpos/knowledge 0.3.0 → 0.6.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.
@@ -1,26 +1,16 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: `${string}://${string}` | (string & {});
3
3
  };
4
- export type ErrorResponse = {
5
- /**
6
- * 业务码,成功为 0
7
- */
8
- code: number;
9
- message: string;
10
- data: {
11
- [key: string]: unknown;
12
- } | Array<unknown> | null;
13
- };
14
4
  export type FileStatus = 'pending' | 'ready' | 'failed';
15
- export type FileScope = 'general' | 'knowledge';
5
+ export type FileScope = 'general' | 'knowledge' | 'chat';
16
6
  export type StoredFile = {
17
7
  id: string;
18
8
  objectKey: string;
19
9
  filename: string;
20
10
  size: number;
21
11
  mimeType: string;
22
- status: 'pending' | 'ready' | 'failed';
23
- scope: 'general' | 'knowledge';
12
+ status: FileStatus;
13
+ scope: FileScope;
24
14
  createdBy: string | null;
25
15
  updatedBy: string | null;
26
16
  createdAt: string;
@@ -32,8 +22,8 @@ export type FileListItem = {
32
22
  filename: string;
33
23
  size: number;
34
24
  mimeType: string;
35
- status: 'pending' | 'ready' | 'failed';
36
- scope: 'general' | 'knowledge';
25
+ status: FileStatus;
26
+ scope: FileScope;
37
27
  createdBy: string | null;
38
28
  updatedBy: string | null;
39
29
  createdAt: string;
@@ -43,19 +33,7 @@ export type FileListItem = {
43
33
  export type BackendUploadResult = {
44
34
  filename: string;
45
35
  status: 'ok' | 'error';
46
- file?: {
47
- id: string;
48
- objectKey: string;
49
- filename: string;
50
- size: number;
51
- mimeType: string;
52
- status: 'pending' | 'ready' | 'failed';
53
- scope: 'general' | 'knowledge';
54
- createdBy: string | null;
55
- updatedBy: string | null;
56
- createdAt: string;
57
- updatedAt: string;
58
- };
36
+ file?: StoredFile;
59
37
  error?: string;
60
38
  };
61
39
  export type PrepareUploadResult = {
@@ -69,28 +47,37 @@ export type PrepareUploadResult = {
69
47
  export type CompleteUploadResult = {
70
48
  id: string;
71
49
  status: 'ok' | 'error';
72
- file?: {
73
- id: string;
74
- objectKey: string;
75
- filename: string;
76
- size: number;
77
- mimeType: string;
78
- status: 'pending' | 'ready' | 'failed';
79
- scope: 'general' | 'knowledge';
80
- createdBy: string | null;
81
- updatedBy: string | null;
82
- createdAt: string;
83
- updatedAt: string;
84
- };
50
+ file?: StoredFile;
85
51
  publicUrl?: string;
86
52
  error?: string;
87
53
  };
54
+ export type BatchDeleteFileResult = {
55
+ id: string;
56
+ status: 'ok' | 'error';
57
+ error?: string;
58
+ };
88
59
  export type MessageRole = 'user' | 'assistant';
60
+ export type MessageAttachment = {
61
+ fileId: string;
62
+ mimeType: string;
63
+ url?: string;
64
+ };
89
65
  export type Message = {
90
66
  id: string;
91
67
  conversationId: string;
92
- role: 'user' | 'assistant';
68
+ role: MessageRole;
93
69
  content: string;
70
+ attachments: Array<MessageAttachment>;
71
+ references: Array<{
72
+ id: string;
73
+ filename: string;
74
+ chunkCount: number;
75
+ score: number;
76
+ }>;
77
+ promptTokens: number | null;
78
+ completionTokens: number | null;
79
+ totalTokens: number | null;
80
+ aborted: boolean;
94
81
  createdBy: string | null;
95
82
  createdAt: string;
96
83
  };
@@ -102,6 +89,13 @@ export type Conversation = {
102
89
  splitQuery: boolean | null;
103
90
  scoreThreshold: number | null;
104
91
  lowScoreReply: string | null;
92
+ deepThinking: 'default' | 'false' | 'low' | 'medium' | 'high' | null;
93
+ multiTurn: boolean | null;
94
+ contextThreshold: number | null;
95
+ imageMaxCount: number | null;
96
+ imageMaxEdge: number | null;
97
+ contextSummary: string | null;
98
+ contextSummaryUpTo: string | null;
105
99
  createdBy: string | null;
106
100
  updatedBy: string | null;
107
101
  createdAt: string;
@@ -142,6 +136,11 @@ export type ChatModuleSettings = {
142
136
  splitQuery: boolean | null;
143
137
  scoreThreshold: number | null;
144
138
  lowScoreReply: string | null;
139
+ deepThinking: 'default' | 'false' | 'low' | 'medium' | 'high' | null;
140
+ multiTurn: boolean | null;
141
+ contextThreshold: number | null;
142
+ imageMaxCount: number | null;
143
+ imageMaxEdge: number | null;
145
144
  updatedBy: string | null;
146
145
  updatedAt: string;
147
146
  };
@@ -155,15 +154,104 @@ export type SearchHit = {
155
154
  filenameSnippet: string;
156
155
  headingSnippet: string;
157
156
  };
157
+ export type ErrorResponse = {
158
+ /**
159
+ * 业务码,成功为 0
160
+ */
161
+ code: number;
162
+ message: string;
163
+ data: {
164
+ [key: string]: unknown;
165
+ } | Array<unknown> | null;
166
+ };
167
+ export type LlmUserConcurrencyListItem = {
168
+ userId: string;
169
+ username: string;
170
+ nickname: string;
171
+ maxConcurrency: number | null;
172
+ maxQueue: number | null;
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;
183
+ };
184
+ export type DeleteApiFilesData = {
185
+ body: {
186
+ ids: Array<string>;
187
+ };
188
+ path?: never;
189
+ query?: never;
190
+ url: '/api/files';
191
+ };
192
+ export type DeleteApiFilesErrors = {
193
+ /**
194
+ * 请求参数无效
195
+ */
196
+ 400: ErrorResponse;
197
+ /**
198
+ * 未登录
199
+ */
200
+ 401: ErrorResponse;
201
+ /**
202
+ * 无权限
203
+ */
204
+ 403: ErrorResponse;
205
+ /**
206
+ * 资源不存在
207
+ */
208
+ 404: ErrorResponse;
209
+ /**
210
+ * LLM 并发已满
211
+ */
212
+ 429: ErrorResponse;
213
+ /**
214
+ * 服务器内部错误
215
+ */
216
+ 500: ErrorResponse;
217
+ };
218
+ export type DeleteApiFilesError = DeleteApiFilesErrors[keyof DeleteApiFilesErrors];
219
+ export type DeleteApiFilesResponses = {
220
+ /**
221
+ * 成功
222
+ */
223
+ 200: {
224
+ /**
225
+ * 业务码,成功为 0
226
+ */
227
+ code: number;
228
+ message: string;
229
+ data: {
230
+ results: Array<BatchDeleteFileResult>;
231
+ };
232
+ };
233
+ };
234
+ export type DeleteApiFilesResponse = DeleteApiFilesResponses[keyof DeleteApiFilesResponses];
158
235
  export type GetApiFilesData = {
159
236
  body?: never;
160
237
  path?: never;
161
238
  query?: {
162
239
  scope?: FileScope;
240
+ status?: FileStatus;
163
241
  /**
164
242
  * 文件名关键词
165
243
  */
166
244
  q?: string;
245
+ /**
246
+ * 创建时间起
247
+ */
248
+ startDate?: string;
249
+ /**
250
+ * 创建时间止
251
+ */
252
+ endDate?: string;
253
+ limit?: number;
254
+ offset?: number;
167
255
  };
168
256
  url: '/api/files';
169
257
  };
@@ -192,7 +280,10 @@ export type GetApiFilesResponses = {
192
280
  */
193
281
  code: number;
194
282
  message: string;
195
- data: Array<FileListItem>;
283
+ data: {
284
+ items: Array<FileListItem>;
285
+ total: number;
286
+ };
196
287
  };
197
288
  };
198
289
  export type GetApiFilesResponse = GetApiFilesResponses[keyof GetApiFilesResponses];
@@ -222,6 +313,10 @@ export type PostApiFilesErrors = {
222
313
  * 资源不存在
223
314
  */
224
315
  404: ErrorResponse;
316
+ /**
317
+ * LLM 并发已满
318
+ */
319
+ 429: ErrorResponse;
225
320
  /**
226
321
  * 服务器内部错误
227
322
  */
@@ -239,7 +334,7 @@ export type PostApiFilesResponses = {
239
334
  code: number;
240
335
  message: string;
241
336
  data: {
242
- results?: Array<BackendUploadResult>;
337
+ results: Array<BackendUploadResult>;
243
338
  };
244
339
  };
245
340
  };
@@ -274,6 +369,10 @@ export type PostApiFilesPresignErrors = {
274
369
  * 资源不存在
275
370
  */
276
371
  404: ErrorResponse;
372
+ /**
373
+ * LLM 并发已满
374
+ */
375
+ 429: ErrorResponse;
277
376
  /**
278
377
  * 服务器内部错误
279
378
  */
@@ -291,7 +390,7 @@ export type PostApiFilesPresignResponses = {
291
390
  code: number;
292
391
  message: string;
293
392
  data: {
294
- results?: Array<PrepareUploadResult>;
393
+ results: Array<PrepareUploadResult>;
295
394
  };
296
395
  };
297
396
  };
@@ -321,6 +420,10 @@ export type PostApiFilesCompleteErrors = {
321
420
  * 资源不存在
322
421
  */
323
422
  404: ErrorResponse;
423
+ /**
424
+ * LLM 并发已满
425
+ */
426
+ 429: ErrorResponse;
324
427
  /**
325
428
  * 服务器内部错误
326
429
  */
@@ -338,7 +441,7 @@ export type PostApiFilesCompleteResponses = {
338
441
  code: number;
339
442
  message: string;
340
443
  data: {
341
- results?: Array<CompleteUploadResult>;
444
+ results: Array<CompleteUploadResult>;
342
445
  };
343
446
  };
344
447
  };
@@ -368,6 +471,10 @@ export type DeleteApiFilesByIdErrors = {
368
471
  * 资源不存在
369
472
  */
370
473
  404: ErrorResponse;
474
+ /**
475
+ * LLM 并发已满
476
+ */
477
+ 429: ErrorResponse;
371
478
  /**
372
479
  * 服务器内部错误
373
480
  */
@@ -413,6 +520,10 @@ export type GetApiFilesByIdErrors = {
413
520
  * 资源不存在
414
521
  */
415
522
  404: ErrorResponse;
523
+ /**
524
+ * LLM 并发已满
525
+ */
526
+ 429: ErrorResponse;
416
527
  /**
417
528
  * 服务器内部错误
418
529
  */
@@ -458,6 +569,10 @@ export type GetApiFilesByIdRawErrors = {
458
569
  * 资源不存在
459
570
  */
460
571
  404: ErrorResponse;
572
+ /**
573
+ * LLM 并发已满
574
+ */
575
+ 429: ErrorResponse;
461
576
  /**
462
577
  * 服务器内部错误
463
578
  */
@@ -496,6 +611,10 @@ export type GetApiFilesByIdUrlErrors = {
496
611
  * 资源不存在
497
612
  */
498
613
  404: ErrorResponse;
614
+ /**
615
+ * LLM 并发已满
616
+ */
617
+ 429: ErrorResponse;
499
618
  /**
500
619
  * 服务器内部错误
501
620
  */
@@ -522,6 +641,9 @@ export type PostApiChatData = {
522
641
  body: {
523
642
  conversationId: string;
524
643
  content: string;
644
+ attachments?: Array<{
645
+ fileId: string;
646
+ }>;
525
647
  stream?: boolean;
526
648
  };
527
649
  path?: never;
@@ -545,6 +667,10 @@ export type PostApiChatErrors = {
545
667
  * 资源不存在
546
668
  */
547
669
  404: ErrorResponse;
670
+ /**
671
+ * LLM 并发已满
672
+ */
673
+ 429: ErrorResponse;
548
674
  /**
549
675
  * 服务器内部错误
550
676
  */
@@ -607,6 +733,11 @@ export type PutApiChatSettingsData = {
607
733
  splitQuery?: boolean | null;
608
734
  scoreThreshold?: number | null;
609
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;
610
741
  };
611
742
  path?: never;
612
743
  query?: never;
@@ -629,6 +760,10 @@ export type PutApiChatSettingsErrors = {
629
760
  * 资源不存在
630
761
  */
631
762
  404: ErrorResponse;
763
+ /**
764
+ * LLM 并发已满
765
+ */
766
+ 429: ErrorResponse;
632
767
  /**
633
768
  * 服务器内部错误
634
769
  */
@@ -649,6 +784,147 @@ export type PutApiChatSettingsResponses = {
649
784
  };
650
785
  };
651
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
+ export type GetApiChatLimitsData = {
885
+ body?: never;
886
+ path?: never;
887
+ query: {
888
+ conversationId: string;
889
+ };
890
+ url: '/api/chat/limits';
891
+ };
892
+ export type GetApiChatLimitsErrors = {
893
+ /**
894
+ * 请求参数无效
895
+ */
896
+ 400: ErrorResponse;
897
+ /**
898
+ * 未登录
899
+ */
900
+ 401: ErrorResponse;
901
+ /**
902
+ * 资源不存在
903
+ */
904
+ 404: ErrorResponse;
905
+ /**
906
+ * 服务器内部错误
907
+ */
908
+ 500: ErrorResponse;
909
+ };
910
+ export type GetApiChatLimitsError = GetApiChatLimitsErrors[keyof GetApiChatLimitsErrors];
911
+ export type GetApiChatLimitsResponses = {
912
+ /**
913
+ * 成功
914
+ */
915
+ 200: {
916
+ /**
917
+ * 业务码,成功为 0
918
+ */
919
+ code: number;
920
+ message: string;
921
+ data: {
922
+ imageMaxCount: number;
923
+ imageMaxEdge: number;
924
+ };
925
+ };
926
+ };
927
+ export type GetApiChatLimitsResponse = GetApiChatLimitsResponses[keyof GetApiChatLimitsResponses];
652
928
  export type GetApiChatConversationsData = {
653
929
  body?: never;
654
930
  path?: never;
@@ -688,6 +964,11 @@ export type PostApiChatConversationsData = {
688
964
  splitQuery?: boolean | null;
689
965
  scoreThreshold?: number | null;
690
966
  lowScoreReply?: string | null;
967
+ deepThinking?: 'default' | 'false' | 'low' | 'medium' | 'high' | null;
968
+ multiTurn?: boolean | null;
969
+ contextThreshold?: number | null;
970
+ imageMaxCount?: number | null;
971
+ imageMaxEdge?: number | null;
691
972
  };
692
973
  path?: never;
693
974
  query?: never;
@@ -710,6 +991,10 @@ export type PostApiChatConversationsErrors = {
710
991
  * 资源不存在
711
992
  */
712
993
  404: ErrorResponse;
994
+ /**
995
+ * LLM 并发已满
996
+ */
997
+ 429: ErrorResponse;
713
998
  /**
714
999
  * 服务器内部错误
715
1000
  */
@@ -755,6 +1040,10 @@ export type DeleteApiChatConversationsByIdErrors = {
755
1040
  * 资源不存在
756
1041
  */
757
1042
  404: ErrorResponse;
1043
+ /**
1044
+ * LLM 并发已满
1045
+ */
1046
+ 429: ErrorResponse;
758
1047
  /**
759
1048
  * 服务器内部错误
760
1049
  */
@@ -800,6 +1089,10 @@ export type GetApiChatConversationsByIdErrors = {
800
1089
  * 资源不存在
801
1090
  */
802
1091
  404: ErrorResponse;
1092
+ /**
1093
+ * LLM 并发已满
1094
+ */
1095
+ 429: ErrorResponse;
803
1096
  /**
804
1097
  * 服务器内部错误
805
1098
  */
@@ -831,6 +1124,11 @@ export type PatchApiChatConversationsByIdData = {
831
1124
  splitQuery?: boolean | null;
832
1125
  scoreThreshold?: number | null;
833
1126
  lowScoreReply?: string | null;
1127
+ deepThinking?: 'default' | 'false' | 'low' | 'medium' | 'high' | null;
1128
+ multiTurn?: boolean | null;
1129
+ contextThreshold?: number | null;
1130
+ imageMaxCount?: number | null;
1131
+ imageMaxEdge?: number | null;
834
1132
  };
835
1133
  path: {
836
1134
  id: string;
@@ -855,6 +1153,10 @@ export type PatchApiChatConversationsByIdErrors = {
855
1153
  * 资源不存在
856
1154
  */
857
1155
  404: ErrorResponse;
1156
+ /**
1157
+ * LLM 并发已满
1158
+ */
1159
+ 429: ErrorResponse;
858
1160
  /**
859
1161
  * 服务器内部错误
860
1162
  */
@@ -904,6 +1206,10 @@ export type GetApiSearchErrors = {
904
1206
  * 资源不存在
905
1207
  */
906
1208
  404: ErrorResponse;
1209
+ /**
1210
+ * LLM 并发已满
1211
+ */
1212
+ 429: ErrorResponse;
907
1213
  /**
908
1214
  * 服务器内部错误
909
1215
  */
@@ -924,4 +1230,246 @@ export type GetApiSearchResponses = {
924
1230
  };
925
1231
  };
926
1232
  export type GetApiSearchResponse = GetApiSearchResponses[keyof GetApiSearchResponses];
1233
+ export type PostApiSearchClickData = {
1234
+ body: {
1235
+ /**
1236
+ * 检索词
1237
+ */
1238
+ keyword: string;
1239
+ /**
1240
+ * 点击的文档 ID
1241
+ */
1242
+ documentId: string;
1243
+ };
1244
+ path?: never;
1245
+ query?: never;
1246
+ url: '/api/search/click';
1247
+ };
1248
+ export type PostApiSearchClickErrors = {
1249
+ /**
1250
+ * 请求参数无效
1251
+ */
1252
+ 400: ErrorResponse;
1253
+ /**
1254
+ * 未登录
1255
+ */
1256
+ 401: ErrorResponse;
1257
+ /**
1258
+ * 无权限
1259
+ */
1260
+ 403: ErrorResponse;
1261
+ /**
1262
+ * 资源不存在
1263
+ */
1264
+ 404: ErrorResponse;
1265
+ /**
1266
+ * LLM 并发已满
1267
+ */
1268
+ 429: ErrorResponse;
1269
+ /**
1270
+ * 服务器内部错误
1271
+ */
1272
+ 500: ErrorResponse;
1273
+ };
1274
+ export type PostApiSearchClickError = PostApiSearchClickErrors[keyof PostApiSearchClickErrors];
1275
+ export type PostApiSearchClickResponses = {
1276
+ /**
1277
+ * 成功
1278
+ */
1279
+ 200: {
1280
+ /**
1281
+ * 业务码,成功为 0
1282
+ */
1283
+ code: number;
1284
+ message: string;
1285
+ data: null;
1286
+ };
1287
+ };
1288
+ export type PostApiSearchClickResponse = PostApiSearchClickResponses[keyof PostApiSearchClickResponses];
1289
+ export type GetApiLlmConcurrencyData = {
1290
+ body?: never;
1291
+ path?: never;
1292
+ query?: never;
1293
+ url: '/api/llm/concurrency';
1294
+ };
1295
+ export type GetApiLlmConcurrencyErrors = {
1296
+ /**
1297
+ * 未登录
1298
+ */
1299
+ 401: ErrorResponse;
1300
+ /**
1301
+ * 无权限
1302
+ */
1303
+ 403: ErrorResponse;
1304
+ /**
1305
+ * 服务器内部错误
1306
+ */
1307
+ 500: ErrorResponse;
1308
+ };
1309
+ export type GetApiLlmConcurrencyError = GetApiLlmConcurrencyErrors[keyof GetApiLlmConcurrencyErrors];
1310
+ export type GetApiLlmConcurrencyResponses = {
1311
+ /**
1312
+ * 成功
1313
+ */
1314
+ 200: {
1315
+ /**
1316
+ * 业务码,成功为 0
1317
+ */
1318
+ code: number;
1319
+ message: string;
1320
+ data: Array<LlmUserConcurrencyListItem>;
1321
+ };
1322
+ };
1323
+ export type GetApiLlmConcurrencyResponse = GetApiLlmConcurrencyResponses[keyof GetApiLlmConcurrencyResponses];
1324
+ export type DeleteApiLlmConcurrencyByUserIdData = {
1325
+ body?: never;
1326
+ path: {
1327
+ userId: string;
1328
+ };
1329
+ query?: never;
1330
+ url: '/api/llm/concurrency/{userId}';
1331
+ };
1332
+ export type DeleteApiLlmConcurrencyByUserIdErrors = {
1333
+ /**
1334
+ * 请求参数无效
1335
+ */
1336
+ 400: ErrorResponse;
1337
+ /**
1338
+ * 未登录
1339
+ */
1340
+ 401: ErrorResponse;
1341
+ /**
1342
+ * 无权限
1343
+ */
1344
+ 403: ErrorResponse;
1345
+ /**
1346
+ * 资源不存在
1347
+ */
1348
+ 404: ErrorResponse;
1349
+ /**
1350
+ * LLM 并发已满
1351
+ */
1352
+ 429: ErrorResponse;
1353
+ /**
1354
+ * 服务器内部错误
1355
+ */
1356
+ 500: ErrorResponse;
1357
+ };
1358
+ export type DeleteApiLlmConcurrencyByUserIdError = DeleteApiLlmConcurrencyByUserIdErrors[keyof DeleteApiLlmConcurrencyByUserIdErrors];
1359
+ export type DeleteApiLlmConcurrencyByUserIdResponses = {
1360
+ /**
1361
+ * 成功
1362
+ */
1363
+ 200: {
1364
+ /**
1365
+ * 业务码,成功为 0
1366
+ */
1367
+ code: number;
1368
+ message: string;
1369
+ data: LlmUserConcurrencyListItem;
1370
+ };
1371
+ };
1372
+ export type DeleteApiLlmConcurrencyByUserIdResponse = DeleteApiLlmConcurrencyByUserIdResponses[keyof DeleteApiLlmConcurrencyByUserIdResponses];
1373
+ export type GetApiLlmConcurrencyByUserIdData = {
1374
+ body?: never;
1375
+ path: {
1376
+ userId: string;
1377
+ };
1378
+ query?: never;
1379
+ url: '/api/llm/concurrency/{userId}';
1380
+ };
1381
+ export type GetApiLlmConcurrencyByUserIdErrors = {
1382
+ /**
1383
+ * 请求参数无效
1384
+ */
1385
+ 400: ErrorResponse;
1386
+ /**
1387
+ * 未登录
1388
+ */
1389
+ 401: ErrorResponse;
1390
+ /**
1391
+ * 无权限
1392
+ */
1393
+ 403: ErrorResponse;
1394
+ /**
1395
+ * 资源不存在
1396
+ */
1397
+ 404: ErrorResponse;
1398
+ /**
1399
+ * LLM 并发已满
1400
+ */
1401
+ 429: ErrorResponse;
1402
+ /**
1403
+ * 服务器内部错误
1404
+ */
1405
+ 500: ErrorResponse;
1406
+ };
1407
+ export type GetApiLlmConcurrencyByUserIdError = GetApiLlmConcurrencyByUserIdErrors[keyof GetApiLlmConcurrencyByUserIdErrors];
1408
+ export type GetApiLlmConcurrencyByUserIdResponses = {
1409
+ /**
1410
+ * 成功
1411
+ */
1412
+ 200: {
1413
+ /**
1414
+ * 业务码,成功为 0
1415
+ */
1416
+ code: number;
1417
+ message: string;
1418
+ data: LlmUserConcurrencyListItem;
1419
+ };
1420
+ };
1421
+ export type GetApiLlmConcurrencyByUserIdResponse = GetApiLlmConcurrencyByUserIdResponses[keyof GetApiLlmConcurrencyByUserIdResponses];
1422
+ export type PutApiLlmConcurrencyByUserIdData = {
1423
+ body: {
1424
+ maxConcurrency?: number | null;
1425
+ maxQueue?: number | null;
1426
+ waitTimeoutSec?: number | null;
1427
+ };
1428
+ path: {
1429
+ userId: string;
1430
+ };
1431
+ query?: never;
1432
+ url: '/api/llm/concurrency/{userId}';
1433
+ };
1434
+ export type PutApiLlmConcurrencyByUserIdErrors = {
1435
+ /**
1436
+ * 请求参数无效
1437
+ */
1438
+ 400: ErrorResponse;
1439
+ /**
1440
+ * 未登录
1441
+ */
1442
+ 401: ErrorResponse;
1443
+ /**
1444
+ * 无权限
1445
+ */
1446
+ 403: ErrorResponse;
1447
+ /**
1448
+ * 资源不存在
1449
+ */
1450
+ 404: ErrorResponse;
1451
+ /**
1452
+ * LLM 并发已满
1453
+ */
1454
+ 429: ErrorResponse;
1455
+ /**
1456
+ * 服务器内部错误
1457
+ */
1458
+ 500: ErrorResponse;
1459
+ };
1460
+ export type PutApiLlmConcurrencyByUserIdError = PutApiLlmConcurrencyByUserIdErrors[keyof PutApiLlmConcurrencyByUserIdErrors];
1461
+ export type PutApiLlmConcurrencyByUserIdResponses = {
1462
+ /**
1463
+ * 成功
1464
+ */
1465
+ 200: {
1466
+ /**
1467
+ * 业务码,成功为 0
1468
+ */
1469
+ code: number;
1470
+ message: string;
1471
+ data: LlmUserConcurrencyListItem;
1472
+ };
1473
+ };
1474
+ export type PutApiLlmConcurrencyByUserIdResponse = PutApiLlmConcurrencyByUserIdResponses[keyof PutApiLlmConcurrencyByUserIdResponses];
927
1475
  //# sourceMappingURL=types.gen.d.ts.map