@petercatai/whisker-client 0.0.1760329074-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 +861 -401
- package/dist/api.js +55 -82
- 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) {
|
|
@@ -159,15 +159,6 @@ var IKnowledgeSourceEnum;
|
|
|
159
159
|
IKnowledgeSourceEnum["CloudStorageImage"] = "cloud_storage_image";
|
|
160
160
|
IKnowledgeSourceEnum["Yuque"] = "yuque";
|
|
161
161
|
})(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
162
|
/** Action */
|
|
172
163
|
var IAction;
|
|
173
164
|
(function (IAction) {
|
|
@@ -338,7 +329,7 @@ class Api extends HttpClient {
|
|
|
338
329
|
this.homePageGet = (params = {}) => this.request(Object.assign({ path: `/`, method: "GET", format: "json" }, params));
|
|
339
330
|
this.knowledge = {
|
|
340
331
|
/**
|
|
341
|
-
* @description
|
|
332
|
+
* @description 添加知识 使用DDD架构创建新的知识,禁止重复的file_sha条目。 通过TaskCoordinationService统一协调知识创建和任务执行,确保事务一致性。
|
|
342
333
|
*
|
|
343
334
|
* @tags knowledge
|
|
344
335
|
* @name AddKnowledge
|
|
@@ -347,7 +338,7 @@ class Api extends HttpClient {
|
|
|
347
338
|
*/
|
|
348
339
|
addKnowledge: (data, params = {}) => this.request(Object.assign({ path: `/api/knowledge/add`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
349
340
|
/**
|
|
350
|
-
*
|
|
341
|
+
* @description 更新知识 使用DDD架构更新知识信息,支持元数据和状态更新。
|
|
351
342
|
*
|
|
352
343
|
* @tags knowledge
|
|
353
344
|
* @name UpdateKnowledge
|
|
@@ -356,7 +347,7 @@ class Api extends HttpClient {
|
|
|
356
347
|
*/
|
|
357
348
|
updateKnowledge: (data, params = {}) => this.request(Object.assign({ path: `/api/knowledge/update`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
358
349
|
/**
|
|
359
|
-
*
|
|
350
|
+
* @description 更新知识启用状态 使用DDD架构更新知识的启用状态。
|
|
360
351
|
*
|
|
361
352
|
* @tags knowledge
|
|
362
353
|
* @name UpdateKnowledgeEnableStatus
|
|
@@ -365,7 +356,7 @@ class Api extends HttpClient {
|
|
|
365
356
|
*/
|
|
366
357
|
updateKnowledgeEnableStatus: (data, params = {}) => this.request(Object.assign({ path: `/api/knowledge/update/enabled`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
367
358
|
/**
|
|
368
|
-
*
|
|
359
|
+
* @description 获取知识列表 使用DDD架构的KnowledgeService进行分页查询,支持条件过滤和排序。
|
|
369
360
|
*
|
|
370
361
|
* @tags knowledge
|
|
371
362
|
* @name GetKnowledgeList
|
|
@@ -374,7 +365,7 @@ class Api extends HttpClient {
|
|
|
374
365
|
*/
|
|
375
366
|
getKnowledgeList: (data, params = {}) => this.request(Object.assign({ path: `/api/knowledge/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
376
367
|
/**
|
|
377
|
-
*
|
|
368
|
+
* @description 根据ID获取知识详情 使用DDD架构获取知识详细信息。
|
|
378
369
|
*
|
|
379
370
|
* @tags knowledge
|
|
380
371
|
* @name GetKnowledgeById
|
|
@@ -383,7 +374,7 @@ class Api extends HttpClient {
|
|
|
383
374
|
*/
|
|
384
375
|
getKnowledgeById: (query, params = {}) => this.request(Object.assign({ path: `/api/knowledge/detail`, method: "GET", query: query, format: "json" }, params)),
|
|
385
376
|
/**
|
|
386
|
-
* @description
|
|
377
|
+
* @description 删除知识 包括级联删除相关的任务和向量数据。
|
|
387
378
|
*
|
|
388
379
|
* @tags knowledge
|
|
389
380
|
* @name DeleteKnowledge
|
|
@@ -400,15 +391,6 @@ class Api extends HttpClient {
|
|
|
400
391
|
* @request GET:/api/knowledge/embedding/models
|
|
401
392
|
*/
|
|
402
393
|
getEmbeddingModelsList: (params = {}) => this.request(Object.assign({ path: `/api/knowledge/embedding/models`, method: "GET", format: "json" }, params)),
|
|
403
|
-
/**
|
|
404
|
-
* @description 处理不同类型的webhook:knowledge, deployment, notification等
|
|
405
|
-
*
|
|
406
|
-
* @tags knowledge
|
|
407
|
-
* @name HandleWebhookApiKnowledgeWebhookTypeSourceAuthInfoKnowledgeBaseIdPost
|
|
408
|
-
* @summary 通用webhook处理器
|
|
409
|
-
* @request POST:/api/knowledge/{webhook_type}/{source}/{auth_info}/{knowledge_base_id}
|
|
410
|
-
*/
|
|
411
|
-
handleWebhookApiKnowledgeWebhookTypeSourceAuthInfoKnowledgeBaseIdPost: (webhookType, source, authInfo, knowledgeBaseId, data, params = {}) => this.request(Object.assign({ path: `/api/knowledge/${webhookType}/${source}/${authInfo}/${knowledgeBaseId}`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
412
394
|
};
|
|
413
395
|
this.retrieval = {
|
|
414
396
|
/**
|
|
@@ -421,7 +403,7 @@ class Api extends HttpClient {
|
|
|
421
403
|
*/
|
|
422
404
|
retrieveKnowledgeContent: (data, params = {}) => this.request(Object.assign({ path: `/api/retrieval/knowledge`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
423
405
|
/**
|
|
424
|
-
* @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id.
|
|
406
|
+
* @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id. 使用DDD架构的RetrievalService进行空间检索。
|
|
425
407
|
*
|
|
426
408
|
* @tags retrieval
|
|
427
409
|
* @name RetrieveSpaceContent
|
|
@@ -430,7 +412,7 @@ class Api extends HttpClient {
|
|
|
430
412
|
*/
|
|
431
413
|
retrieveSpaceContent: (data, params = {}) => this.request(Object.assign({ path: `/api/retrieval/space`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
432
414
|
/**
|
|
433
|
-
* @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id.
|
|
415
|
+
* @description Retrieve chunks within a space_id, for example, given a petercat bot_id, retrieve all chunks under that bot_id. 使用DDD架构的RetrievalService进行检索。
|
|
434
416
|
*
|
|
435
417
|
* @tags retrieval
|
|
436
418
|
* @name Retrieve
|
|
@@ -441,7 +423,7 @@ class Api extends HttpClient {
|
|
|
441
423
|
};
|
|
442
424
|
this.task = {
|
|
443
425
|
/**
|
|
444
|
-
*
|
|
426
|
+
* @description 重启任务 使用DDD架构的TaskCoordinationService进行任务重启并执行。 重试规则: 1. FAILED 或 CANCELED 状态的任务可以重试 2. 创建时间超过30分钟且未成功的任务可以重试
|
|
445
427
|
*
|
|
446
428
|
* @tags task
|
|
447
429
|
* @name RestartTask
|
|
@@ -450,7 +432,7 @@ class Api extends HttpClient {
|
|
|
450
432
|
*/
|
|
451
433
|
restartTask: (data, params = {}) => this.request(Object.assign({ path: `/api/task/restart`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
452
434
|
/**
|
|
453
|
-
*
|
|
435
|
+
* @description 取消任务 使用DDD架构的TaskService进行任务取消。
|
|
454
436
|
*
|
|
455
437
|
* @tags task
|
|
456
438
|
* @name CancelTask
|
|
@@ -459,7 +441,7 @@ class Api extends HttpClient {
|
|
|
459
441
|
*/
|
|
460
442
|
cancelTask: (data, params = {}) => this.request(Object.assign({ path: `/api/task/cancel`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
461
443
|
/**
|
|
462
|
-
*
|
|
444
|
+
* @description 获取任务列表 使用DDD架构的TaskService进行分页查询。
|
|
463
445
|
*
|
|
464
446
|
* @tags task
|
|
465
447
|
* @name GetTaskList
|
|
@@ -468,7 +450,7 @@ class Api extends HttpClient {
|
|
|
468
450
|
*/
|
|
469
451
|
getTaskList: (data, params = {}) => this.request(Object.assign({ path: `/api/task/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
470
452
|
/**
|
|
471
|
-
*
|
|
453
|
+
* @description 获取任务详情 使用DDD架构的TaskService获取任务详情。
|
|
472
454
|
*
|
|
473
455
|
* @tags task
|
|
474
456
|
* @name GetTaskDetail
|
|
@@ -477,7 +459,7 @@ class Api extends HttpClient {
|
|
|
477
459
|
*/
|
|
478
460
|
getTaskDetail: (query, params = {}) => this.request(Object.assign({ path: `/api/task/detail`, method: "GET", query: query, format: "json" }, params)),
|
|
479
461
|
/**
|
|
480
|
-
*
|
|
462
|
+
* @description 删除任务 使用DDD架构的TaskService进行任务删除。
|
|
481
463
|
*
|
|
482
464
|
* @tags task
|
|
483
465
|
* @name DeleteTaskById
|
|
@@ -488,7 +470,7 @@ class Api extends HttpClient {
|
|
|
488
470
|
};
|
|
489
471
|
this.chunk = {
|
|
490
472
|
/**
|
|
491
|
-
*
|
|
473
|
+
* @description 获取Chunk列表
|
|
492
474
|
*
|
|
493
475
|
* @tags chunk
|
|
494
476
|
* @name GetChunkList
|
|
@@ -497,7 +479,7 @@ class Api extends HttpClient {
|
|
|
497
479
|
*/
|
|
498
480
|
getChunkList: (data, params = {}) => this.request(Object.assign({ path: `/api/chunk/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
499
481
|
/**
|
|
500
|
-
*
|
|
482
|
+
* @description 根据ID删除Chunk 使用DDD架构删除指定的Chunk。
|
|
501
483
|
*
|
|
502
484
|
* @tags chunk
|
|
503
485
|
* @name DeleteChunkById
|
|
@@ -506,7 +488,7 @@ class Api extends HttpClient {
|
|
|
506
488
|
*/
|
|
507
489
|
deleteChunkById: (id, modelName, params = {}) => this.request(Object.assign({ path: `/api/chunk/id/${id}/model_name/${modelName}`, method: "DELETE", format: "json" }, params)),
|
|
508
490
|
/**
|
|
509
|
-
*
|
|
491
|
+
* @description 根据ID获取Chunk 使用DDD架构获取指定的Chunk详情。
|
|
510
492
|
*
|
|
511
493
|
* @tags chunk
|
|
512
494
|
* @name GetChunkById
|
|
@@ -515,7 +497,7 @@ class Api extends HttpClient {
|
|
|
515
497
|
*/
|
|
516
498
|
getChunkById: (id, modelName, params = {}) => this.request(Object.assign({ path: `/api/chunk/id/${id}/model_name/${modelName}`, method: "GET", format: "json" }, params)),
|
|
517
499
|
/**
|
|
518
|
-
*
|
|
500
|
+
* @description 添加Chunk 使用DDD架构创建新的Chunk。
|
|
519
501
|
*
|
|
520
502
|
* @tags chunk
|
|
521
503
|
* @name AddChunk
|
|
@@ -524,7 +506,7 @@ class Api extends HttpClient {
|
|
|
524
506
|
*/
|
|
525
507
|
addChunk: (data, params = {}) => this.request(Object.assign({ path: `/api/chunk/add`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
526
508
|
/**
|
|
527
|
-
*
|
|
509
|
+
* @description 更新Chunk 使用DDD架构更新指定的Chunk。
|
|
528
510
|
*
|
|
529
511
|
* @tags chunk
|
|
530
512
|
* @name UpdateChunk
|
|
@@ -535,7 +517,7 @@ class Api extends HttpClient {
|
|
|
535
517
|
};
|
|
536
518
|
this.tenant = {
|
|
537
519
|
/**
|
|
538
|
-
*
|
|
520
|
+
* @description 创建租户
|
|
539
521
|
*
|
|
540
522
|
* @tags tenant
|
|
541
523
|
* @name CreateTenant
|
|
@@ -544,7 +526,7 @@ class Api extends HttpClient {
|
|
|
544
526
|
*/
|
|
545
527
|
createTenant: (data, params = {}) => this.request(Object.assign({ path: `/api/tenant/create`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
546
528
|
/**
|
|
547
|
-
*
|
|
529
|
+
* @description 根据ID查询租户
|
|
548
530
|
*
|
|
549
531
|
* @tags tenant
|
|
550
532
|
* @name GetTenantById
|
|
@@ -553,7 +535,7 @@ class Api extends HttpClient {
|
|
|
553
535
|
*/
|
|
554
536
|
getTenantById: (id, params = {}) => this.request(Object.assign({ path: `/api/tenant/id/${id}`, method: "GET", format: "json" }, params)),
|
|
555
537
|
/**
|
|
556
|
-
*
|
|
538
|
+
* @description 删除租户
|
|
557
539
|
*
|
|
558
540
|
* @tags tenant
|
|
559
541
|
* @name DeleteTenantById
|
|
@@ -562,7 +544,7 @@ class Api extends HttpClient {
|
|
|
562
544
|
*/
|
|
563
545
|
deleteTenantById: (id, params = {}) => this.request(Object.assign({ path: `/api/tenant/${id}`, method: "DELETE", format: "json" }, params)),
|
|
564
546
|
/**
|
|
565
|
-
*
|
|
547
|
+
* @description 更新租户
|
|
566
548
|
*
|
|
567
549
|
* @tags tenant
|
|
568
550
|
* @name UpdateTenant
|
|
@@ -571,7 +553,7 @@ class Api extends HttpClient {
|
|
|
571
553
|
*/
|
|
572
554
|
updateTenant: (data, params = {}) => this.request(Object.assign({ path: `/api/tenant/update`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
573
555
|
/**
|
|
574
|
-
*
|
|
556
|
+
* @description 获取租户列表
|
|
575
557
|
*
|
|
576
558
|
* @tags tenant
|
|
577
559
|
* @name GetTenantList
|
|
@@ -580,7 +562,7 @@ class Api extends HttpClient {
|
|
|
580
562
|
*/
|
|
581
563
|
getTenantList: (query, params = {}) => this.request(Object.assign({ path: `/api/tenant/list`, method: "GET", query: query, format: "json" }, params)),
|
|
582
564
|
/**
|
|
583
|
-
*
|
|
565
|
+
* @description 获取当前租户信息 直接返回认证系统中的租户信息。 get_tenant_with_permissions 已经包含了完整的认证和权限检查。
|
|
584
566
|
*
|
|
585
567
|
* @tags tenant
|
|
586
568
|
* @name GetTenant
|
|
@@ -591,7 +573,7 @@ class Api extends HttpClient {
|
|
|
591
573
|
};
|
|
592
574
|
this.space = {
|
|
593
575
|
/**
|
|
594
|
-
*
|
|
576
|
+
* @description 获取空间列表 使用DDD架构的SpaceService进行分页查询,支持条件过滤和排序。
|
|
595
577
|
*
|
|
596
578
|
* @tags space
|
|
597
579
|
* @name GetSpaceList
|
|
@@ -600,7 +582,7 @@ class Api extends HttpClient {
|
|
|
600
582
|
*/
|
|
601
583
|
getSpaceList: (data, params = {}) => this.request(Object.assign({ path: `/api/space/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
602
584
|
/**
|
|
603
|
-
*
|
|
585
|
+
* @description 创建空间,使用DDD架构创建新的空间,支持KIS集成和元数据配置。
|
|
604
586
|
*
|
|
605
587
|
* @tags space
|
|
606
588
|
* @name AddSpace
|
|
@@ -609,7 +591,7 @@ class Api extends HttpClient {
|
|
|
609
591
|
*/
|
|
610
592
|
addSpace: (data, params = {}) => this.request(Object.assign({ path: `/api/space/add`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
611
593
|
/**
|
|
612
|
-
*
|
|
594
|
+
* @description 删除空间,包括级联删除相关的知识、任务和向量数据。
|
|
613
595
|
*
|
|
614
596
|
* @tags space
|
|
615
597
|
* @name DeleteSpace
|
|
@@ -618,7 +600,7 @@ class Api extends HttpClient {
|
|
|
618
600
|
*/
|
|
619
601
|
deleteSpace: (spaceId, params = {}) => this.request(Object.assign({ path: `/api/space/${spaceId}`, method: "DELETE", format: "json" }, params)),
|
|
620
602
|
/**
|
|
621
|
-
*
|
|
603
|
+
* @description 更新空间 使用DDD架构更新空间信息,支持KIS集成配置更新。
|
|
622
604
|
*
|
|
623
605
|
* @tags space
|
|
624
606
|
* @name UpdateSpace
|
|
@@ -627,7 +609,7 @@ class Api extends HttpClient {
|
|
|
627
609
|
*/
|
|
628
610
|
updateSpace: (spaceId, data, params = {}) => this.request(Object.assign({ path: `/api/space/${spaceId}`, method: "PUT", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
629
611
|
/**
|
|
630
|
-
*
|
|
612
|
+
* @description 根据ID获取空间详情 使用DDD架构获取空间详细信息,包括统计数据。
|
|
631
613
|
*
|
|
632
614
|
* @tags space
|
|
633
615
|
* @name GetSpaceById
|
|
@@ -638,7 +620,7 @@ class Api extends HttpClient {
|
|
|
638
620
|
};
|
|
639
621
|
this.v1 = {
|
|
640
622
|
/**
|
|
641
|
-
*
|
|
623
|
+
* @description 获取系统全局统计信息 使用DDD架构的DashboardService获取系统级别的统计数据。
|
|
642
624
|
*
|
|
643
625
|
* @tags dashboard
|
|
644
626
|
* @name GetGlobalInfo
|
|
@@ -647,23 +629,14 @@ class Api extends HttpClient {
|
|
|
647
629
|
*/
|
|
648
630
|
getGlobalInfo: (params = {}) => this.request(Object.assign({ path: `/api/v1/dashboard/global_info`, method: "GET", format: "json" }, params)),
|
|
649
631
|
/**
|
|
650
|
-
*
|
|
632
|
+
* @description 获取租户日志 使用DDD架构的DashboardService获取租户级别的日志数据。 注意:改为POST方法以支持复杂的查询参数。
|
|
651
633
|
*
|
|
652
634
|
* @tags dashboard
|
|
653
635
|
* @name GetTenantLog
|
|
654
636
|
* @summary Get Tenant Log
|
|
655
|
-
* @request
|
|
656
|
-
*/
|
|
657
|
-
getTenantLog: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/dashboard/tenant_log`, method: "GET", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
658
|
-
/**
|
|
659
|
-
* No description
|
|
660
|
-
*
|
|
661
|
-
* @tags agent
|
|
662
|
-
* @name ProResearchApiV1AgentProResearchPost
|
|
663
|
-
* @summary Pro Research
|
|
664
|
-
* @request POST:/api/v1/agent/pro_research
|
|
637
|
+
* @request POST:/api/v1/dashboard/tenant_log
|
|
665
638
|
*/
|
|
666
|
-
|
|
639
|
+
getTenantLog: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/dashboard/tenant_log`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
667
640
|
/**
|
|
668
641
|
* @description whisker 通用 webhook
|
|
669
642
|
*
|
|
@@ -674,7 +647,7 @@ class Api extends HttpClient {
|
|
|
674
647
|
*/
|
|
675
648
|
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)),
|
|
676
649
|
/**
|
|
677
|
-
*
|
|
650
|
+
* @description 分页获取标签关联列表 使用DDD架构的TaggingService进行分页查询。
|
|
678
651
|
*
|
|
679
652
|
* @tags tagging
|
|
680
653
|
* @name GetTaggingList
|
|
@@ -683,7 +656,7 @@ class Api extends HttpClient {
|
|
|
683
656
|
*/
|
|
684
657
|
getTaggingList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/tagging/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
685
658
|
/**
|
|
686
|
-
*
|
|
659
|
+
* @description 批量新增标签关联 使用DDD架构创建新的标签关联列表。
|
|
687
660
|
*
|
|
688
661
|
* @tags tagging
|
|
689
662
|
* @name AddTaggingList
|
|
@@ -692,7 +665,7 @@ class Api extends HttpClient {
|
|
|
692
665
|
*/
|
|
693
666
|
addTaggingList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/tagging/add_list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
694
667
|
/**
|
|
695
|
-
*
|
|
668
|
+
* @description 删除标签关联 使用DDD架构删除标签关联记录。
|
|
696
669
|
*
|
|
697
670
|
* @tags tagging
|
|
698
671
|
* @name DeleteTaggingById
|
|
@@ -710,7 +683,7 @@ class Api extends HttpClient {
|
|
|
710
683
|
*/
|
|
711
684
|
getTagList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/tag/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
712
685
|
/**
|
|
713
|
-
* @description 批量新增标签
|
|
686
|
+
* @description 批量新增标签
|
|
714
687
|
*
|
|
715
688
|
* @tags tag
|
|
716
689
|
* @name AddTagList
|
|
@@ -728,7 +701,7 @@ class Api extends HttpClient {
|
|
|
728
701
|
*/
|
|
729
702
|
getTagById: (tagId, params = {}) => this.request(Object.assign({ path: `/api/v1/tag/${tagId}`, method: "GET", format: "json" }, params)),
|
|
730
703
|
/**
|
|
731
|
-
*
|
|
704
|
+
* @description 删除标签
|
|
732
705
|
*
|
|
733
706
|
* @tags tag
|
|
734
707
|
* @name DeleteTagById
|
|
@@ -737,7 +710,7 @@ class Api extends HttpClient {
|
|
|
737
710
|
*/
|
|
738
711
|
deleteTagById: (tagId, params = {}) => this.request(Object.assign({ path: `/api/v1/tag/${tagId}`, method: "DELETE", format: "json" }, params)),
|
|
739
712
|
/**
|
|
740
|
-
*
|
|
713
|
+
* @description 更新标签
|
|
741
714
|
*
|
|
742
715
|
* @tags tag
|
|
743
716
|
* @name UpdateTag
|
|
@@ -746,7 +719,7 @@ class Api extends HttpClient {
|
|
|
746
719
|
*/
|
|
747
720
|
updateTag: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/tag/update`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
748
721
|
/**
|
|
749
|
-
*
|
|
722
|
+
* @description 分页获取工件列表 使用DDD架构的ArtifactService进行分页查询。
|
|
750
723
|
*
|
|
751
724
|
* @tags artifact
|
|
752
725
|
* @name GetArtifactList
|
|
@@ -755,7 +728,7 @@ class Api extends HttpClient {
|
|
|
755
728
|
*/
|
|
756
729
|
getArtifactList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
757
730
|
/**
|
|
758
|
-
*
|
|
731
|
+
* @description 批量新增工件 使用DDD架构创建新的工件列表。
|
|
759
732
|
*
|
|
760
733
|
* @tags artifact
|
|
761
734
|
* @name AddArtifactList
|
|
@@ -764,7 +737,7 @@ class Api extends HttpClient {
|
|
|
764
737
|
*/
|
|
765
738
|
addArtifactList: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/add_list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
766
739
|
/**
|
|
767
|
-
*
|
|
740
|
+
* @description 获取工件详情 使用DDD架构获取工件详细信息。
|
|
768
741
|
*
|
|
769
742
|
* @tags artifact
|
|
770
743
|
* @name GetArtifactById
|
|
@@ -773,7 +746,7 @@ class Api extends HttpClient {
|
|
|
773
746
|
*/
|
|
774
747
|
getArtifactById: (artifactId, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/${artifactId}`, method: "GET", format: "json" }, params)),
|
|
775
748
|
/**
|
|
776
|
-
*
|
|
749
|
+
* @description 删除工件 使用DDD架构删除工件记录。
|
|
777
750
|
*
|
|
778
751
|
* @tags artifact
|
|
779
752
|
* @name DeleteArtifactById
|
|
@@ -782,18 +755,18 @@ class Api extends HttpClient {
|
|
|
782
755
|
*/
|
|
783
756
|
deleteArtifactById: (artifactId, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/${artifactId}`, method: "DELETE", format: "json" }, params)),
|
|
784
757
|
/**
|
|
785
|
-
*
|
|
758
|
+
* @description 更新工件空间绑定 使用DDD架构更新工件的空间关联。
|
|
786
759
|
*
|
|
787
760
|
* @tags artifact
|
|
788
761
|
* @name UpdateArtifactSpaceId
|
|
789
762
|
* @summary Update Artifact Space Id
|
|
790
|
-
* @request POST:/api/v1/artifact/
|
|
763
|
+
* @request POST:/api/v1/artifact/update/space_id
|
|
791
764
|
*/
|
|
792
|
-
updateArtifactSpaceId: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/
|
|
765
|
+
updateArtifactSpaceId: (data, params = {}) => this.request(Object.assign({ path: `/api/v1/artifact/update/space_id`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
793
766
|
};
|
|
794
767
|
this.rule = {
|
|
795
768
|
/**
|
|
796
|
-
*
|
|
769
|
+
* @description 获取租户全局规则 使用DDD架构的RuleService获取租户级别的规则配置。
|
|
797
770
|
*
|
|
798
771
|
* @tags rule
|
|
799
772
|
* @name GetGlobalRule
|
|
@@ -802,7 +775,7 @@ class Api extends HttpClient {
|
|
|
802
775
|
*/
|
|
803
776
|
getGlobalRule: (params = {}) => this.request(Object.assign({ path: `/api/rule/global`, method: "GET", format: "json" }, params)),
|
|
804
777
|
/**
|
|
805
|
-
*
|
|
778
|
+
* @description 获取空间规则 使用DDD架构的RuleService获取空间级别的规则配置。
|
|
806
779
|
*
|
|
807
780
|
* @tags rule
|
|
808
781
|
* @name GetSpaceRule
|
|
@@ -813,7 +786,7 @@ class Api extends HttpClient {
|
|
|
813
786
|
};
|
|
814
787
|
this.apiKey = {
|
|
815
788
|
/**
|
|
816
|
-
*
|
|
789
|
+
* @description 创建API Key
|
|
817
790
|
*
|
|
818
791
|
* @tags api key
|
|
819
792
|
* @name CreateApiKey
|
|
@@ -822,7 +795,7 @@ class Api extends HttpClient {
|
|
|
822
795
|
*/
|
|
823
796
|
createApiKey: (data, params = {}) => this.request(Object.assign({ path: `/api/api_key/create`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
824
797
|
/**
|
|
825
|
-
*
|
|
798
|
+
* @description 更新API Key
|
|
826
799
|
*
|
|
827
800
|
* @tags api key
|
|
828
801
|
* @name UpdateApiKey
|
|
@@ -831,7 +804,7 @@ class Api extends HttpClient {
|
|
|
831
804
|
*/
|
|
832
805
|
updateApiKey: (data, params = {}) => this.request(Object.assign({ path: `/api/api_key/update`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
833
806
|
/**
|
|
834
|
-
*
|
|
807
|
+
* @description 获取API Key列表
|
|
835
808
|
*
|
|
836
809
|
* @tags api key
|
|
837
810
|
* @name GetApiKeyList
|
|
@@ -840,7 +813,7 @@ class Api extends HttpClient {
|
|
|
840
813
|
*/
|
|
841
814
|
getApiKeyList: (data, params = {}) => this.request(Object.assign({ path: `/api/api_key/list`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
842
815
|
/**
|
|
843
|
-
*
|
|
816
|
+
* @description 删除API Key
|
|
844
817
|
*
|
|
845
818
|
* @tags api key
|
|
846
819
|
* @name DeleteApiKey
|
|
@@ -849,7 +822,7 @@ class Api extends HttpClient {
|
|
|
849
822
|
*/
|
|
850
823
|
deleteApiKey: (keyId, params = {}) => this.request(Object.assign({ path: `/api/api_key/delete/${keyId}`, method: "DELETE", format: "json" }, params)),
|
|
851
824
|
/**
|
|
852
|
-
*
|
|
825
|
+
* @description 更改API Key激活状态
|
|
853
826
|
*
|
|
854
827
|
* @tags api key
|
|
855
828
|
* @name DeactivateApiKey
|
|
@@ -858,7 +831,7 @@ class Api extends HttpClient {
|
|
|
858
831
|
*/
|
|
859
832
|
deactivateApiKey: (keyId, data, params = {}) => this.request(Object.assign({ path: `/api/api_key/deactivate/${keyId}`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
860
833
|
/**
|
|
861
|
-
*
|
|
834
|
+
* @description 获取所有过期的API Key
|
|
862
835
|
*
|
|
863
836
|
* @tags api key
|
|
864
837
|
* @name GetAllExpiredApiKeys
|
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
|
}
|