tencentcloud-sdk-nodejs-intl-en 3.0.522 → 3.0.523

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-intl-en",
3
- "version": "3.0.522",
3
+ "version": "3.0.523",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1247,6 +1247,12 @@ Note: this field may return null, indicating that no valid values can be obtaine
1247
1247
  */
1248
1248
  this.SubLabel = null;
1249
1249
 
1250
+ /**
1251
+ * This field returns the suggested action according to the check result. <br>Values: `Block`, `Review`, `Pass`.
1252
+ * @type {string || null}
1253
+ */
1254
+ this.Suggestion = null;
1255
+
1250
1256
  }
1251
1257
 
1252
1258
  /**
@@ -1262,6 +1268,7 @@ Note: this field may return null, indicating that no valid values can be obtaine
1262
1268
  this.EndTime = 'EndTime' in params ? params.EndTime : null;
1263
1269
  this.SubLabelCode = 'SubLabelCode' in params ? params.SubLabelCode : null;
1264
1270
  this.SubLabel = 'SubLabel' in params ? params.SubLabel : null;
1271
+ this.Suggestion = 'Suggestion' in params ? params.Suggestion : null;
1265
1272
 
1266
1273
  }
1267
1274
  }
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ v20220110: require("./v20220110"),
3
+ };
@@ -0,0 +1,72 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+ const models = require("./models");
18
+ const AbstractClient = require('../../common/abstract_client')
19
+ const CreateSessionResponse = models.CreateSessionResponse;
20
+ const DestroySessionResponse = models.DestroySessionResponse;
21
+ const ApplyConcurrentResponse = models.ApplyConcurrentResponse;
22
+ const ApplyConcurrentRequest = models.ApplyConcurrentRequest;
23
+ const DestroySessionRequest = models.DestroySessionRequest;
24
+ const CreateSessionRequest = models.CreateSessionRequest;
25
+
26
+
27
+ /**
28
+ * car client
29
+ * @class
30
+ */
31
+ class CarClient extends AbstractClient {
32
+
33
+ constructor(credential, region, profile) {
34
+ super("car.tencentcloudapi.com", "2022-01-10", credential, region, profile);
35
+ }
36
+
37
+ /**
38
+ * This API is used to request concurrency quota.
39
+ * @param {ApplyConcurrentRequest} req
40
+ * @param {function(string, ApplyConcurrentResponse):void} cb
41
+ * @public
42
+ */
43
+ ApplyConcurrent(req, cb) {
44
+ let resp = new ApplyConcurrentResponse();
45
+ this.request("ApplyConcurrent", req, resp, cb);
46
+ }
47
+
48
+ /**
49
+ * This API is used to terminate a session.
50
+ * @param {DestroySessionRequest} req
51
+ * @param {function(string, DestroySessionResponse):void} cb
52
+ * @public
53
+ */
54
+ DestroySession(req, cb) {
55
+ let resp = new DestroySessionResponse();
56
+ this.request("DestroySession", req, resp, cb);
57
+ }
58
+
59
+ /**
60
+ * This API is used to create a session.
61
+ * @param {CreateSessionRequest} req
62
+ * @param {function(string, CreateSessionResponse):void} cb
63
+ * @public
64
+ */
65
+ CreateSession(req, cb) {
66
+ let resp = new CreateSessionResponse();
67
+ this.request("CreateSession", req, resp, cb);
68
+ }
69
+
70
+
71
+ }
72
+ module.exports = CarClient;
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ Client: require("./car_client"),
3
+ Models: require("./models"),
4
+ };
@@ -0,0 +1,246 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+ const AbstractModel = require("../../common/abstract_model");
18
+
19
+ /**
20
+ * CreateSession response structure.
21
+ * @class
22
+ */
23
+ class CreateSessionResponse extends AbstractModel {
24
+ constructor(){
25
+ super();
26
+
27
+ /**
28
+ * The server-side session data, which is returned to the SDK.
29
+ * @type {string || null}
30
+ */
31
+ this.ServerSession = null;
32
+
33
+ /**
34
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
35
+ * @type {string || null}
36
+ */
37
+ this.RequestId = null;
38
+
39
+ }
40
+
41
+ /**
42
+ * @private
43
+ */
44
+ deserialize(params) {
45
+ if (!params) {
46
+ return;
47
+ }
48
+ this.ServerSession = 'ServerSession' in params ? params.ServerSession : null;
49
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
50
+
51
+ }
52
+ }
53
+
54
+ /**
55
+ * DestroySession response structure.
56
+ * @class
57
+ */
58
+ class DestroySessionResponse extends AbstractModel {
59
+ constructor(){
60
+ super();
61
+
62
+ /**
63
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
64
+ * @type {string || null}
65
+ */
66
+ this.RequestId = null;
67
+
68
+ }
69
+
70
+ /**
71
+ * @private
72
+ */
73
+ deserialize(params) {
74
+ if (!params) {
75
+ return;
76
+ }
77
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
78
+
79
+ }
80
+ }
81
+
82
+ /**
83
+ * ApplyConcurrent response structure.
84
+ * @class
85
+ */
86
+ class ApplyConcurrentResponse extends AbstractModel {
87
+ constructor(){
88
+ super();
89
+
90
+ /**
91
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
92
+ * @type {string || null}
93
+ */
94
+ this.RequestId = null;
95
+
96
+ }
97
+
98
+ /**
99
+ * @private
100
+ */
101
+ deserialize(params) {
102
+ if (!params) {
103
+ return;
104
+ }
105
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
106
+
107
+ }
108
+ }
109
+
110
+ /**
111
+ * ApplyConcurrent request structure.
112
+ * @class
113
+ */
114
+ class ApplyConcurrentRequest extends AbstractModel {
115
+ constructor(){
116
+ super();
117
+
118
+ /**
119
+ * The user’s unique ID. Tencent Cloud does not parse the ID. You need to manage your own user IDs. Based on your needs, you can either define unique IDs for users or use timestamps to generate random IDs. Make sure the same ID is used when a user reconnects to your application.
120
+ * @type {string || null}
121
+ */
122
+ this.UserId = null;
123
+
124
+ /**
125
+ * The user’s IP address.
126
+ * @type {string || null}
127
+ */
128
+ this.UserIp = null;
129
+
130
+ /**
131
+ * The project ID.
132
+ * @type {string || null}
133
+ */
134
+ this.ProjectId = null;
135
+
136
+ /**
137
+ * The application version ID.
138
+ * @type {string || null}
139
+ */
140
+ this.ApplicationVersionId = null;
141
+
142
+ }
143
+
144
+ /**
145
+ * @private
146
+ */
147
+ deserialize(params) {
148
+ if (!params) {
149
+ return;
150
+ }
151
+ this.UserId = 'UserId' in params ? params.UserId : null;
152
+ this.UserIp = 'UserIp' in params ? params.UserIp : null;
153
+ this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
154
+ this.ApplicationVersionId = 'ApplicationVersionId' in params ? params.ApplicationVersionId : null;
155
+
156
+ }
157
+ }
158
+
159
+ /**
160
+ * DestroySession request structure.
161
+ * @class
162
+ */
163
+ class DestroySessionRequest extends AbstractModel {
164
+ constructor(){
165
+ super();
166
+
167
+ /**
168
+ * The user’s unique ID. Tencent Cloud does not parse the ID. You need to manage your own user IDs. Based on your needs, you can either define unique IDs for users or use timestamps to generate random IDs. Make sure the same ID is used when a user reconnects to your application.
169
+ * @type {string || null}
170
+ */
171
+ this.UserId = null;
172
+
173
+ }
174
+
175
+ /**
176
+ * @private
177
+ */
178
+ deserialize(params) {
179
+ if (!params) {
180
+ return;
181
+ }
182
+ this.UserId = 'UserId' in params ? params.UserId : null;
183
+
184
+ }
185
+ }
186
+
187
+ /**
188
+ * CreateSession request structure.
189
+ * @class
190
+ */
191
+ class CreateSessionRequest extends AbstractModel {
192
+ constructor(){
193
+ super();
194
+
195
+ /**
196
+ * The user’s unique ID. Tencent Cloud does not parse the ID. You need to manage your own user IDs. Based on your needs, you can either define unique IDs for users or use timestamps to generate random IDs. Make sure the same ID is used when a user reconnects to your application.
197
+ * @type {string || null}
198
+ */
199
+ this.UserId = null;
200
+
201
+ /**
202
+ * The user’s IP address.
203
+ * @type {string || null}
204
+ */
205
+ this.UserIp = null;
206
+
207
+ /**
208
+ * The client-side session data, which is obtained from the SDK.
209
+ * @type {string || null}
210
+ */
211
+ this.ClientSession = null;
212
+
213
+ /**
214
+ * The on-cloud running mode.
215
+ `RunWithoutClient`: Keep the application running on the cloud even when there are no client connections.
216
+ Empty string (default): Keep the application running on the cloud only when there are client connections.
217
+ * @type {string || null}
218
+ */
219
+ this.RunMode = null;
220
+
221
+ }
222
+
223
+ /**
224
+ * @private
225
+ */
226
+ deserialize(params) {
227
+ if (!params) {
228
+ return;
229
+ }
230
+ this.UserId = 'UserId' in params ? params.UserId : null;
231
+ this.UserIp = 'UserIp' in params ? params.UserIp : null;
232
+ this.ClientSession = 'ClientSession' in params ? params.ClientSession : null;
233
+ this.RunMode = 'RunMode' in params ? params.RunMode : null;
234
+
235
+ }
236
+ }
237
+
238
+ module.exports = {
239
+ CreateSessionResponse: CreateSessionResponse,
240
+ DestroySessionResponse: DestroySessionResponse,
241
+ ApplyConcurrentResponse: ApplyConcurrentResponse,
242
+ ApplyConcurrentRequest: ApplyConcurrentRequest,
243
+ DestroySessionRequest: DestroySessionRequest,
244
+ CreateSessionRequest: CreateSessionRequest,
245
+
246
+ }
@@ -1,2 +1,2 @@
1
- const sdkVersion = "3.0.522";
1
+ const sdkVersion = "3.0.523";
2
2
  module.exports = sdkVersion
