tencentcloud-sdk-nodejs 4.1.315 → 4.1.317
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/es/common/sdk_version.js +1 -1
- package/es/services/aiart/v20221229/aiart_client.js +23 -38
- package/es/services/apm/v20210622/apm_client.js +3 -0
- package/es/services/databuddy/v20260715/databuddy_client.js +53 -35
- package/es/services/dbbrain/v20210527/dbbrain_client.js +3 -0
- package/es/services/hai/v20230812/hai_client.js +3 -0
- package/es/services/index.js +1 -0
- package/es/services/live/v20180801/live_client.js +37 -10
- package/es/services/tcb/v20180608/tcb_client.js +9 -0
- package/es/services/teo/v20220901/teo_client.js +6 -0
- package/es/services/trocket/v20230308/trocket_client.js +25 -4
- package/es/services/workbuddyenterprise/index.js +4 -0
- package/es/services/workbuddyenterprise/v20260709/index.js +6 -0
- package/es/services/workbuddyenterprise/v20260709/workbuddyenterprise_client.js +81 -0
- package/es/services/workbuddyenterprise/v20260709/workbuddyenterprise_models.js +1 -0
- package/package.json +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/aiart/v20221229/aiart_client.d.ts +59 -84
- package/tencentcloud/services/aiart/v20221229/aiart_client.js +73 -108
- package/tencentcloud/services/aiart/v20221229/aiart_models.d.ts +83 -376
- package/tencentcloud/services/apm/v20210622/apm_client.d.ts +5 -1
- package/tencentcloud/services/apm/v20210622/apm_client.js +6 -0
- package/tencentcloud/services/apm/v20210622/apm_models.d.ts +13 -0
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +10 -6
- package/tencentcloud/services/clb/v20180317/clb_client.d.ts +1 -1
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +181 -81
- package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +217 -1
- package/tencentcloud/services/csip/v20221121/csip_models.d.ts +25 -13
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +12 -0
- package/tencentcloud/services/databuddy/v20260715/databuddy_client.d.ts +102 -78
- package/tencentcloud/services/databuddy/v20260715/databuddy_client.js +132 -96
- package/tencentcloud/services/databuddy/v20260715/databuddy_models.d.ts +743 -342
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.d.ts +5 -1
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.js +6 -0
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +288 -18
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +50 -42
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +31 -45
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +1 -1
- package/tencentcloud/services/fwm/v20250611/fwm_models.d.ts +6 -6
- package/tencentcloud/services/hai/v20230812/hai_client.d.ts +5 -1
- package/tencentcloud/services/hai/v20230812/hai_client.js +6 -0
- package/tencentcloud/services/hai/v20230812/hai_models.d.ts +73 -43
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_client.d.ts +63 -21
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_client.js +63 -21
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +3 -1
- package/tencentcloud/services/iss/v20230517/iss_models.d.ts +118 -79
- package/tencentcloud/services/live/v20180801/live_client.d.ts +47 -11
- package/tencentcloud/services/live/v20180801/live_client.js +69 -15
- package/tencentcloud/services/live/v20180801/live_models.d.ts +547 -177
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +27 -18
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +0 -8
- package/tencentcloud/services/tcb/v20180608/tcb_client.d.ts +13 -1
- package/tencentcloud/services/tcb/v20180608/tcb_client.js +18 -0
- package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +131 -0
- package/tencentcloud/services/tdai/v20250717/tdai_models.d.ts +8 -0
- package/tencentcloud/services/teo/v20220901/teo_client.d.ts +13 -1
- package/tencentcloud/services/teo/v20220901/teo_client.js +16 -0
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +183 -66
- package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +1 -1
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +42 -39
- package/tencentcloud/services/trocket/v20230308/trocket_client.d.ts +40 -12
- package/tencentcloud/services/trocket/v20230308/trocket_client.js +55 -13
- package/tencentcloud/services/trocket/v20230308/trocket_models.d.ts +629 -172
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +206 -143
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +24 -25
- package/tencentcloud/services/workbuddyenterprise/index.d.ts +6 -0
- package/tencentcloud/services/workbuddyenterprise/index.js +7 -0
- package/tencentcloud/services/workbuddyenterprise/v20260709/index.d.ts +6 -0
- package/tencentcloud/services/workbuddyenterprise/v20260709/index.js +10 -0
- package/tencentcloud/services/workbuddyenterprise/v20260709/workbuddyenterprise_client.d.ts +110 -0
- package/tencentcloud/services/workbuddyenterprise/v20260709/workbuddyenterprise_client.js +181 -0
- package/tencentcloud/services/workbuddyenterprise/v20260709/workbuddyenterprise_models.d.ts +2100 -0
- package/tencentcloud/services/workbuddyenterprise/v20260709/workbuddyenterprise_models.js +18 -0
|
@@ -48,7 +48,7 @@ export interface ApiSecCustomEventRule {
|
|
|
48
48
|
*/
|
|
49
49
|
export interface DeleteOwaspWhiteRuleRequest {
|
|
50
50
|
/**
|
|
51
|
-
* 规则白名单ID
|
|
51
|
+
* 规则白名单ID列表,可通过 [DescribeOwaspWhiteRule](https://cloud.tencent.com/document/product/627/122155) 接口获取
|
|
52
52
|
*/
|
|
53
53
|
Ids: Array<number | bigint>;
|
|
54
54
|
/**
|
|
@@ -2863,7 +2863,7 @@ export interface ModifyApiSecEventChangeRequest {
|
|
|
2863
2863
|
*/
|
|
2864
2864
|
export interface DescribePostCLSFlowsRequest {
|
|
2865
2865
|
/**
|
|
2866
|
-
* 1-访问日志,2
|
|
2866
|
+
* <p>1-访问日志,2-攻击日志,默认为访问日志。</p>
|
|
2867
2867
|
*/
|
|
2868
2868
|
LogType?: number;
|
|
2869
2869
|
}
|
|
@@ -3097,7 +3097,7 @@ export interface BotIdDetail {
|
|
|
3097
3097
|
*/
|
|
3098
3098
|
export interface DescribePostCLSFlowsResponse {
|
|
3099
3099
|
/**
|
|
3100
|
-
*
|
|
3100
|
+
* <p>客户的投递流列表</p>
|
|
3101
3101
|
*/
|
|
3102
3102
|
PostCLSFlows?: Array<PostCLSFlowInfo>;
|
|
3103
3103
|
/**
|
|
@@ -4239,15 +4239,15 @@ export interface ModifyUserSignatureClassRequest {
|
|
|
4239
4239
|
*/
|
|
4240
4240
|
export interface HostDel {
|
|
4241
4241
|
/**
|
|
4242
|
-
*
|
|
4242
|
+
* <p>域名</p>
|
|
4243
4243
|
*/
|
|
4244
4244
|
Domain: string;
|
|
4245
4245
|
/**
|
|
4246
|
-
*
|
|
4246
|
+
* <p>域名ID,使用DescribeDomains接口可以查询获取</p>
|
|
4247
4247
|
*/
|
|
4248
4248
|
DomainId: string;
|
|
4249
4249
|
/**
|
|
4250
|
-
*
|
|
4250
|
+
* <p>实例类型</p>
|
|
4251
4251
|
*/
|
|
4252
4252
|
InstanceID?: string;
|
|
4253
4253
|
}
|
|
@@ -7837,11 +7837,11 @@ export interface ModifyProtectGroupRequest {
|
|
|
7837
7837
|
*/
|
|
7838
7838
|
export interface DestroyPostCKafkaFlowRequest {
|
|
7839
7839
|
/**
|
|
7840
|
-
*
|
|
7840
|
+
* <p>投递流的流ID,可以通过DescribePostCKafkaFlows接口获取</p>
|
|
7841
7841
|
*/
|
|
7842
7842
|
FlowId: number;
|
|
7843
7843
|
/**
|
|
7844
|
-
* 1-访问日志,2
|
|
7844
|
+
* <p>1-访问日志,2-攻击日志,默认为访问日志。</p>
|
|
7845
7845
|
*/
|
|
7846
7846
|
LogType?: number;
|
|
7847
7847
|
}
|
|
@@ -11401,64 +11401,63 @@ export interface AccessLogInfo {
|
|
|
11401
11401
|
*/
|
|
11402
11402
|
export interface ExportInfo {
|
|
11403
11403
|
/**
|
|
11404
|
-
*
|
|
11404
|
+
* <p>日志主题ID</p>
|
|
11405
11405
|
*/
|
|
11406
11406
|
TopicId?: string;
|
|
11407
11407
|
/**
|
|
11408
|
-
*
|
|
11408
|
+
* <p>日志导出任务ID</p>
|
|
11409
11409
|
*/
|
|
11410
11410
|
ExportId?: string;
|
|
11411
11411
|
/**
|
|
11412
|
-
*
|
|
11412
|
+
* <p>日志导出查询语句</p>
|
|
11413
11413
|
*/
|
|
11414
11414
|
Query?: string;
|
|
11415
11415
|
/**
|
|
11416
|
-
*
|
|
11416
|
+
* <p>日志导出文件名</p>
|
|
11417
11417
|
*/
|
|
11418
11418
|
FileName?: string;
|
|
11419
11419
|
/**
|
|
11420
|
-
*
|
|
11420
|
+
* <p>日志文件大小</p><p>单位:字节</p>
|
|
11421
11421
|
*/
|
|
11422
11422
|
FileSize?: number;
|
|
11423
11423
|
/**
|
|
11424
|
-
*
|
|
11424
|
+
* <p>日志导出时间排序</p>
|
|
11425
11425
|
*/
|
|
11426
11426
|
Order?: string;
|
|
11427
11427
|
/**
|
|
11428
|
-
*
|
|
11428
|
+
* <p>日志导出格式</p>
|
|
11429
11429
|
*/
|
|
11430
11430
|
Format?: string;
|
|
11431
11431
|
/**
|
|
11432
|
-
*
|
|
11432
|
+
* <p>日志导出数量</p>
|
|
11433
11433
|
*/
|
|
11434
11434
|
Count?: number;
|
|
11435
11435
|
/**
|
|
11436
|
-
*
|
|
11436
|
+
* <p>日志下载状态。Processing:导出正在进行中,Completed:导出完成,Failed:导出失败,Expired:日志导出已过期(三天有效期), Queuing 排队中</p>
|
|
11437
11437
|
*/
|
|
11438
11438
|
Status?: string;
|
|
11439
11439
|
/**
|
|
11440
|
-
*
|
|
11440
|
+
* <p>日志导出起始时间</p>
|
|
11441
11441
|
*/
|
|
11442
11442
|
From?: number;
|
|
11443
11443
|
/**
|
|
11444
|
-
*
|
|
11444
|
+
* <p>日志导出结束时间</p>
|
|
11445
11445
|
*/
|
|
11446
11446
|
To?: number;
|
|
11447
11447
|
/**
|
|
11448
|
-
*
|
|
11448
|
+
* <p>日志导出路径,有效期一个小时,请尽快使用该路径下载。</p>
|
|
11449
11449
|
*/
|
|
11450
11450
|
CosPath?: string;
|
|
11451
11451
|
/**
|
|
11452
|
-
*
|
|
11452
|
+
* <p>日志导出创建时间</p>
|
|
11453
11453
|
*/
|
|
11454
11454
|
CreateTime?: string;
|
|
11455
11455
|
/**
|
|
11456
|
-
*
|
|
11457
|
-
0:Lucene语法,1:CQL语法。
|
|
11456
|
+
* <p>语法规则。 默认值为0。<br>0:Lucene语法,1:CQL语法。</p>
|
|
11458
11457
|
*/
|
|
11459
11458
|
SyntaxRule?: number;
|
|
11460
11459
|
/**
|
|
11461
|
-
*
|
|
11460
|
+
* <p>导出字段</p>
|
|
11462
11461
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
11463
11462
|
*/
|
|
11464
11463
|
DerivedFields?: Array<string>;
|
|
@@ -11564,7 +11563,7 @@ export interface DescribeDomainDetailsSaasResponse {
|
|
|
11564
11563
|
*/
|
|
11565
11564
|
export interface DeleteExportRequest {
|
|
11566
11565
|
/**
|
|
11567
|
-
*
|
|
11566
|
+
* <p>日志导出ID,可以通过DescribeExports接口获取</p>
|
|
11568
11567
|
*/
|
|
11569
11568
|
ExportId: string;
|
|
11570
11569
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v20260709 = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Models = tslib_1.__importStar(require("./workbuddyenterprise_models"));
|
|
6
|
+
const workbuddyenterprise_client_1 = require("./workbuddyenterprise_client");
|
|
7
|
+
exports.v20260709 = {
|
|
8
|
+
Client: workbuddyenterprise_client_1.Client,
|
|
9
|
+
Models: Models
|
|
10
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
|
+
import { ClientConfig } from "../../../common/interface";
|
|
3
|
+
import { DeleteAgentRequest, DescribeAgentResponse, DescribeExpertListRequest, DescribeMessageEventListResponse, UnbindExternalAgentRequest, DescribeBuiltinModelListResponse, CreateAgentVersionResponse, DescribeExternalAgentResponse, ModifyAgentVersionResponse, BindExternalAgentResponse, BindExternalAgentRequest, ModifyAgentRoutingRequest, DescribeExternalAgentListResponse, DescribeExternalAgentRequest, CreateAgentVersionRequest, ModifyAgentVersionRequest, CreateAgentRequest, DescribeAgentVersionRequest, ModifyAgentRequest, DescribeAgentSessionResponse, CreateAgentResponse, DescribeAgentSessionRequest, UnbindExternalAgentResponse, DescribeSkillListRequest, DescribeAgentSessionListResponse, DescribeConnectorListResponse, DescribeAgentListResponse, CreateAgentSessionResponse, DescribeBuiltinModelListRequest, CreateAgentSessionRequest, CreateAgentVersionFromSourceRequest, DescribeAgentVersionListResponse, DescribeExternalAgentListRequest, ModifyAgentA2AConfigRequest, CreateAgentVersionFromSourceResponse, DescribeAgentListRequest, ModifyAgentA2AConfigResponse, DescribeConnectorListRequest, DescribeAgentVersionResponse, DescribeAgentSessionListRequest, MigrateAgentSessionResponse, DeleteAgentResponse, DescribeAgentRequest, DescribeSkillListResponse, DescribeMessageEventListRequest, DescribeExpertListResponse, DescribeAgentVersionListRequest, ModifyAgentRoutingResponse, ModifyAgentResponse, MigrateAgentSessionRequest } from "./workbuddyenterprise_models";
|
|
4
|
+
/**
|
|
5
|
+
* workbuddyenterprise client
|
|
6
|
+
* @class
|
|
7
|
+
*/
|
|
8
|
+
export declare class Client extends AbstractClient {
|
|
9
|
+
constructor(clientConfig: ClientConfig);
|
|
10
|
+
/**
|
|
11
|
+
* 分页查询 Expert 列表,支持关键词、分类、发布状态过滤。
|
|
12
|
+
*/
|
|
13
|
+
DescribeExpertList(req: DescribeExpertListRequest, cb?: (error: string, rep: DescribeExpertListResponse) => void): Promise<DescribeExpertListResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* 解除外部 agent 与 managed agent 的绑定
|
|
16
|
+
*/
|
|
17
|
+
UnbindExternalAgent(req: UnbindExternalAgentRequest, cb?: (error: string, rep: UnbindExternalAgentResponse) => void): Promise<UnbindExternalAgentResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* 查询单个 Agent 会话详情:返回会话基础信息(会话名称 / Agent / 版本 / 状态 / 来源 / 发起人)与可用的聊天接入点列表(EndpointSet)。数据面鉴权走 DescribeUserAccessToken 的用户级访问令牌。
|
|
20
|
+
*/
|
|
21
|
+
DescribeAgentSession(req: DescribeAgentSessionRequest, cb?: (error: string, rep: DescribeAgentSessionResponse) => void): Promise<DescribeAgentSessionResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* 修改 Agent 的 A2A 配置。A2AEnabled 是 Agent 级唯一开关,与具体版本和流量分发策略无关。
|
|
24
|
+
*/
|
|
25
|
+
ModifyAgentA2AConfig(req: ModifyAgentA2AConfigRequest, cb?: (error: string, rep: ModifyAgentA2AConfigResponse) => void): Promise<ModifyAgentA2AConfigResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* 查询单个版本的详细信息,包括 Manifest、Model、状态等。
|
|
28
|
+
*/
|
|
29
|
+
DescribeAgentVersion(req: DescribeAgentVersionRequest, cb?: (error: string, rep: DescribeAgentVersionResponse) => void): Promise<DescribeAgentVersionResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* 列某 managed agent 绑定的外部 agent 列表
|
|
32
|
+
*/
|
|
33
|
+
DescribeExternalAgentList(req: DescribeExternalAgentListRequest, cb?: (error: string, rep: DescribeExternalAgentListResponse) => void): Promise<DescribeExternalAgentListResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* 查询指定 Agent 下的版本列表,支持分页和版本类型过滤。
|
|
36
|
+
*/
|
|
37
|
+
DescribeAgentVersionList(req: DescribeAgentVersionListRequest, cb?: (error: string, rep: DescribeAgentVersionListResponse) => void): Promise<DescribeAgentVersionListResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* 将指定会话迁移到目标版本。SessionID / RuntimeID 保持不变,通过 AgentOS UpdateSession 在原沙箱上更新 manifest 到新版本;AgentId 必须与原 Session 一致(禁止跨 Agent 迁移);ChatToken 复用旧值不轮转。
|
|
40
|
+
*/
|
|
41
|
+
MigrateAgentSession(req: MigrateAgentSessionRequest, cb?: (error: string, rep: MigrateAgentSessionResponse) => void): Promise<MigrateAgentSessionResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* 覆盖式写入 Agent 路由配置(版本权重)。所有 VersionId 必须属于同一 Agent 且未弃用;允许空数组(下线 Agent 对外流量);非空时权重总和须等于 1。
|
|
44
|
+
*/
|
|
45
|
+
ModifyAgentRouting(req: ModifyAgentRoutingRequest, cb?: (error: string, rep: ModifyAgentRoutingResponse) => void): Promise<ModifyAgentRoutingResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* 查询指定企业下的连接器列表(PageNumber/PageSize 分页,支持名称模糊与状态、来源过滤)。
|
|
48
|
+
*/
|
|
49
|
+
DescribeConnectorList(req: DescribeConnectorListRequest, cb?: (error: string, rep: DescribeConnectorListResponse) => void): Promise<DescribeConnectorListResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* 分页查询 Skill 列表,支持关键词、分类、发布状态过滤。
|
|
52
|
+
*/
|
|
53
|
+
DescribeSkillList(req: DescribeSkillListRequest, cb?: (error: string, rep: DescribeSkillListResponse) => void): Promise<DescribeSkillListResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* 分页查询企业下所有会话(跨 Agent):支持按 SessionId / Status / AgentId / UserId 过滤,按创建 / 更新时间排序,返回会话摘要列表。
|
|
56
|
+
*/
|
|
57
|
+
DescribeAgentSessionList(req: DescribeAgentSessionListRequest, cb?: (error: string, rep: DescribeAgentSessionListResponse) => void): Promise<DescribeAgentSessionListResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* 查询当前企业的内置模型列表,支持分页与过滤。内置模型由平台预置,企业可按需启用/停用。过滤字段支持:ModelId(模型ID,模糊)、Name(模型名称,模糊)、Vendor(供应商,模糊)、Status(状态,精确:enabled/disabled)。
|
|
60
|
+
*/
|
|
61
|
+
DescribeBuiltinModelList(req: DescribeBuiltinModelListRequest, cb?: (error: string, rep: DescribeBuiltinModelListResponse) => void): Promise<DescribeBuiltinModelListResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* 修改 Agent 基础信息(名称、描述、头像)。AgentName / Description / AvatarUrl 均为可选,仅传递需要更新的字段。
|
|
64
|
+
*/
|
|
65
|
+
ModifyAgent(req: ModifyAgentRequest, cb?: (error: string, rep: ModifyAgentResponse) => void): Promise<ModifyAgentResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* 创建一个新的 Managed Agent,同时自动生成 default 版本。配置采用 Manifest v2.0。
|
|
68
|
+
*/
|
|
69
|
+
CreateAgent(req: CreateAgentRequest, cb?: (error: string, rep: CreateAgentResponse) => void): Promise<CreateAgentResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* 基于源版本创建新版本:Manifest / Model / Description 传入即整体覆盖,未传则沿用源版本。
|
|
72
|
+
*/
|
|
73
|
+
CreateAgentVersionFromSource(req: CreateAgentVersionFromSourceRequest, cb?: (error: string, rep: CreateAgentVersionFromSourceResponse) => void): Promise<CreateAgentVersionFromSourceResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* 原地更新 default 或 test 版本的 Manifest / Model / Description / SandboxTemplateId / ConnectorSet(prod 版本冻结不可修改),五个可选字段至少提供一个。ConnectorSet 为全量覆盖语义:缺省表示不改动连接器绑定;空数组表示解绑全部连接器。
|
|
76
|
+
*/
|
|
77
|
+
ModifyAgentVersion(req: ModifyAgentVersionRequest, cb?: (error: string, rep: ModifyAgentVersionResponse) => void): Promise<ModifyAgentVersionResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* 把外部 agent 绑定到某 managed agent
|
|
80
|
+
*/
|
|
81
|
+
BindExternalAgent(req: BindExternalAgentRequest, cb?: (error: string, rep: BindExternalAgentResponse) => void): Promise<BindExternalAgentResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* 查询某 managed agent 绑定的单个外部 agent 详情
|
|
84
|
+
*/
|
|
85
|
+
DescribeExternalAgent(req: DescribeExternalAgentRequest, cb?: (error: string, rep: DescribeExternalAgentResponse) => void): Promise<DescribeExternalAgentResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* 为指定 Agent 创建新的会话,返回会话 ID 和聊天凭证。
|
|
88
|
+
*/
|
|
89
|
+
CreateAgentSession(req: CreateAgentSessionRequest, cb?: (error: string, rep: CreateAgentSessionResponse) => void): Promise<CreateAgentSessionResponse>;
|
|
90
|
+
/**
|
|
91
|
+
* 按 Session 分页查询消息事件
|
|
92
|
+
*/
|
|
93
|
+
DescribeMessageEventList(req: DescribeMessageEventListRequest, cb?: (error: string, rep: DescribeMessageEventListResponse) => void): Promise<DescribeMessageEventListResponse>;
|
|
94
|
+
/**
|
|
95
|
+
* 查询单个 Agent 的详细信息,包括基础配置和路由配置。
|
|
96
|
+
*/
|
|
97
|
+
DescribeAgent(req: DescribeAgentRequest, cb?: (error: string, rep: DescribeAgentResponse) => void): Promise<DescribeAgentResponse>;
|
|
98
|
+
/**
|
|
99
|
+
* 删除指定的 Agent 及其所有版本。删除后不可恢复。
|
|
100
|
+
*/
|
|
101
|
+
DeleteAgent(req: DeleteAgentRequest, cb?: (error: string, rep: DeleteAgentResponse) => void): Promise<DeleteAgentResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* 完全新建版本:外部准备完整 Manifest 后直接传入,不引用任何已有版本。
|
|
104
|
+
*/
|
|
105
|
+
CreateAgentVersion(req: CreateAgentVersionRequest, cb?: (error: string, rep: CreateAgentVersionResponse) => void): Promise<CreateAgentVersionResponse>;
|
|
106
|
+
/**
|
|
107
|
+
* 查询当前企业的 Agent 列表,支持分页、过滤和排序。
|
|
108
|
+
*/
|
|
109
|
+
DescribeAgentList(req: DescribeAgentListRequest, cb?: (error: string, rep: DescribeAgentListResponse) => void): Promise<DescribeAgentListResponse>;
|
|
110
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) 2018 Tencent. All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing,
|
|
15
|
+
* software distributed under the License is distributed on an
|
|
16
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
+
* KIND, either express or implied. See the License for the
|
|
18
|
+
* specific language governing permissions and limitations
|
|
19
|
+
* under the License.
|
|
20
|
+
*/
|
|
21
|
+
const abstract_client_1 = require("../../../common/abstract_client");
|
|
22
|
+
/**
|
|
23
|
+
* workbuddyenterprise client
|
|
24
|
+
* @class
|
|
25
|
+
*/
|
|
26
|
+
class Client extends abstract_client_1.AbstractClient {
|
|
27
|
+
constructor(clientConfig) {
|
|
28
|
+
super("workbuddyenterprise.tencentcloudapi.com", "2026-07-09", clientConfig);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 分页查询 Expert 列表,支持关键词、分类、发布状态过滤。
|
|
32
|
+
*/
|
|
33
|
+
async DescribeExpertList(req, cb) {
|
|
34
|
+
return this.request("DescribeExpertList", req, cb);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 解除外部 agent 与 managed agent 的绑定
|
|
38
|
+
*/
|
|
39
|
+
async UnbindExternalAgent(req, cb) {
|
|
40
|
+
return this.request("UnbindExternalAgent", req, cb);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 查询单个 Agent 会话详情:返回会话基础信息(会话名称 / Agent / 版本 / 状态 / 来源 / 发起人)与可用的聊天接入点列表(EndpointSet)。数据面鉴权走 DescribeUserAccessToken 的用户级访问令牌。
|
|
44
|
+
*/
|
|
45
|
+
async DescribeAgentSession(req, cb) {
|
|
46
|
+
return this.request("DescribeAgentSession", req, cb);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* 修改 Agent 的 A2A 配置。A2AEnabled 是 Agent 级唯一开关,与具体版本和流量分发策略无关。
|
|
50
|
+
*/
|
|
51
|
+
async ModifyAgentA2AConfig(req, cb) {
|
|
52
|
+
return this.request("ModifyAgentA2AConfig", req, cb);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 查询单个版本的详细信息,包括 Manifest、Model、状态等。
|
|
56
|
+
*/
|
|
57
|
+
async DescribeAgentVersion(req, cb) {
|
|
58
|
+
return this.request("DescribeAgentVersion", req, cb);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 列某 managed agent 绑定的外部 agent 列表
|
|
62
|
+
*/
|
|
63
|
+
async DescribeExternalAgentList(req, cb) {
|
|
64
|
+
return this.request("DescribeExternalAgentList", req, cb);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* 查询指定 Agent 下的版本列表,支持分页和版本类型过滤。
|
|
68
|
+
*/
|
|
69
|
+
async DescribeAgentVersionList(req, cb) {
|
|
70
|
+
return this.request("DescribeAgentVersionList", req, cb);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* 将指定会话迁移到目标版本。SessionID / RuntimeID 保持不变,通过 AgentOS UpdateSession 在原沙箱上更新 manifest 到新版本;AgentId 必须与原 Session 一致(禁止跨 Agent 迁移);ChatToken 复用旧值不轮转。
|
|
74
|
+
*/
|
|
75
|
+
async MigrateAgentSession(req, cb) {
|
|
76
|
+
return this.request("MigrateAgentSession", req, cb);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* 覆盖式写入 Agent 路由配置(版本权重)。所有 VersionId 必须属于同一 Agent 且未弃用;允许空数组(下线 Agent 对外流量);非空时权重总和须等于 1。
|
|
80
|
+
*/
|
|
81
|
+
async ModifyAgentRouting(req, cb) {
|
|
82
|
+
return this.request("ModifyAgentRouting", req, cb);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* 查询指定企业下的连接器列表(PageNumber/PageSize 分页,支持名称模糊与状态、来源过滤)。
|
|
86
|
+
*/
|
|
87
|
+
async DescribeConnectorList(req, cb) {
|
|
88
|
+
return this.request("DescribeConnectorList", req, cb);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* 分页查询 Skill 列表,支持关键词、分类、发布状态过滤。
|
|
92
|
+
*/
|
|
93
|
+
async DescribeSkillList(req, cb) {
|
|
94
|
+
return this.request("DescribeSkillList", req, cb);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* 分页查询企业下所有会话(跨 Agent):支持按 SessionId / Status / AgentId / UserId 过滤,按创建 / 更新时间排序,返回会话摘要列表。
|
|
98
|
+
*/
|
|
99
|
+
async DescribeAgentSessionList(req, cb) {
|
|
100
|
+
return this.request("DescribeAgentSessionList", req, cb);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* 查询当前企业的内置模型列表,支持分页与过滤。内置模型由平台预置,企业可按需启用/停用。过滤字段支持:ModelId(模型ID,模糊)、Name(模型名称,模糊)、Vendor(供应商,模糊)、Status(状态,精确:enabled/disabled)。
|
|
104
|
+
*/
|
|
105
|
+
async DescribeBuiltinModelList(req, cb) {
|
|
106
|
+
return this.request("DescribeBuiltinModelList", req, cb);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* 修改 Agent 基础信息(名称、描述、头像)。AgentName / Description / AvatarUrl 均为可选,仅传递需要更新的字段。
|
|
110
|
+
*/
|
|
111
|
+
async ModifyAgent(req, cb) {
|
|
112
|
+
return this.request("ModifyAgent", req, cb);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* 创建一个新的 Managed Agent,同时自动生成 default 版本。配置采用 Manifest v2.0。
|
|
116
|
+
*/
|
|
117
|
+
async CreateAgent(req, cb) {
|
|
118
|
+
return this.request("CreateAgent", req, cb);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* 基于源版本创建新版本:Manifest / Model / Description 传入即整体覆盖,未传则沿用源版本。
|
|
122
|
+
*/
|
|
123
|
+
async CreateAgentVersionFromSource(req, cb) {
|
|
124
|
+
return this.request("CreateAgentVersionFromSource", req, cb);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* 原地更新 default 或 test 版本的 Manifest / Model / Description / SandboxTemplateId / ConnectorSet(prod 版本冻结不可修改),五个可选字段至少提供一个。ConnectorSet 为全量覆盖语义:缺省表示不改动连接器绑定;空数组表示解绑全部连接器。
|
|
128
|
+
*/
|
|
129
|
+
async ModifyAgentVersion(req, cb) {
|
|
130
|
+
return this.request("ModifyAgentVersion", req, cb);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* 把外部 agent 绑定到某 managed agent
|
|
134
|
+
*/
|
|
135
|
+
async BindExternalAgent(req, cb) {
|
|
136
|
+
return this.request("BindExternalAgent", req, cb);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* 查询某 managed agent 绑定的单个外部 agent 详情
|
|
140
|
+
*/
|
|
141
|
+
async DescribeExternalAgent(req, cb) {
|
|
142
|
+
return this.request("DescribeExternalAgent", req, cb);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* 为指定 Agent 创建新的会话,返回会话 ID 和聊天凭证。
|
|
146
|
+
*/
|
|
147
|
+
async CreateAgentSession(req, cb) {
|
|
148
|
+
return this.request("CreateAgentSession", req, cb);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* 按 Session 分页查询消息事件
|
|
152
|
+
*/
|
|
153
|
+
async DescribeMessageEventList(req, cb) {
|
|
154
|
+
return this.request("DescribeMessageEventList", req, cb);
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* 查询单个 Agent 的详细信息,包括基础配置和路由配置。
|
|
158
|
+
*/
|
|
159
|
+
async DescribeAgent(req, cb) {
|
|
160
|
+
return this.request("DescribeAgent", req, cb);
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* 删除指定的 Agent 及其所有版本。删除后不可恢复。
|
|
164
|
+
*/
|
|
165
|
+
async DeleteAgent(req, cb) {
|
|
166
|
+
return this.request("DeleteAgent", req, cb);
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* 完全新建版本:外部准备完整 Manifest 后直接传入,不引用任何已有版本。
|
|
170
|
+
*/
|
|
171
|
+
async CreateAgentVersion(req, cb) {
|
|
172
|
+
return this.request("CreateAgentVersion", req, cb);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* 查询当前企业的 Agent 列表,支持分页、过滤和排序。
|
|
176
|
+
*/
|
|
177
|
+
async DescribeAgentList(req, cb) {
|
|
178
|
+
return this.request("DescribeAgentList", req, cb);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
exports.Client = Client;
|