tencentcloud-sdk-nodejs 4.0.376 → 4.0.379

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 (165) hide show
  1. package/CHANGELOG.md +605 -0
  2. package/SERVICE_CHANGELOG.md +1006 -210
  3. package/package.json +1 -1
  4. package/products.md +42 -41
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/antiddos/v20200309/antiddos_client.ts +25 -0
  7. package/src/services/antiddos/v20200309/antiddos_models.ts +160 -0
  8. package/src/services/apm/v20210622/apm_models.ts +25 -10
  9. package/src/services/cat/v20180409/cat_models.ts +59 -14
  10. package/src/services/cbs/v20170312/cbs_models.ts +23 -23
  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 +3 -3
  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 +12 -2
  23. package/src/services/cwp/v20180228/cwp_models.ts +6 -0
  24. package/src/services/cynosdb/v20190107/cynosdb_models.ts +24 -9
  25. package/src/services/dlc/v20210125/dlc_client.ts +3 -3
  26. package/src/services/dlc/v20210125/dlc_models.ts +218 -6
  27. package/src/services/es/v20180416/es_client.ts +4 -2
  28. package/src/services/es/v20180416/es_models.ts +100 -23
  29. package/src/services/ess/v20201111/ess_client.ts +1 -1
  30. package/src/services/ess/v20201111/ess_models.ts +6 -3
  31. package/src/services/essbasic/v20210526/essbasic_client.ts +1 -1
  32. package/src/services/essbasic/v20210526/essbasic_models.ts +50 -8
  33. package/src/services/gaap/v20180529/gaap_models.ts +16 -0
  34. package/src/services/gpm/v20200820/gpm_client.ts +72 -36
  35. package/src/services/gse/v20191112/gse_client.ts +288 -140
  36. package/src/services/iai/v20180301/iai_client.ts +11 -1
  37. package/src/services/ie/v20200304/ie_models.ts +1 -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 +81 -0
  42. package/src/services/iotvideo/v20211125/iotvideo_models.ts +262 -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/mariadb/v20170312/mariadb_client.ts +25 -13
  50. package/src/services/mariadb/v20170312/mariadb_models.ts +38 -8
  51. package/src/services/mgobe/v20201014/mgobe_client.ts +28 -14
  52. package/src/services/ms/v20180408/ms_models.ts +23 -23
  53. package/src/services/oceanus/v20190422/oceanus_client.ts +140 -99
  54. package/src/services/oceanus/v20190422/oceanus_models.ts +435 -54
  55. package/src/services/ocr/v20181119/ocr_models.ts +17 -7
  56. package/src/services/redis/v20180412/redis_models.ts +12 -2
  57. package/src/services/rum/v20210622/rum_models.ts +25 -0
  58. package/src/services/sts/v20180813/sts_models.ts +5 -0
  59. package/src/services/tcr/v20190924/tcr_models.ts +22 -1
  60. package/src/services/tcss/v20201101/tcss_models.ts +82 -2
  61. package/src/services/tdmq/v20200217/tdmq_models.ts +2 -2
  62. package/src/services/tem/v20210701/tem_models.ts +9 -3
  63. package/src/services/teo/v20220106/teo_client.ts +2 -1
  64. package/src/services/teo/v20220106/teo_models.ts +64 -16
  65. package/src/services/tiia/v20190529/tiia_models.ts +6 -0
  66. package/src/services/tke/v20180525/tke_client.ts +1 -1
  67. package/src/services/tke/v20180525/tke_models.ts +73 -1
  68. package/src/services/tse/v20201207/tse_models.ts +16 -0
  69. package/src/services/vod/v20180717/vod_models.ts +43 -12
  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/antiddos/v20200309/antiddos_client.d.ts +9 -1
  74. package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +12 -0
  75. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +133 -0
  76. package/tencentcloud/services/apm/v20210622/apm_models.d.ts +23 -10
  77. package/tencentcloud/services/cat/v20180409/cat_models.d.ts +45 -0
  78. package/tencentcloud/services/cbs/v20170312/cbs_models.d.ts +22 -22
  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 +3 -3
  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 +10 -2
  93. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +5 -0
  94. package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +21 -9
  95. package/tencentcloud/services/dlc/v20210125/dlc_client.d.ts +3 -3
  96. package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +182 -6
  97. package/tencentcloud/services/es/v20180416/es_client.d.ts +1 -1
  98. package/tencentcloud/services/es/v20180416/es_models.d.ts +84 -20
  99. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +1 -1
  100. package/tencentcloud/services/ess/v20201111/ess_client.js +1 -1
  101. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +5 -2
  102. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +1 -1
  103. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +1 -1
  104. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +43 -8
  105. package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +13 -0
  106. package/tencentcloud/services/gpm/v20200820/gpm_client.d.ts +54 -18
  107. package/tencentcloud/services/gpm/v20200820/gpm_client.js +54 -18
  108. package/tencentcloud/services/gse/v20191112/gse_client.d.ts +222 -74
  109. package/tencentcloud/services/gse/v20191112/gse_client.js +222 -74
  110. package/tencentcloud/services/iai/v20180301/iai_client.d.ts +10 -0
  111. package/tencentcloud/services/iai/v20180301/iai_client.js +10 -0
  112. package/tencentcloud/services/ie/v20200304/ie_models.d.ts +1 -1
  113. package/tencentcloud/services/index.d.ts +1 -0
  114. package/tencentcloud/services/index.js +2 -0
  115. package/tencentcloud/services/iotvideo/index.d.ts +4 -0
  116. package/tencentcloud/services/iotvideo/index.js +2 -0
  117. package/tencentcloud/services/iotvideo/v20211125/index.d.ts +6 -0
  118. package/tencentcloud/services/iotvideo/v20211125/index.js +9 -0
  119. package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.d.ts +26 -0
  120. package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.js +55 -0
  121. package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +210 -0
  122. package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.js +18 -0
  123. package/tencentcloud/services/irp/index.d.ts +6 -0
  124. package/tencentcloud/services/irp/index.js +7 -0
  125. package/tencentcloud/services/irp/v20220324/index.d.ts +6 -0
  126. package/tencentcloud/services/irp/v20220324/index.js +9 -0
  127. package/tencentcloud/services/irp/v20220324/irp_client.d.ts +26 -0
  128. package/tencentcloud/services/irp/v20220324/irp_client.js +55 -0
  129. package/tencentcloud/services/irp/v20220324/irp_models.d.ts +572 -0
  130. package/tencentcloud/services/irp/v20220324/irp_models.js +18 -0
  131. package/tencentcloud/services/live/v20180801/live_client.d.ts +7 -28
  132. package/tencentcloud/services/live/v20180801/live_client.js +8 -39
  133. package/tencentcloud/services/live/v20180801/live_models.d.ts +207 -354
  134. package/tencentcloud/services/mariadb/v20170312/mariadb_client.d.ts +12 -8
  135. package/tencentcloud/services/mariadb/v20170312/mariadb_client.js +14 -8
  136. package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +34 -8
  137. package/tencentcloud/services/mgobe/v20201014/mgobe_client.d.ts +21 -7
  138. package/tencentcloud/services/mgobe/v20201014/mgobe_client.js +21 -7
  139. package/tencentcloud/services/ms/v20180408/ms_models.d.ts +22 -22
  140. package/tencentcloud/services/oceanus/v20190422/oceanus_client.d.ts +49 -37
  141. package/tencentcloud/services/oceanus/v20190422/oceanus_client.js +72 -54
  142. package/tencentcloud/services/oceanus/v20190422/oceanus_models.d.ts +366 -46
  143. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +14 -6
  144. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +10 -2
  145. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +20 -0
  146. package/tencentcloud/services/sts/v20180813/sts_models.d.ts +4 -0
  147. package/tencentcloud/services/tcr/v20190924/tcr_models.d.ts +18 -1
  148. package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +75 -2
  149. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +2 -2
  150. package/tencentcloud/services/tem/v20210701/tem_models.d.ts +7 -2
  151. package/tencentcloud/services/teo/v20220106/teo_models.d.ts +53 -10
  152. package/tencentcloud/services/tiia/v20190529/tiia_models.d.ts +5 -0
  153. package/tencentcloud/services/tke/v20180525/tke_client.d.ts +1 -1
  154. package/tencentcloud/services/tke/v20180525/tke_client.js +1 -1
  155. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +60 -1
  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/yinsuda/v20220527/yinsuda_models.d.ts +8 -0
  159. package/test/antiddos.v20200309.test.js +20 -0
  160. package/test/cpdp.v20190820.test.js +30 -0
  161. package/test/iotvideo.v20211125.test.js +61 -0
  162. package/test/irp.v20220324.test.js +61 -0
  163. package/test/live.v20180801.test.js +4 -54
  164. package/test/mariadb.v20170312.test.js +12 -2
  165. package/test/oceanus.v20190422.test.js +64 -34