@@ -16,17 +16,32 @@
16
16
  */
17
17
  const models = require("./models");
18
18
  const AbstractClient = require('../../common/abstract_client')
19
- const GenerateReflectSequenceResponse = models.GenerateReflectSequenceResponse;
20
- const CreateUploadUrlResponse = models.CreateUploadUrlResponse;
19
+ const GetLivenessResultResponse = models.GetLivenessResultResponse;
20
+ const GetSdkVerificationResultResponse = models.GetSdkVerificationResultResponse;
21
+ const VerificationDetail = models.VerificationDetail;
21
22
  const LivenessCompareResponse = models.LivenessCompareResponse;
23
+ const CreateUploadUrlResponse = models.CreateUploadUrlResponse;
24
+ const DetectReflectLivenessAndCompareRequest = models.DetectReflectLivenessAndCompareRequest;
25
+ const VideoLivenessCompareRequest = models.VideoLivenessCompareRequest;
26
+ const ApplyWebVerificationTokenResponse = models.ApplyWebVerificationTokenResponse;
27
+ const GetWebVerificationResultRequest = models.GetWebVerificationResultRequest;
28
+ const FileInfo = models.FileInfo;
29
+ const ApplySdkVerificationTokenRequest = models.ApplySdkVerificationTokenRequest;
22
30
  const GenerateReflectSequenceRequest = models.GenerateReflectSequenceRequest;
