tencentcloud-sdk-nodejs 4.0.583 → 4.0.585
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 +208 -0
- package/SERVICE_CHANGELOG.md +233 -279
- package/package.json +1 -1
- package/products.md +25 -25
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cfs/v20190719/cfs_models.ts +8 -8
- package/src/services/ess/v20201111/ess_models.ts +1 -1
- package/src/services/gme/v20180711/gme_client.ts +4 -2
- package/src/services/gme/v20180711/gme_models.ts +57 -28
- package/src/services/goosefs/v20220519/goosefs_models.ts +10 -0
- package/src/services/lcic/v20220817/lcic_models.ts +2 -2
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +12 -2
- package/src/services/ocr/v20181119/ocr_client.ts +33 -9
- package/src/services/ocr/v20181119/ocr_models.ts +143 -19
- package/src/services/scf/v20180416/scf_models.ts +7 -1
- package/src/services/tem/v20210701/tem_models.ts +6 -1
- package/src/services/tione/v20211111/tione_models.ts +1 -1
- package/src/services/tke/v20180525/tke_client.ts +1 -1
- package/src/services/tke/v20180525/tke_models.ts +16 -6
- package/src/services/trtc/v20190722/trtc_client.ts +3 -3
- package/src/services/trtc/v20190722/trtc_models.ts +2 -2
- package/src/services/tts/v20190823/tts_models.ts +10 -0
- package/src/services/vod/v20180717/vod_models.ts +7 -7
- package/src/services/vpc/v20170312/vpc_models.ts +1 -1
- package/src/services/waf/v20180125/waf_client.ts +44 -8
- package/src/services/waf/v20180125/waf_models.ts +158 -17
- package/src/services/yinsuda/v20220527/yinsuda_models.ts +16 -4
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +8 -8
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +1 -1
- package/tencentcloud/services/gme/v20180711/gme_client.d.ts +1 -1
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +49 -24
- package/tencentcloud/services/goosefs/v20220519/goosefs_models.d.ts +8 -0
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +2 -2
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +11 -2
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +12 -4
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +16 -4
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +123 -17
- package/tencentcloud/services/scf/v20180416/scf_models.d.ts +6 -1
- package/tencentcloud/services/tem/v20210701/tem_models.d.ts +5 -1
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +1 -1
- package/tencentcloud/services/tke/v20180525/tke_client.d.ts +1 -1
- package/tencentcloud/services/tke/v20180525/tke_client.js +1 -1
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +14 -5
- package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +3 -3
- package/tencentcloud/services/trtc/v20190722/trtc_client.js +3 -3
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +2 -2
- package/tencentcloud/services/tts/v20190823/tts_models.d.ts +8 -0
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +7 -7
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +1 -1
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +15 -3
- package/tencentcloud/services/waf/v20180125/waf_client.js +21 -3
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +134 -15
- package/tencentcloud/services/yinsuda/v20220527/yinsuda_models.d.ts +14 -4
- package/test/ocr.v20181119.test.js +22 -2
- package/test/waf.v20180125.test.js +32 -2
|
@@ -208,6 +208,24 @@ export interface DescribeFlowTrendRequest {
|
|
|
208
208
|
* DescribeWafAutoDenyStatus请求参数结构体
|
|
209
209
|
*/
|
|
210
210
|
export declare type DescribeWafAutoDenyStatusRequest = null;
|
|
211
|
+
/**
|
|
212
|
+
* AddCustomWhiteRule返回参数结构体
|
|
213
|
+
*/
|
|
214
|
+
export interface AddCustomWhiteRuleResponse {
|
|
215
|
+
/**
|
|
216
|
+
* 操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败
|
|
217
|
+
*/
|
|
218
|
+
Success: ResponseCode;
|
|
219
|
+
/**
|
|
220
|
+
* 添加成功的规则ID
|
|
221
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
222
|
+
*/
|
|
223
|
+
RuleId: number;
|
|
224
|
+
/**
|
|
225
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
226
|
+
*/
|
|
227
|
+
RequestId?: string;
|
|
228
|
+
}
|
|
211
229
|
/**
|
|
212
230
|
* DescribeCustomWhiteRule返回参数结构体
|
|
213
231
|
*/
|
|
@@ -397,6 +415,21 @@ export interface ModifyDomainWhiteRuleRequest {
|
|
|
397
415
|
*/
|
|
398
416
|
Status: number;
|
|
399
417
|
}
|
|
418
|
+
/**
|
|
419
|
+
* Vip信息
|
|
420
|
+
*/
|
|
421
|
+
export interface VipInfo {
|
|
422
|
+
/**
|
|
423
|
+
* Virtual IP
|
|
424
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
425
|
+
*/
|
|
426
|
+
Vip?: string;
|
|
427
|
+
/**
|
|
428
|
+
* waf实例id
|
|
429
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
430
|
+
*/
|
|
431
|
+
InstanceId?: string;
|
|
432
|
+
}
|
|
400
433
|
/**
|
|
401
434
|
* DescribeAccessIndex接口的出参
|
|
402
435
|
*/
|
|
@@ -634,6 +667,19 @@ export interface SearchAttackLogRequest {
|
|
|
634
667
|
*/
|
|
635
668
|
Sort?: string;
|
|
636
669
|
}
|
|
670
|
+
/**
|
|
671
|
+
* DeleteCustomWhiteRule返回参数结构体
|
|
672
|
+
*/
|
|
673
|
+
export interface DeleteCustomWhiteRuleResponse {
|
|
674
|
+
/**
|
|
675
|
+
* 操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败
|
|
676
|
+
*/
|
|
677
|
+
Success: ResponseCode;
|
|
678
|
+
/**
|
|
679
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
680
|
+
*/
|
|
681
|
+
RequestId?: string;
|
|
682
|
+
}
|
|
637
683
|
/**
|
|
638
684
|
* AddCustomRule返回参数结构体
|
|
639
685
|
*/
|
|
@@ -686,7 +732,7 @@ export interface UpsertIpAccessControlRequest {
|
|
|
686
732
|
*/
|
|
687
733
|
Edition?: string;
|
|
688
734
|
/**
|
|
689
|
-
* 是否为多域名黑白名单,当为多域名的黑白名单时,取值为batch
|
|
735
|
+
* 是否为多域名黑白名单,当为多域名的黑白名单时,取值为batch,否则为空
|
|
690
736
|
*/
|
|
691
737
|
SourceType?: string;
|
|
692
738
|
}
|
|
@@ -782,6 +828,52 @@ export interface DescribeUserClbWafRegionsResponse {
|
|
|
782
828
|
*/
|
|
783
829
|
RequestId?: string;
|
|
784
830
|
}
|
|
831
|
+
/**
|
|
832
|
+
* ModifyCustomWhiteRule请求参数结构体
|
|
833
|
+
*/
|
|
834
|
+
export interface ModifyCustomWhiteRuleRequest {
|
|
835
|
+
/**
|
|
836
|
+
* 编辑的域名
|
|
837
|
+
*/
|
|
838
|
+
Domain: string;
|
|
839
|
+
/**
|
|
840
|
+
* 编辑的规则ID
|
|
841
|
+
*/
|
|
842
|
+
RuleId: number;
|
|
843
|
+
/**
|
|
844
|
+
* 编辑的规则名称
|
|
845
|
+
*/
|
|
846
|
+
RuleName: string;
|
|
847
|
+
/**
|
|
848
|
+
* 放行时是否继续执行其它检查逻辑,继续执行地域封禁防护:geoip、继续执行CC策略防护:cc、继续执行WEB应用防护:owasp、继续执行AI引擎防护:ai、继续执行信息防泄漏防护:antileakage。如果多个勾选那么以,串接。
|
|
849
|
+
*/
|
|
850
|
+
Bypass: string;
|
|
851
|
+
/**
|
|
852
|
+
* 优先级,1~100的整数,数字越小,代表这条规则的执行优先级越高。
|
|
853
|
+
*/
|
|
854
|
+
SortId: number;
|
|
855
|
+
/**
|
|
856
|
+
* 规则生效截止时间,0:永久生效,其它值为对应时间的时间戳。
|
|
857
|
+
*/
|
|
858
|
+
ExpireTime: number;
|
|
859
|
+
/**
|
|
860
|
+
* 匹配条件数组
|
|
861
|
+
*/
|
|
862
|
+
Strategies: Array<Strategy>;
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* DeleteCustomWhiteRule请求参数结构体
|
|
866
|
+
*/
|
|
867
|
+
export interface DeleteCustomWhiteRuleRequest {
|
|
868
|
+
/**
|
|
869
|
+
* 删除的域名
|
|
870
|
+
*/
|
|
871
|
+
Domain: string;
|
|
872
|
+
/**
|
|
873
|
+
* 删除的规则ID
|
|
874
|
+
*/
|
|
875
|
+
RuleId: number;
|
|
876
|
+
}
|
|
785
877
|
/**
|
|
786
878
|
* ModifyWafAutoDenyStatus请求参数结构体
|
|
787
879
|
*/
|
|
@@ -1530,6 +1622,19 @@ export interface PostAttackDownloadTaskRequest {
|
|
|
1530
1622
|
*/
|
|
1531
1623
|
Sort?: string;
|
|
1532
1624
|
}
|
|
1625
|
+
/**
|
|
1626
|
+
* ModifyCustomWhiteRule返回参数结构体
|
|
1627
|
+
*/
|
|
1628
|
+
export interface ModifyCustomWhiteRuleResponse {
|
|
1629
|
+
/**
|
|
1630
|
+
* 操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败
|
|
1631
|
+
*/
|
|
1632
|
+
Success: ResponseCode;
|
|
1633
|
+
/**
|
|
1634
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1635
|
+
*/
|
|
1636
|
+
RequestId?: string;
|
|
1637
|
+
}
|
|
1533
1638
|
/**
|
|
1534
1639
|
* DescribePolicyStatus请求参数结构体
|
|
1535
1640
|
*/
|
|
@@ -2876,19 +2981,17 @@ export interface DescribeDomainWhiteRulesResponse {
|
|
|
2876
2981
|
RequestId?: string;
|
|
2877
2982
|
}
|
|
2878
2983
|
/**
|
|
2879
|
-
*
|
|
2984
|
+
* DescribeWafThreatenIntelligence返回参数结构体
|
|
2880
2985
|
*/
|
|
2881
|
-
export interface
|
|
2986
|
+
export interface DescribeWafThreatenIntelligenceResponse {
|
|
2882
2987
|
/**
|
|
2883
|
-
*
|
|
2884
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2988
|
+
* WAF 威胁情报封禁信息
|
|
2885
2989
|
*/
|
|
2886
|
-
|
|
2990
|
+
WafThreatenIntelligenceDetails?: WafThreatenIntelligenceDetails;
|
|
2887
2991
|
/**
|
|
2888
|
-
*
|
|
2889
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
2992
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2890
2993
|
*/
|
|
2891
|
-
|
|
2994
|
+
RequestId?: string;
|
|
2892
2995
|
}
|
|
2893
2996
|
/**
|
|
2894
2997
|
* DeleteAttackDownloadRecord请求参数结构体
|
|
@@ -2900,17 +3003,33 @@ export interface DeleteAttackDownloadRecordRequest {
|
|
|
2900
3003
|
Id: number;
|
|
2901
3004
|
}
|
|
2902
3005
|
/**
|
|
2903
|
-
*
|
|
3006
|
+
* AddCustomWhiteRule请求参数结构体
|
|
2904
3007
|
*/
|
|
2905
|
-
export interface
|
|
3008
|
+
export interface AddCustomWhiteRuleRequest {
|
|
2906
3009
|
/**
|
|
2907
|
-
*
|
|
3010
|
+
* 规则名称
|
|
2908
3011
|
*/
|
|
2909
|
-
|
|
3012
|
+
Name: string;
|
|
2910
3013
|
/**
|
|
2911
|
-
*
|
|
3014
|
+
* 优先级
|
|
2912
3015
|
*/
|
|
2913
|
-
|
|
3016
|
+
SortId: string;
|
|
3017
|
+
/**
|
|
3018
|
+
* 过期时间
|
|
3019
|
+
*/
|
|
3020
|
+
ExpireTime: string;
|
|
3021
|
+
/**
|
|
3022
|
+
* 策略详情
|
|
3023
|
+
*/
|
|
3024
|
+
Strategies: Array<Strategy>;
|
|
3025
|
+
/**
|
|
3026
|
+
* 需要添加策略的域名
|
|
3027
|
+
*/
|
|
3028
|
+
Domain: string;
|
|
3029
|
+
/**
|
|
3030
|
+
* 放行的详情
|
|
3031
|
+
*/
|
|
3032
|
+
Bypass: string;
|
|
2914
3033
|
}
|
|
2915
3034
|
/**
|
|
2916
3035
|
* AddDomainWhiteRule请求参数结构体
|
|
@@ -187,6 +187,11 @@ export interface DescribeKTVPlaylistDetailRequest {
|
|
|
187
187
|
<li>Sing:可唱。</li>
|
|
188
188
|
*/
|
|
189
189
|
RightFilters?: Array<string>;
|
|
190
|
+
/**
|
|
191
|
+
* 播放场景。默认为Chat
|
|
192
|
+
<li>Live:直播</li><li>Chat:语聊</li>
|
|
193
|
+
*/
|
|
194
|
+
PlayScene?: string;
|
|
190
195
|
}
|
|
191
196
|
/**
|
|
192
197
|
* SyncKTVRobotCommand返回参数结构体
|
|
@@ -365,11 +370,11 @@ export interface DescribeKTVPlaylistDetailResponse {
|
|
|
365
370
|
/**
|
|
366
371
|
* 歌曲信息列表。
|
|
367
372
|
*/
|
|
368
|
-
KTVMusicInfoSet
|
|
373
|
+
KTVMusicInfoSet?: Array<KTVMusicBaseInfo>;
|
|
369
374
|
/**
|
|
370
375
|
* 滚动标记,用于设置下次请求的 ScrollToken 参数。
|
|
371
376
|
*/
|
|
372
|
-
ScrollToken
|
|
377
|
+
ScrollToken?: string;
|
|
373
378
|
/**
|
|
374
379
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
375
380
|
*/
|
|
@@ -663,11 +668,11 @@ export interface SearchKTVMusicsResponse {
|
|
|
663
668
|
/**
|
|
664
669
|
* 歌曲信息列表。
|
|
665
670
|
*/
|
|
666
|
-
KTVMusicInfoSet
|
|
671
|
+
KTVMusicInfoSet?: Array<KTVMusicBaseInfo>;
|
|
667
672
|
/**
|
|
668
673
|
* 滚动标记,用于设置下次请求的 ScrollToken 参数。
|
|
669
674
|
*/
|
|
670
|
-
ScrollToken
|
|
675
|
+
ScrollToken?: string;
|
|
671
676
|
/**
|
|
672
677
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
673
678
|
*/
|
|
@@ -990,6 +995,11 @@ export interface SearchKTVMusicsRequest {
|
|
|
990
995
|
<li>Sing:可唱。</li>
|
|
991
996
|
*/
|
|
992
997
|
RightFilters?: Array<string>;
|
|
998
|
+
/**
|
|
999
|
+
* 播放场景。默认为Chat
|
|
1000
|
+
<li>Live:直播</li><li>Chat:语聊</li>
|
|
1001
|
+
*/
|
|
1002
|
+
PlayScene?: string;
|
|
993
1003
|
}
|
|
994
1004
|
/**
|
|
995
1005
|
* 播放指令输入参数
|
|
@@ -258,6 +258,16 @@ it("ocr.v20181119.PropOwnerCertOCR", async function () {
|
|
|
258
258
|
}
|
|
259
259
|
})
|
|
260
260
|
|
|
261
|
+
it("ocr.v20181119.RecognizeThaiIDCardOCR", async function () {
|
|
262
|
+
try {
|
|
263
|
+
const data = await client.RecognizeThaiIDCardOCR({})
|
|
264
|
+
expect(data).to.be.ok
|
|
265
|
+
} catch(error) {
|
|
266
|
+
expect(error.requestId).to.be.ok
|
|
267
|
+
expect(error.code).to.be.ok
|
|
268
|
+
}
|
|
269
|
+
})
|
|
270
|
+
|
|
261
271
|
it("ocr.v20181119.BizLicenseOCR", async function () {
|
|
262
272
|
try {
|
|
263
273
|
const data = await client.BizLicenseOCR({})
|
|
@@ -698,6 +708,16 @@ it("ocr.v20181119.MainlandPermitOCR", async function () {
|
|
|
698
708
|
}
|
|
699
709
|
})
|
|
700
710
|
|
|
711
|
+
it("ocr.v20181119.RecognizePhilippinesSssIDOCR", async function () {
|
|
712
|
+
try {
|
|
713
|
+
const data = await client.RecognizePhilippinesSssIDOCR({})
|
|
714
|
+
expect(data).to.be.ok
|
|
715
|
+
} catch(error) {
|
|
716
|
+
expect(error.requestId).to.be.ok
|
|
717
|
+
expect(error.code).to.be.ok
|
|
718
|
+
}
|
|
719
|
+
})
|
|
720
|
+
|
|
701
721
|
it("ocr.v20181119.FormulaOCR", async function () {
|
|
702
722
|
try {
|
|
703
723
|
const data = await client.FormulaOCR({})
|
|
@@ -808,9 +828,9 @@ it("ocr.v20181119.RideHailingTransportLicenseOCR", async function () {
|
|
|
808
828
|
}
|
|
809
829
|
})
|
|
810
830
|
|
|
811
|
-
it("ocr.v20181119.
|
|
831
|
+
it("ocr.v20181119.RecognizePhilippinesTinIDOCR", async function () {
|
|
812
832
|
try {
|
|
813
|
-
const data = await client.
|
|
833
|
+
const data = await client.RecognizePhilippinesTinIDOCR({})
|
|
814
834
|
expect(data).to.be.ok
|
|
815
835
|
} catch(error) {
|
|
816
836
|
expect(error.requestId).to.be.ok
|
|
@@ -238,6 +238,26 @@ it("waf.v20180125.DescribeWafAutoDenyStatus", async function () {
|
|
|
238
238
|
}
|
|
239
239
|
})
|
|
240
240
|
|
|
241
|
+
it("waf.v20180125.DeleteCustomWhiteRule", async function () {
|
|
242
|
+
try {
|
|
243
|
+
const data = await client.DeleteCustomWhiteRule({})
|
|
244
|
+
expect(data).to.be.ok
|
|
245
|
+
} catch(error) {
|
|
246
|
+
expect(error.requestId).to.be.ok
|
|
247
|
+
expect(error.code).to.be.ok
|
|
248
|
+
}
|
|
249
|
+
})
|
|
250
|
+
|
|
251
|
+
it("waf.v20180125.ModifyCustomWhiteRule", async function () {
|
|
252
|
+
try {
|
|
253
|
+
const data = await client.ModifyCustomWhiteRule({})
|
|
254
|
+
expect(data).to.be.ok
|
|
255
|
+
} catch(error) {
|
|
256
|
+
expect(error.requestId).to.be.ok
|
|
257
|
+
expect(error.code).to.be.ok
|
|
258
|
+
}
|
|
259
|
+
})
|
|
260
|
+
|
|
241
261
|
it("waf.v20180125.GetAttackDownloadRecords", async function () {
|
|
242
262
|
try {
|
|
243
263
|
const data = await client.GetAttackDownloadRecords({})
|
|
@@ -308,9 +328,9 @@ it("waf.v20180125.ModifyWafThreatenIntelligence", async function () {
|
|
|
308
328
|
}
|
|
309
329
|
})
|
|
310
330
|
|
|
311
|
-
it("waf.v20180125.
|
|
331
|
+
it("waf.v20180125.AddCustomWhiteRule", async function () {
|
|
312
332
|
try {
|
|
313
|
-
const data = await client.
|
|
333
|
+
const data = await client.AddCustomWhiteRule({})
|
|
314
334
|
expect(data).to.be.ok
|
|
315
335
|
} catch(error) {
|
|
316
336
|
expect(error.requestId).to.be.ok
|
|
@@ -408,6 +428,16 @@ it("waf.v20180125.DescribeDomainWhiteRules", async function () {
|
|
|
408
428
|
}
|
|
409
429
|
})
|
|
410
430
|
|
|
431
|
+
it("waf.v20180125.DescribeRuleLimit", async function () {
|
|
432
|
+
try {
|
|
433
|
+
const data = await client.DescribeRuleLimit({})
|
|
434
|
+
expect(data).to.be.ok
|
|
435
|
+
} catch(error) {
|
|
436
|
+
expect(error.requestId).to.be.ok
|
|
437
|
+
expect(error.code).to.be.ok
|
|
438
|
+
}
|
|
439
|
+
})
|
|
440
|
+
|
|
411
441
|
it("waf.v20180125.AddSpartaProtection", async function () {
|
|
412
442
|
try {
|
|
413
443
|
const data = await client.AddSpartaProtection({})
|