tencentcloud-sdk-nodejs 4.0.224 → 4.0.228

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 (80) hide show
  1. package/CHANGELOG.md +692 -53
  2. package/package.json +1 -1
  3. package/products.md +25 -25
  4. package/src/common/sdk_version.ts +1 -1
  5. package/src/services/advisor/v20200721/advisor_models.ts +7 -1
  6. package/src/services/as/v20180419/as_models.ts +2 -6
  7. package/src/services/ccc/v20200210/ccc_models.ts +49 -7
  8. package/src/services/cdb/v20170320/cdb_client.ts +2 -14
  9. package/src/services/cdb/v20170320/cdb_models.ts +51 -51
  10. package/src/services/cdn/v20180606/cdn_client.ts +72 -18
  11. package/src/services/cdn/v20180606/cdn_models.ts +713 -165
  12. package/src/services/ckafka/v20190819/ckafka_models.ts +17 -1
  13. package/src/services/clb/v20180317/clb_models.ts +5 -0
  14. package/src/services/cls/v20201016/cls_client.ts +3 -18
  15. package/src/services/cls/v20201016/cls_models.ts +16 -1
  16. package/src/services/cme/v20191029/cme_models.ts +5 -0
  17. package/src/services/cwp/v20180228/cwp_models.ts +25 -4
  18. package/src/services/faceid/v20180301/faceid_models.ts +23 -7
  19. package/src/services/ims/v20201229/ims_models.ts +10 -0
  20. package/src/services/mongodb/v20190725/mongodb_models.ts +1 -1
  21. package/src/services/scf/v20180416/scf_models.ts +5 -0
  22. package/src/services/ses/v20201002/ses_client.ts +32 -18
  23. package/src/services/ses/v20201002/ses_models.ts +149 -52
  24. package/src/services/taf/v20200210/taf_client.ts +3 -2
  25. package/src/services/taf/v20200210/taf_models.ts +60 -10
  26. package/src/services/tem/v20210701/tem_models.ts +5 -0
  27. package/src/services/tiia/v20190529/tiia_client.ts +78 -3
  28. package/src/services/tiia/v20190529/tiia_models.ts +397 -29
  29. package/src/services/tiw/v20190919/tiw_client.ts +17 -1
  30. package/src/services/tiw/v20190919/tiw_models.ts +82 -5
  31. package/src/services/tke/v20180525/tke_models.ts +2 -2
  32. package/src/services/trtc/v20190722/trtc_client.ts +3 -40
  33. package/src/services/trtc/v20190722/trtc_models.ts +43 -187
  34. package/src/services/vod/v20180717/vod_models.ts +20 -10
  35. package/tencentcloud/common/sdk_version.d.ts +1 -1
  36. package/tencentcloud/common/sdk_version.js +1 -1
  37. package/tencentcloud/services/advisor/v20200721/advisor_models.d.ts +6 -1
  38. package/tencentcloud/services/as/v20180419/as_models.d.ts +2 -6
  39. package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +40 -6
  40. package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +1 -5
  41. package/tencentcloud/services/cdb/v20170320/cdb_client.js +0 -6
  42. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +43 -45
  43. package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +26 -3
  44. package/tencentcloud/services/cdn/v20180606/cdn_client.js +32 -3
  45. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +626 -148
  46. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +14 -1
  47. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +4 -0
  48. package/tencentcloud/services/cls/v20201016/cls_client.d.ts +3 -18
  49. package/tencentcloud/services/cls/v20201016/cls_client.js +2 -17
  50. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +14 -1
  51. package/tencentcloud/services/cme/v20191029/cme_models.d.ts +4 -0
  52. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +20 -3
  53. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +20 -7
  54. package/tencentcloud/services/ims/v20201229/ims_models.d.ts +8 -0
  55. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +1 -1
  56. package/tencentcloud/services/scf/v20180416/scf_models.d.ts +4 -0
  57. package/tencentcloud/services/ses/v20201002/ses_client.d.ts +10 -6
  58. package/tencentcloud/services/ses/v20201002/ses_client.js +13 -7
  59. package/tencentcloud/services/ses/v20201002/ses_models.d.ts +129 -47
  60. package/tencentcloud/services/taf/v20200210/taf_client.d.ts +1 -1
  61. package/tencentcloud/services/taf/v20200210/taf_client.js +1 -1
  62. package/tencentcloud/services/taf/v20200210/taf_models.d.ts +49 -9
  63. package/tencentcloud/services/tem/v20210701/tem_models.d.ts +4 -0
  64. package/tencentcloud/services/tiia/v20190529/tiia_client.d.ts +26 -1
  65. package/tencentcloud/services/tiia/v20190529/tiia_client.js +37 -0
  66. package/tencentcloud/services/tiia/v20190529/tiia_models.d.ts +341 -28
  67. package/tencentcloud/services/tiw/v20190919/tiw_client.d.ts +8 -1
  68. package/tencentcloud/services/tiw/v20190919/tiw_client.js +9 -0
  69. package/tencentcloud/services/tiw/v20190919/tiw_models.d.ts +72 -5
  70. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +2 -2
  71. package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +1 -13
  72. package/tencentcloud/services/trtc/v20190722/trtc_client.js +0 -18
  73. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +39 -163
  74. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +18 -10
  75. package/test/cdb.v20170320.test.js +0 -10
  76. package/test/cdn.v20180606.test.js +32 -2
  77. package/test/ses.v20201002.test.js +14 -4
  78. package/test/tiia.v20190529.test.js +60 -0
  79. package/test/tiw.v20190919.test.js +10 -0
  80. package/test/trtc.v20190722.test.js +0 -30
