@petercatai/whisker-client 0.1.202509030458 → 0.1.202511162103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/api.d.ts +979 -384
  2. package/dist/api.js +94 -78
  3. 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
- /** 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"
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 IAPIKey {
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
- /** APIKeyCreate */
209
- export interface IAPIKeyCreate {
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
- /** Description */
216
- description?: string | null;
217
- /** Permissions */
218
- permissions?: IPermission[];
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 | null;
246
+ rate_limit?: number;
224
247
  /**
225
248
  * Expires At
226
- * Expiration time in ISO8601 format with timezone (e.g., 2024-12-31T23:59:59+00:00)
249
+ * expire time (UTC)
227
250
  */
228
251
  expires_at?: string | null;
229
- /** Metadata */
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
- /** APIKeyUpdate */
233
- export interface IAPIKeyUpdate {
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 IArtifactIndex {
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
- /** 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?: 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
- /** ChatCompletionToolMessageParam */
498
- export interface IChatCompletionToolMessageParam {
499
- /** Content */
500
- content: string | IChatCompletionContentPartTextParam[];
501
- /** Role */
502
- role: "tool";
503
- /** Tool Call Id */
504
- tool_call_id: string;
505
- }
506
- /** ChatCompletionUserMessageParam */
507
- export interface IChatCompletionUserMessageParam {
508
- /** Content */
509
- content: string | (IChatCompletionContentPartTextParam | IChatCompletionContentPartImageParam | IChatCompletionContentPartInputAudioParam | IFile)[];
510
- /** Role */
511
- role: "user";
512
- /** Name */
513
- name?: string;
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 IChunk {
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?: string;
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?: IEmbeddingModelEnum | string;
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?: IEmbeddingModelEnum | string;
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?: IEmbeddingModelEnum | string;
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?: IEmbeddingModelEnum | string;
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?: string;
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?: IEmbeddingModelEnum | string;
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?: IEmbeddingModelEnum | string;
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 IPageResponseAPIKey {
1807
+ export interface IPageResponseAPIKeyInput {
1752
1808
  /** Items */
1753
- items: IAPIKey[];
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 IPageResponseArtifactIndex {
1833
+ export interface IPageResponseArtifactIndexInput {
1765
1834
  /** Items */
1766
- items: IArtifactIndex[];
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 IPageResponseChunk {
1872
+ export interface IPageResponseChunkOutput {
1778
1873
  /** Items */
1779
- items: IChunk[];
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 IPageResponseKnowledge {
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,22 @@ export interface IPageResponseKnowledge {
1800
1908
  total_pages: number;
1801
1909
  }
1802
1910
  /** PageResponse[SpaceResponse] */
1803
- export interface IPageResponseSpaceResponse {
1911
+ export interface IPageResponseSpaceResponseInput {
1804
1912
  /** Items */
1805
- items: ISpaceResponse[];
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[];
1806
1927
  /** Total */
1807
1928
  total: number;
1808
1929
  /** Page */
@@ -1813,9 +1934,22 @@ export interface IPageResponseSpaceResponse {
1813
1934
  total_pages: number;
1814
1935
  }
1815
1936
  /** PageResponse[Tag] */
1816
- export interface IPageResponseTag {
1937
+ export interface IPageResponseTagInput {
1817
1938
  /** Items */
1818
- items: ITag[];
1939
+ items: ITagInput[];
1940
+ /** Total */
1941
+ total: number;
1942
+ /** Page */
1943
+ page: number;
1944
+ /** Page Size */
1945
+ page_size: number;
1946
+ /** Total Pages */
1947
+ total_pages: number;
1948
+ }
1949
+ /** PageResponse[Tag] */
1950
+ export interface IPageResponseTagOutput {
1951
+ /** Items */
1952
+ items: ITagOutput[];
1819
1953
  /** Total */
1820
1954
  total: number;
1821
1955
  /** Page */
@@ -1826,9 +1960,35 @@ export interface IPageResponseTag {
1826
1960
  total_pages: number;
1827
1961
  }
1828
1962
  /** PageResponse[Tagging] */
1829
- export interface IPageResponseTagging {
1963
+ export interface IPageResponseTaggingInput {
1964
+ /** Items */
1965
+ items: ITaggingInput[];
1966
+ /** Total */
1967
+ total: number;
1968
+ /** Page */
1969
+ page: number;
1970
+ /** Page Size */
1971
+ page_size: number;
1972
+ /** Total Pages */
1973
+ total_pages: number;
1974
+ }
1975
+ /** PageResponse[Tagging] */
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: ITagging[];
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 IPageResponseTenant {
2002
+ export interface IPageResponseTenantOutput {
1843
2003
  /** Items */
1844
- items: ITenant[];
2004
+ items: ITenantOutput[];
1845
2005
  /** Total */
1846
2006
  total: number;
1847
2007
  /** Page */
@@ -1855,56 +2015,9 @@ export interface IPageResponseTenant {
1855
2015
  export interface IPermission {
1856
2016
  resource: IResource;
1857
2017
  /** Actions */
1858
- actions: IAction[];
1859
- /** Conditions */
1860
- conditions?: Record<string, any> | null;
1861
- }
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;
2018
+ actions: IAction[];
2019
+ /** Conditions */
2020
+ conditions?: Record<string, any> | null;
1908
2021
  }
1909
2022
  /** QACreate */
1910
2023
  export interface IQACreate {
@@ -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?: IEmbeddingModelEnum | string;
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?: IAPIKey | null;
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?: IArtifactIndex | null;
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?: IChunk | null;
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?: IAPIKey[] | null;
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?: IArtifactIndex[] | null;
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?: IRetrievalChunk[] | null;
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?: ITag[] | null;
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?: ITagging[] | null;
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?: ITask[] | null;
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?: IPageResponseAPIKey | null;
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?: IPageResponseArtifactIndex | null;
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?: IPageResponseChunk | null;
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?: IPageResponseKnowledge | null;
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?: IPageResponseSpaceResponse | null;
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?: IPageResponseTag | null;
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?: IPageResponseTagging | null;
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?: IPageResponseTenant | null;
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?: ISpaceResponse | null;
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?: IStatusStatisticsPageResponseTask | null;
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?: ITag | null;
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?: ITask | null;
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?: ITenant | null;
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: IEmbeddingModelEnum | string;
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: IEmbeddingModelEnum | string;
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,111 @@ export interface IRetrievalBySpaceRequest {
2304
2434
  space_id_list: string[];
2305
2435
  }
2306
2436
  /** RetrievalChunk */
2307
- export interface IRetrievalChunk {
2437
+ export interface IRetrievalChunkInput {
2438
+ /**
2439
+ * Gmt Create
2440
+ * creation time
2441
+ */
2442
+ gmt_create?: string | null;
2443
+ /**
2444
+ * Gmt Modified
2445
+ * update time
2446
+ */
2447
+ gmt_modified?: string | null;
2448
+ /**
2449
+ * Chunk Id
2450
+ * chunk id
2451
+ */
2452
+ chunk_id?: string;
2453
+ /**
2454
+ * Space Id
2455
+ * space id
2456
+ */
2457
+ space_id: string;
2458
+ /**
2459
+ * Tenant Id
2460
+ * tenant id
2461
+ */
2462
+ tenant_id: string;
2463
+ /**
2464
+ * Embedding
2465
+ * chunk embedding
2466
+ */
2467
+ embedding?: number[] | null;
2468
+ /**
2469
+ * Context
2470
+ * chunk content
2471
+ */
2472
+ context: string;
2473
+ /**
2474
+ * Knowledge Id
2475
+ * file source info
2476
+ */
2477
+ knowledge_id: string;
2478
+ /**
2479
+ * Enabled
2480
+ * is chunk enabled
2481
+ * @default true
2482
+ */
2483
+ enabled?: boolean;
2484
+ /**
2485
+ * Embedding Model Name
2486
+ * name of the embedding model
2487
+ */
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 {
2308
2532
  /**
2309
2533
  * Gmt Create
2310
2534
  * creation time
2311
2535
  */
2312
- gmt_create?: string;
2536
+ gmt_create?: string | null;
2313
2537
  /**
2314
2538
  * Gmt Modified
2315
2539
  * update time
2316
2540
  */
2317
- gmt_modified?: string;
2541
+ gmt_modified?: string | null;
2318
2542
  /**
2319
2543
  * Chunk Id
2320
2544
  * chunk id
@@ -2355,7 +2579,7 @@ export interface IRetrievalChunk {
2355
2579
  * Embedding Model Name
2356
2580
  * name of the embedding model
2357
2581
  */
2358
- embedding_model_name?: string;
2582
+ embedding_model_name: string;
2359
2583
  /**
2360
2584
  * Metadata
2361
2585
  * Arbitrary metadata associated with the content.
@@ -2501,17 +2725,77 @@ 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 ISpaceResponse {
2728
+ export interface ISpaceResponseInput {
2729
+ /**
2730
+ * Gmt Create
2731
+ * creation time
2732
+ */
2733
+ gmt_create?: string | null;
2734
+ /**
2735
+ * Gmt Modified
2736
+ * update time
2737
+ */
2738
+ gmt_modified?: string | null;
2739
+ /**
2740
+ * Space Name
2741
+ * name of the space resource
2742
+ * @maxLength 64
2743
+ */
2744
+ space_name: string;
2745
+ /**
2746
+ * Space Id
2747
+ * space id
2748
+ */
2749
+ space_id?: string;
2750
+ /**
2751
+ * Description
2752
+ * descrition of the space
2753
+ * @maxLength 255
2754
+ */
2755
+ description: string;
2756
+ /**
2757
+ * Metadata
2758
+ * metadata of the space resource
2759
+ * @default {}
2760
+ */
2761
+ metadata?: Record<string, any>;
2762
+ /**
2763
+ * Tenant Id
2764
+ * tenant id
2765
+ */
2766
+ tenant_id: string;
2767
+ /**
2768
+ * Storage Size
2769
+ * size of the all kowledge in this space
2770
+ * @default 0
2771
+ */
2772
+ storage_size?: number | null;
2773
+ /**
2774
+ * Knowledge Count
2775
+ * count of the knowledge in this space
2776
+ * @default 0
2777
+ */
2778
+ knowledge_count?: number | null;
2779
+ }
2780
+ /**
2781
+ * SpaceResponse
2782
+ * SpaceResponse model class that extends Space.
2783
+ * Attributes:
2784
+ * (str): Space ID.
2785
+ * total_size Optional[int]: size of the all kowledge in this space.
2786
+ * knowledge_size Optional[int]: count of the knowledge in this space.
2787
+ */
2788
+ export interface ISpaceResponseOutput {
2505
2789
  /**
2506
2790
  * Gmt Create
2507
2791
  * creation time
2508
2792
  */
2509
- gmt_create?: string;
2793
+ gmt_create?: string | null;
2510
2794
  /**
2511
2795
  * Gmt Modified
2512
2796
  * update time
2513
2797
  */
2514
- gmt_modified?: string;
2798
+ gmt_modified?: string | null;
2515
2799
  /**
2516
2800
  * Space Name
2517
2801
  * name of the space resource
@@ -2554,9 +2838,57 @@ export interface ISpaceResponse {
2554
2838
  knowledge_count?: number | null;
2555
2839
  }
2556
2840
  /** StatusStatisticsPageResponse[Task] */
2557
- export interface IStatusStatisticsPageResponseTask {
2841
+ export interface IStatusStatisticsPageResponseTaskInput {
2842
+ /** Items */
2843
+ items: ITaskInput[];
2844
+ /** Total */
2845
+ total: number;
2846
+ /** Page */
2847
+ page: number;
2848
+ /** Page Size */
2849
+ page_size: number;
2850
+ /** Total Pages */
2851
+ total_pages: number;
2852
+ /**
2853
+ * Success
2854
+ * @default 0
2855
+ */
2856
+ success?: number;
2857
+ /**
2858
+ * Failed
2859
+ * @default 0
2860
+ */
2861
+ failed?: number;
2862
+ /**
2863
+ * Cancelled
2864
+ * @default 0
2865
+ */
2866
+ cancelled?: number;
2867
+ /**
2868
+ * Pending
2869
+ * @default 0
2870
+ */
2871
+ pending?: number;
2872
+ /**
2873
+ * Running
2874
+ * @default 0
2875
+ */
2876
+ running?: number;
2877
+ /**
2878
+ * Pending Retry
2879
+ * @default 0
2880
+ */
2881
+ pending_retry?: number;
2882
+ /**
2883
+ * Deleted
2884
+ * @default 0
2885
+ */
2886
+ deleted?: number;
2887
+ }
2888
+ /** StatusStatisticsPageResponse[Task] */
2889
+ export interface IStatusStatisticsPageResponseTaskOutput {
2558
2890
  /** Items */
2559
- items: ITask[];
2891
+ items: ITaskOutput[];
2560
2892
  /** Total */
2561
2893
  total: number;
2562
2894
  /** Page */
@@ -2599,20 +2931,60 @@ export interface IStatusStatisticsPageResponseTask {
2599
2931
  * Deleted
2600
2932
  * @default 0
2601
2933
  */
2602
- deleted?: number;
2934
+ deleted?: number;
2935
+ }
2936
+ /** Tag */
2937
+ export interface ITagInput {
2938
+ /**
2939
+ * Gmt Create
2940
+ * creation time
2941
+ */
2942
+ gmt_create?: string | null;
2943
+ /**
2944
+ * Gmt Modified
2945
+ * update time
2946
+ */
2947
+ gmt_modified?: string | null;
2948
+ /**
2949
+ * Name
2950
+ * 标签名称(租户内唯一)
2951
+ * @maxLength 64
2952
+ */
2953
+ name: string;
2954
+ /**
2955
+ * Description
2956
+ * 标签描述
2957
+ */
2958
+ description?: string | null;
2959
+ /**
2960
+ * 标签作用对象类型(如 "space")
2961
+ * @default "space"
2962
+ */
2963
+ object_type?: ITagObjectType;
2964
+ /**
2965
+ * Tag Id
2966
+ * 标签ID(UUID字符串)
2967
+ */
2968
+ tag_id?: string;
2969
+ /**
2970
+ * Tenant Id
2971
+ * 所属租户ID
2972
+ * @maxLength 64
2973
+ */
2974
+ tenant_id: string;
2603
2975
  }
2604
2976
  /** Tag */
2605
- export interface ITag {
2977
+ export interface ITagOutput {
2606
2978
  /**
2607
2979
  * Gmt Create
2608
2980
  * creation time
2609
2981
  */
2610
- gmt_create?: string;
2982
+ gmt_create?: string | null;
2611
2983
  /**
2612
2984
  * Gmt Modified
2613
2985
  * update time
2614
2986
  */
2615
- gmt_modified?: string;
2987
+ gmt_modified?: string | null;
2616
2988
  /**
2617
2989
  * Name
2618
2990
  * 标签名称(租户内唯一)
@@ -2679,17 +3051,64 @@ export interface ITagUpdate {
2679
3051
  description?: string | null;
2680
3052
  }
2681
3053
  /** Tagging */
2682
- export interface ITagging {
3054
+ export interface ITaggingInput {
3055
+ /**
3056
+ * Gmt Create
3057
+ * creation time
3058
+ */
3059
+ gmt_create?: string | null;
3060
+ /**
3061
+ * Gmt Modified
3062
+ * update time
3063
+ */
3064
+ gmt_modified?: string | null;
3065
+ /**
3066
+ * Tagging Id
3067
+ * 标签绑定ID(UUID字符串)
3068
+ */
3069
+ tagging_id?: string;
3070
+ /**
3071
+ * Tenant Id
3072
+ * 所属租户ID
3073
+ * @maxLength 64
3074
+ */
3075
+ tenant_id: string;
3076
+ /**
3077
+ * Tag Id
3078
+ * 标签ID(FK -> tag.tag_id,UUID字符串)
3079
+ */
3080
+ tag_id: string;
3081
+ /**
3082
+ * Tag Name
3083
+ * 标签名称(在 object_type 内唯一)
3084
+ * @maxLength 64
3085
+ */
3086
+ tag_name: string;
3087
+ /**
3088
+ * Object Id
3089
+ * 被打标签对象ID(如 space_id)
3090
+ * @maxLength 255
3091
+ */
3092
+ object_id: string;
3093
+ /**
3094
+ * 对象类型,当前仅支持 "space"
3095
+ * @maxLength 32
3096
+ * @default "space"
3097
+ */
3098
+ object_type?: ITagObjectType;
3099
+ }
3100
+ /** Tagging */
3101
+ export interface ITaggingOutput {
2683
3102
  /**
2684
3103
  * Gmt Create
2685
3104
  * creation time
2686
3105
  */
2687
- gmt_create?: string;
3106
+ gmt_create?: string | null;
2688
3107
  /**
2689
3108
  * Gmt Modified
2690
3109
  * update time
2691
3110
  */
2692
- gmt_modified?: string;
3111
+ gmt_modified?: string | null;
2693
3112
  /**
2694
3113
  * Tagging Id
2695
3114
  * 标签绑定ID(UUID字符串)
@@ -2746,17 +3165,76 @@ export interface ITaggingCreate {
2746
3165
  object_id: string;
2747
3166
  }
2748
3167
  /** Task */
2749
- export interface ITask {
3168
+ export interface ITaskInput {
3169
+ /**
3170
+ * Gmt Create
3171
+ * creation time
3172
+ */
3173
+ gmt_create?: string | null;
3174
+ /**
3175
+ * Gmt Modified
3176
+ * update time
3177
+ */
3178
+ gmt_modified?: string | null;
3179
+ /**
3180
+ * Task Id
3181
+ * Unique identifier for the task
3182
+ */
3183
+ task_id?: string;
3184
+ /**
3185
+ * Current status of the task
3186
+ * @default "pending"
3187
+ */
3188
+ status?: ITaskStatus;
3189
+ /**
3190
+ * Knowledge Id
3191
+ * Identifier for the source file
3192
+ */
3193
+ knowledge_id: string;
3194
+ /**
3195
+ * Metadata
3196
+ * Metadata for the task
3197
+ */
3198
+ metadata?: Record<string, any> | null;
3199
+ /**
3200
+ * Error Message
3201
+ * Error message (only present if the task failed)
3202
+ */
3203
+ error_message?: string | null;
3204
+ /**
3205
+ * Space Id
3206
+ * Identifier for the space
3207
+ */
3208
+ space_id: string;
3209
+ /**
3210
+ * User Id
3211
+ * Identifier for the user
3212
+ */
3213
+ user_id?: string | null;
3214
+ /**
3215
+ * Tenant Id
3216
+ * Identifier for the tenant
3217
+ */
3218
+ tenant_id: string;
3219
+ /**
3220
+ * Task Type
3221
+ * Type of the task
3222
+ * @default "knowledge_chunk"
3223
+ */
3224
+ task_type?: string;
3225
+ }
3226
+ /** Task */
3227
+ export interface ITaskOutput {
2750
3228
  /**
2751
3229
  * Gmt Create
2752
3230
  * creation time
2753
3231
  */
2754
- gmt_create?: string;
3232
+ gmt_create?: string | null;
2755
3233
  /**
2756
3234
  * Gmt Modified
2757
3235
  * update time
2758
3236
  */
2759
- gmt_modified?: string;
3237
+ gmt_modified?: string | null;
2760
3238
  /**
2761
3239
  * Task Id
2762
3240
  * Unique identifier for the task
@@ -2813,17 +3291,63 @@ export interface ITaskRestartRequest {
2813
3291
  task_id_list: string[];
2814
3292
  }
2815
3293
  /** Tenant */
2816
- export interface ITenant {
3294
+ export interface ITenantInput {
3295
+ /**
3296
+ * Gmt Create
3297
+ * creation time
3298
+ */
3299
+ gmt_create?: string | null;
3300
+ /**
3301
+ * Gmt Modified
3302
+ * update time
3303
+ */
3304
+ gmt_modified?: string | null;
3305
+ /**
3306
+ * Tenant Id
3307
+ * tenant id
3308
+ */
3309
+ tenant_id?: string;
3310
+ /**
3311
+ * Tenant Name
3312
+ * tenant name
3313
+ * @default ""
3314
+ */
3315
+ tenant_name?: string;
3316
+ /**
3317
+ * Email
3318
+ * email
3319
+ */
3320
+ email: string;
3321
+ /**
3322
+ * Secret Key
3323
+ * secret_key
3324
+ * @default ""
3325
+ */
3326
+ secret_key?: string;
3327
+ /**
3328
+ * Is Active
3329
+ * is active
3330
+ * @default true
3331
+ */
3332
+ is_active?: boolean;
3333
+ /**
3334
+ * Metadata
3335
+ * Metadata for the tenant
3336
+ */
3337
+ metadata?: Record<string, any> | null;
3338
+ }
3339
+ /** Tenant */
3340
+ export interface ITenantOutput {
2817
3341
  /**
2818
3342
  * Gmt Create
2819
3343
  * creation time
2820
3344
  */
2821
- gmt_create?: string;
3345
+ gmt_create?: string | null;
2822
3346
  /**
2823
3347
  * Gmt Modified
2824
3348
  * update time
2825
3349
  */
2826
- gmt_modified?: string;
3350
+ gmt_modified?: string | null;
2827
3351
  /**
2828
3352
  * Tenant Id
2829
3353
  * tenant id
@@ -2885,8 +3409,6 @@ export interface ITenantLogQuery {
2885
3409
  }
2886
3410
  /** TenantUpdate */
2887
3411
  export interface ITenantUpdate {
2888
- /** Tenant Id */
2889
- tenant_id: string;
2890
3412
  /** Tenant Name */
2891
3413
  tenant_name?: string | null;
2892
3414
  /** Email */
@@ -2924,9 +3446,8 @@ export interface ITextCreate {
2924
3446
  /**
2925
3447
  * Embedding Model Name
2926
3448
  * name of the embedding model. you can set any other model if target embedding service registered
2927
- * @default "openai"
2928
3449
  */
2929
- embedding_model_name?: IEmbeddingModelEnum | string;
3450
+ embedding_model_name: string;
2930
3451
  /**
2931
3452
  * File Sha
2932
3453
  * SHA of the file
@@ -3016,6 +3537,27 @@ export interface IValidationError {
3016
3537
  /** Error Type */
3017
3538
  type: string;
3018
3539
  }
3540
+ /**
3541
+ * WohuProductSpace
3542
+ * 产品空间响应模型
3543
+ */
3544
+ export interface IWohuProductSpace {
3545
+ /**
3546
+ * Product Id
3547
+ * 空间ID
3548
+ */
3549
+ product_id: string;
3550
+ /**
3551
+ * Product Name
3552
+ * 空间名称
3553
+ */
3554
+ product_name: string;
3555
+ /**
3556
+ * Visit Url
3557
+ * 访问地址
3558
+ */
3559
+ visit_url: string;
3560
+ }
3019
3561
  /** YuqueCreate */
3020
3562
  export interface IYuqueCreate {
3021
3563
  /**
@@ -3028,7 +3570,7 @@ export interface IYuqueCreate {
3028
3570
  * type of knowledge resource
3029
3571
  * @default "yuquedoc"
3030
3572
  */
3031
- knowledge_type?: "yuquedoc" | "github_repo";
3573
+ knowledge_type?: "yuquedoc";
3032
3574
  /**
3033
3575
  * Knowledge Name
3034
3576
  * name of the knowledge resource
@@ -3046,13 +3588,12 @@ export interface IYuqueCreate {
3046
3588
  * source type
3047
3589
  * @default "yuque"
3048
3590
  */
3049
- source_type?: "yuque";
3591
+ source_type?: "yuque" | "yuque_personal_doc" | "yuque_personal_note";
3050
3592
  /**
3051
3593
  * Embedding Model Name
3052
3594
  * name of the embedding model. you can set any other model if target embedding service registered
3053
- * @default "openai"
3054
3595
  */
3055
- embedding_model_name?: IEmbeddingModelEnum | string;
3596
+ embedding_model_name: string;
3056
3597
  /**
3057
3598
  * File Sha
3058
3599
  * SHA of the file
@@ -3072,19 +3613,45 @@ export interface IYuqueCreate {
3072
3613
  * Source Config
3073
3614
  * source config of the knowledge
3074
3615
  */
3075
- source_config: IYuqueSourceConfig | IOpenUrlSourceConfig | IOpenIdSourceConfig;
3616
+ source_config: IYuqueSourceConfig | IOpenUrlSourceConfig | IOpenIdSourceConfig | IYuquePersonalDocSourceConfig | IYuquePersonalNoteSourceConfig;
3076
3617
  /**
3077
3618
  * Split Config
3078
3619
  * split config of the knowledge
3079
3620
  */
3080
3621
  split_config: IGeaGraphSplitConfig | IYuqueSplitConfig;
3081
3622
  }
3623
+ /** YuquePersonalDocSourceConfig */
3624
+ export interface IYuquePersonalDocSourceConfig {
3625
+ /**
3626
+ * Doc Id
3627
+ * the yuque personal doc id
3628
+ */
3629
+ doc_id: number;
3630
+ /**
3631
+ * Auth Info
3632
+ * authentication information
3633
+ */
3634
+ auth_info: string;
3635
+ }
3636
+ /** YuquePersonalNoteSourceConfig */
3637
+ export interface IYuquePersonalNoteSourceConfig {
3638
+ /**
3639
+ * Note Id
3640
+ * the yuque personal note id
3641
+ */
3642
+ note_id: number;
3643
+ /**
3644
+ * Auth Info
3645
+ * authentication information
3646
+ */
3647
+ auth_info: string;
3648
+ }
3082
3649
  /** YuqueSourceConfig */
3083
3650
  export interface IYuqueSourceConfig {
3084
3651
  /**
3085
3652
  * Api Url
3086
3653
  * the yuque api url
3087
- * @default "https://www.yuque.com"
3654
+ * @default "https://yuque-api.antfin-inc.com"
3088
3655
  */
3089
3656
  api_url?: string;
3090
3657
  /**
@@ -3212,9 +3779,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3212
3779
  * @request GET:/
3213
3780
  */
3214
3781
  homePageGet: (params?: RequestParams) => Promise<HttpResponse<any, any>>;
3782
+ user: {
3783
+ /**
3784
+ * @description 根据登录账号查询用户有权限的产品空间列表 Args: login_account: 用户登录账号 Returns: 用户有权限的产品空间列表
3785
+ *
3786
+ * @tags user
3787
+ * @name GetUserProductSpaces
3788
+ * @summary Get User Product Spaces
3789
+ * @request GET:/api/user/product-spaces
3790
+ */
3791
+ getUserProductSpaces: (query: {
3792
+ /**
3793
+ * Login Account
3794
+ * 用户登录账号
3795
+ */
3796
+ login_account: string;
3797
+ }, params?: RequestParams) => Promise<HttpResponse<IResponseModelListWohuProductSpace, void | IHTTPValidationError>>;
3798
+ };
3215
3799
  knowledge: {
3216
3800
  /**
3217
- * @description Duplicate file_sha entries are prohibited. Any modifications to split_config or embedding model_name parameters must be performed using dedicated API endpoints."
3801
+ * @description 添加知识 使用DDD架构创建新的知识,禁止重复的file_sha条目。 通过TaskCoordinationService统一协调知识创建和任务执行,确保事务一致性。
3218
3802
  *
3219
3803
  * @tags knowledge
3220
3804
  * @name AddKnowledge
@@ -3223,7 +3807,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3223
3807
  */
3224
3808
  addKnowledge: (data: (ITextCreate | IImageCreate | IJSONCreate | IMarkdownCreate | IPDFCreate | IGithubRepoCreate | IQACreate | IYuqueCreate)[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListKnowledge, void | IHTTPValidationError>>;
3225
3809
  /**
3226
- * No description
3810
+ * @description 更新知识 使用DDD架构更新知识信息,支持元数据和状态更新。
3227
3811
  *
3228
3812
  * @tags knowledge
3229
3813
  * @name UpdateKnowledge
@@ -3232,7 +3816,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3232
3816
  */
3233
3817
  updateKnowledge: (data: IKnowledgeInput, params?: RequestParams) => Promise<HttpResponse<IResponseModelKnowledge, void | IHTTPValidationError>>;
3234
3818
  /**
3235
- * No description
3819
+ * @description 更新知识启用状态 使用DDD架构更新知识的启用状态。
3236
3820
  *
3237
3821
  * @tags knowledge
3238
3822
  * @name UpdateKnowledgeEnableStatus
@@ -3241,7 +3825,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3241
3825
  */
3242
3826
  updateKnowledgeEnableStatus: (data: IEnableStatusUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
3243
3827
  /**
3244
- * No description
3828
+ * @description 获取知识列表 使用DDD架构的KnowledgeService进行分页查询,支持条件过滤和排序。
3245
3829
  *
3246
3830
  * @tags knowledge
3247
3831
  * @name GetKnowledgeList
@@ -3250,7 +3834,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3250
3834
  */
3251
3835
  getKnowledgeList: (data: IPageQueryParamsKnowledge, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseKnowledge, void | IHTTPValidationError>>;
3252
3836
  /**
3253
- * No description
3837
+ * @description 根据ID获取知识详情 使用DDD架构获取知识详细信息。
3254
3838
  *
3255
3839
  * @tags knowledge
3256
3840
  * @name GetKnowledgeById
@@ -3262,7 +3846,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3262
3846
  knowledge_id: string;
3263
3847
  }, params?: RequestParams) => Promise<HttpResponse<IResponseModelKnowledge, void | IHTTPValidationError>>;
3264
3848
  /**
3265
- * @description Deletes a knowledge entry by its ID.
3849
+ * @description 删除知识 包括级联删除相关的任务和向量数据。
3266
3850
  *
3267
3851
  * @tags knowledge
3268
3852
  * @name DeleteKnowledge
@@ -3283,14 +3867,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3283
3867
  */
3284
3868
  getEmbeddingModelsList: (params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
3285
3869
  /**
3286
- * @description 处理不同类型的webhook:knowledge, deployment, notification等
3870
+ * @description 根据wohu知识库ID(space_id)和素材ID列表(knowledge_name)批量查询知识 支持最多114个素材ID的批量查询 素材ID对应knowledge_name字段 Args: body.space_id: wohu知识库ID body.knowledge_names: 素材ID列表(knowledge_name) Returns: 符合条件的知识列表
3287
3871
  *
3288
3872
  * @tags knowledge
3289
- * @name HandleWebhookApiKnowledgeWebhookTypeSourceAuthInfoKnowledgeBaseIdPost
3290
- * @summary 通用webhook处理器
3291
- * @request POST:/api/knowledge/{webhook_type}/{source}/{auth_info}/{knowledge_base_id}
3873
+ * @name BatchQueryKnowledgeByNames
3874
+ * @summary Batch Query Knowledge By Names
3875
+ * @request POST:/api/knowledge/batch_query_by_names
3292
3876
  */
3293
- handleWebhookApiKnowledgeWebhookTypeSourceAuthInfoKnowledgeBaseIdPost: (webhookType: string, source: string, authInfo: string, knowledgeBaseId: string, data: Record<string, any>, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
3877
+ batchQueryKnowledgeByNames: (data: IBatchQueryRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListKnowledge, void | IHTTPValidationError>>;
3294
3878
  };
3295
3879
  retrieval: {
3296
3880
  /**
@@ -3303,7 +3887,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3303
3887
  */
3304
3888
  retrieveKnowledgeContent: (data: IRetrievalByKnowledgeRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
3305
3889
  /**
3306
- * @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id.
3890
+ * @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id. 使用DDD架构的RetrievalService进行空间检索。
3307
3891
  *
3308
3892
  * @tags retrieval
3309
3893
  * @name RetrieveSpaceContent
@@ -3320,10 +3904,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3320
3904
  * @request POST:/api/retrieval/
3321
3905
  */
3322
3906
  retrieve: (data: IRetrievalRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
3907
+ /**
3908
+ * @description 因为 antvis 要对公网开放相关信息,故提供本单独接口
3909
+ *
3910
+ * @tags retrieval
3911
+ * @name AntvisRetrieve
3912
+ * @summary Context7 Antvis Retrieve
3913
+ * @request POST:/api/retrieval/context7/antvis
3914
+ */
3915
+ antvisRetrieve: (data: IRetrievalRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
3323
3916
  };
3324
3917
  task: {
3325
3918
  /**
3326
- * No description
3919
+ * @description 重启任务 使用DDD架构的TaskCoordinationService进行任务重启并执行。 重试规则: 1. FAILED 或 CANCELED 状态的任务可以重试 2. 创建时间超过30分钟且未成功的任务可以重试
3327
3920
  *
3328
3921
  * @tags task
3329
3922
  * @name RestartTask
@@ -3332,7 +3925,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3332
3925
  */
3333
3926
  restartTask: (data: ITaskRestartRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListTask, void | IHTTPValidationError>>;
3334
3927
  /**
3335
- * No description
3928
+ * @description 取消任务 使用DDD架构的TaskService进行任务取消。
3336
3929
  *
3337
3930
  * @tags task
3338
3931
  * @name CancelTask
@@ -3341,7 +3934,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3341
3934
  */
3342
3935
  cancelTask: (data: ITaskRestartRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListTask, void | IHTTPValidationError>>;
3343
3936
  /**
3344
- * No description
3937
+ * @description 获取任务列表 使用DDD架构的TaskService进行分页查询。
3345
3938
  *
3346
3939
  * @tags task
3347
3940
  * @name GetTaskList
@@ -3350,7 +3943,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3350
3943
  */
3351
3944
  getTaskList: (data: IPageQueryParamsTask, params?: RequestParams) => Promise<HttpResponse<IResponseModelStatusStatisticsPageResponseTask, void | IHTTPValidationError>>;
3352
3945
  /**
3353
- * No description
3946
+ * @description 获取任务详情 使用DDD架构的TaskService获取任务详情。
3354
3947
  *
3355
3948
  * @tags task
3356
3949
  * @name GetTaskDetail
@@ -3362,7 +3955,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3362
3955
  task_id: string;
3363
3956
  }, params?: RequestParams) => Promise<HttpResponse<IResponseModelTask, void | IHTTPValidationError>>;
3364
3957
  /**
3365
- * No description
3958
+ * @description 删除任务 使用DDD架构的TaskService进行任务删除。
3366
3959
  *
3367
3960
  * @tags task
3368
3961
  * @name DeleteTaskById
@@ -3376,7 +3969,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3376
3969
  };
3377
3970
  chunk: {
3378
3971
  /**
3379
- * No description
3972
+ * @description 获取Chunk列表
3380
3973
  *
3381
3974
  * @tags chunk
3382
3975
  * @name GetChunkList
@@ -3385,7 +3978,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3385
3978
  */
3386
3979
  getChunkList: (data: IPageQueryParamsChunk, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseChunk, void | IHTTPValidationError>>;
3387
3980
  /**
3388
- * No description
3981
+ * @description 根据ID删除Chunk 使用DDD架构删除指定的Chunk。
3389
3982
  *
3390
3983
  * @tags chunk
3391
3984
  * @name DeleteChunkById
@@ -3394,7 +3987,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3394
3987
  */
3395
3988
  deleteChunkById: (id: string, modelName: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelObject, void | IHTTPValidationError>>;
3396
3989
  /**
3397
- * No description
3990
+ * @description 根据ID获取Chunk 使用DDD架构获取指定的Chunk详情。
3398
3991
  *
3399
3992
  * @tags chunk
3400
3993
  * @name GetChunkById
@@ -3403,7 +3996,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3403
3996
  */
3404
3997
  getChunkById: (id: string, modelName: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelChunk, void | IHTTPValidationError>>;
3405
3998
  /**
3406
- * No description
3999
+ * @description 添加Chunk 使用DDD架构创建新的Chunk。
3407
4000
  *
3408
4001
  * @tags chunk
3409
4002
  * @name AddChunk
@@ -3412,7 +4005,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3412
4005
  */
3413
4006
  addChunk: (data: IChunkSave, params?: RequestParams) => Promise<HttpResponse<IResponseModelChunk, void | IHTTPValidationError>>;
3414
4007
  /**
3415
- * No description
4008
+ * @description 更新Chunk 使用DDD架构更新指定的Chunk。
3416
4009
  *
3417
4010
  * @tags chunk
3418
4011
  * @name UpdateChunk
@@ -3423,7 +4016,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3423
4016
  };
3424
4017
  tenant: {
3425
4018
  /**
3426
- * No description
4019
+ * @description 创建租户
3427
4020
  *
3428
4021
  * @tags tenant
3429
4022
  * @name CreateTenant
@@ -3432,7 +4025,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3432
4025
  */
3433
4026
  createTenant: (data: ITenantCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
3434
4027
  /**
3435
- * No description
4028
+ * @description 根据ID查询租户
3436
4029
  *
3437
4030
  * @tags tenant
3438
4031
  * @name GetTenantById
@@ -3441,7 +4034,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3441
4034
  */
3442
4035
  getTenantById: (id: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
3443
4036
  /**
3444
- * No description
4037
+ * @description 删除租户
3445
4038
  *
3446
4039
  * @tags tenant
3447
4040
  * @name DeleteTenantById
@@ -3450,7 +4043,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3450
4043
  */
3451
4044
  deleteTenantById: (id: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelObject, void | IHTTPValidationError>>;
3452
4045
  /**
3453
- * No description
4046
+ * @description 更新租户
3454
4047
  *
3455
4048
  * @tags tenant
3456
4049
  * @name UpdateTenant
@@ -3459,7 +4052,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3459
4052
  */
3460
4053
  updateTenant: (data: ITenantUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
3461
4054
  /**
3462
- * No description
4055
+ * @description 获取租户列表
3463
4056
  *
3464
4057
  * @tags tenant
3465
4058
  * @name GetTenantList
@@ -3479,18 +4072,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3479
4072
  page_size?: number;
3480
4073
  }, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseTenant, void | IHTTPValidationError>>;
3481
4074
  /**
3482
- * No description
4075
+ * @description 获取当前租户信息 直接返回认证系统中的租户信息。 get_tenant_with_permissions 已经包含了完整的认证和权限检查。
3483
4076
  *
3484
4077
  * @tags tenant
3485
4078
  * @name GetTenant
3486
4079
  * @summary Get Tenant
3487
4080
  * @request GET:/api/tenant/me
3488
4081
  */
3489
- getTenant: (params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
4082
+ getTenant: (params?: RequestParams) => Promise<HttpResponse<IResponseModelTenant, void | IHTTPValidationError>>;
3490
4083
  };
3491
4084
  space: {
3492
4085
  /**
3493
- * No description
4086
+ * @description 获取空间列表 使用DDD架构的SpaceService进行分页查询,支持条件过滤和排序。
3494
4087
  *
3495
4088
  * @tags space
3496
4089
  * @name GetSpaceList
@@ -3499,7 +4092,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3499
4092
  */
3500
4093
  getSpaceList: (data: IPageQueryParamsSpace, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseSpaceResponse, void | IHTTPValidationError>>;
3501
4094
  /**
3502
- * No description
4095
+ * @description 创建空间,使用DDD架构创建新的空间,支持KIS集成和元数据配置。
3503
4096
  *
3504
4097
  * @tags space
3505
4098
  * @name AddSpace
@@ -3508,7 +4101,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3508
4101
  */
3509
4102
  addSpace: (data: ISpaceCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelSpaceResponse, void | IHTTPValidationError>>;
3510
4103
  /**
3511
- * No description
4104
+ * @description 删除空间,包括级联删除相关的知识、任务和向量数据。
3512
4105
  *
3513
4106
  * @tags space
3514
4107
  * @name DeleteSpace
@@ -3517,7 +4110,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3517
4110
  */
3518
4111
  deleteSpace: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
3519
4112
  /**
3520
- * No description
4113
+ * @description 更新空间 使用DDD架构更新空间信息,支持KIS集成配置更新。
3521
4114
  *
3522
4115
  * @tags space
3523
4116
  * @name UpdateSpace
@@ -3526,7 +4119,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3526
4119
  */
3527
4120
  updateSpace: (spaceId: string, data: ISpaceCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelSpaceResponse, void | IHTTPValidationError>>;
3528
4121
  /**
3529
- * No description
4122
+ * @description 根据ID获取空间详情 使用DDD架构获取空间详细信息,包括统计数据。
3530
4123
  *
3531
4124
  * @tags space
3532
4125
  * @name GetSpaceById
@@ -3537,7 +4130,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3537
4130
  };
3538
4131
  v1: {
3539
4132
  /**
3540
- * No description
4133
+ * @description 获取系统全局统计信息 使用DDD架构的DashboardService获取系统级别的统计数据。
3541
4134
  *
3542
4135
  * @tags dashboard
3543
4136
  * @name GetGlobalInfo
@@ -3546,23 +4139,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3546
4139
  */
3547
4140
  getGlobalInfo: (params?: RequestParams) => Promise<HttpResponse<IResponseModelGlobalInfo, void>>;
3548
4141
  /**
3549
- * No description
4142
+ * @description 获取租户日志 使用DDD架构的DashboardService获取租户级别的日志数据。 注意:改为POST方法以支持复杂的查询参数。
3550
4143
  *
3551
4144
  * @tags dashboard
3552
4145
  * @name GetTenantLog
3553
4146
  * @summary Get Tenant Log
3554
- * @request GET:/api/v1/dashboard/tenant_log
4147
+ * @request POST:/api/v1/dashboard/tenant_log
3555
4148
  */
3556
4149
  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
4150
  /**
3567
4151
  * @description whisker 通用 webhook
3568
4152
  *
@@ -3573,7 +4157,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3573
4157
  */
3574
4158
  handleWebhookApiV1WebhookWebhookTypeSourceAuthInfoKnowledgeBaseIdPost: (webhookType: string, source: string, authInfo: string, knowledgeBaseId: string, data: Record<string, any>, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
3575
4159
  /**
3576
- * No description
4160
+ * @description 分页获取标签关联列表 使用DDD架构的TaggingService进行分页查询。
3577
4161
  *
3578
4162
  * @tags tagging
3579
4163
  * @name GetTaggingList
@@ -3582,7 +4166,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3582
4166
  */
3583
4167
  getTaggingList: (data: IPageQueryParamsTagging, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseTagging, void | IHTTPValidationError>>;
3584
4168
  /**
3585
- * No description
4169
+ * @description 批量新增标签关联 使用DDD架构创建新的标签关联列表。
3586
4170
  *
3587
4171
  * @tags tagging
3588
4172
  * @name AddTaggingList
@@ -3591,7 +4175,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3591
4175
  */
3592
4176
  addTaggingList: (data: ITaggingCreate[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListTagging, void | IHTTPValidationError>>;
3593
4177
  /**
3594
- * No description
4178
+ * @description 删除标签关联 使用DDD架构删除标签关联记录。
3595
4179
  *
3596
4180
  * @tags tagging
3597
4181
  * @name DeleteTaggingById
@@ -3609,7 +4193,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3609
4193
  */
3610
4194
  getTagList: (data: IPageQueryParamsTag, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseTag, void | IHTTPValidationError>>;
3611
4195
  /**
3612
- * @description 批量新增标签 注意:根据接口定义,DB 插件方法签名为 add_tag_list(tag_list: List[TagCreate]), 因此此处直接传入 body。若 TagCreate 需要携带 tenant_id,应由模型或插件内部处理。
4196
+ * @description 批量新增标签
3613
4197
  *
3614
4198
  * @tags tag
3615
4199
  * @name AddTagList
@@ -3627,7 +4211,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3627
4211
  */
3628
4212
  getTagById: (tagId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelTag, void | IHTTPValidationError>>;
3629
4213
  /**
3630
- * No description
4214
+ * @description 删除标签
3631
4215
  *
3632
4216
  * @tags tag
3633
4217
  * @name DeleteTagById
@@ -3636,7 +4220,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3636
4220
  */
3637
4221
  deleteTagById: (tagId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
3638
4222
  /**
3639
- * No description
4223
+ * @description 更新标签
3640
4224
  *
3641
4225
  * @tags tag
3642
4226
  * @name UpdateTag
@@ -3645,7 +4229,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3645
4229
  */
3646
4230
  updateTag: (data: ITagUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelTag, void | IHTTPValidationError>>;
3647
4231
  /**
3648
- * No description
4232
+ * @description 分页获取工件列表 使用DDD架构的ArtifactService进行分页查询。
3649
4233
  *
3650
4234
  * @tags artifact
3651
4235
  * @name GetArtifactList
@@ -3654,7 +4238,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3654
4238
  */
3655
4239
  getArtifactList: (data: IPageQueryParamsArtifactIndex, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseArtifactIndex, void | IHTTPValidationError>>;
3656
4240
  /**
3657
- * No description
4241
+ * @description 批量新增工件 使用DDD架构创建新的工件列表。
3658
4242
  *
3659
4243
  * @tags artifact
3660
4244
  * @name AddArtifactList
@@ -3663,7 +4247,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3663
4247
  */
3664
4248
  addArtifactList: (data: IArtifactIndexCreate[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListArtifactIndex, void | IHTTPValidationError>>;
3665
4249
  /**
3666
- * No description
4250
+ * @description 获取工件详情 使用DDD架构获取工件详细信息。
3667
4251
  *
3668
4252
  * @tags artifact
3669
4253
  * @name GetArtifactById
@@ -3672,7 +4256,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3672
4256
  */
3673
4257
  getArtifactById: (artifactId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelArtifactIndex, void | IHTTPValidationError>>;
3674
4258
  /**
3675
- * No description
4259
+ * @description 删除工件 使用DDD架构删除工件记录。
3676
4260
  *
3677
4261
  * @tags artifact
3678
4262
  * @name DeleteArtifactById
@@ -3681,18 +4265,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3681
4265
  */
3682
4266
  deleteArtifactById: (artifactId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
3683
4267
  /**
3684
- * No description
4268
+ * @description 更新工件空间绑定 使用DDD架构更新工件的空间关联。
3685
4269
  *
3686
4270
  * @tags artifact
3687
4271
  * @name UpdateArtifactSpaceId
3688
4272
  * @summary Update Artifact Space Id
3689
- * @request POST:/api/v1/artifact/update_space
4273
+ * @request POST:/api/v1/artifact/update/space_id
3690
4274
  */
3691
4275
  updateArtifactSpaceId: (data: IArtifactSpaceUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelArtifactIndex, void | IHTTPValidationError>>;
3692
4276
  };
3693
4277
  rule: {
3694
4278
  /**
3695
- * No description
4279
+ * @description 获取租户全局规则 使用DDD架构的RuleService获取租户级别的规则配置。
3696
4280
  *
3697
4281
  * @tags rule
3698
4282
  * @name GetGlobalRule
@@ -3701,7 +4285,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3701
4285
  */
3702
4286
  getGlobalRule: (params?: RequestParams) => Promise<HttpResponse<IResponseModelStr, void | IHTTPValidationError>>;
3703
4287
  /**
3704
- * No description
4288
+ * @description 获取空间规则 使用DDD架构的RuleService获取空间级别的规则配置。
3705
4289
  *
3706
4290
  * @tags rule
3707
4291
  * @name GetSpaceRule
@@ -3712,7 +4296,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3712
4296
  };
3713
4297
  apiKey: {
3714
4298
  /**
3715
- * No description
4299
+ * @description 创建API Key
3716
4300
  *
3717
4301
  * @tags api key
3718
4302
  * @name CreateApiKey
@@ -3721,7 +4305,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3721
4305
  */
3722
4306
  createApiKey: (data: IAPIKeyCreate, params?: RequestParams) => Promise<HttpResponse<IResponseModelAPIKey, void | IHTTPValidationError>>;
3723
4307
  /**
3724
- * No description
4308
+ * @description 更新API Key
3725
4309
  *
3726
4310
  * @tags api key
3727
4311
  * @name UpdateApiKey
@@ -3730,7 +4314,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3730
4314
  */
3731
4315
  updateApiKey: (data: IAPIKeyUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelAPIKey, void | IHTTPValidationError>>;
3732
4316
  /**
3733
- * No description
4317
+ * @description 获取API Key列表
3734
4318
  *
3735
4319
  * @tags api key
3736
4320
  * @name GetApiKeyList
@@ -3739,7 +4323,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3739
4323
  */
3740
4324
  getApiKeyList: (data: IPageQueryParamsAPIKey, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseAPIKey, void | IHTTPValidationError>>;
3741
4325
  /**
3742
- * No description
4326
+ * @description 删除API Key
3743
4327
  *
3744
4328
  * @tags api key
3745
4329
  * @name DeleteApiKey
@@ -3748,7 +4332,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3748
4332
  */
3749
4333
  deleteApiKey: (keyId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
3750
4334
  /**
3751
- * No description
4335
+ * @description 更改API Key激活状态
3752
4336
  *
3753
4337
  * @tags api key
3754
4338
  * @name DeactivateApiKey
@@ -3757,7 +4341,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3757
4341
  */
3758
4342
  deactivateApiKey: (keyId: string, data: IActiveStatusUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
3759
4343
  /**
3760
- * No description
4344
+ * @description 获取所有过期的API Key
3761
4345
  *
3762
4346
  * @tags api key
3763
4347
  * @name GetAllExpiredApiKeys
@@ -3766,6 +4350,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3766
4350
  */
3767
4351
  getAllExpiredApiKeys: (params?: RequestParams) => Promise<HttpResponse<IResponseModelListAPIKey, void | IHTTPValidationError>>;
3768
4352
  };
4353
+ yuque: {
4354
+ /**
4355
+ * @description 代理语雀文档API,解决CORS问题 Args: doc_id: 语雀文档ID x_auth_token: 语雀OAuth Token (从请求头获取) Returns: 语雀文档详情
4356
+ *
4357
+ * @tags yuque
4358
+ * @name ProxyYuqueGetDoc
4359
+ * @summary Proxy Yuque Get Doc
4360
+ * @request GET:/api/yuque/repos/docs/{doc_id}
4361
+ */
4362
+ proxyYuqueGetDoc: (docId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelAny, void | IHTTPValidationError>>;
4363
+ };
3769
4364
  healthChecker: {
3770
4365
  /**
3771
4366
  * No description