tencentcloud-sdk-nodejs-mqtt 4.0.965 → 4.0.987
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/package.json +1 -1
- package/products.md +133 -129
- package/src/services/mqtt/v20240516/mqtt_client.ts +32 -8
- package/src/services/mqtt/v20240516/mqtt_models.ts +261 -109
- package/tencentcloud/services/mqtt/v20240516/mqtt_client.d.ts +11 -4
- package/tencentcloud/services/mqtt/v20240516/mqtt_client.js +15 -4
- package/tencentcloud/services/mqtt/v20240516/mqtt_models.d.ts +256 -109
|
@@ -103,6 +103,80 @@ export interface AuthorizationPolicyItem {
|
|
|
103
103
|
*/
|
|
104
104
|
UpdateTime?: number;
|
|
105
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* 设备证书信息
|
|
108
|
+
*/
|
|
109
|
+
export interface DeviceCertificateItem {
|
|
110
|
+
/**
|
|
111
|
+
* 客户端id
|
|
112
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
113
|
+
*/
|
|
114
|
+
ClientId?: string;
|
|
115
|
+
/**
|
|
116
|
+
* 设备证书
|
|
117
|
+
*/
|
|
118
|
+
DeviceCertificate?: string;
|
|
119
|
+
/**
|
|
120
|
+
* 设备证书Sn
|
|
121
|
+
*/
|
|
122
|
+
DeviceCertificateSn?: string;
|
|
123
|
+
/**
|
|
124
|
+
* 设备证书Cn
|
|
125
|
+
*/
|
|
126
|
+
DeviceCertificateCn?: string;
|
|
127
|
+
/**
|
|
128
|
+
* 签发ca的序列号
|
|
129
|
+
*/
|
|
130
|
+
CaSn?: string;
|
|
131
|
+
/**
|
|
132
|
+
* 证书格式
|
|
133
|
+
*/
|
|
134
|
+
Format?: string;
|
|
135
|
+
/**
|
|
136
|
+
* 证书状态
|
|
137
|
+
ACTIVE,//激活
|
|
138
|
+
INACTIVE,//未激活
|
|
139
|
+
REVOKED,//吊销
|
|
140
|
+
PENDING_ACTIVATION,//注册待激活
|
|
141
|
+
*/
|
|
142
|
+
Status?: string;
|
|
143
|
+
/**
|
|
144
|
+
* 上次激活时间
|
|
145
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
146
|
+
*/
|
|
147
|
+
LastActivationTime?: number;
|
|
148
|
+
/**
|
|
149
|
+
* 上次取消激活时间
|
|
150
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
151
|
+
*/
|
|
152
|
+
LastInactivationTime?: number;
|
|
153
|
+
/**
|
|
154
|
+
* 创建时间
|
|
155
|
+
*/
|
|
156
|
+
CreatedTime?: number;
|
|
157
|
+
/**
|
|
158
|
+
* 预销毁时间
|
|
159
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
160
|
+
*/
|
|
161
|
+
UpdateTime?: number;
|
|
162
|
+
/**
|
|
163
|
+
* 证书来源:
|
|
164
|
+
API, 手动注册
|
|
165
|
+
JITP 自动注册
|
|
166
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
167
|
+
*/
|
|
168
|
+
CertificateSource?: string;
|
|
169
|
+
/**
|
|
170
|
+
* 证书失效日期
|
|
171
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
172
|
+
*/
|
|
173
|
+
NotAfterTime?: number;
|
|
174
|
+
/**
|
|
175
|
+
* 证书生效开始日期
|
|
176
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
177
|
+
*/
|
|
178
|
+
NotBeforeTime?: number;
|
|
179
|
+
}
|
|
106
180
|
/**
|
|
107
181
|
* CreateJWTAuthenticator返回参数结构体
|
|
108
182
|
*/
|
|
@@ -170,7 +244,8 @@ export interface DescribeTopicListRequest {
|
|
|
170
244
|
*/
|
|
171
245
|
InstanceId: string;
|
|
172
246
|
/**
|
|
173
|
-
*
|
|
247
|
+
* 查询条件列表:
|
|
248
|
+
支持TopicName模糊查询
|
|
174
249
|
*/
|
|
175
250
|
Filters?: Array<Filter>;
|
|
176
251
|
/**
|
|
@@ -187,7 +262,10 @@ export interface DescribeTopicListRequest {
|
|
|
187
262
|
*/
|
|
188
263
|
export interface DescribeInstanceListRequest {
|
|
189
264
|
/**
|
|
190
|
-
*
|
|
265
|
+
* 查询条件列表,支持以下子弹
|
|
266
|
+
InstanceName:集群名模糊搜索
|
|
267
|
+
InstanceId:集群id精确搜索
|
|
268
|
+
InstanceStatus:集群状态搜索
|
|
191
269
|
*/
|
|
192
270
|
Filters?: Array<Filter>;
|
|
193
271
|
/**
|
|
@@ -269,6 +347,19 @@ export interface CreateAuthorizationPolicyRequest {
|
|
|
269
347
|
*/
|
|
270
348
|
Remark?: string;
|
|
271
349
|
}
|
|
350
|
+
/**
|
|
351
|
+
* ActivateDeviceCertificate请求参数结构体
|
|
352
|
+
*/
|
|
353
|
+
export interface ActivateDeviceCertificateRequest {
|
|
354
|
+
/**
|
|
355
|
+
* 集群id
|
|
356
|
+
*/
|
|
357
|
+
InstanceId: string;
|
|
358
|
+
/**
|
|
359
|
+
* 设备证书序列号
|
|
360
|
+
*/
|
|
361
|
+
DeviceCertificateSn: string;
|
|
362
|
+
}
|
|
272
363
|
/**
|
|
273
364
|
* DescribeInstance返回参数结构体
|
|
274
365
|
*/
|
|
@@ -419,7 +510,9 @@ export interface ModifyJWTAuthenticatorRequest {
|
|
|
419
510
|
*/
|
|
420
511
|
Algorithm?: string;
|
|
421
512
|
/**
|
|
422
|
-
* 设备连接时传递jwt的key;
|
|
513
|
+
* 设备连接时传递jwt的key;
|
|
514
|
+
username-使用用户名字段传递;
|
|
515
|
+
password-使用密码字段传递
|
|
423
516
|
*/
|
|
424
517
|
From?: string;
|
|
425
518
|
/**
|
|
@@ -576,6 +669,34 @@ export interface DescribeTopicResponse {
|
|
|
576
669
|
*/
|
|
577
670
|
RequestId?: string;
|
|
578
671
|
}
|
|
672
|
+
/**
|
|
673
|
+
* DescribeDeviceCertificates请求参数结构体
|
|
674
|
+
*/
|
|
675
|
+
export interface DescribeDeviceCertificatesRequest {
|
|
676
|
+
/**
|
|
677
|
+
* 集群ID
|
|
678
|
+
*/
|
|
679
|
+
InstanceId: string;
|
|
680
|
+
/**
|
|
681
|
+
* 过滤器支持ClientId、CaSn、DeviceCertificateSn、Status搜索
|
|
682
|
+
*/
|
|
683
|
+
Filters?: Array<Filter>;
|
|
684
|
+
/**
|
|
685
|
+
* 分页limit
|
|
686
|
+
*/
|
|
687
|
+
Limit?: number;
|
|
688
|
+
/**
|
|
689
|
+
* 分页偏移量
|
|
690
|
+
*/
|
|
691
|
+
Offset?: number;
|
|
692
|
+
/**
|
|
693
|
+
* CREATE_TIME_DESC, 创建时间降序
|
|
694
|
+
CREATE_TIME_ASC,创建时间升序
|
|
695
|
+
UPDATE_TIME_DESC,更新时间降序
|
|
696
|
+
UPDATE_TIME_ASC,更新时间升序
|
|
697
|
+
*/
|
|
698
|
+
OrderBy?: string;
|
|
699
|
+
}
|
|
579
700
|
/**
|
|
580
701
|
* CreateJWKSAuthenticator返回参数结构体
|
|
581
702
|
*/
|
|
@@ -697,6 +818,23 @@ export interface DeleteAuthorizationPolicyResponse {
|
|
|
697
818
|
*/
|
|
698
819
|
RequestId?: string;
|
|
699
820
|
}
|
|
821
|
+
/**
|
|
822
|
+
* DescribeDeviceCertificates返回参数结构体
|
|
823
|
+
*/
|
|
824
|
+
export interface DescribeDeviceCertificatesResponse {
|
|
825
|
+
/**
|
|
826
|
+
* 总数
|
|
827
|
+
*/
|
|
828
|
+
TotalCount?: number;
|
|
829
|
+
/**
|
|
830
|
+
* 设备证书
|
|
831
|
+
*/
|
|
832
|
+
Data?: Array<DeviceCertificateItem>;
|
|
833
|
+
/**
|
|
834
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
835
|
+
*/
|
|
836
|
+
RequestId?: string;
|
|
837
|
+
}
|
|
700
838
|
/**
|
|
701
839
|
* ModifyJWKSAuthenticator请求参数结构体
|
|
702
840
|
*/
|
|
@@ -778,6 +916,117 @@ export interface DescribeAuthenticatorRequest {
|
|
|
778
916
|
*/
|
|
779
917
|
Type?: string;
|
|
780
918
|
}
|
|
919
|
+
/**
|
|
920
|
+
* MQTT 实例信息
|
|
921
|
+
*/
|
|
922
|
+
export interface MQTTInstanceItem {
|
|
923
|
+
/**
|
|
924
|
+
* 实例ID
|
|
925
|
+
*/
|
|
926
|
+
InstanceId?: string;
|
|
927
|
+
/**
|
|
928
|
+
* 实例名称
|
|
929
|
+
*/
|
|
930
|
+
InstanceName?: string;
|
|
931
|
+
/**
|
|
932
|
+
* 实例版本
|
|
933
|
+
*/
|
|
934
|
+
Version?: string;
|
|
935
|
+
/**
|
|
936
|
+
* 实例类型,
|
|
937
|
+
EXPERIMENT,体验版
|
|
938
|
+
BASIC,基础版
|
|
939
|
+
PRO,专业版
|
|
940
|
+
PLATINUM,铂金版
|
|
941
|
+
*/
|
|
942
|
+
InstanceType?: string;
|
|
943
|
+
/**
|
|
944
|
+
* 实例状态,
|
|
945
|
+
RUNNING, 运行中
|
|
946
|
+
MAINTAINING,维护中
|
|
947
|
+
ABNORMAL,异常
|
|
948
|
+
OVERDUE,欠费
|
|
949
|
+
DESTROYED,已删除
|
|
950
|
+
CREATING,创建中
|
|
951
|
+
MODIFYING,变配中
|
|
952
|
+
CREATE_FAILURE,创建失败
|
|
953
|
+
MODIFY_FAILURE,变配失败
|
|
954
|
+
DELETING,删除中
|
|
955
|
+
*/
|
|
956
|
+
InstanceStatus?: string;
|
|
957
|
+
/**
|
|
958
|
+
* 实例主题数上限
|
|
959
|
+
*/
|
|
960
|
+
TopicNumLimit?: number;
|
|
961
|
+
/**
|
|
962
|
+
* 备注信息
|
|
963
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
964
|
+
*/
|
|
965
|
+
Remark?: string;
|
|
966
|
+
/**
|
|
967
|
+
* 主题数量
|
|
968
|
+
*/
|
|
969
|
+
TopicNum?: number;
|
|
970
|
+
/**
|
|
971
|
+
* 商品规格
|
|
972
|
+
*/
|
|
973
|
+
SkuCode?: string;
|
|
974
|
+
/**
|
|
975
|
+
* 弹性TPS限流值
|
|
976
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
977
|
+
*/
|
|
978
|
+
TpsLimit?: number;
|
|
979
|
+
/**
|
|
980
|
+
* 创建时间
|
|
981
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
982
|
+
*/
|
|
983
|
+
CreateTime?: number;
|
|
984
|
+
/**
|
|
985
|
+
* 单客户端最大订阅数量
|
|
986
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
987
|
+
*/
|
|
988
|
+
MaxSubscriptionPerClient?: number;
|
|
989
|
+
/**
|
|
990
|
+
* 客户端连接数上线
|
|
991
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
992
|
+
*/
|
|
993
|
+
ClientNumLimit?: number;
|
|
994
|
+
/**
|
|
995
|
+
* 是否自动续费
|
|
996
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
997
|
+
*/
|
|
998
|
+
RenewFlag?: number;
|
|
999
|
+
/**
|
|
1000
|
+
* 计费模式, POSTPAID,按量计费 PREPAID,包年包月
|
|
1001
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1002
|
+
*/
|
|
1003
|
+
PayMode?: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* 到期时间,秒为单位
|
|
1006
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1007
|
+
*/
|
|
1008
|
+
ExpiryTime?: number;
|
|
1009
|
+
/**
|
|
1010
|
+
* 预销毁时间
|
|
1011
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1012
|
+
*/
|
|
1013
|
+
DestroyTime?: number;
|
|
1014
|
+
/**
|
|
1015
|
+
* 授权规则条数限制
|
|
1016
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1017
|
+
*/
|
|
1018
|
+
AuthorizationPolicyLimit?: number;
|
|
1019
|
+
/**
|
|
1020
|
+
* 最大ca配额
|
|
1021
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1022
|
+
*/
|
|
1023
|
+
MaxCaNum?: number;
|
|
1024
|
+
/**
|
|
1025
|
+
* 最大订阅数
|
|
1026
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1027
|
+
*/
|
|
1028
|
+
MaxSubscription?: number;
|
|
1029
|
+
}
|
|
781
1030
|
/**
|
|
782
1031
|
* DeleteTopic返回参数结构体
|
|
783
1032
|
*/
|
|
@@ -910,115 +1159,13 @@ export interface TagFilter {
|
|
|
910
1159
|
TagValues?: Array<string>;
|
|
911
1160
|
}
|
|
912
1161
|
/**
|
|
913
|
-
*
|
|
1162
|
+
* ActivateDeviceCertificate返回参数结构体
|
|
914
1163
|
*/
|
|
915
|
-
export interface
|
|
916
|
-
/**
|
|
917
|
-
* 实例ID
|
|
918
|
-
*/
|
|
919
|
-
InstanceId?: string;
|
|
920
|
-
/**
|
|
921
|
-
* 实例名称
|
|
922
|
-
*/
|
|
923
|
-
InstanceName?: string;
|
|
924
|
-
/**
|
|
925
|
-
* 实例版本
|
|
926
|
-
*/
|
|
927
|
-
Version?: string;
|
|
928
|
-
/**
|
|
929
|
-
* 实例类型,
|
|
930
|
-
EXPERIMENT,体验版
|
|
931
|
-
BASIC,基础版
|
|
932
|
-
PRO,专业版
|
|
933
|
-
PLATINUM,铂金版
|
|
934
|
-
*/
|
|
935
|
-
InstanceType?: string;
|
|
1164
|
+
export interface ActivateDeviceCertificateResponse {
|
|
936
1165
|
/**
|
|
937
|
-
*
|
|
938
|
-
RUNNING, 运行中
|
|
939
|
-
MAINTAINING,维护中
|
|
940
|
-
ABNORMAL,异常
|
|
941
|
-
OVERDUE,欠费
|
|
942
|
-
DESTROYED,已删除
|
|
943
|
-
CREATING,创建中
|
|
944
|
-
MODIFYING,变配中
|
|
945
|
-
CREATE_FAILURE,创建失败
|
|
946
|
-
MODIFY_FAILURE,变配失败
|
|
947
|
-
DELETING,删除中
|
|
948
|
-
*/
|
|
949
|
-
InstanceStatus?: string;
|
|
950
|
-
/**
|
|
951
|
-
* 实例主题数上限
|
|
952
|
-
*/
|
|
953
|
-
TopicNumLimit?: number;
|
|
954
|
-
/**
|
|
955
|
-
* 备注信息
|
|
956
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
957
|
-
*/
|
|
958
|
-
Remark?: string;
|
|
959
|
-
/**
|
|
960
|
-
* 主题数量
|
|
961
|
-
*/
|
|
962
|
-
TopicNum?: number;
|
|
963
|
-
/**
|
|
964
|
-
* 商品规格
|
|
965
|
-
*/
|
|
966
|
-
SkuCode?: string;
|
|
967
|
-
/**
|
|
968
|
-
* 弹性TPS限流值
|
|
969
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
970
|
-
*/
|
|
971
|
-
TpsLimit?: number;
|
|
972
|
-
/**
|
|
973
|
-
* 创建时间
|
|
974
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
975
|
-
*/
|
|
976
|
-
CreateTime?: number;
|
|
977
|
-
/**
|
|
978
|
-
* 单客户端最大订阅数量
|
|
979
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
980
|
-
*/
|
|
981
|
-
MaxSubscriptionPerClient?: number;
|
|
982
|
-
/**
|
|
983
|
-
* 客户端连接数上线
|
|
984
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
985
|
-
*/
|
|
986
|
-
ClientNumLimit?: number;
|
|
987
|
-
/**
|
|
988
|
-
* 是否自动续费
|
|
989
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
990
|
-
*/
|
|
991
|
-
RenewFlag?: number;
|
|
992
|
-
/**
|
|
993
|
-
* 计费模式, POSTPAID,按量计费 PREPAID,包年包月
|
|
994
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
995
|
-
*/
|
|
996
|
-
PayMode?: string;
|
|
997
|
-
/**
|
|
998
|
-
* 到期时间,秒为单位
|
|
999
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1000
|
-
*/
|
|
1001
|
-
ExpiryTime?: number;
|
|
1002
|
-
/**
|
|
1003
|
-
* 预销毁时间
|
|
1004
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1005
|
-
*/
|
|
1006
|
-
DestroyTime?: number;
|
|
1007
|
-
/**
|
|
1008
|
-
* 授权规则条数限制
|
|
1009
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1010
|
-
*/
|
|
1011
|
-
AuthorizationPolicyLimit?: number;
|
|
1012
|
-
/**
|
|
1013
|
-
* 最大ca配额
|
|
1014
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1015
|
-
*/
|
|
1016
|
-
MaxCaNum?: number;
|
|
1017
|
-
/**
|
|
1018
|
-
* 最大订阅数
|
|
1019
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1166
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1020
1167
|
*/
|
|
1021
|
-
|
|
1168
|
+
RequestId?: string;
|
|
1022
1169
|
}
|
|
1023
1170
|
/**
|
|
1024
1171
|
* DescribeInstanceList返回参数结构体
|