@@ -68,22 +68,19 @@ export interface DetectDisgustRequest {
68
68
  }
69
69
 
70
70
  /**
71
- * DetectCelebrity返回参数结构体
71
+ * SearchImage返回参数结构体
72
72
  */
73
- export interface DetectCelebrityResponse {
73
+ export interface SearchImageResponse {
74
74
  /**
75
- * 公众人物识别结果数组。如果检测不到人脸,返回为空;最多可以返回10个人脸识别结果。
75
+ * 返回结果数量。
76
76
  */
77
- Faces?: Array<Face>
77
+ Count: number
78
78
 
79
79
  /**
80
- * 本服务在不同误识率水平下(将图片中的人物识别错误的比例)的推荐阈值,可以用于控制识别结果的精度。
81
- FalseRate1Percent, FalseRate5Permil, FalseRate1Permil分别代表误识率在百分之一、千分之五、千分之一情况下的推荐阈值。
82
- 因为阈值会存在变动,请勿将此处输出的固定值处理,而是每次取值与confidence对比,来判断本次的识别结果是否可信。
83
- 例如,如果您业务中可以接受的误识率是1%,则可以将所有confidence>=FalseRate1Percent的结论认为是正确的。
80
+ * 图片信息。
84
81
  注意:此字段可能返回 null,表示取不到有效值。
85
82
  */
86
- Threshold?: Threshold
83
+ ImageInfos: Array<ImageInfo>
87
84
 
88
85
  /**
89
86
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -91,6 +88,65 @@ FalseRate1Percent, FalseRate5Permil, FalseRate1Permil分别代表误识率在百
91
88
  RequestId?: string
92
89
  }
93
90
 
91
+ /**
92
+ * CreateImage请求参数结构体
93
+ */
94
+ export interface CreateImageRequest {
95
+ /**
96
+ * 图库ID。
97
+ */
98
+ GroupId: string
99
+
100
+ /**
101
+ * 物品ID,最多支持64个字符。
102
+ 若EntityId已存在,则对其追加图片。
103
+ */
104
+ EntityId: string
105
+
106
+ /**
107
+ * 图片名称,最多支持64个字符,
108
+ 同一个EntityId,最大支持5张图。如果图片名称已存在,则会更新库中的图片。
109
+ */
110
+ PicName: string
111
+
112
+ /**
113
+ * 图片的 Url 。对应图片 base64 编码后大小不可超过2M。
114
+ Url、Image必须提供一个,如果都提供,只使用 Url。
115
+ 图片分辨率不超过1920*1080。
116
+ 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
117
+ 非腾讯云存储的Url速度和稳定性可能受一定影响。
118
+ 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
119
+ */
120
+ ImageUrl?: string
121
+
122
+ /**
123
+ * 图片 base64 数据,base64 编码后大小不可超过2M。
124
+ 图片分辨率不超过1920*1080。
125
+ 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
126
+ */
127
+ ImageBase64?: string
128
+
129
+ /**
130
+ * 用户自定义的内容,最多支持4096个字符,查询时原样带回。
131
+ */
132
+ CustomContent?: string
133
+
134
+ /**
135
+ * 图片自定义标签,最多不超过10个,格式为JSON。
136
+ */
137
+ Tags?: string
138
+ }
139
+
140
+ /**
141
+ * DeleteImages返回参数结构体
142
+ */
143
+ export interface DeleteImagesResponse {
144
+ /**
145
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
146
+ */
147
+ RequestId?: string
148
+ }
149
+
94
150
  /**
95
151
  * CropImage请求参数结构体
96
152
  */
@@ -151,6 +207,26 @@ export interface DetectProductRequest {
151
207
  ImageBase64?: string
152
208
  }
153
209
 
210
+ /**
211
+ * DescribeGroups请求参数结构体
212
+ */
213
+ export interface DescribeGroupsRequest {
214
+ /**
215
+ * 起始序号,默认值为0。
216
+ */
217
+ Offset?: number
218
+
219
+ /**
220
+ * 返回数量,默认值为10,最大值为100。
221
+ */
222
+ Limit?: number
223
+
224
+ /**
225
+ * 图库ID,如果不为空,则返回指定库信息。
226
+ */
227
+ GroupId?: string
228
+ }
229
+
154
230
  /**
155
231
  * AssessQuality返回参数结构体
156
232
  */
@@ -216,6 +292,73 @@ export interface DetectDisgustResponse {
216
292
  RequestId?: string
217
293
  }
218
294
 
295
+ /**
296
+ * SearchImage请求参数结构体
297
+ */
298
+ export interface SearchImageRequest {
299
+ /**
300
+ * 图库名称。
301
+ */
302
+ GroupId: string
303
+
304
+ /**
305
+ * 图片的 Url 。对应图片 base64 编码后大小不可超过2M。
306
+ 图片分辨率不超过1920*1080。
307
+ Url、Image必须提供一个,如果都提供,只使用 Url。
308
+ 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
309
+ 非腾讯云存储的Url速度和稳定性可能受一定影响。
310
+ 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
311
+ */
312
+ ImageUrl?: string
313
+
314
+ /**
315
+ * 图片 base64 数据,base64 编码后大小不可超过2M。
316
+ 图片分辨率不超过1920*1080。
317
+ 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
318
+ */
319
+ ImageBase64?: string
320
+
321
+ /**
322
+ * 出参Score中,只有超过MatchThreshold值的结果才会返回。默认为0
323
+ */
324
+ MatchThreshold?: number
325
+
326
+ /**
327
+ * 起始序号,默认值为0。
328
+ */
329
+ Offset?: number
330
+
331
+ /**
332
+ * 返回数量,默认值为10,最大值为100。
333
+ */
334
+ Limit?: number
335
+
336
+ /**
337
+ * 针对入库时提交的Tags信息进行条件过滤。支持>、>=、 <、 <=、=,!=,多个条件之间支持AND和OR进行连接。
338
+ */
339
+ Filter?: string
340
+ }
341
+
342
+ /**
343
+ * RecognizeCar返回参数结构体
344
+ */
345
+ export interface RecognizeCarResponse {
346
+ /**
347
+ * 汽车的四个矩形顶点坐标,如果图片中存在多辆车,则输出最大车辆的坐标。
348
+ */
349
+ CarCoords?: Array<Coord>
350
+
351
+ /**
352
+ * 车辆属性识别的结果数组,如果识别到多辆车,则会输出每辆车的top1结果。
353
+ */
354
+ CarTags?: Array<CarTagItem>
355
+
356
+ /**
357
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
358
+ */
359
+ RequestId?: string
360
+ }
361
+
219
362
  /**
220
363
  * DetectLabel请求参数结构体
221
364
  */
@@ -374,6 +517,84 @@ export interface AssessQualityRequest {
374
517
  ImageBase64?: string
375
518
  }
376
519
 
520
+ /**
521
+ * DeleteImages请求参数结构体
522
+ */
523
+ export interface DeleteImagesRequest {
524
+ /**
525
+ * 图库名称。
526
+ */
527
+ GroupId: string
528
+
529
+ /**
530
+ * 物品ID。
531
+ */
532
+ EntityId: string
533
+
534
+ /**
535
+ * 图片名称,如果不指定本参数,则删除EntityId下所有的图片;否则删除指定的图。
536
+ */
537
+ PicName?: string
538
+ }
539
+
540
+ /**
541
+ * CreateGroup请求参数结构体
542
+ */
543
+ export interface CreateGroupRequest {
544
+ /**
545
+ * 图库ID,不可重复,仅支持字母、数字和下划线。
546
+ */
547
+ GroupId: string
548
+
549
+ /**
550
+ * 图库名称描述。
551
+ */
552
+ GroupName: string
553
+
554
+ /**
555
+ * 该库的容量限制。
556
+ */
557
+ MaxCapacity: number
558
+
559
+ /**
560
+ * 简介。
561
+ */
562
+ Brief?: string
563
+
564
+ /**
565
+ * 该库的访问限频 ,默认10。
566
+ */
567
+ MaxQps?: number
568
+
569
+ /**
570
+ * 图库类型, 默认为通用。
571
+ 类型:
572
+ 1: 通用图库,以用户输入图提取特征。
573
+ 2: 灰度图库,输入图和搜索图均转为灰度图提取特征。
574
+ */
575
+ GroupType?: number
576
+ }
577
+
578
+ /**
579
+ * DescribeImages请求参数结构体
580
+ */
581
+ export interface DescribeImagesRequest {
582
+ /**
583
+ * 图库名称。
584
+ */
585
+ GroupId: string
586
+
587
+ /**
588
+ * 物品ID。
589
+ */
590
+ EntityId: string
591
+
592
+ /**
593
+ * 图片名称。
594
+ */
595
+ PicName?: string
596
+ }
597
+
377
598
  /**
378
599
  * DetectProductBeta请求参数结构体
379
600
  */
@@ -458,6 +679,58 @@ export interface EnhanceImageRequest {
458
679
  ImageBase64?: string
459
680
  }
460
681
 
682
+ /**
683
+ * 图库信息。
684
+ */
685
+ export interface GroupInfo {
686
+ /**
687
+ * 图库Id。
688
+ */
689
+ GroupId: string
690
+
691
+ /**
692
+ * 图库名称。
693
+ */
694
+ GroupName: string
695
+
696
+ /**
697
+ * 图库简介。
698
+ */
699
+ Brief: string
700
+
701
+ /**
702
+ * 图库容量。
703
+ */
704
+ MaxCapacity: number
705
+
706
+ /**
707
+ * 该库的访问限频 。
708
+ */
709
+ MaxQps: number
710
+
711
+ /**
712
+ * 图库类型:
713
+ 1: 通用图库,以用户输入图提取特征。
714
+ 2: 灰度图库,输入图和搜索图均转为灰度图提取特征。
715
+ */
716
+ GroupType: number
717
+
718
+ /**
719
+ * 图库图片数量。
720
+ */
721
+ PicCount: number
722
+
723
+ /**
724
+ * 图库创建时间。
725
+ */
726
+ CreateTime: string
727
+
728
+ /**
729
+ * 图库更新时间。
730
+ */
731
+ UpdateTime: string
732
+ }
733
+
461
734
  /**
462
735
  * CropImage返回参数结构体
463
736
  */
@@ -652,6 +925,16 @@ LOCATION,主体位置识别;
652
925
  Scenes?: Array<string>
653
926
  }
654
927
 
928
+ /**
929
+ * CreateImage返回参数结构体
930
+ */
931
+ export interface CreateImageResponse {
932
+ /**
933
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
934
+ */
935
+ RequestId?: string
936
+ }
937
+
655
938
  /**
656
939
  * 图像标签检测结果。
657
940
  */
@@ -778,6 +1061,59 @@ export interface DetectLabelBetaResponse {
778
1061
  RequestId?: string
779
1062
  }
780
1063
 
1064
+ /**
1065
+ * 图片信息
1066
+ */
1067
+ export interface ImageInfo {
1068
+ /**
1069
+ * 图片名称。
1070
+ */
1071
+ EntityId: string
1072
+
1073
+ /**
1074
+ * 用户自定义的内容。
1075
+ */
1076
+ CustomContent: string
1077
+
1078
+ /**
1079
+ * 图片自定义标签,JSON格式。
1080
+ */
1081
+ Tags: string
1082
+
1083
+ /**
1084
+ * 图片名称。
1085
+ */
1086
+ PicName: string
1087
+
1088
+ /**
1089
+ * 相似度。
1090
+ */
1091
+ Score: number
1092
+ }
1093
+
1094
+ /**
1095
+ * 检测到的图片中的商品位置和品类预测。
1096
+ 当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。
1097
+ 最多可以输出__3组__检测结果。
1098
+ */
1099
+ export interface RegionDetected {
1100
+ /**
1101
+ * 商品的品类预测结果。
1102
+ 包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
1103
+ */
1104
+ Category: string
1105
+
1106
+ /**
1107
+ * 商品品类预测的置信度
1108
+ */
1109
+ CategoryScore: number
1110
+
1111
+ /**
1112
+ * 检测到的主体在图片中的坐标,表示为矩形框的四个顶点坐标
1113
+ */
1114
+ Location: Location
1115
+ }
1116
+
781
1117
  /**
782
1118
  * 名人识别的标签
783
1119
  */
@@ -795,6 +1131,30 @@ export interface Labels {
795
1131
  SecondLabel: string
796
1132
  }
797
1133
 
1134
+ /**
1135
+ * DetectCelebrity返回参数结构体
1136
+ */
1137
+ export interface DetectCelebrityResponse {
1138
+ /**
1139
+ * 公众人物识别结果数组。如果检测不到人脸,返回为空;最多可以返回10个人脸识别结果。
1140
+ */
1141
+ Faces?: Array<Face>
1142
+
1143
+ /**
1144
+ * 本服务在不同误识率水平下(将图片中的人物识别错误的比例)的推荐阈值,可以用于控制识别结果的精度。
1145
+ FalseRate1Percent, FalseRate5Permil, FalseRate1Permil分别代表误识率在百分之一、千分之五、千分之一情况下的推荐阈值。
1146
+ 因为阈值会存在变动,请勿将此处输出的固定值处理,而是每次取值与confidence对比,来判断本次的识别结果是否可信。
1147
+ 例如,如果您业务中可以接受的误识率是1%,则可以将所有confidence>=FalseRate1Percent的结论认为是正确的。
1148
+ 注意:此字段可能返回 null,表示取不到有效值。
1149
+ */
1150
+ Threshold?: Threshold
1151
+
1152
+ /**
1153
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1154
+ */
1155
+ RequestId?: string
1156
+ }
1157
+
798
1158
  /**
799
1159
  * 检测到的单个商品结构体
800
1160
  */
@@ -836,26 +1196,19 @@ export interface Product {
836
1196
  }
837
1197
 
838
1198
  /**
839
- * 检测到的图片中的商品位置和品类预测。
840
- 当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。
841
- 最多可以输出__3组__检测结果。
1199
+ * DescribeGroups返回参数结构体
842
1200
  */
843
- export interface RegionDetected {
1201
+ export interface DescribeGroupsResponse {
844
1202
  /**
845
- * 商品的品类预测结果。
846
- 包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
1203
+ * 图库信息
1204
+ 注意:此字段可能返回 null,表示取不到有效值。
847
1205
  */
848
- Category: string
1206
+ Groups: Array<GroupInfo>
849
1207
 
850
1208
  /**
851
- * 商品品类预测的置信度
852
- */
853
- CategoryScore: number
854
-
855
- /**
856
- * 检测到的主体在图片中的坐标,表示为矩形框的四个顶点坐标
1209
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
857
1210
  */
858
- Location: Location
1211
+ RequestId?: string
859
1212
  }
860
1213
 
861
1214
  /**
@@ -928,18 +1281,23 @@ export interface Threshold {
928
1281
  }
929
1282
 
930
1283
  /**
931
- * RecognizeCar返回参数结构体
1284
+ * DescribeImages返回参数结构体
932
1285
  */
933
- export interface RecognizeCarResponse {
1286
+ export interface DescribeImagesResponse {
934
1287
  /**
935
- * 汽车的四个矩形顶点坐标,如果图片中存在多辆车,则输出最大车辆的坐标。
1288
+ * 图库名称。
936
1289
  */
937
- CarCoords?: Array<Coord>
1290
+ GroupId: string
938
1291
 
939
1292
  /**
940
- * 车辆属性识别的结果数组,如果识别到多辆车,则会输出每辆车的top1结果。
1293
+ * 物品ID。
941
1294
  */
942
- CarTags?: Array<CarTagItem>
1295
+ EntityId: string
1296
+
1297
+ /**
1298
+ * 图片信息。
1299
+ */
1300
+ ImageInfos: Array<ImageInfo>
943
1301
 
944
1302
  /**
945
1303
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -969,3 +1327,13 @@ export interface DetectMisbehaviorRequest {
969
1327
  */
970
1328
  ImageBase64?: string
971
1329
  }
1330
+
1331
+ /**
1332
+ * CreateGroup返回参数结构体
1333
+ */
1334
+ export interface CreateGroupResponse {
1335
+ /**
1336
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1337
+ */
1338
+ RequestId?: string
1339
+ }
@@ -47,6 +47,7 @@ import {
47
47
  SetTranscodeCallbackResponse,
48
48
  StopOnlineRecordRequest,
49
49
  SnapshotWhiteboard,
50
+ UsageDataItem,
50
51
  SetVideoGenerationTaskCallbackKeyResponse,
51
52
  CreateTranscodeResponse,
52
53
  CreateSnapshotTaskResponse,
@@ -56,6 +57,7 @@ import {
56
57
  Interrupt,
57
58
  VideoInfo,
58
59
  SetTranscodeCallbackKeyResponse,
60
+ DescribeTIWDailyUsageResponse,
59
61
  Concat,
60
62
  DescribeOnlineRecordRequest,
61
63
  DescribeWhiteboardPushResponse,
@@ -82,10 +84,11 @@ import {
82
84
  SetWhiteboardPushCallbackRequest,
83
85
  SetWhiteboardPushCallbackResponse,
84
86
  RecordControl,
85
- SetOnlineRecordCallbackRequest,
87
+ DescribeTIWDailyUsageRequest,
86
88
  Whiteboard,
87
89
  MixStream,
88
90
  DescribeVideoGenerationTaskCallbackRequest,
91
+ SetOnlineRecordCallbackRequest,
89
92
  PauseOnlineRecordRequest,
90
93
  StopWhiteboardPushResponse,
91
94
  SetOnlineRecordCallbackResponse,
@@ -290,6 +293,19 @@ export class Client extends AbstractClient {
290
293
  return this.request("DescribeTranscode", req, cb)
291
294
  }
292
295
 
296
+ /**
297
+ * 查询互动白板天维度计费用量。
298
+ 1. 单次查询统计区间最多不能超过31天。
299
+ 2. 由于统计延迟等原因,暂时不支持查询当天数据,建议在次日上午7点以后再来查询前一天的用量,例如在10月27日上午7点后,再来查询到10月26日整天的用量
300
+
301
+ */
302
+ async DescribeTIWDailyUsage(
303
+ req: DescribeTIWDailyUsageRequest,
304
+ cb?: (error: string, rep: DescribeTIWDailyUsageResponse) => void
305
+ ): Promise<DescribeTIWDailyUsageResponse> {
306
+ return this.request("DescribeTIWDailyUsage", req, cb)
307
+ }
308
+
293
309
  /**
294
310
  * 停止白板推流任务
295
311
  */
@@ -725,6 +725,37 @@ export interface SnapshotWhiteboard {
725
725
  InitParams?: string
726
726
  }
727
727
 
728
+ /**
729
+ * 互动白板用量信息
730
+ */
731
+ export interface UsageDataItem {
732
+ /**
733
+ * 日期,格式为YYYY-MM-DD
734
+ */
735
+ Time: string
736
+
737
+ /**
738
+ * 白板应用SDKAppID
739
+ */
740
+ SdkAppId: number
741
+
742
+ /**
743
+ * 互动白板子产品,请求参数传入的一致
744
+ - sp_tiw_board: 互动白板时长
745
+ - sp_tiw_dt: 动态转码页数
746
+ - sp_tiw_st: 静态转码页数
747
+ - sp_tiw_ric: 实时录制时长
748
+ */
749
+ SubProduct: string
750
+
751
+ /**
752
+ * 用量值
753
+ - 静态转码、动态转码单位为页
754
+ - 白板时长、实时录制时长单位为分钟
755
+ */
756
+ Value: number
757
+ }
758
+
728
759
  /**
729
760
  * SetVideoGenerationTaskCallbackKey返回参数结构体
730
761
  */
@@ -940,6 +971,21 @@ export interface SetTranscodeCallbackKeyResponse {
940
971
  RequestId?: string
941
972
  }
942
973
 
974
+ /**
975
+ * DescribeTIWDailyUsage返回参数结构体
976
+ */
977
+ export interface DescribeTIWDailyUsageResponse {
978
+ /**
979
+ * 指定区间指定产品的用量汇总
980
+ */
981
+ Usages: Array<UsageDataItem>
982
+
983
+ /**
984
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
985
+ */
986
+ RequestId?: string
987
+ }
988
+
943
989
  /**
944
990
  * 实时录制视频拼接参数
945
991
  */
@@ -1685,18 +1731,34 @@ false - 所有流都录制大画面,默认为false。
1685
1731
  }
1686
1732
 
1687
1733
  /**
1688
- * SetOnlineRecordCallback请求参数结构体
1734
+ * DescribeTIWDailyUsage请求参数结构体
1689
1735
  */
1690
- export interface SetOnlineRecordCallbackRequest {
1736
+ export interface DescribeTIWDailyUsageRequest {
1691
1737
  /**
1692
- * 客户的SdkAppId
1738
+ * 互动白板应用SdkAppId
1693
1739
  */
1694
1740
  SdkAppId: number
1695
1741
 
1696
1742
  /**
1697
- * 实时录制任务结果回调地址,如果传空字符串会删除原来的回调地址配置,回调地址仅支持 http或https协议,即回调地址以http://或https://开头。回调数据格式请参考文档:https://cloud.tencent.com/document/product/1137/40258
1743
+ * 需要查询的子产品用量,支持传入以下值
1744
+ - sp_tiw_board: 互动白板时长,单位为分钟
1745
+ - sp_tiw_dt: 动态转码页数,单位页
1746
+ - sp_tiw_st: 静态转码页数,单位页
1747
+ - sp_tiw_ric: 实时录制时长,单位分钟
1748
+
1749
+ 注意:动态转码以1:8的比例计算文档转码页数,静态转码以1:1的比例计算文档转码页数
1750
+ */
1751
+ SubProduct: string
1752
+
1753
+ /**
1754
+ * 开始时间,格式YYYY-MM-DD,查询结果里包括该天数据
1698
1755
  */
1699
- Callback: string
1756
+ StartTime: string
1757
+
1758
+ /**
1759
+ * 结束时间,格式YYYY-MM-DD,查询结果里包括该天数据,单次查询统计区间最多不能超过31天。
1760
+ */
1761
+ EndTime: string
1700
1762
  }
1701
1763
 
1702
1764
  /**
@@ -1763,6 +1825,21 @@ export interface DescribeVideoGenerationTaskCallbackRequest {
1763
1825
  SdkAppId: number
1764
1826
  }
1765
1827
 
1828
+ /**
1829
+ * SetOnlineRecordCallback请求参数结构体
1830
+ */
1831
+ export interface SetOnlineRecordCallbackRequest {
1832
+ /**
1833
+ * 客户的SdkAppId
1834
+ */
1835
+ SdkAppId: number
1836
+
1837
+ /**
1838
+ * 实时录制任务结果回调地址,如果传空字符串会删除原来的回调地址配置,回调地址仅支持 http或https协议,即回调地址以http://或https://开头。回调数据格式请参考文档:https://cloud.tencent.com/document/product/1137/40258
1839
+ */
1840
+ Callback: string
1841
+ }
1842
+
1766
1843
  /**
1767
1844
  * PauseOnlineRecord请求参数结构体
1768
1845
  */
@@ -296,7 +296,7 @@ export interface ModifyClusterEndpointSPRequest {
296
296
  /**
297
297
  * 安全策略放通单个IP或CIDR(例如: "192.168.1.0/24",默认为拒绝所有)
298
298
  */
299
- SecurityPolicies: Array<string>
299
+ SecurityPolicies?: Array<string>
300
300
  }
301
301
 
302
302
  /**
@@ -1804,7 +1804,7 @@ export interface CreateClusterEndpointVipResponse {
1804
1804
  /**
1805
1805
  * 请求任务的FlowId
1806
1806
  */
1807
- RequestFlowId?: number
1807
+ RequestFlowId: number
1808
1808
 
1809
1809
  /**
1810
1810
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。