tencentcloud-sdk-nodejs 4.0.722 → 4.0.724
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 +270 -0
- package/SERVICE_CHANGELOG.md +296 -49
- package/package.json +1 -1
- package/products.md +24 -24
- package/src/common/sdk_version.ts +1 -1
- package/src/services/aiart/v20221229/aiart_models.ts +9 -5
- package/src/services/car/v20220110/car_client.ts +1 -1
- package/src/services/ccc/v20200210/ccc_models.ts +6 -2
- package/src/services/ckafka/v20190819/ckafka_models.ts +1 -1
- package/src/services/clb/v20180317/clb_models.ts +4 -6
- package/src/services/cls/v20201016/cls_client.ts +15 -3
- package/src/services/cls/v20201016/cls_models.ts +54 -18
- package/src/services/ess/v20201111/ess_client.ts +23 -6
- package/src/services/ess/v20201111/ess_models.ts +345 -208
- package/src/services/essbasic/v20210526/essbasic_client.ts +45 -18
- package/src/services/essbasic/v20210526/essbasic_models.ts +140 -73
- package/src/services/lighthouse/v20200324/lighthouse_client.ts +29 -2
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +98 -50
- package/src/services/mna/v20210119/mna_client.ts +15 -1
- package/src/services/mna/v20210119/mna_models.ts +90 -12
- package/src/services/ocr/v20181119/ocr_models.ts +43 -25
- package/src/services/ses/v20201002/ses_models.ts +5 -1
- package/src/services/tdmq/v20200217/tdmq_models.ts +41 -4
- package/src/services/teo/v20220901/teo_client.ts +46 -21
- package/src/services/teo/v20220901/teo_models.ts +91 -23
- package/src/services/tione/v20211111/tione_models.ts +1 -1
- package/src/services/waf/v20180125/waf_client.ts +20 -7
- package/src/services/waf/v20180125/waf_models.ts +118 -1
- package/src/services/wedata/v20210820/wedata_models.ts +14 -2
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/aiart/v20221229/aiart_models.d.ts +9 -5
- package/tencentcloud/services/car/v20220110/car_client.d.ts +1 -1
- package/tencentcloud/services/car/v20220110/car_client.js +1 -1
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +6 -2
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +1 -1
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +4 -6
- package/tencentcloud/services/cls/v20201016/cls_client.d.ts +5 -1
- package/tencentcloud/services/cls/v20201016/cls_client.js +6 -0
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +52 -18
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +12 -4
- package/tencentcloud/services/ess/v20201111/ess_client.js +13 -3
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +341 -207
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +43 -16
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +43 -16
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +140 -73
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.d.ts +12 -1
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_client.js +15 -0
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +94 -50
- package/tencentcloud/services/mna/v20210119/mna_client.d.ts +5 -1
- package/tencentcloud/services/mna/v20210119/mna_client.js +6 -0
- package/tencentcloud/services/mna/v20210119/mna_models.d.ts +86 -12
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +43 -25
- package/tencentcloud/services/ses/v20201002/ses_models.d.ts +6 -1
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +41 -4
- package/tencentcloud/services/teo/v20220901/teo_client.d.ts +16 -8
- package/tencentcloud/services/teo/v20220901/teo_client.js +22 -10
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +86 -23
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +1 -1
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +8 -4
- package/tencentcloud/services/waf/v20180125/waf_client.js +9 -3
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +115 -1
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +14 -2
- package/test/cls.v20201016.test.js +10 -0
- package/test/ess.v20201111.test.js +10 -0
- package/test/lighthouse.v20200324.test.js +20 -0
- package/test/mna.v20210119.test.js +10 -0
- package/test/teo.v20220901.test.js +26 -6
- package/test/waf.v20180125.test.js +12 -2
|
@@ -56,6 +56,7 @@ import {
|
|
|
56
56
|
BotUserRule,
|
|
57
57
|
ModifyOriginGroupResponse,
|
|
58
58
|
DeleteAccelerationDomainsRequest,
|
|
59
|
+
DescribeApplicationProxiesResponse,
|
|
59
60
|
ExceptUserRuleScope,
|
|
60
61
|
ModifyAliasDomainRequest,
|
|
61
62
|
DescribeAvailablePlansRequest,
|
|
@@ -95,12 +96,14 @@ import {
|
|
|
95
96
|
DescribeRulesSettingResponse,
|
|
96
97
|
BindSecurityTemplateToEntityResponse,
|
|
97
98
|
RuleExtraParameter,
|
|
99
|
+
BindSharedCNAMEMap,
|
|
98
100
|
RulesSettingAction,
|
|
99
101
|
DDoSAttackEvent,
|
|
100
102
|
ClientIpHeader,
|
|
101
103
|
DescribeDDoSAttackTopDataRequest,
|
|
102
104
|
Quic,
|
|
103
105
|
Ipv6,
|
|
106
|
+
WebSocket,
|
|
104
107
|
ModifyAccelerationDomainRequest,
|
|
105
108
|
DescribeRulesRequest,
|
|
106
109
|
DescribeContentQuotaResponse,
|
|
@@ -122,17 +125,18 @@ import {
|
|
|
122
125
|
ClientIpCountry,
|
|
123
126
|
CreatePrefetchTaskRequest,
|
|
124
127
|
DeleteApplicationProxyRuleRequest,
|
|
125
|
-
|
|
128
|
+
BindSharedCNAMEResponse,
|
|
126
129
|
TemplateScope,
|
|
127
130
|
DescribeTopL7AnalysisDataRequest,
|
|
128
131
|
FileAscriptionInfo,
|
|
132
|
+
DeleteSharedCNAMERequest,
|
|
129
133
|
DescribeAccelerationDomainsResponse,
|
|
130
134
|
ZoneSetting,
|
|
131
135
|
DescribeTopL7CacheDataResponse,
|
|
132
136
|
DescribeOverviewL7DataRequest,
|
|
133
137
|
SwitchConfig,
|
|
134
138
|
IdentifyZoneResponse,
|
|
135
|
-
|
|
139
|
+
DeleteSharedCNAMEResponse,
|
|
136
140
|
DDoSBlockData,
|
|
137
141
|
VanityNameServers,
|
|
138
142
|
RuleChoicePropertiesItem,
|
|
@@ -220,6 +224,7 @@ import {
|
|
|
220
224
|
ModifyOriginGroupRequest,
|
|
221
225
|
DownloadL4LogsResponse,
|
|
222
226
|
DescribeTimingL7CacheDataResponse,
|
|
227
|
+
BindSharedCNAMERequest,
|
|
223
228
|
RateLimitIntelligence,
|
|
224
229
|
IpTableConfig,
|
|
225
230
|
ModifyApplicationProxyStatusRequest,
|
|
@@ -332,7 +337,7 @@ export class Client extends AbstractClient {
|
|
|
332
337
|
}
|
|
333
338
|
|
|
334
339
|
/**
|
|
335
|
-
*
|
|
340
|
+
* 用于创建共享 CNAME,该功能白名单内测中。
|
|
336
341
|
*/
|
|
337
342
|
async CreateSharedCNAME(
|
|
338
343
|
req: CreateSharedCNAMERequest,
|
|
@@ -537,6 +542,16 @@ export class Client extends AbstractClient {
|
|
|
537
542
|
return this.request("DescribeAvailablePlans", req, cb)
|
|
538
543
|
}
|
|
539
544
|
|
|
545
|
+
/**
|
|
546
|
+
* 用于加速域名绑定或解绑共享 CNAME,该功能白名单内测中。
|
|
547
|
+
*/
|
|
548
|
+
async BindSharedCNAME(
|
|
549
|
+
req: BindSharedCNAMERequest,
|
|
550
|
+
cb?: (error: string, rep: BindSharedCNAMEResponse) => void
|
|
551
|
+
): Promise<BindSharedCNAMEResponse> {
|
|
552
|
+
return this.request("BindSharedCNAME", req, cb)
|
|
553
|
+
}
|
|
554
|
+
|
|
540
555
|
/**
|
|
541
556
|
* 用于验证站点所有权。
|
|
542
557
|
*/
|
|
@@ -547,6 +562,16 @@ export class Client extends AbstractClient {
|
|
|
547
562
|
return this.request("IdentifyZone", req, cb)
|
|
548
563
|
}
|
|
549
564
|
|
|
565
|
+
/**
|
|
566
|
+
* 修改别称域名状态。
|
|
567
|
+
*/
|
|
568
|
+
async ModifyAliasDomainStatus(
|
|
569
|
+
req: ModifyAliasDomainStatusRequest,
|
|
570
|
+
cb?: (error: string, rep: ModifyAliasDomainStatusResponse) => void
|
|
571
|
+
): Promise<ModifyAliasDomainStatusResponse> {
|
|
572
|
+
return this.request("ModifyAliasDomainStatus", req, cb)
|
|
573
|
+
}
|
|
574
|
+
|
|
550
575
|
/**
|
|
551
576
|
* 查询源站防护信息
|
|
552
577
|
*/
|
|
@@ -710,13 +735,13 @@ export class Client extends AbstractClient {
|
|
|
710
735
|
}
|
|
711
736
|
|
|
712
737
|
/**
|
|
713
|
-
*
|
|
738
|
+
* 获取源站组列表
|
|
714
739
|
*/
|
|
715
|
-
async
|
|
716
|
-
req:
|
|
717
|
-
cb?: (error: string, rep:
|
|
718
|
-
): Promise<
|
|
719
|
-
return this.request("
|
|
740
|
+
async DescribeOriginGroup(
|
|
741
|
+
req: DescribeOriginGroupRequest,
|
|
742
|
+
cb?: (error: string, rep: DescribeOriginGroupResponse) => void
|
|
743
|
+
): Promise<DescribeOriginGroupResponse> {
|
|
744
|
+
return this.request("DescribeOriginGroup", req, cb)
|
|
720
745
|
}
|
|
721
746
|
|
|
722
747
|
/**
|
|
@@ -810,13 +835,13 @@ export class Client extends AbstractClient {
|
|
|
810
835
|
}
|
|
811
836
|
|
|
812
837
|
/**
|
|
813
|
-
*
|
|
838
|
+
* 用于删除共享 CNAME,该功能白名单内测中。
|
|
814
839
|
*/
|
|
815
|
-
async
|
|
816
|
-
req:
|
|
817
|
-
cb?: (error: string, rep:
|
|
818
|
-
): Promise<
|
|
819
|
-
return this.request("
|
|
840
|
+
async DeleteSharedCNAME(
|
|
841
|
+
req: DeleteSharedCNAMERequest,
|
|
842
|
+
cb?: (error: string, rep: DeleteSharedCNAMEResponse) => void
|
|
843
|
+
): Promise<DeleteSharedCNAMEResponse> {
|
|
844
|
+
return this.request("DeleteSharedCNAME", req, cb)
|
|
820
845
|
}
|
|
821
846
|
|
|
822
847
|
/**
|
|
@@ -942,13 +967,13 @@ CNAME 模式接入时,若您未完成站点归属权校验,本接口将为
|
|
|
942
967
|
}
|
|
943
968
|
|
|
944
969
|
/**
|
|
945
|
-
*
|
|
970
|
+
* 本接口(DescribeDDoSAttackEvent)用于查询DDoS攻击事件列表。
|
|
946
971
|
*/
|
|
947
|
-
async
|
|
948
|
-
req:
|
|
949
|
-
cb?: (error: string, rep:
|
|
950
|
-
): Promise<
|
|
951
|
-
return this.request("
|
|
972
|
+
async DescribeDDoSAttackEvent(
|
|
973
|
+
req: DescribeDDoSAttackEventRequest,
|
|
974
|
+
cb?: (error: string, rep: DescribeDDoSAttackEventResponse) => void
|
|
975
|
+
): Promise<DescribeDDoSAttackEventResponse> {
|
|
976
|
+
return this.request("DescribeDDoSAttackEvent", req, cb)
|
|
952
977
|
}
|
|
953
978
|
|
|
954
979
|
/**
|
|
@@ -1027,6 +1027,24 @@ export interface DeleteAccelerationDomainsRequest {
|
|
|
1027
1027
|
Force?: boolean
|
|
1028
1028
|
}
|
|
1029
1029
|
|
|
1030
|
+
/**
|
|
1031
|
+
* DescribeApplicationProxies返回参数结构体
|
|
1032
|
+
*/
|
|
1033
|
+
export interface DescribeApplicationProxiesResponse {
|
|
1034
|
+
/**
|
|
1035
|
+
* 应用代理列表。
|
|
1036
|
+
*/
|
|
1037
|
+
ApplicationProxies?: Array<ApplicationProxy>
|
|
1038
|
+
/**
|
|
1039
|
+
* 记录总数。
|
|
1040
|
+
*/
|
|
1041
|
+
TotalCount?: number
|
|
1042
|
+
/**
|
|
1043
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1044
|
+
*/
|
|
1045
|
+
RequestId?: string
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1030
1048
|
/**
|
|
1031
1049
|
* 例外规则的生效范围。
|
|
1032
1050
|
*/
|
|
@@ -2085,6 +2103,20 @@ export interface RuleExtraParameter {
|
|
|
2085
2103
|
Choices: Array<string>
|
|
2086
2104
|
}
|
|
2087
2105
|
|
|
2106
|
+
/**
|
|
2107
|
+
* 共享 CNAME 和接入域名的绑定关系
|
|
2108
|
+
*/
|
|
2109
|
+
export interface BindSharedCNAMEMap {
|
|
2110
|
+
/**
|
|
2111
|
+
* 需要绑定或解绑的共享 CNAME。
|
|
2112
|
+
*/
|
|
2113
|
+
SharedCNAME: string
|
|
2114
|
+
/**
|
|
2115
|
+
* 加速域名,可传递多个,最多20个。
|
|
2116
|
+
*/
|
|
2117
|
+
DomainNames: Array<string>
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2088
2120
|
/**
|
|
2089
2121
|
* 规则引擎可应用于匹配请求的设置列表及其详细信息
|
|
2090
2122
|
*/
|
|
@@ -2284,6 +2316,22 @@ export interface Ipv6 {
|
|
|
2284
2316
|
Switch: string
|
|
2285
2317
|
}
|
|
2286
2318
|
|
|
2319
|
+
/**
|
|
2320
|
+
* WebSocket配置
|
|
2321
|
+
*/
|
|
2322
|
+
export interface WebSocket {
|
|
2323
|
+
/**
|
|
2324
|
+
* WebSocket 超时时间配置开关,取值有:
|
|
2325
|
+
<li>on:使用Timeout作为WebSocket超时时间;</li>
|
|
2326
|
+
<li>off:平台仍支持WebSocket连接,此时使用系统默认的15秒为超时时间。</li>
|
|
2327
|
+
*/
|
|
2328
|
+
Switch: string
|
|
2329
|
+
/**
|
|
2330
|
+
* 超时时间,单位为秒,最大超时时间120秒。
|
|
2331
|
+
*/
|
|
2332
|
+
Timeout?: number
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2287
2335
|
/**
|
|
2288
2336
|
* ModifyAccelerationDomain请求参数结构体
|
|
2289
2337
|
*/
|
|
@@ -2841,17 +2889,9 @@ export interface DeleteApplicationProxyRuleRequest {
|
|
|
2841
2889
|
}
|
|
2842
2890
|
|
|
2843
2891
|
/**
|
|
2844
|
-
*
|
|
2892
|
+
* BindSharedCNAME返回参数结构体
|
|
2845
2893
|
*/
|
|
2846
|
-
export interface
|
|
2847
|
-
/**
|
|
2848
|
-
* 应用代理列表。
|
|
2849
|
-
*/
|
|
2850
|
-
ApplicationProxies?: Array<ApplicationProxy>
|
|
2851
|
-
/**
|
|
2852
|
-
* 记录总数。
|
|
2853
|
-
*/
|
|
2854
|
-
TotalCount?: number
|
|
2894
|
+
export interface BindSharedCNAMEResponse {
|
|
2855
2895
|
/**
|
|
2856
2896
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2857
2897
|
*/
|
|
@@ -2971,6 +3011,20 @@ export interface FileAscriptionInfo {
|
|
|
2971
3011
|
IdentifyContent: string
|
|
2972
3012
|
}
|
|
2973
3013
|
|
|
3014
|
+
/**
|
|
3015
|
+
* DeleteSharedCNAME请求参数结构体
|
|
3016
|
+
*/
|
|
3017
|
+
export interface DeleteSharedCNAMERequest {
|
|
3018
|
+
/**
|
|
3019
|
+
* 共享 CNAME 所属站点 ID。
|
|
3020
|
+
*/
|
|
3021
|
+
ZoneId: string
|
|
3022
|
+
/**
|
|
3023
|
+
* 需要删除的共享 CNAME。
|
|
3024
|
+
*/
|
|
3025
|
+
SharedCNAME: string
|
|
3026
|
+
}
|
|
3027
|
+
|
|
2974
3028
|
/**
|
|
2975
3029
|
* DescribeAccelerationDomains返回参数结构体
|
|
2976
3030
|
*/
|
|
@@ -3225,19 +3279,13 @@ export interface IdentifyZoneResponse {
|
|
|
3225
3279
|
}
|
|
3226
3280
|
|
|
3227
3281
|
/**
|
|
3228
|
-
*
|
|
3282
|
+
* DeleteSharedCNAME返回参数结构体
|
|
3229
3283
|
*/
|
|
3230
|
-
export interface
|
|
3284
|
+
export interface DeleteSharedCNAMEResponse {
|
|
3231
3285
|
/**
|
|
3232
|
-
*
|
|
3233
|
-
<li>on:使用Timeout作为WebSocket超时时间;</li>
|
|
3234
|
-
<li>off:平台仍支持WebSocket连接,此时使用系统默认的15秒为超时时间。</li>
|
|
3235
|
-
*/
|
|
3236
|
-
Switch: string
|
|
3237
|
-
/**
|
|
3238
|
-
* 超时时间,单位为秒,最大超时时间120秒。
|
|
3286
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3239
3287
|
*/
|
|
3240
|
-
|
|
3288
|
+
RequestId?: string
|
|
3241
3289
|
}
|
|
3242
3290
|
|
|
3243
3291
|
/**
|
|
@@ -5652,6 +5700,26 @@ export interface DescribeTimingL7CacheDataResponse {
|
|
|
5652
5700
|
RequestId?: string
|
|
5653
5701
|
}
|
|
5654
5702
|
|
|
5703
|
+
/**
|
|
5704
|
+
* BindSharedCNAME请求参数结构体
|
|
5705
|
+
*/
|
|
5706
|
+
export interface BindSharedCNAMERequest {
|
|
5707
|
+
/**
|
|
5708
|
+
* 加速域名所属站点 ID。
|
|
5709
|
+
*/
|
|
5710
|
+
ZoneId: string
|
|
5711
|
+
/**
|
|
5712
|
+
* 绑定类型,取值有:
|
|
5713
|
+
<li>bind:绑定;</li>
|
|
5714
|
+
<li>unbind:解绑。</li>
|
|
5715
|
+
*/
|
|
5716
|
+
BindType: string
|
|
5717
|
+
/**
|
|
5718
|
+
* 接入域名与共享 CNAME 的绑定关系。
|
|
5719
|
+
*/
|
|
5720
|
+
BindSharedCNAMEMaps: Array<BindSharedCNAMEMap>
|
|
5721
|
+
}
|
|
5722
|
+
|
|
5655
5723
|
/**
|
|
5656
5724
|
* 智能客户端过滤
|
|
5657
5725
|
*/
|
|
@@ -6895,7 +6963,7 @@ export interface CreateSecurityIPGroupResponse {
|
|
|
6895
6963
|
*/
|
|
6896
6964
|
export interface CreateSharedCNAMEResponse {
|
|
6897
6965
|
/**
|
|
6898
|
-
* 共享 CNAME。格式为:<自定义前缀>+<ZoneId中的12位随机字符串>+"share.
|
|
6966
|
+
* 共享 CNAME。格式为:<自定义前缀>+<ZoneId中的12位随机字符串>+"share.dnse[0-5].com"。
|
|
6899
6967
|
*/
|
|
6900
6968
|
SharedCNAME?: string
|
|
6901
6969
|
/**
|
|
@@ -7229,9 +7297,9 @@ export interface CreateSharedCNAMERequest {
|
|
|
7229
7297
|
/**
|
|
7230
7298
|
* 共享 CNAME 前缀。请输入合法的域名前缀,例如"test-api"、"test-api.com",限制输入 50 个字符。
|
|
7231
7299
|
|
|
7232
|
-
共享 CNAME 完整格式为:<自定义前缀>+<zoneid中的12位随机字符串>+"share.
|
|
7300
|
+
共享 CNAME 完整格式为:<自定义前缀>+<zoneid中的12位随机字符串>+"share.dnse[0-5].com"。
|
|
7233
7301
|
|
|
7234
|
-
例如前缀传入 example.com,EO 会为您创建共享 CNAME:example.com.sai2ig51kaa5.share.
|
|
7302
|
+
例如前缀传入 example.com,EO 会为您创建共享 CNAME:example.com.sai2ig51kaa5.share.dnse2.com。
|
|
7235
7303
|
*/
|
|
7236
7304
|
SharedCNAMEPrefix: string
|
|
7237
7305
|
/**
|
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
DescribeDomainRulesRequest,
|
|
40
40
|
DeleteDownloadRecordRequest,
|
|
41
41
|
DeleteAccessExportResponse,
|
|
42
|
+
DescribeModuleStatusResponse,
|
|
42
43
|
AccessKeyValueInfo,
|
|
43
44
|
KVInt,
|
|
44
45
|
AddAntiInfoLeakRulesRequest,
|
|
@@ -112,6 +113,7 @@ import {
|
|
|
112
113
|
AddCustomWhiteRuleResponse,
|
|
113
114
|
SwitchElasticModeRequest,
|
|
114
115
|
HostDel,
|
|
116
|
+
DescribeModuleStatusRequest,
|
|
115
117
|
DescribeAntiFakeUrlRequest,
|
|
116
118
|
DeleteAttackWhiteRuleRequest,
|
|
117
119
|
DescribeHostsResponse,
|
|
@@ -138,6 +140,7 @@ import {
|
|
|
138
140
|
GetInstanceQpsLimitResponse,
|
|
139
141
|
ModifyCustomWhiteRuleResponse,
|
|
140
142
|
SearchItem,
|
|
143
|
+
ApiPkg,
|
|
141
144
|
DescribePortsRequest,
|
|
142
145
|
DescribeWafAutoDenyStatusResponse,
|
|
143
146
|
DescribeTlsVersionRequest,
|
|
@@ -744,13 +747,13 @@ export class Client extends AbstractClient {
|
|
|
744
747
|
}
|
|
745
748
|
|
|
746
749
|
/**
|
|
747
|
-
*
|
|
750
|
+
* 查询各个waf基础安全模块的开关状态,看每个模块是否开启
|
|
748
751
|
*/
|
|
749
|
-
async
|
|
750
|
-
req
|
|
751
|
-
cb?: (error: string, rep:
|
|
752
|
-
): Promise<
|
|
753
|
-
return this.request("
|
|
752
|
+
async DescribeModuleStatus(
|
|
753
|
+
req?: DescribeModuleStatusRequest,
|
|
754
|
+
cb?: (error: string, rep: DescribeModuleStatusResponse) => void
|
|
755
|
+
): Promise<DescribeModuleStatusResponse> {
|
|
756
|
+
return this.request("DescribeModuleStatus", req, cb)
|
|
754
757
|
}
|
|
755
758
|
|
|
756
759
|
/**
|
|
@@ -936,6 +939,16 @@ Waf CC V2 Query接口
|
|
|
936
939
|
return this.request("ModifyWafThreatenIntelligence", req, cb)
|
|
937
940
|
}
|
|
938
941
|
|
|
942
|
+
/**
|
|
943
|
+
* 设置waf防护状态
|
|
944
|
+
*/
|
|
945
|
+
async ModifySpartaProtectionMode(
|
|
946
|
+
req: ModifySpartaProtectionModeRequest,
|
|
947
|
+
cb?: (error: string, rep: ModifySpartaProtectionModeResponse) => void
|
|
948
|
+
): Promise<ModifySpartaProtectionModeResponse> {
|
|
949
|
+
return this.request("ModifySpartaProtectionMode", req, cb)
|
|
950
|
+
}
|
|
951
|
+
|
|
939
952
|
/**
|
|
940
953
|
* 删除攻击日志下载任务记录
|
|
941
954
|
*/
|
|
@@ -1607,7 +1620,7 @@ Waf CC V2 Query接口
|
|
|
1607
1620
|
* 根据多条件查询CC规则
|
|
1608
1621
|
*/
|
|
1609
1622
|
async DescribeCCRuleList(
|
|
1610
|
-
req
|
|
1623
|
+
req: DescribeCCRuleListRequest,
|
|
1611
1624
|
cb?: (error: string, rep: DescribeCCRuleListResponse) => void
|
|
1612
1625
|
): Promise<DescribeCCRuleListResponse> {
|
|
1613
1626
|
return this.request("DescribeCCRuleList", req, cb)
|
|
@@ -474,6 +474,16 @@ export interface DeleteAccessExportResponse {
|
|
|
474
474
|
RequestId?: string
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
+
/**
|
|
478
|
+
* DescribeModuleStatus返回参数结构体
|
|
479
|
+
*/
|
|
480
|
+
export interface DescribeModuleStatusResponse {
|
|
481
|
+
/**
|
|
482
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
483
|
+
*/
|
|
484
|
+
RequestId?: string
|
|
485
|
+
}
|
|
486
|
+
|
|
477
487
|
/**
|
|
478
488
|
* 用于 DescribeAccessIndex 的出参
|
|
479
489
|
*/
|
|
@@ -2344,6 +2354,11 @@ export interface HostDel {
|
|
|
2344
2354
|
InstanceID?: string
|
|
2345
2355
|
}
|
|
2346
2356
|
|
|
2357
|
+
/**
|
|
2358
|
+
* DescribeModuleStatus请求参数结构体
|
|
2359
|
+
*/
|
|
2360
|
+
export type DescribeModuleStatusRequest = null
|
|
2361
|
+
|
|
2347
2362
|
/**
|
|
2348
2363
|
* DescribeAntiFakeUrl请求参数结构体
|
|
2349
2364
|
*/
|
|
@@ -2924,6 +2939,73 @@ export interface SearchItem {
|
|
|
2924
2939
|
FlowMode?: string
|
|
2925
2940
|
}
|
|
2926
2941
|
|
|
2942
|
+
/**
|
|
2943
|
+
* API安全资源信息
|
|
2944
|
+
*/
|
|
2945
|
+
export interface ApiPkg {
|
|
2946
|
+
/**
|
|
2947
|
+
* 资源id
|
|
2948
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2949
|
+
*/
|
|
2950
|
+
ResourceIds?: string
|
|
2951
|
+
/**
|
|
2952
|
+
* 状态
|
|
2953
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2954
|
+
*/
|
|
2955
|
+
Status?: number
|
|
2956
|
+
/**
|
|
2957
|
+
* 地域
|
|
2958
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2959
|
+
*/
|
|
2960
|
+
Region?: number
|
|
2961
|
+
/**
|
|
2962
|
+
* 开始时间
|
|
2963
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2964
|
+
*/
|
|
2965
|
+
BeginTime?: string
|
|
2966
|
+
/**
|
|
2967
|
+
* 结束时间
|
|
2968
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2969
|
+
*/
|
|
2970
|
+
EndTime?: string
|
|
2971
|
+
/**
|
|
2972
|
+
* 申请数量
|
|
2973
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2974
|
+
*/
|
|
2975
|
+
InquireNum?: number
|
|
2976
|
+
/**
|
|
2977
|
+
* 使用数量
|
|
2978
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2979
|
+
*/
|
|
2980
|
+
UsedNum?: number
|
|
2981
|
+
/**
|
|
2982
|
+
* 续费标志
|
|
2983
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2984
|
+
*/
|
|
2985
|
+
RenewFlag?: number
|
|
2986
|
+
/**
|
|
2987
|
+
* 计费项
|
|
2988
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2989
|
+
*/
|
|
2990
|
+
BillingItem?: string
|
|
2991
|
+
/**
|
|
2992
|
+
* 1 API安全6折
|
|
2993
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2994
|
+
*/
|
|
2995
|
+
APICPWaf?: number
|
|
2996
|
+
/**
|
|
2997
|
+
* 1 表示5折折扣
|
|
2998
|
+
2 表示4折折扣
|
|
2999
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3000
|
+
*/
|
|
3001
|
+
APINPWaf?: number
|
|
3002
|
+
/**
|
|
3003
|
+
* api安全7天试用标识。1试用。0没试用
|
|
3004
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3005
|
+
*/
|
|
3006
|
+
IsAPISecurityTrial?: number
|
|
3007
|
+
}
|
|
3008
|
+
|
|
2927
3009
|
/**
|
|
2928
3010
|
* DescribePorts请求参数结构体
|
|
2929
3011
|
*/
|
|
@@ -5396,6 +5478,11 @@ export interface InstanceInfo {
|
|
|
5396
5478
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5397
5479
|
*/
|
|
5398
5480
|
HybridPkg?: HybridPkg
|
|
5481
|
+
/**
|
|
5482
|
+
* API安全资源包
|
|
5483
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5484
|
+
*/
|
|
5485
|
+
ApiPkg?: ApiPkg
|
|
5399
5486
|
}
|
|
5400
5487
|
|
|
5401
5488
|
/**
|
|
@@ -6271,6 +6358,11 @@ export interface BotPkg {
|
|
|
6271
6358
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6272
6359
|
*/
|
|
6273
6360
|
BotNPWaf?: number
|
|
6361
|
+
/**
|
|
6362
|
+
* 7天bot试用标识 1 试用 0 没有试用
|
|
6363
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6364
|
+
*/
|
|
6365
|
+
IsBotTrial?: number
|
|
6274
6366
|
}
|
|
6275
6367
|
|
|
6276
6368
|
/**
|
|
@@ -7682,7 +7774,32 @@ export interface DescribeDomainRulesResponse {
|
|
|
7682
7774
|
/**
|
|
7683
7775
|
* DescribeCCRuleList请求参数结构体
|
|
7684
7776
|
*/
|
|
7685
|
-
export
|
|
7777
|
+
export interface DescribeCCRuleListRequest {
|
|
7778
|
+
/**
|
|
7779
|
+
* 需要查询的API所属的域名
|
|
7780
|
+
*/
|
|
7781
|
+
Domain: string
|
|
7782
|
+
/**
|
|
7783
|
+
* 偏移
|
|
7784
|
+
*/
|
|
7785
|
+
Offset: number
|
|
7786
|
+
/**
|
|
7787
|
+
* 容量
|
|
7788
|
+
*/
|
|
7789
|
+
Limit: number
|
|
7790
|
+
/**
|
|
7791
|
+
* 目前支持根据ts_version排序
|
|
7792
|
+
*/
|
|
7793
|
+
By: string
|
|
7794
|
+
/**
|
|
7795
|
+
* 过滤数组,name可以是如下的值: RuleID,ParamName,Url,Action,Method,Source,Status
|
|
7796
|
+
*/
|
|
7797
|
+
Filters?: Array<FiltersItemNew>
|
|
7798
|
+
/**
|
|
7799
|
+
* asc或者desc
|
|
7800
|
+
*/
|
|
7801
|
+
Order?: string
|
|
7802
|
+
}
|
|
7686
7803
|
|
|
7687
7804
|
/**
|
|
7688
7805
|
* DescribeDomainVerifyResult返回参数结构体
|
|
@@ -5728,7 +5728,7 @@ export interface DeleteDataSourcesResponse {
|
|
|
5728
5728
|
* 是否删除成功
|
|
5729
5729
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5730
5730
|
*/
|
|
5731
|
-
Data
|
|
5731
|
+
Data?: boolean
|
|
5732
5732
|
/**
|
|
5733
5733
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
5734
5734
|
*/
|
|
@@ -5951,6 +5951,10 @@ export interface DeleteDataSourcesRequest {
|
|
|
5951
5951
|
* id列表
|
|
5952
5952
|
*/
|
|
5953
5953
|
Ids: Array<number | bigint>
|
|
5954
|
+
/**
|
|
5955
|
+
* 项目id
|
|
5956
|
+
*/
|
|
5957
|
+
ProjectId?: string
|
|
5954
5958
|
}
|
|
5955
5959
|
|
|
5956
5960
|
/**
|
|
@@ -7859,6 +7863,10 @@ export interface DescribeDsFolderTreeRequest {
|
|
|
7859
7863
|
* 是否包含任务
|
|
7860
7864
|
*/
|
|
7861
7865
|
IncludeTask?: boolean
|
|
7866
|
+
/**
|
|
7867
|
+
* 是否包含虚拟任务,当 IncludeTask 为 true 的时候,该参数才生效,默认为 true
|
|
7868
|
+
*/
|
|
7869
|
+
IncludeVirtualTask?: boolean
|
|
7862
7870
|
}
|
|
7863
7871
|
|
|
7864
7872
|
/**
|
|
@@ -14974,7 +14982,7 @@ export interface ModifyDataSourceResponse {
|
|
|
14974
14982
|
* 是否成功
|
|
14975
14983
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
14976
14984
|
*/
|
|
14977
|
-
Data
|
|
14985
|
+
Data?: boolean
|
|
14978
14986
|
/**
|
|
14979
14987
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
14980
14988
|
*/
|
|
@@ -16203,6 +16211,10 @@ export interface ModifyDataSourceRequest {
|
|
|
16203
16211
|
* cos region
|
|
16204
16212
|
*/
|
|
16205
16213
|
COSRegion?: string
|
|
16214
|
+
/**
|
|
16215
|
+
* 操作项目id
|
|
16216
|
+
*/
|
|
16217
|
+
ProjectId?: string
|
|
16206
16218
|
}
|
|
16207
16219
|
|
|
16208
16220
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const sdkVersion = "4.0.
|
|
1
|
+
export declare const sdkVersion = "4.0.724";
|
|
@@ -120,11 +120,12 @@ export interface LogoRect {
|
|
|
120
120
|
export interface ResultConfig {
|
|
121
121
|
/**
|
|
122
122
|
* 生成图分辨率
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
|
|
124
|
+
智能文生图支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3)、1080:1920(9:16)、1920:1080(16:9)
|
|
125
|
+
|
|
126
|
+
智能图生图支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)
|
|
127
|
+
|
|
128
|
+
不传默认使用768:768
|
|
128
129
|
*/
|
|
129
130
|
Resolution?: string;
|
|
130
131
|
}
|
|
@@ -152,6 +153,9 @@ export interface TextToImageRequest {
|
|
|
152
153
|
Styles?: Array<string>;
|
|
153
154
|
/**
|
|
154
155
|
* 生成图结果的配置,包括输出图片分辨率和尺寸等。
|
|
156
|
+
|
|
157
|
+
支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768。
|
|
158
|
+
|
|
155
159
|
*/
|
|
156
160
|
ResultConfig?: ResultConfig;
|
|
157
161
|
/**
|
|
@@ -12,7 +12,7 @@ export declare class Client extends AbstractClient {
|
|
|
12
12
|
*/
|
|
13
13
|
ApplyConcurrent(req: ApplyConcurrentRequest, cb?: (error: string, rep: ApplyConcurrentResponse) => void): Promise<ApplyConcurrentResponse>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* 销毁会话。如果该会话开启了云端推流,那么销毁会话时会结束云端推流。
|
|
16
16
|
*/
|
|
17
17
|
DestroySession(req: DestroySessionRequest, cb?: (error: string, rep: DestroySessionResponse) => void): Promise<DestroySessionResponse>;
|
|
18
18
|
/**
|
|
@@ -34,7 +34,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
34
34
|
return this.request("ApplyConcurrent", req, cb);
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* 销毁会话。如果该会话开启了云端推流,那么销毁会话时会结束云端推流。
|
|
38
38
|
*/
|
|
39
39
|
async DestroySession(req, cb) {
|
|
40
40
|
return this.request("DestroySession", req, cb);
|