@petercatai/whisker-client 0.1.202512291543 → 0.1.202601141132-dev

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 +464 -867
  2. package/dist/api.js +60 -0
  3. package/package.json +4 -4
package/dist/api.d.ts CHANGED
@@ -96,6 +96,8 @@ export declare enum IKnowledgeTypeEnum {
96
96
  Kotlin = "kotlin",
97
97
  Js = "js",
98
98
  Ts = "ts",
99
+ Jsx = "jsx",
100
+ Tsx = "tsx",
99
101
  Php = "php",
100
102
  Proto = "proto",
101
103
  Python = "python",
@@ -141,69 +143,7 @@ export declare enum IAction {
141
143
  Value = "*"
142
144
  }
143
145
  /** APIKey */
144
- export interface IAPIKeyInput {
145
- /**
146
- * Gmt Create
147
- * creation time
148
- */
149
- gmt_create?: string | null;
150
- /**
151
- * Gmt Modified
152
- * update time
153
- */
154
- gmt_modified?: string | null;
155
- /**
156
- * Key Id
157
- * key id
158
- */
159
- key_id?: string;
160
- /**
161
- * Tenant Id
162
- * tenant id
163
- */
164
- tenant_id: string;
165
- /**
166
- * Key Name
167
- * key name
168
- * @default ""
169
- */
170
- key_name?: string;
171
- /**
172
- * Key Value
173
- * key value
174
- */
175
- key_value: string;
176
- /**
177
- * Permissions
178
- * permissions config
179
- */
180
- permissions?: IPermission[];
181
- /**
182
- * Rate Limit
183
- * rate limit per minute
184
- * @min 0
185
- * @default 0
186
- */
187
- rate_limit?: number;
188
- /**
189
- * Expires At
190
- * expire time (UTC)
191
- */
192
- expires_at?: string | null;
193
- /**
194
- * Is Active
195
- * key status
196
- * @default true
197
- */
198
- is_active?: boolean;
199
- /**
200
- * Metadata
201
- * key metadata
202
- */
203
- metadata?: Record<string, any> | null;
204
- }
205
- /** APIKey */
206
- export interface IAPIKeyOutput {
146
+ export interface IAPIKey {
207
147
  /**
208
148
  * Gmt Create
209
149
  * creation time
@@ -317,6 +257,59 @@ export interface IActiveStatusUpdate {
317
257
  /** Status */
318
258
  status: boolean;
319
259
  }
260
+ /**
261
+ * AdminSyncSummaryToStorageRequest
262
+ * 管理员同步 space summary 到自持 tenant 请求
263
+ */
264
+ export interface IAdminSyncSummaryToStorageRequest {
265
+ /**
266
+ * Tenant Id
267
+ * 目标租户ID
268
+ */
269
+ tenant_id: string;
270
+ /**
271
+ * Space Ids
272
+ * 空间ID列表,不传则处理该租户下所有空间
273
+ */
274
+ space_ids?: string[] | null;
275
+ /**
276
+ * Dry Run
277
+ * 是否仅预览,不实际写入
278
+ * @default false
279
+ */
280
+ dry_run?: boolean;
281
+ }
282
+ /**
283
+ * AdminSyncSummaryToStorageResponse
284
+ * 管理员同步 space summary 到自持 tenant 响应
285
+ */
286
+ export interface IAdminSyncSummaryToStorageResponse {
287
+ /**
288
+ * Total Spaces
289
+ * 总空间数
290
+ */
291
+ total_spaces: number;
292
+ /**
293
+ * Spaces With Summary
294
+ * 有 summary 的空间数
295
+ */
296
+ spaces_with_summary: number;
297
+ /**
298
+ * Synced Count
299
+ * 成功同步的数量
300
+ */
301
+ synced_count: number;
302
+ /**
303
+ * Failed Count
304
+ * 同步失败的数量
305
+ */
306
+ failed_count: number;
307
+ /**
308
+ * Details
309
+ * 各空间处理详情
310
+ */
311
+ details?: Record<string, any>[];
312
+ }
320
313
  /**
321
314
  * AdminTaskRestartRequest
322
315
  * 管理员任务重启请求
@@ -444,58 +437,7 @@ export interface IAdminUpdateTenantSecretKeyRequest {
444
437
  * ArtifactIndex
445
438
  * whisker_artifact_index 模型
446
439
  */
447
- export interface IArtifactIndexInput {
448
- /**
449
- * Gmt Create
450
- * creation time
451
- */
452
- gmt_create?: string | null;
453
- /**
454
- * Gmt Modified
455
- * update time
456
- */
457
- gmt_modified?: string | null;
458
- /**
459
- * Ecosystem
460
- * 制品来源生态系统(pypi / npm / maven / go / php)
461
- * @maxLength 32
462
- */
463
- ecosystem: string;
464
- /**
465
- * Name
466
- * 制品名(构建产物名,如 requests / @company/sdk)
467
- * @maxLength 255
468
- */
469
- name: string;
470
- /**
471
- * Version
472
- * 版本号(可为空)
473
- */
474
- version?: string | null;
475
- /**
476
- * Space Id
477
- * 关联的 whisker_space.space_id
478
- * @maxLength 255
479
- * @pattern ^[A-Za-z0-9._@/-]{1,255}$
480
- */
481
- space_id: string;
482
- /**
483
- * Extra
484
- * 额外元数据信息,扩展用,如构建参数、标签、扫描信息等
485
- * @default {}
486
- */
487
- extra?: Record<string, any>;
488
- /**
489
- * Artifact Id
490
- * 制品索引表主键(UUID字符串)
491
- */
492
- artifact_id?: string;
493
- }
494
- /**
495
- * ArtifactIndex
496
- * whisker_artifact_index 模型
497
- */
498
- export interface IArtifactIndexOutput {
440
+ export interface IArtifactIndex {
499
441
  /**
500
442
  * Gmt Create
501
443
  * creation time
@@ -651,61 +593,60 @@ export interface IBatchQueryRequest {
651
593
  }
652
594
  /**
653
595
  * Blob
654
- * Blob represents raw data by either reference or value.
655
- *
656
- * Provides an interface to materialize the blob in different representations, and
657
- * help to decouple the development of data loaders from the downstream parsing of
658
- * the raw data.
659
- *
660
- * Inspired by: https://developer.mozilla.org/en-US/docs/Web/API/Blob
596
+ * Raw data abstraction for document loading and file processing.
661
597
  *
662
- * Example: Initialize a blob from in-memory data
598
+ * Represents raw bytes or text, either in-memory or by file reference. Used
599
+ * primarily by document loaders to decouple data loading from parsing.
663
600
  *
664
- * .. code-block:: python
601
+ * Inspired by [Mozilla's `Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob)
665
602
  *
666
- * from langchain_core.documents import Blob
603
+ * ???+ example "Initialize a blob from in-memory data"
667
604
  *
668
- * blob = Blob.from_data("Hello, world!")
605
+ * ```python
606
+ * from langchain_core.documents import Blob
669
607
  *
670
- * # Read the blob as a string
671
- * print(blob.as_string())
608
+ * blob = Blob.from_data("Hello, world!")
672
609
  *
673
- * # Read the blob as bytes
674
- * print(blob.as_bytes())
610
+ * # Read the blob as a string
611
+ * print(blob.as_string())
675
612
  *
676
- * # Read the blob as a byte stream
677
- * with blob.as_bytes_io() as f:
678
- * print(f.read())
613
+ * # Read the blob as bytes
614
+ * print(blob.as_bytes())
679
615
  *
680
- * Example: Load from memory and specify mime-type and metadata
616
+ * # Read the blob as a byte stream
617
+ * with blob.as_bytes_io() as f:
618
+ * print(f.read())
619
+ * ```
681
620
  *
682
- * .. code-block:: python
621
+ * ??? example "Load from memory and specify MIME type and metadata"
683
622
  *
684
- * from langchain_core.documents import Blob
623
+ * ```python
624
+ * from langchain_core.documents import Blob
685
625
  *
686
- * blob = Blob.from_data(
687
- * data="Hello, world!",
688
- * mime_type="text/plain",
689
- * metadata={"source": "https://example.com"},
690
- * )
626
+ * blob = Blob.from_data(
627
+ * data="Hello, world!",
628
+ * mime_type="text/plain",
629
+ * metadata={"source": "https://example.com"},
630
+ * )
631
+ * ```
691
632
  *
692
- * Example: Load the blob from a file
633
+ * ??? example "Load the blob from a file"
693
634
  *
694
- * .. code-block:: python
635
+ * ```python
636
+ * from langchain_core.documents import Blob
695
637
  *
696
- * from langchain_core.documents import Blob
638
+ * blob = Blob.from_path("path/to/file.txt")
697
639
  *
698
- * blob = Blob.from_path("path/to/file.txt")
640
+ * # Read the blob as a string
641
+ * print(blob.as_string())
699
642
  *
700
- * # Read the blob as a string
701
- * print(blob.as_string())
643
+ * # Read the blob as bytes
644
+ * print(blob.as_bytes())
702
645
  *
703
- * # Read the blob as bytes
704
- * print(blob.as_bytes())
705
- *
706
- * # Read the blob as a byte stream
707
- * with blob.as_bytes_io() as f:
708
- * print(f.read())
646
+ * # Read the blob as a byte stream
647
+ * with blob.as_bytes_io() as f:
648
+ * print(f.read())
649
+ * ```
709
650
  */
710
651
  export interface IBlob {
711
652
  /** Id */
@@ -725,96 +666,7 @@ export interface IBlob {
725
666
  path?: string | null;
726
667
  }
727
668
  /** Chunk */
728
- export interface IChunkInput {
729
- /**
730
- * Gmt Create
731
- * creation time
732
- */
733
- gmt_create?: string | null;
734
- /**
735
- * Gmt Modified
736
- * update time
737
- */
738
- gmt_modified?: string | null;
739
- /**
740
- * Chunk Id
741
- * chunk id
742
- */
743
- chunk_id?: string;
744
- /**
745
- * Space Id
746
- * space id
747
- */
748
- space_id: string;
749
- /**
750
- * Tenant Id
751
- * tenant id
752
- */
753
- tenant_id: string;
754
- /**
755
- * Embedding
756
- * chunk embedding
757
- */
758
- embedding?: number[] | null;
759
- /**
760
- * Context
761
- * chunk content
762
- */
763
- context: string;
764
- /**
765
- * Knowledge Id
766
- * file source info
767
- */
768
- knowledge_id: string;
769
- /**
770
- * Enabled
771
- * is chunk enabled
772
- * @default true
773
- */
774
- enabled?: boolean;
775
- /**
776
- * Embedding Model Name
777
- * name of the embedding model
778
- */
779
- embedding_model_name: string;
780
- /**
781
- * Metadata
782
- * Arbitrary metadata associated with the content.
783
- */
784
- metadata?: Record<string, any> | null;
785
- /**
786
- * Tags
787
- * Tags from knowledge.metadata._tags
788
- */
789
- tags?: string[] | null;
790
- /**
791
- * F1
792
- * Field 1 from knowledge.metadata._f1
793
- */
794
- f1?: string | null;
795
- /**
796
- * F2
797
- * Field 2 from knowledge.metadata._f2
798
- */
799
- f2?: string | null;
800
- /**
801
- * F3
802
- * Field 3 from knowledge.metadata._f3
803
- */
804
- f3?: string | null;
805
- /**
806
- * F4
807
- * Field 4 from knowledge.metadata._f4
808
- */
809
- f4?: string | null;
810
- /**
811
- * F5
812
- * Field 5 from knowledge.metadata._f5
813
- */
814
- f5?: string | null;
815
- }
816
- /** Chunk */
817
- export interface IChunkOutput {
669
+ export interface IChunk {
818
670
  /**
819
671
  * Gmt Create
820
672
  * creation time
@@ -1227,17 +1079,8 @@ export interface IHituNodePackageCreate {
1227
1079
  /** split config of the knowledge */
1228
1080
  split_config: INodePackageParseConfig;
1229
1081
  }
1230
- /** Image */
1231
- export interface IImage {
1232
- /** Url */
1233
- url?: string | null;
1234
- /** B64 Json */
1235
- b64_json?: string | null;
1236
- /** Metadata */
1237
- metadata: Record<string, any>;
1238
- }
1239
- /** ImageCreate */
1240
- export interface IImageCreate {
1082
+ /** HituNodePackageElementCreate */
1083
+ export interface IHituNodePackageElementCreate {
1241
1084
  /**
1242
1085
  * Space Id
1243
1086
  * the space of knowledge, example: petercat bot id, github repo name
@@ -1246,9 +1089,9 @@ export interface IImageCreate {
1246
1089
  /**
1247
1090
  * Knowledge Type
1248
1091
  * type of knowledge resource
1249
- * @default "image"
1092
+ * @default "node_package_element"
1250
1093
  */
1251
- knowledge_type?: "image";
1094
+ knowledge_type?: "node_package_element";
1252
1095
  /**
1253
1096
  * Knowledge Name
1254
1097
  * name of the knowledge resource
@@ -1261,12 +1104,8 @@ export interface IImageCreate {
1261
1104
  * @default {}
1262
1105
  */
1263
1106
  metadata?: Record<string, any>;
1264
- /**
1265
- * Source Type
1266
- * image source type, if the source is image's description, the source type is text like
1267
- * @default "cloud_storage_image"
1268
- */
1269
- source_type?: "cloud_storage_image" | "cloud_storage_text" | "user_input_text";
1107
+ /** source type */
1108
+ source_type: IKnowledgeSourceEnum;
1270
1109
  /**
1271
1110
  * Embedding Model Name
1272
1111
  * name of the embedding model. you can set any other model if target embedding service registered
@@ -1274,12 +1113,80 @@ export interface IImageCreate {
1274
1113
  embedding_model_name: string;
1275
1114
  /**
1276
1115
  * File Sha
1277
- * SHA of the file, if source_type is cloud_storage_text, this field is the sha of the text file
1116
+ * SHA of the file
1278
1117
  */
1279
- file_sha: string;
1118
+ file_sha?: string | null;
1280
1119
  /**
1281
1120
  * File Size
1282
- * Byte size of the file. if source_type is cloud_storage_text, this field is the size of the text file
1121
+ * size of the file
1122
+ */
1123
+ file_size?: number | null;
1124
+ /**
1125
+ * Parent Id
1126
+ * parent id of the knowledge
1127
+ */
1128
+ parent_id?: string | null;
1129
+ /**
1130
+ * Source Config
1131
+ * source config of the knowledge
1132
+ */
1133
+ source_config: ITextSourceConfig | IOpenUrlSourceConfig | IOpenIdSourceConfig | IS3SourceConfig;
1134
+ /** split config of the knowledge */
1135
+ split_config: ITextSplitConfig;
1136
+ }
1137
+ /** Image */
1138
+ export interface IImage {
1139
+ /** Url */
1140
+ url?: string | null;
1141
+ /** B64 Json */
1142
+ b64_json?: string | null;
1143
+ /** Metadata */
1144
+ metadata: Record<string, any>;
1145
+ }
1146
+ /** ImageCreate */
1147
+ export interface IImageCreate {
1148
+ /**
1149
+ * Space Id
1150
+ * the space of knowledge, example: petercat bot id, github repo name
1151
+ */
1152
+ space_id: string;
1153
+ /**
1154
+ * Knowledge Type
1155
+ * type of knowledge resource
1156
+ * @default "image"
1157
+ */
1158
+ knowledge_type?: "image";
1159
+ /**
1160
+ * Knowledge Name
1161
+ * name of the knowledge resource
1162
+ * @maxLength 255
1163
+ */
1164
+ knowledge_name: string;
1165
+ /**
1166
+ * Metadata
1167
+ * additional metadata, user can update it
1168
+ * @default {}
1169
+ */
1170
+ metadata?: Record<string, any>;
1171
+ /**
1172
+ * Source Type
1173
+ * image source type, if the source is image's description, the source type is text like
1174
+ * @default "cloud_storage_image"
1175
+ */
1176
+ source_type?: "cloud_storage_image" | "cloud_storage_text" | "user_input_text";
1177
+ /**
1178
+ * Embedding Model Name
1179
+ * name of the embedding model. you can set any other model if target embedding service registered
1180
+ */
1181
+ embedding_model_name: string;
1182
+ /**
1183
+ * File Sha
1184
+ * SHA of the file, if source_type is cloud_storage_text, this field is the sha of the text file
1185
+ */
1186
+ file_sha: string;
1187
+ /**
1188
+ * File Size
1189
+ * Byte size of the file. if source_type is cloud_storage_text, this field is the size of the text file
1283
1190
  */
1284
1191
  file_size: number;
1285
1192
  /**
@@ -1563,6 +1470,84 @@ export interface IKnowledgeOutput {
1563
1470
  */
1564
1471
  enabled?: boolean;
1565
1472
  }
1473
+ /**
1474
+ * KnowledgeIndex
1475
+ * Knowledge Index DTO used for full-text search indexing
1476
+ */
1477
+ export interface IKnowledgeIndex {
1478
+ /**
1479
+ * Gmt Create
1480
+ * creation time
1481
+ */
1482
+ gmt_create?: string | null;
1483
+ /**
1484
+ * Gmt Modified
1485
+ * update time
1486
+ */
1487
+ gmt_modified?: string | null;
1488
+ /**
1489
+ * Tenant Id
1490
+ * Tenant ID
1491
+ */
1492
+ tenant_id: string;
1493
+ /**
1494
+ * Space Id
1495
+ * Space ID
1496
+ */
1497
+ space_id: string;
1498
+ /**
1499
+ * Knowledge Id
1500
+ * Knowledge ID
1501
+ */
1502
+ knowledge_id: string;
1503
+ /**
1504
+ * Knowledge Name
1505
+ * Knowledge Name
1506
+ */
1507
+ knowledge_name: string;
1508
+ /** Knowledge Type */
1509
+ knowledge_type: IKnowledgeTypeEnum;
1510
+ /**
1511
+ * Index Content
1512
+ * Content to be indexed
1513
+ */
1514
+ index_content: string;
1515
+ /**
1516
+ * Source Ref
1517
+ * Source reference (e.g., URL)
1518
+ */
1519
+ source_ref?: string | null;
1520
+ /**
1521
+ * Metadata
1522
+ * Additional metadata
1523
+ */
1524
+ metadata?: Record<string, any>;
1525
+ }
1526
+ /** KnowledgeIndexAddRequest */
1527
+ export interface IKnowledgeIndexAddRequest {
1528
+ /** Index Content */
1529
+ index_content: string;
1530
+ /** Source Ref */
1531
+ source_ref?: string | null;
1532
+ /** Metadata */
1533
+ metadata?: Record<string, any>;
1534
+ }
1535
+ /** LLMMapRequest */
1536
+ export interface ILLMMapRequest {
1537
+ /** Space Id */
1538
+ space_id?: string | null;
1539
+ }
1540
+ /** LLMTxtSourceRequest */
1541
+ export interface ILLMTxtSourceRequest {
1542
+ /** Source Ref */
1543
+ source_ref: string;
1544
+ /** Space Id */
1545
+ space_id?: string | null;
1546
+ /** Page */
1547
+ page?: number | null;
1548
+ /** Page Size */
1549
+ page_size?: number | null;
1550
+ }
1566
1551
  /** MarkdownCreate */
1567
1552
  export interface IMarkdownCreate {
1568
1553
  /**
@@ -1924,6 +1909,44 @@ export interface IPageQueryParamsChunk {
1924
1909
  */
1925
1910
  page_size?: number;
1926
1911
  }
1912
+ /** PageQueryParams[KnowledgeIndex] */
1913
+ export interface IPageQueryParamsKnowledgeIndex {
1914
+ /**
1915
+ * Order By
1916
+ * order by field
1917
+ */
1918
+ order_by?: string | null;
1919
+ /**
1920
+ * Order Direction
1921
+ * asc or desc
1922
+ * @default "asc"
1923
+ */
1924
+ order_direction?: string | null;
1925
+ /**
1926
+ * Eq Conditions
1927
+ * list of equality conditions, each as a dict with key and value
1928
+ */
1929
+ eq_conditions?: Record<string, any> | null;
1930
+ /** advanced filter with nested conditions */
1931
+ advanced_filter?: IFilterGroup | null;
1932
+ /** 标签过滤条件 tag_name 和 tag_id */
1933
+ tag_filter?: ITagFilter | null;
1934
+ /**
1935
+ * Page
1936
+ * page number
1937
+ * @min 1
1938
+ * @default 1
1939
+ */
1940
+ page?: number;
1941
+ /**
1942
+ * Page Size
1943
+ * page size
1944
+ * @min 1
1945
+ * @max 1000
1946
+ * @default 10
1947
+ */
1948
+ page_size?: number;
1949
+ }
1927
1950
  /** PageQueryParams[Knowledge] */
1928
1951
  export interface IPageQueryParamsKnowledge {
1929
1952
  /**
@@ -2115,22 +2138,9 @@ export interface IPageQueryParamsTask {
2115
2138
  page_size?: number;
2116
2139
  }
2117
2140
  /** PageResponse[APIKey] */
2118
- export interface IPageResponseAPIKeyInput {
2141
+ export interface IPageResponseAPIKey {
2119
2142
  /** Items */
2120
- items: IAPIKeyInput[];
2121
- /** Total */
2122
- total: number;
2123
- /** Page */
2124
- page: number;
2125
- /** Page Size */
2126
- page_size: number;
2127
- /** Total Pages */
2128
- total_pages: number;
2129
- }
2130
- /** PageResponse[APIKey] */
2131
- export interface IPageResponseAPIKeyOutput {
2132
- /** Items */
2133
- items: IAPIKeyOutput[];
2143
+ items: IAPIKey[];
2134
2144
  /** Total */
2135
2145
  total: number;
2136
2146
  /** Page */
@@ -2141,22 +2151,9 @@ export interface IPageResponseAPIKeyOutput {
2141
2151
  total_pages: number;
2142
2152
  }
2143
2153
  /** PageResponse[ArtifactIndex] */
2144
- export interface IPageResponseArtifactIndexInput {
2154
+ export interface IPageResponseArtifactIndex {
2145
2155
  /** Items */
2146
- items: IArtifactIndexInput[];
2147
- /** Total */
2148
- total: number;
2149
- /** Page */
2150
- page: number;
2151
- /** Page Size */
2152
- page_size: number;
2153
- /** Total Pages */
2154
- total_pages: number;
2155
- }
2156
- /** PageResponse[ArtifactIndex] */
2157
- export interface IPageResponseArtifactIndexOutput {
2158
- /** Items */
2159
- items: IArtifactIndexOutput[];
2156
+ items: IArtifactIndex[];
2160
2157
  /** Total */
2161
2158
  total: number;
2162
2159
  /** Page */
@@ -2167,9 +2164,9 @@ export interface IPageResponseArtifactIndexOutput {
2167
2164
  total_pages: number;
2168
2165
  }
2169
2166
  /** PageResponse[Chunk] */
2170
- export interface IPageResponseChunkInput {
2167
+ export interface IPageResponseChunk {
2171
2168
  /** Items */
2172
- items: IChunkInput[];
2169
+ items: IChunk[];
2173
2170
  /** Total */
2174
2171
  total: number;
2175
2172
  /** Page */
@@ -2179,10 +2176,10 @@ export interface IPageResponseChunkInput {
2179
2176
  /** Total Pages */
2180
2177
  total_pages: number;
2181
2178
  }
2182
- /** PageResponse[Chunk] */
2183
- export interface IPageResponseChunkOutput {
2179
+ /** PageResponse[KnowledgeIndex] */
2180
+ export interface IPageResponseKnowledgeIndex {
2184
2181
  /** Items */
2185
- items: IChunkOutput[];
2182
+ items: IKnowledgeIndex[];
2186
2183
  /** Total */
2187
2184
  total: number;
2188
2185
  /** Page */
@@ -2193,20 +2190,7 @@ export interface IPageResponseChunkOutput {
2193
2190
  total_pages: number;
2194
2191
  }
2195
2192
  /** PageResponse[Knowledge] */
2196
- export interface IPageResponseKnowledgeInput {
2197
- /** Items */
2198
- items: IKnowledgeInput[];
2199
- /** Total */
2200
- total: number;
2201
- /** Page */
2202
- page: number;
2203
- /** Page Size */
2204
- page_size: number;
2205
- /** Total Pages */
2206
- total_pages: number;
2207
- }
2208
- /** PageResponse[Knowledge] */
2209
- export interface IPageResponseKnowledgeOutput {
2193
+ export interface IPageResponseKnowledge {
2210
2194
  /** Items */
2211
2195
  items: IKnowledgeOutput[];
2212
2196
  /** Total */
@@ -2219,35 +2203,9 @@ export interface IPageResponseKnowledgeOutput {
2219
2203
  total_pages: number;
2220
2204
  }
2221
2205
  /** PageResponse[SpaceResponse] */
2222
- export interface IPageResponseSpaceResponseInput {
2223
- /** Items */
2224
- items: ISpaceResponseInput[];
2225
- /** Total */
2226
- total: number;
2227
- /** Page */
2228
- page: number;
2229
- /** Page Size */
2230
- page_size: number;
2231
- /** Total Pages */
2232
- total_pages: number;
2233
- }
2234
- /** PageResponse[SpaceResponse] */
2235
- export interface IPageResponseSpaceResponseOutput {
2236
- /** Items */
2237
- items: ISpaceResponseOutput[];
2238
- /** Total */
2239
- total: number;
2240
- /** Page */
2241
- page: number;
2242
- /** Page Size */
2243
- page_size: number;
2244
- /** Total Pages */
2245
- total_pages: number;
2246
- }
2247
- /** PageResponse[Tag] */
2248
- export interface IPageResponseTagInput {
2206
+ export interface IPageResponseSpaceResponse {
2249
2207
  /** Items */
2250
- items: ITagInput[];
2208
+ items: ISpaceResponse[];
2251
2209
  /** Total */
2252
2210
  total: number;
2253
2211
  /** Page */
@@ -2258,22 +2216,9 @@ export interface IPageResponseTagInput {
2258
2216
  total_pages: number;
2259
2217
  }
2260
2218
  /** PageResponse[Tag] */
2261
- export interface IPageResponseTagOutput {
2262
- /** Items */
2263
- items: ITagOutput[];
2264
- /** Total */
2265
- total: number;
2266
- /** Page */
2267
- page: number;
2268
- /** Page Size */
2269
- page_size: number;
2270
- /** Total Pages */
2271
- total_pages: number;
2272
- }
2273
- /** PageResponse[Tagging] */
2274
- export interface IPageResponseTaggingInput {
2219
+ export interface IPageResponseTag {
2275
2220
  /** Items */
2276
- items: ITaggingInput[];
2221
+ items: ITag[];
2277
2222
  /** Total */
2278
2223
  total: number;
2279
2224
  /** Page */
@@ -2284,9 +2229,9 @@ export interface IPageResponseTaggingInput {
2284
2229
  total_pages: number;
2285
2230
  }
2286
2231
  /** PageResponse[Tagging] */
2287
- export interface IPageResponseTaggingOutput {
2232
+ export interface IPageResponseTagging {
2288
2233
  /** Items */
2289
- items: ITaggingOutput[];
2234
+ items: ITagging[];
2290
2235
  /** Total */
2291
2236
  total: number;
2292
2237
  /** Page */
@@ -2297,22 +2242,9 @@ export interface IPageResponseTaggingOutput {
2297
2242
  total_pages: number;
2298
2243
  }
2299
2244
  /** PageResponse[Tenant] */
2300
- export interface IPageResponseTenantInput {
2245
+ export interface IPageResponseTenant {
2301
2246
  /** Items */
2302
- items: ITenantInput[];
2303
- /** Total */
2304
- total: number;
2305
- /** Page */
2306
- page: number;
2307
- /** Page Size */
2308
- page_size: number;
2309
- /** Total Pages */
2310
- total_pages: number;
2311
- }
2312
- /** PageResponse[Tenant] */
2313
- export interface IPageResponseTenantOutput {
2314
- /** Items */
2315
- items: ITenantOutput[];
2247
+ items: ITenant[];
2316
2248
  /** Total */
2317
2249
  total: number;
2318
2250
  /** Page */
@@ -2409,7 +2341,15 @@ export interface IResponseModel {
2409
2341
  export interface IResponseModelAPIKey {
2410
2342
  /** Success */
2411
2343
  success: boolean;
2412
- data?: IAPIKeyOutput | null;
2344
+ data?: IAPIKey | null;
2345
+ /** Message */
2346
+ message?: string | null;
2347
+ }
2348
+ /** ResponseModel[AdminSyncSummaryToStorageResponse] */
2349
+ export interface IResponseModelAdminSyncSummaryToStorageResponse {
2350
+ /** Success */
2351
+ success: boolean;
2352
+ data?: IAdminSyncSummaryToStorageResponse | null;
2413
2353
  /** Message */
2414
2354
  message?: string | null;
2415
2355
  }
@@ -2434,7 +2374,7 @@ export interface IResponseModelAny {
2434
2374
  export interface IResponseModelArtifactIndex {
2435
2375
  /** Success */
2436
2376
  success: boolean;
2437
- data?: IArtifactIndexOutput | null;
2377
+ data?: IArtifactIndex | null;
2438
2378
  /** Message */
2439
2379
  message?: string | null;
2440
2380
  }
@@ -2442,7 +2382,7 @@ export interface IResponseModelArtifactIndex {
2442
2382
  export interface IResponseModelChunk {
2443
2383
  /** Success */
2444
2384
  success: boolean;
2445
- data?: IChunkOutput | null;
2385
+ data?: IChunk | null;
2446
2386
  /** Message */
2447
2387
  message?: string | null;
2448
2388
  }
@@ -2463,6 +2403,14 @@ export interface IResponseModelGlobalInfo {
2463
2403
  /** Message */
2464
2404
  message?: string | null;
2465
2405
  }
2406
+ /** ResponseModel[KnowledgeIndex] */
2407
+ export interface IResponseModelKnowledgeIndex {
2408
+ /** Success */
2409
+ success: boolean;
2410
+ data?: IKnowledgeIndex | null;
2411
+ /** Message */
2412
+ message?: string | null;
2413
+ }
2466
2414
  /** ResponseModel[Knowledge] */
2467
2415
  export interface IResponseModelKnowledge {
2468
2416
  /** Success */
@@ -2476,7 +2424,7 @@ export interface IResponseModelListAPIKey {
2476
2424
  /** Success */
2477
2425
  success: boolean;
2478
2426
  /** Data */
2479
- data?: IAPIKeyOutput[] | null;
2427
+ data?: IAPIKey[] | null;
2480
2428
  /** Message */
2481
2429
  message?: string | null;
2482
2430
  }
@@ -2485,7 +2433,7 @@ export interface IResponseModelListArtifactIndex {
2485
2433
  /** Success */
2486
2434
  success: boolean;
2487
2435
  /** Data */
2488
- data?: IArtifactIndexOutput[] | null;
2436
+ data?: IArtifactIndex[] | null;
2489
2437
  /** Message */
2490
2438
  message?: string | null;
2491
2439
  }
@@ -2503,7 +2451,7 @@ export interface IResponseModelListRetrievalChunk {
2503
2451
  /** Success */
2504
2452
  success: boolean;
2505
2453
  /** Data */
2506
- data?: IRetrievalChunkOutput[] | null;
2454
+ data?: IRetrievalChunk[] | null;
2507
2455
  /** Message */
2508
2456
  message?: string | null;
2509
2457
  }
@@ -2512,7 +2460,7 @@ export interface IResponseModelListTag {
2512
2460
  /** Success */
2513
2461
  success: boolean;
2514
2462
  /** Data */
2515
- data?: ITagOutput[] | null;
2463
+ data?: ITag[] | null;
2516
2464
  /** Message */
2517
2465
  message?: string | null;
2518
2466
  }
@@ -2521,7 +2469,7 @@ export interface IResponseModelListTagging {
2521
2469
  /** Success */
2522
2470
  success: boolean;
2523
2471
  /** Data */
2524
- data?: ITaggingOutput[] | null;
2472
+ data?: ITagging[] | null;
2525
2473
  /** Message */
2526
2474
  message?: string | null;
2527
2475
  }
@@ -2530,7 +2478,7 @@ export interface IResponseModelListTask {
2530
2478
  /** Success */
2531
2479
  success: boolean;
2532
2480
  /** Data */
2533
- data?: ITaskOutput[] | null;
2481
+ data?: ITask[] | null;
2534
2482
  /** Message */
2535
2483
  message?: string | null;
2536
2484
  }
@@ -2574,7 +2522,7 @@ export interface IResponseModelNoneType {
2574
2522
  export interface IResponseModelPageResponseAPIKey {
2575
2523
  /** Success */
2576
2524
  success: boolean;
2577
- data?: IPageResponseAPIKeyOutput | null;
2525
+ data?: IPageResponseAPIKey | null;
2578
2526
  /** Message */
2579
2527
  message?: string | null;
2580
2528
  }
@@ -2582,7 +2530,7 @@ export interface IResponseModelPageResponseAPIKey {
2582
2530
  export interface IResponseModelPageResponseArtifactIndex {
2583
2531
  /** Success */
2584
2532
  success: boolean;
2585
- data?: IPageResponseArtifactIndexOutput | null;
2533
+ data?: IPageResponseArtifactIndex | null;
2586
2534
  /** Message */
2587
2535
  message?: string | null;
2588
2536
  }
@@ -2590,7 +2538,15 @@ export interface IResponseModelPageResponseArtifactIndex {
2590
2538
  export interface IResponseModelPageResponseChunk {
2591
2539
  /** Success */
2592
2540
  success: boolean;
2593
- data?: IPageResponseChunkOutput | null;
2541
+ data?: IPageResponseChunk | null;
2542
+ /** Message */
2543
+ message?: string | null;
2544
+ }
2545
+ /** ResponseModel[PageResponse[KnowledgeIndex]] */
2546
+ export interface IResponseModelPageResponseKnowledgeIndex {
2547
+ /** Success */
2548
+ success: boolean;
2549
+ data?: IPageResponseKnowledgeIndex | null;
2594
2550
  /** Message */
2595
2551
  message?: string | null;
2596
2552
  }
@@ -2598,7 +2554,7 @@ export interface IResponseModelPageResponseChunk {
2598
2554
  export interface IResponseModelPageResponseKnowledge {
2599
2555
  /** Success */
2600
2556
  success: boolean;
2601
- data?: IPageResponseKnowledgeOutput | null;
2557
+ data?: IPageResponseKnowledge | null;
2602
2558
  /** Message */
2603
2559
  message?: string | null;
2604
2560
  }
@@ -2606,7 +2562,7 @@ export interface IResponseModelPageResponseKnowledge {
2606
2562
  export interface IResponseModelPageResponseSpaceResponse {
2607
2563
  /** Success */
2608
2564
  success: boolean;
2609
- data?: IPageResponseSpaceResponseOutput | null;
2565
+ data?: IPageResponseSpaceResponse | null;
2610
2566
  /** Message */
2611
2567
  message?: string | null;
2612
2568
  }
@@ -2614,7 +2570,7 @@ export interface IResponseModelPageResponseSpaceResponse {
2614
2570
  export interface IResponseModelPageResponseTag {
2615
2571
  /** Success */
2616
2572
  success: boolean;
2617
- data?: IPageResponseTagOutput | null;
2573
+ data?: IPageResponseTag | null;
2618
2574
  /** Message */
2619
2575
  message?: string | null;
2620
2576
  }
@@ -2622,7 +2578,7 @@ export interface IResponseModelPageResponseTag {
2622
2578
  export interface IResponseModelPageResponseTagging {
2623
2579
  /** Success */
2624
2580
  success: boolean;
2625
- data?: IPageResponseTaggingOutput | null;
2581
+ data?: IPageResponseTagging | null;
2626
2582
  /** Message */
2627
2583
  message?: string | null;
2628
2584
  }
@@ -2630,7 +2586,7 @@ export interface IResponseModelPageResponseTagging {
2630
2586
  export interface IResponseModelPageResponseTenant {
2631
2587
  /** Success */
2632
2588
  success: boolean;
2633
- data?: IPageResponseTenantOutput | null;
2589
+ data?: IPageResponseTenant | null;
2634
2590
  /** Message */
2635
2591
  message?: string | null;
2636
2592
  }
@@ -2638,7 +2594,7 @@ export interface IResponseModelPageResponseTenant {
2638
2594
  export interface IResponseModelSpaceResponse {
2639
2595
  /** Success */
2640
2596
  success: boolean;
2641
- data?: ISpaceResponseOutput | null;
2597
+ data?: ISpaceResponse | null;
2642
2598
  /** Message */
2643
2599
  message?: string | null;
2644
2600
  }
@@ -2646,7 +2602,7 @@ export interface IResponseModelSpaceResponse {
2646
2602
  export interface IResponseModelSpace {
2647
2603
  /** Success */
2648
2604
  success: boolean;
2649
- data?: ISpaceOutput | null;
2605
+ data?: ISpace | null;
2650
2606
  /** Message */
2651
2607
  message?: string | null;
2652
2608
  }
@@ -2654,7 +2610,7 @@ export interface IResponseModelSpace {
2654
2610
  export interface IResponseModelStatusStatisticsPageResponseTask {
2655
2611
  /** Success */
2656
2612
  success: boolean;
2657
- data?: IStatusStatisticsPageResponseTaskOutput | null;
2613
+ data?: IStatusStatisticsPageResponseTask | null;
2658
2614
  /** Message */
2659
2615
  message?: string | null;
2660
2616
  }
@@ -2662,7 +2618,7 @@ export interface IResponseModelStatusStatisticsPageResponseTask {
2662
2618
  export interface IResponseModelTag {
2663
2619
  /** Success */
2664
2620
  success: boolean;
2665
- data?: ITagOutput | null;
2621
+ data?: ITag | null;
2666
2622
  /** Message */
2667
2623
  message?: string | null;
2668
2624
  }
@@ -2670,7 +2626,7 @@ export interface IResponseModelTag {
2670
2626
  export interface IResponseModelTask {
2671
2627
  /** Success */
2672
2628
  success: boolean;
2673
- data?: ITaskOutput | null;
2629
+ data?: ITask | null;
2674
2630
  /** Message */
2675
2631
  message?: string | null;
2676
2632
  }
@@ -2686,7 +2642,16 @@ export interface IResponseModelTenantNameCheckResponse {
2686
2642
  export interface IResponseModelTenant {
2687
2643
  /** Success */
2688
2644
  success: boolean;
2689
- data?: ITenantOutput | null;
2645
+ data?: ITenant | null;
2646
+ /** Message */
2647
+ message?: string | null;
2648
+ }
2649
+ /** ResponseModel[bool] */
2650
+ export interface IResponseModelBool {
2651
+ /** Success */
2652
+ success: boolean;
2653
+ /** Data */
2654
+ data?: boolean | null;
2690
2655
  /** Message */
2691
2656
  message?: string | null;
2692
2657
  }
@@ -2787,98 +2752,7 @@ export interface IRetrievalBySpaceRequest {
2787
2752
  space_id_list: string[];
2788
2753
  }
2789
2754
  /** RetrievalChunk */
2790
- export interface IRetrievalChunkInput {
2791
- /**
2792
- * Gmt Create
2793
- * creation time
2794
- */
2795
- gmt_create?: string | null;
2796
- /**
2797
- * Gmt Modified
2798
- * update time
2799
- */
2800
- gmt_modified?: string | null;
2801
- /**
2802
- * Chunk Id
2803
- * chunk id
2804
- */
2805
- chunk_id?: string;
2806
- /**
2807
- * Space Id
2808
- * space id
2809
- */
2810
- space_id: string;
2811
- /**
2812
- * Tenant Id
2813
- * tenant id
2814
- */
2815
- tenant_id: string;
2816
- /**
2817
- * Embedding
2818
- * chunk embedding
2819
- */
2820
- embedding?: number[] | null;
2821
- /**
2822
- * Context
2823
- * chunk content
2824
- */
2825
- context: string;
2826
- /**
2827
- * Knowledge Id
2828
- * file source info
2829
- */
2830
- knowledge_id: string;
2831
- /**
2832
- * Enabled
2833
- * is chunk enabled
2834
- * @default true
2835
- */
2836
- enabled?: boolean;
2837
- /** Embedding Model Name */
2838
- embedding_model_name?: string | null;
2839
- /**
2840
- * Metadata
2841
- * Arbitrary metadata associated with the content.
2842
- */
2843
- metadata?: Record<string, any> | null;
2844
- /**
2845
- * Tags
2846
- * Tags from knowledge.metadata._tags
2847
- */
2848
- tags?: string[] | null;
2849
- /**
2850
- * F1
2851
- * Field 1 from knowledge.metadata._f1
2852
- */
2853
- f1?: string | null;
2854
- /**
2855
- * F2
2856
- * Field 2 from knowledge.metadata._f2
2857
- */
2858
- f2?: string | null;
2859
- /**
2860
- * F3
2861
- * Field 3 from knowledge.metadata._f3
2862
- */
2863
- f3?: string | null;
2864
- /**
2865
- * F4
2866
- * Field 4 from knowledge.metadata._f4
2867
- */
2868
- f4?: string | null;
2869
- /**
2870
- * F5
2871
- * Field 5 from knowledge.metadata._f5
2872
- */
2873
- f5?: string | null;
2874
- /**
2875
- * Similarity
2876
- * The similarity of the chunk, ranging from 0.0 to 1.0.
2877
- */
2878
- similarity: number;
2879
- }
2880
- /** RetrievalChunk */
2881
- export interface IRetrievalChunkOutput {
2755
+ export interface IRetrievalChunk {
2882
2756
  /**
2883
2757
  * Gmt Create
2884
2758
  * creation time
@@ -3031,48 +2905,7 @@ export interface IS3SourceConfig {
3031
2905
  auth_info?: string | null;
3032
2906
  }
3033
2907
  /** Space */
3034
- export interface ISpaceInput {
3035
- /**
3036
- * Gmt Create
3037
- * creation time
3038
- */
3039
- gmt_create?: string | null;
3040
- /**
3041
- * Gmt Modified
3042
- * update time
3043
- */
3044
- gmt_modified?: string | null;
3045
- /**
3046
- * Space Name
3047
- * name of the space resource
3048
- * @maxLength 64
3049
- */
3050
- space_name: string;
3051
- /**
3052
- * Space Id
3053
- * space id
3054
- */
3055
- space_id?: string;
3056
- /**
3057
- * Description
3058
- * descrition of the space
3059
- * @maxLength 255
3060
- */
3061
- description: string;
3062
- /**
3063
- * Metadata
3064
- * metadata of the space resource
3065
- * @default {}
3066
- */
3067
- metadata?: Record<string, any>;
3068
- /**
3069
- * Tenant Id
3070
- * tenant id
3071
- */
3072
- tenant_id: string;
3073
- }
3074
- /** Space */
3075
- export interface ISpaceOutput {
2908
+ export interface ISpace {
3076
2909
  /**
3077
2910
  * Gmt Create
3078
2911
  * creation time
@@ -3154,67 +2987,7 @@ export interface ISpaceCreate {
3154
2987
  * total_size Optional[int]: size of the all kowledge in this space.
3155
2988
  * knowledge_size Optional[int]: count of the knowledge in this space.
3156
2989
  */
3157
- export interface ISpaceResponseInput {
3158
- /**
3159
- * Gmt Create
3160
- * creation time
3161
- */
3162
- gmt_create?: string | null;
3163
- /**
3164
- * Gmt Modified
3165
- * update time
3166
- */
3167
- gmt_modified?: string | null;
3168
- /**
3169
- * Space Name
3170
- * name of the space resource
3171
- * @maxLength 64
3172
- */
3173
- space_name: string;
3174
- /**
3175
- * Space Id
3176
- * space id
3177
- */
3178
- space_id?: string;
3179
- /**
3180
- * Description
3181
- * descrition of the space
3182
- * @maxLength 255
3183
- */
3184
- description: string;
3185
- /**
3186
- * Metadata
3187
- * metadata of the space resource
3188
- * @default {}
3189
- */
3190
- metadata?: Record<string, any>;
3191
- /**
3192
- * Tenant Id
3193
- * tenant id
3194
- */
3195
- tenant_id: string;
3196
- /**
3197
- * Storage Size
3198
- * size of the all kowledge in this space
3199
- * @default 0
3200
- */
3201
- storage_size?: number | null;
3202
- /**
3203
- * Knowledge Count
3204
- * count of the knowledge in this space
3205
- * @default 0
3206
- */
3207
- knowledge_count?: number | null;
3208
- }
3209
- /**
3210
- * SpaceResponse
3211
- * SpaceResponse model class that extends Space.
3212
- * Attributes:
3213
- * (str): Space ID.
3214
- * total_size Optional[int]: size of the all kowledge in this space.
3215
- * knowledge_size Optional[int]: count of the knowledge in this space.
3216
- */
3217
- export interface ISpaceResponseOutput {
2990
+ export interface ISpaceResponse {
3218
2991
  /**
3219
2992
  * Gmt Create
3220
2993
  * creation time
@@ -3254,98 +3027,50 @@ export interface ISpaceResponseOutput {
3254
3027
  */
3255
3028
  tenant_id: string;
3256
3029
  /**
3257
- * Storage Size
3258
- * size of the all kowledge in this space
3259
- * @default 0
3260
- */
3261
- storage_size?: number | null;
3262
- /**
3263
- * Knowledge Count
3264
- * count of the knowledge in this space
3265
- * @default 0
3266
- */
3267
- knowledge_count?: number | null;
3268
- }
3269
- /**
3270
- * SpaceUpdate
3271
- * SpaceUpdate model for updating space resources.
3272
- * All fields are optional to support partial updates.
3273
- *
3274
- * Attributes:
3275
- * space_name (Optional[str]): Space name, example: petercat bot group.
3276
- * description (Optional[str]): description of the space resource.
3277
- * metadata (Optional[Dict[str, Any]]): metadata of the space resource, such as embedding model name
3278
- * and other parameters.
3279
- */
3280
- export interface ISpaceUpdate {
3281
- /**
3282
- * Space Name
3283
- * name of the space resource
3284
- */
3285
- space_name?: string | null;
3286
- /**
3287
- * Description
3288
- * description of the space
3289
- */
3290
- description?: string | null;
3291
- /**
3292
- * Metadata
3293
- * metadata of the space resource
3294
- */
3295
- metadata?: Record<string, any> | null;
3296
- }
3297
- /** StatusStatisticsPageResponse[Task] */
3298
- export interface IStatusStatisticsPageResponseTaskInput {
3299
- /** Items */
3300
- items: ITaskInput[];
3301
- /** Total */
3302
- total: number;
3303
- /** Page */
3304
- page: number;
3305
- /** Page Size */
3306
- page_size: number;
3307
- /** Total Pages */
3308
- total_pages: number;
3309
- /**
3310
- * Success
3311
- * @default 0
3312
- */
3313
- success?: number;
3314
- /**
3315
- * Failed
3316
- * @default 0
3317
- */
3318
- failed?: number;
3319
- /**
3320
- * Cancelled
3030
+ * Storage Size
3031
+ * size of the all kowledge in this space
3321
3032
  * @default 0
3322
3033
  */
3323
- cancelled?: number;
3034
+ storage_size?: number | null;
3324
3035
  /**
3325
- * Pending
3036
+ * Knowledge Count
3037
+ * count of the knowledge in this space
3326
3038
  * @default 0
3327
3039
  */
3328
- pending?: number;
3040
+ knowledge_count?: number | null;
3041
+ }
3042
+ /**
3043
+ * SpaceUpdate
3044
+ * SpaceUpdate model for updating space resources.
3045
+ * All fields are optional to support partial updates.
3046
+ *
3047
+ * Attributes:
3048
+ * space_name (Optional[str]): Space name, example: petercat bot group.
3049
+ * description (Optional[str]): description of the space resource.
3050
+ * metadata (Optional[Dict[str, Any]]): metadata of the space resource, such as embedding model name
3051
+ * and other parameters.
3052
+ */
3053
+ export interface ISpaceUpdate {
3329
3054
  /**
3330
- * Running
3331
- * @default 0
3055
+ * Space Name
3056
+ * name of the space resource
3332
3057
  */
3333
- running?: number;
3058
+ space_name?: string | null;
3334
3059
  /**
3335
- * Pending Retry
3336
- * @default 0
3060
+ * Description
3061
+ * description of the space
3337
3062
  */
3338
- pending_retry?: number;
3063
+ description?: string | null;
3339
3064
  /**
3340
- * Deleted
3341
- * @default 0
3065
+ * Metadata
3066
+ * metadata of the space resource
3342
3067
  */
3343
- deleted?: number;
3068
+ metadata?: Record<string, any> | null;
3344
3069
  }
3345
3070
  /** StatusStatisticsPageResponse[Task] */
3346
- export interface IStatusStatisticsPageResponseTaskOutput {
3071
+ export interface IStatusStatisticsPageResponseTask {
3347
3072
  /** Items */
3348
- items: ITaskOutput[];
3073
+ items: ITask[];
3349
3074
  /** Total */
3350
3075
  total: number;
3351
3076
  /** Page */
@@ -3391,47 +3116,7 @@ export interface IStatusStatisticsPageResponseTaskOutput {
3391
3116
  deleted?: number;
3392
3117
  }
3393
3118
  /** Tag */
3394
- export interface ITagInput {
3395
- /**
3396
- * Gmt Create
3397
- * creation time
3398
- */
3399
- gmt_create?: string | null;
3400
- /**
3401
- * Gmt Modified
3402
- * update time
3403
- */
3404
- gmt_modified?: string | null;
3405
- /**
3406
- * Name
3407
- * 标签名称(租户内唯一)
3408
- * @maxLength 64
3409
- */
3410
- name: string;
3411
- /**
3412
- * Description
3413
- * 标签描述
3414
- */
3415
- description?: string | null;
3416
- /**
3417
- * 标签作用对象类型(如 "space")
3418
- * @default "space"
3419
- */
3420
- object_type?: ITagObjectType;
3421
- /**
3422
- * Tag Id
3423
- * 标签ID(UUID字符串)
3424
- */
3425
- tag_id?: string;
3426
- /**
3427
- * Tenant Id
3428
- * 所属租户ID
3429
- * @maxLength 64
3430
- */
3431
- tenant_id: string;
3432
- }
3433
- /** Tag */
3434
- export interface ITagOutput {
3119
+ export interface ITag {
3435
3120
  /**
3436
3121
  * Gmt Create
3437
3122
  * creation time
@@ -3508,54 +3193,7 @@ export interface ITagUpdate {
3508
3193
  description?: string | null;
3509
3194
  }
3510
3195
  /** Tagging */
3511
- export interface ITaggingInput {
3512
- /**
3513
- * Gmt Create
3514
- * creation time
3515
- */
3516
- gmt_create?: string | null;
3517
- /**
3518
- * Gmt Modified
3519
- * update time
3520
- */
3521
- gmt_modified?: string | null;
3522
- /**
3523
- * Tagging Id
3524
- * 标签绑定ID(UUID字符串)
3525
- */
3526
- tagging_id?: string;
3527
- /**
3528
- * Tenant Id
3529
- * 所属租户ID
3530
- * @maxLength 64
3531
- */
3532
- tenant_id: string;
3533
- /**
3534
- * Tag Id
3535
- * 标签ID(FK -> tag.tag_id,UUID字符串)
3536
- */
3537
- tag_id: string;
3538
- /**
3539
- * Tag Name
3540
- * 标签名称(在 object_type 内唯一)
3541
- * @maxLength 64
3542
- */
3543
- tag_name: string;
3544
- /**
3545
- * Object Id
3546
- * 被打标签对象ID(如 space_id)
3547
- * @maxLength 255
3548
- */
3549
- object_id: string;
3550
- /**
3551
- * 对象类型,当前仅支持 "space"
3552
- * @maxLength 32
3553
- * @default "space"
3554
- */
3555
- object_type?: ITagObjectType;
3556
- }
3557
- /** Tagging */
3558
- export interface ITaggingOutput {
3196
+ export interface ITagging {
3559
3197
  /**
3560
3198
  * Gmt Create
3561
3199
  * creation time
@@ -3629,66 +3267,7 @@ export interface ITagsUpdate {
3629
3267
  tags: string[];
3630
3268
  }
3631
3269
  /** Task */
3632
- export interface ITaskInput {
3633
- /**
3634
- * Gmt Create
3635
- * creation time
3636
- */
3637
- gmt_create?: string | null;
3638
- /**
3639
- * Gmt Modified
3640
- * update time
3641
- */
3642
- gmt_modified?: string | null;
3643
- /**
3644
- * Task Id
3645
- * Unique identifier for the task
3646
- */
3647
- task_id?: string;
3648
- /**
3649
- * Current status of the task
3650
- * @default "pending"
3651
- */
3652
- status?: ITaskStatus;
3653
- /**
3654
- * Knowledge Id
3655
- * Identifier for the source file
3656
- */
3657
- knowledge_id: string;
3658
- /**
3659
- * Metadata
3660
- * Metadata for the task
3661
- */
3662
- metadata?: Record<string, any> | null;
3663
- /**
3664
- * Error Message
3665
- * Error message (only present if the task failed)
3666
- */
3667
- error_message?: string | null;
3668
- /**
3669
- * Space Id
3670
- * Identifier for the space
3671
- */
3672
- space_id: string;
3673
- /**
3674
- * User Id
3675
- * Identifier for the user
3676
- */
3677
- user_id?: string | null;
3678
- /**
3679
- * Tenant Id
3680
- * Identifier for the tenant
3681
- */
3682
- tenant_id: string;
3683
- /**
3684
- * Task Type
3685
- * Type of the task
3686
- * @default "knowledge_chunk"
3687
- */
3688
- task_type?: string;
3689
- }
3690
- /** Task */
3691
- export interface ITaskOutput {
3270
+ export interface ITask {
3692
3271
  /**
3693
3272
  * Gmt Create
3694
3273
  * creation time
@@ -3755,53 +3334,7 @@ export interface ITaskRestartRequest {
3755
3334
  task_id_list: string[];
3756
3335
  }
3757
3336
  /** Tenant */
3758
- export interface ITenantInput {
3759
- /**
3760
- * Gmt Create
3761
- * creation time
3762
- */
3763
- gmt_create?: string | null;
3764
- /**
3765
- * Gmt Modified
3766
- * update time
3767
- */
3768
- gmt_modified?: string | null;
3769
- /**
3770
- * Tenant Id
3771
- * tenant id
3772
- */
3773
- tenant_id?: string;
3774
- /**
3775
- * Tenant Name
3776
- * tenant name
3777
- * @default ""
3778
- */
3779
- tenant_name?: string;
3780
- /**
3781
- * Email
3782
- * email
3783
- */
3784
- email: string;
3785
- /**
3786
- * Secret Key
3787
- * secret_key
3788
- * @default ""
3789
- */
3790
- secret_key?: string;
3791
- /**
3792
- * Is Active
3793
- * is active
3794
- * @default true
3795
- */
3796
- is_active?: boolean;
3797
- /**
3798
- * Metadata
3799
- * Metadata for the tenant
3800
- */
3801
- metadata?: Record<string, any> | null;
3802
- }
3803
- /** Tenant */
3804
- export interface ITenantOutput {
3337
+ export interface ITenant {
3805
3338
  /**
3806
3339
  * Gmt Create
3807
3340
  * creation time
@@ -4161,6 +3694,12 @@ export interface IYuqueSourceConfig {
4161
3694
  * the yuque document id in book, if not set, will use the book all doc
4162
3695
  */
4163
3696
  document_id?: string | number | null;
3697
+ /**
3698
+ * Skip Image Extraction
3699
+ * whether to skip extracting images when decomposing yuque documents
3700
+ * @default false
3701
+ */
3702
+ skip_image_extraction?: boolean;
4164
3703
  /**
4165
3704
  * Auth Info
4166
3705
  * authentication information
@@ -4303,7 +3842,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4303
3842
  * @summary Add Knowledge
4304
3843
  * @request POST:/api/knowledge/add
4305
3844
  */
4306
- addKnowledge: (data: (ITextCreate | IImageCreate | IJSONCreate | IMarkdownCreate | IPDFCreate | IGithubRepoCreate | IQACreate | IYuqueCreate | IHituNodePackageCreate)[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListKnowledge, void | IHTTPValidationError>>;
3845
+ addKnowledge: (data: (ITextCreate | IImageCreate | IJSONCreate | IMarkdownCreate | IPDFCreate | IGithubRepoCreate | IQACreate | IYuqueCreate | IHituNodePackageCreate | IHituNodePackageElementCreate)[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListKnowledge, void | IHTTPValidationError>>;
4307
3846
  /**
4308
3847
  * @description 更新知识(全量更新) 更新知识的完整信息,支持以下字段变更: - 元数据(metadata)变更:同步更新对应 chunk 的 metadata - 启用状态(enabled)变更:同步更新对应 chunk 的启用状态 - 嵌入模型/分片配置/来源配置变更:自动触发重新入库任务 注意:knowledge_type、source_type 等核心字段不可变更。 Args: knowledge: 完整的知识对象,需包含 knowledge_id Returns: 更新后的知识对象(auth_info 字段已脱敏)
4309
3848
  *
@@ -4404,6 +3943,35 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4404
3943
  knowledge_id: string;
4405
3944
  }, params?: RequestParams) => Promise<HttpResponse<IResponseModelListUnionTextImageBlob, void | IHTTPValidationError>>;
4406
3945
  };
3946
+ knowledgeIndex: {
3947
+ /**
3948
+ * No description
3949
+ *
3950
+ * @tags knowledge_index
3951
+ * @name GetKnowledgeIndexList
3952
+ * @summary Get Knowledge Index List
3953
+ * @request POST:/api/knowledge_index/list
3954
+ */
3955
+ getKnowledgeIndexList: (data: IPageQueryParamsKnowledgeIndex, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseKnowledgeIndex, void | IHTTPValidationError>>;
3956
+ /**
3957
+ * No description
3958
+ *
3959
+ * @tags knowledge_index
3960
+ * @name AddKnowledgeIndex
3961
+ * @summary Add Knowledge Index
3962
+ * @request POST:/api/knowledge_index/{knowledge_id}/add
3963
+ */
3964
+ addKnowledgeIndex: (knowledgeId: string, data: IKnowledgeIndexAddRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelKnowledgeIndex, void | IHTTPValidationError>>;
3965
+ /**
3966
+ * No description
3967
+ *
3968
+ * @tags knowledge_index
3969
+ * @name DeleteKnowledgeIndex
3970
+ * @summary Delete Knowledge Index
3971
+ * @request POST:/api/knowledge_index/{knowledge_id}/delete
3972
+ */
3973
+ deleteKnowledgeIndex: (knowledgeId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelBool, void | IHTTPValidationError>>;
3974
+ };
4407
3975
  retrieval: {
4408
3976
  /**
4409
3977
  * @description 获取所有召回配置的 JSON Schema,用于前端动态渲染表单。 返回格式: { "deep_retrieval": { ... schema ... }, "region_retrieval": { ... schema ... }, "web_search": { ... schema ... }, ... }
@@ -4953,6 +4521,35 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4953
4521
  * @request PUT:/api/admin/tenant/{tenant_id}/space/{space_id}
4954
4522
  */
4955
4523
  adminUpdateSpace: (tenantId: string, spaceId: string, data: IAdminUpdateSpaceRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelSpace, void | IHTTPValidationError>>;
4524
+ /**
4525
+ * @description 管理员同步 space summary 到自持 tenant 将目标 tenant 下所有(或指定)space 的 _ai_summary 写入自持 tenant 的知识库中。 可用于历史数据迁移或重建索引。
4526
+ *
4527
+ * @tags admin
4528
+ * @name AdminSyncSummaryToStorage
4529
+ * @summary Admin Sync Summary To Storage
4530
+ * @request POST:/api/admin/sync-summary-to-storage
4531
+ */
4532
+ adminSyncSummaryToStorage: (data: IAdminSyncSummaryToStorageRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelAdminSyncSummaryToStorageResponse, void | IHTTPValidationError>>;
4533
+ };
4534
+ llmTxt: {
4535
+ /**
4536
+ * @description Get a structured map of documentation in llm.txt format.
4537
+ *
4538
+ * @tags llm_txt
4539
+ * @name GetLlmMapApiLlmTxtMapPost
4540
+ * @summary Get Llm Map
4541
+ * @request POST:/api/llm_txt/map
4542
+ */
4543
+ getLlmMapApiLlmTxtMapPost: (data: ILLMMapRequest, params?: RequestParams) => Promise<HttpResponse<string, IHTTPValidationError>>;
4544
+ /**
4545
+ * No description
4546
+ *
4547
+ * @tags llm_txt
4548
+ * @name GetLlmSourceApiLlmTxtSourcePost
4549
+ * @summary Get Llm Source
4550
+ * @request POST:/api/llm_txt/source
4551
+ */
4552
+ getLlmSourceApiLlmTxtSourcePost: (data: ILLMTxtSourceRequest, params?: RequestParams) => Promise<HttpResponse<string, IHTTPValidationError>>;
4956
4553
  };
4957
4554
  healthChecker: {
4958
4555
  /**