tencentcloud-sdk-nodejs-mqtt 4.1.5 → 4.1.6

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-mqtt",
3
- "version": "4.1.5",
3
+ "version": "4.1.6",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -77,7 +77,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
77
77
  */
78
78
  DescribeDeviceCertificate(req: DescribeDeviceCertificateRequest, cb?: (error: string, rep: DescribeDeviceCertificateResponse) => void): Promise<DescribeDeviceCertificateResponse>;
79
79
  /**
80
- * 注册设备证书
80
+ * 注册设备证书(仅一机一证场景生效),可参考 [自定义 X.509 证书实现 “一机一证”](https://cloud.tencent.com/document/product/1778/114817#6cb39d46-efad-4220-8f11-2e7fab207bc8)
81
81
  */
82
82
  RegisterDeviceCertificate(req: RegisterDeviceCertificateRequest, cb?: (error: string, rep: RegisterDeviceCertificateResponse) => void): Promise<RegisterDeviceCertificateResponse>;
83
83
  /**
@@ -186,7 +186,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
186
186
  */
187
187
  DeleteAuthenticator(req: DeleteAuthenticatorRequest, cb?: (error: string, rep: DeleteAuthenticatorResponse) => void): Promise<DeleteAuthenticatorResponse>;
188
188
  /**
189
- * 注册ca证书
189
+ * 注册CA证书(仅一机一证场景支持),可参考 [自定义 X.509 证书实现 “一机一证”](https://cloud.tencent.com/document/product/1778/114817)
190
190
  */
191
191
  RegisterCaCertificate(req: RegisterCaCertificateRequest, cb?: (error: string, rep: RegisterCaCertificateResponse) => void): Promise<RegisterCaCertificateResponse>;
192
192
  /**
@@ -133,7 +133,7 @@ class Client extends TencentCloudCommon.AbstractClient {
133
133
  return this.request("DescribeDeviceCertificate", req, cb);
134
134
  }
135
135
  /**
136
- * 注册设备证书
136
+ * 注册设备证书(仅一机一证场景生效),可参考 [自定义 X.509 证书实现 “一机一证”](https://cloud.tencent.com/document/product/1778/114817#6cb39d46-efad-4220-8f11-2e7fab207bc8)
137
137
  */
