tencentcloud-sdk-nodejs 4.0.378 → 4.0.381

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 (172) hide show
  1. package/CHANGELOG.md +530 -0
  2. package/SERVICE_CHANGELOG.md +885 -103
  3. package/package.json +1 -1
  4. package/products.md +45 -44
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/acp/v20220105/acp_models.ts +16 -16
  7. package/src/services/antiddos/v20200309/antiddos_client.ts +25 -0
  8. package/src/services/antiddos/v20200309/antiddos_models.ts +165 -0
  9. package/src/services/apm/v20210622/apm_models.ts +25 -10
  10. package/src/services/cat/v20180409/cat_models.ts +59 -14
  11. package/src/services/cdb/v20170320/cdb_models.ts +1 -1
  12. package/src/services/cdn/v20180606/cdn_client.ts +273 -272
  13. package/src/services/cdn/v20180606/cdn_models.ts +6322 -6296
  14. package/src/services/clb/v20180317/clb_client.ts +2 -2
  15. package/src/services/clb/v20180317/clb_models.ts +2 -2
  16. package/src/services/cloudaudit/v20190319/cloudaudit_models.ts +2 -2
  17. package/src/services/cls/v20201016/cls_client.ts +1 -0
  18. package/src/services/cls/v20201016/cls_models.ts +21 -1
  19. package/src/services/cpdp/v20190820/cpdp_client.ts +40 -1
  20. package/src/services/cpdp/v20190820/cpdp_models.ts +352 -11
  21. package/src/services/cvm/v20170312/cvm_client.ts +0 -2
  22. package/src/services/cvm/v20170312/cvm_models.ts +11 -1
  23. package/src/services/cwp/v20180228/cwp_models.ts +12 -0
  24. package/src/services/cynosdb/v20190107/cynosdb_models.ts +24 -9
  25. package/src/services/dlc/v20210125/dlc_models.ts +46 -2
  26. package/src/services/emr/v20190103/emr_models.ts +5 -0
  27. package/src/services/es/v20180416/es_client.ts +247 -78
  28. package/src/services/es/v20180416/es_models.ts +2070 -1136
  29. package/src/services/ess/v20201111/ess_models.ts +6 -3
  30. package/src/services/essbasic/v20210526/essbasic_models.ts +5 -3
  31. package/src/services/faceid/v20180301/faceid_client.ts +3 -16
  32. package/src/services/faceid/v20180301/faceid_models.ts +59 -103
  33. package/src/services/gaap/v20180529/gaap_client.ts +25 -1
  34. package/src/services/gaap/v20180529/gaap_models.ts +78 -32
  35. package/src/services/gpm/v20200820/gpm_client.ts +72 -36
  36. package/src/services/gse/v20191112/gse_client.ts +288 -140
  37. package/src/services/iai/v20180301/iai_client.ts +11 -1
  38. package/src/services/index.ts +1 -0
  39. package/src/services/iotvideo/index.ts +2 -0
  40. package/src/services/iotvideo/v20211125/index.ts +6 -0
  41. package/src/services/iotvideo/v20211125/iotvideo_client.ts +107 -0
  42. package/src/services/iotvideo/v20211125/iotvideo_models.ts +448 -0
  43. package/src/services/irp/index.ts +5 -0
  44. package/src/services/irp/v20220324/index.ts +6 -0
  45. package/src/services/irp/v20220324/irp_client.ts +87 -0
  46. package/src/services/irp/v20220324/irp_models.ts +708 -0
  47. package/src/services/live/v20180801/live_client.ts +28 -89
  48. package/src/services/live/v20180801/live_models.ts +235 -406
  49. package/src/services/mgobe/v20201014/mgobe_client.ts +28 -14
  50. package/src/services/mmps/v20200710/mmps_models.ts +6 -6
  51. package/src/services/monitor/v20180724/monitor_models.ts +27 -12
  52. package/src/services/oceanus/v20190422/oceanus_client.ts +140 -99
  53. package/src/services/oceanus/v20190422/oceanus_models.ts +435 -54
  54. package/src/services/ocr/v20181119/ocr_client.ts +0 -1
  55. package/src/services/ocr/v20181119/ocr_models.ts +17 -7
  56. package/src/services/redis/v20180412/redis_models.ts +21 -1
  57. package/src/services/rum/v20210622/rum_models.ts +26 -1
  58. package/src/services/ssl/v20191205/ssl_models.ts +12 -1
  59. package/src/services/tan/v20220420/tan_client.ts +1 -1
  60. package/src/services/tem/v20210701/tem_models.ts +9 -3
  61. package/src/services/teo/v20220106/teo_client.ts +2 -1
  62. package/src/services/teo/v20220106/teo_models.ts +44 -8
  63. package/src/services/tke/v20180525/tke_models.ts +8 -1
  64. package/src/services/trtc/v20190722/trtc_client.ts +130 -142
  65. package/src/services/trtc/v20190722/trtc_models.ts +0 -63
  66. package/src/services/tse/v20201207/tse_models.ts +16 -0
  67. package/src/services/vod/v20180717/vod_models.ts +43 -12
  68. package/src/services/waf/v20180125/waf_client.ts +14 -28
  69. package/src/services/waf/v20180125/waf_models.ts +27 -147
  70. package/src/services/yinsuda/v20220527/yinsuda_models.ts +10 -0
  71. package/tencentcloud/common/sdk_version.d.ts +1 -1
  72. package/tencentcloud/common/sdk_version.js +1 -1
  73. package/tencentcloud/services/acp/v20220105/acp_models.d.ts +16 -16
  74. package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +9 -1
  75. package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +12 -0
  76. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +137 -0
  77. package/tencentcloud/services/apm/v20210622/apm_models.d.ts +23 -10
  78. package/tencentcloud/services/cat/v20180409/cat_models.d.ts +45 -0
  79. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +1 -1
  80. package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +1 -1
  81. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +5485 -5463
  82. package/tencentcloud/services/clb/v20180317/clb_client.d.ts +2 -2
  83. package/tencentcloud/services/clb/v20180317/clb_client.js +2 -2
  84. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +2 -2
  85. package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_models.d.ts +2 -2
  86. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +18 -1
  87. package/tencentcloud/services/cpdp/v20190820/cpdp_client.d.ts +14 -2
  88. package/tencentcloud/services/cpdp/v20190820/cpdp_client.js +19 -1
  89. package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +297 -8
  90. package/tencentcloud/services/cvm/v20170312/cvm_client.d.ts +0 -2
  91. package/tencentcloud/services/cvm/v20170312/cvm_client.js +0 -2
  92. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +9 -1
  93. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +10 -0
  94. package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +21 -9
  95. package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +38 -2
  96. package/tencentcloud/services/emr/v20190103/emr_models.d.ts +4 -0
  97. package/tencentcloud/services/es/v20180416/es_client.d.ts +66 -9
  98. package/tencentcloud/services/es/v20180416/es_client.js +95 -12
  99. package/tencentcloud/services/es/v20180416/es_models.d.ts +2021 -1235
  100. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +5 -2
  101. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +5 -3
  102. package/tencentcloud/services/faceid/v20180301/faceid_client.d.ts +1 -6
  103. package/tencentcloud/services/faceid/v20180301/faceid_client.js +0 -7
  104. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +50 -87
  105. package/tencentcloud/services/gaap/v20180529/gaap_client.d.ts +9 -1
  106. package/tencentcloud/services/gaap/v20180529/gaap_client.js +12 -0
  107. package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +66 -27
  108. package/tencentcloud/services/gpm/v20200820/gpm_client.d.ts +54 -18
  109. package/tencentcloud/services/gpm/v20200820/gpm_client.js +54 -18
  110. package/tencentcloud/services/gse/v20191112/gse_client.d.ts +222 -74
  111. package/tencentcloud/services/gse/v20191112/gse_client.js +222 -74
  112. package/tencentcloud/services/iai/v20180301/iai_client.d.ts +10 -0
  113. package/tencentcloud/services/iai/v20180301/iai_client.js +10 -0
  114. package/tencentcloud/services/index.d.ts +1 -0
  115. package/tencentcloud/services/index.js +2 -0
  116. package/tencentcloud/services/iotvideo/index.d.ts +4 -0
  117. package/tencentcloud/services/iotvideo/index.js +2 -0
  118. package/tencentcloud/services/iotvideo/v20211125/index.d.ts +6 -0
  119. package/tencentcloud/services/iotvideo/v20211125/index.js +9 -0
  120. package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.d.ts +34 -0
  121. package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.js +67 -0
  122. package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +365 -0
  123. package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.js +18 -0
  124. package/tencentcloud/services/irp/index.d.ts +6 -0
  125. package/tencentcloud/services/irp/index.js +7 -0
  126. package/tencentcloud/services/irp/v20220324/index.d.ts +6 -0
  127. package/tencentcloud/services/irp/v20220324/index.js +9 -0
  128. package/tencentcloud/services/irp/v20220324/irp_client.d.ts +26 -0
  129. package/tencentcloud/services/irp/v20220324/irp_client.js +55 -0
  130. package/tencentcloud/services/irp/v20220324/irp_models.d.ts +572 -0
  131. package/tencentcloud/services/irp/v20220324/irp_models.js +18 -0
  132. package/tencentcloud/services/live/v20180801/live_client.d.ts +7 -28
  133. package/tencentcloud/services/live/v20180801/live_client.js +8 -39
  134. package/tencentcloud/services/live/v20180801/live_models.d.ts +207 -354
  135. package/tencentcloud/services/mgobe/v20201014/mgobe_client.d.ts +21 -7
  136. package/tencentcloud/services/mgobe/v20201014/mgobe_client.js +21 -7
  137. package/tencentcloud/services/mmps/v20200710/mmps_models.d.ts +6 -6
  138. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +22 -10
  139. package/tencentcloud/services/oceanus/v20190422/oceanus_client.d.ts +49 -37
  140. package/tencentcloud/services/oceanus/v20190422/oceanus_client.js +72 -54
  141. package/tencentcloud/services/oceanus/v20190422/oceanus_models.d.ts +366 -46
  142. package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +0 -1
  143. package/tencentcloud/services/ocr/v20181119/ocr_client.js +0 -1
  144. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +14 -6
  145. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +17 -1
  146. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +21 -1
  147. package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +10 -1
  148. package/tencentcloud/services/tan/v20220420/tan_client.d.ts +1 -1
  149. package/tencentcloud/services/tan/v20220420/tan_client.js +1 -1
  150. package/tencentcloud/services/tem/v20210701/tem_models.d.ts +7 -2
  151. package/tencentcloud/services/teo/v20220106/teo_models.d.ts +37 -6
  152. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +7 -1
  153. package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +55 -59
  154. package/tencentcloud/services/trtc/v20190722/trtc_client.js +75 -81
  155. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +0 -54
  156. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +13 -0
  157. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +38 -11
  158. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +5 -9
  159. package/tencentcloud/services/waf/v20180125/waf_client.js +6 -12
  160. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +24 -124
  161. package/tencentcloud/services/yinsuda/v20220527/yinsuda_models.d.ts +8 -0
  162. package/test/antiddos.v20200309.test.js +20 -0
  163. package/test/cpdp.v20190820.test.js +30 -0
  164. package/test/es.v20180416.test.js +138 -8
  165. package/test/faceid.v20180301.test.js +0 -10
  166. package/test/gaap.v20180529.test.js +20 -0
  167. package/test/iotvideo.v20211125.test.js +81 -0
  168. package/test/irp.v20220324.test.js +61 -0
  169. package/test/live.v20180801.test.js +4 -54
  170. package/test/oceanus.v20190422.test.js +64 -34
  171. package/test/trtc.v20190722.test.js +38 -48
  172. package/test/waf.v20180125.test.js +4 -14
