tencentcloud-sdk-nodejs 4.0.732 → 4.0.733
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 +42 -0
- package/SERVICE_CHANGELOG.md +66 -220
- package/package.json +1 -1
- package/products.md +2 -2
- package/src/common/sdk_version.ts +1 -1
- package/src/services/ams/index.ts +2 -2
- package/src/services/bma/index.ts +2 -2
- package/src/services/dbbrain/index.ts +2 -2
- package/src/services/eis/index.ts +2 -2
- package/src/services/iai/index.ts +2 -2
- package/src/services/iotcloud/index.ts +2 -2
- package/src/services/iotvideo/index.ts +4 -4
- package/src/services/mgobe/index.ts +2 -2
- package/src/services/mongodb/index.ts +2 -2
- package/src/services/organization/index.ts +2 -2
- package/src/services/tbp/index.ts +2 -2
- package/src/services/tem/index.ts +2 -2
- package/src/services/teo/v20220901/teo_models.ts +2 -2
- package/src/services/thpc/index.ts +2 -2
- package/src/services/tione/index.ts +2 -2
- package/src/services/vm/index.ts +2 -2
- package/src/services/waf/v20180125/waf_client.ts +30 -18
- package/src/services/waf/v20180125/waf_models.ts +176 -66
- 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/bma/index.d.ts +4 -4
- package/tencentcloud/services/bma/index.js +2 -2
- package/tencentcloud/services/dbbrain/index.d.ts +4 -4
- package/tencentcloud/services/dbbrain/index.js +2 -2
- package/tencentcloud/services/eis/index.d.ts +4 -4
- package/tencentcloud/services/eis/index.js +2 -2
- package/tencentcloud/services/iai/index.d.ts +4 -4
- package/tencentcloud/services/iai/index.js +2 -2
- package/tencentcloud/services/iotcloud/index.d.ts +4 -4
- package/tencentcloud/services/iotcloud/index.js +2 -2
- package/tencentcloud/services/iotvideo/index.d.ts +6 -6
- package/tencentcloud/services/iotvideo/index.js +4 -4
- package/tencentcloud/services/mgobe/index.d.ts +4 -4
- package/tencentcloud/services/mgobe/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/tbp/index.d.ts +4 -4
- package/tencentcloud/services/tbp/index.js +2 -2
- package/tencentcloud/services/tem/index.d.ts +4 -4
- package/tencentcloud/services/tem/index.js +2 -2
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +2 -2
- 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/vm/index.d.ts +4 -4
- package/tencentcloud/services/vm/index.js +2 -2
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +10 -8
- package/tencentcloud/services/waf/v20180125/waf_client.js +13 -9
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +170 -64
- package/test/waf.v20180125.test.js +20 -10
|
@@ -1957,19 +1957,6 @@ export interface DeleteSessionResponse {
|
|
|
1957
1957
|
*/
|
|
1958
1958
|
RequestId?: string;
|
|
1959
1959
|
}
|
|
1960
|
-
/**
|
|
1961
|
-
* ModifyWafAutoDenyStatus返回参数结构体
|
|
1962
|
-
*/
|
|
1963
|
-
export interface ModifyWafAutoDenyStatusResponse {
|
|
1964
|
-
/**
|
|
1965
|
-
* WAF 自动封禁配置项
|
|
1966
|
-
*/
|
|
1967
|
-
WafAutoDenyDetails?: AutoDenyDetail;
|
|
1968
|
-
/**
|
|
1969
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1970
|
-
*/
|
|
1971
|
-
RequestId?: string;
|
|
1972
|
-
}
|
|
1973
1960
|
/**
|
|
1974
1961
|
* DescribeAccessIndex返回参数结构体
|
|
1975
1962
|
*/
|
|
@@ -2544,6 +2531,20 @@ export interface AccessRuleInfo {
|
|
|
2544
2531
|
*/
|
|
2545
2532
|
Tag: AccessRuleTagInfo;
|
|
2546
2533
|
}
|
|
2534
|
+
/**
|
|
2535
|
+
* CC规则总览
|
|
2536
|
+
*/
|
|
2537
|
+
export interface CCRuleLists {
|
|
2538
|
+
/**
|
|
2539
|
+
* 总数
|
|
2540
|
+
*/
|
|
2541
|
+
TotalCount: number;
|
|
2542
|
+
/**
|
|
2543
|
+
* 规则
|
|
2544
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2545
|
+
*/
|
|
2546
|
+
Res: Array<CCRuleItems>;
|
|
2547
|
+
}
|
|
2547
2548
|
/**
|
|
2548
2549
|
* PostAttackDownloadTask请求参数结构体
|
|
2549
2550
|
*/
|
|
@@ -2615,13 +2616,17 @@ export interface TLSCiphers {
|
|
|
2615
2616
|
CipherName: string;
|
|
2616
2617
|
}
|
|
2617
2618
|
/**
|
|
2618
|
-
*
|
|
2619
|
+
* 响应体的返回码
|
|
2619
2620
|
*/
|
|
2620
|
-
export interface
|
|
2621
|
+
export interface ResponseCode {
|
|
2622
|
+
/**
|
|
2623
|
+
* 如果成功则返回Success,失败则返回云api定义的错误码
|
|
2624
|
+
*/
|
|
2625
|
+
Code: string;
|
|
2621
2626
|
/**
|
|
2622
|
-
* WAF
|
|
2627
|
+
* 如果成功则返回Success,失败则返回WAF定义的二级错误码
|
|
2623
2628
|
*/
|
|
2624
|
-
|
|
2629
|
+
Message: string;
|
|
2625
2630
|
}
|
|
2626
2631
|
/**
|
|
2627
2632
|
* ModifyAccessPeriod返回参数结构体
|
|
@@ -2878,17 +2883,6 @@ export interface ApiPkg {
|
|
|
2878
2883
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2879
2884
|
*/
|
|
2880
2885
|
BillingItem?: string;
|
|
2881
|
-
/**
|
|
2882
|
-
* 1 API安全6折
|
|
2883
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2884
|
-
*/
|
|
2885
|
-
APICPWaf?: number;
|
|
2886
|
-
/**
|
|
2887
|
-
* 1 表示5折折扣
|
|
2888
|
-
2 表示4折折扣
|
|
2889
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2890
|
-
*/
|
|
2891
|
-
APINPWaf?: number;
|
|
2892
2886
|
/**
|
|
2893
2887
|
* api安全7天试用标识。1试用。0没试用
|
|
2894
2888
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -4281,6 +4275,20 @@ export interface IpAccessControlItem {
|
|
|
4281
4275
|
*/
|
|
4282
4276
|
ValidStatus?: number;
|
|
4283
4277
|
}
|
|
4278
|
+
/**
|
|
4279
|
+
* UpsertCCAutoStatus返回参数结构体
|
|
4280
|
+
*/
|
|
4281
|
+
export interface UpsertCCAutoStatusResponse {
|
|
4282
|
+
/**
|
|
4283
|
+
* 正常情况为null
|
|
4284
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4285
|
+
*/
|
|
4286
|
+
Data?: string;
|
|
4287
|
+
/**
|
|
4288
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4289
|
+
*/
|
|
4290
|
+
RequestId?: string;
|
|
4291
|
+
}
|
|
4284
4292
|
/**
|
|
4285
4293
|
* ModifyGenerateDeals返回参数结构体
|
|
4286
4294
|
*/
|
|
@@ -4872,33 +4880,13 @@ export interface CacheUrlItem {
|
|
|
4872
4880
|
Status: string;
|
|
4873
4881
|
}
|
|
4874
4882
|
/**
|
|
4875
|
-
*
|
|
4883
|
+
* DescribeCCAutoStatus请求参数结构体
|
|
4876
4884
|
*/
|
|
4877
|
-
export interface
|
|
4885
|
+
export interface DescribeCCAutoStatusRequest {
|
|
4878
4886
|
/**
|
|
4879
|
-
*
|
|
4880
|
-
*/
|
|
4881
|
-
Name: string;
|
|
4882
|
-
/**
|
|
4883
|
-
* 优先级
|
|
4884
|
-
*/
|
|
4885
|
-
SortId: string;
|
|
4886
|
-
/**
|
|
4887
|
-
* 过期时间
|
|
4888
|
-
*/
|
|
4889
|
-
ExpireTime: string;
|
|
4890
|
-
/**
|
|
4891
|
-
* 策略详情
|
|
4892
|
-
*/
|
|
4893
|
-
Strategies: Array<Strategy>;
|
|
4894
|
-
/**
|
|
4895
|
-
* 需要添加策略的域名
|
|
4887
|
+
* 域名
|
|
4896
4888
|
*/
|
|
4897
4889
|
Domain: string;
|
|
4898
|
-
/**
|
|
4899
|
-
* 放行的详情
|
|
4900
|
-
*/
|
|
4901
|
-
Bypass: string;
|
|
4902
4890
|
}
|
|
4903
4891
|
/**
|
|
4904
4892
|
* DescribeDomainDetailsClb请求参数结构体
|
|
@@ -5691,6 +5679,11 @@ export interface DescribeCCRuleRequest {
|
|
|
5691
5679
|
* DescribeCCRuleList返回参数结构体
|
|
5692
5680
|
*/
|
|
5693
5681
|
export interface DescribeCCRuleListResponse {
|
|
5682
|
+
/**
|
|
5683
|
+
* 查询到的CC规则的列表
|
|
5684
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5685
|
+
*/
|
|
5686
|
+
Data?: CCRuleLists;
|
|
5694
5687
|
/**
|
|
5695
5688
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
5696
5689
|
*/
|
|
@@ -5763,6 +5756,35 @@ export interface DescribeTopAttackDomainResponse {
|
|
|
5763
5756
|
*/
|
|
5764
5757
|
RequestId?: string;
|
|
5765
5758
|
}
|
|
5759
|
+
/**
|
|
5760
|
+
* AddCustomWhiteRule请求参数结构体
|
|
5761
|
+
*/
|
|
5762
|
+
export interface AddCustomWhiteRuleRequest {
|
|
5763
|
+
/**
|
|
5764
|
+
* 规则名称
|
|
5765
|
+
*/
|
|
5766
|
+
Name: string;
|
|
5767
|
+
/**
|
|
5768
|
+
* 优先级
|
|
5769
|
+
*/
|
|
5770
|
+
SortId: string;
|
|
5771
|
+
/**
|
|
5772
|
+
* 过期时间
|
|
5773
|
+
*/
|
|
5774
|
+
ExpireTime: string;
|
|
5775
|
+
/**
|
|
5776
|
+
* 策略详情
|
|
5777
|
+
*/
|
|
5778
|
+
Strategies: Array<Strategy>;
|
|
5779
|
+
/**
|
|
5780
|
+
* 需要添加策略的域名
|
|
5781
|
+
*/
|
|
5782
|
+
Domain: string;
|
|
5783
|
+
/**
|
|
5784
|
+
* 放行的详情
|
|
5785
|
+
*/
|
|
5786
|
+
Bypass: string;
|
|
5787
|
+
}
|
|
5766
5788
|
/**
|
|
5767
5789
|
* 计费下单接口出入参Goods
|
|
5768
5790
|
*/
|
|
@@ -6111,6 +6133,23 @@ export interface BotPkg {
|
|
|
6111
6133
|
*/
|
|
6112
6134
|
IsBotTrial?: number;
|
|
6113
6135
|
}
|
|
6136
|
+
/**
|
|
6137
|
+
* UpsertCCAutoStatus请求参数结构体
|
|
6138
|
+
*/
|
|
6139
|
+
export interface UpsertCCAutoStatusRequest {
|
|
6140
|
+
/**
|
|
6141
|
+
* 域名
|
|
6142
|
+
*/
|
|
6143
|
+
Domain: string;
|
|
6144
|
+
/**
|
|
6145
|
+
* 状态值
|
|
6146
|
+
*/
|
|
6147
|
+
Value: number;
|
|
6148
|
+
/**
|
|
6149
|
+
* 版本:clb-waf, spart-waf
|
|
6150
|
+
*/
|
|
6151
|
+
Edition?: string;
|
|
6152
|
+
}
|
|
6114
6153
|
/**
|
|
6115
6154
|
* SearchAttackLog返回参数结构体
|
|
6116
6155
|
*/
|
|
@@ -6538,6 +6577,73 @@ export interface BotStatPointItem {
|
|
|
6538
6577
|
* DescribeCiphersDetail请求参数结构体
|
|
6539
6578
|
*/
|
|
6540
6579
|
export declare type DescribeCiphersDetailRequest = null;
|
|
6580
|
+
/**
|
|
6581
|
+
* CC规则详情
|
|
6582
|
+
*/
|
|
6583
|
+
export interface CCRuleItems {
|
|
6584
|
+
/**
|
|
6585
|
+
* 名字
|
|
6586
|
+
*/
|
|
6587
|
+
Name?: string;
|
|
6588
|
+
/**
|
|
6589
|
+
* 状态
|
|
6590
|
+
*/
|
|
6591
|
+
Status?: number;
|
|
6592
|
+
/**
|
|
6593
|
+
* 模式
|
|
6594
|
+
*/
|
|
6595
|
+
Advance?: number;
|
|
6596
|
+
/**
|
|
6597
|
+
* 限制
|
|
6598
|
+
*/
|
|
6599
|
+
Limit?: number;
|
|
6600
|
+
/**
|
|
6601
|
+
* 范围
|
|
6602
|
+
*/
|
|
6603
|
+
Interval?: number;
|
|
6604
|
+
/**
|
|
6605
|
+
* 网址
|
|
6606
|
+
*/
|
|
6607
|
+
Url?: string;
|
|
6608
|
+
/**
|
|
6609
|
+
* 匹配类型
|
|
6610
|
+
*/
|
|
6611
|
+
MatchFunc?: number;
|
|
6612
|
+
/**
|
|
6613
|
+
* 动作
|
|
6614
|
+
*/
|
|
6615
|
+
ActionType?: number;
|
|
6616
|
+
/**
|
|
6617
|
+
* 优先级
|
|
6618
|
+
*/
|
|
6619
|
+
Priority?: number;
|
|
6620
|
+
/**
|
|
6621
|
+
* 有效时间
|
|
6622
|
+
*/
|
|
6623
|
+
ValidTime?: number;
|
|
6624
|
+
/**
|
|
6625
|
+
* 版本
|
|
6626
|
+
*/
|
|
6627
|
+
TsVersion?: number;
|
|
6628
|
+
/**
|
|
6629
|
+
* 规则详情
|
|
6630
|
+
*/
|
|
6631
|
+
Options?: string;
|
|
6632
|
+
/**
|
|
6633
|
+
* 规则ID
|
|
6634
|
+
*/
|
|
6635
|
+
RuleId?: number;
|
|
6636
|
+
/**
|
|
6637
|
+
* 事件id
|
|
6638
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6639
|
+
*/
|
|
6640
|
+
EventId?: string;
|
|
6641
|
+
/**
|
|
6642
|
+
* 关联的Session规则
|
|
6643
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6644
|
+
*/
|
|
6645
|
+
SessionApplied?: Array<number | bigint>;
|
|
6646
|
+
}
|
|
6541
6647
|
/**
|
|
6542
6648
|
* ModifyDomainIpv6Status请求参数结构体
|
|
6543
6649
|
*/
|
|
@@ -7195,6 +7301,19 @@ export interface AttackLogInfo {
|
|
|
7195
7301
|
*/
|
|
7196
7302
|
TimeStamp: string;
|
|
7197
7303
|
}
|
|
7304
|
+
/**
|
|
7305
|
+
* DescribeCCAutoStatus返回参数结构体
|
|
7306
|
+
*/
|
|
7307
|
+
export interface DescribeCCAutoStatusResponse {
|
|
7308
|
+
/**
|
|
7309
|
+
* 配置状态
|
|
7310
|
+
*/
|
|
7311
|
+
AutoCCSwitch?: number;
|
|
7312
|
+
/**
|
|
7313
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
7314
|
+
*/
|
|
7315
|
+
RequestId?: string;
|
|
7316
|
+
}
|
|
7198
7317
|
/**
|
|
7199
7318
|
* DescribeAntiInfoLeakRules请求参数结构体
|
|
7200
7319
|
*/
|
|
@@ -7763,19 +7882,6 @@ export interface AutoDenyDetail {
|
|
|
7763
7882
|
*/
|
|
7764
7883
|
LastUpdateTime?: string;
|
|
7765
7884
|
}
|
|
7766
|
-
/**
|
|
7767
|
-
* 响应体的返回码
|
|
7768
|
-
*/
|
|
7769
|
-
export interface ResponseCode {
|
|
7770
|
-
/**
|
|
7771
|
-
* 如果成功则返回Success,失败则返回云api定义的错误码
|
|
7772
|
-
*/
|
|
7773
|
-
Code: string;
|
|
7774
|
-
/**
|
|
7775
|
-
* 如果成功则返回Success,失败则返回WAF定义的二级错误码
|
|
7776
|
-
*/
|
|
7777
|
-
Message: string;
|
|
7778
|
-
}
|
|
7779
7885
|
/**
|
|
7780
7886
|
* DescribeWebshellStatus返回参数结构体
|
|
7781
7887
|
*/
|
|
@@ -348,6 +348,16 @@ it("waf.v20180125.DescribeObjects", async function () {
|
|
|
348
348
|
}
|
|
349
349
|
})
|
|
350
350
|
|
|
351
|
+
it("waf.v20180125.UpsertCCAutoStatus", async function () {
|
|
352
|
+
try {
|
|
353
|
+
const data = await client.UpsertCCAutoStatus({})
|
|
354
|
+
expect(data).to.be.ok
|
|
355
|
+
} catch(error) {
|
|
356
|
+
expect(error.requestId).to.be.ok
|
|
357
|
+
expect(error.code).to.be.ok
|
|
358
|
+
}
|
|
359
|
+
})
|
|
360
|
+
|
|
351
361
|
it("waf.v20180125.DescribeRuleLimit", async function () {
|
|
352
362
|
try {
|
|
353
363
|
const data = await client.DescribeRuleLimit({})
|
|
@@ -408,16 +418,6 @@ it("waf.v20180125.GetAttackHistogram", async function () {
|
|
|
408
418
|
}
|
|
409
419
|
})
|
|
410
420
|
|
|
411
|
-
it("waf.v20180125.ModifyWafAutoDenyStatus", async function () {
|
|
412
|
-
try {
|
|
413
|
-
const data = await client.ModifyWafAutoDenyStatus({})
|
|
414
|
-
expect(data).to.be.ok
|
|
415
|
-
} catch(error) {
|
|
416
|
-
expect(error.requestId).to.be.ok
|
|
417
|
-
expect(error.code).to.be.ok
|
|
418
|
-
}
|
|
419
|
-
})
|
|
420
|
-
|
|
421
421
|
it("waf.v20180125.ModifyAccessPeriod", async function () {
|
|
422
422
|
try {
|
|
423
423
|
const data = await client.ModifyAccessPeriod({})
|
|
@@ -1268,6 +1268,16 @@ it("waf.v20180125.UpsertSession", async function () {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
})
|
|
1270
1270
|
|
|
1271
|
+
it("waf.v20180125.DescribeCCAutoStatus", async function () {
|
|
1272
|
+
try {
|
|
1273
|
+
const data = await client.DescribeCCAutoStatus({})
|
|
1274
|
+
expect(data).to.be.ok
|
|
1275
|
+
} catch(error) {
|
|
1276
|
+
expect(error.requestId).to.be.ok
|
|
1277
|
+
expect(error.code).to.be.ok
|
|
1278
|
+
}
|
|
1279
|
+
})
|
|
1280
|
+
|
|
1271
1281
|
it("waf.v20180125.DescribeUserSignatureRule", async function () {
|
|
1272
1282
|
try {
|
|
1273
1283
|
const data = await client.DescribeUserSignatureRule({})
|