tencentcloud-sdk-nodejs-iai 4.1.121 → 4.1.123

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/README.md CHANGED
@@ -62,6 +62,8 @@ npm install tencentcloud-sdk-slim-nodejs --save
62
62
 
63
63
  1. clone 代码到本地:
64
64
  ```
65
+ git clone https://cnb.cool/tencent/cloud/api/sdk/tencentcloud-sdk-nodejs
66
+ # 或者
65
67
  git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
66
68
  # 或者
67
69
  git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
@@ -135,7 +137,7 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
135
137
  // ...
136
138
  ```
137
139
 
138
- 实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts)。
140
+ 实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](src/common/interface.ts)。
139
141
 
140
142
  ## Common Client
141
143
 
@@ -143,17 +145,17 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
143
145
 
144
146
  **注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
145
147
 
146
- 详细使用请参阅示例:[使用 Common Client 进行调用](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/tree/master/examples/common)
148
+ 详细使用请参阅示例:[使用 Common Client 进行调用](examples/common)
147
149
 
148
150
  ## 更多示例
149
151
 
150
- 请参考 [examples](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/tree/master/examples) 目录。
152
+ 请参考 [examples](examples) 目录。
151
153
 
152
154
  # 相关配置
153
155
 
154
156
  ## 代理
155
157
 
156
- 如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
158
+ 如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
157
159
 
158
160
  # 凭证管理
159
161
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-iai",
3
- "version": "4.1.121",
3
+ "version": "4.1.123",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -246,17 +246,17 @@ export interface FaceHairAttributesInfo {
246
246
  * 0:光头,1:短发,2:中发,3:长发,4:绑发
247
247
  注意:此字段可能返回 null,表示取不到有效值。
248
248
  */
249
- Length: number;
249
+ Length?: number;
250
250
  /**
251
251
  * 0:有刘海,1:无刘海
252
252
  注意:此字段可能返回 null,表示取不到有效值。
253
253
  */
254
- Bang: number;
254
+ Bang?: number;
255
255
  /**
256
256
  * 0:黑色,1:金色,2:棕色,3:灰白色
257
257
  注意:此字段可能返回 null,表示取不到有效值。
258
258
  */
259
- Color: number;
259
+ Color?: number;
260
260
  }
261
261
  /**
262
262
  * CreateFace请求参数结构体
@@ -365,31 +365,31 @@ export interface FaceInfo {
365
365
  人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
366
366
  若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
367
367
  */
368
- X: number;
368
+ X?: number;
369
369
  /**
370
370
  * 人脸框左上角纵坐标。
371
371
  人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
372
372
  若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
373
373
  */
374
- Y: number;
374
+ Y?: number;
375
375
  /**
376
376
  * 人脸框宽度。
377
377
  */
378
- Width: number;
378
+ Width?: number;
379
379
  /**
380
380
  * 人脸框高度。
381
381
  */
382
- Height: number;
382
+ Height?: number;
383
383
  /**
384
384
  * 人脸属性信息,包含性别( gender )、年龄( age )、表情( expression )、
385
385
  魅力( beauty )、眼镜( glass )、口罩(mask)、头发(hair)和姿态 (pitch,roll,yaw )。只有当 NeedFaceAttributes 设为 1 时才返回有效信息。
386
386
  */
387
- FaceAttributesInfo: FaceAttributesInfo;
387
+ FaceAttributesInfo?: FaceAttributesInfo;
388
388
  /**
389
389
  * 人脸质量信息,包含质量分(score)、模糊分(sharpness)、光照分(brightness)、遮挡分(completeness)。只有当NeedFaceDetection设为1时才返回有效信息。
390
390
  注意:此字段可能返回 null,表示取不到有效值。
391
391
  */
392
- FaceQualityInfo: FaceQualityInfo;
392
+ FaceQualityInfo?: FaceQualityInfo;
393
393
  }
394
394
  /**
395
395
  * 眉毛信息
@@ -639,11 +639,11 @@ export interface GroupCandidate {
639
639
  /**
640
640
  * 人员库ID 。
641
641
  */
642
- GroupId: string;
642
+ GroupId?: string;
643
643
  /**
644
644
  * 识别出的最相似候选人。
645
645
  */
646
- Candidates: Array<Candidate>;
646
+ Candidates?: Array<Candidate>;
647
647
  }
648
648
  /**
649
649
  * DeleteFace返回参数结构体
@@ -840,32 +840,32 @@ export interface GroupInfo {
840
840
  /**
841
841
  * 人员库名称
842
842
  */
843
- GroupName: string;
843
+ GroupName?: string;
844
844
  /**
845
845
  * 人员库ID
846
846
  */
