tencentcloud-sdk-nodejs 4.0.628 → 4.0.629
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 +254 -0
- package/SERVICE_CHANGELOG.md +342 -126
- package/package.json +1 -1
- package/products.md +16 -16
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_models.ts +35 -26
- package/src/services/apigateway/v20180808/apigateway_models.ts +17 -13
- package/src/services/asr/v20190614/asr_client.ts +1 -1
- package/src/services/asr/v20190614/asr_models.ts +2 -2
- package/src/services/cdb/v20170320/cdb_models.ts +2 -2
- package/src/services/ckafka/v20190819/ckafka_models.ts +11 -7
- package/src/services/cls/v20201016/cls_client.ts +1 -1
- package/src/services/live/v20180801/live_models.ts +4 -4
- package/src/services/nlp/v20190408/nlp_client.ts +54 -5
- package/src/services/nlp/v20190408/nlp_models.ts +206 -32
- package/src/services/tbaas/v20180416/tbaas_client.ts +32 -16
- package/src/services/tdid/v20210519/tdid_client.ts +47 -50
- package/src/services/tdid/v20210519/tdid_models.ts +0 -121
- package/src/services/tts/v20190823/tts_models.ts +3 -3
- package/src/services/waf/v20180125/waf_client.ts +13 -0
- package/src/services/waf/v20180125/waf_models.ts +170 -0
- package/src/services/wedata/v20210820/wedata_models.ts +76 -5
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +35 -26
- package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +17 -13
- package/tencentcloud/services/asr/v20190614/asr_client.d.ts +1 -1
- package/tencentcloud/services/asr/v20190614/asr_client.js +1 -1
- package/tencentcloud/services/asr/v20190614/asr_models.d.ts +2 -2
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +2 -2
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +11 -7
- package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
- package/tencentcloud/services/cls/v20201016/cls_client.js +1 -1
- package/tencentcloud/services/live/v20180801/live_models.d.ts +4 -4
- package/tencentcloud/services/nlp/v20190408/nlp_client.d.ts +17 -1
- package/tencentcloud/services/nlp/v20190408/nlp_client.js +24 -0
- package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +197 -32
- package/tencentcloud/services/tbaas/v20180416/tbaas_client.d.ts +24 -8
- package/tencentcloud/services/tbaas/v20180416/tbaas_client.js +24 -8
- package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +38 -24
- package/tencentcloud/services/tdid/v20210519/tdid_client.js +37 -27
- package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +0 -116
- package/tencentcloud/services/tts/v20190823/tts_models.d.ts +3 -3
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +5 -1
- package/tencentcloud/services/waf/v20180125/waf_client.js +6 -0
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +167 -0
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +76 -5
- package/test/nlp.v20190408.test.js +40 -0
- package/test/tdid.v20210519.test.js +0 -20
- package/test/waf.v20180125.test.js +10 -0
|
@@ -30,13 +30,10 @@ import {
|
|
|
30
30
|
GetAuthorityIssuerRequest,
|
|
31
31
|
VerifyFunctionArg,
|
|
32
32
|
GetConsortiumListRequest,
|
|
33
|
-
GetDidClusterListResponse,
|
|
34
33
|
CreateCredentialRequest,
|
|
35
|
-
GetDidClusterDetailResponse,
|
|
36
34
|
GetDidDocumentRequest,
|
|
37
35
|
GetConsortiumListResponse,
|
|
38
36
|
ConsortiumItem,
|
|
39
|
-
GetDidClusterListRequest,
|
|
40
37
|
GetCredentialStatusRequest,
|
|
41
38
|
GetAgencyTDidResponse,
|
|
42
39
|
AddLabelResponse,
|
|
@@ -55,7 +52,6 @@ import {
|
|
|
55
52
|
CreateTDidByPublicKeyResponse,
|
|
56
53
|
GetCredentialCptRankRequest,
|
|
57
54
|
RegisterCptRequest,
|
|
58
|
-
GetDidClusterDetailRequest,
|
|
59
55
|
Proof,
|
|
60
56
|
VerifyCredentialRequest,
|
|
61
57
|
GetConsortiumClusterListRequest,
|
|
@@ -63,7 +59,6 @@ import {
|
|
|
63
59
|
CreateTDidByPrivateKeyRequest,
|
|
64
60
|
BcosClusterItem,
|
|
65
61
|
SetCredentialStatusRequest,
|
|
66
|
-
DidCluster,
|
|
67
62
|
GetCptInfoRequest,
|
|
68
63
|
Identity,
|
|
69
64
|
GetCredentialStatusResponse,
|
|
@@ -80,8 +75,10 @@ export class Client extends AbstractClient {
|
|
|
80
75
|
}
|
|
81
76
|
|
|
82
77
|
/**
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
* 该接口不再使用
|
|
79
|
+
|
|
80
|
+
检查区块链信息
|
|
81
|
+
*/
|
|
85
82
|
async CheckChain(
|
|
86
83
|
req: CheckChainRequest,
|
|
87
84
|
cb?: (error: string, rep: CheckChainResponse) => void
|
|
@@ -90,8 +87,10 @@ export class Client extends AbstractClient {
|
|
|
90
87
|
}
|
|
91
88
|
|
|
92
89
|
/**
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
* 该接口不再使用
|
|
91
|
+
|
|
92
|
+
凭证模版详情
|
|
93
|
+
*/
|
|
95
94
|
async GetCptInfo(
|
|
96
95
|
req: GetCptInfoRequest,
|
|
97
96
|
cb?: (error: string, rep: GetCptInfoResponse) => void
|
|
@@ -100,7 +99,9 @@ export class Client extends AbstractClient {
|
|
|
100
99
|
}
|
|
101
100
|
|
|
102
101
|
/**
|
|
103
|
-
*
|
|
102
|
+
* 该接口不再使用
|
|
103
|
+
|
|
104
|
+
查看DID文档
|
|
104
105
|
|
|
105
106
|
*/
|
|
106
107
|
async GetDidDocument(
|
|
@@ -111,8 +112,10 @@ export class Client extends AbstractClient {
|
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
/**
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
* 该接口不再使用
|
|
116
|
+
|
|
117
|
+
创建选择性批露凭证
|
|
118
|
+
*/
|
|
116
119
|
async CreateSelectiveCredential(
|
|
117
120
|
req: CreateSelectiveCredentialRequest,
|
|
118
121
|
cb?: (error: string, rep: CreateSelectiveCredentialResponse) => void
|
|
@@ -121,8 +124,10 @@ export class Client extends AbstractClient {
|
|
|
121
124
|
}
|
|
122
125
|
|
|
123
126
|
/**
|
|
124
|
-
|
|
125
|
-
|
|
127
|
+
* 该接口不再使用
|
|
128
|
+
|
|
129
|
+
创建机构DID
|
|
130
|
+
*/
|
|
126
131
|
async CreateTDid(
|
|
127
132
|
req: CreateTDidRequest,
|
|
128
133
|
cb?: (error: string, rep: CreateTDidResponse) => void
|
|
@@ -143,8 +148,10 @@ export class Client extends AbstractClient {
|
|
|
143
148
|
}
|
|
144
149
|
|
|
145
150
|
/**
|
|
146
|
-
|
|
147
|
-
|
|
151
|
+
* 该接口不再使用
|
|
152
|
+
|
|
153
|
+
创建凭证
|
|
154
|
+
*/
|
|
148
155
|
async CreateCredential(
|
|
149
156
|
req: CreateCredentialRequest,
|
|
150
157
|
cb?: (error: string, rep: CreateCredentialResponse) => void
|
|
@@ -153,8 +160,10 @@ export class Client extends AbstractClient {
|
|
|
153
160
|
}
|
|
154
161
|
|
|
155
162
|
/**
|
|
156
|
-
|
|
157
|
-
|
|
163
|
+
* 该接口不再使用
|
|
164
|
+
|
|
165
|
+
新建DID根据公钥生成Tdid
|
|
166
|
+
*/
|
|
158
167
|
async CreateTDidByPublicKey(
|
|
159
168
|
req: CreateTDidByPublicKeyRequest,
|
|
160
169
|
cb?: (error: string, rep: CreateTDidByPublicKeyResponse) => void
|
|
@@ -187,8 +196,10 @@ export class Client extends AbstractClient {
|
|
|
187
196
|
}
|
|
188
197
|
|
|
189
198
|
/**
|
|
190
|
-
|
|
191
|
-
|
|
199
|
+
* 该接口不再使用
|
|
200
|
+
|
|
201
|
+
新建DID根据私钥生成Tdid
|
|
202
|
+
*/
|
|
192
203
|
async CreateTDidByPrivateKey(
|
|
193
204
|
req: CreateTDidByPrivateKeyRequest,
|
|
194
205
|
cb?: (error: string, rep: CreateTDidByPrivateKeyResponse) => void
|
|
@@ -210,20 +221,10 @@ DID添加标签
|
|
|
210
221
|
}
|
|
211
222
|
|
|
212
223
|
/**
|
|
213
|
-
*
|
|
224
|
+
* 该接口不再使用
|
|
214
225
|
|
|
215
|
-
|
|
226
|
+
获取凭证链上状态信息
|
|
216
227
|
*/
|
|
217
|
-
async GetDidClusterList(
|
|
218
|
-
req?: GetDidClusterListRequest,
|
|
219
|
-
cb?: (error: string, rep: GetDidClusterListResponse) => void
|
|
220
|
-
): Promise<GetDidClusterListResponse> {
|
|
221
|
-
return this.request("GetDidClusterList", req, cb)
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* 获取凭证链上状态信息
|
|
226
|
-
*/
|
|
227
228
|
async GetCredentialStatus(
|
|
228
229
|
req: GetCredentialStatusRequest,
|
|
229
230
|
cb?: (error: string, rep: GetCredentialStatusResponse) => void
|
|
@@ -244,8 +245,10 @@ DID添加标签
|
|
|
244
245
|
}
|
|
245
246
|
|
|
246
247
|
/**
|
|
247
|
-
|
|
248
|
-
|
|
248
|
+
* 该接口不再使用
|
|
249
|
+
|
|
250
|
+
验证凭证
|
|
251
|
+
*/
|
|
249
252
|
async VerifyCredential(
|
|
250
253
|
req: VerifyCredentialRequest,
|
|
251
254
|
cb?: (error: string, rep: VerifyCredentialResponse) => void
|
|
@@ -254,20 +257,10 @@ DID添加标签
|
|
|
254
257
|
}
|
|
255
258
|
|
|
256
259
|
/**
|
|
257
|
-
*
|
|
260
|
+
* 该接口不再使用
|
|
258
261
|
|
|
259
|
-
|
|
262
|
+
获取权威机构信息
|
|
260
263
|
*/
|
|
261
|
-
async GetDidClusterDetail(
|
|
262
|
-
req: GetDidClusterDetailRequest,
|
|
263
|
-
cb?: (error: string, rep: GetDidClusterDetailResponse) => void
|
|
264
|
-
): Promise<GetDidClusterDetailResponse> {
|
|
265
|
-
return this.request("GetDidClusterDetail", req, cb)
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* 获取权威机构信息
|
|
270
|
-
*/
|
|
271
264
|
async GetAuthorityIssuer(
|
|
272
265
|
req: GetAuthorityIssuerRequest,
|
|
273
266
|
cb?: (error: string, rep: GetAuthorityIssuerResponse) => void
|
|
@@ -276,8 +269,10 @@ DID添加标签
|
|
|
276
269
|
}
|
|
277
270
|
|
|
278
271
|
/**
|
|
279
|
-
|
|
280
|
-
|
|
272
|
+
* 该接口不再使用
|
|
273
|
+
|
|
274
|
+
设置凭证链上状态
|
|
275
|
+
*/
|
|
281
276
|
async SetCredentialStatus(
|
|
282
277
|
req: SetCredentialStatusRequest,
|
|
283
278
|
cb?: (error: string, rep: SetCredentialStatusResponse) => void
|
|
@@ -286,8 +281,10 @@ DID添加标签
|
|
|
286
281
|
}
|
|
287
282
|
|
|
288
283
|
/**
|
|
289
|
-
|
|
290
|
-
|
|
284
|
+
* 该接口不再使用
|
|
285
|
+
|
|
286
|
+
凭证模版新建
|
|
287
|
+
*/
|
|
291
288
|
async RegisterCpt(
|
|
292
289
|
req: RegisterCptRequest,
|
|
293
290
|
cb?: (error: string, rep: RegisterCptResponse) => void
|
|
@@ -237,20 +237,6 @@ export interface VerifyFunctionArg {
|
|
|
237
237
|
*/
|
|
238
238
|
export type GetConsortiumListRequest = null
|
|
239
239
|
|
|
240
|
-
/**
|
|
241
|
-
* GetDidClusterList返回参数结构体
|
|
242
|
-
*/
|
|
243
|
-
export interface GetDidClusterListResponse {
|
|
244
|
-
/**
|
|
245
|
-
* DID网络列表
|
|
246
|
-
*/
|
|
247
|
-
DidClusterList: Array<DidCluster>
|
|
248
|
-
/**
|
|
249
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
250
|
-
*/
|
|
251
|
-
RequestId?: string
|
|
252
|
-
}
|
|
253
|
-
|
|
254
240
|
/**
|
|
255
241
|
* CreateCredential请求参数结构体
|
|
256
242
|
*/
|
|
@@ -273,28 +259,6 @@ export interface CreateCredentialRequest {
|
|
|
273
259
|
UnSigned?: boolean
|
|
274
260
|
}
|
|
275
261
|
|
|
276
|
-
/**
|
|
277
|
-
* GetDidClusterDetail返回参数结构体
|
|
278
|
-
*/
|
|
279
|
-
export interface GetDidClusterDetailResponse {
|
|
280
|
-
/**
|
|
281
|
-
* 网络ID
|
|
282
|
-
*/
|
|
283
|
-
ClusterId: string
|
|
284
|
-
/**
|
|
285
|
-
* 组织名称
|
|
286
|
-
*/
|
|
287
|
-
ConsortiumName: string
|
|
288
|
-
/**
|
|
289
|
-
* 区块链组织名称
|
|
290
|
-
*/
|
|
291
|
-
ChainAgency: string
|
|
292
|
-
/**
|
|
293
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
294
|
-
*/
|
|
295
|
-
RequestId?: string
|
|
296
|
-
}
|
|
297
|
-
|
|
298
262
|
/**
|
|
299
263
|
* GetDidDocument请求参数结构体
|
|
300
264
|
*/
|
|
@@ -333,11 +297,6 @@ export interface ConsortiumItem {
|
|
|
333
297
|
Name: string
|
|
334
298
|
}
|
|
335
299
|
|
|
336
|
-
/**
|
|
337
|
-
* GetDidClusterList请求参数结构体
|
|
338
|
-
*/
|
|
339
|
-
export type GetDidClusterListRequest = null
|
|
340
|
-
|
|
341
300
|
/**
|
|
342
301
|
* GetCredentialStatus请求参数结构体
|
|
343
302
|
*/
|
|
@@ -638,16 +597,6 @@ export interface RegisterCptRequest {
|
|
|
638
597
|
CptId?: number
|
|
639
598
|
}
|
|
640
599
|
|
|
641
|
-
/**
|
|
642
|
-
* GetDidClusterDetail请求参数结构体
|
|
643
|
-
*/
|
|
644
|
-
export interface GetDidClusterDetailRequest {
|
|
645
|
-
/**
|
|
646
|
-
* DID网络ID
|
|
647
|
-
*/
|
|
648
|
-
ClusterId: string
|
|
649
|
-
}
|
|
650
|
-
|
|
651
600
|
/**
|
|
652
601
|
* 验证凭证签名
|
|
653
602
|
*/
|
|
@@ -810,76 +759,6 @@ export interface SetCredentialStatusRequest {
|
|
|
810
759
|
CredentialStatus: CredentialStatus
|
|
811
760
|
}
|
|
812
761
|
|
|
813
|
-
/**
|
|
814
|
-
* did区块链网络信息
|
|
815
|
-
*/
|
|
816
|
-
export interface DidCluster {
|
|
817
|
-
/**
|
|
818
|
-
* 链ID
|
|
819
|
-
*/
|
|
820
|
-
ChainId: number
|
|
821
|
-
/**
|
|
822
|
-
* 链名称
|
|
823
|
-
*/
|
|
824
|
-
ChainName: string
|
|
825
|
-
/**
|
|
826
|
-
* 组织数量
|
|
827
|
-
*/
|
|
828
|
-
AgencyCount: number
|
|
829
|
-
/**
|
|
830
|
-
* 联盟ID
|
|
831
|
-
*/
|
|
832
|
-
ConsortiumId: number
|
|
833
|
-
/**
|
|
834
|
-
* 创建时间
|
|
835
|
-
*/
|
|
836
|
-
CreateTime: string
|
|
837
|
-
/**
|
|
838
|
-
* 过期时间
|
|
839
|
-
*/
|
|
840
|
-
ExpireTime: string
|
|
841
|
-
/**
|
|
842
|
-
* 网络状态
|
|
843
|
-
*/
|
|
844
|
-
ChainStatus: number
|
|
845
|
-
/**
|
|
846
|
-
* 资源ID
|
|
847
|
-
*/
|
|
848
|
-
ResourceId: string
|
|
849
|
-
/**
|
|
850
|
-
* 网络ID
|
|
851
|
-
*/
|
|
852
|
-
ClusterId: string
|
|
853
|
-
/**
|
|
854
|
-
* 联盟名称
|
|
855
|
-
*/
|
|
856
|
-
ConsortiumName: string
|
|
857
|
-
/**
|
|
858
|
-
* 组织ID
|
|
859
|
-
*/
|
|
860
|
-
AgencyId: number
|
|
861
|
-
/**
|
|
862
|
-
* 自动续费
|
|
863
|
-
*/
|
|
864
|
-
AutoRenewFlag: number
|
|
865
|
-
/**
|
|
866
|
-
* 网络节点总数
|
|
867
|
-
*/
|
|
868
|
-
TotalNetworkNode: number
|
|
869
|
-
/**
|
|
870
|
-
* 本机构节点数
|
|
871
|
-
*/
|
|
872
|
-
TotalCreateNode: number
|
|
873
|
-
/**
|
|
874
|
-
* 总群组数
|
|
875
|
-
*/
|
|
876
|
-
TotalGroups: number
|
|
877
|
-
/**
|
|
878
|
-
* DID总数
|
|
879
|
-
*/
|
|
880
|
-
DidCount: number
|
|
881
|
-
}
|
|
882
|
-
|
|
883
762
|
/**
|
|
884
763
|
* GetCptInfo请求参数结构体
|
|
885
764
|
*/
|
|
@@ -159,7 +159,7 @@ export interface CreateTtsTaskRequest {
|
|
|
159
159
|
*/
|
|
160
160
|
Volume?: number
|
|
161
161
|
/**
|
|
162
|
-
* 语速,范围:[-2,2],分别对应不同语速:<li>-2代表0.6倍</li><li>-1代表0.8倍</li><li>0代表1.0倍(默认)</li><li>1代表1.2倍</li><li>2代表1.5倍</li
|
|
162
|
+
* 语速,范围:[-2,2],分别对应不同语速:<li>-2代表0.6倍</li><li>-1代表0.8倍</li><li>0代表1.0倍(默认)</li><li>1代表1.2倍</li><li>2代表1.5倍</li>如果需要更细化的语速,可以保留小数点后 2 位,例如0.5 1.1 1.8等。<br>参数值与实际语速转换,可参考[代码示例](https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz)
|
|
163
163
|
*/
|
|
164
164
|
Speed?: number
|
|
165
165
|
/**
|
|
@@ -210,7 +210,7 @@ export interface TextToVoiceRequest {
|
|
|
210
210
|
*/
|
|
211
211
|
Volume?: number
|
|
212
212
|
/**
|
|
213
|
-
* 语速,范围:[-2,6],分别对应不同语速:<li>-2代表0.6倍</li><li>-1代表0.8倍</li><li>0代表1.0倍(默认)</li><li>1代表1.2倍</li><li>2代表1.5倍</li><li>6代表2.5倍</li
|
|
213
|
+
* 语速,范围:[-2,6],分别对应不同语速:<li>-2代表0.6倍</li><li>-1代表0.8倍</li><li>0代表1.0倍(默认)</li><li>1代表1.2倍</li><li>2代表1.5倍</li><li>6代表2.5倍</li>如果需要更细化的语速,可以保留小数点后 2 位,例如0.5 1.1 1.8等。<br>参数值与实际语速转换,可参考[代码示例](https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz)
|
|
214
214
|
*/
|
|
215
215
|
Speed?: number
|
|
216
216
|
/**
|
|
@@ -246,7 +246,7 @@ export interface TextToVoiceRequest {
|
|
|
246
246
|
*/
|
|
247
247
|
SegmentRate?: number
|
|
248
248
|
/**
|
|
249
|
-
* 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)
|
|
249
|
+
* 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、撒娇(sajiao)、厌恶(disgusted)、震惊(amaze)、平静(peaceful)、兴奋(exciting)
|
|
250
250
|
*/
|
|
251
251
|
EmotionCategory?: string
|
|
252
252
|
/**
|
|
@@ -51,6 +51,7 @@ import {
|
|
|
51
51
|
DescribeFlowTrendResponse,
|
|
52
52
|
GetAttackDownloadRecordsRequest,
|
|
53
53
|
UpsertIpAccessControlRequest,
|
|
54
|
+
ModifySpartaProtectionResponse,
|
|
54
55
|
DeleteDownloadRecordRequest,
|
|
55
56
|
DescribeUserCdcClbWafRegionsResponse,
|
|
56
57
|
DeleteAccessExportResponse,
|
|
@@ -75,6 +76,7 @@ import {
|
|
|
75
76
|
HostRecord,
|
|
76
77
|
CreateHostRequest,
|
|
77
78
|
ModifyAreaBanStatusRequest,
|
|
79
|
+
SpartaProtectionPort,
|
|
78
80
|
AddSpartaProtectionRequest,
|
|
79
81
|
PeakPointsItem,
|
|
80
82
|
PostAttackDownloadTaskRequest,
|
|
@@ -138,6 +140,7 @@ import {
|
|
|
138
140
|
AccessRuleInfo,
|
|
139
141
|
GetAttackDownloadRecordsResponse,
|
|
140
142
|
DeleteAccessExportRequest,
|
|
143
|
+
ModifySpartaProtectionRequest,
|
|
141
144
|
DescribeUserClbWafRegionsRequest,
|
|
142
145
|
DescribeDomainWhiteRulesResponse,
|
|
143
146
|
DescribeWafThreatenIntelligenceResponse,
|
|
@@ -481,6 +484,16 @@ export class Client extends AbstractClient {
|
|
|
481
484
|
return this.request("ModifyWafThreatenIntelligence", req, cb)
|
|
482
485
|
}
|
|
483
486
|
|
|
487
|
+
/**
|
|
488
|
+
* 修改域名配置
|
|
489
|
+
*/
|
|
490
|
+
async ModifySpartaProtection(
|
|
491
|
+
req: ModifySpartaProtectionRequest,
|
|
492
|
+
cb?: (error: string, rep: ModifySpartaProtectionResponse) => void
|
|
493
|
+
): Promise<ModifySpartaProtectionResponse> {
|
|
494
|
+
return this.request("ModifySpartaProtection", req, cb)
|
|
495
|
+
}
|
|
496
|
+
|
|
484
497
|
/**
|
|
485
498
|
* 增加精准白名单规则
|
|
486
499
|
*/
|
|
@@ -795,6 +795,16 @@ export interface UpsertIpAccessControlRequest {
|
|
|
795
795
|
SourceType?: string
|
|
796
796
|
}
|
|
797
797
|
|
|
798
|
+
/**
|
|
799
|
+
* ModifySpartaProtection返回参数结构体
|
|
800
|
+
*/
|
|
801
|
+
export interface ModifySpartaProtectionResponse {
|
|
802
|
+
/**
|
|
803
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
804
|
+
*/
|
|
805
|
+
RequestId?: string
|
|
806
|
+
}
|
|
807
|
+
|
|
798
808
|
/**
|
|
799
809
|
* DeleteDownloadRecord请求参数结构体
|
|
800
810
|
*/
|
|
@@ -1471,6 +1481,32 @@ export interface ModifyAreaBanStatusRequest {
|
|
|
1471
1481
|
Status: number
|
|
1472
1482
|
}
|
|
1473
1483
|
|
|
1484
|
+
/**
|
|
1485
|
+
* waf斯巴达-编辑防护域名中的端口结构
|
|
1486
|
+
*/
|
|
1487
|
+
export interface SpartaProtectionPort {
|
|
1488
|
+
/**
|
|
1489
|
+
* nginx Id
|
|
1490
|
+
*/
|
|
1491
|
+
NginxServerId: number
|
|
1492
|
+
/**
|
|
1493
|
+
* 端口
|
|
1494
|
+
*/
|
|
1495
|
+
Port: string
|
|
1496
|
+
/**
|
|
1497
|
+
* 协议
|
|
1498
|
+
*/
|
|
1499
|
+
Protocol: string
|
|
1500
|
+
/**
|
|
1501
|
+
* 后端端口
|
|
1502
|
+
*/
|
|
1503
|
+
UpstreamPort: string
|
|
1504
|
+
/**
|
|
1505
|
+
* 后端协议
|
|
1506
|
+
*/
|
|
1507
|
+
UpstreamProtocol: string
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1474
1510
|
/**
|
|
1475
1511
|
* AddSpartaProtection请求参数结构体
|
|
1476
1512
|
*/
|
|
@@ -3155,6 +3191,140 @@ export interface DeleteAccessExportRequest {
|
|
|
3155
3191
|
TopicId: string
|
|
3156
3192
|
}
|
|
3157
3193
|
|
|
3194
|
+
/**
|
|
3195
|
+
* ModifySpartaProtection请求参数结构体
|
|
3196
|
+
*/
|
|
3197
|
+
export interface ModifySpartaProtectionRequest {
|
|
3198
|
+
/**
|
|
3199
|
+
* 域名
|
|
3200
|
+
*/
|
|
3201
|
+
Domain: string
|
|
3202
|
+
/**
|
|
3203
|
+
* 域名ID
|
|
3204
|
+
*/
|
|
3205
|
+
DomainId?: string
|
|
3206
|
+
/**
|
|
3207
|
+
* 证书类型,0表示没有证书,CertType=1表示自有证书,2 为托管证书
|
|
3208
|
+
*/
|
|
3209
|
+
CertType?: number
|
|
3210
|
+
/**
|
|
3211
|
+
* CertType=1时,需要填次参数,表示证书内容
|
|
3212
|
+
*/
|
|
3213
|
+
Cert?: string
|
|
3214
|
+
/**
|
|
3215
|
+
* CertType=1时,需要填次参数,表示证书的私钥
|
|
3216
|
+
*/
|
|
3217
|
+
PrivateKey?: string
|
|
3218
|
+
/**
|
|
3219
|
+
* CertType=2时,需要填次参数,表示证书的ID
|
|
3220
|
+
*/
|
|
3221
|
+
SSLId?: string
|
|
3222
|
+
/**
|
|
3223
|
+
* 表示是否开启了CDN代理
|
|
3224
|
+
*/
|
|
3225
|
+
IsCdn?: number
|
|
3226
|
+
/**
|
|
3227
|
+
* HTTPS回源协议
|
|
3228
|
+
*/
|
|
3229
|
+
UpstreamScheme?: string
|
|
3230
|
+
/**
|
|
3231
|
+
* HTTPS回源端口,仅UpstreamScheme为http时需要填当前字段
|
|
3232
|
+
*/
|
|
3233
|
+
HttpsUpstreamPort?: string
|
|
3234
|
+
/**
|
|
3235
|
+
* 表示是否强制跳转到HTTPS,1表示开启,0表示不开启
|
|
3236
|
+
*/
|
|
3237
|
+
HttpsRewrite?: number
|
|
3238
|
+
/**
|
|
3239
|
+
* 回源类型,0表示通过IP回源,1 表示通过域名回源
|
|
3240
|
+
*/
|
|
3241
|
+
UpstreamType?: number
|
|
3242
|
+
/**
|
|
3243
|
+
* UpstreamType=1时,填次字段表示回源域名
|
|
3244
|
+
*/
|
|
3245
|
+
UpstreamDomain?: string
|
|
3246
|
+
/**
|
|
3247
|
+
* UpstreamType=0时,填次字段表示回源ip
|
|
3248
|
+
*/
|
|
3249
|
+
SrcList?: Array<string>
|
|
3250
|
+
/**
|
|
3251
|
+
* 是否开启HTTP2,1表示开启,0表示不开启http2。开启HTTP2需要HTTPS支持
|
|
3252
|
+
*/
|
|
3253
|
+
IsHttp2?: number
|
|
3254
|
+
/**
|
|
3255
|
+
* 是否开启WebSocket, 1:开启WebSocket,0:不开启WebSocket
|
|
3256
|
+
*/
|
|
3257
|
+
IsWebsocket?: number
|
|
3258
|
+
/**
|
|
3259
|
+
* 负载均衡策略,0表示轮徇,1表示IP hash
|
|
3260
|
+
*/
|
|
3261
|
+
LoadBalance?: number
|
|
3262
|
+
/**
|
|
3263
|
+
* 是否灰度
|
|
3264
|
+
*/
|
|
3265
|
+
IsGray?: number
|
|
3266
|
+
/**
|
|
3267
|
+
* WAF版本
|
|
3268
|
+
*/
|
|
3269
|
+
Edition?: string
|
|
3270
|
+
/**
|
|
3271
|
+
* 端口信息
|
|
3272
|
+
*/
|
|
3273
|
+
Ports?: Array<SpartaProtectionPort>
|
|
3274
|
+
/**
|
|
3275
|
+
* 长短连接标志,仅IP回源时有效
|
|
3276
|
+
*/
|
|
3277
|
+
IsKeepAlive?: string
|
|
3278
|
+
/**
|
|
3279
|
+
* 实例id
|
|
3280
|
+
*/
|
|
3281
|
+
InstanceID?: string
|
|
3282
|
+
/**
|
|
3283
|
+
* 是否为Anycast ip类型:1 Anycast 0 普通ip
|
|
3284
|
+
*/
|
|
3285
|
+
Anycast?: number
|
|
3286
|
+
/**
|
|
3287
|
+
* src的权重
|
|
3288
|
+
*/
|
|
3289
|
+
Weights?: Array<number>
|
|
3290
|
+
/**
|
|
3291
|
+
* 是否开启源站的主动健康检测,1表示开启,0表示不开启
|
|
3292
|
+
*/
|
|
3293
|
+
ActiveCheck?: number
|
|
3294
|
+
/**
|
|
3295
|
+
* TLS版本信息
|
|
3296
|
+
*/
|
|
3297
|
+
TLSVersion?: number
|
|
3298
|
+
/**
|
|
3299
|
+
* 加密套件信息
|
|
3300
|
+
*/
|
|
3301
|
+
Ciphers?: Array<number>
|
|
3302
|
+
/**
|
|
3303
|
+
* 0:不支持选择:默认模版 1:通用型模版 2:安全型模版 3:自定义模版
|
|
3304
|
+
*/
|
|
3305
|
+
CipherTemplate?: number
|
|
3306
|
+
/**
|
|
3307
|
+
* 300s
|
|
3308
|
+
*/
|
|
3309
|
+
ProxyReadTimeout?: number
|
|
3310
|
+
/**
|
|
3311
|
+
* 300s
|
|
3312
|
+
*/
|
|
3313
|
+
ProxySendTimeout?: number
|
|
3314
|
+
/**
|
|
3315
|
+
* 0:关闭SNI;1:开启SNI,SNI=源请求host;2:开启SNI,SNI=修改为源站host;3:开启SNI,自定义host,SNI=SniHost;
|
|
3316
|
+
*/
|
|
3317
|
+
SniType?: number
|
|
3318
|
+
/**
|
|
3319
|
+
* SniType=3时,需要填此参数,表示自定义的host;
|
|
3320
|
+
*/
|
|
3321
|
+
SniHost?: string
|
|
3322
|
+
/**
|
|
3323
|
+
* IsCdn=3时,需要填此参数,表示自定义header
|
|
3324
|
+
*/
|
|
3325
|
+
IpHeaders?: Array<string>
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3158
3328
|
/**
|
|
3159
3329
|
* DescribeUserClbWafRegions请求参数结构体
|
|
3160
3330
|
*/
|