23
31
  const DetectReflectLivenessAndCompareResponse = models.DetectReflectLivenessAndCompareResponse;
24
32
  const VideoLivenessCompareResponse = models.VideoLivenessCompareResponse;
25
- const DetectReflectLivenessAndCompareRequest = models.DetectReflectLivenessAndCompareRequest;
26
- const LivenessCompareRequest = models.LivenessCompareRequest;
33
+ const CardVerifyResult = models.CardVerifyResult;
34
+ const ApplyWebVerificationTokenRequest = models.ApplyWebVerificationTokenRequest;
35
+ const ApplyLivenessTokenResponse = models.ApplyLivenessTokenResponse;
36
+ const GetLivenessResultRequest = models.GetLivenessResultRequest;
37
+ const ApplySdkVerificationTokenResponse = models.ApplySdkVerificationTokenResponse;
27
38
  const CreateUploadUrlRequest = models.CreateUploadUrlRequest;
28
- const FileInfo = models.FileInfo;
29
- const VideoLivenessCompareRequest = models.VideoLivenessCompareRequest;
39
+ const GetWebVerificationResultResponse = models.GetWebVerificationResultResponse;
40
+ const GetSdkVerificationResultRequest = models.GetSdkVerificationResultRequest;
41
+ const ApplyLivenessTokenRequest = models.ApplyLivenessTokenRequest;
42
+ const GenerateReflectSequenceResponse = models.GenerateReflectSequenceResponse;
43
+ const LivenessCompareRequest = models.LivenessCompareRequest;
44
+ const CompareResult = models.CompareResult;
30
45
 
