@petercatai/whisker-client 0.1.202509030458 → 0.1.202511191614
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 +1005 -382
- package/dist/api.js +94 -78
- package/package.json +4 -4
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.
|
|
25
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.IAction = 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) {
|
|
@@ -158,16 +158,9 @@ 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
|
-
/** EmbeddingModelEnum */
|
|
163
|
-
var IEmbeddingModelEnum;
|
|
164
|
-
(function (IEmbeddingModelEnum) {
|
|
165
|
-
IEmbeddingModelEnum["Openai"] = "openai";
|
|
166
|
-
IEmbeddingModelEnum["SentenceTransformersAllMiniLML6V2"] = "sentence-transformers/all-MiniLM-L6-v2";
|
|
167
|
-
IEmbeddingModelEnum["SentenceTransformersAllMpnetBaseV2"] = "sentence-transformers/all-mpnet-base-v2";
|
|
168
|
-
IEmbeddingModelEnum["SentenceTransformersParaphraseMultilingualMiniLML12V2"] = "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2";
|
|
169
|
-
IEmbeddingModelEnum["Shibing624Text2VecBaseChinese"] = "shibing624/text2vec-base-chinese";
|
|
170
|
-
})(IEmbeddingModelEnum || (exports.IEmbeddingModelEnum = IEmbeddingModelEnum = {}));
|
|
171
164
|
/** Action */
|
|
172
165
|
var IAction;
|
|
173
166
|
(function (IAction) {
|
|
@@ -265,9 +258,10 @@ class HttpClient {
|
|
|
265
258
|
const r = response;
|
|
266
259
|
r.data = null;
|
|
267
260
|
r.error = null;
|
|
261
|
+
const responseToParse = responseFormat ? response.clone() : response;
|
|
268
262
|
const data = !responseFormat
|
|
269
263
|
? r
|
|
270
|
-
: await
|
|
264
|
+
: await responseToParse[responseFormat]()
|
|
271
265
|
.then((data) => {
|
|
272
266
|
if (r.ok) {
|
|
273
267
|
r.data = data;
|
|
@@ -335,9 +329,20 @@ class Api extends HttpClient {
|
|
|
335
329
|
* @request GET:/
|
|
336
330
|
*/
|
|
337
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
|
+
};
|
|
338
343
|
this.knowledge = {
|
|
339
344
|
/**
|
|
340
|
-
* @description
|
|
345
|
+
* @description 添加知识 使用DDD架构创建新的知识,禁止重复的file_sha条目。 通过TaskCoordinationService统一协调知识创建和任务执行,确保事务一致性。
|
|
341
346
|
*
|
|
342
347
|
* @tags knowledge
|
|
343
348
|
* @name AddKnowledge
|
|
@@ -346,7 +351,7 @@ class Api extends HttpClient {
|
|
|
346
351
|
*/
|
|
347
352
|
addKnowledge: (data, params = {}) => this.request(Object.assign({ path: `/api/knowledge/add`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
348
353
|
/**
|
|
349
|
-
*
|
|
354
|
+
* @description 更新知识 使用DDD架构更新知识信息,支持元数据和状态更新。
|
|
350
355
|
*
|
|
351
356
|
* @tags knowledge
|
|
352
357
|
* @name UpdateKnowledge
|
|
@@ -355,7 +360,7 @@ class Api extends HttpClient {
|
|
|
355
360
|
*/
|
|
356
361
|
updateKnowledge: (data, params = {}) => this.request(Object.assign({ path: `/api/knowledge/update`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
357
362
|
/**
|
|
358
|
-
*
|
|
363
|
+
* @description 更新知识启用状态 使用DDD架构更新知识的启用状态。
|
|
359
364
|
*
|
|
360
365
|
* @tags knowledge
|
|
361
366
|
* @name UpdateKnowledgeEnableStatus
|
|
@@ -364,7 +369,7 @@ class Api extends HttpClient {
|
|
|
364
369
|
*/
|
|
365
370
|
updateKnowledgeEnableStatus: (data, params = {}) => this.request(Object.assign({ path: `/api/knowledge/update/enabled`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
366
371
|
/**
|
|
367
|
-
*
|
|
372
|
+
* @description 获取知识列表 使用DDD架构的KnowledgeService进行分页查询,支持条件过滤和排序。
|
|
368
373
|
*
|
|
369
374
|
* @tags knowledge
|
|
370
375
|
* @name GetKnowledgeList
|
|
@@ -373,7 +378,7 @@ class Api extends HttpClient {
|
|
|
373
378
|
*/
|
|
374
379
|
getKnowledgeList: (data, params = {}) => this.request(Object.assign({ path: `/api/knowledge/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
375
380
|
/**
|
|
376
|
-
*
|
|
381
|
+
* @description 根据ID获取知识详情 使用DDD架构获取知识详细信息。
|
|
377
382
|
*
|
|
378
383
|
* @tags knowledge
|
|
379
384
|
* @name GetKnowledgeById
|
|
@@ -382,7 +387,7 @@ class Api extends HttpClient {
|
|
|
382
387
|
*/
|
|
383
388
|
getKnowledgeById: (query, params = {}) => this.request(Object.assign({ path: `/api/knowledge/detail`, method: "GET", query: query, format: "json" }, params)),
|
|
384
389
|
/**
|
|
385
|
-
* @description
|
|
390
|
+
* @description 删除知识 包括级联删除相关的任务和向量数据。
|
|
386
391
|
*
|
|
387
392
|
* @tags knowledge
|
|
388
393
|
* @name DeleteKnowledge
|
|
@@ -400,14 +405,14 @@ class Api extends HttpClient {
|
|
|
400
405
|
*/
|
|
401
406
|
getEmbeddingModelsList: (params = {}) => this.request(Object.assign({ path: `/api/knowledge/embedding/models`, method: "GET", format: "json" }, params)),
|
|
402
407
|
/**
|
|
403
|
-
* @description
|
|
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: 符合条件的知识列表
|
|
404
409
|
*
|
|
405
410
|
* @tags knowledge
|
|
406
|
-
* @name
|
|
407
|
-
* @summary
|
|
408
|
-
* @request POST:/api/knowledge/
|
|
411
|
+
* @name BatchQueryKnowledgeByNames
|
|
412
|
+
* @summary Batch Query Knowledge By Names
|
|
413
|
+
* @request POST:/api/knowledge/batch_query_by_names
|
|
409
414
|
*/
|
|
410
|
-
|
|
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)),
|
|
411
416
|
};
|
|
412
417
|
this.retrieval = {
|
|
413
418
|
/**
|
|
@@ -420,7 +425,7 @@ class Api extends HttpClient {
|
|
|
420
425
|
*/
|
|
421
426
|
retrieveKnowledgeContent: (data, params = {}) => this.request(Object.assign({ path: `/api/retrieval/knowledge`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
422
427
|
/**
|
|
423
|
-
* @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id.
|
|
428
|
+
* @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id. 使用DDD架构的RetrievalService进行空间检索。
|
|
424
429
|
*
|
|
425
430
|
* @tags retrieval
|
|
426
431
|
* @name RetrieveSpaceContent
|
|
@@ -437,10 +442,19 @@ class Api extends HttpClient {
|
|
|
437
442
|
* @request POST:/api/retrieval/
|
|
438
443
|
*/
|
|
439
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)),
|
|
440
454
|
};
|
|
441
455
|
this.task = {
|
|
442
456
|
/**
|
|
443
|
-
*
|
|
457
|
+
* @description 重启任务 使用DDD架构的TaskCoordinationService进行任务重启并执行。 重试规则: 1. FAILED 或 CANCELED 状态的任务可以重试 2. 创建时间超过30分钟且未成功的任务可以重试
|
|
444
458
|
*
|
|
445
459
|
* @tags task
|
|
446
460
|
* @name RestartTask
|
|
@@ -449,7 +463,7 @@ class Api extends HttpClient {
|
|
|
449
463
|
*/
|
|
450
464
|
restartTask: (data, params = {}) => this.request(Object.assign({ path: `/api/task/restart`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
451
465
|
/**
|
|
452
|
-
*
|
|
466
|
+
* @description 取消任务 使用DDD架构的TaskService进行任务取消。
|
|
453
467
|
*
|
|
454
468
|
* @tags task
|
|
455
469
|
* @name CancelTask
|
|
@@ -458,7 +472,7 @@ class Api extends HttpClient {
|
|
|
458
472
|
*/
|
|
459
473
|
cancelTask: (data, params = {}) => this.request(Object.assign({ path: `/api/task/cancel`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
460
474
|
/**
|
|
461
|
-
*
|
|
475
|
+
* @description 获取任务列表 使用DDD架构的TaskService进行分页查询。
|
|
462
476
|
*
|
|
463
477
|
* @tags task
|
|
464
478
|
* @name GetTaskList
|
|
@@ -467,7 +481,7 @@ class Api extends HttpClient {
|
|
|
467
481
|
*/
|
|
468
482
|
getTaskList: (data, params = {}) => this.request(Object.assign({ path: `/api/task/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
469
483
|
/**
|
|
470
|
-
*
|
|
484
|
+
* @description 获取任务详情 使用DDD架构的TaskService获取任务详情。
|
|
471
485
|
*
|
|
472
486
|
* @tags task
|
|
473
487
|
* @name GetTaskDetail
|
|
@@ -476,7 +490,7 @@ class Api extends HttpClient {
|
|
|
476
490
|
*/
|
|
477
491
|
getTaskDetail: (query, params = {}) => this.request(Object.assign({ path: `/api/task/detail`, method: "GET", query: query, format: "json" }, params)),
|
|
478
492
|
/**
|
|
479
|
-
*
|
|
493
|
+
* @description 删除任务 使用DDD架构的TaskService进行任务删除。
|
|
480
494
|
*
|
|
481
495
|
* @tags task
|
|
482
496
|
* @name DeleteTaskById
|
|
@@ -487,7 +501,7 @@ class Api extends HttpClient {
|
|
|
487
501
|
};
|
|
488
502
|
this.chunk = {
|
|
489
503
|
/**
|
|
490
|
-
*
|
|
504
|
+
* @description 获取Chunk列表
|
|
491
505
|
*
|
|
492
506
|
* @tags chunk
|
|
493
507
|
* @name GetChunkList
|
|
@@ -496,7 +510,7 @@ class Api extends HttpClient {
|
|
|
496
510
|
*/
|
|
497
511
|
getChunkList: (data, params = {}) => this.request(Object.assign({ path: `/api/chunk/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
498
512
|
/**
|
|
499
|
-
*
|
|
513
|
+
* @description 根据ID删除Chunk 使用DDD架构删除指定的Chunk。
|
|
500
514
|
*
|
|
501
515
|
* @tags chunk
|
|
502
516
|
* @name DeleteChunkById
|
|
@@ -505,7 +519,7 @@ class Api extends HttpClient {
|
|
|
505
519
|
*/
|
|
506
520
|
deleteChunkById: (id, modelName, params = {}) => this.request(Object.assign({ path: `/api/chunk/id/${id}/model_name/${modelName}`, method: "DELETE", format: "json" }, params)),
|
|
507
521
|
/**
|
|
508
|
-
*
|
|
522
|
+
* @description 根据ID获取Chunk 使用DDD架构获取指定的Chunk详情。
|
|
509
523
|
*
|
|
510
524
|
* @tags chunk
|
|
511
525
|
* @name GetChunkById
|
|
@@ -514,7 +528,7 @@ class Api extends HttpClient {
|
|
|
514
528
|
*/
|
|
515
529
|
getChunkById: (id, modelName, params = {}) => this.request(Object.assign({ path: `/api/chunk/id/${id}/model_name/${modelName}`, method: "GET", format: "json" }, params)),
|
|
516
530
|
/**
|
|
517
|
-
*
|
|
531
|
+
* @description 添加Chunk 使用DDD架构创建新的Chunk。
|
|
518
532
|
*
|
|
519
533
|
* @tags chunk
|
|
520
534
|
* @name AddChunk
|
|
@@ -523,7 +537,7 @@ class Api extends HttpClient {
|
|
|
523
537
|
*/
|
|
524
538
|
addChunk: (data, params = {}) => this.request(Object.assign({ path: `/api/chunk/add`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
525
539
|
/**
|
|
526
|
-
*
|
|
540
|
+
* @description 更新Chunk 使用DDD架构更新指定的Chunk。
|
|
527
541
|
*
|
|
528
542
|
* @tags chunk
|
|
529
543
|
* @name UpdateChunk
|
|
@@ -534,7 +548,7 @@ class Api extends HttpClient {
|
|
|
534
548
|
};
|
|
535
549
|
this.tenant = {
|
|
536
550
|
/**
|
|
537
|
-
*
|
|
551
|
+
* @description 创建租户
|
|
538
552
|
*
|
|
539
553
|
* @tags tenant
|
|
540
554
|
* @name CreateTenant
|
|
@@ -543,7 +557,7 @@ class Api extends HttpClient {
|
|
|
543
557
|
*/
|
|
544
558
|
createTenant: (data, params = {}) => this.request(Object.assign({ path: `/api/tenant/create`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
545
559
|
/**
|
|
546
|
-
*
|
|
560
|
+
* @description 根据ID查询租户
|
|
547
561
|
*
|
|
548
562
|
* @tags tenant
|
|
549
563
|
* @name GetTenantById
|
|
@@ -552,7 +566,7 @@ class Api extends HttpClient {
|
|
|
552
566
|
*/
|
|
553
567
|
getTenantById: (id, params = {}) => this.request(Object.assign({ path: `/api/tenant/id/${id}`, method: "GET", format: "json" }, params)),
|
|
554
568
|
/**
|
|
555
|
-
*
|
|
569
|
+
* @description 删除租户
|
|
556
570
|
*
|
|
557
571
|
* @tags tenant
|
|
558
572
|
* @name DeleteTenantById
|
|
@@ -561,7 +575,7 @@ class Api extends HttpClient {
|
|
|
561
575
|
*/
|
|
562
576
|
deleteTenantById: (id, params = {}) => this.request(Object.assign({ path: `/api/tenant/${id}`, method: "DELETE", format: "json" }, params)),
|
|
563
577
|
/**
|
|
564
|
-
*
|
|
578
|
+
* @description 更新租户
|
|
565
579
|
*
|
|
566
580
|
* @tags tenant
|
|
567
581
|
* @name UpdateTenant
|
|
@@ -570,7 +584,7 @@ class Api extends HttpClient {
|
|
|
570
584
|
*/
|
|
571
585
|
updateTenant: (data, params = {}) => this.request(Object.assign({ path: `/api/tenant/update`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
572
586
|
/**
|
|
573
|
-
*
|
|
587
|
+
* @description 获取租户列表
|
|
574
588
|
*
|
|
575
589
|
* @tags tenant
|
|
576
590
|
* @name GetTenantList
|
|
@@ -579,7 +593,7 @@ class Api extends HttpClient {
|
|
|
579
593
|
*/
|
|
580
594
|
getTenantList: (query, params = {}) => this.request(Object.assign({ path: `/api/tenant/list`, method: "GET", query: query, format: "json" }, params)),
|
|
581
595
|
/**
|
|
582
|
-
*
|
|
596
|
+
* @description 获取当前租户信息 直接返回认证系统中的租户信息。 get_tenant_with_permissions 已经包含了完整的认证和权限检查。
|
|
583
597
|
*
|
|
584
598
|
* @tags tenant
|
|
585
599
|
* @name GetTenant
|
|
@@ -590,7 +604,7 @@ class Api extends HttpClient {
|
|
|
590
604
|
};
|
|
591
605
|
this.space = {
|
|
592
606
|
/**
|
|
593
|
-
*
|
|
607
|
+
* @description 获取空间列表 使用DDD架构的SpaceService进行分页查询,支持条件过滤和排序。
|
|
594
608
|
*
|
|
595
609
|
* @tags space
|
|
596
610
|
* @name GetSpaceList
|
|
@@ -599,7 +613,7 @@ class Api extends HttpClient {
|
|
|
599
613
|
*/
|
|
600
614
|
getSpaceList: (data, params = {}) => this.request(Object.assign({ path: `/api/space/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
601
615
|
/**
|
|
602
|
-
*
|
|
616
|
+
* @description 创建空间,使用DDD架构创建新的空间,支持KIS集成和元数据配置。
|
|
603
617
|
*
|
|
604
618
|
* @tags space
|
|
605
619
|
* @name AddSpace
|
|
@@ -608,7 +622,7 @@ class Api extends HttpClient {
|
|
|
608
622
|
*/
|
|
609
623
|
addSpace: (data, params = {}) => this.request(Object.assign({ path: `/api/space/add`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
610
624
|
/**
|
|
611
|
-
*
|
|
625
|
+
* @description 删除空间,包括级联删除相关的知识、任务和向量数据。
|
|
612
626
|
*
|
|
613
627
|
* @tags space
|
|
614
628
|
* @name DeleteSpace
|
|
@@ -617,7 +631,7 @@ class Api extends HttpClient {
|
|
|
617
631
|
*/
|
|
618
632
|
deleteSpace: (spaceId, params = {}) => this.request(Object.assign({ path: `/api/space/${spaceId}`, method: "DELETE", format: "json" }, params)),
|
|
619
633
|
/**
|
|
620
|
-
*
|
|
634
|
+
* @description 更新空间 使用DDD架构更新空间信息,支持KIS集成配置更新。
|
|
621
635
|
*
|
|
622
636
|
* @tags space
|
|
623
637
|
* @name UpdateSpace
|
|
@@ -626,7 +640,7 @@ class Api extends HttpClient {
|
|
|
626
640
|
*/
|
|
627
641
|
updateSpace: (spaceId, data, params = {}) => this.request(Object.assign({ path: `/api/space/${spaceId}`, method: "PUT", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
628
642
|
/**
|
|
629
|
-
*
|
|
643
|
+
* @description 根据ID获取空间详情 使用DDD架构获取空间详细信息,包括统计数据。
|
|
630
644
|
*
|
|
631
645
|
* @tags space
|
|
632
646
|
* @name GetSpaceById
|
|
@@ -637,7 +651,7 @@ class Api extends HttpClient {
|
|
|
637
651
|
};
|
|
638
652
|
this.v1 = {
|
|
639
653
|
/**
|
|
640
|
-
*
|
|
654
|
+
* @description 获取系统全局统计信息 使用DDD架构的DashboardService获取系统级别的统计数据。
|
|
641
655
|
*
|
|
642
656
|
* @tags dashboard
|
|
643
657
|
* @name GetGlobalInfo
|
|
@@ -646,23 +660,14 @@ class Api extends HttpClient {
|
|
|
646
660
|
*/
|
|
647
661
|
getGlobalInfo: (params = {}) => this.request(Object.assign({ path: `/api/v1/dashboard/global_info`, method: "GET", format: "json" }, params)),
|
|
648
662
|
/**
|
|
649
|
-
*
|
|
663
|
+
* @description 获取租户日志 使用DDD架构的DashboardService获取租户级别的日志数据。 注意:改为POST方法以支持复杂的查询参数。
|
|
650
664
|
*
|
|
651
665
|
* @tags dashboard
|
|
652
666
|
* @name GetTenantLog
|
|
653
667
|
* @summary Get Tenant Log
|
|
654
|
-
* @request
|
|
655
|
-
*/
|
|
656
|
-
getTenantLog: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/dashboard/tenant_log`, method: "GET", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
657
|
-
/**
|
|
658
|
-
* No description
|
|
659
|
-
*
|
|
660
|
-
* @tags agent
|
|
661
|
-
* @name ProResearchApiV1AgentProResearchPost
|
|
662
|
-
* @summary Pro Research
|
|
663
|
-
* @request POST:/api/v1/agent/pro_research
|
|
668
|
+
* @request POST:/api/v1/dashboard/tenant_log
|
|
664
669
|
*/
|
|
665
|
-
|
|
670
|
+
getTenantLog: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/dashboard/tenant_log`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
666
671
|
/**
|
|
667
672
|
* @description whisker 通用 webhook
|
|
668
673
|
*
|
|
@@ -673,7 +678,7 @@ class Api extends HttpClient {
|
|
|
673
678
|
*/
|
|
674
679
|
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
680
|
/**
|
|
676
|
-
*
|
|
681
|
+
* @description 分页获取标签关联列表 使用DDD架构的TaggingService进行分页查询。
|
|
677
682
|
*
|
|
678
683
|
* @tags tagging
|
|
679
684
|
* @name GetTaggingList
|
|
@@ -682,7 +687,7 @@ class Api extends HttpClient {
|
|
|
682
687
|
*/
|
|
683
688
|
getTaggingList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/tagging/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
684
689
|
/**
|
|
685
|
-
*
|
|
690
|
+
* @description 批量新增标签关联 使用DDD架构创建新的标签关联列表。
|
|
686
691
|
*
|
|
687
692
|
* @tags tagging
|
|
688
693
|
* @name AddTaggingList
|
|
@@ -691,7 +696,7 @@ class Api extends HttpClient {
|
|
|
691
696
|
*/
|
|
692
697
|
addTaggingList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/tagging/add_list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
693
698
|
/**
|
|
694
|
-
*
|
|
699
|
+
* @description 删除标签关联 使用DDD架构删除标签关联记录。
|
|
695
700
|
*
|
|
696
701
|
* @tags tagging
|
|
697
702
|
* @name DeleteTaggingById
|
|
@@ -709,7 +714,7 @@ class Api extends HttpClient {
|
|
|
709
714
|
*/
|
|
710
715
|
getTagList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/tag/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
711
716
|
/**
|
|
712
|
-
* @description 批量新增标签
|
|
717
|
+
* @description 批量新增标签
|
|
713
718
|
*
|
|
714
719
|
* @tags tag
|
|
715
720
|
* @name AddTagList
|
|
@@ -727,7 +732,7 @@ class Api extends HttpClient {
|
|
|
727
732
|
*/
|
|
728
733
|
getTagById: (tagId, params = {}) => this.request(Object.assign({ path: `/api/v1/tag/${tagId}`, method: "GET", format: "json" }, params)),
|
|
729
734
|
/**
|
|
730
|
-
*
|
|
735
|
+
* @description 删除标签
|
|
731
736
|
*
|
|
732
737
|
* @tags tag
|
|
733
738
|
* @name DeleteTagById
|
|
@@ -736,7 +741,7 @@ class Api extends HttpClient {
|
|
|
736
741
|
*/
|
|
737
742
|
deleteTagById: (tagId, params = {}) => this.request(Object.assign({ path: `/api/v1/tag/${tagId}`, method: "DELETE", format: "json" }, params)),
|
|
738
743
|
/**
|
|
739
|
-
*
|
|
744
|
+
* @description 更新标签
|
|
740
745
|
*
|
|
741
746
|
* @tags tag
|
|
742
747
|
* @name UpdateTag
|
|
@@ -745,7 +750,7 @@ class Api extends HttpClient {
|
|
|
745
750
|
*/
|
|
746
751
|
updateTag: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/tag/update`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
747
752
|
/**
|
|
748
|
-
*
|
|
753
|
+
* @description 分页获取工件列表 使用DDD架构的ArtifactService进行分页查询。
|
|
749
754
|
*
|
|
750
755
|
* @tags artifact
|
|
751
756
|
* @name GetArtifactList
|
|
@@ -754,7 +759,7 @@ class Api extends HttpClient {
|
|
|
754
759
|
*/
|
|
755
760
|
getArtifactList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
756
761
|
/**
|
|
757
|
-
*
|
|
762
|
+
* @description 批量新增工件 使用DDD架构创建新的工件列表。
|
|
758
763
|
*
|
|
759
764
|
* @tags artifact
|
|
760
765
|
* @name AddArtifactList
|
|
@@ -763,7 +768,7 @@ class Api extends HttpClient {
|
|
|
763
768
|
*/
|
|
764
769
|
addArtifactList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/add_list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
765
770
|
/**
|
|
766
|
-
*
|
|
771
|
+
* @description 获取工件详情 使用DDD架构获取工件详细信息。
|
|
767
772
|
*
|
|
768
773
|
* @tags artifact
|
|
769
774
|
* @name GetArtifactById
|
|
@@ -772,7 +777,7 @@ class Api extends HttpClient {
|
|
|
772
777
|
*/
|
|
773
778
|
getArtifactById: (artifactId, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/${artifactId}`, method: "GET", format: "json" }, params)),
|
|
774
779
|
/**
|
|
775
|
-
*
|
|
780
|
+
* @description 删除工件 使用DDD架构删除工件记录。
|
|
776
781
|
*
|
|
777
782
|
* @tags artifact
|
|
778
783
|
* @name DeleteArtifactById
|
|
@@ -781,18 +786,18 @@ class Api extends HttpClient {
|
|
|
781
786
|
*/
|
|
782
787
|
deleteArtifactById: (artifactId, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/${artifactId}`, method: "DELETE", format: "json" }, params)),
|
|
783
788
|
/**
|
|
784
|
-
*
|
|
789
|
+
* @description 更新工件空间绑定 使用DDD架构更新工件的空间关联。
|
|
785
790
|
*
|
|
786
791
|
* @tags artifact
|
|
787
792
|
* @name UpdateArtifactSpaceId
|
|
788
793
|
* @summary Update Artifact Space Id
|
|
789
|
-
* @request POST:/api/v1/artifact/
|
|
794
|
+
* @request POST:/api/v1/artifact/update/space_id
|
|
790
795
|
*/
|
|
791
|
-
updateArtifactSpaceId: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/
|
|
796
|
+
updateArtifactSpaceId: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/update/space_id`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
792
797
|
};
|
|
793
798
|
this.rule = {
|
|
794
799
|
/**
|
|
795
|
-
*
|
|
800
|
+
* @description 获取租户全局规则 使用DDD架构的RuleService获取租户级别的规则配置。
|
|
796
801
|
*
|
|
797
802
|
* @tags rule
|
|
798
803
|
* @name GetGlobalRule
|
|
@@ -801,7 +806,7 @@ class Api extends HttpClient {
|
|
|
801
806
|
*/
|
|
802
807
|
getGlobalRule: (params = {}) => this.request(Object.assign({ path: `/api/rule/global`, method: "GET", format: "json" }, params)),
|
|
803
808
|
/**
|
|
804
|
-
*
|
|
809
|
+
* @description 获取空间规则 使用DDD架构的RuleService获取空间级别的规则配置。
|
|
805
810
|
*
|
|
806
811
|
* @tags rule
|
|
807
812
|
* @name GetSpaceRule
|
|
@@ -812,7 +817,7 @@ class Api extends HttpClient {
|
|
|
812
817
|
};
|
|
813
818
|
this.apiKey = {
|
|
814
819
|
/**
|
|
815
|
-
*
|
|
820
|
+
* @description 创建API Key
|
|
816
821
|
*
|
|
817
822
|
* @tags api key
|
|
818
823
|
* @name CreateApiKey
|
|
@@ -821,7 +826,7 @@ class Api extends HttpClient {
|
|
|
821
826
|
*/
|
|
822
827
|
createApiKey: (data, params = {}) => this.request(Object.assign({ path: `/api/api_key/create`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
823
828
|
/**
|
|
824
|
-
*
|
|
829
|
+
* @description 更新API Key
|
|
825
830
|
*
|
|
826
831
|
* @tags api key
|
|
827
832
|
* @name UpdateApiKey
|
|
@@ -830,7 +835,7 @@ class Api extends HttpClient {
|
|
|
830
835
|
*/
|
|
831
836
|
updateApiKey: (data, params = {}) => this.request(Object.assign({ path: `/api/api_key/update`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
832
837
|
/**
|
|
833
|
-
*
|
|
838
|
+
* @description 获取API Key列表
|
|
834
839
|
*
|
|
835
840
|
* @tags api key
|
|
836
841
|
* @name GetApiKeyList
|
|
@@ -839,7 +844,7 @@ class Api extends HttpClient {
|
|
|
839
844
|
*/
|
|
840
845
|
getApiKeyList: (data, params = {}) => this.request(Object.assign({ path: `/api/api_key/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
841
846
|
/**
|
|
842
|
-
*
|
|
847
|
+
* @description 删除API Key
|
|
843
848
|
*
|
|
844
849
|
* @tags api key
|
|
845
850
|
* @name DeleteApiKey
|
|
@@ -848,7 +853,7 @@ class Api extends HttpClient {
|
|
|
848
853
|
*/
|
|
849
854
|
deleteApiKey: (keyId, params = {}) => this.request(Object.assign({ path: `/api/api_key/delete/${keyId}`, method: "DELETE", format: "json" }, params)),
|
|
850
855
|
/**
|
|
851
|
-
*
|
|
856
|
+
* @description 更改API Key激活状态
|
|
852
857
|
*
|
|
853
858
|
* @tags api key
|
|
854
859
|
* @name DeactivateApiKey
|
|
@@ -857,7 +862,7 @@ class Api extends HttpClient {
|
|
|
857
862
|
*/
|
|
858
863
|
deactivateApiKey: (keyId, data, params = {}) => this.request(Object.assign({ path: `/api/api_key/deactivate/${keyId}`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
859
864
|
/**
|
|
860
|
-
*
|
|
865
|
+
* @description 获取所有过期的API Key
|
|
861
866
|
*
|
|
862
867
|
* @tags api key
|
|
863
868
|
* @name GetAllExpiredApiKeys
|
|
@@ -866,6 +871,17 @@ class Api extends HttpClient {
|
|
|
866
871
|
*/
|
|
867
872
|
getAllExpiredApiKeys: (params = {}) => this.request(Object.assign({ path: `/api/api_key/expired`, method: "GET", format: "json" }, params)),
|
|
868
873
|
};
|
|
874
|
+
this.yuque = {
|
|
875
|
+
/**
|
|
876
|
+
* @description 代理语雀文档API,解决CORS问题 Args: doc_id: 语雀文档ID x_auth_token: 语雀OAuth Token (从请求头获取) Returns: 语雀文档详情
|
|
877
|
+
*
|
|
878
|
+
* @tags yuque
|
|
879
|
+
* @name ProxyYuqueGetDoc
|
|
880
|
+
* @summary Proxy Yuque Get Doc
|
|
881
|
+
* @request GET:/api/yuque/repos/docs/{doc_id}
|
|
882
|
+
*/
|
|
883
|
+
proxyYuqueGetDoc: (docId, params = {}) => this.request(Object.assign({ path: `/api/yuque/repos/docs/${docId}`, method: "GET", format: "json" }, params)),
|
|
884
|
+
};
|
|
869
885
|
this.healthChecker = {
|
|
870
886
|
/**
|
|
871
887
|
* No description
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@petercatai/whisker-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.202511191614",
|
|
4
4
|
"description": "Generated API client (Production)",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"types": "dist/api.d.ts",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"tag": "latest"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@types/node": "^24.
|
|
20
|
-
"axios": "^1.
|
|
21
|
-
"typescript": "^5.9.
|
|
19
|
+
"@types/node": "^24.10.1",
|
|
20
|
+
"axios": "^1.13.2",
|
|
21
|
+
"typescript": "^5.9.3"
|
|
22
22
|
}
|
|
23
23
|
}
|