tencentcloud-sdk-nodejs-mqtt 4.1.218 → 4.1.228

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.
@@ -129,6 +129,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
129
129
  async DeleteTopic(req, cb) {
130
130
  return this.request("DeleteTopic", req, cb);
131
131
  }
132
+ async DescribeSharedSubscriptions(req, cb) {
133
+ return this.request("DescribeSharedSubscriptions", req, cb);
134
+ }
132
135
  async AddClientSubscription(req, cb) {
133
136
  return this.request("AddClientSubscription", req, cb);
134
137
  }
@@ -165,6 +168,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
165
168
  async DeleteAuthenticator(req, cb) {
166
169
  return this.request("DeleteAuthenticator", req, cb);
167
170
  }
171
+ async DescribeSharedSubscriptionClient(req, cb) {
172
+ return this.request("DescribeSharedSubscriptionClient", req, cb);
173
+ }
168
174
  async RegisterCaCertificate(req, cb) {
169
175
  return this.request("RegisterCaCertificate", req, cb);
170
176
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-mqtt",
3
- "version": "4.1.218",
3
+ "version": "4.1.228",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { UpdateAuthorizationPolicyPriorityResponse, ModifyDeviceIdentityResponse, DeleteUserRequest, ModifyJWTAuthenticatorResponse, ModifyAuthorizationPolicyResponse, ActivateDeviceCertificateRequest, CreateInstanceResponse, ApplyRegistrationCodeRequest, DescribeMessageListRequest, DeleteDeviceIdentityRequest, ModifyJWTAuthenticatorRequest, DescribeInsPublicEndpointsResponse, DescribeSharedSubscriptionLagResponse, DeleteTopicRequest, ModifyUserResponse, DescribeCaCertificateResponse, DescribeDeviceCertificatesRequest, DescribeSharedSubscriptionGroupsRequest, DeleteAuthenticatorRequest, DeleteMessageEnrichmentRuleRequest, DeleteAuthorizationPolicyResponse, ModifyJWKSAuthenticatorRequest, DescribeDeviceIdentitiesRequest, CreateMessageEnrichmentRuleResponse, RegisterCaCertificateResponse, KickOutClientResponse, DescribeMessageDetailsRequest, DeleteInstanceRequest, ModifyInstanceRequest, CreateDeviceIdentityRequest, RegisterDeviceCertificateResponse, DescribeClientListResponse, DescribeMessageListResponse, DescribeInstanceListResponse, ApplyRegistrationCodeResponse, ModifyMessageEnrichmentRuleRequest, ModifyInstanceResponse, AddClientSubscriptionRequest, CreateHttpAuthenticatorResponse, UpdateMessageEnrichmentRulePriorityResponse, ModifyJWKSAuthenticatorResponse, DeleteDeviceIdentityResponse, CreateInsPublicEndpointResponse, CreateUserResponse, CreateAuthorizationPolicyRequest, PublishMessageResponse, DescribeMessageEnrichmentRulesResponse, DescribeAuthenticatorResponse, DeactivateCaCertificateResponse, DeleteCaCertificateRequest, DeleteDeviceCertificateRequest, DescribeMessageByTopicRequest, DescribeUserListRequest, DeleteUserResponse, ActivateCaCertificateResponse, DeleteDeviceCertificateResponse, DescribeMessageByTopicResponse, DeleteInstanceResponse, DescribeProductSKUListResponse, CreateJWKSAuthenticatorRequest, DescribeTopicResponse, CreateJWKSAuthenticatorResponse, ModifyHttpAuthenticatorResponse, DescribeAuthorizationPoliciesResponse, CreateTopicRequest, DeleteCaCertificateResponse, DeleteClientSubscriptionRequest, DescribeMessageDetailsResponse, DescribeUserListResponse, DeleteMessageEnrichmentRuleResponse, DeactivateDeviceCertificateResponse, ActivateCaCertificateRequest, ActivateDeviceCertificateResponse, DescribeTopicRequest, PublishMessageRequest, DescribeClientListRequest, DeleteInsPublicEndpointResponse, DescribeInsVPCEndpointsRequest, DescribeTopicListRequest, AddClientSubscriptionResponse, CreateTopicResponse, RevokedDeviceCertificateRequest, ModifyInsPublicEndpointResponse, CreateInstanceRequest, DescribeAuthenticatorRequest, RegisterCaCertificateRequest, CreateAuthorizationPolicyResponse, CreateInsPublicEndpointRequest, RegisterDeviceCertificateRequest, DeactivateDeviceCertificateRequest, DescribeDeviceCertificatesResponse, ModifyTopicRequest, CreateUserRequest, DescribeInstanceResponse, ModifyInstanceCertBindingResponse, UpdateMessageEnrichmentRulePriorityRequest, DescribeInsVPCEndpointsResponse, DescribeDeviceCertificateRequest, ModifyInsPublicEndpointRequest, DeleteInsPublicEndpointRequest, DescribeInsPublicEndpointsRequest, CreateDeviceIdentityResponse, KickOutClientRequest, DescribeDeviceIdentityResponse, ModifyTopicResponse, DeleteClientSubscriptionResponse, DescribeCaCertificateRequest, DescribeMessageEnrichmentRulesRequest, UpdateAuthorizationPolicyPriorityRequest, CreateMessageEnrichmentRuleRequest, DescribeSharedSubscriptionGroupsResponse, CreateJWTAuthenticatorResponse, DeleteAuthorizationPolicyRequest, DescribeDeviceIdentityRequest, ModifyDeviceIdentityRequest, DescribeAuthorizationPoliciesRequest, RevokedDeviceCertificateResponse, CreateHttpAuthenticatorRequest, DescribeProductSKUListRequest, DescribeSharedSubscriptionLagRequest, DescribeDeviceCertificateResponse, DescribeInstanceListRequest, DeactivateCaCertificateRequest, CreateJWTAuthenticatorRequest, DescribeCaCertificatesRequest, ModifyMessageEnrichmentRuleResponse, ModifyAuthorizationPolicyRequest, DescribeTopicListResponse, DeleteTopicResponse, ModifyInstanceCertBindingRequest, ModifyHttpAuthenticatorRequest, DescribeInstanceRequest, DescribeCaCertificatesResponse, ModifyUserRequest, DeleteAuthenticatorResponse, DescribeDeviceIdentitiesResponse } from "./mqtt_models";
2
+ import { UpdateAuthorizationPolicyPriorityResponse, ModifyDeviceIdentityResponse, DeleteUserRequest, ModifyJWTAuthenticatorResponse, ModifyAuthorizationPolicyResponse, ActivateDeviceCertificateRequest, CreateInstanceResponse, ApplyRegistrationCodeRequest, DescribeMessageListRequest, DescribeSharedSubscriptionsRequest, DeleteDeviceIdentityRequest, ModifyJWTAuthenticatorRequest, DescribeInsPublicEndpointsResponse, DescribeSharedSubscriptionLagResponse, DeleteTopicRequest, ModifyUserResponse, DescribeCaCertificateResponse, DescribeDeviceCertificatesRequest, DescribeSharedSubscriptionGroupsRequest, DeleteAuthenticatorRequest, DeleteMessageEnrichmentRuleRequest, DeleteAuthorizationPolicyResponse, ModifyJWKSAuthenticatorRequest, DescribeDeviceIdentitiesRequest, CreateMessageEnrichmentRuleResponse, RegisterCaCertificateResponse, KickOutClientResponse, DescribeMessageDetailsRequest, DeleteInstanceRequest, ModifyInstanceRequest, CreateDeviceIdentityRequest, RegisterDeviceCertificateResponse, DescribeClientListResponse, DescribeMessageListResponse, DescribeInstanceListResponse, ApplyRegistrationCodeResponse, ModifyMessageEnrichmentRuleRequest, ModifyInstanceResponse, AddClientSubscriptionRequest, CreateHttpAuthenticatorResponse, DescribeSharedSubscriptionClientRequest, UpdateMessageEnrichmentRulePriorityResponse, ModifyJWKSAuthenticatorResponse, DeleteDeviceIdentityResponse, CreateInsPublicEndpointResponse, CreateUserResponse, CreateAuthorizationPolicyRequest, PublishMessageResponse, DescribeMessageEnrichmentRulesResponse, DescribeAuthenticatorResponse, DeactivateCaCertificateResponse, DeleteCaCertificateRequest, DeleteDeviceCertificateRequest, DescribeMessageByTopicRequest, DescribeUserListRequest, DeleteUserResponse, ActivateCaCertificateResponse, DeleteDeviceCertificateResponse, DescribeMessageByTopicResponse, DeleteInstanceResponse, DescribeProductSKUListResponse, CreateJWKSAuthenticatorRequest, DescribeTopicResponse, CreateJWKSAuthenticatorResponse, ModifyHttpAuthenticatorResponse, DescribeAuthorizationPoliciesResponse, CreateTopicRequest, DeleteCaCertificateResponse, DescribeSharedSubscriptionClientResponse, DeleteClientSubscriptionRequest, DescribeMessageDetailsResponse, DescribeUserListResponse, DeleteMessageEnrichmentRuleResponse, DeactivateDeviceCertificateResponse, ActivateCaCertificateRequest, ActivateDeviceCertificateResponse, DescribeTopicRequest, PublishMessageRequest, DescribeClientListRequest, DeleteInsPublicEndpointResponse, DescribeInsVPCEndpointsRequest, DescribeTopicListRequest, AddClientSubscriptionResponse, CreateTopicResponse, RevokedDeviceCertificateRequest, ModifyInsPublicEndpointResponse, CreateInstanceRequest, DescribeAuthenticatorRequest, RegisterCaCertificateRequest, CreateAuthorizationPolicyResponse, DescribeSharedSubscriptionsResponse, CreateInsPublicEndpointRequest, RegisterDeviceCertificateRequest, DeactivateDeviceCertificateRequest, DescribeDeviceCertificatesResponse, ModifyTopicRequest, CreateUserRequest, DescribeInstanceResponse, ModifyInstanceCertBindingResponse, UpdateMessageEnrichmentRulePriorityRequest, DescribeInsVPCEndpointsResponse, DescribeDeviceCertificateRequest, ModifyInsPublicEndpointRequest, DeleteInsPublicEndpointRequest, DescribeInsPublicEndpointsRequest, CreateDeviceIdentityResponse, KickOutClientRequest, DescribeDeviceIdentityResponse, ModifyTopicResponse, DeleteClientSubscriptionResponse, DescribeCaCertificateRequest, DescribeMessageEnrichmentRulesRequest, UpdateAuthorizationPolicyPriorityRequest, CreateMessageEnrichmentRuleRequest, DescribeSharedSubscriptionGroupsResponse, CreateJWTAuthenticatorResponse, DeleteAuthorizationPolicyRequest, DescribeDeviceIdentityRequest, ModifyDeviceIdentityRequest, DescribeAuthorizationPoliciesRequest, RevokedDeviceCertificateResponse, CreateHttpAuthenticatorRequest, DescribeProductSKUListRequest, DescribeSharedSubscriptionLagRequest, DescribeDeviceCertificateResponse, DescribeInstanceListRequest, DeactivateCaCertificateRequest, CreateJWTAuthenticatorRequest, DescribeCaCertificatesRequest, ModifyMessageEnrichmentRuleResponse, ModifyAuthorizationPolicyRequest, DescribeTopicListResponse, DeleteTopicResponse, ModifyInstanceCertBindingRequest, ModifyHttpAuthenticatorRequest, DescribeInstanceRequest, DescribeCaCertificatesResponse, ModifyUserRequest, DeleteAuthenticatorResponse, DescribeDeviceIdentitiesResponse } from "./mqtt_models";
3
3
  /**
4
4
  * mqtt client
5
5
  * @class
@@ -185,6 +185,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
185
185
  * 删除MQTT主题
186
186
  */
187
187
  DeleteTopic(req: DeleteTopicRequest, cb?: (error: string, rep: DeleteTopicResponse) => void): Promise<DeleteTopicResponse>;
188
+ /**
189
+ * 查询共享订阅组订阅列表
190
+ */
191
+ DescribeSharedSubscriptions(req: DescribeSharedSubscriptionsRequest, cb?: (error: string, rep: DescribeSharedSubscriptionsResponse) => void): Promise<DescribeSharedSubscriptionsResponse>;
188
192
  /**
189
193
  * 为MQTT客户端增加一条订阅
190
194
  */
@@ -234,6 +238,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
234
238
  * 根据认证器类型删除一个MQTT认证器
235
239
  */
236
240
  DeleteAuthenticator(req: DeleteAuthenticatorRequest, cb?: (error: string, rep: DeleteAuthenticatorResponse) => void): Promise<DeleteAuthenticatorResponse>;
241
+ /**
242
+ * 查询共享订阅组详情信息
243
+ */
244
+ DescribeSharedSubscriptionClient(req: DescribeSharedSubscriptionClientRequest, cb?: (error: string, rep: DescribeSharedSubscriptionClientResponse) => void): Promise<DescribeSharedSubscriptionClientResponse>;
237
245
  /**
238
246
  * 注册CA证书(仅一机一证场景支持),可参考 [自定义 X.509 证书实现 “一机一证”](https://cloud.tencent.com/document/product/1778/114817)
239
247
  */
@@ -291,6 +291,12 @@ class Client extends TencentCloudCommon.AbstractClient {
291
291
  async DeleteTopic(req, cb) {
292
292
  return this.request("DeleteTopic", req, cb);
293
293
  }
294
+ /**
295
+ * 查询共享订阅组订阅列表
296
+ */
297
+ async DescribeSharedSubscriptions(req, cb) {
298
+ return this.request("DescribeSharedSubscriptions", req, cb);
299
+ }
294
300
  /**
295
301
  * 为MQTT客户端增加一条订阅
296
302
  */
@@ -364,6 +370,12 @@ class Client extends TencentCloudCommon.AbstractClient {
364
370
  async DeleteAuthenticator(req, cb) {
365
371
  return this.request("DeleteAuthenticator", req, cb);
366
372
  }
373
+ /**
374
+ * 查询共享订阅组详情信息
375
+ */
376
+ async DescribeSharedSubscriptionClient(req, cb) {
377
+ return this.request("DescribeSharedSubscriptionClient", req, cb);
378
+ }
367
379
  /**
368
380
  * 注册CA证书(仅一机一证场景支持),可参考 [自定义 X.509 证书实现 “一机一证”](https://cloud.tencent.com/document/product/1778/114817)
369
381
  */
@@ -267,6 +267,19 @@ export interface DescribeMessageListRequest {
267
267
  */
268
268
  Limit?: number;
269
269
  }
270
+ /**
271
+ * DescribeSharedSubscriptions请求参数结构体
272
+ */
273
+ export interface DescribeSharedSubscriptionsRequest {
274
+ /**
275
+ * 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
276
+ */
277
+ InstanceId: string;
278
+ /**
279
+ * 共享订阅组名
280
+ */
281
+ SharedName: string;
282
+ }
270
283
  /**
271
284
  * DeleteDeviceIdentity请求参数结构体
272
285
  */
@@ -1284,6 +1297,23 @@ export interface MQTTMessageItem {
1284
1297
  */
1285
1298
  Qos?: string;
1286
1299
  }
1300
+ /**
1301
+ * DescribeSharedSubscriptionClient请求参数结构体
1302
+ */
1303
+ export interface DescribeSharedSubscriptionClientRequest {
1304
+ /**
1305
+ * 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
1306
+ */
1307
+ InstanceId: string;
1308
+ /**
1309
+ * 共享订阅组名
1310
+ */
1311
+ SharedName: string;
1312
+ /**
1313
+ * 订阅表达式
1314
+ */
1315
+ TopicFilter: string;
1316
+ }
1287
1317
  /**
1288
1318
  * UpdateMessageEnrichmentRulePriority返回参数结构体
1289
1319
  */
@@ -1699,39 +1729,21 @@ export interface DeleteCaCertificateResponse {
1699
1729
  RequestId?: string;
1700
1730
  }
1701
1731
  /**
1702
- * 共享订阅组
1732
+ * DescribeSharedSubscriptionClient返回参数结构体
1703
1733
  */
1704
- export interface SharedGroup {
1734
+ export interface DescribeSharedSubscriptionClientResponse {
1705
1735
  /**
1706
- * 腾讯云MQTT实例ID
1736
+ * 共享订阅组下Client信息
1707
1737
  */
1708
- InstanceId?: string;
1738
+ Data?: Array<SharedSubscriptionClient>;
1709
1739
  /**
1710
- * 共享订阅组名
1711
- */
1712
- SharedName?: string;
1713
- /**
1714
- * 共享组消费负载均衡策略 1.RANDOM 2.HASH_PARTITION
1715
- */
1716
- LbStrategy?: number;
1717
- /**
1718
- * HASH_PARTITION 策略下生效,表示Client掉线或新Client上线加入共享订阅组消费的延迟时间。
1719
- 范围:0~600秒
1720
- */
1721
- ExpiryInterval?: number;
1722
- /**
1723
- * 备注,长度不超过128个字符。
1724
- 注意:此字段可能返回 null,表示取不到有效值。
1725
- */
1726
- Remark?: string;
1727
- /**
1728
- * 创建时间,毫秒级时间戳 。
1740
+ * 查询总数
1729
1741
  */
1730
- CreateTime?: number;
1742
+ TotalCount?: number;
1731
1743
  /**
1732
- * 上次更新时间,毫秒级时间戳
1744
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId
1733
1745
  */
1734
- UpdateTime?: number;
1746
+ RequestId?: string;
1735
1747
  }
1736
1748
  /**
1737
1749
  * DeleteClientSubscription请求参数结构体
@@ -2089,6 +2101,41 @@ export interface DescribeClientListRequest {
2089
2101
  */
2090
2102
  Number?: string;
2091
2103
  }
2104
+ /**
2105
+ * 共享订阅组
2106
+ */
2107
+ export interface SharedGroup {
2108
+ /**
2109
+ * 腾讯云MQTT实例ID
2110
+ */
2111
+ InstanceId?: string;
2112
+ /**
2113
+ * 共享订阅组名
2114
+ */
2115
+ SharedName?: string;
2116
+ /**
2117
+ * 共享组消费负载均衡策略 1.RANDOM 2.HASH_PARTITION
2118
+ */
2119
+ LbStrategy?: number;
2120
+ /**
2121
+ * HASH_PARTITION 策略下生效,表示Client掉线或新Client上线加入共享订阅组消费的延迟时间。
2122
+ 范围:0~600秒
2123
+ */
2124
+ ExpiryInterval?: number;
2125
+ /**
2126
+ * 备注,长度不超过128个字符。
2127
+ 注意:此字段可能返回 null,表示取不到有效值。
2128
+ */
2129
+ Remark?: string;
2130
+ /**
2131
+ * 创建时间,毫秒级时间戳 。
2132
+ */
2133
+ CreateTime?: number;
2134
+ /**
2135
+ * 上次更新时间,毫秒级时间戳 。
2136
+ */
2137
+ UpdateTime?: number;
2138
+ }
2092
2139
  /**
2093
2140
  * DeleteInsPublicEndpoint返回参数结构体
2094
2141
  */
@@ -2360,6 +2407,27 @@ export interface CreateAuthorizationPolicyResponse {
2360
2407
  */
2361
2408
  RequestId?: string;
2362
2409
  }
2410
+ /**
2411
+ * DescribeSharedSubscriptions返回参数结构体
2412
+ */
2413
+ export interface DescribeSharedSubscriptionsResponse {
2414
+ /**
2415
+ * 集群id
2416
+ */
2417
+ InstanceId?: string;
2418
+ /**
2419
+ * 共享组名
2420
+ */
2421
+ SharedName?: string;
2422
+ /**
2423
+ * 共享组下的订阅表达式列表
2424
+ */
2425
+ TopicFilter?: Array<string>;
2426
+ /**
2427
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2428
+ */
2429
+ RequestId?: string;
2430
+ }
2363
2431
  /**
2364
2432
  * CreateInsPublicEndpoint请求参数结构体
2365
2433
  */
@@ -2708,6 +2776,27 @@ export interface ModifyInsPublicEndpointRequest {
2708
2776
  */
2709
2777
  Rules: Array<PublicAccessRule>;
2710
2778
  }
2779
+ /**
2780
+ * 共享订阅组下客户端
2781
+ */
2782
+ export interface SharedSubscriptionClient {
2783
+ /**
2784
+ * 客户端ID
2785
+ */
2786
+ ClientId?: string;
2787
+ /**
2788
+ * 共享订阅组名
2789
+ */
2790
+ SharedName?: string;
2791
+ /**
2792
+ * 共享组下的订阅表达式列表
2793
+ */
2794
+ TopicFilter?: string;
2795
+ /**
2796
+ * 在线状态
2797
+ */
2798
+ Online?: boolean;
2799
+ }
2711
2800
  /**
2712
2801
  * DeleteInsPublicEndpoint请求参数结构体
2713
2802
  */