tencentcloud-sdk-nodejs-intl-en 3.0.1281 → 3.0.1283
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/package.json +1 -1
- package/tencentcloud/apm/v20210622/apm_client.js +241 -65
- package/tencentcloud/apm/v20210622/models.js +3213 -426
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/cvm/v20170312/models.js +49 -4
- package/tencentcloud/lkeap/v20240522/lkeap_client.js +14 -0
- package/tencentcloud/lkeap/v20240522/models.js +138 -0
- package/tencentcloud/ocr/v20181119/models.js +317 -171
- package/tencentcloud/ocr/v20181119/ocr_client.js +16 -2
- package/tencentcloud/teo/v20220901/models.js +2 -2
- package/tencentcloud/trtc/v20190722/trtc_client.js +1 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1283";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -1567,7 +1567,7 @@ class PurchaseReservedInstancesOfferingRequest extends AbstractModel {
|
|
|
1567
1567
|
this.ClientToken = null;
|
|
1568
1568
|
|
|
1569
1569
|
/**
|
|
1570
|
-
* Reserved instance name.<br><li>The RI name defaults to
|
|
1570
|
+
* Reserved instance name.<br><li>The RI name defaults to "unnamed" if this parameter is left empty.</li><li>You can enter any name within 60 characters (including the pattern string).</li>
|
|
1571
1571
|
* @type {string || null}
|
|
1572
1572
|
*/
|
|
1573
1573
|
this.ReservedInstanceName = null;
|
|
@@ -3800,6 +3800,12 @@ class ConfigureChcDeployVpcRequest extends AbstractModel {
|
|
|
3800
3800
|
*/
|
|
3801
3801
|
this.DeploySecurityGroupIds = null;
|
|
3802
3802
|
|
|
3803
|
+
/**
|
|
3804
|
+
*
|
|
3805
|
+
* @type {ChcDeployExtraConfig || null}
|
|
3806
|
+
*/
|
|
3807
|
+
this.ChcDeployExtraConfig = null;
|
|
3808
|
+
|
|
3803
3809
|
}
|
|
3804
3810
|
|
|
3805
3811
|
/**
|
|
@@ -3818,6 +3824,12 @@ class ConfigureChcDeployVpcRequest extends AbstractModel {
|
|
|
3818
3824
|
}
|
|
3819
3825
|
this.DeploySecurityGroupIds = 'DeploySecurityGroupIds' in params ? params.DeploySecurityGroupIds : null;
|
|
3820
3826
|
|
|
3827
|
+
if (params.ChcDeployExtraConfig) {
|
|
3828
|
+
let obj = new ChcDeployExtraConfig();
|
|
3829
|
+
obj.deserialize(params.ChcDeployExtraConfig)
|
|
3830
|
+
this.ChcDeployExtraConfig = obj;
|
|
3831
|
+
}
|
|
3832
|
+
|
|
3821
3833
|
}
|
|
3822
3834
|
}
|
|
3823
3835
|
|
|
@@ -4595,6 +4607,12 @@ class DescribeDisasterRecoverGroupQuotaResponse extends AbstractModel {
|
|
|
4595
4607
|
*/
|
|
4596
4608
|
this.CvmInRackGroupQuota = null;
|
|
4597
4609
|
|
|
4610
|
+
/**
|
|
4611
|
+
*
|
|
4612
|
+
* @type {number || null}
|
|
4613
|
+
*/
|
|
4614
|
+
this.CvmInSwitchGroupQuota = null;
|
|
4615
|
+
|
|
4598
4616
|
/**
|
|
4599
4617
|
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
4600
4618
|
* @type {string || null}
|
|
@@ -4615,6 +4633,7 @@ class DescribeDisasterRecoverGroupQuotaResponse extends AbstractModel {
|
|
|
4615
4633
|
this.CvmInHostGroupQuota = 'CvmInHostGroupQuota' in params ? params.CvmInHostGroupQuota : null;
|
|
4616
4634
|
this.CvmInSwGroupQuota = 'CvmInSwGroupQuota' in params ? params.CvmInSwGroupQuota : null;
|
|
4617
4635
|
this.CvmInRackGroupQuota = 'CvmInRackGroupQuota' in params ? params.CvmInRackGroupQuota : null;
|
|
4636
|
+
this.CvmInSwitchGroupQuota = 'CvmInSwitchGroupQuota' in params ? params.CvmInSwitchGroupQuota : null;
|
|
4618
4637
|
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
4619
4638
|
|
|
4620
4639
|
}
|
|
@@ -4886,7 +4905,7 @@ class InquirePricePurchaseReservedInstancesOfferingRequest extends AbstractMode
|
|
|
4886
4905
|
this.ClientToken = null;
|
|
4887
4906
|
|
|
4888
4907
|
/**
|
|
4889
|
-
* Reserved instance name.<br><li>The RI name defaults to
|
|
4908
|
+
* Reserved instance name.<br><li>The RI name defaults to "unnamed" if this parameter is left empty.</li><li>You can enter any name within 60 characters (including the pattern string).</li>
|
|
4890
4909
|
* @type {string || null}
|
|
4891
4910
|
*/
|
|
4892
4911
|
this.ReservedInstanceName = null;
|
|
@@ -6470,6 +6489,12 @@ If the dry run succeeds, the RequestId will be returned.
|
|
|
6470
6489
|
*/
|
|
6471
6490
|
this.DisableApiTermination = null;
|
|
6472
6491
|
|
|
6492
|
+
/**
|
|
6493
|
+
*
|
|
6494
|
+
* @type {boolean || null}
|
|
6495
|
+
*/
|
|
6496
|
+
this.EnableJumboFrame = null;
|
|
6497
|
+
|
|
6473
6498
|
/**
|
|
6474
6499
|
* Custom metadata. specifies that custom metadata key-value pairs can be added when creating a CVM.
|
|
6475
6500
|
Note: this field is in beta test.
|
|
@@ -6585,6 +6610,7 @@ Note: this field is in beta test.
|
|
|
6585
6610
|
this.InstanceChargePrepaid = obj;
|
|
6586
6611
|
}
|
|
6587
6612
|
this.DisableApiTermination = 'DisableApiTermination' in params ? params.DisableApiTermination : null;
|
|
6613
|
+
this.EnableJumboFrame = 'EnableJumboFrame' in params ? params.EnableJumboFrame : null;
|
|
6588
6614
|
|
|
6589
6615
|
if (params.Metadata) {
|
|
6590
6616
|
let obj = new Metadata();
|
|
@@ -7905,6 +7931,12 @@ class ConfigureChcAssistVpcRequest extends AbstractModel {
|
|
|
7905
7931
|
*/
|
|
7906
7932
|
this.DeploySecurityGroupIds = null;
|
|
7907
7933
|
|
|
7934
|
+
/**
|
|
7935
|
+
*
|
|
7936
|
+
* @type {ChcDeployExtraConfig || null}
|
|
7937
|
+
*/
|
|
7938
|
+
this.ChcDeployExtraConfig = null;
|
|
7939
|
+
|
|
7908
7940
|
}
|
|
7909
7941
|
|
|
7910
7942
|
/**
|
|
@@ -7930,6 +7962,12 @@ class ConfigureChcAssistVpcRequest extends AbstractModel {
|
|
|
7930
7962
|
}
|
|
7931
7963
|
this.DeploySecurityGroupIds = 'DeploySecurityGroupIds' in params ? params.DeploySecurityGroupIds : null;
|
|
7932
7964
|
|
|
7965
|
+
if (params.ChcDeployExtraConfig) {
|
|
7966
|
+
let obj = new ChcDeployExtraConfig();
|
|
7967
|
+
obj.deserialize(params.ChcDeployExtraConfig)
|
|
7968
|
+
this.ChcDeployExtraConfig = obj;
|
|
7969
|
+
}
|
|
7970
|
+
|
|
7933
7971
|
}
|
|
7934
7972
|
}
|
|
7935
7973
|
|
|
@@ -11062,6 +11100,12 @@ Note: This field may return null, indicating that no valid value is found.
|
|
|
11062
11100
|
*/
|
|
11063
11101
|
this.CreateTime = null;
|
|
11064
11102
|
|
|
11103
|
+
/**
|
|
11104
|
+
*
|
|
11105
|
+
* @type {number || null}
|
|
11106
|
+
*/
|
|
11107
|
+
this.Affinity = null;
|
|
11108
|
+
|
|
11065
11109
|
/**
|
|
11066
11110
|
* List of tags associated with the placement group.
|
|
11067
11111
|
* @type {Array.<Tag> || null}
|
|
@@ -11084,6 +11128,7 @@ Note: This field may return null, indicating that no valid value is found.
|
|
|
11084
11128
|
this.CurrentNum = 'CurrentNum' in params ? params.CurrentNum : null;
|
|
11085
11129
|
this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null;
|
|
11086
11130
|
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
|
|
11131
|
+
this.Affinity = 'Affinity' in params ? params.Affinity : null;
|
|
11087
11132
|
|
|
11088
11133
|
if (params.Tags) {
|
|
11089
11134
|
this.Tags = new Array();
|
|
@@ -11345,7 +11390,7 @@ class DescribeImagesRequest extends AbstractModel {
|
|
|
11345
11390
|
<li><strong>tag-value</strong></li>
|
|
11346
11391
|
<p style="padding-left: 30px;">Filter by the <strong>tag value</strong>.</p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Optional</p>
|
|
11347
11392
|
<li><strong>tag:tag-key</strong></li>
|
|
11348
|
-
<p style="padding-left: 30px;">Filter by the <strong>tag key-value pair</strong>. Replace
|
|
11393
|
+
<p style="padding-left: 30px;">Filter by the <strong>tag key-value pair</strong>. Replace "tag-key" with the actual value. </p><p style="padding-left: 30px;">Type: String</p><p style="padding-left: 30px;">Optional</p>
|
|
11349
11394
|
* @type {Array.<Filter> || null}
|
|
11350
11395
|
*/
|
|
11351
11396
|
this.Filters = null;
|
|
@@ -11363,7 +11408,7 @@ class DescribeImagesRequest extends AbstractModel {
|
|
|
11363
11408
|
this.Limit = null;
|
|
11364
11409
|
|
|
11365
11410
|
/**
|
|
11366
|
-
* Instance type, e.g. `
|
|
11411
|
+
* Instance type, e.g. `SA5.MEDIUM2`
|
|
11367
11412
|
* @type {string || null}
|
|
11368
11413
|
*/
|
|
11369
11414
|
this.InstanceType = null;
|
|
@@ -18,6 +18,7 @@ const models = require("./models");
|
|
|
18
18
|
const AbstractClient = require('../../common/abstract_client')
|
|
19
19
|
const CreateSplitDocumentFlowRequest = models.CreateSplitDocumentFlowRequest;
|
|
20
20
|
const ReconstructDocumentSSEResponse = models.ReconstructDocumentSSEResponse;
|
|
21
|
+
const GetEmbeddingRequest = models.GetEmbeddingRequest;
|
|
21
22
|
const GetReconstructDocumentResultRequest = models.GetReconstructDocumentResultRequest;
|
|
22
23
|
const Usage = models.Usage;
|
|
23
24
|
const CreateSplitDocumentFlowResponse = models.CreateSplitDocumentFlowResponse;
|
|
@@ -31,11 +32,13 @@ const CreateReconstructDocumentFlowRequest = models.CreateReconstructDocumentFlo
|
|
|
31
32
|
const GetSplitDocumentResultResponse = models.GetSplitDocumentResultResponse;
|
|
32
33
|
const ReconstructDocumentFailedPage = models.ReconstructDocumentFailedPage;
|
|
33
34
|
const SplitDocumentFailedPage = models.SplitDocumentFailedPage;
|
|
35
|
+
const GetEmbeddingResponse = models.GetEmbeddingResponse;
|
|
34
36
|
const QueryRewriteRequest = models.QueryRewriteRequest;
|
|
35
37
|
const CreateSplitDocumentFlowConfig = models.CreateSplitDocumentFlowConfig;
|
|
36
38
|
const RunRerankResponse = models.RunRerankResponse;
|
|
37
39
|
const CreateReconstructDocumentFlowResponse = models.CreateReconstructDocumentFlowResponse;
|
|
38
40
|
const GetSplitDocumentResultRequest = models.GetSplitDocumentResultRequest;
|
|
41
|
+
const EmbeddingObject = models.EmbeddingObject;
|
|
39
42
|
const Message = models.Message;
|
|
40
43
|
const QueryRewriteResponse = models.QueryRewriteResponse;
|
|
41
44
|
|
|
@@ -130,6 +133,17 @@ There is a call limit for single-account for this API. If you need to increase t
|
|
|
130
133
|
this.request("CreateSplitDocumentFlow", req, resp, cb);
|
|
131
134
|
}
|
|
132
135
|
|
|
136
|
+
/**
|
|
137
|
+
* This API is used to call the text representation model to convert text into a vector represented by numbers, which can be used in scenarios such as text retrieval, information recommendation, and knowledge mining. There is a single-account call limit control for this API. If you need to increase the concurrency limit, please contact us (https://cloud.tencent.com/act/event/Online_service).
|
|
138
|
+
* @param {GetEmbeddingRequest} req
|
|
139
|
+
* @param {function(string, GetEmbeddingResponse):void} cb
|
|
140
|
+
* @public
|
|
141
|
+
*/
|
|
142
|
+
GetEmbedding(req, cb) {
|
|
143
|
+
let resp = new GetEmbeddingResponse();
|
|
144
|
+
this.request("GetEmbedding", req, resp, cb);
|
|
145
|
+
}
|
|
146
|
+
|
|
133
147
|
|
|
134
148
|
}
|
|
135
149
|
module.exports = LkeapClient;
|
|
@@ -191,6 +191,58 @@ class ReconstructDocumentSSEResponse extends AbstractModel {
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
/**
|
|
195
|
+
* GetEmbedding request structure.
|
|
196
|
+
* @class
|
|
197
|
+
*/
|
|
198
|
+
class GetEmbeddingRequest extends AbstractModel {
|
|
199
|
+
constructor(){
|
|
200
|
+
super();
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Select the model for generating vectors
|
|
204
|
+
Note: Optional [adp-text-embedding-0.5b]
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
* @type {string || null}
|
|
208
|
+
*/
|
|
209
|
+
this.Model = null;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Text that requires embedding. The maximum length of a single text is 500 characters. The maximum total number of entries is 7.
|
|
213
|
+
* @type {Array.<string> || null}
|
|
214
|
+
*/
|
|
215
|
+
this.Inputs = null;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* The type of text vectorization. To achieve better retrieval performance, it is recommended to distinguish between query text and document text types. For symmetric tasks such as clustering and classification, there is no need for special specification simply use the system default value "document".
|
|
219
|
+
* @type {string || null}
|
|
220
|
+
*/
|
|
221
|
+
this.TextType = null;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* This field is not currently supported.
|
|
225
|
+
* @type {string || null}
|
|
226
|
+
*/
|
|
227
|
+
this.Instruction = null;
|
|
228
|
+
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @private
|
|
233
|
+
*/
|
|
234
|
+
deserialize(params) {
|
|
235
|
+
if (!params) {
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
this.Model = 'Model' in params ? params.Model : null;
|
|
239
|
+
this.Inputs = 'Inputs' in params ? params.Inputs : null;
|
|
240
|
+
this.TextType = 'TextType' in params ? params.TextType : null;
|
|
241
|
+
this.Instruction = 'Instruction' in params ? params.Instruction : null;
|
|
242
|
+
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
194
246
|
/**
|
|
195
247
|
* GetReconstructDocumentResult request structure.
|
|
196
248
|
* @class
|
|
@@ -797,6 +849,61 @@ class SplitDocumentFailedPage extends AbstractModel {
|
|
|
797
849
|
}
|
|
798
850
|
}
|
|
799
851
|
|
|
852
|
+
/**
|
|
853
|
+
* GetEmbedding response structure.
|
|
854
|
+
* @class
|
|
855
|
+
*/
|
|
856
|
+
class GetEmbeddingResponse extends AbstractModel {
|
|
857
|
+
constructor(){
|
|
858
|
+
super();
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* Feature.
|
|
862
|
+
* @type {Array.<EmbeddingObject> || null}
|
|
863
|
+
*/
|
|
864
|
+
this.Data = null;
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* Consumption. Returns TotalToken.
|
|
868
|
+
* @type {Usage || null}
|
|
869
|
+
*/
|
|
870
|
+
this.Usage = null;
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
874
|
+
* @type {string || null}
|
|
875
|
+
*/
|
|
876
|
+
this.RequestId = null;
|
|
877
|
+
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* @private
|
|
882
|
+
*/
|
|
883
|
+
deserialize(params) {
|
|
884
|
+
if (!params) {
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
if (params.Data) {
|
|
889
|
+
this.Data = new Array();
|
|
890
|
+
for (let z in params.Data) {
|
|
891
|
+
let obj = new EmbeddingObject();
|
|
892
|
+
obj.deserialize(params.Data[z]);
|
|
893
|
+
this.Data.push(obj);
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
if (params.Usage) {
|
|
898
|
+
let obj = new Usage();
|
|
899
|
+
obj.deserialize(params.Usage)
|
|
900
|
+
this.Usage = obj;
|
|
901
|
+
}
|
|
902
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
903
|
+
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
|
|
800
907
|
/**
|
|
801
908
|
* QueryRewrite request structure.
|
|
802
909
|
* @class
|
|
@@ -1007,6 +1114,34 @@ class GetSplitDocumentResultRequest extends AbstractModel {
|
|
|
1007
1114
|
}
|
|
1008
1115
|
}
|
|
1009
1116
|
|
|
1117
|
+
/**
|
|
1118
|
+
* Vector.
|
|
1119
|
+
* @class
|
|
1120
|
+
*/
|
|
1121
|
+
class EmbeddingObject extends AbstractModel {
|
|
1122
|
+
constructor(){
|
|
1123
|
+
super();
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* Vector.
|
|
1127
|
+
* @type {Array.<number> || null}
|
|
1128
|
+
*/
|
|
1129
|
+
this.Embedding = null;
|
|
1130
|
+
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* @private
|
|
1135
|
+
*/
|
|
1136
|
+
deserialize(params) {
|
|
1137
|
+
if (!params) {
|
|
1138
|
+
return;
|
|
1139
|
+
}
|
|
1140
|
+
this.Embedding = 'Embedding' in params ? params.Embedding : null;
|
|
1141
|
+
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1010
1145
|
/**
|
|
1011
1146
|
* Session content.
|
|
1012
1147
|
* @class
|
|
@@ -1099,6 +1234,7 @@ class QueryRewriteResponse extends AbstractModel {
|
|
|
1099
1234
|
module.exports = {
|
|
1100
1235
|
CreateSplitDocumentFlowRequest: CreateSplitDocumentFlowRequest,
|
|
1101
1236
|
ReconstructDocumentSSEResponse: ReconstructDocumentSSEResponse,
|
|
1237
|
+
GetEmbeddingRequest: GetEmbeddingRequest,
|
|
1102
1238
|
GetReconstructDocumentResultRequest: GetReconstructDocumentResultRequest,
|
|
1103
1239
|
Usage: Usage,
|
|
1104
1240
|
CreateSplitDocumentFlowResponse: CreateSplitDocumentFlowResponse,
|
|
@@ -1112,11 +1248,13 @@ module.exports = {
|
|
|
1112
1248
|
GetSplitDocumentResultResponse: GetSplitDocumentResultResponse,
|
|
1113
1249
|
ReconstructDocumentFailedPage: ReconstructDocumentFailedPage,
|
|
1114
1250
|
SplitDocumentFailedPage: SplitDocumentFailedPage,
|
|
1251
|
+
GetEmbeddingResponse: GetEmbeddingResponse,
|
|
1115
1252
|
QueryRewriteRequest: QueryRewriteRequest,
|
|
1116
1253
|
CreateSplitDocumentFlowConfig: CreateSplitDocumentFlowConfig,
|
|
1117
1254
|
RunRerankResponse: RunRerankResponse,
|
|
1118
1255
|
CreateReconstructDocumentFlowResponse: CreateReconstructDocumentFlowResponse,
|
|
1119
1256
|
GetSplitDocumentResultRequest: GetSplitDocumentResultRequest,
|
|
1257
|
+
EmbeddingObject: EmbeddingObject,
|
|
1120
1258
|
Message: Message,
|
|
1121
1259
|
QueryRewriteResponse: QueryRewriteResponse,
|
|
1122
1260
|
|