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.
Files changed (50) hide show
  1. package/CHANGELOG.md +254 -0
  2. package/SERVICE_CHANGELOG.md +342 -126
  3. package/package.json +1 -1
  4. package/products.md +16 -16
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/antiddos/v20200309/antiddos_models.ts +35 -26
  7. package/src/services/apigateway/v20180808/apigateway_models.ts +17 -13
  8. package/src/services/asr/v20190614/asr_client.ts +1 -1
  9. package/src/services/asr/v20190614/asr_models.ts +2 -2
  10. package/src/services/cdb/v20170320/cdb_models.ts +2 -2
  11. package/src/services/ckafka/v20190819/ckafka_models.ts +11 -7
  12. package/src/services/cls/v20201016/cls_client.ts +1 -1
  13. package/src/services/live/v20180801/live_models.ts +4 -4
  14. package/src/services/nlp/v20190408/nlp_client.ts +54 -5
  15. package/src/services/nlp/v20190408/nlp_models.ts +206 -32
  16. package/src/services/tbaas/v20180416/tbaas_client.ts +32 -16
  17. package/src/services/tdid/v20210519/tdid_client.ts +47 -50
  18. package/src/services/tdid/v20210519/tdid_models.ts +0 -121
  19. package/src/services/tts/v20190823/tts_models.ts +3 -3
  20. package/src/services/waf/v20180125/waf_client.ts +13 -0
  21. package/src/services/waf/v20180125/waf_models.ts +170 -0
  22. package/src/services/wedata/v20210820/wedata_models.ts +76 -5
  23. package/tencentcloud/common/sdk_version.d.ts +1 -1
  24. package/tencentcloud/common/sdk_version.js +1 -1
  25. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +35 -26
  26. package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +17 -13
  27. package/tencentcloud/services/asr/v20190614/asr_client.d.ts +1 -1
  28. package/tencentcloud/services/asr/v20190614/asr_client.js +1 -1
  29. package/tencentcloud/services/asr/v20190614/asr_models.d.ts +2 -2
  30. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +2 -2
  31. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +11 -7
  32. package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
  33. package/tencentcloud/services/cls/v20201016/cls_client.js +1 -1
  34. package/tencentcloud/services/live/v20180801/live_models.d.ts +4 -4
  35. package/tencentcloud/services/nlp/v20190408/nlp_client.d.ts +17 -1
  36. package/tencentcloud/services/nlp/v20190408/nlp_client.js +24 -0
  37. package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +197 -32
  38. package/tencentcloud/services/tbaas/v20180416/tbaas_client.d.ts +24 -8
  39. package/tencentcloud/services/tbaas/v20180416/tbaas_client.js +24 -8
  40. package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +38 -24
  41. package/tencentcloud/services/tdid/v20210519/tdid_client.js +37 -27
  42. package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +0 -116
  43. package/tencentcloud/services/tts/v20190823/tts_models.d.ts +3 -3
  44. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +5 -1
  45. package/tencentcloud/services/waf/v20180125/waf_client.js +6 -0
  46. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +167 -0
  47. package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +76 -5
  48. package/test/nlp.v20190408.test.js +40 -0
  49. package/test/tdid.v20210519.test.js +0 -20
  50. package/test/waf.v20180125.test.js +10 -0
@@ -607,13 +607,30 @@ export interface SourceObject {
607
607
  /**
608
608
  * 源字段详细类型,int、string
609
609
  注意:此字段可能返回 null,表示取不到有效值。
610
+ * @deprecated
610
611
  */
611
612
  SourceObjectDataTypeName?: string;
612
613
  /**
613
614
  * 源字段名称
614
615
  注意:此字段可能返回 null,表示取不到有效值。
616
+ * @deprecated
615
617
  */
616
618
  SourceObjectValue?: string;
619
+ /**
620
+ * 源字段详细类型,int、string
621
+ 注意:此字段可能返回 null,表示取不到有效值。
622
+ */
623
+ ObjectDataTypeName?: string;
624
+ /**
625
+ * 源字段名称
626
+ 注意:此字段可能返回 null,表示取不到有效值。
627
+ */
628
+ ObjectValue?: string;
629
+ /**
630
+ * 对象类型 1.常量 2.离线表级 3.离线字段级
631
+ 注意:此字段可能返回 null,表示取不到有效值。
632
+ */
633
+ ObjectType?: number;
617
634
  }