31
46
 
32
47
  /**
@@ -39,6 +54,29 @@ class FaceidClient extends AbstractClient {
39
54
  super("faceid.tencentcloudapi.com", "2018-03-01", credential, region, profile);
40
55
  }
41
56
 
57
+ /**
58
+ * This API is used to apply for a token before calling the liveness detection service each time. This token is required for initiating the verification process and getting the result after the verification is completed.
59
+ * @param {ApplyLivenessTokenRequest} req
60
+ * @param {function(string, ApplyLivenessTokenResponse):void} cb
61
+ * @public
62
+ */
63
+ ApplyLivenessToken(req, cb) {
64
+ let resp = new ApplyLivenessTokenResponse();
65
+ this.request("ApplyLivenessToken", req, resp, cb);
66
+ }
67
+
68
+ /**
69
+ * This API is used to pass in a video and a photo, determine whether the person in the video is real, and if yes, then determine whether the person in the video is the same as that in the photo.
70
+ This API on the legacy version will continue to serve existing users but will be unavailable to new users. We recommend you use `VideoLivenessCompare` for better service quality.
71
+ * @param {LivenessCompareRequest} req
72
+ * @param {function(string, LivenessCompareResponse):void} cb
73
+ * @public
74
+ */
75
+ LivenessCompare(req, cb) {
76
+ let resp = new LivenessCompareResponse();
77
+ this.request("LivenessCompare", req, resp, cb);
78
+ }
79
+
42
80
  /**
43
81
  * This API is used to detect liveness with the package generated by the liveness comparison (reflection-based) SDK, and to compare the person detected with that in the image passed in.
44
82
  The image and the data generated with the SDK must be stored in COS, and the region of the COS bucket must be same as that of requests made with this API. We recommend that you pass resources with upload link APIs.
@@ -51,6 +89,17 @@ The image and the data generated with the SDK must be stored in COS, and the reg
51
89
  this.request("DetectReflectLivenessAndCompare", req, resp, cb);
52
90
  }
53
91
 
92
+ /**
93
+ * This API is used to get the verification result with the corresponding token (BizToken) after the web-based verification is completed. The BizToken is valid for three days (3*24*3,600s) after issuance and can be called multiple times.
94
+ * @param {GetWebVerificationResultRequest} req
95
+ * @param {function(string, GetWebVerificationResultResponse):void} cb
96
+ * @public
97
+ */
98
+ GetWebVerificationResult(req, cb) {
99
+ let resp = new GetWebVerificationResultResponse();
100
+ this.request("GetWebVerificationResult", req, resp, cb);
101
+ }
102
+
54
103
  /**
55
104
  * This API is used to pass in URLs of a video and a photo, determine whether the person in the video is real, and if yes, then determine whether the person in the video is the same as that in the photo.
56
105
  * @param {VideoLivenessCompareRequest} req
@@ -74,6 +123,17 @@ The data generated with the SDK must be stored in COS, and the region of the COS
74
123
  this.request("GenerateReflectSequence", req, resp, cb);
75
124
  }
76
125
 
126
+ /**
127
+ * This API is used to get the verification result with the corresponding token after the SDK-based verification is completed. The token is valid for three days after issuance and can be called multiple times.
128
+ * @param {GetSdkVerificationResultRequest} req
129
+ * @param {function(string, GetSdkVerificationResultResponse):void} cb
130
+ * @public
131
+ */
132
+ GetSdkVerificationResult(req, cb) {
133
+ let resp = new GetSdkVerificationResultResponse();
134
+ this.request("GetSdkVerificationResult", req, resp, cb);
135
+ }
136
+
77
137
  /**
78
138
  * This API is used to generate a temporary `UploadUrl` for uploading resource files (with the `HTTP PUT` method). After resource upload, `ResourceUrl` will be passed to the `TargetAction` API to complete the resource passing (specific fields vary by case).
79
139
  The data will be stored in a COS bucket in the region specified by the parameter `Region` for two hours.
@@ -87,14 +147,36 @@ The data will be stored in a COS bucket in the region specified by the parameter
87
147
  }
88
148
 
89
149
  /**
90
- * This API is used to pass in a video and a photo, determine whether the person in the video is real, and if yes, then determine whether the person in the video is the same as that in the photo.
91
- * @param {LivenessCompareRequest} req
92
- * @param {function(string, LivenessCompareResponse):void} cb
150
+ * This API is used to apply for a token before calling the SDK-based verification service each time. This token is required for initiating the verification process and getting the result after the verification is completed.
151
+ * @param {ApplySdkVerificationTokenRequest} req
152
+ * @param {function(string, ApplySdkVerificationTokenResponse):void} cb
93
153
  * @public
94
154
  */
