@petercatai/whisker-client 0.1.202509020705 → 0.1.202511162103
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/api.d.ts +1032 -406
- package/dist/api.js +94 -78
- package/package.json +4 -4
package/dist/api.d.ts
CHANGED
|
@@ -125,15 +125,9 @@ export declare enum IKnowledgeSourceEnum {
|
|
|
125
125
|
UserInputText = "user_input_text",
|
|
126
126
|
CloudStorageText = "cloud_storage_text",
|
|
127
127
|
CloudStorageImage = "cloud_storage_image",
|
|
128
|
-
Yuque = "yuque"
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
export declare enum IEmbeddingModelEnum {
|
|
132
|
-
Openai = "openai",
|
|
133
|
-
SentenceTransformersAllMiniLML6V2 = "sentence-transformers/all-MiniLM-L6-v2",
|
|
134
|
-
SentenceTransformersAllMpnetBaseV2 = "sentence-transformers/all-mpnet-base-v2",
|
|
135
|
-
SentenceTransformersParaphraseMultilingualMiniLML12V2 = "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
|
|
136
|
-
Shibing624Text2VecBaseChinese = "shibing624/text2vec-base-chinese"
|
|
128
|
+
Yuque = "yuque",
|
|
129
|
+
YuquePersonalDoc = "yuque_personal_doc",
|
|
130
|
+
YuquePersonalNote = "yuque_personal_note"
|
|
137
131
|
}
|
|
138
132
|
/** Action */
|
|
139
133
|
export declare enum IAction {
|
|
@@ -144,17 +138,17 @@ export declare enum IAction {
|
|
|
144
138
|
Value = "*"
|
|
145
139
|
}
|
|
146
140
|
/** APIKey */
|
|
147
|
-
export interface
|
|
141
|
+
export interface IAPIKeyInput {
|
|
148
142
|
/**
|
|
149
143
|
* Gmt Create
|
|
150
144
|
* creation time
|
|
151
145
|
*/
|
|
152
|
-
gmt_create?: string;
|
|
146
|
+
gmt_create?: string | null;
|
|
153
147
|
/**
|
|
154
148
|
* Gmt Modified
|
|
155
149
|
* update time
|
|
156
150
|
*/
|
|
157
|
-
gmt_modified?: string;
|
|
151
|
+
gmt_modified?: string | null;
|
|
158
152
|
/**
|
|
159
153
|
* Key Id
|
|
160
154
|
* key id
|
|
@@ -205,32 +199,70 @@ export interface IAPIKey {
|
|
|
205
199
|
*/
|
|
206
200
|
metadata?: Record<string, any> | null;
|
|
207
201
|
}
|
|
208
|
-
/**
|
|
209
|
-
export interface
|
|
202
|
+
/** APIKey */
|
|
203
|
+
export interface IAPIKeyOutput {
|
|
204
|
+
/**
|
|
205
|
+
* Gmt Create
|
|
206
|
+
* creation time
|
|
207
|
+
*/
|
|
208
|
+
gmt_create?: string | null;
|
|
209
|
+
/**
|
|
210
|
+
* Gmt Modified
|
|
211
|
+
* update time
|
|
212
|
+
*/
|
|
213
|
+
gmt_modified?: string | null;
|
|
214
|
+
/**
|
|
215
|
+
* Key Id
|
|
216
|
+
* key id
|
|
217
|
+
*/
|
|
218
|
+
key_id?: string;
|
|
219
|
+
/**
|
|
220
|
+
* Tenant Id
|
|
221
|
+
* tenant id
|
|
222
|
+
*/
|
|
223
|
+
tenant_id: string;
|
|
210
224
|
/**
|
|
211
225
|
* Key Name
|
|
226
|
+
* key name
|
|
212
227
|
* @default ""
|
|
213
228
|
*/
|
|
214
229
|
key_name?: string;
|
|
215
|
-
/**
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
230
|
+
/**
|
|
231
|
+
* Key Value
|
|
232
|
+
* key value
|
|
233
|
+
*/
|
|
234
|
+
key_value: string;
|
|
235
|
+
/**
|
|
236
|
+
* Permissions
|
|
237
|
+
* permissions config
|
|
238
|
+
*/
|
|
239
|
+
permissions?: Record<string, any>[];
|
|
219
240
|
/**
|
|
220
241
|
* Rate Limit
|
|
242
|
+
* rate limit per minute
|
|
243
|
+
* @min 0
|
|
221
244
|
* @default 0
|
|
222
245
|
*/
|
|
223
|
-
rate_limit?: number
|
|
246
|
+
rate_limit?: number;
|
|
224
247
|
/**
|
|
225
248
|
* Expires At
|
|
226
|
-
*
|
|
249
|
+
* expire time (UTC)
|
|
227
250
|
*/
|
|
228
251
|
expires_at?: string | null;
|
|
229
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* Is Active
|
|
254
|
+
* key status
|
|
255
|
+
* @default true
|
|
256
|
+
*/
|
|
257
|
+
is_active?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Metadata
|
|
260
|
+
* key metadata
|
|
261
|
+
*/
|
|
230
262
|
metadata?: Record<string, any> | null;
|
|
231
263
|
}
|
|
232
|
-
/**
|
|
233
|
-
export interface
|
|
264
|
+
/** APIKeyCreate */
|
|
265
|
+
export interface IAPIKeyCreate {
|
|
234
266
|
/**
|
|
235
267
|
* Key Name
|
|
236
268
|
* @default ""
|
|
@@ -252,8 +284,28 @@ export interface IAPIKeyUpdate {
|
|
|
252
284
|
expires_at?: string | null;
|
|
253
285
|
/** Metadata */
|
|
254
286
|
metadata?: Record<string, any> | null;
|
|
287
|
+
}
|
|
288
|
+
/** APIKeyUpdate */
|
|
289
|
+
export interface IAPIKeyUpdate {
|
|
255
290
|
/** Key Id */
|
|
256
291
|
key_id: string;
|
|
292
|
+
/** Key Name */
|
|
293
|
+
key_name?: string | null;
|
|
294
|
+
/** Description */
|
|
295
|
+
description?: string | null;
|
|
296
|
+
/** Permissions */
|
|
297
|
+
permissions?: IPermission[] | null;
|
|
298
|
+
/** Rate Limit */
|
|
299
|
+
rate_limit?: number | null;
|
|
300
|
+
/**
|
|
301
|
+
* Expires At
|
|
302
|
+
* Expiration time in ISO8601 format with timezone (e.g., 2024-12-31T23:59:59+00:00)
|
|
303
|
+
*/
|
|
304
|
+
expires_at?: string | null;
|
|
305
|
+
/** Is Active */
|
|
306
|
+
is_active?: boolean | null;
|
|
307
|
+
/** Metadata */
|
|
308
|
+
metadata?: Record<string, any> | null;
|
|
257
309
|
}
|
|
258
310
|
/** ActiveStatusUpdate */
|
|
259
311
|
export interface IActiveStatusUpdate {
|
|
@@ -266,17 +318,68 @@ export interface IActiveStatusUpdate {
|
|
|
266
318
|
* ArtifactIndex
|
|
267
319
|
* whisker_artifact_index 模型
|
|
268
320
|
*/
|
|
269
|
-
export interface
|
|
321
|
+
export interface IArtifactIndexInput {
|
|
322
|
+
/**
|
|
323
|
+
* Gmt Create
|
|
324
|
+
* creation time
|
|
325
|
+
*/
|
|
326
|
+
gmt_create?: string | null;
|
|
327
|
+
/**
|
|
328
|
+
* Gmt Modified
|
|
329
|
+
* update time
|
|
330
|
+
*/
|
|
331
|
+
gmt_modified?: string | null;
|
|
332
|
+
/**
|
|
333
|
+
* Ecosystem
|
|
334
|
+
* 制品来源生态系统(pypi / npm / maven / go / php)
|
|
335
|
+
* @maxLength 32
|
|
336
|
+
*/
|
|
337
|
+
ecosystem: string;
|
|
338
|
+
/**
|
|
339
|
+
* Name
|
|
340
|
+
* 制品名(构建产物名,如 requests / @company/sdk)
|
|
341
|
+
* @maxLength 255
|
|
342
|
+
*/
|
|
343
|
+
name: string;
|
|
344
|
+
/**
|
|
345
|
+
* Version
|
|
346
|
+
* 版本号(可为空)
|
|
347
|
+
*/
|
|
348
|
+
version?: string | null;
|
|
349
|
+
/**
|
|
350
|
+
* Space Id
|
|
351
|
+
* 关联的 whisker_space.space_id
|
|
352
|
+
* @maxLength 255
|
|
353
|
+
* @pattern ^[A-Za-z0-9._@/-]{1,255}$
|
|
354
|
+
*/
|
|
355
|
+
space_id: string;
|
|
356
|
+
/**
|
|
357
|
+
* Extra
|
|
358
|
+
* 额外元数据信息,扩展用,如构建参数、标签、扫描信息等
|
|
359
|
+
* @default {}
|
|
360
|
+
*/
|
|
361
|
+
extra?: Record<string, any>;
|
|
362
|
+
/**
|
|
363
|
+
* Artifact Id
|
|
364
|
+
* 制品索引表主键(UUID字符串)
|
|
365
|
+
*/
|
|
366
|
+
artifact_id?: string;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* ArtifactIndex
|
|
370
|
+
* whisker_artifact_index 模型
|
|
371
|
+
*/
|
|
372
|
+
export interface IArtifactIndexOutput {
|
|
270
373
|
/**
|
|
271
374
|
* Gmt Create
|
|
272
375
|
* creation time
|
|
273
376
|
*/
|
|
274
|
-
gmt_create?: string;
|
|
377
|
+
gmt_create?: string | null;
|
|
275
378
|
/**
|
|
276
379
|
* Gmt Modified
|
|
277
380
|
* update time
|
|
278
381
|
*/
|
|
279
|
-
gmt_modified?: string;
|
|
382
|
+
gmt_modified?: string | null;
|
|
280
383
|
/**
|
|
281
384
|
* Ecosystem
|
|
282
385
|
* 制品来源生态系统(pypi / npm / maven / go / php)
|
|
@@ -356,11 +459,6 @@ export interface IArtifactSpaceUpdate {
|
|
|
356
459
|
/** New Space Id */
|
|
357
460
|
new_space_id: string;
|
|
358
461
|
}
|
|
359
|
-
/** Audio */
|
|
360
|
-
export interface IAudio {
|
|
361
|
-
/** Id */
|
|
362
|
-
id: string;
|
|
363
|
-
}
|
|
364
462
|
/**
|
|
365
463
|
* BaseCharSplitConfig
|
|
366
464
|
* Base char split configuration class
|
|
@@ -418,112 +516,114 @@ export interface IBaseCodeSplitConfig {
|
|
|
418
516
|
*/
|
|
419
517
|
chunk_overlap?: number;
|
|
420
518
|
}
|
|
421
|
-
/**
|
|
422
|
-
export interface
|
|
423
|
-
/**
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
content?: string | (IChatCompletionContentPartTextParam | IChatCompletionContentPartRefusalParam)[] | null;
|
|
428
|
-
function_call?: IFunctionCall | null;
|
|
429
|
-
/** Name */
|
|
430
|
-
name?: string;
|
|
431
|
-
/** Refusal */
|
|
432
|
-
refusal?: string | null;
|
|
433
|
-
/** Tool Calls */
|
|
434
|
-
tool_calls?: IChatCompletionMessageToolCallParam[];
|
|
435
|
-
}
|
|
436
|
-
/** ChatCompletionContentPartImageParam */
|
|
437
|
-
export interface IChatCompletionContentPartImageParam {
|
|
438
|
-
image_url: IImageURL;
|
|
439
|
-
/** Type */
|
|
440
|
-
type: "image_url";
|
|
441
|
-
}
|
|
442
|
-
/** ChatCompletionContentPartInputAudioParam */
|
|
443
|
-
export interface IChatCompletionContentPartInputAudioParam {
|
|
444
|
-
input_audio: IInputAudio;
|
|
445
|
-
/** Type */
|
|
446
|
-
type: "input_audio";
|
|
447
|
-
}
|
|
448
|
-
/** ChatCompletionContentPartRefusalParam */
|
|
449
|
-
export interface IChatCompletionContentPartRefusalParam {
|
|
450
|
-
/** Refusal */
|
|
451
|
-
refusal: string;
|
|
452
|
-
/** Type */
|
|
453
|
-
type: "refusal";
|
|
454
|
-
}
|
|
455
|
-
/** ChatCompletionContentPartTextParam */
|
|
456
|
-
export interface IChatCompletionContentPartTextParam {
|
|
457
|
-
/** Text */
|
|
458
|
-
text: string;
|
|
459
|
-
/** Type */
|
|
460
|
-
type: "text";
|
|
461
|
-
}
|
|
462
|
-
/** ChatCompletionDeveloperMessageParam */
|
|
463
|
-
export interface IChatCompletionDeveloperMessageParam {
|
|
464
|
-
/** Content */
|
|
465
|
-
content: string | IChatCompletionContentPartTextParam[];
|
|
466
|
-
/** Role */
|
|
467
|
-
role: "developer";
|
|
468
|
-
/** Name */
|
|
469
|
-
name?: string;
|
|
470
|
-
}
|
|
471
|
-
/** ChatCompletionFunctionMessageParam */
|
|
472
|
-
export interface IChatCompletionFunctionMessageParam {
|
|
473
|
-
/** Content */
|
|
474
|
-
content: string | null;
|
|
475
|
-
/** Name */
|
|
476
|
-
name: string;
|
|
477
|
-
/** Role */
|
|
478
|
-
role: "function";
|
|
479
|
-
}
|
|
480
|
-
/** ChatCompletionMessageToolCallParam */
|
|
481
|
-
export interface IChatCompletionMessageToolCallParam {
|
|
482
|
-
/** Id */
|
|
483
|
-
id: string;
|
|
484
|
-
function: IFunction;
|
|
485
|
-
/** Type */
|
|
486
|
-
type: "function";
|
|
487
|
-
}
|
|
488
|
-
/** ChatCompletionSystemMessageParam */
|
|
489
|
-
export interface IChatCompletionSystemMessageParam {
|
|
490
|
-
/** Content */
|
|
491
|
-
content: string | IChatCompletionContentPartTextParam[];
|
|
492
|
-
/** Role */
|
|
493
|
-
role: "system";
|
|
494
|
-
/** Name */
|
|
495
|
-
name?: string;
|
|
519
|
+
/** BatchQueryRequest */
|
|
520
|
+
export interface IBatchQueryRequest {
|
|
521
|
+
/** Space Id */
|
|
522
|
+
space_id: string;
|
|
523
|
+
/** Knowledge Names */
|
|
524
|
+
knowledge_names: string[];
|
|
496
525
|
}
|
|
497
|
-
/**
|
|
498
|
-
export interface
|
|
499
|
-
/**
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
526
|
+
/** Chunk */
|
|
527
|
+
export interface IChunkInput {
|
|
528
|
+
/**
|
|
529
|
+
* Gmt Create
|
|
530
|
+
* creation time
|
|
531
|
+
*/
|
|
532
|
+
gmt_create?: string | null;
|
|
533
|
+
/**
|
|
534
|
+
* Gmt Modified
|
|
535
|
+
* update time
|
|
536
|
+
*/
|
|
537
|
+
gmt_modified?: string | null;
|
|
538
|
+
/**
|
|
539
|
+
* Chunk Id
|
|
540
|
+
* chunk id
|
|
541
|
+
*/
|
|
542
|
+
chunk_id?: string;
|
|
543
|
+
/**
|
|
544
|
+
* Space Id
|
|
545
|
+
* space id
|
|
546
|
+
*/
|
|
547
|
+
space_id: string;
|
|
548
|
+
/**
|
|
549
|
+
* Tenant Id
|
|
550
|
+
* tenant id
|
|
551
|
+
*/
|
|
552
|
+
tenant_id: string;
|
|
553
|
+
/**
|
|
554
|
+
* Embedding
|
|
555
|
+
* chunk embedding
|
|
556
|
+
*/
|
|
557
|
+
embedding?: number[] | null;
|
|
558
|
+
/**
|
|
559
|
+
* Context
|
|
560
|
+
* chunk content
|
|
561
|
+
*/
|
|
562
|
+
context: string;
|
|
563
|
+
/**
|
|
564
|
+
* Knowledge Id
|
|
565
|
+
* file source info
|
|
566
|
+
*/
|
|
567
|
+
knowledge_id: string;
|
|
568
|
+
/**
|
|
569
|
+
* Enabled
|
|
570
|
+
* is chunk enabled
|
|
571
|
+
* @default true
|
|
572
|
+
*/
|
|
573
|
+
enabled?: boolean;
|
|
574
|
+
/**
|
|
575
|
+
* Embedding Model Name
|
|
576
|
+
* name of the embedding model
|
|
577
|
+
*/
|
|
578
|
+
embedding_model_name: string;
|
|
579
|
+
/**
|
|
580
|
+
* Metadata
|
|
581
|
+
* Arbitrary metadata associated with the content.
|
|
582
|
+
*/
|
|
583
|
+
metadata?: Record<string, any> | null;
|
|
584
|
+
/**
|
|
585
|
+
* Tags
|
|
586
|
+
* Tags from knowledge.metadata._tags
|
|
587
|
+
*/
|
|
588
|
+
tags?: string[] | null;
|
|
589
|
+
/**
|
|
590
|
+
* F1
|
|
591
|
+
* Field 1 from knowledge.metadata._f1
|
|
592
|
+
*/
|
|
593
|
+
f1?: string | null;
|
|
594
|
+
/**
|
|
595
|
+
* F2
|
|
596
|
+
* Field 2 from knowledge.metadata._f2
|
|
597
|
+
*/
|
|
598
|
+
f2?: string | null;
|
|
599
|
+
/**
|
|
600
|
+
* F3
|
|
601
|
+
* Field 3 from knowledge.metadata._f3
|
|
602
|
+
*/
|
|
603
|
+
f3?: string | null;
|
|
604
|
+
/**
|
|
605
|
+
* F4
|
|
606
|
+
* Field 4 from knowledge.metadata._f4
|
|
607
|
+
*/
|
|
608
|
+
f4?: string | null;
|
|
609
|
+
/**
|
|
610
|
+
* F5
|
|
611
|
+
* Field 5 from knowledge.metadata._f5
|
|
612
|
+
*/
|
|
613
|
+
f5?: string | null;
|
|
514
614
|
}
|
|
515
615
|
/** Chunk */
|
|
516
|
-
export interface
|
|
616
|
+
export interface IChunkOutput {
|
|
517
617
|
/**
|
|
518
618
|
* Gmt Create
|
|
519
619
|
* creation time
|
|
520
620
|
*/
|
|
521
|
-
gmt_create?: string;
|
|
621
|
+
gmt_create?: string | null;
|
|
522
622
|
/**
|
|
523
623
|
* Gmt Modified
|
|
524
624
|
* update time
|
|
525
625
|
*/
|
|
526
|
-
gmt_modified?: string;
|
|
626
|
+
gmt_modified?: string | null;
|
|
527
627
|
/**
|
|
528
628
|
* Chunk Id
|
|
529
629
|
* chunk id
|
|
@@ -564,7 +664,7 @@ export interface IChunk {
|
|
|
564
664
|
* Embedding Model Name
|
|
565
665
|
* name of the embedding model
|
|
566
666
|
*/
|
|
567
|
-
embedding_model_name
|
|
667
|
+
embedding_model_name: string;
|
|
568
668
|
/**
|
|
569
669
|
* Metadata
|
|
570
670
|
* Arbitrary metadata associated with the content.
|
|
@@ -613,11 +713,23 @@ export interface IChunkSave {
|
|
|
613
713
|
embedding_model_name: string;
|
|
614
714
|
/** Metadata */
|
|
615
715
|
metadata?: Record<string, any> | null;
|
|
716
|
+
/** Tags */
|
|
717
|
+
tags?: string[] | null;
|
|
718
|
+
/** F1 */
|
|
719
|
+
f1?: string | null;
|
|
720
|
+
/** F2 */
|
|
721
|
+
f2?: string | null;
|
|
722
|
+
/** F3 */
|
|
723
|
+
f3?: string | null;
|
|
724
|
+
/** F4 */
|
|
725
|
+
f4?: string | null;
|
|
726
|
+
/** F5 */
|
|
727
|
+
f5?: string | null;
|
|
616
728
|
}
|
|
617
729
|
/** ChunkUpdate */
|
|
618
730
|
export interface IChunkUpdate {
|
|
619
731
|
/** Chunk Id */
|
|
620
|
-
chunk_id?: string;
|
|
732
|
+
chunk_id?: string | null;
|
|
621
733
|
/** Context */
|
|
622
734
|
context?: string | null;
|
|
623
735
|
/** Embedding Model Name */
|
|
@@ -641,41 +753,12 @@ export interface IEnableStatusUpdate {
|
|
|
641
753
|
/** Status */
|
|
642
754
|
status: boolean;
|
|
643
755
|
}
|
|
644
|
-
/** File */
|
|
645
|
-
export interface IFile {
|
|
646
|
-
file: IFileFile;
|
|
647
|
-
/** Type */
|
|
648
|
-
type: "file";
|
|
649
|
-
}
|
|
650
|
-
/** FileFile */
|
|
651
|
-
export interface IFileFile {
|
|
652
|
-
/** File Data */
|
|
653
|
-
file_data?: string;
|
|
654
|
-
/** File Id */
|
|
655
|
-
file_id?: string;
|
|
656
|
-
/** Filename */
|
|
657
|
-
filename?: string;
|
|
658
|
-
}
|
|
659
756
|
/** FilterGroup */
|
|
660
757
|
export interface IFilterGroup {
|
|
661
758
|
operator: IOperator;
|
|
662
759
|
/** Conditions */
|
|
663
760
|
conditions: (ICondition | IFilterGroup)[];
|
|
664
761
|
}
|
|
665
|
-
/** Function */
|
|
666
|
-
export interface IFunction {
|
|
667
|
-
/** Arguments */
|
|
668
|
-
arguments: string;
|
|
669
|
-
/** Name */
|
|
670
|
-
name: string;
|
|
671
|
-
}
|
|
672
|
-
/** FunctionCall */
|
|
673
|
-
export interface IFunctionCall {
|
|
674
|
-
/** Arguments */
|
|
675
|
-
arguments: string;
|
|
676
|
-
/** Name */
|
|
677
|
-
name: string;
|
|
678
|
-
}
|
|
679
762
|
/**
|
|
680
763
|
* GeaGraphSplitConfig
|
|
681
764
|
* JSON document split configuration
|
|
@@ -757,9 +840,8 @@ export interface IGithubRepoCreate {
|
|
|
757
840
|
/**
|
|
758
841
|
* Embedding Model Name
|
|
759
842
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
760
|
-
* @default "openai"
|
|
761
843
|
*/
|
|
762
|
-
embedding_model_name
|
|
844
|
+
embedding_model_name: string;
|
|
763
845
|
/**
|
|
764
846
|
* File Sha
|
|
765
847
|
* SHA of the file
|
|
@@ -907,9 +989,8 @@ export interface IImageCreate {
|
|
|
907
989
|
/**
|
|
908
990
|
* Embedding Model Name
|
|
909
991
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
910
|
-
* @default "openai"
|
|
911
992
|
*/
|
|
912
|
-
embedding_model_name
|
|
993
|
+
embedding_model_name: string;
|
|
913
994
|
/**
|
|
914
995
|
* File Sha
|
|
915
996
|
* SHA of the file, if source_type is cloud_storage_text, this field is the sha of the text file
|
|
@@ -944,20 +1025,6 @@ export interface IImageSplitConfig {
|
|
|
944
1025
|
*/
|
|
945
1026
|
type?: "image";
|
|
946
1027
|
}
|
|
947
|
-
/** ImageURL */
|
|
948
|
-
export interface IImageURL {
|
|
949
|
-
/** Url */
|
|
950
|
-
url: string;
|
|
951
|
-
/** Detail */
|
|
952
|
-
detail?: "auto" | "low" | "high";
|
|
953
|
-
}
|
|
954
|
-
/** InputAudio */
|
|
955
|
-
export interface IInputAudio {
|
|
956
|
-
/** Data */
|
|
957
|
-
data: string;
|
|
958
|
-
/** Format */
|
|
959
|
-
format: "wav" | "mp3";
|
|
960
|
-
}
|
|
961
1028
|
/** JSONCreate */
|
|
962
1029
|
export interface IJSONCreate {
|
|
963
1030
|
/**
|
|
@@ -988,9 +1055,8 @@ export interface IJSONCreate {
|
|
|
988
1055
|
/**
|
|
989
1056
|
* Embedding Model Name
|
|
990
1057
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
991
|
-
* @default "openai"
|
|
992
1058
|
*/
|
|
993
|
-
embedding_model_name
|
|
1059
|
+
embedding_model_name: string;
|
|
994
1060
|
/**
|
|
995
1061
|
* File Sha
|
|
996
1062
|
* SHA of the file
|
|
@@ -1086,13 +1152,12 @@ export interface IKnowledgeInput {
|
|
|
1086
1152
|
* Source Config
|
|
1087
1153
|
* source config of the knowledge
|
|
1088
1154
|
*/
|
|
1089
|
-
source_config: IGithubRepoSourceConfig | IGithubFileSourceConfig | IS3SourceConfig | IOpenUrlSourceConfig | ITextSourceConfig | IYuqueSourceConfig;
|
|
1155
|
+
source_config: IGithubRepoSourceConfig | IGithubFileSourceConfig | IS3SourceConfig | IOpenUrlSourceConfig | ITextSourceConfig | IYuqueSourceConfig | IYuquePersonalDocSourceConfig | IYuquePersonalNoteSourceConfig;
|
|
1090
1156
|
/**
|
|
1091
1157
|
* Embedding Model Name
|
|
1092
1158
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
1093
|
-
* @default "openai"
|
|
1094
1159
|
*/
|
|
1095
|
-
embedding_model_name
|
|
1160
|
+
embedding_model_name: string;
|
|
1096
1161
|
/**
|
|
1097
1162
|
* Split Config
|
|
1098
1163
|
* configuration for splitting the knowledge
|
|
@@ -1138,12 +1203,12 @@ export interface IKnowledgeOutput {
|
|
|
1138
1203
|
* Gmt Create
|
|
1139
1204
|
* creation time
|
|
1140
1205
|
*/
|
|
1141
|
-
gmt_create?: string;
|
|
1206
|
+
gmt_create?: string | null;
|
|
1142
1207
|
/**
|
|
1143
1208
|
* Gmt Modified
|
|
1144
1209
|
* update time
|
|
1145
1210
|
*/
|
|
1146
|
-
gmt_modified?: string;
|
|
1211
|
+
gmt_modified?: string | null;
|
|
1147
1212
|
/**
|
|
1148
1213
|
* Knowledge Id
|
|
1149
1214
|
* knowledge id
|
|
@@ -1173,12 +1238,12 @@ export interface IKnowledgeOutput {
|
|
|
1173
1238
|
* Source Config
|
|
1174
1239
|
* source config of the knowledge
|
|
1175
1240
|
*/
|
|
1176
|
-
source_config: IGithubRepoSourceConfig | IGithubFileSourceConfig | IS3SourceConfig | IOpenUrlSourceConfig | ITextSourceConfig | IYuqueSourceConfig;
|
|
1241
|
+
source_config: IGithubRepoSourceConfig | IGithubFileSourceConfig | IS3SourceConfig | IOpenUrlSourceConfig | ITextSourceConfig | IYuqueSourceConfig | IYuquePersonalDocSourceConfig | IYuquePersonalNoteSourceConfig;
|
|
1177
1242
|
/**
|
|
1178
1243
|
* Embedding Model Name
|
|
1179
1244
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
1180
1245
|
*/
|
|
1181
|
-
embedding_model_name
|
|
1246
|
+
embedding_model_name: string;
|
|
1182
1247
|
/**
|
|
1183
1248
|
* Split Config
|
|
1184
1249
|
* configuration for splitting the knowledge
|
|
@@ -1217,13 +1282,6 @@ export interface IKnowledgeOutput {
|
|
|
1217
1282
|
*/
|
|
1218
1283
|
enabled?: boolean;
|
|
1219
1284
|
}
|
|
1220
|
-
/** KnowledgeScope */
|
|
1221
|
-
export interface IKnowledgeScope {
|
|
1222
|
-
/** Space Ids */
|
|
1223
|
-
space_ids?: string[] | null;
|
|
1224
|
-
/** Auth Info */
|
|
1225
|
-
auth_info: string;
|
|
1226
|
-
}
|
|
1227
1285
|
/** MarkdownCreate */
|
|
1228
1286
|
export interface IMarkdownCreate {
|
|
1229
1287
|
/**
|
|
@@ -1254,9 +1312,8 @@ export interface IMarkdownCreate {
|
|
|
1254
1312
|
/**
|
|
1255
1313
|
* Embedding Model Name
|
|
1256
1314
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
1257
|
-
* @default "openai"
|
|
1258
1315
|
*/
|
|
1259
|
-
embedding_model_name
|
|
1316
|
+
embedding_model_name: string;
|
|
1260
1317
|
/**
|
|
1261
1318
|
* File Sha
|
|
1262
1319
|
* SHA of the file
|
|
@@ -1380,9 +1437,8 @@ export interface IPDFCreate {
|
|
|
1380
1437
|
/**
|
|
1381
1438
|
* Embedding Model Name
|
|
1382
1439
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
1383
|
-
* @default "openai"
|
|
1384
1440
|
*/
|
|
1385
|
-
embedding_model_name
|
|
1441
|
+
embedding_model_name: string;
|
|
1386
1442
|
/**
|
|
1387
1443
|
* File Sha
|
|
1388
1444
|
* SHA of the file
|
|
@@ -1463,6 +1519,8 @@ export interface IPageQueryParamsAPIKey {
|
|
|
1463
1519
|
eq_conditions?: Record<string, any> | null;
|
|
1464
1520
|
/** advanced filter with nested conditions */
|
|
1465
1521
|
advanced_filter?: IFilterGroup | null;
|
|
1522
|
+
/** 标签过滤条件 tag_name 和 tag_id */
|
|
1523
|
+
tag_filter?: ITagFilter | null;
|
|
1466
1524
|
/**
|
|
1467
1525
|
* Page
|
|
1468
1526
|
* page number
|
|
@@ -1499,6 +1557,8 @@ export interface IPageQueryParamsArtifactIndex {
|
|
|
1499
1557
|
eq_conditions?: Record<string, any> | null;
|
|
1500
1558
|
/** advanced filter with nested conditions */
|
|
1501
1559
|
advanced_filter?: IFilterGroup | null;
|
|
1560
|
+
/** 标签过滤条件 tag_name 和 tag_id */
|
|
1561
|
+
tag_filter?: ITagFilter | null;
|
|
1502
1562
|
/**
|
|
1503
1563
|
* Page
|
|
1504
1564
|
* page number
|
|
@@ -1535,6 +1595,8 @@ export interface IPageQueryParamsChunk {
|
|
|
1535
1595
|
eq_conditions?: Record<string, any> | null;
|
|
1536
1596
|
/** advanced filter with nested conditions */
|
|
1537
1597
|
advanced_filter?: IFilterGroup | null;
|
|
1598
|
+
/** 标签过滤条件 tag_name 和 tag_id */
|
|
1599
|
+
tag_filter?: ITagFilter | null;
|
|
1538
1600
|
/**
|
|
1539
1601
|
* Page
|
|
1540
1602
|
* page number
|
|
@@ -1571,6 +1633,8 @@ export interface IPageQueryParamsKnowledge {
|
|
|
1571
1633
|
eq_conditions?: Record<string, any> | null;
|
|
1572
1634
|
/** advanced filter with nested conditions */
|
|
1573
1635
|
advanced_filter?: IFilterGroup | null;
|
|
1636
|
+
/** 标签过滤条件 tag_name 和 tag_id */
|
|
1637
|
+
tag_filter?: ITagFilter | null;
|
|
1574
1638
|
/**
|
|
1575
1639
|
* Page
|
|
1576
1640
|
* page number
|
|
@@ -1607,6 +1671,8 @@ export interface IPageQueryParamsSpace {
|
|
|
1607
1671
|
eq_conditions?: Record<string, any> | null;
|
|
1608
1672
|
/** advanced filter with nested conditions */
|
|
1609
1673
|
advanced_filter?: IFilterGroup | null;
|
|
1674
|
+
/** 标签过滤条件 tag_name 和 tag_id */
|
|
1675
|
+
tag_filter?: ITagFilter | null;
|
|
1610
1676
|
/**
|
|
1611
1677
|
* Page
|
|
1612
1678
|
* page number
|
|
@@ -1643,6 +1709,8 @@ export interface IPageQueryParamsTag {
|
|
|
1643
1709
|
eq_conditions?: Record<string, any> | null;
|
|
1644
1710
|
/** advanced filter with nested conditions */
|
|
1645
1711
|
advanced_filter?: IFilterGroup | null;
|
|
1712
|
+
/** 标签过滤条件 tag_name 和 tag_id */
|
|
1713
|
+
tag_filter?: ITagFilter | null;
|
|
1646
1714
|
/**
|
|
1647
1715
|
* Page
|
|
1648
1716
|
* page number
|
|
@@ -1679,6 +1747,8 @@ export interface IPageQueryParamsTagging {
|
|
|
1679
1747
|
eq_conditions?: Record<string, any> | null;
|
|
1680
1748
|
/** advanced filter with nested conditions */
|
|
1681
1749
|
advanced_filter?: IFilterGroup | null;
|
|
1750
|
+
/** 标签过滤条件 tag_name 和 tag_id */
|
|
1751
|
+
tag_filter?: ITagFilter | null;
|
|
1682
1752
|
/**
|
|
1683
1753
|
* Page
|
|
1684
1754
|
* page number
|
|
@@ -1715,6 +1785,8 @@ export interface IPageQueryParamsTask {
|
|
|
1715
1785
|
eq_conditions?: Record<string, any> | null;
|
|
1716
1786
|
/** advanced filter with nested conditions */
|
|
1717
1787
|
advanced_filter?: IFilterGroup | null;
|
|
1788
|
+
/** 标签过滤条件 tag_name 和 tag_id */
|
|
1789
|
+
tag_filter?: ITagFilter | null;
|
|
1718
1790
|
/**
|
|
1719
1791
|
* Page
|
|
1720
1792
|
* page number
|
|
@@ -1732,9 +1804,35 @@ export interface IPageQueryParamsTask {
|
|
|
1732
1804
|
page_size?: number;
|
|
1733
1805
|
}
|
|
1734
1806
|
/** PageResponse[APIKey] */
|
|
1735
|
-
export interface
|
|
1807
|
+
export interface IPageResponseAPIKeyInput {
|
|
1808
|
+
/** Items */
|
|
1809
|
+
items: IAPIKeyInput[];
|
|
1810
|
+
/** Total */
|
|
1811
|
+
total: number;
|
|
1812
|
+
/** Page */
|
|
1813
|
+
page: number;
|
|
1814
|
+
/** Page Size */
|
|
1815
|
+
page_size: number;
|
|
1816
|
+
/** Total Pages */
|
|
1817
|
+
total_pages: number;
|
|
1818
|
+
}
|
|
1819
|
+
/** PageResponse[APIKey] */
|
|
1820
|
+
export interface IPageResponseAPIKeyOutput {
|
|
1821
|
+
/** Items */
|
|
1822
|
+
items: IAPIKeyOutput[];
|
|
1823
|
+
/** Total */
|
|
1824
|
+
total: number;
|
|
1825
|
+
/** Page */
|
|
1826
|
+
page: number;
|
|
1827
|
+
/** Page Size */
|
|
1828
|
+
page_size: number;
|
|
1829
|
+
/** Total Pages */
|
|
1830
|
+
total_pages: number;
|
|
1831
|
+
}
|
|
1832
|
+
/** PageResponse[ArtifactIndex] */
|
|
1833
|
+
export interface IPageResponseArtifactIndexInput {
|
|
1736
1834
|
/** Items */
|
|
1737
|
-
items:
|
|
1835
|
+
items: IArtifactIndexInput[];
|
|
1738
1836
|
/** Total */
|
|
1739
1837
|
total: number;
|
|
1740
1838
|
/** Page */
|
|
@@ -1745,9 +1843,9 @@ export interface IPageResponseAPIKey {
|
|
|
1745
1843
|
total_pages: number;
|
|
1746
1844
|
}
|
|
1747
1845
|
/** PageResponse[ArtifactIndex] */
|
|
1748
|
-
export interface
|
|
1846
|
+
export interface IPageResponseArtifactIndexOutput {
|
|
1749
1847
|
/** Items */
|
|
1750
|
-
items:
|
|
1848
|
+
items: IArtifactIndexOutput[];
|
|
1751
1849
|
/** Total */
|
|
1752
1850
|
total: number;
|
|
1753
1851
|
/** Page */
|
|
@@ -1758,9 +1856,35 @@ export interface IPageResponseArtifactIndex {
|
|
|
1758
1856
|
total_pages: number;
|
|
1759
1857
|
}
|
|
1760
1858
|
/** PageResponse[Chunk] */
|
|
1761
|
-
export interface
|
|
1859
|
+
export interface IPageResponseChunkInput {
|
|
1860
|
+
/** Items */
|
|
1861
|
+
items: IChunkInput[];
|
|
1862
|
+
/** Total */
|
|
1863
|
+
total: number;
|
|
1864
|
+
/** Page */
|
|
1865
|
+
page: number;
|
|
1866
|
+
/** Page Size */
|
|
1867
|
+
page_size: number;
|
|
1868
|
+
/** Total Pages */
|
|
1869
|
+
total_pages: number;
|
|
1870
|
+
}
|
|
1871
|
+
/** PageResponse[Chunk] */
|
|
1872
|
+
export interface IPageResponseChunkOutput {
|
|
1873
|
+
/** Items */
|
|
1874
|
+
items: IChunkOutput[];
|
|
1875
|
+
/** Total */
|
|
1876
|
+
total: number;
|
|
1877
|
+
/** Page */
|
|
1878
|
+
page: number;
|
|
1879
|
+
/** Page Size */
|
|
1880
|
+
page_size: number;
|
|
1881
|
+
/** Total Pages */
|
|
1882
|
+
total_pages: number;
|
|
1883
|
+
}
|
|
1884
|
+
/** PageResponse[Knowledge] */
|
|
1885
|
+
export interface IPageResponseKnowledgeInput {
|
|
1762
1886
|
/** Items */
|
|
1763
|
-
items:
|
|
1887
|
+
items: IKnowledgeInput[];
|
|
1764
1888
|
/** Total */
|
|
1765
1889
|
total: number;
|
|
1766
1890
|
/** Page */
|
|
@@ -1771,7 +1895,7 @@ export interface IPageResponseChunk {
|
|
|
1771
1895
|
total_pages: number;
|
|
1772
1896
|
}
|
|
1773
1897
|
/** PageResponse[Knowledge] */
|
|
1774
|
-
export interface
|
|
1898
|
+
export interface IPageResponseKnowledgeOutput {
|
|
1775
1899
|
/** Items */
|
|
1776
1900
|
items: IKnowledgeOutput[];
|
|
1777
1901
|
/** Total */
|
|
@@ -1784,9 +1908,22 @@ export interface IPageResponseKnowledge {
|
|
|
1784
1908
|
total_pages: number;
|
|
1785
1909
|
}
|
|
1786
1910
|
/** PageResponse[SpaceResponse] */
|
|
1787
|
-
export interface
|
|
1911
|
+
export interface IPageResponseSpaceResponseInput {
|
|
1912
|
+
/** Items */
|
|
1913
|
+
items: ISpaceResponseInput[];
|
|
1914
|
+
/** Total */
|
|
1915
|
+
total: number;
|
|
1916
|
+
/** Page */
|
|
1917
|
+
page: number;
|
|
1918
|
+
/** Page Size */
|
|
1919
|
+
page_size: number;
|
|
1920
|
+
/** Total Pages */
|
|
1921
|
+
total_pages: number;
|
|
1922
|
+
}
|
|
1923
|
+
/** PageResponse[SpaceResponse] */
|
|
1924
|
+
export interface IPageResponseSpaceResponseOutput {
|
|
1788
1925
|
/** Items */
|
|
1789
|
-
items:
|
|
1926
|
+
items: ISpaceResponseOutput[];
|
|
1790
1927
|
/** Total */
|
|
1791
1928
|
total: number;
|
|
1792
1929
|
/** Page */
|
|
@@ -1797,9 +1934,35 @@ export interface IPageResponseSpaceResponse {
|
|
|
1797
1934
|
total_pages: number;
|
|
1798
1935
|
}
|
|
1799
1936
|
/** PageResponse[Tag] */
|
|
1800
|
-
export interface
|
|
1937
|
+
export interface IPageResponseTagInput {
|
|
1938
|
+
/** Items */
|
|
1939
|
+
items: ITagInput[];
|
|
1940
|
+
/** Total */
|
|
1941
|
+
total: number;
|
|
1942
|
+
/** Page */
|
|
1943
|
+
page: number;
|
|
1944
|
+
/** Page Size */
|
|
1945
|
+
page_size: number;
|
|
1946
|
+
/** Total Pages */
|
|
1947
|
+
total_pages: number;
|
|
1948
|
+
}
|
|
1949
|
+
/** PageResponse[Tag] */
|
|
1950
|
+
export interface IPageResponseTagOutput {
|
|
1951
|
+
/** Items */
|
|
1952
|
+
items: ITagOutput[];
|
|
1953
|
+
/** Total */
|
|
1954
|
+
total: number;
|
|
1955
|
+
/** Page */
|
|
1956
|
+
page: number;
|
|
1957
|
+
/** Page Size */
|
|
1958
|
+
page_size: number;
|
|
1959
|
+
/** Total Pages */
|
|
1960
|
+
total_pages: number;
|
|
1961
|
+
}
|
|
1962
|
+
/** PageResponse[Tagging] */
|
|
1963
|
+
export interface IPageResponseTaggingInput {
|
|
1801
1964
|
/** Items */
|
|
1802
|
-
items:
|
|
1965
|
+
items: ITaggingInput[];
|
|
1803
1966
|
/** Total */
|
|
1804
1967
|
total: number;
|
|
1805
1968
|
/** Page */
|
|
@@ -1810,9 +1973,9 @@ export interface IPageResponseTag {
|
|
|
1810
1973
|
total_pages: number;
|
|
1811
1974
|
}
|
|
1812
1975
|
/** PageResponse[Tagging] */
|
|
1813
|
-
export interface
|
|
1976
|
+
export interface IPageResponseTaggingOutput {
|
|
1814
1977
|
/** Items */
|
|
1815
|
-
items:
|
|
1978
|
+
items: ITaggingOutput[];
|
|
1816
1979
|
/** Total */
|
|
1817
1980
|
total: number;
|
|
1818
1981
|
/** Page */
|
|
@@ -1823,9 +1986,22 @@ export interface IPageResponseTagging {
|
|
|
1823
1986
|
total_pages: number;
|
|
1824
1987
|
}
|
|
1825
1988
|
/** PageResponse[Tenant] */
|
|
1826
|
-
export interface
|
|
1989
|
+
export interface IPageResponseTenantInput {
|
|
1827
1990
|
/** Items */
|
|
1828
|
-
items:
|
|
1991
|
+
items: ITenantInput[];
|
|
1992
|
+
/** Total */
|
|
1993
|
+
total: number;
|
|
1994
|
+
/** Page */
|
|
1995
|
+
page: number;
|
|
1996
|
+
/** Page Size */
|
|
1997
|
+
page_size: number;
|
|
1998
|
+
/** Total Pages */
|
|
1999
|
+
total_pages: number;
|
|
2000
|
+
}
|
|
2001
|
+
/** PageResponse[Tenant] */
|
|
2002
|
+
export interface IPageResponseTenantOutput {
|
|
2003
|
+
/** Items */
|
|
2004
|
+
items: ITenantOutput[];
|
|
1829
2005
|
/** Total */
|
|
1830
2006
|
total: number;
|
|
1831
2007
|
/** Page */
|
|
@@ -1843,53 +2019,6 @@ export interface IPermission {
|
|
|
1843
2019
|
/** Conditions */
|
|
1844
2020
|
conditions?: Record<string, any> | null;
|
|
1845
2021
|
}
|
|
1846
|
-
/** ProResearchRequest */
|
|
1847
|
-
export interface IProResearchRequest {
|
|
1848
|
-
/**
|
|
1849
|
-
* Messages
|
|
1850
|
-
* The messages to be sent to the agent.
|
|
1851
|
-
* @default []
|
|
1852
|
-
*/
|
|
1853
|
-
messages?: (IChatCompletionDeveloperMessageParam | IChatCompletionSystemMessageParam | IChatCompletionUserMessageParam | IChatCompletionAssistantMessageParam | IChatCompletionToolMessageParam | IChatCompletionFunctionMessageParam)[];
|
|
1854
|
-
/**
|
|
1855
|
-
* Model
|
|
1856
|
-
* The name of the language model to use for the agent's query generation.
|
|
1857
|
-
* @default "wohu_qwen3_235b_a22b"
|
|
1858
|
-
*/
|
|
1859
|
-
model?: string;
|
|
1860
|
-
/**
|
|
1861
|
-
* Number Of Initial Queries
|
|
1862
|
-
* The number of initial search queries to generate.
|
|
1863
|
-
* @default 3
|
|
1864
|
-
*/
|
|
1865
|
-
number_of_initial_queries?: number;
|
|
1866
|
-
/**
|
|
1867
|
-
* Max Research Loops
|
|
1868
|
-
* The maximum number of research loops to perform.
|
|
1869
|
-
* @default 2
|
|
1870
|
-
*/
|
|
1871
|
-
max_research_loops?: number;
|
|
1872
|
-
/**
|
|
1873
|
-
* Enable Knowledge Retrieval
|
|
1874
|
-
* Whether to enable knowledge retrieval functionality.
|
|
1875
|
-
* @default true
|
|
1876
|
-
*/
|
|
1877
|
-
enable_knowledge_retrieval?: boolean;
|
|
1878
|
-
/**
|
|
1879
|
-
* Enable Web Search
|
|
1880
|
-
* Whether to enable web search functionality.
|
|
1881
|
-
* @default false
|
|
1882
|
-
*/
|
|
1883
|
-
enable_web_search?: boolean;
|
|
1884
|
-
/**
|
|
1885
|
-
* Knowledge Scope List
|
|
1886
|
-
* List of knowledge scopes to search within.
|
|
1887
|
-
* @default []
|
|
1888
|
-
*/
|
|
1889
|
-
knowledge_scope_list?: IKnowledgeScope[];
|
|
1890
|
-
/** Knowledge retrieval configuration. */
|
|
1891
|
-
knowledge_retrieval_config?: IRetrievalConfig | null;
|
|
1892
|
-
}
|
|
1893
2022
|
/** QACreate */
|
|
1894
2023
|
export interface IQACreate {
|
|
1895
2024
|
/**
|
|
@@ -1924,9 +2053,8 @@ export interface IQACreate {
|
|
|
1924
2053
|
/**
|
|
1925
2054
|
* Embedding Model Name
|
|
1926
2055
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
1927
|
-
* @default "openai"
|
|
1928
2056
|
*/
|
|
1929
|
-
embedding_model_name
|
|
2057
|
+
embedding_model_name: string;
|
|
1930
2058
|
/**
|
|
1931
2059
|
* File Sha
|
|
1932
2060
|
* SHA of the file
|
|
@@ -1970,7 +2098,16 @@ export interface IResponseModel {
|
|
|
1970
2098
|
export interface IResponseModelAPIKey {
|
|
1971
2099
|
/** Success */
|
|
1972
2100
|
success: boolean;
|
|
1973
|
-
data?:
|
|
2101
|
+
data?: IAPIKeyOutput | null;
|
|
2102
|
+
/** Message */
|
|
2103
|
+
message?: string | null;
|
|
2104
|
+
}
|
|
2105
|
+
/** ResponseModel[Any] */
|
|
2106
|
+
export interface IResponseModelAny {
|
|
2107
|
+
/** Success */
|
|
2108
|
+
success: boolean;
|
|
2109
|
+
/** Data */
|
|
2110
|
+
data?: any;
|
|
1974
2111
|
/** Message */
|
|
1975
2112
|
message?: string | null;
|
|
1976
2113
|
}
|
|
@@ -1978,7 +2115,7 @@ export interface IResponseModelAPIKey {
|
|
|
1978
2115
|
export interface IResponseModelArtifactIndex {
|
|
1979
2116
|
/** Success */
|
|
1980
2117
|
success: boolean;
|
|
1981
|
-
data?:
|
|
2118
|
+
data?: IArtifactIndexOutput | null;
|
|
1982
2119
|
/** Message */
|
|
1983
2120
|
message?: string | null;
|
|
1984
2121
|
}
|
|
@@ -1986,7 +2123,7 @@ export interface IResponseModelArtifactIndex {
|
|
|
1986
2123
|
export interface IResponseModelChunk {
|
|
1987
2124
|
/** Success */
|
|
1988
2125
|
success: boolean;
|
|
1989
|
-
data?:
|
|
2126
|
+
data?: IChunkOutput | null;
|
|
1990
2127
|
/** Message */
|
|
1991
2128
|
message?: string | null;
|
|
1992
2129
|
}
|
|
@@ -2011,7 +2148,7 @@ export interface IResponseModelListAPIKey {
|
|
|
2011
2148
|
/** Success */
|
|
2012
2149
|
success: boolean;
|
|
2013
2150
|
/** Data */
|
|
2014
|
-
data?:
|
|
2151
|
+
data?: IAPIKeyOutput[] | null;
|
|
2015
2152
|
/** Message */
|
|
2016
2153
|
message?: string | null;
|
|
2017
2154
|
}
|
|
@@ -2020,7 +2157,7 @@ export interface IResponseModelListArtifactIndex {
|
|
|
2020
2157
|
/** Success */
|
|
2021
2158
|
success: boolean;
|
|
2022
2159
|
/** Data */
|
|
2023
|
-
data?:
|
|
2160
|
+
data?: IArtifactIndexOutput[] | null;
|
|
2024
2161
|
/** Message */
|
|
2025
2162
|
message?: string | null;
|
|
2026
2163
|
}
|
|
@@ -2038,7 +2175,7 @@ export interface IResponseModelListRetrievalChunk {
|
|
|
2038
2175
|
/** Success */
|
|
2039
2176
|
success: boolean;
|
|
2040
2177
|
/** Data */
|
|
2041
|
-
data?:
|
|
2178
|
+
data?: IRetrievalChunkOutput[] | null;
|
|
2042
2179
|
/** Message */
|
|
2043
2180
|
message?: string | null;
|
|
2044
2181
|
}
|
|
@@ -2047,7 +2184,7 @@ export interface IResponseModelListTag {
|
|
|
2047
2184
|
/** Success */
|
|
2048
2185
|
success: boolean;
|
|
2049
2186
|
/** Data */
|
|
2050
|
-
data?:
|
|
2187
|
+
data?: ITagOutput[] | null;
|
|
2051
2188
|
/** Message */
|
|
2052
2189
|
message?: string | null;
|
|
2053
2190
|
}
|
|
@@ -2056,7 +2193,7 @@ export interface IResponseModelListTagging {
|
|
|
2056
2193
|
/** Success */
|
|
2057
2194
|
success: boolean;
|
|
2058
2195
|
/** Data */
|
|
2059
|
-
data?:
|
|
2196
|
+
data?: ITaggingOutput[] | null;
|
|
2060
2197
|
/** Message */
|
|
2061
2198
|
message?: string | null;
|
|
2062
2199
|
}
|
|
@@ -2065,7 +2202,7 @@ export interface IResponseModelListTask {
|
|
|
2065
2202
|
/** Success */
|
|
2066
2203
|
success: boolean;
|
|
2067
2204
|
/** Data */
|
|
2068
|
-
data?:
|
|
2205
|
+
data?: ITaskOutput[] | null;
|
|
2069
2206
|
/** Message */
|
|
2070
2207
|
message?: string | null;
|
|
2071
2208
|
}
|
|
@@ -2078,6 +2215,15 @@ export interface IResponseModelListTenantLog {
|
|
|
2078
2215
|
/** Message */
|
|
2079
2216
|
message?: string | null;
|
|
2080
2217
|
}
|
|
2218
|
+
/** ResponseModel[List[WohuProductSpace]] */
|
|
2219
|
+
export interface IResponseModelListWohuProductSpace {
|
|
2220
|
+
/** Success */
|
|
2221
|
+
success: boolean;
|
|
2222
|
+
/** Data */
|
|
2223
|
+
data?: IWohuProductSpace[] | null;
|
|
2224
|
+
/** Message */
|
|
2225
|
+
message?: string | null;
|
|
2226
|
+
}
|
|
2081
2227
|
/** ResponseModel[NoneType] */
|
|
2082
2228
|
export interface IResponseModelNoneType {
|
|
2083
2229
|
/** Success */
|
|
@@ -2091,7 +2237,7 @@ export interface IResponseModelNoneType {
|
|
|
2091
2237
|
export interface IResponseModelPageResponseAPIKey {
|
|
2092
2238
|
/** Success */
|
|
2093
2239
|
success: boolean;
|
|
2094
|
-
data?:
|
|
2240
|
+
data?: IPageResponseAPIKeyOutput | null;
|
|
2095
2241
|
/** Message */
|
|
2096
2242
|
message?: string | null;
|
|
2097
2243
|
}
|
|
@@ -2099,7 +2245,7 @@ export interface IResponseModelPageResponseAPIKey {
|
|
|
2099
2245
|
export interface IResponseModelPageResponseArtifactIndex {
|
|
2100
2246
|
/** Success */
|
|
2101
2247
|
success: boolean;
|
|
2102
|
-
data?:
|
|
2248
|
+
data?: IPageResponseArtifactIndexOutput | null;
|
|
2103
2249
|
/** Message */
|
|
2104
2250
|
message?: string | null;
|
|
2105
2251
|
}
|
|
@@ -2107,7 +2253,7 @@ export interface IResponseModelPageResponseArtifactIndex {
|
|
|
2107
2253
|
export interface IResponseModelPageResponseChunk {
|
|
2108
2254
|
/** Success */
|
|
2109
2255
|
success: boolean;
|
|
2110
|
-
data?:
|
|
2256
|
+
data?: IPageResponseChunkOutput | null;
|
|
2111
2257
|
/** Message */
|
|
2112
2258
|
message?: string | null;
|
|
2113
2259
|
}
|
|
@@ -2115,7 +2261,7 @@ export interface IResponseModelPageResponseChunk {
|
|
|
2115
2261
|
export interface IResponseModelPageResponseKnowledge {
|
|
2116
2262
|
/** Success */
|
|
2117
2263
|
success: boolean;
|
|
2118
|
-
data?:
|
|
2264
|
+
data?: IPageResponseKnowledgeOutput | null;
|
|
2119
2265
|
/** Message */
|
|
2120
2266
|
message?: string | null;
|
|
2121
2267
|
}
|
|
@@ -2123,7 +2269,7 @@ export interface IResponseModelPageResponseKnowledge {
|
|
|
2123
2269
|
export interface IResponseModelPageResponseSpaceResponse {
|
|
2124
2270
|
/** Success */
|
|
2125
2271
|
success: boolean;
|
|
2126
|
-
data?:
|
|
2272
|
+
data?: IPageResponseSpaceResponseOutput | null;
|
|
2127
2273
|
/** Message */
|
|
2128
2274
|
message?: string | null;
|
|
2129
2275
|
}
|
|
@@ -2131,7 +2277,7 @@ export interface IResponseModelPageResponseSpaceResponse {
|
|
|
2131
2277
|
export interface IResponseModelPageResponseTag {
|
|
2132
2278
|
/** Success */
|
|
2133
2279
|
success: boolean;
|
|
2134
|
-
data?:
|
|
2280
|
+
data?: IPageResponseTagOutput | null;
|
|
2135
2281
|
/** Message */
|
|
2136
2282
|
message?: string | null;
|
|
2137
2283
|
}
|
|
@@ -2139,7 +2285,7 @@ export interface IResponseModelPageResponseTag {
|
|
|
2139
2285
|
export interface IResponseModelPageResponseTagging {
|
|
2140
2286
|
/** Success */
|
|
2141
2287
|
success: boolean;
|
|
2142
|
-
data?:
|
|
2288
|
+
data?: IPageResponseTaggingOutput | null;
|
|
2143
2289
|
/** Message */
|
|
2144
2290
|
message?: string | null;
|
|
2145
2291
|
}
|
|
@@ -2147,7 +2293,7 @@ export interface IResponseModelPageResponseTagging {
|
|
|
2147
2293
|
export interface IResponseModelPageResponseTenant {
|
|
2148
2294
|
/** Success */
|
|
2149
2295
|
success: boolean;
|
|
2150
|
-
data?:
|
|
2296
|
+
data?: IPageResponseTenantOutput | null;
|
|
2151
2297
|
/** Message */
|
|
2152
2298
|
message?: string | null;
|
|
2153
2299
|
}
|
|
@@ -2155,7 +2301,7 @@ export interface IResponseModelPageResponseTenant {
|
|
|
2155
2301
|
export interface IResponseModelSpaceResponse {
|
|
2156
2302
|
/** Success */
|
|
2157
2303
|
success: boolean;
|
|
2158
|
-
data?:
|
|
2304
|
+
data?: ISpaceResponseOutput | null;
|
|
2159
2305
|
/** Message */
|
|
2160
2306
|
message?: string | null;
|
|
2161
2307
|
}
|
|
@@ -2163,7 +2309,7 @@ export interface IResponseModelSpaceResponse {
|
|
|
2163
2309
|
export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
2164
2310
|
/** Success */
|
|
2165
2311
|
success: boolean;
|
|
2166
|
-
data?:
|
|
2312
|
+
data?: IStatusStatisticsPageResponseTaskOutput | null;
|
|
2167
2313
|
/** Message */
|
|
2168
2314
|
message?: string | null;
|
|
2169
2315
|
}
|
|
@@ -2171,7 +2317,7 @@ export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
|
2171
2317
|
export interface IResponseModelTag {
|
|
2172
2318
|
/** Success */
|
|
2173
2319
|
success: boolean;
|
|
2174
|
-
data?:
|
|
2320
|
+
data?: ITagOutput | null;
|
|
2175
2321
|
/** Message */
|
|
2176
2322
|
message?: string | null;
|
|
2177
2323
|
}
|
|
@@ -2179,7 +2325,7 @@ export interface IResponseModelTag {
|
|
|
2179
2325
|
export interface IResponseModelTask {
|
|
2180
2326
|
/** Success */
|
|
2181
2327
|
success: boolean;
|
|
2182
|
-
data?:
|
|
2328
|
+
data?: ITaskOutput | null;
|
|
2183
2329
|
/** Message */
|
|
2184
2330
|
message?: string | null;
|
|
2185
2331
|
}
|
|
@@ -2187,7 +2333,7 @@ export interface IResponseModelTask {
|
|
|
2187
2333
|
export interface IResponseModelTenant {
|
|
2188
2334
|
/** Success */
|
|
2189
2335
|
success: boolean;
|
|
2190
|
-
data?:
|
|
2336
|
+
data?: ITenantOutput | null;
|
|
2191
2337
|
/** Message */
|
|
2192
2338
|
message?: string | null;
|
|
2193
2339
|
}
|
|
@@ -2215,7 +2361,7 @@ export interface IRetrievalByKnowledgeRequest {
|
|
|
2215
2361
|
* Embedding Model Name
|
|
2216
2362
|
* The name of the embedding model
|
|
2217
2363
|
*/
|
|
2218
|
-
embedding_model_name:
|
|
2364
|
+
embedding_model_name: string;
|
|
2219
2365
|
/**
|
|
2220
2366
|
* Similarity Threshold
|
|
2221
2367
|
* The similarity threshold, ranging from 0.0 to 1.0.
|
|
@@ -2254,7 +2400,7 @@ export interface IRetrievalBySpaceRequest {
|
|
|
2254
2400
|
* Embedding Model Name
|
|
2255
2401
|
* The name of the embedding model
|
|
2256
2402
|
*/
|
|
2257
|
-
embedding_model_name:
|
|
2403
|
+
embedding_model_name: string;
|
|
2258
2404
|
/**
|
|
2259
2405
|
* Similarity Threshold
|
|
2260
2406
|
* The similarity threshold, ranging from 0.0 to 1.0.
|
|
@@ -2288,17 +2434,17 @@ export interface IRetrievalBySpaceRequest {
|
|
|
2288
2434
|
space_id_list: string[];
|
|
2289
2435
|
}
|
|
2290
2436
|
/** RetrievalChunk */
|
|
2291
|
-
export interface
|
|
2437
|
+
export interface IRetrievalChunkInput {
|
|
2292
2438
|
/**
|
|
2293
2439
|
* Gmt Create
|
|
2294
2440
|
* creation time
|
|
2295
2441
|
*/
|
|
2296
|
-
gmt_create?: string;
|
|
2442
|
+
gmt_create?: string | null;
|
|
2297
2443
|
/**
|
|
2298
2444
|
* Gmt Modified
|
|
2299
2445
|
* update time
|
|
2300
2446
|
*/
|
|
2301
|
-
gmt_modified?: string;
|
|
2447
|
+
gmt_modified?: string | null;
|
|
2302
2448
|
/**
|
|
2303
2449
|
* Chunk Id
|
|
2304
2450
|
* chunk id
|
|
@@ -2339,7 +2485,101 @@ export interface IRetrievalChunk {
|
|
|
2339
2485
|
* Embedding Model Name
|
|
2340
2486
|
* name of the embedding model
|
|
2341
2487
|
*/
|
|
2342
|
-
embedding_model_name
|
|
2488
|
+
embedding_model_name: string;
|
|
2489
|
+
/**
|
|
2490
|
+
* Metadata
|
|
2491
|
+
* Arbitrary metadata associated with the content.
|
|
2492
|
+
*/
|
|
2493
|
+
metadata?: Record<string, any> | null;
|
|
2494
|
+
/**
|
|
2495
|
+
* Tags
|
|
2496
|
+
* Tags from knowledge.metadata._tags
|
|
2497
|
+
*/
|
|
2498
|
+
tags?: string[] | null;
|
|
2499
|
+
/**
|
|
2500
|
+
* F1
|
|
2501
|
+
* Field 1 from knowledge.metadata._f1
|
|
2502
|
+
*/
|
|
2503
|
+
f1?: string | null;
|
|
2504
|
+
/**
|
|
2505
|
+
* F2
|
|
2506
|
+
* Field 2 from knowledge.metadata._f2
|
|
2507
|
+
*/
|
|
2508
|
+
f2?: string | null;
|
|
2509
|
+
/**
|
|
2510
|
+
* F3
|
|
2511
|
+
* Field 3 from knowledge.metadata._f3
|
|
2512
|
+
*/
|
|
2513
|
+
f3?: string | null;
|
|
2514
|
+
/**
|
|
2515
|
+
* F4
|
|
2516
|
+
* Field 4 from knowledge.metadata._f4
|
|
2517
|
+
*/
|
|
2518
|
+
f4?: string | null;
|
|
2519
|
+
/**
|
|
2520
|
+
* F5
|
|
2521
|
+
* Field 5 from knowledge.metadata._f5
|
|
2522
|
+
*/
|
|
2523
|
+
f5?: string | null;
|
|
2524
|
+
/**
|
|
2525
|
+
* Similarity
|
|
2526
|
+
* The similarity of the chunk, ranging from 0.0 to 1.0.
|
|
2527
|
+
*/
|
|
2528
|
+
similarity: number;
|
|
2529
|
+
}
|
|
2530
|
+
/** RetrievalChunk */
|
|
2531
|
+
export interface IRetrievalChunkOutput {
|
|
2532
|
+
/**
|
|
2533
|
+
* Gmt Create
|
|
2534
|
+
* creation time
|
|
2535
|
+
*/
|
|
2536
|
+
gmt_create?: string | null;
|
|
2537
|
+
/**
|
|
2538
|
+
* Gmt Modified
|
|
2539
|
+
* update time
|
|
2540
|
+
*/
|
|
2541
|
+
gmt_modified?: string | null;
|
|
2542
|
+
/**
|
|
2543
|
+
* Chunk Id
|
|
2544
|
+
* chunk id
|
|
2545
|
+
*/
|
|
2546
|
+
chunk_id?: string;
|
|
2547
|
+
/**
|
|
2548
|
+
* Space Id
|
|
2549
|
+
* space id
|
|
2550
|
+
*/
|
|
2551
|
+
space_id: string;
|
|
2552
|
+
/**
|
|
2553
|
+
* Tenant Id
|
|
2554
|
+
* tenant id
|
|
2555
|
+
*/
|
|
2556
|
+
tenant_id: string;
|
|
2557
|
+
/**
|
|
2558
|
+
* Embedding
|
|
2559
|
+
* chunk embedding
|
|
2560
|
+
*/
|
|
2561
|
+
embedding?: number[] | null;
|
|
2562
|
+
/**
|
|
2563
|
+
* Context
|
|
2564
|
+
* chunk content
|
|
2565
|
+
*/
|
|
2566
|
+
context: string;
|
|
2567
|
+
/**
|
|
2568
|
+
* Knowledge Id
|
|
2569
|
+
* file source info
|
|
2570
|
+
*/
|
|
2571
|
+
knowledge_id: string;
|
|
2572
|
+
/**
|
|
2573
|
+
* Enabled
|
|
2574
|
+
* is chunk enabled
|
|
2575
|
+
* @default true
|
|
2576
|
+
*/
|
|
2577
|
+
enabled?: boolean;
|
|
2578
|
+
/**
|
|
2579
|
+
* Embedding Model Name
|
|
2580
|
+
* name of the embedding model
|
|
2581
|
+
*/
|
|
2582
|
+
embedding_model_name: string;
|
|
2343
2583
|
/**
|
|
2344
2584
|
* Metadata
|
|
2345
2585
|
* Arbitrary metadata associated with the content.
|
|
@@ -2485,17 +2725,77 @@ export interface ISpaceCreate {
|
|
|
2485
2725
|
* total_size Optional[int]: size of the all kowledge in this space.
|
|
2486
2726
|
* knowledge_size Optional[int]: count of the knowledge in this space.
|
|
2487
2727
|
*/
|
|
2488
|
-
export interface
|
|
2728
|
+
export interface ISpaceResponseInput {
|
|
2729
|
+
/**
|
|
2730
|
+
* Gmt Create
|
|
2731
|
+
* creation time
|
|
2732
|
+
*/
|
|
2733
|
+
gmt_create?: string | null;
|
|
2734
|
+
/**
|
|
2735
|
+
* Gmt Modified
|
|
2736
|
+
* update time
|
|
2737
|
+
*/
|
|
2738
|
+
gmt_modified?: string | null;
|
|
2739
|
+
/**
|
|
2740
|
+
* Space Name
|
|
2741
|
+
* name of the space resource
|
|
2742
|
+
* @maxLength 64
|
|
2743
|
+
*/
|
|
2744
|
+
space_name: string;
|
|
2745
|
+
/**
|
|
2746
|
+
* Space Id
|
|
2747
|
+
* space id
|
|
2748
|
+
*/
|
|
2749
|
+
space_id?: string;
|
|
2750
|
+
/**
|
|
2751
|
+
* Description
|
|
2752
|
+
* descrition of the space
|
|
2753
|
+
* @maxLength 255
|
|
2754
|
+
*/
|
|
2755
|
+
description: string;
|
|
2756
|
+
/**
|
|
2757
|
+
* Metadata
|
|
2758
|
+
* metadata of the space resource
|
|
2759
|
+
* @default {}
|
|
2760
|
+
*/
|
|
2761
|
+
metadata?: Record<string, any>;
|
|
2762
|
+
/**
|
|
2763
|
+
* Tenant Id
|
|
2764
|
+
* tenant id
|
|
2765
|
+
*/
|
|
2766
|
+
tenant_id: string;
|
|
2767
|
+
/**
|
|
2768
|
+
* Storage Size
|
|
2769
|
+
* size of the all kowledge in this space
|
|
2770
|
+
* @default 0
|
|
2771
|
+
*/
|
|
2772
|
+
storage_size?: number | null;
|
|
2773
|
+
/**
|
|
2774
|
+
* Knowledge Count
|
|
2775
|
+
* count of the knowledge in this space
|
|
2776
|
+
* @default 0
|
|
2777
|
+
*/
|
|
2778
|
+
knowledge_count?: number | null;
|
|
2779
|
+
}
|
|
2780
|
+
/**
|
|
2781
|
+
* SpaceResponse
|
|
2782
|
+
* SpaceResponse model class that extends Space.
|
|
2783
|
+
* Attributes:
|
|
2784
|
+
* (str): Space ID.
|
|
2785
|
+
* total_size Optional[int]: size of the all kowledge in this space.
|
|
2786
|
+
* knowledge_size Optional[int]: count of the knowledge in this space.
|
|
2787
|
+
*/
|
|
2788
|
+
export interface ISpaceResponseOutput {
|
|
2489
2789
|
/**
|
|
2490
2790
|
* Gmt Create
|
|
2491
2791
|
* creation time
|
|
2492
2792
|
*/
|
|
2493
|
-
gmt_create?: string;
|
|
2793
|
+
gmt_create?: string | null;
|
|
2494
2794
|
/**
|
|
2495
2795
|
* Gmt Modified
|
|
2496
2796
|
* update time
|
|
2497
2797
|
*/
|
|
2498
|
-
gmt_modified?: string;
|
|
2798
|
+
gmt_modified?: string | null;
|
|
2499
2799
|
/**
|
|
2500
2800
|
* Space Name
|
|
2501
2801
|
* name of the space resource
|
|
@@ -2538,9 +2838,9 @@ export interface ISpaceResponse {
|
|
|
2538
2838
|
knowledge_count?: number | null;
|
|
2539
2839
|
}
|
|
2540
2840
|
/** StatusStatisticsPageResponse[Task] */
|
|
2541
|
-
export interface
|
|
2841
|
+
export interface IStatusStatisticsPageResponseTaskInput {
|
|
2542
2842
|
/** Items */
|
|
2543
|
-
items:
|
|
2843
|
+
items: ITaskInput[];
|
|
2544
2844
|
/** Total */
|
|
2545
2845
|
total: number;
|
|
2546
2846
|
/** Page */
|
|
@@ -2585,18 +2885,106 @@ export interface IStatusStatisticsPageResponseTask {
|
|
|
2585
2885
|
*/
|
|
2586
2886
|
deleted?: number;
|
|
2587
2887
|
}
|
|
2888
|
+
/** StatusStatisticsPageResponse[Task] */
|
|
2889
|
+
export interface IStatusStatisticsPageResponseTaskOutput {
|
|
2890
|
+
/** Items */
|
|
2891
|
+
items: ITaskOutput[];
|
|
2892
|
+
/** Total */
|
|
2893
|
+
total: number;
|
|
2894
|
+
/** Page */
|
|
2895
|
+
page: number;
|
|
2896
|
+
/** Page Size */
|
|
2897
|
+
page_size: number;
|
|
2898
|
+
/** Total Pages */
|
|
2899
|
+
total_pages: number;
|
|
2900
|
+
/**
|
|
2901
|
+
* Success
|
|
2902
|
+
* @default 0
|
|
2903
|
+
*/
|
|
2904
|
+
success?: number;
|
|
2905
|
+
/**
|
|
2906
|
+
* Failed
|
|
2907
|
+
* @default 0
|
|
2908
|
+
*/
|
|
2909
|
+
failed?: number;
|
|
2910
|
+
/**
|
|
2911
|
+
* Cancelled
|
|
2912
|
+
* @default 0
|
|
2913
|
+
*/
|
|
2914
|
+
cancelled?: number;
|
|
2915
|
+
/**
|
|
2916
|
+
* Pending
|
|
2917
|
+
* @default 0
|
|
2918
|
+
*/
|
|
2919
|
+
pending?: number;
|
|
2920
|
+
/**
|
|
2921
|
+
* Running
|
|
2922
|
+
* @default 0
|
|
2923
|
+
*/
|
|
2924
|
+
running?: number;
|
|
2925
|
+
/**
|
|
2926
|
+
* Pending Retry
|
|
2927
|
+
* @default 0
|
|
2928
|
+
*/
|
|
2929
|
+
pending_retry?: number;
|
|
2930
|
+
/**
|
|
2931
|
+
* Deleted
|
|
2932
|
+
* @default 0
|
|
2933
|
+
*/
|
|
2934
|
+
deleted?: number;
|
|
2935
|
+
}
|
|
2936
|
+
/** Tag */
|
|
2937
|
+
export interface ITagInput {
|
|
2938
|
+
/**
|
|
2939
|
+
* Gmt Create
|
|
2940
|
+
* creation time
|
|
2941
|
+
*/
|
|
2942
|
+
gmt_create?: string | null;
|
|
2943
|
+
/**
|
|
2944
|
+
* Gmt Modified
|
|
2945
|
+
* update time
|
|
2946
|
+
*/
|
|
2947
|
+
gmt_modified?: string | null;
|
|
2948
|
+
/**
|
|
2949
|
+
* Name
|
|
2950
|
+
* 标签名称(租户内唯一)
|
|
2951
|
+
* @maxLength 64
|
|
2952
|
+
*/
|
|
2953
|
+
name: string;
|
|
2954
|
+
/**
|
|
2955
|
+
* Description
|
|
2956
|
+
* 标签描述
|
|
2957
|
+
*/
|
|
2958
|
+
description?: string | null;
|
|
2959
|
+
/**
|
|
2960
|
+
* 标签作用对象类型(如 "space")
|
|
2961
|
+
* @default "space"
|
|
2962
|
+
*/
|
|
2963
|
+
object_type?: ITagObjectType;
|
|
2964
|
+
/**
|
|
2965
|
+
* Tag Id
|
|
2966
|
+
* 标签ID(UUID字符串)
|
|
2967
|
+
*/
|
|
2968
|
+
tag_id?: string;
|
|
2969
|
+
/**
|
|
2970
|
+
* Tenant Id
|
|
2971
|
+
* 所属租户ID
|
|
2972
|
+
* @maxLength 64
|
|
2973
|
+
*/
|
|
2974
|
+
tenant_id: string;
|
|
2975
|
+
}
|
|
2588
2976
|
/** Tag */
|
|
2589
|
-
export interface
|
|
2977
|
+
export interface ITagOutput {
|
|
2590
2978
|
/**
|
|
2591
2979
|
* Gmt Create
|
|
2592
2980
|
* creation time
|
|
2593
2981
|
*/
|
|
2594
|
-
gmt_create?: string;
|
|
2982
|
+
gmt_create?: string | null;
|
|
2595
2983
|
/**
|
|
2596
2984
|
* Gmt Modified
|
|
2597
2985
|
* update time
|
|
2598
2986
|
*/
|
|
2599
|
-
gmt_modified?: string;
|
|
2987
|
+
gmt_modified?: string | null;
|
|
2600
2988
|
/**
|
|
2601
2989
|
* Name
|
|
2602
2990
|
* 标签名称(租户内唯一)
|
|
@@ -2607,64 +2995,120 @@ export interface ITag {
|
|
|
2607
2995
|
* Description
|
|
2608
2996
|
* 标签描述
|
|
2609
2997
|
*/
|
|
2610
|
-
description?: string | null;
|
|
2998
|
+
description?: string | null;
|
|
2999
|
+
/**
|
|
3000
|
+
* 标签作用对象类型(如 "space")
|
|
3001
|
+
* @default "space"
|
|
3002
|
+
*/
|
|
3003
|
+
object_type?: ITagObjectType;
|
|
3004
|
+
/**
|
|
3005
|
+
* Tag Id
|
|
3006
|
+
* 标签ID(UUID字符串)
|
|
3007
|
+
*/
|
|
3008
|
+
tag_id?: string;
|
|
3009
|
+
/**
|
|
3010
|
+
* Tenant Id
|
|
3011
|
+
* 所属租户ID
|
|
3012
|
+
* @maxLength 64
|
|
3013
|
+
*/
|
|
3014
|
+
tenant_id: string;
|
|
3015
|
+
}
|
|
3016
|
+
/** TagCreate */
|
|
3017
|
+
export interface ITagCreate {
|
|
3018
|
+
/**
|
|
3019
|
+
* Name
|
|
3020
|
+
* 标签名称(租户内唯一)
|
|
3021
|
+
* @maxLength 64
|
|
3022
|
+
*/
|
|
3023
|
+
name: string;
|
|
3024
|
+
/**
|
|
3025
|
+
* Description
|
|
3026
|
+
* 标签描述
|
|
3027
|
+
*/
|
|
3028
|
+
description?: string | null;
|
|
3029
|
+
/**
|
|
3030
|
+
* 标签作用对象类型(如 "space")
|
|
3031
|
+
* @default "space"
|
|
3032
|
+
*/
|
|
3033
|
+
object_type?: ITagObjectType;
|
|
3034
|
+
}
|
|
3035
|
+
/**
|
|
3036
|
+
* TagFilter
|
|
3037
|
+
* 针对 Tagging 表的过滤条件(只允许使用 tag_name / tag_id 作为字段)
|
|
3038
|
+
*/
|
|
3039
|
+
export interface ITagFilter {
|
|
3040
|
+
operator: IOperator;
|
|
3041
|
+
/** Conditions */
|
|
3042
|
+
conditions: (ICondition | IFilterGroup)[];
|
|
3043
|
+
}
|
|
3044
|
+
/** TagUpdate */
|
|
3045
|
+
export interface ITagUpdate {
|
|
3046
|
+
/** Tag Id */
|
|
3047
|
+
tag_id: string;
|
|
3048
|
+
/** Name */
|
|
3049
|
+
name?: string | null;
|
|
3050
|
+
/** Description */
|
|
3051
|
+
description?: string | null;
|
|
3052
|
+
}
|
|
3053
|
+
/** Tagging */
|
|
3054
|
+
export interface ITaggingInput {
|
|
3055
|
+
/**
|
|
3056
|
+
* Gmt Create
|
|
3057
|
+
* creation time
|
|
3058
|
+
*/
|
|
3059
|
+
gmt_create?: string | null;
|
|
2611
3060
|
/**
|
|
2612
|
-
*
|
|
2613
|
-
*
|
|
3061
|
+
* Gmt Modified
|
|
3062
|
+
* update time
|
|
2614
3063
|
*/
|
|
2615
|
-
|
|
3064
|
+
gmt_modified?: string | null;
|
|
2616
3065
|
/**
|
|
2617
|
-
*
|
|
2618
|
-
*
|
|
3066
|
+
* Tagging Id
|
|
3067
|
+
* 标签绑定ID(UUID字符串)
|
|
2619
3068
|
*/
|
|
2620
|
-
|
|
3069
|
+
tagging_id?: string;
|
|
2621
3070
|
/**
|
|
2622
3071
|
* Tenant Id
|
|
2623
3072
|
* 所属租户ID
|
|
2624
3073
|
* @maxLength 64
|
|
2625
3074
|
*/
|
|
2626
3075
|
tenant_id: string;
|
|
2627
|
-
}
|
|
2628
|
-
/** TagCreate */
|
|
2629
|
-
export interface ITagCreate {
|
|
2630
3076
|
/**
|
|
2631
|
-
*
|
|
2632
|
-
*
|
|
3077
|
+
* Tag Id
|
|
3078
|
+
* 标签ID(FK -> tag.tag_id,UUID字符串)
|
|
3079
|
+
*/
|
|
3080
|
+
tag_id: string;
|
|
3081
|
+
/**
|
|
3082
|
+
* Tag Name
|
|
3083
|
+
* 标签名称(在 object_type 内唯一)
|
|
2633
3084
|
* @maxLength 64
|
|
2634
3085
|
*/
|
|
2635
|
-
|
|
3086
|
+
tag_name: string;
|
|
2636
3087
|
/**
|
|
2637
|
-
*
|
|
2638
|
-
*
|
|
3088
|
+
* Object Id
|
|
3089
|
+
* 被打标签对象ID(如 space_id)
|
|
3090
|
+
* @maxLength 255
|
|
2639
3091
|
*/
|
|
2640
|
-
|
|
3092
|
+
object_id: string;
|
|
2641
3093
|
/**
|
|
2642
|
-
*
|
|
3094
|
+
* 对象类型,当前仅支持 "space"
|
|
3095
|
+
* @maxLength 32
|
|
2643
3096
|
* @default "space"
|
|
2644
3097
|
*/
|
|
2645
3098
|
object_type?: ITagObjectType;
|
|
2646
3099
|
}
|
|
2647
|
-
/** TagUpdate */
|
|
2648
|
-
export interface ITagUpdate {
|
|
2649
|
-
/** Tag Id */
|
|
2650
|
-
tag_id: string;
|
|
2651
|
-
/** Name */
|
|
2652
|
-
name?: string | null;
|
|
2653
|
-
/** Description */
|
|
2654
|
-
description?: string | null;
|
|
2655
|
-
}
|
|
2656
3100
|
/** Tagging */
|
|
2657
|
-
export interface
|
|
3101
|
+
export interface ITaggingOutput {
|
|
2658
3102
|
/**
|
|
2659
3103
|
* Gmt Create
|
|
2660
3104
|
* creation time
|
|
2661
3105
|
*/
|
|
2662
|
-
gmt_create?: string;
|
|
3106
|
+
gmt_create?: string | null;
|
|
2663
3107
|
/**
|
|
2664
3108
|
* Gmt Modified
|
|
2665
3109
|
* update time
|
|
2666
3110
|
*/
|
|
2667
|
-
gmt_modified?: string;
|
|
3111
|
+
gmt_modified?: string | null;
|
|
2668
3112
|
/**
|
|
2669
3113
|
* Tagging Id
|
|
2670
3114
|
* 标签绑定ID(UUID字符串)
|
|
@@ -2681,6 +3125,12 @@ export interface ITagging {
|
|
|
2681
3125
|
* 标签ID(FK -> tag.tag_id,UUID字符串)
|
|
2682
3126
|
*/
|
|
2683
3127
|
tag_id: string;
|
|
3128
|
+
/**
|
|
3129
|
+
* Tag Name
|
|
3130
|
+
* 标签名称(在 object_type 内唯一)
|
|
3131
|
+
* @maxLength 64
|
|
3132
|
+
*/
|
|
3133
|
+
tag_name: string;
|
|
2684
3134
|
/**
|
|
2685
3135
|
* Object Id
|
|
2686
3136
|
* 被打标签对象ID(如 space_id)
|
|
@@ -2715,17 +3165,76 @@ export interface ITaggingCreate {
|
|
|
2715
3165
|
object_id: string;
|
|
2716
3166
|
}
|
|
2717
3167
|
/** Task */
|
|
2718
|
-
export interface
|
|
3168
|
+
export interface ITaskInput {
|
|
3169
|
+
/**
|
|
3170
|
+
* Gmt Create
|
|
3171
|
+
* creation time
|
|
3172
|
+
*/
|
|
3173
|
+
gmt_create?: string | null;
|
|
3174
|
+
/**
|
|
3175
|
+
* Gmt Modified
|
|
3176
|
+
* update time
|
|
3177
|
+
*/
|
|
3178
|
+
gmt_modified?: string | null;
|
|
3179
|
+
/**
|
|
3180
|
+
* Task Id
|
|
3181
|
+
* Unique identifier for the task
|
|
3182
|
+
*/
|
|
3183
|
+
task_id?: string;
|
|
3184
|
+
/**
|
|
3185
|
+
* Current status of the task
|
|
3186
|
+
* @default "pending"
|
|
3187
|
+
*/
|
|
3188
|
+
status?: ITaskStatus;
|
|
3189
|
+
/**
|
|
3190
|
+
* Knowledge Id
|
|
3191
|
+
* Identifier for the source file
|
|
3192
|
+
*/
|
|
3193
|
+
knowledge_id: string;
|
|
3194
|
+
/**
|
|
3195
|
+
* Metadata
|
|
3196
|
+
* Metadata for the task
|
|
3197
|
+
*/
|
|
3198
|
+
metadata?: Record<string, any> | null;
|
|
3199
|
+
/**
|
|
3200
|
+
* Error Message
|
|
3201
|
+
* Error message (only present if the task failed)
|
|
3202
|
+
*/
|
|
3203
|
+
error_message?: string | null;
|
|
3204
|
+
/**
|
|
3205
|
+
* Space Id
|
|
3206
|
+
* Identifier for the space
|
|
3207
|
+
*/
|
|
3208
|
+
space_id: string;
|
|
3209
|
+
/**
|
|
3210
|
+
* User Id
|
|
3211
|
+
* Identifier for the user
|
|
3212
|
+
*/
|
|
3213
|
+
user_id?: string | null;
|
|
3214
|
+
/**
|
|
3215
|
+
* Tenant Id
|
|
3216
|
+
* Identifier for the tenant
|
|
3217
|
+
*/
|
|
3218
|
+
tenant_id: string;
|
|
3219
|
+
/**
|
|
3220
|
+
* Task Type
|
|
3221
|
+
* Type of the task
|
|
3222
|
+
* @default "knowledge_chunk"
|
|
3223
|
+
*/
|
|
3224
|
+
task_type?: string;
|
|
3225
|
+
}
|
|
3226
|
+
/** Task */
|
|
3227
|
+
export interface ITaskOutput {
|
|
2719
3228
|
/**
|
|
2720
3229
|
* Gmt Create
|
|
2721
3230
|
* creation time
|
|
2722
3231
|
*/
|
|
2723
|
-
gmt_create?: string;
|
|
3232
|
+
gmt_create?: string | null;
|
|
2724
3233
|
/**
|
|
2725
3234
|
* Gmt Modified
|
|
2726
3235
|
* update time
|
|
2727
3236
|
*/
|
|
2728
|
-
gmt_modified?: string;
|
|
3237
|
+
gmt_modified?: string | null;
|
|
2729
3238
|
/**
|
|
2730
3239
|
* Task Id
|
|
2731
3240
|
* Unique identifier for the task
|
|
@@ -2782,17 +3291,63 @@ export interface ITaskRestartRequest {
|
|
|
2782
3291
|
task_id_list: string[];
|
|
2783
3292
|
}
|
|
2784
3293
|
/** Tenant */
|
|
2785
|
-
export interface
|
|
3294
|
+
export interface ITenantInput {
|
|
3295
|
+
/**
|
|
3296
|
+
* Gmt Create
|
|
3297
|
+
* creation time
|
|
3298
|
+
*/
|
|
3299
|
+
gmt_create?: string | null;
|
|
3300
|
+
/**
|
|
3301
|
+
* Gmt Modified
|
|
3302
|
+
* update time
|
|
3303
|
+
*/
|
|
3304
|
+
gmt_modified?: string | null;
|
|
3305
|
+
/**
|
|
3306
|
+
* Tenant Id
|
|
3307
|
+
* tenant id
|
|
3308
|
+
*/
|
|
3309
|
+
tenant_id?: string;
|
|
3310
|
+
/**
|
|
3311
|
+
* Tenant Name
|
|
3312
|
+
* tenant name
|
|
3313
|
+
* @default ""
|
|
3314
|
+
*/
|
|
3315
|
+
tenant_name?: string;
|
|
3316
|
+
/**
|
|
3317
|
+
* Email
|
|
3318
|
+
* email
|
|
3319
|
+
*/
|
|
3320
|
+
email: string;
|
|
3321
|
+
/**
|
|
3322
|
+
* Secret Key
|
|
3323
|
+
* secret_key
|
|
3324
|
+
* @default ""
|
|
3325
|
+
*/
|
|
3326
|
+
secret_key?: string;
|
|
3327
|
+
/**
|
|
3328
|
+
* Is Active
|
|
3329
|
+
* is active
|
|
3330
|
+
* @default true
|
|
3331
|
+
*/
|
|
3332
|
+
is_active?: boolean;
|
|
3333
|
+
/**
|
|
3334
|
+
* Metadata
|
|
3335
|
+
* Metadata for the tenant
|
|
3336
|
+
*/
|
|
3337
|
+
metadata?: Record<string, any> | null;
|
|
3338
|
+
}
|
|
3339
|
+
/** Tenant */
|
|
3340
|
+
export interface ITenantOutput {
|
|
2786
3341
|
/**
|
|
2787
3342
|
* Gmt Create
|
|
2788
3343
|
* creation time
|
|
2789
3344
|
*/
|
|
2790
|
-
gmt_create?: string;
|
|
3345
|
+
gmt_create?: string | null;
|
|
2791
3346
|
/**
|
|
2792
3347
|
* Gmt Modified
|
|
2793
3348
|
* update time
|
|
2794
3349
|
*/
|
|
2795
|
-
gmt_modified?: string;
|
|
3350
|
+
gmt_modified?: string | null;
|
|
2796
3351
|
/**
|
|
2797
3352
|
* Tenant Id
|
|
2798
3353
|
* tenant id
|
|
@@ -2854,8 +3409,6 @@ export interface ITenantLogQuery {
|
|
|
2854
3409
|
}
|
|
2855
3410
|
/** TenantUpdate */
|
|
2856
3411
|
export interface ITenantUpdate {
|
|
2857
|
-
/** Tenant Id */
|
|
2858
|
-
tenant_id: string;
|
|
2859
3412
|
/** Tenant Name */
|
|
2860
3413
|
tenant_name?: string | null;
|
|
2861
3414
|
/** Email */
|
|
@@ -2893,9 +3446,8 @@ export interface ITextCreate {
|
|
|
2893
3446
|
/**
|
|
2894
3447
|
* Embedding Model Name
|
|
2895
3448
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
2896
|
-
* @default "openai"
|
|
2897
3449
|
*/
|
|
2898
|
-
embedding_model_name
|
|
3450
|
+
embedding_model_name: string;
|
|
2899
3451
|
/**
|
|
2900
3452
|
* File Sha
|
|
2901
3453
|
* SHA of the file
|
|
@@ -2985,6 +3537,27 @@ export interface IValidationError {
|
|
|
2985
3537
|
/** Error Type */
|
|
2986
3538
|
type: string;
|
|
2987
3539
|
}
|
|
3540
|
+
/**
|
|
3541
|
+
* WohuProductSpace
|
|
3542
|
+
* 产品空间响应模型
|
|
3543
|
+
*/
|
|
3544
|
+
export interface IWohuProductSpace {
|
|
3545
|
+
/**
|
|
3546
|
+
* Product Id
|
|
3547
|
+
* 空间ID
|
|
3548
|
+
*/
|
|
3549
|
+
product_id: string;
|
|
3550
|
+
/**
|
|
3551
|
+
* Product Name
|
|
3552
|
+
* 空间名称
|
|
3553
|
+
*/
|
|
3554
|
+
product_name: string;
|
|
3555
|
+
/**
|
|
3556
|
+
* Visit Url
|
|
3557
|
+
* 访问地址
|
|
3558
|
+
*/
|
|
3559
|
+
visit_url: string;
|
|
3560
|
+
}
|
|
2988
3561
|
/** YuqueCreate */
|
|
2989
3562
|
export interface IYuqueCreate {
|
|
2990
3563
|
/**
|
|
@@ -2997,7 +3570,7 @@ export interface IYuqueCreate {
|
|
|
2997
3570
|
* type of knowledge resource
|
|
2998
3571
|
* @default "yuquedoc"
|
|
2999
3572
|
*/
|
|
3000
|
-
knowledge_type?: "yuquedoc"
|
|
3573
|
+
knowledge_type?: "yuquedoc";
|
|
3001
3574
|
/**
|
|
3002
3575
|
* Knowledge Name
|
|
3003
3576
|
* name of the knowledge resource
|
|
@@ -3015,13 +3588,12 @@ export interface IYuqueCreate {
|
|
|
3015
3588
|
* source type
|
|
3016
3589
|
* @default "yuque"
|
|
3017
3590
|
*/
|
|
3018
|
-
source_type?: "yuque";
|
|
3591
|
+
source_type?: "yuque" | "yuque_personal_doc" | "yuque_personal_note";
|
|
3019
3592
|
/**
|
|
3020
3593
|
* Embedding Model Name
|
|
3021
3594
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
3022
|
-
* @default "openai"
|
|
3023
3595
|
*/
|
|
3024
|
-
embedding_model_name
|
|
3596
|
+
embedding_model_name: string;
|
|
3025
3597
|
/**
|
|
3026
3598
|
* File Sha
|
|
3027
3599
|
* SHA of the file
|
|
@@ -3041,19 +3613,45 @@ export interface IYuqueCreate {
|
|
|
3041
3613
|
* Source Config
|
|
3042
3614
|
* source config of the knowledge
|
|
3043
3615
|
*/
|
|
3044
|
-
source_config: IYuqueSourceConfig | IOpenUrlSourceConfig | IOpenIdSourceConfig;
|
|
3616
|
+
source_config: IYuqueSourceConfig | IOpenUrlSourceConfig | IOpenIdSourceConfig | IYuquePersonalDocSourceConfig | IYuquePersonalNoteSourceConfig;
|
|
3045
3617
|
/**
|
|
3046
3618
|
* Split Config
|
|
3047
3619
|
* split config of the knowledge
|
|
3048
3620
|
*/
|
|
3049
3621
|
split_config: IGeaGraphSplitConfig | IYuqueSplitConfig;
|
|
3050
3622
|
}
|
|
3623
|
+
/** YuquePersonalDocSourceConfig */
|
|
3624
|
+
export interface IYuquePersonalDocSourceConfig {
|
|
3625
|
+
/**
|
|
3626
|
+
* Doc Id
|
|
3627
|
+
* the yuque personal doc id
|
|
3628
|
+
*/
|
|
3629
|
+
doc_id: number;
|
|
3630
|
+
/**
|
|
3631
|
+
* Auth Info
|
|
3632
|
+
* authentication information
|
|
3633
|
+
*/
|
|
3634
|
+
auth_info: string;
|
|
3635
|
+
}
|
|
3636
|
+
/** YuquePersonalNoteSourceConfig */
|
|
3637
|
+
export interface IYuquePersonalNoteSourceConfig {
|
|
3638
|
+
/**
|
|
3639
|
+
* Note Id
|
|
3640
|
+
* the yuque personal note id
|
|
3641
|
+
*/
|
|
3642
|
+
note_id: number;
|
|
3643
|
+
/**
|
|
3644
|
+
* Auth Info
|
|
3645
|
+
* authentication information
|
|
3646
|
+
*/
|
|
3647
|
+
auth_info: string;
|
|
3648
|
+
}
|
|
3051
3649
|
/** YuqueSourceConfig */
|
|
3052
3650
|
export interface IYuqueSourceConfig {
|
|
3053
3651
|
/**
|
|
3054
3652
|
* Api Url
|
|
3055
3653
|
* the yuque api url
|
|
3056
|
-
* @default "https://
|
|
3654
|
+
* @default "https://yuque-api.antfin-inc.com"
|
|
3057
3655
|
*/
|
|
3058
3656
|
api_url?: string;
|
|
3059
3657
|
/**
|
|
@@ -3181,9 +3779,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3181
3779
|
* @request GET:/
|
|
3182
3780
|
*/
|
|
3183
3781
|
homePageGet: (params?: RequestParams) => Promise<HttpResponse<any, any>>;
|
|
3782
|
+
user: {
|
|
3783
|
+
/**
|
|
3784
|
+
* @description 根据登录账号查询用户有权限的产品空间列表 Args: login_account: 用户登录账号 Returns: 用户有权限的产品空间列表
|
|
3785
|
+
*
|
|
3786
|
+
* @tags user
|
|
3787
|
+
* @name GetUserProductSpaces
|
|
3788
|
+
* @summary Get User Product Spaces
|
|
3789
|
+
* @request GET:/api/user/product-spaces
|
|
3790
|
+
*/
|
|
3791
|
+
getUserProductSpaces: (query: {
|
|
3792
|
+
/**
|
|
3793
|
+
* Login Account
|
|
3794
|
+
* 用户登录账号
|
|
3795
|
+
*/
|
|
3796
|
+
login_account: string;
|
|
3797
|
+
}, params?: RequestParams) => Promise<HttpResponse<IResponseModelListWohuProductSpace, void | IHTTPValidationError>>;
|
|
3798
|
+
};
|
|
3184
3799
|
knowledge: {
|
|
3185
3800
|
/**
|
|
3186
|
-
* @description
|
|
3801
|
+
* @description 添加知识 使用DDD架构创建新的知识,禁止重复的file_sha条目。 通过TaskCoordinationService统一协调知识创建和任务执行,确保事务一致性。
|
|
3187
3802
|
*
|
|
3188
3803
|
* @tags knowledge
|
|
3189
3804
|
* @name AddKnowledge
|
|
@@ -3192,7 +3807,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3192
3807
|
*/
|
|
3193
3808
|
addKnowledge: (data: (ITextCreate | IImageCreate | IJSONCreate | IMarkdownCreate | IPDFCreate | IGithubRepoCreate | IQACreate | IYuqueCreate)[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListKnowledge, void | IHTTPValidationError>>;
|
|
3194
3809
|
/**
|
|
3195
|
-
*
|
|
3810
|
+
* @description 更新知识 使用DDD架构更新知识信息,支持元数据和状态更新。
|
|
3196
3811
|
*
|
|
3197
3812
|
* @tags knowledge
|
|
3198
3813
|
* @name UpdateKnowledge
|
|
@@ -3201,7 +3816,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3201
3816
|
*/
|
|
3202
3817
|
updateKnowledge: (data: IKnowledgeInput, params?: RequestParams) => Promise<HttpResponse<IResponseModelKnowledge, void | IHTTPValidationError>>;
|
|
3203
3818
|
/**
|
|
3204
|
-
*
|
|
3819
|
+
* @description 更新知识启用状态 使用DDD架构更新知识的启用状态。
|
|
3205
3820
|
*
|
|
3206
3821
|
* @tags knowledge
|
|
3207
3822
|
* @name UpdateKnowledgeEnableStatus
|
|
@@ -3210,7 +3825,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3210
3825
|
*/
|
|
3211
3826
|
updateKnowledgeEnableStatus: (data: IEnableStatusUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3212
3827
|
/**
|
|
3213
|
-
*
|
|
3828
|
+
* @description 获取知识列表 使用DDD架构的KnowledgeService进行分页查询,支持条件过滤和排序。
|
|
3214
3829
|
*
|
|
3215
3830
|
* @tags knowledge
|
|
3216
3831
|
* @name GetKnowledgeList
|
|
@@ -3219,7 +3834,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3219
3834
|
*/
|
|
3220
3835
|
getKnowledgeList: (data: IPageQueryParamsKnowledge, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseKnowledge, void | IHTTPValidationError>>;
|
|
3221
3836
|
/**
|
|
3222
|
-
*
|
|
3837
|
+
* @description 根据ID获取知识详情 使用DDD架构获取知识详细信息。
|
|
3223
3838
|
*
|
|
3224
3839
|
* @tags knowledge
|
|
3225
3840
|
* @name GetKnowledgeById
|
|
@@ -3231,7 +3846,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3231
3846
|
knowledge_id: string;
|
|
3232
3847
|
}, params?: RequestParams) => Promise<HttpResponse<IResponseModelKnowledge, void | IHTTPValidationError>>;
|
|
3233
3848
|
/**
|
|
3234
|
-
* @description
|
|
3849
|
+
* @description 删除知识 包括级联删除相关的任务和向量数据。
|
|
3235
3850
|
*
|
|
3236
3851
|
* @tags knowledge
|
|
3237
3852
|
* @name DeleteKnowledge
|
|
@@ -3252,14 +3867,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3252
3867
|
*/
|
|
3253
3868
|
getEmbeddingModelsList: (params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
|
|
3254
3869
|
/**
|
|
3255
|
-
* @description
|
|
3870
|
+
* @description 根据wohu知识库ID(space_id)和素材ID列表(knowledge_name)批量查询知识 支持最多114个素材ID的批量查询 素材ID对应knowledge_name字段 Args: body.space_id: wohu知识库ID body.knowledge_names: 素材ID列表(knowledge_name) Returns: 符合条件的知识列表
|
|
3256
3871
|
*
|
|
3257
3872
|
* @tags knowledge
|
|
3258
|
-
* @name
|
|
3259
|
-
* @summary
|
|
3260
|
-
* @request POST:/api/knowledge/
|
|
3873
|
+
* @name BatchQueryKnowledgeByNames
|
|
3874
|
+
* @summary Batch Query Knowledge By Names
|
|
3875
|
+
* @request POST:/api/knowledge/batch_query_by_names
|
|
3261
3876
|
*/
|
|
3262
|
-
|
|
3877
|
+
batchQueryKnowledgeByNames: (data: IBatchQueryRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListKnowledge, void | IHTTPValidationError>>;
|
|
3263
3878
|
};
|
|
3264
3879
|
retrieval: {
|
|
3265
3880
|
/**
|
|
@@ -3272,7 +3887,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3272
3887
|
*/
|
|
3273
3888
|
retrieveKnowledgeContent: (data: IRetrievalByKnowledgeRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
|
|
3274
3889
|
/**
|
|
3275
|
-
* @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id.
|
|
3890
|
+
* @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id. 使用DDD架构的RetrievalService进行空间检索。
|
|
3276
3891
|
*
|
|
3277
3892
|
* @tags retrieval
|
|
3278
3893
|
* @name RetrieveSpaceContent
|
|
@@ -3289,10 +3904,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3289
3904
|
* @request POST:/api/retrieval/
|
|
3290
3905
|
*/
|
|
3291
3906
|
retrieve: (data: IRetrievalRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
|
|
3907
|
+
/**
|
|
3908
|
+
* @description 因为 antvis 要对公网开放相关信息,故提供本单独接口
|
|
3909
|
+
*
|
|
3910
|
+
* @tags retrieval
|
|
3911
|
+
* @name AntvisRetrieve
|
|
3912
|
+
* @summary Context7 Antvis Retrieve
|
|
3913
|
+
* @request POST:/api/retrieval/context7/antvis
|
|
3914
|
+
*/
|
|
3915
|
+
antvisRetrieve: (data: IRetrievalRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
|
|
3292
3916
|
};
|
|
3293
3917
|
task: {
|
|
3294
3918
|
/**
|
|
3295
|
-
*
|
|
3919
|
+
* @description 重启任务 使用DDD架构的TaskCoordinationService进行任务重启并执行。 重试规则: 1. FAILED 或 CANCELED 状态的任务可以重试 2. 创建时间超过30分钟且未成功的任务可以重试
|
|
3296
3920
|
*
|
|
3297
3921
|
* @tags task
|
|
3298
3922
|
* @name RestartTask
|
|
@@ -3301,7 +3925,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3301
3925
|
*/
|
|
3302
3926
|
restartTask: (data: ITaskRestartRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListTask, void | IHTTPValidationError>>;
|
|
3303
3927
|
/**
|
|
3304
|
-
*
|
|
3928
|
+
* @description 取消任务 使用DDD架构的TaskService进行任务取消。
|
|
3305
3929
|
*
|
|
3306
3930
|
* @tags task
|
|
3307
3931
|
* @name CancelTask
|
|
@@ -3310,7 +3934,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3310
3934
|
*/
|
|
3311
3935
|
cancelTask: (data: ITaskRestartRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListTask, void | IHTTPValidationError>>;
|
|
3312
3936
|
/**
|
|
3313
|
-
*
|
|
3937
|
+
* @description 获取任务列表 使用DDD架构的TaskService进行分页查询。
|
|
3314
3938
|
*
|
|
3315
3939
|
* @tags task
|
|
3316
3940
|
* @name GetTaskList
|
|
@@ -3319,7 +3943,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3319
3943
|
*/
|
|
3320
3944
|
getTaskList: (data: IPageQueryParamsTask, params?: RequestParams) => Promise<HttpResponse<IResponseModelStatusStatisticsPageResponseTask, void | IHTTPValidationError>>;
|
|
3321
3945
|
/**
|
|
3322
|
-
*
|
|
3946
|
+
* @description 获取任务详情 使用DDD架构的TaskService获取任务详情。
|
|
3323
3947
|
*
|
|
3324
3948
|
* @tags task
|
|
3325
3949
|
* @name GetTaskDetail
|
|
@@ -3331,7 +3955,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3331
3955
|
task_id: string;
|
|
3332
3956
|
}, params?: RequestParams) => Promise<HttpResponse<IResponseModelTask, void | IHTTPValidationError>>;
|
|
3333
3957
|
/**
|
|
3334
|
-
*
|
|
3958
|
+
* @description 删除任务 使用DDD架构的TaskService进行任务删除。
|
|
3335
3959
|
*
|
|
3336
3960
|
* @tags task
|
|
3337
3961
|
* @name DeleteTaskById
|
|
@@ -3345,7 +3969,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3345
3969
|
};
|
|
3346
3970
|
chunk: {
|
|
3347
3971
|
/**
|
|
3348
|
-
*
|
|
3972
|
+
* @description 获取Chunk列表
|
|
3349
3973
|
*
|
|
3350
3974
|
* @tags chunk
|
|
3351
3975
|
* @name GetChunkList
|
|
@@ -3354,7 +3978,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3354
3978
|
*/
|
|
3355
3979
|
getChunkList: (data: IPageQueryParamsChunk, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseChunk, void | IHTTPValidationError>>;
|
|
3356
3980
|
/**
|
|
3357
|
-
*
|
|
3981
|
+
* @description 根据ID删除Chunk 使用DDD架构删除指定的Chunk。
|
|
3358
3982
|
*
|
|
3359
3983
|
* @tags chunk
|
|
3360
3984
|
* @name DeleteChunkById
|
|
@@ -3363,7 +3987,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3363
3987
|
*/
|
|
3364
3988
|
deleteChunkById: (id: string, modelName: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelObject, void | IHTTPValidationError>>;
|
|
3365
3989
|
/**
|
|
3366
|
-
*
|
|
3990
|
+
* @description 根据ID获取Chunk 使用DDD架构获取指定的Chunk详情。
|
|
3367
3991
|
*
|
|
3368
3992
|
* @tags chunk
|
|
3369
3993
|
* @name GetChunkById
|
|
@@ -3372,7 +3996,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3372
3996
|
*/
|
|
3373
3997
|
getChunkById: (id: string, modelName: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelChunk, void | IHTTPValidationError>>;
|
|
3374
3998
|
/**
|
|
3375
|
-
*
|
|
3999
|
+
* @description 添加Chunk 使用DDD架构创建新的Chunk。
|
|
3376
4000
|
*
|
|
3377
4001
|
* @tags chunk
|
|
3378
4002
|
* @name AddChunk
|
|
@@ -3381,7 +4005,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3381
4005
|
*/
|
|
3382
4006
|
addChunk: (data: IChunkSave, params?: RequestParams) => Promise<HttpResponse<IResponseModelChunk, void | IHTTPValidationError>>;
|
|
3383
4007
|
/**
|
|
3384
|
-
*
|
|
4008
|
+
* @description 更新Chunk 使用DDD架构更新指定的Chunk。
|
|
3385
4009
|
*
|
|
3386
4010
|
* @tags chunk
|
|
3387
4011
|
* @name UpdateChunk
|
|
@@ -3392,7 +4016,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3392
4016
|
};
|
|
3393
4017
|
tenant: {
|
|
3394
4018
|
/**
|
|
3395
|
-
*
|
|
4019
|
+
* @description 创建租户
|
|
3396
4020
|
*
|
|
3397
4021
|
* @tags tenant
|
|
3398
4022
|
* @name CreateTenant
|
|
@@ -3401,7 +4025,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3401
4025
|
*/
|
|
3402
4026
|
createTenant: (data: ITenantCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
|
|
3403
4027
|
/**
|
|
3404
|
-
*
|
|
4028
|
+
* @description 根据ID查询租户
|
|
3405
4029
|
*
|
|
3406
4030
|
* @tags tenant
|
|
3407
4031
|
* @name GetTenantById
|
|
@@ -3410,7 +4034,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3410
4034
|
*/
|
|
3411
4035
|
getTenantById: (id: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
|
|
3412
4036
|
/**
|
|
3413
|
-
*
|
|
4037
|
+
* @description 删除租户
|
|
3414
4038
|
*
|
|
3415
4039
|
* @tags tenant
|
|
3416
4040
|
* @name DeleteTenantById
|
|
@@ -3419,7 +4043,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3419
4043
|
*/
|
|
3420
4044
|
deleteTenantById: (id: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelObject, void | IHTTPValidationError>>;
|
|
3421
4045
|
/**
|
|
3422
|
-
*
|
|
4046
|
+
* @description 更新租户
|
|
3423
4047
|
*
|
|
3424
4048
|
* @tags tenant
|
|
3425
4049
|
* @name UpdateTenant
|
|
@@ -3428,7 +4052,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3428
4052
|
*/
|
|
3429
4053
|
updateTenant: (data: ITenantUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
|
|
3430
4054
|
/**
|
|
3431
|
-
*
|
|
4055
|
+
* @description 获取租户列表
|
|
3432
4056
|
*
|
|
3433
4057
|
* @tags tenant
|
|
3434
4058
|
* @name GetTenantList
|
|
@@ -3448,18 +4072,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3448
4072
|
page_size?: number;
|
|
3449
4073
|
}, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseTenant, void | IHTTPValidationError>>;
|
|
3450
4074
|
/**
|
|
3451
|
-
*
|
|
4075
|
+
* @description 获取当前租户信息 直接返回认证系统中的租户信息。 get_tenant_with_permissions 已经包含了完整的认证和权限检查。
|
|
3452
4076
|
*
|
|
3453
4077
|
* @tags tenant
|
|
3454
4078
|
* @name GetTenant
|
|
3455
4079
|
* @summary Get Tenant
|
|
3456
4080
|
* @request GET:/api/tenant/me
|
|
3457
4081
|
*/
|
|
3458
|
-
getTenant: (params?: RequestParams) => Promise<HttpResponse<
|
|
4082
|
+
getTenant: (params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
|
|
3459
4083
|
};
|
|
3460
4084
|
space: {
|
|
3461
4085
|
/**
|
|
3462
|
-
*
|
|
4086
|
+
* @description 获取空间列表 使用DDD架构的SpaceService进行分页查询,支持条件过滤和排序。
|
|
3463
4087
|
*
|
|
3464
4088
|
* @tags space
|
|
3465
4089
|
* @name GetSpaceList
|
|
@@ -3468,7 +4092,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3468
4092
|
*/
|
|
3469
4093
|
getSpaceList: (data: IPageQueryParamsSpace, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseSpaceResponse, void | IHTTPValidationError>>;
|
|
3470
4094
|
/**
|
|
3471
|
-
*
|
|
4095
|
+
* @description 创建空间,使用DDD架构创建新的空间,支持KIS集成和元数据配置。
|
|
3472
4096
|
*
|
|
3473
4097
|
* @tags space
|
|
3474
4098
|
* @name AddSpace
|
|
@@ -3477,7 +4101,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3477
4101
|
*/
|
|
3478
4102
|
addSpace: (data: ISpaceCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelSpaceResponse, void | IHTTPValidationError>>;
|
|
3479
4103
|
/**
|
|
3480
|
-
*
|
|
4104
|
+
* @description 删除空间,包括级联删除相关的知识、任务和向量数据。
|
|
3481
4105
|
*
|
|
3482
4106
|
* @tags space
|
|
3483
4107
|
* @name DeleteSpace
|
|
@@ -3486,7 +4110,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3486
4110
|
*/
|
|
3487
4111
|
deleteSpace: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3488
4112
|
/**
|
|
3489
|
-
*
|
|
4113
|
+
* @description 更新空间 使用DDD架构更新空间信息,支持KIS集成配置更新。
|
|
3490
4114
|
*
|
|
3491
4115
|
* @tags space
|
|
3492
4116
|
* @name UpdateSpace
|
|
@@ -3495,7 +4119,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3495
4119
|
*/
|
|
3496
4120
|
updateSpace: (spaceId: string, data: ISpaceCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelSpaceResponse, void | IHTTPValidationError>>;
|
|
3497
4121
|
/**
|
|
3498
|
-
*
|
|
4122
|
+
* @description 根据ID获取空间详情 使用DDD架构获取空间详细信息,包括统计数据。
|
|
3499
4123
|
*
|
|
3500
4124
|
* @tags space
|
|
3501
4125
|
* @name GetSpaceById
|
|
@@ -3506,7 +4130,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3506
4130
|
};
|
|
3507
4131
|
v1: {
|
|
3508
4132
|
/**
|
|
3509
|
-
*
|
|
4133
|
+
* @description 获取系统全局统计信息 使用DDD架构的DashboardService获取系统级别的统计数据。
|
|
3510
4134
|
*
|
|
3511
4135
|
* @tags dashboard
|
|
3512
4136
|
* @name GetGlobalInfo
|
|
@@ -3515,23 +4139,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3515
4139
|
*/
|
|
3516
4140
|
getGlobalInfo: (params?: RequestParams) => Promise<HttpResponse<IResponseModelGlobalInfo, void>>;
|
|
3517
4141
|
/**
|
|
3518
|
-
*
|
|
4142
|
+
* @description 获取租户日志 使用DDD架构的DashboardService获取租户级别的日志数据。 注意:改为POST方法以支持复杂的查询参数。
|
|
3519
4143
|
*
|
|
3520
4144
|
* @tags dashboard
|
|
3521
4145
|
* @name GetTenantLog
|
|
3522
4146
|
* @summary Get Tenant Log
|
|
3523
|
-
* @request
|
|
4147
|
+
* @request POST:/api/v1/dashboard/tenant_log
|
|
3524
4148
|
*/
|
|
3525
4149
|
getTenantLog: (data: ITenantLogQuery, params?: RequestParams) => Promise<HttpResponse<IResponseModelListTenantLog, void | IHTTPValidationError>>;
|
|
3526
|
-
/**
|
|
3527
|
-
* No description
|
|
3528
|
-
*
|
|
3529
|
-
* @tags agent
|
|
3530
|
-
* @name ProResearchApiV1AgentProResearchPost
|
|
3531
|
-
* @summary Pro Research
|
|
3532
|
-
* @request POST:/api/v1/agent/pro_research
|
|
3533
|
-
*/
|
|
3534
|
-
proResearchApiV1AgentProResearchPost: (data: IProResearchRequest, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
|
|
3535
4150
|
/**
|
|
3536
4151
|
* @description whisker 通用 webhook
|
|
3537
4152
|
*
|
|
@@ -3542,7 +4157,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3542
4157
|
*/
|
|
3543
4158
|
handleWebhookApiV1WebhookWebhookTypeSourceAuthInfoKnowledgeBaseIdPost: (webhookType: string, source: string, authInfo: string, knowledgeBaseId: string, data: Record<string, any>, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
|
|
3544
4159
|
/**
|
|
3545
|
-
*
|
|
4160
|
+
* @description 分页获取标签关联列表 使用DDD架构的TaggingService进行分页查询。
|
|
3546
4161
|
*
|
|
3547
4162
|
* @tags tagging
|
|
3548
4163
|
* @name GetTaggingList
|
|
@@ -3551,7 +4166,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3551
4166
|
*/
|
|
3552
4167
|
getTaggingList: (data: IPageQueryParamsTagging, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseTagging, void | IHTTPValidationError>>;
|
|
3553
4168
|
/**
|
|
3554
|
-
*
|
|
4169
|
+
* @description 批量新增标签关联 使用DDD架构创建新的标签关联列表。
|
|
3555
4170
|
*
|
|
3556
4171
|
* @tags tagging
|
|
3557
4172
|
* @name AddTaggingList
|
|
@@ -3560,7 +4175,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3560
4175
|
*/
|
|
3561
4176
|
addTaggingList: (data: ITaggingCreate[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListTagging, void | IHTTPValidationError>>;
|
|
3562
4177
|
/**
|
|
3563
|
-
*
|
|
4178
|
+
* @description 删除标签关联 使用DDD架构删除标签关联记录。
|
|
3564
4179
|
*
|
|
3565
4180
|
* @tags tagging
|
|
3566
4181
|
* @name DeleteTaggingById
|
|
@@ -3578,7 +4193,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3578
4193
|
*/
|
|
3579
4194
|
getTagList: (data: IPageQueryParamsTag, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseTag, void | IHTTPValidationError>>;
|
|
3580
4195
|
/**
|
|
3581
|
-
* @description 批量新增标签
|
|
4196
|
+
* @description 批量新增标签
|
|
3582
4197
|
*
|
|
3583
4198
|
* @tags tag
|
|
3584
4199
|
* @name AddTagList
|
|
@@ -3596,7 +4211,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3596
4211
|
*/
|
|
3597
4212
|
getTagById: (tagId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelTag, void | IHTTPValidationError>>;
|
|
3598
4213
|
/**
|
|
3599
|
-
*
|
|
4214
|
+
* @description 删除标签
|
|
3600
4215
|
*
|
|
3601
4216
|
* @tags tag
|
|
3602
4217
|
* @name DeleteTagById
|
|
@@ -3605,7 +4220,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3605
4220
|
*/
|
|
3606
4221
|
deleteTagById: (tagId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3607
4222
|
/**
|
|
3608
|
-
*
|
|
4223
|
+
* @description 更新标签
|
|
3609
4224
|
*
|
|
3610
4225
|
* @tags tag
|
|
3611
4226
|
* @name UpdateTag
|
|
@@ -3614,7 +4229,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3614
4229
|
*/
|
|
3615
4230
|
updateTag: (data: ITagUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelTag, void | IHTTPValidationError>>;
|
|
3616
4231
|
/**
|
|
3617
|
-
*
|
|
4232
|
+
* @description 分页获取工件列表 使用DDD架构的ArtifactService进行分页查询。
|
|
3618
4233
|
*
|
|
3619
4234
|
* @tags artifact
|
|
3620
4235
|
* @name GetArtifactList
|
|
@@ -3623,7 +4238,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3623
4238
|
*/
|
|
3624
4239
|
getArtifactList: (data: IPageQueryParamsArtifactIndex, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseArtifactIndex, void | IHTTPValidationError>>;
|
|
3625
4240
|
/**
|
|
3626
|
-
*
|
|
4241
|
+
* @description 批量新增工件 使用DDD架构创建新的工件列表。
|
|
3627
4242
|
*
|
|
3628
4243
|
* @tags artifact
|
|
3629
4244
|
* @name AddArtifactList
|
|
@@ -3632,7 +4247,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3632
4247
|
*/
|
|
3633
4248
|
addArtifactList: (data: IArtifactIndexCreate[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListArtifactIndex, void | IHTTPValidationError>>;
|
|
3634
4249
|
/**
|
|
3635
|
-
*
|
|
4250
|
+
* @description 获取工件详情 使用DDD架构获取工件详细信息。
|
|
3636
4251
|
*
|
|
3637
4252
|
* @tags artifact
|
|
3638
4253
|
* @name GetArtifactById
|
|
@@ -3641,7 +4256,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3641
4256
|
*/
|
|
3642
4257
|
getArtifactById: (artifactId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelArtifactIndex, void | IHTTPValidationError>>;
|
|
3643
4258
|
/**
|
|
3644
|
-
*
|
|
4259
|
+
* @description 删除工件 使用DDD架构删除工件记录。
|
|
3645
4260
|
*
|
|
3646
4261
|
* @tags artifact
|
|
3647
4262
|
* @name DeleteArtifactById
|
|
@@ -3650,18 +4265,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3650
4265
|
*/
|
|
3651
4266
|
deleteArtifactById: (artifactId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3652
4267
|
/**
|
|
3653
|
-
*
|
|
4268
|
+
* @description 更新工件空间绑定 使用DDD架构更新工件的空间关联。
|
|
3654
4269
|
*
|
|
3655
4270
|
* @tags artifact
|
|
3656
4271
|
* @name UpdateArtifactSpaceId
|
|
3657
4272
|
* @summary Update Artifact Space Id
|
|
3658
|
-
* @request POST:/api/v1/artifact/
|
|
4273
|
+
* @request POST:/api/v1/artifact/update/space_id
|
|
3659
4274
|
*/
|
|
3660
4275
|
updateArtifactSpaceId: (data: IArtifactSpaceUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelArtifactIndex, void | IHTTPValidationError>>;
|
|
3661
4276
|
};
|
|
3662
4277
|
rule: {
|
|
3663
4278
|
/**
|
|
3664
|
-
*
|
|
4279
|
+
* @description 获取租户全局规则 使用DDD架构的RuleService获取租户级别的规则配置。
|
|
3665
4280
|
*
|
|
3666
4281
|
* @tags rule
|
|
3667
4282
|
* @name GetGlobalRule
|
|
@@ -3670,7 +4285,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3670
4285
|
*/
|
|
3671
4286
|
getGlobalRule: (params?: RequestParams) => Promise<HttpResponse<IResponseModelStr, void | IHTTPValidationError>>;
|
|
3672
4287
|
/**
|
|
3673
|
-
*
|
|
4288
|
+
* @description 获取空间规则 使用DDD架构的RuleService获取空间级别的规则配置。
|
|
3674
4289
|
*
|
|
3675
4290
|
* @tags rule
|
|
3676
4291
|
* @name GetSpaceRule
|
|
@@ -3681,7 +4296,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3681
4296
|
};
|
|
3682
4297
|
apiKey: {
|
|
3683
4298
|
/**
|
|
3684
|
-
*
|
|
4299
|
+
* @description 创建API Key
|
|
3685
4300
|
*
|
|
3686
4301
|
* @tags api key
|
|
3687
4302
|
* @name CreateApiKey
|
|
@@ -3690,7 +4305,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3690
4305
|
*/
|
|
3691
4306
|
createApiKey: (data: IAPIKeyCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelAPIKey, void | IHTTPValidationError>>;
|
|
3692
4307
|
/**
|
|
3693
|
-
*
|
|
4308
|
+
* @description 更新API Key
|
|
3694
4309
|
*
|
|
3695
4310
|
* @tags api key
|
|
3696
4311
|
* @name UpdateApiKey
|
|
@@ -3699,7 +4314,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3699
4314
|
*/
|
|
3700
4315
|
updateApiKey: (data: IAPIKeyUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelAPIKey, void | IHTTPValidationError>>;
|
|
3701
4316
|
/**
|
|
3702
|
-
*
|
|
4317
|
+
* @description 获取API Key列表
|
|
3703
4318
|
*
|
|
3704
4319
|
* @tags api key
|
|
3705
4320
|
* @name GetApiKeyList
|
|
@@ -3708,7 +4323,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3708
4323
|
*/
|
|
3709
4324
|
getApiKeyList: (data: IPageQueryParamsAPIKey, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseAPIKey, void | IHTTPValidationError>>;
|
|
3710
4325
|
/**
|
|
3711
|
-
*
|
|
4326
|
+
* @description 删除API Key
|
|
3712
4327
|
*
|
|
3713
4328
|
* @tags api key
|
|
3714
4329
|
* @name DeleteApiKey
|
|
@@ -3717,7 +4332,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3717
4332
|
*/
|
|
3718
4333
|
deleteApiKey: (keyId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3719
4334
|
/**
|
|
3720
|
-
*
|
|
4335
|
+
* @description 更改API Key激活状态
|
|
3721
4336
|
*
|
|
3722
4337
|
* @tags api key
|
|
3723
4338
|
* @name DeactivateApiKey
|
|
@@ -3726,7 +4341,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3726
4341
|
*/
|
|
3727
4342
|
deactivateApiKey: (keyId: string, data: IActiveStatusUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3728
4343
|
/**
|
|
3729
|
-
*
|
|
4344
|
+
* @description 获取所有过期的API Key
|
|
3730
4345
|
*
|
|
3731
4346
|
* @tags api key
|
|
3732
4347
|
* @name GetAllExpiredApiKeys
|
|
@@ -3735,6 +4350,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3735
4350
|
*/
|
|
3736
4351
|
getAllExpiredApiKeys: (params?: RequestParams) => Promise<HttpResponse<IResponseModelListAPIKey, void | IHTTPValidationError>>;
|
|
3737
4352
|
};
|
|
4353
|
+
yuque: {
|
|
4354
|
+
/**
|
|
4355
|
+
* @description 代理语雀文档API,解决CORS问题 Args: doc_id: 语雀文档ID x_auth_token: 语雀OAuth Token (从请求头获取) Returns: 语雀文档详情
|
|
4356
|
+
*
|
|
4357
|
+
* @tags yuque
|
|
4358
|
+
* @name ProxyYuqueGetDoc
|
|
4359
|
+
* @summary Proxy Yuque Get Doc
|
|
4360
|
+
* @request GET:/api/yuque/repos/docs/{doc_id}
|
|
4361
|
+
*/
|
|
4362
|
+
proxyYuqueGetDoc: (docId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelAny, void | IHTTPValidationError>>;
|
|
4363
|
+
};
|
|
3738
4364
|
healthChecker: {
|
|
3739
4365
|
/**
|
|
3740
4366
|
* No description
|