@@ -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,
@@ -874,7 +874,7 @@ export interface CreateEditingTaskResponse {
874
874
  /**
875
875
  * 编辑任务 ID,可以通过该 ID 查询任务状态。
876
876
  */
877
- TaskId?: string
877
+ TaskId: string
878
878
 
879
879
  /**
880
880
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -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,81 @@
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
+ CallDeviceActionAsyncResponse,
23
+ DescribeDeviceDataStatsResponse,
24
+ DescribeDeviceDataStatsRequest,
25
+ CallDeviceActionSyncResponse,
26
+ DeviceCntStats,
27
+ DescribeMessageDataStatsResponse,
28
+ DescribeMessageDataStatsRequest,
29
+ CallDeviceActionAsyncRequest,
30
+ CallDeviceActionSyncRequest,
31
+ } from "./iotvideo_models"
32
+
33
+ /**
34
+ * iotvideo client
35
+ * @class
36
+ */
37
+ export class Client extends AbstractClient {
38
+ constructor(clientConfig: ClientConfig) {
39
+ super("iotvideo.tencentcloudapi.com", "2021-11-25", clientConfig)
40
+ }
41
+
42
+ /**
43
+ * 查询设备消息数量统计
44
+ */
45
+ async DescribeMessageDataStats(
46
+ req: DescribeMessageDataStatsRequest,
47
+ cb?: (error: string, rep: DescribeMessageDataStatsResponse) => void
48
+ ): Promise<DescribeMessageDataStatsResponse> {
49
+ return this.request("DescribeMessageDataStats", req, cb)
50
+ }
51
+
52
+ /**
53
+ * 异步调用设备行为
54
+ */
55
+ async CallDeviceActionAsync(
56
+ req: CallDeviceActionAsyncRequest,
57
+ cb?: (error: string, rep: CallDeviceActionAsyncResponse) => void
58
+ ): Promise<CallDeviceActionAsyncResponse> {
59
+ return this.request("CallDeviceActionAsync", req, cb)
60
+ }
61
+
62
+ /**
63
+ * 同步调用设备行为
64
+ */
65
+ async CallDeviceActionSync(
66
+ req: CallDeviceActionSyncRequest,
67
+ cb?: (error: string, rep: CallDeviceActionSyncResponse) => void
68
+ ): Promise<CallDeviceActionSyncResponse> {
69
+ return this.request("CallDeviceActionSync", req, cb)
70
+ }
71
+
72
+ /**
73
+ * 查询设备数据统计
74
+ */
75
+ async DescribeDeviceDataStats(
76
+ req: DescribeDeviceDataStatsRequest,
77
+ cb?: (error: string, rep: DescribeDeviceDataStatsResponse) => void
78
+ ): Promise<DescribeDeviceDataStatsResponse> {
79
+ return this.request("DescribeDeviceDataStats", req, cb)
80
+ }
81
+ }
@@ -0,0 +1,262 @@
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
+ * CallDeviceActionAsync返回参数结构体
48
+ */
49
+ export interface CallDeviceActionAsyncResponse {
50
+ /**
51
+ * 调用Id
52
+ 注意:此字段可能返回 null,表示取不到有效值。
53
+ */
54
+ ClientToken: string
55
+
56
+ /**
57
+ * 异步调用状态
58
+ 注意:此字段可能返回 null,表示取不到有效值。
59
+ */
60
+ Status: string
61
+
62
+ /**
63
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
64
+ */
65
+ RequestId?: string
66
+ }
67
+
68
+ /**
69
+ * DescribeDeviceDataStats返回参数结构体
70
+ */
71
+ export interface DescribeDeviceDataStatsResponse {
72
+ /**
73
+ * 累计注册设备数
74
+ 注意:此字段可能返回 null,表示取不到有效值。
75
+ */
76
+ RegisterCnt: number
77
+
78
+ /**
79
+ * 设备数量列表
80
+ 注意:此字段可能返回 null,表示取不到有效值。
81
+ */
82
+ Data: Array<DeviceCntStats>
83
+
84
+ /**
85
+ * 总数
86
+ 注意:此字段可能返回 null,表示取不到有效值。
87
+ */
88
+ Total: number
89
+
90
+ /**
91
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
92
+ */
93
+ RequestId?: string
94
+ }
95
+
96
+ /**
97
+ * DescribeDeviceDataStats请求参数结构体
98
+ */
99
+ export interface DescribeDeviceDataStatsRequest {
100
+ /**
101
+ * 开始日期
102
+ */
103
+ StartDate: string
104
+
105
+ /**
106
+ * 结束日期
107
+ */
108
+ EndDate: string
109
+
110
+ /**
111
+ * 产品id
112
+ */
113
+ ProductId?: string
114
+ }
115
+
116
+ /**
117
+ * CallDeviceActionSync返回参数结构体
118
+ */
119
+ export interface CallDeviceActionSyncResponse {
120
+ /**
121
+ * 调用Id
122
+ 注意:此字段可能返回 null,表示取不到有效值。
123
+ */
124
+ ClientToken: string
125
+
126
+ /**
127
+ * 输出参数
128
+ 注意:此字段可能返回 null,表示取不到有效值。
129
+ */
130
+ OutputParams: string
131
+
132
+ /**
133
+ * 返回状态,当设备不在线等部分情况,会通过该 Status 返回。
134
+ 注意:此字段可能返回 null,表示取不到有效值。
135
+ */
136
+ Status: string
137
+
138
+ /**
139
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
140
+ */
141
+ RequestId?: string
142
+ }
143
+
144
+ /**
145
+ * 设备数量统计
146
+ */
147
+ export interface DeviceCntStats {
148
+ /**
149
+ * 统计日期
150
+ */
151
+ Date: string
152
+
153
+ /**
154
+ * 新增注册设备数
155
+ 注意:此字段可能返回 null,表示取不到有效值。
156
+ */
157
+ NewRegisterCnt: number
158
+
159
+ /**
160
+ * 新增激活设备数
161
+ 注意:此字段可能返回 null,表示取不到有效值。
162
+ */
163
+ NewActivateCnt: number
164
+
165
+ /**
166
+ * 活跃设备数
167
+ 注意:此字段可能返回 null,表示取不到有效值。
168
+ */
169
+ ActiveCnt: number
170
+ }
171
+
172
+ /**
173
+ * DescribeMessageDataStats返回参数结构体
174
+ */
175
+ export interface DescribeMessageDataStatsResponse {
176
+ /**
177
+ * 消息数量列表
178
+ 注意:此字段可能返回 null,表示取不到有效值。
179
+ */
180
+ Data: Array<MessageCntStats>
181
+
182
+ /**
183
+ * 总数
184
+ 注意:此字段可能返回 null,表示取不到有效值。
185
+ */
186
+ Total: number
187
+
188
+ /**
189
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
190
+ */
191
+ RequestId?: string
192
+ }
193
+
194
+ /**
195
+ * DescribeMessageDataStats请求参数结构体
196
+ */
197
+ export interface DescribeMessageDataStatsRequest {
198
+ /**
199
+ * 统计开始日期
200
+ */
201
+ StartDate: string
202
+
203
+ /**
204
+ * 统计结束日期
205
+ */
206
+ EndDate: string
207
+
208
+ /**
209
+ * 产品id
210
+ */
211
+ ProductId?: string
212
+ }
213
+
214
+ /**
215
+ * CallDeviceActionAsync请求参数结构体
216
+ */
217
+ export interface CallDeviceActionAsyncRequest {
218
+ /**
219
+ * 产品Id
220
+ */
221
+ ProductId: string
222
+
223
+ /**
224
+ * 设备名称
225
+ */
226
+ DeviceName: string
227
+
228
+ /**
229
+ * 产品数据模板中行为功能的标识符,由开发者自行根据设备的应用场景定义
230
+ */
231
+ ActionId: string
232
+
233
+ /**
234
+ * 输入参数
235
+ */
236
+ InputParams?: string
237
+ }
238
+
239
+ /**
240
+ * CallDeviceActionSync请求参数结构体
241
+ */
242
+ export interface CallDeviceActionSyncRequest {
243
+ /**
244
+ * 产品Id
245
+ */
246
+ ProductId: string
247
+
248
+ /**
249
+ * 设备名称
250
+ */
251
+ DeviceName: string
252
+
253
+ /**
254
+ * 产品数据模板中行为功能的标识符,由开发者自行根据设备的应用场景定义
255
+ */
256
+ ActionId: string
257
+
258
+ /**
259
+ * 输入参数
260
+ */
261
+ InputParams?: string
262
+ }
@@ -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
+ }