tencentcloud-sdk-nodejs 4.1.255 → 4.1.257
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/ams/index.js +2 -2
- package/es/services/antiddos/index.js +2 -2
- package/es/services/apigateway/v20180808/apigateway_client.js +0 -3
- package/es/services/btoe/index.js +2 -2
- package/es/services/cii/index.js +2 -2
- package/es/services/clb/v20180317/clb_client.js +91 -16
- package/es/services/cngw/index.js +4 -0
- package/es/services/cngw/v20230418/cngw_client.js +141 -0
- package/es/services/cngw/v20230418/cngw_models.js +1 -0
- package/es/services/cngw/v20230418/index.js +6 -0
- package/es/services/csip/v20221121/csip_client.js +9 -0
- package/es/services/dbbrain/v20210527/dbbrain_client.js +3 -0
- package/es/services/dnspod/v20210323/dnspod_client.js +3 -0
- package/es/services/eis/index.js +2 -2
- package/es/services/ess/v20201111/ess_client.js +5 -2
- package/es/services/essbasic/index.js +2 -2
- package/es/services/essbasic/v20210526/essbasic_client.js +3 -0
- package/es/services/iai/index.js +2 -2
- package/es/services/ims/index.js +2 -2
- package/es/services/index.js +1 -0
- package/es/services/iotcloud/index.js +2 -2
- package/es/services/iotvideo/index.js +2 -2
- package/es/services/mna/v20210119/mna_client.js +5 -2
- package/es/services/mongodb/index.js +2 -2
- package/es/services/monitor/index.js +2 -2
- package/es/services/ocr/v20181119/ocr_client.js +3 -0
- package/es/services/organization/index.js +2 -2
- package/es/services/tcb/v20180608/tcb_client.js +8 -5
- package/es/services/tdmysql/v20211122/tdmysql_client.js +3 -0
- package/es/services/thpc/index.js +2 -2
- package/es/services/tione/index.js +2 -2
- package/es/services/tke/v20220501/tke_client.js +3 -0
- package/es/services/tms/index.js +2 -2
- package/es/services/vm/index.js +2 -2
- package/es/services/vod/index.js +2 -2
- package/es/services/wedata/index.js +2 -2
- package/es/services/yunsou/index.js +2 -2
- 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/ams/index.d.ts +4 -4
- package/tencentcloud/services/ams/index.js +2 -2
- package/tencentcloud/services/antiddos/index.d.ts +4 -4
- package/tencentcloud/services/antiddos/index.js +2 -2
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.d.ts +2 -8
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.js +1 -9
- package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +25 -48
- package/tencentcloud/services/bh/v20230418/bh_models.d.ts +67 -31
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +41 -38
- package/tencentcloud/services/btoe/index.d.ts +4 -4
- package/tencentcloud/services/btoe/index.js +2 -2
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +8 -15
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +22 -16
- package/tencentcloud/services/cii/index.d.ts +4 -4
- package/tencentcloud/services/cii/index.js +2 -2
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +27 -15
- package/tencentcloud/services/clb/v20180317/clb_client.d.ts +122 -22
- package/tencentcloud/services/clb/v20180317/clb_client.js +179 -29
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +2314 -888
- package/tencentcloud/services/cngw/index.d.ts +6 -0
- package/tencentcloud/services/cngw/index.js +7 -0
- package/tencentcloud/services/cngw/v20230418/cngw_client.d.ts +190 -0
- package/tencentcloud/services/cngw/v20230418/cngw_client.js +301 -0
- package/tencentcloud/services/cngw/v20230418/cngw_models.d.ts +2991 -0
- package/tencentcloud/services/cngw/v20230418/cngw_models.js +18 -0
- package/tencentcloud/services/cngw/v20230418/index.d.ts +6 -0
- package/tencentcloud/services/cngw/v20230418/index.js +10 -0
- package/tencentcloud/services/csip/v20221121/csip_client.d.ts +13 -1
- package/tencentcloud/services/csip/v20221121/csip_client.js +18 -0
- package/tencentcloud/services/csip/v20221121/csip_models.d.ts +622 -28
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +7 -7
- 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 +267 -26
- package/tencentcloud/services/dnspod/v20210323/dnspod_client.d.ts +5 -1
- package/tencentcloud/services/dnspod/v20210323/dnspod_client.js +6 -0
- package/tencentcloud/services/dnspod/v20210323/dnspod_models.d.ts +51 -1
- package/tencentcloud/services/dts/v20211206/dts_models.d.ts +5 -5
- package/tencentcloud/services/eis/index.d.ts +4 -4
- package/tencentcloud/services/eis/index.js +2 -2
- package/tencentcloud/services/es/v20180416/es_models.d.ts +4 -0
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +21 -3
- package/tencentcloud/services/ess/v20201111/ess_client.js +23 -3
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +52 -39
- package/tencentcloud/services/essbasic/index.d.ts +4 -4
- package/tencentcloud/services/essbasic/index.js +2 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +19 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +20 -0
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +30 -0
- package/tencentcloud/services/ga2/v20250115/ga2_models.d.ts +6 -6
- package/tencentcloud/services/iai/index.d.ts +4 -4
- package/tencentcloud/services/iai/index.js +2 -2
- package/tencentcloud/services/ims/index.d.ts +4 -4
- package/tencentcloud/services/ims/index.js +2 -2
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +7 -5
- package/tencentcloud/services/iotcloud/index.d.ts +4 -4
- package/tencentcloud/services/iotcloud/index.js +2 -2
- package/tencentcloud/services/iotvideo/index.d.ts +4 -4
- package/tencentcloud/services/iotvideo/index.js +2 -2
- package/tencentcloud/services/live/v20180801/live_models.d.ts +8 -0
- package/tencentcloud/services/mna/v20210119/mna_client.d.ts +7 -3
- package/tencentcloud/services/mna/v20210119/mna_client.js +9 -3
- package/tencentcloud/services/mna/v20210119/mna_models.d.ts +59 -0
- package/tencentcloud/services/mongodb/index.d.ts +4 -4
- package/tencentcloud/services/mongodb/index.js +2 -2
- package/tencentcloud/services/monitor/index.d.ts +4 -4
- package/tencentcloud/services/monitor/index.js +2 -2
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +5 -8
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +1 -1
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +9 -1
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +10 -0
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +77 -21
- package/tencentcloud/services/organization/index.d.ts +4 -4
- package/tencentcloud/services/organization/index.js +2 -2
- package/tencentcloud/services/organization/v20210331/organization_models.d.ts +17 -9
- package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +15 -11
- package/tencentcloud/services/redis/v20180412/redis_client.d.ts +1 -1
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +93 -52
- package/tencentcloud/services/tcb/v20180608/tcb_client.d.ts +11 -7
- package/tencentcloud/services/tcb/v20180608/tcb_client.js +15 -9
- package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +57 -2
- package/tencentcloud/services/tdmysql/v20211122/tdmysql_client.d.ts +5 -1
- package/tencentcloud/services/tdmysql/v20211122/tdmysql_client.js +6 -0
- package/tencentcloud/services/tdmysql/v20211122/tdmysql_models.d.ts +47 -0
- package/tencentcloud/services/thpc/index.d.ts +4 -4
- package/tencentcloud/services/thpc/index.js +2 -2
- package/tencentcloud/services/tione/index.d.ts +4 -4
- package/tencentcloud/services/tione/index.js +2 -2
- package/tencentcloud/services/tke/v20220501/tke_client.d.ts +5 -1
- package/tencentcloud/services/tke/v20220501/tke_client.js +6 -0
- package/tencentcloud/services/tke/v20220501/tke_models.d.ts +30 -13
- package/tencentcloud/services/tms/index.d.ts +4 -4
- package/tencentcloud/services/tms/index.js +2 -2
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +76 -57
- package/tencentcloud/services/vm/index.d.ts +4 -4
- package/tencentcloud/services/vm/index.js +2 -2
- package/tencentcloud/services/vm/v20210922/vm_client.d.ts +2 -2
- package/tencentcloud/services/vm/v20210922/vm_client.js +2 -2
- package/tencentcloud/services/vod/index.d.ts +4 -4
- package/tencentcloud/services/vod/index.js +2 -2
- package/tencentcloud/services/wedata/index.d.ts +4 -4
- package/tencentcloud/services/wedata/index.js +2 -2
- package/tencentcloud/services/yunsou/index.d.ts +4 -4
- package/tencentcloud/services/yunsou/index.js +2 -2
|
@@ -0,0 +1,2991 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateCloudNativeAPIGatewayMCPTool请求参数结构体
|
|
3
|
+
*/
|
|
4
|
+
export interface CreateCloudNativeAPIGatewayMCPToolRequest {
|
|
5
|
+
/**
|
|
6
|
+
* <p>内容类型</p>
|
|
7
|
+
*/
|
|
8
|
+
ContentType: string;
|
|
9
|
+
/**
|
|
10
|
+
* <p>展示名字</p>
|
|
11
|
+
*/
|
|
12
|
+
DisplayName?: string;
|
|
13
|
+
/**
|
|
14
|
+
* <p>服务 id</p>
|
|
15
|
+
*/
|
|
16
|
+
ServiceId?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* DescribeCloudNativeAPIGatewayLLMModelServices返回参数结构体
|
|
20
|
+
*/
|
|
21
|
+
export interface DescribeCloudNativeAPIGatewayLLMModelServicesResponse {
|
|
22
|
+
/**
|
|
23
|
+
* <p>模型服务列表。</p>
|
|
24
|
+
*/
|
|
25
|
+
Result?: ListCloudNativeAPIGatewayLLMModelService;
|
|
26
|
+
/**
|
|
27
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
28
|
+
*/
|
|
29
|
+
RequestId?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* ModifyCloudNativeAPIGatewayConsumerGroup返回参数结构体
|
|
33
|
+
*/
|
|
34
|
+
export interface ModifyCloudNativeAPIGatewayConsumerGroupResponse {
|
|
35
|
+
/**
|
|
36
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
37
|
+
*/
|
|
38
|
+
RequestId?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* DescribeCloudNativeAPIGatewayMCPServerACL请求参数结构体
|
|
42
|
+
*/
|
|
43
|
+
export interface DescribeCloudNativeAPIGatewayMCPServerACLRequest {
|
|
44
|
+
/**
|
|
45
|
+
* <p>网关实例 ID</p>
|
|
46
|
+
*/
|
|
47
|
+
GatewayId: string;
|
|
48
|
+
/**
|
|
49
|
+
* <p>MCP服务ID</p>
|
|
50
|
+
*/
|
|
51
|
+
ServerId: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* DeleteCloudNativeAPIGatewayMCPTool返回参数结构体
|
|
55
|
+
*/
|
|
56
|
+
export interface DeleteCloudNativeAPIGatewayMCPToolResponse {
|
|
57
|
+
/**
|
|
58
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
59
|
+
*/
|
|
60
|
+
RequestId?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* CreateCloudNativeAPIGatewayMCPServer请求参数结构体
|
|
64
|
+
*/
|
|
65
|
+
export interface CreateCloudNativeAPIGatewayMCPServerRequest {
|
|
66
|
+
/**
|
|
67
|
+
* <p>实例 ID</p>
|
|
68
|
+
*/
|
|
69
|
+
GatewayId: string;
|
|
70
|
+
/**
|
|
71
|
+
* <p>名字</p>
|
|
72
|
+
*/
|
|
73
|
+
Name: string;
|
|
74
|
+
/**
|
|
75
|
+
* <p>展示名字</p>
|
|
76
|
+
*/
|
|
77
|
+
DisplayName: string;
|
|
78
|
+
/**
|
|
79
|
+
* <p>MCP服务类型</p><ul><li>MCP</li><li>Rest2MCP</li></ul>
|
|
80
|
+
*/
|
|
81
|
+
ServerType: string;
|
|
82
|
+
/**
|
|
83
|
+
* <p>传输协议:StreamableHttp或SSE</p><p>枚举值:</p><ul><li>StreamableHttp: Streamable HTTP</li><li>SSE: Server-Sent Events</li></ul>
|
|
84
|
+
*/
|
|
85
|
+
Transport: string;
|
|
86
|
+
/**
|
|
87
|
+
* <p>后端类型</p><p>枚举值:</p><ul><li>MCPRegistry: mcp 注册中心- Registry</li><li>Registry: 普通注册中心</li><li>HostIP: 域名或ip</li><li>VirtualMCPServer: 虚拟MCPServer</li></ul>
|
|
88
|
+
*/
|
|
89
|
+
UpstreamType: string;
|
|
90
|
+
/**
|
|
91
|
+
* <p>注册中心来源信息</p>
|
|
92
|
+
*/
|
|
93
|
+
UpstreamInfo?: AIGWMCPUpstreamInfo;
|
|
94
|
+
/**
|
|
95
|
+
* <p>会话配置</p>
|
|
96
|
+
*/
|
|
97
|
+
SessionConfig?: AIGWMCPSessionConfig;
|
|
98
|
+
/**
|
|
99
|
+
* <p>超时时间,单位ms,最大60000</p>
|
|
100
|
+
*/
|
|
101
|
+
Timeout?: number;
|
|
102
|
+
/**
|
|
103
|
+
* <p>重试次数,最大3次</p>
|
|
104
|
+
*/
|
|
105
|
+
RetryCount?: number;
|
|
106
|
+
/**
|
|
107
|
+
* <p>描述</p>
|
|
108
|
+
*/
|
|
109
|
+
Description?: string;
|
|
110
|
+
/**
|
|
111
|
+
* <p>是否启用健康检查</p>
|
|
112
|
+
*/
|
|
113
|
+
EnableHealthCheck?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* <p>健康检查配置</p>
|
|
116
|
+
*/
|
|
117
|
+
HealthCheck?: AIGWHealthCheckSetting;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* DeleteCloudNativeAPIGatewaySecretKey请求参数结构体
|
|
121
|
+
*/
|
|
122
|
+
export interface DeleteCloudNativeAPIGatewaySecretKeyRequest {
|
|
123
|
+
/**
|
|
124
|
+
* 网关ID
|
|
125
|
+
*/
|
|
126
|
+
GatewayId: string;
|
|
127
|
+
/**
|
|
128
|
+
* 密钥id
|
|
129
|
+
*/
|
|
130
|
+
SecretKeyId: string;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* 云原生网关MCP后端信息,用于创建、修改请求
|
|
134
|
+
*/
|
|
135
|
+
export interface AIGWMCPUpstreamInfo {
|
|
136
|
+
/**
|
|
137
|
+
* <p>注册中心来源ID</p>
|
|
138
|
+
*/
|
|
139
|
+
SourceId?: string;
|
|
140
|
+
/**
|
|
141
|
+
* <p>命名空间</p>
|
|
142
|
+
*/
|
|
143
|
+
Namespace?: string;
|
|
144
|
+
/**
|
|
145
|
+
* <p>MCP服务 id</p>
|
|
146
|
+
*/
|
|
147
|
+
MCPServerId?: string;
|
|
148
|
+
/**
|
|
149
|
+
* <p>协议,UpstreamType是Registry 时必传</p><ul><li>http</li><li>https</li></ul>
|
|
150
|
+
*/
|
|
151
|
+
Protocol?: string;
|
|
152
|
+
/**
|
|
153
|
+
* <p>域名或ip</p>
|
|
154
|
+
*/
|
|
155
|
+
Host?: string;
|
|
156
|
+
/**
|
|
157
|
+
* <p>端口</p>
|
|
158
|
+
*/
|
|
159
|
+
Port?: number;
|
|
160
|
+
/**
|
|
161
|
+
* <p>服务 id</p>
|
|
162
|
+
*/
|
|
163
|
+
ServiceId?: string;
|
|
164
|
+
/**
|
|
165
|
+
* <p>服务分组</p>
|
|
166
|
+
*/
|
|
167
|
+
ServiceGroup?: string;
|
|
168
|
+
/**
|
|
169
|
+
* <p>mcp endpoint</p>
|
|
170
|
+
*/
|
|
171
|
+
MCPEndpoint?: string;
|
|
172
|
+
/**
|
|
173
|
+
* <p>message端点路径,SSE协议时配置</p>
|
|
174
|
+
*/
|
|
175
|
+
MessageEndpoint?: string;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* 单个消费者 Token 用量查询结果
|
|
179
|
+
*/
|
|
180
|
+
export interface AIGWLLMTokenUsageItem {
|
|
181
|
+
/**
|
|
182
|
+
* <p>消费者Id</p>
|
|
183
|
+
*/
|
|
184
|
+
ConsumerId?: string;
|
|
185
|
+
/**
|
|
186
|
+
* <p>消费者名称</p>
|
|
187
|
+
*/
|
|
188
|
+
ConsumerName?: string;
|
|
189
|
+
/**
|
|
190
|
+
* <p>消费者组信息列表</p>
|
|
191
|
+
*/
|
|
192
|
+
ConsumerGroups?: Array<AIGWConsumerGroupBrief>;
|
|
193
|
+
/**
|
|
194
|
+
* <p>模型服务Id</p>
|
|
195
|
+
*/
|
|
196
|
+
ModelServiceId?: string;
|
|
197
|
+
/**
|
|
198
|
+
* <p>模型服务名称</p>
|
|
199
|
+
*/
|
|
200
|
+
ModelServiceName?: string;
|
|
201
|
+
/**
|
|
202
|
+
* <p>输入Token数(包含缓存命中Token数)</p>
|
|
203
|
+
*/
|
|
204
|
+
InputTokens?: number;
|
|
205
|
+
/**
|
|
206
|
+
* <p>命中缓存输入Token数</p>
|
|
207
|
+
*/
|
|
208
|
+
CacheReadInputTokens?: number;
|
|
209
|
+
/**
|
|
210
|
+
* <p>输出Token数</p>
|
|
211
|
+
*/
|
|
212
|
+
OutputTokens?: number;
|
|
213
|
+
/**
|
|
214
|
+
* <p>消耗总Token数</p>
|
|
215
|
+
*/
|
|
216
|
+
TotalTokens?: number;
|
|
217
|
+
/**
|
|
218
|
+
* <p>请求总数</p>
|
|
219
|
+
*/
|
|
220
|
+
RequestCount?: number;
|
|
221
|
+
/**
|
|
222
|
+
* <p>花费成本</p>
|
|
223
|
+
*/
|
|
224
|
+
Cost?: string;
|
|
225
|
+
/**
|
|
226
|
+
* <p>成本货币单位</p><p>枚举值:</p><ul><li>CNY: 人民币</li></ul><p>当前仅支持CNY</p>
|
|
227
|
+
*/
|
|
228
|
+
Currency?: string;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* DeleteCloudNativeAPIGatewayMCPTool请求参数结构体
|
|
232
|
+
*/
|
|
233
|
+
export interface DeleteCloudNativeAPIGatewayMCPToolRequest {
|
|
234
|
+
/**
|
|
235
|
+
* <p>网关实例ID</p>
|
|
236
|
+
*/
|
|
237
|
+
GatewayId: string;
|
|
238
|
+
/**
|
|
239
|
+
* <p>工具id</p>
|
|
240
|
+
*/
|
|
241
|
+
ToolId: string;
|
|
242
|
+
/**
|
|
243
|
+
* <p>MCP 服务 id</p>
|
|
244
|
+
*/
|
|
245
|
+
ServerId: string;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* 精确缓存 redis 配置
|
|
249
|
+
*/
|
|
250
|
+
export interface AIGWRedisConfig {
|
|
251
|
+
/**
|
|
252
|
+
* <p>Host</p>
|
|
253
|
+
*/
|
|
254
|
+
Host: string;
|
|
255
|
+
/**
|
|
256
|
+
* <p>端口</p>
|
|
257
|
+
*/
|
|
258
|
+
Port: number;
|
|
259
|
+
/**
|
|
260
|
+
* <p>用户名</p>
|
|
261
|
+
*/
|
|
262
|
+
Username?: string;
|
|
263
|
+
/**
|
|
264
|
+
* <p>密码</p>
|
|
265
|
+
*/
|
|
266
|
+
Password?: string;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* AI 网关意图路由配置
|
|
270
|
+
*/
|
|
271
|
+
export interface AIGWIntentRoute {
|
|
272
|
+
/**
|
|
273
|
+
* <p>意图识别模型id</p>
|
|
274
|
+
*/
|
|
275
|
+
IntentModelServiceId: string;
|
|
276
|
+
/**
|
|
277
|
+
* <p>置信度</p>
|
|
278
|
+
*/
|
|
279
|
+
ConfidenceThreshold: number;
|
|
280
|
+
/**
|
|
281
|
+
* <p>默认服务id</p>
|
|
282
|
+
*/
|
|
283
|
+
DefaultModelServiceId: string;
|
|
284
|
+
/**
|
|
285
|
+
* <p>规则</p>
|
|
286
|
+
*/
|
|
287
|
+
Rules?: Array<AIGWIntentRouteRule>;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* 降级服务元素
|
|
291
|
+
*/
|
|
292
|
+
export interface AIGWFallbackServiceItem {
|
|
293
|
+
/**
|
|
294
|
+
* <p>模型服务 Id</p>
|
|
295
|
+
*/
|
|
296
|
+
ModelServiceId: string;
|
|
297
|
+
/**
|
|
298
|
+
* <p>模型服务名</p>
|
|
299
|
+
*/
|
|
300
|
+
ModelServiceName?: string;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* DescribeCloudNativeAPIGatewaySecretKeyValue请求参数结构体
|
|
304
|
+
*/
|
|
305
|
+
export interface DescribeCloudNativeAPIGatewaySecretKeyValueRequest {
|
|
306
|
+
/**
|
|
307
|
+
* 实例 ID
|
|
308
|
+
*/
|
|
309
|
+
GatewayId: string;
|
|
310
|
+
/**
|
|
311
|
+
* 密钥id
|
|
312
|
+
*/
|
|
313
|
+
SecretKeyId: string;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* AI 网关延迟优先路由模型服务
|
|
317
|
+
*/
|
|
318
|
+
export interface AIGWLatencyPriorityRouteRule {
|
|
319
|
+
/**
|
|
320
|
+
* <p>模型服务id</p>
|
|
321
|
+
*/
|
|
322
|
+
ModelServiceId: string;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* AI 网关中消费者组简要信息
|
|
326
|
+
*/
|
|
327
|
+
export interface AIGWConsumerGroupBrief {
|
|
328
|
+
/**
|
|
329
|
+
* <p>消费者组名称</p>
|
|
330
|
+
*/
|
|
331
|
+
Name?: string;
|
|
332
|
+
/**
|
|
333
|
+
* <p>消费者组Id</p>
|
|
334
|
+
*/
|
|
335
|
+
ConsumerGroupId?: string;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* DeleteCloudNativeAPIGatewayConsumer返回参数结构体
|
|
339
|
+
*/
|
|
340
|
+
export interface DeleteCloudNativeAPIGatewayConsumerResponse {
|
|
341
|
+
/**
|
|
342
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
343
|
+
*/
|
|
344
|
+
RequestId?: string;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* RemoveCloudNativeAPIGatewayConsumerGroupAuth返回参数结构体
|
|
348
|
+
*/
|
|
349
|
+
export interface RemoveCloudNativeAPIGatewayConsumerGroupAuthResponse {
|
|
350
|
+
/**
|
|
351
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
352
|
+
*/
|
|
353
|
+
RequestId?: string;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* ModifyCloudNativeAPIGatewayMCPServer请求参数结构体
|
|
357
|
+
*/
|
|
358
|
+
export interface ModifyCloudNativeAPIGatewayMCPServerRequest {
|
|
359
|
+
/**
|
|
360
|
+
* <p>实例 ID</p>
|
|
361
|
+
*/
|
|
362
|
+
GatewayId: string;
|
|
363
|
+
/**
|
|
364
|
+
* <p>展示名字</p>
|
|
365
|
+
*/
|
|
366
|
+
DisplayName: string;
|
|
367
|
+
/**
|
|
368
|
+
* <p>服务 id</p>
|
|
369
|
+
*/
|
|
370
|
+
ServerId: string;
|
|
371
|
+
/**
|
|
372
|
+
* <p>后端类型</p><p>枚举值:</p><ul><li>HostIP: 域名 ip</li><li>MCPRegistry: MCP 注册中心</li><li>VirtualMCPServer: 虚拟MCP 服务</li></ul>
|
|
373
|
+
*/
|
|
374
|
+
UpstreamType: string;
|
|
375
|
+
/**
|
|
376
|
+
* <p>超时时间,单位ms,最大60000</p>
|
|
377
|
+
*/
|
|
378
|
+
Timeout?: number;
|
|
379
|
+
/**
|
|
380
|
+
* <p>重试次数,最大3次</p>
|
|
381
|
+
*/
|
|
382
|
+
RetryCount?: number;
|
|
383
|
+
/**
|
|
384
|
+
* <p>注册中心来源信息</p>
|
|
385
|
+
*/
|
|
386
|
+
UpstreamInfo?: AIGWMCPUpstreamInfo;
|
|
387
|
+
/**
|
|
388
|
+
* <p>会话配置</p>
|
|
389
|
+
*/
|
|
390
|
+
SessionConfig?: AIGWMCPSessionConfig;
|
|
391
|
+
/**
|
|
392
|
+
* <p>描述</p>
|
|
393
|
+
*/
|
|
394
|
+
Description?: string;
|
|
395
|
+
/**
|
|
396
|
+
* <p>是否启用健康检查</p>
|
|
397
|
+
*/
|
|
398
|
+
EnableHealthCheck?: boolean;
|
|
399
|
+
/**
|
|
400
|
+
* <p>健康检查配置</p>
|
|
401
|
+
*/
|
|
402
|
+
HealthCheck?: AIGWHealthCheckSetting;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* AI 网关 MCP Server 认证配置详情
|
|
406
|
+
*/
|
|
407
|
+
export interface AIGWMCPServerAuthResult {
|
|
408
|
+
/**
|
|
409
|
+
* <p>MCP服务认证类型</p><p>枚举值:</p><ul><li>None: 无认证</li><li>ApiKey: API Key认证</li></ul>
|
|
410
|
+
*/
|
|
411
|
+
AuthType?: string;
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* 路由匹配规则
|
|
415
|
+
*/
|
|
416
|
+
export interface AIGWKVMatch {
|
|
417
|
+
/**
|
|
418
|
+
* <p>键</p>
|
|
419
|
+
*/
|
|
420
|
+
Key: string;
|
|
421
|
+
/**
|
|
422
|
+
* <p>值</p>
|
|
423
|
+
*/
|
|
424
|
+
Value: string;
|
|
425
|
+
/**
|
|
426
|
+
* <p>操作类型</p>
|
|
427
|
+
*/
|
|
428
|
+
Operator: string;
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* DescribeCloudNativeAPIGatewayMCPServerAuth返回参数结构体
|
|
432
|
+
*/
|
|
433
|
+
export interface DescribeCloudNativeAPIGatewayMCPServerAuthResponse {
|
|
434
|
+
/**
|
|
435
|
+
* <p>MCP服务认证查询结果</p>
|
|
436
|
+
*/
|
|
437
|
+
Result?: AIGWMCPServerAuthResult;
|
|
438
|
+
/**
|
|
439
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
440
|
+
*/
|
|
441
|
+
RequestId?: string;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* DeleteCloudNativeAPIGatewayConsumerGroup请求参数结构体
|
|
445
|
+
*/
|
|
446
|
+
export interface DeleteCloudNativeAPIGatewayConsumerGroupRequest {
|
|
447
|
+
/**
|
|
448
|
+
* 网关实例id
|
|
449
|
+
*/
|
|
450
|
+
GatewayId: string;
|
|
451
|
+
/**
|
|
452
|
+
* 消费者组ID
|
|
453
|
+
*/
|
|
454
|
+
ConsumerGroupId: string;
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* DescribeCloudNativeAPIGatewayLLMModelService请求参数结构体
|
|
458
|
+
*/
|
|
459
|
+
export interface DescribeCloudNativeAPIGatewayLLMModelServiceRequest {
|
|
460
|
+
/**
|
|
461
|
+
* <p>网关 id。</p>
|
|
462
|
+
*/
|
|
463
|
+
GatewayId: string;
|
|
464
|
+
/**
|
|
465
|
+
* <p>模型服务 ID,全局唯一标识。</p>
|
|
466
|
+
*/
|
|
467
|
+
ModelServiceId: string;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* AI 网关 ACL 授权主体(Consumer / ConsumerGroup 共用结构),用于响应中回显 Id + Name,减少前端多次查询调用
|
|
471
|
+
*/
|
|
472
|
+
export interface AIGWACLSubject {
|
|
473
|
+
/**
|
|
474
|
+
* <p>鉴权主体ID</p>
|
|
475
|
+
*/
|
|
476
|
+
Id?: string;
|
|
477
|
+
/**
|
|
478
|
+
* <p>鉴权主体名称</p>
|
|
479
|
+
*/
|
|
480
|
+
Name?: string;
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* 权重路由配置
|
|
484
|
+
*/
|
|
485
|
+
export interface CloudNativeAPIGatewayLLMModelServiceRouteWeightedStrategy {
|
|
486
|
+
/**
|
|
487
|
+
* <p>模型服务id</p>
|
|
488
|
+
*/
|
|
489
|
+
ModelServiceId: string;
|
|
490
|
+
/**
|
|
491
|
+
* <p>权重值</p>
|
|
492
|
+
*/
|
|
493
|
+
Weight: number;
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* ModifyCloudNativeAPIGatewaySecretKey返回参数结构体
|
|
497
|
+
*/
|
|
498
|
+
export interface ModifyCloudNativeAPIGatewaySecretKeyResponse {
|
|
499
|
+
/**
|
|
500
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
501
|
+
*/
|
|
502
|
+
RequestId?: string;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* AI网关标签过滤
|
|
506
|
+
*/
|
|
507
|
+
export interface AIGWTagFilter {
|
|
508
|
+
/**
|
|
509
|
+
* <p>匹配策略</p><p>枚举值:</p><ul><li>AND: 并</li><li>OR: 或</li></ul>
|
|
510
|
+
*/
|
|
511
|
+
MatchStrategy?: string;
|
|
512
|
+
/**
|
|
513
|
+
* <p>标签</p>
|
|
514
|
+
*/
|
|
515
|
+
Tags?: Array<string>;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* LLM-模型参数检查信息
|
|
519
|
+
*/
|
|
520
|
+
export interface CloudNativeAPIGatewayLLMModelParamCheckInfo {
|
|
521
|
+
/**
|
|
522
|
+
* 允许的模型列表。
|
|
523
|
+
*/
|
|
524
|
+
AllowModelList?: Array<string>;
|
|
525
|
+
/**
|
|
526
|
+
* 模型参数校验失败时的处理策略,选项:Return404(返回404)、FallBackToDefaultModel(使用默认模型降级)。
|
|
527
|
+
*/
|
|
528
|
+
ModelValidationFailureStrategy?: string;
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* DescribeCloudNativeAPIGatewayMCPToolACLList返回参数结构体
|
|
532
|
+
*/
|
|
533
|
+
export interface DescribeCloudNativeAPIGatewayMCPToolACLListResponse {
|
|
534
|
+
/**
|
|
535
|
+
* <p>MCP 服务 Tool ACL 列表结果</p>
|
|
536
|
+
*/
|
|
537
|
+
Result?: AIGWMCPToolACLListResult;
|
|
538
|
+
/**
|
|
539
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
540
|
+
*/
|
|
541
|
+
RequestId?: string;
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* ModifyCloudNativeAPIGatewayMCPServerAuth返回参数结构体
|
|
545
|
+
*/
|
|
546
|
+
export interface ModifyCloudNativeAPIGatewayMCPServerAuthResponse {
|
|
547
|
+
/**
|
|
548
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
549
|
+
*/
|
|
550
|
+
RequestId?: string;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* CreateCloudNativeAPIGatewayConsumerGroup请求参数结构体
|
|
554
|
+
*/
|
|
555
|
+
export interface CreateCloudNativeAPIGatewayConsumerGroupRequest {
|
|
556
|
+
/**
|
|
557
|
+
* <p>网关实例id</p>
|
|
558
|
+
*/
|
|
559
|
+
GatewayId: string;
|
|
560
|
+
/**
|
|
561
|
+
* <p>消费者组名称,最长 60 字符。同一网关下唯一。</p>
|
|
562
|
+
*/
|
|
563
|
+
Name: string;
|
|
564
|
+
/**
|
|
565
|
+
* <p>启用状态。</p><p>枚举值:</p><ul><li>Enable:启用</li><li>Disable:禁用</li></ul>
|
|
566
|
+
*/
|
|
567
|
+
Status: string;
|
|
568
|
+
/**
|
|
569
|
+
* <p>消费者组描述。最长 200 字符。</p>
|
|
570
|
+
*/
|
|
571
|
+
Description?: string;
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* 密钥信息
|
|
575
|
+
*/
|
|
576
|
+
export interface CNAPIGwSecretKey {
|
|
577
|
+
/**
|
|
578
|
+
* <p>密钥id</p>
|
|
579
|
+
*/
|
|
580
|
+
SecretKeyId?: string;
|
|
581
|
+
/**
|
|
582
|
+
* <p>密钥名字</p>
|
|
583
|
+
*/
|
|
584
|
+
Name?: string;
|
|
585
|
+
/**
|
|
586
|
+
* <p>密钥协议类型。</p>
|
|
587
|
+
*/
|
|
588
|
+
SecretType?: string;
|
|
589
|
+
/**
|
|
590
|
+
* <p>状态。</p><p>枚举值:</p><ul><li>Enable: 启用</li><li>Disable: 禁用</li></ul>
|
|
591
|
+
*/
|
|
592
|
+
Status?: string;
|
|
593
|
+
/**
|
|
594
|
+
* <p>密钥生成方式。</p><p>枚举值:</p><ul><li>System: 系统自动生成</li><li>Custom: 用户自定义</li><li>KMS: 使用 KMS 密钥</li></ul>
|
|
595
|
+
*/
|
|
596
|
+
GenerateType?: string;
|
|
597
|
+
/**
|
|
598
|
+
* <p>密钥明文</p>
|
|
599
|
+
*/
|
|
600
|
+
SecretValue?: string;
|
|
601
|
+
/**
|
|
602
|
+
* <p>KMS凭证名字</p>
|
|
603
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
604
|
+
*/
|
|
605
|
+
KmsKeyName?: string;
|
|
606
|
+
/**
|
|
607
|
+
* <p>KMS凭证版本</p>
|
|
608
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
609
|
+
*/
|
|
610
|
+
KmsKeyVersion?: string;
|
|
611
|
+
/**
|
|
612
|
+
* <p>描述</p>
|
|
613
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
614
|
+
*/
|
|
615
|
+
Description?: string;
|
|
616
|
+
/**
|
|
617
|
+
* <p>是否可以绑定</p>
|
|
618
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
619
|
+
*/
|
|
620
|
+
CanBind?: boolean;
|
|
621
|
+
/**
|
|
622
|
+
* <p>创建时间</p>
|
|
623
|
+
*/
|
|
624
|
+
CreateTime?: string;
|
|
625
|
+
/**
|
|
626
|
+
* <p>修改时间</p>
|
|
627
|
+
*/
|
|
628
|
+
ModifyTime?: string;
|
|
629
|
+
/**
|
|
630
|
+
* <p>绑定数</p>
|
|
631
|
+
*/
|
|
632
|
+
BindCount?: number;
|
|
633
|
+
/**
|
|
634
|
+
* <p>密钥归属资源类型。</p><p>枚举值:</p><ul><li>Consumer: 消费者</li><li>ModelService: 模型服务</li></ul>
|
|
635
|
+
*/
|
|
636
|
+
ResourceType?: string;
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* ModifyCloudNativeAPIGatewayLLMModelAPI返回参数结构体
|
|
640
|
+
*/
|
|
641
|
+
export interface ModifyCloudNativeAPIGatewayLLMModelAPIResponse {
|
|
642
|
+
/**
|
|
643
|
+
* <p>是否成功。</p>
|
|
644
|
+
*/
|
|
645
|
+
Result?: boolean;
|
|
646
|
+
/**
|
|
647
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
648
|
+
*/
|
|
649
|
+
RequestId?: string;
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* 消费者结构
|
|
653
|
+
*/
|
|
654
|
+
export interface CNAPIGwConsumer {
|
|
655
|
+
/**
|
|
656
|
+
* <p>消费者 ID。</p>
|
|
657
|
+
*/
|
|
658
|
+
ConsumerId: string;
|
|
659
|
+
/**
|
|
660
|
+
* <p>名字</p>
|
|
661
|
+
*/
|
|
662
|
+
Name: string;
|
|
663
|
+
/**
|
|
664
|
+
* <p>创建时间</p>
|
|
665
|
+
*/
|
|
666
|
+
CreateTime: string;
|
|
667
|
+
/**
|
|
668
|
+
* <p>更新时间 yyyy-MM-dd hh:mm:ss</p>
|
|
669
|
+
*/
|
|
670
|
+
ModifyTime: string;
|
|
671
|
+
/**
|
|
672
|
+
* <p>描述</p>
|
|
673
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
674
|
+
*/
|
|
675
|
+
Description?: string;
|
|
676
|
+
/**
|
|
677
|
+
* <p>消费者分组</p>
|
|
678
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
679
|
+
*/
|
|
680
|
+
ConsumerGroups?: Array<CNAPIGwConsumerGroup>;
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* AI 网关日志输出配置
|
|
684
|
+
*/
|
|
685
|
+
export interface AIGWLogConfig {
|
|
686
|
+
/**
|
|
687
|
+
* <p>是否开启请求 payload 记录日志</p>
|
|
688
|
+
*/
|
|
689
|
+
EnableRequestLogPayloads?: boolean;
|
|
690
|
+
/**
|
|
691
|
+
* <p>是否开启响应 payload 记录日志</p>
|
|
692
|
+
*/
|
|
693
|
+
EnableResponseLogPayloads?: boolean;
|
|
694
|
+
/**
|
|
695
|
+
* <p>日志记录的请求body的最大字节数</p><p>取值范围:[512, 1048576]</p><p>EnableRequestLogPayloads 为true时必填</p>
|
|
696
|
+
*/
|
|
697
|
+
RequestLogPayloadMaxSize?: number;
|
|
698
|
+
/**
|
|
699
|
+
* <p>日志记录的响应body的最大字节数</p><p>取值范围:[512, 1048576]</p><p>EnableResponseLogPayloads 为true时必填</p>
|
|
700
|
+
*/
|
|
701
|
+
ResponseLogPayloadMaxSize?: number;
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* MCP Server 列表
|
|
705
|
+
*/
|
|
706
|
+
export interface AIGWMCPServerList {
|
|
707
|
+
/**
|
|
708
|
+
* <p>总数</p>
|
|
709
|
+
*/
|
|
710
|
+
TotalCount: number;
|
|
711
|
+
/**
|
|
712
|
+
* <p>mcp server 数据列表</p>
|
|
713
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
714
|
+
*/
|
|
715
|
+
DataList?: Array<AIGWMCPServer>;
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* CreateCloudNativeAPIGatewayLLMModelService请求参数结构体
|
|
719
|
+
*/
|
|
720
|
+
export interface CreateCloudNativeAPIGatewayLLMModelServiceRequest {
|
|
721
|
+
/**
|
|
722
|
+
* <p>网关 id。</p>
|
|
723
|
+
*/
|
|
724
|
+
GatewayId: string;
|
|
725
|
+
/**
|
|
726
|
+
* <p>服务名称,最长60个字符,支持中英文大小写、数字及分隔符(“-”、“_”),不能以数字和分隔符开头,不能以分隔符结尾。</p>
|
|
727
|
+
*/
|
|
728
|
+
Name: string;
|
|
729
|
+
/**
|
|
730
|
+
* <p>服务类型。目前仅支持 LLMService。</p><p>枚举值:</p><ul><li>LLMService: 大语言模型服务</li></ul>
|
|
731
|
+
*/
|
|
732
|
+
ServiceType: string;
|
|
733
|
+
/**
|
|
734
|
+
* <p>选择模型提供商, 选项:OpenAI、Anthropic、Azure OpenAI等。</p>
|
|
735
|
+
*/
|
|
736
|
+
ModelProvider: string;
|
|
737
|
+
/**
|
|
738
|
+
* <p>API协议标准,根据供应商动态变化:OpenAI→OpenAI/v1,Anthropic→Anthropic/v1等</p>
|
|
739
|
+
*/
|
|
740
|
+
ModelProtocol: string;
|
|
741
|
+
/**
|
|
742
|
+
* <p>模型选择方式,选项:Specify(指定模型)、PassThrough(透传请求模型)。</p>
|
|
743
|
+
*/
|
|
744
|
+
ModelSelector: string;
|
|
745
|
+
/**
|
|
746
|
+
* <p>LLM 厂商颁发的认证信息 token 。</p>
|
|
747
|
+
*/
|
|
748
|
+
SecretKeyIds?: Array<string>;
|
|
749
|
+
/**
|
|
750
|
+
* <p>默认模型,模型选择方式为 Specify 时必填。</p>
|
|
751
|
+
*/
|
|
752
|
+
DefaultModel?: string;
|
|
753
|
+
/**
|
|
754
|
+
* <p>开启模型降级,模型选择方式为 Specify 时必填。</p>
|
|
755
|
+
*/
|
|
756
|
+
EnableModelFallback?: boolean;
|
|
757
|
+
/**
|
|
758
|
+
* <p>可以配置备用模型规则,EnableSpecifyModelFallbackxa0为 true 时必填。</p>
|
|
759
|
+
*/
|
|
760
|
+
ModelFallbackRule?: CloudNativeAPIGatewayLLMModelFallbackRule;
|
|
761
|
+
/**
|
|
762
|
+
* <p>开启模型参数校验,是否校验客户端传递的 model 参数,xa0模型选择方式为 PassThrough 时必填</p>
|
|
763
|
+
*/
|
|
764
|
+
EnableModelParamCheck?: boolean;
|
|
765
|
+
/**
|
|
766
|
+
* <p>模型检验信息,EnableModelParamCheckxa0为 true 时必填。</p>
|
|
767
|
+
*/
|
|
768
|
+
ModelParamCheckRule?: CloudNativeAPIGatewayLLMModelParamCheckInfo;
|
|
769
|
+
/**
|
|
770
|
+
* <p>描述。</p>
|
|
771
|
+
*/
|
|
772
|
+
Description?: string;
|
|
773
|
+
/**
|
|
774
|
+
* <p>服务提供商自定义 url</p>
|
|
775
|
+
*/
|
|
776
|
+
UpstreamURL?: string;
|
|
777
|
+
/**
|
|
778
|
+
* <p>连接超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:10000</p>
|
|
779
|
+
*/
|
|
780
|
+
ConnectTimeout?: number;
|
|
781
|
+
/**
|
|
782
|
+
* <p>写入超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:60000</p>
|
|
783
|
+
*/
|
|
784
|
+
WriteTimeout?: number;
|
|
785
|
+
/**
|
|
786
|
+
* <p>读取超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:60000</p>
|
|
787
|
+
*/
|
|
788
|
+
ReadTimeout?: number;
|
|
789
|
+
/**
|
|
790
|
+
* <p>重试次数</p><p>取值范围:[0, 5]</p><p>单位:次</p><p>默认值:0</p>
|
|
791
|
+
*/
|
|
792
|
+
Retries?: number;
|
|
793
|
+
/**
|
|
794
|
+
* <p>路径拼接模式</p><p>枚举值:</p><ul><li>FixedPath: 固定地址</li><li>AutoConcat: 自动拼接</li></ul>
|
|
795
|
+
*/
|
|
796
|
+
UpstreamUrlMode?: string;
|
|
797
|
+
/**
|
|
798
|
+
* <p>sni</p>
|
|
799
|
+
*/
|
|
800
|
+
SNI?: string;
|
|
801
|
+
/**
|
|
802
|
+
* <p>模型服务级别的配额上限(RPM/TPM)。需要网关版本 ≥ 3.9.4。</p>
|
|
803
|
+
*/
|
|
804
|
+
QuotaLimit?: AIGWLLMQuotaLimit;
|
|
805
|
+
/**
|
|
806
|
+
* <p>标签</p>
|
|
807
|
+
*/
|
|
808
|
+
Tags?: Array<string>;
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* ModifyCloudNativeAPIGatewayLLMModelService返回参数结构体
|
|
812
|
+
*/
|
|
813
|
+
export interface ModifyCloudNativeAPIGatewayLLMModelServiceResponse {
|
|
814
|
+
/**
|
|
815
|
+
* <p>是否成功</p>
|
|
816
|
+
*/
|
|
817
|
+
Result?: boolean;
|
|
818
|
+
/**
|
|
819
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
820
|
+
*/
|
|
821
|
+
RequestId?: string;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* CreateCloudNativeAPIGatewayLLMModelService返回参数结构体
|
|
825
|
+
*/
|
|
826
|
+
export interface CreateCloudNativeAPIGatewayLLMModelServiceResponse {
|
|
827
|
+
/**
|
|
828
|
+
* <p>是否成功</p>
|
|
829
|
+
*/
|
|
830
|
+
Result?: boolean;
|
|
831
|
+
/**
|
|
832
|
+
* <p>模型服务 ID,全局唯一标识。</p>
|
|
833
|
+
*/
|
|
834
|
+
ModelServiceId?: string;
|
|
835
|
+
/**
|
|
836
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
837
|
+
*/
|
|
838
|
+
RequestId?: string;
|
|
839
|
+
}
|
|
840
|
+
/**
|
|
841
|
+
* 最高Token用量消费者
|
|
842
|
+
*/
|
|
843
|
+
export interface AIGWTopConsumersItem {
|
|
844
|
+
/**
|
|
845
|
+
* <p>消费者Id</p>
|
|
846
|
+
*/
|
|
847
|
+
ConsumerId?: string;
|
|
848
|
+
/**
|
|
849
|
+
* <p>消费者名称</p>
|
|
850
|
+
*/
|
|
851
|
+
ConsumerName?: string;
|
|
852
|
+
/**
|
|
853
|
+
* <p>该消费者花费的Token数</p>
|
|
854
|
+
*/
|
|
855
|
+
TotalTokens?: number;
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* CreateCloudNativeAPIGatewayLLMModelAPI请求参数结构体
|
|
859
|
+
*/
|
|
860
|
+
export interface CreateCloudNativeAPIGatewayLLMModelAPIRequest {
|
|
861
|
+
/**
|
|
862
|
+
* <p>网关 id。</p>
|
|
863
|
+
*/
|
|
864
|
+
GatewayId: string;
|
|
865
|
+
/**
|
|
866
|
+
* <p>模型 API 名称,最长 60 字符。同一网关下唯一。</p>
|
|
867
|
+
*/
|
|
868
|
+
Name: string;
|
|
869
|
+
/**
|
|
870
|
+
* <p>业务场景。</p><p>枚举值:</p><ul><li>Chat:聊天</li><li>Image:图像(需要网关版本 ≥ 3.9.3)</li></ul>
|
|
871
|
+
*/
|
|
872
|
+
SceneType: string;
|
|
873
|
+
/**
|
|
874
|
+
* <p>请求协议(小写)。当前仅支持:</p><ul><li>openai</li></ul>
|
|
875
|
+
*/
|
|
876
|
+
RequestProtocol: string;
|
|
877
|
+
/**
|
|
878
|
+
* <p>关联的模型服务 ID 列表,长度 1-10。</p><p>注:字段名建议改为 ModelServiceIds,当前保留用于兼容。</p>
|
|
879
|
+
*/
|
|
880
|
+
ListModelServiceId: Array<string>;
|
|
881
|
+
/**
|
|
882
|
+
* <p>路由列表,至少 1 条。每条包含 Methods/Paths/Hosts 等 Kong 路由属性。</p>
|
|
883
|
+
*/
|
|
884
|
+
RouteList: Array<DefaultKongRoute>;
|
|
885
|
+
/**
|
|
886
|
+
* <p>统一前缀路径(可选)。例如 /v1/openai。</p>
|
|
887
|
+
*/
|
|
888
|
+
BasePath?: string;
|
|
889
|
+
/**
|
|
890
|
+
* <p>模型 API 描述。最长 200 字符。</p>
|
|
891
|
+
*/
|
|
892
|
+
Description?: string;
|
|
893
|
+
/**
|
|
894
|
+
* <p>多模型服务路由策略。ListModelServiceId 多于 1 项时必填。</p>
|
|
895
|
+
*/
|
|
896
|
+
ModelServiceRoute?: CloudNativeAPIGatewayLLMModelServiceRoute;
|
|
897
|
+
/**
|
|
898
|
+
* <p>Header 路由匹配规则。当前仅支持 Operator=exact。</p>
|
|
899
|
+
*/
|
|
900
|
+
MatchHeaders?: Array<AIGWKVMatch>;
|
|
901
|
+
/**
|
|
902
|
+
* <p>是否启用跨服务 Fallback。开启后需提供 CrossServiceFallbackConfig。</p>
|
|
903
|
+
*/
|
|
904
|
+
EnableCrossServiceFallback?: boolean;
|
|
905
|
+
/**
|
|
906
|
+
* <p>跨服务 Fallback 配置。EnableCrossServiceFallback=true 时必填。</p>
|
|
907
|
+
*/
|
|
908
|
+
CrossServiceFallbackConfig?: AIGWCrossServiceFallbackConfig;
|
|
909
|
+
/**
|
|
910
|
+
* <p>标签过滤策略。需要网关版本 ≥ 3.9.4。</p>
|
|
911
|
+
*/
|
|
912
|
+
TagFilter?: AIGWTagFilter;
|
|
913
|
+
/**
|
|
914
|
+
* <p>日志输出配置(请求/响应 payload 落 LLM Log)。需要网关版本 ≥ 3.9.4。</p>
|
|
915
|
+
*/
|
|
916
|
+
LogConfig?: AIGWLogConfig;
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* MCP tool 参数
|
|
920
|
+
*/
|
|
921
|
+
export interface CNAPIGwMCPToolParam {
|
|
922
|
+
/**
|
|
923
|
+
* <p>名字</p>
|
|
924
|
+
*/
|
|
925
|
+
Name: string;
|
|
926
|
+
/**
|
|
927
|
+
* <p>参数类型</p><p>枚举值:</p><ul><li>string: 字符串</li><li>number: 数字</li><li>boolean: 布尔</li><li>array: 数组</li><li>object: 对象</li></ul>
|
|
928
|
+
*/
|
|
929
|
+
Type: string;
|
|
930
|
+
/**
|
|
931
|
+
* <p>必填</p>
|
|
932
|
+
*/
|
|
933
|
+
Required: boolean;
|
|
934
|
+
/**
|
|
935
|
+
* <p>位置</p><p>枚举值:</p><ul><li>query: query</li><li>path: query</li><li>header: header</li><li>body: body</li></ul>
|
|
936
|
+
*/
|
|
937
|
+
Position: string;
|
|
938
|
+
/**
|
|
939
|
+
* <p>描述</p>
|
|
940
|
+
*/
|
|
941
|
+
Description?: string;
|
|
942
|
+
/**
|
|
943
|
+
* <p>默认值</p>
|
|
944
|
+
*/
|
|
945
|
+
Default?: string;
|
|
946
|
+
/**
|
|
947
|
+
* <p>数组子项</p>
|
|
948
|
+
*/
|
|
949
|
+
Items?: CNAPIGwMCPToolParam;
|
|
950
|
+
/**
|
|
951
|
+
* <p>对象属性</p>
|
|
952
|
+
*/
|
|
953
|
+
Properties?: Array<CNAPIGwMCPToolParam>;
|
|
954
|
+
/**
|
|
955
|
+
* <p>转发到后端的名称</p><p>不填则使用原始名称</p>
|
|
956
|
+
*/
|
|
957
|
+
BackendName?: string;
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* ModifyCloudNativeAPIGatewayMCPServerACL返回参数结构体
|
|
961
|
+
*/
|
|
962
|
+
export interface ModifyCloudNativeAPIGatewayMCPServerACLResponse {
|
|
963
|
+
/**
|
|
964
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
965
|
+
*/
|
|
966
|
+
RequestId?: string;
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* DescribeCloudNativeAPIGatewayConsumerGroup请求参数结构体
|
|
970
|
+
*/
|
|
971
|
+
export interface DescribeCloudNativeAPIGatewayConsumerGroupRequest {
|
|
972
|
+
/**
|
|
973
|
+
* <p>网关实例id</p>
|
|
974
|
+
*/
|
|
975
|
+
GatewayId: string;
|
|
976
|
+
/**
|
|
977
|
+
* <p>消费者组ID</p>
|
|
978
|
+
*/
|
|
979
|
+
ConsumerGroupId: string;
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* CreateCloudNativeAPIGatewayConsumer请求参数结构体
|
|
983
|
+
*/
|
|
984
|
+
export interface CreateCloudNativeAPIGatewayConsumerRequest {
|
|
985
|
+
/**
|
|
986
|
+
* 网关实例id
|
|
987
|
+
*/
|
|
988
|
+
GatewayId: string;
|
|
989
|
+
/**
|
|
990
|
+
* <p>消费者名称,最长 60 字符。同一网关下唯一。</p>
|
|
991
|
+
*/
|
|
992
|
+
Name: string;
|
|
993
|
+
/**
|
|
994
|
+
* <p>消费者描述。最长 200 字符。</p>
|
|
995
|
+
*/
|
|
996
|
+
Description?: string;
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* LLM 模型 API
|
|
1000
|
+
*/
|
|
1001
|
+
export interface CloudNativeAPIGatewayLLMModelAPI {
|
|
1002
|
+
/**
|
|
1003
|
+
* <p>模型 API ID。</p>
|
|
1004
|
+
*/
|
|
1005
|
+
Id?: string;
|
|
1006
|
+
/**
|
|
1007
|
+
* <p>创建时间</p>
|
|
1008
|
+
*/
|
|
1009
|
+
CreateTime?: string;
|
|
1010
|
+
/**
|
|
1011
|
+
* <p>修改时间</p>
|
|
1012
|
+
*/
|
|
1013
|
+
ModifyTime?: string;
|
|
1014
|
+
/**
|
|
1015
|
+
* <p>AI 网关 LLM 模型 API 的唯一标识名称,格式规则:2-50 字符,支持英文、数字、下划线。</p>
|
|
1016
|
+
*/
|
|
1017
|
+
Name?: string;
|
|
1018
|
+
/**
|
|
1019
|
+
* <p>选择业务场景,xa0 选项:Chat(聊天)。</p>
|
|
1020
|
+
*/
|
|
1021
|
+
SceneType?: string;
|
|
1022
|
+
/**
|
|
1023
|
+
* <p>业务场景对应的请求协议,选项:OpenAI(目前只支持 OpenAI)。</p>
|
|
1024
|
+
*/
|
|
1025
|
+
RequestProtocol?: string;
|
|
1026
|
+
/**
|
|
1027
|
+
* <p>路由列表</p>
|
|
1028
|
+
*/
|
|
1029
|
+
RouteList?: Array<DefaultKongRoute>;
|
|
1030
|
+
/**
|
|
1031
|
+
* <p>为API设置统一的前缀,格式:以/开头,支持字母、数字、短横线。</p>
|
|
1032
|
+
*/
|
|
1033
|
+
BasePath?: string;
|
|
1034
|
+
/**
|
|
1035
|
+
* <p>路径简化,<br>启用时:客户端请求路径 → 移除Base Path → 后端接收简洁路径<br>禁用时:客户端请求路径 → 完整传递给后端。</p>
|
|
1036
|
+
*/
|
|
1037
|
+
StripPath?: boolean;
|
|
1038
|
+
/**
|
|
1039
|
+
* <p>模型 API 的相关描述。</p>
|
|
1040
|
+
*/
|
|
1041
|
+
Description?: string;
|
|
1042
|
+
/**
|
|
1043
|
+
* <p>模型服务Id</p>
|
|
1044
|
+
*/
|
|
1045
|
+
ModelServiceId?: string;
|
|
1046
|
+
/**
|
|
1047
|
+
* <p>模型服务名称</p>
|
|
1048
|
+
*/
|
|
1049
|
+
ModelServiceName?: string;
|
|
1050
|
+
/**
|
|
1051
|
+
* <p>模型服务路由策略(是指如何路由到模型服务)</p>
|
|
1052
|
+
*/
|
|
1053
|
+
ModelServiceRoute?: CloudNativeAPIGatewayLLMModelServiceRoute;
|
|
1054
|
+
/**
|
|
1055
|
+
* <p>无</p>
|
|
1056
|
+
*/
|
|
1057
|
+
MatchHeaders?: Array<AIGWKVMatch>;
|
|
1058
|
+
/**
|
|
1059
|
+
* <p>是否开启跨服务fallback</p>
|
|
1060
|
+
*/
|
|
1061
|
+
EnableCrossServiceFallback?: boolean;
|
|
1062
|
+
/**
|
|
1063
|
+
* <p>跨服务fallback配置详情</p>
|
|
1064
|
+
*/
|
|
1065
|
+
CrossServiceFallbackConfig?: AIGWCrossServiceFallbackConfig;
|
|
1066
|
+
/**
|
|
1067
|
+
* <p>是否展示模型API</p>
|
|
1068
|
+
*/
|
|
1069
|
+
DescribeCloudNativeAPIGatewayLLMModelAPI?: boolean;
|
|
1070
|
+
/**
|
|
1071
|
+
* <p>标签</p>
|
|
1072
|
+
*/
|
|
1073
|
+
TagFilter?: AIGWTagFilter;
|
|
1074
|
+
/**
|
|
1075
|
+
* <p>日志显示相关开关</p>
|
|
1076
|
+
*/
|
|
1077
|
+
LogConfig?: AIGWLogConfig;
|
|
1078
|
+
/**
|
|
1079
|
+
* <p>日志脱敏规则</p>
|
|
1080
|
+
*/
|
|
1081
|
+
LogDesensitizeConfig?: AIGWLogDesensitizeConfig;
|
|
1082
|
+
/**
|
|
1083
|
+
* <p>转发脱敏规则</p>
|
|
1084
|
+
*/
|
|
1085
|
+
ForwardDesensitizeConfig?: AIGWForwardDesensitizeConfig;
|
|
1086
|
+
}
|
|
1087
|
+
/**
|
|
1088
|
+
* DescribeCloudNativeAPIGatewayLLMModelAPIs请求参数结构体
|
|
1089
|
+
*/
|
|
1090
|
+
export interface DescribeCloudNativeAPIGatewayLLMModelAPIsRequest {
|
|
1091
|
+
/**
|
|
1092
|
+
* 网关 id。
|
|
1093
|
+
*/
|
|
1094
|
+
GatewayId: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* <p>每页条数,范围 [1, 1000],默认 10。</p>
|
|
1097
|
+
*/
|
|
1098
|
+
Limit?: number;
|
|
1099
|
+
/**
|
|
1100
|
+
* <p>起始位置,从 0 开始。</p>
|
|
1101
|
+
*/
|
|
1102
|
+
Offset?: number;
|
|
1103
|
+
/**
|
|
1104
|
+
* <p>过滤条件。当前未启用具体字段。</p>
|
|
1105
|
+
*/
|
|
1106
|
+
Filters?: Array<Filter>;
|
|
1107
|
+
/**
|
|
1108
|
+
* <p>模糊匹配模型 API 名称。</p>
|
|
1109
|
+
*/
|
|
1110
|
+
Keyword?: string;
|
|
1111
|
+
/**
|
|
1112
|
+
* <p>消费者组 ID(以 cg- 开头),与 UseToBind 搭配使用。</p>
|
|
1113
|
+
*/
|
|
1114
|
+
ConsumerGroupId?: string;
|
|
1115
|
+
/**
|
|
1116
|
+
* <p>是否用于绑定场景。true 时仅返回可被绑定到指定消费者组的模型 API。</p>
|
|
1117
|
+
*/
|
|
1118
|
+
UseToBind?: boolean;
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* ModifyCloudNativeAPIGatewayMCPServerACL请求参数结构体
|
|
1122
|
+
*/
|
|
1123
|
+
export interface ModifyCloudNativeAPIGatewayMCPServerACLRequest {
|
|
1124
|
+
/**
|
|
1125
|
+
* <p>网关实例ID</p>
|
|
1126
|
+
*/
|
|
1127
|
+
GatewayId: string;
|
|
1128
|
+
/**
|
|
1129
|
+
* <p>MCP服务ID</p>
|
|
1130
|
+
*/
|
|
1131
|
+
ServerId: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* <p>ACL类型</p><p>枚举值:</p><ul><li>None: 不开启</li><li>Allow: 白名单</li><li>Deny: 黑名单</li></ul><p>默认值:None</p>
|
|
1134
|
+
*/
|
|
1135
|
+
ACLType: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* <p>需要关联的消费者ID列表</p>
|
|
1138
|
+
*/
|
|
1139
|
+
ACLConsumerIds?: Array<string>;
|
|
1140
|
+
/**
|
|
1141
|
+
* <p>需要关联的消费者组ID列表</p>
|
|
1142
|
+
*/
|
|
1143
|
+
ACLConsumerGroupIds?: Array<string>;
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* 创建资源通用结果
|
|
1147
|
+
*/
|
|
1148
|
+
export interface CNAPIGwCreateCommonResult {
|
|
1149
|
+
/**
|
|
1150
|
+
* 是否成功
|
|
1151
|
+
*/
|
|
1152
|
+
Success?: boolean;
|
|
1153
|
+
/**
|
|
1154
|
+
* 对应的id 值
|
|
1155
|
+
*/
|
|
1156
|
+
ID?: string;
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* 模型服务路由配置
|
|
1160
|
+
*/
|
|
1161
|
+
export interface CloudNativeAPIGatewayLLMModelServiceRoute {
|
|
1162
|
+
/**
|
|
1163
|
+
* <p>生效的路由算法类型:权重路由,模型名称路由、参数路由等Weighted/ModelName/Query (预留多个,暂时只能填写一个)</p>
|
|
1164
|
+
*/
|
|
1165
|
+
SelectedTypes: Array<string>;
|
|
1166
|
+
/**
|
|
1167
|
+
* <p>权重路由配置,最多10个</p>
|
|
1168
|
+
*/
|
|
1169
|
+
WeightedConfig?: Array<CloudNativeAPIGatewayLLMModelServiceRouteWeightedStrategy>;
|
|
1170
|
+
/**
|
|
1171
|
+
* <p>模型名称路由配置,最多10个</p>
|
|
1172
|
+
*/
|
|
1173
|
+
ModelNameConfig?: Array<CloudNativeAPIGatewayLLMModelServiceRouteModelNameStrategy>;
|
|
1174
|
+
/**
|
|
1175
|
+
* <p>意图识别</p>
|
|
1176
|
+
*/
|
|
1177
|
+
IntentRouteConfig?: AIGWIntentRoute;
|
|
1178
|
+
/**
|
|
1179
|
+
* <p>延迟路由</p>
|
|
1180
|
+
*/
|
|
1181
|
+
LatencyPriorityConfig?: AIGWLatencyPriorityConfig;
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* 消费者组结构
|
|
1185
|
+
*/
|
|
1186
|
+
export interface CNAPIGwConsumerGroup {
|
|
1187
|
+
/**
|
|
1188
|
+
* 分组id
|
|
1189
|
+
*/
|
|
1190
|
+
ConsumerGroupId: string;
|
|
1191
|
+
/**
|
|
1192
|
+
* 名字
|
|
1193
|
+
*/
|
|
1194
|
+
Name: string;
|
|
1195
|
+
/**
|
|
1196
|
+
* 状态Disable/Enable
|
|
1197
|
+
*/
|
|
1198
|
+
Status: string;
|
|
1199
|
+
/**
|
|
1200
|
+
* 描述
|
|
1201
|
+
*/
|
|
1202
|
+
Description: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* 创建时间
|
|
1205
|
+
*/
|
|
1206
|
+
CreateTime?: string;
|
|
1207
|
+
/**
|
|
1208
|
+
* 更新时间 yyyy-MM-dd hh:mm:ss
|
|
1209
|
+
*/
|
|
1210
|
+
ModifyTime?: string;
|
|
1211
|
+
/**
|
|
1212
|
+
* 绑定的消费者数量
|
|
1213
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1214
|
+
*/
|
|
1215
|
+
BindCount?: number;
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* AI 网关 MCP Server ACL 配置详情
|
|
1219
|
+
*/
|
|
1220
|
+
export interface AIGWMCPServerACLResult {
|
|
1221
|
+
/**
|
|
1222
|
+
* <p>黑白名单鉴权类型</p><p>枚举值:</p><ul><li>None: 不鉴权</li><li>Allow: 白名单</li><li>Deny: 黑名单</li></ul>
|
|
1223
|
+
*/
|
|
1224
|
+
ACLType?: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* <p>关联的消费者ID列表</p>
|
|
1227
|
+
*/
|
|
1228
|
+
ACLConsumers?: Array<AIGWACLSubject>;
|
|
1229
|
+
/**
|
|
1230
|
+
* <p>关联的消费者组ID列表</p>
|
|
1231
|
+
*/
|
|
1232
|
+
ACLConsumerGroups?: Array<AIGWACLSubject>;
|
|
1233
|
+
/**
|
|
1234
|
+
* <p>认证类型</p><p>枚举值:</p><ul><li>None: 无认证</li><li>ApiKey: API Key认证</li></ul>
|
|
1235
|
+
*/
|
|
1236
|
+
AuthType?: string;
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* ModifyCloudNativeAPIGatewayConsumer请求参数结构体
|
|
1240
|
+
*/
|
|
1241
|
+
export interface ModifyCloudNativeAPIGatewayConsumerRequest {
|
|
1242
|
+
/**
|
|
1243
|
+
* 网关实例id
|
|
1244
|
+
*/
|
|
1245
|
+
GatewayId: string;
|
|
1246
|
+
/**
|
|
1247
|
+
* <p>消费者 ID。</p>
|
|
1248
|
+
*/
|
|
1249
|
+
ConsumerId: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* <p>消费者名称,最长 60 字符。</p>
|
|
1252
|
+
*/
|
|
1253
|
+
Name: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* <p>消费者描述。最长 200 字符。</p>
|
|
1256
|
+
*/
|
|
1257
|
+
Description?: string;
|
|
1258
|
+
}
|
|
1259
|
+
/**
|
|
1260
|
+
* AI 网关 B 层日志脱敏配置(写入 LLM Log 前对 payload 掩码)
|
|
1261
|
+
*/
|
|
1262
|
+
export interface AIGWLogDesensitizeConfig {
|
|
1263
|
+
/**
|
|
1264
|
+
* <p>日志脱敏开关</p>
|
|
1265
|
+
*/
|
|
1266
|
+
Enabled: boolean;
|
|
1267
|
+
/**
|
|
1268
|
+
* <p>预定义规则类型</p><p>枚举值:</p><ul><li>Phone: 电话号码</li><li>IdCard: 身份证号</li><li>BankCard: 银行卡号</li><li>Email: 邮箱地址</li><li>IP: IP地址</li><li>Name: 姓名</li></ul>
|
|
1269
|
+
*/
|
|
1270
|
+
PredefinedRuleTypes?: Array<string>;
|
|
1271
|
+
/**
|
|
1272
|
+
* <p>自定义脱敏规则</p>
|
|
1273
|
+
*/
|
|
1274
|
+
CustomRules?: Array<AIGWCustomDesensitizeRule>;
|
|
1275
|
+
/**
|
|
1276
|
+
* <p>日志脱敏范围</p><p>枚举值:</p><ul><li>Request: 请求</li><li>Response: 响应</li></ul>
|
|
1277
|
+
*/
|
|
1278
|
+
Scope?: Array<string>;
|
|
1279
|
+
}
|
|
1280
|
+
/**
|
|
1281
|
+
* DescribeCloudNativeAPIGatewaySecretKey返回参数结构体
|
|
1282
|
+
*/
|
|
1283
|
+
export interface DescribeCloudNativeAPIGatewaySecretKeyResponse {
|
|
1284
|
+
/**
|
|
1285
|
+
* <p>密钥详情。</p>
|
|
1286
|
+
*/
|
|
1287
|
+
Result?: CNAPIGwSecretKey;
|
|
1288
|
+
/**
|
|
1289
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1290
|
+
*/
|
|
1291
|
+
RequestId?: string;
|
|
1292
|
+
}
|
|
1293
|
+
/**
|
|
1294
|
+
* DescribeCloudNativeAPIGatewayConsumer返回参数结构体
|
|
1295
|
+
*/
|
|
1296
|
+
export interface DescribeCloudNativeAPIGatewayConsumerResponse {
|
|
1297
|
+
/**
|
|
1298
|
+
* <p>消费者详情</p>
|
|
1299
|
+
*/
|
|
1300
|
+
Result?: CNAPIGwConsumer;
|
|
1301
|
+
/**
|
|
1302
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1303
|
+
*/
|
|
1304
|
+
RequestId?: string;
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
* 云原生网关MCP会话配置
|
|
1308
|
+
*/
|
|
1309
|
+
export interface AIGWMCPSessionConfig {
|
|
1310
|
+
/**
|
|
1311
|
+
* <p>会话存储类型</p><p>枚举值:</p><ul><li>memory: 内存</li><li>redis: redis</li></ul>
|
|
1312
|
+
*/
|
|
1313
|
+
SessionStorage?: string;
|
|
1314
|
+
/**
|
|
1315
|
+
* <p>Redis配置</p>
|
|
1316
|
+
*/
|
|
1317
|
+
RedisConfig?: AIGWRedisConfig;
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* 默认kong路由,目前只在 LLM 模型 API相 关接口使用
|
|
1321
|
+
*/
|
|
1322
|
+
export interface DefaultKongRoute {
|
|
1323
|
+
/**
|
|
1324
|
+
* <p>服务名字</p>
|
|
1325
|
+
*/
|
|
1326
|
+
Name: string;
|
|
1327
|
+
/**
|
|
1328
|
+
* <p>服务ID</p>
|
|
1329
|
+
*/
|
|
1330
|
+
ID?: string;
|
|
1331
|
+
/**
|
|
1332
|
+
* <p>HTTP Method</p>
|
|
1333
|
+
*/
|
|
1334
|
+
Methods?: Array<string>;
|
|
1335
|
+
/**
|
|
1336
|
+
* <p>Http Path</p>
|
|
1337
|
+
*/
|
|
1338
|
+
Paths?: Array<string>;
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* DescribeCloudNativeAPIGatewayMCPToolList请求参数结构体
|
|
1342
|
+
*/
|
|
1343
|
+
export interface DescribeCloudNativeAPIGatewayMCPToolListRequest {
|
|
1344
|
+
/**
|
|
1345
|
+
* <p>实例 id</p>
|
|
1346
|
+
*/
|
|
1347
|
+
GatewayId: string;
|
|
1348
|
+
/**
|
|
1349
|
+
* <p>MCP服务 id</p>
|
|
1350
|
+
*/
|
|
1351
|
+
ServerId: string;
|
|
1352
|
+
/**
|
|
1353
|
+
* <p>条数</p><p>取值范围:[1, 100]</p>
|
|
1354
|
+
*/
|
|
1355
|
+
Limit: number;
|
|
1356
|
+
/**
|
|
1357
|
+
* <p>开始位置</p><p>取值范围:[1, 100000]</p>
|
|
1358
|
+
*/
|
|
1359
|
+
Offset: number;
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* DeleteCloudNativeAPIGatewayMCPServer返回参数结构体
|
|
1363
|
+
*/
|
|
1364
|
+
export interface DeleteCloudNativeAPIGatewayMCPServerResponse {
|
|
1365
|
+
/**
|
|
1366
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1367
|
+
*/
|
|
1368
|
+
RequestId?: string;
|
|
1369
|
+
}
|
|
1370
|
+
/**
|
|
1371
|
+
* AI 网关意图路由规则
|
|
1372
|
+
*/
|
|
1373
|
+
export interface AIGWIntentRouteRule {
|
|
1374
|
+
/**
|
|
1375
|
+
* <p>意图编码</p><p>枚举值:</p><ul><li>Coder: 代码编写</li><li>Math: 数学计算</li><li>Translation: 翻译</li><li>Flash: 快速问答</li><li>Complex: 复杂推理</li></ul>
|
|
1376
|
+
*/
|
|
1377
|
+
IntentCode?: string;
|
|
1378
|
+
/**
|
|
1379
|
+
* <p>模型服务id</p>
|
|
1380
|
+
*/
|
|
1381
|
+
ModelServiceId?: string;
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
* ModifyCloudNativeAPIGatewayMCPTool请求参数结构体
|
|
1385
|
+
*/
|
|
1386
|
+
export interface ModifyCloudNativeAPIGatewayMCPToolRequest {
|
|
1387
|
+
/**
|
|
1388
|
+
* <p>网关实例 id</p>
|
|
1389
|
+
*/
|
|
1390
|
+
GatewayId: string;
|
|
1391
|
+
/**
|
|
1392
|
+
* <p>MCPserverId</p>
|
|
1393
|
+
*/
|
|
1394
|
+
ServerId: string;
|
|
1395
|
+
/**
|
|
1396
|
+
* <p>工具 id</p>
|
|
1397
|
+
*/
|
|
1398
|
+
ToolId: string;
|
|
1399
|
+
/**
|
|
1400
|
+
* <p>工具名字</p>
|
|
1401
|
+
*/
|
|
1402
|
+
Name: string;
|
|
1403
|
+
/**
|
|
1404
|
+
* <p>路径</p>
|
|
1405
|
+
*/
|
|
1406
|
+
Path: string;
|
|
1407
|
+
/**
|
|
1408
|
+
* <p>报文格式</p>
|
|
1409
|
+
*/
|
|
1410
|
+
ContentType: string;
|
|
1411
|
+
/**
|
|
1412
|
+
* <p>请求方法</p><p>枚举值:</p><ul><li>GET: GET</li><li>PUT: PUT</li><li>POST: POST</li><li>DELETE: DELETE</li><li>PATCH: PATCH</li></ul>
|
|
1413
|
+
*/
|
|
1414
|
+
Method: string;
|
|
1415
|
+
/**
|
|
1416
|
+
* <p>展示</p>
|
|
1417
|
+
*/
|
|
1418
|
+
DisplayName?: string;
|
|
1419
|
+
/**
|
|
1420
|
+
* <p>输入参数</p>
|
|
1421
|
+
*/
|
|
1422
|
+
InputParams?: Array<CNAPIGwMCPToolParam>;
|
|
1423
|
+
/**
|
|
1424
|
+
* <p>描述</p>
|
|
1425
|
+
*/
|
|
1426
|
+
Description?: string;
|
|
1427
|
+
/**
|
|
1428
|
+
* <p>tool版本</p>
|
|
1429
|
+
*/
|
|
1430
|
+
ToolVersion?: string;
|
|
1431
|
+
}
|
|
1432
|
+
/**
|
|
1433
|
+
* DescribeCloudNativeAPIGatewayMCPToolACLList请求参数结构体
|
|
1434
|
+
*/
|
|
1435
|
+
export interface DescribeCloudNativeAPIGatewayMCPToolACLListRequest {
|
|
1436
|
+
/**
|
|
1437
|
+
* <p>网关实例ID</p>
|
|
1438
|
+
*/
|
|
1439
|
+
GatewayId: string;
|
|
1440
|
+
/**
|
|
1441
|
+
* <p>MCP 服务ID</p>
|
|
1442
|
+
*/
|
|
1443
|
+
ServerId: string;
|
|
1444
|
+
/**
|
|
1445
|
+
* <p>分页大小</p>
|
|
1446
|
+
*/
|
|
1447
|
+
Limit: number;
|
|
1448
|
+
/**
|
|
1449
|
+
* <p>分页偏移</p>
|
|
1450
|
+
*/
|
|
1451
|
+
Offset: number;
|
|
1452
|
+
/**
|
|
1453
|
+
* <p>搜索关键词</p>
|
|
1454
|
+
*/
|
|
1455
|
+
Keyword?: string;
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* LLM 模型 API 列表
|
|
1459
|
+
*/
|
|
1460
|
+
export interface ListCloudNativeAPIGatewayLLMModelAPI {
|
|
1461
|
+
/**
|
|
1462
|
+
* 总数
|
|
1463
|
+
*/
|
|
1464
|
+
TotalCount?: number;
|
|
1465
|
+
/**
|
|
1466
|
+
* AI 网关模型 API 列表。
|
|
1467
|
+
*/
|
|
1468
|
+
DataList?: Array<CloudNativeAPIGatewayLLMModelAPI>;
|
|
1469
|
+
}
|
|
1470
|
+
/**
|
|
1471
|
+
* DeleteCloudNativeAPIGatewayLLMModelService返回参数结构体
|
|
1472
|
+
*/
|
|
1473
|
+
export interface DeleteCloudNativeAPIGatewayLLMModelServiceResponse {
|
|
1474
|
+
/**
|
|
1475
|
+
* <p>是否成功。</p>
|
|
1476
|
+
*/
|
|
1477
|
+
Result?: boolean;
|
|
1478
|
+
/**
|
|
1479
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1480
|
+
*/
|
|
1481
|
+
RequestId?: string;
|
|
1482
|
+
}
|
|
1483
|
+
/**
|
|
1484
|
+
* DescribeCloudNativeAPIGatewayMCPTool返回参数结构体
|
|
1485
|
+
*/
|
|
1486
|
+
export interface DescribeCloudNativeAPIGatewayMCPToolResponse {
|
|
1487
|
+
/**
|
|
1488
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1489
|
+
*/
|
|
1490
|
+
RequestId?: string;
|
|
1491
|
+
}
|
|
1492
|
+
/**
|
|
1493
|
+
* ModifyCloudNativeAPIGatewayMCPToolACL返回参数结构体
|
|
1494
|
+
*/
|
|
1495
|
+
export interface ModifyCloudNativeAPIGatewayMCPToolACLResponse {
|
|
1496
|
+
/**
|
|
1497
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1498
|
+
*/
|
|
1499
|
+
RequestId?: string;
|
|
1500
|
+
}
|
|
1501
|
+
/**
|
|
1502
|
+
* CreateCloudNativeAPIGatewayConsumerGroup返回参数结构体
|
|
1503
|
+
*/
|
|
1504
|
+
export interface CreateCloudNativeAPIGatewayConsumerGroupResponse {
|
|
1505
|
+
/**
|
|
1506
|
+
* <p>创建结果。包含成功标识与新建资源 ID。</p>
|
|
1507
|
+
*/
|
|
1508
|
+
Result?: CNAPIGwCreateCommonResult;
|
|
1509
|
+
/**
|
|
1510
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1511
|
+
*/
|
|
1512
|
+
RequestId?: string;
|
|
1513
|
+
}
|
|
1514
|
+
/**
|
|
1515
|
+
* DescribeCloudNativeAPIGatewayLLMModelAPI返回参数结构体
|
|
1516
|
+
*/
|
|
1517
|
+
export interface DescribeCloudNativeAPIGatewayLLMModelAPIResponse {
|
|
1518
|
+
/**
|
|
1519
|
+
* <p>模型 API 信息。</p>
|
|
1520
|
+
*/
|
|
1521
|
+
Result?: CloudNativeAPIGatewayLLMModelAPI;
|
|
1522
|
+
/**
|
|
1523
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1524
|
+
*/
|
|
1525
|
+
RequestId?: string;
|
|
1526
|
+
}
|
|
1527
|
+
/**
|
|
1528
|
+
* 云原生网关MCP后端信息,用于展示
|
|
1529
|
+
*/
|
|
1530
|
+
export interface AIGWMCPUpstreamInfoDetail {
|
|
1531
|
+
/**
|
|
1532
|
+
* <p>注册中心来源ID</p>
|
|
1533
|
+
*/
|
|
1534
|
+
SourceId?: string;
|
|
1535
|
+
/**
|
|
1536
|
+
* <p>注册中心来源名称, 入参不传,用于返回</p>
|
|
1537
|
+
*/
|
|
1538
|
+
SourceName?: string;
|
|
1539
|
+
/**
|
|
1540
|
+
* <p>命名空间</p>
|
|
1541
|
+
*/
|
|
1542
|
+
Namespace?: string;
|
|
1543
|
+
/**
|
|
1544
|
+
* <p>服务 id</p>
|
|
1545
|
+
*/
|
|
1546
|
+
MCPServerId?: string;
|
|
1547
|
+
/**
|
|
1548
|
+
* <p>协议,UpstreamType是Registry 时必传</p><ul><li>http</li><li>https</li></ul>
|
|
1549
|
+
*/
|
|
1550
|
+
Protocol?: string;
|
|
1551
|
+
/**
|
|
1552
|
+
* <p>域名或ip</p>
|
|
1553
|
+
*/
|
|
1554
|
+
Host?: string;
|
|
1555
|
+
/**
|
|
1556
|
+
* <p>端口</p>
|
|
1557
|
+
*/
|
|
1558
|
+
Port?: number;
|
|
1559
|
+
/**
|
|
1560
|
+
* <p>服务 id</p>
|
|
1561
|
+
*/
|
|
1562
|
+
ServiceId?: string;
|
|
1563
|
+
/**
|
|
1564
|
+
* <p>服务名字</p>
|
|
1565
|
+
*/
|
|
1566
|
+
ServiceName?: string;
|
|
1567
|
+
/**
|
|
1568
|
+
* <p>服务分组</p>
|
|
1569
|
+
*/
|
|
1570
|
+
ServiceGroup?: string;
|
|
1571
|
+
/**
|
|
1572
|
+
* <p>mcp endpoint</p>
|
|
1573
|
+
*/
|
|
1574
|
+
MCPEndpoint?: string;
|
|
1575
|
+
/**
|
|
1576
|
+
* <p>SSE message路径</p>
|
|
1577
|
+
*/
|
|
1578
|
+
MessageEndpoint?: string;
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* ModifyCloudNativeAPIGatewayMCPServerStatus返回参数结构体
|
|
1582
|
+
*/
|
|
1583
|
+
export interface ModifyCloudNativeAPIGatewayMCPServerStatusResponse {
|
|
1584
|
+
/**
|
|
1585
|
+
* <p>创建结果</p>
|
|
1586
|
+
*/
|
|
1587
|
+
Result?: boolean;
|
|
1588
|
+
/**
|
|
1589
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1590
|
+
*/
|
|
1591
|
+
RequestId?: string;
|
|
1592
|
+
}
|
|
1593
|
+
/**
|
|
1594
|
+
* ModifyCloudNativeAPIGatewayConsumer返回参数结构体
|
|
1595
|
+
*/
|
|
1596
|
+
export interface ModifyCloudNativeAPIGatewayConsumerResponse {
|
|
1597
|
+
/**
|
|
1598
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1599
|
+
*/
|
|
1600
|
+
RequestId?: string;
|
|
1601
|
+
}
|
|
1602
|
+
/**
|
|
1603
|
+
* DeleteCloudNativeAPIGatewayMCPServer请求参数结构体
|
|
1604
|
+
*/
|
|
1605
|
+
export interface DeleteCloudNativeAPIGatewayMCPServerRequest {
|
|
1606
|
+
/**
|
|
1607
|
+
* <p>云原生API网关实例ID</p>
|
|
1608
|
+
*/
|
|
1609
|
+
GatewayId: string;
|
|
1610
|
+
/**
|
|
1611
|
+
* <p>MCP服务ID</p>
|
|
1612
|
+
*/
|
|
1613
|
+
ServerId: string;
|
|
1614
|
+
}
|
|
1615
|
+
/**
|
|
1616
|
+
* DeleteCloudNativeAPIGatewaySecretKey返回参数结构体
|
|
1617
|
+
*/
|
|
1618
|
+
export interface DeleteCloudNativeAPIGatewaySecretKeyResponse {
|
|
1619
|
+
/**
|
|
1620
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1621
|
+
*/
|
|
1622
|
+
RequestId?: string;
|
|
1623
|
+
}
|
|
1624
|
+
/**
|
|
1625
|
+
* DescribeCloudNativeAPIGatewayMCPTool请求参数结构体
|
|
1626
|
+
*/
|
|
1627
|
+
export interface DescribeCloudNativeAPIGatewayMCPToolRequest {
|
|
1628
|
+
/**
|
|
1629
|
+
* <p>网关实例 id</p>
|
|
1630
|
+
*/
|
|
1631
|
+
GatewayId: string;
|
|
1632
|
+
/**
|
|
1633
|
+
* <p>MCP Server id</p>
|
|
1634
|
+
*/
|
|
1635
|
+
ServerId: string;
|
|
1636
|
+
/**
|
|
1637
|
+
* <p>工具 id</p>
|
|
1638
|
+
*/
|
|
1639
|
+
ToolId: string;
|
|
1640
|
+
}
|
|
1641
|
+
/**
|
|
1642
|
+
* DescribeCloudNativeAPIGatewayLLMTokenUsageStatistics请求参数结构体
|
|
1643
|
+
*/
|
|
1644
|
+
export interface DescribeCloudNativeAPIGatewayLLMTokenUsageStatisticsRequest {
|
|
1645
|
+
/**
|
|
1646
|
+
* <p>网关实例Id</p>
|
|
1647
|
+
*/
|
|
1648
|
+
GatewayId: string;
|
|
1649
|
+
/**
|
|
1650
|
+
* <p>查询开始时间戳</p><p>单位:秒</p>
|
|
1651
|
+
*/
|
|
1652
|
+
StartTime: number;
|
|
1653
|
+
/**
|
|
1654
|
+
* <p>查询结束时间戳</p><p>单位:秒</p>
|
|
1655
|
+
*/
|
|
1656
|
+
EndTime: number;
|
|
1657
|
+
/**
|
|
1658
|
+
* <p>查询过滤条件</p>
|
|
1659
|
+
*/
|
|
1660
|
+
Filters?: Array<Filter>;
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* CreateCloudNativeAPIGatewaySecretKey请求参数结构体
|
|
1664
|
+
*/
|
|
1665
|
+
export interface CreateCloudNativeAPIGatewaySecretKeyRequest {
|
|
1666
|
+
/**
|
|
1667
|
+
* 实例 ID
|
|
1668
|
+
*/
|
|
1669
|
+
GatewayId: string;
|
|
1670
|
+
/**
|
|
1671
|
+
* <p>密钥协议类型。</p><p>枚举值:</p><ul><li>ApiKey</li><li>Basic</li><li>Hmac</li><li>OAuth2</li><li>JWT</li></ul>
|
|
1672
|
+
*/
|
|
1673
|
+
SecretType: string;
|
|
1674
|
+
/**
|
|
1675
|
+
* <p>密钥名称,2-60 字符。</p>
|
|
1676
|
+
*/
|
|
1677
|
+
Name: string;
|
|
1678
|
+
/**
|
|
1679
|
+
* <p>密钥生成方式。</p><p>枚举值:</p><ul><li>System:系统自动生成</li><li>Custom:用户自定义(需传 SecretValue)</li><li>KMS:使用 KMS 密钥(需传 KmsKeyName 与 KmsKeyVersion)</li></ul>
|
|
1680
|
+
*/
|
|
1681
|
+
GenerateType: string;
|
|
1682
|
+
/**
|
|
1683
|
+
* <p>密钥归属资源类型。</p><p>枚举值:</p><ul><li>Consumer:消费者</li><li>ModelService:模型服务</li></ul>
|
|
1684
|
+
*/
|
|
1685
|
+
ResourceType: string;
|
|
1686
|
+
/**
|
|
1687
|
+
* <p>KMS 密钥名称。GenerateType=KMS 时必填。</p>
|
|
1688
|
+
*/
|
|
1689
|
+
KmsKeyName?: string;
|
|
1690
|
+
/**
|
|
1691
|
+
* <p>KMS 密钥版本。GenerateType=KMS 时必填。</p>
|
|
1692
|
+
*/
|
|
1693
|
+
KmsKeyVersion?: string;
|
|
1694
|
+
/**
|
|
1695
|
+
* <p>密钥值,长度 8-256。GenerateType=Custom 时必填。</p>
|
|
1696
|
+
*/
|
|
1697
|
+
SecretValue?: string;
|
|
1698
|
+
/**
|
|
1699
|
+
* <p>密钥描述。最长 200 字符。</p>
|
|
1700
|
+
*/
|
|
1701
|
+
Description?: string;
|
|
1702
|
+
}
|
|
1703
|
+
/**
|
|
1704
|
+
* DescribeCloudNativeAPIGatewayMCPServer返回参数结构体
|
|
1705
|
+
*/
|
|
1706
|
+
export interface DescribeCloudNativeAPIGatewayMCPServerResponse {
|
|
1707
|
+
/**
|
|
1708
|
+
* <p>mcp server详情</p>
|
|
1709
|
+
*/
|
|
1710
|
+
Result?: AIGWMCPServer;
|
|
1711
|
+
/**
|
|
1712
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1713
|
+
*/
|
|
1714
|
+
RequestId?: string;
|
|
1715
|
+
}
|
|
1716
|
+
/**
|
|
1717
|
+
* DescribeCloudNativeAPIGatewayLLMModelServices请求参数结构体
|
|
1718
|
+
*/
|
|
1719
|
+
export interface DescribeCloudNativeAPIGatewayLLMModelServicesRequest {
|
|
1720
|
+
/**
|
|
1721
|
+
* <p>网关 id。</p>
|
|
1722
|
+
*/
|
|
1723
|
+
GatewayId: string;
|
|
1724
|
+
/**
|
|
1725
|
+
* <p>返回数量,默认为 10,最大值为 1000。</p>
|
|
1726
|
+
*/
|
|
1727
|
+
Limit?: number;
|
|
1728
|
+
/**
|
|
1729
|
+
* <p>偏移量,默认为 0。</p>
|
|
1730
|
+
*/
|
|
1731
|
+
Offset?: number;
|
|
1732
|
+
/**
|
|
1733
|
+
* <p>过滤条件,多个过滤条件之间是“与”的关系,支持 Name</p>
|
|
1734
|
+
*/
|
|
1735
|
+
Filters?: Array<Filter>;
|
|
1736
|
+
/**
|
|
1737
|
+
* <p>通过模型 API 筛选模型服务</p>
|
|
1738
|
+
*/
|
|
1739
|
+
ModelAPIId?: string;
|
|
1740
|
+
/**
|
|
1741
|
+
* <p>通过密匙查询绑定的模型服务</p>
|
|
1742
|
+
*/
|
|
1743
|
+
SecretKeyId?: string;
|
|
1744
|
+
/**
|
|
1745
|
+
* <p>搜索关键词,模糊匹配 name 和 description</p>
|
|
1746
|
+
*/
|
|
1747
|
+
Keyword?: string;
|
|
1748
|
+
}
|
|
1749
|
+
/**
|
|
1750
|
+
* ModifyCloudNativeAPIGatewayMCPToolACL请求参数结构体
|
|
1751
|
+
*/
|
|
1752
|
+
export interface ModifyCloudNativeAPIGatewayMCPToolACLRequest {
|
|
1753
|
+
/**
|
|
1754
|
+
* <p>网关实例ID</p>
|
|
1755
|
+
*/
|
|
1756
|
+
GatewayId: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* <p>MCP服务ID</p>
|
|
1759
|
+
*/
|
|
1760
|
+
ServerId: string;
|
|
1761
|
+
/**
|
|
1762
|
+
* <p>MCP工具ID</p>
|
|
1763
|
+
*/
|
|
1764
|
+
ToolId: string;
|
|
1765
|
+
/**
|
|
1766
|
+
* <p>鉴权类型</p><p>枚举值:</p><ul><li>None: 继承server鉴权类型</li><li>Allow: 白名单</li><li>Deny: 黑名单</li></ul>
|
|
1767
|
+
*/
|
|
1768
|
+
ACLType: string;
|
|
1769
|
+
/**
|
|
1770
|
+
* <p>需要关联的消费者ID列表</p>
|
|
1771
|
+
*/
|
|
1772
|
+
ACLConsumerIds?: Array<string>;
|
|
1773
|
+
/**
|
|
1774
|
+
* <p>需要关联的消费者组ID列表</p>
|
|
1775
|
+
*/
|
|
1776
|
+
ACLConsumerGroupIds?: Array<string>;
|
|
1777
|
+
}
|
|
1778
|
+
/**
|
|
1779
|
+
* CreateCloudNativeAPIGatewayMCPServer返回参数结构体
|
|
1780
|
+
*/
|
|
1781
|
+
export interface CreateCloudNativeAPIGatewayMCPServerResponse {
|
|
1782
|
+
/**
|
|
1783
|
+
* <p>创建结果</p>
|
|
1784
|
+
*/
|
|
1785
|
+
Result?: CNAPIGwCreateCommonResult;
|
|
1786
|
+
/**
|
|
1787
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1788
|
+
*/
|
|
1789
|
+
RequestId?: string;
|
|
1790
|
+
}
|
|
1791
|
+
/**
|
|
1792
|
+
* 用于定义kong插件自定义健康检查的配置
|
|
1793
|
+
*/
|
|
1794
|
+
export interface AIGWHealthCheckSetting {
|
|
1795
|
+
/**
|
|
1796
|
+
* <p>健康检查类型</p><p>枚举值:</p><ul><li>MCP: 标准mcp</li><li>HTTP: http</li></ul>
|
|
1797
|
+
*/
|
|
1798
|
+
HealthCheckType: string;
|
|
1799
|
+
/**
|
|
1800
|
+
* <p>检查间隔</p>
|
|
1801
|
+
*/
|
|
1802
|
+
HealthCheckIntervalSecond: number;
|
|
1803
|
+
/**
|
|
1804
|
+
* <p>检查超时时间</p>
|
|
1805
|
+
*/
|
|
1806
|
+
HealthCheckTimeout: number;
|
|
1807
|
+
/**
|
|
1808
|
+
* <p>检查失败阈值</p>
|
|
1809
|
+
*/
|
|
1810
|
+
HealthCheckFailThreshold: number;
|
|
1811
|
+
/**
|
|
1812
|
+
* <p>检查恢复阈值</p>
|
|
1813
|
+
*/
|
|
1814
|
+
HealthCheckRecoverThreshold: number;
|
|
1815
|
+
/**
|
|
1816
|
+
* <p>检查路径</p>
|
|
1817
|
+
*/
|
|
1818
|
+
HealthCheckPath?: string;
|
|
1819
|
+
/**
|
|
1820
|
+
* <p>检查方法</p>
|
|
1821
|
+
*/
|
|
1822
|
+
HealthCheckMethod?: string;
|
|
1823
|
+
}
|
|
1824
|
+
/**
|
|
1825
|
+
* AI 网关token消耗统计汇总响应结果
|
|
1826
|
+
*/
|
|
1827
|
+
export interface AIGWLLMTokenUsageStatisticsResult {
|
|
1828
|
+
/**
|
|
1829
|
+
* <p>查询时间范围内请求总数</p>
|
|
1830
|
+
*/
|
|
1831
|
+
TotalRequestCount?: number;
|
|
1832
|
+
/**
|
|
1833
|
+
* <p>查询时间范围内总输入Token数(包含命中缓存的Token数)</p>
|
|
1834
|
+
*/
|
|
1835
|
+
TotalInputTokens?: number;
|
|
1836
|
+
/**
|
|
1837
|
+
* <p>查询时间范围内总输出Token数</p>
|
|
1838
|
+
*/
|
|
1839
|
+
TotalOutputTokens?: number;
|
|
1840
|
+
/**
|
|
1841
|
+
* <p>查询时间范围内总命中缓存输入Token数</p>
|
|
1842
|
+
*/
|
|
1843
|
+
TotalCachedReadInputTokens?: number;
|
|
1844
|
+
/**
|
|
1845
|
+
* <p>查询时间范围内总成本</p>
|
|
1846
|
+
*/
|
|
1847
|
+
TotalCost?: string;
|
|
1848
|
+
/**
|
|
1849
|
+
* <p>成本货币单位</p>
|
|
1850
|
+
*/
|
|
1851
|
+
Currency?: string;
|
|
1852
|
+
/**
|
|
1853
|
+
* <p>查询时间范围内成本最高的消费者</p>
|
|
1854
|
+
*/
|
|
1855
|
+
TopConsumers?: Array<AIGWTopConsumersItem>;
|
|
1856
|
+
}
|
|
1857
|
+
/**
|
|
1858
|
+
* DeleteCloudNativeAPIGatewayLLMModelAPI请求参数结构体
|
|
1859
|
+
*/
|
|
1860
|
+
export interface DeleteCloudNativeAPIGatewayLLMModelAPIRequest {
|
|
1861
|
+
/**
|
|
1862
|
+
* 网关 id。
|
|
1863
|
+
*/
|
|
1864
|
+
GatewayId: string;
|
|
1865
|
+
/**
|
|
1866
|
+
* 模型 API ID,全局唯一标识。
|
|
1867
|
+
*/
|
|
1868
|
+
ModelAPIId: string;
|
|
1869
|
+
}
|
|
1870
|
+
/**
|
|
1871
|
+
* ModifyCloudNativeAPIGatewayMCPServerStatus请求参数结构体
|
|
1872
|
+
*/
|
|
1873
|
+
export interface ModifyCloudNativeAPIGatewayMCPServerStatusRequest {
|
|
1874
|
+
/**
|
|
1875
|
+
* <p>实例 ID</p>
|
|
1876
|
+
*/
|
|
1877
|
+
GatewayId: string;
|
|
1878
|
+
/**
|
|
1879
|
+
* <p>mcp server id</p>
|
|
1880
|
+
*/
|
|
1881
|
+
ServerId: string;
|
|
1882
|
+
/**
|
|
1883
|
+
* <p>mcp server状态</p><p>枚举值:</p><ul><li>Online: 上线</li><li>Offline: 下线</li></ul>
|
|
1884
|
+
*/
|
|
1885
|
+
Status: string;
|
|
1886
|
+
}
|
|
1887
|
+
/**
|
|
1888
|
+
* ModifyCloudNativeAPIGatewayMCPTool返回参数结构体
|
|
1889
|
+
*/
|
|
1890
|
+
export interface ModifyCloudNativeAPIGatewayMCPToolResponse {
|
|
1891
|
+
/**
|
|
1892
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1893
|
+
*/
|
|
1894
|
+
RequestId?: string;
|
|
1895
|
+
}
|
|
1896
|
+
/**
|
|
1897
|
+
* 跨服务降级配置
|
|
1898
|
+
*/
|
|
1899
|
+
export interface AIGWCrossServiceFallbackConfig {
|
|
1900
|
+
/**
|
|
1901
|
+
* <p>触发条件</p><p>枚举值:</p><ul><li>ServiceUnavailable: 服务不可用</li><li>ConnectionTimeout: 连接超时</li><li>RateLimited: 限流</li></ul>
|
|
1902
|
+
*/
|
|
1903
|
+
TriggerConditions: Array<string>;
|
|
1904
|
+
/**
|
|
1905
|
+
* <p>fallback 服务链</p>
|
|
1906
|
+
*/
|
|
1907
|
+
FallbackServiceChain: Array<AIGWFallbackServiceItem>;
|
|
1908
|
+
/**
|
|
1909
|
+
* <p>额度降级触发配置</p>
|
|
1910
|
+
*/
|
|
1911
|
+
QuotaFallbackTrigger?: AIGWLLMQuotaFallbackTrigger;
|
|
1912
|
+
}
|
|
1913
|
+
/**
|
|
1914
|
+
* DescribeCloudNativeAPIGatewayLLMModelAPIs返回参数结构体
|
|
1915
|
+
*/
|
|
1916
|
+
export interface DescribeCloudNativeAPIGatewayLLMModelAPIsResponse {
|
|
1917
|
+
/**
|
|
1918
|
+
* 模型 API 列表。
|
|
1919
|
+
*/
|
|
1920
|
+
Result?: ListCloudNativeAPIGatewayLLMModelAPI;
|
|
1921
|
+
/**
|
|
1922
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1923
|
+
*/
|
|
1924
|
+
RequestId?: string;
|
|
1925
|
+
}
|
|
1926
|
+
/**
|
|
1927
|
+
* CreateCloudNativeAPIGatewayConsumer返回参数结构体
|
|
1928
|
+
*/
|
|
1929
|
+
export interface CreateCloudNativeAPIGatewayConsumerResponse {
|
|
1930
|
+
/**
|
|
1931
|
+
* <p>创建结果。包含成功标识与新建资源 ID。</p>
|
|
1932
|
+
*/
|
|
1933
|
+
Result?: CNAPIGwCreateCommonResult;
|
|
1934
|
+
/**
|
|
1935
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1936
|
+
*/
|
|
1937
|
+
RequestId?: string;
|
|
1938
|
+
}
|
|
1939
|
+
/**
|
|
1940
|
+
* 模型服务模型名称路由策略
|
|
1941
|
+
*/
|
|
1942
|
+
export interface CloudNativeAPIGatewayLLMModelServiceRouteModelNameStrategy {
|
|
1943
|
+
/**
|
|
1944
|
+
* <p>模型服务id</p>
|
|
1945
|
+
*/
|
|
1946
|
+
ModelServiceId: string;
|
|
1947
|
+
/**
|
|
1948
|
+
* <p>匹配模型服务</p>
|
|
1949
|
+
*/
|
|
1950
|
+
MatchModelName: string;
|
|
1951
|
+
/**
|
|
1952
|
+
* <p>重写模型</p>
|
|
1953
|
+
*/
|
|
1954
|
+
RewriteModelName?: string;
|
|
1955
|
+
}
|
|
1956
|
+
/**
|
|
1957
|
+
* DeleteCloudNativeAPIGatewayLLMModelAPI返回参数结构体
|
|
1958
|
+
*/
|
|
1959
|
+
export interface DeleteCloudNativeAPIGatewayLLMModelAPIResponse {
|
|
1960
|
+
/**
|
|
1961
|
+
* <p>是否成功。</p>
|
|
1962
|
+
*/
|
|
1963
|
+
Result?: boolean;
|
|
1964
|
+
/**
|
|
1965
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1966
|
+
*/
|
|
1967
|
+
RequestId?: string;
|
|
1968
|
+
}
|
|
1969
|
+
/**
|
|
1970
|
+
* Token用量统计结果
|
|
1971
|
+
*/
|
|
1972
|
+
export interface AIGWLLMTokenUsageListResult {
|
|
1973
|
+
/**
|
|
1974
|
+
* <p>Token用量明细返回结果列表</p>
|
|
1975
|
+
*/
|
|
1976
|
+
DataList?: Array<AIGWLLMTokenUsageItem>;
|
|
1977
|
+
/**
|
|
1978
|
+
* <p>结果总数</p>
|
|
1979
|
+
*/
|
|
1980
|
+
TotalCount?: number;
|
|
1981
|
+
}
|
|
1982
|
+
/**
|
|
1983
|
+
* ModifyCloudNativeAPIGatewaySecretKey请求参数结构体
|
|
1984
|
+
*/
|
|
1985
|
+
export interface ModifyCloudNativeAPIGatewaySecretKeyRequest {
|
|
1986
|
+
/**
|
|
1987
|
+
* 实例 ID
|
|
1988
|
+
*/
|
|
1989
|
+
GatewayId: string;
|
|
1990
|
+
/**
|
|
1991
|
+
* 密钥名字
|
|
1992
|
+
*/
|
|
1993
|
+
Name: string;
|
|
1994
|
+
/**
|
|
1995
|
+
* 密钥id
|
|
1996
|
+
*/
|
|
1997
|
+
SecretKeyId: string;
|
|
1998
|
+
/**
|
|
1999
|
+
* 描述,200字以内
|
|
2000
|
+
*/
|
|
2001
|
+
Description?: string;
|
|
2002
|
+
}
|
|
2003
|
+
/**
|
|
2004
|
+
* 查询过滤通用对象
|
|
2005
|
+
*/
|
|
2006
|
+
export interface Filter {
|
|
2007
|
+
/**
|
|
2008
|
+
* 过滤参数名
|
|
2009
|
+
*/
|
|
2010
|
+
Name: string;
|
|
2011
|
+
/**
|
|
2012
|
+
* 过滤参数值
|
|
2013
|
+
*/
|
|
2014
|
+
Values: Array<string>;
|
|
2015
|
+
}
|
|
2016
|
+
/**
|
|
2017
|
+
* MCP Tool 信息
|
|
2018
|
+
*/
|
|
2019
|
+
export interface CNAPIGwMCPTool {
|
|
2020
|
+
/**
|
|
2021
|
+
* <p>名字</p>
|
|
2022
|
+
*/
|
|
2023
|
+
Name: string;
|
|
2024
|
+
/**
|
|
2025
|
+
* <p>展示名字</p>
|
|
2026
|
+
*/
|
|
2027
|
+
DisplayName: string;
|
|
2028
|
+
/**
|
|
2029
|
+
* <p>方法</p><p>枚举值:</p><ul><li>GET: GET</li><li>POST: POST</li><li>PUT: PUT</li><li>DELETE: DELETE</li><li>PATCH: PATCH</li></ul>
|
|
2030
|
+
*/
|
|
2031
|
+
Method: string;
|
|
2032
|
+
/**
|
|
2033
|
+
* <p>描述</p>
|
|
2034
|
+
*/
|
|
2035
|
+
Description: string;
|
|
2036
|
+
/**
|
|
2037
|
+
* <p>工具 id</p>
|
|
2038
|
+
*/
|
|
2039
|
+
ToolId?: string;
|
|
2040
|
+
/**
|
|
2041
|
+
* <p>报文格式</p>
|
|
2042
|
+
*/
|
|
2043
|
+
ContentType?: string;
|
|
2044
|
+
/**
|
|
2045
|
+
* <p>服务 id</p>
|
|
2046
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2047
|
+
*/
|
|
2048
|
+
ServiceId?: string;
|
|
2049
|
+
/**
|
|
2050
|
+
* <p>路径</p>
|
|
2051
|
+
*/
|
|
2052
|
+
Path?: string;
|
|
2053
|
+
/**
|
|
2054
|
+
* <p>参数</p>
|
|
2055
|
+
*/
|
|
2056
|
+
InputParams?: Array<CNAPIGwMCPToolParam>;
|
|
2057
|
+
/**
|
|
2058
|
+
* <p>创建时间</p><p>参数格式:yyyy-MM-dd hh:mm:ss</p>
|
|
2059
|
+
*/
|
|
2060
|
+
CreateTime?: string;
|
|
2061
|
+
/**
|
|
2062
|
+
* <p>更新时间</p><p>参数格式:yyyy-MM-dd hh:mm:ss</p>
|
|
2063
|
+
*/
|
|
2064
|
+
UpdateTime?: string;
|
|
2065
|
+
/**
|
|
2066
|
+
* <p>tool状态</p><p>枚举值:</p><ul><li>Enable: 启用</li><li>Disable: 禁用</li></ul>
|
|
2067
|
+
*/
|
|
2068
|
+
Status?: string;
|
|
2069
|
+
/**
|
|
2070
|
+
* <p>当前版本号</p>
|
|
2071
|
+
*/
|
|
2072
|
+
CurrentVersion?: string;
|
|
2073
|
+
}
|
|
2074
|
+
/**
|
|
2075
|
+
* AI 网关 Tool ACL 单条记录(DescribeMCPToolACLList 数组元素)
|
|
2076
|
+
*/
|
|
2077
|
+
export interface AIGWMCPToolACLItem {
|
|
2078
|
+
/**
|
|
2079
|
+
* <p>MCP工具ID</p>
|
|
2080
|
+
*/
|
|
2081
|
+
ToolId?: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* <p>MCP工具名称</p>
|
|
2084
|
+
*/
|
|
2085
|
+
ToolName?: string;
|
|
2086
|
+
/**
|
|
2087
|
+
* <p>MCP工具鉴权类型</p><p>枚举值:</p><ul><li>None: 继承server鉴权类型</li><li>Allow: 白名单</li><li>Deny: 黑名单</li></ul>
|
|
2088
|
+
*/
|
|
2089
|
+
ACLType?: string;
|
|
2090
|
+
/**
|
|
2091
|
+
* <p>关联的消费者ID列表</p>
|
|
2092
|
+
*/
|
|
2093
|
+
ACLConsumers?: Array<AIGWACLSubject>;
|
|
2094
|
+
/**
|
|
2095
|
+
* <p>关联的消费者组ID列表</p>
|
|
2096
|
+
*/
|
|
2097
|
+
ACLConsumerGroups?: Array<AIGWACLSubject>;
|
|
2098
|
+
}
|
|
2099
|
+
/**
|
|
2100
|
+
* DescribeCloudNativeAPIGatewayLLMTokenUsageStatistics返回参数结构体
|
|
2101
|
+
*/
|
|
2102
|
+
export interface DescribeCloudNativeAPIGatewayLLMTokenUsageStatisticsResponse {
|
|
2103
|
+
/**
|
|
2104
|
+
* <p>请求结果</p>
|
|
2105
|
+
*/
|
|
2106
|
+
Result?: AIGWLLMTokenUsageStatisticsResult;
|
|
2107
|
+
/**
|
|
2108
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2109
|
+
*/
|
|
2110
|
+
RequestId?: string;
|
|
2111
|
+
}
|
|
2112
|
+
/**
|
|
2113
|
+
* LLM 模型服务列表
|
|
2114
|
+
*/
|
|
2115
|
+
export interface ListCloudNativeAPIGatewayLLMModelService {
|
|
2116
|
+
/**
|
|
2117
|
+
* 模型服务数量。
|
|
2118
|
+
*/
|
|
2119
|
+
TotalCount?: number;
|
|
2120
|
+
/**
|
|
2121
|
+
* 模型服务列表。
|
|
2122
|
+
*/
|
|
2123
|
+
DataList?: Array<CloudNativeAPIGatewayLLMModelService>;
|
|
2124
|
+
}
|
|
2125
|
+
/**
|
|
2126
|
+
* DescribeCloudNativeAPIGatewayMCPServerACL返回参数结构体
|
|
2127
|
+
*/
|
|
2128
|
+
export interface DescribeCloudNativeAPIGatewayMCPServerACLResponse {
|
|
2129
|
+
/**
|
|
2130
|
+
* <p>MCP 服务 ACL 列表结果</p>
|
|
2131
|
+
*/
|
|
2132
|
+
Result?: AIGWMCPServerACLResult;
|
|
2133
|
+
/**
|
|
2134
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2135
|
+
*/
|
|
2136
|
+
RequestId?: string;
|
|
2137
|
+
}
|
|
2138
|
+
/**
|
|
2139
|
+
* ModifyCloudNativeAPIGatewayMCPServer返回参数结构体
|
|
2140
|
+
*/
|
|
2141
|
+
export interface ModifyCloudNativeAPIGatewayMCPServerResponse {
|
|
2142
|
+
/**
|
|
2143
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2144
|
+
*/
|
|
2145
|
+
RequestId?: string;
|
|
2146
|
+
}
|
|
2147
|
+
/**
|
|
2148
|
+
* DescribeCloudNativeAPIGatewayLLMModelService返回参数结构体
|
|
2149
|
+
*/
|
|
2150
|
+
export interface DescribeCloudNativeAPIGatewayLLMModelServiceResponse {
|
|
2151
|
+
/**
|
|
2152
|
+
* <p>模型服务。</p>
|
|
2153
|
+
*/
|
|
2154
|
+
Result?: CloudNativeAPIGatewayLLMModelService;
|
|
2155
|
+
/**
|
|
2156
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2157
|
+
*/
|
|
2158
|
+
RequestId?: string;
|
|
2159
|
+
}
|
|
2160
|
+
/**
|
|
2161
|
+
* 云原生网关模型API 配额降级触发条件信息
|
|
2162
|
+
*/
|
|
2163
|
+
export interface AIGWLLMQuotaFallbackTrigger {
|
|
2164
|
+
/**
|
|
2165
|
+
* <p>配额感知阈值百分比(RPM 与 TPM 共用)</p><p>取值范围:[0, 99]</p>
|
|
2166
|
+
*/
|
|
2167
|
+
ThresholdPercent?: number;
|
|
2168
|
+
/**
|
|
2169
|
+
* <p>检查维度策略</p><p>枚举值:</p><ul><li>AnyInsufficient: RPM 或 TPM 任一不足即触发</li><li>AllInsufficient: RPM 和 TPM 同时不足才触发</li></ul>
|
|
2170
|
+
*/
|
|
2171
|
+
CheckDimension?: string;
|
|
2172
|
+
}
|
|
2173
|
+
/**
|
|
2174
|
+
* DescribeCloudNativeAPIGatewaySecretKey请求参数结构体
|
|
2175
|
+
*/
|
|
2176
|
+
export interface DescribeCloudNativeAPIGatewaySecretKeyRequest {
|
|
2177
|
+
/**
|
|
2178
|
+
* <p>实例 ID</p>
|
|
2179
|
+
*/
|
|
2180
|
+
GatewayId: string;
|
|
2181
|
+
/**
|
|
2182
|
+
* <p>密钥id</p>
|
|
2183
|
+
*/
|
|
2184
|
+
SecretKeyId: string;
|
|
2185
|
+
}
|
|
2186
|
+
/**
|
|
2187
|
+
* AI 网关 mcp server 下所有 tool 的 ACL 状态
|
|
2188
|
+
*/
|
|
2189
|
+
export interface AIGWMCPToolACLListResult {
|
|
2190
|
+
/**
|
|
2191
|
+
* <p>黑白名单鉴权类型</p><p>枚举值:</p><ul><li>None: 不鉴权</li><li>Allow: 白名单</li><li>Deny: 黑名单</li></ul>
|
|
2192
|
+
*/
|
|
2193
|
+
ACLType?: string;
|
|
2194
|
+
/**
|
|
2195
|
+
* <p>数据列表</p>
|
|
2196
|
+
*/
|
|
2197
|
+
DataList?: Array<AIGWMCPToolACLItem>;
|
|
2198
|
+
/**
|
|
2199
|
+
* <p>计数</p>
|
|
2200
|
+
*/
|
|
2201
|
+
TotalCount?: number;
|
|
2202
|
+
}
|
|
2203
|
+
/**
|
|
2204
|
+
* AddCloudNativeAPIGatewayConsumerGroupAuth返回参数结构体
|
|
2205
|
+
*/
|
|
2206
|
+
export interface AddCloudNativeAPIGatewayConsumerGroupAuthResponse {
|
|
2207
|
+
/**
|
|
2208
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2209
|
+
*/
|
|
2210
|
+
RequestId?: string;
|
|
2211
|
+
}
|
|
2212
|
+
/**
|
|
2213
|
+
* DeleteCloudNativeAPIGatewayConsumer请求参数结构体
|
|
2214
|
+
*/
|
|
2215
|
+
export interface DeleteCloudNativeAPIGatewayConsumerRequest {
|
|
2216
|
+
/**
|
|
2217
|
+
* 网关实例id
|
|
2218
|
+
*/
|
|
2219
|
+
GatewayId: string;
|
|
2220
|
+
/**
|
|
2221
|
+
* 消费者ID
|
|
2222
|
+
*/
|
|
2223
|
+
ConsumerId: string;
|
|
2224
|
+
}
|
|
2225
|
+
/**
|
|
2226
|
+
* LLM-单模型内降级规则
|
|
2227
|
+
*/
|
|
2228
|
+
export interface CloudNativeAPIGatewayLLMModelFallbackRule {
|
|
2229
|
+
/**
|
|
2230
|
+
* 备选模型,主模型不可用时将依次按顺序尝试。
|
|
2231
|
+
*/
|
|
2232
|
+
FallbackModels?: Array<string>;
|
|
2233
|
+
}
|
|
2234
|
+
/**
|
|
2235
|
+
* ModifyCloudNativeAPIGatewayMCPToolStatus返回参数结构体
|
|
2236
|
+
*/
|
|
2237
|
+
export interface ModifyCloudNativeAPIGatewayMCPToolStatusResponse {
|
|
2238
|
+
/**
|
|
2239
|
+
* <p>创建结果</p>
|
|
2240
|
+
*/
|
|
2241
|
+
Result?: boolean;
|
|
2242
|
+
/**
|
|
2243
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2244
|
+
*/
|
|
2245
|
+
RequestId?: string;
|
|
2246
|
+
}
|
|
2247
|
+
/**
|
|
2248
|
+
* 云原生网关模型LLM配额限制信息
|
|
2249
|
+
*/
|
|
2250
|
+
export interface AIGWLLMQuotaLimit {
|
|
2251
|
+
/**
|
|
2252
|
+
* <p>该模型服务每分钟请求数上限,0 表示该维度不限</p>
|
|
2253
|
+
*/
|
|
2254
|
+
RPMLimit?: number;
|
|
2255
|
+
/**
|
|
2256
|
+
* <p>该模型服务每分钟 Token 数上限,0 表示该维度不限</p>
|
|
2257
|
+
*/
|
|
2258
|
+
TPMLimit?: number;
|
|
2259
|
+
}
|
|
2260
|
+
/**
|
|
2261
|
+
* AI 网关自定义脱敏规则(A 层 / B 层共用结构体,MaskFormat 含义随所属层不同)
|
|
2262
|
+
*/
|
|
2263
|
+
export interface AIGWCustomDesensitizeRule {
|
|
2264
|
+
/**
|
|
2265
|
+
* <p>自定义脱敏规则名称</p>
|
|
2266
|
+
*/
|
|
2267
|
+
Name: string;
|
|
2268
|
+
/**
|
|
2269
|
+
* <p>自定义脱敏规则匹配正则</p>
|
|
2270
|
+
*/
|
|
2271
|
+
Pattern: string;
|
|
2272
|
+
/**
|
|
2273
|
+
* <p>自定义脱敏规则掩码</p>
|
|
2274
|
+
*/
|
|
2275
|
+
MaskFormat: string;
|
|
2276
|
+
/**
|
|
2277
|
+
* <p>自定义脱敏规则开关</p>
|
|
2278
|
+
*/
|
|
2279
|
+
Enabled: boolean;
|
|
2280
|
+
}
|
|
2281
|
+
/**
|
|
2282
|
+
* MCP Tool 列表
|
|
2283
|
+
*/
|
|
2284
|
+
export interface CNAPIGwMCPToolList {
|
|
2285
|
+
/**
|
|
2286
|
+
* <p>MCPTool 列表</p>
|
|
2287
|
+
*/
|
|
2288
|
+
DataList?: Array<CNAPIGwMCPTool>;
|
|
2289
|
+
/**
|
|
2290
|
+
* <p>总数</p>
|
|
2291
|
+
*/
|
|
2292
|
+
TotalCount?: number;
|
|
2293
|
+
}
|
|
2294
|
+
/**
|
|
2295
|
+
* LLM 模型服务
|
|
2296
|
+
*/
|
|
2297
|
+
export interface CloudNativeAPIGatewayLLMModelService {
|
|
2298
|
+
/**
|
|
2299
|
+
* <p>模型服务 ID。</p>
|
|
2300
|
+
*/
|
|
2301
|
+
Id?: string;
|
|
2302
|
+
/**
|
|
2303
|
+
* <p>模型服务名称。</p>
|
|
2304
|
+
*/
|
|
2305
|
+
Name?: string;
|
|
2306
|
+
/**
|
|
2307
|
+
* <p>创建时间。</p>
|
|
2308
|
+
*/
|
|
2309
|
+
CreateTime?: string;
|
|
2310
|
+
/**
|
|
2311
|
+
* <p>修改时间。</p>
|
|
2312
|
+
*/
|
|
2313
|
+
ModifyTime?: string;
|
|
2314
|
+
/**
|
|
2315
|
+
* <p>服务类型,目前只支持xa0LLMService。</p>
|
|
2316
|
+
*/
|
|
2317
|
+
ServiceType?: string;
|
|
2318
|
+
/**
|
|
2319
|
+
* <p>选择模型提供商, 选项:OpenAI、Anthropic、Azure OpenAI、自定义HTTP。</p>
|
|
2320
|
+
*/
|
|
2321
|
+
ModelProvider?: string;
|
|
2322
|
+
/**
|
|
2323
|
+
* <p>API协议标准,根据供应商动态变化:OpenAI→OpenAI/v1,Anthropic→Anthropic/v1等</p>
|
|
2324
|
+
*/
|
|
2325
|
+
ModelProtocol?: string;
|
|
2326
|
+
/**
|
|
2327
|
+
* <p>自定义的模型请求 URL。</p>
|
|
2328
|
+
*/
|
|
2329
|
+
UpstreamURL?: string;
|
|
2330
|
+
/**
|
|
2331
|
+
* <p>模型选择方式,选项:Specify(指定模型)、PassThrough(透传请求模型)。</p>
|
|
2332
|
+
*/
|
|
2333
|
+
ModelSelector?: string;
|
|
2334
|
+
/**
|
|
2335
|
+
* <p>默认模型,模型选择方式为 Specify 时必填。</p>
|
|
2336
|
+
*/
|
|
2337
|
+
DefaultModel?: string;
|
|
2338
|
+
/**
|
|
2339
|
+
* <p>开启模型降级,模型选择方式为 Specify 时必填。</p>
|
|
2340
|
+
*/
|
|
2341
|
+
EnableModelFallback?: boolean;
|
|
2342
|
+
/**
|
|
2343
|
+
* <p>可以配置备用模型规则,EnableSpecifyModelFallbackxa0为 true 时必填。</p>
|
|
2344
|
+
*/
|
|
2345
|
+
ModelFallbackRule?: CloudNativeAPIGatewayLLMModelFallbackRule;
|
|
2346
|
+
/**
|
|
2347
|
+
* <p>开启模型参数校验,是否校验客户端传递的 model 参数,xa0模型选择方式为 PassThrough 时必填。</p>
|
|
2348
|
+
*/
|
|
2349
|
+
EnableModelParamCheck?: boolean;
|
|
2350
|
+
/**
|
|
2351
|
+
* <p>模型检验信息,EnableModelParamCheckxa0为 true 时必填。</p>
|
|
2352
|
+
*/
|
|
2353
|
+
ModelParamCheckRule?: CloudNativeAPIGatewayLLMModelParamCheckInfo;
|
|
2354
|
+
/**
|
|
2355
|
+
* <p>描述。</p>
|
|
2356
|
+
*/
|
|
2357
|
+
Description?: string;
|
|
2358
|
+
/**
|
|
2359
|
+
* <p>连接超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:10000</p>
|
|
2360
|
+
*/
|
|
2361
|
+
ConnectTimeout?: number;
|
|
2362
|
+
/**
|
|
2363
|
+
* <p>写入超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:60000</p>
|
|
2364
|
+
*/
|
|
2365
|
+
WriteTimeout?: number;
|
|
2366
|
+
/**
|
|
2367
|
+
* <p>读取超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p>
|
|
2368
|
+
*/
|
|
2369
|
+
ReadTimeout?: number;
|
|
2370
|
+
/**
|
|
2371
|
+
* <p>重试次数</p><p>取值范围:[0, 5]</p><p>单位:次</p><p>默认值:0</p>
|
|
2372
|
+
*/
|
|
2373
|
+
Retries?: number;
|
|
2374
|
+
/**
|
|
2375
|
+
* <p>路径拼接模式</p><p>枚举值:</p><ul><li>FixedPath: 固定路径</li><li>AutoConcat: 自动拼接</li></ul>
|
|
2376
|
+
*/
|
|
2377
|
+
UpstreamUrlMode?: string;
|
|
2378
|
+
/**
|
|
2379
|
+
* <p>sni</p>
|
|
2380
|
+
*/
|
|
2381
|
+
SNI?: string;
|
|
2382
|
+
/**
|
|
2383
|
+
* <p>配额限制</p>
|
|
2384
|
+
*/
|
|
2385
|
+
QuotaLimit?: AIGWLLMQuotaLimit;
|
|
2386
|
+
/**
|
|
2387
|
+
* <p>标签</p>
|
|
2388
|
+
*/
|
|
2389
|
+
Tags?: string;
|
|
2390
|
+
/**
|
|
2391
|
+
* <p>绑定的模型服务秘钥</p>
|
|
2392
|
+
*/
|
|
2393
|
+
SecretKeyIds?: Array<string>;
|
|
2394
|
+
}
|
|
2395
|
+
/**
|
|
2396
|
+
* ModifyCloudNativeAPIGatewayConsumerGroup请求参数结构体
|
|
2397
|
+
*/
|
|
2398
|
+
export interface ModifyCloudNativeAPIGatewayConsumerGroupRequest {
|
|
2399
|
+
/**
|
|
2400
|
+
* 网关实例id
|
|
2401
|
+
*/
|
|
2402
|
+
GatewayId: string;
|
|
2403
|
+
/**
|
|
2404
|
+
* <p>消费者组 ID(以 cg- 开头)。</p>
|
|
2405
|
+
*/
|
|
2406
|
+
ConsumerGroupId: string;
|
|
2407
|
+
/**
|
|
2408
|
+
* <p>消费者组名称,最长 60 字符。</p>
|
|
2409
|
+
*/
|
|
2410
|
+
Name: string;
|
|
2411
|
+
/**
|
|
2412
|
+
* <p>启用状态。</p><p>枚举值:</p><ul><li>Enable:启用</li><li>Disable:禁用</li></ul>
|
|
2413
|
+
*/
|
|
2414
|
+
Status: string;
|
|
2415
|
+
/**
|
|
2416
|
+
* <p>消费者组描述。最长 200 字符。</p>
|
|
2417
|
+
*/
|
|
2418
|
+
Description?: string;
|
|
2419
|
+
}
|
|
2420
|
+
/**
|
|
2421
|
+
* DescribeCloudNativeAPIGatewayMCPToolList返回参数结构体
|
|
2422
|
+
*/
|
|
2423
|
+
export interface DescribeCloudNativeAPIGatewayMCPToolListResponse {
|
|
2424
|
+
/**
|
|
2425
|
+
* <p>tool 列表</p>
|
|
2426
|
+
*/
|
|
2427
|
+
Result?: CNAPIGwMCPToolList;
|
|
2428
|
+
/**
|
|
2429
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2430
|
+
*/
|
|
2431
|
+
RequestId?: string;
|
|
2432
|
+
}
|
|
2433
|
+
/**
|
|
2434
|
+
* DescribeCloudNativeAPIGatewayLLMModelAPI请求参数结构体
|
|
2435
|
+
*/
|
|
2436
|
+
export interface DescribeCloudNativeAPIGatewayLLMModelAPIRequest {
|
|
2437
|
+
/**
|
|
2438
|
+
* <p>网关 id。</p>
|
|
2439
|
+
*/
|
|
2440
|
+
GatewayId: string;
|
|
2441
|
+
/**
|
|
2442
|
+
* <p>模型 API ID,全局唯一标识。</p>
|
|
2443
|
+
*/
|
|
2444
|
+
ModelAPIId: string;
|
|
2445
|
+
}
|
|
2446
|
+
/**
|
|
2447
|
+
* DescribeCloudNativeAPIGatewayConsumer请求参数结构体
|
|
2448
|
+
*/
|
|
2449
|
+
export interface DescribeCloudNativeAPIGatewayConsumerRequest {
|
|
2450
|
+
/**
|
|
2451
|
+
* <p>网关实例id</p>
|
|
2452
|
+
*/
|
|
2453
|
+
GatewayId: string;
|
|
2454
|
+
/**
|
|
2455
|
+
* <p>消费者ID</p>
|
|
2456
|
+
*/
|
|
2457
|
+
ConsumerId: string;
|
|
2458
|
+
}
|
|
2459
|
+
/**
|
|
2460
|
+
* RemoveCloudNativeAPIGatewayConsumerGroupAuth请求参数结构体
|
|
2461
|
+
*/
|
|
2462
|
+
export interface RemoveCloudNativeAPIGatewayConsumerGroupAuthRequest {
|
|
2463
|
+
/**
|
|
2464
|
+
* <p>网关实例id</p>
|
|
2465
|
+
*/
|
|
2466
|
+
GatewayId: string;
|
|
2467
|
+
/**
|
|
2468
|
+
* <p>授权资源类型。</p><p>枚举值:</p><ul><li>ModelAPI:模型 API</li><li>MCPServer:MCP Server</li></ul>
|
|
2469
|
+
*/
|
|
2470
|
+
ResourceType: string;
|
|
2471
|
+
/**
|
|
2472
|
+
* <p>对应资源的 ID。</p><ul><li>ResourceType=ModelAPI 时是模型 API ID</li><li>ResourceType=MCPServer 时是 MCP Server ID</li></ul>
|
|
2473
|
+
*/
|
|
2474
|
+
ResourceId: string;
|
|
2475
|
+
/**
|
|
2476
|
+
* <p>消费者组 ID 列表(每个 ID 以 cg- 开头),长度 1-10。</p>
|
|
2477
|
+
*/
|
|
2478
|
+
ConsumerGroupIds: Array<string>;
|
|
2479
|
+
}
|
|
2480
|
+
/**
|
|
2481
|
+
* DescribeCloudNativeAPIGatewayMCPServerList请求参数结构体
|
|
2482
|
+
*/
|
|
2483
|
+
export interface DescribeCloudNativeAPIGatewayMCPServerListRequest {
|
|
2484
|
+
/**
|
|
2485
|
+
* <p>实例 ID</p>
|
|
2486
|
+
*/
|
|
2487
|
+
GatewayId: string;
|
|
2488
|
+
/**
|
|
2489
|
+
* <p>分页大小</p>
|
|
2490
|
+
*/
|
|
2491
|
+
Limit: number;
|
|
2492
|
+
/**
|
|
2493
|
+
* <p>分页偏移</p>
|
|
2494
|
+
*/
|
|
2495
|
+
Offset: number;
|
|
2496
|
+
}
|
|
2497
|
+
/**
|
|
2498
|
+
* DescribeCloudNativeAPIGatewayConsumerGroup返回参数结构体
|
|
2499
|
+
*/
|
|
2500
|
+
export interface DescribeCloudNativeAPIGatewayConsumerGroupResponse {
|
|
2501
|
+
/**
|
|
2502
|
+
* <p>消费者组详情。</p>
|
|
2503
|
+
*/
|
|
2504
|
+
Result?: CNAPIGwConsumerGroup;
|
|
2505
|
+
/**
|
|
2506
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2507
|
+
*/
|
|
2508
|
+
RequestId?: string;
|
|
2509
|
+
}
|
|
2510
|
+
/**
|
|
2511
|
+
* 延迟优先路由配置
|
|
2512
|
+
*/
|
|
2513
|
+
export interface AIGWLatencyPriorityConfig {
|
|
2514
|
+
/**
|
|
2515
|
+
* <p>路由规则列表</p>
|
|
2516
|
+
*/
|
|
2517
|
+
Rules: Array<AIGWLatencyPriorityRouteRule>;
|
|
2518
|
+
/**
|
|
2519
|
+
* <p>延迟指标</p><p>枚举值:</p><ul><li>LLMLatency: LLM 延迟</li><li>NetworkLatency: 网络延迟</li></ul>
|
|
2520
|
+
*/
|
|
2521
|
+
LatencyMetric: string;
|
|
2522
|
+
/**
|
|
2523
|
+
* <p>路由策略</p><p>枚举值:</p><ul><li>FastMode: 快速模式</li><li>BalanceMode: 均衡模式</li></ul>
|
|
2524
|
+
*/
|
|
2525
|
+
RouteMode?: string;
|
|
2526
|
+
}
|
|
2527
|
+
/**
|
|
2528
|
+
* ModifyCloudNativeAPIGatewayMCPServerAuth请求参数结构体
|
|
2529
|
+
*/
|
|
2530
|
+
export interface ModifyCloudNativeAPIGatewayMCPServerAuthRequest {
|
|
2531
|
+
/**
|
|
2532
|
+
* <p>网关实例ID</p>
|
|
2533
|
+
*/
|
|
2534
|
+
GatewayId: string;
|
|
2535
|
+
/**
|
|
2536
|
+
* <p>MCP服务ID</p>
|
|
2537
|
+
*/
|
|
2538
|
+
ServerId: string;
|
|
2539
|
+
/**
|
|
2540
|
+
* <p>认证类型</p><p>枚举值:</p><ul><li>None: 无认证</li><li>ApiKey: API Key认证</li></ul>
|
|
2541
|
+
*/
|
|
2542
|
+
AuthType: string;
|
|
2543
|
+
}
|
|
2544
|
+
/**
|
|
2545
|
+
* DescribeCloudNativeAPIGatewayMCPServer请求参数结构体
|
|
2546
|
+
*/
|
|
2547
|
+
export interface DescribeCloudNativeAPIGatewayMCPServerRequest {
|
|
2548
|
+
/**
|
|
2549
|
+
* <p>云原生API网关实例ID</p>
|
|
2550
|
+
*/
|
|
2551
|
+
GatewayId: string;
|
|
2552
|
+
/**
|
|
2553
|
+
* <p>MCP服务ID</p>
|
|
2554
|
+
*/
|
|
2555
|
+
ServerId: string;
|
|
2556
|
+
}
|
|
2557
|
+
/**
|
|
2558
|
+
* DescribeCloudNativeAPIGatewayLLMTokenUsageList请求参数结构体
|
|
2559
|
+
*/
|
|
2560
|
+
export interface DescribeCloudNativeAPIGatewayLLMTokenUsageListRequest {
|
|
2561
|
+
/**
|
|
2562
|
+
* <p>网关实例Id</p>
|
|
2563
|
+
*/
|
|
2564
|
+
GatewayId: string;
|
|
2565
|
+
/**
|
|
2566
|
+
* <p>查询起始时间戳</p><p>单位:秒</p>
|
|
2567
|
+
*/
|
|
2568
|
+
StartTime: number;
|
|
2569
|
+
/**
|
|
2570
|
+
* <p>查询结束时间戳</p><p>单位:秒</p>
|
|
2571
|
+
*/
|
|
2572
|
+
EndTime: number;
|
|
2573
|
+
/**
|
|
2574
|
+
* <p>查询过滤条件,Name取值为ConsumerId或ConsumerGroupId</p>
|
|
2575
|
+
*/
|
|
2576
|
+
Filters?: Array<Filter>;
|
|
2577
|
+
/**
|
|
2578
|
+
* <p>分页条件,每页条数</p>
|
|
2579
|
+
*/
|
|
2580
|
+
Limit?: number;
|
|
2581
|
+
/**
|
|
2582
|
+
* <p>分页条件,分页偏移量</p>
|
|
2583
|
+
*/
|
|
2584
|
+
Offset?: number;
|
|
2585
|
+
}
|
|
2586
|
+
/**
|
|
2587
|
+
* ModifyCloudNativeAPIGatewayMCPToolStatus请求参数结构体
|
|
2588
|
+
*/
|
|
2589
|
+
export interface ModifyCloudNativeAPIGatewayMCPToolStatusRequest {
|
|
2590
|
+
/**
|
|
2591
|
+
* <p>实例 ID</p>
|
|
2592
|
+
*/
|
|
2593
|
+
GatewayId: string;
|
|
2594
|
+
/**
|
|
2595
|
+
* <p>mcp server id</p>
|
|
2596
|
+
*/
|
|
2597
|
+
ServerId: string;
|
|
2598
|
+
/**
|
|
2599
|
+
* <p>mcp tool 状态</p><p>枚举值:</p><ul><li>Enable: 启用</li><li>Disable: 禁用</li></ul>
|
|
2600
|
+
*/
|
|
2601
|
+
Status: string;
|
|
2602
|
+
/**
|
|
2603
|
+
* <p>mcp tool id</p>
|
|
2604
|
+
*/
|
|
2605
|
+
ToolId: string;
|
|
2606
|
+
}
|
|
2607
|
+
/**
|
|
2608
|
+
* AddCloudNativeAPIGatewayConsumerGroupAuth请求参数结构体
|
|
2609
|
+
*/
|
|
2610
|
+
export interface AddCloudNativeAPIGatewayConsumerGroupAuthRequest {
|
|
2611
|
+
/**
|
|
2612
|
+
* <p>网关实例id</p>
|
|
2613
|
+
*/
|
|
2614
|
+
GatewayId: string;
|
|
2615
|
+
/**
|
|
2616
|
+
* <p>授权资源类型。</p><p>枚举值:</p><ul><li>ModelAPI:模型 API</li><li>MCPServer:MCP Server</li></ul>
|
|
2617
|
+
*/
|
|
2618
|
+
ResourceType: string;
|
|
2619
|
+
/**
|
|
2620
|
+
* <p>对应资源的 ID。</p><ul><li>ResourceType=ModelAPI 时是模型 API ID</li><li>ResourceType=MCPServer 时是 MCP Server ID</li></ul>
|
|
2621
|
+
*/
|
|
2622
|
+
ResourceId: string;
|
|
2623
|
+
/**
|
|
2624
|
+
* <p>消费者组 ID 列表(每个 ID 以 cg- 开头),长度 1-10。</p>
|
|
2625
|
+
*/
|
|
2626
|
+
ConsumerGroupIds: Array<string>;
|
|
2627
|
+
}
|
|
2628
|
+
/**
|
|
2629
|
+
* AI 网关 A 层转发脱敏配置(请求转发到 LLM 供应商前对 messages 替换为占位符)
|
|
2630
|
+
*/
|
|
2631
|
+
export interface AIGWForwardDesensitizeConfig {
|
|
2632
|
+
/**
|
|
2633
|
+
* <p>转发脱敏开关</p>
|
|
2634
|
+
*/
|
|
2635
|
+
Enabled: boolean;
|
|
2636
|
+
/**
|
|
2637
|
+
* <p>预定义规则类型</p><p>枚举值:</p><ul><li>Phone: 电话号码</li><li>IdCard: 身份证号</li><li>BankCard: 银行卡号</li><li>Email: 电子邮箱地址</li><li>IP: IP地址</li><li>Name: 姓名</li></ul>
|
|
2638
|
+
*/
|
|
2639
|
+
PredefinedRuleTypes?: Array<string>;
|
|
2640
|
+
/**
|
|
2641
|
+
* <p>自定义脱敏规则</p>
|
|
2642
|
+
*/
|
|
2643
|
+
CustomRules?: Array<AIGWCustomDesensitizeRule>;
|
|
2644
|
+
/**
|
|
2645
|
+
* <p>掩码</p>
|
|
2646
|
+
*/
|
|
2647
|
+
PlaceholderFormat?: string;
|
|
2648
|
+
/**
|
|
2649
|
+
* <p>脱敏异常处理</p><p>枚举值:</p><ul><li>Reject: 拒绝请求</li><li>Skip: 跳过</li></ul>
|
|
2650
|
+
*/
|
|
2651
|
+
OnFailure?: string;
|
|
2652
|
+
}
|
|
2653
|
+
/**
|
|
2654
|
+
* DescribeCloudNativeAPIGatewaySecretKeyValue返回参数结构体
|
|
2655
|
+
*/
|
|
2656
|
+
export interface DescribeCloudNativeAPIGatewaySecretKeyValueResponse {
|
|
2657
|
+
/**
|
|
2658
|
+
* 密钥值
|
|
2659
|
+
*/
|
|
2660
|
+
Result?: string;
|
|
2661
|
+
/**
|
|
2662
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2663
|
+
*/
|
|
2664
|
+
RequestId?: string;
|
|
2665
|
+
}
|
|
2666
|
+
/**
|
|
2667
|
+
* CreateCloudNativeAPIGatewayMCPTool返回参数结构体
|
|
2668
|
+
*/
|
|
2669
|
+
export interface CreateCloudNativeAPIGatewayMCPToolResponse {
|
|
2670
|
+
/**
|
|
2671
|
+
* <p>创建结果</p>
|
|
2672
|
+
*/
|
|
2673
|
+
Result?: CNAPIGwCreateCommonResult;
|
|
2674
|
+
/**
|
|
2675
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2676
|
+
*/
|
|
2677
|
+
RequestId?: string;
|
|
2678
|
+
}
|
|
2679
|
+
/**
|
|
2680
|
+
* ModifyCloudNativeAPIGatewayLLMModelService请求参数结构体
|
|
2681
|
+
*/
|
|
2682
|
+
export interface ModifyCloudNativeAPIGatewayLLMModelServiceRequest {
|
|
2683
|
+
/**
|
|
2684
|
+
* <p>网关 id。</p>
|
|
2685
|
+
*/
|
|
2686
|
+
GatewayId: string;
|
|
2687
|
+
/**
|
|
2688
|
+
* <p>模型服务 ID,全局唯一标识。</p>
|
|
2689
|
+
*/
|
|
2690
|
+
ModelServiceId: string;
|
|
2691
|
+
/**
|
|
2692
|
+
* <p>修改服务名称,长度2-50字符,支持中英文、数字、下划线。</p>
|
|
2693
|
+
*/
|
|
2694
|
+
Name?: string;
|
|
2695
|
+
/**
|
|
2696
|
+
* <p>修改默认模型,模型选择方式为 Specify 时必填。</p>
|
|
2697
|
+
*/
|
|
2698
|
+
DefaultModel?: string;
|
|
2699
|
+
/**
|
|
2700
|
+
* <p>修改模型选择方式,选项:Specify(指定模型)、PassThrough(透传请求模型)。</p>
|
|
2701
|
+
*/
|
|
2702
|
+
ModelSelector?: string;
|
|
2703
|
+
/**
|
|
2704
|
+
* <p>修改开启模型降级,模型选择方式为 Specify 时必填。</p>
|
|
2705
|
+
*/
|
|
2706
|
+
EnableModelFallback?: boolean;
|
|
2707
|
+
/**
|
|
2708
|
+
* <p>修改可以配置备用模型规则,EnableSpecifyModelFallback 为 true 时必填。</p>
|
|
2709
|
+
*/
|
|
2710
|
+
ModelFallbackRule?: CloudNativeAPIGatewayLLMModelFallbackRule;
|
|
2711
|
+
/**
|
|
2712
|
+
* <p>修改开启模型参数校验,是否校验客户端传递的 model 参数, 模型选择方式为 PassThrough 时必填</p>
|
|
2713
|
+
*/
|
|
2714
|
+
EnableModelParamCheck?: boolean;
|
|
2715
|
+
/**
|
|
2716
|
+
* <p>修改模型检验信息,EnableModelParamCheck 为 true 时必填。</p>
|
|
2717
|
+
*/
|
|
2718
|
+
ModelParamCheckRule?: CloudNativeAPIGatewayLLMModelParamCheckInfo;
|
|
2719
|
+
/**
|
|
2720
|
+
* <p>修改描述。</p>
|
|
2721
|
+
*/
|
|
2722
|
+
Description?: string;
|
|
2723
|
+
/**
|
|
2724
|
+
* <p>修改模型服务地址</p>
|
|
2725
|
+
*/
|
|
2726
|
+
UpstreamURL?: string;
|
|
2727
|
+
/**
|
|
2728
|
+
* <p>连接超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:10000</p>
|
|
2729
|
+
*/
|
|
2730
|
+
ConnectTimeout?: number;
|
|
2731
|
+
/**
|
|
2732
|
+
* <p>写入超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:60000</p>
|
|
2733
|
+
*/
|
|
2734
|
+
WriteTimeout?: number;
|
|
2735
|
+
/**
|
|
2736
|
+
* <p>读取超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:60000</p>
|
|
2737
|
+
*/
|
|
2738
|
+
ReadTimeout?: number;
|
|
2739
|
+
/**
|
|
2740
|
+
* <p>重试次数</p><p>取值范围:[0, 5]</p><p>单位:次</p><p>默认值:0</p>
|
|
2741
|
+
*/
|
|
2742
|
+
Retries?: number;
|
|
2743
|
+
/**
|
|
2744
|
+
* <p>路径拼接模式</p><p>枚举值:</p><ul><li>FixedPath: 固定路径</li><li>AutoConcat: 自动拼接</li></ul>
|
|
2745
|
+
*/
|
|
2746
|
+
UpstreamUrlMode?: string;
|
|
2747
|
+
/**
|
|
2748
|
+
* <p>SNI</p>
|
|
2749
|
+
*/
|
|
2750
|
+
SNI?: string;
|
|
2751
|
+
/**
|
|
2752
|
+
* <p>模型服务级别的配额上限(RPM/TPM)。需要网关版本 ≥ 3.9.4。</p>
|
|
2753
|
+
*/
|
|
2754
|
+
QuotaLimit?: AIGWLLMQuotaLimit;
|
|
2755
|
+
/**
|
|
2756
|
+
* <p>标签</p>
|
|
2757
|
+
*/
|
|
2758
|
+
Tags?: Array<string>;
|
|
2759
|
+
}
|
|
2760
|
+
/**
|
|
2761
|
+
* DescribeCloudNativeAPIGatewayMCPServerList返回参数结构体
|
|
2762
|
+
*/
|
|
2763
|
+
export interface DescribeCloudNativeAPIGatewayMCPServerListResponse {
|
|
2764
|
+
/**
|
|
2765
|
+
* <p>MCP Server 列表结果</p>
|
|
2766
|
+
*/
|
|
2767
|
+
Result?: AIGWMCPServerList;
|
|
2768
|
+
/**
|
|
2769
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2770
|
+
*/
|
|
2771
|
+
RequestId?: string;
|
|
2772
|
+
}
|
|
2773
|
+
/**
|
|
2774
|
+
* CreateCloudNativeAPIGatewayLLMModelAPI返回参数结构体
|
|
2775
|
+
*/
|
|
2776
|
+
export interface CreateCloudNativeAPIGatewayLLMModelAPIResponse {
|
|
2777
|
+
/**
|
|
2778
|
+
* <p>是否成功。</p>
|
|
2779
|
+
*/
|
|
2780
|
+
Result?: boolean;
|
|
2781
|
+
/**
|
|
2782
|
+
* <p>模型 API ID,全局唯一标识。</p>
|
|
2783
|
+
*/
|
|
2784
|
+
ModelAPIId?: string;
|
|
2785
|
+
/**
|
|
2786
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2787
|
+
*/
|
|
2788
|
+
RequestId?: string;
|
|
2789
|
+
}
|
|
2790
|
+
/**
|
|
2791
|
+
* MCP Server详情
|
|
2792
|
+
*/
|
|
2793
|
+
export interface AIGWMCPServer {
|
|
2794
|
+
/**
|
|
2795
|
+
* <p>MCP Server ID</p>
|
|
2796
|
+
*/
|
|
2797
|
+
ServerId: string;
|
|
2798
|
+
/**
|
|
2799
|
+
* <p>MCP Server名称</p>
|
|
2800
|
+
*/
|
|
2801
|
+
Name: string;
|
|
2802
|
+
/**
|
|
2803
|
+
* <p>MCP Server类型,取值:MCP/Rest2MCP</p>
|
|
2804
|
+
*/
|
|
2805
|
+
ServerType: string;
|
|
2806
|
+
/**
|
|
2807
|
+
* <p>协议类型,取值: StreamableHttp</p>
|
|
2808
|
+
*/
|
|
2809
|
+
Transport: string;
|
|
2810
|
+
/**
|
|
2811
|
+
* <p>服务类型:</p><ul><li>Registry </li><li>HostIP</li></ul>
|
|
2812
|
+
*/
|
|
2813
|
+
UpstreamType: string;
|
|
2814
|
+
/**
|
|
2815
|
+
* <p>展示名字</p>
|
|
2816
|
+
*/
|
|
2817
|
+
DisplayName?: string;
|
|
2818
|
+
/**
|
|
2819
|
+
* <p>MCP提供给客户端的Endpoint</p>
|
|
2820
|
+
*/
|
|
2821
|
+
MCPEndpoint?: string;
|
|
2822
|
+
/**
|
|
2823
|
+
* <p>注册中心来源信息</p>
|
|
2824
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2825
|
+
*/
|
|
2826
|
+
UpstreamInfo?: AIGWMCPUpstreamInfoDetail;
|
|
2827
|
+
/**
|
|
2828
|
+
* <p>会话配置</p>
|
|
2829
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2830
|
+
*/
|
|
2831
|
+
SessionConfig?: AIGWMCPSessionConfig;
|
|
2832
|
+
/**
|
|
2833
|
+
* <p>超时时间,单位ms</p>
|
|
2834
|
+
*/
|
|
2835
|
+
Timeout?: number;
|
|
2836
|
+
/**
|
|
2837
|
+
* <p>失败重试次数</p>
|
|
2838
|
+
*/
|
|
2839
|
+
RetryCount?: number;
|
|
2840
|
+
/**
|
|
2841
|
+
* <p>创建时间</p>
|
|
2842
|
+
*/
|
|
2843
|
+
CreateTime?: string;
|
|
2844
|
+
/**
|
|
2845
|
+
* <p>更新时间</p>
|
|
2846
|
+
*/
|
|
2847
|
+
UpdateTime?: string;
|
|
2848
|
+
/**
|
|
2849
|
+
* <p>描述</p>
|
|
2850
|
+
*/
|
|
2851
|
+
Description?: string;
|
|
2852
|
+
/**
|
|
2853
|
+
* <p>运行状态</p><p>枚举值:</p><ul><li>Online: 在线</li><li>Offline: 离线</li><li>Error: 错误</li></ul>
|
|
2854
|
+
*/
|
|
2855
|
+
Status?: string;
|
|
2856
|
+
/**
|
|
2857
|
+
* <p>是否启用健康检查</p>
|
|
2858
|
+
*/
|
|
2859
|
+
EnableHealthCheck?: boolean;
|
|
2860
|
+
/**
|
|
2861
|
+
* <p>健康检查配置</p>
|
|
2862
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2863
|
+
*/
|
|
2864
|
+
HealthCheck?: AIGWHealthCheckSetting;
|
|
2865
|
+
/**
|
|
2866
|
+
* <p>Tool分组内工具数量限制</p>
|
|
2867
|
+
*/
|
|
2868
|
+
ToolCountLimit?: number;
|
|
2869
|
+
/**
|
|
2870
|
+
* <p>Tool分组内工具命名冲突策略</p><p>枚举值:</p><ul><li>AutoPrefix: 自动前缀</li><li>Reject: 拒绝</li></ul>
|
|
2871
|
+
*/
|
|
2872
|
+
ConflictStrategy?: string;
|
|
2873
|
+
/**
|
|
2874
|
+
* <p>MCP 市场发布状态</p><p>枚举值:</p><ul><li>None: 未发布</li><li>Published: 已发布</li></ul>
|
|
2875
|
+
*/
|
|
2876
|
+
MarketStatus?: string;
|
|
2877
|
+
}
|
|
2878
|
+
/**
|
|
2879
|
+
* DescribeCloudNativeAPIGatewayMCPServerAuth请求参数结构体
|
|
2880
|
+
*/
|
|
2881
|
+
export interface DescribeCloudNativeAPIGatewayMCPServerAuthRequest {
|
|
2882
|
+
/**
|
|
2883
|
+
* <p>网关实例ID</p>
|
|
2884
|
+
*/
|
|
2885
|
+
GatewayId: string;
|
|
2886
|
+
/**
|
|
2887
|
+
* <p>MCP服务ID</p>
|
|
2888
|
+
*/
|
|
2889
|
+
ServerId: string;
|
|
2890
|
+
}
|
|
2891
|
+
/**
|
|
2892
|
+
* DeleteCloudNativeAPIGatewayLLMModelService请求参数结构体
|
|
2893
|
+
*/
|
|
2894
|
+
export interface DeleteCloudNativeAPIGatewayLLMModelServiceRequest {
|
|
2895
|
+
/**
|
|
2896
|
+
* 网关 id。
|
|
2897
|
+
*/
|
|
2898
|
+
GatewayId: string;
|
|
2899
|
+
/**
|
|
2900
|
+
* 模型服务 ID,全局唯一标识。
|
|
2901
|
+
*/
|
|
2902
|
+
ModelServiceId: string;
|
|
2903
|
+
}
|
|
2904
|
+
/**
|
|
2905
|
+
* DeleteCloudNativeAPIGatewayConsumerGroup返回参数结构体
|
|
2906
|
+
*/
|
|
2907
|
+
export interface DeleteCloudNativeAPIGatewayConsumerGroupResponse {
|
|
2908
|
+
/**
|
|
2909
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2910
|
+
*/
|
|
2911
|
+
RequestId?: string;
|
|
2912
|
+
}
|
|
2913
|
+
/**
|
|
2914
|
+
* ModifyCloudNativeAPIGatewayLLMModelAPI请求参数结构体
|
|
2915
|
+
*/
|
|
2916
|
+
export interface ModifyCloudNativeAPIGatewayLLMModelAPIRequest {
|
|
2917
|
+
/**
|
|
2918
|
+
* <p>网关 id。</p>
|
|
2919
|
+
*/
|
|
2920
|
+
GatewayId: string;
|
|
2921
|
+
/**
|
|
2922
|
+
* <p>模型 API ID,全局唯一标识。</p>
|
|
2923
|
+
*/
|
|
2924
|
+
ModelAPIId: string;
|
|
2925
|
+
/**
|
|
2926
|
+
* <p>模型 API 名称,最长 60 字符。</p>
|
|
2927
|
+
*/
|
|
2928
|
+
Name?: string;
|
|
2929
|
+
/**
|
|
2930
|
+
* <p>统一前缀路径(可选)。例如 /v1/openai。</p>
|
|
2931
|
+
*/
|
|
2932
|
+
BasePath?: string;
|
|
2933
|
+
/**
|
|
2934
|
+
* <p>模型 API 描述。最长 200 字符。</p>
|
|
2935
|
+
*/
|
|
2936
|
+
Description?: string;
|
|
2937
|
+
/**
|
|
2938
|
+
* <p>关联的模型服务 ID 列表,长度 1-10。</p>
|
|
2939
|
+
*/
|
|
2940
|
+
ListModelServiceId?: Array<string>;
|
|
2941
|
+
/**
|
|
2942
|
+
* <p>多模型服务路由策略。ListModelServiceId 多于 1 项时必填。</p>
|
|
2943
|
+
*/
|
|
2944
|
+
ModelServiceRoute?: CloudNativeAPIGatewayLLMModelServiceRoute;
|
|
2945
|
+
/**
|
|
2946
|
+
* <p>Header 路由匹配规则。当前仅支持 Operator=exact。</p>
|
|
2947
|
+
*/
|
|
2948
|
+
MatchHeaders?: Array<AIGWKVMatch>;
|
|
2949
|
+
/**
|
|
2950
|
+
* <p>是否启用跨服务 Fallback。</p>
|
|
2951
|
+
*/
|
|
2952
|
+
EnableCrossServiceFallback?: boolean;
|
|
2953
|
+
/**
|
|
2954
|
+
* <p>跨服务 Fallback 配置。EnableCrossServiceFallback=true 时必填。</p>
|
|
2955
|
+
*/
|
|
2956
|
+
CrossServiceFallbackConfig?: AIGWCrossServiceFallbackConfig;
|
|
2957
|
+
/**
|
|
2958
|
+
* <p>标签过滤策略。需要网关版本 ≥ 3.9.4。</p>
|
|
2959
|
+
*/
|
|
2960
|
+
TagFilter?: AIGWTagFilter;
|
|
2961
|
+
/**
|
|
2962
|
+
* <p>日志输出配置。需要网关版本 ≥ 3.9.4。</p>
|
|
2963
|
+
*/
|
|
2964
|
+
LogConfig?: AIGWLogConfig;
|
|
2965
|
+
}
|
|
2966
|
+
/**
|
|
2967
|
+
* CreateCloudNativeAPIGatewaySecretKey返回参数结构体
|
|
2968
|
+
*/
|
|
2969
|
+
export interface CreateCloudNativeAPIGatewaySecretKeyResponse {
|
|
2970
|
+
/**
|
|
2971
|
+
* <p>创建结果。包含成功标识与新建资源 ID。</p>
|
|
2972
|
+
*/
|
|
2973
|
+
Result?: CNAPIGwCreateCommonResult;
|
|
2974
|
+
/**
|
|
2975
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2976
|
+
*/
|
|
2977
|
+
RequestId?: string;
|
|
2978
|
+
}
|
|
2979
|
+
/**
|
|
2980
|
+
* DescribeCloudNativeAPIGatewayLLMTokenUsageList返回参数结构体
|
|
2981
|
+
*/
|
|
2982
|
+
export interface DescribeCloudNativeAPIGatewayLLMTokenUsageListResponse {
|
|
2983
|
+
/**
|
|
2984
|
+
* <p>查询Token用量明细结果</p>
|
|
2985
|
+
*/
|
|
2986
|
+
Result?: AIGWLLMTokenUsageListResult;
|
|
2987
|
+
/**
|
|
2988
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2989
|
+
*/
|
|
2990
|
+
RequestId?: string;
|
|
2991
|
+
}
|