tencentcloud-sdk-nodejs-cngw 4.1.270 → 4.1.284
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.
|
@@ -105,6 +105,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
105
105
|
async ModifyCloudNativeAPIGatewayMCPTool(req, cb) {
|
|
106
106
|
return this.request("ModifyCloudNativeAPIGatewayMCPTool", req, cb);
|
|
107
107
|
}
|
|
108
|
+
async UpdateCloudNativeAPIGatewayMCPTools(req, cb) {
|
|
109
|
+
return this.request("UpdateCloudNativeAPIGatewayMCPTools", req, cb);
|
|
110
|
+
}
|
|
108
111
|
async ModifyCloudNativeAPIGatewayMCPServerAuth(req, cb) {
|
|
109
112
|
return this.request("ModifyCloudNativeAPIGatewayMCPServerAuth", req, cb);
|
|
110
113
|
}
|
|
@@ -144,6 +147,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
144
147
|
async DescribeCloudNativeAPIGatewayLLMModelServices(req, cb) {
|
|
145
148
|
return this.request("DescribeCloudNativeAPIGatewayLLMModelServices", req, cb);
|
|
146
149
|
}
|
|
150
|
+
async DescribeCloudNativeAPIGatewayMCPToolsFromFile(req, cb) {
|
|
151
|
+
return this.request("DescribeCloudNativeAPIGatewayMCPToolsFromFile", req, cb);
|
|
152
|
+
}
|
|
147
153
|
async DeleteCloudNativeAPIGatewayConsumerGroup(req, cb) {
|
|
148
154
|
return this.request("DeleteCloudNativeAPIGatewayConsumerGroup", req, cb);
|
|
149
155
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { CreateCloudNativeAPIGatewayMCPToolRequest, DescribeCloudNativeAPIGatewayLLMModelServicesResponse, ModifyCloudNativeAPIGatewayConsumerGroupResponse, DescribeCloudNativeAPIGatewayMCPServerACLRequest, DeleteCloudNativeAPIGatewayMCPToolResponse, CreateCloudNativeAPIGatewayMCPServerRequest, DeleteCloudNativeAPIGatewaySecretKeyRequest, DeleteCloudNativeAPIGatewayMCPToolRequest, DescribeCloudNativeAPIGatewaySecretKeyValueRequest, DeleteCloudNativeAPIGatewayConsumerResponse, RemoveCloudNativeAPIGatewayConsumerGroupAuthResponse, ModifyCloudNativeAPIGatewayMCPServerRequest, DescribeCloudNativeAPIGatewayMCPServerAuthResponse, DescribeCloudNativeAPIGatewayConsumerRequest, DescribeCloudNativeAPIGatewayLLMModelServiceRequest, ModifyCloudNativeAPIGatewaySecretKeyResponse, AddCloudNativeAPIGatewayConsumerInGroupResponse, DescribeCloudNativeAPIGatewayMCPToolACLListResponse, ModifyCloudNativeAPIGatewayMCPServerAuthResponse, CreateCloudNativeAPIGatewayConsumerGroupRequest, ModifyCloudNativeAPIGatewayLLMModelAPIResponse, ModifyCloudNativeAPIGatewayLLMModelServiceResponse, CreateCloudNativeAPIGatewayLLMModelServiceResponse, RemoveCloudNativeAPIGatewayConsumerInGroupRequest,
|
|
2
|
+
import { CreateCloudNativeAPIGatewayMCPToolRequest, DescribeCloudNativeAPIGatewayLLMModelServicesResponse, ModifyCloudNativeAPIGatewayConsumerGroupResponse, DescribeCloudNativeAPIGatewayMCPServerACLRequest, DeleteCloudNativeAPIGatewayMCPToolResponse, CreateCloudNativeAPIGatewayMCPServerRequest, DeleteCloudNativeAPIGatewaySecretKeyRequest, DeleteCloudNativeAPIGatewayMCPToolRequest, DescribeCloudNativeAPIGatewaySecretKeyValueRequest, DeleteCloudNativeAPIGatewayConsumerResponse, RemoveCloudNativeAPIGatewayConsumerGroupAuthResponse, ModifyCloudNativeAPIGatewayMCPServerRequest, DescribeCloudNativeAPIGatewayMCPServerAuthResponse, DescribeCloudNativeAPIGatewayConsumerRequest, DescribeCloudNativeAPIGatewayLLMModelServiceRequest, ModifyCloudNativeAPIGatewaySecretKeyResponse, AddCloudNativeAPIGatewayConsumerInGroupResponse, DescribeCloudNativeAPIGatewayMCPToolACLListResponse, ModifyCloudNativeAPIGatewayMCPServerAuthResponse, CreateCloudNativeAPIGatewayConsumerGroupRequest, ModifyCloudNativeAPIGatewayLLMModelAPIResponse, ModifyCloudNativeAPIGatewayLLMModelServiceResponse, CreateCloudNativeAPIGatewayLLMModelServiceResponse, RemoveCloudNativeAPIGatewayConsumerInGroupRequest, DescribeCloudNativeAPIGatewayLLMModelServicesRequest, CreateCloudNativeAPIGatewayLLMModelAPIRequest, DescribeCloudNativeAPIGatewayConsumerGroupRequest, DescribeCloudNativeAPIGatewayLLMModelAPIsRequest, ModifyCloudNativeAPIGatewayMCPServerACLRequest, ModifyCloudNativeAPIGatewayConsumerRequest, DescribeCloudNativeAPIGatewaySecretKeyResponse, DescribeCloudNativeAPIGatewayConsumerResponse, DescribeCloudNativeAPIGatewayMCPToolListRequest, DeleteCloudNativeAPIGatewayMCPServerResponse, ModifyCloudNativeAPIGatewayMCPToolRequest, DescribeCloudNativeAPIGatewayMCPToolACLListRequest, DeleteCloudNativeAPIGatewayLLMModelServiceResponse, DescribeCloudNativeAPIGatewayMCPToolResponse, ModifyCloudNativeAPIGatewayMCPToolACLResponse, DescribeCloudNativeAPIGatewayMCPToolsFromFileRequest, CreateCloudNativeAPIGatewayConsumerGroupResponse, UpdateCloudNativeAPIGatewayMCPToolsResponse, DescribeCloudNativeAPIGatewayLLMModelAPIResponse, ModifyCloudNativeAPIGatewayMCPServerStatusResponse, DescribeCloudNativeAPIGatewayLLMModelAPIRequest, CreateCloudNativeAPIGatewayConsumerRequest, BindCloudNativeAPIGatewaySecretKeyRequest, ModifyCloudNativeAPIGatewayConsumerResponse, ModifyCloudNativeAPIGatewayMCPServerACLResponse, DeleteCloudNativeAPIGatewayMCPServerRequest, DeleteCloudNativeAPIGatewaySecretKeyResponse, DescribeCloudNativeAPIGatewayMCPToolRequest, DescribeCloudNativeAPIGatewayLLMTokenUsageStatisticsRequest, CreateCloudNativeAPIGatewaySecretKeyRequest, DescribeCloudNativeAPIGatewayMCPServerResponse, ModifyCloudNativeAPIGatewayMCPToolACLRequest, CreateCloudNativeAPIGatewayMCPServerResponse, UpdateCloudNativeAPIGatewayMCPToolsRequest, DeleteCloudNativeAPIGatewayLLMModelAPIRequest, ModifyCloudNativeAPIGatewayMCPServerStatusRequest, ModifyCloudNativeAPIGatewayMCPToolResponse, RemoveCloudNativeAPIGatewayConsumerInGroupResponse, DescribeCloudNativeAPIGatewayLLMModelAPIsResponse, AddCloudNativeAPIGatewayConsumerInGroupRequest, CreateCloudNativeAPIGatewayConsumerResponse, DeleteCloudNativeAPIGatewayLLMModelAPIResponse, UnbindCloudNativeAPIGatewaySecretKeyResponse, DescribeCloudNativeAPIGatewayMCPToolsFromFileResponse, ModifyCloudNativeAPIGatewaySecretKeyRequest, DescribeCloudNativeAPIGatewayLLMTokenUsageStatisticsResponse, DescribeCloudNativeAPIGatewayMCPServerACLResponse, ModifyCloudNativeAPIGatewayMCPServerResponse, DescribeCloudNativeAPIGatewayLLMModelServiceResponse, DescribeCloudNativeAPIGatewaySecretKeyRequest, AddCloudNativeAPIGatewayConsumerGroupAuthResponse, DeleteCloudNativeAPIGatewayConsumerRequest, ModifyCloudNativeAPIGatewayMCPToolStatusResponse, ModifyCloudNativeAPIGatewayConsumerGroupRequest, UnbindCloudNativeAPIGatewaySecretKeyRequest, BindCloudNativeAPIGatewaySecretKeyResponse, DescribeCloudNativeAPIGatewayMCPToolListResponse, DeleteCloudNativeAPIGatewayConsumerGroupRequest, RemoveCloudNativeAPIGatewayConsumerGroupAuthRequest, DescribeCloudNativeAPIGatewayMCPServerListRequest, DescribeCloudNativeAPIGatewayConsumerGroupResponse, ModifyCloudNativeAPIGatewayMCPServerAuthRequest, DescribeCloudNativeAPIGatewayMCPServerRequest, DescribeCloudNativeAPIGatewayLLMTokenUsageListRequest, ModifyCloudNativeAPIGatewayMCPToolStatusRequest, CreateCloudNativeAPIGatewayLLMModelServiceRequest, AddCloudNativeAPIGatewayConsumerGroupAuthRequest, DescribeCloudNativeAPIGatewaySecretKeyValueResponse, CreateCloudNativeAPIGatewayMCPToolResponse, ModifyCloudNativeAPIGatewayLLMModelServiceRequest, DescribeCloudNativeAPIGatewayMCPServerListResponse, CreateCloudNativeAPIGatewayLLMModelAPIResponse, DescribeCloudNativeAPIGatewayMCPServerAuthRequest, DeleteCloudNativeAPIGatewayLLMModelServiceRequest, DeleteCloudNativeAPIGatewayConsumerGroupResponse, ModifyCloudNativeAPIGatewayLLMModelAPIRequest, CreateCloudNativeAPIGatewaySecretKeyResponse, DescribeCloudNativeAPIGatewayLLMTokenUsageListResponse } from "./cngw_models";
|
|
3
3
|
/**
|
|
4
4
|
* cngw client
|
|
5
5
|
* @class
|
|
@@ -83,7 +83,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
83
83
|
*/
|
|
84
84
|
DescribeCloudNativeAPIGatewayMCPServer(req: DescribeCloudNativeAPIGatewayMCPServerRequest, cb?: (error: string, rep: DescribeCloudNativeAPIGatewayMCPServerResponse) => void): Promise<DescribeCloudNativeAPIGatewayMCPServerResponse>;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* 查询指定网关实例下的所有 LLM 模型 API 列表。支持按名称关键词模糊搜索、按过滤器筛选,以及分页查询。用于绑定场景时,可通过 ConsumerGroupId 和 UseToBind 参数筛选可绑定的模型 API。
|
|
87
87
|
*/
|
|
88
88
|
DescribeCloudNativeAPIGatewayLLMModelAPIs(req: DescribeCloudNativeAPIGatewayLLMModelAPIsRequest, cb?: (error: string, rep: DescribeCloudNativeAPIGatewayLLMModelAPIsResponse) => void): Promise<DescribeCloudNativeAPIGatewayLLMModelAPIsResponse>;
|
|
89
89
|
/**
|
|
@@ -142,6 +142,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
142
142
|
* 修改AI网关MCP Tool
|
|
143
143
|
*/
|
|
144
144
|
ModifyCloudNativeAPIGatewayMCPTool(req: ModifyCloudNativeAPIGatewayMCPToolRequest, cb?: (error: string, rep: ModifyCloudNativeAPIGatewayMCPToolResponse) => void): Promise<ModifyCloudNativeAPIGatewayMCPToolResponse>;
|
|
145
|
+
/**
|
|
146
|
+
* 批量导入从OpenAPI文件中解析的MCP Tools
|
|
147
|
+
*/
|
|
148
|
+
UpdateCloudNativeAPIGatewayMCPTools(req: UpdateCloudNativeAPIGatewayMCPToolsRequest, cb?: (error: string, rep: UpdateCloudNativeAPIGatewayMCPToolsResponse) => void): Promise<UpdateCloudNativeAPIGatewayMCPToolsResponse>;
|
|
145
149
|
/**
|
|
146
150
|
* 修改 MCP Server 的认证配置
|
|
147
151
|
*/
|
|
@@ -194,6 +198,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
194
198
|
* 查询 LLM 模型服务列表。
|
|
195
199
|
*/
|
|
196
200
|
DescribeCloudNativeAPIGatewayLLMModelServices(req: DescribeCloudNativeAPIGatewayLLMModelServicesRequest, cb?: (error: string, rep: DescribeCloudNativeAPIGatewayLLMModelServicesResponse) => void): Promise<DescribeCloudNativeAPIGatewayLLMModelServicesResponse>;
|
|
201
|
+
/**
|
|
202
|
+
* 从OpenAPI文件中解析出可导入的MCP tools
|
|
203
|
+
*/
|
|
204
|
+
DescribeCloudNativeAPIGatewayMCPToolsFromFile(req: DescribeCloudNativeAPIGatewayMCPToolsFromFileRequest, cb?: (error: string, rep: DescribeCloudNativeAPIGatewayMCPToolsFromFileResponse) => void): Promise<DescribeCloudNativeAPIGatewayMCPToolsFromFileResponse>;
|
|
197
205
|
/**
|
|
198
206
|
* 删除AI网关消费者组
|
|
199
207
|
*/
|
|
@@ -143,7 +143,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
143
143
|
return this.request("DescribeCloudNativeAPIGatewayMCPServer", req, cb);
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* 查询指定网关实例下的所有 LLM 模型 API 列表。支持按名称关键词模糊搜索、按过滤器筛选,以及分页查询。用于绑定场景时,可通过 ConsumerGroupId 和 UseToBind 参数筛选可绑定的模型 API。
|
|
147
147
|
*/
|
|
148
148
|
async DescribeCloudNativeAPIGatewayLLMModelAPIs(req, cb) {
|
|
149
149
|
return this.request("DescribeCloudNativeAPIGatewayLLMModelAPIs", req, cb);
|
|
@@ -232,6 +232,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
232
232
|
async ModifyCloudNativeAPIGatewayMCPTool(req, cb) {
|
|
233
233
|
return this.request("ModifyCloudNativeAPIGatewayMCPTool", req, cb);
|
|
234
234
|
}
|
|
235
|
+
/**
|
|
236
|
+
* 批量导入从OpenAPI文件中解析的MCP Tools
|
|
237
|
+
*/
|
|
238
|
+
async UpdateCloudNativeAPIGatewayMCPTools(req, cb) {
|
|
239
|
+
return this.request("UpdateCloudNativeAPIGatewayMCPTools", req, cb);
|
|
240
|
+
}
|
|
235
241
|
/**
|
|
236
242
|
* 修改 MCP Server 的认证配置
|
|
237
243
|
*/
|
|
@@ -310,6 +316,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
310
316
|
async DescribeCloudNativeAPIGatewayLLMModelServices(req, cb) {
|
|
311
317
|
return this.request("DescribeCloudNativeAPIGatewayLLMModelServices", req, cb);
|
|
312
318
|
}
|
|
319
|
+
/**
|
|
320
|
+
* 从OpenAPI文件中解析出可导入的MCP tools
|
|
321
|
+
*/
|
|
322
|
+
async DescribeCloudNativeAPIGatewayMCPToolsFromFile(req, cb) {
|
|
323
|
+
return this.request("DescribeCloudNativeAPIGatewayMCPToolsFromFile", req, cb);
|
|
324
|
+
}
|
|
313
325
|
/**
|
|
314
326
|
* 删除AI网关消费者组
|
|
315
327
|
*/
|
|
@@ -251,11 +251,11 @@ export interface AIGWRedisConfig {
|
|
|
251
251
|
/**
|
|
252
252
|
* <p>Host</p>
|
|
253
253
|
*/
|
|
254
|
-
Host
|
|
254
|
+
Host?: string;
|
|
255
255
|
/**
|
|
256
256
|
* <p>端口</p>
|
|
257
257
|
*/
|
|
258
|
-
Port
|
|
258
|
+
Port?: number;
|
|
259
259
|
/**
|
|
260
260
|
* <p>用户名</p>
|
|
261
261
|
*/
|
|
@@ -264,6 +264,14 @@ export interface AIGWRedisConfig {
|
|
|
264
264
|
* <p>密码</p>
|
|
265
265
|
*/
|
|
266
266
|
Password?: string;
|
|
267
|
+
/**
|
|
268
|
+
* <p>Redis配置ID</p>
|
|
269
|
+
*/
|
|
270
|
+
RedisConfigId?: string;
|
|
271
|
+
/**
|
|
272
|
+
* <p>Redis部署类型,如standalone(单机)、cluster(集群)</p>
|
|
273
|
+
*/
|
|
274
|
+
Type?: string;
|
|
267
275
|
}
|
|
268
276
|
/**
|
|
269
277
|
* AI 网关意图路由配置
|
|
@@ -286,6 +294,19 @@ export interface AIGWIntentRoute {
|
|
|
286
294
|
*/
|
|
287
295
|
Rules?: Array<AIGWIntentRouteRule>;
|
|
288
296
|
}
|
|
297
|
+
/**
|
|
298
|
+
* 查询过滤通用对象
|
|
299
|
+
*/
|
|
300
|
+
export interface Filter {
|
|
301
|
+
/**
|
|
302
|
+
* <p>过滤参数名</p>
|
|
303
|
+
*/
|
|
304
|
+
Name: string;
|
|
305
|
+
/**
|
|
306
|
+
* <p>过滤参数值</p>
|
|
307
|
+
*/
|
|
308
|
+
Values: Array<string>;
|
|
309
|
+
}
|
|
289
310
|
/**
|
|
290
311
|
* 降级服务元素
|
|
291
312
|
*/
|
|
@@ -622,29 +643,31 @@ export interface CreateCloudNativeAPIGatewayConsumerGroupRequest {
|
|
|
622
643
|
*/
|
|
623
644
|
export interface CNAPIGwSecretKey {
|
|
624
645
|
/**
|
|
625
|
-
* <p
|
|
646
|
+
* <p>绑定数</p>
|
|
626
647
|
*/
|
|
627
|
-
|
|
648
|
+
BindCount?: number;
|
|
628
649
|
/**
|
|
629
|
-
* <p
|
|
650
|
+
* <p>是否可以绑定</p>
|
|
651
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
630
652
|
*/
|
|
631
|
-
|
|
653
|
+
CanBind?: boolean;
|
|
632
654
|
/**
|
|
633
|
-
* <p
|
|
655
|
+
* <p>创建时间</p>
|
|
634
656
|
*/
|
|
635
|
-
|
|
657
|
+
CreateTime?: string;
|
|
636
658
|
/**
|
|
637
|
-
* <p
|
|
659
|
+
* <p>描述</p>
|
|
660
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
638
661
|
*/
|
|
639
|
-
|
|
662
|
+
Description?: string;
|
|
640
663
|
/**
|
|
641
664
|
* <p>密钥生成方式。</p><p>枚举值:</p><ul><li>System: 系统自动生成</li><li>Custom: 用户自定义</li><li>KMS: 使用 KMS 密钥</li></ul>
|
|
642
665
|
*/
|
|
643
666
|
GenerateType?: string;
|
|
644
667
|
/**
|
|
645
|
-
* <p
|
|
668
|
+
* <p>JWT凭证配置</p>
|
|
646
669
|
*/
|
|
647
|
-
|
|
670
|
+
JWTCredentialConfig?: AIGWJWTCredentialConfig;
|
|
648
671
|
/**
|
|
649
672
|
* <p>KMS凭证名字</p>
|
|
650
673
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -656,47 +679,45 @@ export interface CNAPIGwSecretKey {
|
|
|
656
679
|
*/
|
|
657
680
|
KmsKeyVersion?: string;
|
|
658
681
|
/**
|
|
659
|
-
* <p
|
|
660
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
682
|
+
* <p>修改时间</p>
|
|
661
683
|
*/
|
|
662
|
-
|
|
684
|
+
ModifyTime?: string;
|
|
663
685
|
/**
|
|
664
|
-
* <p
|
|
665
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
686
|
+
* <p>密钥名字</p>
|
|
666
687
|
*/
|
|
667
|
-
|
|
688
|
+
Name?: string;
|
|
668
689
|
/**
|
|
669
|
-
* <p
|
|
690
|
+
* <p>OAuth凭证配置</p>
|
|
670
691
|
*/
|
|
671
|
-
|
|
692
|
+
OAuthCredentialConfig?: AIGWOAuthCredentialConfig;
|
|
672
693
|
/**
|
|
673
|
-
* <p
|
|
694
|
+
* <p>OIDC凭证配置</p>
|
|
674
695
|
*/
|
|
675
|
-
|
|
696
|
+
OIDCCredentialConfig?: AIGWOIDCCredentialConfig;
|
|
676
697
|
/**
|
|
677
|
-
* <p
|
|
698
|
+
* <p>secret key provider方</p><p>枚举值:</p><ul><li>Dify: Dify</li></ul>
|
|
678
699
|
*/
|
|
679
|
-
|
|
700
|
+
Provider?: string;
|
|
680
701
|
/**
|
|
681
702
|
* <p>密钥归属资源类型。</p><p>枚举值:</p><ul><li>Consumer: 消费者</li><li>ModelService: 模型服务</li></ul>
|
|
682
703
|
*/
|
|
683
704
|
ResourceType?: string;
|
|
684
705
|
/**
|
|
685
|
-
* <p
|
|
706
|
+
* <p>密钥id</p>
|
|
686
707
|
*/
|
|
687
|
-
|
|
708
|
+
SecretKeyId?: string;
|
|
688
709
|
/**
|
|
689
|
-
* <p
|
|
710
|
+
* <p>密钥协议类型。</p>
|
|
690
711
|
*/
|
|
691
|
-
|
|
712
|
+
SecretType?: string;
|
|
692
713
|
/**
|
|
693
|
-
* <p
|
|
714
|
+
* <p>密钥明文</p>
|
|
694
715
|
*/
|
|
695
|
-
|
|
716
|
+
SecretValue?: string;
|
|
696
717
|
/**
|
|
697
|
-
* <p>
|
|
718
|
+
* <p>状态。</p><p>枚举值:</p><ul><li>Enable: 启用</li><li>Disable: 禁用</li></ul>
|
|
698
719
|
*/
|
|
699
|
-
|
|
720
|
+
Status?: string;
|
|
700
721
|
}
|
|
701
722
|
/**
|
|
702
723
|
* ModifyCloudNativeAPIGatewayLLMModelAPI返回参数结构体
|
|
@@ -786,25 +807,17 @@ export interface AIGWMCPServerList {
|
|
|
786
807
|
DataList?: Array<AIGWMCPServer>;
|
|
787
808
|
}
|
|
788
809
|
/**
|
|
789
|
-
* AI
|
|
810
|
+
* AI 网关意图路由规则
|
|
790
811
|
*/
|
|
791
|
-
export interface
|
|
792
|
-
/**
|
|
793
|
-
* <p>JWT 消费者标识,iss claim</p>
|
|
794
|
-
*/
|
|
795
|
-
Key: string;
|
|
796
|
-
/**
|
|
797
|
-
* <p>签名算法,取值:HS256 HS384 HS512 RS256 RS384 RS512 ES256 ES384 ES512</p>
|
|
798
|
-
*/
|
|
799
|
-
Algorithm: string;
|
|
812
|
+
export interface AIGWIntentRouteRule {
|
|
800
813
|
/**
|
|
801
|
-
* <p>
|
|
814
|
+
* <p>意图编码</p><p>枚举值:</p><ul><li>Coder: 代码编写</li><li>Math: 数学计算</li><li>Translation: 翻译</li><li>Flash: 快速问答</li><li>Complex: 复杂推理</li></ul>
|
|
802
815
|
*/
|
|
803
|
-
|
|
816
|
+
IntentCode?: string;
|
|
804
817
|
/**
|
|
805
|
-
* <p
|
|
818
|
+
* <p>模型服务id</p>
|
|
806
819
|
*/
|
|
807
|
-
|
|
820
|
+
ModelServiceId?: string;
|
|
808
821
|
}
|
|
809
822
|
/**
|
|
810
823
|
* ModifyCloudNativeAPIGatewayLLMModelService返回参数结构体
|
|
@@ -871,121 +884,25 @@ export interface RemoveCloudNativeAPIGatewayConsumerInGroupRequest {
|
|
|
871
884
|
ConsumerIds: Array<string>;
|
|
872
885
|
}
|
|
873
886
|
/**
|
|
874
|
-
*
|
|
887
|
+
* AI网关 JWT 凭证物料配置
|
|
875
888
|
*/
|
|
876
|
-
export interface
|
|
877
|
-
/**
|
|
878
|
-
* <p>网关 id。</p>
|
|
879
|
-
*/
|
|
880
|
-
GatewayId: string;
|
|
881
|
-
/**
|
|
882
|
-
* <p>服务名称,最长60个字符,支持中英文大小写、数字及分隔符(“-”、“_”),不能以数字和分隔符开头,不能以分隔符结尾。</p>
|
|
883
|
-
*/
|
|
884
|
-
Name: string;
|
|
885
|
-
/**
|
|
886
|
-
* <p>服务类型。目前仅支持 LLMService。</p><p>枚举值:</p><ul><li>LLMService: 大语言模型服务</li></ul>
|
|
887
|
-
*/
|
|
888
|
-
ServiceType: string;
|
|
889
|
-
/**
|
|
890
|
-
* <p>选择模型提供商, 选项:OpenAI、Anthropic、Azure OpenAI等。</p>
|
|
891
|
-
*/
|
|
892
|
-
ModelProvider: string;
|
|
893
|
-
/**
|
|
894
|
-
* <p>API协议标准,根据供应商动态变化:OpenAI→OpenAI/v1,Anthropic→Anthropic/v1等</p>
|
|
895
|
-
*/
|
|
896
|
-
ModelProtocol: string;
|
|
897
|
-
/**
|
|
898
|
-
* <p>模型选择方式,选项:Specify(指定模型)、PassThrough(透传请求模型)。</p>
|
|
899
|
-
*/
|
|
900
|
-
ModelSelector: string;
|
|
901
|
-
/**
|
|
902
|
-
* <p>LLM 厂商颁发的认证信息 token 。</p>
|
|
903
|
-
*/
|
|
904
|
-
SecretKeyIds?: Array<string>;
|
|
905
|
-
/**
|
|
906
|
-
* <p>默认模型,模型选择方式为 Specify 时必填。</p>
|
|
907
|
-
*/
|
|
908
|
-
DefaultModel?: string;
|
|
909
|
-
/**
|
|
910
|
-
* <p>开启模型降级,模型选择方式为 Specify 时必填。</p>
|
|
911
|
-
*/
|
|
912
|
-
EnableModelFallback?: boolean;
|
|
913
|
-
/**
|
|
914
|
-
* <p>可以配置备用模型规则,EnableSpecifyModelFallbackxa0为 true 时必填。</p>
|
|
915
|
-
*/
|
|
916
|
-
ModelFallbackRule?: CloudNativeAPIGatewayLLMModelFallbackRule;
|
|
917
|
-
/**
|
|
918
|
-
* <p>开启模型参数校验,是否校验客户端传递的 model 参数,xa0模型选择方式为 PassThrough 时必填</p>
|
|
919
|
-
*/
|
|
920
|
-
EnableModelParamCheck?: boolean;
|
|
921
|
-
/**
|
|
922
|
-
* <p>模型检验信息,EnableModelParamCheckxa0为 true 时必填。</p>
|
|
923
|
-
*/
|
|
924
|
-
ModelParamCheckRule?: CloudNativeAPIGatewayLLMModelParamCheckInfo;
|
|
925
|
-
/**
|
|
926
|
-
* <p>描述。</p>
|
|
927
|
-
*/
|
|
928
|
-
Description?: string;
|
|
929
|
-
/**
|
|
930
|
-
* <p>服务提供商自定义 url</p>
|
|
931
|
-
*/
|
|
932
|
-
UpstreamURL?: string;
|
|
933
|
-
/**
|
|
934
|
-
* <p>连接超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:10000</p>
|
|
935
|
-
*/
|
|
936
|
-
ConnectTimeout?: number;
|
|
937
|
-
/**
|
|
938
|
-
* <p>写入超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:60000</p>
|
|
939
|
-
*/
|
|
940
|
-
WriteTimeout?: number;
|
|
941
|
-
/**
|
|
942
|
-
* <p>读取超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:60000</p>
|
|
943
|
-
*/
|
|
944
|
-
ReadTimeout?: number;
|
|
945
|
-
/**
|
|
946
|
-
* <p>重试次数</p><p>取值范围:[0, 5]</p><p>单位:次</p><p>默认值:0</p>
|
|
947
|
-
*/
|
|
948
|
-
Retries?: number;
|
|
949
|
-
/**
|
|
950
|
-
* <p>路径拼接模式</p><p>枚举值:</p><ul><li>FixedPath: 固定地址</li><li>AutoConcat: 自动拼接</li></ul>
|
|
951
|
-
*/
|
|
952
|
-
UpstreamUrlMode?: string;
|
|
953
|
-
/**
|
|
954
|
-
* <p>sni</p>
|
|
955
|
-
*/
|
|
956
|
-
SNI?: string;
|
|
957
|
-
/**
|
|
958
|
-
* <p>模型服务级别的配额上限(RPM/TPM)。需要网关版本 ≥ 3.9.4。</p>
|
|
959
|
-
*/
|
|
960
|
-
QuotaLimit?: AIGWLLMQuotaLimit;
|
|
961
|
-
/**
|
|
962
|
-
* <p>标签</p>
|
|
963
|
-
*/
|
|
964
|
-
Tags?: Array<string>;
|
|
965
|
-
/**
|
|
966
|
-
* <p>参数改写规则</p>
|
|
967
|
-
*/
|
|
968
|
-
ModelRewriteRules?: Array<AIGWModelRewriteRule>;
|
|
969
|
-
/**
|
|
970
|
-
* <p>模型自定义供应商名称</p>
|
|
971
|
-
*/
|
|
972
|
-
CustomProviderName?: string;
|
|
889
|
+
export interface AIGWJWTCredentialConfig {
|
|
973
890
|
/**
|
|
974
|
-
* <p
|
|
891
|
+
* <p>签名算法,取值:HS256 HS384 HS512 RS256 RS384 RS512 ES256 ES384 ES512</p>
|
|
975
892
|
*/
|
|
976
|
-
|
|
893
|
+
Algorithm: string;
|
|
977
894
|
/**
|
|
978
|
-
* <p
|
|
895
|
+
* <p>JWT 消费者标识,iss claim</p>
|
|
979
896
|
*/
|
|
980
|
-
|
|
897
|
+
Key: string;
|
|
981
898
|
/**
|
|
982
|
-
* <p
|
|
899
|
+
* <p>RS/ES PEM 格式公钥,仅 Algorithm 为 RS256/RS384/RS512/ES256/ES384/ES512 时必填;HS* 时留空</p>
|
|
983
900
|
*/
|
|
984
|
-
|
|
901
|
+
RSAPublicKey?: string;
|
|
985
902
|
/**
|
|
986
|
-
* <p
|
|
903
|
+
* <p>HS 对称密钥,仅 Algorithm 为 HS256/HS384/HS512 时必填;RS/ES* 时留空</p>
|
|
987
904
|
*/
|
|
988
|
-
|
|
905
|
+
Secret?: string;
|
|
989
906
|
}
|
|
990
907
|
/**
|
|
991
908
|
* DescribeCloudNativeAPIGatewayLLMModelServices请求参数结构体
|
|
@@ -1250,7 +1167,7 @@ export interface CloudNativeAPIGatewayLLMModelAPI {
|
|
|
1250
1167
|
*/
|
|
1251
1168
|
ModelServiceRoute?: CloudNativeAPIGatewayLLMModelServiceRoute;
|
|
1252
1169
|
/**
|
|
1253
|
-
* <p
|
|
1170
|
+
* <p>HTTP 请求头匹配规则,用于按请求头路由到不同模型服务。</p>
|
|
1254
1171
|
*/
|
|
1255
1172
|
MatchHeaders?: Array<AIGWKVMatch>;
|
|
1256
1173
|
/**
|
|
@@ -1314,6 +1231,10 @@ export interface DescribeCloudNativeAPIGatewayLLMModelAPIsRequest {
|
|
|
1314
1231
|
* <p>是否用于绑定场景。true 时仅返回可被绑定到指定消费者组的模型 API。</p>
|
|
1315
1232
|
*/
|
|
1316
1233
|
UseToBind?: boolean;
|
|
1234
|
+
/**
|
|
1235
|
+
* <p>消费者 ID(以 consumer- 开头)。</p>
|
|
1236
|
+
*/
|
|
1237
|
+
ConsumerId?: string;
|
|
1317
1238
|
}
|
|
1318
1239
|
/**
|
|
1319
1240
|
* ModifyCloudNativeAPIGatewayMCPServerACL请求参数结构体
|
|
@@ -1357,14 +1278,14 @@ export interface AIGWModelRewriteRule {
|
|
|
1357
1278
|
* 创建资源通用结果
|
|
1358
1279
|
*/
|
|
1359
1280
|
export interface CNAPIGwCreateCommonResult {
|
|
1360
|
-
/**
|
|
1361
|
-
* 是否成功
|
|
1362
|
-
*/
|
|
1363
|
-
Success?: boolean;
|
|
1364
1281
|
/**
|
|
1365
1282
|
* 对应的id 值
|
|
1366
1283
|
*/
|
|
1367
1284
|
ID?: string;
|
|
1285
|
+
/**
|
|
1286
|
+
* 是否成功
|
|
1287
|
+
*/
|
|
1288
|
+
Success?: boolean;
|
|
1368
1289
|
}
|
|
1369
1290
|
/**
|
|
1370
1291
|
* 模型服务路由配置
|
|
@@ -1640,17 +1561,17 @@ export interface DeleteCloudNativeAPIGatewayMCPServerResponse {
|
|
|
1640
1561
|
RequestId?: string;
|
|
1641
1562
|
}
|
|
1642
1563
|
/**
|
|
1643
|
-
*
|
|
1564
|
+
* DescribeCloudNativeAPIGatewayMCPToolsFromFile接口的出参
|
|
1644
1565
|
*/
|
|
1645
|
-
export interface
|
|
1566
|
+
export interface CNAPIGwParseMCPToolsResult {
|
|
1646
1567
|
/**
|
|
1647
|
-
* <p
|
|
1568
|
+
* <p>MCP Tools列表</p>
|
|
1648
1569
|
*/
|
|
1649
|
-
|
|
1570
|
+
DataList?: Array<CNAPIGwMCPToolPreview>;
|
|
1650
1571
|
/**
|
|
1651
|
-
* <p
|
|
1572
|
+
* <p>MCP tools的数量</p>
|
|
1652
1573
|
*/
|
|
1653
|
-
|
|
1574
|
+
TotalCount?: number;
|
|
1654
1575
|
}
|
|
1655
1576
|
/**
|
|
1656
1577
|
* ModifyCloudNativeAPIGatewayMCPTool请求参数结构体
|
|
@@ -1770,6 +1691,27 @@ export interface ModifyCloudNativeAPIGatewayMCPToolACLResponse {
|
|
|
1770
1691
|
*/
|
|
1771
1692
|
RequestId?: string;
|
|
1772
1693
|
}
|
|
1694
|
+
/**
|
|
1695
|
+
* DescribeCloudNativeAPIGatewayMCPToolsFromFile请求参数结构体
|
|
1696
|
+
*/
|
|
1697
|
+
export interface DescribeCloudNativeAPIGatewayMCPToolsFromFileRequest {
|
|
1698
|
+
/**
|
|
1699
|
+
* <p>OpenAPI文件内容</p>
|
|
1700
|
+
*/
|
|
1701
|
+
Content: string;
|
|
1702
|
+
/**
|
|
1703
|
+
* <p>文件内容格式</p>
|
|
1704
|
+
*/
|
|
1705
|
+
Format: string;
|
|
1706
|
+
/**
|
|
1707
|
+
* <p>网关实例ID</p>
|
|
1708
|
+
*/
|
|
1709
|
+
GatewayId: string;
|
|
1710
|
+
/**
|
|
1711
|
+
* <p>MCP Server ID</p>
|
|
1712
|
+
*/
|
|
1713
|
+
MCPServerId: string;
|
|
1714
|
+
}
|
|
1773
1715
|
/**
|
|
1774
1716
|
* OIDC 凭证物料配置
|
|
1775
1717
|
*/
|
|
@@ -1779,7 +1721,7 @@ export interface AIGWOIDCCredentialConfig {
|
|
|
1779
1721
|
*/
|
|
1780
1722
|
ClientId: string;
|
|
1781
1723
|
/**
|
|
1782
|
-
* <p
|
|
1724
|
+
* <p>IdP 注册的 client_secret</p>
|
|
1783
1725
|
*/
|
|
1784
1726
|
ClientSecret: string;
|
|
1785
1727
|
/**
|
|
@@ -1804,6 +1746,19 @@ export interface CreateCloudNativeAPIGatewayConsumerGroupResponse {
|
|
|
1804
1746
|
*/
|
|
1805
1747
|
RequestId?: string;
|
|
1806
1748
|
}
|
|
1749
|
+
/**
|
|
1750
|
+
* UpdateCloudNativeAPIGatewayMCPTools返回参数结构体
|
|
1751
|
+
*/
|
|
1752
|
+
export interface UpdateCloudNativeAPIGatewayMCPToolsResponse {
|
|
1753
|
+
/**
|
|
1754
|
+
* <p>导入任务的ID</p>
|
|
1755
|
+
*/
|
|
1756
|
+
Result?: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1759
|
+
*/
|
|
1760
|
+
RequestId?: string;
|
|
1761
|
+
}
|
|
1807
1762
|
/**
|
|
1808
1763
|
* DescribeCloudNativeAPIGatewayLLMModelAPI返回参数结构体
|
|
1809
1764
|
*/
|
|
@@ -2051,33 +2006,21 @@ export interface CreateCloudNativeAPIGatewaySecretKeyRequest {
|
|
|
2051
2006
|
*/
|
|
2052
2007
|
GatewayId: string;
|
|
2053
2008
|
/**
|
|
2054
|
-
* <p
|
|
2009
|
+
* <p>密钥生成方式。</p><p>枚举值:</p><ul><li>System:系统自动生成</li><li>Custom:用户自定义(需传 SecretValue)</li><li>KMS:使用 KMS 密钥(需传 KmsKeyName 与 KmsKeyVersion)</li></ul>
|
|
2055
2010
|
*/
|
|
2056
|
-
|
|
2011
|
+
GenerateType: string;
|
|
2057
2012
|
/**
|
|
2058
2013
|
* <p>密钥名称,2-60 字符。</p>
|
|
2059
2014
|
*/
|
|
2060
2015
|
Name: string;
|
|
2061
|
-
/**
|
|
2062
|
-
* <p>密钥生成方式。</p><p>枚举值:</p><ul><li>System:系统自动生成</li><li>Custom:用户自定义(需传 SecretValue)</li><li>KMS:使用 KMS 密钥(需传 KmsKeyName 与 KmsKeyVersion)</li></ul>
|
|
2063
|
-
*/
|
|
2064
|
-
GenerateType: string;
|
|
2065
2016
|
/**
|
|
2066
2017
|
* <p>密钥归属资源类型。</p><p>枚举值:</p><ul><li>Consumer:消费者</li><li>ModelService:模型服务</li></ul>
|
|
2067
2018
|
*/
|
|
2068
2019
|
ResourceType: string;
|
|
2069
2020
|
/**
|
|
2070
|
-
* <p
|
|
2071
|
-
*/
|
|
2072
|
-
KmsKeyName?: string;
|
|
2073
|
-
/**
|
|
2074
|
-
* <p>KMS 密钥版本。GenerateType=KMS 时必填。</p>
|
|
2075
|
-
*/
|
|
2076
|
-
KmsKeyVersion?: string;
|
|
2077
|
-
/**
|
|
2078
|
-
* <p>密钥值,长度 8-256。GenerateType=Custom 时必填。</p>
|
|
2021
|
+
* <p>密钥协议类型。</p><p>枚举值:</p><ul><li>ApiKey</li><li>Basic</li><li>Hmac</li><li>OAuth2</li><li>JWT</li></ul>
|
|
2079
2022
|
*/
|
|
2080
|
-
|
|
2023
|
+
SecretType: string;
|
|
2081
2024
|
/**
|
|
2082
2025
|
* <p>密钥描述。最长 200 字符。</p>
|
|
2083
2026
|
*/
|
|
@@ -2087,13 +2030,29 @@ export interface CreateCloudNativeAPIGatewaySecretKeyRequest {
|
|
|
2087
2030
|
*/
|
|
2088
2031
|
JWTCredentialConfig?: AIGWJWTCredentialConfig;
|
|
2089
2032
|
/**
|
|
2090
|
-
* <p>
|
|
2033
|
+
* <p>KMS 密钥名称。GenerateType=KMS 时必填。</p>
|
|
2034
|
+
*/
|
|
2035
|
+
KmsKeyName?: string;
|
|
2036
|
+
/**
|
|
2037
|
+
* <p>KMS 密钥版本。GenerateType=KMS 时必填。</p>
|
|
2038
|
+
*/
|
|
2039
|
+
KmsKeyVersion?: string;
|
|
2040
|
+
/**
|
|
2041
|
+
* <p>OAuth2.0凭证配置</p>
|
|
2091
2042
|
*/
|
|
2092
2043
|
OAuthCredentialConfig?: AIGWOAuthCredentialConfig;
|
|
2093
2044
|
/**
|
|
2094
2045
|
* <p>OIDC凭证配置</p>
|
|
2095
2046
|
*/
|
|
2096
2047
|
OIDCCredentialConfig?: AIGWOIDCCredentialConfig;
|
|
2048
|
+
/**
|
|
2049
|
+
* <p>第三方平台类型</p><p>枚举值:</p><ul><li>Dify: Dify平台</li></ul>
|
|
2050
|
+
*/
|
|
2051
|
+
Provider?: string;
|
|
2052
|
+
/**
|
|
2053
|
+
* <p>密钥值,长度 8-256。GenerateType=Custom 时必填。</p>
|
|
2054
|
+
*/
|
|
2055
|
+
SecretValue?: string;
|
|
2097
2056
|
}
|
|
2098
2057
|
/**
|
|
2099
2058
|
* DescribeCloudNativeAPIGatewayMCPServer返回参数结构体
|
|
@@ -2159,6 +2118,23 @@ export interface CreateCloudNativeAPIGatewayMCPServerResponse {
|
|
|
2159
2118
|
*/
|
|
2160
2119
|
RequestId?: string;
|
|
2161
2120
|
}
|
|
2121
|
+
/**
|
|
2122
|
+
* UpdateCloudNativeAPIGatewayMCPTools请求参数结构体
|
|
2123
|
+
*/
|
|
2124
|
+
export interface UpdateCloudNativeAPIGatewayMCPToolsRequest {
|
|
2125
|
+
/**
|
|
2126
|
+
* <p>网关实例ID</p>
|
|
2127
|
+
*/
|
|
2128
|
+
GatewayId: string;
|
|
2129
|
+
/**
|
|
2130
|
+
* <p>MCP Server ID</p>
|
|
2131
|
+
*/
|
|
2132
|
+
MCPServerId: string;
|
|
2133
|
+
/**
|
|
2134
|
+
* <p>待导入的MCP Tools列表</p>
|
|
2135
|
+
*/
|
|
2136
|
+
Tools: Array<CNAPIGwMCPTool>;
|
|
2137
|
+
}
|
|
2162
2138
|
/**
|
|
2163
2139
|
* 用于定义kong插件自定义健康检查的配置
|
|
2164
2140
|
*/
|
|
@@ -2385,6 +2361,19 @@ export interface AIGWLLMTokenUsageListResult {
|
|
|
2385
2361
|
*/
|
|
2386
2362
|
TotalCount?: number;
|
|
2387
2363
|
}
|
|
2364
|
+
/**
|
|
2365
|
+
* DescribeCloudNativeAPIGatewayMCPToolsFromFile返回参数结构体
|
|
2366
|
+
*/
|
|
2367
|
+
export interface DescribeCloudNativeAPIGatewayMCPToolsFromFileResponse {
|
|
2368
|
+
/**
|
|
2369
|
+
* <p>解析结果</p>
|
|
2370
|
+
*/
|
|
2371
|
+
Result?: CNAPIGwParseMCPToolsResult;
|
|
2372
|
+
/**
|
|
2373
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2374
|
+
*/
|
|
2375
|
+
RequestId?: string;
|
|
2376
|
+
}
|
|
2388
2377
|
/**
|
|
2389
2378
|
* ModifyCloudNativeAPIGatewaySecretKey请求参数结构体
|
|
2390
2379
|
*/
|
|
@@ -2407,17 +2396,48 @@ export interface ModifyCloudNativeAPIGatewaySecretKeyRequest {
|
|
|
2407
2396
|
Description?: string;
|
|
2408
2397
|
}
|
|
2409
2398
|
/**
|
|
2410
|
-
*
|
|
2399
|
+
* 通过OpenAPI文件导入MCP tools的预览内容
|
|
2411
2400
|
*/
|
|
2412
|
-
export interface
|
|
2401
|
+
export interface CNAPIGwMCPToolPreview {
|
|
2413
2402
|
/**
|
|
2414
|
-
*
|
|
2403
|
+
* <p>MCP Tool入参的ContentType</p><p>枚举值:</p><ul><li>application/json: json格式</li><li>application/x-www-form-urlencoded: 表单格式</li></ul>
|
|
2415
2404
|
*/
|
|
2416
|
-
|
|
2405
|
+
ContentType?: string;
|
|
2417
2406
|
/**
|
|
2418
|
-
*
|
|
2407
|
+
* <p>MCP Tool的描述</p>
|
|
2408
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2419
2409
|
*/
|
|
2420
|
-
|
|
2410
|
+
Description?: string;
|
|
2411
|
+
/**
|
|
2412
|
+
* <p>MCP Tool的参数</p>
|
|
2413
|
+
*/
|
|
2414
|
+
InputParams?: Array<CNAPIGwMCPToolParam>;
|
|
2415
|
+
/**
|
|
2416
|
+
* <p>MCP Tool的请求方法</p>
|
|
2417
|
+
*/
|
|
2418
|
+
Method?: string;
|
|
2419
|
+
/**
|
|
2420
|
+
* <p>MCP Tool名字</p>
|
|
2421
|
+
*/
|
|
2422
|
+
Name?: string;
|
|
2423
|
+
/**
|
|
2424
|
+
* <p>MCP Tool的请求路径</p>
|
|
2425
|
+
*/
|
|
2426
|
+
Path?: string;
|
|
2427
|
+
/**
|
|
2428
|
+
* <p>MCP Tool的状态</p><p>枚举值:</p><ul><li>Valid: 可导入</li><li>Invalid: 不可导入</li></ul>
|
|
2429
|
+
*/
|
|
2430
|
+
Status?: string;
|
|
2431
|
+
/**
|
|
2432
|
+
* <p>不可导入的原因</p>
|
|
2433
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2434
|
+
*/
|
|
2435
|
+
StatusMessage?: string;
|
|
2436
|
+
/**
|
|
2437
|
+
* <p>虚拟MCP Server的tools的完整url路径</p>
|
|
2438
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2439
|
+
*/
|
|
2440
|
+
UpstreamUrl?: string;
|
|
2421
2441
|
}
|
|
2422
2442
|
/**
|
|
2423
2443
|
* MCP Tool 信息
|
|
@@ -2662,6 +2682,10 @@ export interface AIGWLLMQuotaLimit {
|
|
|
2662
2682
|
* <p>该模型服务每分钟 Token 数上限,0 表示该维度不限</p>
|
|
2663
2683
|
*/
|
|
2664
2684
|
TPMLimit?: number;
|
|
2685
|
+
/**
|
|
2686
|
+
* <p>并发数限流</p>
|
|
2687
|
+
*/
|
|
2688
|
+
ConcurrentCountLimit?: number;
|
|
2665
2689
|
}
|
|
2666
2690
|
/**
|
|
2667
2691
|
* AI 网关自定义脱敏规则(A 层 / B 层共用结构体,MaskFormat 含义随所属层不同)
|
|
@@ -2719,13 +2743,17 @@ export interface AIGWTokenLengthRouteRule {
|
|
|
2719
2743
|
*/
|
|
2720
2744
|
export interface AIGWOAuthCredentialConfig {
|
|
2721
2745
|
/**
|
|
2722
|
-
* <p
|
|
2746
|
+
* <p>OAuth2 client_id</p>
|
|
2723
2747
|
*/
|
|
2724
2748
|
ClientId: string;
|
|
2725
2749
|
/**
|
|
2726
|
-
* <p
|
|
2750
|
+
* <p>OAuth2 client_secret</p>
|
|
2727
2751
|
*/
|
|
2728
2752
|
ClientSecret: string;
|
|
2753
|
+
/**
|
|
2754
|
+
* <p>OAuth2 授权回调地址</p>
|
|
2755
|
+
*/
|
|
2756
|
+
RedirectURIs?: string;
|
|
2729
2757
|
}
|
|
2730
2758
|
/**
|
|
2731
2759
|
* ModifyCloudNativeAPIGatewayConsumerGroup请求参数结构体
|
|
@@ -3113,6 +3141,139 @@ export interface ModifyCloudNativeAPIGatewayMCPToolStatusRequest {
|
|
|
3113
3141
|
*/
|
|
3114
3142
|
ToolId: string;
|
|
3115
3143
|
}
|
|
3144
|
+
/**
|
|
3145
|
+
* CreateCloudNativeAPIGatewayLLMModelService请求参数结构体
|
|
3146
|
+
*/
|
|
3147
|
+
export interface CreateCloudNativeAPIGatewayLLMModelServiceRequest {
|
|
3148
|
+
/**
|
|
3149
|
+
* <p>网关 id。</p>
|
|
3150
|
+
*/
|
|
3151
|
+
GatewayId: string;
|
|
3152
|
+
/**
|
|
3153
|
+
* <p>服务名称,最长60个字符,支持中英文大小写、数字及分隔符(“-”、“_”),不能以数字和分隔符开头,不能以分隔符结尾。</p>
|
|
3154
|
+
*/
|
|
3155
|
+
Name: string;
|
|
3156
|
+
/**
|
|
3157
|
+
* <p>服务类型。目前仅支持 LLMService。</p><p>枚举值:</p><ul><li>LLMService: 大语言模型服务</li></ul>
|
|
3158
|
+
*/
|
|
3159
|
+
ServiceType: string;
|
|
3160
|
+
/**
|
|
3161
|
+
* <p>选择模型提供商, 选项:OpenAI、Anthropic、Azure OpenAI等。</p>
|
|
3162
|
+
*/
|
|
3163
|
+
ModelProvider: string;
|
|
3164
|
+
/**
|
|
3165
|
+
* <p>API协议标准,根据供应商动态变化:OpenAI→OpenAI/v1,Anthropic→Anthropic/v1等</p>
|
|
3166
|
+
*/
|
|
3167
|
+
ModelProtocol: string;
|
|
3168
|
+
/**
|
|
3169
|
+
* <p>模型选择方式,选项:Specify(指定模型)、PassThrough(透传请求模型)。</p>
|
|
3170
|
+
*/
|
|
3171
|
+
ModelSelector: string;
|
|
3172
|
+
/**
|
|
3173
|
+
* <p>LLM 厂商颁发的认证信息 token 。</p>
|
|
3174
|
+
*/
|
|
3175
|
+
SecretKeyIds?: Array<string>;
|
|
3176
|
+
/**
|
|
3177
|
+
* <p>默认模型,模型选择方式为 Specify 时必填。</p>
|
|
3178
|
+
*/
|
|
3179
|
+
DefaultModel?: string;
|
|
3180
|
+
/**
|
|
3181
|
+
* <p>开启模型降级,模型选择方式为 Specify 时必填。</p>
|
|
3182
|
+
*/
|
|
3183
|
+
EnableModelFallback?: boolean;
|
|
3184
|
+
/**
|
|
3185
|
+
* <p>可以配置备用模型规则,EnableSpecifyModelFallbackxa0为 true 时必填。</p>
|
|
3186
|
+
*/
|
|
3187
|
+
ModelFallbackRule?: CloudNativeAPIGatewayLLMModelFallbackRule;
|
|
3188
|
+
/**
|
|
3189
|
+
* <p>开启模型参数校验,是否校验客户端传递的 model 参数,xa0模型选择方式为 PassThrough 时必填</p>
|
|
3190
|
+
*/
|
|
3191
|
+
EnableModelParamCheck?: boolean;
|
|
3192
|
+
/**
|
|
3193
|
+
* <p>模型检验信息,EnableModelParamCheckxa0为 true 时必填。</p>
|
|
3194
|
+
*/
|
|
3195
|
+
ModelParamCheckRule?: CloudNativeAPIGatewayLLMModelParamCheckInfo;
|
|
3196
|
+
/**
|
|
3197
|
+
* <p>描述。</p>
|
|
3198
|
+
*/
|
|
3199
|
+
Description?: string;
|
|
3200
|
+
/**
|
|
3201
|
+
* <p>服务提供商自定义 url</p>
|
|
3202
|
+
*/
|
|
3203
|
+
UpstreamURL?: string;
|
|
3204
|
+
/**
|
|
3205
|
+
* <p>连接超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:10000</p>
|
|
3206
|
+
*/
|
|
3207
|
+
ConnectTimeout?: number;
|
|
3208
|
+
/**
|
|
3209
|
+
* <p>写入超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:60000</p>
|
|
3210
|
+
*/
|
|
3211
|
+
WriteTimeout?: number;
|
|
3212
|
+
/**
|
|
3213
|
+
* <p>读取超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:60000</p>
|
|
3214
|
+
*/
|
|
3215
|
+
ReadTimeout?: number;
|
|
3216
|
+
/**
|
|
3217
|
+
* <p>重试次数</p><p>取值范围:[0, 5]</p><p>单位:次</p><p>默认值:0</p>
|
|
3218
|
+
*/
|
|
3219
|
+
Retries?: number;
|
|
3220
|
+
/**
|
|
3221
|
+
* <p>路径拼接模式</p><p>枚举值:</p><ul><li>FixedPath: 固定地址</li><li>AutoConcat: 自动拼接</li></ul>
|
|
3222
|
+
*/
|
|
3223
|
+
UpstreamUrlMode?: string;
|
|
3224
|
+
/**
|
|
3225
|
+
* <p>sni</p>
|
|
3226
|
+
*/
|
|
3227
|
+
SNI?: string;
|
|
3228
|
+
/**
|
|
3229
|
+
* <p>模型服务级别的配额上限(RPM/TPM)。需要网关版本 ≥ 3.9.4。</p>
|
|
3230
|
+
*/
|
|
3231
|
+
QuotaLimit?: AIGWLLMQuotaLimit;
|
|
3232
|
+
/**
|
|
3233
|
+
* <p>标签</p>
|
|
3234
|
+
*/
|
|
3235
|
+
Tags?: Array<string>;
|
|
3236
|
+
/**
|
|
3237
|
+
* <p>参数改写规则</p>
|
|
3238
|
+
*/
|
|
3239
|
+
ModelRewriteRules?: Array<AIGWModelRewriteRule>;
|
|
3240
|
+
/**
|
|
3241
|
+
* <p>模型自定义供应商名称</p>
|
|
3242
|
+
*/
|
|
3243
|
+
CustomProviderName?: string;
|
|
3244
|
+
/**
|
|
3245
|
+
* <p>外部服务来源ID</p>
|
|
3246
|
+
*/
|
|
3247
|
+
ExternalInstanceId?: string;
|
|
3248
|
+
/**
|
|
3249
|
+
* <p>其他参数</p>
|
|
3250
|
+
*/
|
|
3251
|
+
ExtParams?: Array<KeyValue>;
|
|
3252
|
+
/**
|
|
3253
|
+
* <p>密钥轮转开关</p>
|
|
3254
|
+
*/
|
|
3255
|
+
KeyRotationEnabled?: boolean;
|
|
3256
|
+
/**
|
|
3257
|
+
* <p>密钥轮转周期</p><p>单位:天数</p>
|
|
3258
|
+
*/
|
|
3259
|
+
KeyRotationPeriodDays?: number;
|
|
3260
|
+
/**
|
|
3261
|
+
* <p>来源服务 ID。</p>
|
|
3262
|
+
*/
|
|
3263
|
+
SourceId?: string;
|
|
3264
|
+
/**
|
|
3265
|
+
* <p>命名空间。</p>
|
|
3266
|
+
*/
|
|
3267
|
+
Namespace?: string;
|
|
3268
|
+
/**
|
|
3269
|
+
* <p>服务名称。</p>
|
|
3270
|
+
*/
|
|
3271
|
+
ServiceName?: string;
|
|
3272
|
+
/**
|
|
3273
|
+
* <p>协议类型,如 OpenAI、Custom。</p>
|
|
3274
|
+
*/
|
|
3275
|
+
Protocol?: string;
|
|
3276
|
+
}
|
|
3116
3277
|
/**
|
|
3117
3278
|
* AddCloudNativeAPIGatewayConsumerGroupAuth请求参数结构体
|
|
3118
3279
|
*/
|
|
@@ -3306,6 +3467,22 @@ export interface ModifyCloudNativeAPIGatewayLLMModelServiceRequest {
|
|
|
3306
3467
|
* <p>密钥轮转周期</p><p>单位:天数</p>
|
|
3307
3468
|
*/
|
|
3308
3469
|
KeyRotationPeriodDays?: number;
|
|
3470
|
+
/**
|
|
3471
|
+
* <p>来源服务 ID。</p>
|
|
3472
|
+
*/
|
|
3473
|
+
SourceId?: string;
|
|
3474
|
+
/**
|
|
3475
|
+
* <p>命名空间。</p>
|
|
3476
|
+
*/
|
|
3477
|
+
Namespace?: string;
|
|
3478
|
+
/**
|
|
3479
|
+
* <p>服务名称。</p>
|
|
3480
|
+
*/
|
|
3481
|
+
ServiceName?: string;
|
|
3482
|
+
/**
|
|
3483
|
+
* <p>协议类型,如 OpenAI、Custom。</p>
|
|
3484
|
+
*/
|
|
3485
|
+
Protocol?: string;
|
|
3309
3486
|
}
|
|
3310
3487
|
/**
|
|
3311
3488
|
* DescribeCloudNativeAPIGatewayMCPServerList返回参数结构体
|