@petercatai/whisker-client 0.0.1760329074-dev → 0.0.1761293285

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.
Files changed (3) hide show
  1. package/dist/api.d.ts +861 -401
  2. package/dist/api.js +55 -82
  3. package/package.json +4 -4
package/dist/api.d.ts CHANGED
@@ -127,14 +127,6 @@ export declare enum IKnowledgeSourceEnum {
127
127
  CloudStorageImage = "cloud_storage_image",
128
128
  Yuque = "yuque"
129
129
  }
130
- /** EmbeddingModelEnum */
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"
137
- }
138
130
  /** Action */
139
131
  export declare enum IAction {
140
132
  Create = "create",
@@ -144,17 +136,17 @@ export declare enum IAction {
144
136
  Value = "*"
145
137
  }
146
138
  /** APIKey */
147
- export interface IAPIKey {
139
+ export interface IAPIKeyInput {
148
140
  /**
149
141
  * Gmt Create
150
142
  * creation time
151
143
  */
152
- gmt_create?: string;
144
+ gmt_create?: string | null;
153
145
  /**
154
146
  * Gmt Modified
155
147
  * update time
156
148
  */
157
- gmt_modified?: string;
149
+ gmt_modified?: string | null;
158
150
  /**
159
151
  * Key Id
160
152
  * key id
@@ -205,32 +197,70 @@ export interface IAPIKey {
205
197
  */
206
198
  metadata?: Record<string, any> | null;
207
199
  }
208
- /** APIKeyCreate */
209
- export interface IAPIKeyCreate {
200
+ /** APIKey */
201
+ export interface IAPIKeyOutput {
202
+ /**
203
+ * Gmt Create
204
+ * creation time
205
+ */
206
+ gmt_create?: string | null;
207
+ /**
208
+ * Gmt Modified
209
+ * update time
210
+ */
211
+ gmt_modified?: string | null;
212
+ /**
213
+ * Key Id
214
+ * key id
215
+ */
216
+ key_id?: string;
217
+ /**
218
+ * Tenant Id
219
+ * tenant id
220
+ */
221
+ tenant_id: string;
210
222
  /**
211
223
  * Key Name
224
+ * key name
212
225
  * @default ""
213
226
  */
214
227
  key_name?: string;
215
- /** Description */
216
- description?: string | null;
217
- /** Permissions */
218
- permissions?: IPermission[];
228
+ /**
229
+ * Key Value
230
+ * key value
231
+ */
232
+ key_value: string;
233
+ /**
234
+ * Permissions
235
+ * permissions config
236
+ */
237
+ permissions?: Record<string, any>[];
219
238
  /**
220
239
  * Rate Limit
240
+ * rate limit per minute
241
+ * @min 0
221
242
  * @default 0
222
243
  */
223
- rate_limit?: number | null;
244
+ rate_limit?: number;
224
245
  /**
225
246
  * Expires At
226
- * Expiration time in ISO8601 format with timezone (e.g., 2024-12-31T23:59:59+00:00)
247
+ * expire time (UTC)
227
248
  */
228
249
  expires_at?: string | null;
229
- /** Metadata */
250
+ /**
251
+ * Is Active
252
+ * key status
253
+ * @default true
254
+ */
255
+ is_active?: boolean;
256
+ /**
257
+ * Metadata
258
+ * key metadata
259
+ */
230
260
  metadata?: Record<string, any> | null;
231
261
  }
232
- /** APIKeyUpdate */
233
- export interface IAPIKeyUpdate {
262
+ /** APIKeyCreate */
263
+ export interface IAPIKeyCreate {
234
264
  /**
235
265
  * Key Name
236
266
  * @default ""
@@ -252,8 +282,28 @@ export interface IAPIKeyUpdate {
252
282
  expires_at?: string | null;
253
283
  /** Metadata */
254
284
  metadata?: Record<string, any> | null;
285
+ }
286
+ /** APIKeyUpdate */
287
+ export interface IAPIKeyUpdate {
255
288
  /** Key Id */
256
289
  key_id: string;
290
+ /** Key Name */
291
+ key_name?: string | null;
292
+ /** Description */
293
+ description?: string | null;
294
+ /** Permissions */
295
+ permissions?: IPermission[] | null;
296
+ /** Rate Limit */
297
+ rate_limit?: number | null;
298
+ /**
299
+ * Expires At
300
+ * Expiration time in ISO8601 format with timezone (e.g., 2024-12-31T23:59:59+00:00)
301
+ */
302
+ expires_at?: string | null;
303
+ /** Is Active */
304
+ is_active?: boolean | null;
305
+ /** Metadata */
306
+ metadata?: Record<string, any> | null;
257
307
  }
258
308
  /** ActiveStatusUpdate */
259
309
  export interface IActiveStatusUpdate {
@@ -266,17 +316,68 @@ export interface IActiveStatusUpdate {
266
316
  * ArtifactIndex
267
317
  * whisker_artifact_index 模型
268
318
  */
269
- export interface IArtifactIndex {
319
+ export interface IArtifactIndexInput {
270
320
  /**
271
321
  * Gmt Create
272
322
  * creation time
273
323
  */
274
- gmt_create?: string;
324
+ gmt_create?: string | null;
275
325
  /**
276
326
  * Gmt Modified
277
327
  * update time
278
328
  */
279
- gmt_modified?: string;
329
+ gmt_modified?: string | null;
330
+ /**
331
+ * Ecosystem
332
+ * 制品来源生态系统(pypi / npm / maven / go / php)
333
+ * @maxLength 32
334
+ */
335
+ ecosystem: string;
336
+ /**
337
+ * Name
338
+ * 制品名(构建产物名,如 requests / @company/sdk)
339
+ * @maxLength 255
340
+ */
341
+ name: string;
342
+ /**
343
+ * Version
344
+ * 版本号(可为空)
345
+ */
346
+ version?: string | null;
347
+ /**
348
+ * Space Id
349
+ * 关联的 whisker_space.space_id
350
+ * @maxLength 255
351
+ * @pattern ^[A-Za-z0-9._@/-]{1,255}$
352
+ */
353
+ space_id: string;
354
+ /**
355
+ * Extra
356
+ * 额外元数据信息,扩展用,如构建参数、标签、扫描信息等
357
+ * @default {}
358
+ */
359
+ extra?: Record<string, any>;
360
+ /**
361
+ * Artifact Id
362
+ * 制品索引表主键(UUID字符串)
363
+ */
364
+ artifact_id?: string;
365
+ }
366
+ /**
367
+ * ArtifactIndex
368
+ * whisker_artifact_index 模型
369
+ */
370
+ export interface IArtifactIndexOutput {
371
+ /**
372
+ * Gmt Create
373
+ * creation time
374
+ */
375
+ gmt_create?: string | null;
376
+ /**
377
+ * Gmt Modified
378
+ * update time
379
+ */
380
+ gmt_modified?: string | null;
280
381
  /**
281
382
  * Ecosystem
282
383
  * 制品来源生态系统(pypi / npm / maven / go / php)
@@ -356,11 +457,6 @@ export interface IArtifactSpaceUpdate {
356
457
  /** New Space Id */
357
458
  new_space_id: string;
358
459
  }
359
- /** Audio */
360
- export interface IAudio {
361
- /** Id */
362
- id: string;
363
- }
364
460
  /**
365
461
  * BaseCharSplitConfig
366
462
  * Base char split configuration class
@@ -418,120 +514,107 @@ export interface IBaseCodeSplitConfig {
418
514
  */
419
515
  chunk_overlap?: number;
420
516
  }
421
- /** ChatCompletionAssistantMessageParam */
422
- export interface IChatCompletionAssistantMessageParam {
423
- /** Role */
424
- role: "assistant";
425
- audio?: IAudio | null;
426
- /** Content */
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?: (IChatCompletionMessageFunctionToolCallParam | IChatCompletionMessageCustomToolCallParam)[];
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
- /** ChatCompletionMessageCustomToolCallParam */
481
- export interface IChatCompletionMessageCustomToolCallParam {
482
- /** Id */
483
- id: string;
484
- custom: ICustom;
485
- /** Type */
486
- type: "custom";
487
- }
488
- /** ChatCompletionMessageFunctionToolCallParam */
489
- export interface IChatCompletionMessageFunctionToolCallParam {
490
- /** Id */
491
- id: string;
492
- function: IFunction;
493
- /** Type */
494
- type: "function";
495
- }
496
- /** ChatCompletionSystemMessageParam */
497
- export interface IChatCompletionSystemMessageParam {
498
- /** Content */
499
- content: string | IChatCompletionContentPartTextParam[];
500
- /** Role */
501
- role: "system";
502
- /** Name */
503
- name?: string;
504
- }
505
- /** ChatCompletionToolMessageParam */
506
- export interface IChatCompletionToolMessageParam {
507
- /** Content */
508
- content: string | IChatCompletionContentPartTextParam[];
509
- /** Role */
510
- role: "tool";
511
- /** Tool Call Id */
512
- tool_call_id: string;
513
- }
514
- /** ChatCompletionUserMessageParam */
515
- export interface IChatCompletionUserMessageParam {
516
- /** Content */
517
- content: string | (IChatCompletionContentPartTextParam | IChatCompletionContentPartImageParam | IChatCompletionContentPartInputAudioParam | IFile)[];
518
- /** Role */
519
- role: "user";
520
- /** Name */
521
- name?: string;
517
+ /** Chunk */
518
+ export interface IChunkInput {
519
+ /**
520
+ * Gmt Create
521
+ * creation time
522
+ */
523
+ gmt_create?: string | null;
524
+ /**
525
+ * Gmt Modified
526
+ * update time
527
+ */
528
+ gmt_modified?: string | null;
529
+ /**
530
+ * Chunk Id
531
+ * chunk id
532
+ */
533
+ chunk_id?: string;
534
+ /**
535
+ * Space Id
536
+ * space id
537
+ */
538
+ space_id: string;
539
+ /**
540
+ * Tenant Id
541
+ * tenant id
542
+ */
543
+ tenant_id: string;
544
+ /**
545
+ * Embedding
546
+ * chunk embedding
547
+ */
548
+ embedding?: number[] | null;
549
+ /**
550
+ * Context
551
+ * chunk content
552
+ */
553
+ context: string;
554
+ /**
555
+ * Knowledge Id
556
+ * file source info
557
+ */
558
+ knowledge_id: string;
559
+ /**
560
+ * Enabled
561
+ * is chunk enabled
562
+ * @default true
563
+ */
564
+ enabled?: boolean;
565
+ /**
566
+ * Embedding Model Name
567
+ * name of the embedding model
568
+ */
569
+ embedding_model_name: string;
570
+ /**
571
+ * Metadata
572
+ * Arbitrary metadata associated with the content.
573
+ */
574
+ metadata?: Record<string, any> | null;
575
+ /**
576
+ * Tags
577
+ * Tags from knowledge.metadata._tags
578
+ */
579
+ tags?: string[] | null;
580
+ /**
581
+ * F1
582
+ * Field 1 from knowledge.metadata._f1
583
+ */
584
+ f1?: string | null;
585
+ /**
586
+ * F2
587
+ * Field 2 from knowledge.metadata._f2
588
+ */
589
+ f2?: string | null;
590
+ /**
591
+ * F3
592
+ * Field 3 from knowledge.metadata._f3
593
+ */
594
+ f3?: string | null;
595
+ /**
596
+ * F4
597
+ * Field 4 from knowledge.metadata._f4
598
+ */
599
+ f4?: string | null;
600
+ /**
601
+ * F5
602
+ * Field 5 from knowledge.metadata._f5
603
+ */
604
+ f5?: string | null;
522
605
  }
523
606
  /** Chunk */
524
- export interface IChunk {
607
+ export interface IChunkOutput {
525
608
  /**
526
609
  * Gmt Create
527
610
  * creation time
528
611
  */
529
- gmt_create?: string;
612
+ gmt_create?: string | null;
530
613
  /**
531
614
  * Gmt Modified
532
615
  * update time
533
616
  */
534
- gmt_modified?: string;
617
+ gmt_modified?: string | null;
535
618
  /**
536
619
  * Chunk Id
537
620
  * chunk id
@@ -572,7 +655,7 @@ export interface IChunk {
572
655
  * Embedding Model Name
573
656
  * name of the embedding model
574
657
  */
575
- embedding_model_name?: string;
658
+ embedding_model_name: string;
576
659
  /**
577
660
  * Metadata
578
661
  * Arbitrary metadata associated with the content.
@@ -621,11 +704,23 @@ export interface IChunkSave {
621
704
  embedding_model_name: string;
622
705
  /** Metadata */
623
706
  metadata?: Record<string, any> | null;
707
+ /** Tags */
708
+ tags?: string[] | null;
709
+ /** F1 */
710
+ f1?: string | null;
711
+ /** F2 */
712
+ f2?: string | null;
713
+ /** F3 */
714
+ f3?: string | null;
715
+ /** F4 */
716
+ f4?: string | null;
717
+ /** F5 */
718
+ f5?: string | null;
624
719
  }
625
720
  /** ChunkUpdate */
626
721
  export interface IChunkUpdate {
627
722
  /** Chunk Id */
628
- chunk_id?: string;
723
+ chunk_id?: string | null;
629
724
  /** Context */
630
725
  context?: string | null;
631
726
  /** Embedding Model Name */
@@ -642,13 +737,6 @@ export interface ICondition {
642
737
  /** Value */
643
738
  value: any;
644
739
  }
645
- /** Custom */
646
- export interface ICustom {
647
- /** Input */
648
- input: string;
649
- /** Name */
650
- name: string;
651
- }
652
740
  /** EnableStatusUpdate */
653
741
  export interface IEnableStatusUpdate {
654
742
  /** Knowledge Id */
@@ -656,41 +744,12 @@ export interface IEnableStatusUpdate {
656
744
  /** Status */
657
745
  status: boolean;
658
746
  }
659
- /** File */
660
- export interface IFile {
661
- file: IFileFile;
662
- /** Type */
663
- type: "file";
664
- }
665
- /** FileFile */
666
- export interface IFileFile {
667
- /** File Data */
668
- file_data?: string;
669
- /** File Id */
670
- file_id?: string;
671
- /** Filename */
672
- filename?: string;
673
- }
674
747
  /** FilterGroup */
675
748
  export interface IFilterGroup {
676
749
  operator: IOperator;
677
750
  /** Conditions */
678
751
  conditions: (ICondition | IFilterGroup)[];
679
752
  }
680
- /** Function */
681
- export interface IFunction {
682
- /** Arguments */
683
- arguments: string;
684
- /** Name */
685
- name: string;
686
- }
687
- /** FunctionCall */
688
- export interface IFunctionCall {
689
- /** Arguments */
690
- arguments: string;
691
- /** Name */
692
- name: string;
693
- }
694
753
  /**
695
754
  * GeaGraphSplitConfig
696
755
  * JSON document split configuration
@@ -772,9 +831,8 @@ export interface IGithubRepoCreate {
772
831
  /**
773
832
  * Embedding Model Name
774
833
  * name of the embedding model. you can set any other model if target embedding service registered
775
- * @default "openai"
776
834
  */
777
- embedding_model_name?: IEmbeddingModelEnum | string;
835
+ embedding_model_name: string;
778
836
  /**
779
837
  * File Sha
780
838
  * SHA of the file
@@ -922,9 +980,8 @@ export interface IImageCreate {
922
980
  /**
923
981
  * Embedding Model Name
924
982
  * name of the embedding model. you can set any other model if target embedding service registered
925
- * @default "openai"
926
983
  */
927
- embedding_model_name?: IEmbeddingModelEnum | string;
984
+ embedding_model_name: string;
928
985
  /**
929
986
  * File Sha
930
987
  * SHA of the file, if source_type is cloud_storage_text, this field is the sha of the text file
@@ -959,20 +1016,6 @@ export interface IImageSplitConfig {
959
1016
  */
960
1017
  type?: "image";
961
1018
  }
962
- /** ImageURL */
963
- export interface IImageURL {
964
- /** Url */
965
- url: string;
966
- /** Detail */
967
- detail?: "auto" | "low" | "high";
968
- }
969
- /** InputAudio */
970
- export interface IInputAudio {
971
- /** Data */
972
- data: string;
973
- /** Format */
974
- format: "wav" | "mp3";
975
- }
976
1019
  /** JSONCreate */
977
1020
  export interface IJSONCreate {
978
1021
  /**
@@ -1003,9 +1046,8 @@ export interface IJSONCreate {
1003
1046
  /**
1004
1047
  * Embedding Model Name
1005
1048
  * name of the embedding model. you can set any other model if target embedding service registered
1006
- * @default "openai"
1007
1049
  */
1008
- embedding_model_name?: IEmbeddingModelEnum | string;
1050
+ embedding_model_name: string;
1009
1051
  /**
1010
1052
  * File Sha
1011
1053
  * SHA of the file
@@ -1105,9 +1147,8 @@ export interface IKnowledgeInput {
1105
1147
  /**
1106
1148
  * Embedding Model Name
1107
1149
  * name of the embedding model. you can set any other model if target embedding service registered
1108
- * @default "openai"
1109
1150
  */
1110
- embedding_model_name?: IEmbeddingModelEnum | string;
1151
+ embedding_model_name: string;
1111
1152
  /**
1112
1153
  * Split Config
1113
1154
  * configuration for splitting the knowledge
@@ -1153,12 +1194,12 @@ export interface IKnowledgeOutput {
1153
1194
  * Gmt Create
1154
1195
  * creation time
1155
1196
  */
1156
- gmt_create?: string;
1197
+ gmt_create?: string | null;
1157
1198
  /**
1158
1199
  * Gmt Modified
1159
1200
  * update time
1160
1201
  */
1161
- gmt_modified?: string;
1202
+ gmt_modified?: string | null;
1162
1203
  /**
1163
1204
  * Knowledge Id
1164
1205
  * knowledge id
@@ -1193,7 +1234,7 @@ export interface IKnowledgeOutput {
1193
1234
  * Embedding Model Name
1194
1235
  * name of the embedding model. you can set any other model if target embedding service registered
1195
1236
  */
1196
- embedding_model_name?: string;
1237
+ embedding_model_name: string;
1197
1238
  /**
1198
1239
  * Split Config
1199
1240
  * configuration for splitting the knowledge
@@ -1232,13 +1273,6 @@ export interface IKnowledgeOutput {
1232
1273
  */
1233
1274
  enabled?: boolean;
1234
1275
  }
1235
- /** KnowledgeScope */
1236
- export interface IKnowledgeScope {
1237
- /** Space Ids */
1238
- space_ids?: string[] | null;
1239
- /** Auth Info */
1240
- auth_info: string;
1241
- }
1242
1276
  /** MarkdownCreate */
1243
1277
  export interface IMarkdownCreate {
1244
1278
  /**
@@ -1269,9 +1303,8 @@ export interface IMarkdownCreate {
1269
1303
  /**
1270
1304
  * Embedding Model Name
1271
1305
  * name of the embedding model. you can set any other model if target embedding service registered
1272
- * @default "openai"
1273
1306
  */
1274
- embedding_model_name?: IEmbeddingModelEnum | string;
1307
+ embedding_model_name: string;
1275
1308
  /**
1276
1309
  * File Sha
1277
1310
  * SHA of the file
@@ -1395,9 +1428,8 @@ export interface IPDFCreate {
1395
1428
  /**
1396
1429
  * Embedding Model Name
1397
1430
  * name of the embedding model. you can set any other model if target embedding service registered
1398
- * @default "openai"
1399
1431
  */
1400
- embedding_model_name?: IEmbeddingModelEnum | string;
1432
+ embedding_model_name: string;
1401
1433
  /**
1402
1434
  * File Sha
1403
1435
  * SHA of the file
@@ -1762,10 +1794,88 @@ export interface IPageQueryParamsTask {
1762
1794
  */
1763
1795
  page_size?: number;
1764
1796
  }
1765
- /** PageResponse[APIKey] */
1766
- export interface IPageResponseAPIKey {
1797
+ /** PageResponse[APIKey] */
1798
+ export interface IPageResponseAPIKeyInput {
1799
+ /** Items */
1800
+ items: IAPIKeyInput[];
1801
+ /** Total */
1802
+ total: number;
1803
+ /** Page */
1804
+ page: number;
1805
+ /** Page Size */
1806
+ page_size: number;
1807
+ /** Total Pages */
1808
+ total_pages: number;
1809
+ }
1810
+ /** PageResponse[APIKey] */
1811
+ export interface IPageResponseAPIKeyOutput {
1812
+ /** Items */
1813
+ items: IAPIKeyOutput[];
1814
+ /** Total */
1815
+ total: number;
1816
+ /** Page */
1817
+ page: number;
1818
+ /** Page Size */
1819
+ page_size: number;
1820
+ /** Total Pages */
1821
+ total_pages: number;
1822
+ }
1823
+ /** PageResponse[ArtifactIndex] */
1824
+ export interface IPageResponseArtifactIndexInput {
1825
+ /** Items */
1826
+ items: IArtifactIndexInput[];
1827
+ /** Total */
1828
+ total: number;
1829
+ /** Page */
1830
+ page: number;
1831
+ /** Page Size */
1832
+ page_size: number;
1833
+ /** Total Pages */
1834
+ total_pages: number;
1835
+ }
1836
+ /** PageResponse[ArtifactIndex] */
1837
+ export interface IPageResponseArtifactIndexOutput {
1838
+ /** Items */
1839
+ items: IArtifactIndexOutput[];
1840
+ /** Total */
1841
+ total: number;
1842
+ /** Page */
1843
+ page: number;
1844
+ /** Page Size */
1845
+ page_size: number;
1846
+ /** Total Pages */
1847
+ total_pages: number;
1848
+ }
1849
+ /** PageResponse[Chunk] */
1850
+ export interface IPageResponseChunkInput {
1851
+ /** Items */
1852
+ items: IChunkInput[];
1853
+ /** Total */
1854
+ total: number;
1855
+ /** Page */
1856
+ page: number;
1857
+ /** Page Size */
1858
+ page_size: number;
1859
+ /** Total Pages */
1860
+ total_pages: number;
1861
+ }
1862
+ /** PageResponse[Chunk] */
1863
+ export interface IPageResponseChunkOutput {
1864
+ /** Items */
1865
+ items: IChunkOutput[];
1866
+ /** Total */
1867
+ total: number;
1868
+ /** Page */
1869
+ page: number;
1870
+ /** Page Size */
1871
+ page_size: number;
1872
+ /** Total Pages */
1873
+ total_pages: number;
1874
+ }
1875
+ /** PageResponse[Knowledge] */
1876
+ export interface IPageResponseKnowledgeInput {
1767
1877
  /** Items */
1768
- items: IAPIKey[];
1878
+ items: IKnowledgeInput[];
1769
1879
  /** Total */
1770
1880
  total: number;
1771
1881
  /** Page */
@@ -1775,10 +1885,10 @@ export interface IPageResponseAPIKey {
1775
1885
  /** Total Pages */
1776
1886
  total_pages: number;
1777
1887
  }
1778
- /** PageResponse[ArtifactIndex] */
1779
- export interface IPageResponseArtifactIndex {
1888
+ /** PageResponse[Knowledge] */
1889
+ export interface IPageResponseKnowledgeOutput {
1780
1890
  /** Items */
1781
- items: IArtifactIndex[];
1891
+ items: IKnowledgeOutput[];
1782
1892
  /** Total */
1783
1893
  total: number;
1784
1894
  /** Page */
@@ -1788,10 +1898,10 @@ export interface IPageResponseArtifactIndex {
1788
1898
  /** Total Pages */
1789
1899
  total_pages: number;
1790
1900
  }
1791
- /** PageResponse[Chunk] */
1792
- export interface IPageResponseChunk {
1901
+ /** PageResponse[SpaceResponse] */
1902
+ export interface IPageResponseSpaceResponseInput {
1793
1903
  /** Items */
1794
- items: IChunk[];
1904
+ items: ISpaceResponseInput[];
1795
1905
  /** Total */
1796
1906
  total: number;
1797
1907
  /** Page */
@@ -1801,10 +1911,10 @@ export interface IPageResponseChunk {
1801
1911
  /** Total Pages */
1802
1912
  total_pages: number;
1803
1913
  }
1804
- /** PageResponse[Knowledge] */
1805
- export interface IPageResponseKnowledge {
1914
+ /** PageResponse[SpaceResponse] */
1915
+ export interface IPageResponseSpaceResponseOutput {
1806
1916
  /** Items */
1807
- items: IKnowledgeOutput[];
1917
+ items: ISpaceResponseOutput[];
1808
1918
  /** Total */
1809
1919
  total: number;
1810
1920
  /** Page */
@@ -1814,10 +1924,10 @@ export interface IPageResponseKnowledge {
1814
1924
  /** Total Pages */
1815
1925
  total_pages: number;
1816
1926
  }
1817
- /** PageResponse[SpaceResponse] */
1818
- export interface IPageResponseSpaceResponse {
1927
+ /** PageResponse[Tag] */
1928
+ export interface IPageResponseTagInput {
1819
1929
  /** Items */
1820
- items: ISpaceResponse[];
1930
+ items: ITagInput[];
1821
1931
  /** Total */
1822
1932
  total: number;
1823
1933
  /** Page */
@@ -1828,9 +1938,22 @@ export interface IPageResponseSpaceResponse {
1828
1938
  total_pages: number;
1829
1939
  }
1830
1940
  /** PageResponse[Tag] */
1831
- export interface IPageResponseTag {
1941
+ export interface IPageResponseTagOutput {
1942
+ /** Items */
1943
+ items: ITagOutput[];
1944
+ /** Total */
1945
+ total: number;
1946
+ /** Page */
1947
+ page: number;
1948
+ /** Page Size */
1949
+ page_size: number;
1950
+ /** Total Pages */
1951
+ total_pages: number;
1952
+ }
1953
+ /** PageResponse[Tagging] */
1954
+ export interface IPageResponseTaggingInput {
1832
1955
  /** Items */
1833
- items: ITag[];
1956
+ items: ITaggingInput[];
1834
1957
  /** Total */
1835
1958
  total: number;
1836
1959
  /** Page */
@@ -1841,9 +1964,22 @@ export interface IPageResponseTag {
1841
1964
  total_pages: number;
1842
1965
  }
1843
1966
  /** PageResponse[Tagging] */
1844
- export interface IPageResponseTagging {
1967
+ export interface IPageResponseTaggingOutput {
1968
+ /** Items */
1969
+ items: ITaggingOutput[];
1970
+ /** Total */
1971
+ total: number;
1972
+ /** Page */
1973
+ page: number;
1974
+ /** Page Size */
1975
+ page_size: number;
1976
+ /** Total Pages */
1977
+ total_pages: number;
1978
+ }
1979
+ /** PageResponse[Tenant] */
1980
+ export interface IPageResponseTenantInput {
1845
1981
  /** Items */
1846
- items: ITagging[];
1982
+ items: ITenantInput[];
1847
1983
  /** Total */
1848
1984
  total: number;
1849
1985
  /** Page */
@@ -1854,9 +1990,9 @@ export interface IPageResponseTagging {
1854
1990
  total_pages: number;
1855
1991
  }
1856
1992
  /** PageResponse[Tenant] */
1857
- export interface IPageResponseTenant {
1993
+ export interface IPageResponseTenantOutput {
1858
1994
  /** Items */
1859
- items: ITenant[];
1995
+ items: ITenantOutput[];
1860
1996
  /** Total */
1861
1997
  total: number;
1862
1998
  /** Page */
@@ -1874,53 +2010,6 @@ export interface IPermission {
1874
2010
  /** Conditions */
1875
2011
  conditions?: Record<string, any> | null;
1876
2012
  }
1877
- /** ProResearchRequest */
1878
- export interface IProResearchRequest {
1879
- /**
1880
- * Messages
1881
- * The messages to be sent to the agent.
1882
- * @default []
1883
- */
1884
- messages?: (IChatCompletionDeveloperMessageParam | IChatCompletionSystemMessageParam | IChatCompletionUserMessageParam | IChatCompletionAssistantMessageParam | IChatCompletionToolMessageParam | IChatCompletionFunctionMessageParam)[];
1885
- /**
1886
- * Model
1887
- * The name of the language model to use for the agent's query generation.
1888
- * @default "wohu_qwen3_235b_a22b"
1889
- */
1890
- model?: string;
1891
- /**
1892
- * Number Of Initial Queries
1893
- * The number of initial search queries to generate.
1894
- * @default 3
1895
- */
1896
- number_of_initial_queries?: number;
1897
- /**
1898
- * Max Research Loops
1899
- * The maximum number of research loops to perform.
1900
- * @default 2
1901
- */
1902
- max_research_loops?: number;
1903
- /**
1904
- * Enable Knowledge Retrieval
1905
- * Whether to enable knowledge retrieval functionality.
1906
- * @default true
1907
- */
1908
- enable_knowledge_retrieval?: boolean;
1909
- /**
1910
- * Enable Web Search
1911
- * Whether to enable web search functionality.
1912
- * @default false
1913
- */
1914
- enable_web_search?: boolean;
1915
- /**
1916
- * Knowledge Scope List
1917
- * List of knowledge scopes to search within.
1918
- * @default []
1919
- */
1920
- knowledge_scope_list?: IKnowledgeScope[];
1921
- /** Knowledge retrieval configuration. */
1922
- knowledge_retrieval_config?: IRetrievalConfig | null;
1923
- }
1924
2013
  /** QACreate */
1925
2014
  export interface IQACreate {
1926
2015
  /**
@@ -1955,9 +2044,8 @@ export interface IQACreate {
1955
2044
  /**
1956
2045
  * Embedding Model Name
1957
2046
  * name of the embedding model. you can set any other model if target embedding service registered
1958
- * @default "openai"
1959
2047
  */
1960
- embedding_model_name?: IEmbeddingModelEnum | string;
2048
+ embedding_model_name: string;
1961
2049
  /**
1962
2050
  * File Sha
1963
2051
  * SHA of the file
@@ -2001,7 +2089,7 @@ export interface IResponseModel {
2001
2089
  export interface IResponseModelAPIKey {
2002
2090
  /** Success */
2003
2091
  success: boolean;
2004
- data?: IAPIKey | null;
2092
+ data?: IAPIKeyOutput | null;
2005
2093
  /** Message */
2006
2094
  message?: string | null;
2007
2095
  }
@@ -2009,7 +2097,7 @@ export interface IResponseModelAPIKey {
2009
2097
  export interface IResponseModelArtifactIndex {
2010
2098
  /** Success */
2011
2099
  success: boolean;
2012
- data?: IArtifactIndex | null;
2100
+ data?: IArtifactIndexOutput | null;
2013
2101
  /** Message */
2014
2102
  message?: string | null;
2015
2103
  }
@@ -2017,7 +2105,7 @@ export interface IResponseModelArtifactIndex {
2017
2105
  export interface IResponseModelChunk {
2018
2106
  /** Success */
2019
2107
  success: boolean;
2020
- data?: IChunk | null;
2108
+ data?: IChunkOutput | null;
2021
2109
  /** Message */
2022
2110
  message?: string | null;
2023
2111
  }
@@ -2042,7 +2130,7 @@ export interface IResponseModelListAPIKey {
2042
2130
  /** Success */
2043
2131
  success: boolean;
2044
2132
  /** Data */
2045
- data?: IAPIKey[] | null;
2133
+ data?: IAPIKeyOutput[] | null;
2046
2134
  /** Message */
2047
2135
  message?: string | null;
2048
2136
  }
@@ -2051,7 +2139,7 @@ export interface IResponseModelListArtifactIndex {
2051
2139
  /** Success */
2052
2140
  success: boolean;
2053
2141
  /** Data */
2054
- data?: IArtifactIndex[] | null;
2142
+ data?: IArtifactIndexOutput[] | null;
2055
2143
  /** Message */
2056
2144
  message?: string | null;
2057
2145
  }
@@ -2069,7 +2157,7 @@ export interface IResponseModelListRetrievalChunk {
2069
2157
  /** Success */
2070
2158
  success: boolean;
2071
2159
  /** Data */
2072
- data?: IRetrievalChunk[] | null;
2160
+ data?: IRetrievalChunkOutput[] | null;
2073
2161
  /** Message */
2074
2162
  message?: string | null;
2075
2163
  }
@@ -2078,7 +2166,7 @@ export interface IResponseModelListTag {
2078
2166
  /** Success */
2079
2167
  success: boolean;
2080
2168
  /** Data */
2081
- data?: ITag[] | null;
2169
+ data?: ITagOutput[] | null;
2082
2170
  /** Message */
2083
2171
  message?: string | null;
2084
2172
  }
@@ -2087,7 +2175,7 @@ export interface IResponseModelListTagging {
2087
2175
  /** Success */
2088
2176
  success: boolean;
2089
2177
  /** Data */
2090
- data?: ITagging[] | null;
2178
+ data?: ITaggingOutput[] | null;
2091
2179
  /** Message */
2092
2180
  message?: string | null;
2093
2181
  }
@@ -2096,7 +2184,7 @@ export interface IResponseModelListTask {
2096
2184
  /** Success */
2097
2185
  success: boolean;
2098
2186
  /** Data */
2099
- data?: ITask[] | null;
2187
+ data?: ITaskOutput[] | null;
2100
2188
  /** Message */
2101
2189
  message?: string | null;
2102
2190
  }
@@ -2122,7 +2210,7 @@ export interface IResponseModelNoneType {
2122
2210
  export interface IResponseModelPageResponseAPIKey {
2123
2211
  /** Success */
2124
2212
  success: boolean;
2125
- data?: IPageResponseAPIKey | null;
2213
+ data?: IPageResponseAPIKeyOutput | null;
2126
2214
  /** Message */
2127
2215
  message?: string | null;
2128
2216
  }
@@ -2130,7 +2218,7 @@ export interface IResponseModelPageResponseAPIKey {
2130
2218
  export interface IResponseModelPageResponseArtifactIndex {
2131
2219
  /** Success */
2132
2220
  success: boolean;
2133
- data?: IPageResponseArtifactIndex | null;
2221
+ data?: IPageResponseArtifactIndexOutput | null;
2134
2222
  /** Message */
2135
2223
  message?: string | null;
2136
2224
  }
@@ -2138,7 +2226,7 @@ export interface IResponseModelPageResponseArtifactIndex {
2138
2226
  export interface IResponseModelPageResponseChunk {
2139
2227
  /** Success */
2140
2228
  success: boolean;
2141
- data?: IPageResponseChunk | null;
2229
+ data?: IPageResponseChunkOutput | null;
2142
2230
  /** Message */
2143
2231
  message?: string | null;
2144
2232
  }
@@ -2146,7 +2234,7 @@ export interface IResponseModelPageResponseChunk {
2146
2234
  export interface IResponseModelPageResponseKnowledge {
2147
2235
  /** Success */
2148
2236
  success: boolean;
2149
- data?: IPageResponseKnowledge | null;
2237
+ data?: IPageResponseKnowledgeOutput | null;
2150
2238
  /** Message */
2151
2239
  message?: string | null;
2152
2240
  }
@@ -2154,7 +2242,7 @@ export interface IResponseModelPageResponseKnowledge {
2154
2242
  export interface IResponseModelPageResponseSpaceResponse {
2155
2243
  /** Success */
2156
2244
  success: boolean;
2157
- data?: IPageResponseSpaceResponse | null;
2245
+ data?: IPageResponseSpaceResponseOutput | null;
2158
2246
  /** Message */
2159
2247
  message?: string | null;
2160
2248
  }
@@ -2162,7 +2250,7 @@ export interface IResponseModelPageResponseSpaceResponse {
2162
2250
  export interface IResponseModelPageResponseTag {
2163
2251
  /** Success */
2164
2252
  success: boolean;
2165
- data?: IPageResponseTag | null;
2253
+ data?: IPageResponseTagOutput | null;
2166
2254
  /** Message */
2167
2255
  message?: string | null;
2168
2256
  }
@@ -2170,7 +2258,7 @@ export interface IResponseModelPageResponseTag {
2170
2258
  export interface IResponseModelPageResponseTagging {
2171
2259
  /** Success */
2172
2260
  success: boolean;
2173
- data?: IPageResponseTagging | null;
2261
+ data?: IPageResponseTaggingOutput | null;
2174
2262
  /** Message */
2175
2263
  message?: string | null;
2176
2264
  }
@@ -2178,7 +2266,7 @@ export interface IResponseModelPageResponseTagging {
2178
2266
  export interface IResponseModelPageResponseTenant {
2179
2267
  /** Success */
2180
2268
  success: boolean;
2181
- data?: IPageResponseTenant | null;
2269
+ data?: IPageResponseTenantOutput | null;
2182
2270
  /** Message */
2183
2271
  message?: string | null;
2184
2272
  }
@@ -2186,7 +2274,7 @@ export interface IResponseModelPageResponseTenant {
2186
2274
  export interface IResponseModelSpaceResponse {
2187
2275
  /** Success */
2188
2276
  success: boolean;
2189
- data?: ISpaceResponse | null;
2277
+ data?: ISpaceResponseOutput | null;
2190
2278
  /** Message */
2191
2279
  message?: string | null;
2192
2280
  }
@@ -2194,7 +2282,7 @@ export interface IResponseModelSpaceResponse {
2194
2282
  export interface IResponseModelStatusStatisticsPageResponseTask {
2195
2283
  /** Success */
2196
2284
  success: boolean;
2197
- data?: IStatusStatisticsPageResponseTask | null;
2285
+ data?: IStatusStatisticsPageResponseTaskOutput | null;
2198
2286
  /** Message */
2199
2287
  message?: string | null;
2200
2288
  }
@@ -2202,7 +2290,7 @@ export interface IResponseModelStatusStatisticsPageResponseTask {
2202
2290
  export interface IResponseModelTag {
2203
2291
  /** Success */
2204
2292
  success: boolean;
2205
- data?: ITag | null;
2293
+ data?: ITagOutput | null;
2206
2294
  /** Message */
2207
2295
  message?: string | null;
2208
2296
  }
@@ -2210,7 +2298,7 @@ export interface IResponseModelTag {
2210
2298
  export interface IResponseModelTask {
2211
2299
  /** Success */
2212
2300
  success: boolean;
2213
- data?: ITask | null;
2301
+ data?: ITaskOutput | null;
2214
2302
  /** Message */
2215
2303
  message?: string | null;
2216
2304
  }
@@ -2218,7 +2306,7 @@ export interface IResponseModelTask {
2218
2306
  export interface IResponseModelTenant {
2219
2307
  /** Success */
2220
2308
  success: boolean;
2221
- data?: ITenant | null;
2309
+ data?: ITenantOutput | null;
2222
2310
  /** Message */
2223
2311
  message?: string | null;
2224
2312
  }
@@ -2246,7 +2334,7 @@ export interface IRetrievalByKnowledgeRequest {
2246
2334
  * Embedding Model Name
2247
2335
  * The name of the embedding model
2248
2336
  */
2249
- embedding_model_name: IEmbeddingModelEnum | string;
2337
+ embedding_model_name: string;
2250
2338
  /**
2251
2339
  * Similarity Threshold
2252
2340
  * The similarity threshold, ranging from 0.0 to 1.0.
@@ -2285,7 +2373,7 @@ export interface IRetrievalBySpaceRequest {
2285
2373
  * Embedding Model Name
2286
2374
  * The name of the embedding model
2287
2375
  */
2288
- embedding_model_name: IEmbeddingModelEnum | string;
2376
+ embedding_model_name: string;
2289
2377
  /**
2290
2378
  * Similarity Threshold
2291
2379
  * The similarity threshold, ranging from 0.0 to 1.0.
@@ -2319,17 +2407,111 @@ export interface IRetrievalBySpaceRequest {
2319
2407
  space_id_list: string[];
2320
2408
  }
2321
2409
  /** RetrievalChunk */
2322
- export interface IRetrievalChunk {
2410
+ export interface IRetrievalChunkInput {
2411
+ /**
2412
+ * Gmt Create
2413
+ * creation time
2414
+ */
2415
+ gmt_create?: string | null;
2416
+ /**
2417
+ * Gmt Modified
2418
+ * update time
2419
+ */
2420
+ gmt_modified?: string | null;
2421
+ /**
2422
+ * Chunk Id
2423
+ * chunk id
2424
+ */
2425
+ chunk_id?: string;
2426
+ /**
2427
+ * Space Id
2428
+ * space id
2429
+ */
2430
+ space_id: string;
2431
+ /**
2432
+ * Tenant Id
2433
+ * tenant id
2434
+ */
2435
+ tenant_id: string;
2436
+ /**
2437
+ * Embedding
2438
+ * chunk embedding
2439
+ */
2440
+ embedding?: number[] | null;
2441
+ /**
2442
+ * Context
2443
+ * chunk content
2444
+ */
2445
+ context: string;
2446
+ /**
2447
+ * Knowledge Id
2448
+ * file source info
2449
+ */
2450
+ knowledge_id: string;
2451
+ /**
2452
+ * Enabled
2453
+ * is chunk enabled
2454
+ * @default true
2455
+ */
2456
+ enabled?: boolean;
2457
+ /**
2458
+ * Embedding Model Name
2459
+ * name of the embedding model
2460
+ */
2461
+ embedding_model_name: string;
2462
+ /**
2463
+ * Metadata
2464
+ * Arbitrary metadata associated with the content.
2465
+ */
2466
+ metadata?: Record<string, any> | null;
2467
+ /**
2468
+ * Tags
2469
+ * Tags from knowledge.metadata._tags
2470
+ */
2471
+ tags?: string[] | null;
2472
+ /**
2473
+ * F1
2474
+ * Field 1 from knowledge.metadata._f1
2475
+ */
2476
+ f1?: string | null;
2477
+ /**
2478
+ * F2
2479
+ * Field 2 from knowledge.metadata._f2
2480
+ */
2481
+ f2?: string | null;
2482
+ /**
2483
+ * F3
2484
+ * Field 3 from knowledge.metadata._f3
2485
+ */
2486
+ f3?: string | null;
2487
+ /**
2488
+ * F4
2489
+ * Field 4 from knowledge.metadata._f4
2490
+ */
2491
+ f4?: string | null;
2492
+ /**
2493
+ * F5
2494
+ * Field 5 from knowledge.metadata._f5
2495
+ */
2496
+ f5?: string | null;
2497
+ /**
2498
+ * Similarity
2499
+ * The similarity of the chunk, ranging from 0.0 to 1.0.
2500
+ */
2501
+ similarity: number;
2502
+ }
2503
+ /** RetrievalChunk */
2504
+ export interface IRetrievalChunkOutput {
2323
2505
  /**
2324
2506
  * Gmt Create
2325
2507
  * creation time
2326
2508
  */
2327
- gmt_create?: string;
2509
+ gmt_create?: string | null;
2328
2510
  /**
2329
2511
  * Gmt Modified
2330
2512
  * update time
2331
2513
  */
2332
- gmt_modified?: string;
2514
+ gmt_modified?: string | null;
2333
2515
  /**
2334
2516
  * Chunk Id
2335
2517
  * chunk id
@@ -2370,7 +2552,7 @@ export interface IRetrievalChunk {
2370
2552
  * Embedding Model Name
2371
2553
  * name of the embedding model
2372
2554
  */
2373
- embedding_model_name?: string;
2555
+ embedding_model_name: string;
2374
2556
  /**
2375
2557
  * Metadata
2376
2558
  * Arbitrary metadata associated with the content.
@@ -2516,17 +2698,77 @@ export interface ISpaceCreate {
2516
2698
  * total_size Optional[int]: size of the all kowledge in this space.
2517
2699
  * knowledge_size Optional[int]: count of the knowledge in this space.
2518
2700
  */
2519
- export interface ISpaceResponse {
2701
+ export interface ISpaceResponseInput {
2702
+ /**
2703
+ * Gmt Create
2704
+ * creation time
2705
+ */
2706
+ gmt_create?: string | null;
2707
+ /**
2708
+ * Gmt Modified
2709
+ * update time
2710
+ */
2711
+ gmt_modified?: string | null;
2712
+ /**
2713
+ * Space Name
2714
+ * name of the space resource
2715
+ * @maxLength 64
2716
+ */
2717
+ space_name: string;
2718
+ /**
2719
+ * Space Id
2720
+ * space id
2721
+ */
2722
+ space_id?: string;
2723
+ /**
2724
+ * Description
2725
+ * descrition of the space
2726
+ * @maxLength 255
2727
+ */
2728
+ description: string;
2729
+ /**
2730
+ * Metadata
2731
+ * metadata of the space resource
2732
+ * @default {}
2733
+ */
2734
+ metadata?: Record<string, any>;
2735
+ /**
2736
+ * Tenant Id
2737
+ * tenant id
2738
+ */
2739
+ tenant_id: string;
2740
+ /**
2741
+ * Storage Size
2742
+ * size of the all kowledge in this space
2743
+ * @default 0
2744
+ */
2745
+ storage_size?: number | null;
2746
+ /**
2747
+ * Knowledge Count
2748
+ * count of the knowledge in this space
2749
+ * @default 0
2750
+ */
2751
+ knowledge_count?: number | null;
2752
+ }
2753
+ /**
2754
+ * SpaceResponse
2755
+ * SpaceResponse model class that extends Space.
2756
+ * Attributes:
2757
+ * (str): Space ID.
2758
+ * total_size Optional[int]: size of the all kowledge in this space.
2759
+ * knowledge_size Optional[int]: count of the knowledge in this space.
2760
+ */
2761
+ export interface ISpaceResponseOutput {
2520
2762
  /**
2521
2763
  * Gmt Create
2522
2764
  * creation time
2523
2765
  */
2524
- gmt_create?: string;
2766
+ gmt_create?: string | null;
2525
2767
  /**
2526
2768
  * Gmt Modified
2527
2769
  * update time
2528
2770
  */
2529
- gmt_modified?: string;
2771
+ gmt_modified?: string | null;
2530
2772
  /**
2531
2773
  * Space Name
2532
2774
  * name of the space resource
@@ -2566,12 +2808,60 @@ export interface ISpaceResponse {
2566
2808
  * count of the knowledge in this space
2567
2809
  * @default 0
2568
2810
  */
2569
- knowledge_count?: number | null;
2811
+ knowledge_count?: number | null;
2812
+ }
2813
+ /** StatusStatisticsPageResponse[Task] */
2814
+ export interface IStatusStatisticsPageResponseTaskInput {
2815
+ /** Items */
2816
+ items: ITaskInput[];
2817
+ /** Total */
2818
+ total: number;
2819
+ /** Page */
2820
+ page: number;
2821
+ /** Page Size */
2822
+ page_size: number;
2823
+ /** Total Pages */
2824
+ total_pages: number;
2825
+ /**
2826
+ * Success
2827
+ * @default 0
2828
+ */
2829
+ success?: number;
2830
+ /**
2831
+ * Failed
2832
+ * @default 0
2833
+ */
2834
+ failed?: number;
2835
+ /**
2836
+ * Cancelled
2837
+ * @default 0
2838
+ */
2839
+ cancelled?: number;
2840
+ /**
2841
+ * Pending
2842
+ * @default 0
2843
+ */
2844
+ pending?: number;
2845
+ /**
2846
+ * Running
2847
+ * @default 0
2848
+ */
2849
+ running?: number;
2850
+ /**
2851
+ * Pending Retry
2852
+ * @default 0
2853
+ */
2854
+ pending_retry?: number;
2855
+ /**
2856
+ * Deleted
2857
+ * @default 0
2858
+ */
2859
+ deleted?: number;
2570
2860
  }
2571
2861
  /** StatusStatisticsPageResponse[Task] */
2572
- export interface IStatusStatisticsPageResponseTask {
2862
+ export interface IStatusStatisticsPageResponseTaskOutput {
2573
2863
  /** Items */
2574
- items: ITask[];
2864
+ items: ITaskOutput[];
2575
2865
  /** Total */
2576
2866
  total: number;
2577
2867
  /** Page */
@@ -2617,17 +2907,57 @@ export interface IStatusStatisticsPageResponseTask {
2617
2907
  deleted?: number;
2618
2908
  }
2619
2909
  /** Tag */
2620
- export interface ITag {
2910
+ export interface ITagInput {
2911
+ /**
2912
+ * Gmt Create
2913
+ * creation time
2914
+ */
2915
+ gmt_create?: string | null;
2916
+ /**
2917
+ * Gmt Modified
2918
+ * update time
2919
+ */
2920
+ gmt_modified?: string | null;
2921
+ /**
2922
+ * Name
2923
+ * 标签名称(租户内唯一)
2924
+ * @maxLength 64
2925
+ */
2926
+ name: string;
2927
+ /**
2928
+ * Description
2929
+ * 标签描述
2930
+ */
2931
+ description?: string | null;
2932
+ /**
2933
+ * 标签作用对象类型(如 "space")
2934
+ * @default "space"
2935
+ */
2936
+ object_type?: ITagObjectType;
2937
+ /**
2938
+ * Tag Id
2939
+ * 标签ID(UUID字符串)
2940
+ */
2941
+ tag_id?: string;
2942
+ /**
2943
+ * Tenant Id
2944
+ * 所属租户ID
2945
+ * @maxLength 64
2946
+ */
2947
+ tenant_id: string;
2948
+ }
2949
+ /** Tag */
2950
+ export interface ITagOutput {
2621
2951
  /**
2622
2952
  * Gmt Create
2623
2953
  * creation time
2624
2954
  */
2625
- gmt_create?: string;
2955
+ gmt_create?: string | null;
2626
2956
  /**
2627
2957
  * Gmt Modified
2628
2958
  * update time
2629
2959
  */
2630
- gmt_modified?: string;
2960
+ gmt_modified?: string | null;
2631
2961
  /**
2632
2962
  * Name
2633
2963
  * 标签名称(租户内唯一)
@@ -2694,17 +3024,64 @@ export interface ITagUpdate {
2694
3024
  description?: string | null;
2695
3025
  }
2696
3026
  /** Tagging */
2697
- export interface ITagging {
3027
+ export interface ITaggingInput {
3028
+ /**
3029
+ * Gmt Create
3030
+ * creation time
3031
+ */
3032
+ gmt_create?: string | null;
3033
+ /**
3034
+ * Gmt Modified
3035
+ * update time
3036
+ */
3037
+ gmt_modified?: string | null;
3038
+ /**
3039
+ * Tagging Id
3040
+ * 标签绑定ID(UUID字符串)
3041
+ */
3042
+ tagging_id?: string;
3043
+ /**
3044
+ * Tenant Id
3045
+ * 所属租户ID
3046
+ * @maxLength 64
3047
+ */
3048
+ tenant_id: string;
3049
+ /**
3050
+ * Tag Id
3051
+ * 标签ID(FK -> tag.tag_id,UUID字符串)
3052
+ */
3053
+ tag_id: string;
3054
+ /**
3055
+ * Tag Name
3056
+ * 标签名称(在 object_type 内唯一)
3057
+ * @maxLength 64
3058
+ */
3059
+ tag_name: string;
3060
+ /**
3061
+ * Object Id
3062
+ * 被打标签对象ID(如 space_id)
3063
+ * @maxLength 255
3064
+ */
3065
+ object_id: string;
3066
+ /**
3067
+ * 对象类型,当前仅支持 "space"
3068
+ * @maxLength 32
3069
+ * @default "space"
3070
+ */
3071
+ object_type?: ITagObjectType;
3072
+ }
3073
+ /** Tagging */
3074
+ export interface ITaggingOutput {
2698
3075
  /**
2699
3076
  * Gmt Create
2700
3077
  * creation time
2701
3078
  */
2702
- gmt_create?: string;
3079
+ gmt_create?: string | null;
2703
3080
  /**
2704
3081
  * Gmt Modified
2705
3082
  * update time
2706
3083
  */
2707
- gmt_modified?: string;
3084
+ gmt_modified?: string | null;
2708
3085
  /**
2709
3086
  * Tagging Id
2710
3087
  * 标签绑定ID(UUID字符串)
@@ -2761,17 +3138,76 @@ export interface ITaggingCreate {
2761
3138
  object_id: string;
2762
3139
  }
2763
3140
  /** Task */
2764
- export interface ITask {
3141
+ export interface ITaskInput {
3142
+ /**
3143
+ * Gmt Create
3144
+ * creation time
3145
+ */
3146
+ gmt_create?: string | null;
3147
+ /**
3148
+ * Gmt Modified
3149
+ * update time
3150
+ */
3151
+ gmt_modified?: string | null;
3152
+ /**
3153
+ * Task Id
3154
+ * Unique identifier for the task
3155
+ */
3156
+ task_id?: string;
3157
+ /**
3158
+ * Current status of the task
3159
+ * @default "pending"
3160
+ */
3161
+ status?: ITaskStatus;
3162
+ /**
3163
+ * Knowledge Id
3164
+ * Identifier for the source file
3165
+ */
3166
+ knowledge_id: string;
3167
+ /**
3168
+ * Metadata
3169
+ * Metadata for the task
3170
+ */
3171
+ metadata?: Record<string, any> | null;
3172
+ /**
3173
+ * Error Message
3174
+ * Error message (only present if the task failed)
3175
+ */
3176
+ error_message?: string | null;
3177
+ /**
3178
+ * Space Id
3179
+ * Identifier for the space
3180
+ */
3181
+ space_id: string;
3182
+ /**
3183
+ * User Id
3184
+ * Identifier for the user
3185
+ */
3186
+ user_id?: string | null;
3187
+ /**
3188
+ * Tenant Id
3189
+ * Identifier for the tenant
3190
+ */
3191
+ tenant_id: string;
3192
+ /**
3193
+ * Task Type
3194
+ * Type of the task
3195
+ * @default "knowledge_chunk"
3196
+ */
3197
+ task_type?: string;
3198
+ }
3199
+ /** Task */
3200
+ export interface ITaskOutput {
2765
3201
  /**
2766
3202
  * Gmt Create
2767
3203
  * creation time
2768
3204
  */
2769
- gmt_create?: string;
3205
+ gmt_create?: string | null;
2770
3206
  /**
2771
3207
  * Gmt Modified
2772
3208
  * update time
2773
3209
  */
2774
- gmt_modified?: string;
3210
+ gmt_modified?: string | null;
2775
3211
  /**
2776
3212
  * Task Id
2777
3213
  * Unique identifier for the task
@@ -2828,17 +3264,63 @@ export interface ITaskRestartRequest {
2828
3264
  task_id_list: string[];
2829
3265
  }
2830
3266
  /** Tenant */
2831
- export interface ITenant {
3267
+ export interface ITenantInput {
3268
+ /**
3269
+ * Gmt Create
3270
+ * creation time
3271
+ */
3272
+ gmt_create?: string | null;
3273
+ /**
3274
+ * Gmt Modified
3275
+ * update time
3276
+ */
3277
+ gmt_modified?: string | null;
3278
+ /**
3279
+ * Tenant Id
3280
+ * tenant id
3281
+ */
3282
+ tenant_id?: string;
3283
+ /**
3284
+ * Tenant Name
3285
+ * tenant name
3286
+ * @default ""
3287
+ */
3288
+ tenant_name?: string;
3289
+ /**
3290
+ * Email
3291
+ * email
3292
+ */
3293
+ email: string;
3294
+ /**
3295
+ * Secret Key
3296
+ * secret_key
3297
+ * @default ""
3298
+ */
3299
+ secret_key?: string;
3300
+ /**
3301
+ * Is Active
3302
+ * is active
3303
+ * @default true
3304
+ */
3305
+ is_active?: boolean;
3306
+ /**
3307
+ * Metadata
3308
+ * Metadata for the tenant
3309
+ */
3310
+ metadata?: Record<string, any> | null;
3311
+ }
3312
+ /** Tenant */
3313
+ export interface ITenantOutput {
2832
3314
  /**
2833
3315
  * Gmt Create
2834
3316
  * creation time
2835
3317
  */
2836
- gmt_create?: string;
3318
+ gmt_create?: string | null;
2837
3319
  /**
2838
3320
  * Gmt Modified
2839
3321
  * update time
2840
3322
  */
2841
- gmt_modified?: string;
3323
+ gmt_modified?: string | null;
2842
3324
  /**
2843
3325
  * Tenant Id
2844
3326
  * tenant id
@@ -2900,8 +3382,6 @@ export interface ITenantLogQuery {
2900
3382
  }
2901
3383
  /** TenantUpdate */
2902
3384
  export interface ITenantUpdate {
2903
- /** Tenant Id */
2904
- tenant_id: string;
2905
3385
  /** Tenant Name */
2906
3386
  tenant_name?: string | null;
2907
3387
  /** Email */
@@ -2939,9 +3419,8 @@ export interface ITextCreate {
2939
3419
  /**
2940
3420
  * Embedding Model Name
2941
3421
  * name of the embedding model. you can set any other model if target embedding service registered
2942
- * @default "openai"
2943
3422
  */
2944
- embedding_model_name?: IEmbeddingModelEnum | string;
3423
+ embedding_model_name: string;
2945
3424
  /**
2946
3425
  * File Sha
2947
3426
  * SHA of the file
@@ -3065,9 +3544,8 @@ export interface IYuqueCreate {
3065
3544
  /**
3066
3545
  * Embedding Model Name
3067
3546
  * name of the embedding model. you can set any other model if target embedding service registered
3068
- * @default "openai"
3069
3547
  */
3070
- embedding_model_name?: IEmbeddingModelEnum | string;
3548
+ embedding_model_name: string;
3071
3549
  /**
3072
3550
  * File Sha
3073
3551
  * SHA of the file
@@ -3229,7 +3707,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3229
3707
  homePageGet: (params?: RequestParams) => Promise<HttpResponse<any, any>>;
3230
3708
  knowledge: {
3231
3709
  /**
3232
- * @description Duplicate file_sha entries are prohibited. Any modifications to split_config or embedding model_name parameters must be performed using dedicated API endpoints."
3710
+ * @description 添加知识 使用DDD架构创建新的知识,禁止重复的file_sha条目。 通过TaskCoordinationService统一协调知识创建和任务执行,确保事务一致性。
3233
3711
  *
3234
3712
  * @tags knowledge
3235
3713
  * @name AddKnowledge
@@ -3238,7 +3716,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3238
3716
  */
3239
3717
  addKnowledge: (data: (ITextCreate | IImageCreate | IJSONCreate | IMarkdownCreate | IPDFCreate | IGithubRepoCreate | IQACreate | IYuqueCreate)[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListKnowledge, void | IHTTPValidationError>>;
3240
3718
  /**
3241
- * No description
3719
+ * @description 更新知识 使用DDD架构更新知识信息,支持元数据和状态更新。
3242
3720
  *
3243
3721
  * @tags knowledge
3244
3722
  * @name UpdateKnowledge
@@ -3247,7 +3725,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3247
3725
  */
3248
3726
  updateKnowledge: (data: IKnowledgeInput, params?: RequestParams) => Promise<HttpResponse<IResponseModelKnowledge, void | IHTTPValidationError>>;
3249
3727
  /**
3250
- * No description
3728
+ * @description 更新知识启用状态 使用DDD架构更新知识的启用状态。
3251
3729
  *
3252
3730
  * @tags knowledge
3253
3731
  * @name UpdateKnowledgeEnableStatus
@@ -3256,7 +3734,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3256
3734
  */
3257
3735
  updateKnowledgeEnableStatus: (data: IEnableStatusUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
3258
3736
  /**
3259
- * No description
3737
+ * @description 获取知识列表 使用DDD架构的KnowledgeService进行分页查询,支持条件过滤和排序。
3260
3738
  *
3261
3739
  * @tags knowledge
3262
3740
  * @name GetKnowledgeList
@@ -3265,7 +3743,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3265
3743
  */
3266
3744
  getKnowledgeList: (data: IPageQueryParamsKnowledge, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseKnowledge, void | IHTTPValidationError>>;
3267
3745
  /**
3268
- * No description
3746
+ * @description 根据ID获取知识详情 使用DDD架构获取知识详细信息。
3269
3747
  *
3270
3748
  * @tags knowledge
3271
3749
  * @name GetKnowledgeById
@@ -3277,7 +3755,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3277
3755
  knowledge_id: string;
3278
3756
  }, params?: RequestParams) => Promise<HttpResponse<IResponseModelKnowledge, void | IHTTPValidationError>>;
3279
3757
  /**
3280
- * @description Deletes a knowledge entry by its ID.
3758
+ * @description 删除知识 包括级联删除相关的任务和向量数据。
3281
3759
  *
3282
3760
  * @tags knowledge
3283
3761
  * @name DeleteKnowledge
@@ -3297,15 +3775,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3297
3775
  * @request GET:/api/knowledge/embedding/models
3298
3776
  */
3299
3777
  getEmbeddingModelsList: (params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
3300
- /**
3301
- * @description 处理不同类型的webhook:knowledge, deployment, notification等
3302
- *
3303
- * @tags knowledge
3304
- * @name HandleWebhookApiKnowledgeWebhookTypeSourceAuthInfoKnowledgeBaseIdPost
3305
- * @summary 通用webhook处理器
3306
- * @request POST:/api/knowledge/{webhook_type}/{source}/{auth_info}/{knowledge_base_id}
3307
- */
3308
- handleWebhookApiKnowledgeWebhookTypeSourceAuthInfoKnowledgeBaseIdPost: (webhookType: string, source: string, authInfo: string, knowledgeBaseId: string, data: Record<string, any>, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
3309
3778
  };
3310
3779
  retrieval: {
3311
3780
  /**
@@ -3318,7 +3787,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3318
3787
  */
3319
3788
  retrieveKnowledgeContent: (data: IRetrievalByKnowledgeRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
3320
3789
  /**
3321
- * @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id.
3790
+ * @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id. 使用DDD架构的RetrievalService进行空间检索。
3322
3791
  *
3323
3792
  * @tags retrieval
3324
3793
  * @name RetrieveSpaceContent
@@ -3327,7 +3796,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3327
3796
  */
3328
3797
  retrieveSpaceContent: (data: IRetrievalBySpaceRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
3329
3798
  /**
3330
- * @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id.
3799
+ * @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id. 使用DDD架构的RetrievalService进行检索。
3331
3800
  *
3332
3801
  * @tags retrieval
3333
3802
  * @name Retrieve
@@ -3338,7 +3807,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3338
3807
  };
3339
3808
  task: {
3340
3809
  /**
3341
- * No description
3810
+ * @description 重启任务 使用DDD架构的TaskCoordinationService进行任务重启并执行。 重试规则: 1. FAILED 或 CANCELED 状态的任务可以重试 2. 创建时间超过30分钟且未成功的任务可以重试
3342
3811
  *
3343
3812
  * @tags task
3344
3813
  * @name RestartTask
@@ -3347,7 +3816,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3347
3816
  */
3348
3817
  restartTask: (data: ITaskRestartRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListTask, void | IHTTPValidationError>>;
3349
3818
  /**
3350
- * No description
3819
+ * @description 取消任务 使用DDD架构的TaskService进行任务取消。
3351
3820
  *
3352
3821
  * @tags task
3353
3822
  * @name CancelTask
@@ -3356,7 +3825,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3356
3825
  */
3357
3826
  cancelTask: (data: ITaskRestartRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListTask, void | IHTTPValidationError>>;
3358
3827
  /**
3359
- * No description
3828
+ * @description 获取任务列表 使用DDD架构的TaskService进行分页查询。
3360
3829
  *
3361
3830
  * @tags task
3362
3831
  * @name GetTaskList
@@ -3365,7 +3834,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3365
3834
  */
3366
3835
  getTaskList: (data: IPageQueryParamsTask, params?: RequestParams) => Promise<HttpResponse<IResponseModelStatusStatisticsPageResponseTask, void | IHTTPValidationError>>;
3367
3836
  /**
3368
- * No description
3837
+ * @description 获取任务详情 使用DDD架构的TaskService获取任务详情。
3369
3838
  *
3370
3839
  * @tags task
3371
3840
  * @name GetTaskDetail
@@ -3377,7 +3846,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3377
3846
  task_id: string;
3378
3847
  }, params?: RequestParams) => Promise<HttpResponse<IResponseModelTask, void | IHTTPValidationError>>;
3379
3848
  /**
3380
- * No description
3849
+ * @description 删除任务 使用DDD架构的TaskService进行任务删除。
3381
3850
  *
3382
3851
  * @tags task
3383
3852
  * @name DeleteTaskById
@@ -3391,7 +3860,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3391
3860
  };
3392
3861
  chunk: {
3393
3862
  /**
3394
- * No description
3863
+ * @description 获取Chunk列表
3395
3864
  *
3396
3865
  * @tags chunk
3397
3866
  * @name GetChunkList
@@ -3400,7 +3869,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3400
3869
  */
3401
3870
  getChunkList: (data: IPageQueryParamsChunk, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseChunk, void | IHTTPValidationError>>;
3402
3871
  /**
3403
- * No description
3872
+ * @description 根据ID删除Chunk 使用DDD架构删除指定的Chunk。
3404
3873
  *
3405
3874
  * @tags chunk
3406
3875
  * @name DeleteChunkById
@@ -3409,7 +3878,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3409
3878
  */
3410
3879
  deleteChunkById: (id: string, modelName: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelObject, void | IHTTPValidationError>>;
3411
3880
  /**
3412
- * No description
3881
+ * @description 根据ID获取Chunk 使用DDD架构获取指定的Chunk详情。
3413
3882
  *
3414
3883
  * @tags chunk
3415
3884
  * @name GetChunkById
@@ -3418,7 +3887,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3418
3887
  */
3419
3888
  getChunkById: (id: string, modelName: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelChunk, void | IHTTPValidationError>>;
3420
3889
  /**
3421
- * No description
3890
+ * @description 添加Chunk 使用DDD架构创建新的Chunk。
3422
3891
  *
3423
3892
  * @tags chunk
3424
3893
  * @name AddChunk
@@ -3427,7 +3896,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3427
3896
  */
3428
3897
  addChunk: (data: IChunkSave, params?: RequestParams) => Promise<HttpResponse<IResponseModelChunk, void | IHTTPValidationError>>;
3429
3898
  /**
3430
- * No description
3899
+ * @description 更新Chunk 使用DDD架构更新指定的Chunk。
3431
3900
  *
3432
3901
  * @tags chunk
3433
3902
  * @name UpdateChunk
@@ -3438,7 +3907,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3438
3907
  };
3439
3908
  tenant: {
3440
3909
  /**
3441
- * No description
3910
+ * @description 创建租户
3442
3911
  *
3443
3912
  * @tags tenant
3444
3913
  * @name CreateTenant
@@ -3447,7 +3916,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3447
3916
  */
3448
3917
  createTenant: (data: ITenantCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
3449
3918
  /**
3450
- * No description
3919
+ * @description 根据ID查询租户
3451
3920
  *
3452
3921
  * @tags tenant
3453
3922
  * @name GetTenantById
@@ -3456,7 +3925,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3456
3925
  */
3457
3926
  getTenantById: (id: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
3458
3927
  /**
3459
- * No description
3928
+ * @description 删除租户
3460
3929
  *
3461
3930
  * @tags tenant
3462
3931
  * @name DeleteTenantById
@@ -3465,7 +3934,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3465
3934
  */
3466
3935
  deleteTenantById: (id: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelObject, void | IHTTPValidationError>>;
3467
3936
  /**
3468
- * No description
3937
+ * @description 更新租户
3469
3938
  *
3470
3939
  * @tags tenant
3471
3940
  * @name UpdateTenant
@@ -3474,7 +3943,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3474
3943
  */
3475
3944
  updateTenant: (data: ITenantUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
3476
3945
  /**
3477
- * No description
3946
+ * @description 获取租户列表
3478
3947
  *
3479
3948
  * @tags tenant
3480
3949
  * @name GetTenantList
@@ -3494,18 +3963,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3494
3963
  page_size?: number;
3495
3964
  }, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseTenant, void | IHTTPValidationError>>;
3496
3965
  /**
3497
- * No description
3966
+ * @description 获取当前租户信息 直接返回认证系统中的租户信息。 get_tenant_with_permissions 已经包含了完整的认证和权限检查。
3498
3967
  *
3499
3968
  * @tags tenant
3500
3969
  * @name GetTenant
3501
3970
  * @summary Get Tenant
3502
3971
  * @request GET:/api/tenant/me
3503
3972
  */
3504
- getTenant: (params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
3973
+ getTenant: (params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
3505
3974
  };
3506
3975
  space: {
3507
3976
  /**
3508
- * No description
3977
+ * @description 获取空间列表 使用DDD架构的SpaceService进行分页查询,支持条件过滤和排序。
3509
3978
  *
3510
3979
  * @tags space
3511
3980
  * @name GetSpaceList
@@ -3514,7 +3983,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3514
3983
  */
3515
3984
  getSpaceList: (data: IPageQueryParamsSpace, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseSpaceResponse, void | IHTTPValidationError>>;
3516
3985
  /**
3517
- * No description
3986
+ * @description 创建空间,使用DDD架构创建新的空间,支持KIS集成和元数据配置。
3518
3987
  *
3519
3988
  * @tags space
3520
3989
  * @name AddSpace
@@ -3523,7 +3992,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3523
3992
  */
3524
3993
  addSpace: (data: ISpaceCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelSpaceResponse, void | IHTTPValidationError>>;
3525
3994
  /**
3526
- * No description
3995
+ * @description 删除空间,包括级联删除相关的知识、任务和向量数据。
3527
3996
  *
3528
3997
  * @tags space
3529
3998
  * @name DeleteSpace
@@ -3532,7 +4001,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3532
4001
  */
3533
4002
  deleteSpace: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
3534
4003
  /**
3535
- * No description
4004
+ * @description 更新空间 使用DDD架构更新空间信息,支持KIS集成配置更新。
3536
4005
  *
3537
4006
  * @tags space
3538
4007
  * @name UpdateSpace
@@ -3541,7 +4010,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3541
4010
  */
3542
4011
  updateSpace: (spaceId: string, data: ISpaceCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelSpaceResponse, void | IHTTPValidationError>>;
3543
4012
  /**
3544
- * No description
4013
+ * @description 根据ID获取空间详情 使用DDD架构获取空间详细信息,包括统计数据。
3545
4014
  *
3546
4015
  * @tags space
3547
4016
  * @name GetSpaceById
@@ -3552,7 +4021,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3552
4021
  };
3553
4022
  v1: {
3554
4023
  /**
3555
- * No description
4024
+ * @description 获取系统全局统计信息 使用DDD架构的DashboardService获取系统级别的统计数据。
3556
4025
  *
3557
4026
  * @tags dashboard
3558
4027
  * @name GetGlobalInfo
@@ -3561,23 +4030,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3561
4030
  */
3562
4031
  getGlobalInfo: (params?: RequestParams) => Promise<HttpResponse<IResponseModelGlobalInfo, void>>;
3563
4032
  /**
3564
- * No description
4033
+ * @description 获取租户日志 使用DDD架构的DashboardService获取租户级别的日志数据。 注意:改为POST方法以支持复杂的查询参数。
3565
4034
  *
3566
4035
  * @tags dashboard
3567
4036
  * @name GetTenantLog
3568
4037
  * @summary Get Tenant Log
3569
- * @request GET:/api/v1/dashboard/tenant_log
4038
+ * @request POST:/api/v1/dashboard/tenant_log
3570
4039
  */
3571
4040
  getTenantLog: (data: ITenantLogQuery, params?: RequestParams) => Promise<HttpResponse<IResponseModelListTenantLog, void | IHTTPValidationError>>;
3572
- /**
3573
- * No description
3574
- *
3575
- * @tags agent
3576
- * @name ProResearchApiV1AgentProResearchPost
3577
- * @summary Pro Research
3578
- * @request POST:/api/v1/agent/pro_research
3579
- */
3580
- proResearchApiV1AgentProResearchPost: (data: IProResearchRequest, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
3581
4041
  /**
3582
4042
  * @description whisker 通用 webhook
3583
4043
  *
@@ -3588,7 +4048,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3588
4048
  */
3589
4049
  handleWebhookApiV1WebhookWebhookTypeSourceAuthInfoKnowledgeBaseIdPost: (webhookType: string, source: string, authInfo: string, knowledgeBaseId: string, data: Record<string, any>, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
3590
4050
  /**
3591
- * No description
4051
+ * @description 分页获取标签关联列表 使用DDD架构的TaggingService进行分页查询。
3592
4052
  *
3593
4053
  * @tags tagging
3594
4054
  * @name GetTaggingList
@@ -3597,7 +4057,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3597
4057
  */
3598
4058
  getTaggingList: (data: IPageQueryParamsTagging, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseTagging, void | IHTTPValidationError>>;
3599
4059
  /**
3600
- * No description
4060
+ * @description 批量新增标签关联 使用DDD架构创建新的标签关联列表。
3601
4061
  *
3602
4062
  * @tags tagging
3603
4063
  * @name AddTaggingList
@@ -3606,7 +4066,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3606
4066
  */
3607
4067
  addTaggingList: (data: ITaggingCreate[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListTagging, void | IHTTPValidationError>>;
3608
4068
  /**
3609
- * No description
4069
+ * @description 删除标签关联 使用DDD架构删除标签关联记录。
3610
4070
  *
3611
4071
  * @tags tagging
3612
4072
  * @name DeleteTaggingById
@@ -3624,7 +4084,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3624
4084
  */
3625
4085
  getTagList: (data: IPageQueryParamsTag, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseTag, void | IHTTPValidationError>>;
3626
4086
  /**
3627
- * @description 批量新增标签 注意:根据接口定义,DB 插件方法签名为 add_tag_list(tag_list: List[TagCreate]), 因此此处直接传入 body。若 TagCreate 需要携带 tenant_id,应由模型或插件内部处理。
4087
+ * @description 批量新增标签
3628
4088
  *
3629
4089
  * @tags tag
3630
4090
  * @name AddTagList
@@ -3642,7 +4102,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3642
4102
  */
3643
4103
  getTagById: (tagId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelTag, void | IHTTPValidationError>>;
3644
4104
  /**
3645
- * No description
4105
+ * @description 删除标签
3646
4106
  *
3647
4107
  * @tags tag
3648
4108
  * @name DeleteTagById
@@ -3651,7 +4111,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3651
4111
  */
3652
4112
  deleteTagById: (tagId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
3653
4113
  /**
3654
- * No description
4114
+ * @description 更新标签
3655
4115
  *
3656
4116
  * @tags tag
3657
4117
  * @name UpdateTag
@@ -3660,7 +4120,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3660
4120
  */
3661
4121
  updateTag: (data: ITagUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelTag, void | IHTTPValidationError>>;
3662
4122
  /**
3663
- * No description
4123
+ * @description 分页获取工件列表 使用DDD架构的ArtifactService进行分页查询。
3664
4124
  *
3665
4125
  * @tags artifact
3666
4126
  * @name GetArtifactList
@@ -3669,7 +4129,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3669
4129
  */
3670
4130
  getArtifactList: (data: IPageQueryParamsArtifactIndex, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseArtifactIndex, void | IHTTPValidationError>>;
3671
4131
  /**
3672
- * No description
4132
+ * @description 批量新增工件 使用DDD架构创建新的工件列表。
3673
4133
  *
3674
4134
  * @tags artifact
3675
4135
  * @name AddArtifactList
@@ -3678,7 +4138,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3678
4138
  */
3679
4139
  addArtifactList: (data: IArtifactIndexCreate[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListArtifactIndex, void | IHTTPValidationError>>;
3680
4140
  /**
3681
- * No description
4141
+ * @description 获取工件详情 使用DDD架构获取工件详细信息。
3682
4142
  *
3683
4143
  * @tags artifact
3684
4144
  * @name GetArtifactById
@@ -3687,7 +4147,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3687
4147
  */
3688
4148
  getArtifactById: (artifactId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelArtifactIndex, void | IHTTPValidationError>>;
3689
4149
  /**
3690
- * No description
4150
+ * @description 删除工件 使用DDD架构删除工件记录。
3691
4151
  *
3692
4152
  * @tags artifact
3693
4153
  * @name DeleteArtifactById
@@ -3696,18 +4156,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3696
4156
  */
3697
4157
  deleteArtifactById: (artifactId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
3698
4158
  /**
3699
- * No description
4159
+ * @description 更新工件空间绑定 使用DDD架构更新工件的空间关联。
3700
4160
  *
3701
4161
  * @tags artifact
3702
4162
  * @name UpdateArtifactSpaceId
3703
4163
  * @summary Update Artifact Space Id
3704
- * @request POST:/api/v1/artifact/update_space
4164
+ * @request POST:/api/v1/artifact/update/space_id
3705
4165
  */
3706
4166
  updateArtifactSpaceId: (data: IArtifactSpaceUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelArtifactIndex, void | IHTTPValidationError>>;
3707
4167
  };
3708
4168
  rule: {
3709
4169
  /**
3710
- * No description
4170
+ * @description 获取租户全局规则 使用DDD架构的RuleService获取租户级别的规则配置。
3711
4171
  *
3712
4172
  * @tags rule
3713
4173
  * @name GetGlobalRule
@@ -3716,7 +4176,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3716
4176
  */
3717
4177
  getGlobalRule: (params?: RequestParams) => Promise<HttpResponse<IResponseModelStr, void | IHTTPValidationError>>;
3718
4178
  /**
3719
- * No description
4179
+ * @description 获取空间规则 使用DDD架构的RuleService获取空间级别的规则配置。
3720
4180
  *
3721
4181
  * @tags rule
3722
4182
  * @name GetSpaceRule
@@ -3727,7 +4187,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3727
4187
  };
3728
4188
  apiKey: {
3729
4189
  /**
3730
- * No description
4190
+ * @description 创建API Key
3731
4191
  *
3732
4192
  * @tags api key
3733
4193
  * @name CreateApiKey
@@ -3736,7 +4196,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3736
4196
  */
3737
4197
  createApiKey: (data: IAPIKeyCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelAPIKey, void | IHTTPValidationError>>;
3738
4198
  /**
3739
- * No description
4199
+ * @description 更新API Key
3740
4200
  *
3741
4201
  * @tags api key
3742
4202
  * @name UpdateApiKey
@@ -3745,7 +4205,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3745
4205
  */
3746
4206
  updateApiKey: (data: IAPIKeyUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelAPIKey, void | IHTTPValidationError>>;
3747
4207
  /**
3748
- * No description
4208
+ * @description 获取API Key列表
3749
4209
  *
3750
4210
  * @tags api key
3751
4211
  * @name GetApiKeyList
@@ -3754,7 +4214,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3754
4214
  */
3755
4215
  getApiKeyList: (data: IPageQueryParamsAPIKey, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseAPIKey, void | IHTTPValidationError>>;
3756
4216
  /**
3757
- * No description
4217
+ * @description 删除API Key
3758
4218
  *
3759
4219
  * @tags api key
3760
4220
  * @name DeleteApiKey
@@ -3763,7 +4223,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3763
4223
  */
3764
4224
  deleteApiKey: (keyId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
3765
4225
  /**
3766
- * No description
4226
+ * @description 更改API Key激活状态
3767
4227
  *
3768
4228
  * @tags api key
3769
4229
  * @name DeactivateApiKey
@@ -3772,7 +4232,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3772
4232
  */
3773
4233
  deactivateApiKey: (keyId: string, data: IActiveStatusUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
3774
4234
  /**
3775
- * No description
4235
+ * @description 获取所有过期的API Key
3776
4236
  *
3777
4237
  * @tags api key
3778
4238
  * @name GetAllExpiredApiKeys