@@ -189,11 +189,21 @@ export class Client extends AbstractClient {
189
189
  >
190
190
  - 图片的宽高比请接近3:4,不符合宽高比的图片返回的分值不具备参考意义。本接口适用于类手机自拍场景,非类手机自拍照返回的分值不具备参考意义。
191
191
 
192
- >
192
+ >
193
193
  - 使用过程中建议正对摄像头,不要距离太远,使面部可以完整地显示在识别的框内,识别过程中不要移动设备或遮挡面部。不要选择光线过强或过弱的环境进行面部识别,识别时不要添加任何滤镜。
194
194
 
195
195
  >
196
196
  - 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
197
+
198
+ ## 调用次数计费(资源包)
199
+ |资源包规格|100万次|1000万次|5000万次|1亿次|
200
+ |-|-|-|-|-|
201
+ |人脸静态活体检测|1800元|17400元|75000元|110000元|
202
+
203
+ ## 调用次数计费(后付费)
204
+ |月接口调用总量|0<调用量≤300万|300万<调用量≤1500万|调用量>1500万|
205
+ |-|-|-|-|
206
+ |人脸静态活体检测|0.0019元/次|0.0017元/次|0.0013元/次|
197
207
  */
198
208
  async DetectLiveFace(
199
209
  req: DetectLiveFaceRequest,
@@ -108,6 +108,7 @@ export { iotexplorer } from "./iotexplorer"
108
108
  export { iottid } from "./iottid"
109
109
  export { iotvideo } from "./iotvideo"
110
110
  export { iotvideoindustry } from "./iotvideoindustry"
111
+ export { irp } from "./irp"
111
112
  export { ivld } from "./ivld"
112
113
  export { kms } from "./kms"
113
114
  export { lighthouse } from "./lighthouse"
@@ -1,7 +1,9 @@
1
1
  import { v20191126 } from "./v20191126"
2
+ import { v20211125 } from "./v20211125"
2
3
  import { v20201215 } from "./v20201215"
3
4
 
4
5
  export const iotvideo = {
5
6
  v20191126: v20191126,
7
+ v20211125: v20211125,
6
8
  v20201215: v20201215,
7
9
  }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./iotvideo_models"
2
+ import { Client } from "./iotvideo_client"
3
+ export const v20211125 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ }
@@ -0,0 +1,107 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { AbstractClient } from "../../../common/abstract_client"
19
+ import { ClientConfig } from "../../../common/interface"
20
+ import {
21
+ MessageCntStats,
22
+ DeviceSignatureInfo,
23
+ CallDeviceActionAsyncResponse,
24
+ GenSingleDeviceSignatureOfPublicResponse,
25
+ CreateProductRequest,
26
+ GenSingleDeviceSignatureOfPublicRequest,
27
+ DescribeDeviceDataStatsRequest,
28
+ CallDeviceActionSyncResponse,
29
+ CreateProductResponse,
30
+ DeviceCntStats,
31
+ DescribeDeviceDataStatsResponse,
32
+ VideoProduct,
33
+ DescribeMessageDataStatsRequest,
34
+ DescribeMessageDataStatsResponse,
35
+ CallDeviceActionAsyncRequest,
36
+ CallDeviceActionSyncRequest,
37
+ } from "./iotvideo_models"
38
+
39
+ /**
40
+ * iotvideo client
41
+ * @class
42
+ */
43
+ export class Client extends AbstractClient {
44
+ constructor(clientConfig: ClientConfig) {
45
+ super("iotvideo.tencentcloudapi.com", "2021-11-25", clientConfig)
46
+ }
47
+
48
+ /**
49
+ * 查询设备消息数量统计
50
+ */
51
+ async DescribeMessageDataStats(
52
+ req: DescribeMessageDataStatsRequest,
53
+ cb?: (error: string, rep: DescribeMessageDataStatsResponse) => void
54
+ ): Promise<DescribeMessageDataStatsResponse> {
55
+ return this.request("DescribeMessageDataStats", req, cb)
56
+ }
57
+
58
+ /**
59
+ * 创建产品
60
+ */
61
+ async CreateProduct(
62
+ req: CreateProductRequest,
63
+ cb?: (error: string, rep: CreateProductResponse) => void
64
+ ): Promise<CreateProductResponse> {
65
+ return this.request("CreateProduct", req, cb)
66
+ }
67
+
68
+ /**
69
+ * 查询设备数据统计
70
+ */
71
+ async DescribeDeviceDataStats(
72
+ req: DescribeDeviceDataStatsRequest,
73
+ cb?: (error: string, rep: DescribeDeviceDataStatsResponse) => void
74
+ ): Promise<DescribeDeviceDataStatsResponse> {
75
+ return this.request("DescribeDeviceDataStats", req, cb)
76
+ }
77
+
78
+ /**
79
+ * 获取设备的绑定签名
80
+ */
81
+ async GenSingleDeviceSignatureOfPublic(
82
+ req: GenSingleDeviceSignatureOfPublicRequest,
83
+ cb?: (error: string, rep: GenSingleDeviceSignatureOfPublicResponse) => void
84
+ ): Promise<GenSingleDeviceSignatureOfPublicResponse> {
85
+ return this.request("GenSingleDeviceSignatureOfPublic", req, cb)
86
+ }
87
+
88
+ /**
89
+ * 异步调用设备行为
90
+ */
91
+ async CallDeviceActionAsync(
92
+ req: CallDeviceActionAsyncRequest,
93
+ cb?: (error: string, rep: CallDeviceActionAsyncResponse) => void
94
+ ): Promise<CallDeviceActionAsyncResponse> {
95
+ return this.request("CallDeviceActionAsync", req, cb)
96
+ }
97
+
98
+ /**
99
+ * 同步调用设备行为
100
+ */
101
+ async CallDeviceActionSync(
102
+ req: CallDeviceActionSyncRequest,
103
+ cb?: (error: string, rep: CallDeviceActionSyncResponse) => void
104
+ ): Promise<CallDeviceActionSyncResponse> {
105
+ return this.request("CallDeviceActionSync", req, cb)
106
+ }
107
+ }
@@ -0,0 +1,448 @@
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
+
18
+ /**
19
+ * 消息数量统计
20
+ */
21
+ export interface MessageCntStats {
22
+ /**
23
+ * 统计日期
24
+ */
25
+ Date: string
26
+
27
+ /**
28
+ * 物模型上行消息数
29
+ 注意:此字段可能返回 null,表示取不到有效值。
30
+ */
31
+ UpMsgCnt: number
32
+
33
+ /**
34
+ * 物模型下行消息数
35
+ 注意:此字段可能返回 null,表示取不到有效值。
36
+ */
37
+ DownMsgCnt: number
38
+
39
+ /**
40
+ * ntp消息数
41
+ 注意:此字段可能返回 null,表示取不到有效值。
42
+ */
43
+ NtpMsgCnt: number
44
+ }
45
+
46
+ /**
47
+ * 设备签名信息
48
+ */
49
+ export interface DeviceSignatureInfo {
50
+ /**
51
+ * 设备名称
52
+ */
53
+ DeviceName: string
54
+
55
+ /**
56
+ * 设备签名
57
+ */
58
+ DeviceSignature: string
59
+ }
60
+
61
+ /**
62
+ * CallDeviceActionAsync返回参数结构体
63
+ */
64
+ export interface CallDeviceActionAsyncResponse {
65
+ /**
66
+ * 调用Id
67
+ 注意:此字段可能返回 null,表示取不到有效值。
68
+ */
69
+ ClientToken: string
70
+
71
+ /**
72
+ * 异步调用状态
73
+ 注意:此字段可能返回 null,表示取不到有效值。
74
+ */
75
+ Status: string
76
+
77
+ /**
78
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
79
+ */
80
+ RequestId?: string
81
+ }
82
+
83
+ /**
84
+ * GenSingleDeviceSignatureOfPublic返回参数结构体
85
+ */
86
+ export interface GenSingleDeviceSignatureOfPublicResponse {
87
+ /**
88
+ * 设备签名信息
89
+ */
90
+ DeviceSignature: DeviceSignatureInfo
91
+
92
+ /**
93
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
94
+ */
95
+ RequestId?: string
96
+ }
97
+
98
+ /**
99
+ * CreateProduct请求参数结构体
100
+ */
101
+ export interface CreateProductRequest {
102
+ /**
103
+ * 产品名称
104
+ */
105
+ ProductName: string
106
+
107
+ /**
108
+ * 产品设备类型 1.普通设备 2.NVR设备
109
+ */
110
+ DeviceType: number
111
+
112
+ /**
113
+ * 产品有效期
114
+ */
115
+ ProductVaildYears: number
116
+
117
+ /**
118
+ * 设备功能码 ypsxth音频双向通话 spdxth视频单向通话 sxysp双向音视频
119
+ */
120
+ Features: Array<string>
121
+
122
+ /**
123
+ * 设备操作系统,通用设备填default
124
+ */
125
+ ChipOs: string
126
+
127
+ /**
128
+ * 芯片厂商id,通用设备填default
129
+ */
130
+ ChipManufactureId: string
131
+
132
+ /**
133
+ * 芯片id,通用设备填default
134
+ */
135
+ ChipId: string
136
+
137
+ /**
138
+ * 产品描述信息
139
+ */
140
+ ProductDescription: string
141
+
142
+ /**
143
+ * 认证方式 只支持取值为2 psk认证
144
+ */
145
+ EncryptionType?: number
146
+
147
+ /**
148
+ * 连接类型,wifi表示WIFI连接,cellular表示4G连接
149
+ */
150
+ NetType?: string
151
+ }
152
+
153
+ /**
154
+ * GenSingleDeviceSignatureOfPublic请求参数结构体
155
+ */
156
+ export interface GenSingleDeviceSignatureOfPublicRequest {
157
+ /**
158
+ * 设备所属的产品ID
159
+ */
160
+ ProductId: string
161
+
162
+ /**
163
+ * 需要绑定的设备
164
+ */
165
+ DeviceName: string
166
+
167
+ /**
168
+ * 设备绑定签名的有效时间,以秒为单位。取值范围:0 < Expire <= 86400,Expire == -1(十年)
169
+ */
170
+ Expire: number
171
+ }
172
+
173
+ /**
174
+ * DescribeDeviceDataStats请求参数结构体
175
+ */
176
+ export interface DescribeDeviceDataStatsRequest {
177
+ /**
178
+ * 开始日期
179
+ */
180
+ StartDate: string
181
+
182
+ /**
183
+ * 结束日期
184
+ */
185
+ EndDate: string
186
+
187
+ /**
188
+ * 产品id
189
+ */
190
+ ProductId?: string
191
+ }
192
+
193
+ /**
194
+ * CallDeviceActionSync返回参数结构体
195
+ */
196
+ export interface CallDeviceActionSyncResponse {
197
+ /**
198
+ * 调用Id
199
+ 注意:此字段可能返回 null,表示取不到有效值。
200
+ */
201
+ ClientToken: string
202
+
203
+ /**
204
+ * 输出参数
205
+ 注意:此字段可能返回 null,表示取不到有效值。
206
+ */
207
+ OutputParams: string
208
+
209
+ /**
210
+ * 返回状态,当设备不在线等部分情况,会通过该 Status 返回。
211
+ 注意:此字段可能返回 null,表示取不到有效值。
212
+ */
213
+ Status: string
214
+
215
+ /**
216
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
217
+ */
218
+ RequestId?: string
219
+ }
220
+
221
+ /**
222
+ * CreateProduct返回参数结构体
223
+ */
224
+ export interface CreateProductResponse {
225
+ /**
226
+ * 产品详情
227
+ */
228
+ Data: VideoProduct
229
+
230
+ /**
231
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
232
+ */
233
+ RequestId?: string
234
+ }
235
+
236
+ /**
237
+ * 设备数量统计
238
+ */
239
+ export interface DeviceCntStats {
240
+ /**
241
+ * 统计日期
242
+ */
243
+ Date: string
244
+
245
+ /**
246
+ * 新增注册设备数
247
+ 注意:此字段可能返回 null,表示取不到有效值。
248
+ */
249
+ NewRegisterCnt: number
250
+
251
+ /**
252
+ * 新增激活设备数
253
+ 注意:此字段可能返回 null,表示取不到有效值。
254
+ */
255
+ NewActivateCnt: number
256
+
257
+ /**
258
+ * 活跃设备数
259
+ 注意:此字段可能返回 null,表示取不到有效值。
260
+ */
261
+ ActiveCnt: number
262
+ }
263
+
264
+ /**
265
+ * DescribeDeviceDataStats返回参数结构体
266
+ */
267
+ export interface DescribeDeviceDataStatsResponse {
268
+ /**
269
+ * 累计注册设备数
270
+ 注意:此字段可能返回 null,表示取不到有效值。
271
+ */
272
+ RegisterCnt: number
273
+
274
+ /**
275
+ * 设备数量列表
276
+ 注意:此字段可能返回 null,表示取不到有效值。
277
+ */
278
+ Data: Array<DeviceCntStats>
279
+
280
+ /**
281
+ * 总数
282
+ 注意:此字段可能返回 null,表示取不到有效值。
283
+ */
284
+ Total: number
285
+
286
+ /**
287
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
288
+ */
289
+ RequestId?: string
290
+ }
291
+
292
+ /**
293
+ * video产品元数据
294
+ */
295
+ export interface VideoProduct {
296
+ /**
297
+ * 产品ID
298
+ */
299
+ ProductId: string
300
+
301
+ /**
302
+ * 产品名称
303
+ */
304
+ ProductName: string
305
+
306
+ /**
307
+ * 产品设备类型(普通设备) 1.普通设备
308
+ */
309
+ DeviceType: number
310
+
311
+ /**
312
+ * 认证方式:2:PSK
313
+ */
314
+ EncryptionType: number
315
+
316
+ /**
317
+ * 设备功能码
318
+ */
319
+ Features: Array<string>
320
+
321
+ /**
322
+ * 操作系统
323
+ */
324
+ ChipOs: string
325
+
326
+ /**
327
+ * 芯片厂商id
328
+ */
329
+ ChipManufactureId: string
330
+
331
+ /**
332
+ * 芯片id
333
+ */
334
+ ChipId: string
335
+
336
+ /**
337
+ * 产品描述信息
338
+ */
339
+ ProductDescription: string
340
+
341
+ /**
342
+ * 创建时间unix时间戳
343
+ */
344
+ CreateTime: number
345
+
346
+ /**
347
+ * 修改时间unix时间戳
348
+ */
349
+ UpdateTime: number
350
+
351
+ /**
352
+ * 连接类型,wifi表示WIFI连接,cellular表示4G连接
353
+ 注意:此字段可能返回 null,表示取不到有效值。
354
+ */
355
+ NetType: string
356
+ }
357
+
358
+ /**
359
+ * DescribeMessageDataStats请求参数结构体
360
+ */
361
+ export interface DescribeMessageDataStatsRequest {
362
+ /**
363
+ * 统计开始日期
364
+ */
365
+ StartDate: string
366
+
367
+ /**
368
+ * 统计结束日期
369
+ */
370
+ EndDate: string
371
+
372
+ /**
373
+ * 产品id
374
+ */
375
+ ProductId?: string
376
+ }
377
+
378
+ /**
379
+ * DescribeMessageDataStats返回参数结构体
380
+ */
381
+ export interface DescribeMessageDataStatsResponse {
382
+ /**
383
+ * 消息数量列表
384
+ 注意:此字段可能返回 null,表示取不到有效值。
385
+ */
386
+ Data: Array<MessageCntStats>
387
+
388
+ /**
389
+ * 总数
390
+ 注意:此字段可能返回 null,表示取不到有效值。
391
+ */
392
+ Total: number
393
+
394
+ /**
395
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
396
+ */
397
+ RequestId?: string
398
+ }
399
+
400
+ /**
401
+ * CallDeviceActionAsync请求参数结构体
402
+ */
403
+ export interface CallDeviceActionAsyncRequest {
404
+ /**
405
+ * 产品Id
406
+ */
407
+ ProductId: string
408
+
409
+ /**
410
+ * 设备名称
411
+ */
412
+ DeviceName: string
413
+
414
+ /**
415
+ * 产品数据模板中行为功能的标识符,由开发者自行根据设备的应用场景定义
416
+ */
417
+ ActionId: string
418
+
419
+ /**
420
+ * 输入参数
421
+ */
422
+ InputParams?: string
423
+ }
424
+
425
+ /**
426
+ * CallDeviceActionSync请求参数结构体
427
+ */
428
+ export interface CallDeviceActionSyncRequest {
429
+ /**
430
+ * 产品Id
431
+ */
432
+ ProductId: string
433
+
434
+ /**
435
+ * 设备名称
436
+ */
437
+ DeviceName: string
438
+
439
+ /**
440
+ * 产品数据模板中行为功能的标识符,由开发者自行根据设备的应用场景定义
441
+ */
442
+ ActionId: string
443
+
444
+ /**
445
+ * 输入参数
446
+ */
447
+ InputParams?: string
448
+ }
@@ -0,0 +1,5 @@
1
+ import { v20220324 } from "./v20220324"
2
+
3
+ export const irp = {
4
+ v20220324: v20220324,
5
+ }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./irp_models"
2
+ import { Client } from "./irp_client"
3
+ export const v20220324 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ }
@@ -0,0 +1,87 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { AbstractClient } from "../../../common/abstract_client"
19
+ import { ClientConfig } from "../../../common/interface"
20
+ import {
21
+ UserIdInfo,
22
+ ReportMaterialResponse,
23
+ DocBehavior,
24
+ AuthorInfo,
25
+ DocItem,
26
+ ReportActionResponse,
27
+ DislikeInfo,
28
+ ReportPortraitRequest,
29
+ ReportPortraitResponse,
30
+ ReportActionRequest,
31
+ PortraitInfo,
32
+ RecommendContentRequest,
33
+ RecItemData,
34
+ ReportMaterialRequest,
35
+ RecommendContentResponse,
36
+ TagInfo,
37
+ } from "./irp_models"
38
+
39
+ /**
40
+ * irp client
41
+ * @class
42
+ */
43
+ export class Client extends AbstractClient {
44
+ constructor(clientConfig: ClientConfig) {
45
+ super("irp.tencentcloudapi.com", "2022-03-24", clientConfig)
46
+ }
47
+
48
+ /**
49
+ * 获取推荐结果
50
+ */
51
+ async RecommendContent(
52
+ req: RecommendContentRequest,
53
+ cb?: (error: string, rep: RecommendContentResponse) => void
54
+ ): Promise<RecommendContentResponse> {
55
+ return this.request("RecommendContent", req, cb)
56
+ }
57
+
58
+ /**
59
+ * 上报物料
60
+ */
61
+ async ReportMaterial(
62
+ req: ReportMaterialRequest,
63
+ cb?: (error: string, rep: ReportMaterialResponse) => void
64
+ ): Promise<ReportMaterialResponse> {
65
+ return this.request("ReportMaterial", req, cb)
66
+ }
67
+
68
+ /**
69
+ * 上报行为
70
+ */
71
+ async ReportAction(
72
+ req: ReportActionRequest,
73
+ cb?: (error: string, rep: ReportActionResponse) => void
74
+ ): Promise<ReportActionResponse> {
75
+ return this.request("ReportAction", req, cb)
76
+ }
77
+
78
+ /**
79
+ * 上报用户画像
80
+ */
81
+ async ReportPortrait(
82
+ req: ReportPortraitRequest,
83
+ cb?: (error: string, rep: ReportPortraitResponse) => void
84
+ ): Promise<ReportPortraitResponse> {
85
+ return this.request("ReportPortrait", req, cb)
86
+ }
87
+ }