@petercatai/whisker-client 0.0.1760329155-dev → 0.0.1761293285
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +780 -80
- package/dist/api.js +1 -1
- package/package.json +4 -4
package/dist/api.d.ts
CHANGED
|
@@ -136,17 +136,79 @@ export declare enum IAction {
|
|
|
136
136
|
Value = "*"
|
|
137
137
|
}
|
|
138
138
|
/** APIKey */
|
|
139
|
-
export interface
|
|
139
|
+
export interface IAPIKeyInput {
|
|
140
140
|
/**
|
|
141
141
|
* Gmt Create
|
|
142
142
|
* creation time
|
|
143
143
|
*/
|
|
144
|
-
gmt_create?: string;
|
|
144
|
+
gmt_create?: string | null;
|
|
145
|
+
/**
|
|
146
|
+
* Gmt Modified
|
|
147
|
+
* update time
|
|
148
|
+
*/
|
|
149
|
+
gmt_modified?: string | null;
|
|
150
|
+
/**
|
|
151
|
+
* Key Id
|
|
152
|
+
* key id
|
|
153
|
+
*/
|
|
154
|
+
key_id?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Tenant Id
|
|
157
|
+
* tenant id
|
|
158
|
+
*/
|
|
159
|
+
tenant_id: string;
|
|
160
|
+
/**
|
|
161
|
+
* Key Name
|
|
162
|
+
* key name
|
|
163
|
+
* @default ""
|
|
164
|
+
*/
|
|
165
|
+
key_name?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Key Value
|
|
168
|
+
* key value
|
|
169
|
+
*/
|
|
170
|
+
key_value: string;
|
|
171
|
+
/**
|
|
172
|
+
* Permissions
|
|
173
|
+
* permissions config
|
|
174
|
+
*/
|
|
175
|
+
permissions?: IPermission[];
|
|
176
|
+
/**
|
|
177
|
+
* Rate Limit
|
|
178
|
+
* rate limit per minute
|
|
179
|
+
* @min 0
|
|
180
|
+
* @default 0
|
|
181
|
+
*/
|
|
182
|
+
rate_limit?: number;
|
|
183
|
+
/**
|
|
184
|
+
* Expires At
|
|
185
|
+
* expire time (UTC)
|
|
186
|
+
*/
|
|
187
|
+
expires_at?: string | null;
|
|
188
|
+
/**
|
|
189
|
+
* Is Active
|
|
190
|
+
* key status
|
|
191
|
+
* @default true
|
|
192
|
+
*/
|
|
193
|
+
is_active?: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* Metadata
|
|
196
|
+
* key metadata
|
|
197
|
+
*/
|
|
198
|
+
metadata?: Record<string, any> | null;
|
|
199
|
+
}
|
|
200
|
+
/** APIKey */
|
|
201
|
+
export interface IAPIKeyOutput {
|
|
202
|
+
/**
|
|
203
|
+
* Gmt Create
|
|
204
|
+
* creation time
|
|
205
|
+
*/
|
|
206
|
+
gmt_create?: string | null;
|
|
145
207
|
/**
|
|
146
208
|
* Gmt Modified
|
|
147
209
|
* update time
|
|
148
210
|
*/
|
|
149
|
-
gmt_modified?: string;
|
|
211
|
+
gmt_modified?: string | null;
|
|
150
212
|
/**
|
|
151
213
|
* Key Id
|
|
152
214
|
* key id
|
|
@@ -254,17 +316,68 @@ export interface IActiveStatusUpdate {
|
|
|
254
316
|
* ArtifactIndex
|
|
255
317
|
* whisker_artifact_index 模型
|
|
256
318
|
*/
|
|
257
|
-
export interface
|
|
319
|
+
export interface IArtifactIndexInput {
|
|
320
|
+
/**
|
|
321
|
+
* Gmt Create
|
|
322
|
+
* creation time
|
|
323
|
+
*/
|
|
324
|
+
gmt_create?: string | null;
|
|
325
|
+
/**
|
|
326
|
+
* Gmt Modified
|
|
327
|
+
* update time
|
|
328
|
+
*/
|
|
329
|
+
gmt_modified?: string | null;
|
|
330
|
+
/**
|
|
331
|
+
* Ecosystem
|
|
332
|
+
* 制品来源生态系统(pypi / npm / maven / go / php)
|
|
333
|
+
* @maxLength 32
|
|
334
|
+
*/
|
|
335
|
+
ecosystem: string;
|
|
336
|
+
/**
|
|
337
|
+
* Name
|
|
338
|
+
* 制品名(构建产物名,如 requests / @company/sdk)
|
|
339
|
+
* @maxLength 255
|
|
340
|
+
*/
|
|
341
|
+
name: string;
|
|
342
|
+
/**
|
|
343
|
+
* Version
|
|
344
|
+
* 版本号(可为空)
|
|
345
|
+
*/
|
|
346
|
+
version?: string | null;
|
|
347
|
+
/**
|
|
348
|
+
* Space Id
|
|
349
|
+
* 关联的 whisker_space.space_id
|
|
350
|
+
* @maxLength 255
|
|
351
|
+
* @pattern ^[A-Za-z0-9._@/-]{1,255}$
|
|
352
|
+
*/
|
|
353
|
+
space_id: string;
|
|
354
|
+
/**
|
|
355
|
+
* Extra
|
|
356
|
+
* 额外元数据信息,扩展用,如构建参数、标签、扫描信息等
|
|
357
|
+
* @default {}
|
|
358
|
+
*/
|
|
359
|
+
extra?: Record<string, any>;
|
|
360
|
+
/**
|
|
361
|
+
* Artifact Id
|
|
362
|
+
* 制品索引表主键(UUID字符串)
|
|
363
|
+
*/
|
|
364
|
+
artifact_id?: string;
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* ArtifactIndex
|
|
368
|
+
* whisker_artifact_index 模型
|
|
369
|
+
*/
|
|
370
|
+
export interface IArtifactIndexOutput {
|
|
258
371
|
/**
|
|
259
372
|
* Gmt Create
|
|
260
373
|
* creation time
|
|
261
374
|
*/
|
|
262
|
-
gmt_create?: string;
|
|
375
|
+
gmt_create?: string | null;
|
|
263
376
|
/**
|
|
264
377
|
* Gmt Modified
|
|
265
378
|
* update time
|
|
266
379
|
*/
|
|
267
|
-
gmt_modified?: string;
|
|
380
|
+
gmt_modified?: string | null;
|
|
268
381
|
/**
|
|
269
382
|
* Ecosystem
|
|
270
383
|
* 制品来源生态系统(pypi / npm / maven / go / php)
|
|
@@ -402,17 +515,106 @@ export interface IBaseCodeSplitConfig {
|
|
|
402
515
|
chunk_overlap?: number;
|
|
403
516
|
}
|
|
404
517
|
/** Chunk */
|
|
405
|
-
export interface
|
|
518
|
+
export interface IChunkInput {
|
|
519
|
+
/**
|
|
520
|
+
* Gmt Create
|
|
521
|
+
* creation time
|
|
522
|
+
*/
|
|
523
|
+
gmt_create?: string | null;
|
|
524
|
+
/**
|
|
525
|
+
* Gmt Modified
|
|
526
|
+
* update time
|
|
527
|
+
*/
|
|
528
|
+
gmt_modified?: string | null;
|
|
529
|
+
/**
|
|
530
|
+
* Chunk Id
|
|
531
|
+
* chunk id
|
|
532
|
+
*/
|
|
533
|
+
chunk_id?: string;
|
|
534
|
+
/**
|
|
535
|
+
* Space Id
|
|
536
|
+
* space id
|
|
537
|
+
*/
|
|
538
|
+
space_id: string;
|
|
539
|
+
/**
|
|
540
|
+
* Tenant Id
|
|
541
|
+
* tenant id
|
|
542
|
+
*/
|
|
543
|
+
tenant_id: string;
|
|
544
|
+
/**
|
|
545
|
+
* Embedding
|
|
546
|
+
* chunk embedding
|
|
547
|
+
*/
|
|
548
|
+
embedding?: number[] | null;
|
|
549
|
+
/**
|
|
550
|
+
* Context
|
|
551
|
+
* chunk content
|
|
552
|
+
*/
|
|
553
|
+
context: string;
|
|
554
|
+
/**
|
|
555
|
+
* Knowledge Id
|
|
556
|
+
* file source info
|
|
557
|
+
*/
|
|
558
|
+
knowledge_id: string;
|
|
559
|
+
/**
|
|
560
|
+
* Enabled
|
|
561
|
+
* is chunk enabled
|
|
562
|
+
* @default true
|
|
563
|
+
*/
|
|
564
|
+
enabled?: boolean;
|
|
565
|
+
/**
|
|
566
|
+
* Embedding Model Name
|
|
567
|
+
* name of the embedding model
|
|
568
|
+
*/
|
|
569
|
+
embedding_model_name: string;
|
|
570
|
+
/**
|
|
571
|
+
* Metadata
|
|
572
|
+
* Arbitrary metadata associated with the content.
|
|
573
|
+
*/
|
|
574
|
+
metadata?: Record<string, any> | null;
|
|
575
|
+
/**
|
|
576
|
+
* Tags
|
|
577
|
+
* Tags from knowledge.metadata._tags
|
|
578
|
+
*/
|
|
579
|
+
tags?: string[] | null;
|
|
580
|
+
/**
|
|
581
|
+
* F1
|
|
582
|
+
* Field 1 from knowledge.metadata._f1
|
|
583
|
+
*/
|
|
584
|
+
f1?: string | null;
|
|
585
|
+
/**
|
|
586
|
+
* F2
|
|
587
|
+
* Field 2 from knowledge.metadata._f2
|
|
588
|
+
*/
|
|
589
|
+
f2?: string | null;
|
|
590
|
+
/**
|
|
591
|
+
* F3
|
|
592
|
+
* Field 3 from knowledge.metadata._f3
|
|
593
|
+
*/
|
|
594
|
+
f3?: string | null;
|
|
595
|
+
/**
|
|
596
|
+
* F4
|
|
597
|
+
* Field 4 from knowledge.metadata._f4
|
|
598
|
+
*/
|
|
599
|
+
f4?: string | null;
|
|
600
|
+
/**
|
|
601
|
+
* F5
|
|
602
|
+
* Field 5 from knowledge.metadata._f5
|
|
603
|
+
*/
|
|
604
|
+
f5?: string | null;
|
|
605
|
+
}
|
|
606
|
+
/** Chunk */
|
|
607
|
+
export interface IChunkOutput {
|
|
406
608
|
/**
|
|
407
609
|
* Gmt Create
|
|
408
610
|
* creation time
|
|
409
611
|
*/
|
|
410
|
-
gmt_create?: string;
|
|
612
|
+
gmt_create?: string | null;
|
|
411
613
|
/**
|
|
412
614
|
* Gmt Modified
|
|
413
615
|
* update time
|
|
414
616
|
*/
|
|
415
|
-
gmt_modified?: string;
|
|
617
|
+
gmt_modified?: string | null;
|
|
416
618
|
/**
|
|
417
619
|
* Chunk Id
|
|
418
620
|
* chunk id
|
|
@@ -992,12 +1194,12 @@ export interface IKnowledgeOutput {
|
|
|
992
1194
|
* Gmt Create
|
|
993
1195
|
* creation time
|
|
994
1196
|
*/
|
|
995
|
-
gmt_create?: string;
|
|
1197
|
+
gmt_create?: string | null;
|
|
996
1198
|
/**
|
|
997
1199
|
* Gmt Modified
|
|
998
1200
|
* update time
|
|
999
1201
|
*/
|
|
1000
|
-
gmt_modified?: string;
|
|
1202
|
+
gmt_modified?: string | null;
|
|
1001
1203
|
/**
|
|
1002
1204
|
* Knowledge Id
|
|
1003
1205
|
* knowledge id
|
|
@@ -1593,9 +1795,35 @@ export interface IPageQueryParamsTask {
|
|
|
1593
1795
|
page_size?: number;
|
|
1594
1796
|
}
|
|
1595
1797
|
/** PageResponse[APIKey] */
|
|
1596
|
-
export interface
|
|
1798
|
+
export interface IPageResponseAPIKeyInput {
|
|
1799
|
+
/** Items */
|
|
1800
|
+
items: IAPIKeyInput[];
|
|
1801
|
+
/** Total */
|
|
1802
|
+
total: number;
|
|
1803
|
+
/** Page */
|
|
1804
|
+
page: number;
|
|
1805
|
+
/** Page Size */
|
|
1806
|
+
page_size: number;
|
|
1807
|
+
/** Total Pages */
|
|
1808
|
+
total_pages: number;
|
|
1809
|
+
}
|
|
1810
|
+
/** PageResponse[APIKey] */
|
|
1811
|
+
export interface IPageResponseAPIKeyOutput {
|
|
1812
|
+
/** Items */
|
|
1813
|
+
items: IAPIKeyOutput[];
|
|
1814
|
+
/** Total */
|
|
1815
|
+
total: number;
|
|
1816
|
+
/** Page */
|
|
1817
|
+
page: number;
|
|
1818
|
+
/** Page Size */
|
|
1819
|
+
page_size: number;
|
|
1820
|
+
/** Total Pages */
|
|
1821
|
+
total_pages: number;
|
|
1822
|
+
}
|
|
1823
|
+
/** PageResponse[ArtifactIndex] */
|
|
1824
|
+
export interface IPageResponseArtifactIndexInput {
|
|
1597
1825
|
/** Items */
|
|
1598
|
-
items:
|
|
1826
|
+
items: IArtifactIndexInput[];
|
|
1599
1827
|
/** Total */
|
|
1600
1828
|
total: number;
|
|
1601
1829
|
/** Page */
|
|
@@ -1606,9 +1834,22 @@ export interface IPageResponseAPIKey {
|
|
|
1606
1834
|
total_pages: number;
|
|
1607
1835
|
}
|
|
1608
1836
|
/** PageResponse[ArtifactIndex] */
|
|
1609
|
-
export interface
|
|
1837
|
+
export interface IPageResponseArtifactIndexOutput {
|
|
1838
|
+
/** Items */
|
|
1839
|
+
items: IArtifactIndexOutput[];
|
|
1840
|
+
/** Total */
|
|
1841
|
+
total: number;
|
|
1842
|
+
/** Page */
|
|
1843
|
+
page: number;
|
|
1844
|
+
/** Page Size */
|
|
1845
|
+
page_size: number;
|
|
1846
|
+
/** Total Pages */
|
|
1847
|
+
total_pages: number;
|
|
1848
|
+
}
|
|
1849
|
+
/** PageResponse[Chunk] */
|
|
1850
|
+
export interface IPageResponseChunkInput {
|
|
1610
1851
|
/** Items */
|
|
1611
|
-
items:
|
|
1852
|
+
items: IChunkInput[];
|
|
1612
1853
|
/** Total */
|
|
1613
1854
|
total: number;
|
|
1614
1855
|
/** Page */
|
|
@@ -1619,9 +1860,9 @@ export interface IPageResponseArtifactIndex {
|
|
|
1619
1860
|
total_pages: number;
|
|
1620
1861
|
}
|
|
1621
1862
|
/** PageResponse[Chunk] */
|
|
1622
|
-
export interface
|
|
1863
|
+
export interface IPageResponseChunkOutput {
|
|
1623
1864
|
/** Items */
|
|
1624
|
-
items:
|
|
1865
|
+
items: IChunkOutput[];
|
|
1625
1866
|
/** Total */
|
|
1626
1867
|
total: number;
|
|
1627
1868
|
/** Page */
|
|
@@ -1632,9 +1873,9 @@ export interface IPageResponseChunk {
|
|
|
1632
1873
|
total_pages: number;
|
|
1633
1874
|
}
|
|
1634
1875
|
/** PageResponse[Knowledge] */
|
|
1635
|
-
export interface
|
|
1876
|
+
export interface IPageResponseKnowledgeInput {
|
|
1636
1877
|
/** Items */
|
|
1637
|
-
items:
|
|
1878
|
+
items: IKnowledgeInput[];
|
|
1638
1879
|
/** Total */
|
|
1639
1880
|
total: number;
|
|
1640
1881
|
/** Page */
|
|
@@ -1644,10 +1885,10 @@ export interface IPageResponseKnowledge {
|
|
|
1644
1885
|
/** Total Pages */
|
|
1645
1886
|
total_pages: number;
|
|
1646
1887
|
}
|
|
1647
|
-
/** PageResponse[
|
|
1648
|
-
export interface
|
|
1888
|
+
/** PageResponse[Knowledge] */
|
|
1889
|
+
export interface IPageResponseKnowledgeOutput {
|
|
1649
1890
|
/** Items */
|
|
1650
|
-
items:
|
|
1891
|
+
items: IKnowledgeOutput[];
|
|
1651
1892
|
/** Total */
|
|
1652
1893
|
total: number;
|
|
1653
1894
|
/** Page */
|
|
@@ -1657,10 +1898,10 @@ export interface IPageResponseSpaceResponse {
|
|
|
1657
1898
|
/** Total Pages */
|
|
1658
1899
|
total_pages: number;
|
|
1659
1900
|
}
|
|
1660
|
-
/** PageResponse[
|
|
1661
|
-
export interface
|
|
1901
|
+
/** PageResponse[SpaceResponse] */
|
|
1902
|
+
export interface IPageResponseSpaceResponseInput {
|
|
1662
1903
|
/** Items */
|
|
1663
|
-
items:
|
|
1904
|
+
items: ISpaceResponseInput[];
|
|
1664
1905
|
/** Total */
|
|
1665
1906
|
total: number;
|
|
1666
1907
|
/** Page */
|
|
@@ -1670,10 +1911,10 @@ export interface IPageResponseTag {
|
|
|
1670
1911
|
/** Total Pages */
|
|
1671
1912
|
total_pages: number;
|
|
1672
1913
|
}
|
|
1673
|
-
/** PageResponse[
|
|
1674
|
-
export interface
|
|
1914
|
+
/** PageResponse[SpaceResponse] */
|
|
1915
|
+
export interface IPageResponseSpaceResponseOutput {
|
|
1675
1916
|
/** Items */
|
|
1676
|
-
items:
|
|
1917
|
+
items: ISpaceResponseOutput[];
|
|
1677
1918
|
/** Total */
|
|
1678
1919
|
total: number;
|
|
1679
1920
|
/** Page */
|
|
@@ -1683,10 +1924,10 @@ export interface IPageResponseTagging {
|
|
|
1683
1924
|
/** Total Pages */
|
|
1684
1925
|
total_pages: number;
|
|
1685
1926
|
}
|
|
1686
|
-
/** PageResponse[
|
|
1687
|
-
export interface
|
|
1927
|
+
/** PageResponse[Tag] */
|
|
1928
|
+
export interface IPageResponseTagInput {
|
|
1688
1929
|
/** Items */
|
|
1689
|
-
items:
|
|
1930
|
+
items: ITagInput[];
|
|
1690
1931
|
/** Total */
|
|
1691
1932
|
total: number;
|
|
1692
1933
|
/** Page */
|
|
@@ -1696,12 +1937,77 @@ export interface IPageResponseTenant {
|
|
|
1696
1937
|
/** Total Pages */
|
|
1697
1938
|
total_pages: number;
|
|
1698
1939
|
}
|
|
1699
|
-
/**
|
|
1700
|
-
export interface
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1940
|
+
/** PageResponse[Tag] */
|
|
1941
|
+
export interface IPageResponseTagOutput {
|
|
1942
|
+
/** Items */
|
|
1943
|
+
items: ITagOutput[];
|
|
1944
|
+
/** Total */
|
|
1945
|
+
total: number;
|
|
1946
|
+
/** Page */
|
|
1947
|
+
page: number;
|
|
1948
|
+
/** Page Size */
|
|
1949
|
+
page_size: number;
|
|
1950
|
+
/** Total Pages */
|
|
1951
|
+
total_pages: number;
|
|
1952
|
+
}
|
|
1953
|
+
/** PageResponse[Tagging] */
|
|
1954
|
+
export interface IPageResponseTaggingInput {
|
|
1955
|
+
/** Items */
|
|
1956
|
+
items: ITaggingInput[];
|
|
1957
|
+
/** Total */
|
|
1958
|
+
total: number;
|
|
1959
|
+
/** Page */
|
|
1960
|
+
page: number;
|
|
1961
|
+
/** Page Size */
|
|
1962
|
+
page_size: number;
|
|
1963
|
+
/** Total Pages */
|
|
1964
|
+
total_pages: number;
|
|
1965
|
+
}
|
|
1966
|
+
/** PageResponse[Tagging] */
|
|
1967
|
+
export interface IPageResponseTaggingOutput {
|
|
1968
|
+
/** Items */
|
|
1969
|
+
items: ITaggingOutput[];
|
|
1970
|
+
/** Total */
|
|
1971
|
+
total: number;
|
|
1972
|
+
/** Page */
|
|
1973
|
+
page: number;
|
|
1974
|
+
/** Page Size */
|
|
1975
|
+
page_size: number;
|
|
1976
|
+
/** Total Pages */
|
|
1977
|
+
total_pages: number;
|
|
1978
|
+
}
|
|
1979
|
+
/** PageResponse[Tenant] */
|
|
1980
|
+
export interface IPageResponseTenantInput {
|
|
1981
|
+
/** Items */
|
|
1982
|
+
items: ITenantInput[];
|
|
1983
|
+
/** Total */
|
|
1984
|
+
total: number;
|
|
1985
|
+
/** Page */
|
|
1986
|
+
page: number;
|
|
1987
|
+
/** Page Size */
|
|
1988
|
+
page_size: number;
|
|
1989
|
+
/** Total Pages */
|
|
1990
|
+
total_pages: number;
|
|
1991
|
+
}
|
|
1992
|
+
/** PageResponse[Tenant] */
|
|
1993
|
+
export interface IPageResponseTenantOutput {
|
|
1994
|
+
/** Items */
|
|
1995
|
+
items: ITenantOutput[];
|
|
1996
|
+
/** Total */
|
|
1997
|
+
total: number;
|
|
1998
|
+
/** Page */
|
|
1999
|
+
page: number;
|
|
2000
|
+
/** Page Size */
|
|
2001
|
+
page_size: number;
|
|
2002
|
+
/** Total Pages */
|
|
2003
|
+
total_pages: number;
|
|
2004
|
+
}
|
|
2005
|
+
/** Permission */
|
|
2006
|
+
export interface IPermission {
|
|
2007
|
+
resource: IResource;
|
|
2008
|
+
/** Actions */
|
|
2009
|
+
actions: IAction[];
|
|
2010
|
+
/** Conditions */
|
|
1705
2011
|
conditions?: Record<string, any> | null;
|
|
1706
2012
|
}
|
|
1707
2013
|
/** QACreate */
|
|
@@ -1783,7 +2089,7 @@ export interface IResponseModel {
|
|
|
1783
2089
|
export interface IResponseModelAPIKey {
|
|
1784
2090
|
/** Success */
|
|
1785
2091
|
success: boolean;
|
|
1786
|
-
data?:
|
|
2092
|
+
data?: IAPIKeyOutput | null;
|
|
1787
2093
|
/** Message */
|
|
1788
2094
|
message?: string | null;
|
|
1789
2095
|
}
|
|
@@ -1791,7 +2097,7 @@ export interface IResponseModelAPIKey {
|
|
|
1791
2097
|
export interface IResponseModelArtifactIndex {
|
|
1792
2098
|
/** Success */
|
|
1793
2099
|
success: boolean;
|
|
1794
|
-
data?:
|
|
2100
|
+
data?: IArtifactIndexOutput | null;
|
|
1795
2101
|
/** Message */
|
|
1796
2102
|
message?: string | null;
|
|
1797
2103
|
}
|
|
@@ -1799,7 +2105,7 @@ export interface IResponseModelArtifactIndex {
|
|
|
1799
2105
|
export interface IResponseModelChunk {
|
|
1800
2106
|
/** Success */
|
|
1801
2107
|
success: boolean;
|
|
1802
|
-
data?:
|
|
2108
|
+
data?: IChunkOutput | null;
|
|
1803
2109
|
/** Message */
|
|
1804
2110
|
message?: string | null;
|
|
1805
2111
|
}
|
|
@@ -1824,7 +2130,7 @@ export interface IResponseModelListAPIKey {
|
|
|
1824
2130
|
/** Success */
|
|
1825
2131
|
success: boolean;
|
|
1826
2132
|
/** Data */
|
|
1827
|
-
data?:
|
|
2133
|
+
data?: IAPIKeyOutput[] | null;
|
|
1828
2134
|
/** Message */
|
|
1829
2135
|
message?: string | null;
|
|
1830
2136
|
}
|
|
@@ -1833,7 +2139,7 @@ export interface IResponseModelListArtifactIndex {
|
|
|
1833
2139
|
/** Success */
|
|
1834
2140
|
success: boolean;
|
|
1835
2141
|
/** Data */
|
|
1836
|
-
data?:
|
|
2142
|
+
data?: IArtifactIndexOutput[] | null;
|
|
1837
2143
|
/** Message */
|
|
1838
2144
|
message?: string | null;
|
|
1839
2145
|
}
|
|
@@ -1851,7 +2157,7 @@ export interface IResponseModelListRetrievalChunk {
|
|
|
1851
2157
|
/** Success */
|
|
1852
2158
|
success: boolean;
|
|
1853
2159
|
/** Data */
|
|
1854
|
-
data?:
|
|
2160
|
+
data?: IRetrievalChunkOutput[] | null;
|
|
1855
2161
|
/** Message */
|
|
1856
2162
|
message?: string | null;
|
|
1857
2163
|
}
|
|
@@ -1860,7 +2166,7 @@ export interface IResponseModelListTag {
|
|
|
1860
2166
|
/** Success */
|
|
1861
2167
|
success: boolean;
|
|
1862
2168
|
/** Data */
|
|
1863
|
-
data?:
|
|
2169
|
+
data?: ITagOutput[] | null;
|
|
1864
2170
|
/** Message */
|
|
1865
2171
|
message?: string | null;
|
|
1866
2172
|
}
|
|
@@ -1869,7 +2175,7 @@ export interface IResponseModelListTagging {
|
|
|
1869
2175
|
/** Success */
|
|
1870
2176
|
success: boolean;
|
|
1871
2177
|
/** Data */
|
|
1872
|
-
data?:
|
|
2178
|
+
data?: ITaggingOutput[] | null;
|
|
1873
2179
|
/** Message */
|
|
1874
2180
|
message?: string | null;
|
|
1875
2181
|
}
|
|
@@ -1878,7 +2184,7 @@ export interface IResponseModelListTask {
|
|
|
1878
2184
|
/** Success */
|
|
1879
2185
|
success: boolean;
|
|
1880
2186
|
/** Data */
|
|
1881
|
-
data?:
|
|
2187
|
+
data?: ITaskOutput[] | null;
|
|
1882
2188
|
/** Message */
|
|
1883
2189
|
message?: string | null;
|
|
1884
2190
|
}
|
|
@@ -1904,7 +2210,7 @@ export interface IResponseModelNoneType {
|
|
|
1904
2210
|
export interface IResponseModelPageResponseAPIKey {
|
|
1905
2211
|
/** Success */
|
|
1906
2212
|
success: boolean;
|
|
1907
|
-
data?:
|
|
2213
|
+
data?: IPageResponseAPIKeyOutput | null;
|
|
1908
2214
|
/** Message */
|
|
1909
2215
|
message?: string | null;
|
|
1910
2216
|
}
|
|
@@ -1912,7 +2218,7 @@ export interface IResponseModelPageResponseAPIKey {
|
|
|
1912
2218
|
export interface IResponseModelPageResponseArtifactIndex {
|
|
1913
2219
|
/** Success */
|
|
1914
2220
|
success: boolean;
|
|
1915
|
-
data?:
|
|
2221
|
+
data?: IPageResponseArtifactIndexOutput | null;
|
|
1916
2222
|
/** Message */
|
|
1917
2223
|
message?: string | null;
|
|
1918
2224
|
}
|
|
@@ -1920,7 +2226,7 @@ export interface IResponseModelPageResponseArtifactIndex {
|
|
|
1920
2226
|
export interface IResponseModelPageResponseChunk {
|
|
1921
2227
|
/** Success */
|
|
1922
2228
|
success: boolean;
|
|
1923
|
-
data?:
|
|
2229
|
+
data?: IPageResponseChunkOutput | null;
|
|
1924
2230
|
/** Message */
|
|
1925
2231
|
message?: string | null;
|
|
1926
2232
|
}
|
|
@@ -1928,7 +2234,7 @@ export interface IResponseModelPageResponseChunk {
|
|
|
1928
2234
|
export interface IResponseModelPageResponseKnowledge {
|
|
1929
2235
|
/** Success */
|
|
1930
2236
|
success: boolean;
|
|
1931
|
-
data?:
|
|
2237
|
+
data?: IPageResponseKnowledgeOutput | null;
|
|
1932
2238
|
/** Message */
|
|
1933
2239
|
message?: string | null;
|
|
1934
2240
|
}
|
|
@@ -1936,7 +2242,7 @@ export interface IResponseModelPageResponseKnowledge {
|
|
|
1936
2242
|
export interface IResponseModelPageResponseSpaceResponse {
|
|
1937
2243
|
/** Success */
|
|
1938
2244
|
success: boolean;
|
|
1939
|
-
data?:
|
|
2245
|
+
data?: IPageResponseSpaceResponseOutput | null;
|
|
1940
2246
|
/** Message */
|
|
1941
2247
|
message?: string | null;
|
|
1942
2248
|
}
|
|
@@ -1944,7 +2250,7 @@ export interface IResponseModelPageResponseSpaceResponse {
|
|
|
1944
2250
|
export interface IResponseModelPageResponseTag {
|
|
1945
2251
|
/** Success */
|
|
1946
2252
|
success: boolean;
|
|
1947
|
-
data?:
|
|
2253
|
+
data?: IPageResponseTagOutput | null;
|
|
1948
2254
|
/** Message */
|
|
1949
2255
|
message?: string | null;
|
|
1950
2256
|
}
|
|
@@ -1952,7 +2258,7 @@ export interface IResponseModelPageResponseTag {
|
|
|
1952
2258
|
export interface IResponseModelPageResponseTagging {
|
|
1953
2259
|
/** Success */
|
|
1954
2260
|
success: boolean;
|
|
1955
|
-
data?:
|
|
2261
|
+
data?: IPageResponseTaggingOutput | null;
|
|
1956
2262
|
/** Message */
|
|
1957
2263
|
message?: string | null;
|
|
1958
2264
|
}
|
|
@@ -1960,7 +2266,7 @@ export interface IResponseModelPageResponseTagging {
|
|
|
1960
2266
|
export interface IResponseModelPageResponseTenant {
|
|
1961
2267
|
/** Success */
|
|
1962
2268
|
success: boolean;
|
|
1963
|
-
data?:
|
|
2269
|
+
data?: IPageResponseTenantOutput | null;
|
|
1964
2270
|
/** Message */
|
|
1965
2271
|
message?: string | null;
|
|
1966
2272
|
}
|
|
@@ -1968,7 +2274,7 @@ export interface IResponseModelPageResponseTenant {
|
|
|
1968
2274
|
export interface IResponseModelSpaceResponse {
|
|
1969
2275
|
/** Success */
|
|
1970
2276
|
success: boolean;
|
|
1971
|
-
data?:
|
|
2277
|
+
data?: ISpaceResponseOutput | null;
|
|
1972
2278
|
/** Message */
|
|
1973
2279
|
message?: string | null;
|
|
1974
2280
|
}
|
|
@@ -1976,7 +2282,7 @@ export interface IResponseModelSpaceResponse {
|
|
|
1976
2282
|
export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
1977
2283
|
/** Success */
|
|
1978
2284
|
success: boolean;
|
|
1979
|
-
data?:
|
|
2285
|
+
data?: IStatusStatisticsPageResponseTaskOutput | null;
|
|
1980
2286
|
/** Message */
|
|
1981
2287
|
message?: string | null;
|
|
1982
2288
|
}
|
|
@@ -1984,7 +2290,7 @@ export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
|
1984
2290
|
export interface IResponseModelTag {
|
|
1985
2291
|
/** Success */
|
|
1986
2292
|
success: boolean;
|
|
1987
|
-
data?:
|
|
2293
|
+
data?: ITagOutput | null;
|
|
1988
2294
|
/** Message */
|
|
1989
2295
|
message?: string | null;
|
|
1990
2296
|
}
|
|
@@ -1992,7 +2298,7 @@ export interface IResponseModelTag {
|
|
|
1992
2298
|
export interface IResponseModelTask {
|
|
1993
2299
|
/** Success */
|
|
1994
2300
|
success: boolean;
|
|
1995
|
-
data?:
|
|
2301
|
+
data?: ITaskOutput | null;
|
|
1996
2302
|
/** Message */
|
|
1997
2303
|
message?: string | null;
|
|
1998
2304
|
}
|
|
@@ -2000,7 +2306,7 @@ export interface IResponseModelTask {
|
|
|
2000
2306
|
export interface IResponseModelTenant {
|
|
2001
2307
|
/** Success */
|
|
2002
2308
|
success: boolean;
|
|
2003
|
-
data?:
|
|
2309
|
+
data?: ITenantOutput | null;
|
|
2004
2310
|
/** Message */
|
|
2005
2311
|
message?: string | null;
|
|
2006
2312
|
}
|
|
@@ -2101,17 +2407,111 @@ export interface IRetrievalBySpaceRequest {
|
|
|
2101
2407
|
space_id_list: string[];
|
|
2102
2408
|
}
|
|
2103
2409
|
/** RetrievalChunk */
|
|
2104
|
-
export interface
|
|
2410
|
+
export interface IRetrievalChunkInput {
|
|
2411
|
+
/**
|
|
2412
|
+
* Gmt Create
|
|
2413
|
+
* creation time
|
|
2414
|
+
*/
|
|
2415
|
+
gmt_create?: string | null;
|
|
2416
|
+
/**
|
|
2417
|
+
* Gmt Modified
|
|
2418
|
+
* update time
|
|
2419
|
+
*/
|
|
2420
|
+
gmt_modified?: string | null;
|
|
2421
|
+
/**
|
|
2422
|
+
* Chunk Id
|
|
2423
|
+
* chunk id
|
|
2424
|
+
*/
|
|
2425
|
+
chunk_id?: string;
|
|
2426
|
+
/**
|
|
2427
|
+
* Space Id
|
|
2428
|
+
* space id
|
|
2429
|
+
*/
|
|
2430
|
+
space_id: string;
|
|
2431
|
+
/**
|
|
2432
|
+
* Tenant Id
|
|
2433
|
+
* tenant id
|
|
2434
|
+
*/
|
|
2435
|
+
tenant_id: string;
|
|
2436
|
+
/**
|
|
2437
|
+
* Embedding
|
|
2438
|
+
* chunk embedding
|
|
2439
|
+
*/
|
|
2440
|
+
embedding?: number[] | null;
|
|
2441
|
+
/**
|
|
2442
|
+
* Context
|
|
2443
|
+
* chunk content
|
|
2444
|
+
*/
|
|
2445
|
+
context: string;
|
|
2446
|
+
/**
|
|
2447
|
+
* Knowledge Id
|
|
2448
|
+
* file source info
|
|
2449
|
+
*/
|
|
2450
|
+
knowledge_id: string;
|
|
2451
|
+
/**
|
|
2452
|
+
* Enabled
|
|
2453
|
+
* is chunk enabled
|
|
2454
|
+
* @default true
|
|
2455
|
+
*/
|
|
2456
|
+
enabled?: boolean;
|
|
2457
|
+
/**
|
|
2458
|
+
* Embedding Model Name
|
|
2459
|
+
* name of the embedding model
|
|
2460
|
+
*/
|
|
2461
|
+
embedding_model_name: string;
|
|
2462
|
+
/**
|
|
2463
|
+
* Metadata
|
|
2464
|
+
* Arbitrary metadata associated with the content.
|
|
2465
|
+
*/
|
|
2466
|
+
metadata?: Record<string, any> | null;
|
|
2467
|
+
/**
|
|
2468
|
+
* Tags
|
|
2469
|
+
* Tags from knowledge.metadata._tags
|
|
2470
|
+
*/
|
|
2471
|
+
tags?: string[] | null;
|
|
2472
|
+
/**
|
|
2473
|
+
* F1
|
|
2474
|
+
* Field 1 from knowledge.metadata._f1
|
|
2475
|
+
*/
|
|
2476
|
+
f1?: string | null;
|
|
2477
|
+
/**
|
|
2478
|
+
* F2
|
|
2479
|
+
* Field 2 from knowledge.metadata._f2
|
|
2480
|
+
*/
|
|
2481
|
+
f2?: string | null;
|
|
2482
|
+
/**
|
|
2483
|
+
* F3
|
|
2484
|
+
* Field 3 from knowledge.metadata._f3
|
|
2485
|
+
*/
|
|
2486
|
+
f3?: string | null;
|
|
2487
|
+
/**
|
|
2488
|
+
* F4
|
|
2489
|
+
* Field 4 from knowledge.metadata._f4
|
|
2490
|
+
*/
|
|
2491
|
+
f4?: string | null;
|
|
2492
|
+
/**
|
|
2493
|
+
* F5
|
|
2494
|
+
* Field 5 from knowledge.metadata._f5
|
|
2495
|
+
*/
|
|
2496
|
+
f5?: string | null;
|
|
2497
|
+
/**
|
|
2498
|
+
* Similarity
|
|
2499
|
+
* The similarity of the chunk, ranging from 0.0 to 1.0.
|
|
2500
|
+
*/
|
|
2501
|
+
similarity: number;
|
|
2502
|
+
}
|
|
2503
|
+
/** RetrievalChunk */
|
|
2504
|
+
export interface IRetrievalChunkOutput {
|
|
2105
2505
|
/**
|
|
2106
2506
|
* Gmt Create
|
|
2107
2507
|
* creation time
|
|
2108
2508
|
*/
|
|
2109
|
-
gmt_create?: string;
|
|
2509
|
+
gmt_create?: string | null;
|
|
2110
2510
|
/**
|
|
2111
2511
|
* Gmt Modified
|
|
2112
2512
|
* update time
|
|
2113
2513
|
*/
|
|
2114
|
-
gmt_modified?: string;
|
|
2514
|
+
gmt_modified?: string | null;
|
|
2115
2515
|
/**
|
|
2116
2516
|
* Chunk Id
|
|
2117
2517
|
* chunk id
|
|
@@ -2298,17 +2698,77 @@ export interface ISpaceCreate {
|
|
|
2298
2698
|
* total_size Optional[int]: size of the all kowledge in this space.
|
|
2299
2699
|
* knowledge_size Optional[int]: count of the knowledge in this space.
|
|
2300
2700
|
*/
|
|
2301
|
-
export interface
|
|
2701
|
+
export interface ISpaceResponseInput {
|
|
2302
2702
|
/**
|
|
2303
2703
|
* Gmt Create
|
|
2304
2704
|
* creation time
|
|
2305
2705
|
*/
|
|
2306
|
-
gmt_create?: string;
|
|
2706
|
+
gmt_create?: string | null;
|
|
2307
2707
|
/**
|
|
2308
2708
|
* Gmt Modified
|
|
2309
2709
|
* update time
|
|
2310
2710
|
*/
|
|
2311
|
-
gmt_modified?: string;
|
|
2711
|
+
gmt_modified?: string | null;
|
|
2712
|
+
/**
|
|
2713
|
+
* Space Name
|
|
2714
|
+
* name of the space resource
|
|
2715
|
+
* @maxLength 64
|
|
2716
|
+
*/
|
|
2717
|
+
space_name: string;
|
|
2718
|
+
/**
|
|
2719
|
+
* Space Id
|
|
2720
|
+
* space id
|
|
2721
|
+
*/
|
|
2722
|
+
space_id?: string;
|
|
2723
|
+
/**
|
|
2724
|
+
* Description
|
|
2725
|
+
* descrition of the space
|
|
2726
|
+
* @maxLength 255
|
|
2727
|
+
*/
|
|
2728
|
+
description: string;
|
|
2729
|
+
/**
|
|
2730
|
+
* Metadata
|
|
2731
|
+
* metadata of the space resource
|
|
2732
|
+
* @default {}
|
|
2733
|
+
*/
|
|
2734
|
+
metadata?: Record<string, any>;
|
|
2735
|
+
/**
|
|
2736
|
+
* Tenant Id
|
|
2737
|
+
* tenant id
|
|
2738
|
+
*/
|
|
2739
|
+
tenant_id: string;
|
|
2740
|
+
/**
|
|
2741
|
+
* Storage Size
|
|
2742
|
+
* size of the all kowledge in this space
|
|
2743
|
+
* @default 0
|
|
2744
|
+
*/
|
|
2745
|
+
storage_size?: number | null;
|
|
2746
|
+
/**
|
|
2747
|
+
* Knowledge Count
|
|
2748
|
+
* count of the knowledge in this space
|
|
2749
|
+
* @default 0
|
|
2750
|
+
*/
|
|
2751
|
+
knowledge_count?: number | null;
|
|
2752
|
+
}
|
|
2753
|
+
/**
|
|
2754
|
+
* SpaceResponse
|
|
2755
|
+
* SpaceResponse model class that extends Space.
|
|
2756
|
+
* Attributes:
|
|
2757
|
+
* (str): Space ID.
|
|
2758
|
+
* total_size Optional[int]: size of the all kowledge in this space.
|
|
2759
|
+
* knowledge_size Optional[int]: count of the knowledge in this space.
|
|
2760
|
+
*/
|
|
2761
|
+
export interface ISpaceResponseOutput {
|
|
2762
|
+
/**
|
|
2763
|
+
* Gmt Create
|
|
2764
|
+
* creation time
|
|
2765
|
+
*/
|
|
2766
|
+
gmt_create?: string | null;
|
|
2767
|
+
/**
|
|
2768
|
+
* Gmt Modified
|
|
2769
|
+
* update time
|
|
2770
|
+
*/
|
|
2771
|
+
gmt_modified?: string | null;
|
|
2312
2772
|
/**
|
|
2313
2773
|
* Space Name
|
|
2314
2774
|
* name of the space resource
|
|
@@ -2351,9 +2811,57 @@ export interface ISpaceResponse {
|
|
|
2351
2811
|
knowledge_count?: number | null;
|
|
2352
2812
|
}
|
|
2353
2813
|
/** StatusStatisticsPageResponse[Task] */
|
|
2354
|
-
export interface
|
|
2814
|
+
export interface IStatusStatisticsPageResponseTaskInput {
|
|
2355
2815
|
/** Items */
|
|
2356
|
-
items:
|
|
2816
|
+
items: ITaskInput[];
|
|
2817
|
+
/** Total */
|
|
2818
|
+
total: number;
|
|
2819
|
+
/** Page */
|
|
2820
|
+
page: number;
|
|
2821
|
+
/** Page Size */
|
|
2822
|
+
page_size: number;
|
|
2823
|
+
/** Total Pages */
|
|
2824
|
+
total_pages: number;
|
|
2825
|
+
/**
|
|
2826
|
+
* Success
|
|
2827
|
+
* @default 0
|
|
2828
|
+
*/
|
|
2829
|
+
success?: number;
|
|
2830
|
+
/**
|
|
2831
|
+
* Failed
|
|
2832
|
+
* @default 0
|
|
2833
|
+
*/
|
|
2834
|
+
failed?: number;
|
|
2835
|
+
/**
|
|
2836
|
+
* Cancelled
|
|
2837
|
+
* @default 0
|
|
2838
|
+
*/
|
|
2839
|
+
cancelled?: number;
|
|
2840
|
+
/**
|
|
2841
|
+
* Pending
|
|
2842
|
+
* @default 0
|
|
2843
|
+
*/
|
|
2844
|
+
pending?: number;
|
|
2845
|
+
/**
|
|
2846
|
+
* Running
|
|
2847
|
+
* @default 0
|
|
2848
|
+
*/
|
|
2849
|
+
running?: number;
|
|
2850
|
+
/**
|
|
2851
|
+
* Pending Retry
|
|
2852
|
+
* @default 0
|
|
2853
|
+
*/
|
|
2854
|
+
pending_retry?: number;
|
|
2855
|
+
/**
|
|
2856
|
+
* Deleted
|
|
2857
|
+
* @default 0
|
|
2858
|
+
*/
|
|
2859
|
+
deleted?: number;
|
|
2860
|
+
}
|
|
2861
|
+
/** StatusStatisticsPageResponse[Task] */
|
|
2862
|
+
export interface IStatusStatisticsPageResponseTaskOutput {
|
|
2863
|
+
/** Items */
|
|
2864
|
+
items: ITaskOutput[];
|
|
2357
2865
|
/** Total */
|
|
2358
2866
|
total: number;
|
|
2359
2867
|
/** Page */
|
|
@@ -2399,17 +2907,57 @@ export interface IStatusStatisticsPageResponseTask {
|
|
|
2399
2907
|
deleted?: number;
|
|
2400
2908
|
}
|
|
2401
2909
|
/** Tag */
|
|
2402
|
-
export interface
|
|
2910
|
+
export interface ITagInput {
|
|
2403
2911
|
/**
|
|
2404
2912
|
* Gmt Create
|
|
2405
2913
|
* creation time
|
|
2406
2914
|
*/
|
|
2407
|
-
gmt_create?: string;
|
|
2915
|
+
gmt_create?: string | null;
|
|
2408
2916
|
/**
|
|
2409
2917
|
* Gmt Modified
|
|
2410
2918
|
* update time
|
|
2411
2919
|
*/
|
|
2412
|
-
gmt_modified?: string;
|
|
2920
|
+
gmt_modified?: string | null;
|
|
2921
|
+
/**
|
|
2922
|
+
* Name
|
|
2923
|
+
* 标签名称(租户内唯一)
|
|
2924
|
+
* @maxLength 64
|
|
2925
|
+
*/
|
|
2926
|
+
name: string;
|
|
2927
|
+
/**
|
|
2928
|
+
* Description
|
|
2929
|
+
* 标签描述
|
|
2930
|
+
*/
|
|
2931
|
+
description?: string | null;
|
|
2932
|
+
/**
|
|
2933
|
+
* 标签作用对象类型(如 "space")
|
|
2934
|
+
* @default "space"
|
|
2935
|
+
*/
|
|
2936
|
+
object_type?: ITagObjectType;
|
|
2937
|
+
/**
|
|
2938
|
+
* Tag Id
|
|
2939
|
+
* 标签ID(UUID字符串)
|
|
2940
|
+
*/
|
|
2941
|
+
tag_id?: string;
|
|
2942
|
+
/**
|
|
2943
|
+
* Tenant Id
|
|
2944
|
+
* 所属租户ID
|
|
2945
|
+
* @maxLength 64
|
|
2946
|
+
*/
|
|
2947
|
+
tenant_id: string;
|
|
2948
|
+
}
|
|
2949
|
+
/** Tag */
|
|
2950
|
+
export interface ITagOutput {
|
|
2951
|
+
/**
|
|
2952
|
+
* Gmt Create
|
|
2953
|
+
* creation time
|
|
2954
|
+
*/
|
|
2955
|
+
gmt_create?: string | null;
|
|
2956
|
+
/**
|
|
2957
|
+
* Gmt Modified
|
|
2958
|
+
* update time
|
|
2959
|
+
*/
|
|
2960
|
+
gmt_modified?: string | null;
|
|
2413
2961
|
/**
|
|
2414
2962
|
* Name
|
|
2415
2963
|
* 标签名称(租户内唯一)
|
|
@@ -2476,17 +3024,64 @@ export interface ITagUpdate {
|
|
|
2476
3024
|
description?: string | null;
|
|
2477
3025
|
}
|
|
2478
3026
|
/** Tagging */
|
|
2479
|
-
export interface
|
|
3027
|
+
export interface ITaggingInput {
|
|
2480
3028
|
/**
|
|
2481
3029
|
* Gmt Create
|
|
2482
3030
|
* creation time
|
|
2483
3031
|
*/
|
|
2484
|
-
gmt_create?: string;
|
|
3032
|
+
gmt_create?: string | null;
|
|
2485
3033
|
/**
|
|
2486
3034
|
* Gmt Modified
|
|
2487
3035
|
* update time
|
|
2488
3036
|
*/
|
|
2489
|
-
gmt_modified?: string;
|
|
3037
|
+
gmt_modified?: string | null;
|
|
3038
|
+
/**
|
|
3039
|
+
* Tagging Id
|
|
3040
|
+
* 标签绑定ID(UUID字符串)
|
|
3041
|
+
*/
|
|
3042
|
+
tagging_id?: string;
|
|
3043
|
+
/**
|
|
3044
|
+
* Tenant Id
|
|
3045
|
+
* 所属租户ID
|
|
3046
|
+
* @maxLength 64
|
|
3047
|
+
*/
|
|
3048
|
+
tenant_id: string;
|
|
3049
|
+
/**
|
|
3050
|
+
* Tag Id
|
|
3051
|
+
* 标签ID(FK -> tag.tag_id,UUID字符串)
|
|
3052
|
+
*/
|
|
3053
|
+
tag_id: string;
|
|
3054
|
+
/**
|
|
3055
|
+
* Tag Name
|
|
3056
|
+
* 标签名称(在 object_type 内唯一)
|
|
3057
|
+
* @maxLength 64
|
|
3058
|
+
*/
|
|
3059
|
+
tag_name: string;
|
|
3060
|
+
/**
|
|
3061
|
+
* Object Id
|
|
3062
|
+
* 被打标签对象ID(如 space_id)
|
|
3063
|
+
* @maxLength 255
|
|
3064
|
+
*/
|
|
3065
|
+
object_id: string;
|
|
3066
|
+
/**
|
|
3067
|
+
* 对象类型,当前仅支持 "space"
|
|
3068
|
+
* @maxLength 32
|
|
3069
|
+
* @default "space"
|
|
3070
|
+
*/
|
|
3071
|
+
object_type?: ITagObjectType;
|
|
3072
|
+
}
|
|
3073
|
+
/** Tagging */
|
|
3074
|
+
export interface ITaggingOutput {
|
|
3075
|
+
/**
|
|
3076
|
+
* Gmt Create
|
|
3077
|
+
* creation time
|
|
3078
|
+
*/
|
|
3079
|
+
gmt_create?: string | null;
|
|
3080
|
+
/**
|
|
3081
|
+
* Gmt Modified
|
|
3082
|
+
* update time
|
|
3083
|
+
*/
|
|
3084
|
+
gmt_modified?: string | null;
|
|
2490
3085
|
/**
|
|
2491
3086
|
* Tagging Id
|
|
2492
3087
|
* 标签绑定ID(UUID字符串)
|
|
@@ -2543,17 +3138,76 @@ export interface ITaggingCreate {
|
|
|
2543
3138
|
object_id: string;
|
|
2544
3139
|
}
|
|
2545
3140
|
/** Task */
|
|
2546
|
-
export interface
|
|
3141
|
+
export interface ITaskInput {
|
|
3142
|
+
/**
|
|
3143
|
+
* Gmt Create
|
|
3144
|
+
* creation time
|
|
3145
|
+
*/
|
|
3146
|
+
gmt_create?: string | null;
|
|
3147
|
+
/**
|
|
3148
|
+
* Gmt Modified
|
|
3149
|
+
* update time
|
|
3150
|
+
*/
|
|
3151
|
+
gmt_modified?: string | null;
|
|
3152
|
+
/**
|
|
3153
|
+
* Task Id
|
|
3154
|
+
* Unique identifier for the task
|
|
3155
|
+
*/
|
|
3156
|
+
task_id?: string;
|
|
3157
|
+
/**
|
|
3158
|
+
* Current status of the task
|
|
3159
|
+
* @default "pending"
|
|
3160
|
+
*/
|
|
3161
|
+
status?: ITaskStatus;
|
|
3162
|
+
/**
|
|
3163
|
+
* Knowledge Id
|
|
3164
|
+
* Identifier for the source file
|
|
3165
|
+
*/
|
|
3166
|
+
knowledge_id: string;
|
|
3167
|
+
/**
|
|
3168
|
+
* Metadata
|
|
3169
|
+
* Metadata for the task
|
|
3170
|
+
*/
|
|
3171
|
+
metadata?: Record<string, any> | null;
|
|
3172
|
+
/**
|
|
3173
|
+
* Error Message
|
|
3174
|
+
* Error message (only present if the task failed)
|
|
3175
|
+
*/
|
|
3176
|
+
error_message?: string | null;
|
|
3177
|
+
/**
|
|
3178
|
+
* Space Id
|
|
3179
|
+
* Identifier for the space
|
|
3180
|
+
*/
|
|
3181
|
+
space_id: string;
|
|
3182
|
+
/**
|
|
3183
|
+
* User Id
|
|
3184
|
+
* Identifier for the user
|
|
3185
|
+
*/
|
|
3186
|
+
user_id?: string | null;
|
|
3187
|
+
/**
|
|
3188
|
+
* Tenant Id
|
|
3189
|
+
* Identifier for the tenant
|
|
3190
|
+
*/
|
|
3191
|
+
tenant_id: string;
|
|
3192
|
+
/**
|
|
3193
|
+
* Task Type
|
|
3194
|
+
* Type of the task
|
|
3195
|
+
* @default "knowledge_chunk"
|
|
3196
|
+
*/
|
|
3197
|
+
task_type?: string;
|
|
3198
|
+
}
|
|
3199
|
+
/** Task */
|
|
3200
|
+
export interface ITaskOutput {
|
|
2547
3201
|
/**
|
|
2548
3202
|
* Gmt Create
|
|
2549
3203
|
* creation time
|
|
2550
3204
|
*/
|
|
2551
|
-
gmt_create?: string;
|
|
3205
|
+
gmt_create?: string | null;
|
|
2552
3206
|
/**
|
|
2553
3207
|
* Gmt Modified
|
|
2554
3208
|
* update time
|
|
2555
3209
|
*/
|
|
2556
|
-
gmt_modified?: string;
|
|
3210
|
+
gmt_modified?: string | null;
|
|
2557
3211
|
/**
|
|
2558
3212
|
* Task Id
|
|
2559
3213
|
* Unique identifier for the task
|
|
@@ -2610,17 +3264,63 @@ export interface ITaskRestartRequest {
|
|
|
2610
3264
|
task_id_list: string[];
|
|
2611
3265
|
}
|
|
2612
3266
|
/** Tenant */
|
|
2613
|
-
export interface
|
|
3267
|
+
export interface ITenantInput {
|
|
2614
3268
|
/**
|
|
2615
3269
|
* Gmt Create
|
|
2616
3270
|
* creation time
|
|
2617
3271
|
*/
|
|
2618
|
-
gmt_create?: string;
|
|
3272
|
+
gmt_create?: string | null;
|
|
2619
3273
|
/**
|
|
2620
3274
|
* Gmt Modified
|
|
2621
3275
|
* update time
|
|
2622
3276
|
*/
|
|
2623
|
-
gmt_modified?: string;
|
|
3277
|
+
gmt_modified?: string | null;
|
|
3278
|
+
/**
|
|
3279
|
+
* Tenant Id
|
|
3280
|
+
* tenant id
|
|
3281
|
+
*/
|
|
3282
|
+
tenant_id?: string;
|
|
3283
|
+
/**
|
|
3284
|
+
* Tenant Name
|
|
3285
|
+
* tenant name
|
|
3286
|
+
* @default ""
|
|
3287
|
+
*/
|
|
3288
|
+
tenant_name?: string;
|
|
3289
|
+
/**
|
|
3290
|
+
* Email
|
|
3291
|
+
* email
|
|
3292
|
+
*/
|
|
3293
|
+
email: string;
|
|
3294
|
+
/**
|
|
3295
|
+
* Secret Key
|
|
3296
|
+
* secret_key
|
|
3297
|
+
* @default ""
|
|
3298
|
+
*/
|
|
3299
|
+
secret_key?: string;
|
|
3300
|
+
/**
|
|
3301
|
+
* Is Active
|
|
3302
|
+
* is active
|
|
3303
|
+
* @default true
|
|
3304
|
+
*/
|
|
3305
|
+
is_active?: boolean;
|
|
3306
|
+
/**
|
|
3307
|
+
* Metadata
|
|
3308
|
+
* Metadata for the tenant
|
|
3309
|
+
*/
|
|
3310
|
+
metadata?: Record<string, any> | null;
|
|
3311
|
+
}
|
|
3312
|
+
/** Tenant */
|
|
3313
|
+
export interface ITenantOutput {
|
|
3314
|
+
/**
|
|
3315
|
+
* Gmt Create
|
|
3316
|
+
* creation time
|
|
3317
|
+
*/
|
|
3318
|
+
gmt_create?: string | null;
|
|
3319
|
+
/**
|
|
3320
|
+
* Gmt Modified
|
|
3321
|
+
* update time
|
|
3322
|
+
*/
|
|
3323
|
+
gmt_modified?: string | null;
|
|
2624
3324
|
/**
|
|
2625
3325
|
* Tenant Id
|
|
2626
3326
|
* tenant id
|
|
@@ -3107,7 +3807,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3107
3807
|
};
|
|
3108
3808
|
task: {
|
|
3109
3809
|
/**
|
|
3110
|
-
* @description 重启任务 使用DDD架构的
|
|
3810
|
+
* @description 重启任务 使用DDD架构的TaskCoordinationService进行任务重启并执行。 重试规则: 1. FAILED 或 CANCELED 状态的任务可以重试 2. 创建时间超过30分钟且未成功的任务可以重试
|
|
3111
3811
|
*
|
|
3112
3812
|
* @tags task
|
|
3113
3813
|
* @name RestartTask
|
package/dist/api.js
CHANGED
|
@@ -423,7 +423,7 @@ class Api extends HttpClient {
|
|
|
423
423
|
};
|
|
424
424
|
this.task = {
|
|
425
425
|
/**
|
|
426
|
-
* @description 重启任务 使用DDD架构的
|
|
426
|
+
* @description 重启任务 使用DDD架构的TaskCoordinationService进行任务重启并执行。 重试规则: 1. FAILED 或 CANCELED 状态的任务可以重试 2. 创建时间超过30分钟且未成功的任务可以重试
|
|
427
427
|
*
|
|
428
428
|
* @tags task
|
|
429
429
|
* @name RestartTask
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@petercatai/whisker-client",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Generated API client (
|
|
3
|
+
"version": "0.0.1761293285",
|
|
4
|
+
"description": "Generated API client (Production)",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"types": "dist/api.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
},
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public",
|
|
16
|
-
"tag": "
|
|
16
|
+
"tag": "latest"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@types/node": "^24.
|
|
19
|
+
"@types/node": "^24.9.1",
|
|
20
20
|
"axios": "^1.12.2",
|
|
21
21
|
"typescript": "^5.9.3"
|
|
22
22
|
}
|