tencentcloud-sdk-nodejs-mqtt 4.0.942

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.
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./services"), exports);
@@ -0,0 +1 @@
1
+ export { mqtt } from "./mqtt";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var mqtt_1 = require("./mqtt");
4
+ Object.defineProperty(exports, "mqtt", { enumerable: true, get: function () { return mqtt_1.mqtt; } });
@@ -0,0 +1,6 @@
1
+ export declare const mqtt: {
2
+ v20240516: {
3
+ Client: typeof import("./v20240516/mqtt_client").Client;
4
+ Models: typeof import("./v20240516/mqtt_models");
5
+ };
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mqtt = void 0;
4
+ const v20240516_1 = require("./v20240516");
5
+ exports.mqtt = {
6
+ v20240516: v20240516_1.v20240516,
7
+ };
@@ -0,0 +1,6 @@
1
+ import * as Models from "./mqtt_models";
2
+ import { Client } from "./mqtt_client";
3
+ export declare const v20240516: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20240516 = void 0;
4
+ const Models = require("./mqtt_models");
5
+ const mqtt_client_1 = require("./mqtt_client");
6
+ exports.v20240516 = {
7
+ Client: mqtt_client_1.Client,
8
+ Models: Models,
9
+ };
@@ -0,0 +1,94 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ import { UpdateAuthorizationPolicyPriorityResponse, UpdateAuthorizationPolicyPriorityRequest, CreateJWTAuthenticatorResponse, DeleteAuthorizationPolicyRequest, ModifyJWKSAuthenticatorResponse, RegisterDeviceCertificateResponse, ModifyJWTAuthenticatorResponse, DescribeAuthorizationPoliciesRequest, DescribeTopicListRequest, DescribeInstanceListRequest, ModifyAuthorizationPolicyResponse, CreateAuthorizationPolicyRequest, DescribeInstanceResponse, DescribeAuthenticatorResponse, CreateTopicResponse, ModifyJWTAuthenticatorRequest, CreateAuthorizationPolicyResponse, CreateJWTAuthenticatorRequest, DeleteTopicRequest, CreateJWKSAuthenticatorRequest, ModifyTopicResponse, DescribeTopicResponse, CreateJWKSAuthenticatorResponse, DeleteAuthenticatorRequest, DescribeAuthorizationPoliciesResponse, RegisterDeviceCertificateRequest, CreateTopicRequest, DeleteAuthorizationPolicyResponse, ModifyJWKSAuthenticatorRequest, ModifyTopicRequest, DescribeTopicListResponse, DescribeAuthenticatorRequest, DeleteTopicResponse, ModifyAuthorizationPolicyRequest, DescribeInstanceRequest, DeleteAuthenticatorResponse, DescribeInstanceListResponse, DescribeTopicRequest } from "./mqtt_models";
3
+ /**
4
+ * mqtt client
5
+ * @class
6
+ */
7
+ export declare class Client extends TencentCloudCommon.AbstractClient {
8
+ constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
+ /**
10
+ * 查询实例信息
11
+ */
12
+ DescribeInstance(req: DescribeInstanceRequest, cb?: (error: string, rep: DescribeInstanceResponse) => void): Promise<DescribeInstanceResponse>;
13
+ /**
14
+ * 创建主题
15
+ */
16
+ CreateTopic(req: CreateTopicRequest, cb?: (error: string, rep: CreateTopicResponse) => void): Promise<CreateTopicResponse>;
17
+ /**
18
+ * 注册设备证书
19
+ */
20
+ RegisterDeviceCertificate(req: RegisterDeviceCertificateRequest, cb?: (error: string, rep: RegisterDeviceCertificateResponse) => void): Promise<RegisterDeviceCertificateResponse>;
21
+ /**
22
+ * 查询授权规则
23
+ */
24
+ DescribeAuthorizationPolicies(req: DescribeAuthorizationPoliciesRequest, cb?: (error: string, rep: DescribeAuthorizationPoliciesResponse) => void): Promise<DescribeAuthorizationPoliciesResponse>;
25
+ /**
26
+ * 修改主题属性
27
+ */
28
+ ModifyTopic(req: ModifyTopicRequest, cb?: (error: string, rep: ModifyTopicResponse) => void): Promise<ModifyTopicResponse>;
29
+ /**
30
+ * 修改策略规则
31
+ */
32
+ ModifyAuthorizationPolicy(req: ModifyAuthorizationPolicyRequest, cb?: (error: string, rep: ModifyAuthorizationPolicyResponse) => void): Promise<ModifyAuthorizationPolicyResponse>;
33
+ /**
34
+ * 获取实例列表,Filters参数使用说明如下:
35
+ 1. InstanceName, 名称模糊查询
36
+ 2. InstanceId,实例ID查询
37
+ 3. InstanceType, 实例类型查询,支持多选
38
+ 3. InstanceStatus,实例状态查询,支持多选
39
+
40
+ 当使用TagFilters查询时,Filters参数失效。
41
+ */
42
+ DescribeInstanceList(req: DescribeInstanceListRequest, cb?: (error: string, rep: DescribeInstanceListResponse) => void): Promise<DescribeInstanceListResponse>;
43
+ /**
44
+ * 删除策略规则
45
+ */
46
+ DeleteAuthorizationPolicy(req: DeleteAuthorizationPolicyRequest, cb?: (error: string, rep: DeleteAuthorizationPolicyResponse) => void): Promise<DeleteAuthorizationPolicyResponse>;
47
+ /**
48
+ * 根据认证器类型删除一个MQTT认证器
49
+ */
50
+ DeleteAuthenticator(req: DeleteAuthenticatorRequest, cb?: (error: string, rep: DeleteAuthenticatorResponse) => void): Promise<DeleteAuthenticatorResponse>;
51
+ /**
52
+ * 查询mqtt主题详情
53
+ */
54
+ DescribeTopic(req: DescribeTopicRequest, cb?: (error: string, rep: DescribeTopicResponse) => void): Promise<DescribeTopicResponse>;
55
+ /**
56
+ * 查询MQTT认证器
57
+ */
58
+ DescribeAuthenticator(req: DescribeAuthenticatorRequest, cb?: (error: string, rep: DescribeAuthenticatorResponse) => void): Promise<DescribeAuthenticatorResponse>;
59
+ /**
60
+ * 创建一个jwks的认证
61
+ */
62
+ CreateJWTAuthenticator(req: CreateJWTAuthenticatorRequest, cb?: (error: string, rep: CreateJWTAuthenticatorResponse) => void): Promise<CreateJWTAuthenticatorResponse>;
63
+ /**
64
+ * 修改策略规则优先级
65
+ */
66
+ UpdateAuthorizationPolicyPriority(req: UpdateAuthorizationPolicyPriorityRequest, cb?: (error: string, rep: UpdateAuthorizationPolicyPriorityResponse) => void): Promise<UpdateAuthorizationPolicyPriorityResponse>;
67
+ /**
68
+ * 修改MQTT JWKS 认证器
69
+ */
70
+ ModifyJWTAuthenticator(req: ModifyJWTAuthenticatorRequest, cb?: (error: string, rep: ModifyJWTAuthenticatorResponse) => void): Promise<ModifyJWTAuthenticatorResponse>;
71
+ /**
72
+ * 获取主题列表,Filter参数使用说明如下:
73
+
74
+ 1. TopicName,主题名称模糊搜索
75
+ 2. TopicType,主题类型查询,支持多选,可选值:Normal,Order,Transaction,DelayScheduled
76
+ */
77
+ DescribeTopicList(req: DescribeTopicListRequest, cb?: (error: string, rep: DescribeTopicListResponse) => void): Promise<DescribeTopicListResponse>;
78
+ /**
79
+ * 删除MQTT主题
80
+ */
81
+ DeleteTopic(req: DeleteTopicRequest, cb?: (error: string, rep: DeleteTopicResponse) => void): Promise<DeleteTopicResponse>;
82
+ /**
83
+ * 创建MQTT实例的性能测试任务
84
+ */
85
+ CreateAuthorizationPolicy(req: CreateAuthorizationPolicyRequest, cb?: (error: string, rep: CreateAuthorizationPolicyResponse) => void): Promise<CreateAuthorizationPolicyResponse>;
86
+ /**
87
+ * 修改MQTT JWKS 认证器
88
+ */
89
+ ModifyJWKSAuthenticator(req: ModifyJWKSAuthenticatorRequest, cb?: (error: string, rep: ModifyJWKSAuthenticatorResponse) => void): Promise<ModifyJWKSAuthenticatorResponse>;
90
+ /**
91
+ * 创建一个jwks的认证
92
+ */
93
+ CreateJWKSAuthenticator(req: CreateJWKSAuthenticatorRequest, cb?: (error: string, rep: CreateJWKSAuthenticatorResponse) => void): Promise<CreateJWKSAuthenticatorResponse>;
94
+ }
@@ -0,0 +1,154 @@
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 TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
22
+ /**
23
+ * mqtt client
24
+ * @class
25
+ */
26
+ class Client extends TencentCloudCommon.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("mqtt.tencentcloudapi.com", "2024-05-16", clientConfig);
29
+ }
30
+ /**
31
+ * 查询实例信息
32
+ */
33
+ async DescribeInstance(req, cb) {
34
+ return this.request("DescribeInstance", req, cb);
35
+ }
36
+ /**
37
+ * 创建主题
38
+ */
39
+ async CreateTopic(req, cb) {
40
+ return this.request("CreateTopic", req, cb);
41
+ }
42
+ /**
43
+ * 注册设备证书
44
+ */
45
+ async RegisterDeviceCertificate(req, cb) {
46
+ return this.request("RegisterDeviceCertificate", req, cb);
47
+ }
48
+ /**
49
+ * 查询授权规则
50
+ */
51
+ async DescribeAuthorizationPolicies(req, cb) {
52
+ return this.request("DescribeAuthorizationPolicies", req, cb);
53
+ }
54
+ /**
55
+ * 修改主题属性
56
+ */
57
+ async ModifyTopic(req, cb) {
58
+ return this.request("ModifyTopic", req, cb);
59
+ }
60
+ /**
61
+ * 修改策略规则
62
+ */
63
+ async ModifyAuthorizationPolicy(req, cb) {
64
+ return this.request("ModifyAuthorizationPolicy", req, cb);
65
+ }
66
+ /**
67
+ * 获取实例列表,Filters参数使用说明如下:
68
+ 1. InstanceName, 名称模糊查询
69
+ 2. InstanceId,实例ID查询
70
+ 3. InstanceType, 实例类型查询,支持多选
71
+ 3. InstanceStatus,实例状态查询,支持多选
72
+
73
+ 当使用TagFilters查询时,Filters参数失效。
74
+ */
75
+ async DescribeInstanceList(req, cb) {
76
+ return this.request("DescribeInstanceList", req, cb);
77
+ }
78
+ /**
79
+ * 删除策略规则
80
+ */
81
+ async DeleteAuthorizationPolicy(req, cb) {
82
+ return this.request("DeleteAuthorizationPolicy", req, cb);
83
+ }
84
+ /**
85
+ * 根据认证器类型删除一个MQTT认证器
86
+ */
87
+ async DeleteAuthenticator(req, cb) {
88
+ return this.request("DeleteAuthenticator", req, cb);
89
+ }
90
+ /**
91
+ * 查询mqtt主题详情
92
+ */
93
+ async DescribeTopic(req, cb) {
94
+ return this.request("DescribeTopic", req, cb);
95
+ }
96
+ /**
97
+ * 查询MQTT认证器
98
+ */
99
+ async DescribeAuthenticator(req, cb) {
100
+ return this.request("DescribeAuthenticator", req, cb);
101
+ }
102
+ /**
103
+ * 创建一个jwks的认证
104
+ */
105
+ async CreateJWTAuthenticator(req, cb) {
106
+ return this.request("CreateJWTAuthenticator", req, cb);
107
+ }
108
+ /**
109
+ * 修改策略规则优先级
110
+ */
111
+ async UpdateAuthorizationPolicyPriority(req, cb) {
112
+ return this.request("UpdateAuthorizationPolicyPriority", req, cb);
113
+ }
114
+ /**
115
+ * 修改MQTT JWKS 认证器
116
+ */
117
+ async ModifyJWTAuthenticator(req, cb) {
118
+ return this.request("ModifyJWTAuthenticator", req, cb);
119
+ }
120
+ /**
121
+ * 获取主题列表,Filter参数使用说明如下:
122
+
123
+ 1. TopicName,主题名称模糊搜索
124
+ 2. TopicType,主题类型查询,支持多选,可选值:Normal,Order,Transaction,DelayScheduled
125
+ */
126
+ async DescribeTopicList(req, cb) {
127
+ return this.request("DescribeTopicList", req, cb);
128
+ }
129
+ /**
130
+ * 删除MQTT主题
131
+ */
132
+ async DeleteTopic(req, cb) {
133
+ return this.request("DeleteTopic", req, cb);
134
+ }
135
+ /**
136
+ * 创建MQTT实例的性能测试任务
137
+ */
138
+ async CreateAuthorizationPolicy(req, cb) {
139
+ return this.request("CreateAuthorizationPolicy", req, cb);
140
+ }
141
+ /**
142
+ * 修改MQTT JWKS 认证器
143
+ */
144
+ async ModifyJWKSAuthenticator(req, cb) {
145
+ return this.request("ModifyJWKSAuthenticator", req, cb);
146
+ }
147
+ /**
148
+ * 创建一个jwks的认证
149
+ */
150
+ async CreateJWKSAuthenticator(req, cb) {
151
+ return this.request("CreateJWKSAuthenticator", req, cb);
152
+ }
153
+ }
154
+ exports.Client = Client;