138
138
  async RegisterDeviceCertificate(req, cb) {
139
139
  return this.request("RegisterDeviceCertificate", req, cb);
@@ -292,7 +292,7 @@ class Client extends TencentCloudCommon.AbstractClient {
292
292
  return this.request("DeleteAuthenticator", req, cb);
293
293
  }
294
294
  /**
295
- * 注册ca证书
295
+ * 注册CA证书(仅一机一证场景支持),可参考 [自定义 X.509 证书实现 “一机一证”](https://cloud.tencent.com/document/product/1778/114817)
296
296
  */
297
297
  async RegisterCaCertificate(req, cb) {
298
298
  return this.request("RegisterCaCertificate", req, cb);
@@ -313,27 +313,30 @@ export interface ModifyUserResponse {
313
313
  */
314
314
  export interface DescribeCaCertificateResponse {
315
315
  /**
316
- * 创建时间
316
+ * 创建时间,毫秒级时间戳 。
317
317
  */
318
318
  CreatedTime?: number;
319
319
  /**
320
- * 上次更新时间
320
+ * 上次更新时间,毫秒级时间戳 。
321
321
  */
322
322
  UpdateTime?: number;
323
323
  /**
324
- * 失效日期
324
+ * 失效日期,毫秒级时间戳 。
325
325
  */
326
326
  NotAfterTime?: number;
327
327
  /**
328
- * 上次激活时间
328
+ * 上次激活时间,毫秒级时间戳 。
329
329
  */
330
330
  LastActivationTime?: number;
331
331
  /**
332
- * 上次吊销时间
332
+ * 上次吊销时间,毫秒级时间戳 。
333
333
  */
334
334
  LastInactivationTime?: number;
335
335
  /**
336
- * 证书状态
336
+ * CA证书状态
337
+ ACTIVE:激活
338
+ INACTIVE:未激活
339
+
337
340
  */
338
341
  Status?: string;
339
342
  /**
@@ -341,7 +344,7 @@ export interface DescribeCaCertificateResponse {
341
344
  */
342
345
  CaSn?: string;
343
346
  /**
344
- * common name
347
+ * 证书的CN(Common Name),证书中用于标识主体的名称,通常是域名或组织名称
345
348
  */
346
349
  CaCn?: string;
347
350
  /**
@@ -349,7 +352,7 @@ export interface DescribeCaCertificateResponse {
349
352
  */
350
353
  CaCertificate?: string;
351
354
  /**
352
- * 证书格式
355
+ * 证书格式,当仅支持PEM格式
353
356
  */
354
357
  Format?: string;
355
358
  /**
@@ -357,7 +360,7 @@ export interface DescribeCaCertificateResponse {
357
360
  */
358
361
  CaIssuerCn?: string;
359
362
  /**
360
- * 生效开始时间
363
+ * 生效开始时间,毫秒级时间戳 。
361
364
  */
362
365
  NotBeforeTime?: number;
363
366
  /**
@@ -370,32 +373,33 @@ export interface DescribeCaCertificateResponse {
370
373
  */
371
374
  export interface DescribeDeviceCertificatesRequest {
372
375
  /**
373
- * 实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
376
+ * 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
374
377
  */
375
378
  InstanceId: string;
376
379
  /**
377
380
  * 支持搜索参数
378
- ClientId:客户端id
379
- CaSn:所属的CA证书SN
380
- DeviceCertificateSn:设备证书SN
381
- DeviceCertificateCn:设备证书CN
381
+ ClientId:客户端id,根据实际业务使用获取
382
+ CaSn:所属的CA证书SN序列号 可以从 [查询集群CA证书列表](https://cloud.tencent.com/document/api/1778/116206) 或者实际业务使用获取
383
+ DeviceCertificateSn:设备证书SN序列号 可从[查询设备证书详情](https://cloud.tencent.com/document/api/1778/113748) 获取
384
+ DeviceCertificateCn:设备证书CN 可从[查询设备证书详情](https://cloud.tencent.com/document/api/1778/113748) 获取
382
385
  OrganizationalUnit:证书OU
383
386
  NotAfterEnd:过期时间小于等于指定时间的证书
384
387
  NotAfterStart:过期时间大于等于指定时间的证书
385
- Status:证书状态
388
+ Status:设备证书状态 ACTIVE(激活); INACTIVE(未激活)REVOKED(吊销);PENDING_ACTIVATION(注册待激活)
386
389
 
387
390
  */
388
391
  Filters?: Array<Filter>;
389
392
  /**
390
- * 分页limit
393
+ * 分页limit,默认20,最大100
391
394
  */
392
395
  Limit?: number;
393
396
  /**
394
- * 分页偏移量
397
+ * 分页偏移量,默认0
395
398
  */
396
399
  Offset?: number;
397
400
  /**
398
- * CREATE_TIME_DESC, 创建时间降序
401
+ * 排序规则
402
+ CREATE_TIME_DESC, 创建时间降序
399
403
  CREATE_TIME_ASC,创建时间升序
400
404
  UPDATE_TIME_DESC,更新时间降序
401
405
  UPDATE_TIME_ASC,更新时间升序
@@ -547,7 +551,7 @@ export interface RegisterCaCertificateResponse {
547
551
  */
548
552
  export interface DeleteInstanceRequest {
549
553
  /**
550
- * 实例ID
554
+ * 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
551
555
  */
552
556
  InstanceId: string;
553
557
  }
@@ -761,7 +765,7 @@ export interface MQTTInstanceItem {
761
765
  */
762
766
  ClientNumLimit?: number;
763
767
  /**
764
- * 是否自动续费。仅包年包月就去那生效。
768
+ * 是否自动续费。仅包年包月集群生效。
765
769
  1:自动续费
766
770
  0:非自动续费
767
771
  */
@@ -1017,7 +1021,7 @@ export interface DeleteCaCertificateRequest {
1017
1021
  */
1018
1022
  InstanceId: string;
1019
1023
  /**
1020
- * 证书序列号,可以从 [DescribeCaCertificates](https://cloud.tencent.com/document/api/1778/116206)接口、控制台、证书文件中获得。
1024
+ * CA证书序列号,可以从 [DescribeCaCertificates](https://cloud.tencent.com/document/api/1778/116206)接口、控制台、证书文件中获得。
1021
1025
  */
1022
1026
  CaSn: string;
1023
1027
  }
@@ -1291,11 +1295,11 @@ export interface MQTTUserItem {
1291
1295
  */
1292
1296
  export interface ActivateCaCertificateRequest {
1293
1297
  /**
1294
- * 集群id
1298
+ * 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
1295
1299
  */
1296
1300
  InstanceId: string;
1297
1301
  /**
1298
- * 证书序列号
1302
+ * CA证书的SN序列号,可以从 [DescribeCaCertificates](https://cloud.tencent.com/document/api/1778/116206)接口、控制台、证书文件中获得。
1299
1303
  */
1300
1304
  CaSn: string;
1301
1305
  }
@@ -1419,7 +1423,6 @@ export interface AuthorizationPolicyItem {
1419
1423
  ClientId?: string;
1420
1424
  /**
1421
1425
  * 条件-用户名,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
1422
-
1423
1426
  */
1424
1427
  Username?: string;
1425
1428
  /**
@@ -1459,7 +1462,7 @@ export interface DescribeClientListRequest {
1459
1462
  */
1460
1463
  InstanceId: string;
1461
1464
  /**
1462
- * 客户端名
1465
+ * 客户端ID
1463
1466
  */
1464
1467
  ClientId?: string;
1465
1468
  /**
@@ -1536,7 +1539,7 @@ export interface DescribeTopicListRequest {
1536
1539
  */
1537
1540
  Offset?: number;
1538
1541
  /**
1539
- * 查询结果限制数量,默认0,最大20
1542
+ * 查询结果限制数量,默认20,最大20
1540
1543
  */
1541
1544
  Limit?: number;
1542
1545
  }
@@ -1600,27 +1603,25 @@ export interface DescribeAuthenticatorRequest {
1600
1603
  */
1601
1604
  export interface RegisterCaCertificateRequest {
1602
1605
  /**
1603
- * 集群id
1606
+ * 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
1604
1607
  */
1605
1608
  InstanceId: string;
1606
1609
  /**
1607
- * CA证书
1610
+ * CA证书内容,自签CA可参考 [自定义 X.509 证书实现 “一机一证”](https://cloud.tencent.com/document/product/1778/114817) 签发自签CA
1608
1611
  */
1609
1612
  CaCertificate: string;
1610
1613
  /**
1611
- * 验证证书
1614
+ * 验证证书内容,可参考 [自定义 X.509 证书实现 “一机一证”](https://cloud.tencent.com/document/product/1778/114817) 手动注册CA证书章节
1612
1615
  */
1613
1616
  VerificationCertificate: string;
1614
1617
  /**
1615
- * 证书格式,不传默认PEM格式
1618
+ * 证书格式,不传默认PEM格式,当前仅支持PEM格式
1616
1619
  */
1617
1620
  Format?: string;
1618
1621
  /**
1619
1622
  * 证书状态,不传默认ACTIVE状态
1620
- ACTIVE,//激活
1621
- INACTIVE,//未激活
1622
- REVOKED,//吊销
1623
- PENDING_ACTIVATION,//注册待激活
1623
+ ACTIVE:激活
1624
+ INACTIVE:未激活
1624
1625
  */
1625
1626
  Status?: string;
1626
1627
  }
@@ -1701,11 +1702,11 @@ export interface CreateInsPublicEndpointRequest {
1701
1702
  */
1702
1703
  export interface RegisterDeviceCertificateRequest {
1703
1704
  /**
1704
- * 集群id
1705
+ * 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
1705
1706
  */
1706
1707
  InstanceId: string;
1707
1708
  /**
1708
- * 设备证书
1709
+ * 设备证书内容,可参考 [使用 CA 证书生成服务端/客户端证书](https://cloud.tencent.com/document/product/1778/114817#aab79cc8-a148-412e-beb8-9c9e158eb944) 生成
1709
1710
  */
1710
1711
  DeviceCertificate: string;
1711
1712
  /**
@@ -1713,15 +1714,19 @@ export interface RegisterDeviceCertificateRequest {
1713
1714
  */
1714
1715
  CaSn: string;
1715
1716
  /**
1716
- * 客户端ID
1717
+ * 客户端ID,需要关联该证书的客户端ID。根据实际业务使用填写
1717
1718
  */
1718
1719
  ClientId?: string;
1719
1720
  /**
1720
- * 证书格式
1721
+ * 证书格式,默认为PEM,当前仅支持PEM格式
1721
1722
  */
1722
1723
  Format?: string;
1723
1724
  /**
1724
- * ACTIVE,//激活 INACTIVE,//未激活 REVOKED,//吊销 PENDING_ACTIVATION,//注册待激活
1725
+ * 客户端证书状态,默认激活状态(ACTIVE
1726
+ ACTIVE:激活
1727
+ INACTIVE:未激活
1728
+ REVOKED:吊销
1729
+ PENDING_ACTIVATION:注册待激活
1725
1730
  */
1726
1731
  Status?: string;
1727
1732
  }
@@ -1760,7 +1765,7 @@ export interface DescribeDeviceCertificatesResponse {
1760
1765
  */
1761
1766
  TotalCount?: number;
1762
1767
  /**
1763
- * 设备证书
1768
+ * 设备证书列表
1764
1769
  */
1765
1770
  Data?: Array<DeviceCertificateItem>;
1766
1771
  /**
@@ -1798,7 +1803,7 @@ export interface CreateUserRequest {
1798
1803
  */
1799
1804
  Username: string;
1800
1805
  /**
1801
- * 密码,该字段为空时候则后端会默认生成
1806
+ * 密码,该字段为空时候则后端会默认生成。用户自定义密码时,不能为空,只支持数字 大小写字母 分隔符("_","-"),不能超过 64 个字符。
1802
1807
  */
1803
1808
  Password?: string;
1804
1809
  /**
@@ -1999,11 +2004,11 @@ export interface DescribeUserListRequest {
1999
2004
  */
2000
2005
  export interface DescribeCaCertificateRequest {
2001
2006
  /**
2002
- * ca证书sn
2007
+ * CA证书的SN序列号,可以从 [DescribeCaCertificates](https://cloud.tencent.com/document/api/1778/116206)接口、控制台、证书文件中获得。
2003
2008
  */
2004
2009
  CaSn: string;
2005
2010
  /**
2006
- * 集群id
2011
+ * 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
2007
2012
  */
2008
2013
  InstanceId: string;
2009
2014
  }
@@ -2293,7 +2298,7 @@ export interface DeviceCertificateItem {
2293
2298
  */
2294
2299
  DeviceCertificate?: string;
2295
2300
  /**
2296
- * 设备证书Sn
2301
+ * 设备证书SN序列号,用于唯一标识一个设备证书
2297
2302
  */
2298
2303
  DeviceCertificateSn?: string;
2299
2304
  /**
@@ -2301,19 +2306,19 @@ export interface DeviceCertificateItem {
2301
2306
  */
2302
2307
  DeviceCertificateCn?: string;
2303
2308
  /**
2304
- * 签发ca的序列号
2309
+ * 签发该证书的CA证书的序列号
2305
2310
  */
2306
2311
  CaSn?: string;
2307
2312
  /**
2308
- * 证书格式
2313
+ * 证书格式,当前仅支持PEM
2309
2314
  */
2310
2315
  Format?: string;
2311
2316
  /**
2312
- * 证书状态
2313
- ACTIVE,//激活
2314
- INACTIVE,//未激活
2315
- REVOKED,//吊销
2316
- PENDING_ACTIVATION,//注册待激活
2317
+ * 设备证书状态
2318
+ ACTIVE:激活
2319
+ INACTIVE:未激活
2320
+ REVOKED:吊销
2321
+ PENDING_ACTIVATION:注册待激活
2317
2322
  */
2318
2323
  Status?: string;
2319
2324
  /**
@@ -2321,19 +2326,19 @@ export interface DeviceCertificateItem {
2321
2326
  */
2322
2327
  OrganizationalUnit?: string;
2323
2328
  /**
2324
- * 上次激活时间
2329
+ * 上次激活时间,毫秒级时间戳 。
2325
2330
  */
2326
2331
  LastActivationTime?: number;
2327
2332
  /**
2328
- * 上次取消激活时间
2333
+ * 上次取消激活时间,毫秒级时间戳 。
2329
2334
  */
2330
2335
  LastInactivationTime?: number;
2331
2336
  /**
2332
- * 创建时间
2337
+ * 创建时间,毫秒级时间戳 。
2333
2338
  */
2334
2339
  CreatedTime?: number;
2335
2340
  /**
2336
- * 预销毁时间
2341
+ * 更新时间,毫秒级时间戳 。
2337
2342
  */
2338
2343
  UpdateTime?: number;
2339
2344
  /**
@@ -2343,11 +2348,11 @@ export interface DeviceCertificateItem {
2343
2348
  */
2344
2349
  CertificateSource?: string;
2345
2350
  /**
2346
- * 证书失效日期
2351
+ * 证书失效日期,毫秒级时间戳 。
2347
2352
  */
2348
2353
  NotAfterTime?: number;
2349
2354
  /**
2350
- * 证书生效开始日期
2355
+ * 证书生效开始日期,毫秒级时间戳 。
2351
2356
  */
2352
2357
  NotBeforeTime?: number;
2353
2358
  }