tencentcloud-sdk-nodejs-mqtt 4.1.109 → 4.1.115
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
CHANGED
|
@@ -693,6 +693,10 @@ export interface ModifyInstanceRequest {
|
|
|
693
693
|
BYOC:一机一证
|
|
694
694
|
*/
|
|
695
695
|
X509Mode?: string;
|
|
696
|
+
/**
|
|
697
|
+
* 单客户端消息收发限速单位 条/秒
|
|
698
|
+
*/
|
|
699
|
+
MessageRate?: number;
|
|
696
700
|
}
|
|
697
701
|
/**
|
|
698
702
|
* CreateDeviceIdentity请求参数结构体
|
|
@@ -1540,6 +1544,55 @@ export interface DescribeMessageDetailsResponse {
|
|
|
1540
1544
|
* 源topic
|
|
1541
1545
|
*/
|
|
1542
1546
|
OriginTopic?: string;
|
|
1547
|
+
/**
|
|
1548
|
+
* 内容类型(MQTT5)
|
|
1549
|
+
含义:指示消息载荷的内容类型,使用标准的 MIME 类型格式。这帮助接收方正确解析和处理消息内容。
|
|
1550
|
+
示例:
|
|
1551
|
+
application/json:表示载荷是 JSON 格式的数据。
|
|
1552
|
+
text/plain:表示载荷是纯文本。
|
|
1553
|
+
application/octet-stream:表示载荷是二进制数据。
|
|
1554
|
+
*/
|
|
1555
|
+
ContentType?: string;
|
|
1556
|
+
/**
|
|
1557
|
+
* 载荷格式指示符(MQTT5)
|
|
1558
|
+
含义:指示载荷的格式,是一个布尔值。0表示未指定格式(二进制),1表示 UTF-8 编码的字符串。
|
|
1559
|
+
示例:
|
|
1560
|
+
值为0:当载荷是二进制数据,如图片、音频等。
|
|
1561
|
+
值为1:当载荷是 UTF-8 编码的文本,如 JSON 字符串、XML 等。
|
|
1562
|
+
*/
|
|
1563
|
+
PayloadFormatIndicator?: number;
|
|
1564
|
+
/**
|
|
1565
|
+
* 消息过期间隔(MQTT5)
|
|
1566
|
+
含义:指定消息在被丢弃前的有效时间(秒)。如果消息在过期前未能送达,则会被 MQTT 服务器丢弃。
|
|
1567
|
+
示例:
|
|
1568
|
+
值为60:表示消息在发布后的 60 秒内有效,过期后未送达则被丢弃。
|
|
1569
|
+
值为0:表示消息不过期,永久有效(直到被接收或会话结束)。
|
|
1570
|
+
*/
|
|
1571
|
+
MessageExpiryInterval?: number;
|
|
1572
|
+
/**
|
|
1573
|
+
* 响应主题(MQTT5)
|
|
1574
|
+
含义:指定一个主题,用于请求 - 响应模式中的响应消息。发送方可以指定接收方应该将响应发送到哪个主题。
|
|
1575
|
+
示例:
|
|
1576
|
+
发送方发布请求到主题devices/device1/commands,并设置ResponseTopic为devices/device1/responses。
|
|
1577
|
+
接收方处理请求后,将响应发布到devices/device1/responses主题。
|
|
1578
|
+
*/
|
|
1579
|
+
ResponseTopic?: string;
|
|
1580
|
+
/**
|
|
1581
|
+
* 关联数据(MQTT5)
|
|
1582
|
+
含义:用于关联请求和响应的标识符,通常是一个字节数组。在请求 - 响应模式中,发送方设置此值,接收方在响应中包含相同的值,以便发送方识别响应对应的请求。
|
|
1583
|
+
示例:
|
|
1584
|
+
发送方生成一个唯一 ID(如 UUID 的字节数组)作为CorrelationData,附加到请求消息中。
|
|
1585
|
+
接收方在响应消息中包含相同的CorrelationData,发送方通过比较此值来匹配响应和请求。
|
|
1586
|
+
*/
|
|
1587
|
+
CorrelationData?: string;
|
|
1588
|
+
/**
|
|
1589
|
+
* 订阅标识符(MQTT5)
|
|
1590
|
+
含义:为订阅分配的唯一标识符,用于标识客户端的特定订阅。当服务器向客户端发送消息时,可以包含此标识符,帮助客户端识别消息对应的订阅。
|
|
1591
|
+
示例:
|
|
1592
|
+
客户端订阅主题devices/+/temperature,并设置SubscriptionIdentifier为123。
|
|
1593
|
+
当服务器向客户端发送此主题的消息时,会在消息中包含SubscriptionIdentifier: 123,客户端可以根据此值知道消息是通过哪个订阅接收的。
|
|
1594
|
+
*/
|
|
1595
|
+
SubscriptionIdentifier?: string;
|
|
1543
1596
|
/**
|
|
1544
1597
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1545
1598
|
*/
|
|
@@ -2309,6 +2362,14 @@ export interface DescribeInstanceResponse {
|
|
|
2309
2362
|
* 服务端证书最大数量
|
|
2310
2363
|
*/
|
|
2311
2364
|
ServerCertLimit?: number;
|
|
2365
|
+
/**
|
|
2366
|
+
* topic前缀最大层级
|
|
2367
|
+
*/
|
|
2368
|
+
TopicPrefixSlashLimit?: number;
|
|
2369
|
+
/**
|
|
2370
|
+
* 单客户端发送消息限速,单位 条/秒
|
|
2371
|
+
*/
|
|
2372
|
+
MessageRate?: number;
|
|
2312
2373
|
/**
|
|
2313
2374
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2314
2375
|
*/
|