tencentcloud-sdk-nodejs 4.0.740 → 4.0.742
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/CHANGELOG.md +220 -0
- package/SERVICE_CHANGELOG.md +240 -240
- package/package.json +1 -1
- package/products.md +15 -14
- package/src/common/sdk_version.ts +1 -1
- package/src/services/ams/index.ts +2 -2
- package/src/services/billing/v20180709/billing_models.ts +4 -0
- package/src/services/bma/index.ts +2 -2
- package/src/services/btoe/index.ts +2 -2
- package/src/services/cvm/v20170312/cvm_client.ts +1 -0
- package/src/services/cvm/v20170312/cvm_models.ts +6 -2
- package/src/services/dbbrain/index.ts +2 -2
- package/src/services/dts/index.ts +2 -2
- package/src/services/es/v20180416/es_models.ts +41 -9
- package/src/services/ess/v20201111/ess_models.ts +20 -4
- package/src/services/essbasic/index.ts +2 -2
- package/src/services/essbasic/v20210526/essbasic_models.ts +20 -4
- package/src/services/hunyuan/index.ts +5 -0
- package/src/services/hunyuan/v20230901/hunyuan_client.ts +72 -0
- package/src/services/hunyuan/v20230901/hunyuan_models.ts +255 -0
- package/src/services/hunyuan/v20230901/index.ts +6 -0
- package/src/services/index.ts +1 -0
- package/src/services/iotcloud/index.ts +2 -2
- package/src/services/iotvideo/index.ts +2 -2
- package/src/services/mongodb/index.ts +2 -2
- package/src/services/organization/index.ts +2 -2
- package/src/services/tbaas/v20180416/tbaas_models.ts +12 -2
- package/src/services/tbp/index.ts +2 -2
- package/src/services/tcr/v20190924/tcr_client.ts +16 -8
- package/src/services/tdmq/v20200217/tdmq_models.ts +1 -1
- package/src/services/tem/index.ts +2 -2
- package/src/services/teo/index.ts +2 -2
- package/src/services/teo/v20220901/teo_models.ts +4 -5
- package/src/services/thpc/index.ts +2 -2
- package/src/services/tione/index.ts +2 -2
- package/src/services/tse/v20201207/tse_client.ts +42 -2
- package/src/services/tse/v20201207/tse_models.ts +205 -10
- package/src/services/vm/index.ts +2 -2
- package/src/services/wedata/v20210820/wedata_client.ts +21 -7
- package/src/services/wedata/v20210820/wedata_models.ts +115 -6
- package/src/services/yunsou/index.ts +2 -2
- 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/billing/v20180709/billing_models.d.ts +4 -0
- package/tencentcloud/services/bma/index.d.ts +4 -4
- package/tencentcloud/services/bma/index.js +2 -2
- package/tencentcloud/services/btoe/index.d.ts +4 -4
- package/tencentcloud/services/btoe/index.js +2 -2
- package/tencentcloud/services/cvm/v20170312/cvm_client.d.ts +1 -0
- package/tencentcloud/services/cvm/v20170312/cvm_client.js +1 -0
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +6 -2
- package/tencentcloud/services/dbbrain/index.d.ts +4 -4
- package/tencentcloud/services/dbbrain/index.js +2 -2
- package/tencentcloud/services/dts/index.d.ts +4 -4
- package/tencentcloud/services/dts/index.js +2 -2
- package/tencentcloud/services/es/v20180416/es_models.d.ts +41 -9
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +20 -4
- package/tencentcloud/services/essbasic/index.d.ts +4 -4
- package/tencentcloud/services/essbasic/index.js +2 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +20 -4
- package/tencentcloud/services/hunyuan/index.d.ts +6 -0
- package/tencentcloud/services/hunyuan/index.js +7 -0
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_client.d.ts +22 -0
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_client.js +49 -0
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_models.d.ts +228 -0
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_models.js +18 -0
- package/tencentcloud/services/hunyuan/v20230901/index.d.ts +6 -0
- package/tencentcloud/services/hunyuan/v20230901/index.js +9 -0
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- 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/mongodb/index.d.ts +4 -4
- package/tencentcloud/services/mongodb/index.js +2 -2
- package/tencentcloud/services/organization/index.d.ts +4 -4
- package/tencentcloud/services/organization/index.js +2 -2
- package/tencentcloud/services/tbaas/v20180416/tbaas_models.d.ts +12 -2
- package/tencentcloud/services/tbp/index.d.ts +4 -4
- package/tencentcloud/services/tbp/index.js +2 -2
- package/tencentcloud/services/tcr/v20190924/tcr_client.d.ts +12 -4
- package/tencentcloud/services/tcr/v20190924/tcr_client.js +12 -4
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +1 -1
- package/tencentcloud/services/tem/index.d.ts +4 -4
- package/tencentcloud/services/tem/index.js +2 -2
- package/tencentcloud/services/teo/index.d.ts +4 -4
- package/tencentcloud/services/teo/index.js +2 -2
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +4 -5
- 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/tse/v20201207/tse_client.d.ts +13 -1
- package/tencentcloud/services/tse/v20201207/tse_client.js +18 -0
- package/tencentcloud/services/tse/v20201207/tse_models.d.ts +195 -10
- package/tencentcloud/services/vm/index.d.ts +4 -4
- package/tencentcloud/services/vm/index.js +2 -2
- package/tencentcloud/services/wedata/v20210820/wedata_client.d.ts +7 -3
- package/tencentcloud/services/wedata/v20210820/wedata_client.js +9 -3
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +111 -6
- package/tencentcloud/services/yunsou/index.d.ts +4 -4
- package/tencentcloud/services/yunsou/index.js +2 -2
- package/test/hunyuan.v20230901.test.js +51 -0
- package/test/tse.v20201207.test.js +30 -0
- package/test/wedata.v20210820.test.js +12 -2
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* GetTokenCount返回参数结构体
|
|
20
|
+
*/
|
|
21
|
+
export interface GetTokenCountResponse {
|
|
22
|
+
/**
|
|
23
|
+
* token计数
|
|
24
|
+
*/
|
|
25
|
+
TokenCount?: number
|
|
26
|
+
/**
|
|
27
|
+
* 字符计数
|
|
28
|
+
*/
|
|
29
|
+
CharacterCount?: number
|
|
30
|
+
/**
|
|
31
|
+
* 切分后的列表
|
|
32
|
+
*/
|
|
33
|
+
Tokens?: Array<string>
|
|
34
|
+
/**
|
|
35
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
36
|
+
*/
|
|
37
|
+
RequestId?: string
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 运行时异常信息。
|
|
42
|
+
*/
|
|
43
|
+
export interface ErrorMsg {
|
|
44
|
+
/**
|
|
45
|
+
* 错误提示信息。
|
|
46
|
+
*/
|
|
47
|
+
Msg?: string
|
|
48
|
+
/**
|
|
49
|
+
* 错误码。
|
|
50
|
+
4000 服务内部异常。
|
|
51
|
+
4001 请求模型超时。
|
|
52
|
+
|
|
53
|
+
*/
|
|
54
|
+
Code?: number
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* ChatStd返回参数结构体
|
|
59
|
+
*/
|
|
60
|
+
export interface ChatStdResponse {
|
|
61
|
+
/**
|
|
62
|
+
* unix 时间戳,单位为秒。
|
|
63
|
+
*/
|
|
64
|
+
Created?: number
|
|
65
|
+
/**
|
|
66
|
+
* token统计信息。
|
|
67
|
+
按照总token数量计费。
|
|
68
|
+
*/
|
|
69
|
+
Usage?: Usage
|
|
70
|
+
/**
|
|
71
|
+
* 免责声明。
|
|
72
|
+
*/
|
|
73
|
+
Note?: string
|
|
74
|
+
/**
|
|
75
|
+
* 本轮对话的id。
|
|
76
|
+
*/
|
|
77
|
+
Id?: string
|
|
78
|
+
/**
|
|
79
|
+
* 回复内容。
|
|
80
|
+
*/
|
|
81
|
+
Choices?: Array<Choice>
|
|
82
|
+
/**
|
|
83
|
+
* 错误信息。
|
|
84
|
+
如果流式返回中服务处理异常,返回该错误信息。
|
|
85
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
86
|
+
*/
|
|
87
|
+
ErrorMsg?: ErrorMsg
|
|
88
|
+
/**
|
|
89
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
|
90
|
+
*/
|
|
91
|
+
RequestId?: string
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* ChatPro返回参数结构体
|
|
96
|
+
*/
|
|
97
|
+
export interface ChatProResponse {
|
|
98
|
+
/**
|
|
99
|
+
* unix 时间戳,单位为秒。
|
|
100
|
+
*/
|
|
101
|
+
Created?: number
|
|
102
|
+
/**
|
|
103
|
+
* token统计信息。
|
|
104
|
+
按照总token数量计费。
|
|
105
|
+
*/
|
|
106
|
+
Usage?: Usage
|
|
107
|
+
/**
|
|
108
|
+
* 免责声明。
|
|
109
|
+
*/
|
|
110
|
+
Note?: string
|
|
111
|
+
/**
|
|
112
|
+
* 本轮对话的id。
|
|
113
|
+
*/
|
|
114
|
+
Id?: string
|
|
115
|
+
/**
|
|
116
|
+
* 回复内容。
|
|
117
|
+
*/
|
|
118
|
+
Choices?: Array<Choice>
|
|
119
|
+
/**
|
|
120
|
+
* 错误信息。
|
|
121
|
+
如果流式返回中服务处理异常,返回该错误信息。
|
|
122
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
123
|
+
*/
|
|
124
|
+
ErrorMsg?: ErrorMsg
|
|
125
|
+
/**
|
|
126
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
|
127
|
+
*/
|
|
128
|
+
RequestId?: string
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* 返回的回复, 支持多个
|
|
133
|
+
*/
|
|
134
|
+
export interface Choice {
|
|
135
|
+
/**
|
|
136
|
+
* 流式结束标志位,为 stop 则表示尾包。
|
|
137
|
+
*/
|
|
138
|
+
FinishReason?: string
|
|
139
|
+
/**
|
|
140
|
+
* 返回值。
|
|
141
|
+
*/
|
|
142
|
+
Delta?: Delta
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* ChatPro请求参数结构体
|
|
147
|
+
*/
|
|
148
|
+
export interface ChatProRequest {
|
|
149
|
+
/**
|
|
150
|
+
* 聊天上下文信息。
|
|
151
|
+
说明:
|
|
152
|
+
1.长度最多为40, 按对话时间从旧到新在数组中排列。
|
|
153
|
+
2.Message的Role当前可选值:user、assistant,其中,user和assistant需要交替出现(一问一答),最后一个为user提问, 且Content不能为空。
|
|
154
|
+
3.Messages中Content总长度不超过16000token,超过则会截断最前面的内容,只保留尾部内容。建议不超过4000token。
|
|
155
|
+
*/
|
|
156
|
+
Messages: Array<Message>
|
|
157
|
+
/**
|
|
158
|
+
* 说明:
|
|
159
|
+
1.影响输出文本的多样性,取值越大,生成文本的多样性越强。
|
|
160
|
+
2.默认1.0,取值区间为[0.0, 1.0]。
|
|
161
|
+
3.非必要不建议使用, 不合理的取值会影响效果。
|
|
162
|
+
*/
|
|
163
|
+
TopP?: number
|
|
164
|
+
/**
|
|
165
|
+
* 说明:
|
|
166
|
+
1.较高的数值会使输出更加随机,而较低的数值会使其更加集中和确定。
|
|
167
|
+
2.默认1.0,取值区间为[0.0,2.0]。
|
|
168
|
+
3.非必要不建议使用,不合理的取值会影响效果。
|
|
169
|
+
*/
|
|
170
|
+
Temperature?: number
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* 返回的内容(流式返回)
|
|
175
|
+
*/
|
|
176
|
+
export interface Delta {
|
|
177
|
+
/**
|
|
178
|
+
* 角色名称。
|
|
179
|
+
*/
|
|
180
|
+
Role?: string
|
|
181
|
+
/**
|
|
182
|
+
* 内容详情。
|
|
183
|
+
*/
|
|
184
|
+
Content?: string
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* token 数量
|
|
189
|
+
*/
|
|
190
|
+
export interface Usage {
|
|
191
|
+
/**
|
|
192
|
+
* 输入 token 数量。
|
|
193
|
+
*/
|
|
194
|
+
PromptTokens?: number
|
|
195
|
+
/**
|
|
196
|
+
* 输出 token 数量。
|
|
197
|
+
*/
|
|
198
|
+
CompletionTokens?: number
|
|
199
|
+
/**
|
|
200
|
+
* 总 token 数量。
|
|
201
|
+
*/
|
|
202
|
+
TotalTokens?: number
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* 会话内容, 按对话时间序排列,长度最多为40
|
|
207
|
+
*/
|
|
208
|
+
export interface Message {
|
|
209
|
+
/**
|
|
210
|
+
* 角色
|
|
211
|
+
*/
|
|
212
|
+
Role: string
|
|
213
|
+
/**
|
|
214
|
+
* 消息的内容
|
|
215
|
+
*/
|
|
216
|
+
Content: string
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* GetTokenCount请求参数结构体
|
|
221
|
+
*/
|
|
222
|
+
export interface GetTokenCountRequest {
|
|
223
|
+
/**
|
|
224
|
+
* 输入文本
|
|
225
|
+
*/
|
|
226
|
+
Prompt: string
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* ChatStd请求参数结构体
|
|
231
|
+
*/
|
|
232
|
+
export interface ChatStdRequest {
|
|
233
|
+
/**
|
|
234
|
+
* 聊天上下文信息。
|
|
235
|
+
说明:
|
|
236
|
+
1.长度最多为40, 按对话时间从旧到新在数组中排列。
|
|
237
|
+
2.Message的Role当前可选值:user、assistant,其中,user和assistant需要交替出现(一问一答),最后一个为user提问, 且Content不能为空。
|
|
238
|
+
3.Messages中Content总长度不超过16000token,超过则会截断最前面的内容,只保留尾部内容。建议不超过4000token。
|
|
239
|
+
*/
|
|
240
|
+
Messages: Array<Message>
|
|
241
|
+
/**
|
|
242
|
+
* 说明:
|
|
243
|
+
1.影响输出文本的多样性,取值越大,生成文本的多样性越强。
|
|
244
|
+
2.默认1.0,取值区间为[0.0, 1.0]。
|
|
245
|
+
3.非必要不建议使用, 不合理的取值会影响效果。
|
|
246
|
+
*/
|
|
247
|
+
TopP?: number
|
|
248
|
+
/**
|
|
249
|
+
* 说明:
|
|
250
|
+
1.较高的数值会使输出更加随机,而较低的数值会使其更加集中和确定。
|
|
251
|
+
2.默认1.0,取值区间为[0.0,2.0]。
|
|
252
|
+
3.非必要不建议使用,不合理的取值会影响效果。
|
|
253
|
+
*/
|
|
254
|
+
Temperature?: number
|
|
255
|
+
}
|
package/src/services/index.ts
CHANGED
|
@@ -109,6 +109,7 @@ export { habo } from "./habo"
|
|
|
109
109
|
export { hai } from "./hai"
|
|
110
110
|
export { hasim } from "./hasim"
|
|
111
111
|
export { hcm } from "./hcm"
|
|
112
|
+
export { hunyuan } from "./hunyuan"
|
|
112
113
|
export { iai } from "./iai"
|
|
113
114
|
export { ic } from "./ic"
|
|
114
115
|
export { icr } from "./icr"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { v20201215 } from "./v20201215"
|
|
1
2
|
import { v20191126 } from "./v20191126"
|
|
2
3
|
import { v20211125 } from "./v20211125"
|
|
3
|
-
import { v20201215 } from "./v20201215"
|
|
4
4
|
|
|
5
5
|
export const iotvideo = {
|
|
6
|
+
v20201215: v20201215,
|
|
6
7
|
v20191126: v20191126,
|
|
7
8
|
v20211125: v20211125,
|
|
8
|
-
v20201215: v20201215,
|
|
9
9
|
}
|
|
@@ -386,8 +386,13 @@ export interface DownloadUserCertResponse {
|
|
|
386
386
|
CertName?: string
|
|
387
387
|
/**
|
|
388
388
|
* 证书内容
|
|
389
|
+
* @deprecated
|
|
389
390
|
*/
|
|
390
391
|
CertCtx?: string
|
|
392
|
+
/**
|
|
393
|
+
* 证书内容
|
|
394
|
+
*/
|
|
395
|
+
Cert?: string
|
|
391
396
|
/**
|
|
392
397
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
393
398
|
*/
|
|
@@ -446,12 +451,17 @@ export interface GetLatesdTransactionListRequest {
|
|
|
446
451
|
export interface InvokeResponse {
|
|
447
452
|
/**
|
|
448
453
|
* 交易ID
|
|
454
|
+
* @deprecated
|
|
449
455
|
*/
|
|
450
|
-
Txid
|
|
456
|
+
Txid?: string
|
|
451
457
|
/**
|
|
452
458
|
* 交易执行结果
|
|
453
459
|
*/
|
|
454
|
-
Events
|
|
460
|
+
Events?: string
|
|
461
|
+
/**
|
|
462
|
+
* 交易ID
|
|
463
|
+
*/
|
|
464
|
+
TxId?: string
|
|
455
465
|
/**
|
|
456
466
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
457
467
|
*/
|
|
@@ -512,8 +512,10 @@ export class Client extends AbstractClient {
|
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
/**
|
|
515
|
-
|
|
516
|
-
|
|
515
|
+
* 接口未使用
|
|
516
|
+
|
|
517
|
+
更新自定义账户
|
|
518
|
+
*/
|
|
517
519
|
async ModifyCustomAccount(
|
|
518
520
|
req: ModifyCustomAccountRequest,
|
|
519
521
|
cb?: (error: string, rep: ModifyCustomAccountResponse) => void
|
|
@@ -792,8 +794,10 @@ export class Client extends AbstractClient {
|
|
|
792
794
|
}
|
|
793
795
|
|
|
794
796
|
/**
|
|
795
|
-
|
|
796
|
-
|
|
797
|
+
* 接口未使用
|
|
798
|
+
|
|
799
|
+
删除自定义账号
|
|
800
|
+
*/
|
|
797
801
|
async DeleteCustomAccount(
|
|
798
802
|
req: DeleteCustomAccountRequest,
|
|
799
803
|
cb?: (error: string, rep: DeleteCustomAccountResponse) => void
|
|
@@ -912,8 +916,10 @@ export class Client extends AbstractClient {
|
|
|
912
916
|
}
|
|
913
917
|
|
|
914
918
|
/**
|
|
915
|
-
|
|
916
|
-
|
|
919
|
+
* 接口未使用
|
|
920
|
+
|
|
921
|
+
查询自定义账号
|
|
922
|
+
*/
|
|
917
923
|
async DescribeCustomAccounts(
|
|
918
924
|
req: DescribeCustomAccountsRequest,
|
|
919
925
|
cb?: (error: string, rep: DescribeCustomAccountsResponse) => void
|
|
@@ -1002,8 +1008,10 @@ export class Client extends AbstractClient {
|
|
|
1002
1008
|
}
|
|
1003
1009
|
|
|
1004
1010
|
/**
|
|
1005
|
-
|
|
1006
|
-
|
|
1011
|
+
* 接口未使用
|
|
1012
|
+
|
|
1013
|
+
创建自定义账户
|
|
1014
|
+
*/
|
|
1007
1015
|
async CreateCustomAccount(
|
|
1008
1016
|
req: CreateCustomAccountRequest,
|
|
1009
1017
|
cb?: (error: string, rep: CreateCustomAccountResponse) => void
|
|
@@ -2625,7 +2625,7 @@ export interface DescribeRocketMQClusterResponse {
|
|
|
2625
2625
|
*/
|
|
2626
2626
|
ClusterConfig?: RocketMQClusterConfig
|
|
2627
2627
|
/**
|
|
2628
|
-
*
|
|
2628
|
+
* 集群最近使用量,即将废弃,请使用腾讯云可观测平台获取相关数据。
|
|
2629
2629
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2630
2630
|
*/
|
|
2631
2631
|
ClusterStats?: RocketMQClusterRecentStats
|
|
@@ -1382,11 +1382,11 @@ export interface DescribeRulesResponse {
|
|
|
1382
1382
|
/**
|
|
1383
1383
|
* 站点 ID。
|
|
1384
1384
|
*/
|
|
1385
|
-
ZoneId
|
|
1385
|
+
ZoneId?: string
|
|
1386
1386
|
/**
|
|
1387
1387
|
* 规则列表,按规则执行顺序从先往后排序。
|
|
1388
1388
|
*/
|
|
1389
|
-
RuleItems
|
|
1389
|
+
RuleItems?: Array<RuleItem>
|
|
1390
1390
|
/**
|
|
1391
1391
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1392
1392
|
*/
|
|
@@ -1917,8 +1917,7 @@ export interface ModifyApplicationProxyRequest {
|
|
|
1917
1917
|
SessionPersistTime?: number
|
|
1918
1918
|
/**
|
|
1919
1919
|
* 四层代理模式,取值有:
|
|
1920
|
-
<li>
|
|
1921
|
-
<li>instance:表示实例模式。</li>不填写保持原有配置。
|
|
1920
|
+
<li>instance:表示实例模式。</li>不填写使用默认值instance。
|
|
1922
1921
|
*/
|
|
1923
1922
|
ProxyType?: string
|
|
1924
1923
|
/**
|
|
@@ -6567,7 +6566,7 @@ export interface StandardDebug {
|
|
|
6567
6566
|
*/
|
|
6568
6567
|
Switch: string
|
|
6569
6568
|
/**
|
|
6570
|
-
* 允许的客户端来源。支持填写
|
|
6569
|
+
* 允许的客户端来源。支持填写 IPv4 以及 IPv6 的 IP/IP 段。0.0.0.0/0 表示允许所有 IPv4 客户端进行调试,::/0 表示允许所有 IPv6 客户端进行调试。
|
|
6571
6570
|
*/
|
|
6572
6571
|
AllowClientIPList: Array<string>
|
|
6573
6572
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { v20211109 } from "./v20211109"
|
|
2
|
-
import { v20230321 } from "./v20230321"
|
|
3
2
|
import { v20220401 } from "./v20220401"
|
|
3
|
+
import { v20230321 } from "./v20230321"
|
|
4
4
|
|
|
5
5
|
export const thpc = {
|
|
6
6
|
v20211109: v20211109,
|
|
7
|
-
v20230321: v20230321,
|
|
8
7
|
v20220401: v20220401,
|
|
8
|
+
v20230321: v20230321,
|
|
9
9
|
}
|
|
@@ -23,7 +23,8 @@ import {
|
|
|
23
23
|
CreateCloudNativeAPIGatewayServiceResponse,
|
|
24
24
|
DeleteCloudNativeAPIGatewayRouteRateLimitResponse,
|
|
25
25
|
ApolloEnvParam,
|
|
26
|
-
|
|
26
|
+
DeleteWafDomainsRequest,
|
|
27
|
+
ServiceWafStatus,
|
|
27
28
|
DescribeCloudNativeAPIGatewayServiceRateLimitRequest,
|
|
28
29
|
CreateCloudNativeAPIGatewayRequest,
|
|
29
30
|
CloudNativeAPIGatewayStrategyCronScalerConfig,
|
|
@@ -41,6 +42,7 @@ import {
|
|
|
41
42
|
DescribeCloudNativeAPIGatewayCertificatesRequest,
|
|
42
43
|
DeleteCloudNativeAPIGatewayResult,
|
|
43
44
|
QpsThreshold,
|
|
45
|
+
ModifyCloudNativeAPIGatewayResponse,
|
|
44
46
|
CloseWafProtectionRequest,
|
|
45
47
|
ModifyCloudNativeAPIGatewayServiceResponse,
|
|
46
48
|
DescribeCloudNativeAPIGatewayNodesResponse,
|
|
@@ -76,9 +78,11 @@ import {
|
|
|
76
78
|
KVPair,
|
|
77
79
|
DeleteEngineResponse,
|
|
78
80
|
DescribeCloudNativeAPIGatewayRoutesResponse,
|
|
81
|
+
DescribeWafProtectionResponse,
|
|
79
82
|
DescribeZookeeperReplicasRequest,
|
|
80
83
|
UpdateUpstreamTargetsRequest,
|
|
81
84
|
DeleteCloudNativeAPIGatewayServiceResponse,
|
|
85
|
+
DescribeWafDomainsResult,
|
|
82
86
|
InstancePort,
|
|
83
87
|
DescribeCloudNativeAPIGatewayResult,
|
|
84
88
|
PolarisCLSTopicInfo,
|
|
@@ -128,6 +132,7 @@ import {
|
|
|
128
132
|
AutoScalerBehavior,
|
|
129
133
|
ListFilter,
|
|
130
134
|
DeleteEngineRequest,
|
|
135
|
+
DescribeWafDomainsResponse,
|
|
131
136
|
ZookeeperReplica,
|
|
132
137
|
ModifyCloudNativeAPIGatewayServiceRateLimitRequest,
|
|
133
138
|
DescribeSREInstanceAccessAddressRequest,
|
|
@@ -137,6 +142,7 @@ import {
|
|
|
137
142
|
NativeGatewayServerGroup,
|
|
138
143
|
DeleteCloudNativeAPIGatewayServiceRateLimitResponse,
|
|
139
144
|
CloseWafProtectionResponse,
|
|
145
|
+
UpdateUpstreamHealthCheckConfigRequest,
|
|
140
146
|
CloudNativeAPIGatewayStrategyAutoScalerConfigMetric,
|
|
141
147
|
CloudNativeAPIGatewayNode,
|
|
142
148
|
UpdateCloudNativeAPIGatewaySpecResponse,
|
|
@@ -156,7 +162,8 @@ import {
|
|
|
156
162
|
DeleteCloudNativeAPIGatewayResponse,
|
|
157
163
|
KongServices,
|
|
158
164
|
CreateCloudNativeAPIGatewayCertificateRequest,
|
|
159
|
-
|
|
165
|
+
DescribeWafDomainsRequest,
|
|
166
|
+
DescribeWafProtectionRequest,
|
|
160
167
|
ModifyUpstreamNodeStatusResponse,
|
|
161
168
|
NetworkAccessControl,
|
|
162
169
|
DescribeZookeeperServerInterfacesRequest,
|
|
@@ -164,6 +171,7 @@ import {
|
|
|
164
171
|
UpdateCloudNativeAPIGatewayResult,
|
|
165
172
|
DescribeCloudNativeAPIGatewayRequest,
|
|
166
173
|
DescribeNativeGatewayServerGroupsResponse,
|
|
174
|
+
RouteWafStatus,
|
|
167
175
|
CloudNativeAPIGatewayStrategyCronScalerConfigParam,
|
|
168
176
|
OpenWafProtectionRequest,
|
|
169
177
|
DeleteCloudNativeAPIGatewayRouteRequest,
|
|
@@ -196,6 +204,7 @@ import {
|
|
|
196
204
|
ModifyCloudNativeAPIGatewayCanaryRuleRequest,
|
|
197
205
|
VpcInfo,
|
|
198
206
|
KongServiceRouteList,
|
|
207
|
+
DeleteWafDomainsResponse,
|
|
199
208
|
CreateCloudNativeAPIGatewayResult,
|
|
200
209
|
ModifyCloudNativeAPIGatewayRequest,
|
|
201
210
|
KongServicePreview,
|
|
@@ -207,6 +216,7 @@ import {
|
|
|
207
216
|
ModifyNativeGatewayServerGroupResponse,
|
|
208
217
|
EngineRegionInfo,
|
|
209
218
|
UpdateCloudNativeAPIGatewayCertificateInfoResponse,
|
|
219
|
+
DescribeWafProtectionResult,
|
|
210
220
|
KongServiceDetail,
|
|
211
221
|
} from "./tse_models"
|
|
212
222
|
|
|
@@ -349,6 +359,16 @@ export class Client extends AbstractClient {
|
|
|
349
359
|
return this.request("ModifyCloudNativeAPIGatewayCanaryRule", req, cb)
|
|
350
360
|
}
|
|
351
361
|
|
|
362
|
+
/**
|
|
363
|
+
* 删除 WAF 防护域名
|
|
364
|
+
*/
|
|
365
|
+
async DeleteWafDomains(
|
|
366
|
+
req: DeleteWafDomainsRequest,
|
|
367
|
+
cb?: (error: string, rep: DeleteWafDomainsResponse) => void
|
|
368
|
+
): Promise<DeleteWafDomainsResponse> {
|
|
369
|
+
return this.request("DeleteWafDomains", req, cb)
|
|
370
|
+
}
|
|
371
|
+
|
|
352
372
|
/**
|
|
353
373
|
* 删除云原生网关服务
|
|
354
374
|
*/
|
|
@@ -539,6 +559,16 @@ export class Client extends AbstractClient {
|
|
|
539
559
|
return this.request("DescribeCloudNativeAPIGatewayRouteRateLimit", req, cb)
|
|
540
560
|
}
|
|
541
561
|
|
|
562
|
+
/**
|
|
563
|
+
* 获取 WAF 防护状态
|
|
564
|
+
*/
|
|
565
|
+
async DescribeWafProtection(
|
|
566
|
+
req: DescribeWafProtectionRequest,
|
|
567
|
+
cb?: (error: string, rep: DescribeWafProtectionResponse) => void
|
|
568
|
+
): Promise<DescribeWafProtectionResponse> {
|
|
569
|
+
return this.request("DescribeWafProtection", req, cb)
|
|
570
|
+
}
|
|
571
|
+
|
|
542
572
|
/**
|
|
543
573
|
* 获取云原生API网关实例网络配置信息
|
|
544
574
|
*/
|
|
@@ -579,6 +609,16 @@ export class Client extends AbstractClient {
|
|
|
579
609
|
return this.request("CreateCloudNativeAPIGatewayCanaryRule", req, cb)
|
|
580
610
|
}
|
|
581
611
|
|
|
612
|
+
/**
|
|
613
|
+
* 获取 WAF 防护域名
|
|
614
|
+
*/
|
|
615
|
+
async DescribeWafDomains(
|
|
616
|
+
req: DescribeWafDomainsRequest,
|
|
617
|
+
cb?: (error: string, rep: DescribeWafDomainsResponse) => void
|
|
618
|
+
): Promise<DescribeWafDomainsResponse> {
|
|
619
|
+
return this.request("DescribeWafDomains", req, cb)
|
|
620
|
+
}
|
|
621
|
+
|
|
582
622
|
/**
|
|
583
623
|
* 查询云原生网关单个证书详情
|
|
584
624
|
*/
|