tencentcloud-sdk-nodejs 4.1.64 → 4.1.66
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/sdk_version.js +1 -1
- package/es/services/bh/v20230418/bh_client.js +20 -2
- package/es/services/ctem/index.js +4 -0
- package/es/services/ctem/v20231128/ctem_client.js +81 -0
- package/es/services/ctem/v20231128/ctem_models.js +0 -0
- package/es/services/ctem/v20231128/index.js +6 -0
- package/es/services/index.js +1 -0
- package/es/services/kms/v20190118/kms_client.js +59 -14
- package/es/services/lke/v20231130/lke_client.js +16 -4
- package/es/services/mqtt/v20240516/mqtt_client.js +3 -0
- package/es/services/trocket/v20230308/trocket_client.js +5 -2
- package/es/services/wedata/v20210820/wedata_client.js +13 -4
- package/package.json +1 -1
- package/tencentcloud/common/abstract_client.d.ts +111 -13
- package/tencentcloud/common/abstract_client.js +82 -15
- package/tencentcloud/common/common_client.d.ts +7 -0
- package/tencentcloud/common/common_client.js +7 -0
- package/tencentcloud/common/cvm_role_credential.d.ts +6 -0
- package/tencentcloud/common/cvm_role_credential.js +10 -1
- package/tencentcloud/common/http/http_connection.js +1 -2
- package/tencentcloud/common/interface.d.ts +35 -36
- package/tencentcloud/common/interface.js +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/common/sign.js +1 -1
- package/tencentcloud/common/sse_response_model.d.ts +26 -2
- package/tencentcloud/common/sse_response_model.js +17 -2
- package/tencentcloud/services/ams/v20201229/ams_models.d.ts +5 -95
- package/tencentcloud/services/apm/v20210622/apm_models.d.ts +4 -0
- package/tencentcloud/services/bh/v20230418/bh_client.d.ts +27 -3
- package/tencentcloud/services/bh/v20230418/bh_client.js +39 -3
- package/tencentcloud/services/bh/v20230418/bh_models.d.ts +311 -56
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +1 -1
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +27 -21
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +27 -21
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +153 -113
- package/tencentcloud/services/ctem/index.d.ts +6 -0
- package/tencentcloud/services/ctem/index.js +7 -0
- package/tencentcloud/services/ctem/v20231128/ctem_client.d.ts +110 -0
- package/tencentcloud/services/ctem/v20231128/ctem_client.js +181 -0
- package/tencentcloud/services/ctem/v20231128/ctem_models.d.ts +2733 -0
- package/tencentcloud/services/ctem/v20231128/ctem_models.js +18 -0
- package/tencentcloud/services/ctem/v20231128/index.d.ts +6 -0
- package/tencentcloud/services/ctem/v20231128/index.js +10 -0
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +44 -0
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +12 -0
- package/tencentcloud/services/dlc/v20210125/dlc_client.d.ts +3 -1
- package/tencentcloud/services/dlc/v20210125/dlc_client.js +3 -1
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +9 -4
- package/tencentcloud/services/dsgc/v20190723/dsgc_client.d.ts +1 -3
- package/tencentcloud/services/dsgc/v20190723/dsgc_client.js +1 -3
- package/tencentcloud/services/dsgc/v20190723/dsgc_models.d.ts +93 -6
- package/tencentcloud/services/emr/v20190103/emr_client.d.ts +1 -1
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +5703 -5666
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +12 -2
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_models.d.ts +5 -1
- package/tencentcloud/services/ims/v20201229/ims_models.d.ts +1 -15
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +2 -2
- package/tencentcloud/services/iotvideo/v20201215/iotvideo_models.d.ts +2 -2
- package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +1 -1
- package/tencentcloud/services/kms/v20190118/kms_client.d.ts +76 -16
- package/tencentcloud/services/kms/v20190118/kms_client.js +112 -22
- package/tencentcloud/services/kms/v20190118/kms_models.d.ts +572 -53
- package/tencentcloud/services/lke/v20231130/lke_client.d.ts +21 -5
- package/tencentcloud/services/lke/v20231130/lke_client.js +30 -6
- package/tencentcloud/services/lke/v20231130/lke_models.d.ts +5087 -4539
- package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +4 -0
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +84 -9
- package/tencentcloud/services/mqtt/v20240516/mqtt_client.d.ts +5 -1
- package/tencentcloud/services/mqtt/v20240516/mqtt_client.js +6 -0
- package/tencentcloud/services/mqtt/v20240516/mqtt_models.d.ts +67 -0
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +3 -3
- package/tencentcloud/services/ses/v20201002/ses_models.d.ts +0 -4
- package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +4 -0
- package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +14 -2
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +4 -0
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +6 -0
- package/tencentcloud/services/trocket/v20230308/trocket_client.d.ts +12 -8
- package/tencentcloud/services/trocket/v20230308/trocket_client.js +14 -8
- package/tencentcloud/services/trocket/v20230308/trocket_models.d.ts +272 -177
- package/tencentcloud/services/vm/v20210922/vm_models.d.ts +61 -135
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +4 -0
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +33 -9
- package/tencentcloud/services/wedata/v20210820/wedata_client.d.ts +19 -7
- package/tencentcloud/services/wedata/v20210820/wedata_client.js +26 -8
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +322 -54
package/es/common/sdk_version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const sdkVersion = "4.1.
|
|
1
|
+
export const sdkVersion = "4.1.66";
|
|
@@ -24,6 +24,9 @@ export class Client extends AbstractClient {
|
|
|
24
24
|
async DescribeDeviceAccounts(req, cb) {
|
|
25
25
|
return this.request("DescribeDeviceAccounts", req, cb);
|
|
26
26
|
}
|
|
27
|
+
async CheckLDAPConnection(req, cb) {
|
|
28
|
+
return this.request("CheckLDAPConnection", req, cb);
|
|
29
|
+
}
|
|
27
30
|
async ResetUser(req, cb) {
|
|
28
31
|
return this.request("ResetUser", req, cb);
|
|
29
32
|
}
|
|
@@ -33,6 +36,9 @@ export class Client extends AbstractClient {
|
|
|
33
36
|
async CreateChangePwdTask(req, cb) {
|
|
34
37
|
return this.request("CreateChangePwdTask", req, cb);
|
|
35
38
|
}
|
|
39
|
+
async SetLDAPSyncFlag(req, cb) {
|
|
40
|
+
return this.request("SetLDAPSyncFlag", req, cb);
|
|
41
|
+
}
|
|
36
42
|
async DescribeUserGroups(req, cb) {
|
|
37
43
|
return this.request("DescribeUserGroups", req, cb);
|
|
38
44
|
}
|
|
@@ -51,8 +57,8 @@ export class Client extends AbstractClient {
|
|
|
51
57
|
async BindDeviceAccountPassword(req, cb) {
|
|
52
58
|
return this.request("BindDeviceAccountPassword", req, cb);
|
|
53
59
|
}
|
|
54
|
-
async
|
|
55
|
-
return this.request("
|
|
60
|
+
async DescribeLDAPUnitSet(req, cb) {
|
|
61
|
+
return this.request("DescribeLDAPUnitSet", req, cb);
|
|
56
62
|
}
|
|
57
63
|
async ModifyCmdTemplate(req, cb) {
|
|
58
64
|
return this.request("ModifyCmdTemplate", req, cb);
|
|
@@ -111,6 +117,12 @@ export class Client extends AbstractClient {
|
|
|
111
117
|
async SearchCommandBySid(req, cb) {
|
|
112
118
|
return this.request("SearchCommandBySid", req, cb);
|
|
113
119
|
}
|
|
120
|
+
async UnlockUser(req, cb) {
|
|
121
|
+
return this.request("UnlockUser", req, cb);
|
|
122
|
+
}
|
|
123
|
+
async SearchFileBySid(req, cb) {
|
|
124
|
+
return this.request("SearchFileBySid", req, cb);
|
|
125
|
+
}
|
|
114
126
|
async ResetDeviceAccountPrivateKey(req, cb) {
|
|
115
127
|
return this.request("ResetDeviceAccountPrivateKey", req, cb);
|
|
116
128
|
}
|
|
@@ -138,6 +150,9 @@ export class Client extends AbstractClient {
|
|
|
138
150
|
async ModifyOperationTask(req, cb) {
|
|
139
151
|
return this.request("ModifyOperationTask", req, cb);
|
|
140
152
|
}
|
|
153
|
+
async ModifyLDAPSetting(req, cb) {
|
|
154
|
+
return this.request("ModifyLDAPSetting", req, cb);
|
|
155
|
+
}
|
|
141
156
|
async DeleteDeviceAccounts(req, cb) {
|
|
142
157
|
return this.request("DeleteDeviceAccounts", req, cb);
|
|
143
158
|
}
|
|
@@ -183,6 +198,9 @@ export class Client extends AbstractClient {
|
|
|
183
198
|
async DescribeUserGroupMembers(req, cb) {
|
|
184
199
|
return this.request("DescribeUserGroupMembers", req, cb);
|
|
185
200
|
}
|
|
201
|
+
async ReplaySession(req, cb) {
|
|
202
|
+
return this.request("ReplaySession", req, cb);
|
|
203
|
+
}
|
|
186
204
|
async SearchSubtaskResultById(req, cb) {
|
|
187
205
|
return this.request("SearchSubtaskResultById", req, cb);
|
|
188
206
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
|
+
export class Client extends AbstractClient {
|
|
3
|
+
constructor(clientConfig) {
|
|
4
|
+
super("ctem.tencentcloudapi.com", "2023-11-28", clientConfig);
|
|
5
|
+
}
|
|
6
|
+
async DescribeNetDisks(req, cb) {
|
|
7
|
+
return this.request("DescribeNetDisks", req, cb);
|
|
8
|
+
}
|
|
9
|
+
async DescribeManages(req, cb) {
|
|
10
|
+
return this.request("DescribeManages", req, cb);
|
|
11
|
+
}
|
|
12
|
+
async ModifyCustomer(req, cb) {
|
|
13
|
+
return this.request("ModifyCustomer", req, cb);
|
|
14
|
+
}
|
|
15
|
+
async DescribeDomains(req, cb) {
|
|
16
|
+
return this.request("DescribeDomains", req, cb);
|
|
17
|
+
}
|
|
18
|
+
async DescribeVuls(req, cb) {
|
|
19
|
+
return this.request("DescribeVuls", req, cb);
|
|
20
|
+
}
|
|
21
|
+
async DescribeConfigs(req, cb) {
|
|
22
|
+
return this.request("DescribeConfigs", req, cb);
|
|
23
|
+
}
|
|
24
|
+
async DescribeWechatApplets(req, cb) {
|
|
25
|
+
return this.request("DescribeWechatApplets", req, cb);
|
|
26
|
+
}
|
|
27
|
+
async DescribeSensitiveInfos(req, cb) {
|
|
28
|
+
return this.request("DescribeSensitiveInfos", req, cb);
|
|
29
|
+
}
|
|
30
|
+
async DescribeSubDomains(req, cb) {
|
|
31
|
+
return this.request("DescribeSubDomains", req, cb);
|
|
32
|
+
}
|
|
33
|
+
async DescribeCustomers(req, cb) {
|
|
34
|
+
return this.request("DescribeCustomers", req, cb);
|
|
35
|
+
}
|
|
36
|
+
async DescribeApps(req, cb) {
|
|
37
|
+
return this.request("DescribeApps", req, cb);
|
|
38
|
+
}
|
|
39
|
+
async DescribeJobRecordDetails(req, cb) {
|
|
40
|
+
return this.request("DescribeJobRecordDetails", req, cb);
|
|
41
|
+
}
|
|
42
|
+
async DescribeSuspiciousAssets(req, cb) {
|
|
43
|
+
return this.request("DescribeSuspiciousAssets", req, cb);
|
|
44
|
+
}
|
|
45
|
+
async DescribeGithubs(req, cb) {
|
|
46
|
+
return this.request("DescribeGithubs", req, cb);
|
|
47
|
+
}
|
|
48
|
+
async DescribePorts(req, cb) {
|
|
49
|
+
return this.request("DescribePorts", req, cb);
|
|
50
|
+
}
|
|
51
|
+
async CreateJobRecord(req, cb) {
|
|
52
|
+
return this.request("CreateJobRecord", req, cb);
|
|
53
|
+
}
|
|
54
|
+
async DescribeHttps(req, cb) {
|
|
55
|
+
return this.request("DescribeHttps", req, cb);
|
|
56
|
+
}
|
|
57
|
+
async DescribeAssets(req, cb) {
|
|
58
|
+
return this.request("DescribeAssets", req, cb);
|
|
59
|
+
}
|
|
60
|
+
async DescribeDarkWebs(req, cb) {
|
|
61
|
+
return this.request("DescribeDarkWebs", req, cb);
|
|
62
|
+
}
|
|
63
|
+
async DescribeWechatOfficialAccounts(req, cb) {
|
|
64
|
+
return this.request("DescribeWechatOfficialAccounts", req, cb);
|
|
65
|
+
}
|
|
66
|
+
async DescribeEnterprises(req, cb) {
|
|
67
|
+
return this.request("DescribeEnterprises", req, cb);
|
|
68
|
+
}
|
|
69
|
+
async CreateCustomer(req, cb) {
|
|
70
|
+
return this.request("CreateCustomer", req, cb);
|
|
71
|
+
}
|
|
72
|
+
async StopJobRecord(req, cb) {
|
|
73
|
+
return this.request("StopJobRecord", req, cb);
|
|
74
|
+
}
|
|
75
|
+
async DescribeJobRecords(req, cb) {
|
|
76
|
+
return this.request("DescribeJobRecords", req, cb);
|
|
77
|
+
}
|
|
78
|
+
async DescribeWeakPasswords(req, cb) {
|
|
79
|
+
return this.request("DescribeWeakPasswords", req, cb);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
File without changes
|
package/es/services/index.js
CHANGED
|
@@ -71,6 +71,7 @@ export { controlcenter } from "./controlcenter";
|
|
|
71
71
|
export { cpdp } from "./cpdp";
|
|
72
72
|
export { csip } from "./csip";
|
|
73
73
|
export { csxg } from "./csxg";
|
|
74
|
+
export { ctem } from "./ctem";
|
|
74
75
|
export { cvm } from "./cvm";
|
|
75
76
|
export { cwp } from "./cwp";
|
|
76
77
|
export { cws } from "./cws";
|
|
@@ -3,6 +3,9 @@ export class Client extends AbstractClient {
|
|
|
3
3
|
constructor(clientConfig) {
|
|
4
4
|
super("kms.tencentcloudapi.com", "2019-01-18", clientConfig);
|
|
5
5
|
}
|
|
6
|
+
async ListDataKeys(req, cb) {
|
|
7
|
+
return this.request("ListDataKeys", req, cb);
|
|
8
|
+
}
|
|
6
9
|
async PostQuantumCryptoVerify(req, cb) {
|
|
7
10
|
return this.request("PostQuantumCryptoVerify", req, cb);
|
|
8
11
|
}
|
|
@@ -21,6 +24,9 @@ export class Client extends AbstractClient {
|
|
|
21
24
|
async ImportKeyMaterial(req, cb) {
|
|
22
25
|
return this.request("ImportKeyMaterial", req, cb);
|
|
23
26
|
}
|
|
27
|
+
async DescribeDataKey(req, cb) {
|
|
28
|
+
return this.request("DescribeDataKey", req, cb);
|
|
29
|
+
}
|
|
24
30
|
async GetPublicKey(req, cb) {
|
|
25
31
|
return this.request("GetPublicKey", req, cb);
|
|
26
32
|
}
|
|
@@ -33,11 +39,14 @@ export class Client extends AbstractClient {
|
|
|
33
39
|
async GetServiceStatus(req, cb) {
|
|
34
40
|
return this.request("GetServiceStatus", req, cb);
|
|
35
41
|
}
|
|
42
|
+
async GetDataKeyPlaintext(req, cb) {
|
|
43
|
+
return this.request("GetDataKeyPlaintext", req, cb);
|
|
44
|
+
}
|
|
36
45
|
async AsymmetricSm2Decrypt(req, cb) {
|
|
37
46
|
return this.request("AsymmetricSm2Decrypt", req, cb);
|
|
38
47
|
}
|
|
39
|
-
async
|
|
40
|
-
return this.request("
|
|
48
|
+
async PostQuantumCryptoEncrypt(req, cb) {
|
|
49
|
+
return this.request("PostQuantumCryptoEncrypt", req, cb);
|
|
41
50
|
}
|
|
42
51
|
async CancelKeyDeletion(req, cb) {
|
|
43
52
|
return this.request("CancelKeyDeletion", req, cb);
|
|
@@ -45,17 +54,35 @@ export class Client extends AbstractClient {
|
|
|
45
54
|
async GetKeyRotationStatus(req, cb) {
|
|
46
55
|
return this.request("GetKeyRotationStatus", req, cb);
|
|
47
56
|
}
|
|
57
|
+
async ScheduleDataKeyDeletion(req, cb) {
|
|
58
|
+
return this.request("ScheduleDataKeyDeletion", req, cb);
|
|
59
|
+
}
|
|
48
60
|
async DescribeWhiteBoxKeyDetails(req, cb) {
|
|
49
61
|
return this.request("DescribeWhiteBoxKeyDetails", req, cb);
|
|
50
62
|
}
|
|
51
63
|
async BindCloudResource(req, cb) {
|
|
52
64
|
return this.request("BindCloudResource", req, cb);
|
|
53
65
|
}
|
|
66
|
+
async OverwriteWhiteBoxDeviceFingerprints(req, cb) {
|
|
67
|
+
return this.request("OverwriteWhiteBoxDeviceFingerprints", req, cb);
|
|
68
|
+
}
|
|
54
69
|
async ArchiveKey(req, cb) {
|
|
55
70
|
return this.request("ArchiveKey", req, cb);
|
|
56
71
|
}
|
|
57
|
-
async
|
|
58
|
-
return this.request("
|
|
72
|
+
async UpdateDataKeyDescription(req, cb) {
|
|
73
|
+
return this.request("UpdateDataKeyDescription", req, cb);
|
|
74
|
+
}
|
|
75
|
+
async UpdateDataKeyName(req, cb) {
|
|
76
|
+
return this.request("UpdateDataKeyName", req, cb);
|
|
77
|
+
}
|
|
78
|
+
async SignByAsymmetricKey(req, cb) {
|
|
79
|
+
return this.request("SignByAsymmetricKey", req, cb);
|
|
80
|
+
}
|
|
81
|
+
async DisableKeys(req, cb) {
|
|
82
|
+
return this.request("DisableKeys", req, cb);
|
|
83
|
+
}
|
|
84
|
+
async CancelDataKeyDeletion(req, cb) {
|
|
85
|
+
return this.request("CancelDataKeyDeletion", req, cb);
|
|
59
86
|
}
|
|
60
87
|
async ReEncrypt(req, cb) {
|
|
61
88
|
return this.request("ReEncrypt", req, cb);
|
|
@@ -75,11 +102,20 @@ export class Client extends AbstractClient {
|
|
|
75
102
|
async GenerateRandom(req, cb) {
|
|
76
103
|
return this.request("GenerateRandom", req, cb);
|
|
77
104
|
}
|
|
105
|
+
async GetDataKeyCiphertextBlob(req, cb) {
|
|
106
|
+
return this.request("GetDataKeyCiphertextBlob", req, cb);
|
|
107
|
+
}
|
|
78
108
|
async PostQuantumCryptoDecrypt(req, cb) {
|
|
79
109
|
return this.request("PostQuantumCryptoDecrypt", req, cb);
|
|
80
110
|
}
|
|
81
|
-
async
|
|
82
|
-
return this.request("
|
|
111
|
+
async VerifyByAsymmetricKey(req, cb) {
|
|
112
|
+
return this.request("VerifyByAsymmetricKey", req, cb);
|
|
113
|
+
}
|
|
114
|
+
async EnableDataKeys(req, cb) {
|
|
115
|
+
return this.request("EnableDataKeys", req, cb);
|
|
116
|
+
}
|
|
117
|
+
async ImportDataKey(req, cb) {
|
|
118
|
+
return this.request("ImportDataKey", req, cb);
|
|
83
119
|
}
|
|
84
120
|
async CreateKey(req, cb) {
|
|
85
121
|
return this.request("CreateKey", req, cb);
|
|
@@ -96,12 +132,18 @@ export class Client extends AbstractClient {
|
|
|
96
132
|
async DisableWhiteBoxKeys(req, cb) {
|
|
97
133
|
return this.request("DisableWhiteBoxKeys", req, cb);
|
|
98
134
|
}
|
|
99
|
-
async
|
|
100
|
-
return this.request("
|
|
135
|
+
async DisableDataKey(req, cb) {
|
|
136
|
+
return this.request("DisableDataKey", req, cb);
|
|
137
|
+
}
|
|
138
|
+
async DescribeDataKeys(req, cb) {
|
|
139
|
+
return this.request("DescribeDataKeys", req, cb);
|
|
101
140
|
}
|
|
102
141
|
async DisableKeyRotation(req, cb) {
|
|
103
142
|
return this.request("DisableKeyRotation", req, cb);
|
|
104
143
|
}
|
|
144
|
+
async ListKeyDetail(req, cb) {
|
|
145
|
+
return this.request("ListKeyDetail", req, cb);
|
|
146
|
+
}
|
|
105
147
|
async DisableWhiteBoxKey(req, cb) {
|
|
106
148
|
return this.request("DisableWhiteBoxKey", req, cb);
|
|
107
149
|
}
|
|
@@ -126,8 +168,8 @@ export class Client extends AbstractClient {
|
|
|
126
168
|
async CreateWhiteBoxKey(req, cb) {
|
|
127
169
|
return this.request("CreateWhiteBoxKey", req, cb);
|
|
128
170
|
}
|
|
129
|
-
async
|
|
130
|
-
return this.request("
|
|
171
|
+
async EnableDataKey(req, cb) {
|
|
172
|
+
return this.request("EnableDataKey", req, cb);
|
|
131
173
|
}
|
|
132
174
|
async EnableWhiteBoxKey(req, cb) {
|
|
133
175
|
return this.request("EnableWhiteBoxKey", req, cb);
|
|
@@ -147,8 +189,8 @@ export class Client extends AbstractClient {
|
|
|
147
189
|
async UpdateKeyDescription(req, cb) {
|
|
148
190
|
return this.request("UpdateKeyDescription", req, cb);
|
|
149
191
|
}
|
|
150
|
-
async
|
|
151
|
-
return this.request("
|
|
192
|
+
async CancelKeyArchive(req, cb) {
|
|
193
|
+
return this.request("CancelKeyArchive", req, cb);
|
|
152
194
|
}
|
|
153
195
|
async DescribeWhiteBoxDecryptKey(req, cb) {
|
|
154
196
|
return this.request("DescribeWhiteBoxDecryptKey", req, cb);
|
|
@@ -159,7 +201,10 @@ export class Client extends AbstractClient {
|
|
|
159
201
|
async GetRegions(req, cb) {
|
|
160
202
|
return this.request("GetRegions", req, cb);
|
|
161
203
|
}
|
|
162
|
-
async
|
|
163
|
-
return this.request("
|
|
204
|
+
async ListDataKeyDetail(req, cb) {
|
|
205
|
+
return this.request("ListDataKeyDetail", req, cb);
|
|
206
|
+
}
|
|
207
|
+
async DisableDataKeys(req, cb) {
|
|
208
|
+
return this.request("DisableDataKeys", req, cb);
|
|
164
209
|
}
|
|
165
210
|
}
|
|
@@ -36,6 +36,9 @@ export class Client extends AbstractClient {
|
|
|
36
36
|
async StopWorkflowRun(req, cb) {
|
|
37
37
|
return this.request("StopWorkflowRun", req, cb);
|
|
38
38
|
}
|
|
39
|
+
async ModifyAgent(req, cb) {
|
|
40
|
+
return this.request("ModifyAgent", req, cb);
|
|
41
|
+
}
|
|
39
42
|
async CreateAttributeLabel(req, cb) {
|
|
40
43
|
return this.request("CreateAttributeLabel", req, cb);
|
|
41
44
|
}
|
|
@@ -87,8 +90,8 @@ export class Client extends AbstractClient {
|
|
|
87
90
|
async DescribeSearchStatsGraph(req, cb) {
|
|
88
91
|
return this.request("DescribeSearchStatsGraph", req, cb);
|
|
89
92
|
}
|
|
90
|
-
async
|
|
91
|
-
return this.request("
|
|
93
|
+
async DeleteDocCate(req, cb) {
|
|
94
|
+
return this.request("DeleteDocCate", req, cb);
|
|
92
95
|
}
|
|
93
96
|
async VerifyQA(req, cb) {
|
|
94
97
|
return this.request("VerifyQA", req, cb);
|
|
@@ -147,8 +150,8 @@ export class Client extends AbstractClient {
|
|
|
147
150
|
async DescribeNodeRun(req, cb) {
|
|
148
151
|
return this.request("DescribeNodeRun", req, cb);
|
|
149
152
|
}
|
|
150
|
-
async
|
|
151
|
-
return this.request("
|
|
153
|
+
async ListWorkflowRuns(req, cb) {
|
|
154
|
+
return this.request("ListWorkflowRuns", req, cb);
|
|
152
155
|
}
|
|
153
156
|
async ListQACate(req, cb) {
|
|
154
157
|
return this.request("ListQACate", req, cb);
|
|
@@ -165,6 +168,9 @@ export class Client extends AbstractClient {
|
|
|
165
168
|
async ModifyDoc(req, cb) {
|
|
166
169
|
return this.request("ModifyDoc", req, cb);
|
|
167
170
|
}
|
|
171
|
+
async DeleteAgent(req, cb) {
|
|
172
|
+
return this.request("DeleteAgent", req, cb);
|
|
173
|
+
}
|
|
168
174
|
async CreateQACate(req, cb) {
|
|
169
175
|
return this.request("CreateQACate", req, cb);
|
|
170
176
|
}
|
|
@@ -207,6 +213,9 @@ export class Client extends AbstractClient {
|
|
|
207
213
|
async ExportQAList(req, cb) {
|
|
208
214
|
return this.request("ExportQAList", req, cb);
|
|
209
215
|
}
|
|
216
|
+
async CreateAgent(req, cb) {
|
|
217
|
+
return this.request("CreateAgent", req, cb);
|
|
218
|
+
}
|
|
210
219
|
async UploadAttributeLabel(req, cb) {
|
|
211
220
|
return this.request("UploadAttributeLabel", req, cb);
|
|
212
221
|
}
|
|
@@ -285,6 +294,9 @@ export class Client extends AbstractClient {
|
|
|
285
294
|
async DescribeWorkflowRun(req, cb) {
|
|
286
295
|
return this.request("DescribeWorkflowRun", req, cb);
|
|
287
296
|
}
|
|
297
|
+
async DescribeAppAgentList(req, cb) {
|
|
298
|
+
return this.request("DescribeAppAgentList", req, cb);
|
|
299
|
+
}
|
|
288
300
|
async RetryDocAudit(req, cb) {
|
|
289
301
|
return this.request("RetryDocAudit", req, cb);
|
|
290
302
|
}
|
|
@@ -105,6 +105,9 @@ export class Client extends AbstractClient {
|
|
|
105
105
|
async DescribeInstance(req, cb) {
|
|
106
106
|
return this.request("DescribeInstance", req, cb);
|
|
107
107
|
}
|
|
108
|
+
async DescribeMessageDetails(req, cb) {
|
|
109
|
+
return this.request("DescribeMessageDetails", req, cb);
|
|
110
|
+
}
|
|
108
111
|
async DeleteTopic(req, cb) {
|
|
109
112
|
return this.request("DeleteTopic", req, cb);
|
|
110
113
|
}
|
|
@@ -99,6 +99,9 @@ export class Client extends AbstractClient {
|
|
|
99
99
|
async DescribeMQTTMessage(req, cb) {
|
|
100
100
|
return this.request("DescribeMQTTMessage", req, cb);
|
|
101
101
|
}
|
|
102
|
+
async ChangeMigratingTopicToNextStage(req, cb) {
|
|
103
|
+
return this.request("ChangeMigratingTopicToNextStage", req, cb);
|
|
104
|
+
}
|
|
102
105
|
async DescribeConsumerLag(req, cb) {
|
|
103
106
|
return this.request("DescribeConsumerLag", req, cb);
|
|
104
107
|
}
|
|
@@ -189,8 +192,8 @@ export class Client extends AbstractClient {
|
|
|
189
192
|
async DescribeMigrationTaskList(req, cb) {
|
|
190
193
|
return this.request("DescribeMigrationTaskList", req, cb);
|
|
191
194
|
}
|
|
192
|
-
async
|
|
193
|
-
return this.request("
|
|
195
|
+
async DescribeConsumerClientList(req, cb) {
|
|
196
|
+
return this.request("DescribeConsumerClientList", req, cb);
|
|
194
197
|
}
|
|
195
198
|
async DescribeMigratingTopicStats(req, cb) {
|
|
196
199
|
return this.request("DescribeMigratingTopicStats", req, cb);
|
|
@@ -423,6 +423,9 @@ export class Client extends AbstractClient {
|
|
|
423
423
|
async DescribeDatabaseInfoList(req, cb) {
|
|
424
424
|
return this.request("DescribeDatabaseInfoList", req, cb);
|
|
425
425
|
}
|
|
426
|
+
async ModifyRuleTemplate(req, cb) {
|
|
427
|
+
return this.request("ModifyRuleTemplate", req, cb);
|
|
428
|
+
}
|
|
426
429
|
async DescribeDependOpsTasks(req, cb) {
|
|
427
430
|
return this.request("DescribeDependOpsTasks", req, cb);
|
|
428
431
|
}
|
|
@@ -462,8 +465,8 @@ export class Client extends AbstractClient {
|
|
|
462
465
|
async CreateRule(req, cb) {
|
|
463
466
|
return this.request("CreateRule", req, cb);
|
|
464
467
|
}
|
|
465
|
-
async
|
|
466
|
-
return this.request("
|
|
468
|
+
async DescribeRuleGroupSubscription(req, cb) {
|
|
469
|
+
return this.request("DescribeRuleGroupSubscription", req, cb);
|
|
467
470
|
}
|
|
468
471
|
async DescribeEvent(req, cb) {
|
|
469
472
|
return this.request("DescribeEvent", req, cb);
|
|
@@ -519,6 +522,9 @@ export class Client extends AbstractClient {
|
|
|
519
522
|
async UploadContent(req, cb) {
|
|
520
523
|
return this.request("UploadContent", req, cb);
|
|
521
524
|
}
|
|
525
|
+
async DescribeDsTaskVersionList(req, cb) {
|
|
526
|
+
return this.request("DescribeDsTaskVersionList", req, cb);
|
|
527
|
+
}
|
|
522
528
|
async DescribeCodeTemplateDetail(req, cb) {
|
|
523
529
|
return this.request("DescribeCodeTemplateDetail", req, cb);
|
|
524
530
|
}
|
|
@@ -627,8 +633,8 @@ export class Client extends AbstractClient {
|
|
|
627
633
|
async RegisterDsEventListener(req, cb) {
|
|
628
634
|
return this.request("RegisterDsEventListener", req, cb);
|
|
629
635
|
}
|
|
630
|
-
async
|
|
631
|
-
return this.request("
|
|
636
|
+
async DescribeDsTaskVersionInfo(req, cb) {
|
|
637
|
+
return this.request("DescribeDsTaskVersionInfo", req, cb);
|
|
632
638
|
}
|
|
633
639
|
async DeleteTaskDs(req, cb) {
|
|
634
640
|
return this.request("DeleteTaskDs", req, cb);
|
|
@@ -768,6 +774,9 @@ export class Client extends AbstractClient {
|
|
|
768
774
|
async DescribeDataSourceInfoList(req, cb) {
|
|
769
775
|
return this.request("DescribeDataSourceInfoList", req, cb);
|
|
770
776
|
}
|
|
777
|
+
async GetPaginationTaskScript(req, cb) {
|
|
778
|
+
return this.request("GetPaginationTaskScript", req, cb);
|
|
779
|
+
}
|
|
771
780
|
async DescribeFunctionKinds(req, cb) {
|
|
772
781
|
return this.request("DescribeFunctionKinds", req, cb);
|
|
773
782
|
}
|
package/package.json
CHANGED
|
@@ -1,40 +1,124 @@
|
|
|
1
1
|
import { ClientProfile, Credential, ClientConfig, HttpProfile, DynamicCredential } from "./interface";
|
|
2
|
+
/**
|
|
3
|
+
* Callback function type for API responses
|
|
4
|
+
* @template TReuslt Type of the response data
|
|
5
|
+
*/
|
|
2
6
|
export declare type ResponseCallback<TReuslt = any> = (error: string, rep: TReuslt) => void;
|
|
7
|
+
/**
|
|
8
|
+
* Options for HTTP requests
|
|
9
|
+
*/
|
|
3
10
|
export interface RequestOptions extends Partial<Pick<HttpProfile, "headers">> {
|
|
11
|
+
/**
|
|
12
|
+
* Whether the request is multipart
|
|
13
|
+
*/
|
|
4
14
|
multipart?: boolean;
|
|
5
15
|
/**
|
|
6
|
-
*
|
|
16
|
+
* Abort request signal
|
|
7
17
|
*/
|
|
8
18
|
signal?: AbortSignal;
|
|
9
19
|
}
|
|
10
20
|
declare type ResponseData = any;
|
|
11
21
|
/**
|
|
12
|
-
*
|
|
22
|
+
* Abstract base client for Tencent Cloud SDK
|
|
23
|
+
*
|
|
24
|
+
* This class provides common functionality for making API requests to Tencent Cloud services,
|
|
25
|
+
* including request signing, error handling, and response parsing.
|
|
13
26
|
*/
|
|
14
27
|
export declare class AbstractClient {
|
|
28
|
+
/**
|
|
29
|
+
* SDK version string
|
|
30
|
+
*/
|
|
15
31
|
sdkVersion: string;
|
|
32
|
+
/**
|
|
33
|
+
* API request path (usually "/")
|
|
34
|
+
*/
|
|
16
35
|
path: string;
|
|
36
|
+
/**
|
|
37
|
+
* User's security credentials (SecretId, SecretKey, Token)
|
|
38
|
+
*/
|
|
17
39
|
credential: Credential | DynamicCredential;
|
|
40
|
+
/**
|
|
41
|
+
* The region of the service (e.g. "ap-shanghai")
|
|
42
|
+
*/
|
|
18
43
|
region: string;
|
|
44
|
+
/**
|
|
45
|
+
* The API version of the service (e.g. "2017-03-12")
|
|
46
|
+
*/
|
|
19
47
|
apiVersion: string;
|
|
48
|
+
/**
|
|
49
|
+
* The service endpoint URL (e.g. "cvm.tencentcloudapi.com")
|
|
50
|
+
*/
|
|
20
51
|
endpoint: string;
|
|
52
|
+
/**
|
|
53
|
+
* Optional configuration instance
|
|
54
|
+
*/
|
|
21
55
|
profile: ClientProfile;
|
|
22
56
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @param {string}
|
|
26
|
-
* @param {
|
|
27
|
-
* @param {
|
|
28
|
-
* @param {
|
|
57
|
+
* Constructs a new AbstractClient instance
|
|
58
|
+
*
|
|
59
|
+
* @param {string} endpoint - The service endpoint URL (e.g. "cvm.tencentcloudapi.com")
|
|
60
|
+
* @param {string} version - The API version of the service (e.g. "2017-03-12")
|
|
61
|
+
* @param {ClientConfig} config - Configuration object containing:
|
|
62
|
+
* @param {Credential|DynamicCredential} config.credential - Credentials for authentication
|
|
63
|
+
* @param {string} [config.region] - The region of the service (e.g. "ap-shanghai")
|
|
64
|
+
* @param {ClientProfile} [config.profile={}] - Optional client configuration profile
|
|
65
|
+
*
|
|
66
|
+
* @throws {TencentCloudSDKHttpException} If invalid language is specified in profile
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* const client = new AbstractClient(
|
|
70
|
+
* "cvm.tencentcloudapi.com",
|
|
71
|
+
* "2017-03-12",
|
|
72
|
+
* {
|
|
73
|
+
* credential: {
|
|
74
|
+
* secretId: process.env.secretId,
|
|
75
|
+
* secretKey: process.env.secretKey,
|
|
76
|
+
* },
|
|
77
|
+
* region: "ap-shanghai",
|
|
78
|
+
* profile: {}
|
|
79
|
+
* }
|
|
80
|
+
* );
|
|
29
81
|
*/
|
|
30
82
|
constructor(endpoint: string, version: string, { credential, region, profile }: ClientConfig);
|
|
83
|
+
/**
|
|
84
|
+
* Get credential information
|
|
85
|
+
* @returns {Promise<Credential>} Promise that resolves with credential information
|
|
86
|
+
*/
|
|
31
87
|
getCredential(): Promise<Credential>;
|
|
32
88
|
/**
|
|
33
|
-
*
|
|
89
|
+
* Make an API request to Tencent Cloud service
|
|
90
|
+
*
|
|
91
|
+
* @param {string} action - The API action name to call
|
|
92
|
+
* @param {any} req - The request payload/parameters
|
|
93
|
+
* @param {ResponseCallback|RequestOptions} [options] - Either request options or callback function
|
|
94
|
+
* @param {ResponseCallback} [cb] - Optional callback function for async operation
|
|
95
|
+
* @returns {Promise<ResponseData>} Promise that resolves with the API response data
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* // Using promise
|
|
99
|
+
* client.request('DescribeInstances', {Limit: 10})
|
|
100
|
+
* .then(data => console.log(data))
|
|
101
|
+
* .catch(err => console.error(err));
|
|
102
|
+
*
|
|
103
|
+
* // Using callback
|
|
104
|
+
* client.request('DescribeInstances', {Limit: 10}, (err, data) => {
|
|
105
|
+
* if (err) console.error(err);
|
|
106
|
+
* else console.log(data);
|
|
107
|
+
* });
|
|
108
|
+
*
|
|
109
|
+
* // With options
|
|
110
|
+
* client.request('DescribeInstances', {Limit: 10}, {signal: abortController.signal})
|
|
111
|
+
* .then(data => console.log(data))
|
|
112
|
+
* .catch(err => console.error(err));
|
|
34
113
|
*/
|
|
35
114
|
request(action: string, req: any, options?: ResponseCallback | RequestOptions, cb?: ResponseCallback): Promise<ResponseData>;
|
|
36
115
|
/**
|
|
37
|
-
*
|
|
116
|
+
* Make a request with octet-stream content type
|
|
117
|
+
* @param {string} action API action name
|
|
118
|
+
* @param {any} req Request data
|
|
119
|
+
* @param {ResponseCallback|RequestOptions} [options] Request options or callback
|
|
120
|
+
* @param {ResponseCallback} [cb] Callback function
|
|
121
|
+
* @returns {Promise<any>} Promise that resolves with response data
|
|
38
122
|
*/
|
|
39
123
|
requestOctetStream(action: string, req: any, options?: ResponseCallback | RequestOptions, cb?: ResponseCallback): Promise<any>;
|
|
40
124
|
/**
|
|
@@ -45,17 +129,31 @@ export declare class AbstractClient {
|
|
|
45
129
|
* @inner
|
|
46
130
|
*/
|
|
47
131
|
private doRequestWithSign3;
|
|
132
|
+
/**
|
|
133
|
+
* Parse HTTP response
|
|
134
|
+
* @param {Response} res HTTP response object
|
|
135
|
+
* @returns {Promise<ResponseData>} Promise that resolves with parsed response data
|
|
136
|
+
* @throws {TencentCloudSDKHttpException} If response contains error
|
|
137
|
+
*/
|
|
48
138
|
private parseResponse;
|
|
49
139
|
/**
|
|
50
|
-
*
|
|
140
|
+
* Merge nested data into flat structure
|
|
141
|
+
* @param {any} data Input data
|
|
142
|
+
* @param {string} [prefix=""] Key prefix
|
|
143
|
+
* @returns {any} Flattened data object
|
|
51
144
|
*/
|
|
52
145
|
private mergeData;
|
|
53
146
|
/**
|
|
54
|
-
*
|
|
147
|
+
* Format request data with required fields and signature
|
|
148
|
+
* @param {string} action API action name
|
|
149
|
+
* @param {RequestData} params Request parameters
|
|
150
|
+
* @returns {Promise<RequestData>} Promise that resolves with formatted request data
|
|
55
151
|
*/
|
|
56
152
|
private formatRequestData;
|
|
57
153
|
/**
|
|
58
|
-
*
|
|
154
|
+
* Format string for signature calculation
|
|
155
|
+
* @param {RequestData} params Request parameters
|
|
156
|
+
* @returns {string} String to be signed
|
|
59
157
|
*/
|
|
60
158
|
private formatSignString;
|
|
61
159
|
}
|