618
635
  /**
619
636
  * DescribeRules返回参数结构体
@@ -736,6 +753,11 @@ export interface RuleExecResultDetail {
736
753
  注意:此字段可能返回 null,表示取不到有效值。
737
754
  */
738
755
  TableOwnerUserId?: number;
756
+ /**
757
+ * 2.HIVE 3.DLC
758
+ 注意:此字段可能返回 null,表示取不到有效值。
759
+ */
760
+ DatasourceType?: number;
739
761
  }
740
762
  /**
741
763
  * 查询数据源分页列表
@@ -3613,6 +3635,14 @@ export interface DescribeQualityScoreRequest {
3613
3635
  * 数据来源id
3614
3636
  */
3615
3637
  DatasourceId?: string;
3638
+ /**
3639
+ * 1:按全维度权重计算,2:按已配置维度权重计算,3:不按维度权重计算,默认1
3640
+ */
3641
+ ScoreType?: string;
3642
+ /**
3643
+ * 过滤参数
3644
+ */
3645
+ Filters?: Array<Filter>;
3616
3646
  }
3617
3647
  /**
3618
3648
  * CommitIntegrationTask返回参数结构体
@@ -4074,6 +4104,11 @@ export interface RuleGroup {
4074
4104
  注意:此字段可能返回 null,表示取不到有效值。
4075
4105
  */
4076
4106
  TableOwnerUserId?: number;
4107
+ /**
4108
+ * 实例ID
4109
+ 注意:此字段可能返回 null,表示取不到有效值。
4110
+ */
4111
+ InstanceId?: string;
4077
4112
  }
4078
4113
  /**
4079
4114
  * 规则配置
@@ -5372,6 +5407,10 @@ export interface DescribeTableQualityDetailsRequest {
5372
5407
  * 数据来源id
5373
5408
  */
5374
5409
  DatasourceId?: string;
5410
+ /**
5411
+ * 1:按全维度权重计算,2:按已配置维度权重计算,3:不按维度权重计算,默认1
5412
+ */
5413
+ ScoreType?: string;
5375
5414
  }
5376
5415
  /**
5377
5416
  * 集成节点详情
@@ -6705,7 +6744,7 @@ export interface DescribeQualityScoreResponse {
6705
6744
  * 质量评分
6706
6745
  注意:此字段可能返回 null,表示取不到有效值。
6707
6746
  */
6708
- Data: QualityScore;
6747
+ Data?: QualityScore;
6709
6748
  /**
6710
6749
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6711
6750
  */