95
- LivenessCompare(req, cb) {
96
- let resp = new LivenessCompareResponse();
97
- this.request("LivenessCompare", req, resp, cb);
155
+ ApplySdkVerificationToken(req, cb) {
156
+ let resp = new ApplySdkVerificationTokenResponse();
157
+ this.request("ApplySdkVerificationToken", req, resp, cb);
158
+ }
159
+
160
+ /**
161
+ * This API is used to get the verification result with the corresponding token (SdkToken) after the liveness detection is completed. The token is valid for two hours after issuance and can be called multiple times.
162
+ * @param {GetLivenessResultRequest} req
163
+ * @param {function(string, GetLivenessResultResponse):void} cb
164
+ * @public
165
+ */
166
+ GetLivenessResult(req, cb) {
167
+ let resp = new GetLivenessResultResponse();
168
+ this.request("GetLivenessResult", req, resp, cb);
169
+ }
170
+
171
+ /**
172
+ * This API is used to apply for a token before calling the web-based verification service each time. This token is required for initiating the verification process and getting the result after the verification is completed.
173
+ * @param {ApplyWebVerificationTokenRequest} req
174
+ * @param {function(string, ApplyWebVerificationTokenResponse):void} cb
175
+ * @public
176
+ */
177
+ ApplyWebVerificationToken(req, cb) {
178
+ let resp = new ApplyWebVerificationTokenResponse();
179
+ this.request("ApplyWebVerificationToken", req, resp, cb);
98
180
  }
99
181
 
100
182