tencentcloud-sdk-nodejs 4.0.378 → 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.
- package/CHANGELOG.md +230 -0
- package/SERVICE_CHANGELOG.md +707 -69
- package/package.json +1 -1
- package/products.md +33 -32
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_client.ts +25 -0
- package/src/services/antiddos/v20200309/antiddos_models.ts +160 -0
- package/src/services/apm/v20210622/apm_models.ts +25 -10
- package/src/services/cat/v20180409/cat_models.ts +59 -14
- package/src/services/cdb/v20170320/cdb_models.ts +1 -1
- package/src/services/cdn/v20180606/cdn_client.ts +273 -272
- package/src/services/cdn/v20180606/cdn_models.ts +6322 -6296
- package/src/services/clb/v20180317/clb_client.ts +2 -2
- package/src/services/clb/v20180317/clb_models.ts +2 -2
- package/src/services/cloudaudit/v20190319/cloudaudit_models.ts +2 -2
- package/src/services/cls/v20201016/cls_client.ts +1 -0
- package/src/services/cls/v20201016/cls_models.ts +21 -1
- package/src/services/cpdp/v20190820/cpdp_client.ts +40 -1
- package/src/services/cpdp/v20190820/cpdp_models.ts +352 -11
- package/src/services/cvm/v20170312/cvm_client.ts +0 -2
- package/src/services/cvm/v20170312/cvm_models.ts +11 -1
- package/src/services/cynosdb/v20190107/cynosdb_models.ts +24 -9
- package/src/services/dlc/v20210125/dlc_models.ts +46 -2
- package/src/services/es/v20180416/es_client.ts +4 -2
- package/src/services/es/v20180416/es_models.ts +100 -23
- package/src/services/ess/v20201111/ess_models.ts +6 -3
- package/src/services/essbasic/v20210526/essbasic_models.ts +5 -3
- package/src/services/gaap/v20180529/gaap_models.ts +16 -0
- package/src/services/gpm/v20200820/gpm_client.ts +72 -36
- package/src/services/gse/v20191112/gse_client.ts +288 -140
- package/src/services/iai/v20180301/iai_client.ts +11 -1
- package/src/services/index.ts +1 -0
- package/src/services/iotvideo/index.ts +2 -0
- package/src/services/iotvideo/v20211125/index.ts +6 -0
- package/src/services/iotvideo/v20211125/iotvideo_client.ts +81 -0
- package/src/services/iotvideo/v20211125/iotvideo_models.ts +262 -0
- package/src/services/irp/index.ts +5 -0
- package/src/services/irp/v20220324/index.ts +6 -0
- package/src/services/irp/v20220324/irp_client.ts +87 -0
- package/src/services/irp/v20220324/irp_models.ts +708 -0
- package/src/services/live/v20180801/live_client.ts +28 -89
- package/src/services/live/v20180801/live_models.ts +235 -406
- package/src/services/mgobe/v20201014/mgobe_client.ts +28 -14
- package/src/services/oceanus/v20190422/oceanus_client.ts +140 -99
- package/src/services/oceanus/v20190422/oceanus_models.ts +435 -54
- package/src/services/ocr/v20181119/ocr_models.ts +17 -7
- package/src/services/redis/v20180412/redis_models.ts +6 -1
- package/src/services/rum/v20210622/rum_models.ts +25 -0
- package/src/services/tem/v20210701/tem_models.ts +9 -3
- package/src/services/teo/v20220106/teo_client.ts +2 -1
- package/src/services/teo/v20220106/teo_models.ts +44 -8
- package/src/services/tke/v20180525/tke_models.ts +8 -1
- package/src/services/tse/v20201207/tse_models.ts +16 -0
- package/src/services/vod/v20180717/vod_models.ts +43 -12
- package/src/services/yinsuda/v20220527/yinsuda_models.ts +10 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +9 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +12 -0
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +133 -0
- package/tencentcloud/services/apm/v20210622/apm_models.d.ts +23 -10
- package/tencentcloud/services/cat/v20180409/cat_models.d.ts +45 -0
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +1 -1
- package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +1 -1
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +5485 -5463
- package/tencentcloud/services/clb/v20180317/clb_client.d.ts +2 -2
- package/tencentcloud/services/clb/v20180317/clb_client.js +2 -2
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +2 -2
- package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_models.d.ts +2 -2
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +18 -1
- package/tencentcloud/services/cpdp/v20190820/cpdp_client.d.ts +14 -2
- package/tencentcloud/services/cpdp/v20190820/cpdp_client.js +19 -1
- package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +297 -8
- package/tencentcloud/services/cvm/v20170312/cvm_client.d.ts +0 -2
- package/tencentcloud/services/cvm/v20170312/cvm_client.js +0 -2
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +9 -1
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +21 -9
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +38 -2
- package/tencentcloud/services/es/v20180416/es_client.d.ts +1 -1
- package/tencentcloud/services/es/v20180416/es_models.d.ts +84 -20
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +5 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +5 -3
- package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +13 -0
- package/tencentcloud/services/gpm/v20200820/gpm_client.d.ts +54 -18
- package/tencentcloud/services/gpm/v20200820/gpm_client.js +54 -18
- package/tencentcloud/services/gse/v20191112/gse_client.d.ts +222 -74
- package/tencentcloud/services/gse/v20191112/gse_client.js +222 -74
- package/tencentcloud/services/iai/v20180301/iai_client.d.ts +10 -0
- package/tencentcloud/services/iai/v20180301/iai_client.js +10 -0
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/iotvideo/index.d.ts +4 -0
- package/tencentcloud/services/iotvideo/index.js +2 -0
- package/tencentcloud/services/iotvideo/v20211125/index.d.ts +6 -0
- package/tencentcloud/services/iotvideo/v20211125/index.js +9 -0
- package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.d.ts +26 -0
- package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.js +55 -0
- package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +210 -0
- package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.js +18 -0
- package/tencentcloud/services/irp/index.d.ts +6 -0
- package/tencentcloud/services/irp/index.js +7 -0
- package/tencentcloud/services/irp/v20220324/index.d.ts +6 -0
- package/tencentcloud/services/irp/v20220324/index.js +9 -0
- package/tencentcloud/services/irp/v20220324/irp_client.d.ts +26 -0
- package/tencentcloud/services/irp/v20220324/irp_client.js +55 -0
- package/tencentcloud/services/irp/v20220324/irp_models.d.ts +572 -0
- package/tencentcloud/services/irp/v20220324/irp_models.js +18 -0
- package/tencentcloud/services/live/v20180801/live_client.d.ts +7 -28
- package/tencentcloud/services/live/v20180801/live_client.js +8 -39
- package/tencentcloud/services/live/v20180801/live_models.d.ts +207 -354
- package/tencentcloud/services/mgobe/v20201014/mgobe_client.d.ts +21 -7
- package/tencentcloud/services/mgobe/v20201014/mgobe_client.js +21 -7
- package/tencentcloud/services/oceanus/v20190422/oceanus_client.d.ts +49 -37
- package/tencentcloud/services/oceanus/v20190422/oceanus_client.js +72 -54
- package/tencentcloud/services/oceanus/v20190422/oceanus_models.d.ts +366 -46
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +14 -6
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +5 -1
- package/tencentcloud/services/rum/v20210622/rum_models.d.ts +20 -0
- package/tencentcloud/services/tem/v20210701/tem_models.d.ts +7 -2
- package/tencentcloud/services/teo/v20220106/teo_models.d.ts +37 -6
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +7 -1
- package/tencentcloud/services/tse/v20201207/tse_models.d.ts +13 -0
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +38 -11
- package/tencentcloud/services/yinsuda/v20220527/yinsuda_models.d.ts +8 -0
- package/test/antiddos.v20200309.test.js +20 -0
- package/test/cpdp.v20190820.test.js +30 -0
- package/test/iotvideo.v20211125.test.js +61 -0
- package/test/irp.v20220324.test.js +61 -0
- package/test/live.v20180801.test.js +4 -54
- 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,
|
package/src/services/index.ts
CHANGED
|
@@ -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"
|
|
@@ -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,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
|
+
}
|