@petercatai/whisker-client 0.1.202509030458 → 0.1.202511191614
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 +1005 -382
- 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
|
|
@@ -1748,9 +1804,22 @@ export interface IPageQueryParamsTask {
|
|
|
1748
1804
|
page_size?: number;
|
|
1749
1805
|
}
|
|
1750
1806
|
/** PageResponse[APIKey] */
|
|
1751
|
-
export interface
|
|
1807
|
+
export interface IPageResponseAPIKeyInput {
|
|
1752
1808
|
/** Items */
|
|
1753
|
-
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[];
|
|
1754
1823
|
/** Total */
|
|
1755
1824
|
total: number;
|
|
1756
1825
|
/** Page */
|
|
@@ -1761,9 +1830,35 @@ export interface IPageResponseAPIKey {
|
|
|
1761
1830
|
total_pages: number;
|
|
1762
1831
|
}
|
|
1763
1832
|
/** PageResponse[ArtifactIndex] */
|
|
1764
|
-
export interface
|
|
1833
|
+
export interface IPageResponseArtifactIndexInput {
|
|
1765
1834
|
/** Items */
|
|
1766
|
-
items:
|
|
1835
|
+
items: IArtifactIndexInput[];
|
|
1836
|
+
/** Total */
|
|
1837
|
+
total: number;
|
|
1838
|
+
/** Page */
|
|
1839
|
+
page: number;
|
|
1840
|
+
/** Page Size */
|
|
1841
|
+
page_size: number;
|
|
1842
|
+
/** Total Pages */
|
|
1843
|
+
total_pages: number;
|
|
1844
|
+
}
|
|
1845
|
+
/** PageResponse[ArtifactIndex] */
|
|
1846
|
+
export interface IPageResponseArtifactIndexOutput {
|
|
1847
|
+
/** Items */
|
|
1848
|
+
items: IArtifactIndexOutput[];
|
|
1849
|
+
/** Total */
|
|
1850
|
+
total: number;
|
|
1851
|
+
/** Page */
|
|
1852
|
+
page: number;
|
|
1853
|
+
/** Page Size */
|
|
1854
|
+
page_size: number;
|
|
1855
|
+
/** Total Pages */
|
|
1856
|
+
total_pages: number;
|
|
1857
|
+
}
|
|
1858
|
+
/** PageResponse[Chunk] */
|
|
1859
|
+
export interface IPageResponseChunkInput {
|
|
1860
|
+
/** Items */
|
|
1861
|
+
items: IChunkInput[];
|
|
1767
1862
|
/** Total */
|
|
1768
1863
|
total: number;
|
|
1769
1864
|
/** Page */
|
|
@@ -1774,9 +1869,9 @@ export interface IPageResponseArtifactIndex {
|
|
|
1774
1869
|
total_pages: number;
|
|
1775
1870
|
}
|
|
1776
1871
|
/** PageResponse[Chunk] */
|
|
1777
|
-
export interface
|
|
1872
|
+
export interface IPageResponseChunkOutput {
|
|
1778
1873
|
/** Items */
|
|
1779
|
-
items:
|
|
1874
|
+
items: IChunkOutput[];
|
|
1780
1875
|
/** Total */
|
|
1781
1876
|
total: number;
|
|
1782
1877
|
/** Page */
|
|
@@ -1787,7 +1882,20 @@ export interface IPageResponseChunk {
|
|
|
1787
1882
|
total_pages: number;
|
|
1788
1883
|
}
|
|
1789
1884
|
/** PageResponse[Knowledge] */
|
|
1790
|
-
export interface
|
|
1885
|
+
export interface IPageResponseKnowledgeInput {
|
|
1886
|
+
/** Items */
|
|
1887
|
+
items: IKnowledgeInput[];
|
|
1888
|
+
/** Total */
|
|
1889
|
+
total: number;
|
|
1890
|
+
/** Page */
|
|
1891
|
+
page: number;
|
|
1892
|
+
/** Page Size */
|
|
1893
|
+
page_size: number;
|
|
1894
|
+
/** Total Pages */
|
|
1895
|
+
total_pages: number;
|
|
1896
|
+
}
|
|
1897
|
+
/** PageResponse[Knowledge] */
|
|
1898
|
+
export interface IPageResponseKnowledgeOutput {
|
|
1791
1899
|
/** Items */
|
|
1792
1900
|
items: IKnowledgeOutput[];
|
|
1793
1901
|
/** Total */
|
|
@@ -1800,9 +1908,35 @@ export interface IPageResponseKnowledge {
|
|
|
1800
1908
|
total_pages: number;
|
|
1801
1909
|
}
|
|
1802
1910
|
/** PageResponse[SpaceResponse] */
|
|
1803
|
-
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 {
|
|
1925
|
+
/** Items */
|
|
1926
|
+
items: ISpaceResponseOutput[];
|
|
1927
|
+
/** Total */
|
|
1928
|
+
total: number;
|
|
1929
|
+
/** Page */
|
|
1930
|
+
page: number;
|
|
1931
|
+
/** Page Size */
|
|
1932
|
+
page_size: number;
|
|
1933
|
+
/** Total Pages */
|
|
1934
|
+
total_pages: number;
|
|
1935
|
+
}
|
|
1936
|
+
/** PageResponse[Tag] */
|
|
1937
|
+
export interface IPageResponseTagInput {
|
|
1804
1938
|
/** Items */
|
|
1805
|
-
items:
|
|
1939
|
+
items: ITagInput[];
|
|
1806
1940
|
/** Total */
|
|
1807
1941
|
total: number;
|
|
1808
1942
|
/** Page */
|
|
@@ -1813,9 +1947,22 @@ export interface IPageResponseSpaceResponse {
|
|
|
1813
1947
|
total_pages: number;
|
|
1814
1948
|
}
|
|
1815
1949
|
/** PageResponse[Tag] */
|
|
1816
|
-
export interface
|
|
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 {
|
|
1817
1964
|
/** Items */
|
|
1818
|
-
items:
|
|
1965
|
+
items: ITaggingInput[];
|
|
1819
1966
|
/** Total */
|
|
1820
1967
|
total: number;
|
|
1821
1968
|
/** Page */
|
|
@@ -1826,9 +1973,22 @@ export interface IPageResponseTag {
|
|
|
1826
1973
|
total_pages: number;
|
|
1827
1974
|
}
|
|
1828
1975
|
/** PageResponse[Tagging] */
|
|
1829
|
-
export interface
|
|
1976
|
+
export interface IPageResponseTaggingOutput {
|
|
1977
|
+
/** Items */
|
|
1978
|
+
items: ITaggingOutput[];
|
|
1979
|
+
/** Total */
|
|
1980
|
+
total: number;
|
|
1981
|
+
/** Page */
|
|
1982
|
+
page: number;
|
|
1983
|
+
/** Page Size */
|
|
1984
|
+
page_size: number;
|
|
1985
|
+
/** Total Pages */
|
|
1986
|
+
total_pages: number;
|
|
1987
|
+
}
|
|
1988
|
+
/** PageResponse[Tenant] */
|
|
1989
|
+
export interface IPageResponseTenantInput {
|
|
1830
1990
|
/** Items */
|
|
1831
|
-
items:
|
|
1991
|
+
items: ITenantInput[];
|
|
1832
1992
|
/** Total */
|
|
1833
1993
|
total: number;
|
|
1834
1994
|
/** Page */
|
|
@@ -1839,9 +1999,9 @@ export interface IPageResponseTagging {
|
|
|
1839
1999
|
total_pages: number;
|
|
1840
2000
|
}
|
|
1841
2001
|
/** PageResponse[Tenant] */
|
|
1842
|
-
export interface
|
|
2002
|
+
export interface IPageResponseTenantOutput {
|
|
1843
2003
|
/** Items */
|
|
1844
|
-
items:
|
|
2004
|
+
items: ITenantOutput[];
|
|
1845
2005
|
/** Total */
|
|
1846
2006
|
total: number;
|
|
1847
2007
|
/** Page */
|
|
@@ -1859,53 +2019,6 @@ export interface IPermission {
|
|
|
1859
2019
|
/** Conditions */
|
|
1860
2020
|
conditions?: Record<string, any> | null;
|
|
1861
2021
|
}
|
|
1862
|
-
/** ProResearchRequest */
|
|
1863
|
-
export interface IProResearchRequest {
|
|
1864
|
-
/**
|
|
1865
|
-
* Messages
|
|
1866
|
-
* The messages to be sent to the agent.
|
|
1867
|
-
* @default []
|
|
1868
|
-
*/
|
|
1869
|
-
messages?: (IChatCompletionDeveloperMessageParam | IChatCompletionSystemMessageParam | IChatCompletionUserMessageParam | IChatCompletionAssistantMessageParam | IChatCompletionToolMessageParam | IChatCompletionFunctionMessageParam)[];
|
|
1870
|
-
/**
|
|
1871
|
-
* Model
|
|
1872
|
-
* The name of the language model to use for the agent's query generation.
|
|
1873
|
-
* @default "wohu_qwen3_235b_a22b"
|
|
1874
|
-
*/
|
|
1875
|
-
model?: string;
|
|
1876
|
-
/**
|
|
1877
|
-
* Number Of Initial Queries
|
|
1878
|
-
* The number of initial search queries to generate.
|
|
1879
|
-
* @default 3
|
|
1880
|
-
*/
|
|
1881
|
-
number_of_initial_queries?: number;
|
|
1882
|
-
/**
|
|
1883
|
-
* Max Research Loops
|
|
1884
|
-
* The maximum number of research loops to perform.
|
|
1885
|
-
* @default 2
|
|
1886
|
-
*/
|
|
1887
|
-
max_research_loops?: number;
|
|
1888
|
-
/**
|
|
1889
|
-
* Enable Knowledge Retrieval
|
|
1890
|
-
* Whether to enable knowledge retrieval functionality.
|
|
1891
|
-
* @default true
|
|
1892
|
-
*/
|
|
1893
|
-
enable_knowledge_retrieval?: boolean;
|
|
1894
|
-
/**
|
|
1895
|
-
* Enable Web Search
|
|
1896
|
-
* Whether to enable web search functionality.
|
|
1897
|
-
* @default false
|
|
1898
|
-
*/
|
|
1899
|
-
enable_web_search?: boolean;
|
|
1900
|
-
/**
|
|
1901
|
-
* Knowledge Scope List
|
|
1902
|
-
* List of knowledge scopes to search within.
|
|
1903
|
-
* @default []
|
|
1904
|
-
*/
|
|
1905
|
-
knowledge_scope_list?: IKnowledgeScope[];
|
|
1906
|
-
/** Knowledge retrieval configuration. */
|
|
1907
|
-
knowledge_retrieval_config?: IRetrievalConfig | null;
|
|
1908
|
-
}
|
|
1909
2022
|
/** QACreate */
|
|
1910
2023
|
export interface IQACreate {
|
|
1911
2024
|
/**
|
|
@@ -1940,9 +2053,8 @@ export interface IQACreate {
|
|
|
1940
2053
|
/**
|
|
1941
2054
|
* Embedding Model Name
|
|
1942
2055
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
1943
|
-
* @default "openai"
|
|
1944
2056
|
*/
|
|
1945
|
-
embedding_model_name
|
|
2057
|
+
embedding_model_name: string;
|
|
1946
2058
|
/**
|
|
1947
2059
|
* File Sha
|
|
1948
2060
|
* SHA of the file
|
|
@@ -1986,7 +2098,16 @@ export interface IResponseModel {
|
|
|
1986
2098
|
export interface IResponseModelAPIKey {
|
|
1987
2099
|
/** Success */
|
|
1988
2100
|
success: boolean;
|
|
1989
|
-
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;
|
|
1990
2111
|
/** Message */
|
|
1991
2112
|
message?: string | null;
|
|
1992
2113
|
}
|
|
@@ -1994,7 +2115,7 @@ export interface IResponseModelAPIKey {
|
|
|
1994
2115
|
export interface IResponseModelArtifactIndex {
|
|
1995
2116
|
/** Success */
|
|
1996
2117
|
success: boolean;
|
|
1997
|
-
data?:
|
|
2118
|
+
data?: IArtifactIndexOutput | null;
|
|
1998
2119
|
/** Message */
|
|
1999
2120
|
message?: string | null;
|
|
2000
2121
|
}
|
|
@@ -2002,7 +2123,7 @@ export interface IResponseModelArtifactIndex {
|
|
|
2002
2123
|
export interface IResponseModelChunk {
|
|
2003
2124
|
/** Success */
|
|
2004
2125
|
success: boolean;
|
|
2005
|
-
data?:
|
|
2126
|
+
data?: IChunkOutput | null;
|
|
2006
2127
|
/** Message */
|
|
2007
2128
|
message?: string | null;
|
|
2008
2129
|
}
|
|
@@ -2027,7 +2148,7 @@ export interface IResponseModelListAPIKey {
|
|
|
2027
2148
|
/** Success */
|
|
2028
2149
|
success: boolean;
|
|
2029
2150
|
/** Data */
|
|
2030
|
-
data?:
|
|
2151
|
+
data?: IAPIKeyOutput[] | null;
|
|
2031
2152
|
/** Message */
|
|
2032
2153
|
message?: string | null;
|
|
2033
2154
|
}
|
|
@@ -2036,7 +2157,7 @@ export interface IResponseModelListArtifactIndex {
|
|
|
2036
2157
|
/** Success */
|
|
2037
2158
|
success: boolean;
|
|
2038
2159
|
/** Data */
|
|
2039
|
-
data?:
|
|
2160
|
+
data?: IArtifactIndexOutput[] | null;
|
|
2040
2161
|
/** Message */
|
|
2041
2162
|
message?: string | null;
|
|
2042
2163
|
}
|
|
@@ -2054,7 +2175,7 @@ export interface IResponseModelListRetrievalChunk {
|
|
|
2054
2175
|
/** Success */
|
|
2055
2176
|
success: boolean;
|
|
2056
2177
|
/** Data */
|
|
2057
|
-
data?:
|
|
2178
|
+
data?: IRetrievalChunkOutput[] | null;
|
|
2058
2179
|
/** Message */
|
|
2059
2180
|
message?: string | null;
|
|
2060
2181
|
}
|
|
@@ -2063,7 +2184,7 @@ export interface IResponseModelListTag {
|
|
|
2063
2184
|
/** Success */
|
|
2064
2185
|
success: boolean;
|
|
2065
2186
|
/** Data */
|
|
2066
|
-
data?:
|
|
2187
|
+
data?: ITagOutput[] | null;
|
|
2067
2188
|
/** Message */
|
|
2068
2189
|
message?: string | null;
|
|
2069
2190
|
}
|
|
@@ -2072,7 +2193,7 @@ export interface IResponseModelListTagging {
|
|
|
2072
2193
|
/** Success */
|
|
2073
2194
|
success: boolean;
|
|
2074
2195
|
/** Data */
|
|
2075
|
-
data?:
|
|
2196
|
+
data?: ITaggingOutput[] | null;
|
|
2076
2197
|
/** Message */
|
|
2077
2198
|
message?: string | null;
|
|
2078
2199
|
}
|
|
@@ -2081,7 +2202,7 @@ export interface IResponseModelListTask {
|
|
|
2081
2202
|
/** Success */
|
|
2082
2203
|
success: boolean;
|
|
2083
2204
|
/** Data */
|
|
2084
|
-
data?:
|
|
2205
|
+
data?: ITaskOutput[] | null;
|
|
2085
2206
|
/** Message */
|
|
2086
2207
|
message?: string | null;
|
|
2087
2208
|
}
|
|
@@ -2094,6 +2215,15 @@ export interface IResponseModelListTenantLog {
|
|
|
2094
2215
|
/** Message */
|
|
2095
2216
|
message?: string | null;
|
|
2096
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
|
+
}
|
|
2097
2227
|
/** ResponseModel[NoneType] */
|
|
2098
2228
|
export interface IResponseModelNoneType {
|
|
2099
2229
|
/** Success */
|
|
@@ -2107,7 +2237,7 @@ export interface IResponseModelNoneType {
|
|
|
2107
2237
|
export interface IResponseModelPageResponseAPIKey {
|
|
2108
2238
|
/** Success */
|
|
2109
2239
|
success: boolean;
|
|
2110
|
-
data?:
|
|
2240
|
+
data?: IPageResponseAPIKeyOutput | null;
|
|
2111
2241
|
/** Message */
|
|
2112
2242
|
message?: string | null;
|
|
2113
2243
|
}
|
|
@@ -2115,7 +2245,7 @@ export interface IResponseModelPageResponseAPIKey {
|
|
|
2115
2245
|
export interface IResponseModelPageResponseArtifactIndex {
|
|
2116
2246
|
/** Success */
|
|
2117
2247
|
success: boolean;
|
|
2118
|
-
data?:
|
|
2248
|
+
data?: IPageResponseArtifactIndexOutput | null;
|
|
2119
2249
|
/** Message */
|
|
2120
2250
|
message?: string | null;
|
|
2121
2251
|
}
|
|
@@ -2123,7 +2253,7 @@ export interface IResponseModelPageResponseArtifactIndex {
|
|
|
2123
2253
|
export interface IResponseModelPageResponseChunk {
|
|
2124
2254
|
/** Success */
|
|
2125
2255
|
success: boolean;
|
|
2126
|
-
data?:
|
|
2256
|
+
data?: IPageResponseChunkOutput | null;
|
|
2127
2257
|
/** Message */
|
|
2128
2258
|
message?: string | null;
|
|
2129
2259
|
}
|
|
@@ -2131,7 +2261,7 @@ export interface IResponseModelPageResponseChunk {
|
|
|
2131
2261
|
export interface IResponseModelPageResponseKnowledge {
|
|
2132
2262
|
/** Success */
|
|
2133
2263
|
success: boolean;
|
|
2134
|
-
data?:
|
|
2264
|
+
data?: IPageResponseKnowledgeOutput | null;
|
|
2135
2265
|
/** Message */
|
|
2136
2266
|
message?: string | null;
|
|
2137
2267
|
}
|
|
@@ -2139,7 +2269,7 @@ export interface IResponseModelPageResponseKnowledge {
|
|
|
2139
2269
|
export interface IResponseModelPageResponseSpaceResponse {
|
|
2140
2270
|
/** Success */
|
|
2141
2271
|
success: boolean;
|
|
2142
|
-
data?:
|
|
2272
|
+
data?: IPageResponseSpaceResponseOutput | null;
|
|
2143
2273
|
/** Message */
|
|
2144
2274
|
message?: string | null;
|
|
2145
2275
|
}
|
|
@@ -2147,7 +2277,7 @@ export interface IResponseModelPageResponseSpaceResponse {
|
|
|
2147
2277
|
export interface IResponseModelPageResponseTag {
|
|
2148
2278
|
/** Success */
|
|
2149
2279
|
success: boolean;
|
|
2150
|
-
data?:
|
|
2280
|
+
data?: IPageResponseTagOutput | null;
|
|
2151
2281
|
/** Message */
|
|
2152
2282
|
message?: string | null;
|
|
2153
2283
|
}
|
|
@@ -2155,7 +2285,7 @@ export interface IResponseModelPageResponseTag {
|
|
|
2155
2285
|
export interface IResponseModelPageResponseTagging {
|
|
2156
2286
|
/** Success */
|
|
2157
2287
|
success: boolean;
|
|
2158
|
-
data?:
|
|
2288
|
+
data?: IPageResponseTaggingOutput | null;
|
|
2159
2289
|
/** Message */
|
|
2160
2290
|
message?: string | null;
|
|
2161
2291
|
}
|
|
@@ -2163,7 +2293,7 @@ export interface IResponseModelPageResponseTagging {
|
|
|
2163
2293
|
export interface IResponseModelPageResponseTenant {
|
|
2164
2294
|
/** Success */
|
|
2165
2295
|
success: boolean;
|
|
2166
|
-
data?:
|
|
2296
|
+
data?: IPageResponseTenantOutput | null;
|
|
2167
2297
|
/** Message */
|
|
2168
2298
|
message?: string | null;
|
|
2169
2299
|
}
|
|
@@ -2171,7 +2301,7 @@ export interface IResponseModelPageResponseTenant {
|
|
|
2171
2301
|
export interface IResponseModelSpaceResponse {
|
|
2172
2302
|
/** Success */
|
|
2173
2303
|
success: boolean;
|
|
2174
|
-
data?:
|
|
2304
|
+
data?: ISpaceResponseOutput | null;
|
|
2175
2305
|
/** Message */
|
|
2176
2306
|
message?: string | null;
|
|
2177
2307
|
}
|
|
@@ -2179,7 +2309,7 @@ export interface IResponseModelSpaceResponse {
|
|
|
2179
2309
|
export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
2180
2310
|
/** Success */
|
|
2181
2311
|
success: boolean;
|
|
2182
|
-
data?:
|
|
2312
|
+
data?: IStatusStatisticsPageResponseTaskOutput | null;
|
|
2183
2313
|
/** Message */
|
|
2184
2314
|
message?: string | null;
|
|
2185
2315
|
}
|
|
@@ -2187,7 +2317,7 @@ export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
|
2187
2317
|
export interface IResponseModelTag {
|
|
2188
2318
|
/** Success */
|
|
2189
2319
|
success: boolean;
|
|
2190
|
-
data?:
|
|
2320
|
+
data?: ITagOutput | null;
|
|
2191
2321
|
/** Message */
|
|
2192
2322
|
message?: string | null;
|
|
2193
2323
|
}
|
|
@@ -2195,7 +2325,7 @@ export interface IResponseModelTag {
|
|
|
2195
2325
|
export interface IResponseModelTask {
|
|
2196
2326
|
/** Success */
|
|
2197
2327
|
success: boolean;
|
|
2198
|
-
data?:
|
|
2328
|
+
data?: ITaskOutput | null;
|
|
2199
2329
|
/** Message */
|
|
2200
2330
|
message?: string | null;
|
|
2201
2331
|
}
|
|
@@ -2203,7 +2333,7 @@ export interface IResponseModelTask {
|
|
|
2203
2333
|
export interface IResponseModelTenant {
|
|
2204
2334
|
/** Success */
|
|
2205
2335
|
success: boolean;
|
|
2206
|
-
data?:
|
|
2336
|
+
data?: ITenantOutput | null;
|
|
2207
2337
|
/** Message */
|
|
2208
2338
|
message?: string | null;
|
|
2209
2339
|
}
|
|
@@ -2231,7 +2361,7 @@ export interface IRetrievalByKnowledgeRequest {
|
|
|
2231
2361
|
* Embedding Model Name
|
|
2232
2362
|
* The name of the embedding model
|
|
2233
2363
|
*/
|
|
2234
|
-
embedding_model_name:
|
|
2364
|
+
embedding_model_name: string;
|
|
2235
2365
|
/**
|
|
2236
2366
|
* Similarity Threshold
|
|
2237
2367
|
* The similarity threshold, ranging from 0.0 to 1.0.
|
|
@@ -2270,7 +2400,7 @@ export interface IRetrievalBySpaceRequest {
|
|
|
2270
2400
|
* Embedding Model Name
|
|
2271
2401
|
* The name of the embedding model
|
|
2272
2402
|
*/
|
|
2273
|
-
embedding_model_name:
|
|
2403
|
+
embedding_model_name: string;
|
|
2274
2404
|
/**
|
|
2275
2405
|
* Similarity Threshold
|
|
2276
2406
|
* The similarity threshold, ranging from 0.0 to 1.0.
|
|
@@ -2304,17 +2434,17 @@ export interface IRetrievalBySpaceRequest {
|
|
|
2304
2434
|
space_id_list: string[];
|
|
2305
2435
|
}
|
|
2306
2436
|
/** RetrievalChunk */
|
|
2307
|
-
export interface
|
|
2437
|
+
export interface IRetrievalChunkInput {
|
|
2308
2438
|
/**
|
|
2309
2439
|
* Gmt Create
|
|
2310
2440
|
* creation time
|
|
2311
2441
|
*/
|
|
2312
|
-
gmt_create?: string;
|
|
2442
|
+
gmt_create?: string | null;
|
|
2313
2443
|
/**
|
|
2314
2444
|
* Gmt Modified
|
|
2315
2445
|
* update time
|
|
2316
2446
|
*/
|
|
2317
|
-
gmt_modified?: string;
|
|
2447
|
+
gmt_modified?: string | null;
|
|
2318
2448
|
/**
|
|
2319
2449
|
* Chunk Id
|
|
2320
2450
|
* chunk id
|
|
@@ -2355,7 +2485,101 @@ export interface IRetrievalChunk {
|
|
|
2355
2485
|
* Embedding Model Name
|
|
2356
2486
|
* name of the embedding model
|
|
2357
2487
|
*/
|
|
2358
|
-
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;
|
|
2359
2583
|
/**
|
|
2360
2584
|
* Metadata
|
|
2361
2585
|
* Arbitrary metadata associated with the content.
|
|
@@ -2501,17 +2725,17 @@ export interface ISpaceCreate {
|
|
|
2501
2725
|
* total_size Optional[int]: size of the all kowledge in this space.
|
|
2502
2726
|
* knowledge_size Optional[int]: count of the knowledge in this space.
|
|
2503
2727
|
*/
|
|
2504
|
-
export interface
|
|
2728
|
+
export interface ISpaceResponseInput {
|
|
2505
2729
|
/**
|
|
2506
2730
|
* Gmt Create
|
|
2507
2731
|
* creation time
|
|
2508
2732
|
*/
|
|
2509
|
-
gmt_create?: string;
|
|
2733
|
+
gmt_create?: string | null;
|
|
2510
2734
|
/**
|
|
2511
2735
|
* Gmt Modified
|
|
2512
2736
|
* update time
|
|
2513
2737
|
*/
|
|
2514
|
-
gmt_modified?: string;
|
|
2738
|
+
gmt_modified?: string | null;
|
|
2515
2739
|
/**
|
|
2516
2740
|
* Space Name
|
|
2517
2741
|
* name of the space resource
|
|
@@ -2553,10 +2777,146 @@ export interface ISpaceResponse {
|
|
|
2553
2777
|
*/
|
|
2554
2778
|
knowledge_count?: number | null;
|
|
2555
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 {
|
|
2789
|
+
/**
|
|
2790
|
+
* Gmt Create
|
|
2791
|
+
* creation time
|
|
2792
|
+
*/
|
|
2793
|
+
gmt_create?: string | null;
|
|
2794
|
+
/**
|
|
2795
|
+
* Gmt Modified
|
|
2796
|
+
* update time
|
|
2797
|
+
*/
|
|
2798
|
+
gmt_modified?: string | null;
|
|
2799
|
+
/**
|
|
2800
|
+
* Space Name
|
|
2801
|
+
* name of the space resource
|
|
2802
|
+
* @maxLength 64
|
|
2803
|
+
*/
|
|
2804
|
+
space_name: string;
|
|
2805
|
+
/**
|
|
2806
|
+
* Space Id
|
|
2807
|
+
* space id
|
|
2808
|
+
*/
|
|
2809
|
+
space_id?: string;
|
|
2810
|
+
/**
|
|
2811
|
+
* Description
|
|
2812
|
+
* descrition of the space
|
|
2813
|
+
* @maxLength 255
|
|
2814
|
+
*/
|
|
2815
|
+
description: string;
|
|
2816
|
+
/**
|
|
2817
|
+
* Metadata
|
|
2818
|
+
* metadata of the space resource
|
|
2819
|
+
* @default {}
|
|
2820
|
+
*/
|
|
2821
|
+
metadata?: Record<string, any>;
|
|
2822
|
+
/**
|
|
2823
|
+
* Tenant Id
|
|
2824
|
+
* tenant id
|
|
2825
|
+
*/
|
|
2826
|
+
tenant_id: string;
|
|
2827
|
+
/**
|
|
2828
|
+
* Storage Size
|
|
2829
|
+
* size of the all kowledge in this space
|
|
2830
|
+
* @default 0
|
|
2831
|
+
*/
|
|
2832
|
+
storage_size?: number | null;
|
|
2833
|
+
/**
|
|
2834
|
+
* Knowledge Count
|
|
2835
|
+
* count of the knowledge in this space
|
|
2836
|
+
* @default 0
|
|
2837
|
+
*/
|
|
2838
|
+
knowledge_count?: number | null;
|
|
2839
|
+
}
|
|
2840
|
+
/**
|
|
2841
|
+
* SpaceUpdate
|
|
2842
|
+
* SpaceUpdate model for updating space resources.
|
|
2843
|
+
* All fields are optional to support partial updates.
|
|
2844
|
+
*
|
|
2845
|
+
* Attributes:
|
|
2846
|
+
* space_name (Optional[str]): Space name, example: petercat bot group.
|
|
2847
|
+
* description (Optional[str]): description of the space resource.
|
|
2848
|
+
* metadata (Optional[Dict[str, Any]]): metadata of the space resource, such as embedding model name
|
|
2849
|
+
* and other parameters.
|
|
2850
|
+
*/
|
|
2851
|
+
export interface ISpaceUpdate {
|
|
2852
|
+
/**
|
|
2853
|
+
* Space Name
|
|
2854
|
+
* name of the space resource
|
|
2855
|
+
*/
|
|
2856
|
+
space_name?: string | null;
|
|
2857
|
+
/**
|
|
2858
|
+
* Description
|
|
2859
|
+
* description of the space
|
|
2860
|
+
*/
|
|
2861
|
+
description?: string | null;
|
|
2862
|
+
/**
|
|
2863
|
+
* Metadata
|
|
2864
|
+
* metadata of the space resource
|
|
2865
|
+
*/
|
|
2866
|
+
metadata?: Record<string, any> | null;
|
|
2867
|
+
}
|
|
2868
|
+
/** StatusStatisticsPageResponse[Task] */
|
|
2869
|
+
export interface IStatusStatisticsPageResponseTaskInput {
|
|
2870
|
+
/** Items */
|
|
2871
|
+
items: ITaskInput[];
|
|
2872
|
+
/** Total */
|
|
2873
|
+
total: number;
|
|
2874
|
+
/** Page */
|
|
2875
|
+
page: number;
|
|
2876
|
+
/** Page Size */
|
|
2877
|
+
page_size: number;
|
|
2878
|
+
/** Total Pages */
|
|
2879
|
+
total_pages: number;
|
|
2880
|
+
/**
|
|
2881
|
+
* Success
|
|
2882
|
+
* @default 0
|
|
2883
|
+
*/
|
|
2884
|
+
success?: number;
|
|
2885
|
+
/**
|
|
2886
|
+
* Failed
|
|
2887
|
+
* @default 0
|
|
2888
|
+
*/
|
|
2889
|
+
failed?: number;
|
|
2890
|
+
/**
|
|
2891
|
+
* Cancelled
|
|
2892
|
+
* @default 0
|
|
2893
|
+
*/
|
|
2894
|
+
cancelled?: number;
|
|
2895
|
+
/**
|
|
2896
|
+
* Pending
|
|
2897
|
+
* @default 0
|
|
2898
|
+
*/
|
|
2899
|
+
pending?: number;
|
|
2900
|
+
/**
|
|
2901
|
+
* Running
|
|
2902
|
+
* @default 0
|
|
2903
|
+
*/
|
|
2904
|
+
running?: number;
|
|
2905
|
+
/**
|
|
2906
|
+
* Pending Retry
|
|
2907
|
+
* @default 0
|
|
2908
|
+
*/
|
|
2909
|
+
pending_retry?: number;
|
|
2910
|
+
/**
|
|
2911
|
+
* Deleted
|
|
2912
|
+
* @default 0
|
|
2913
|
+
*/
|
|
2914
|
+
deleted?: number;
|
|
2915
|
+
}
|
|
2556
2916
|
/** StatusStatisticsPageResponse[Task] */
|
|
2557
|
-
export interface
|
|
2917
|
+
export interface IStatusStatisticsPageResponseTaskOutput {
|
|
2558
2918
|
/** Items */
|
|
2559
|
-
items:
|
|
2919
|
+
items: ITaskOutput[];
|
|
2560
2920
|
/** Total */
|
|
2561
2921
|
total: number;
|
|
2562
2922
|
/** Page */
|
|
@@ -2599,20 +2959,60 @@ export interface IStatusStatisticsPageResponseTask {
|
|
|
2599
2959
|
* Deleted
|
|
2600
2960
|
* @default 0
|
|
2601
2961
|
*/
|
|
2602
|
-
deleted?: number;
|
|
2962
|
+
deleted?: number;
|
|
2963
|
+
}
|
|
2964
|
+
/** Tag */
|
|
2965
|
+
export interface ITagInput {
|
|
2966
|
+
/**
|
|
2967
|
+
* Gmt Create
|
|
2968
|
+
* creation time
|
|
2969
|
+
*/
|
|
2970
|
+
gmt_create?: string | null;
|
|
2971
|
+
/**
|
|
2972
|
+
* Gmt Modified
|
|
2973
|
+
* update time
|
|
2974
|
+
*/
|
|
2975
|
+
gmt_modified?: string | null;
|
|
2976
|
+
/**
|
|
2977
|
+
* Name
|
|
2978
|
+
* 标签名称(租户内唯一)
|
|
2979
|
+
* @maxLength 64
|
|
2980
|
+
*/
|
|
2981
|
+
name: string;
|
|
2982
|
+
/**
|
|
2983
|
+
* Description
|
|
2984
|
+
* 标签描述
|
|
2985
|
+
*/
|
|
2986
|
+
description?: string | null;
|
|
2987
|
+
/**
|
|
2988
|
+
* 标签作用对象类型(如 "space")
|
|
2989
|
+
* @default "space"
|
|
2990
|
+
*/
|
|
2991
|
+
object_type?: ITagObjectType;
|
|
2992
|
+
/**
|
|
2993
|
+
* Tag Id
|
|
2994
|
+
* 标签ID(UUID字符串)
|
|
2995
|
+
*/
|
|
2996
|
+
tag_id?: string;
|
|
2997
|
+
/**
|
|
2998
|
+
* Tenant Id
|
|
2999
|
+
* 所属租户ID
|
|
3000
|
+
* @maxLength 64
|
|
3001
|
+
*/
|
|
3002
|
+
tenant_id: string;
|
|
2603
3003
|
}
|
|
2604
3004
|
/** Tag */
|
|
2605
|
-
export interface
|
|
3005
|
+
export interface ITagOutput {
|
|
2606
3006
|
/**
|
|
2607
3007
|
* Gmt Create
|
|
2608
3008
|
* creation time
|
|
2609
3009
|
*/
|
|
2610
|
-
gmt_create?: string;
|
|
3010
|
+
gmt_create?: string | null;
|
|
2611
3011
|
/**
|
|
2612
3012
|
* Gmt Modified
|
|
2613
3013
|
* update time
|
|
2614
3014
|
*/
|
|
2615
|
-
gmt_modified?: string;
|
|
3015
|
+
gmt_modified?: string | null;
|
|
2616
3016
|
/**
|
|
2617
3017
|
* Name
|
|
2618
3018
|
* 标签名称(租户内唯一)
|
|
@@ -2679,17 +3079,64 @@ export interface ITagUpdate {
|
|
|
2679
3079
|
description?: string | null;
|
|
2680
3080
|
}
|
|
2681
3081
|
/** Tagging */
|
|
2682
|
-
export interface
|
|
3082
|
+
export interface ITaggingInput {
|
|
3083
|
+
/**
|
|
3084
|
+
* Gmt Create
|
|
3085
|
+
* creation time
|
|
3086
|
+
*/
|
|
3087
|
+
gmt_create?: string | null;
|
|
3088
|
+
/**
|
|
3089
|
+
* Gmt Modified
|
|
3090
|
+
* update time
|
|
3091
|
+
*/
|
|
3092
|
+
gmt_modified?: string | null;
|
|
3093
|
+
/**
|
|
3094
|
+
* Tagging Id
|
|
3095
|
+
* 标签绑定ID(UUID字符串)
|
|
3096
|
+
*/
|
|
3097
|
+
tagging_id?: string;
|
|
3098
|
+
/**
|
|
3099
|
+
* Tenant Id
|
|
3100
|
+
* 所属租户ID
|
|
3101
|
+
* @maxLength 64
|
|
3102
|
+
*/
|
|
3103
|
+
tenant_id: string;
|
|
3104
|
+
/**
|
|
3105
|
+
* Tag Id
|
|
3106
|
+
* 标签ID(FK -> tag.tag_id,UUID字符串)
|
|
3107
|
+
*/
|
|
3108
|
+
tag_id: string;
|
|
3109
|
+
/**
|
|
3110
|
+
* Tag Name
|
|
3111
|
+
* 标签名称(在 object_type 内唯一)
|
|
3112
|
+
* @maxLength 64
|
|
3113
|
+
*/
|
|
3114
|
+
tag_name: string;
|
|
3115
|
+
/**
|
|
3116
|
+
* Object Id
|
|
3117
|
+
* 被打标签对象ID(如 space_id)
|
|
3118
|
+
* @maxLength 255
|
|
3119
|
+
*/
|
|
3120
|
+
object_id: string;
|
|
3121
|
+
/**
|
|
3122
|
+
* 对象类型,当前仅支持 "space"
|
|
3123
|
+
* @maxLength 32
|
|
3124
|
+
* @default "space"
|
|
3125
|
+
*/
|
|
3126
|
+
object_type?: ITagObjectType;
|
|
3127
|
+
}
|
|
3128
|
+
/** Tagging */
|
|
3129
|
+
export interface ITaggingOutput {
|
|
2683
3130
|
/**
|
|
2684
3131
|
* Gmt Create
|
|
2685
3132
|
* creation time
|
|
2686
3133
|
*/
|
|
2687
|
-
gmt_create?: string;
|
|
3134
|
+
gmt_create?: string | null;
|
|
2688
3135
|
/**
|
|
2689
3136
|
* Gmt Modified
|
|
2690
3137
|
* update time
|
|
2691
3138
|
*/
|
|
2692
|
-
gmt_modified?: string;
|
|
3139
|
+
gmt_modified?: string | null;
|
|
2693
3140
|
/**
|
|
2694
3141
|
* Tagging Id
|
|
2695
3142
|
* 标签绑定ID(UUID字符串)
|
|
@@ -2746,17 +3193,76 @@ export interface ITaggingCreate {
|
|
|
2746
3193
|
object_id: string;
|
|
2747
3194
|
}
|
|
2748
3195
|
/** Task */
|
|
2749
|
-
export interface
|
|
3196
|
+
export interface ITaskInput {
|
|
3197
|
+
/**
|
|
3198
|
+
* Gmt Create
|
|
3199
|
+
* creation time
|
|
3200
|
+
*/
|
|
3201
|
+
gmt_create?: string | null;
|
|
3202
|
+
/**
|
|
3203
|
+
* Gmt Modified
|
|
3204
|
+
* update time
|
|
3205
|
+
*/
|
|
3206
|
+
gmt_modified?: string | null;
|
|
3207
|
+
/**
|
|
3208
|
+
* Task Id
|
|
3209
|
+
* Unique identifier for the task
|
|
3210
|
+
*/
|
|
3211
|
+
task_id?: string;
|
|
3212
|
+
/**
|
|
3213
|
+
* Current status of the task
|
|
3214
|
+
* @default "pending"
|
|
3215
|
+
*/
|
|
3216
|
+
status?: ITaskStatus;
|
|
3217
|
+
/**
|
|
3218
|
+
* Knowledge Id
|
|
3219
|
+
* Identifier for the source file
|
|
3220
|
+
*/
|
|
3221
|
+
knowledge_id: string;
|
|
3222
|
+
/**
|
|
3223
|
+
* Metadata
|
|
3224
|
+
* Metadata for the task
|
|
3225
|
+
*/
|
|
3226
|
+
metadata?: Record<string, any> | null;
|
|
3227
|
+
/**
|
|
3228
|
+
* Error Message
|
|
3229
|
+
* Error message (only present if the task failed)
|
|
3230
|
+
*/
|
|
3231
|
+
error_message?: string | null;
|
|
3232
|
+
/**
|
|
3233
|
+
* Space Id
|
|
3234
|
+
* Identifier for the space
|
|
3235
|
+
*/
|
|
3236
|
+
space_id: string;
|
|
3237
|
+
/**
|
|
3238
|
+
* User Id
|
|
3239
|
+
* Identifier for the user
|
|
3240
|
+
*/
|
|
3241
|
+
user_id?: string | null;
|
|
3242
|
+
/**
|
|
3243
|
+
* Tenant Id
|
|
3244
|
+
* Identifier for the tenant
|
|
3245
|
+
*/
|
|
3246
|
+
tenant_id: string;
|
|
3247
|
+
/**
|
|
3248
|
+
* Task Type
|
|
3249
|
+
* Type of the task
|
|
3250
|
+
* @default "knowledge_chunk"
|
|
3251
|
+
*/
|
|
3252
|
+
task_type?: string;
|
|
3253
|
+
}
|
|
3254
|
+
/** Task */
|
|
3255
|
+
export interface ITaskOutput {
|
|
2750
3256
|
/**
|
|
2751
3257
|
* Gmt Create
|
|
2752
3258
|
* creation time
|
|
2753
3259
|
*/
|
|
2754
|
-
gmt_create?: string;
|
|
3260
|
+
gmt_create?: string | null;
|
|
2755
3261
|
/**
|
|
2756
3262
|
* Gmt Modified
|
|
2757
3263
|
* update time
|
|
2758
3264
|
*/
|
|
2759
|
-
gmt_modified?: string;
|
|
3265
|
+
gmt_modified?: string | null;
|
|
2760
3266
|
/**
|
|
2761
3267
|
* Task Id
|
|
2762
3268
|
* Unique identifier for the task
|
|
@@ -2813,17 +3319,63 @@ export interface ITaskRestartRequest {
|
|
|
2813
3319
|
task_id_list: string[];
|
|
2814
3320
|
}
|
|
2815
3321
|
/** Tenant */
|
|
2816
|
-
export interface
|
|
3322
|
+
export interface ITenantInput {
|
|
3323
|
+
/**
|
|
3324
|
+
* Gmt Create
|
|
3325
|
+
* creation time
|
|
3326
|
+
*/
|
|
3327
|
+
gmt_create?: string | null;
|
|
3328
|
+
/**
|
|
3329
|
+
* Gmt Modified
|
|
3330
|
+
* update time
|
|
3331
|
+
*/
|
|
3332
|
+
gmt_modified?: string | null;
|
|
3333
|
+
/**
|
|
3334
|
+
* Tenant Id
|
|
3335
|
+
* tenant id
|
|
3336
|
+
*/
|
|
3337
|
+
tenant_id?: string;
|
|
3338
|
+
/**
|
|
3339
|
+
* Tenant Name
|
|
3340
|
+
* tenant name
|
|
3341
|
+
* @default ""
|
|
3342
|
+
*/
|
|
3343
|
+
tenant_name?: string;
|
|
3344
|
+
/**
|
|
3345
|
+
* Email
|
|
3346
|
+
* email
|
|
3347
|
+
*/
|
|
3348
|
+
email: string;
|
|
3349
|
+
/**
|
|
3350
|
+
* Secret Key
|
|
3351
|
+
* secret_key
|
|
3352
|
+
* @default ""
|
|
3353
|
+
*/
|
|
3354
|
+
secret_key?: string;
|
|
3355
|
+
/**
|
|
3356
|
+
* Is Active
|
|
3357
|
+
* is active
|
|
3358
|
+
* @default true
|
|
3359
|
+
*/
|
|
3360
|
+
is_active?: boolean;
|
|
3361
|
+
/**
|
|
3362
|
+
* Metadata
|
|
3363
|
+
* Metadata for the tenant
|
|
3364
|
+
*/
|
|
3365
|
+
metadata?: Record<string, any> | null;
|
|
3366
|
+
}
|
|
3367
|
+
/** Tenant */
|
|
3368
|
+
export interface ITenantOutput {
|
|
2817
3369
|
/**
|
|
2818
3370
|
* Gmt Create
|
|
2819
3371
|
* creation time
|
|
2820
3372
|
*/
|
|
2821
|
-
gmt_create?: string;
|
|
3373
|
+
gmt_create?: string | null;
|
|
2822
3374
|
/**
|
|
2823
3375
|
* Gmt Modified
|
|
2824
3376
|
* update time
|
|
2825
3377
|
*/
|
|
2826
|
-
gmt_modified?: string;
|
|
3378
|
+
gmt_modified?: string | null;
|
|
2827
3379
|
/**
|
|
2828
3380
|
* Tenant Id
|
|
2829
3381
|
* tenant id
|
|
@@ -2885,8 +3437,6 @@ export interface ITenantLogQuery {
|
|
|
2885
3437
|
}
|
|
2886
3438
|
/** TenantUpdate */
|
|
2887
3439
|
export interface ITenantUpdate {
|
|
2888
|
-
/** Tenant Id */
|
|
2889
|
-
tenant_id: string;
|
|
2890
3440
|
/** Tenant Name */
|
|
2891
3441
|
tenant_name?: string | null;
|
|
2892
3442
|
/** Email */
|
|
@@ -2924,9 +3474,8 @@ export interface ITextCreate {
|
|
|
2924
3474
|
/**
|
|
2925
3475
|
* Embedding Model Name
|
|
2926
3476
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
2927
|
-
* @default "openai"
|
|
2928
3477
|
*/
|
|
2929
|
-
embedding_model_name
|
|
3478
|
+
embedding_model_name: string;
|
|
2930
3479
|
/**
|
|
2931
3480
|
* File Sha
|
|
2932
3481
|
* SHA of the file
|
|
@@ -3016,6 +3565,27 @@ export interface IValidationError {
|
|
|
3016
3565
|
/** Error Type */
|
|
3017
3566
|
type: string;
|
|
3018
3567
|
}
|
|
3568
|
+
/**
|
|
3569
|
+
* WohuProductSpace
|
|
3570
|
+
* 产品空间响应模型
|
|
3571
|
+
*/
|
|
3572
|
+
export interface IWohuProductSpace {
|
|
3573
|
+
/**
|
|
3574
|
+
* Product Id
|
|
3575
|
+
* 空间ID
|
|
3576
|
+
*/
|
|
3577
|
+
product_id: string;
|
|
3578
|
+
/**
|
|
3579
|
+
* Product Name
|
|
3580
|
+
* 空间名称
|
|
3581
|
+
*/
|
|
3582
|
+
product_name: string;
|
|
3583
|
+
/**
|
|
3584
|
+
* Visit Url
|
|
3585
|
+
* 访问地址
|
|
3586
|
+
*/
|
|
3587
|
+
visit_url: string;
|
|
3588
|
+
}
|
|
3019
3589
|
/** YuqueCreate */
|
|
3020
3590
|
export interface IYuqueCreate {
|
|
3021
3591
|
/**
|
|
@@ -3028,7 +3598,7 @@ export interface IYuqueCreate {
|
|
|
3028
3598
|
* type of knowledge resource
|
|
3029
3599
|
* @default "yuquedoc"
|
|
3030
3600
|
*/
|
|
3031
|
-
knowledge_type?: "yuquedoc"
|
|
3601
|
+
knowledge_type?: "yuquedoc";
|
|
3032
3602
|
/**
|
|
3033
3603
|
* Knowledge Name
|
|
3034
3604
|
* name of the knowledge resource
|
|
@@ -3046,13 +3616,12 @@ export interface IYuqueCreate {
|
|
|
3046
3616
|
* source type
|
|
3047
3617
|
* @default "yuque"
|
|
3048
3618
|
*/
|
|
3049
|
-
source_type?: "yuque";
|
|
3619
|
+
source_type?: "yuque" | "yuque_personal_doc" | "yuque_personal_note";
|
|
3050
3620
|
/**
|
|
3051
3621
|
* Embedding Model Name
|
|
3052
3622
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
3053
|
-
* @default "openai"
|
|
3054
3623
|
*/
|
|
3055
|
-
embedding_model_name
|
|
3624
|
+
embedding_model_name: string;
|
|
3056
3625
|
/**
|
|
3057
3626
|
* File Sha
|
|
3058
3627
|
* SHA of the file
|
|
@@ -3072,19 +3641,45 @@ export interface IYuqueCreate {
|
|
|
3072
3641
|
* Source Config
|
|
3073
3642
|
* source config of the knowledge
|
|
3074
3643
|
*/
|
|
3075
|
-
source_config: IYuqueSourceConfig | IOpenUrlSourceConfig | IOpenIdSourceConfig;
|
|
3644
|
+
source_config: IYuqueSourceConfig | IOpenUrlSourceConfig | IOpenIdSourceConfig | IYuquePersonalDocSourceConfig | IYuquePersonalNoteSourceConfig;
|
|
3076
3645
|
/**
|
|
3077
3646
|
* Split Config
|
|
3078
3647
|
* split config of the knowledge
|
|
3079
3648
|
*/
|
|
3080
3649
|
split_config: IGeaGraphSplitConfig | IYuqueSplitConfig;
|
|
3081
3650
|
}
|
|
3651
|
+
/** YuquePersonalDocSourceConfig */
|
|
3652
|
+
export interface IYuquePersonalDocSourceConfig {
|
|
3653
|
+
/**
|
|
3654
|
+
* Doc Id
|
|
3655
|
+
* the yuque personal doc id
|
|
3656
|
+
*/
|
|
3657
|
+
doc_id: number;
|
|
3658
|
+
/**
|
|
3659
|
+
* Auth Info
|
|
3660
|
+
* authentication information
|
|
3661
|
+
*/
|
|
3662
|
+
auth_info: string;
|
|
3663
|
+
}
|
|
3664
|
+
/** YuquePersonalNoteSourceConfig */
|
|
3665
|
+
export interface IYuquePersonalNoteSourceConfig {
|
|
3666
|
+
/**
|
|
3667
|
+
* Note Id
|
|
3668
|
+
* the yuque personal note id
|
|
3669
|
+
*/
|
|
3670
|
+
note_id: number;
|
|
3671
|
+
/**
|
|
3672
|
+
* Auth Info
|
|
3673
|
+
* authentication information
|
|
3674
|
+
*/
|
|
3675
|
+
auth_info: string;
|
|
3676
|
+
}
|
|
3082
3677
|
/** YuqueSourceConfig */
|
|
3083
3678
|
export interface IYuqueSourceConfig {
|
|
3084
3679
|
/**
|
|
3085
3680
|
* Api Url
|
|
3086
3681
|
* the yuque api url
|
|
3087
|
-
* @default "https://
|
|
3682
|
+
* @default "https://yuque-api.antfin-inc.com"
|
|
3088
3683
|
*/
|
|
3089
3684
|
api_url?: string;
|
|
3090
3685
|
/**
|
|
@@ -3212,9 +3807,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3212
3807
|
* @request GET:/
|
|
3213
3808
|
*/
|
|
3214
3809
|
homePageGet: (params?: RequestParams) => Promise<HttpResponse<any, any>>;
|
|
3810
|
+
user: {
|
|
3811
|
+
/**
|
|
3812
|
+
* @description 根据登录账号查询用户有权限的产品空间列表 Args: login_account: 用户登录账号 Returns: 用户有权限的产品空间列表
|
|
3813
|
+
*
|
|
3814
|
+
* @tags user
|
|
3815
|
+
* @name GetUserProductSpaces
|
|
3816
|
+
* @summary Get User Product Spaces
|
|
3817
|
+
* @request GET:/api/user/product-spaces
|
|
3818
|
+
*/
|
|
3819
|
+
getUserProductSpaces: (query: {
|
|
3820
|
+
/**
|
|
3821
|
+
* Login Account
|
|
3822
|
+
* 用户登录账号
|
|
3823
|
+
*/
|
|
3824
|
+
login_account: string;
|
|
3825
|
+
}, params?: RequestParams) => Promise<HttpResponse<IResponseModelListWohuProductSpace, void | IHTTPValidationError>>;
|
|
3826
|
+
};
|
|
3215
3827
|
knowledge: {
|
|
3216
3828
|
/**
|
|
3217
|
-
* @description
|
|
3829
|
+
* @description 添加知识 使用DDD架构创建新的知识,禁止重复的file_sha条目。 通过TaskCoordinationService统一协调知识创建和任务执行,确保事务一致性。
|
|
3218
3830
|
*
|
|
3219
3831
|
* @tags knowledge
|
|
3220
3832
|
* @name AddKnowledge
|
|
@@ -3223,7 +3835,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3223
3835
|
*/
|
|
3224
3836
|
addKnowledge: (data: (ITextCreate | IImageCreate | IJSONCreate | IMarkdownCreate | IPDFCreate | IGithubRepoCreate | IQACreate | IYuqueCreate)[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListKnowledge, void | IHTTPValidationError>>;
|
|
3225
3837
|
/**
|
|
3226
|
-
*
|
|
3838
|
+
* @description 更新知识 使用DDD架构更新知识信息,支持元数据和状态更新。
|
|
3227
3839
|
*
|
|
3228
3840
|
* @tags knowledge
|
|
3229
3841
|
* @name UpdateKnowledge
|
|
@@ -3232,7 +3844,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3232
3844
|
*/
|
|
3233
3845
|
updateKnowledge: (data: IKnowledgeInput, params?: RequestParams) => Promise<HttpResponse<IResponseModelKnowledge, void | IHTTPValidationError>>;
|
|
3234
3846
|
/**
|
|
3235
|
-
*
|
|
3847
|
+
* @description 更新知识启用状态 使用DDD架构更新知识的启用状态。
|
|
3236
3848
|
*
|
|
3237
3849
|
* @tags knowledge
|
|
3238
3850
|
* @name UpdateKnowledgeEnableStatus
|
|
@@ -3241,7 +3853,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3241
3853
|
*/
|
|
3242
3854
|
updateKnowledgeEnableStatus: (data: IEnableStatusUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3243
3855
|
/**
|
|
3244
|
-
*
|
|
3856
|
+
* @description 获取知识列表 使用DDD架构的KnowledgeService进行分页查询,支持条件过滤和排序。
|
|
3245
3857
|
*
|
|
3246
3858
|
* @tags knowledge
|
|
3247
3859
|
* @name GetKnowledgeList
|
|
@@ -3250,7 +3862,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3250
3862
|
*/
|
|
3251
3863
|
getKnowledgeList: (data: IPageQueryParamsKnowledge, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseKnowledge, void | IHTTPValidationError>>;
|
|
3252
3864
|
/**
|
|
3253
|
-
*
|
|
3865
|
+
* @description 根据ID获取知识详情 使用DDD架构获取知识详细信息。
|
|
3254
3866
|
*
|
|
3255
3867
|
* @tags knowledge
|
|
3256
3868
|
* @name GetKnowledgeById
|
|
@@ -3262,7 +3874,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3262
3874
|
knowledge_id: string;
|
|
3263
3875
|
}, params?: RequestParams) => Promise<HttpResponse<IResponseModelKnowledge, void | IHTTPValidationError>>;
|
|
3264
3876
|
/**
|
|
3265
|
-
* @description
|
|
3877
|
+
* @description 删除知识 包括级联删除相关的任务和向量数据。
|
|
3266
3878
|
*
|
|
3267
3879
|
* @tags knowledge
|
|
3268
3880
|
* @name DeleteKnowledge
|
|
@@ -3283,14 +3895,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3283
3895
|
*/
|
|
3284
3896
|
getEmbeddingModelsList: (params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
|
|
3285
3897
|
/**
|
|
3286
|
-
* @description
|
|
3898
|
+
* @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: 符合条件的知识列表
|
|
3287
3899
|
*
|
|
3288
3900
|
* @tags knowledge
|
|
3289
|
-
* @name
|
|
3290
|
-
* @summary
|
|
3291
|
-
* @request POST:/api/knowledge/
|
|
3901
|
+
* @name BatchQueryKnowledgeByNames
|
|
3902
|
+
* @summary Batch Query Knowledge By Names
|
|
3903
|
+
* @request POST:/api/knowledge/batch_query_by_names
|
|
3292
3904
|
*/
|
|
3293
|
-
|
|
3905
|
+
batchQueryKnowledgeByNames: (data: IBatchQueryRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListKnowledge, void | IHTTPValidationError>>;
|
|
3294
3906
|
};
|
|
3295
3907
|
retrieval: {
|
|
3296
3908
|
/**
|
|
@@ -3303,7 +3915,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3303
3915
|
*/
|
|
3304
3916
|
retrieveKnowledgeContent: (data: IRetrievalByKnowledgeRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
|
|
3305
3917
|
/**
|
|
3306
|
-
* @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id.
|
|
3918
|
+
* @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id. 使用DDD架构的RetrievalService进行空间检索。
|
|
3307
3919
|
*
|
|
3308
3920
|
* @tags retrieval
|
|
3309
3921
|
* @name RetrieveSpaceContent
|
|
@@ -3320,10 +3932,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3320
3932
|
* @request POST:/api/retrieval/
|
|
3321
3933
|
*/
|
|
3322
3934
|
retrieve: (data: IRetrievalRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
|
|
3935
|
+
/**
|
|
3936
|
+
* @description 因为 antvis 要对公网开放相关信息,故提供本单独接口
|
|
3937
|
+
*
|
|
3938
|
+
* @tags retrieval
|
|
3939
|
+
* @name AntvisRetrieve
|
|
3940
|
+
* @summary Context7 Antvis Retrieve
|
|
3941
|
+
* @request POST:/api/retrieval/context7/antvis
|
|
3942
|
+
*/
|
|
3943
|
+
antvisRetrieve: (data: IRetrievalRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
|
|
3323
3944
|
};
|
|
3324
3945
|
task: {
|
|
3325
3946
|
/**
|
|
3326
|
-
*
|
|
3947
|
+
* @description 重启任务 使用DDD架构的TaskCoordinationService进行任务重启并执行。 重试规则: 1. FAILED 或 CANCELED 状态的任务可以重试 2. 创建时间超过30分钟且未成功的任务可以重试
|
|
3327
3948
|
*
|
|
3328
3949
|
* @tags task
|
|
3329
3950
|
* @name RestartTask
|
|
@@ -3332,7 +3953,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3332
3953
|
*/
|
|
3333
3954
|
restartTask: (data: ITaskRestartRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListTask, void | IHTTPValidationError>>;
|
|
3334
3955
|
/**
|
|
3335
|
-
*
|
|
3956
|
+
* @description 取消任务 使用DDD架构的TaskService进行任务取消。
|
|
3336
3957
|
*
|
|
3337
3958
|
* @tags task
|
|
3338
3959
|
* @name CancelTask
|
|
@@ -3341,7 +3962,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3341
3962
|
*/
|
|
3342
3963
|
cancelTask: (data: ITaskRestartRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListTask, void | IHTTPValidationError>>;
|
|
3343
3964
|
/**
|
|
3344
|
-
*
|
|
3965
|
+
* @description 获取任务列表 使用DDD架构的TaskService进行分页查询。
|
|
3345
3966
|
*
|
|
3346
3967
|
* @tags task
|
|
3347
3968
|
* @name GetTaskList
|
|
@@ -3350,7 +3971,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3350
3971
|
*/
|
|
3351
3972
|
getTaskList: (data: IPageQueryParamsTask, params?: RequestParams) => Promise<HttpResponse<IResponseModelStatusStatisticsPageResponseTask, void | IHTTPValidationError>>;
|
|
3352
3973
|
/**
|
|
3353
|
-
*
|
|
3974
|
+
* @description 获取任务详情 使用DDD架构的TaskService获取任务详情。
|
|
3354
3975
|
*
|
|
3355
3976
|
* @tags task
|
|
3356
3977
|
* @name GetTaskDetail
|
|
@@ -3362,7 +3983,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3362
3983
|
task_id: string;
|
|
3363
3984
|
}, params?: RequestParams) => Promise<HttpResponse<IResponseModelTask, void | IHTTPValidationError>>;
|
|
3364
3985
|
/**
|
|
3365
|
-
*
|
|
3986
|
+
* @description 删除任务 使用DDD架构的TaskService进行任务删除。
|
|
3366
3987
|
*
|
|
3367
3988
|
* @tags task
|
|
3368
3989
|
* @name DeleteTaskById
|
|
@@ -3376,7 +3997,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3376
3997
|
};
|
|
3377
3998
|
chunk: {
|
|
3378
3999
|
/**
|
|
3379
|
-
*
|
|
4000
|
+
* @description 获取Chunk列表
|
|
3380
4001
|
*
|
|
3381
4002
|
* @tags chunk
|
|
3382
4003
|
* @name GetChunkList
|
|
@@ -3385,7 +4006,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3385
4006
|
*/
|
|
3386
4007
|
getChunkList: (data: IPageQueryParamsChunk, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseChunk, void | IHTTPValidationError>>;
|
|
3387
4008
|
/**
|
|
3388
|
-
*
|
|
4009
|
+
* @description 根据ID删除Chunk 使用DDD架构删除指定的Chunk。
|
|
3389
4010
|
*
|
|
3390
4011
|
* @tags chunk
|
|
3391
4012
|
* @name DeleteChunkById
|
|
@@ -3394,7 +4015,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3394
4015
|
*/
|
|
3395
4016
|
deleteChunkById: (id: string, modelName: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelObject, void | IHTTPValidationError>>;
|
|
3396
4017
|
/**
|
|
3397
|
-
*
|
|
4018
|
+
* @description 根据ID获取Chunk 使用DDD架构获取指定的Chunk详情。
|
|
3398
4019
|
*
|
|
3399
4020
|
* @tags chunk
|
|
3400
4021
|
* @name GetChunkById
|
|
@@ -3403,7 +4024,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3403
4024
|
*/
|
|
3404
4025
|
getChunkById: (id: string, modelName: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelChunk, void | IHTTPValidationError>>;
|
|
3405
4026
|
/**
|
|
3406
|
-
*
|
|
4027
|
+
* @description 添加Chunk 使用DDD架构创建新的Chunk。
|
|
3407
4028
|
*
|
|
3408
4029
|
* @tags chunk
|
|
3409
4030
|
* @name AddChunk
|
|
@@ -3412,7 +4033,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3412
4033
|
*/
|
|
3413
4034
|
addChunk: (data: IChunkSave, params?: RequestParams) => Promise<HttpResponse<IResponseModelChunk, void | IHTTPValidationError>>;
|
|
3414
4035
|
/**
|
|
3415
|
-
*
|
|
4036
|
+
* @description 更新Chunk 使用DDD架构更新指定的Chunk。
|
|
3416
4037
|
*
|
|
3417
4038
|
* @tags chunk
|
|
3418
4039
|
* @name UpdateChunk
|
|
@@ -3423,7 +4044,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3423
4044
|
};
|
|
3424
4045
|
tenant: {
|
|
3425
4046
|
/**
|
|
3426
|
-
*
|
|
4047
|
+
* @description 创建租户
|
|
3427
4048
|
*
|
|
3428
4049
|
* @tags tenant
|
|
3429
4050
|
* @name CreateTenant
|
|
@@ -3432,7 +4053,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3432
4053
|
*/
|
|
3433
4054
|
createTenant: (data: ITenantCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
|
|
3434
4055
|
/**
|
|
3435
|
-
*
|
|
4056
|
+
* @description 根据ID查询租户
|
|
3436
4057
|
*
|
|
3437
4058
|
* @tags tenant
|
|
3438
4059
|
* @name GetTenantById
|
|
@@ -3441,7 +4062,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3441
4062
|
*/
|
|
3442
4063
|
getTenantById: (id: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
|
|
3443
4064
|
/**
|
|
3444
|
-
*
|
|
4065
|
+
* @description 删除租户
|
|
3445
4066
|
*
|
|
3446
4067
|
* @tags tenant
|
|
3447
4068
|
* @name DeleteTenantById
|
|
@@ -3450,7 +4071,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3450
4071
|
*/
|
|
3451
4072
|
deleteTenantById: (id: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelObject, void | IHTTPValidationError>>;
|
|
3452
4073
|
/**
|
|
3453
|
-
*
|
|
4074
|
+
* @description 更新租户
|
|
3454
4075
|
*
|
|
3455
4076
|
* @tags tenant
|
|
3456
4077
|
* @name UpdateTenant
|
|
@@ -3459,7 +4080,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3459
4080
|
*/
|
|
3460
4081
|
updateTenant: (data: ITenantUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
|
|
3461
4082
|
/**
|
|
3462
|
-
*
|
|
4083
|
+
* @description 获取租户列表
|
|
3463
4084
|
*
|
|
3464
4085
|
* @tags tenant
|
|
3465
4086
|
* @name GetTenantList
|
|
@@ -3479,18 +4100,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3479
4100
|
page_size?: number;
|
|
3480
4101
|
}, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseTenant, void | IHTTPValidationError>>;
|
|
3481
4102
|
/**
|
|
3482
|
-
*
|
|
4103
|
+
* @description 获取当前租户信息 直接返回认证系统中的租户信息。 get_tenant_with_permissions 已经包含了完整的认证和权限检查。
|
|
3483
4104
|
*
|
|
3484
4105
|
* @tags tenant
|
|
3485
4106
|
* @name GetTenant
|
|
3486
4107
|
* @summary Get Tenant
|
|
3487
4108
|
* @request GET:/api/tenant/me
|
|
3488
4109
|
*/
|
|
3489
|
-
getTenant: (params?: RequestParams) => Promise<HttpResponse<
|
|
4110
|
+
getTenant: (params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
|
|
3490
4111
|
};
|
|
3491
4112
|
space: {
|
|
3492
4113
|
/**
|
|
3493
|
-
*
|
|
4114
|
+
* @description 获取空间列表 使用DDD架构的SpaceService进行分页查询,支持条件过滤和排序。
|
|
3494
4115
|
*
|
|
3495
4116
|
* @tags space
|
|
3496
4117
|
* @name GetSpaceList
|
|
@@ -3499,7 +4120,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3499
4120
|
*/
|
|
3500
4121
|
getSpaceList: (data: IPageQueryParamsSpace, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseSpaceResponse, void | IHTTPValidationError>>;
|
|
3501
4122
|
/**
|
|
3502
|
-
*
|
|
4123
|
+
* @description 创建空间,使用DDD架构创建新的空间,支持KIS集成和元数据配置。
|
|
3503
4124
|
*
|
|
3504
4125
|
* @tags space
|
|
3505
4126
|
* @name AddSpace
|
|
@@ -3508,7 +4129,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3508
4129
|
*/
|
|
3509
4130
|
addSpace: (data: ISpaceCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelSpaceResponse, void | IHTTPValidationError>>;
|
|
3510
4131
|
/**
|
|
3511
|
-
*
|
|
4132
|
+
* @description 删除空间,包括级联删除相关的知识、任务和向量数据。
|
|
3512
4133
|
*
|
|
3513
4134
|
* @tags space
|
|
3514
4135
|
* @name DeleteSpace
|
|
@@ -3517,16 +4138,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3517
4138
|
*/
|
|
3518
4139
|
deleteSpace: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3519
4140
|
/**
|
|
3520
|
-
*
|
|
4141
|
+
* @description 更新空间 使用DDD架构更新空间信息,支持KIS集成配置更新。
|
|
3521
4142
|
*
|
|
3522
4143
|
* @tags space
|
|
3523
4144
|
* @name UpdateSpace
|
|
3524
4145
|
* @summary Update Space
|
|
3525
4146
|
* @request PUT:/api/space/{space_id}
|
|
3526
4147
|
*/
|
|
3527
|
-
updateSpace: (spaceId: string, data:
|
|
4148
|
+
updateSpace: (spaceId: string, data: ISpaceUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelSpaceResponse, void | IHTTPValidationError>>;
|
|
3528
4149
|
/**
|
|
3529
|
-
*
|
|
4150
|
+
* @description 根据ID获取空间详情 使用DDD架构获取空间详细信息,包括统计数据。
|
|
3530
4151
|
*
|
|
3531
4152
|
* @tags space
|
|
3532
4153
|
* @name GetSpaceById
|
|
@@ -3537,7 +4158,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3537
4158
|
};
|
|
3538
4159
|
v1: {
|
|
3539
4160
|
/**
|
|
3540
|
-
*
|
|
4161
|
+
* @description 获取系统全局统计信息 使用DDD架构的DashboardService获取系统级别的统计数据。
|
|
3541
4162
|
*
|
|
3542
4163
|
* @tags dashboard
|
|
3543
4164
|
* @name GetGlobalInfo
|
|
@@ -3546,23 +4167,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3546
4167
|
*/
|
|
3547
4168
|
getGlobalInfo: (params?: RequestParams) => Promise<HttpResponse<IResponseModelGlobalInfo, void>>;
|
|
3548
4169
|
/**
|
|
3549
|
-
*
|
|
4170
|
+
* @description 获取租户日志 使用DDD架构的DashboardService获取租户级别的日志数据。 注意:改为POST方法以支持复杂的查询参数。
|
|
3550
4171
|
*
|
|
3551
4172
|
* @tags dashboard
|
|
3552
4173
|
* @name GetTenantLog
|
|
3553
4174
|
* @summary Get Tenant Log
|
|
3554
|
-
* @request
|
|
4175
|
+
* @request POST:/api/v1/dashboard/tenant_log
|
|
3555
4176
|
*/
|
|
3556
4177
|
getTenantLog: (data: ITenantLogQuery, params?: RequestParams) => Promise<HttpResponse<IResponseModelListTenantLog, void | IHTTPValidationError>>;
|
|
3557
|
-
/**
|
|
3558
|
-
* No description
|
|
3559
|
-
*
|
|
3560
|
-
* @tags agent
|
|
3561
|
-
* @name ProResearchApiV1AgentProResearchPost
|
|
3562
|
-
* @summary Pro Research
|
|
3563
|
-
* @request POST:/api/v1/agent/pro_research
|
|
3564
|
-
*/
|
|
3565
|
-
proResearchApiV1AgentProResearchPost: (data: IProResearchRequest, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
|
|
3566
4178
|
/**
|
|
3567
4179
|
* @description whisker 通用 webhook
|
|
3568
4180
|
*
|
|
@@ -3573,7 +4185,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3573
4185
|
*/
|
|
3574
4186
|
handleWebhookApiV1WebhookWebhookTypeSourceAuthInfoKnowledgeBaseIdPost: (webhookType: string, source: string, authInfo: string, knowledgeBaseId: string, data: Record<string, any>, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
|
|
3575
4187
|
/**
|
|
3576
|
-
*
|
|
4188
|
+
* @description 分页获取标签关联列表 使用DDD架构的TaggingService进行分页查询。
|
|
3577
4189
|
*
|
|
3578
4190
|
* @tags tagging
|
|
3579
4191
|
* @name GetTaggingList
|
|
@@ -3582,7 +4194,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3582
4194
|
*/
|
|
3583
4195
|
getTaggingList: (data: IPageQueryParamsTagging, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseTagging, void | IHTTPValidationError>>;
|
|
3584
4196
|
/**
|
|
3585
|
-
*
|
|
4197
|
+
* @description 批量新增标签关联 使用DDD架构创建新的标签关联列表。
|
|
3586
4198
|
*
|
|
3587
4199
|
* @tags tagging
|
|
3588
4200
|
* @name AddTaggingList
|
|
@@ -3591,7 +4203,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3591
4203
|
*/
|
|
3592
4204
|
addTaggingList: (data: ITaggingCreate[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListTagging, void | IHTTPValidationError>>;
|
|
3593
4205
|
/**
|
|
3594
|
-
*
|
|
4206
|
+
* @description 删除标签关联 使用DDD架构删除标签关联记录。
|
|
3595
4207
|
*
|
|
3596
4208
|
* @tags tagging
|
|
3597
4209
|
* @name DeleteTaggingById
|
|
@@ -3609,7 +4221,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3609
4221
|
*/
|
|
3610
4222
|
getTagList: (data: IPageQueryParamsTag, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseTag, void | IHTTPValidationError>>;
|
|
3611
4223
|
/**
|
|
3612
|
-
* @description 批量新增标签
|
|
4224
|
+
* @description 批量新增标签
|
|
3613
4225
|
*
|
|
3614
4226
|
* @tags tag
|
|
3615
4227
|
* @name AddTagList
|
|
@@ -3627,7 +4239,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3627
4239
|
*/
|
|
3628
4240
|
getTagById: (tagId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelTag, void | IHTTPValidationError>>;
|
|
3629
4241
|
/**
|
|
3630
|
-
*
|
|
4242
|
+
* @description 删除标签
|
|
3631
4243
|
*
|
|
3632
4244
|
* @tags tag
|
|
3633
4245
|
* @name DeleteTagById
|
|
@@ -3636,7 +4248,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3636
4248
|
*/
|
|
3637
4249
|
deleteTagById: (tagId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3638
4250
|
/**
|
|
3639
|
-
*
|
|
4251
|
+
* @description 更新标签
|
|
3640
4252
|
*
|
|
3641
4253
|
* @tags tag
|
|
3642
4254
|
* @name UpdateTag
|
|
@@ -3645,7 +4257,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3645
4257
|
*/
|
|
3646
4258
|
updateTag: (data: ITagUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelTag, void | IHTTPValidationError>>;
|
|
3647
4259
|
/**
|
|
3648
|
-
*
|
|
4260
|
+
* @description 分页获取工件列表 使用DDD架构的ArtifactService进行分页查询。
|
|
3649
4261
|
*
|
|
3650
4262
|
* @tags artifact
|
|
3651
4263
|
* @name GetArtifactList
|
|
@@ -3654,7 +4266,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3654
4266
|
*/
|
|
3655
4267
|
getArtifactList: (data: IPageQueryParamsArtifactIndex, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseArtifactIndex, void | IHTTPValidationError>>;
|
|
3656
4268
|
/**
|
|
3657
|
-
*
|
|
4269
|
+
* @description 批量新增工件 使用DDD架构创建新的工件列表。
|
|
3658
4270
|
*
|
|
3659
4271
|
* @tags artifact
|
|
3660
4272
|
* @name AddArtifactList
|
|
@@ -3663,7 +4275,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3663
4275
|
*/
|
|
3664
4276
|
addArtifactList: (data: IArtifactIndexCreate[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListArtifactIndex, void | IHTTPValidationError>>;
|
|
3665
4277
|
/**
|
|
3666
|
-
*
|
|
4278
|
+
* @description 获取工件详情 使用DDD架构获取工件详细信息。
|
|
3667
4279
|
*
|
|
3668
4280
|
* @tags artifact
|
|
3669
4281
|
* @name GetArtifactById
|
|
@@ -3672,7 +4284,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3672
4284
|
*/
|
|
3673
4285
|
getArtifactById: (artifactId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelArtifactIndex, void | IHTTPValidationError>>;
|
|
3674
4286
|
/**
|
|
3675
|
-
*
|
|
4287
|
+
* @description 删除工件 使用DDD架构删除工件记录。
|
|
3676
4288
|
*
|
|
3677
4289
|
* @tags artifact
|
|
3678
4290
|
* @name DeleteArtifactById
|
|
@@ -3681,18 +4293,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3681
4293
|
*/
|
|
3682
4294
|
deleteArtifactById: (artifactId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3683
4295
|
/**
|
|
3684
|
-
*
|
|
4296
|
+
* @description 更新工件空间绑定 使用DDD架构更新工件的空间关联。
|
|
3685
4297
|
*
|
|
3686
4298
|
* @tags artifact
|
|
3687
4299
|
* @name UpdateArtifactSpaceId
|
|
3688
4300
|
* @summary Update Artifact Space Id
|
|
3689
|
-
* @request POST:/api/v1/artifact/
|
|
4301
|
+
* @request POST:/api/v1/artifact/update/space_id
|
|
3690
4302
|
*/
|
|
3691
4303
|
updateArtifactSpaceId: (data: IArtifactSpaceUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelArtifactIndex, void | IHTTPValidationError>>;
|
|
3692
4304
|
};
|
|
3693
4305
|
rule: {
|
|
3694
4306
|
/**
|
|
3695
|
-
*
|
|
4307
|
+
* @description 获取租户全局规则 使用DDD架构的RuleService获取租户级别的规则配置。
|
|
3696
4308
|
*
|
|
3697
4309
|
* @tags rule
|
|
3698
4310
|
* @name GetGlobalRule
|
|
@@ -3701,7 +4313,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3701
4313
|
*/
|
|
3702
4314
|
getGlobalRule: (params?: RequestParams) => Promise<HttpResponse<IResponseModelStr, void | IHTTPValidationError>>;
|
|
3703
4315
|
/**
|
|
3704
|
-
*
|
|
4316
|
+
* @description 获取空间规则 使用DDD架构的RuleService获取空间级别的规则配置。
|
|
3705
4317
|
*
|
|
3706
4318
|
* @tags rule
|
|
3707
4319
|
* @name GetSpaceRule
|
|
@@ -3712,7 +4324,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3712
4324
|
};
|
|
3713
4325
|
apiKey: {
|
|
3714
4326
|
/**
|
|
3715
|
-
*
|
|
4327
|
+
* @description 创建API Key
|
|
3716
4328
|
*
|
|
3717
4329
|
* @tags api key
|
|
3718
4330
|
* @name CreateApiKey
|
|
@@ -3721,7 +4333,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3721
4333
|
*/
|
|
3722
4334
|
createApiKey: (data: IAPIKeyCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelAPIKey, void | IHTTPValidationError>>;
|
|
3723
4335
|
/**
|
|
3724
|
-
*
|
|
4336
|
+
* @description 更新API Key
|
|
3725
4337
|
*
|
|
3726
4338
|
* @tags api key
|
|
3727
4339
|
* @name UpdateApiKey
|
|
@@ -3730,7 +4342,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3730
4342
|
*/
|
|
3731
4343
|
updateApiKey: (data: IAPIKeyUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelAPIKey, void | IHTTPValidationError>>;
|
|
3732
4344
|
/**
|
|
3733
|
-
*
|
|
4345
|
+
* @description 获取API Key列表
|
|
3734
4346
|
*
|
|
3735
4347
|
* @tags api key
|
|
3736
4348
|
* @name GetApiKeyList
|
|
@@ -3739,7 +4351,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3739
4351
|
*/
|
|
3740
4352
|
getApiKeyList: (data: IPageQueryParamsAPIKey, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseAPIKey, void | IHTTPValidationError>>;
|
|
3741
4353
|
/**
|
|
3742
|
-
*
|
|
4354
|
+
* @description 删除API Key
|
|
3743
4355
|
*
|
|
3744
4356
|
* @tags api key
|
|
3745
4357
|
* @name DeleteApiKey
|
|
@@ -3748,7 +4360,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3748
4360
|
*/
|
|
3749
4361
|
deleteApiKey: (keyId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3750
4362
|
/**
|
|
3751
|
-
*
|
|
4363
|
+
* @description 更改API Key激活状态
|
|
3752
4364
|
*
|
|
3753
4365
|
* @tags api key
|
|
3754
4366
|
* @name DeactivateApiKey
|
|
@@ -3757,7 +4369,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3757
4369
|
*/
|
|
3758
4370
|
deactivateApiKey: (keyId: string, data: IActiveStatusUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3759
4371
|
/**
|
|
3760
|
-
*
|
|
4372
|
+
* @description 获取所有过期的API Key
|
|
3761
4373
|
*
|
|
3762
4374
|
* @tags api key
|
|
3763
4375
|
* @name GetAllExpiredApiKeys
|
|
@@ -3766,6 +4378,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3766
4378
|
*/
|
|
3767
4379
|
getAllExpiredApiKeys: (params?: RequestParams) => Promise<HttpResponse<IResponseModelListAPIKey, void | IHTTPValidationError>>;
|
|
3768
4380
|
};
|
|
4381
|
+
yuque: {
|
|
4382
|
+
/**
|
|
4383
|
+
* @description 代理语雀文档API,解决CORS问题 Args: doc_id: 语雀文档ID x_auth_token: 语雀OAuth Token (从请求头获取) Returns: 语雀文档详情
|
|
4384
|
+
*
|
|
4385
|
+
* @tags yuque
|
|
4386
|
+
* @name ProxyYuqueGetDoc
|
|
4387
|
+
* @summary Proxy Yuque Get Doc
|
|
4388
|
+
* @request GET:/api/yuque/repos/docs/{doc_id}
|
|
4389
|
+
*/
|
|
4390
|
+
proxyYuqueGetDoc: (docId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelAny, void | IHTTPValidationError>>;
|
|
4391
|
+
};
|
|
3769
4392
|
healthChecker: {
|
|
3770
4393
|
/**
|
|
3771
4394
|
* No description
|