@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.js
CHANGED
|
@@ -158,6 +158,8 @@ var IKnowledgeSourceEnum;
|
|
|
158
158
|
IKnowledgeSourceEnum["CloudStorageText"] = "cloud_storage_text";
|
|
159
159
|
IKnowledgeSourceEnum["CloudStorageImage"] = "cloud_storage_image";
|
|
160
160
|
IKnowledgeSourceEnum["Yuque"] = "yuque";
|
|
161
|
+
IKnowledgeSourceEnum["YuquePersonalDoc"] = "yuque_personal_doc";
|
|
162
|
+
IKnowledgeSourceEnum["YuquePersonalNote"] = "yuque_personal_note";
|
|
161
163
|
})(IKnowledgeSourceEnum || (exports.IKnowledgeSourceEnum = IKnowledgeSourceEnum = {}));
|
|
162
164
|
/** Action */
|
|
163
165
|
var IAction;
|
|
@@ -327,6 +329,17 @@ class Api extends HttpClient {
|
|
|
327
329
|
* @request GET:/
|
|
328
330
|
*/
|
|
329
331
|
this.homePageGet = (params = {}) => this.request(Object.assign({ path: `/`, method: "GET", format: "json" }, params));
|
|
332
|
+
this.user = {
|
|
333
|
+
/**
|
|
334
|
+
* @description 根据登录账号查询用户有权限的产品空间列表 Args: login_account: 用户登录账号 Returns: 用户有权限的产品空间列表
|
|
335
|
+
*
|
|
336
|
+
* @tags user
|
|
337
|
+
* @name GetUserProductSpaces
|
|
338
|
+
* @summary Get User Product Spaces
|
|
339
|
+
* @request GET:/api/user/product-spaces
|
|
340
|
+
*/
|
|
341
|
+
getUserProductSpaces: (query, params = {}) => this.request(Object.assign({ path: `/api/user/product-spaces`, method: "GET", query: query, format: "json" }, params)),
|
|
342
|
+
};
|
|
330
343
|
this.knowledge = {
|
|
331
344
|
/**
|
|
332
345
|
* @description 添加知识 使用DDD架构创建新的知识,禁止重复的file_sha条目。 通过TaskCoordinationService统一协调知识创建和任务执行,确保事务一致性。
|
|
@@ -391,6 +404,15 @@ class Api extends HttpClient {
|
|
|
391
404
|
* @request GET:/api/knowledge/embedding/models
|
|
392
405
|
*/
|
|
393
406
|
getEmbeddingModelsList: (params = {}) => this.request(Object.assign({ path: `/api/knowledge/embedding/models`, method: "GET", format: "json" }, params)),
|
|
407
|
+
/**
|
|
408
|
+
* @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: 符合条件的知识列表
|
|
409
|
+
*
|
|
410
|
+
* @tags knowledge
|
|
411
|
+
* @name BatchQueryKnowledgeByNames
|
|
412
|
+
* @summary Batch Query Knowledge By Names
|
|
413
|
+
* @request POST:/api/knowledge/batch_query_by_names
|
|
414
|
+
*/
|
|
415
|
+
batchQueryKnowledgeByNames: (data, params = {}) => this.request(Object.assign({ path: `/api/knowledge/batch_query_by_names`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
394
416
|
};
|
|
395
417
|
this.retrieval = {
|
|
396
418
|
/**
|
|
@@ -412,7 +434,7 @@ class Api extends HttpClient {
|
|
|
412
434
|
*/
|
|
413
435
|
retrieveSpaceContent: (data, params = {}) => this.request(Object.assign({ path: `/api/retrieval/space`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
414
436
|
/**
|
|
415
|
-
* @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id.
|
|
437
|
+
* @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id.
|
|
416
438
|
*
|
|
417
439
|
* @tags retrieval
|
|
418
440
|
* @name Retrieve
|
|
@@ -420,10 +442,19 @@ class Api extends HttpClient {
|
|
|
420
442
|
* @request POST:/api/retrieval/
|
|
421
443
|
*/
|
|
422
444
|
retrieve: (data, params = {}) => this.request(Object.assign({ path: `/api/retrieval/`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
445
|
+
/**
|
|
446
|
+
* @description 因为 antvis 要对公网开放相关信息,故提供本单独接口
|
|
447
|
+
*
|
|
448
|
+
* @tags retrieval
|
|
449
|
+
* @name AntvisRetrieve
|
|
450
|
+
* @summary Context7 Antvis Retrieve
|
|
451
|
+
* @request POST:/api/retrieval/context7/antvis
|
|
452
|
+
*/
|
|
453
|
+
antvisRetrieve: (data, params = {}) => this.request(Object.assign({ path: `/api/retrieval/context7/antvis`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
423
454
|
};
|
|
424
455
|
this.task = {
|
|
425
456
|
/**
|
|
426
|
-
* @description 重启任务 使用DDD架构的
|
|
457
|
+
* @description 重启任务 使用DDD架构的TaskCoordinationService进行任务重启并执行。 重试规则: 1. FAILED 或 CANCELED 状态的任务可以重试 2. 创建时间超过30分钟且未成功的任务可以重试
|
|
427
458
|
*
|
|
428
459
|
* @tags task
|
|
429
460
|
* @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.1763262163",
|
|
4
|
+
"description": "Generated API client (Production)",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"types": "dist/api.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
},
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public",
|
|
16
|
-
"tag": "
|
|
16
|
+
"tag": "latest"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@types/node": "^24.
|
|
20
|
-
"axios": "^1.
|
|
19
|
+
"@types/node": "^24.10.1",
|
|
20
|
+
"axios": "^1.13.2",
|
|
21
21
|
"typescript": "^5.9.3"
|
|
22
22
|
}
|
|
23
23
|
}
|