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.
- package/CHANGELOG.md +530 -0
- package/SERVICE_CHANGELOG.md +885 -103
- package/package.json +1 -1
- package/products.md +45 -44
- package/src/common/sdk_version.ts +1 -1
- package/src/services/acp/v20220105/acp_models.ts +16 -16
- package/src/services/antiddos/v20200309/antiddos_client.ts +25 -0
- package/src/services/antiddos/v20200309/antiddos_models.ts +165 -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/cwp/v20180228/cwp_models.ts +12 -0
- package/src/services/cynosdb/v20190107/cynosdb_models.ts +24 -9
- package/src/services/dlc/v20210125/dlc_models.ts +46 -2
- package/src/services/emr/v20190103/emr_models.ts +5 -0
- package/src/services/es/v20180416/es_client.ts +247 -78
- package/src/services/es/v20180416/es_models.ts +2070 -1136
- package/src/services/ess/v20201111/ess_models.ts +6 -3
- package/src/services/essbasic/v20210526/essbasic_models.ts +5 -3
- package/src/services/faceid/v20180301/faceid_client.ts +3 -16
- package/src/services/faceid/v20180301/faceid_models.ts +59 -103
- package/src/services/gaap/v20180529/gaap_client.ts +25 -1
- package/src/services/gaap/v20180529/gaap_models.ts +78 -32
- 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 +107 -0
- package/src/services/iotvideo/v20211125/iotvideo_models.ts +448 -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/mmps/v20200710/mmps_models.ts +6 -6
- package/src/services/monitor/v20180724/monitor_models.ts +27 -12
- 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_client.ts +0 -1
- package/src/services/ocr/v20181119/ocr_models.ts +17 -7
- package/src/services/redis/v20180412/redis_models.ts +21 -1
- package/src/services/rum/v20210622/rum_models.ts +26 -1
- package/src/services/ssl/v20191205/ssl_models.ts +12 -1
- package/src/services/tan/v20220420/tan_client.ts +1 -1
- 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/trtc/v20190722/trtc_client.ts +130 -142
- package/src/services/trtc/v20190722/trtc_models.ts +0 -63
- package/src/services/tse/v20201207/tse_models.ts +16 -0
- package/src/services/vod/v20180717/vod_models.ts +43 -12
- package/src/services/waf/v20180125/waf_client.ts +14 -28
- package/src/services/waf/v20180125/waf_models.ts +27 -147
- 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/acp/v20220105/acp_models.d.ts +16 -16
- 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 +137 -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/cwp/v20180228/cwp_models.d.ts +10 -0
- 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/emr/v20190103/emr_models.d.ts +4 -0
- package/tencentcloud/services/es/v20180416/es_client.d.ts +66 -9
- package/tencentcloud/services/es/v20180416/es_client.js +95 -12
- package/tencentcloud/services/es/v20180416/es_models.d.ts +2021 -1235
- 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/faceid/v20180301/faceid_client.d.ts +1 -6
- package/tencentcloud/services/faceid/v20180301/faceid_client.js +0 -7
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +50 -87
- package/tencentcloud/services/gaap/v20180529/gaap_client.d.ts +9 -1
- package/tencentcloud/services/gaap/v20180529/gaap_client.js +12 -0
- package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +66 -27
- 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 +34 -0
- package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.js +67 -0
- package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +365 -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/mmps/v20200710/mmps_models.d.ts +6 -6
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +22 -10
- 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_client.d.ts +0 -1
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +0 -1
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +14 -6
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +17 -1
- package/tencentcloud/services/rum/v20210622/rum_models.d.ts +21 -1
- package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +10 -1
- package/tencentcloud/services/tan/v20220420/tan_client.d.ts +1 -1
- package/tencentcloud/services/tan/v20220420/tan_client.js +1 -1
- 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/trtc/v20190722/trtc_client.d.ts +55 -59
- package/tencentcloud/services/trtc/v20190722/trtc_client.js +75 -81
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +0 -54
- 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/waf/v20180125/waf_client.d.ts +5 -9
- package/tencentcloud/services/waf/v20180125/waf_client.js +6 -12
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +24 -124
- 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/es.v20180416.test.js +138 -8
- package/test/faceid.v20180301.test.js +0 -10
- package/test/gaap.v20180529.test.js +20 -0
- package/test/iotvideo.v20211125.test.js +81 -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
- package/test/trtc.v20190722.test.js +38 -48
- package/test/waf.v20180125.test.js +4 -14
|
@@ -54,6 +54,16 @@ export declare class Client extends AbstractClient {
|
|
|
54
54
|
|
|
55
55
|
>
|
|
56
56
|
- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
57
|
+
|
|
58
|
+
## 调用次数计费(资源包)
|
|
59
|
+
|资源包规格|100万次|1000万次|5000万次|1亿次|
|
|
60
|
+
|-|-|-|-|-|
|
|
61
|
+
|人脸静态活体检测|1800元|17400元|75000元|110000元|
|
|
62
|
+
|
|
63
|
+
## 调用次数计费(后付费)
|
|
64
|
+
|月接口调用总量|0<调用量≤300万|300万<调用量≤1500万|调用量>1500万|
|
|
65
|
+
|-|-|-|-|
|
|
66
|
+
|人脸静态活体检测|0.0019元/次|0.0017元/次|0.0013元/次|
|
|
57
67
|
*/
|
|
58
68
|
DetectLiveFace(req: DetectLiveFaceRequest, cb?: (error: string, rep: DetectLiveFaceResponse) => void): Promise<DetectLiveFaceResponse>;
|
|
59
69
|
/**
|
|
@@ -82,6 +82,16 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
82
82
|
|
|
83
83
|
>
|
|
84
84
|
- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
85
|
+
|
|
86
|
+
## 调用次数计费(资源包)
|
|
87
|
+
|资源包规格|100万次|1000万次|5000万次|1亿次|
|
|
88
|
+
|-|-|-|-|-|
|
|
89
|
+
|人脸静态活体检测|1800元|17400元|75000元|110000元|
|
|
90
|
+
|
|
91
|
+
## 调用次数计费(后付费)
|
|
92
|
+
|月接口调用总量|0<调用量≤300万|300万<调用量≤1500万|调用量>1500万|
|
|
93
|
+
|-|-|-|-|
|
|
94
|
+
|人脸静态活体检测|0.0019元/次|0.0017元/次|0.0013元/次|
|
|
85
95
|
*/
|
|
86
96
|
async DetectLiveFace(req, cb) {
|
|
87
97
|
return this.request("DetectLiveFace", req, cb);
|
|
@@ -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";
|
|
@@ -220,6 +220,8 @@ var iotvideo_1 = require("./iotvideo");
|
|
|
220
220
|
Object.defineProperty(exports, "iotvideo", { enumerable: true, get: function () { return iotvideo_1.iotvideo; } });
|
|
221
221
|
var iotvideoindustry_1 = require("./iotvideoindustry");
|
|
222
222
|
Object.defineProperty(exports, "iotvideoindustry", { enumerable: true, get: function () { return iotvideoindustry_1.iotvideoindustry; } });
|
|
223
|
+
var irp_1 = require("./irp");
|
|
224
|
+
Object.defineProperty(exports, "irp", { enumerable: true, get: function () { return irp_1.irp; } });
|
|
223
225
|
var ivld_1 = require("./ivld");
|
|
224
226
|
Object.defineProperty(exports, "ivld", { enumerable: true, get: function () { return ivld_1.ivld; } });
|
|
225
227
|
var kms_1 = require("./kms");
|
|
@@ -3,6 +3,10 @@ export declare const iotvideo: {
|
|
|
3
3
|
Client: typeof import("./v20191126/iotvideo_client").Client;
|
|
4
4
|
Models: typeof import("./v20191126/iotvideo_models");
|
|
5
5
|
};
|
|
6
|
+
v20211125: {
|
|
7
|
+
Client: typeof import("./v20211125/iotvideo_client").Client;
|
|
8
|
+
Models: typeof import("./v20211125/iotvideo_models");
|
|
9
|
+
};
|
|
6
10
|
v20201215: {
|
|
7
11
|
Client: typeof import("./v20201215/iotvideo_client").Client;
|
|
8
12
|
Models: typeof import("./v20201215/iotvideo_models");
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.iotvideo = void 0;
|
|
4
4
|
const v20191126_1 = require("./v20191126");
|
|
5
|
+
const v20211125_1 = require("./v20211125");
|
|
5
6
|
const v20201215_1 = require("./v20201215");
|
|
6
7
|
exports.iotvideo = {
|
|
7
8
|
v20191126: v20191126_1.v20191126,
|
|
9
|
+
v20211125: v20211125_1.v20211125,
|
|
8
10
|
v20201215: v20201215_1.v20201215,
|
|
9
11
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v20211125 = void 0;
|
|
4
|
+
const Models = require("./iotvideo_models");
|
|
5
|
+
const iotvideo_client_1 = require("./iotvideo_client");
|
|
6
|
+
exports.v20211125 = {
|
|
7
|
+
Client: iotvideo_client_1.Client,
|
|
8
|
+
Models: Models
|
|
9
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
|
+
import { ClientConfig } from "../../../common/interface";
|
|
3
|
+
import { CallDeviceActionAsyncResponse, GenSingleDeviceSignatureOfPublicResponse, CreateProductRequest, GenSingleDeviceSignatureOfPublicRequest, DescribeDeviceDataStatsRequest, CallDeviceActionSyncResponse, CreateProductResponse, DescribeDeviceDataStatsResponse, DescribeMessageDataStatsRequest, DescribeMessageDataStatsResponse, CallDeviceActionAsyncRequest, CallDeviceActionSyncRequest } from "./iotvideo_models";
|
|
4
|
+
/**
|
|
5
|
+
* iotvideo client
|
|
6
|
+
* @class
|
|
7
|
+
*/
|
|
8
|
+
export declare class Client extends AbstractClient {
|
|
9
|
+
constructor(clientConfig: ClientConfig);
|
|
10
|
+
/**
|
|
11
|
+
* 查询设备消息数量统计
|
|
12
|
+
*/
|
|
13
|
+
DescribeMessageDataStats(req: DescribeMessageDataStatsRequest, cb?: (error: string, rep: DescribeMessageDataStatsResponse) => void): Promise<DescribeMessageDataStatsResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* 创建产品
|
|
16
|
+
*/
|
|
17
|
+
CreateProduct(req: CreateProductRequest, cb?: (error: string, rep: CreateProductResponse) => void): Promise<CreateProductResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* 查询设备数据统计
|
|
20
|
+
*/
|
|
21
|
+
DescribeDeviceDataStats(req: DescribeDeviceDataStatsRequest, cb?: (error: string, rep: DescribeDeviceDataStatsResponse) => void): Promise<DescribeDeviceDataStatsResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* 获取设备的绑定签名
|
|
24
|
+
*/
|
|
25
|
+
GenSingleDeviceSignatureOfPublic(req: GenSingleDeviceSignatureOfPublicRequest, cb?: (error: string, rep: GenSingleDeviceSignatureOfPublicResponse) => void): Promise<GenSingleDeviceSignatureOfPublicResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* 异步调用设备行为
|
|
28
|
+
*/
|
|
29
|
+
CallDeviceActionAsync(req: CallDeviceActionAsyncRequest, cb?: (error: string, rep: CallDeviceActionAsyncResponse) => void): Promise<CallDeviceActionAsyncResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* 同步调用设备行为
|
|
32
|
+
*/
|
|
33
|
+
CallDeviceActionSync(req: CallDeviceActionSyncRequest, cb?: (error: string, rep: CallDeviceActionSyncResponse) => void): Promise<CallDeviceActionSyncResponse>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing,
|
|
15
|
+
* software distributed under the License is distributed on an
|
|
16
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
+
* KIND, either express or implied. See the License for the
|
|
18
|
+
* specific language governing permissions and limitations
|
|
19
|
+
* under the License.
|
|
20
|
+
*/
|
|
21
|
+
const abstract_client_1 = require("../../../common/abstract_client");
|
|
22
|
+
/**
|
|
23
|
+
* iotvideo client
|
|
24
|
+
* @class
|
|
25
|
+
*/
|
|
26
|
+
class Client extends abstract_client_1.AbstractClient {
|
|
27
|
+
constructor(clientConfig) {
|
|
28
|
+
super("iotvideo.tencentcloudapi.com", "2021-11-25", clientConfig);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 查询设备消息数量统计
|
|
32
|
+
*/
|
|
33
|
+
async DescribeMessageDataStats(req, cb) {
|
|
34
|
+
return this.request("DescribeMessageDataStats", req, cb);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 创建产品
|
|
38
|
+
*/
|
|
39
|
+
async CreateProduct(req, cb) {
|
|
40
|
+
return this.request("CreateProduct", req, cb);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 查询设备数据统计
|
|
44
|
+
*/
|
|
45
|
+
async DescribeDeviceDataStats(req, cb) {
|
|
46
|
+
return this.request("DescribeDeviceDataStats", req, cb);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* 获取设备的绑定签名
|
|
50
|
+
*/
|
|
51
|
+
async GenSingleDeviceSignatureOfPublic(req, cb) {
|
|
52
|
+
return this.request("GenSingleDeviceSignatureOfPublic", req, cb);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 异步调用设备行为
|
|
56
|
+
*/
|
|
57
|
+
async CallDeviceActionAsync(req, cb) {
|
|
58
|
+
return this.request("CallDeviceActionAsync", req, cb);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 同步调用设备行为
|
|
62
|
+
*/
|
|
63
|
+
async CallDeviceActionSync(req, cb) {
|
|
64
|
+
return this.request("CallDeviceActionSync", req, cb);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.Client = Client;
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 消息数量统计
|
|
3
|
+
*/
|
|
4
|
+
export interface MessageCntStats {
|
|
5
|
+
/**
|
|
6
|
+
* 统计日期
|
|
7
|
+
*/
|
|
8
|
+
Date: string;
|
|
9
|
+
/**
|
|
10
|
+
* 物模型上行消息数
|
|
11
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12
|
+
*/
|
|
13
|
+
UpMsgCnt: number;
|
|
14
|
+
/**
|
|
15
|
+
* 物模型下行消息数
|
|
16
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
17
|
+
*/
|
|
18
|
+
DownMsgCnt: number;
|
|
19
|
+
/**
|
|
20
|
+
* ntp消息数
|
|
21
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
22
|
+
*/
|
|
23
|
+
NtpMsgCnt: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 设备签名信息
|
|
27
|
+
*/
|
|
28
|
+
export interface DeviceSignatureInfo {
|
|
29
|
+
/**
|
|
30
|
+
* 设备名称
|
|
31
|
+
*/
|
|
32
|
+
DeviceName: string;
|
|
33
|
+
/**
|
|
34
|
+
* 设备签名
|
|
35
|
+
*/
|
|
36
|
+
DeviceSignature: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* CallDeviceActionAsync返回参数结构体
|
|
40
|
+
*/
|
|
41
|
+
export interface CallDeviceActionAsyncResponse {
|
|
42
|
+
/**
|
|
43
|
+
* 调用Id
|
|
44
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
45
|
+
*/
|
|
46
|
+
ClientToken: string;
|
|
47
|
+
/**
|
|
48
|
+
* 异步调用状态
|
|
49
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
50
|
+
*/
|
|
51
|
+
Status: string;
|
|
52
|
+
/**
|
|
53
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
54
|
+
*/
|
|
55
|
+
RequestId?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* GenSingleDeviceSignatureOfPublic返回参数结构体
|
|
59
|
+
*/
|
|
60
|
+
export interface GenSingleDeviceSignatureOfPublicResponse {
|
|
61
|
+
/**
|
|
62
|
+
* 设备签名信息
|
|
63
|
+
*/
|
|
64
|
+
DeviceSignature: DeviceSignatureInfo;
|
|
65
|
+
/**
|
|
66
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
67
|
+
*/
|
|
68
|
+
RequestId?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* CreateProduct请求参数结构体
|
|
72
|
+
*/
|
|
73
|
+
export interface CreateProductRequest {
|
|
74
|
+
/**
|
|
75
|
+
* 产品名称
|
|
76
|
+
*/
|
|
77
|
+
ProductName: string;
|
|
78
|
+
/**
|
|
79
|
+
* 产品设备类型 1.普通设备 2.NVR设备
|
|
80
|
+
*/
|
|
81
|
+
DeviceType: number;
|
|
82
|
+
/**
|
|
83
|
+
* 产品有效期
|
|
84
|
+
*/
|
|
85
|
+
ProductVaildYears: number;
|
|
86
|
+
/**
|
|
87
|
+
* 设备功能码 ypsxth音频双向通话 spdxth视频单向通话 sxysp双向音视频
|
|
88
|
+
*/
|
|
89
|
+
Features: Array<string>;
|
|
90
|
+
/**
|
|
91
|
+
* 设备操作系统,通用设备填default
|
|
92
|
+
*/
|
|
93
|
+
ChipOs: string;
|
|
94
|
+
/**
|
|
95
|
+
* 芯片厂商id,通用设备填default
|
|
96
|
+
*/
|
|
97
|
+
ChipManufactureId: string;
|
|
98
|
+
/**
|
|
99
|
+
* 芯片id,通用设备填default
|
|
100
|
+
*/
|
|
101
|
+
ChipId: string;
|
|
102
|
+
/**
|
|
103
|
+
* 产品描述信息
|
|
104
|
+
*/
|
|
105
|
+
ProductDescription: string;
|
|
106
|
+
/**
|
|
107
|
+
* 认证方式 只支持取值为2 psk认证
|
|
108
|
+
*/
|
|
109
|
+
EncryptionType?: number;
|
|
110
|
+
/**
|
|
111
|
+
* 连接类型,wifi表示WIFI连接,cellular表示4G连接
|
|
112
|
+
*/
|
|
113
|
+
NetType?: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* GenSingleDeviceSignatureOfPublic请求参数结构体
|
|
117
|
+
*/
|
|
118
|
+
export interface GenSingleDeviceSignatureOfPublicRequest {
|
|
119
|
+
/**
|
|
120
|
+
* 设备所属的产品ID
|
|
121
|
+
*/
|
|
122
|
+
ProductId: string;
|
|
123
|
+
/**
|
|
124
|
+
* 需要绑定的设备
|
|
125
|
+
*/
|
|
126
|
+
DeviceName: string;
|
|
127
|
+
/**
|
|
128
|
+
* 设备绑定签名的有效时间,以秒为单位。取值范围:0 < Expire <= 86400,Expire == -1(十年)
|
|
129
|
+
*/
|
|
130
|
+
Expire: number;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* DescribeDeviceDataStats请求参数结构体
|
|
134
|
+
*/
|
|
135
|
+
export interface DescribeDeviceDataStatsRequest {
|
|
136
|
+
/**
|
|
137
|
+
* 开始日期
|
|
138
|
+
*/
|
|
139
|
+
StartDate: string;
|
|
140
|
+
/**
|
|
141
|
+
* 结束日期
|
|
142
|
+
*/
|
|
143
|
+
EndDate: string;
|
|
144
|
+
/**
|
|
145
|
+
* 产品id
|
|
146
|
+
*/
|
|
147
|
+
ProductId?: string;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* CallDeviceActionSync返回参数结构体
|
|
151
|
+
*/
|
|
152
|
+
export interface CallDeviceActionSyncResponse {
|
|
153
|
+
/**
|
|
154
|
+
* 调用Id
|
|
155
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
156
|
+
*/
|
|
157
|
+
ClientToken: string;
|
|
158
|
+
/**
|
|
159
|
+
* 输出参数
|
|
160
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
161
|
+
*/
|
|
162
|
+
OutputParams: string;
|
|
163
|
+
/**
|
|
164
|
+
* 返回状态,当设备不在线等部分情况,会通过该 Status 返回。
|
|
165
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
166
|
+
*/
|
|
167
|
+
Status: string;
|
|
168
|
+
/**
|
|
169
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
170
|
+
*/
|
|
171
|
+
RequestId?: string;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* CreateProduct返回参数结构体
|
|
175
|
+
*/
|
|
176
|
+
export interface CreateProductResponse {
|
|
177
|
+
/**
|
|
178
|
+
* 产品详情
|
|
179
|
+
*/
|
|
180
|
+
Data: VideoProduct;
|
|
181
|
+
/**
|
|
182
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
183
|
+
*/
|
|
184
|
+
RequestId?: string;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* 设备数量统计
|
|
188
|
+
*/
|
|
189
|
+
export interface DeviceCntStats {
|
|
190
|
+
/**
|
|
191
|
+
* 统计日期
|
|
192
|
+
*/
|
|
193
|
+
Date: string;
|
|
194
|
+
/**
|
|
195
|
+
* 新增注册设备数
|
|
196
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
197
|
+
*/
|
|
198
|
+
NewRegisterCnt: number;
|
|
199
|
+
/**
|
|
200
|
+
* 新增激活设备数
|
|
201
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
202
|
+
*/
|
|
203
|
+
NewActivateCnt: number;
|
|
204
|
+
/**
|
|
205
|
+
* 活跃设备数
|
|
206
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
207
|
+
*/
|
|
208
|
+
ActiveCnt: number;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* DescribeDeviceDataStats返回参数结构体
|
|
212
|
+
*/
|
|
213
|
+
export interface DescribeDeviceDataStatsResponse {
|
|
214
|
+
/**
|
|
215
|
+
* 累计注册设备数
|
|
216
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
217
|
+
*/
|
|
218
|
+
RegisterCnt: number;
|
|
219
|
+
/**
|
|
220
|
+
* 设备数量列表
|
|
221
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
222
|
+
*/
|
|
223
|
+
Data: Array<DeviceCntStats>;
|
|
224
|
+
/**
|
|
225
|
+
* 总数
|
|
226
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
227
|
+
*/
|
|
228
|
+
Total: number;
|
|
229
|
+
/**
|
|
230
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
231
|
+
*/
|
|
232
|
+
RequestId?: string;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* video产品元数据
|
|
236
|
+
*/
|
|
237
|
+
export interface VideoProduct {
|
|
238
|
+
/**
|
|
239
|
+
* 产品ID
|
|
240
|
+
*/
|
|
241
|
+
ProductId: string;
|
|
242
|
+
/**
|
|
243
|
+
* 产品名称
|
|
244
|
+
*/
|
|
245
|
+
ProductName: string;
|
|
246
|
+
/**
|
|
247
|
+
* 产品设备类型(普通设备) 1.普通设备
|
|
248
|
+
*/
|
|
249
|
+
DeviceType: number;
|
|
250
|
+
/**
|
|
251
|
+
* 认证方式:2:PSK
|
|
252
|
+
*/
|
|
253
|
+
EncryptionType: number;
|
|
254
|
+
/**
|
|
255
|
+
* 设备功能码
|
|
256
|
+
*/
|
|
257
|
+
Features: Array<string>;
|
|
258
|
+
/**
|
|
259
|
+
* 操作系统
|
|
260
|
+
*/
|
|
261
|
+
ChipOs: string;
|
|
262
|
+
/**
|
|
263
|
+
* 芯片厂商id
|
|
264
|
+
*/
|
|
265
|
+
ChipManufactureId: string;
|
|
266
|
+
/**
|
|
267
|
+
* 芯片id
|
|
268
|
+
*/
|
|
269
|
+
ChipId: string;
|
|
270
|
+
/**
|
|
271
|
+
* 产品描述信息
|
|
272
|
+
*/
|
|
273
|
+
ProductDescription: string;
|
|
274
|
+
/**
|
|
275
|
+
* 创建时间unix时间戳
|
|
276
|
+
*/
|
|
277
|
+
CreateTime: number;
|
|
278
|
+
/**
|
|
279
|
+
* 修改时间unix时间戳
|
|
280
|
+
*/
|
|
281
|
+
UpdateTime: number;
|
|
282
|
+
/**
|
|
283
|
+
* 连接类型,wifi表示WIFI连接,cellular表示4G连接
|
|
284
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
285
|
+
*/
|
|
286
|
+
NetType: string;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* DescribeMessageDataStats请求参数结构体
|
|
290
|
+
*/
|
|
291
|
+
export interface DescribeMessageDataStatsRequest {
|
|
292
|
+
/**
|
|
293
|
+
* 统计开始日期
|
|
294
|
+
*/
|
|
295
|
+
StartDate: string;
|
|
296
|
+
/**
|
|
297
|
+
* 统计结束日期
|
|
298
|
+
*/
|
|
299
|
+
EndDate: string;
|
|
300
|
+
/**
|
|
301
|
+
* 产品id
|
|
302
|
+
*/
|
|
303
|
+
ProductId?: string;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* DescribeMessageDataStats返回参数结构体
|
|
307
|
+
*/
|
|
308
|
+
export interface DescribeMessageDataStatsResponse {
|
|
309
|
+
/**
|
|
310
|
+
* 消息数量列表
|
|
311
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
312
|
+
*/
|
|
313
|
+
Data: Array<MessageCntStats>;
|
|
314
|
+
/**
|
|
315
|
+
* 总数
|
|
316
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
317
|
+
*/
|
|
318
|
+
Total: number;
|
|
319
|
+
/**
|
|
320
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
321
|
+
*/
|
|
322
|
+
RequestId?: string;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* CallDeviceActionAsync请求参数结构体
|
|
326
|
+
*/
|
|
327
|
+
export interface CallDeviceActionAsyncRequest {
|
|
328
|
+
/**
|
|
329
|
+
* 产品Id
|
|
330
|
+
*/
|
|
331
|
+
ProductId: string;
|
|
332
|
+
/**
|
|
333
|
+
* 设备名称
|
|
334
|
+
*/
|
|
335
|
+
DeviceName: string;
|
|
336
|
+
/**
|
|
337
|
+
* 产品数据模板中行为功能的标识符,由开发者自行根据设备的应用场景定义
|
|
338
|
+
*/
|
|
339
|
+
ActionId: string;
|
|
340
|
+
/**
|
|
341
|
+
* 输入参数
|
|
342
|
+
*/
|
|
343
|
+
InputParams?: string;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* CallDeviceActionSync请求参数结构体
|
|
347
|
+
*/
|
|
348
|
+
export interface CallDeviceActionSyncRequest {
|
|
349
|
+
/**
|
|
350
|
+
* 产品Id
|
|
351
|
+
*/
|
|
352
|
+
ProductId: string;
|
|
353
|
+
/**
|
|
354
|
+
* 设备名称
|
|
355
|
+
*/
|
|
356
|
+
DeviceName: string;
|
|
357
|
+
/**
|
|
358
|
+
* 产品数据模板中行为功能的标识符,由开发者自行根据设备的应用场景定义
|
|
359
|
+
*/
|
|
360
|
+
ActionId: string;
|
|
361
|
+
/**
|
|
362
|
+
* 输入参数
|
|
363
|
+
*/
|
|
364
|
+
InputParams?: string;
|
|
365
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v20220324 = void 0;
|
|
4
|
+
const Models = require("./irp_models");
|
|
5
|
+
const irp_client_1 = require("./irp_client");
|
|
6
|
+
exports.v20220324 = {
|
|
7
|
+
Client: irp_client_1.Client,
|
|
8
|
+
Models: Models
|
|
9
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
|
+
import { ClientConfig } from "../../../common/interface";
|
|
3
|
+
import { ReportMaterialResponse, ReportActionResponse, ReportPortraitRequest, ReportPortraitResponse, ReportActionRequest, RecommendContentRequest, ReportMaterialRequest, RecommendContentResponse } from "./irp_models";
|
|
4
|
+
/**
|
|
5
|
+
* irp client
|
|
6
|
+
* @class
|
|
7
|
+
*/
|
|
8
|
+
export declare class Client extends AbstractClient {
|
|
9
|
+
constructor(clientConfig: ClientConfig);
|
|
10
|
+
/**
|
|
11
|
+
* 获取推荐结果
|
|
12
|
+
*/
|
|
13
|
+
RecommendContent(req: RecommendContentRequest, cb?: (error: string, rep: RecommendContentResponse) => void): Promise<RecommendContentResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* 上报物料
|
|
16
|
+
*/
|
|
17
|
+
ReportMaterial(req: ReportMaterialRequest, cb?: (error: string, rep: ReportMaterialResponse) => void): Promise<ReportMaterialResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* 上报行为
|
|
20
|
+
*/
|
|
21
|
+
ReportAction(req: ReportActionRequest, cb?: (error: string, rep: ReportActionResponse) => void): Promise<ReportActionResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* 上报用户画像
|
|
24
|
+
*/
|
|
25
|
+
ReportPortrait(req: ReportPortraitRequest, cb?: (error: string, rep: ReportPortraitResponse) => void): Promise<ReportPortraitResponse>;
|
|
26
|
+
}
|