tencentcloud-sdk-nodejs-intl-en 3.0.1126 → 3.0.1128
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/package.json +1 -1
- package/tencentcloud/as/v20180419/as_client.js +1 -3
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/cvm/v20170312/models.js +2 -2
- package/tencentcloud/faceid/v20180301/models.js +24 -22
- package/tencentcloud/ims/v20201229/ims_client.js +1 -7
- package/tencentcloud/lcic/v20220817/lcic_client.js +1 -3
- package/tencentcloud/lcic/v20220817/models.js +14 -0
- package/tencentcloud/tcss/v20201101/tcss_client.js +1 -3
- package/tencentcloud/tms/v20201229/models.js +117 -0
- package/tencentcloud/tms/v20201229/tms_client.js +3 -2
package/package.json
CHANGED
|
@@ -349,9 +349,7 @@ If the parameter is empty, a certain number (specified by `Limit` and 20 by defa
|
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
|
-
*
|
|
353
|
-
|
|
354
|
-
There is a replacement API: ModifyLaunchConfiguration. This API carries the risk of parameter overwriting, and it has currently been hidden on the official website.
|
|
352
|
+
* There is a replacement API: ModifyLaunchConfiguration. This API carries the risk of parameter overwriting, and it has currently been hidden on the official website.
|
|
355
353
|
This API (UpgradeLaunchConfiguration) is used to upgrade the launch configuration.
|
|
356
354
|
* This API is used to upgrade the launch configuration, adopting an "entirely overwrite" approach. Regardless of previous parameter settings, they will be uniformly replaced with new configurations as specified in the interface parameters. For non-mandatory fields, if not filled in, default values will be assigned.
|
|
357
355
|
* After upgrading and modifying the launch configuration, existing instances that have been scaled out using this configuration will not undergo any changes. Subsequently, newly added instances using this upgraded launch configuration will be scaled out according to the new configuration.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1128";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -2764,13 +2764,13 @@ class ModifyInstancesRenewFlagRequest extends AbstractModel {
|
|
|
2764
2764
|
super();
|
|
2765
2765
|
|
|
2766
2766
|
/**
|
|
2767
|
-
* For one or more instance IDs to be operated
|
|
2767
|
+
* For one or more instance IDs to be operated. You can obtain the instance ID through the `instanceid` in the returned value from the API [DescribeInstances](https://cloud.tencent.com/document/api/213/15728). The maximum number of instances that can be operated for each request is 100.
|
|
2768
2768
|
* @type {Array.<string> || null}
|
|
2769
2769
|
*/
|
|
2770
2770
|
this.InstanceIds = null;
|
|
2771
2771
|
|
|
2772
2772
|
/**
|
|
2773
|
-
* Auto-renewal flag. Valid values: <br><li>
|
|
2773
|
+
* Auto-renewal flag. Valid values: <br><li>NOTIFY_AND_AUTO_RENEW: Notifies of expiration and performs auto-renewal.</li><li>NOTIFY_AND_MANUAL_RENEW: Notifies of expiration but does not perform auto-renewal.</li><li>DISABLE_NOTIFY_AND_MANUAL_RENEW: Not notifies of expiration nor perform auto-renewal.</li><br>If this parameter is specified to NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis after it expires when there is sufficient account balance.
|
|
2774
2774
|
* @type {string || null}
|
|
2775
2775
|
*/
|
|
2776
2776
|
this.RenewFlag = null;
|
|
@@ -118,7 +118,7 @@ class GetFaceIdTokenIntlResponse extends AbstractModel {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
* ID cards of Hong Kong, Macao and Taiwan (China), and international passport.
|
|
121
|
+
* ID cards of Hong Kong (China), Macao (China) and Taiwan (China), and international passport.
|
|
122
122
|
* @class
|
|
123
123
|
*/
|
|
124
124
|
class InternationalIDPassport extends AbstractModel {
|
|
@@ -1005,7 +1005,7 @@ class ApplyWebVerificationTokenResponse extends AbstractModel {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
1007
|
/**
|
|
1008
|
-
* Hong Kong ID card.
|
|
1008
|
+
* Hong Kong (China) ID card.
|
|
1009
1009
|
* @class
|
|
1010
1010
|
*/
|
|
1011
1011
|
class NormalHKIDCard extends AbstractModel {
|
|
@@ -1450,7 +1450,7 @@ class FileInfo extends AbstractModel {
|
|
|
1450
1450
|
}
|
|
1451
1451
|
|
|
1452
1452
|
/**
|
|
1453
|
-
* Hong Kong ID card.
|
|
1453
|
+
* Hong Kong (China) ID card.
|
|
1454
1454
|
* @class
|
|
1455
1455
|
*/
|
|
1456
1456
|
class HKIDCard extends AbstractModel {
|
|
@@ -1458,7 +1458,9 @@ class HKIDCard extends AbstractModel {
|
|
|
1458
1458
|
super();
|
|
1459
1459
|
|
|
1460
1460
|
/**
|
|
1461
|
-
*
|
|
1461
|
+
* Chinese name
|
|
1462
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
1463
|
+
Example: SAN, Nan
|
|
1462
1464
|
* @type {string || null}
|
|
1463
1465
|
*/
|
|
1464
1466
|
this.CnName = null;
|
|
@@ -1823,7 +1825,7 @@ class NormalCardInfo extends AbstractModel {
|
|
|
1823
1825
|
super();
|
|
1824
1826
|
|
|
1825
1827
|
/**
|
|
1826
|
-
* Hong Kong ID Card
|
|
1828
|
+
* Hong Kong (China) ID Card
|
|
1827
1829
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
1828
1830
|
* @type {NormalHKIDCard || null}
|
|
1829
1831
|
*/
|
|
@@ -1879,7 +1881,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
1879
1881
|
this.PhilippinesUMID = null;
|
|
1880
1882
|
|
|
1881
1883
|
/**
|
|
1882
|
-
* ID Cards of Hong Kong, Macao and Taiwan (China), and International Passport
|
|
1884
|
+
* ID Cards of Hong Kong (China), Macao (China) and Taiwan (China), and International Passport
|
|
1883
1885
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
1884
1886
|
* @type {InternationalIDPassport || null}
|
|
1885
1887
|
*/
|
|
@@ -1914,14 +1916,14 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
1914
1916
|
this.SingaporeIDCard = null;
|
|
1915
1917
|
|
|
1916
1918
|
/**
|
|
1917
|
-
* Macao ID Card
|
|
1919
|
+
* Macao (China) ID Card
|
|
1918
1920
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
1919
1921
|
* @type {MacaoIDCard || null}
|
|
1920
1922
|
*/
|
|
1921
1923
|
this.MacaoIDCard = null;
|
|
1922
1924
|
|
|
1923
1925
|
/**
|
|
1924
|
-
* Mainland ID Card
|
|
1926
|
+
* Mainland (China) ID Card
|
|
1925
1927
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
1926
1928
|
* @type {MainlandIDCard || null}
|
|
1927
1929
|
*/
|
|
@@ -1935,14 +1937,14 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
1935
1937
|
this.JapanIDCard = null;
|
|
1936
1938
|
|
|
1937
1939
|
/**
|
|
1938
|
-
* Taiwan ID Card
|
|
1940
|
+
* Taiwan (China) ID Card
|
|
1939
1941
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
1940
1942
|
* @type {TaiWanIDCard || null}
|
|
1941
1943
|
*/
|
|
1942
1944
|
this.TaiWanIDCard = null;
|
|
1943
1945
|
|
|
1944
1946
|
/**
|
|
1945
|
-
* exit/entry permit (card) for traveling to and from Hong Kong, Macao, or Taiwan.
|
|
1947
|
+
* exit/entry permit (card) for traveling to and from Hong Kong (China), Macao (China), or Taiwan (China).
|
|
1946
1948
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
1947
1949
|
* @type {HMTPermit || null}
|
|
1948
1950
|
*/
|
|
@@ -2617,7 +2619,7 @@ When the value of `IdCardType` is `IndonesiaIDCard`:
|
|
|
2617
2619
|
- BerlakuHingga (string): Expiry date.
|
|
2618
2620
|
- IssuedDate (string): Issue date.
|
|
2619
2621
|
|
|
2620
|
-
(5) A passport issued in Hong Kong/Macao/Taiwan (China) or other countries/regions
|
|
2622
|
+
(5) A passport issued in Hong Kong (China) /Macao (China) /Taiwan (China) or other countries/regions
|
|
2621
2623
|
When the value of `IdCardType` is `MLIDPassport`:
|
|
2622
2624
|
- FullName (string): Full name.
|
|
2623
2625
|
- Surname (string): Surname.
|
|
@@ -2725,7 +2727,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
2725
2727
|
}
|
|
2726
2728
|
|
|
2727
2729
|
/**
|
|
2728
|
-
* Taiwan ID card.
|
|
2730
|
+
* Taiwan (China) ID card.
|
|
2729
2731
|
* @class
|
|
2730
2732
|
*/
|
|
2731
2733
|
class TaiWanIDCard extends AbstractModel {
|
|
@@ -3092,7 +3094,7 @@ class CardInfo extends AbstractModel {
|
|
|
3092
3094
|
super();
|
|
3093
3095
|
|
|
3094
3096
|
/**
|
|
3095
|
-
* Hong Kong ID Card
|
|
3097
|
+
* Hong Kong ID (China) Card
|
|
3096
3098
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3097
3099
|
* @type {HKIDCard || null}
|
|
3098
3100
|
*/
|
|
@@ -3148,7 +3150,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3148
3150
|
this.PhilippinesUMID = null;
|
|
3149
3151
|
|
|
3150
3152
|
/**
|
|
3151
|
-
* ID Cards of Hong Kong, Macao and Taiwan (China), and International Passport
|
|
3153
|
+
* ID Cards of Hong Kong (China), Macao (China) and Taiwan (China), and International Passport
|
|
3152
3154
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3153
3155
|
* @type {InternationalIDPassport || null}
|
|
3154
3156
|
*/
|
|
@@ -3183,14 +3185,14 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3183
3185
|
this.SingaporeIDCard = null;
|
|
3184
3186
|
|
|
3185
3187
|
/**
|
|
3186
|
-
* Macao ID Card
|
|
3188
|
+
* Macao (China) ID Card
|
|
3187
3189
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3188
3190
|
* @type {MacaoIDCard || null}
|
|
3189
3191
|
*/
|
|
3190
3192
|
this.MacaoIDCard = null;
|
|
3191
3193
|
|
|
3192
3194
|
/**
|
|
3193
|
-
* TaiWan ID Card
|
|
3195
|
+
* TaiWan (China) ID Card
|
|
3194
3196
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
3195
3197
|
* @type {TaiWanIDCard || null}
|
|
3196
3198
|
*/
|
|
@@ -3505,7 +3507,7 @@ Example value: 3
|
|
|
3505
3507
|
6.PhilippinesTinID: Philippines TinID card
|
|
3506
3508
|
7.PhilippinesSSSID: Philippines SSSID card
|
|
3507
3509
|
8.PhilippinesUMID: Philippines UMID card
|
|
3508
|
-
9.InternationalIDPassport: ID cards of Hong Kong, Macao and Taiwan (China), and international passport.
|
|
3510
|
+
9.InternationalIDPassport: ID cards of Hong Kong (China), Macao (China) and Taiwan (China), and international passport.
|
|
3509
3511
|
10.IndonesiaDrivingLicense:Indonesia driving license
|
|
3510
3512
|
11.ThailandIDCard: Thailand ID card
|
|
3511
3513
|
12.ThailandDrivingLicense: Thailand driving license
|
|
@@ -3515,8 +3517,8 @@ Example value: 3
|
|
|
3515
3517
|
16.JapanIDCard: Japan ID card
|
|
3516
3518
|
17.JapanDrivingLicense: Japan driving license
|
|
3517
3519
|
18.PhilippinesIDCard: Philippines ID card
|
|
3518
|
-
19.MainlandIDCard: Mainland ID card
|
|
3519
|
-
20.MacaoIDCard: Macao ID card
|
|
3520
|
+
19.MainlandIDCard: Mainland (China) ID card
|
|
3521
|
+
20.MacaoIDCard: Macao (China) ID card
|
|
3520
3522
|
Example: HKIDCard
|
|
3521
3523
|
* @type {string || null}
|
|
3522
3524
|
*/
|
|
@@ -3612,7 +3614,7 @@ The default value is blink. The different action types passed in this parameter
|
|
|
3612
3614
|
}
|
|
3613
3615
|
|
|
3614
3616
|
/**
|
|
3615
|
-
* Mainland ID Card OCR
|
|
3617
|
+
* Mainland (China) ID Card OCR
|
|
3616
3618
|
* @class
|
|
3617
3619
|
*/
|
|
3618
3620
|
class MainlandIDCard extends AbstractModel {
|
|
@@ -4370,7 +4372,7 @@ class ApplySdkVerificationTokenResponse extends AbstractModel {
|
|
|
4370
4372
|
}
|
|
4371
4373
|
|
|
4372
4374
|
/**
|
|
4373
|
-
* Exit/entry permit (card) for traveling to and from Hong Kong, Macao, or Taiwan
|
|
4375
|
+
* Exit/entry permit (card) for traveling to and from Hong Kong (China), Macao (China), or Taiwan (China)
|
|
4374
4376
|
* @class
|
|
4375
4377
|
*/
|
|
4376
4378
|
class HMTPermit extends AbstractModel {
|
|
@@ -4686,7 +4688,7 @@ SILENT is silent mode.
|
|
|
4686
4688
|
}
|
|
4687
4689
|
|
|
4688
4690
|
/**
|
|
4689
|
-
* Macao
|
|
4691
|
+
* Macao (China) IDCard
|
|
4690
4692
|
* @class
|
|
4691
4693
|
*/
|
|
4692
4694
|
class MacaoIDCard extends AbstractModel {
|
|
@@ -70,13 +70,7 @@ class ImsClient extends AbstractClient {
|
|
|
70
70
|
<div class="rno-api-explorer-inner">
|
|
71
71
|
<div class="rno-api-explorer-hd">
|
|
72
72
|
<div class="rno-api-explorer-title">
|
|
73
|
-
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
<div class="rno-api-explorer-body">
|
|
77
|
-
<div class="rno-api-explorer-cont">
|
|
78
|
-
<p>The version described on this page is 2020. The IMS APIs connected to before November 3, 2020 are on v2019, and you can directly access the following URL to perform maintenance operations: <a href="https://intl.cloud.tencent.com/document/product/1125/38206?from_cn_redirect=1" target="_blank">IMS APIs v2019</a></p>
|
|
79
|
-
<p>v2020 is an upgrade to v2019 to support more flexible multi-scenario business policy configuration and richer recognition callback information, meeting the recognition requirements of different businesses. We recommend you upgrade the APIs according to the v2020 connection guide. Meanwhile, we will continue to maintain v2019 until users no longer use it.</p>
|
|
73
|
+
</p>
|
|
80
74
|
</div>
|
|
81
75
|
</div>
|
|
82
76
|
</div>
|
|
@@ -167,9 +167,7 @@ class LcicClient extends AbstractClient {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
171
|
-
|
|
172
|
-
A new API is offered for this action now.
|
|
170
|
+
* A new API is offered for this action now.
|
|
173
171
|
|
|
174
172
|
This API is used to query courseware. It has been deprecated. Please use `BatchDescribeDocument` instead.
|
|
175
173
|
* @param {DescribeDocumentsRequest} req
|
|
@@ -2476,6 +2476,18 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
2476
2476
|
*/
|
|
2477
2477
|
this.Preview = null;
|
|
2478
2478
|
|
|
2479
|
+
/**
|
|
2480
|
+
* Document resolution.Note: This field may return null, indicating that no valid values can be obtained.
|
|
2481
|
+
* @type {string || null}
|
|
2482
|
+
*/
|
|
2483
|
+
this.Resolution = null;
|
|
2484
|
+
|
|
2485
|
+
/**
|
|
2486
|
+
* Minimum resolution of a transcoded document, consistent with the parameters provided when the document is created.Note: This field may return null, indicating that no valid values can be obtained.
|
|
2487
|
+
* @type {string || null}
|
|
2488
|
+
*/
|
|
2489
|
+
this.MinScaleResolution = null;
|
|
2490
|
+
|
|
2479
2491
|
}
|
|
2480
2492
|
|
|
2481
2493
|
/**
|
|
@@ -2504,6 +2516,8 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
2504
2516
|
this.Height = 'Height' in params ? params.Height : null;
|
|
2505
2517
|
this.Cover = 'Cover' in params ? params.Cover : null;
|
|
2506
2518
|
this.Preview = 'Preview' in params ? params.Preview : null;
|
|
2519
|
+
this.Resolution = 'Resolution' in params ? params.Resolution : null;
|
|
2520
|
+
this.MinScaleResolution = 'MinScaleResolution' in params ? params.MinScaleResolution : null;
|
|
2507
2521
|
|
|
2508
2522
|
}
|
|
2509
2523
|
}
|
|
@@ -3560,9 +3560,7 @@ This API is used to export the list of images.
|
|
|
3560
3560
|
}
|
|
3561
3561
|
|
|
3562
3562
|
/**
|
|
3563
|
-
*
|
|
3564
|
-
|
|
3565
|
-
This API is used to remove the specified check item from the allowlist.
|
|
3563
|
+
* This API is used to remove the specified check item from the allowlist.
|
|
3566
3564
|
* @param {DeleteCompliancePolicyItemFromWhitelistRequest} req
|
|
3567
3565
|
* @param {function(string, DeleteCompliancePolicyItemFromWhitelistResponse):void} cb
|
|
3568
3566
|
* @public
|
|
@@ -16,6 +16,67 @@
|
|
|
16
16
|
*/
|
|
17
17
|
const AbstractModel = require("../../common/abstract_model");
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @class
|
|
22
|
+
*/
|
|
23
|
+
class SentimentAnalysis extends AbstractModel {
|
|
24
|
+
constructor(){
|
|
25
|
+
super();
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string || null}
|
|
30
|
+
*/
|
|
31
|
+
this.Label = null;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {number || null}
|
|
36
|
+
*/
|
|
37
|
+
this.Score = null;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {SentimentDetail || null}
|
|
42
|
+
*/
|
|
43
|
+
this.Detail = null;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string || null}
|
|
48
|
+
*/
|
|
49
|
+
this.Code = null;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string || null}
|
|
54
|
+
*/
|
|
55
|
+
this.Message = null;
|
|
56
|
+
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @private
|
|
61
|
+
*/
|
|
62
|
+
deserialize(params) {
|
|
63
|
+
if (!params) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
this.Label = 'Label' in params ? params.Label : null;
|
|
67
|
+
this.Score = 'Score' in params ? params.Score : null;
|
|
68
|
+
|
|
69
|
+
if (params.Detail) {
|
|
70
|
+
let obj = new SentimentDetail();
|
|
71
|
+
obj.deserialize(params.Detail)
|
|
72
|
+
this.Detail = obj;
|
|
73
|
+
}
|
|
74
|
+
this.Code = 'Code' in params ? params.Code : null;
|
|
75
|
+
this.Message = 'Message' in params ? params.Message : null;
|
|
76
|
+
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
19
80
|
/**
|
|
20
81
|
* Account risk detection results
|
|
21
82
|
* @class
|
|
@@ -89,6 +150,12 @@ class TextModerationRequest extends AbstractModel {
|
|
|
89
150
|
*/
|
|
90
151
|
this.Device = null;
|
|
91
152
|
|
|
153
|
+
/**
|
|
154
|
+
* This field Indicates the original language of the content.The enumeration values are ("en", "zh", ""), where en means English, zh means Chinese, and an empty string means the default language is Chinese. It is recommended to enter "en" only when the language of the content is clearly "English".
|
|
155
|
+
* @type {string || null}
|
|
156
|
+
*/
|
|
157
|
+
this.SourceLanguage = null;
|
|
158
|
+
|
|
92
159
|
}
|
|
93
160
|
|
|
94
161
|
/**
|
|
@@ -113,6 +180,7 @@ class TextModerationRequest extends AbstractModel {
|
|
|
113
180
|
obj.deserialize(params.Device)
|
|
114
181
|
this.Device = obj;
|
|
115
182
|
}
|
|
183
|
+
this.SourceLanguage = 'SourceLanguage' in params ? params.SourceLanguage : null;
|
|
116
184
|
|
|
117
185
|
}
|
|
118
186
|
}
|
|
@@ -445,6 +513,41 @@ Note: Since the iOS14 update in 2021, Apple Inc. has allowed users to manually a
|
|
|
445
513
|
}
|
|
446
514
|
}
|
|
447
515
|
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @class
|
|
519
|
+
*/
|
|
520
|
+
class SentimentDetail extends AbstractModel {
|
|
521
|
+
constructor(){
|
|
522
|
+
super();
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @type {number || null}
|
|
527
|
+
*/
|
|
528
|
+
this.Positive = null;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
*
|
|
532
|
+
* @type {number || null}
|
|
533
|
+
*/
|
|
534
|
+
this.Negative = null;
|
|
535
|
+
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* @private
|
|
540
|
+
*/
|
|
541
|
+
deserialize(params) {
|
|
542
|
+
if (!params) {
|
|
543
|
+
return;
|
|
544
|
+
}
|
|
545
|
+
this.Positive = 'Positive' in params ? params.Positive : null;
|
|
546
|
+
this.Negative = 'Negative' in params ? params.Negative : null;
|
|
547
|
+
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
448
551
|
/**
|
|
449
552
|
* TextModeration response structure.
|
|
450
553
|
* @class
|
|
@@ -526,6 +629,12 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
526
629
|
*/
|
|
527
630
|
this.ContextText = null;
|
|
528
631
|
|
|
632
|
+
/**
|
|
633
|
+
*
|
|
634
|
+
* @type {SentimentAnalysis || null}
|
|
635
|
+
*/
|
|
636
|
+
this.SentimentAnalysis = null;
|
|
637
|
+
|
|
529
638
|
/**
|
|
530
639
|
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
531
640
|
* @type {string || null}
|
|
@@ -568,18 +677,26 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
568
677
|
this.DataId = 'DataId' in params ? params.DataId : null;
|
|
569
678
|
this.SubLabel = 'SubLabel' in params ? params.SubLabel : null;
|
|
570
679
|
this.ContextText = 'ContextText' in params ? params.ContextText : null;
|
|
680
|
+
|
|
681
|
+
if (params.SentimentAnalysis) {
|
|
682
|
+
let obj = new SentimentAnalysis();
|
|
683
|
+
obj.deserialize(params.SentimentAnalysis)
|
|
684
|
+
this.SentimentAnalysis = obj;
|
|
685
|
+
}
|
|
571
686
|
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
572
687
|
|
|
573
688
|
}
|
|
574
689
|
}
|
|
575
690
|
|
|
576
691
|
module.exports = {
|
|
692
|
+
SentimentAnalysis: SentimentAnalysis,
|
|
577
693
|
RiskDetails: RiskDetails,
|
|
578
694
|
TextModerationRequest: TextModerationRequest,
|
|
579
695
|
DetailResults: DetailResults,
|
|
580
696
|
Tag: Tag,
|
|
581
697
|
User: User,
|
|
582
698
|
Device: Device,
|
|
699
|
+
SentimentDetail: SentimentDetail,
|
|
583
700
|
TextModerationResponse: TextModerationResponse,
|
|
584
701
|
|
|
585
702
|
}
|
|
@@ -16,12 +16,14 @@
|
|
|
16
16
|
*/
|
|
17
17
|
const models = require("./models");
|
|
18
18
|
const AbstractClient = require('../../common/abstract_client')
|
|
19
|
+
const SentimentAnalysis = models.SentimentAnalysis;
|
|
19
20
|
const RiskDetails = models.RiskDetails;
|
|
20
21
|
const TextModerationRequest = models.TextModerationRequest;
|
|
21
22
|
const DetailResults = models.DetailResults;
|
|
22
23
|
const Tag = models.Tag;
|
|
23
24
|
const User = models.User;
|
|
24
25
|
const Device = models.Device;
|
|
26
|
+
const SentimentDetail = models.SentimentDetail;
|
|
25
27
|
const TextModerationResponse = models.TextModerationResponse;
|
|
26
28
|
|
|
27
29
|
|
|
@@ -52,8 +54,7 @@ class TmsClient extends AbstractClient {
|
|
|
52
54
|
### Use limits
|
|
53
55
|
- The submitted texts can not be longer than 10,000 unicode characters.
|
|
54
56
|
- English letters, digits and Chinese characters are supported for moderation.
|
|
55
|
-
- The API request frequency limit: **1,000 times/second**.
|
|
56
|
-
|
|
57
|
+
- The API request frequency limit: **1,000 times/second**.
|
|
57
58
|
* @param {TextModerationRequest} req
|
|
58
59
|
* @param {function(string, TextModerationResponse):void} cb
|
|
59
60
|
* @public
|