847
- GroupId: string;
847
+ GroupId?: string;
848
848
  /**
849
849
  * 人员库自定义描述字段
850
850
  注意:此字段可能返回 null,表示取不到有效值。
851
851
  */
852
- GroupExDescriptions: Array<string>;
852
+ GroupExDescriptions?: Array<string>;
853
853
  /**
854
854
  * 人员库信息备注
855
855
  注意:此字段可能返回 null,表示取不到有效值。
856
856
  */
857
- Tag: string;
857
+ Tag?: string;
858
858
  /**
859
859
  * 人脸识别所用的算法模型版本。
860
860
  注意:此字段可能返回 null,表示取不到有效值。
861
861
  */
862
- FaceModelVersion: string;
862
+ FaceModelVersion?: string;
863
863
  /**
864
864
  * Group的创建时间和日期 CreationTimestamp。CreationTimestamp 的值是自 Unix 纪元时间到Group创建时间的毫秒数。
865
865
  Unix 纪元时间是 1970 年 1 月 1 日星期四,协调世界时 (UTC) 00:00:00。有关更多信息,请参阅 Unix 时间。
866
866
  注意:此字段可能返回 null,表示取不到有效值。
867
867
  */
868
- CreationTimestamp: number;
868
+ CreationTimestamp?: number;
869
869
  }
870
870
  /**
871
871
  * 人脸质量信息,包含质量分(score)、模糊分(sharpness)、光照分(brightness)、遮挡分(completeness)。只有当NeedFaceDetection设为1时才返回有效信息。
@@ -878,26 +878,26 @@ export interface FaceQualityInfo {
878
878
  建议:人脸入库选取70以上的图片。
879
879
  注意:此字段可能返回 null,表示取不到有效值。
880
880
  */
881
- Score: number;
881
+ Score?: number;
882
882
  /**
883
883
  * 清晰分:[0,100],评价图片清晰程度,分数越高越清晰。
884
884
  参考范围:[0,40]特别模糊,[40,60]模糊,[60,80]一般,[80,100]清晰。
885
885
  建议:人脸入库选取80以上的图片。
886
886
  注意:此字段可能返回 null,表示取不到有效值。
887
887
  */
888
- Sharpness: number;
888
+ Sharpness?: number;
889
889
  /**
890
890
  * 光照分:[0,100],评价图片光照程度,分数越高越亮。
891
891
  参考范围: [0,30]偏暗,[30,70]光照正常,[70,100]偏亮。
892
892
  建议:人脸入库选取[30,70]的图片。
893
893
  注意:此字段可能返回 null,表示取不到有效值。
894
894
  */
895
- Brightness: number;
895
+ Brightness?: number;
896
896
  /**
897
897
  * 五官遮挡分,评价眉毛(Eyebrow)、眼睛(Eye)、鼻子(Nose)、脸颊(Cheek)、嘴巴(Mouth)、下巴(Chin)的被遮挡程度。
898
898
  注意:此字段可能返回 null,表示取不到有效值。
899
899
  */
900
- Completeness: FaceQualityCompleteness;
900
+ Completeness?: FaceQualityCompleteness;
901
901
  }
902
902
  /**
903
903
  * SearchFacesReturnsByGroup返回参数结构体
@@ -1009,75 +1009,75 @@ export interface DenseFaceShape {
1009
1009
  /**
1010
1010
  * 人脸框左上角横坐标。
1011
1011
  */
1012
- X: number;
1012
+ X?: number;
1013
1013
  /**
1014
1014
  * 人脸框左上角纵坐标。
1015
1015
  */
1016
- Y: number;
1016
+ Y?: number;
1017
1017
  /**
1018
1018
  * 人脸框宽度。
1019
1019
  */
1020
- Width: number;
1020
+ Width?: number;
1021
1021
  /**
1022
1022
  * 人脸框高度。
1023
1023
  */
1024
- Height: number;
1024
+ Height?: number;
1025
1025
  /**
1026
1026
  * 描述左侧眼睛轮廓的 XX 点。
1027
1027
  */
1028
- LeftEye: Array<Point>;
1028
+ LeftEye?: Array<Point>;
1029
1029
  /**
1030
1030
  * 描述右侧眼睛轮廓的 XX 点。
1031
1031
  */
1032
- RightEye: Array<Point>;
1032
+ RightEye?: Array<Point>;
1033
1033
  /**
1034
1034
  * 描述左侧眉毛轮廓的 XX 点。
1035
1035
  */
1036
- LeftEyeBrow: Array<Point>;
1036
+ LeftEyeBrow?: Array<Point>;
1037
1037
  /**
1038
1038
  * 描述右侧眉毛轮廓的 XX 点。
1039
1039
  */
