tencentcloud-sdk-nodejs-cls 4.1.117 → 4.1.123
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/README.md
CHANGED
|
@@ -62,6 +62,8 @@ npm install tencentcloud-sdk-slim-nodejs --save
|
|
|
62
62
|
|
|
63
63
|
1. clone 代码到本地:
|
|
64
64
|
```
|
|
65
|
+
git clone https://cnb.cool/tencent/cloud/api/sdk/tencentcloud-sdk-nodejs
|
|
66
|
+
# 或者
|
|
65
67
|
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
66
68
|
# 或者
|
|
67
69
|
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
@@ -135,7 +137,7 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
135
137
|
// ...
|
|
136
138
|
```
|
|
137
139
|
|
|
138
|
-
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](
|
|
140
|
+
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](src/common/interface.ts)。
|
|
139
141
|
|
|
140
142
|
## Common Client
|
|
141
143
|
|
|
@@ -143,17 +145,17 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
143
145
|
|
|
144
146
|
**注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
|
|
145
147
|
|
|
146
|
-
详细使用请参阅示例:[使用 Common Client 进行调用](
|
|
148
|
+
详细使用请参阅示例:[使用 Common Client 进行调用](examples/common)
|
|
147
149
|
|
|
148
150
|
## 更多示例
|
|
149
151
|
|
|
150
|
-
请参考 [examples](
|
|
152
|
+
请参考 [examples](examples) 目录。
|
|
151
153
|
|
|
152
154
|
# 相关配置
|
|
153
155
|
|
|
154
156
|
## 代理
|
|
155
157
|
|
|
156
|
-
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](
|
|
158
|
+
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
|
|
157
159
|
|
|
158
160
|
# 凭证管理
|
|
159
161
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-cls",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.123",
|
|
4
4
|
"description": "腾讯云 API NODEJS SDK",
|
|
5
5
|
"main": "./tencentcloud/index.js",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"build:es": "tsc -p tsconfig.es.json",
|
|
13
13
|
"build:slim": "node ./scripts/build_slim.js",
|
|
14
14
|
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
|
15
|
-
"clean": "rimraf tencentcloud es"
|
|
15
|
+
"clean": "rimraf tencentcloud es",
|
|
16
|
+
"test:common": "vitest run"
|
|
16
17
|
},
|
|
17
18
|
"engines": {
|
|
18
19
|
"node": ">=10"
|
|
@@ -44,9 +45,9 @@
|
|
|
44
45
|
"url": "https://github.com/tencentcloud/tencentcloud-sdk-nodejs"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@types/
|
|
48
|
+
"@types/ini": "^4.1.1",
|
|
48
49
|
"@types/json-bigint": "^1.0.1",
|
|
49
|
-
"@types/node": "^
|
|
50
|
+
"@types/node": "^18.0.0",
|
|
50
51
|
"@types/node-fetch": "^2.5.7",
|
|
51
52
|
"@types/uuid": "^9.0.8",
|
|
52
53
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
"prettier": "^2.3.0",
|
|
62
63
|
"rimraf": "^5.0.10",
|
|
63
64
|
"ts-node": "^8.10.2",
|
|
64
|
-
"typescript": "^
|
|
65
|
+
"typescript": "^5.9.2",
|
|
66
|
+
"vitest": "2.1.9"
|
|
65
67
|
}
|
|
66
68
|
}
|
|
@@ -1641,7 +1641,7 @@ export interface DescribeIndexRequest {
|
|
|
1641
1641
|
/**
|
|
1642
1642
|
* ModifyKafkaConsumerGroupOffset请求参数结构体
|
|
1643
1643
|
*/
|
|
1644
|
-
export
|
|
1644
|
+
export type ModifyKafkaConsumerGroupOffsetRequest = null;
|
|
1645
1645
|
/**
|
|
1646
1646
|
* DescribeKafkaConsumerGroupList请求参数结构体
|
|
1647
1647
|
*/
|
|
@@ -6768,11 +6768,11 @@ export interface RuleInfo {
|
|
|
6768
6768
|
*/
|
|
6769
6769
|
export interface MonitorNoticeRule {
|
|
6770
6770
|
/**
|
|
6771
|
-
*
|
|
6771
|
+
* 腾讯云可观测平台通知模板 ID
|
|
6772
6772
|
*/
|
|
6773
6773
|
NoticeId?: string;
|
|
6774
6774
|
/**
|
|
6775
|
-
*
|
|
6775
|
+
* 腾讯云可观测平台内容模板ID,不传默认内容模板
|
|
6776
6776
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6777
6777
|
*/
|
|
6778
6778
|
ContentTmplId?: string;
|
|
@@ -6904,7 +6904,7 @@ export interface ModifyConfigResponse {
|
|
|
6904
6904
|
*/
|
|
6905
6905
|
export interface ModifyNoticeContentRequest {
|
|
6906
6906
|
/**
|
|
6907
|
-
* 通知内容模板ID。-通过[获取通知内容模板](https://cloud.tencent.com/document/api/614/111714)
|
|
6907
|
+
* 通知内容模板ID。-通过[获取通知内容模板](https://cloud.tencent.com/document/api/614/111714)获取通知内容模板ID
|
|
6908
6908
|
*/
|
|
6909
6909
|
NoticeContentId: string;
|
|
6910
6910
|
/**
|
|
@@ -7332,12 +7332,12 @@ export interface SearchCosRechargeInfoResponse {
|
|
|
7332
7332
|
- 0:成功
|
|
7333
7333
|
- 10000:参数错误,请确认参数
|
|
7334
7334
|
- 10001:授权失败,请确认授权
|
|
7335
|
-
- 10002
|
|
7335
|
+
- 10002:获取文件列表失败,请稍后再试。若无法解决,请咨询 [在线支持](https://cloud.tencent.com/online-service) 或 [提交工单](https://console.cloud.tencent.com/workorder/category?level1_id=83&level2_id=469&source=14&data_title=%E6%97%A5%E5%BF%97%E6%9C%8D%E5%8A%A1&step=1) 处理。
|
|
7336
7336
|
- 10003:桶内无相应前缀文件,请使用正确的桶、文件前缀和压缩方式
|
|
7337
|
-
- 10004
|
|
7337
|
+
- 10004:文件下载失败,请稍后再试。若无法解决,请咨询 [在线支持](https://cloud.tencent.com/online-service) 或 [提交工单](https://console.cloud.tencent.com/workorder/category?level1_id=83&level2_id=469&source=14&data_title=%E6%97%A5%E5%BF%97%E6%9C%8D%E5%8A%A1&step=1) 处理。
|
|
7338
7338
|
- 10005:文件解压缩失败,请选择正确的压缩方式然后再试
|
|
7339
7339
|
- 10006:读取文件内容失败,请确认文件可读
|
|
7340
|
-
- 10007
|
|
7340
|
+
- 10007:文件预览失败,请稍后再试。若无法解决,请咨询 [在线支持](https://cloud.tencent.com/online-service) 或 [提交工单](https://console.cloud.tencent.com/workorder/category?level1_id=83&level2_id=469&source=14&data_title=%E6%97%A5%E5%BF%97%E6%9C%8D%E5%8A%A1&step=1) 处理。
|
|
7341
7341
|
*/
|
|
7342
7342
|
Status?: number;
|
|
7343
7343
|
/**
|
|
@@ -9188,7 +9188,7 @@ export interface HostFileInfo {
|
|
|
9188
9188
|
/**
|
|
9189
9189
|
* DescribeConsoleSharingList请求参数结构体
|
|
9190
9190
|
*/
|
|
9191
|
-
export
|
|
9191
|
+
export type DescribeConsoleSharingListRequest = null;
|
|
9192
9192
|
/**
|
|
9193
9193
|
* GetAlarmLog请求参数结构体
|
|
9194
9194
|
*/
|