@petercatai/whisker-client 0.0.1760329155-dev → 0.0.1763262163
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +883 -83
- package/dist/api.js +33 -2
- package/package.json +5 -5
package/dist/api.d.ts
CHANGED
|
@@ -125,7 +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"
|
|
128
|
+
Yuque = "yuque",
|
|
129
|
+
YuquePersonalDoc = "yuque_personal_doc",
|
|
130
|
+
YuquePersonalNote = "yuque_personal_note"
|
|
129
131
|
}
|
|
130
132
|
/** Action */
|
|
131
133
|
export declare enum IAction {
|
|
@@ -136,17 +138,79 @@ export declare enum IAction {
|
|
|
136
138
|
Value = "*"
|
|
137
139
|
}
|
|
138
140
|
/** APIKey */
|
|
139
|
-
export interface
|
|
141
|
+
export interface IAPIKeyInput {
|
|
140
142
|
/**
|
|
141
143
|
* Gmt Create
|
|
142
144
|
* creation time
|
|
143
145
|
*/
|
|
144
|
-
gmt_create?: string;
|
|
146
|
+
gmt_create?: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* Gmt Modified
|
|
149
|
+
* update time
|
|
150
|
+
*/
|
|
151
|
+
gmt_modified?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* Key Id
|
|
154
|
+
* key id
|
|
155
|
+
*/
|
|
156
|
+
key_id?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Tenant Id
|
|
159
|
+
* tenant id
|
|
160
|
+
*/
|
|
161
|
+
tenant_id: string;
|
|
162
|
+
/**
|
|
163
|
+
* Key Name
|
|
164
|
+
* key name
|
|
165
|
+
* @default ""
|
|
166
|
+
*/
|
|
167
|
+
key_name?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Key Value
|
|
170
|
+
* key value
|
|
171
|
+
*/
|
|
172
|
+
key_value: string;
|
|
173
|
+
/**
|
|
174
|
+
* Permissions
|
|
175
|
+
* permissions config
|
|
176
|
+
*/
|
|
177
|
+
permissions?: IPermission[];
|
|
178
|
+
/**
|
|
179
|
+
* Rate Limit
|
|
180
|
+
* rate limit per minute
|
|
181
|
+
* @min 0
|
|
182
|
+
* @default 0
|
|
183
|
+
*/
|
|
184
|
+
rate_limit?: number;
|
|
185
|
+
/**
|
|
186
|
+
* Expires At
|
|
187
|
+
* expire time (UTC)
|
|
188
|
+
*/
|
|
189
|
+
expires_at?: string | null;
|
|
190
|
+
/**
|
|
191
|
+
* Is Active
|
|
192
|
+
* key status
|
|
193
|
+
* @default true
|
|
194
|
+
*/
|
|
195
|
+
is_active?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* Metadata
|
|
198
|
+
* key metadata
|
|
199
|
+
*/
|
|
200
|
+
metadata?: Record<string, any> | null;
|
|
201
|
+
}
|
|
202
|
+
/** APIKey */
|
|
203
|
+
export interface IAPIKeyOutput {
|
|
204
|
+
/**
|
|
205
|
+
* Gmt Create
|
|
206
|
+
* creation time
|
|
207
|
+
*/
|
|
208
|
+
gmt_create?: string | null;
|
|
145
209
|
/**
|
|
146
210
|
* Gmt Modified
|
|
147
211
|
* update time
|
|
148
212
|
*/
|
|
149
|
-
gmt_modified?: string;
|
|
213
|
+
gmt_modified?: string | null;
|
|
150
214
|
/**
|
|
151
215
|
* Key Id
|
|
152
216
|
* key id
|
|
@@ -254,17 +318,68 @@ export interface IActiveStatusUpdate {
|
|
|
254
318
|
* ArtifactIndex
|
|
255
319
|
* whisker_artifact_index 模型
|
|
256
320
|
*/
|
|
257
|
-
export interface
|
|
321
|
+
export interface IArtifactIndexInput {
|
|
322
|
+
/**
|
|
323
|
+
* Gmt Create
|
|
324
|
+
* creation time
|
|
325
|
+
*/
|
|
326
|
+
gmt_create?: string | null;
|
|
327
|
+
/**
|
|
328
|
+
* Gmt Modified
|
|
329
|
+
* update time
|
|
330
|
+
*/
|
|
331
|
+
gmt_modified?: string | null;
|
|
332
|
+
/**
|
|
333
|
+
* Ecosystem
|
|
334
|
+
* 制品来源生态系统(pypi / npm / maven / go / php)
|
|
335
|
+
* @maxLength 32
|
|
336
|
+
*/
|
|
337
|
+
ecosystem: string;
|
|
338
|
+
/**
|
|
339
|
+
* Name
|
|
340
|
+
* 制品名(构建产物名,如 requests / @company/sdk)
|
|
341
|
+
* @maxLength 255
|
|
342
|
+
*/
|
|
343
|
+
name: string;
|
|
344
|
+
/**
|
|
345
|
+
* Version
|
|
346
|
+
* 版本号(可为空)
|
|
347
|
+
*/
|
|
348
|
+
version?: string | null;
|
|
349
|
+
/**
|
|
350
|
+
* Space Id
|
|
351
|
+
* 关联的 whisker_space.space_id
|
|
352
|
+
* @maxLength 255
|
|
353
|
+
* @pattern ^[A-Za-z0-9._@/-]{1,255}$
|
|
354
|
+
*/
|
|
355
|
+
space_id: string;
|
|
356
|
+
/**
|
|
357
|
+
* Extra
|
|
358
|
+
* 额外元数据信息,扩展用,如构建参数、标签、扫描信息等
|
|
359
|
+
* @default {}
|
|
360
|
+
*/
|
|
361
|
+
extra?: Record<string, any>;
|
|
362
|
+
/**
|
|
363
|
+
* Artifact Id
|
|
364
|
+
* 制品索引表主键(UUID字符串)
|
|
365
|
+
*/
|
|
366
|
+
artifact_id?: string;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* ArtifactIndex
|
|
370
|
+
* whisker_artifact_index 模型
|
|
371
|
+
*/
|
|
372
|
+
export interface IArtifactIndexOutput {
|
|
258
373
|
/**
|
|
259
374
|
* Gmt Create
|
|
260
375
|
* creation time
|
|
261
376
|
*/
|
|
262
|
-
gmt_create?: string;
|
|
377
|
+
gmt_create?: string | null;
|
|
263
378
|
/**
|
|
264
379
|
* Gmt Modified
|
|
265
380
|
* update time
|
|
266
381
|
*/
|
|
267
|
-
gmt_modified?: string;
|
|
382
|
+
gmt_modified?: string | null;
|
|
268
383
|
/**
|
|
269
384
|
* Ecosystem
|
|
270
385
|
* 制品来源生态系统(pypi / npm / maven / go / php)
|
|
@@ -401,18 +516,114 @@ export interface IBaseCodeSplitConfig {
|
|
|
401
516
|
*/
|
|
402
517
|
chunk_overlap?: number;
|
|
403
518
|
}
|
|
519
|
+
/** BatchQueryRequest */
|
|
520
|
+
export interface IBatchQueryRequest {
|
|
521
|
+
/** Space Id */
|
|
522
|
+
space_id: string;
|
|
523
|
+
/** Knowledge Names */
|
|
524
|
+
knowledge_names: string[];
|
|
525
|
+
}
|
|
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;
|
|
614
|
+
}
|
|
404
615
|
/** Chunk */
|
|
405
|
-
export interface
|
|
616
|
+
export interface IChunkOutput {
|
|
406
617
|
/**
|
|
407
618
|
* Gmt Create
|
|
408
619
|
* creation time
|
|
409
620
|
*/
|
|
410
|
-
gmt_create?: string;
|
|
621
|
+
gmt_create?: string | null;
|
|
411
622
|
/**
|
|
412
623
|
* Gmt Modified
|
|
413
624
|
* update time
|
|
414
625
|
*/
|
|
415
|
-
gmt_modified?: string;
|
|
626
|
+
gmt_modified?: string | null;
|
|
416
627
|
/**
|
|
417
628
|
* Chunk Id
|
|
418
629
|
* chunk id
|
|
@@ -941,7 +1152,7 @@ export interface IKnowledgeInput {
|
|
|
941
1152
|
* Source Config
|
|
942
1153
|
* source config of the knowledge
|
|
943
1154
|
*/
|
|
944
|
-
source_config: IGithubRepoSourceConfig | IGithubFileSourceConfig | IS3SourceConfig | IOpenUrlSourceConfig | ITextSourceConfig | IYuqueSourceConfig;
|
|
1155
|
+
source_config: IGithubRepoSourceConfig | IGithubFileSourceConfig | IS3SourceConfig | IOpenUrlSourceConfig | ITextSourceConfig | IYuqueSourceConfig | IYuquePersonalDocSourceConfig | IYuquePersonalNoteSourceConfig;
|
|
945
1156
|
/**
|
|
946
1157
|
* Embedding Model Name
|
|
947
1158
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
@@ -992,12 +1203,12 @@ export interface IKnowledgeOutput {
|
|
|
992
1203
|
* Gmt Create
|
|
993
1204
|
* creation time
|
|
994
1205
|
*/
|
|
995
|
-
gmt_create?: string;
|
|
1206
|
+
gmt_create?: string | null;
|
|
996
1207
|
/**
|
|
997
1208
|
* Gmt Modified
|
|
998
1209
|
* update time
|
|
999
1210
|
*/
|
|
1000
|
-
gmt_modified?: string;
|
|
1211
|
+
gmt_modified?: string | null;
|
|
1001
1212
|
/**
|
|
1002
1213
|
* Knowledge Id
|
|
1003
1214
|
* knowledge id
|
|
@@ -1027,7 +1238,7 @@ export interface IKnowledgeOutput {
|
|
|
1027
1238
|
* Source Config
|
|
1028
1239
|
* source config of the knowledge
|
|
1029
1240
|
*/
|
|
1030
|
-
source_config: IGithubRepoSourceConfig | IGithubFileSourceConfig | IS3SourceConfig | IOpenUrlSourceConfig | ITextSourceConfig | IYuqueSourceConfig;
|
|
1241
|
+
source_config: IGithubRepoSourceConfig | IGithubFileSourceConfig | IS3SourceConfig | IOpenUrlSourceConfig | ITextSourceConfig | IYuqueSourceConfig | IYuquePersonalDocSourceConfig | IYuquePersonalNoteSourceConfig;
|
|
1031
1242
|
/**
|
|
1032
1243
|
* Embedding Model Name
|
|
1033
1244
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
@@ -1593,9 +1804,35 @@ export interface IPageQueryParamsTask {
|
|
|
1593
1804
|
page_size?: number;
|
|
1594
1805
|
}
|
|
1595
1806
|
/** PageResponse[APIKey] */
|
|
1596
|
-
export interface
|
|
1807
|
+
export interface IPageResponseAPIKeyInput {
|
|
1808
|
+
/** Items */
|
|
1809
|
+
items: IAPIKeyInput[];
|
|
1810
|
+
/** Total */
|
|
1811
|
+
total: number;
|
|
1812
|
+
/** Page */
|
|
1813
|
+
page: number;
|
|
1814
|
+
/** Page Size */
|
|
1815
|
+
page_size: number;
|
|
1816
|
+
/** Total Pages */
|
|
1817
|
+
total_pages: number;
|
|
1818
|
+
}
|
|
1819
|
+
/** PageResponse[APIKey] */
|
|
1820
|
+
export interface IPageResponseAPIKeyOutput {
|
|
1821
|
+
/** Items */
|
|
1822
|
+
items: IAPIKeyOutput[];
|
|
1823
|
+
/** Total */
|
|
1824
|
+
total: number;
|
|
1825
|
+
/** Page */
|
|
1826
|
+
page: number;
|
|
1827
|
+
/** Page Size */
|
|
1828
|
+
page_size: number;
|
|
1829
|
+
/** Total Pages */
|
|
1830
|
+
total_pages: number;
|
|
1831
|
+
}
|
|
1832
|
+
/** PageResponse[ArtifactIndex] */
|
|
1833
|
+
export interface IPageResponseArtifactIndexInput {
|
|
1597
1834
|
/** Items */
|
|
1598
|
-
items:
|
|
1835
|
+
items: IArtifactIndexInput[];
|
|
1599
1836
|
/** Total */
|
|
1600
1837
|
total: number;
|
|
1601
1838
|
/** Page */
|
|
@@ -1606,9 +1843,22 @@ export interface IPageResponseAPIKey {
|
|
|
1606
1843
|
total_pages: number;
|
|
1607
1844
|
}
|
|
1608
1845
|
/** PageResponse[ArtifactIndex] */
|
|
1609
|
-
export interface
|
|
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 {
|
|
1610
1860
|
/** Items */
|
|
1611
|
-
items:
|
|
1861
|
+
items: IChunkInput[];
|
|
1612
1862
|
/** Total */
|
|
1613
1863
|
total: number;
|
|
1614
1864
|
/** Page */
|
|
@@ -1619,9 +1869,9 @@ export interface IPageResponseArtifactIndex {
|
|
|
1619
1869
|
total_pages: number;
|
|
1620
1870
|
}
|
|
1621
1871
|
/** PageResponse[Chunk] */
|
|
1622
|
-
export interface
|
|
1872
|
+
export interface IPageResponseChunkOutput {
|
|
1623
1873
|
/** Items */
|
|
1624
|
-
items:
|
|
1874
|
+
items: IChunkOutput[];
|
|
1625
1875
|
/** Total */
|
|
1626
1876
|
total: number;
|
|
1627
1877
|
/** Page */
|
|
@@ -1632,9 +1882,9 @@ export interface IPageResponseChunk {
|
|
|
1632
1882
|
total_pages: number;
|
|
1633
1883
|
}
|
|
1634
1884
|
/** PageResponse[Knowledge] */
|
|
1635
|
-
export interface
|
|
1885
|
+
export interface IPageResponseKnowledgeInput {
|
|
1636
1886
|
/** Items */
|
|
1637
|
-
items:
|
|
1887
|
+
items: IKnowledgeInput[];
|
|
1638
1888
|
/** Total */
|
|
1639
1889
|
total: number;
|
|
1640
1890
|
/** Page */
|
|
@@ -1644,10 +1894,10 @@ export interface IPageResponseKnowledge {
|
|
|
1644
1894
|
/** Total Pages */
|
|
1645
1895
|
total_pages: number;
|
|
1646
1896
|
}
|
|
1647
|
-
/** PageResponse[
|
|
1648
|
-
export interface
|
|
1897
|
+
/** PageResponse[Knowledge] */
|
|
1898
|
+
export interface IPageResponseKnowledgeOutput {
|
|
1649
1899
|
/** Items */
|
|
1650
|
-
items:
|
|
1900
|
+
items: IKnowledgeOutput[];
|
|
1651
1901
|
/** Total */
|
|
1652
1902
|
total: number;
|
|
1653
1903
|
/** Page */
|
|
@@ -1657,10 +1907,10 @@ export interface IPageResponseSpaceResponse {
|
|
|
1657
1907
|
/** Total Pages */
|
|
1658
1908
|
total_pages: number;
|
|
1659
1909
|
}
|
|
1660
|
-
/** PageResponse[
|
|
1661
|
-
export interface
|
|
1910
|
+
/** PageResponse[SpaceResponse] */
|
|
1911
|
+
export interface IPageResponseSpaceResponseInput {
|
|
1662
1912
|
/** Items */
|
|
1663
|
-
items:
|
|
1913
|
+
items: ISpaceResponseInput[];
|
|
1664
1914
|
/** Total */
|
|
1665
1915
|
total: number;
|
|
1666
1916
|
/** Page */
|
|
@@ -1670,10 +1920,10 @@ export interface IPageResponseTag {
|
|
|
1670
1920
|
/** Total Pages */
|
|
1671
1921
|
total_pages: number;
|
|
1672
1922
|
}
|
|
1673
|
-
/** PageResponse[
|
|
1674
|
-
export interface
|
|
1923
|
+
/** PageResponse[SpaceResponse] */
|
|
1924
|
+
export interface IPageResponseSpaceResponseOutput {
|
|
1675
1925
|
/** Items */
|
|
1676
|
-
items:
|
|
1926
|
+
items: ISpaceResponseOutput[];
|
|
1677
1927
|
/** Total */
|
|
1678
1928
|
total: number;
|
|
1679
1929
|
/** Page */
|
|
@@ -1683,10 +1933,10 @@ export interface IPageResponseTagging {
|
|
|
1683
1933
|
/** Total Pages */
|
|
1684
1934
|
total_pages: number;
|
|
1685
1935
|
}
|
|
1686
|
-
/** PageResponse[
|
|
1687
|
-
export interface
|
|
1936
|
+
/** PageResponse[Tag] */
|
|
1937
|
+
export interface IPageResponseTagInput {
|
|
1688
1938
|
/** Items */
|
|
1689
|
-
items:
|
|
1939
|
+
items: ITagInput[];
|
|
1690
1940
|
/** Total */
|
|
1691
1941
|
total: number;
|
|
1692
1942
|
/** Page */
|
|
@@ -1696,9 +1946,74 @@ export interface IPageResponseTenant {
|
|
|
1696
1946
|
/** Total Pages */
|
|
1697
1947
|
total_pages: number;
|
|
1698
1948
|
}
|
|
1699
|
-
/**
|
|
1700
|
-
export interface
|
|
1701
|
-
|
|
1949
|
+
/** PageResponse[Tag] */
|
|
1950
|
+
export interface IPageResponseTagOutput {
|
|
1951
|
+
/** Items */
|
|
1952
|
+
items: ITagOutput[];
|
|
1953
|
+
/** Total */
|
|
1954
|
+
total: number;
|
|
1955
|
+
/** Page */
|
|
1956
|
+
page: number;
|
|
1957
|
+
/** Page Size */
|
|
1958
|
+
page_size: number;
|
|
1959
|
+
/** Total Pages */
|
|
1960
|
+
total_pages: number;
|
|
1961
|
+
}
|
|
1962
|
+
/** PageResponse[Tagging] */
|
|
1963
|
+
export interface IPageResponseTaggingInput {
|
|
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 {
|
|
1990
|
+
/** Items */
|
|
1991
|
+
items: ITenantInput[];
|
|
1992
|
+
/** Total */
|
|
1993
|
+
total: number;
|
|
1994
|
+
/** Page */
|
|
1995
|
+
page: number;
|
|
1996
|
+
/** Page Size */
|
|
1997
|
+
page_size: number;
|
|
1998
|
+
/** Total Pages */
|
|
1999
|
+
total_pages: number;
|
|
2000
|
+
}
|
|
2001
|
+
/** PageResponse[Tenant] */
|
|
2002
|
+
export interface IPageResponseTenantOutput {
|
|
2003
|
+
/** Items */
|
|
2004
|
+
items: ITenantOutput[];
|
|
2005
|
+
/** Total */
|
|
2006
|
+
total: number;
|
|
2007
|
+
/** Page */
|
|
2008
|
+
page: number;
|
|
2009
|
+
/** Page Size */
|
|
2010
|
+
page_size: number;
|
|
2011
|
+
/** Total Pages */
|
|
2012
|
+
total_pages: number;
|
|
2013
|
+
}
|
|
2014
|
+
/** Permission */
|
|
2015
|
+
export interface IPermission {
|
|
2016
|
+
resource: IResource;
|
|
1702
2017
|
/** Actions */
|
|
1703
2018
|
actions: IAction[];
|
|
1704
2019
|
/** Conditions */
|
|
@@ -1783,7 +2098,7 @@ export interface IResponseModel {
|
|
|
1783
2098
|
export interface IResponseModelAPIKey {
|
|
1784
2099
|
/** Success */
|
|
1785
2100
|
success: boolean;
|
|
1786
|
-
data?:
|
|
2101
|
+
data?: IAPIKeyOutput | null;
|
|
1787
2102
|
/** Message */
|
|
1788
2103
|
message?: string | null;
|
|
1789
2104
|
}
|
|
@@ -1791,7 +2106,7 @@ export interface IResponseModelAPIKey {
|
|
|
1791
2106
|
export interface IResponseModelArtifactIndex {
|
|
1792
2107
|
/** Success */
|
|
1793
2108
|
success: boolean;
|
|
1794
|
-
data?:
|
|
2109
|
+
data?: IArtifactIndexOutput | null;
|
|
1795
2110
|
/** Message */
|
|
1796
2111
|
message?: string | null;
|
|
1797
2112
|
}
|
|
@@ -1799,7 +2114,7 @@ export interface IResponseModelArtifactIndex {
|
|
|
1799
2114
|
export interface IResponseModelChunk {
|
|
1800
2115
|
/** Success */
|
|
1801
2116
|
success: boolean;
|
|
1802
|
-
data?:
|
|
2117
|
+
data?: IChunkOutput | null;
|
|
1803
2118
|
/** Message */
|
|
1804
2119
|
message?: string | null;
|
|
1805
2120
|
}
|
|
@@ -1824,7 +2139,7 @@ export interface IResponseModelListAPIKey {
|
|
|
1824
2139
|
/** Success */
|
|
1825
2140
|
success: boolean;
|
|
1826
2141
|
/** Data */
|
|
1827
|
-
data?:
|
|
2142
|
+
data?: IAPIKeyOutput[] | null;
|
|
1828
2143
|
/** Message */
|
|
1829
2144
|
message?: string | null;
|
|
1830
2145
|
}
|
|
@@ -1833,7 +2148,7 @@ export interface IResponseModelListArtifactIndex {
|
|
|
1833
2148
|
/** Success */
|
|
1834
2149
|
success: boolean;
|
|
1835
2150
|
/** Data */
|
|
1836
|
-
data?:
|
|
2151
|
+
data?: IArtifactIndexOutput[] | null;
|
|
1837
2152
|
/** Message */
|
|
1838
2153
|
message?: string | null;
|
|
1839
2154
|
}
|
|
@@ -1851,7 +2166,7 @@ export interface IResponseModelListRetrievalChunk {
|
|
|
1851
2166
|
/** Success */
|
|
1852
2167
|
success: boolean;
|
|
1853
2168
|
/** Data */
|
|
1854
|
-
data?:
|
|
2169
|
+
data?: IRetrievalChunkOutput[] | null;
|
|
1855
2170
|
/** Message */
|
|
1856
2171
|
message?: string | null;
|
|
1857
2172
|
}
|
|
@@ -1860,7 +2175,7 @@ export interface IResponseModelListTag {
|
|
|
1860
2175
|
/** Success */
|
|
1861
2176
|
success: boolean;
|
|
1862
2177
|
/** Data */
|
|
1863
|
-
data?:
|
|
2178
|
+
data?: ITagOutput[] | null;
|
|
1864
2179
|
/** Message */
|
|
1865
2180
|
message?: string | null;
|
|
1866
2181
|
}
|
|
@@ -1869,7 +2184,7 @@ export interface IResponseModelListTagging {
|
|
|
1869
2184
|
/** Success */
|
|
1870
2185
|
success: boolean;
|
|
1871
2186
|
/** Data */
|
|
1872
|
-
data?:
|
|
2187
|
+
data?: ITaggingOutput[] | null;
|
|
1873
2188
|
/** Message */
|
|
1874
2189
|
message?: string | null;
|
|
1875
2190
|
}
|
|
@@ -1878,7 +2193,7 @@ export interface IResponseModelListTask {
|
|
|
1878
2193
|
/** Success */
|
|
1879
2194
|
success: boolean;
|
|
1880
2195
|
/** Data */
|
|
1881
|
-
data?:
|
|
2196
|
+
data?: ITaskOutput[] | null;
|
|
1882
2197
|
/** Message */
|
|
1883
2198
|
message?: string | null;
|
|
1884
2199
|
}
|
|
@@ -1891,6 +2206,15 @@ export interface IResponseModelListTenantLog {
|
|
|
1891
2206
|
/** Message */
|
|
1892
2207
|
message?: string | null;
|
|
1893
2208
|
}
|
|
2209
|
+
/** ResponseModel[List[WohuProductSpace]] */
|
|
2210
|
+
export interface IResponseModelListWohuProductSpace {
|
|
2211
|
+
/** Success */
|
|
2212
|
+
success: boolean;
|
|
2213
|
+
/** Data */
|
|
2214
|
+
data?: IWohuProductSpace[] | null;
|
|
2215
|
+
/** Message */
|
|
2216
|
+
message?: string | null;
|
|
2217
|
+
}
|
|
1894
2218
|
/** ResponseModel[NoneType] */
|
|
1895
2219
|
export interface IResponseModelNoneType {
|
|
1896
2220
|
/** Success */
|
|
@@ -1904,7 +2228,7 @@ export interface IResponseModelNoneType {
|
|
|
1904
2228
|
export interface IResponseModelPageResponseAPIKey {
|
|
1905
2229
|
/** Success */
|
|
1906
2230
|
success: boolean;
|
|
1907
|
-
data?:
|
|
2231
|
+
data?: IPageResponseAPIKeyOutput | null;
|
|
1908
2232
|
/** Message */
|
|
1909
2233
|
message?: string | null;
|
|
1910
2234
|
}
|
|
@@ -1912,7 +2236,7 @@ export interface IResponseModelPageResponseAPIKey {
|
|
|
1912
2236
|
export interface IResponseModelPageResponseArtifactIndex {
|
|
1913
2237
|
/** Success */
|
|
1914
2238
|
success: boolean;
|
|
1915
|
-
data?:
|
|
2239
|
+
data?: IPageResponseArtifactIndexOutput | null;
|
|
1916
2240
|
/** Message */
|
|
1917
2241
|
message?: string | null;
|
|
1918
2242
|
}
|
|
@@ -1920,7 +2244,7 @@ export interface IResponseModelPageResponseArtifactIndex {
|
|
|
1920
2244
|
export interface IResponseModelPageResponseChunk {
|
|
1921
2245
|
/** Success */
|
|
1922
2246
|
success: boolean;
|
|
1923
|
-
data?:
|
|
2247
|
+
data?: IPageResponseChunkOutput | null;
|
|
1924
2248
|
/** Message */
|
|
1925
2249
|
message?: string | null;
|
|
1926
2250
|
}
|
|
@@ -1928,7 +2252,7 @@ export interface IResponseModelPageResponseChunk {
|
|
|
1928
2252
|
export interface IResponseModelPageResponseKnowledge {
|
|
1929
2253
|
/** Success */
|
|
1930
2254
|
success: boolean;
|
|
1931
|
-
data?:
|
|
2255
|
+
data?: IPageResponseKnowledgeOutput | null;
|
|
1932
2256
|
/** Message */
|
|
1933
2257
|
message?: string | null;
|
|
1934
2258
|
}
|
|
@@ -1936,7 +2260,7 @@ export interface IResponseModelPageResponseKnowledge {
|
|
|
1936
2260
|
export interface IResponseModelPageResponseSpaceResponse {
|
|
1937
2261
|
/** Success */
|
|
1938
2262
|
success: boolean;
|
|
1939
|
-
data?:
|
|
2263
|
+
data?: IPageResponseSpaceResponseOutput | null;
|
|
1940
2264
|
/** Message */
|
|
1941
2265
|
message?: string | null;
|
|
1942
2266
|
}
|
|
@@ -1944,7 +2268,7 @@ export interface IResponseModelPageResponseSpaceResponse {
|
|
|
1944
2268
|
export interface IResponseModelPageResponseTag {
|
|
1945
2269
|
/** Success */
|
|
1946
2270
|
success: boolean;
|
|
1947
|
-
data?:
|
|
2271
|
+
data?: IPageResponseTagOutput | null;
|
|
1948
2272
|
/** Message */
|
|
1949
2273
|
message?: string | null;
|
|
1950
2274
|
}
|
|
@@ -1952,7 +2276,7 @@ export interface IResponseModelPageResponseTag {
|
|
|
1952
2276
|
export interface IResponseModelPageResponseTagging {
|
|
1953
2277
|
/** Success */
|
|
1954
2278
|
success: boolean;
|
|
1955
|
-
data?:
|
|
2279
|
+
data?: IPageResponseTaggingOutput | null;
|
|
1956
2280
|
/** Message */
|
|
1957
2281
|
message?: string | null;
|
|
1958
2282
|
}
|
|
@@ -1960,7 +2284,7 @@ export interface IResponseModelPageResponseTagging {
|
|
|
1960
2284
|
export interface IResponseModelPageResponseTenant {
|
|
1961
2285
|
/** Success */
|
|
1962
2286
|
success: boolean;
|
|
1963
|
-
data?:
|
|
2287
|
+
data?: IPageResponseTenantOutput | null;
|
|
1964
2288
|
/** Message */
|
|
1965
2289
|
message?: string | null;
|
|
1966
2290
|
}
|
|
@@ -1968,7 +2292,7 @@ export interface IResponseModelPageResponseTenant {
|
|
|
1968
2292
|
export interface IResponseModelSpaceResponse {
|
|
1969
2293
|
/** Success */
|
|
1970
2294
|
success: boolean;
|
|
1971
|
-
data?:
|
|
2295
|
+
data?: ISpaceResponseOutput | null;
|
|
1972
2296
|
/** Message */
|
|
1973
2297
|
message?: string | null;
|
|
1974
2298
|
}
|
|
@@ -1976,7 +2300,7 @@ export interface IResponseModelSpaceResponse {
|
|
|
1976
2300
|
export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
1977
2301
|
/** Success */
|
|
1978
2302
|
success: boolean;
|
|
1979
|
-
data?:
|
|
2303
|
+
data?: IStatusStatisticsPageResponseTaskOutput | null;
|
|
1980
2304
|
/** Message */
|
|
1981
2305
|
message?: string | null;
|
|
1982
2306
|
}
|
|
@@ -1984,7 +2308,7 @@ export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
|
1984
2308
|
export interface IResponseModelTag {
|
|
1985
2309
|
/** Success */
|
|
1986
2310
|
success: boolean;
|
|
1987
|
-
data?:
|
|
2311
|
+
data?: ITagOutput | null;
|
|
1988
2312
|
/** Message */
|
|
1989
2313
|
message?: string | null;
|
|
1990
2314
|
}
|
|
@@ -1992,7 +2316,7 @@ export interface IResponseModelTag {
|
|
|
1992
2316
|
export interface IResponseModelTask {
|
|
1993
2317
|
/** Success */
|
|
1994
2318
|
success: boolean;
|
|
1995
|
-
data?:
|
|
2319
|
+
data?: ITaskOutput | null;
|
|
1996
2320
|
/** Message */
|
|
1997
2321
|
message?: string | null;
|
|
1998
2322
|
}
|
|
@@ -2000,7 +2324,7 @@ export interface IResponseModelTask {
|
|
|
2000
2324
|
export interface IResponseModelTenant {
|
|
2001
2325
|
/** Success */
|
|
2002
2326
|
success: boolean;
|
|
2003
|
-
data?:
|
|
2327
|
+
data?: ITenantOutput | null;
|
|
2004
2328
|
/** Message */
|
|
2005
2329
|
message?: string | null;
|
|
2006
2330
|
}
|
|
@@ -2101,17 +2425,111 @@ export interface IRetrievalBySpaceRequest {
|
|
|
2101
2425
|
space_id_list: string[];
|
|
2102
2426
|
}
|
|
2103
2427
|
/** RetrievalChunk */
|
|
2104
|
-
export interface
|
|
2428
|
+
export interface IRetrievalChunkInput {
|
|
2105
2429
|
/**
|
|
2106
2430
|
* Gmt Create
|
|
2107
2431
|
* creation time
|
|
2108
2432
|
*/
|
|
2109
|
-
gmt_create?: string;
|
|
2433
|
+
gmt_create?: string | null;
|
|
2110
2434
|
/**
|
|
2111
2435
|
* Gmt Modified
|
|
2112
2436
|
* update time
|
|
2113
2437
|
*/
|
|
2114
|
-
gmt_modified?: string;
|
|
2438
|
+
gmt_modified?: string | null;
|
|
2439
|
+
/**
|
|
2440
|
+
* Chunk Id
|
|
2441
|
+
* chunk id
|
|
2442
|
+
*/
|
|
2443
|
+
chunk_id?: string;
|
|
2444
|
+
/**
|
|
2445
|
+
* Space Id
|
|
2446
|
+
* space id
|
|
2447
|
+
*/
|
|
2448
|
+
space_id: string;
|
|
2449
|
+
/**
|
|
2450
|
+
* Tenant Id
|
|
2451
|
+
* tenant id
|
|
2452
|
+
*/
|
|
2453
|
+
tenant_id: string;
|
|
2454
|
+
/**
|
|
2455
|
+
* Embedding
|
|
2456
|
+
* chunk embedding
|
|
2457
|
+
*/
|
|
2458
|
+
embedding?: number[] | null;
|
|
2459
|
+
/**
|
|
2460
|
+
* Context
|
|
2461
|
+
* chunk content
|
|
2462
|
+
*/
|
|
2463
|
+
context: string;
|
|
2464
|
+
/**
|
|
2465
|
+
* Knowledge Id
|
|
2466
|
+
* file source info
|
|
2467
|
+
*/
|
|
2468
|
+
knowledge_id: string;
|
|
2469
|
+
/**
|
|
2470
|
+
* Enabled
|
|
2471
|
+
* is chunk enabled
|
|
2472
|
+
* @default true
|
|
2473
|
+
*/
|
|
2474
|
+
enabled?: boolean;
|
|
2475
|
+
/**
|
|
2476
|
+
* Embedding Model Name
|
|
2477
|
+
* name of the embedding model
|
|
2478
|
+
*/
|
|
2479
|
+
embedding_model_name: string;
|
|
2480
|
+
/**
|
|
2481
|
+
* Metadata
|
|
2482
|
+
* Arbitrary metadata associated with the content.
|
|
2483
|
+
*/
|
|
2484
|
+
metadata?: Record<string, any> | null;
|
|
2485
|
+
/**
|
|
2486
|
+
* Tags
|
|
2487
|
+
* Tags from knowledge.metadata._tags
|
|
2488
|
+
*/
|
|
2489
|
+
tags?: string[] | null;
|
|
2490
|
+
/**
|
|
2491
|
+
* F1
|
|
2492
|
+
* Field 1 from knowledge.metadata._f1
|
|
2493
|
+
*/
|
|
2494
|
+
f1?: string | null;
|
|
2495
|
+
/**
|
|
2496
|
+
* F2
|
|
2497
|
+
* Field 2 from knowledge.metadata._f2
|
|
2498
|
+
*/
|
|
2499
|
+
f2?: string | null;
|
|
2500
|
+
/**
|
|
2501
|
+
* F3
|
|
2502
|
+
* Field 3 from knowledge.metadata._f3
|
|
2503
|
+
*/
|
|
2504
|
+
f3?: string | null;
|
|
2505
|
+
/**
|
|
2506
|
+
* F4
|
|
2507
|
+
* Field 4 from knowledge.metadata._f4
|
|
2508
|
+
*/
|
|
2509
|
+
f4?: string | null;
|
|
2510
|
+
/**
|
|
2511
|
+
* F5
|
|
2512
|
+
* Field 5 from knowledge.metadata._f5
|
|
2513
|
+
*/
|
|
2514
|
+
f5?: string | null;
|
|
2515
|
+
/**
|
|
2516
|
+
* Similarity
|
|
2517
|
+
* The similarity of the chunk, ranging from 0.0 to 1.0.
|
|
2518
|
+
*/
|
|
2519
|
+
similarity: number;
|
|
2520
|
+
}
|
|
2521
|
+
/** RetrievalChunk */
|
|
2522
|
+
export interface IRetrievalChunkOutput {
|
|
2523
|
+
/**
|
|
2524
|
+
* Gmt Create
|
|
2525
|
+
* creation time
|
|
2526
|
+
*/
|
|
2527
|
+
gmt_create?: string | null;
|
|
2528
|
+
/**
|
|
2529
|
+
* Gmt Modified
|
|
2530
|
+
* update time
|
|
2531
|
+
*/
|
|
2532
|
+
gmt_modified?: string | null;
|
|
2115
2533
|
/**
|
|
2116
2534
|
* Chunk Id
|
|
2117
2535
|
* chunk id
|
|
@@ -2298,17 +2716,77 @@ export interface ISpaceCreate {
|
|
|
2298
2716
|
* total_size Optional[int]: size of the all kowledge in this space.
|
|
2299
2717
|
* knowledge_size Optional[int]: count of the knowledge in this space.
|
|
2300
2718
|
*/
|
|
2301
|
-
export interface
|
|
2719
|
+
export interface ISpaceResponseInput {
|
|
2302
2720
|
/**
|
|
2303
2721
|
* Gmt Create
|
|
2304
2722
|
* creation time
|
|
2305
2723
|
*/
|
|
2306
|
-
gmt_create?: string;
|
|
2724
|
+
gmt_create?: string | null;
|
|
2307
2725
|
/**
|
|
2308
2726
|
* Gmt Modified
|
|
2309
2727
|
* update time
|
|
2310
2728
|
*/
|
|
2311
|
-
gmt_modified?: string;
|
|
2729
|
+
gmt_modified?: string | null;
|
|
2730
|
+
/**
|
|
2731
|
+
* Space Name
|
|
2732
|
+
* name of the space resource
|
|
2733
|
+
* @maxLength 64
|
|
2734
|
+
*/
|
|
2735
|
+
space_name: string;
|
|
2736
|
+
/**
|
|
2737
|
+
* Space Id
|
|
2738
|
+
* space id
|
|
2739
|
+
*/
|
|
2740
|
+
space_id?: string;
|
|
2741
|
+
/**
|
|
2742
|
+
* Description
|
|
2743
|
+
* descrition of the space
|
|
2744
|
+
* @maxLength 255
|
|
2745
|
+
*/
|
|
2746
|
+
description: string;
|
|
2747
|
+
/**
|
|
2748
|
+
* Metadata
|
|
2749
|
+
* metadata of the space resource
|
|
2750
|
+
* @default {}
|
|
2751
|
+
*/
|
|
2752
|
+
metadata?: Record<string, any>;
|
|
2753
|
+
/**
|
|
2754
|
+
* Tenant Id
|
|
2755
|
+
* tenant id
|
|
2756
|
+
*/
|
|
2757
|
+
tenant_id: string;
|
|
2758
|
+
/**
|
|
2759
|
+
* Storage Size
|
|
2760
|
+
* size of the all kowledge in this space
|
|
2761
|
+
* @default 0
|
|
2762
|
+
*/
|
|
2763
|
+
storage_size?: number | null;
|
|
2764
|
+
/**
|
|
2765
|
+
* Knowledge Count
|
|
2766
|
+
* count of the knowledge in this space
|
|
2767
|
+
* @default 0
|
|
2768
|
+
*/
|
|
2769
|
+
knowledge_count?: number | null;
|
|
2770
|
+
}
|
|
2771
|
+
/**
|
|
2772
|
+
* SpaceResponse
|
|
2773
|
+
* SpaceResponse model class that extends Space.
|
|
2774
|
+
* Attributes:
|
|
2775
|
+
* (str): Space ID.
|
|
2776
|
+
* total_size Optional[int]: size of the all kowledge in this space.
|
|
2777
|
+
* knowledge_size Optional[int]: count of the knowledge in this space.
|
|
2778
|
+
*/
|
|
2779
|
+
export interface ISpaceResponseOutput {
|
|
2780
|
+
/**
|
|
2781
|
+
* Gmt Create
|
|
2782
|
+
* creation time
|
|
2783
|
+
*/
|
|
2784
|
+
gmt_create?: string | null;
|
|
2785
|
+
/**
|
|
2786
|
+
* Gmt Modified
|
|
2787
|
+
* update time
|
|
2788
|
+
*/
|
|
2789
|
+
gmt_modified?: string | null;
|
|
2312
2790
|
/**
|
|
2313
2791
|
* Space Name
|
|
2314
2792
|
* name of the space resource
|
|
@@ -2351,9 +2829,57 @@ export interface ISpaceResponse {
|
|
|
2351
2829
|
knowledge_count?: number | null;
|
|
2352
2830
|
}
|
|
2353
2831
|
/** StatusStatisticsPageResponse[Task] */
|
|
2354
|
-
export interface
|
|
2832
|
+
export interface IStatusStatisticsPageResponseTaskInput {
|
|
2355
2833
|
/** Items */
|
|
2356
|
-
items:
|
|
2834
|
+
items: ITaskInput[];
|
|
2835
|
+
/** Total */
|
|
2836
|
+
total: number;
|
|
2837
|
+
/** Page */
|
|
2838
|
+
page: number;
|
|
2839
|
+
/** Page Size */
|
|
2840
|
+
page_size: number;
|
|
2841
|
+
/** Total Pages */
|
|
2842
|
+
total_pages: number;
|
|
2843
|
+
/**
|
|
2844
|
+
* Success
|
|
2845
|
+
* @default 0
|
|
2846
|
+
*/
|
|
2847
|
+
success?: number;
|
|
2848
|
+
/**
|
|
2849
|
+
* Failed
|
|
2850
|
+
* @default 0
|
|
2851
|
+
*/
|
|
2852
|
+
failed?: number;
|
|
2853
|
+
/**
|
|
2854
|
+
* Cancelled
|
|
2855
|
+
* @default 0
|
|
2856
|
+
*/
|
|
2857
|
+
cancelled?: number;
|
|
2858
|
+
/**
|
|
2859
|
+
* Pending
|
|
2860
|
+
* @default 0
|
|
2861
|
+
*/
|
|
2862
|
+
pending?: number;
|
|
2863
|
+
/**
|
|
2864
|
+
* Running
|
|
2865
|
+
* @default 0
|
|
2866
|
+
*/
|
|
2867
|
+
running?: number;
|
|
2868
|
+
/**
|
|
2869
|
+
* Pending Retry
|
|
2870
|
+
* @default 0
|
|
2871
|
+
*/
|
|
2872
|
+
pending_retry?: number;
|
|
2873
|
+
/**
|
|
2874
|
+
* Deleted
|
|
2875
|
+
* @default 0
|
|
2876
|
+
*/
|
|
2877
|
+
deleted?: number;
|
|
2878
|
+
}
|
|
2879
|
+
/** StatusStatisticsPageResponse[Task] */
|
|
2880
|
+
export interface IStatusStatisticsPageResponseTaskOutput {
|
|
2881
|
+
/** Items */
|
|
2882
|
+
items: ITaskOutput[];
|
|
2357
2883
|
/** Total */
|
|
2358
2884
|
total: number;
|
|
2359
2885
|
/** Page */
|
|
@@ -2399,17 +2925,57 @@ export interface IStatusStatisticsPageResponseTask {
|
|
|
2399
2925
|
deleted?: number;
|
|
2400
2926
|
}
|
|
2401
2927
|
/** Tag */
|
|
2402
|
-
export interface
|
|
2928
|
+
export interface ITagInput {
|
|
2403
2929
|
/**
|
|
2404
2930
|
* Gmt Create
|
|
2405
2931
|
* creation time
|
|
2406
2932
|
*/
|
|
2407
|
-
gmt_create?: string;
|
|
2933
|
+
gmt_create?: string | null;
|
|
2408
2934
|
/**
|
|
2409
2935
|
* Gmt Modified
|
|
2410
2936
|
* update time
|
|
2411
2937
|
*/
|
|
2412
|
-
gmt_modified?: string;
|
|
2938
|
+
gmt_modified?: string | null;
|
|
2939
|
+
/**
|
|
2940
|
+
* Name
|
|
2941
|
+
* 标签名称(租户内唯一)
|
|
2942
|
+
* @maxLength 64
|
|
2943
|
+
*/
|
|
2944
|
+
name: string;
|
|
2945
|
+
/**
|
|
2946
|
+
* Description
|
|
2947
|
+
* 标签描述
|
|
2948
|
+
*/
|
|
2949
|
+
description?: string | null;
|
|
2950
|
+
/**
|
|
2951
|
+
* 标签作用对象类型(如 "space")
|
|
2952
|
+
* @default "space"
|
|
2953
|
+
*/
|
|
2954
|
+
object_type?: ITagObjectType;
|
|
2955
|
+
/**
|
|
2956
|
+
* Tag Id
|
|
2957
|
+
* 标签ID(UUID字符串)
|
|
2958
|
+
*/
|
|
2959
|
+
tag_id?: string;
|
|
2960
|
+
/**
|
|
2961
|
+
* Tenant Id
|
|
2962
|
+
* 所属租户ID
|
|
2963
|
+
* @maxLength 64
|
|
2964
|
+
*/
|
|
2965
|
+
tenant_id: string;
|
|
2966
|
+
}
|
|
2967
|
+
/** Tag */
|
|
2968
|
+
export interface ITagOutput {
|
|
2969
|
+
/**
|
|
2970
|
+
* Gmt Create
|
|
2971
|
+
* creation time
|
|
2972
|
+
*/
|
|
2973
|
+
gmt_create?: string | null;
|
|
2974
|
+
/**
|
|
2975
|
+
* Gmt Modified
|
|
2976
|
+
* update time
|
|
2977
|
+
*/
|
|
2978
|
+
gmt_modified?: string | null;
|
|
2413
2979
|
/**
|
|
2414
2980
|
* Name
|
|
2415
2981
|
* 标签名称(租户内唯一)
|
|
@@ -2476,17 +3042,64 @@ export interface ITagUpdate {
|
|
|
2476
3042
|
description?: string | null;
|
|
2477
3043
|
}
|
|
2478
3044
|
/** Tagging */
|
|
2479
|
-
export interface
|
|
3045
|
+
export interface ITaggingInput {
|
|
2480
3046
|
/**
|
|
2481
3047
|
* Gmt Create
|
|
2482
3048
|
* creation time
|
|
2483
3049
|
*/
|
|
2484
|
-
gmt_create?: string;
|
|
3050
|
+
gmt_create?: string | null;
|
|
2485
3051
|
/**
|
|
2486
3052
|
* Gmt Modified
|
|
2487
3053
|
* update time
|
|
2488
3054
|
*/
|
|
2489
|
-
gmt_modified?: string;
|
|
3055
|
+
gmt_modified?: string | null;
|
|
3056
|
+
/**
|
|
3057
|
+
* Tagging Id
|
|
3058
|
+
* 标签绑定ID(UUID字符串)
|
|
3059
|
+
*/
|
|
3060
|
+
tagging_id?: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* Tenant Id
|
|
3063
|
+
* 所属租户ID
|
|
3064
|
+
* @maxLength 64
|
|
3065
|
+
*/
|
|
3066
|
+
tenant_id: string;
|
|
3067
|
+
/**
|
|
3068
|
+
* Tag Id
|
|
3069
|
+
* 标签ID(FK -> tag.tag_id,UUID字符串)
|
|
3070
|
+
*/
|
|
3071
|
+
tag_id: string;
|
|
3072
|
+
/**
|
|
3073
|
+
* Tag Name
|
|
3074
|
+
* 标签名称(在 object_type 内唯一)
|
|
3075
|
+
* @maxLength 64
|
|
3076
|
+
*/
|
|
3077
|
+
tag_name: string;
|
|
3078
|
+
/**
|
|
3079
|
+
* Object Id
|
|
3080
|
+
* 被打标签对象ID(如 space_id)
|
|
3081
|
+
* @maxLength 255
|
|
3082
|
+
*/
|
|
3083
|
+
object_id: string;
|
|
3084
|
+
/**
|
|
3085
|
+
* 对象类型,当前仅支持 "space"
|
|
3086
|
+
* @maxLength 32
|
|
3087
|
+
* @default "space"
|
|
3088
|
+
*/
|
|
3089
|
+
object_type?: ITagObjectType;
|
|
3090
|
+
}
|
|
3091
|
+
/** Tagging */
|
|
3092
|
+
export interface ITaggingOutput {
|
|
3093
|
+
/**
|
|
3094
|
+
* Gmt Create
|
|
3095
|
+
* creation time
|
|
3096
|
+
*/
|
|
3097
|
+
gmt_create?: string | null;
|
|
3098
|
+
/**
|
|
3099
|
+
* Gmt Modified
|
|
3100
|
+
* update time
|
|
3101
|
+
*/
|
|
3102
|
+
gmt_modified?: string | null;
|
|
2490
3103
|
/**
|
|
2491
3104
|
* Tagging Id
|
|
2492
3105
|
* 标签绑定ID(UUID字符串)
|
|
@@ -2543,17 +3156,76 @@ export interface ITaggingCreate {
|
|
|
2543
3156
|
object_id: string;
|
|
2544
3157
|
}
|
|
2545
3158
|
/** Task */
|
|
2546
|
-
export interface
|
|
3159
|
+
export interface ITaskInput {
|
|
3160
|
+
/**
|
|
3161
|
+
* Gmt Create
|
|
3162
|
+
* creation time
|
|
3163
|
+
*/
|
|
3164
|
+
gmt_create?: string | null;
|
|
3165
|
+
/**
|
|
3166
|
+
* Gmt Modified
|
|
3167
|
+
* update time
|
|
3168
|
+
*/
|
|
3169
|
+
gmt_modified?: string | null;
|
|
3170
|
+
/**
|
|
3171
|
+
* Task Id
|
|
3172
|
+
* Unique identifier for the task
|
|
3173
|
+
*/
|
|
3174
|
+
task_id?: string;
|
|
3175
|
+
/**
|
|
3176
|
+
* Current status of the task
|
|
3177
|
+
* @default "pending"
|
|
3178
|
+
*/
|
|
3179
|
+
status?: ITaskStatus;
|
|
3180
|
+
/**
|
|
3181
|
+
* Knowledge Id
|
|
3182
|
+
* Identifier for the source file
|
|
3183
|
+
*/
|
|
3184
|
+
knowledge_id: string;
|
|
3185
|
+
/**
|
|
3186
|
+
* Metadata
|
|
3187
|
+
* Metadata for the task
|
|
3188
|
+
*/
|
|
3189
|
+
metadata?: Record<string, any> | null;
|
|
3190
|
+
/**
|
|
3191
|
+
* Error Message
|
|
3192
|
+
* Error message (only present if the task failed)
|
|
3193
|
+
*/
|
|
3194
|
+
error_message?: string | null;
|
|
3195
|
+
/**
|
|
3196
|
+
* Space Id
|
|
3197
|
+
* Identifier for the space
|
|
3198
|
+
*/
|
|
3199
|
+
space_id: string;
|
|
3200
|
+
/**
|
|
3201
|
+
* User Id
|
|
3202
|
+
* Identifier for the user
|
|
3203
|
+
*/
|
|
3204
|
+
user_id?: string | null;
|
|
3205
|
+
/**
|
|
3206
|
+
* Tenant Id
|
|
3207
|
+
* Identifier for the tenant
|
|
3208
|
+
*/
|
|
3209
|
+
tenant_id: string;
|
|
3210
|
+
/**
|
|
3211
|
+
* Task Type
|
|
3212
|
+
* Type of the task
|
|
3213
|
+
* @default "knowledge_chunk"
|
|
3214
|
+
*/
|
|
3215
|
+
task_type?: string;
|
|
3216
|
+
}
|
|
3217
|
+
/** Task */
|
|
3218
|
+
export interface ITaskOutput {
|
|
2547
3219
|
/**
|
|
2548
3220
|
* Gmt Create
|
|
2549
3221
|
* creation time
|
|
2550
3222
|
*/
|
|
2551
|
-
gmt_create?: string;
|
|
3223
|
+
gmt_create?: string | null;
|
|
2552
3224
|
/**
|
|
2553
3225
|
* Gmt Modified
|
|
2554
3226
|
* update time
|
|
2555
3227
|
*/
|
|
2556
|
-
gmt_modified?: string;
|
|
3228
|
+
gmt_modified?: string | null;
|
|
2557
3229
|
/**
|
|
2558
3230
|
* Task Id
|
|
2559
3231
|
* Unique identifier for the task
|
|
@@ -2610,17 +3282,63 @@ export interface ITaskRestartRequest {
|
|
|
2610
3282
|
task_id_list: string[];
|
|
2611
3283
|
}
|
|
2612
3284
|
/** Tenant */
|
|
2613
|
-
export interface
|
|
3285
|
+
export interface ITenantInput {
|
|
2614
3286
|
/**
|
|
2615
3287
|
* Gmt Create
|
|
2616
3288
|
* creation time
|
|
2617
3289
|
*/
|
|
2618
|
-
gmt_create?: string;
|
|
3290
|
+
gmt_create?: string | null;
|
|
2619
3291
|
/**
|
|
2620
3292
|
* Gmt Modified
|
|
2621
3293
|
* update time
|
|
2622
3294
|
*/
|
|
2623
|
-
gmt_modified?: string;
|
|
3295
|
+
gmt_modified?: string | null;
|
|
3296
|
+
/**
|
|
3297
|
+
* Tenant Id
|
|
3298
|
+
* tenant id
|
|
3299
|
+
*/
|
|
3300
|
+
tenant_id?: string;
|
|
3301
|
+
/**
|
|
3302
|
+
* Tenant Name
|
|
3303
|
+
* tenant name
|
|
3304
|
+
* @default ""
|
|
3305
|
+
*/
|
|
3306
|
+
tenant_name?: string;
|
|
3307
|
+
/**
|
|
3308
|
+
* Email
|
|
3309
|
+
* email
|
|
3310
|
+
*/
|
|
3311
|
+
email: string;
|
|
3312
|
+
/**
|
|
3313
|
+
* Secret Key
|
|
3314
|
+
* secret_key
|
|
3315
|
+
* @default ""
|
|
3316
|
+
*/
|
|
3317
|
+
secret_key?: string;
|
|
3318
|
+
/**
|
|
3319
|
+
* Is Active
|
|
3320
|
+
* is active
|
|
3321
|
+
* @default true
|
|
3322
|
+
*/
|
|
3323
|
+
is_active?: boolean;
|
|
3324
|
+
/**
|
|
3325
|
+
* Metadata
|
|
3326
|
+
* Metadata for the tenant
|
|
3327
|
+
*/
|
|
3328
|
+
metadata?: Record<string, any> | null;
|
|
3329
|
+
}
|
|
3330
|
+
/** Tenant */
|
|
3331
|
+
export interface ITenantOutput {
|
|
3332
|
+
/**
|
|
3333
|
+
* Gmt Create
|
|
3334
|
+
* creation time
|
|
3335
|
+
*/
|
|
3336
|
+
gmt_create?: string | null;
|
|
3337
|
+
/**
|
|
3338
|
+
* Gmt Modified
|
|
3339
|
+
* update time
|
|
3340
|
+
*/
|
|
3341
|
+
gmt_modified?: string | null;
|
|
2624
3342
|
/**
|
|
2625
3343
|
* Tenant Id
|
|
2626
3344
|
* tenant id
|
|
@@ -2810,6 +3528,27 @@ export interface IValidationError {
|
|
|
2810
3528
|
/** Error Type */
|
|
2811
3529
|
type: string;
|
|
2812
3530
|
}
|
|
3531
|
+
/**
|
|
3532
|
+
* WohuProductSpace
|
|
3533
|
+
* 产品空间响应模型
|
|
3534
|
+
*/
|
|
3535
|
+
export interface IWohuProductSpace {
|
|
3536
|
+
/**
|
|
3537
|
+
* Product Id
|
|
3538
|
+
* 空间ID
|
|
3539
|
+
*/
|
|
3540
|
+
product_id: string;
|
|
3541
|
+
/**
|
|
3542
|
+
* Product Name
|
|
3543
|
+
* 空间名称
|
|
3544
|
+
*/
|
|
3545
|
+
product_name: string;
|
|
3546
|
+
/**
|
|
3547
|
+
* Visit Url
|
|
3548
|
+
* 访问地址
|
|
3549
|
+
*/
|
|
3550
|
+
visit_url: string;
|
|
3551
|
+
}
|
|
2813
3552
|
/** YuqueCreate */
|
|
2814
3553
|
export interface IYuqueCreate {
|
|
2815
3554
|
/**
|
|
@@ -2865,19 +3604,45 @@ export interface IYuqueCreate {
|
|
|
2865
3604
|
* Source Config
|
|
2866
3605
|
* source config of the knowledge
|
|
2867
3606
|
*/
|
|
2868
|
-
source_config: IYuqueSourceConfig | IOpenUrlSourceConfig | IOpenIdSourceConfig;
|
|
3607
|
+
source_config: IYuqueSourceConfig | IOpenUrlSourceConfig | IOpenIdSourceConfig | IYuquePersonalDocSourceConfig | IYuquePersonalNoteSourceConfig;
|
|
2869
3608
|
/**
|
|
2870
3609
|
* Split Config
|
|
2871
3610
|
* split config of the knowledge
|
|
2872
3611
|
*/
|
|
2873
3612
|
split_config: IGeaGraphSplitConfig | IYuqueSplitConfig;
|
|
2874
3613
|
}
|
|
3614
|
+
/** YuquePersonalDocSourceConfig */
|
|
3615
|
+
export interface IYuquePersonalDocSourceConfig {
|
|
3616
|
+
/**
|
|
3617
|
+
* Doc Id
|
|
3618
|
+
* the yuque personal doc id
|
|
3619
|
+
*/
|
|
3620
|
+
doc_id: number;
|
|
3621
|
+
/**
|
|
3622
|
+
* Auth Info
|
|
3623
|
+
* authentication information
|
|
3624
|
+
*/
|
|
3625
|
+
auth_info: string;
|
|
3626
|
+
}
|
|
3627
|
+
/** YuquePersonalNoteSourceConfig */
|
|
3628
|
+
export interface IYuquePersonalNoteSourceConfig {
|
|
3629
|
+
/**
|
|
3630
|
+
* Note Id
|
|
3631
|
+
* the yuque personal note id
|
|
3632
|
+
*/
|
|
3633
|
+
note_id: number;
|
|
3634
|
+
/**
|
|
3635
|
+
* Auth Info
|
|
3636
|
+
* authentication information
|
|
3637
|
+
*/
|
|
3638
|
+
auth_info: string;
|
|
3639
|
+
}
|
|
2875
3640
|
/** YuqueSourceConfig */
|
|
2876
3641
|
export interface IYuqueSourceConfig {
|
|
2877
3642
|
/**
|
|
2878
3643
|
* Api Url
|
|
2879
3644
|
* the yuque api url
|
|
2880
|
-
* @default "https://
|
|
3645
|
+
* @default "https://yuque-api.antfin-inc.com"
|
|
2881
3646
|
*/
|
|
2882
3647
|
api_url?: string;
|
|
2883
3648
|
/**
|
|
@@ -3005,6 +3770,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3005
3770
|
* @request GET:/
|
|
3006
3771
|
*/
|
|
3007
3772
|
homePageGet: (params?: RequestParams) => Promise<HttpResponse<any, any>>;
|
|
3773
|
+
user: {
|
|
3774
|
+
/**
|
|
3775
|
+
* @description 根据登录账号查询用户有权限的产品空间列表 Args: login_account: 用户登录账号 Returns: 用户有权限的产品空间列表
|
|
3776
|
+
*
|
|
3777
|
+
* @tags user
|
|
3778
|
+
* @name GetUserProductSpaces
|
|
3779
|
+
* @summary Get User Product Spaces
|
|
3780
|
+
* @request GET:/api/user/product-spaces
|
|
3781
|
+
*/
|
|
3782
|
+
getUserProductSpaces: (query: {
|
|
3783
|
+
/**
|
|
3784
|
+
* Login Account
|
|
3785
|
+
* 用户登录账号
|
|
3786
|
+
*/
|
|
3787
|
+
login_account: string;
|
|
3788
|
+
}, params?: RequestParams) => Promise<HttpResponse<IResponseModelListWohuProductSpace, void | IHTTPValidationError>>;
|
|
3789
|
+
};
|
|
3008
3790
|
knowledge: {
|
|
3009
3791
|
/**
|
|
3010
3792
|
* @description 添加知识 使用DDD架构创建新的知识,禁止重复的file_sha条目。 通过TaskCoordinationService统一协调知识创建和任务执行,确保事务一致性。
|
|
@@ -3075,6 +3857,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3075
3857
|
* @request GET:/api/knowledge/embedding/models
|
|
3076
3858
|
*/
|
|
3077
3859
|
getEmbeddingModelsList: (params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
|
|
3860
|
+
/**
|
|
3861
|
+
* @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: 符合条件的知识列表
|
|
3862
|
+
*
|
|
3863
|
+
* @tags knowledge
|
|
3864
|
+
* @name BatchQueryKnowledgeByNames
|
|
3865
|
+
* @summary Batch Query Knowledge By Names
|
|
3866
|
+
* @request POST:/api/knowledge/batch_query_by_names
|
|
3867
|
+
*/
|
|
3868
|
+
batchQueryKnowledgeByNames: (data: IBatchQueryRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListKnowledge, void | IHTTPValidationError>>;
|
|
3078
3869
|
};
|
|
3079
3870
|
retrieval: {
|
|
3080
3871
|
/**
|
|
@@ -3096,7 +3887,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3096
3887
|
*/
|
|
3097
3888
|
retrieveSpaceContent: (data: IRetrievalBySpaceRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
|
|
3098
3889
|
/**
|
|
3099
|
-
* @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.
|
|
3100
3891
|
*
|
|
3101
3892
|
* @tags retrieval
|
|
3102
3893
|
* @name Retrieve
|
|
@@ -3104,10 +3895,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3104
3895
|
* @request POST:/api/retrieval/
|
|
3105
3896
|
*/
|
|
3106
3897
|
retrieve: (data: IRetrievalRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
|
|
3898
|
+
/**
|
|
3899
|
+
* @description 因为 antvis 要对公网开放相关信息,故提供本单独接口
|
|
3900
|
+
*
|
|
3901
|
+
* @tags retrieval
|
|
3902
|
+
* @name AntvisRetrieve
|
|
3903
|
+
* @summary Context7 Antvis Retrieve
|
|
3904
|
+
* @request POST:/api/retrieval/context7/antvis
|
|
3905
|
+
*/
|
|
3906
|
+
antvisRetrieve: (data: IRetrievalRequest, params?: RequestParams) => Promise<HttpResponse<IResponseModelListRetrievalChunk, void | IHTTPValidationError>>;
|
|
3107
3907
|
};
|
|
3108
3908
|
task: {
|
|
3109
3909
|
/**
|
|
3110
|
-
* @description 重启任务 使用DDD架构的
|
|
3910
|
+
* @description 重启任务 使用DDD架构的TaskCoordinationService进行任务重启并执行。 重试规则: 1. FAILED 或 CANCELED 状态的任务可以重试 2. 创建时间超过30分钟且未成功的任务可以重试
|
|
3111
3911
|
*
|
|
3112
3912
|
* @tags task
|
|
3113
3913
|
* @name RestartTask
|