1040
- RightEyeBrow: Array<Point>;
1040
+ RightEyeBrow?: Array<Point>;
1041
1041
  /**
1042
1042
  * 描述外嘴巴轮廓的 XX 点, 从左侧开始逆时针返回。
1043
1043
  */
1044
- MouthOutside: Array<Point>;
1044
+ MouthOutside?: Array<Point>;
1045
1045
  /**
1046
1046
  * 描述内嘴巴轮廓的 XX 点,从左侧开始逆时针返回。
1047
1047
  */
1048
- MouthInside: Array<Point>;
1048
+ MouthInside?: Array<Point>;
1049
1049
  /**
1050
1050
  * 描述鼻子轮廓的 XX 点。
1051
1051
  */
1052
- Nose: Array<Point>;
1052
+ Nose?: Array<Point>;
1053
1053
  /**
1054
1054
  * 左瞳孔轮廓的 XX 个点。
1055
1055
  */
1056
- LeftPupil: Array<Point>;
1056
+ LeftPupil?: Array<Point>;
1057
1057
  /**
1058
1058
  * 右瞳孔轮廓的 XX 个点。
1059
1059
  */
1060
- RightPupil: Array<Point>;
1060
+ RightPupil?: Array<Point>;
1061
1061
  /**
1062
1062
  * 中轴线轮廓的 XX 个点。
1063
1063
  */
1064
- CentralAxis: Array<Point>;
1064
+ CentralAxis?: Array<Point>;
1065
1065
  /**
1066
1066
  * 下巴轮廓的 XX 个点。
1067
1067
  */
1068
- Chin: Array<Point>;
1068
+ Chin?: Array<Point>;
1069
1069
  /**
1070
1070
  * 左眼袋的 XX 个点。
1071
1071
  */
1072
- LeftEyeBags: Array<Point>;
1072
+ LeftEyeBags?: Array<Point>;
1073
1073
  /**
1074
1074
  * 右眼袋的 XX 个点。
1075
1075
  */
1076
- RightEyeBags: Array<Point>;
1076
+ RightEyeBags?: Array<Point>;
1077
1077
  /**
1078
1078
  * 额头的 XX 个点。
1079
1079
  */
1080
- Forehead: Array<Point>;
1080
+ Forehead?: Array<Point>;
1081
1081
  }
1082
1082
  /**
1083
1083
  * 识别结果。
@@ -1412,37 +1412,37 @@ export interface FaceQualityCompleteness {
1412
1412
  参考范围:[0,80]表示发生遮挡。
1413
1413
  注意:此字段可能返回 null,表示取不到有效值。
1414
1414
  */
1415
- Eyebrow: number;
1415
+ Eyebrow?: number;
1416
1416
  /**
1417
1417
  * 眼睛的遮挡分数[0,100],分数越高遮挡越少。
1418
1418
  参考范围:[0,80]表示发生遮挡。
1419
1419
  注意:此字段可能返回 null,表示取不到有效值。
1420
1420
  */
1421
- Eye: number;
1421
+ Eye?: number;
1422
1422
  /**
1423
1423
  * 鼻子的遮挡分数[0,100],分数越高遮挡越少。
1424
1424
  参考范围:[0,60]表示发生遮挡。
1425
1425
  注意:此字段可能返回 null,表示取不到有效值。
1426
1426
  */
1427
- Nose: number;
1427
+ Nose?: number;
1428
1428
  /**
1429
1429
  * 脸颊的遮挡分数[0,100],分数越高遮挡越少。
1430
1430
  参考范围:[0,70]表示发生遮挡。
1431
1431
  注意:此字段可能返回 null,表示取不到有效值。
1432
1432
  */
1433
- Cheek: number;
1433
+ Cheek?: number;
1434
1434
  /**
1435
1435
  * 嘴巴的遮挡分数[0,100],分数越高遮挡越少。
1436
1436
  参考范围:[0,50]表示发生遮挡。
1437
1437
  注意:此字段可能返回 null,表示取不到有效值。
1438
1438
  */
1439
- Mouth: number;
1439
+ Mouth?: number;
1440
1440
  /**
1441
1441
  * 下巴的遮挡分数[0,100],分数越高遮挡越少。
1442
1442
  参考范围:[0,70]表示发生遮挡。
1443
1443
  注意:此字段可能返回 null,表示取不到有效值。
1444
1444
  */
1445
- Chin: number;
1445
+ Chin?: number;
1446
1446
  }
1447
1447
  /**
1448
1448
  * 人脸属性信息,包含性别( gender )、年龄( age )、表情( expression )、