@petercatai/whisker-client 0.1.202508110245 → 0.1.202508250845-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.
- package/dist/api.d.ts +592 -10
- package/dist/api.js +130 -1
- package/package.json +4 -4
package/dist/api.d.ts
CHANGED
|
@@ -9,6 +9,14 @@ export declare enum ITaskStatus {
|
|
|
9
9
|
PendingRetry = "pending_retry",
|
|
10
10
|
Deleted = "deleted"
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* TagObjectType
|
|
14
|
+
* 可打标签的对象类型。
|
|
15
|
+
*/
|
|
16
|
+
export declare enum ITagObjectType {
|
|
17
|
+
Space = "space",
|
|
18
|
+
Knowledge = "knowledge"
|
|
19
|
+
}
|
|
12
20
|
/** Resource */
|
|
13
21
|
export declare enum IResource {
|
|
14
22
|
Retrieval = "retrieval",
|
|
@@ -20,7 +28,10 @@ export declare enum IResource {
|
|
|
20
28
|
Task = "task",
|
|
21
29
|
Rule = "rule",
|
|
22
30
|
Public = "public",
|
|
23
|
-
Webhook = "webhook"
|
|
31
|
+
Webhook = "webhook",
|
|
32
|
+
Tag = "tag",
|
|
33
|
+
Tagging = "tagging",
|
|
34
|
+
Artifact = "artifact"
|
|
24
35
|
}
|
|
25
36
|
/** Operator */
|
|
26
37
|
export declare enum IOperator {
|
|
@@ -251,6 +262,100 @@ export interface IActiveStatusUpdate {
|
|
|
251
262
|
/** Status */
|
|
252
263
|
status: boolean;
|
|
253
264
|
}
|
|
265
|
+
/**
|
|
266
|
+
* ArtifactIndex
|
|
267
|
+
* whisker_artifact_index 模型
|
|
268
|
+
*/
|
|
269
|
+
export interface IArtifactIndex {
|
|
270
|
+
/**
|
|
271
|
+
* Gmt Create
|
|
272
|
+
* creation time
|
|
273
|
+
*/
|
|
274
|
+
gmt_create?: string;
|
|
275
|
+
/**
|
|
276
|
+
* Gmt Modified
|
|
277
|
+
* update time
|
|
278
|
+
*/
|
|
279
|
+
gmt_modified?: string;
|
|
280
|
+
/**
|
|
281
|
+
* Ecosystem
|
|
282
|
+
* 制品来源生态系统(pypi / npm / maven / go / php)
|
|
283
|
+
* @maxLength 32
|
|
284
|
+
*/
|
|
285
|
+
ecosystem: string;
|
|
286
|
+
/**
|
|
287
|
+
* Name
|
|
288
|
+
* 制品名(构建产物名,如 requests / @company/sdk)
|
|
289
|
+
* @maxLength 255
|
|
290
|
+
*/
|
|
291
|
+
name: string;
|
|
292
|
+
/**
|
|
293
|
+
* Version
|
|
294
|
+
* 版本号(可为空)
|
|
295
|
+
*/
|
|
296
|
+
version?: string | null;
|
|
297
|
+
/**
|
|
298
|
+
* Space Id
|
|
299
|
+
* 关联的 whisker_space.space_id
|
|
300
|
+
* @maxLength 255
|
|
301
|
+
* @pattern ^[A-Za-z0-9._@/-]{1,255}$
|
|
302
|
+
*/
|
|
303
|
+
space_id: string;
|
|
304
|
+
/**
|
|
305
|
+
* Extra
|
|
306
|
+
* 额外元数据信息,扩展用,如构建参数、标签、扫描信息等
|
|
307
|
+
* @default {}
|
|
308
|
+
*/
|
|
309
|
+
extra?: Record<string, any>;
|
|
310
|
+
/**
|
|
311
|
+
* Artifact Id
|
|
312
|
+
* 制品索引表主键(UUID字符串)
|
|
313
|
+
*/
|
|
314
|
+
artifact_id?: string;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* ArtifactIndexCreate
|
|
318
|
+
* 创建 whisker_artifact_index 条目的入参模型
|
|
319
|
+
*/
|
|
320
|
+
export interface IArtifactIndexCreate {
|
|
321
|
+
/**
|
|
322
|
+
* Ecosystem
|
|
323
|
+
* 制品来源生态系统(pypi / npm / maven / go / php)
|
|
324
|
+
* @maxLength 32
|
|
325
|
+
*/
|
|
326
|
+
ecosystem: string;
|
|
327
|
+
/**
|
|
328
|
+
* Name
|
|
329
|
+
* 制品名(构建产物名,如 requests / @company/sdk)
|
|
330
|
+
* @maxLength 255
|
|
331
|
+
*/
|
|
332
|
+
name: string;
|
|
333
|
+
/**
|
|
334
|
+
* Version
|
|
335
|
+
* 版本号(可为空)
|
|
336
|
+
*/
|
|
337
|
+
version?: string | null;
|
|
338
|
+
/**
|
|
339
|
+
* Space Id
|
|
340
|
+
* 关联的 whisker_space.space_id
|
|
341
|
+
* @maxLength 255
|
|
342
|
+
* @pattern ^[A-Za-z0-9._@/-]{1,255}$
|
|
343
|
+
*/
|
|
344
|
+
space_id: string;
|
|
345
|
+
/**
|
|
346
|
+
* Extra
|
|
347
|
+
* 额外元数据信息,扩展用,如构建参数、标签、扫描信息等
|
|
348
|
+
* @default {}
|
|
349
|
+
*/
|
|
350
|
+
extra?: Record<string, any>;
|
|
351
|
+
}
|
|
352
|
+
/** ArtifactSpaceUpdate */
|
|
353
|
+
export interface IArtifactSpaceUpdate {
|
|
354
|
+
/** Artifact Id */
|
|
355
|
+
artifact_id: string;
|
|
356
|
+
/** New Space Id */
|
|
357
|
+
new_space_id: string;
|
|
358
|
+
}
|
|
254
359
|
/** Audio */
|
|
255
360
|
export interface IAudio {
|
|
256
361
|
/** Id */
|
|
@@ -795,10 +900,10 @@ export interface IImageCreate {
|
|
|
795
900
|
metadata?: Record<string, any>;
|
|
796
901
|
/**
|
|
797
902
|
* Source Type
|
|
798
|
-
* source type
|
|
903
|
+
* image source type, if the source is image's description, the source type is text like
|
|
799
904
|
* @default "cloud_storage_image"
|
|
800
905
|
*/
|
|
801
|
-
source_type?: "cloud_storage_image";
|
|
906
|
+
source_type?: "cloud_storage_image" | "cloud_storage_text" | "user_input_text";
|
|
802
907
|
/**
|
|
803
908
|
* Embedding Model Name
|
|
804
909
|
* name of the embedding model. you can set any other model if target embedding service registered
|
|
@@ -807,12 +912,12 @@ export interface IImageCreate {
|
|
|
807
912
|
embedding_model_name?: IEmbeddingModelEnum | string;
|
|
808
913
|
/**
|
|
809
914
|
* File Sha
|
|
810
|
-
* SHA of the file
|
|
915
|
+
* SHA of the file, if source_type is cloud_storage_text, this field is the sha of the text file
|
|
811
916
|
*/
|
|
812
917
|
file_sha: string;
|
|
813
918
|
/**
|
|
814
919
|
* File Size
|
|
815
|
-
* Byte size of the file
|
|
920
|
+
* Byte size of the file. if source_type is cloud_storage_text, this field is the size of the text file
|
|
816
921
|
*/
|
|
817
922
|
file_size: number;
|
|
818
923
|
/**
|
|
@@ -824,8 +929,12 @@ export interface IImageCreate {
|
|
|
824
929
|
* Source Config
|
|
825
930
|
* source config of the knowledge
|
|
826
931
|
*/
|
|
827
|
-
source_config: IOpenUrlSourceConfig | IOpenIdSourceConfig | IS3SourceConfig;
|
|
828
|
-
|
|
932
|
+
source_config: IOpenUrlSourceConfig | IOpenIdSourceConfig | IS3SourceConfig | ITextSourceConfig;
|
|
933
|
+
/**
|
|
934
|
+
* Split Config
|
|
935
|
+
* split config of the knowledge
|
|
936
|
+
*/
|
|
937
|
+
split_config: IImageSplitConfig | ITextSplitConfig;
|
|
829
938
|
}
|
|
830
939
|
/** ImageSplitConfig */
|
|
831
940
|
export interface IImageSplitConfig {
|
|
@@ -1222,6 +1331,11 @@ export interface IOpenIdSourceConfig {
|
|
|
1222
1331
|
* cloud storage file id, used for afts
|
|
1223
1332
|
*/
|
|
1224
1333
|
id: string;
|
|
1334
|
+
/**
|
|
1335
|
+
* Auth Info
|
|
1336
|
+
* authentication information
|
|
1337
|
+
*/
|
|
1338
|
+
auth_info?: string | Record<string, any> | null;
|
|
1225
1339
|
}
|
|
1226
1340
|
/** OpenUrlSourceConfig */
|
|
1227
1341
|
export interface IOpenUrlSourceConfig {
|
|
@@ -1230,6 +1344,11 @@ export interface IOpenUrlSourceConfig {
|
|
|
1230
1344
|
* cloud storage url, such as oss, cos, etc.
|
|
1231
1345
|
*/
|
|
1232
1346
|
url: string;
|
|
1347
|
+
/**
|
|
1348
|
+
* Auth Info
|
|
1349
|
+
* authentication information
|
|
1350
|
+
*/
|
|
1351
|
+
auth_info?: string | Record<string, any> | null;
|
|
1233
1352
|
}
|
|
1234
1353
|
/** PDFCreate */
|
|
1235
1354
|
export interface IPDFCreate {
|
|
@@ -1360,6 +1479,42 @@ export interface IPageQueryParamsAPIKey {
|
|
|
1360
1479
|
*/
|
|
1361
1480
|
page_size?: number;
|
|
1362
1481
|
}
|
|
1482
|
+
/** PageQueryParams[ArtifactIndex] */
|
|
1483
|
+
export interface IPageQueryParamsArtifactIndex {
|
|
1484
|
+
/**
|
|
1485
|
+
* Order By
|
|
1486
|
+
* order by field
|
|
1487
|
+
*/
|
|
1488
|
+
order_by?: string | null;
|
|
1489
|
+
/**
|
|
1490
|
+
* Order Direction
|
|
1491
|
+
* asc or desc
|
|
1492
|
+
* @default "asc"
|
|
1493
|
+
*/
|
|
1494
|
+
order_direction?: string | null;
|
|
1495
|
+
/**
|
|
1496
|
+
* Eq Conditions
|
|
1497
|
+
* list of equality conditions, each as a dict with key and value
|
|
1498
|
+
*/
|
|
1499
|
+
eq_conditions?: Record<string, any> | null;
|
|
1500
|
+
/** advanced filter with nested conditions */
|
|
1501
|
+
advanced_filter?: IFilterGroup | null;
|
|
1502
|
+
/**
|
|
1503
|
+
* Page
|
|
1504
|
+
* page number
|
|
1505
|
+
* @min 1
|
|
1506
|
+
* @default 1
|
|
1507
|
+
*/
|
|
1508
|
+
page?: number;
|
|
1509
|
+
/**
|
|
1510
|
+
* Page Size
|
|
1511
|
+
* page size
|
|
1512
|
+
* @min 1
|
|
1513
|
+
* @max 1000
|
|
1514
|
+
* @default 10
|
|
1515
|
+
*/
|
|
1516
|
+
page_size?: number;
|
|
1517
|
+
}
|
|
1363
1518
|
/** PageQueryParams[Chunk] */
|
|
1364
1519
|
export interface IPageQueryParamsChunk {
|
|
1365
1520
|
/**
|
|
@@ -1468,6 +1623,78 @@ export interface IPageQueryParamsSpace {
|
|
|
1468
1623
|
*/
|
|
1469
1624
|
page_size?: number;
|
|
1470
1625
|
}
|
|
1626
|
+
/** PageQueryParams[Tag] */
|
|
1627
|
+
export interface IPageQueryParamsTag {
|
|
1628
|
+
/**
|
|
1629
|
+
* Order By
|
|
1630
|
+
* order by field
|
|
1631
|
+
*/
|
|
1632
|
+
order_by?: string | null;
|
|
1633
|
+
/**
|
|
1634
|
+
* Order Direction
|
|
1635
|
+
* asc or desc
|
|
1636
|
+
* @default "asc"
|
|
1637
|
+
*/
|
|
1638
|
+
order_direction?: string | null;
|
|
1639
|
+
/**
|
|
1640
|
+
* Eq Conditions
|
|
1641
|
+
* list of equality conditions, each as a dict with key and value
|
|
1642
|
+
*/
|
|
1643
|
+
eq_conditions?: Record<string, any> | null;
|
|
1644
|
+
/** advanced filter with nested conditions */
|
|
1645
|
+
advanced_filter?: IFilterGroup | null;
|
|
1646
|
+
/**
|
|
1647
|
+
* Page
|
|
1648
|
+
* page number
|
|
1649
|
+
* @min 1
|
|
1650
|
+
* @default 1
|
|
1651
|
+
*/
|
|
1652
|
+
page?: number;
|
|
1653
|
+
/**
|
|
1654
|
+
* Page Size
|
|
1655
|
+
* page size
|
|
1656
|
+
* @min 1
|
|
1657
|
+
* @max 1000
|
|
1658
|
+
* @default 10
|
|
1659
|
+
*/
|
|
1660
|
+
page_size?: number;
|
|
1661
|
+
}
|
|
1662
|
+
/** PageQueryParams[Tagging] */
|
|
1663
|
+
export interface IPageQueryParamsTagging {
|
|
1664
|
+
/**
|
|
1665
|
+
* Order By
|
|
1666
|
+
* order by field
|
|
1667
|
+
*/
|
|
1668
|
+
order_by?: string | null;
|
|
1669
|
+
/**
|
|
1670
|
+
* Order Direction
|
|
1671
|
+
* asc or desc
|
|
1672
|
+
* @default "asc"
|
|
1673
|
+
*/
|
|
1674
|
+
order_direction?: string | null;
|
|
1675
|
+
/**
|
|
1676
|
+
* Eq Conditions
|
|
1677
|
+
* list of equality conditions, each as a dict with key and value
|
|
1678
|
+
*/
|
|
1679
|
+
eq_conditions?: Record<string, any> | null;
|
|
1680
|
+
/** advanced filter with nested conditions */
|
|
1681
|
+
advanced_filter?: IFilterGroup | null;
|
|
1682
|
+
/**
|
|
1683
|
+
* Page
|
|
1684
|
+
* page number
|
|
1685
|
+
* @min 1
|
|
1686
|
+
* @default 1
|
|
1687
|
+
*/
|
|
1688
|
+
page?: number;
|
|
1689
|
+
/**
|
|
1690
|
+
* Page Size
|
|
1691
|
+
* page size
|
|
1692
|
+
* @min 1
|
|
1693
|
+
* @max 1000
|
|
1694
|
+
* @default 10
|
|
1695
|
+
*/
|
|
1696
|
+
page_size?: number;
|
|
1697
|
+
}
|
|
1471
1698
|
/** PageQueryParams[Task] */
|
|
1472
1699
|
export interface IPageQueryParamsTask {
|
|
1473
1700
|
/**
|
|
@@ -1517,6 +1744,19 @@ export interface IPageResponseAPIKey {
|
|
|
1517
1744
|
/** Total Pages */
|
|
1518
1745
|
total_pages: number;
|
|
1519
1746
|
}
|
|
1747
|
+
/** PageResponse[ArtifactIndex] */
|
|
1748
|
+
export interface IPageResponseArtifactIndex {
|
|
1749
|
+
/** Items */
|
|
1750
|
+
items: IArtifactIndex[];
|
|
1751
|
+
/** Total */
|
|
1752
|
+
total: number;
|
|
1753
|
+
/** Page */
|
|
1754
|
+
page: number;
|
|
1755
|
+
/** Page Size */
|
|
1756
|
+
page_size: number;
|
|
1757
|
+
/** Total Pages */
|
|
1758
|
+
total_pages: number;
|
|
1759
|
+
}
|
|
1520
1760
|
/** PageResponse[Chunk] */
|
|
1521
1761
|
export interface IPageResponseChunk {
|
|
1522
1762
|
/** Items */
|
|
@@ -1556,6 +1796,32 @@ export interface IPageResponseSpaceResponse {
|
|
|
1556
1796
|
/** Total Pages */
|
|
1557
1797
|
total_pages: number;
|
|
1558
1798
|
}
|
|
1799
|
+
/** PageResponse[Tag] */
|
|
1800
|
+
export interface IPageResponseTag {
|
|
1801
|
+
/** Items */
|
|
1802
|
+
items: ITag[];
|
|
1803
|
+
/** Total */
|
|
1804
|
+
total: number;
|
|
1805
|
+
/** Page */
|
|
1806
|
+
page: number;
|
|
1807
|
+
/** Page Size */
|
|
1808
|
+
page_size: number;
|
|
1809
|
+
/** Total Pages */
|
|
1810
|
+
total_pages: number;
|
|
1811
|
+
}
|
|
1812
|
+
/** PageResponse[Tagging] */
|
|
1813
|
+
export interface IPageResponseTagging {
|
|
1814
|
+
/** Items */
|
|
1815
|
+
items: ITagging[];
|
|
1816
|
+
/** Total */
|
|
1817
|
+
total: number;
|
|
1818
|
+
/** Page */
|
|
1819
|
+
page: number;
|
|
1820
|
+
/** Page Size */
|
|
1821
|
+
page_size: number;
|
|
1822
|
+
/** Total Pages */
|
|
1823
|
+
total_pages: number;
|
|
1824
|
+
}
|
|
1559
1825
|
/** PageResponse[Tenant] */
|
|
1560
1826
|
export interface IPageResponseTenant {
|
|
1561
1827
|
/** Items */
|
|
@@ -1708,6 +1974,14 @@ export interface IResponseModelAPIKey {
|
|
|
1708
1974
|
/** Message */
|
|
1709
1975
|
message?: string | null;
|
|
1710
1976
|
}
|
|
1977
|
+
/** ResponseModel[ArtifactIndex] */
|
|
1978
|
+
export interface IResponseModelArtifactIndex {
|
|
1979
|
+
/** Success */
|
|
1980
|
+
success: boolean;
|
|
1981
|
+
data?: IArtifactIndex | null;
|
|
1982
|
+
/** Message */
|
|
1983
|
+
message?: string | null;
|
|
1984
|
+
}
|
|
1711
1985
|
/** ResponseModel[Chunk] */
|
|
1712
1986
|
export interface IResponseModelChunk {
|
|
1713
1987
|
/** Success */
|
|
@@ -1741,6 +2015,15 @@ export interface IResponseModelListAPIKey {
|
|
|
1741
2015
|
/** Message */
|
|
1742
2016
|
message?: string | null;
|
|
1743
2017
|
}
|
|
2018
|
+
/** ResponseModel[List[ArtifactIndex]] */
|
|
2019
|
+
export interface IResponseModelListArtifactIndex {
|
|
2020
|
+
/** Success */
|
|
2021
|
+
success: boolean;
|
|
2022
|
+
/** Data */
|
|
2023
|
+
data?: IArtifactIndex[] | null;
|
|
2024
|
+
/** Message */
|
|
2025
|
+
message?: string | null;
|
|
2026
|
+
}
|
|
1744
2027
|
/** ResponseModel[List[Knowledge]] */
|
|
1745
2028
|
export interface IResponseModelListKnowledge {
|
|
1746
2029
|
/** Success */
|
|
@@ -1759,6 +2042,24 @@ export interface IResponseModelListRetrievalChunk {
|
|
|
1759
2042
|
/** Message */
|
|
1760
2043
|
message?: string | null;
|
|
1761
2044
|
}
|
|
2045
|
+
/** ResponseModel[List[Tag]] */
|
|
2046
|
+
export interface IResponseModelListTag {
|
|
2047
|
+
/** Success */
|
|
2048
|
+
success: boolean;
|
|
2049
|
+
/** Data */
|
|
2050
|
+
data?: ITag[] | null;
|
|
2051
|
+
/** Message */
|
|
2052
|
+
message?: string | null;
|
|
2053
|
+
}
|
|
2054
|
+
/** ResponseModel[List[Tagging]] */
|
|
2055
|
+
export interface IResponseModelListTagging {
|
|
2056
|
+
/** Success */
|
|
2057
|
+
success: boolean;
|
|
2058
|
+
/** Data */
|
|
2059
|
+
data?: ITagging[] | null;
|
|
2060
|
+
/** Message */
|
|
2061
|
+
message?: string | null;
|
|
2062
|
+
}
|
|
1762
2063
|
/** ResponseModel[List[Task]] */
|
|
1763
2064
|
export interface IResponseModelListTask {
|
|
1764
2065
|
/** Success */
|
|
@@ -1794,6 +2095,14 @@ export interface IResponseModelPageResponseAPIKey {
|
|
|
1794
2095
|
/** Message */
|
|
1795
2096
|
message?: string | null;
|
|
1796
2097
|
}
|
|
2098
|
+
/** ResponseModel[PageResponse[ArtifactIndex]] */
|
|
2099
|
+
export interface IResponseModelPageResponseArtifactIndex {
|
|
2100
|
+
/** Success */
|
|
2101
|
+
success: boolean;
|
|
2102
|
+
data?: IPageResponseArtifactIndex | null;
|
|
2103
|
+
/** Message */
|
|
2104
|
+
message?: string | null;
|
|
2105
|
+
}
|
|
1797
2106
|
/** ResponseModel[PageResponse[Chunk]] */
|
|
1798
2107
|
export interface IResponseModelPageResponseChunk {
|
|
1799
2108
|
/** Success */
|
|
@@ -1818,6 +2127,22 @@ export interface IResponseModelPageResponseSpaceResponse {
|
|
|
1818
2127
|
/** Message */
|
|
1819
2128
|
message?: string | null;
|
|
1820
2129
|
}
|
|
2130
|
+
/** ResponseModel[PageResponse[Tag]] */
|
|
2131
|
+
export interface IResponseModelPageResponseTag {
|
|
2132
|
+
/** Success */
|
|
2133
|
+
success: boolean;
|
|
2134
|
+
data?: IPageResponseTag | null;
|
|
2135
|
+
/** Message */
|
|
2136
|
+
message?: string | null;
|
|
2137
|
+
}
|
|
2138
|
+
/** ResponseModel[PageResponse[Tagging]] */
|
|
2139
|
+
export interface IResponseModelPageResponseTagging {
|
|
2140
|
+
/** Success */
|
|
2141
|
+
success: boolean;
|
|
2142
|
+
data?: IPageResponseTagging | null;
|
|
2143
|
+
/** Message */
|
|
2144
|
+
message?: string | null;
|
|
2145
|
+
}
|
|
1821
2146
|
/** ResponseModel[PageResponse[Tenant]] */
|
|
1822
2147
|
export interface IResponseModelPageResponseTenant {
|
|
1823
2148
|
/** Success */
|
|
@@ -1842,6 +2167,14 @@ export interface IResponseModelStatusStatisticsPageResponseTask {
|
|
|
1842
2167
|
/** Message */
|
|
1843
2168
|
message?: string | null;
|
|
1844
2169
|
}
|
|
2170
|
+
/** ResponseModel[Tag] */
|
|
2171
|
+
export interface IResponseModelTag {
|
|
2172
|
+
/** Success */
|
|
2173
|
+
success: boolean;
|
|
2174
|
+
data?: ITag | null;
|
|
2175
|
+
/** Message */
|
|
2176
|
+
message?: string | null;
|
|
2177
|
+
}
|
|
1845
2178
|
/** ResponseModel[Task] */
|
|
1846
2179
|
export interface IResponseModelTask {
|
|
1847
2180
|
/** Success */
|
|
@@ -2128,7 +2461,7 @@ export interface ISpaceCreate {
|
|
|
2128
2461
|
space_name: string;
|
|
2129
2462
|
/**
|
|
2130
2463
|
* Space Id
|
|
2131
|
-
*
|
|
2464
|
+
* space id, e.g. petercat/bot-group
|
|
2132
2465
|
*/
|
|
2133
2466
|
space_id?: string | null;
|
|
2134
2467
|
/**
|
|
@@ -2252,6 +2585,135 @@ export interface IStatusStatisticsPageResponseTask {
|
|
|
2252
2585
|
*/
|
|
2253
2586
|
deleted?: number;
|
|
2254
2587
|
}
|
|
2588
|
+
/** Tag */
|
|
2589
|
+
export interface ITag {
|
|
2590
|
+
/**
|
|
2591
|
+
* Gmt Create
|
|
2592
|
+
* creation time
|
|
2593
|
+
*/
|
|
2594
|
+
gmt_create?: string;
|
|
2595
|
+
/**
|
|
2596
|
+
* Gmt Modified
|
|
2597
|
+
* update time
|
|
2598
|
+
*/
|
|
2599
|
+
gmt_modified?: string;
|
|
2600
|
+
/**
|
|
2601
|
+
* Name
|
|
2602
|
+
* 标签名称(租户内唯一)
|
|
2603
|
+
* @maxLength 64
|
|
2604
|
+
*/
|
|
2605
|
+
name: string;
|
|
2606
|
+
/**
|
|
2607
|
+
* Description
|
|
2608
|
+
* 标签描述
|
|
2609
|
+
*/
|
|
2610
|
+
description?: string | null;
|
|
2611
|
+
/**
|
|
2612
|
+
* 标签作用对象类型(如 "space")
|
|
2613
|
+
* @default "space"
|
|
2614
|
+
*/
|
|
2615
|
+
object_type?: ITagObjectType;
|
|
2616
|
+
/**
|
|
2617
|
+
* Tag Id
|
|
2618
|
+
* 标签ID(UUID字符串)
|
|
2619
|
+
*/
|
|
2620
|
+
tag_id?: string;
|
|
2621
|
+
/**
|
|
2622
|
+
* Tenant Id
|
|
2623
|
+
* 所属租户ID
|
|
2624
|
+
* @maxLength 64
|
|
2625
|
+
*/
|
|
2626
|
+
tenant_id: string;
|
|
2627
|
+
}
|
|
2628
|
+
/** TagCreate */
|
|
2629
|
+
export interface ITagCreate {
|
|
2630
|
+
/**
|
|
2631
|
+
* Name
|
|
2632
|
+
* 标签名称(租户内唯一)
|
|
2633
|
+
* @maxLength 64
|
|
2634
|
+
*/
|
|
2635
|
+
name: string;
|
|
2636
|
+
/**
|
|
2637
|
+
* Description
|
|
2638
|
+
* 标签描述
|
|
2639
|
+
*/
|
|
2640
|
+
description?: string | null;
|
|
2641
|
+
/**
|
|
2642
|
+
* 标签作用对象类型(如 "space")
|
|
2643
|
+
* @default "space"
|
|
2644
|
+
*/
|
|
2645
|
+
object_type?: ITagObjectType;
|
|
2646
|
+
}
|
|
2647
|
+
/** TagUpdate */
|
|
2648
|
+
export interface ITagUpdate {
|
|
2649
|
+
/** Tag Id */
|
|
2650
|
+
tag_id: string;
|
|
2651
|
+
/** Name */
|
|
2652
|
+
name?: string | null;
|
|
2653
|
+
/** Description */
|
|
2654
|
+
description?: string | null;
|
|
2655
|
+
}
|
|
2656
|
+
/** Tagging */
|
|
2657
|
+
export interface ITagging {
|
|
2658
|
+
/**
|
|
2659
|
+
* Gmt Create
|
|
2660
|
+
* creation time
|
|
2661
|
+
*/
|
|
2662
|
+
gmt_create?: string;
|
|
2663
|
+
/**
|
|
2664
|
+
* Gmt Modified
|
|
2665
|
+
* update time
|
|
2666
|
+
*/
|
|
2667
|
+
gmt_modified?: string;
|
|
2668
|
+
/**
|
|
2669
|
+
* Tagging Id
|
|
2670
|
+
* 标签绑定ID(UUID字符串)
|
|
2671
|
+
*/
|
|
2672
|
+
tagging_id?: string;
|
|
2673
|
+
/**
|
|
2674
|
+
* Tenant Id
|
|
2675
|
+
* 所属租户ID
|
|
2676
|
+
* @maxLength 64
|
|
2677
|
+
*/
|
|
2678
|
+
tenant_id: string;
|
|
2679
|
+
/**
|
|
2680
|
+
* Tag Id
|
|
2681
|
+
* 标签ID(FK -> tag.tag_id,UUID字符串)
|
|
2682
|
+
*/
|
|
2683
|
+
tag_id: string;
|
|
2684
|
+
/**
|
|
2685
|
+
* Object Id
|
|
2686
|
+
* 被打标签对象ID(如 space_id)
|
|
2687
|
+
* @maxLength 255
|
|
2688
|
+
*/
|
|
2689
|
+
object_id: string;
|
|
2690
|
+
/**
|
|
2691
|
+
* 对象类型,当前仅支持 "space"
|
|
2692
|
+
* @maxLength 32
|
|
2693
|
+
* @default "space"
|
|
2694
|
+
*/
|
|
2695
|
+
object_type?: ITagObjectType;
|
|
2696
|
+
}
|
|
2697
|
+
/** TaggingCreate */
|
|
2698
|
+
export interface ITaggingCreate {
|
|
2699
|
+
/**
|
|
2700
|
+
* Tag Name
|
|
2701
|
+
* 标签名称(在 object_type 内唯一)
|
|
2702
|
+
* @maxLength 64
|
|
2703
|
+
*/
|
|
2704
|
+
tag_name: string;
|
|
2705
|
+
/**
|
|
2706
|
+
* 对象类型,当前仅支持 "space"
|
|
2707
|
+
* @default "space"
|
|
2708
|
+
*/
|
|
2709
|
+
object_type?: ITagObjectType;
|
|
2710
|
+
/**
|
|
2711
|
+
* Object Id
|
|
2712
|
+
* 被打标签对象ID(如 space_id)
|
|
2713
|
+
* @maxLength 255
|
|
2714
|
+
*/
|
|
2715
|
+
object_id: string;
|
|
2716
|
+
}
|
|
2255
2717
|
/** Task */
|
|
2256
2718
|
export interface ITask {
|
|
2257
2719
|
/**
|
|
@@ -2575,8 +3037,11 @@ export interface IYuqueCreate {
|
|
|
2575
3037
|
* parent id of the knowledge
|
|
2576
3038
|
*/
|
|
2577
3039
|
parent_id?: string | null;
|
|
2578
|
-
/**
|
|
2579
|
-
|
|
3040
|
+
/**
|
|
3041
|
+
* Source Config
|
|
3042
|
+
* source config of the knowledge
|
|
3043
|
+
*/
|
|
3044
|
+
source_config: IYuqueSourceConfig | IOpenUrlSourceConfig | IOpenIdSourceConfig;
|
|
2580
3045
|
/**
|
|
2581
3046
|
* Split Config
|
|
2582
3047
|
* split config of the knowledge
|
|
@@ -3076,6 +3541,123 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3076
3541
|
* @request POST:/api/v1/webhook/{webhook_type}/{source}/{auth_info}/{knowledge_base_id}
|
|
3077
3542
|
*/
|
|
3078
3543
|
handleWebhookApiV1WebhookWebhookTypeSourceAuthInfoKnowledgeBaseIdPost: (webhookType: string, source: string, authInfo: string, knowledgeBaseId: string, data: Record<string, any>, params?: RequestParams) => Promise<HttpResponse<any, void | IHTTPValidationError>>;
|
|
3544
|
+
/**
|
|
3545
|
+
* No description
|
|
3546
|
+
*
|
|
3547
|
+
* @tags tagging
|
|
3548
|
+
* @name GetTaggingList
|
|
3549
|
+
* @summary Get Tagging List
|
|
3550
|
+
* @request POST:/api/v1/tagging/list
|
|
3551
|
+
*/
|
|
3552
|
+
getTaggingList: (data: IPageQueryParamsTagging, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseTagging, void | IHTTPValidationError>>;
|
|
3553
|
+
/**
|
|
3554
|
+
* No description
|
|
3555
|
+
*
|
|
3556
|
+
* @tags tagging
|
|
3557
|
+
* @name AddTaggingList
|
|
3558
|
+
* @summary Add Tagging List
|
|
3559
|
+
* @request POST:/api/v1/tagging/add_list
|
|
3560
|
+
*/
|
|
3561
|
+
addTaggingList: (data: ITaggingCreate[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListTagging, void | IHTTPValidationError>>;
|
|
3562
|
+
/**
|
|
3563
|
+
* No description
|
|
3564
|
+
*
|
|
3565
|
+
* @tags tagging
|
|
3566
|
+
* @name DeleteTaggingById
|
|
3567
|
+
* @summary Delete Tagging By Id
|
|
3568
|
+
* @request DELETE:/api/v1/tagging/{tagging_id}
|
|
3569
|
+
*/
|
|
3570
|
+
deleteTaggingById: (taggingId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3571
|
+
/**
|
|
3572
|
+
* @description 分页获取标签列表
|
|
3573
|
+
*
|
|
3574
|
+
* @tags tag
|
|
3575
|
+
* @name GetTagList
|
|
3576
|
+
* @summary Get Tag List
|
|
3577
|
+
* @request POST:/api/v1/tag/list
|
|
3578
|
+
*/
|
|
3579
|
+
getTagList: (data: IPageQueryParamsTag, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseTag, void | IHTTPValidationError>>;
|
|
3580
|
+
/**
|
|
3581
|
+
* @description 批量新增标签 注意:根据接口定义,DB 插件方法签名为 add_tag_list(tag_list: List[TagCreate]), 因此此处直接传入 body。若 TagCreate 需要携带 tenant_id,应由模型或插件内部处理。
|
|
3582
|
+
*
|
|
3583
|
+
* @tags tag
|
|
3584
|
+
* @name AddTagList
|
|
3585
|
+
* @summary Add Tag List
|
|
3586
|
+
* @request POST:/api/v1/tag/add_list
|
|
3587
|
+
*/
|
|
3588
|
+
addTagList: (data: ITagCreate[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListTag, void | IHTTPValidationError>>;
|
|
3589
|
+
/**
|
|
3590
|
+
* @description 获取标签详情
|
|
3591
|
+
*
|
|
3592
|
+
* @tags tag
|
|
3593
|
+
* @name GetTagById
|
|
3594
|
+
* @summary Get Tag By Id
|
|
3595
|
+
* @request GET:/api/v1/tag/{tag_id}
|
|
3596
|
+
*/
|
|
3597
|
+
getTagById: (tagId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelTag, void | IHTTPValidationError>>;
|
|
3598
|
+
/**
|
|
3599
|
+
* No description
|
|
3600
|
+
*
|
|
3601
|
+
* @tags tag
|
|
3602
|
+
* @name DeleteTagById
|
|
3603
|
+
* @summary Delete Tag By Id
|
|
3604
|
+
* @request DELETE:/api/v1/tag/{tag_id}
|
|
3605
|
+
*/
|
|
3606
|
+
deleteTagById: (tagId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3607
|
+
/**
|
|
3608
|
+
* No description
|
|
3609
|
+
*
|
|
3610
|
+
* @tags tag
|
|
3611
|
+
* @name UpdateTag
|
|
3612
|
+
* @summary Update Tag
|
|
3613
|
+
* @request POST:/api/v1/tag/update
|
|
3614
|
+
*/
|
|
3615
|
+
updateTag: (data: ITagUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelTag, void | IHTTPValidationError>>;
|
|
3616
|
+
/**
|
|
3617
|
+
* No description
|
|
3618
|
+
*
|
|
3619
|
+
* @tags artifact
|
|
3620
|
+
* @name GetArtifactList
|
|
3621
|
+
* @summary Get Artifact List
|
|
3622
|
+
* @request POST:/api/v1/artifact/list
|
|
3623
|
+
*/
|
|
3624
|
+
getArtifactList: (data: IPageQueryParamsArtifactIndex, params?: RequestParams) => Promise<HttpResponse<IResponseModelPageResponseArtifactIndex, void | IHTTPValidationError>>;
|
|
3625
|
+
/**
|
|
3626
|
+
* No description
|
|
3627
|
+
*
|
|
3628
|
+
* @tags artifact
|
|
3629
|
+
* @name AddArtifactList
|
|
3630
|
+
* @summary Add Artifact List
|
|
3631
|
+
* @request POST:/api/v1/artifact/add_list
|
|
3632
|
+
*/
|
|
3633
|
+
addArtifactList: (data: IArtifactIndexCreate[], params?: RequestParams) => Promise<HttpResponse<IResponseModelListArtifactIndex, void | IHTTPValidationError>>;
|
|
3634
|
+
/**
|
|
3635
|
+
* No description
|
|
3636
|
+
*
|
|
3637
|
+
* @tags artifact
|
|
3638
|
+
* @name GetArtifactById
|
|
3639
|
+
* @summary Get Artifact By Id
|
|
3640
|
+
* @request GET:/api/v1/artifact/{artifact_id}
|
|
3641
|
+
*/
|
|
3642
|
+
getArtifactById: (artifactId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelArtifactIndex, void | IHTTPValidationError>>;
|
|
3643
|
+
/**
|
|
3644
|
+
* No description
|
|
3645
|
+
*
|
|
3646
|
+
* @tags artifact
|
|
3647
|
+
* @name DeleteArtifactById
|
|
3648
|
+
* @summary Delete Artifact By Id
|
|
3649
|
+
* @request DELETE:/api/v1/artifact/{artifact_id}
|
|
3650
|
+
*/
|
|
3651
|
+
deleteArtifactById: (artifactId: string, params?: RequestParams) => Promise<HttpResponse<IResponseModelNoneType, void | IHTTPValidationError>>;
|
|
3652
|
+
/**
|
|
3653
|
+
* No description
|
|
3654
|
+
*
|
|
3655
|
+
* @tags artifact
|
|
3656
|
+
* @name UpdateArtifactSpaceId
|
|
3657
|
+
* @summary Update Artifact Space Id
|
|
3658
|
+
* @request POST:/api/v1/artifact/update_space
|
|
3659
|
+
*/
|
|
3660
|
+
updateArtifactSpaceId: (data: IArtifactSpaceUpdate, params?: RequestParams) => Promise<HttpResponse<IResponseModelArtifactIndex, void | IHTTPValidationError>>;
|
|
3079
3661
|
};
|
|
3080
3662
|
rule: {
|
|
3081
3663
|
/**
|
package/dist/api.js
CHANGED
|
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
return t;
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.Api = exports.HttpClient = exports.ContentType = exports.IAction = exports.IEmbeddingModelEnum = exports.IKnowledgeSourceEnum = exports.IKnowledgeTypeEnum = exports.ILanguage = exports.IOperator = exports.IResource = exports.ITaskStatus = void 0;
|
|
25
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.IAction = exports.IEmbeddingModelEnum = exports.IKnowledgeSourceEnum = exports.IKnowledgeTypeEnum = exports.ILanguage = exports.IOperator = exports.IResource = exports.ITagObjectType = exports.ITaskStatus = void 0;
|
|
26
26
|
/** TaskStatus */
|
|
27
27
|
var ITaskStatus;
|
|
28
28
|
(function (ITaskStatus) {
|
|
@@ -35,6 +35,15 @@ var ITaskStatus;
|
|
|
35
35
|
ITaskStatus["PendingRetry"] = "pending_retry";
|
|
36
36
|
ITaskStatus["Deleted"] = "deleted";
|
|
37
37
|
})(ITaskStatus || (exports.ITaskStatus = ITaskStatus = {}));
|
|
38
|
+
/**
|
|
39
|
+
* TagObjectType
|
|
40
|
+
* 可打标签的对象类型。
|
|
41
|
+
*/
|
|
42
|
+
var ITagObjectType;
|
|
43
|
+
(function (ITagObjectType) {
|
|
44
|
+
ITagObjectType["Space"] = "space";
|
|
45
|
+
ITagObjectType["Knowledge"] = "knowledge";
|
|
46
|
+
})(ITagObjectType || (exports.ITagObjectType = ITagObjectType = {}));
|
|
38
47
|
/** Resource */
|
|
39
48
|
var IResource;
|
|
40
49
|
(function (IResource) {
|
|
@@ -48,6 +57,9 @@ var IResource;
|
|
|
48
57
|
IResource["Rule"] = "rule";
|
|
49
58
|
IResource["Public"] = "public";
|
|
50
59
|
IResource["Webhook"] = "webhook";
|
|
60
|
+
IResource["Tag"] = "tag";
|
|
61
|
+
IResource["Tagging"] = "tagging";
|
|
62
|
+
IResource["Artifact"] = "artifact";
|
|
51
63
|
})(IResource || (exports.IResource = IResource = {}));
|
|
52
64
|
/** Operator */
|
|
53
65
|
var IOperator;
|
|
@@ -660,6 +672,123 @@ class Api extends HttpClient {
|
|
|
660
672
|
* @request POST:/api/v1/webhook/{webhook_type}/{source}/{auth_info}/{knowledge_base_id}
|
|
661
673
|
*/
|
|
662
674
|
handleWebhookApiV1WebhookWebhookTypeSourceAuthInfoKnowledgeBaseIdPost: (webhookType, source, authInfo, knowledgeBaseId, data, params = {}) => this.request(Object.assign({ path: `/api/v1/webhook/${webhookType}/${source}/${authInfo}/${knowledgeBaseId}`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
675
|
+
/**
|
|
676
|
+
* No description
|
|
677
|
+
*
|
|
678
|
+
* @tags tagging
|
|
679
|
+
* @name GetTaggingList
|
|
680
|
+
* @summary Get Tagging List
|
|
681
|
+
* @request POST:/api/v1/tagging/list
|
|
682
|
+
*/
|
|
683
|
+
getTaggingList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/tagging/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
684
|
+
/**
|
|
685
|
+
* No description
|
|
686
|
+
*
|
|
687
|
+
* @tags tagging
|
|
688
|
+
* @name AddTaggingList
|
|
689
|
+
* @summary Add Tagging List
|
|
690
|
+
* @request POST:/api/v1/tagging/add_list
|
|
691
|
+
*/
|
|
692
|
+
addTaggingList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/tagging/add_list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
693
|
+
/**
|
|
694
|
+
* No description
|
|
695
|
+
*
|
|
696
|
+
* @tags tagging
|
|
697
|
+
* @name DeleteTaggingById
|
|
698
|
+
* @summary Delete Tagging By Id
|
|
699
|
+
* @request DELETE:/api/v1/tagging/{tagging_id}
|
|
700
|
+
*/
|
|
701
|
+
deleteTaggingById: (taggingId, params = {}) => this.request(Object.assign({ path: `/api/v1/tagging/${taggingId}`, method: "DELETE", format: "json" }, params)),
|
|
702
|
+
/**
|
|
703
|
+
* @description 分页获取标签列表
|
|
704
|
+
*
|
|
705
|
+
* @tags tag
|
|
706
|
+
* @name GetTagList
|
|
707
|
+
* @summary Get Tag List
|
|
708
|
+
* @request POST:/api/v1/tag/list
|
|
709
|
+
*/
|
|
710
|
+
getTagList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/tag/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
711
|
+
/**
|
|
712
|
+
* @description 批量新增标签 注意:根据接口定义,DB 插件方法签名为 add_tag_list(tag_list: List[TagCreate]), 因此此处直接传入 body。若 TagCreate 需要携带 tenant_id,应由模型或插件内部处理。
|
|
713
|
+
*
|
|
714
|
+
* @tags tag
|
|
715
|
+
* @name AddTagList
|
|
716
|
+
* @summary Add Tag List
|
|
717
|
+
* @request POST:/api/v1/tag/add_list
|
|
718
|
+
*/
|
|
719
|
+
addTagList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/tag/add_list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
720
|
+
/**
|
|
721
|
+
* @description 获取标签详情
|
|
722
|
+
*
|
|
723
|
+
* @tags tag
|
|
724
|
+
* @name GetTagById
|
|
725
|
+
* @summary Get Tag By Id
|
|
726
|
+
* @request GET:/api/v1/tag/{tag_id}
|
|
727
|
+
*/
|
|
728
|
+
getTagById: (tagId, params = {}) => this.request(Object.assign({ path: `/api/v1/tag/${tagId}`, method: "GET", format: "json" }, params)),
|
|
729
|
+
/**
|
|
730
|
+
* No description
|
|
731
|
+
*
|
|
732
|
+
* @tags tag
|
|
733
|
+
* @name DeleteTagById
|
|
734
|
+
* @summary Delete Tag By Id
|
|
735
|
+
* @request DELETE:/api/v1/tag/{tag_id}
|
|
736
|
+
*/
|
|
737
|
+
deleteTagById: (tagId, params = {}) => this.request(Object.assign({ path: `/api/v1/tag/${tagId}`, method: "DELETE", format: "json" }, params)),
|
|
738
|
+
/**
|
|
739
|
+
* No description
|
|
740
|
+
*
|
|
741
|
+
* @tags tag
|
|
742
|
+
* @name UpdateTag
|
|
743
|
+
* @summary Update Tag
|
|
744
|
+
* @request POST:/api/v1/tag/update
|
|
745
|
+
*/
|
|
746
|
+
updateTag: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/tag/update`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
747
|
+
/**
|
|
748
|
+
* No description
|
|
749
|
+
*
|
|
750
|
+
* @tags artifact
|
|
751
|
+
* @name GetArtifactList
|
|
752
|
+
* @summary Get Artifact List
|
|
753
|
+
* @request POST:/api/v1/artifact/list
|
|
754
|
+
*/
|
|
755
|
+
getArtifactList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
756
|
+
/**
|
|
757
|
+
* No description
|
|
758
|
+
*
|
|
759
|
+
* @tags artifact
|
|
760
|
+
* @name AddArtifactList
|
|
761
|
+
* @summary Add Artifact List
|
|
762
|
+
* @request POST:/api/v1/artifact/add_list
|
|
763
|
+
*/
|
|
764
|
+
addArtifactList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/add_list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
765
|
+
/**
|
|
766
|
+
* No description
|
|
767
|
+
*
|
|
768
|
+
* @tags artifact
|
|
769
|
+
* @name GetArtifactById
|
|
770
|
+
* @summary Get Artifact By Id
|
|
771
|
+
* @request GET:/api/v1/artifact/{artifact_id}
|
|
772
|
+
*/
|
|
773
|
+
getArtifactById: (artifactId, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/${artifactId}`, method: "GET", format: "json" }, params)),
|
|
774
|
+
/**
|
|
775
|
+
* No description
|
|
776
|
+
*
|
|
777
|
+
* @tags artifact
|
|
778
|
+
* @name DeleteArtifactById
|
|
779
|
+
* @summary Delete Artifact By Id
|
|
780
|
+
* @request DELETE:/api/v1/artifact/{artifact_id}
|
|
781
|
+
*/
|
|
782
|
+
deleteArtifactById: (artifactId, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/${artifactId}`, method: "DELETE", format: "json" }, params)),
|
|
783
|
+
/**
|
|
784
|
+
* No description
|
|
785
|
+
*
|
|
786
|
+
* @tags artifact
|
|
787
|
+
* @name UpdateArtifactSpaceId
|
|
788
|
+
* @summary Update Artifact Space Id
|
|
789
|
+
* @request POST:/api/v1/artifact/update_space
|
|
790
|
+
*/
|
|
791
|
+
updateArtifactSpaceId: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/update_space`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
663
792
|
};
|
|
664
793
|
this.rule = {
|
|
665
794
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@petercatai/whisker-client",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Generated API client (
|
|
3
|
+
"version": "0.1.202508250845-dev",
|
|
4
|
+
"description": "Generated API client (preview)",
|
|
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": "dev"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@types/node": "^24.
|
|
19
|
+
"@types/node": "^24.3.0",
|
|
20
20
|
"axios": "^1.11.0",
|
|
21
21
|
"typescript": "^5.9.2"
|
|
22
22
|
}
|