tencentcloud-sdk-nodejs 4.1.120 → 4.1.122
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/es/common/credential.js +209 -0
- package/es/common/index.js +1 -0
- package/es/common/sdk_version.js +1 -1
- package/es/services/ccc/v20200210/ccc_client.js +5 -2
- package/es/services/cdn/v20180606/cdn_client.js +2 -11
- package/es/services/iotexplorer/v20190423/iotexplorer_client.js +5 -2
- package/es/services/lke/v20231130/lke_client.js +0 -6
- package/es/services/mps/v20190612/mps_client.js +16 -4
- package/package.json +3 -1
- package/tencentcloud/common/credential.d.ts +101 -0
- package/tencentcloud/common/credential.js +267 -0
- package/tencentcloud/common/cvm_role_credential.d.ts +2 -7
- package/tencentcloud/common/index.d.ts +1 -0
- package/tencentcloud/common/index.js +1 -0
- package/tencentcloud/common/interface.d.ts +7 -0
- 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/billing/v20180709/billing_models.d.ts +1 -1
- package/tencentcloud/services/ccc/v20200210/ccc_client.d.ts +7 -3
- package/tencentcloud/services/ccc/v20200210/ccc_client.js +9 -3
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +49 -0
- 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/cfw/v20190904/cfw_models.d.ts +45 -1
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +18 -1
- package/tencentcloud/services/ctem/v20231128/ctem_models.d.ts +116 -0
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +14 -0
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +3 -3
- package/tencentcloud/services/ess/v20201111/ess_client.js +3 -3
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +4 -4
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +1 -1
- package/tencentcloud/services/iai/v20180301/iai_client.d.ts +0 -1
- package/tencentcloud/services/iai/v20180301/iai_client.js +0 -1
- package/tencentcloud/services/iai/v20180301/iai_models.d.ts +30 -31
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +7 -3
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.js +9 -3
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +43 -0
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +12 -3
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +75 -6
- 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_client.d.ts +5 -2
- package/tencentcloud/services/lkeap/v20240522/lkeap_client.js +5 -2
- 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/organization/v20210331/organization_models.d.ts +3 -3
- package/tencentcloud/services/redis/v20180412/redis_client.d.ts +2 -2
- package/tencentcloud/services/redis/v20180412/redis_client.js +2 -2
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +8 -6
- 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 +14 -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/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 +310 -33
@@ -0,0 +1,267 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DefaultCredentialProvider = exports.OIDCRoleArnCredential = exports.CvmRoleCredential = exports.STSCredential = exports.ProfileCredential = exports.EnvironmentVariableCredential = exports.BasicCredential = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
6
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
7
|
+
const os_1 = require("os");
|
8
|
+
const ini_1 = require("ini");
|
9
|
+
const common_client_1 = require("./common_client");
|
10
|
+
const cvm_role_credential_1 = tslib_1.__importDefault(require("./cvm_role_credential"));
|
11
|
+
const EXPIRE_BUFFER = 30 * 1000;
|
12
|
+
/**
|
13
|
+
* Basic credential with secret id and secret key
|
14
|
+
*/
|
15
|
+
class BasicCredential {
|
16
|
+
constructor(secretId, secretKey, token) {
|
17
|
+
this.secretId = secretId;
|
18
|
+
this.secretKey = secretKey;
|
19
|
+
this.token = token;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
exports.BasicCredential = BasicCredential;
|
23
|
+
/**
|
24
|
+
* Environment variable credential
|
25
|
+
* Get credential from environment variables:
|
26
|
+
* - TENCENTCLOUD_SECRET_ID
|
27
|
+
* - TENCENTCLOUD_SECRET_KEY
|
28
|
+
* - TENCENTCLOUD_SESSION_TOKEN (optional)
|
29
|
+
*/
|
30
|
+
class EnvironmentVariableCredential {
|
31
|
+
async getCredential() {
|
32
|
+
const secretId = process.env.TENCENTCLOUD_SECRET_ID;
|
33
|
+
const secretKey = process.env.TENCENTCLOUD_SECRET_KEY;
|
34
|
+
const token = process.env.TENCENTCLOUD_SESSION_TOKEN;
|
35
|
+
return new BasicCredential(secretId, secretKey, token);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
exports.EnvironmentVariableCredential = EnvironmentVariableCredential;
|
39
|
+
/**
|
40
|
+
* Profile credential
|
41
|
+
* Get credential from profile file ~/.tencentcloud/credentials or /etc/tencentcloud/credentials
|
42
|
+
* example credentials file:
|
43
|
+
* [default]
|
44
|
+
* secret_id = your-secret-id
|
45
|
+
* secret_key = your-secret-key
|
46
|
+
*/
|
47
|
+
class ProfileCredential {
|
48
|
+
async getCredential() {
|
49
|
+
let filePath = "";
|
50
|
+
// Try user home directory first
|
51
|
+
const userHome = (0, os_1.homedir)();
|
52
|
+
const userCredentialsPath = path_1.default.join(userHome, ".tencentcloud", "credentials");
|
53
|
+
if (fs_1.default.existsSync(userCredentialsPath)) {
|
54
|
+
filePath = userCredentialsPath;
|
55
|
+
}
|
56
|
+
else {
|
57
|
+
// Try system directory as fallback
|
58
|
+
filePath = "/etc/tencentcloud/credentials";
|
59
|
+
}
|
60
|
+
if (filePath) {
|
61
|
+
try {
|
62
|
+
const content = fs_1.default.readFileSync(filePath, "utf8");
|
63
|
+
const { default: { secret_id, secret_key, token }, } = (0, ini_1.parse)(content);
|
64
|
+
if (secret_id && secret_key) {
|
65
|
+
return new BasicCredential(secret_id, secret_key, token);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
catch (error) {
|
69
|
+
// Ignore errors when reading user credentials
|
70
|
+
}
|
71
|
+
}
|
72
|
+
return new BasicCredential("", "");
|
73
|
+
}
|
74
|
+
}
|
75
|
+
exports.ProfileCredential = ProfileCredential;
|
76
|
+
/**
|
77
|
+
* Tencent Cloud Credential via STS service
|
78
|
+
* @see {@link https://cloud.tencent.com/document/api/1312/48197} for more information.
|
79
|
+
*/
|
80
|
+
class STSCredential {
|
81
|
+
/**
|
82
|
+
* Constructs a new STSCredential instance
|
83
|
+
*
|
84
|
+
* @param {ClientConfig} clientConfig Request client Configuration object
|
85
|
+
* @param {AssumeRoleParams} assumeRoleParams Request parameters of the AssumeRole interface
|
86
|
+
* @see {@link https://cloud.tencent.com/document/api/1312/48197} for more AssumeRoleParams information.
|
87
|
+
*/
|
88
|
+
constructor(clientConfig, assumeRoleParams) {
|
89
|
+
this.clientConfig = clientConfig;
|
90
|
+
this.assumeRoleParams = assumeRoleParams;
|
91
|
+
this.endpoint = "sts.tencentcloudapi.com";
|
92
|
+
this.version = "2018-08-13";
|
93
|
+
this.action = "AssumeRole";
|
94
|
+
this.region = "ap-guangzhou";
|
95
|
+
}
|
96
|
+
async getCredentialWithStsAssumeRole() {
|
97
|
+
const { endpoint, version, action, region, clientConfig, assumeRoleParams } = this;
|
98
|
+
try {
|
99
|
+
const client = new common_client_1.CommonClient(endpoint, version, {
|
100
|
+
region,
|
101
|
+
...clientConfig,
|
102
|
+
});
|
103
|
+
const result = await client.request(action, assumeRoleParams);
|
104
|
+
return {
|
105
|
+
TmpSecretId: result.Credentials.TmpSecretId,
|
106
|
+
TmpSecretKey: result.Credentials.TmpSecretKey,
|
107
|
+
Token: result.Credentials.Token,
|
108
|
+
ExpiredTime: result.ExpiredTime,
|
109
|
+
Expiration: result.Expiration,
|
110
|
+
};
|
111
|
+
}
|
112
|
+
catch (error) {
|
113
|
+
throw new Error(`Get STS AssumeRole failed: ${error.message}`);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
async getCredential() {
|
117
|
+
if (!this.credentialTask) {
|
118
|
+
this.credentialTask = this.getCredentialWithStsAssumeRole();
|
119
|
+
}
|
120
|
+
const credential = await this.credentialTask;
|
121
|
+
// Check if the credential is expired
|
122
|
+
if (credential.ExpiredTime * 1000 - EXPIRE_BUFFER <= Date.now()) {
|
123
|
+
this.credentialTask = null;
|
124
|
+
return this.getCredential();
|
125
|
+
}
|
126
|
+
return {
|
127
|
+
secretId: credential.TmpSecretId,
|
128
|
+
secretKey: credential.TmpSecretKey,
|
129
|
+
token: credential.Token,
|
130
|
+
};
|
131
|
+
}
|
132
|
+
}
|
133
|
+
exports.STSCredential = STSCredential;
|
134
|
+
/**
|
135
|
+
* CVM Role credential using existing implementation
|
136
|
+
* Re-export the existing CvmRoleCredential for consistency
|
137
|
+
*/
|
138
|
+
var cvm_role_credential_2 = require("./cvm_role_credential");
|
139
|
+
Object.defineProperty(exports, "CvmRoleCredential", { enumerable: true, get: function () { return tslib_1.__importDefault(cvm_role_credential_2).default; } });
|
140
|
+
/**
|
141
|
+
* TencentCloud OIDC Credential
|
142
|
+
* OIDC is an authentication protocol built on OAuth 2.0. Tencent Cloud CAM supports OIDC role-based SSO.
|
143
|
+
* @see {@link https://cloud.tencent.com/document/product/598/96013} for more information.
|
144
|
+
*/
|
145
|
+
class OIDCRoleArnCredential {
|
146
|
+
constructor(clientConfig, assumeRoleWithWebIdentityParams) {
|
147
|
+
this.endpoint = "sts.tencentcloudapi.com";
|
148
|
+
this.version = "2018-08-13";
|
149
|
+
this.action = "AssumeRoleWithWebIdentity";
|
150
|
+
this.defaultSessionName = "tencentcloud-node-sdk-";
|
151
|
+
this.isTke = false;
|
152
|
+
this.expirationReservationTime = 600;
|
153
|
+
if (clientConfig && assumeRoleWithWebIdentityParams) {
|
154
|
+
this.clientConfig = clientConfig;
|
155
|
+
this.assumeRoleWithWebIdentityParams = assumeRoleWithWebIdentityParams;
|
156
|
+
}
|
157
|
+
else {
|
158
|
+
this.isTke = true;
|
159
|
+
this.clientConfig = {
|
160
|
+
credential: new BasicCredential("", ""),
|
161
|
+
...clientConfig,
|
162
|
+
};
|
163
|
+
}
|
164
|
+
}
|
165
|
+
initFromTke() {
|
166
|
+
const region = process.env.TKE_REGION;
|
167
|
+
if (!region) {
|
168
|
+
throw new Error("env TKE_REGION not exist");
|
169
|
+
}
|
170
|
+
const providerId = process.env.TKE_PROVIDER_ID;
|
171
|
+
if (!providerId) {
|
172
|
+
throw new Error("env TKE_PROVIDER_ID not exist");
|
173
|
+
}
|
174
|
+
const tokenFile = process.env.TKE_WEB_IDENTITY_TOKEN_FILE;
|
175
|
+
if (!tokenFile) {
|
176
|
+
throw new Error("env TKE_WEB_IDENTITY_TOKEN_FILE not exist");
|
177
|
+
}
|
178
|
+
let wbIdentityToken;
|
179
|
+
try {
|
180
|
+
wbIdentityToken = fs_1.default.readFileSync(tokenFile).toString();
|
181
|
+
}
|
182
|
+
catch (error) {
|
183
|
+
throw new Error(`failed to read token file: ${error.message}`);
|
184
|
+
}
|
185
|
+
const roleArn = process.env.TKE_ROLE_ARN;
|
186
|
+
if (!roleArn) {
|
187
|
+
throw new Error("env TKE_ROLE_ARN not exist");
|
188
|
+
}
|
189
|
+
this.clientConfig.region = region;
|
190
|
+
this.assumeRoleWithWebIdentityParams = {
|
191
|
+
RoleArn: roleArn,
|
192
|
+
RoleSessionName: `${this.defaultSessionName}${Date.now() * 1000}`,
|
193
|
+
WebIdentityToken: wbIdentityToken,
|
194
|
+
ProviderId: providerId,
|
195
|
+
};
|
196
|
+
}
|
197
|
+
async getCredentialWithStsAssumeRoleWithWebIdentity() {
|
198
|
+
try {
|
199
|
+
if (this.isTke) {
|
200
|
+
this.initFromTke();
|
201
|
+
}
|
202
|
+
const { endpoint, version, action, region, clientConfig, assumeRoleWithWebIdentityParams } = this;
|
203
|
+
const client = new common_client_1.CommonClient(endpoint, version, {
|
204
|
+
region: region,
|
205
|
+
...clientConfig,
|
206
|
+
});
|
207
|
+
const result = await client.request(action, assumeRoleWithWebIdentityParams);
|
208
|
+
return {
|
209
|
+
TmpSecretId: result.Credentials.TmpSecretId,
|
210
|
+
TmpSecretKey: result.Credentials.TmpSecretKey,
|
211
|
+
Token: result.Credentials.Token,
|
212
|
+
ExpiredTime: result.ExpiredTime,
|
213
|
+
Expiration: result.Expiration,
|
214
|
+
};
|
215
|
+
}
|
216
|
+
catch (error) {
|
217
|
+
throw new Error(`Get STS AssumeRoleWithWebIdentity failed: ${error.message}`);
|
218
|
+
}
|
219
|
+
}
|
220
|
+
async getCredential() {
|
221
|
+
if (!this.credentialTask) {
|
222
|
+
this.credentialTask = this.getCredentialWithStsAssumeRoleWithWebIdentity();
|
223
|
+
}
|
224
|
+
const credential = await this.credentialTask;
|
225
|
+
// Check if the credential is expired
|
226
|
+
if (credential.ExpiredTime * 1000 - this.expirationReservationTime <= Date.now()) {
|
227
|
+
this.credentialTask = null;
|
228
|
+
return this.getCredential();
|
229
|
+
}
|
230
|
+
return {
|
231
|
+
secretId: credential.TmpSecretId,
|
232
|
+
secretKey: credential.TmpSecretKey,
|
233
|
+
token: credential.Token,
|
234
|
+
};
|
235
|
+
}
|
236
|
+
}
|
237
|
+
exports.OIDCRoleArnCredential = OIDCRoleArnCredential;
|
238
|
+
/**
|
239
|
+
* Tencent Cloud DefaultCredentialProvider
|
240
|
+
*/
|
241
|
+
class DefaultCredentialProvider {
|
242
|
+
constructor() {
|
243
|
+
this.providers = [
|
244
|
+
new EnvironmentVariableCredential(),
|
245
|
+
new ProfileCredential(),
|
246
|
+
new cvm_role_credential_1.default(),
|
247
|
+
new OIDCRoleArnCredential(),
|
248
|
+
];
|
249
|
+
}
|
250
|
+
async getCredential() {
|
251
|
+
for (const provider of this.providers) {
|
252
|
+
try {
|
253
|
+
const credential = await provider.getCredential();
|
254
|
+
if (credential.secretId && credential.secretKey) {
|
255
|
+
return credential;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
catch (error) {
|
259
|
+
// Continue to next provider if current one fails
|
260
|
+
console.error(error);
|
261
|
+
continue;
|
262
|
+
}
|
263
|
+
}
|
264
|
+
return new BasicCredential("", "");
|
265
|
+
}
|
266
|
+
}
|
267
|
+
exports.DefaultCredentialProvider = DefaultCredentialProvider;
|
@@ -1,10 +1,5 @@
|
|
1
|
-
import { Credential, DynamicCredential } from "./interface";
|
2
|
-
interface CvmRoleCredentialResult {
|
3
|
-
TmpSecretId: string;
|
4
|
-
TmpSecretKey: string;
|
5
|
-
ExpiredTime: 1671330188;
|
6
|
-
Expiration: string;
|
7
|
-
Token: string;
|
1
|
+
import { Credential, DynamicCredential, CredentialResult } from "./interface";
|
2
|
+
interface CvmRoleCredentialResult extends CredentialResult {
|
8
3
|
Code: string;
|
9
4
|
}
|
10
5
|
/**
|
@@ -113,3 +113,10 @@ export interface Credential {
|
|
113
113
|
export interface DynamicCredential {
|
114
114
|
getCredential(): Promise<Credential>;
|
115
115
|
}
|
116
|
+
export interface CredentialResult {
|
117
|
+
TmpSecretId: string;
|
118
|
+
TmpSecretKey: string;
|
119
|
+
ExpiredTime: number;
|
120
|
+
Expiration: string;
|
121
|
+
Token: string;
|
122
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
export declare const sdkVersion = "4.1.
|
1
|
+
export declare const sdkVersion = "4.1.122";
|
@@ -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
|
}
|
@@ -2013,7 +2013,7 @@ export interface DescribeBillListRequest {
|
|
2013
2013
|
all所有扣费类型;trade预付费支付;hour_h按量小时结;hour_d按量日结;hour_m按量月结;decompensate调账扣费;other第三方扣费;panshi 线下项目扣费;offline 线下产品扣费;
|
2014
2014
|
|
2015
2015
|
当所选的交易类型为扣费recharge时:
|
2016
|
-
online 在线充值;bank-enterprice
|
2016
|
+
online 在线充值;bank-enterprice 银企直联;offline 线下充值;transfer 分成充值
|
2017
2017
|
|
2018
2018
|
当所选的交易类型为扣费cash时:
|
2019
2019
|
online 线上提现;offline 线下提现;panshi 赠送金清零
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
3
|
-
import { DescribeExtensionRequest, CreateCCCSkillGroupResponse, ModifyStaffPasswordRequest, StopAutoCalloutTaskRequest, CreateIVRSessionRequest, CreateSDKLoginTokenResponse, ModifyStaffRequest, DescribeIvrAudioListResponse, ResetExtensionPasswordRequest, DisableCCCPhoneNumberResponse, DescribeProtectedTelCdrResponse, DescribeAutoCalloutTaskRequest, CreateUserSigResponse, CreateAICallRequest, CreateAdminURLResponse, PausePredictiveDialingCampaignRequest, DescribeAILatencyRequest, CreateCallOutSessionResponse, DescribeCarrierPrivilegeNumberApplicantsRequest, DisableCCCPhoneNumberRequest, ModifyStaffPasswordResponse, ControlAIConversationResponse, TransferToManualRequest, CreatePredictiveDialingCampaignRequest, RestoreMemberOnlineResponse, AbortAgentCruiseDialingCampaignResponse, DescribeChatMessagesResponse, DescribeSessionDetailResponse, DescribeTelCallInfoResponse, DescribeExtensionsResponse, DeleteExtensionRequest, DescribePredictiveDialingCampaignRequest, DescribePredictiveDialingCampaignResponse, CreateAIAgentCallResponse, DescribeAILatencyResponse, DescribeAutoCalloutTasksResponse, CreateAgentCruiseDialingCampaignRequest, DescribeAICallExtractResultRequest, CreateStaffResponse, DescribePredictiveDialingCampaignsRequest, DescribeSkillGroupInfoListResponse, DescribeNumbersResponse, DeletePredictiveDialingCampaignRequest, UploadIvrAudioRequest, DescribeStaffInfoListResponse, UnbindNumberCallOutSkillGroupRequest, CreateCarrierPrivilegeNumberApplicantRequest, ResumePredictiveDialingCampaignResponse, CreateExtensionResponse, CreateUserSigRequest, CreateCCCSkillGroupRequest, DescribePredictiveDialingSessionsResponse, DeleteCCCSkillGroupRequest, CreateCompanyApplyRequest, BindNumberCallInInterfaceRequest, DescribeTelSessionRequest, DescribeIMCdrsRequest, DescribeSkillGroupInfoListRequest, CreateCarrierPrivilegeNumberApplicantResponse, UpdateCCCSkillGroupResponse, PausePredictiveDialingCampaignResponse, ResumePredictiveDialingCampaignRequest, UpdatePredictiveDialingCampaignRequest, DescribeStaffInfoListRequest, DescribeIvrAudioListRequest, BindNumberCallInInterfaceResponse, ForceMemberOfflineRequest, UploadIvrAudioResponse, CreateAIAgentCallRequest, UpdateCCCSkillGroupRequest, RestoreMemberOnlineRequest, DescribeStaffStatusHistoryResponse, DescribeTelCdrRequest, ModifyStaffResponse, ModifyExtensionRequest, CreatePredictiveDialingCampaignResponse, UpdatePredictiveDialingCampaignResponse, ModifyOwnNumberApplyRequest, AbortPredictiveDialingCampaignResponse, DescribeIMCdrsResponse, DescribeNumbersRequest, BindNumberCallOutSkillGroupRequest, DeletePredictiveDialingCampaignResponse, UnbindNumberCallOutSkillGroupResponse, DescribeAgentCruiseDialingCampaignRequest, DescribePSTNActiveSessionListRequest, CreateAutoCalloutTaskResponse, DescribeAICallExtractResultResponse, DeleteCCCSkillGroupResponse, DescribeSessionDetailRequest, ModifyExtensionResponse, DescribeCompanyListResponse, DeleteStaffRequest, DescribeCCCBuyInfoListRequest, DescribeIMCdrListResponse, DescribePredictiveDialingCampaignsResponse, DescribeTelCallInfoRequest, CreateExtensionRequest, ResetExtensionPasswordResponse, CreateAutoCalloutTaskRequest, AbortAgentCruiseDialingCampaignRequest, ForceMemberOfflineResponse, CreateOwnNumberApplyResponse, BindNumberCallOutSkillGroupResponse, HangUpCallResponse, TransferToManualResponse, StopAutoCalloutTaskResponse, AbortPredictiveDialingCampaignRequest, ModifyCompanyApplyResponse, DescribeCCCBuyInfoListResponse, UnbindStaffSkillGroupListResponse, ControlAIConversationRequest, DeleteExtensionResponse, BindStaffSkillGroupListRequest, CreateAgentCruiseDialingCampaignResponse, ModifyOwnNumberApplyResponse, UnbindStaffSkillGroupListRequest, DescribeCallInMetricsResponse, ModifyCompanyApplyRequest, DescribeAgentCruiseDialingCampaignResponse, CreateAICallResponse, DescribeCompanyListRequest, CreateIVRSessionResponse, DescribeActiveCarrierPrivilegeNumberResponse, HangUpCallRequest, DescribeTelCdrResponse, DescribeStaffStatusMetricsRequest, DeleteStaffResponse, DescribeStaffStatusHistoryRequest, CreateStaffRequest, CreateCompanyApplyResponse, DescribePSTNActiveSessionListResponse, DescribeIMCdrListRequest, DescribeAutoCalloutTasksRequest, DescribeChatMessagesRequest, DescribeTelSessionResponse, CreateAdminURLRequest, DescribeAutoCalloutTaskResponse, DescribeStaffStatusMetricsResponse, DescribeCarrierPrivilegeNumberApplicantsResponse, CreateCallOutSessionRequest, BindStaffSkillGroupListResponse, DescribeTelRecordAsrResponse, DescribeExtensionsRequest, DescribeProtectedTelCdrRequest, DescribePredictiveDialingSessionsRequest, CreateSDKLoginTokenRequest, DescribeActiveCarrierPrivilegeNumberRequest, CreateOwnNumberApplyRequest, DescribeCallInMetricsRequest, DescribeExtensionResponse, DescribeTelRecordAsrRequest } from "./ccc_models";
|
3
|
+
import { DescribeExtensionRequest, CreateCCCSkillGroupResponse, ModifyStaffPasswordRequest, StopAutoCalloutTaskRequest, CreateIVRSessionRequest, CreateSDKLoginTokenResponse, ModifyStaffRequest, DescribeIvrAudioListResponse, ResetExtensionPasswordRequest, DisableCCCPhoneNumberResponse, DescribeProtectedTelCdrResponse, DescribeAutoCalloutTaskRequest, CreateUserSigResponse, CreateAICallRequest, CreateAdminURLResponse, PausePredictiveDialingCampaignRequest, DescribeAILatencyRequest, CreateCallOutSessionResponse, DescribeCarrierPrivilegeNumberApplicantsRequest, DisableCCCPhoneNumberRequest, ModifyStaffPasswordResponse, ControlAIConversationResponse, TransferToManualRequest, CreatePredictiveDialingCampaignRequest, RestoreMemberOnlineResponse, AbortAgentCruiseDialingCampaignResponse, DescribeChatMessagesResponse, DescribeSessionDetailResponse, DescribeTelCallInfoResponse, DescribeExtensionsResponse, DeleteExtensionRequest, DescribePredictiveDialingCampaignRequest, DescribePredictiveDialingCampaignResponse, CreateAIAgentCallResponse, DescribeAILatencyResponse, DescribeAutoCalloutTasksResponse, CreateAgentCruiseDialingCampaignRequest, DescribeAICallExtractResultRequest, CreateStaffResponse, DescribePredictiveDialingCampaignsRequest, DescribeSkillGroupInfoListResponse, DescribeNumbersResponse, DeletePredictiveDialingCampaignRequest, UploadIvrAudioRequest, DescribeStaffInfoListResponse, UnbindNumberCallOutSkillGroupRequest, CreateCarrierPrivilegeNumberApplicantRequest, ResumePredictiveDialingCampaignResponse, CreateExtensionResponse, CreateUserSigRequest, CreateCCCSkillGroupRequest, DescribePredictiveDialingSessionsResponse, DeleteCCCSkillGroupRequest, CreateCompanyApplyRequest, BindNumberCallInInterfaceRequest, DescribeTelSessionRequest, DescribeIMCdrsRequest, DescribeSkillGroupInfoListRequest, CreateCarrierPrivilegeNumberApplicantResponse, UpdateCCCSkillGroupResponse, PausePredictiveDialingCampaignResponse, ResumePredictiveDialingCampaignRequest, UpdatePredictiveDialingCampaignRequest, DescribeStaffInfoListRequest, DescribeIvrAudioListRequest, BindNumberCallInInterfaceResponse, ForceMemberOfflineRequest, UploadIvrAudioResponse, CreateAIAgentCallRequest, UpdateCCCSkillGroupRequest, RestoreMemberOnlineRequest, DescribeStaffStatusHistoryResponse, DescribeTelCdrRequest, ModifyStaffResponse, ModifyExtensionRequest, CreatePredictiveDialingCampaignResponse, DescribeAIAnalysisResultResponse, UpdatePredictiveDialingCampaignResponse, ModifyOwnNumberApplyRequest, AbortPredictiveDialingCampaignResponse, DescribeIMCdrsResponse, DescribeNumbersRequest, BindNumberCallOutSkillGroupRequest, DeletePredictiveDialingCampaignResponse, UnbindNumberCallOutSkillGroupResponse, DescribeAgentCruiseDialingCampaignRequest, DescribePSTNActiveSessionListRequest, CreateAutoCalloutTaskResponse, DescribeAICallExtractResultResponse, DeleteCCCSkillGroupResponse, DescribeSessionDetailRequest, ModifyExtensionResponse, DescribeCompanyListResponse, DeleteStaffRequest, DescribeCCCBuyInfoListRequest, DescribeIMCdrListResponse, DescribePredictiveDialingCampaignsResponse, DescribeTelCallInfoRequest, CreateExtensionRequest, ResetExtensionPasswordResponse, CreateAutoCalloutTaskRequest, AbortAgentCruiseDialingCampaignRequest, ForceMemberOfflineResponse, CreateOwnNumberApplyResponse, BindNumberCallOutSkillGroupResponse, HangUpCallResponse, TransferToManualResponse, StopAutoCalloutTaskResponse, AbortPredictiveDialingCampaignRequest, DescribeAIAnalysisResultRequest, ModifyCompanyApplyResponse, DescribeCCCBuyInfoListResponse, UnbindStaffSkillGroupListResponse, ControlAIConversationRequest, DeleteExtensionResponse, BindStaffSkillGroupListRequest, CreateAgentCruiseDialingCampaignResponse, ModifyOwnNumberApplyResponse, UnbindStaffSkillGroupListRequest, DescribeCallInMetricsResponse, ModifyCompanyApplyRequest, DescribeAgentCruiseDialingCampaignResponse, CreateAICallResponse, DescribeCompanyListRequest, CreateIVRSessionResponse, DescribeActiveCarrierPrivilegeNumberResponse, HangUpCallRequest, DescribeTelCdrResponse, DescribeStaffStatusMetricsRequest, DeleteStaffResponse, DescribeStaffStatusHistoryRequest, CreateStaffRequest, CreateCompanyApplyResponse, DescribePSTNActiveSessionListResponse, DescribeIMCdrListRequest, DescribeAutoCalloutTasksRequest, DescribeChatMessagesRequest, DescribeTelSessionResponse, CreateAdminURLRequest, DescribeAutoCalloutTaskResponse, DescribeStaffStatusMetricsResponse, DescribeCarrierPrivilegeNumberApplicantsResponse, CreateCallOutSessionRequest, BindStaffSkillGroupListResponse, DescribeTelRecordAsrResponse, DescribeExtensionsRequest, DescribeProtectedTelCdrRequest, DescribePredictiveDialingSessionsRequest, CreateSDKLoginTokenRequest, DescribeActiveCarrierPrivilegeNumberRequest, CreateOwnNumberApplyRequest, DescribeCallInMetricsRequest, DescribeExtensionResponse, DescribeTelRecordAsrRequest } from "./ccc_models";
|
4
4
|
/**
|
5
5
|
* ccc client
|
6
6
|
* @class
|
@@ -16,9 +16,9 @@ export declare class Client extends AbstractClient {
|
|
16
16
|
*/
|
17
17
|
ModifyCompanyApply(req: ModifyCompanyApplyRequest, cb?: (error: string, rep: ModifyCompanyApplyResponse) => void): Promise<ModifyCompanyApplyResponse>;
|
18
18
|
/**
|
19
|
-
*
|
19
|
+
* 获取 AI 会话分析结果
|
20
20
|
*/
|
21
|
-
|
21
|
+
DescribeAIAnalysisResult(req: DescribeAIAnalysisResultRequest, cb?: (error: string, rep: DescribeAIAnalysisResultResponse) => void): Promise<DescribeAIAnalysisResultResponse>;
|
22
22
|
/**
|
23
23
|
* 查询话机列表信息
|
24
24
|
*/
|
@@ -119,6 +119,10 @@ export declare class Client extends AbstractClient {
|
|
119
119
|
* 上传IVR中使用的音频文件,每日上传文件限制50个。(参数中音频文件Url建议使用腾讯云Cos存储的临时链接)
|
120
120
|
*/
|
121
121
|
UploadIvrAudio(req: UploadIvrAudioRequest, cb?: (error: string, rep: UploadIvrAudioResponse) => void): Promise<UploadIvrAudioResponse>;
|
122
|
+
/**
|
123
|
+
* 修改客服账号
|
124
|
+
*/
|
125
|
+
ModifyStaff(req: ModifyStaffRequest, cb?: (error: string, rep: ModifyStaffResponse) => void): Promise<ModifyStaffResponse>;
|
122
126
|
/**
|
123
127
|
* 获取话机信息
|
124
128
|
*/
|
@@ -40,10 +40,10 @@ class Client extends abstract_client_1.AbstractClient {
|
|
40
40
|
return this.request("ModifyCompanyApply", req, cb);
|
41
41
|
}
|
42
42
|
/**
|
43
|
-
*
|
43
|
+
* 获取 AI 会话分析结果
|
44
44
|
*/
|
45
|
-
async
|
46
|
-
return this.request("
|
45
|
+
async DescribeAIAnalysisResult(req, cb) {
|
46
|
+
return this.request("DescribeAIAnalysisResult", req, cb);
|
47
47
|
}
|
48
48
|
/**
|
49
49
|
* 查询话机列表信息
|
@@ -193,6 +193,12 @@ class Client extends abstract_client_1.AbstractClient {
|
|
193
193
|
async UploadIvrAudio(req, cb) {
|
194
194
|
return this.request("UploadIvrAudio", req, cb);
|
195
195
|
}
|
196
|
+
/**
|
197
|
+
* 修改客服账号
|
198
|
+
*/
|
199
|
+
async ModifyStaff(req, cb) {
|
200
|
+
return this.request("ModifyStaff", req, cb);
|
201
|
+
}
|
196
202
|
/**
|
197
203
|
* 获取话机信息
|
198
204
|
*/
|
@@ -2855,6 +2855,19 @@ export interface CreatePredictiveDialingCampaignResponse {
|
|
2855
2855
|
*/
|
2856
2856
|
RequestId?: string;
|
2857
2857
|
}
|
2858
|
+
/**
|
2859
|
+
* DescribeAIAnalysisResult返回参数结构体
|
2860
|
+
*/
|
2861
|
+
export interface DescribeAIAnalysisResultResponse {
|
2862
|
+
/**
|
2863
|
+
* AI会话分析结果
|
2864
|
+
*/
|
2865
|
+
ResultList?: Array<AIAnalysisResult>;
|
2866
|
+
/**
|
2867
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2868
|
+
*/
|
2869
|
+
RequestId?: string;
|
2870
|
+
}
|
2858
2871
|
/**
|
2859
2872
|
* UpdatePredictiveDialingCampaign返回参数结构体
|
2860
2873
|
*/
|
@@ -4046,6 +4059,27 @@ export interface PhoneNumBuyInfo {
|
|
4046
4059
|
*/
|
4047
4060
|
State: number;
|
4048
4061
|
}
|
4062
|
+
/**
|
4063
|
+
* DescribeAIAnalysisResult请求参数结构体
|
4064
|
+
*/
|
4065
|
+
export interface DescribeAIAnalysisResultRequest {
|
4066
|
+
/**
|
4067
|
+
* 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
4068
|
+
*/
|
4069
|
+
SdkAppId: number;
|
4070
|
+
/**
|
4071
|
+
* 会话 ID
|
4072
|
+
*/
|
4073
|
+
SessionId: string;
|
4074
|
+
/**
|
4075
|
+
* 查找起始时间
|
4076
|
+
*/
|
4077
|
+
StartTime: number;
|
4078
|
+
/**
|
4079
|
+
* 1737350008
|
4080
|
+
*/
|
4081
|
+
EndTime: number;
|
4082
|
+
}
|
4049
4083
|
/**
|
4050
4084
|
* ModifyCompanyApply返回参数结构体
|
4051
4085
|
*/
|
@@ -4740,6 +4774,21 @@ export interface DescribeIMCdrListRequest {
|
|
4740
4774
|
*/
|
4741
4775
|
Type?: number;
|
4742
4776
|
}
|
4777
|
+
/**
|
4778
|
+
* AI会话分析结果
|
4779
|
+
*/
|
4780
|
+
export interface AIAnalysisResult {
|
4781
|
+
/**
|
4782
|
+
* summary: 会话小结
|
4783
|
+
mood: 情绪分析
|
4784
|
+
intention: 意向提取
|
4785
|
+
*/
|
4786
|
+
Type?: string;
|
4787
|
+
/**
|
4788
|
+
* AI会话分析结果
|
4789
|
+
*/
|
4790
|
+
Result?: string;
|
4791
|
+
}
|
4743
4792
|
/**
|
4744
4793
|
* DescribeAutoCalloutTasks请求参数结构体
|
4745
4794
|
*/
|
@@ -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;
|