tencentcloud-sdk-nodejs 4.1.121 → 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 +6 -4
- package/es/common/credential.js +21 -21
- package/es/common/index.js +1 -1
- package/es/common/sdk_version.js +1 -1
- package/es/services/cdn/v20180606/cdn_client.js +2 -11
- package/es/services/lke/v20231130/lke_client.js +0 -6
- package/es/services/mps/v20190612/mps_client.js +16 -4
- package/package.json +1 -1
- package/tencentcloud/common/credential.js +20 -20
- package/tencentcloud/common/index.d.ts +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/ai3d/v20250513/ai3d_client.d.ts +2 -2
- package/tencentcloud/services/ai3d/v20250513/ai3d_client.js +2 -2
- package/tencentcloud/services/ai3d/v20250513/ai3d_models.d.ts +1 -1
- package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +3 -20
- package/tencentcloud/services/cdn/v20180606/cdn_client.js +3 -26
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +95 -244
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +1 -1
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +6 -6
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +13 -22
- package/tencentcloud/services/iai/v20180301/iai_models.d.ts +45 -45
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +10 -2
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +12 -3
- package/tencentcloud/services/lke/v20231130/lke_client.d.ts +1 -9
- package/tencentcloud/services/lke/v20231130/lke_client.js +0 -12
- package/tencentcloud/services/lke/v20231130/lke_models.d.ts +5204 -5256
- package/tencentcloud/services/lkeap/v20240522/lkeap_models.d.ts +45 -12
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +1 -1
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +1 -1
- package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +43 -29
- package/tencentcloud/services/mps/v20190612/mps_client.d.ts +21 -5
- package/tencentcloud/services/mps/v20190612/mps_client.js +30 -6
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +339 -130
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +2 -0
- package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +8 -0
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +4 -0
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +31 -6
- package/tencentcloud/services/tse/v20201207/tse_client.d.ts +1 -1
- package/tencentcloud/services/tse/v20201207/tse_client.js +1 -1
- package/tencentcloud/services/tse/v20201207/tse_models.d.ts +24 -0
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +1 -1
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +1 -1
- package/tencentcloud/services/waf/v20180125/waf_client.js +1 -1
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +300 -33
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
|
|
package/es/common/credential.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import fs from "fs";
|
2
2
|
import path from "path";
|
3
3
|
import { homedir } from "os";
|
4
|
-
import { parse } from
|
4
|
+
import { parse } from "ini";
|
5
5
|
import { CommonClient } from "./common_client";
|
6
6
|
import CvmRoleCredential from "./cvm_role_credential";
|
7
7
|
const EXPIRE_BUFFER = 30 * 1000;
|
@@ -22,19 +22,19 @@ export class EnvironmentVariableCredential {
|
|
22
22
|
}
|
23
23
|
export class ProfileCredential {
|
24
24
|
async getCredential() {
|
25
|
-
let filePath =
|
25
|
+
let filePath = "";
|
26
26
|
const userHome = homedir();
|
27
27
|
const userCredentialsPath = path.join(userHome, ".tencentcloud", "credentials");
|
28
28
|
if (fs.existsSync(userCredentialsPath)) {
|
29
29
|
filePath = userCredentialsPath;
|
30
30
|
}
|
31
31
|
else {
|
32
|
-
filePath =
|
32
|
+
filePath = "/etc/tencentcloud/credentials";
|
33
33
|
}
|
34
34
|
if (filePath) {
|
35
35
|
try {
|
36
36
|
const content = fs.readFileSync(filePath, "utf8");
|
37
|
-
const { default: { secret_id, secret_key, token } } = parse(content);
|
37
|
+
const { default: { secret_id, secret_key, token }, } = parse(content);
|
38
38
|
if (secret_id && secret_key) {
|
39
39
|
return new BasicCredential(secret_id, secret_key, token);
|
40
40
|
}
|
@@ -42,24 +42,24 @@ export class ProfileCredential {
|
|
42
42
|
catch (error) {
|
43
43
|
}
|
44
44
|
}
|
45
|
-
return new BasicCredential(
|
45
|
+
return new BasicCredential("", "");
|
46
46
|
}
|
47
47
|
}
|
48
48
|
export class STSCredential {
|
49
49
|
constructor(clientConfig, assumeRoleParams) {
|
50
50
|
this.clientConfig = clientConfig;
|
51
51
|
this.assumeRoleParams = assumeRoleParams;
|
52
|
-
this.endpoint =
|
53
|
-
this.version =
|
54
|
-
this.action =
|
55
|
-
this.region =
|
52
|
+
this.endpoint = "sts.tencentcloudapi.com";
|
53
|
+
this.version = "2018-08-13";
|
54
|
+
this.action = "AssumeRole";
|
55
|
+
this.region = "ap-guangzhou";
|
56
56
|
}
|
57
57
|
async getCredentialWithStsAssumeRole() {
|
58
58
|
const { endpoint, version, action, region, clientConfig, assumeRoleParams } = this;
|
59
59
|
try {
|
60
60
|
const client = new CommonClient(endpoint, version, {
|
61
61
|
region,
|
62
|
-
...clientConfig
|
62
|
+
...clientConfig,
|
63
63
|
});
|
64
64
|
const result = await client.request(action, assumeRoleParams);
|
65
65
|
return {
|
@@ -93,10 +93,10 @@ export class STSCredential {
|
|
93
93
|
export { default as CvmRoleCredential } from "./cvm_role_credential";
|
94
94
|
export class OIDCRoleArnCredential {
|
95
95
|
constructor(clientConfig, assumeRoleWithWebIdentityParams) {
|
96
|
-
this.endpoint =
|
97
|
-
this.version =
|
98
|
-
this.action =
|
99
|
-
this.defaultSessionName =
|
96
|
+
this.endpoint = "sts.tencentcloudapi.com";
|
97
|
+
this.version = "2018-08-13";
|
98
|
+
this.action = "AssumeRoleWithWebIdentity";
|
99
|
+
this.defaultSessionName = "tencentcloud-node-sdk-";
|
100
100
|
this.isTke = false;
|
101
101
|
this.expirationReservationTime = 600;
|
102
102
|
if (clientConfig && assumeRoleWithWebIdentityParams) {
|
@@ -106,7 +106,7 @@ export class OIDCRoleArnCredential {
|
|
106
106
|
else {
|
107
107
|
this.isTke = true;
|
108
108
|
this.clientConfig = {
|
109
|
-
credential: new BasicCredential(
|
109
|
+
credential: new BasicCredential("", ""),
|
110
110
|
...clientConfig,
|
111
111
|
};
|
112
112
|
}
|
@@ -114,15 +114,15 @@ export class OIDCRoleArnCredential {
|
|
114
114
|
initFromTke() {
|
115
115
|
const region = process.env.TKE_REGION;
|
116
116
|
if (!region) {
|
117
|
-
throw new Error(
|
117
|
+
throw new Error("env TKE_REGION not exist");
|
118
118
|
}
|
119
119
|
const providerId = process.env.TKE_PROVIDER_ID;
|
120
120
|
if (!providerId) {
|
121
|
-
throw new Error(
|
121
|
+
throw new Error("env TKE_PROVIDER_ID not exist");
|
122
122
|
}
|
123
123
|
const tokenFile = process.env.TKE_WEB_IDENTITY_TOKEN_FILE;
|
124
124
|
if (!tokenFile) {
|
125
|
-
throw new Error(
|
125
|
+
throw new Error("env TKE_WEB_IDENTITY_TOKEN_FILE not exist");
|
126
126
|
}
|
127
127
|
let wbIdentityToken;
|
128
128
|
try {
|
@@ -133,7 +133,7 @@ export class OIDCRoleArnCredential {
|
|
133
133
|
}
|
134
134
|
const roleArn = process.env.TKE_ROLE_ARN;
|
135
135
|
if (!roleArn) {
|
136
|
-
throw new Error(
|
136
|
+
throw new Error("env TKE_ROLE_ARN not exist");
|
137
137
|
}
|
138
138
|
this.clientConfig.region = region;
|
139
139
|
this.assumeRoleWithWebIdentityParams = {
|
@@ -188,7 +188,7 @@ export class DefaultCredentialProvider {
|
|
188
188
|
new EnvironmentVariableCredential(),
|
189
189
|
new ProfileCredential(),
|
190
190
|
new CvmRoleCredential(),
|
191
|
-
new OIDCRoleArnCredential()
|
191
|
+
new OIDCRoleArnCredential(),
|
192
192
|
];
|
193
193
|
}
|
194
194
|
async getCredential() {
|
@@ -204,6 +204,6 @@ export class DefaultCredentialProvider {
|
|
204
204
|
continue;
|
205
205
|
}
|
206
206
|
}
|
207
|
-
return new BasicCredential(
|
207
|
+
return new BasicCredential("", "");
|
208
208
|
}
|
209
209
|
}
|
package/es/common/index.js
CHANGED
package/es/common/sdk_version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const sdkVersion = "4.1.
|
1
|
+
export const sdkVersion = "4.1.123";
|
@@ -66,8 +66,8 @@ export class Client extends AbstractClient {
|
|
66
66
|
async DescribeCertDomains(req, cb) {
|
67
67
|
return this.request("DescribeCertDomains", req, cb);
|
68
68
|
}
|
69
|
-
async
|
70
|
-
return this.request("
|
69
|
+
async ListTopClsLogData(req, cb) {
|
70
|
+
return this.request("ListTopClsLogData", req, cb);
|
71
71
|
}
|
72
72
|
async ListDiagnoseReport(req, cb) {
|
73
73
|
return this.request("ListDiagnoseReport", req, cb);
|
@@ -144,9 +144,6 @@ export class Client extends AbstractClient {
|
|
144
144
|
async ListClsLogTopics(req, cb) {
|
145
145
|
return this.request("ListClsLogTopics", req, cb);
|
146
146
|
}
|
147
|
-
async GetDisableRecords(req, cb) {
|
148
|
-
return this.request("GetDisableRecords", req, cb);
|
149
|
-
}
|
150
147
|
async DeleteClsLogTopic(req, cb) {
|
151
148
|
return this.request("DeleteClsLogTopic", req, cb);
|
152
149
|
}
|
@@ -171,10 +168,4 @@ export class Client extends AbstractClient {
|
|
171
168
|
async UpdatePayType(req, cb) {
|
172
169
|
return this.request("UpdatePayType", req, cb);
|
173
170
|
}
|
174
|
-
async EnableCaches(req, cb) {
|
175
|
-
return this.request("EnableCaches", req, cb);
|
176
|
-
}
|
177
|
-
async ListTopClsLogData(req, cb) {
|
178
|
-
return this.request("ListTopClsLogData", req, cb);
|
179
|
-
}
|
180
171
|
}
|
@@ -33,9 +33,6 @@ export class Client extends AbstractClient {
|
|
33
33
|
async StopWorkflowRun(req, cb) {
|
34
34
|
return this.request("StopWorkflowRun", req, cb);
|
35
35
|
}
|
36
|
-
async ModifyAgent(req, cb) {
|
37
|
-
return this.request("ModifyAgent", req, cb);
|
38
|
-
}
|
39
36
|
async CreateAttributeLabel(req, cb) {
|
40
37
|
return this.request("CreateAttributeLabel", req, cb);
|
41
38
|
}
|
@@ -204,9 +201,6 @@ export class Client extends AbstractClient {
|
|
204
201
|
async ExportQAList(req, cb) {
|
205
202
|
return this.request("ExportQAList", req, cb);
|
206
203
|
}
|
207
|
-
async CreateAgent(req, cb) {
|
208
|
-
return this.request("CreateAgent", req, cb);
|
209
|
-
}
|
210
204
|
async UploadAttributeLabel(req, cb) {
|
211
205
|
return this.request("UploadAttributeLabel", req, cb);
|
212
206
|
}
|
@@ -126,6 +126,9 @@ export class Client extends AbstractClient {
|
|
126
126
|
async CreateContentReviewTemplate(req, cb) {
|
127
127
|
return this.request("CreateContentReviewTemplate", req, cb);
|
128
128
|
}
|
129
|
+
async ModifyStreamLinkOutputInfo(req, cb) {
|
130
|
+
return this.request("ModifyStreamLinkOutputInfo", req, cb);
|
131
|
+
}
|
129
132
|
async DescribeGroupAttachFlowsById(req, cb) {
|
130
133
|
return this.request("DescribeGroupAttachFlowsById", req, cb);
|
131
134
|
}
|
@@ -183,6 +186,12 @@ export class Client extends AbstractClient {
|
|
183
186
|
async ModifyStreamLinkInput(req, cb) {
|
184
187
|
return this.request("ModifyStreamLinkInput", req, cb);
|
185
188
|
}
|
189
|
+
async DescribeSmartEraseTemplates(req, cb) {
|
190
|
+
return this.request("DescribeSmartEraseTemplates", req, cb);
|
191
|
+
}
|
192
|
+
async ModifySmartEraseTemplate(req, cb) {
|
193
|
+
return this.request("ModifySmartEraseTemplate", req, cb);
|
194
|
+
}
|
186
195
|
async CreateSmartSubtitleTemplate(req, cb) {
|
187
196
|
return this.request("CreateSmartSubtitleTemplate", req, cb);
|
188
197
|
}
|
@@ -219,8 +228,8 @@ export class Client extends AbstractClient {
|
|
219
228
|
async DescribeSmartSubtitleTemplates(req, cb) {
|
220
229
|
return this.request("DescribeSmartSubtitleTemplates", req, cb);
|
221
230
|
}
|
222
|
-
async
|
223
|
-
return this.request("
|
231
|
+
async ModifyAIRecognitionTemplate(req, cb) {
|
232
|
+
return this.request("ModifyAIRecognitionTemplate", req, cb);
|
224
233
|
}
|
225
234
|
async DescribeSnapshotByTimeOffsetTemplates(req, cb) {
|
226
235
|
return this.request("DescribeSnapshotByTimeOffsetTemplates", req, cb);
|
@@ -378,6 +387,9 @@ export class Client extends AbstractClient {
|
|
378
387
|
async DisassociateSecurityGroup(req, cb) {
|
379
388
|
return this.request("DisassociateSecurityGroup", req, cb);
|
380
389
|
}
|
390
|
+
async CreateSmartEraseTemplate(req, cb) {
|
391
|
+
return this.request("CreateSmartEraseTemplate", req, cb);
|
392
|
+
}
|
381
393
|
async ModifyContentReviewTemplate(req, cb) {
|
382
394
|
return this.request("ModifyContentReviewTemplate", req, cb);
|
383
395
|
}
|
@@ -387,8 +399,8 @@ export class Client extends AbstractClient {
|
|
387
399
|
async BatchStopStreamLinkFlow(req, cb) {
|
388
400
|
return this.request("BatchStopStreamLinkFlow", req, cb);
|
389
401
|
}
|
390
|
-
async
|
391
|
-
return this.request("
|
402
|
+
async DeleteSmartEraseTemplate(req, cb) {
|
403
|
+
return this.request("DeleteSmartEraseTemplate", req, cb);
|
392
404
|
}
|
393
405
|
async DeleteStreamLinkEvent(req, cb) {
|
394
406
|
return this.request("DeleteStreamLinkEvent", req, cb);
|
package/package.json
CHANGED
@@ -46,7 +46,7 @@ exports.EnvironmentVariableCredential = EnvironmentVariableCredential;
|
|
46
46
|
*/
|
47
47
|
class ProfileCredential {
|
48
48
|
async getCredential() {
|
49
|
-
let filePath =
|
49
|
+
let filePath = "";
|
50
50
|
// Try user home directory first
|
51
51
|
const userHome = (0, os_1.homedir)();
|
52
52
|
const userCredentialsPath = path_1.default.join(userHome, ".tencentcloud", "credentials");
|
@@ -55,12 +55,12 @@ class ProfileCredential {
|
|
55
55
|
}
|
56
56
|
else {
|
57
57
|
// Try system directory as fallback
|
58
|
-
filePath =
|
58
|
+
filePath = "/etc/tencentcloud/credentials";
|
59
59
|
}
|
60
60
|
if (filePath) {
|
61
61
|
try {
|
62
62
|
const content = fs_1.default.readFileSync(filePath, "utf8");
|
63
|
-
const { default: { secret_id, secret_key, token } } = (0, ini_1.parse)(content);
|
63
|
+
const { default: { secret_id, secret_key, token }, } = (0, ini_1.parse)(content);
|
64
64
|
if (secret_id && secret_key) {
|
65
65
|
return new BasicCredential(secret_id, secret_key, token);
|
66
66
|
}
|
@@ -69,7 +69,7 @@ class ProfileCredential {
|
|
69
69
|
// Ignore errors when reading user credentials
|
70
70
|
}
|
71
71
|
}
|
72
|
-
return new BasicCredential(
|
72
|
+
return new BasicCredential("", "");
|
73
73
|
}
|
74
74
|
}
|
75
75
|
exports.ProfileCredential = ProfileCredential;
|
@@ -88,17 +88,17 @@ class STSCredential {
|
|
88
88
|
constructor(clientConfig, assumeRoleParams) {
|
89
89
|
this.clientConfig = clientConfig;
|
90
90
|
this.assumeRoleParams = assumeRoleParams;
|
91
|
-
this.endpoint =
|
92
|
-
this.version =
|
93
|
-
this.action =
|
94
|
-
this.region =
|
91
|
+
this.endpoint = "sts.tencentcloudapi.com";
|
92
|
+
this.version = "2018-08-13";
|
93
|
+
this.action = "AssumeRole";
|
94
|
+
this.region = "ap-guangzhou";
|
95
95
|
}
|
96
96
|
async getCredentialWithStsAssumeRole() {
|
97
97
|
const { endpoint, version, action, region, clientConfig, assumeRoleParams } = this;
|
98
98
|
try {
|
99
99
|
const client = new common_client_1.CommonClient(endpoint, version, {
|
100
100
|
region,
|
101
|
-
...clientConfig
|
101
|
+
...clientConfig,
|
102
102
|
});
|
103
103
|
const result = await client.request(action, assumeRoleParams);
|
104
104
|
return {
|
@@ -144,10 +144,10 @@ Object.defineProperty(exports, "CvmRoleCredential", { enumerable: true, get: fun
|
|
144
144
|
*/
|
145
145
|
class OIDCRoleArnCredential {
|
146
146
|
constructor(clientConfig, assumeRoleWithWebIdentityParams) {
|
147
|
-
this.endpoint =
|
148
|
-
this.version =
|
149
|
-
this.action =
|
150
|
-
this.defaultSessionName =
|
147
|
+
this.endpoint = "sts.tencentcloudapi.com";
|
148
|
+
this.version = "2018-08-13";
|
149
|
+
this.action = "AssumeRoleWithWebIdentity";
|
150
|
+
this.defaultSessionName = "tencentcloud-node-sdk-";
|
151
151
|
this.isTke = false;
|
152
152
|
this.expirationReservationTime = 600;
|
153
153
|
if (clientConfig && assumeRoleWithWebIdentityParams) {
|
@@ -157,7 +157,7 @@ class OIDCRoleArnCredential {
|
|
157
157
|
else {
|
158
158
|
this.isTke = true;
|
159
159
|
this.clientConfig = {
|
160
|
-
credential: new BasicCredential(
|
160
|
+
credential: new BasicCredential("", ""),
|
161
161
|
...clientConfig,
|
162
162
|
};
|
163
163
|
}
|
@@ -165,15 +165,15 @@ class OIDCRoleArnCredential {
|
|
165
165
|
initFromTke() {
|
166
166
|
const region = process.env.TKE_REGION;
|
167
167
|
if (!region) {
|
168
|
-
throw new Error(
|
168
|
+
throw new Error("env TKE_REGION not exist");
|
169
169
|
}
|
170
170
|
const providerId = process.env.TKE_PROVIDER_ID;
|
171
171
|
if (!providerId) {
|
172
|
-
throw new Error(
|
172
|
+
throw new Error("env TKE_PROVIDER_ID not exist");
|
173
173
|
}
|
174
174
|
const tokenFile = process.env.TKE_WEB_IDENTITY_TOKEN_FILE;
|
175
175
|
if (!tokenFile) {
|
176
|
-
throw new Error(
|
176
|
+
throw new Error("env TKE_WEB_IDENTITY_TOKEN_FILE not exist");
|
177
177
|
}
|
178
178
|
let wbIdentityToken;
|
179
179
|
try {
|
@@ -184,7 +184,7 @@ class OIDCRoleArnCredential {
|
|
184
184
|
}
|
185
185
|
const roleArn = process.env.TKE_ROLE_ARN;
|
186
186
|
if (!roleArn) {
|
187
|
-
throw new Error(
|
187
|
+
throw new Error("env TKE_ROLE_ARN not exist");
|
188
188
|
}
|
189
189
|
this.clientConfig.region = region;
|
190
190
|
this.assumeRoleWithWebIdentityParams = {
|
@@ -244,7 +244,7 @@ class DefaultCredentialProvider {
|
|
244
244
|
new EnvironmentVariableCredential(),
|
245
245
|
new ProfileCredential(),
|
246
246
|
new cvm_role_credential_1.default(),
|
247
|
-
new OIDCRoleArnCredential()
|
247
|
+
new OIDCRoleArnCredential(),
|
248
248
|
];
|
249
249
|
}
|
250
250
|
async getCredential() {
|
@@ -261,7 +261,7 @@ class DefaultCredentialProvider {
|
|
261
261
|
continue;
|
262
262
|
}
|
263
263
|
}
|
264
|
-
return new BasicCredential(
|
264
|
+
return new BasicCredential("", "");
|
265
265
|
}
|
266
266
|
}
|
267
267
|
exports.DefaultCredentialProvider = DefaultCredentialProvider;
|
@@ -1 +1 @@
|
|
1
|
-
export declare const sdkVersion = "4.1.
|
1
|
+
export declare const sdkVersion = "4.1.123";
|
@@ -14,7 +14,7 @@ export declare class Client extends AbstractClient {
|
|
14
14
|
QueryHunyuanTo3DJob(req: QueryHunyuanTo3DJobRequest, cb?: (error: string, rep: QueryHunyuanTo3DJobResponse) => void): Promise<QueryHunyuanTo3DJobResponse>;
|
15
15
|
/**
|
16
16
|
* 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
17
|
-
默认提供3个并发,代表最多能同时处理
|
17
|
+
默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
18
18
|
*/
|
19
19
|
SubmitHunyuanTo3DProJob(req: SubmitHunyuanTo3DProJobRequest, cb?: (error: string, rep: SubmitHunyuanTo3DProJobResponse) => void): Promise<SubmitHunyuanTo3DProJobResponse>;
|
20
20
|
/**
|
@@ -29,7 +29,7 @@ export declare class Client extends AbstractClient {
|
|
29
29
|
SubmitHunyuanTo3DJob(req: SubmitHunyuanTo3DJobRequest, cb?: (error: string, rep: SubmitHunyuanTo3DJobResponse) => void): Promise<SubmitHunyuanTo3DJobResponse>;
|
30
30
|
/**
|
31
31
|
* 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
32
|
-
默认提供3个并发,代表最多能同时处理
|
32
|
+
默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
33
33
|
*/
|
34
34
|
QueryHunyuanTo3DProJob(req: QueryHunyuanTo3DProJobRequest, cb?: (error: string, rep: QueryHunyuanTo3DProJobResponse) => void): Promise<QueryHunyuanTo3DProJobResponse>;
|
35
35
|
/**
|
@@ -36,7 +36,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
36
36
|
}
|
37
37
|
/**
|
38
38
|
* 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
39
|
-
默认提供3个并发,代表最多能同时处理
|
39
|
+
默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
40
40
|
*/
|
41
41
|
async SubmitHunyuanTo3DProJob(req, cb) {
|
42
42
|
return this.request("SubmitHunyuanTo3DProJob", req, cb);
|
@@ -57,7 +57,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
57
57
|
}
|
58
58
|
/**
|
59
59
|
* 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
60
|
-
默认提供3个并发,代表最多能同时处理
|
60
|
+
默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
61
61
|
*/
|
62
62
|
async QueryHunyuanTo3DProJob(req, cb) {
|
63
63
|
return this.request("QueryHunyuanTo3DProJob", req, cb);
|
@@ -131,7 +131,7 @@ export interface SubmitHunyuanTo3DProJobRequest {
|
|
131
131
|
Normal:可生成带纹理的几何模型。
|
132
132
|
LowPoly:可生成智能减面后的模型。
|
133
133
|
Geometry:可生成不带纹理的几何模型(白模),选择此任务时,EnablePBR参数不生效。
|
134
|
-
Sketch
|
134
|
+
Sketch:可输入草图或线稿图生成模型,此模式下prompt和ImageUrl/ImageBase64可一起输入。
|
135
135
|
*/
|
136
136
|
GenerateType?: string;
|
137
137
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
3
|
-
import { DescribeCdnDomainLogsResponse, DescribePushQuotaResponse, DescribePurgeQuotaResponse, DescribeCdnDomainLogsRequest, CreateClsLogTopicResponse, PurgePathCacheResponse,
|
3
|
+
import { DescribeCdnDomainLogsResponse, DescribePushQuotaResponse, DescribePurgeQuotaResponse, DescribeCdnDomainLogsRequest, CreateClsLogTopicResponse, PurgePathCacheResponse, DescribeTopDataRequest, DescribePurgeQuotaRequest, ModifyPurgeFetchTaskStatusRequest, DescribeCdnDataResponse, EnableClsLogTopicRequest, UpdateImageConfigResponse, DescribeCdnOriginIpResponse, DescribePayTypeResponse, ListTopDataRequest, ListClsTopicDomainsRequest, DescribeDomainsResponse, DescribePayTypeRequest, UpdateImageConfigRequest, DescribeBillingDataRequest, DeleteClsLogTopicRequest, DescribeDistrictIspDataResponse, DescribeCdnOriginIpRequest, DescribeDomainsConfigResponse, DescribeDiagnoseReportRequest, DescribeReportDataResponse, DisableClsLogTopicRequest, ListClsTopicDomainsResponse, DescribeCdnIpRequest, DescribeHttpsPackagesRequest, DescribeTrafficPackagesRequest, DescribeIpVisitResponse, EnableClsLogTopicResponse, ListClsLogTopicsResponse, AddCdnDomainRequest, UpdateDomainConfigRequest, DescribeCertDomainsRequest, DescribeDomainsConfigRequest, DescribeHttpsPackagesResponse, DescribeCertDomainsResponse, DuplicateDomainConfigRequest, DescribePushTasksResponse, AddCdnDomainResponse, DescribeEdgePackTaskStatusResponse, AddCLSTopicDomainsResponse, ModifyPurgeFetchTaskStatusResponse, DisableClsLogTopicResponse, DescribeIpStatusRequest, DuplicateDomainConfigResponse, VerifyDomainRecordResponse, ManageClsTopicDomainsRequest, AddCLSTopicDomainsRequest, ListDiagnoseReportRequest, DescribeOriginDataRequest, SearchClsLogResponse, PushUrlsCacheRequest, DescribeReportDataRequest, DescribePushTasksRequest, DescribeUrlViolationsRequest, CreateDiagnoseUrlResponse, CreateClsLogTopicRequest, UpdatePayTypeResponse, ListTopClsLogDataRequest, CreateVerifyRecordResponse, StopCdnDomainRequest, DescribeMapInfoResponse, DescribeTrafficPackagesResponse, DescribeMapInfoRequest, DescribeIpVisitRequest, DescribeEdgePackTaskStatusRequest, CreateDiagnoseUrlRequest, PurgeUrlsCacheResponse, DeleteClsLogTopicResponse, DescribeBillingDataResponse, DescribeImageConfigRequest, DescribeCdnIpResponse, DescribeIpStatusResponse, DescribeDistrictIspDataRequest, ListTopClsLogDataResponse, ListClsLogTopicsRequest, CreateVerifyRecordRequest, PurgePathCacheRequest, DescribeDiagnoseReportResponse, ModifyDomainConfigResponse, PurgeUrlsCacheRequest, StartCdnDomainRequest, DeleteCdnDomainRequest, CreateEdgePackTaskResponse, StartCdnDomainResponse, DescribePushQuotaRequest, DescribePurgeTasksRequest, PushUrlsCacheResponse, ListTopDataResponse, UpdateDomainConfigResponse, ListDiagnoseReportResponse, SearchClsLogRequest, ManageClsTopicDomainsResponse, ModifyDomainConfigRequest, DescribeUrlViolationsResponse, UpdatePayTypeRequest, DescribePurgeTasksResponse, DescribeOriginDataResponse, DeleteCdnDomainResponse, DescribeCdnDataRequest, DescribeImageConfigResponse, VerifyDomainRecordRequest, DescribeTopDataResponse, DescribeDomainsRequest, CreateEdgePackTaskRequest, StopCdnDomainResponse } from "./cdn_models";
|
4
4
|
/**
|
5
5
|
* cdn client
|
6
6
|
* @class
|
@@ -121,10 +121,9 @@ CreateDiagnoseUrl 用于添加域名诊断任务URL。
|
|
121
121
|
*/
|
122
122
|
DescribeCertDomains(req: DescribeCertDomainsRequest, cb?: (error: string, rep: DescribeCertDomainsResponse) => void): Promise<DescribeCertDomainsResponse>;
|
123
123
|
/**
|
124
|
-
*
|
125
|
-
DisableCaches 用于禁用 CDN 上指定 URL 的访问,禁用完成后,中国境内访问会直接返回 403。
|
124
|
+
* 通过CLS日志计算Top信息。支持近7天的日志数据。
|
126
125
|
*/
|
127
|
-
|
126
|
+
ListTopClsLogData(req: ListTopClsLogDataRequest, cb?: (error: string, rep: ListTopClsLogDataResponse) => void): Promise<ListTopClsLogDataResponse>;
|
128
127
|
/**
|
129
128
|
* 以上诊断报告, 域名版本管理相关接口功能均废弃, 已确认现网0调用, 申请预下线,(预下线不会影响调用, 只会在接口中添加提示信息, 正式下线仍需人工确认)
|
130
129
|
|
@@ -267,13 +266,6 @@ DescribeDiagnoseReport 用于获取指定报告id的内容。
|
|
267
266
|
* ListClsLogTopics 用于显示日志主题列表。注意:一个日志集下至多含10个日志主题。
|
268
267
|
*/
|
269
268
|
ListClsLogTopics(req: ListClsLogTopicsRequest, cb?: (error: string, rep: ListClsLogTopicsResponse) => void): Promise<ListClsLogTopicsResponse>;
|
270
|
-
/**
|
271
|
-
* 以上诊断报告, 域名版本管理相关接口功能均废弃, 已确认现网0调用, 申请预下线,(预下线不会影响调用, 只会在接口中添加提示信息, 正式下线仍需人工确认)
|
272
|
-
|
273
|
-
### <font color=red>**该接口已废弃** </font><br>
|
274
|
-
GetDisableRecords 用于查询资源禁用历史,及 URL 当前状态。
|
275
|
-
*/
|
276
|
-
GetDisableRecords(req: GetDisableRecordsRequest, cb?: (error: string, rep: GetDisableRecordsResponse) => void): Promise<GetDisableRecordsResponse>;
|
277
269
|
/**
|
278
270
|
* DeleteClsLogTopic 用于删除日志主题。注意:删除后,所有该日志主题下绑定域名的日志将不再继续投递至该主题,已经投递的日志将会被全部清空。生效时间约为 5~15 分钟。
|
279
271
|
*/
|
@@ -308,13 +300,4 @@ GetDisableRecords 用于查询资源禁用历史,及 URL 当前状态。
|
|
308
300
|
* 本接口(UpdatePayType)用于修改账号计费类型,暂不支持月结用户或子账号修改。
|
309
301
|
*/
|
310
302
|
UpdatePayType(req: UpdatePayTypeRequest, cb?: (error: string, rep: UpdatePayTypeResponse) => void): Promise<UpdatePayTypeResponse>;
|
311
|
-
/**
|
312
|
-
* ### <font color=red>**该接口已废弃** </font><br>
|
313
|
-
EnableCaches 用于解禁手工封禁的 URL,解禁成功后,全网生效时间约 5~10 分钟。
|
314
|
-
*/
|
315
|
-
EnableCaches(req: EnableCachesRequest, cb?: (error: string, rep: EnableCachesResponse) => void): Promise<EnableCachesResponse>;
|
316
|
-
/**
|
317
|
-
* 通过CLS日志计算Top信息。支持近7天的日志数据。
|
318
|
-
*/
|
319
|
-
ListTopClsLogData(req: ListTopClsLogDataRequest, cb?: (error: string, rep: ListTopClsLogDataResponse) => void): Promise<ListTopClsLogDataResponse>;
|
320
303
|
}
|
@@ -183,11 +183,10 @@ CreateDiagnoseUrl 用于添加域名诊断任务URL。
|
|
183
183
|
return this.request("DescribeCertDomains", req, cb);
|
184
184
|
}
|
185
185
|
/**
|
186
|
-
*
|
187
|
-
DisableCaches 用于禁用 CDN 上指定 URL 的访问,禁用完成后,中国境内访问会直接返回 403。
|
186
|
+
* 通过CLS日志计算Top信息。支持近7天的日志数据。
|
188
187
|
*/
|
189
|
-
async
|
190
|
-
return this.request("
|
188
|
+
async ListTopClsLogData(req, cb) {
|
189
|
+
return this.request("ListTopClsLogData", req, cb);
|
191
190
|
}
|
192
191
|
/**
|
193
192
|
* 以上诊断报告, 域名版本管理相关接口功能均废弃, 已确认现网0调用, 申请预下线,(预下线不会影响调用, 只会在接口中添加提示信息, 正式下线仍需人工确认)
|
@@ -381,15 +380,6 @@ DescribeDiagnoseReport 用于获取指定报告id的内容。
|
|
381
380
|
async ListClsLogTopics(req, cb) {
|
382
381
|
return this.request("ListClsLogTopics", req, cb);
|
383
382
|
}
|
384
|
-
/**
|
385
|
-
* 以上诊断报告, 域名版本管理相关接口功能均废弃, 已确认现网0调用, 申请预下线,(预下线不会影响调用, 只会在接口中添加提示信息, 正式下线仍需人工确认)
|
386
|
-
|
387
|
-
### <font color=red>**该接口已废弃** </font><br>
|
388
|
-
GetDisableRecords 用于查询资源禁用历史,及 URL 当前状态。
|
389
|
-
*/
|
390
|
-
async GetDisableRecords(req, cb) {
|
391
|
-
return this.request("GetDisableRecords", req, cb);
|
392
|
-
}
|
393
383
|
/**
|
394
384
|
* DeleteClsLogTopic 用于删除日志主题。注意:删除后,所有该日志主题下绑定域名的日志将不再继续投递至该主题,已经投递的日志将会被全部清空。生效时间约为 5~15 分钟。
|
395
385
|
*/
|
@@ -440,18 +430,5 @@ GetDisableRecords 用于查询资源禁用历史,及 URL 当前状态。
|
|
440
430
|
async UpdatePayType(req, cb) {
|
441
431
|
return this.request("UpdatePayType", req, cb);
|
442
432
|
}
|
443
|
-
/**
|
444
|
-
* ### <font color=red>**该接口已废弃** </font><br>
|
445
|
-
EnableCaches 用于解禁手工封禁的 URL,解禁成功后,全网生效时间约 5~10 分钟。
|
446
|
-
*/
|
447
|
-
async EnableCaches(req, cb) {
|
448
|
-
return this.request("EnableCaches", req, cb);
|
449
|
-
}
|
450
|
-
/**
|
451
|
-
* 通过CLS日志计算Top信息。支持近7天的日志数据。
|
452
|
-
*/
|
453
|
-
async ListTopClsLogData(req, cb) {
|
454
|
-
return this.request("ListTopClsLogData", req, cb);
|
455
|
-
}
|
456
433
|
}
|
457
434
|
exports.Client = Client;
|