@@ -6907,7 +6946,7 @@ export interface DescribeDimensionScoreResponse {
6907
6946
  * 维度评分
6908
6947
  注意:此字段可能返回 null,表示取不到有效值。
6909
6948
  */
6910
- Data: DimensionScore;
6949
+ Data?: DimensionScore;
6911
6950
  /**
6912
6951
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6913
6952
  */
@@ -7516,7 +7555,7 @@ export interface DescribeTableScoreTrendResponse {
7516
7555
  * 表得分趋势
7517
7556
  注意:此字段可能返回 null,表示取不到有效值。
7518
7557
  */
7519
- Data: QualityScoreTrend;
7558
+ Data?: QualityScoreTrend;
7520
7559
  /**
7521
7560
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7522
7561
  */
@@ -7674,6 +7713,7 @@ export interface DimensionCount {
7674
7713
  /**
7675
7714
  * 维度类型1:准确性,2:唯一性,3:完整性,4:一致性,5:及时性,6:有效性
7676
7715
  注意:此字段可能返回 null,表示取不到有效值。
7716
+ * @deprecated
7677
7717
  */
7678
7718
  DimType?: number;
7679
7719
  /**
@@ -7681,6 +7721,11 @@ export interface DimensionCount {
7681
7721
  注意:此字段可能返回 null,表示取不到有效值。
7682
7722
  */
7683
7723
  Count?: number;
7724
+ /**
7725
+ * 维度类型1:准确性,2:唯一性,3:完整性,4:一致性,5:及时性,6:有效性
7726
+ 注意:此字段可能返回 null,表示取不到有效值。
7727
+ */
7728
+ QualityDim?: number;
7684
7729
  }
7685
7730
  /**
7686
7731
  * DescribeInstanceLog返回参数结构体
@@ -8959,7 +9004,7 @@ export interface DescribeTableQualityDetailsResponse {
8959
9004
  * 表质量分详情结果
8960
9005
  注意:此字段可能返回 null,表示取不到有效值。
8961
9006
  */
8962
- Data: TableQualityDetailPage;
9007
+ Data?: TableQualityDetailPage;
8963
9008
  /**
8964
9009
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8965
9010
  */
@@ -9210,6 +9255,14 @@ export interface DescribeQualityScoreTrendRequest {
9210
9255
  * 数据来源id
9211
9256
  */
9212
9257
  DatasourceId?: string;
9258
+ /**
9259
+ * 1:按全维度权重计算,2:按已配置维度权重计算,3:不按维度权重计算,默认1
9260
+ */
9261
+ ScoreType?: string;
9262
+ /**
9263
+ * 过滤参数
9264
+ */
9265
+ Filters?: Array<Filter>;
9213
9266
  }
9214
9267
  /**
9215
9268
  * 抢锁状态:是否可以抢锁和当前持锁人
@@ -10332,6 +10385,16 @@ export interface RuleExecResult {
10332
10385
  注意:此字段可能返回 null,表示取不到有效值。
10333
10386
  */
10334
10387
  RelConditionExpr: string;
10388
+ /**
10389
+ * 执行时间
10390
+ 注意:此字段可能返回 null,表示取不到有效值。
10391
+ */
10392
+ StartTime?: string;
10393
+ /**
10394
+ * 1/2/3:低/中/高
10395
+ 注意:此字段可能返回 null,表示取不到有效值。
10396
+ */
10397
+ AlarmLevel?: number;
10335
10398
  }
10336
10399
  /**
10337
10400
  * GetOfflineInstanceList返回参数结构体
@@ -10726,6 +10789,10 @@ export interface DescribeTableScoreTrendRequest {
10726
10789
  * 表id
10727
10790
  */
10728
10791
  TableId: string;
10792
+ /**
10793
+ * 1:按全维度权重计算,2:按已配置维度权重计算,3:不按维度权重计算,默认1
10794
+ */
10795
+ ScoreType?: string;
10729
10796
  }
10730
10797
  /**
10731
10798
  * 规则执行结果分页
@@ -11649,6 +11716,10 @@ export interface DescribeDimensionScoreRequest {
11649
11716
  * 数据来源id
11650
11717
  */
11651
11718
  DatasourceId?: string;
11719
+ /**
11720
+ * 过滤参数
11721
+ */
11722
+ Filters?: Array<Filter>;
11652
11723
  }
11653
11724
  /**
11654
11725
  * dlc建表属性
@@ -12550,7 +12621,7 @@ export interface DescribeQualityScoreTrendResponse {
12550
12621
  * 质量评分趋势视图
12551
12622
  注意:此字段可能返回 null,表示取不到有效值。
12552
12623
  */
12553
- Data: QualityScoreTrend;
12624
+ Data?: QualityScoreTrend;
12554
12625
  /**
12555
12626
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
12556
12627
  */
@@ -138,6 +138,16 @@ it("nlp.v20190408.ParseWords", async function () {
138
138
  }
139
139
  })
140
140
 
