tencentcloud-sdk-nodejs-es 4.0.1051 → 4.1.16
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 +27 -5
- package/es/index.js +1 -0
- package/es/services/es/index.js +6 -0
- package/es/services/es/v20180416/es_client.js +189 -0
- package/es/services/es/v20180416/es_models.js +0 -0
- package/es/services/es/v20180416/index.js +6 -0
- package/es/services/es/v20250101/es_client.js +33 -0
- package/es/services/es/v20250101/es_models.js +0 -0
- package/es/services/es/v20250101/index.js +6 -0
- package/es/services/index.js +1 -0
- package/package.json +26 -8
- package/tencentcloud/services/es/index.d.ts +4 -0
- package/tencentcloud/services/es/index.js +2 -0
- package/tencentcloud/services/es/v20180416/es_client.js +2 -1
- package/tencentcloud/services/es/v20180416/es_models.d.ts +120 -105
- package/tencentcloud/services/es/v20180416/index.js +2 -1
- package/tencentcloud/services/es/v20250101/es_client.d.ts +50 -0
- package/tencentcloud/services/es/v20250101/es_client.js +91 -0
- package/tencentcloud/services/es/v20250101/es_models.d.ts +568 -0
- package/tencentcloud/services/es/v20250101/es_models.js +18 -0
- package/tencentcloud/services/es/v20250101/index.d.ts +6 -0
- package/tencentcloud/services/es/v20250101/index.js +10 -0
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/prettier.config.js +0 -38
- package/src/index.ts +0 -1
- package/src/services/es/index.ts +0 -5
- package/src/services/es/v20180416/es_client.ts +0 -849
- package/src/services/es/v20180416/es_models.ts +0 -5775
- package/src/services/es/v20180416/index.ts +0 -6
- package/src/services/index.ts +0 -1
- package/tsconfig.json +0 -33
- package/typings/index.d.ts +0 -2
package/README.md
CHANGED
|
@@ -44,18 +44,40 @@ npm install tencentcloud-sdk-nodejs-vpc --save
|
|
|
44
44
|
|
|
45
45
|
### 安装全产品 SDK
|
|
46
46
|
|
|
47
|
+
如果项目依赖的云产品较多,可以引入全产品 SDK。
|
|
48
|
+
|
|
47
49
|
```
|
|
48
50
|
npm install tencentcloud-sdk-nodejs --save
|
|
49
51
|
```
|
|
50
52
|
|
|
51
|
-
全产品 SDK
|
|
53
|
+
全产品 SDK 包含所有云产品调用代码和 TypeScript 类型文件,体积偏大。对于体积敏感的场景,推荐安装指定产品 SDK。
|
|
54
|
+
|
|
55
|
+
如果既希望全产品调用,又对包体积比较敏感,可以使用 Slim 版本 SDK。Slim SDK 移除类型文件,并进行了代码压缩,适合体积敏感场景使用:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
npm install tencentcloud-sdk-slim-nodejs --save
|
|
59
|
+
```
|
|
52
60
|
|
|
53
61
|
## 通过源码包安装
|
|
54
62
|
|
|
55
|
-
1.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
63
|
+
1. clone 代码到本地:
|
|
64
|
+
```
|
|
65
|
+
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
66
|
+
# 或者
|
|
67
|
+
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
68
|
+
```
|
|
69
|
+
2. 在项目根目录执行以下命令完成构建:
|
|
70
|
+
```
|
|
71
|
+
npm install && npm run build
|
|
72
|
+
```
|
|
73
|
+
3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
|
|
74
|
+
```
|
|
75
|
+
npm pack
|
|
76
|
+
```
|
|
77
|
+
4. 安装包到你的项目里:
|
|
78
|
+
```
|
|
79
|
+
npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
|
|
80
|
+
```
|
|
59
81
|
|
|
60
82
|
# 示例
|
|
61
83
|
|
package/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./services";
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
3
|
+
constructor(clientConfig) {
|
|
4
|
+
super("es.tencentcloudapi.com", "2018-04-16", clientConfig);
|
|
5
|
+
}
|
|
6
|
+
async DiagnoseInstance(req, cb) {
|
|
7
|
+
return this.request("DiagnoseInstance", req, cb);
|
|
8
|
+
}
|
|
9
|
+
async DeleteLogstashInstance(req, cb) {
|
|
10
|
+
return this.request("DeleteLogstashInstance", req, cb);
|
|
11
|
+
}
|
|
12
|
+
async RestoreClusterSnapshot(req, cb) {
|
|
13
|
+
return this.request("RestoreClusterSnapshot", req, cb);
|
|
14
|
+
}
|
|
15
|
+
async GetRequestTargetNodeTypes(req, cb) {
|
|
16
|
+
return this.request("GetRequestTargetNodeTypes", req, cb);
|
|
17
|
+
}
|
|
18
|
+
async StopLogstashPipelines(req, cb) {
|
|
19
|
+
return this.request("StopLogstashPipelines", req, cb);
|
|
20
|
+
}
|
|
21
|
+
async DescribeServerlessSpaces(req, cb) {
|
|
22
|
+
return this.request("DescribeServerlessSpaces", req, cb);
|
|
23
|
+
}
|
|
24
|
+
async InstallInstanceModel(req, cb) {
|
|
25
|
+
return this.request("InstallInstanceModel", req, cb);
|
|
26
|
+
}
|
|
27
|
+
async DescribeIndexList(req, cb) {
|
|
28
|
+
return this.request("DescribeIndexList", req, cb);
|
|
29
|
+
}
|
|
30
|
+
async UpdateLogstashPipelineDesc(req, cb) {
|
|
31
|
+
return this.request("UpdateLogstashPipelineDesc", req, cb);
|
|
32
|
+
}
|
|
33
|
+
async DescribeUserCosSnapshotList(req, cb) {
|
|
34
|
+
return this.request("DescribeUserCosSnapshotList", req, cb);
|
|
35
|
+
}
|
|
36
|
+
async UpdateIndex(req, cb) {
|
|
37
|
+
return this.request("UpdateIndex", req, cb);
|
|
38
|
+
}
|
|
39
|
+
async DeleteInstance(req, cb) {
|
|
40
|
+
return this.request("DeleteInstance", req, cb);
|
|
41
|
+
}
|
|
42
|
+
async GetDiagnoseSettings(req, cb) {
|
|
43
|
+
return this.request("GetDiagnoseSettings", req, cb);
|
|
44
|
+
}
|
|
45
|
+
async CreateIndex(req, cb) {
|
|
46
|
+
return this.request("CreateIndex", req, cb);
|
|
47
|
+
}
|
|
48
|
+
async StartLogstashPipelines(req, cb) {
|
|
49
|
+
return this.request("StartLogstashPipelines", req, cb);
|
|
50
|
+
}
|
|
51
|
+
async UpdateRequestTargetNodeTypes(req, cb) {
|
|
52
|
+
return this.request("UpdateRequestTargetNodeTypes", req, cb);
|
|
53
|
+
}
|
|
54
|
+
async UpdateDiagnoseSettings(req, cb) {
|
|
55
|
+
return this.request("UpdateDiagnoseSettings", req, cb);
|
|
56
|
+
}
|
|
57
|
+
async CreateCosMigrateToServerlessInstance(req, cb) {
|
|
58
|
+
return this.request("CreateCosMigrateToServerlessInstance", req, cb);
|
|
59
|
+
}
|
|
60
|
+
async UpdatePlugins(req, cb) {
|
|
61
|
+
return this.request("UpdatePlugins", req, cb);
|
|
62
|
+
}
|
|
63
|
+
async UpdateLogstashInstance(req, cb) {
|
|
64
|
+
return this.request("UpdateLogstashInstance", req, cb);
|
|
65
|
+
}
|
|
66
|
+
async CheckMigrateIndexMetaData(req, cb) {
|
|
67
|
+
return this.request("CheckMigrateIndexMetaData", req, cb);
|
|
68
|
+
}
|
|
69
|
+
async UpdateJdk(req, cb) {
|
|
70
|
+
return this.request("UpdateJdk", req, cb);
|
|
71
|
+
}
|
|
72
|
+
async DeleteServerlessInstance(req, cb) {
|
|
73
|
+
return this.request("DeleteServerlessInstance", req, cb);
|
|
74
|
+
}
|
|
75
|
+
async CreateServerlessSpaceV2(req, cb) {
|
|
76
|
+
return this.request("CreateServerlessSpaceV2", req, cb);
|
|
77
|
+
}
|
|
78
|
+
async DescribeClusterSnapshot(req, cb) {
|
|
79
|
+
return this.request("DescribeClusterSnapshot", req, cb);
|
|
80
|
+
}
|
|
81
|
+
async CreateLogstashInstance(req, cb) {
|
|
82
|
+
return this.request("CreateLogstashInstance", req, cb);
|
|
83
|
+
}
|
|
84
|
+
async RestartInstance(req, cb) {
|
|
85
|
+
return this.request("RestartInstance", req, cb);
|
|
86
|
+
}
|
|
87
|
+
async UpdateInstance(req, cb) {
|
|
88
|
+
return this.request("UpdateInstance", req, cb);
|
|
89
|
+
}
|
|
90
|
+
async DescribeInstanceLogs(req, cb) {
|
|
91
|
+
return this.request("DescribeInstanceLogs", req, cb);
|
|
92
|
+
}
|
|
93
|
+
async RestartKibana(req, cb) {
|
|
94
|
+
return this.request("RestartKibana", req, cb);
|
|
95
|
+
}
|
|
96
|
+
async ModifyEsVipSecurityGroup(req, cb) {
|
|
97
|
+
return this.request("ModifyEsVipSecurityGroup", req, cb);
|
|
98
|
+
}
|
|
99
|
+
async CreateServerlessInstance(req, cb) {
|
|
100
|
+
return this.request("CreateServerlessInstance", req, cb);
|
|
101
|
+
}
|
|
102
|
+
async DescribeServerlessMetrics(req, cb) {
|
|
103
|
+
return this.request("DescribeServerlessMetrics", req, cb);
|
|
104
|
+
}
|
|
105
|
+
async DescribeInstanceOperations(req, cb) {
|
|
106
|
+
return this.request("DescribeInstanceOperations", req, cb);
|
|
107
|
+
}
|
|
108
|
+
async DescribeSpaceKibanaTools(req, cb) {
|
|
109
|
+
return this.request("DescribeSpaceKibanaTools", req, cb);
|
|
110
|
+
}
|
|
111
|
+
async DescribeLogstashPipelines(req, cb) {
|
|
112
|
+
return this.request("DescribeLogstashPipelines", req, cb);
|
|
113
|
+
}
|
|
114
|
+
async DescribeLogstashInstances(req, cb) {
|
|
115
|
+
return this.request("DescribeLogstashInstances", req, cb);
|
|
116
|
+
}
|
|
117
|
+
async DescribeServerlessInstances(req, cb) {
|
|
118
|
+
return this.request("DescribeServerlessInstances", req, cb);
|
|
119
|
+
}
|
|
120
|
+
async DescribeViews(req, cb) {
|
|
121
|
+
return this.request("DescribeViews", req, cb);
|
|
122
|
+
}
|
|
123
|
+
async CreateInstance(req, cb) {
|
|
124
|
+
return this.request("CreateInstance", req, cb);
|
|
125
|
+
}
|
|
126
|
+
async UpdateServerlessInstance(req, cb) {
|
|
127
|
+
return this.request("UpdateServerlessInstance", req, cb);
|
|
128
|
+
}
|
|
129
|
+
async UpgradeInstance(req, cb) {
|
|
130
|
+
return this.request("UpgradeInstance", req, cb);
|
|
131
|
+
}
|
|
132
|
+
async DescribeDiagnose(req, cb) {
|
|
133
|
+
return this.request("DescribeDiagnose", req, cb);
|
|
134
|
+
}
|
|
135
|
+
async DeleteServerlessSpaceUser(req, cb) {
|
|
136
|
+
return this.request("DeleteServerlessSpaceUser", req, cb);
|
|
137
|
+
}
|
|
138
|
+
async DeleteLogstashPipelines(req, cb) {
|
|
139
|
+
return this.request("DeleteLogstashPipelines", req, cb);
|
|
140
|
+
}
|
|
141
|
+
async DescribeInstances(req, cb) {
|
|
142
|
+
return this.request("DescribeInstances", req, cb);
|
|
143
|
+
}
|
|
144
|
+
async UpdateServerlessSpace(req, cb) {
|
|
145
|
+
return this.request("UpdateServerlessSpace", req, cb);
|
|
146
|
+
}
|
|
147
|
+
async DeleteIndex(req, cb) {
|
|
148
|
+
return this.request("DeleteIndex", req, cb);
|
|
149
|
+
}
|
|
150
|
+
async RestartLogstashInstance(req, cb) {
|
|
151
|
+
return this.request("RestartLogstashInstance", req, cb);
|
|
152
|
+
}
|
|
153
|
+
async CreateClusterSnapshot(req, cb) {
|
|
154
|
+
return this.request("CreateClusterSnapshot", req, cb);
|
|
155
|
+
}
|
|
156
|
+
async DeleteClusterSnapshot(req, cb) {
|
|
157
|
+
return this.request("DeleteClusterSnapshot", req, cb);
|
|
158
|
+
}
|
|
159
|
+
async DescribeLogstashInstanceLogs(req, cb) {
|
|
160
|
+
return this.request("DescribeLogstashInstanceLogs", req, cb);
|
|
161
|
+
}
|
|
162
|
+
async RestartNodes(req, cb) {
|
|
163
|
+
return this.request("RestartNodes", req, cb);
|
|
164
|
+
}
|
|
165
|
+
async DescribeServerlessSpaceUser(req, cb) {
|
|
166
|
+
return this.request("DescribeServerlessSpaceUser", req, cb);
|
|
167
|
+
}
|
|
168
|
+
async SaveAndDeployLogstashPipeline(req, cb) {
|
|
169
|
+
return this.request("SaveAndDeployLogstashPipeline", req, cb);
|
|
170
|
+
}
|
|
171
|
+
async UpdateDictionaries(req, cb) {
|
|
172
|
+
return this.request("UpdateDictionaries", req, cb);
|
|
173
|
+
}
|
|
174
|
+
async UpgradeLicense(req, cb) {
|
|
175
|
+
return this.request("UpgradeLicense", req, cb);
|
|
176
|
+
}
|
|
177
|
+
async DescribeInstancePluginList(req, cb) {
|
|
178
|
+
return this.request("DescribeInstancePluginList", req, cb);
|
|
179
|
+
}
|
|
180
|
+
async DescribeIndexMeta(req, cb) {
|
|
181
|
+
return this.request("DescribeIndexMeta", req, cb);
|
|
182
|
+
}
|
|
183
|
+
async DescribeLogstashInstanceOperations(req, cb) {
|
|
184
|
+
return this.request("DescribeLogstashInstanceOperations", req, cb);
|
|
185
|
+
}
|
|
186
|
+
async InquirePriceRenewInstance(req, cb) {
|
|
187
|
+
return this.request("InquirePriceRenewInstance", req, cb);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
3
|
+
constructor(clientConfig) {
|
|
4
|
+
super("es.tencentcloudapi.com", "2025-01-01", clientConfig);
|
|
5
|
+
}
|
|
6
|
+
async ChunkDocumentAsync(req, cb) {
|
|
7
|
+
return this.request("ChunkDocumentAsync", req, cb);
|
|
8
|
+
}
|
|
9
|
+
async GetDocumentChunkResult(req, cb) {
|
|
10
|
+
return this.request("GetDocumentChunkResult", req, cb);
|
|
11
|
+
}
|
|
12
|
+
async ParseDocumentAsync(req, cb) {
|
|
13
|
+
return this.request("ParseDocumentAsync", req, cb);
|
|
14
|
+
}
|
|
15
|
+
async GetDocumentParseResult(req, cb) {
|
|
16
|
+
return this.request("GetDocumentParseResult", req, cb);
|
|
17
|
+
}
|
|
18
|
+
async GetTextEmbedding(req, cb) {
|
|
19
|
+
return this.request("GetTextEmbedding", req, cb);
|
|
20
|
+
}
|
|
21
|
+
async ParseDocument(req, cb) {
|
|
22
|
+
return this.request("ParseDocument", req, cb);
|
|
23
|
+
}
|
|
24
|
+
async ChatCompletions(req, cb) {
|
|
25
|
+
return this.request("ChatCompletions", req, cb);
|
|
26
|
+
}
|
|
27
|
+
async ChunkDocument(req, cb) {
|
|
28
|
+
return this.request("ChunkDocument", req, cb);
|
|
29
|
+
}
|
|
30
|
+
async RunRerank(req, cb) {
|
|
31
|
+
return this.request("RunRerank", req, cb);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { es } from "./es";
|
package/package.json
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-es",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "tencentcloud/index.js",
|
|
3
|
+
"version": "4.1.16",
|
|
4
|
+
"description": "腾讯云 API NODEJS SDK",
|
|
5
|
+
"main": "./tencentcloud/index.js",
|
|
6
|
+
"module": "./es/index.js",
|
|
7
|
+
"types": "./tencentcloud/index.d.ts",
|
|
6
8
|
"scripts": {
|
|
7
9
|
"test": "mocha -t 10000",
|
|
8
|
-
"build": "
|
|
9
|
-
"
|
|
10
|
+
"build": "concurrently 'npm:build:cjs' 'npm:build:es'",
|
|
11
|
+
"build:cjs": "tsc -p tsconfig.json",
|
|
12
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
13
|
+
"build:slim": "node ./scripts/build_slim.js",
|
|
14
|
+
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
|
15
|
+
"clean": "rimraf tencentcloud es"
|
|
10
16
|
},
|
|
11
17
|
"engines": {
|
|
12
18
|
"node": ">=10"
|
|
13
19
|
},
|
|
20
|
+
"files": [
|
|
21
|
+
"tencentcloud",
|
|
22
|
+
"es"
|
|
23
|
+
],
|
|
14
24
|
"keywords": [
|
|
15
25
|
"tencentcloudapi",
|
|
16
26
|
"tencentcloud",
|
|
@@ -22,7 +32,7 @@
|
|
|
22
32
|
"author": "tencentcloudapi",
|
|
23
33
|
"license": "Apache-2.0",
|
|
24
34
|
"dependencies": {
|
|
25
|
-
"tencentcloud-sdk-nodejs-common": "
|
|
35
|
+
"tencentcloud-sdk-nodejs-common": "*",
|
|
26
36
|
"tslib": "1.13.0"
|
|
27
37
|
},
|
|
28
38
|
"directories": {
|
|
@@ -35,14 +45,22 @@
|
|
|
35
45
|
},
|
|
36
46
|
"devDependencies": {
|
|
37
47
|
"@types/form-data": "^2.5.0",
|
|
48
|
+
"@types/json-bigint": "^1.0.1",
|
|
38
49
|
"@types/node": "^14.0.26",
|
|
39
50
|
"@types/node-fetch": "^2.5.7",
|
|
51
|
+
"@types/uuid": "^9.0.8",
|
|
40
52
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
41
53
|
"@typescript-eslint/parser": "^2.34.0",
|
|
54
|
+
"babel-eslint": "^10.0.2",
|
|
42
55
|
"chai": "^4.2.0",
|
|
56
|
+
"concurrently": "^6.5.1",
|
|
57
|
+
"esbuild": "^0.25.0",
|
|
43
58
|
"eslint": "^6.8.0",
|
|
44
|
-
"
|
|
59
|
+
"eslint-plugin-react": "^7.17.0",
|
|
60
|
+
"mocha": "^8.4.0",
|
|
61
|
+
"prettier": "^2.3.0",
|
|
62
|
+
"rimraf": "^5.0.10",
|
|
45
63
|
"ts-node": "^8.10.2",
|
|
46
64
|
"typescript": "^3.9.7"
|
|
47
65
|
}
|
|
48
|
-
}
|
|
66
|
+
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const es: {
|
|
2
|
+
v20250101: {
|
|
3
|
+
Client: typeof import("./v20250101/es_client").Client;
|
|
4
|
+
Models: typeof import("./v20250101/es_models");
|
|
5
|
+
};
|
|
2
6
|
v20180416: {
|
|
3
7
|
Client: typeof import("./v20180416/es_client").Client;
|
|
4
8
|
Models: typeof import("./v20180416/es_models");
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.es = void 0;
|
|
4
|
+
const v20250101_1 = require("./v20250101");
|
|
4
5
|
const v20180416_1 = require("./v20180416");
|
|
5
6
|
exports.es = {
|
|
7
|
+
v20250101: v20250101_1.v20250101,
|
|
6
8
|
v20180416: v20180416_1.v20180416,
|
|
7
9
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Client = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
6
|
/*
|
|
6
7
|
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
@@ -18,7 +19,7 @@ exports.Client = void 0;
|
|
|
18
19
|
* specific language governing permissions and limitations
|
|
19
20
|
* under the License.
|
|
20
21
|
*/
|
|
21
|
-
const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
|
|
22
|
+
const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
|
|
22
23
|
/**
|
|
23
24
|
* es client
|
|
24
25
|
* @class
|