tencentcloud-sdk-nodejs-mqtt 4.0.992 → 4.0.1027
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/README.md +41 -12
- package/package.json +1 -1
- package/src/services/mqtt/v20240516/mqtt_client.ts +196 -56
- package/src/services/mqtt/v20240516/mqtt_models.ts +1222 -706
- package/tencentcloud/services/mqtt/v20240516/mqtt_client.d.ts +56 -10
- package/tencentcloud/services/mqtt/v20240516/mqtt_client.js +79 -11
- package/tencentcloud/services/mqtt/v20240516/mqtt_models.d.ts +1113 -625
- package/products.md +0 -261
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import {
|
|
2
|
+
import { DeleteUserRequest, ModifyJWTAuthenticatorResponse, UpdateAuthorizationPolicyPriorityRequest, ActivateDeviceCertificateRequest, CreateInstanceResponse, DescribeAuthenticatorRequest, ModifyJWTAuthenticatorRequest, ModifyInstanceRequest, DeleteTopicRequest, ModifyUserResponse, DescribeDeviceCertificatesRequest, DeleteAuthenticatorRequest, DeleteAuthorizationPolicyResponse, ModifyJWKSAuthenticatorRequest, DeleteInstanceResponse, RegisterDeviceCertificateResponse, DescribeDeviceCertificateRequest, DescribeInstanceListResponse, ModifyInstanceResponse, ModifyInsPublicEndpointResponse, ModifyJWKSAuthenticatorResponse, CreateInsPublicEndpointResponse, CreateUserResponse, CreateAuthorizationPolicyRequest, DescribeAuthenticatorResponse, DeleteDeviceCertificateRequest, DescribeInsPublicEndpointsRequest, DeleteUserResponse, DeleteDeviceCertificateResponse, ModifyAuthorizationPolicyResponse, CreateJWKSAuthenticatorRequest, DescribeTopicResponse, CreateJWKSAuthenticatorResponse, DescribeAuthorizationPoliciesResponse, CreateTopicRequest, DescribeUserListResponse, ModifyTopicResponse, DeactivateDeviceCertificateResponse, ActivateDeviceCertificateResponse, DescribeTopicRequest, UpdateAuthorizationPolicyPriorityResponse, CreateTopicResponse, DeleteInsPublicEndpointResponse, DescribeTopicListRequest, RevokedDeviceCertificateRequest, CreateAuthorizationPolicyResponse, CreateInstanceRequest, CreateInsPublicEndpointRequest, RegisterDeviceCertificateRequest, DeactivateDeviceCertificateRequest, DescribeDeviceCertificatesResponse, ModifyTopicRequest, CreateUserRequest, DescribeInstanceResponse, DeleteInstanceRequest, DescribeInsPublicEndpointsResponse, ModifyInsPublicEndpointRequest, DeleteInsPublicEndpointRequest, DescribeUserListRequest, CreateJWTAuthenticatorResponse, DeleteAuthorizationPolicyRequest, DescribeAuthorizationPoliciesRequest, RevokedDeviceCertificateResponse, DescribeDeviceCertificateResponse, DescribeInstanceListRequest, CreateJWTAuthenticatorRequest, ModifyAuthorizationPolicyRequest, DescribeTopicListResponse, DeleteTopicResponse, DescribeInstanceRequest, ModifyUserRequest, DeleteAuthenticatorResponse } from "./mqtt_models";
|
|
3
3
|
/**
|
|
4
4
|
* mqtt client
|
|
5
5
|
* @class
|
|
6
6
|
*/
|
|
7
7
|
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
|
+
/**
|
|
10
|
+
* 购买新的MQTT实例
|
|
11
|
+
*/
|
|
12
|
+
CreateInstance(req: CreateInstanceRequest, cb?: (error: string, rep: CreateInstanceResponse) => void): Promise<CreateInstanceResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* 为MQTT实例创建公网接入点
|
|
15
|
+
*/
|
|
16
|
+
CreateInsPublicEndpoint(req: CreateInsPublicEndpointRequest, cb?: (error: string, rep: CreateInsPublicEndpointResponse) => void): Promise<CreateInsPublicEndpointResponse>;
|
|
9
17
|
/**
|
|
10
18
|
* 修改主题属性
|
|
11
19
|
*/
|
|
@@ -26,6 +34,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
26
34
|
* 删除设备证书
|
|
27
35
|
*/
|
|
28
36
|
DeleteDeviceCertificate(req: DeleteDeviceCertificateRequest, cb?: (error: string, rep: DeleteDeviceCertificateResponse) => void): Promise<DeleteDeviceCertificateResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* 删除MQTT实例
|
|
39
|
+
*/
|
|
40
|
+
DeleteInstance(req: DeleteInstanceRequest, cb?: (error: string, rep: DeleteInstanceResponse) => void): Promise<DeleteInstanceResponse>;
|
|
29
41
|
/**
|
|
30
42
|
* 修改MQTT JWKS 认证器
|
|
31
43
|
*/
|
|
@@ -38,6 +50,20 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
38
50
|
* 分页查询设备证书
|
|
39
51
|
*/
|
|
40
52
|
DescribeDeviceCertificates(req: DescribeDeviceCertificatesRequest, cb?: (error: string, rep: DescribeDeviceCertificatesResponse) => void): Promise<DescribeDeviceCertificatesResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* 查询MQTT实例公网接入点
|
|
55
|
+
*/
|
|
56
|
+
DescribeInsPublicEndpoints(req: DescribeInsPublicEndpointsRequest, cb?: (error: string, rep: DescribeInsPublicEndpointsResponse) => void): Promise<DescribeInsPublicEndpointsResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* 查询用户列表,Filter参数使用说明如下:
|
|
59
|
+
|
|
60
|
+
1. Username,用户名称模糊搜索
|
|
61
|
+
*/
|
|
62
|
+
DescribeUserList(req: DescribeUserListRequest, cb?: (error: string, rep: DescribeUserListResponse) => void): Promise<DescribeUserListResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* 更新MQTT实例公网接入点
|
|
65
|
+
*/
|
|
66
|
+
ModifyInsPublicEndpoint(req: ModifyInsPublicEndpointRequest, cb?: (error: string, rep: ModifyInsPublicEndpointResponse) => void): Promise<ModifyInsPublicEndpointResponse>;
|
|
41
67
|
/**
|
|
42
68
|
* 注册设备证书
|
|
43
69
|
*/
|
|
@@ -54,6 +80,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
54
80
|
* 查询授权规则
|
|
55
81
|
*/
|
|
56
82
|
DescribeAuthorizationPolicies(req: DescribeAuthorizationPoliciesRequest, cb?: (error: string, rep: DescribeAuthorizationPoliciesResponse) => void): Promise<DescribeAuthorizationPoliciesResponse>;
|
|
83
|
+
/**
|
|
84
|
+
* 删除MQTT实例的公网接入点
|
|
85
|
+
*/
|
|
86
|
+
DeleteInsPublicEndpoint(req: DeleteInsPublicEndpointRequest, cb?: (error: string, rep: DeleteInsPublicEndpointResponse) => void): Promise<DeleteInsPublicEndpointResponse>;
|
|
57
87
|
/**
|
|
58
88
|
* 查询设备证书详情接口
|
|
59
89
|
*/
|
|
@@ -76,13 +106,24 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
76
106
|
*/
|
|
77
107
|
DescribeInstance(req: DescribeInstanceRequest, cb?: (error: string, rep: DescribeInstanceResponse) => void): Promise<DescribeInstanceResponse>;
|
|
78
108
|
/**
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
109
|
+
* 获取主题列表,Filter参数使用说明如下:
|
|
110
|
+
|
|
111
|
+
1. TopicName,主题名称模糊搜索
|
|
112
|
+
2. TopicType,主题类型查询,支持多选,可选值:Normal,Order,Transaction,DelayScheduled
|
|
113
|
+
*/
|
|
114
|
+
DescribeTopicList(req: DescribeTopicListRequest, cb?: (error: string, rep: DescribeTopicListResponse) => void): Promise<DescribeTopicListResponse>;
|
|
82
115
|
/**
|
|
83
116
|
* 创建一个jwks的认证
|
|
84
117
|
*/
|
|
85
118
|
CreateJWKSAuthenticator(req: CreateJWKSAuthenticatorRequest, cb?: (error: string, rep: CreateJWKSAuthenticatorResponse) => void): Promise<CreateJWKSAuthenticatorResponse>;
|
|
119
|
+
/**
|
|
120
|
+
* 修改MQTT角色
|
|
121
|
+
*/
|
|
122
|
+
ModifyUser(req: ModifyUserRequest, cb?: (error: string, rep: ModifyUserResponse) => void): Promise<ModifyUserResponse>;
|
|
123
|
+
/**
|
|
124
|
+
* 删除MQTT访问用户
|
|
125
|
+
*/
|
|
126
|
+
DeleteUser(req: DeleteUserRequest, cb?: (error: string, rep: DeleteUserResponse) => void): Promise<DeleteUserResponse>;
|
|
86
127
|
/**
|
|
87
128
|
* 修改策略规则
|
|
88
129
|
*/
|
|
@@ -104,14 +145,19 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
104
145
|
*/
|
|
105
146
|
UpdateAuthorizationPolicyPriority(req: UpdateAuthorizationPolicyPriorityRequest, cb?: (error: string, rep: UpdateAuthorizationPolicyPriorityResponse) => void): Promise<UpdateAuthorizationPolicyPriorityResponse>;
|
|
106
147
|
/**
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
148
|
+
* 添加mqtt角色
|
|
149
|
+
*/
|
|
150
|
+
CreateUser(req: CreateUserRequest, cb?: (error: string, rep: CreateUserResponse) => void): Promise<CreateUserResponse>;
|
|
151
|
+
/**
|
|
152
|
+
* 删除MQTT主题
|
|
153
|
+
*/
|
|
154
|
+
DeleteTopic(req: DeleteTopicRequest, cb?: (error: string, rep: DeleteTopicResponse) => void): Promise<DeleteTopicResponse>;
|
|
113
155
|
/**
|
|
114
156
|
* 创建MQTT实例的性能测试任务
|
|
115
157
|
*/
|
|
116
158
|
CreateAuthorizationPolicy(req: CreateAuthorizationPolicyRequest, cb?: (error: string, rep: CreateAuthorizationPolicyResponse) => void): Promise<CreateAuthorizationPolicyResponse>;
|
|
159
|
+
/**
|
|
160
|
+
* 修改实例属性
|
|
161
|
+
*/
|
|
162
|
+
ModifyInstance(req: ModifyInstanceRequest, cb?: (error: string, rep: ModifyInstanceResponse) => void): Promise<ModifyInstanceResponse>;
|
|
117
163
|
}
|
|
@@ -27,6 +27,18 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
27
27
|
constructor(clientConfig) {
|
|
28
28
|
super("mqtt.tencentcloudapi.com", "2024-05-16", clientConfig);
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* 购买新的MQTT实例
|
|
32
|
+
*/
|
|
33
|
+
async CreateInstance(req, cb) {
|
|
34
|
+
return this.request("CreateInstance", req, cb);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 为MQTT实例创建公网接入点
|
|
38
|
+
*/
|
|
39
|
+
async CreateInsPublicEndpoint(req, cb) {
|
|
40
|
+
return this.request("CreateInsPublicEndpoint", req, cb);
|
|
41
|
+
}
|
|
30
42
|
/**
|
|
31
43
|
* 修改主题属性
|
|
32
44
|
*/
|
|
@@ -57,6 +69,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
57
69
|
async DeleteDeviceCertificate(req, cb) {
|
|
58
70
|
return this.request("DeleteDeviceCertificate", req, cb);
|
|
59
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* 删除MQTT实例
|
|
74
|
+
*/
|
|
75
|
+
async DeleteInstance(req, cb) {
|
|
76
|
+
return this.request("DeleteInstance", req, cb);
|
|
77
|
+
}
|
|
60
78
|
/**
|
|
61
79
|
* 修改MQTT JWKS 认证器
|
|
62
80
|
*/
|
|
@@ -75,6 +93,26 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
75
93
|
async DescribeDeviceCertificates(req, cb) {
|
|
76
94
|
return this.request("DescribeDeviceCertificates", req, cb);
|
|
77
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* 查询MQTT实例公网接入点
|
|
98
|
+
*/
|
|
99
|
+
async DescribeInsPublicEndpoints(req, cb) {
|
|
100
|
+
return this.request("DescribeInsPublicEndpoints", req, cb);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* 查询用户列表,Filter参数使用说明如下:
|
|
104
|
+
|
|
105
|
+
1. Username,用户名称模糊搜索
|
|
106
|
+
*/
|
|
107
|
+
async DescribeUserList(req, cb) {
|
|
108
|
+
return this.request("DescribeUserList", req, cb);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* 更新MQTT实例公网接入点
|
|
112
|
+
*/
|
|
113
|
+
async ModifyInsPublicEndpoint(req, cb) {
|
|
114
|
+
return this.request("ModifyInsPublicEndpoint", req, cb);
|
|
115
|
+
}
|
|
78
116
|
/**
|
|
79
117
|
* 注册设备证书
|
|
80
118
|
*/
|
|
@@ -99,6 +137,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
99
137
|
async DescribeAuthorizationPolicies(req, cb) {
|
|
100
138
|
return this.request("DescribeAuthorizationPolicies", req, cb);
|
|
101
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* 删除MQTT实例的公网接入点
|
|
142
|
+
*/
|
|
143
|
+
async DeleteInsPublicEndpoint(req, cb) {
|
|
144
|
+
return this.request("DeleteInsPublicEndpoint", req, cb);
|
|
145
|
+
}
|
|
102
146
|
/**
|
|
103
147
|
* 查询设备证书详情接口
|
|
104
148
|
*/
|
|
@@ -129,10 +173,13 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
129
173
|
return this.request("DescribeInstance", req, cb);
|
|
130
174
|
}
|
|
131
175
|
/**
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
176
|
+
* 获取主题列表,Filter参数使用说明如下:
|
|
177
|
+
|
|
178
|
+
1. TopicName,主题名称模糊搜索
|
|
179
|
+
2. TopicType,主题类型查询,支持多选,可选值:Normal,Order,Transaction,DelayScheduled
|
|
180
|
+
*/
|
|
181
|
+
async DescribeTopicList(req, cb) {
|
|
182
|
+
return this.request("DescribeTopicList", req, cb);
|
|
136
183
|
}
|
|
137
184
|
/**
|
|
138
185
|
* 创建一个jwks的认证
|
|
@@ -140,6 +187,18 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
140
187
|
async CreateJWKSAuthenticator(req, cb) {
|
|
141
188
|
return this.request("CreateJWKSAuthenticator", req, cb);
|
|
142
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* 修改MQTT角色
|
|
192
|
+
*/
|
|
193
|
+
async ModifyUser(req, cb) {
|
|
194
|
+
return this.request("ModifyUser", req, cb);
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* 删除MQTT访问用户
|
|
198
|
+
*/
|
|
199
|
+
async DeleteUser(req, cb) {
|
|
200
|
+
return this.request("DeleteUser", req, cb);
|
|
201
|
+
}
|
|
143
202
|
/**
|
|
144
203
|
* 修改策略规则
|
|
145
204
|
*/
|
|
@@ -171,13 +230,16 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
171
230
|
return this.request("UpdateAuthorizationPolicyPriority", req, cb);
|
|
172
231
|
}
|
|
173
232
|
/**
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
233
|
+
* 添加mqtt角色
|
|
234
|
+
*/
|
|
235
|
+
async CreateUser(req, cb) {
|
|
236
|
+
return this.request("CreateUser", req, cb);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* 删除MQTT主题
|
|
240
|
+
*/
|
|
241
|
+
async DeleteTopic(req, cb) {
|
|
242
|
+
return this.request("DeleteTopic", req, cb);
|
|
181
243
|
}
|
|
182
244
|
/**
|
|
183
245
|
* 创建MQTT实例的性能测试任务
|
|
@@ -185,5 +247,11 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
185
247
|
async CreateAuthorizationPolicy(req, cb) {
|
|
186
248
|
return this.request("CreateAuthorizationPolicy", req, cb);
|
|
187
249
|
}
|
|
250
|
+
/**
|
|
251
|
+
* 修改实例属性
|
|
252
|
+
*/
|
|
253
|
+
async ModifyInstance(req, cb) {
|
|
254
|
+
return this.request("ModifyInstance", req, cb);
|
|
255
|
+
}
|
|
188
256
|
}
|
|
189
257
|
exports.Client = Client;
|