141
+ it("nlp.v20190408.ComposeCouplet", async function () {
142
+ try {
143
+ const data = await client.ComposeCouplet({})
144
+ expect(data).to.be.ok
145
+ } catch(error) {
146
+ expect(error.requestId).to.be.ok
147
+ expect(error.code).to.be.ok
148
+ }
149
+ })
150
+
141
151
  it("nlp.v20190408.TextClassification", async function () {
142
152
  try {
143
153
  const data = await client.TextClassification({})
@@ -208,6 +218,16 @@ it("nlp.v20190408.GenerateCouplet", async function () {
208
218
  }
209
219
  })
210
220
 
221
+ it("nlp.v20190408.ComposePoetry", async function () {
222
+ try {
223
+ const data = await client.ComposePoetry({})
224
+ expect(data).to.be.ok
225
+ } catch(error) {
226
+ expect(error.requestId).to.be.ok
227
+ expect(error.code).to.be.ok
228
+ }
229
+ })
230
+
211
231
  it("nlp.v20190408.CreateWordItems", async function () {
212
232
  try {
213
233
  const data = await client.CreateWordItems({})
@@ -298,6 +318,16 @@ it("nlp.v20190408.TextEmbellish", async function () {
298
318
  }
299
319
  })
300
320
 
321
+ it("nlp.v20190408.ClassifyContent", async function () {
322
+ try {
323
+ const data = await client.ClassifyContent({})
324
+ expect(data).to.be.ok
325
+ } catch(error) {
326
+ expect(error.requestId).to.be.ok
327
+ expect(error.code).to.be.ok
328
+ }
329
+ })
330
+
301
331
  it("nlp.v20190408.TextCorrectionPro", async function () {
302
332
  try {
303
333
  const data = await client.TextCorrectionPro({})
@@ -338,6 +368,16 @@ it("nlp.v20190408.DeleteDict", async function () {
338
368
  }
339
369
  })
340
370
 
371
+ it("nlp.v20190408.AnalyzeSentiment", async function () {
372
+ try {
373
+ const data = await client.AnalyzeSentiment({})
374
+ expect(data).to.be.ok
375
+ } catch(error) {
376
+ expect(error.requestId).to.be.ok
377
+ expect(error.code).to.be.ok
378
+ }
379
+ })
380
+
341
381
  it("nlp.v20190408.SimilarWords", async function () {
342
382
  try {
343
383
  const data = await client.SimilarWords({})
@@ -138,16 +138,6 @@ it("tdid.v20210519.AddLabel", async function () {
138
138
  }
139
139
  })
140
140
 
141
- it("tdid.v20210519.GetDidClusterList", async function () {
142
- try {
143
- const data = await client.GetDidClusterList({})
144
- expect(data).to.be.ok
145
- } catch(error) {
146
- expect(error.requestId).to.be.ok
147
- expect(error.code).to.be.ok
148
- }
149
- })
150
-
151
141
  it("tdid.v20210519.GetCredentialStatus", async function () {
152
142
  try {
153
143
  const data = await client.GetCredentialStatus({})
@@ -178,16 +168,6 @@ it("tdid.v20210519.VerifyCredential", async function () {
178
168
  }
179
169
  })
180
170
 
181
- it("tdid.v20210519.GetDidClusterDetail", async function () {
182
- try {
183
- const data = await client.GetDidClusterDetail({})
184
- expect(data).to.be.ok
185
- } catch(error) {
186
- expect(error.requestId).to.be.ok
187
- expect(error.code).to.be.ok
188
- }
189
- })
190
-
191
171
  it("tdid.v20210519.GetAuthorityIssuer", async function () {
192
172
  try {
193
173
  const data = await client.GetAuthorityIssuer({})
@@ -328,6 +328,16 @@ it("waf.v20180125.ModifyWafThreatenIntelligence", async function () {
328
328
  }
329
329
  })
330
330
 
331
+ it("waf.v20180125.ModifySpartaProtection", async function () {
332
+ try {
333
+ const data = await client.ModifySpartaProtection({})
334
+ expect(data).to.be.ok
335
+ } catch(error) {
336
+ expect(error.requestId).to.be.ok
337
+ expect(error.code).to.be.ok
338
+ }
339
+ })
340
+
331
341
  it("waf.v20180125.AddCustomWhiteRule", async function () {
332
342
  try {
333
343
  const data = await client.AddCustomWhiteRule({})