tencentcloud-sdk-nodejs 4.1.177 → 4.1.178

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.
Files changed (39) hide show
  1. package/es/common/sdk_version.js +1 -1
  2. package/es/services/cbs/v20170312/cbs_client.js +3 -0
  3. package/es/services/cynosdb/v20190107/cynosdb_client.js +12 -0
  4. package/es/services/es/v20180416/es_client.js +15 -12
  5. package/es/services/mongodb/v20190725/mongodb_client.js +18 -6
  6. package/es/services/nlp/v20190408/nlp_client.js +2 -11
  7. package/es/services/vod/v20180717/vod_client.js +19 -4
  8. package/package.json +1 -1
  9. package/tencentcloud/common/sdk_version.d.ts +1 -1
  10. package/tencentcloud/common/sdk_version.js +1 -1
  11. package/tencentcloud/services/cbs/v20170312/cbs_client.d.ts +5 -1
  12. package/tencentcloud/services/cbs/v20170312/cbs_client.js +6 -0
  13. package/tencentcloud/services/cbs/v20170312/cbs_models.d.ts +31 -0
  14. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +2 -2
  15. package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_models.d.ts +30 -31
  16. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +6 -6
  17. package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.d.ts +17 -1
  18. package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.js +24 -0
  19. package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +569 -218
  20. package/tencentcloud/services/es/v20180416/es_client.d.ts +17 -13
  21. package/tencentcloud/services/es/v20180416/es_client.js +24 -18
  22. package/tencentcloud/services/es/v20180416/es_models.d.ts +250 -24
  23. package/tencentcloud/services/gs/v20191118/gs_models.d.ts +4 -0
  24. package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +24 -8
  25. package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +34 -10
  26. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +112 -20
  27. package/tencentcloud/services/nlp/v20190408/nlp_client.d.ts +3 -21
  28. package/tencentcloud/services/nlp/v20190408/nlp_client.js +3 -27
  29. package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +4 -134
  30. package/tencentcloud/services/region/v20220627/region_models.d.ts +10 -51
  31. package/tencentcloud/services/tcr/v20190924/tcr_client.d.ts +1 -1
  32. package/tencentcloud/services/tcr/v20190924/tcr_models.d.ts +93 -47
  33. package/tencentcloud/services/tcss/v20201101/tcss_client.d.ts +78 -26
  34. package/tencentcloud/services/tcss/v20201101/tcss_client.js +78 -26
  35. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +2 -2
  36. package/tencentcloud/services/vod/v20180717/vod_client.d.ts +32 -8
  37. package/tencentcloud/services/vod/v20180717/vod_client.js +43 -9
  38. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +692 -198
  39. package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +1 -1
@@ -51,6 +51,12 @@ class Client extends abstract_client_1.AbstractClient {
51
51
  async DescribeDBInstanceNodeProperty(req, cb) {
52
52
  return this.request("DescribeDBInstanceNodeProperty", req, cb);
53
53
  }
54
+ /**
55
+ * 本接口(ModifyDBInstanceNetworkAddress)用于修改云数据库实例的网络信息,支持基础网络切换为私有网络、私有网络切换私有网络。
56
+ */
57
+ async ModifyDBInstanceNetworkAddress(req, cb) {
58
+ return this.request("ModifyDBInstanceNetworkAddress", req, cb);
59
+ }
54
60
  /**
55
61
  * 本接口(DescribeDBInstanceParamTpl )用于查询当前账号下所有MongoDB数据库参数模板
56
62
  **说明:DescribeDBInstanceParamTpl API正在公测中,在此期间,该接口仅对公测用户开放**
@@ -118,6 +124,13 @@ class Client extends abstract_client_1.AbstractClient {
118
124
  async DeleteAuditLogFile(req, cb) {
119
125
  return this.request("DeleteAuditLogFile", req, cb);
120
126
  }
127
+ /**
128
+ * 该接口用于发起按 Key 闪回任务,依据数据的闪回 Key(默认为 id)对数据进行极速回档,快速恢复业务。
129
+ **说明:按 Key 闪回于2023年09月11日正式进行公测,在此期间,该接口仅对公测用户开放。**
130
+ */
131
+ async FlashBackDBInstance(req, cb) {
132
+ return this.request("FlashBackDBInstance", req, cb);
133
+ }
121
134
  /**
122
135
  * 本接口(DescribeAuditInstanceList)用于查询开通或未开通数据库审计的实例列表。
123
136
  */
@@ -230,11 +243,10 @@ class Client extends abstract_client_1.AbstractClient {
230
243
  return this.request("CreateBackupDownloadTask", req, cb);
231
244
  }
232
245
  /**
233
- * 该接口用于发起按 Key 闪回任务,依据数据的闪回 Key(默认为 id)对数据进行极速回档,快速恢复业务。
234
- **说明:按 Key 闪回于2023年09月11日正式进行公测,在此期间,该接口仅对公测用户开放。**
246
+ * 本接口(DescribeSRVConnectionDomain)用于查询MongoDB数据库当前的域名信息。
235
247
  */
236
- async FlashBackDBInstance(req, cb) {
237
- return this.request("FlashBackDBInstance", req, cb);
248
+ async DescribeSRVConnectionDomain(req, cb) {
249
+ return this.request("DescribeSRVConnectionDomain", req, cb);
238
250
  }
239
251
  /**
240
252
  * 本接口(ModifyAuditService)用于修改云数据库审计策略的服务配置,包括审计日志保存时长等。
@@ -272,6 +284,12 @@ class Client extends abstract_client_1.AbstractClient {
272
284
  async DescribeSlowLogs(req, cb) {
273
285
  return this.request("DescribeSlowLogs", req, cb);
274
286
  }
287
+ /**
288
+ * 本接口(UpgradeDBInstanceKernelVersion)用于升级数据库实例内核版本。
289
+ */
290
+ async UpgradeDBInstanceKernelVersion(req, cb) {
291
+ return this.request("UpgradeDBInstanceKernelVersion", req, cb);
292
+ }
275
293
  /**
276
294
  * 该接口(DescribeMongodbLogs)用于查询运行日志。
277
295
  */
@@ -297,10 +315,10 @@ class Client extends abstract_client_1.AbstractClient {
297
315
  return this.request("DescribeInstanceParams", req, cb);
298
316
  }
299
317
  /**
300
- * 本接口(UpgradeDBInstanceKernelVersion)用于升级数据库实例内核版本。
318
+ * 本接口(DisableSRVConnectionUrl)用于关闭MongoDB数据库的SRV访问地址。
301
319
  */
302
- async UpgradeDBInstanceKernelVersion(req, cb) {
303
- return this.request("UpgradeDBInstanceKernelVersion", req, cb);
320
+ async DisableSRVConnectionUrl(req, cb) {
321
+ return this.request("DisableSRVConnectionUrl", req, cb);
304
322
  }
305
323
  /**
306
324
  * 本接口(DescribeSpecInfo)用于查询实例的售卖规格。
@@ -362,6 +380,12 @@ class Client extends abstract_client_1.AbstractClient {
362
380
  async DescribeAccountUsers(req, cb) {
363
381
  return this.request("DescribeAccountUsers", req, cb);
364
382
  }
383
+ /**
384
+ * 本接口(DisableSRVConnectionUrl)用于修改MongoDB数据库的SRV访问地址的TTL时长。
385
+ */
386
+ async ModifySRVConnectionUrl(req, cb) {
387
+ return this.request("ModifySRVConnectionUrl", req, cb);
388
+ }
365
389
  /**
366
390
  * 本接口(OpenAuditService)用于开通云数据库实例的审计。
367
391
  */
@@ -381,10 +405,10 @@ class Client extends abstract_client_1.AbstractClient {
381
405
  return this.request("SetInstanceMaintenance", req, cb);
382
406
  }
383
407
  /**
384
- * 本接口(ModifyDBInstanceNetworkAddress)用于修改云数据库实例的网络信息,支持基础网络切换为私有网络、私有网络切换私有网络。
408
+ * 本接口(EnableSRVConnectionUrl)用于开启MongoDB数据库的SRV访问地址。
385
409
  */
386
- async ModifyDBInstanceNetworkAddress(req, cb) {
387
- return this.request("ModifyDBInstanceNetworkAddress", req, cb);
410
+ async EnableSRVConnectionUrl(req, cb) {
411
+ return this.request("EnableSRVConnectionUrl", req, cb);
388
412
  }
389
413
  /**
390
414
  * 本接口(DescribeDBInstanceParamTplDetail )用于查询MongoDB云数据库实例的参数模板详情。
@@ -262,6 +262,15 @@ export interface DBInstancePrice {
262
262
  */
263
263
  DiscountPrice: number;
264
264
  }
265
+ /**
266
+ * TerminateDBInstances请求参数结构体
267
+ */
268
+ export interface TerminateDBInstancesRequest {
269
+ /**
270
+ * 指定预隔离实例 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制预隔离实例 ID。
271
+ */
272
+ InstanceId: string;
273
+ }
265
274
  /**
266
275
  * KillOps请求参数结构体
267
276
  */
@@ -431,6 +440,19 @@ export interface InstanceMultiParam {
431
440
  */
432
441
  ValueType?: string;
433
442
  }
443
+ /**
444
+ * DescribeSRVConnectionDomain返回参数结构体
445
+ */
446
+ export interface DescribeSRVConnectionDomainResponse {
447
+ /**
448
+ * 实例当前的srv域名信息。
449
+ */
450
+ Domain?: string;
451
+ /**
452
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
453
+ */
454
+ RequestId?: string;
455
+ }
434
456
  /**
435
457
  * ModifyInstanceParams返回参数结构体
436
458
  */
@@ -577,6 +599,19 @@ export interface Task {
577
599
  */
578
600
  Url?: string;
579
601
  }
602
+ /**
603
+ * ModifySRVConnectionUrl返回参数结构体
604
+ */
605
+ export interface ModifySRVConnectionUrlResponse {
606
+ /**
607
+ * 开启任务ID。
608
+ */
609
+ FlowId?: number;
610
+ /**
611
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
612
+ */
613
+ RequestId?: string;
614
+ }
580
615
  /**
581
616
  * AssignProject返回参数结构体
582
617
  */
@@ -750,6 +785,19 @@ export interface CreateDBInstanceParamTplRequest {
750
785
  */
751
786
  MirrorTplId?: string;
752
787
  }
788
+ /**
789
+ * DisableSRVConnectionUrl返回参数结构体
790
+ */
791
+ export interface DisableSRVConnectionUrlResponse {
792
+ /**
793
+ * 开启任务ID。
794
+ */
795
+ FlowId?: number;
796
+ /**
797
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
798
+ */
799
+ RequestId?: string;
800
+ }
753
801
  /**
754
802
  * DescribeSecurityGroup请求参数结构体
755
803
  */
@@ -759,6 +807,19 @@ export interface DescribeSecurityGroupRequest {
759
807
  */
760
808
  InstanceId: string;
761
809
  }
810
+ /**
811
+ * RenameInstance请求参数结构体
812
+ */
813
+ export interface RenameInstanceRequest {
814
+ /**
815
+ * 实例ID,格式如:cmgo-p8vnipr5。请登录[MongoDB 控制台](https://console.cloud.tencent.com/mongodb#/)在实例列表复制实例 ID。
816
+ */
817
+ InstanceId: string;
818
+ /**
819
+ * 自定义实例名称,要求为1~128 长度的任意字符。
820
+ */
821
+ NewName: string;
822
+ }
762
823
  /**
763
824
  * DescribeBackupRules请求参数结构体
764
825
  */
@@ -1909,6 +1970,19 @@ export interface ModifyNetworkAddress {
1909
1970
  */
1910
1971
  OldIpAddress: string;
1911
1972
  }
1973
+ /**
1974
+ * EnableSRVConnectionUrl返回参数结构体
1975
+ */
1976
+ export interface EnableSRVConnectionUrlResponse {
1977
+ /**
1978
+ * 开启任务ID。
1979
+ */
1980
+ FlowId?: number;
1981
+ /**
1982
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1983
+ */
1984
+ RequestId?: string;
1985
+ }
1912
1986
  /**
1913
1987
  * DescribeAsyncRequestInfo返回参数结构体
1914
1988
  */
@@ -2172,21 +2246,17 @@ export interface DescribeBackupDownloadTaskRequest {
2172
2246
  Status?: Array<number | bigint>;
2173
2247
  }
2174
2248
  /**
2175
- * 需要终止的操作。
2249
+ * ModifySRVConnectionUrl请求参数结构体
2176
2250
  */
2177
- export interface Operation {
2251
+ export interface ModifySRVConnectionUrlRequest {
2178
2252
  /**
2179
- * 操作所在的分片名称。请通过接口 [DescribeCurrentOp](https://cloud.tencent.com/document/product/240/48120) 查询分片名称。
2180
- */
2181
- ReplicaSetName: string;
2182
- /**
2183
- * 操作所在的节点名。请通过接口 [DescribeCurrentOp](https://cloud.tencent.com/document/product/240/48120) 查询节点名称。
2253
+ * 实例 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
2184
2254
  */
2185
- NodeName: string;
2255
+ InstanceId: string;
2186
2256
  /**
2187
- * 操作序号。请通过接口 [DescribeCurrentOp](https://cloud.tencent.com/document/product/240/48120) 查询操作序号。
2257
+ * 自定义的实例的访问域名。
2188
2258
  */
2189
- OpId: number;
2259
+ CustomDomain: string;
2190
2260
  }
2191
2261
  /**
2192
2262
  * DescribeClientConnections返回参数结构体
@@ -2205,6 +2275,15 @@ export interface DescribeClientConnectionsResponse {
2205
2275
  */
2206
2276
  RequestId?: string;
2207
2277
  }
2278
+ /**
2279
+ * DisableSRVConnectionUrl请求参数结构体
2280
+ */
2281
+ export interface DisableSRVConnectionUrlRequest {
2282
+ /**
2283
+ * 实例 ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
2284
+ */
2285
+ InstanceId: string;
2286
+ }
2208
2287
  /**
2209
2288
  * ModifyDBInstanceParamTpl返回参数结构体
2210
2289
  */
@@ -2215,11 +2294,11 @@ export interface ModifyDBInstanceParamTplResponse {
2215
2294
  RequestId?: string;
2216
2295
  }
2217
2296
  /**
2218
- * TerminateDBInstances请求参数结构体
2297
+ * DescribeSRVConnectionDomain请求参数结构体
2219
2298
  */
2220
- export interface TerminateDBInstancesRequest {
2299
+ export interface DescribeSRVConnectionDomainRequest {
2221
2300
  /**
2222
- * 指定预隔离实例 ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制预隔离实例 ID。
2301
+ * 实例 ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
2223
2302
  */
2224
2303
  InstanceId: string;
2225
2304
  }
@@ -3052,17 +3131,13 @@ export interface ModifyAuditServiceRequest {
3052
3131
  RuleFilters?: Array<LogFilter>;
3053
3132
  }
3054
3133
  /**
3055
- * RenameInstance请求参数结构体
3134
+ * EnableSRVConnectionUrl请求参数结构体
3056
3135
  */
3057
- export interface RenameInstanceRequest {
3136
+ export interface EnableSRVConnectionUrlRequest {
3058
3137
  /**
3059
- * 实例ID,格式如:cmgo-p8vnipr5。请登录[MongoDB 控制台](https://console.cloud.tencent.com/mongodb#/)在实例列表复制实例 ID。
3138
+ * 实例 ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
3060
3139
  */
3061
3140
  InstanceId: string;
3062
- /**
3063
- * 自定义实例名称,要求为1~128 长度的任意字符。
3064
- */
3065
- NewName: string;
3066
3141
  }
3067
3142
  /**
3068
3143
  * RenewDBInstances返回参数结构体
@@ -4042,6 +4117,23 @@ export interface InquirePriceCreateDBInstancesRequest {
4042
4117
  */
4043
4118
  ConfigServerVolume?: number;
4044
4119
  }
4120
+ /**
4121
+ * 需要终止的操作。
4122
+ */
4123
+ export interface Operation {
4124
+ /**
4125
+ * 操作所在的分片名称。请通过接口 [DescribeCurrentOp](https://cloud.tencent.com/document/product/240/48120) 查询分片名称。
4126
+ */
4127
+ ReplicaSetName: string;
4128
+ /**
4129
+ * 操作所在的节点名。请通过接口 [DescribeCurrentOp](https://cloud.tencent.com/document/product/240/48120) 查询节点名称。
4130
+ */
4131
+ NodeName: string;
4132
+ /**
4133
+ * 操作序号。请通过接口 [DescribeCurrentOp](https://cloud.tencent.com/document/product/240/48120) 查询操作序号。
4134
+ */
4135
+ OpId: number;
4136
+ }
4045
4137
  /**
4046
4138
  * DescribeInstanceParams返回参数结构体
4047
4139
  */
@@ -1,40 +1,22 @@
1
1
  import { AbstractClient } from "../../../common/abstract_client";
2
2
  import { ClientConfig } from "../../../common/interface";
3
- import { ComposeCoupletRequest, EvaluateSentenceSimilarityRequest, SentenceCorrectionResponse, ClassifyContentRequest, EvaluateSentenceSimilarityResponse, ClassifyContentResponse, SentenceCorrectionRequest, AnalyzeSentimentRequest, AnalyzeSentimentResponse, ParseWordsResponse, ParseWordsRequest, ComposeCoupletResponse } from "./nlp_models";
3
+ import { SentenceCorrectionResponse, ParseWordsRequest, SentenceCorrectionRequest, AnalyzeSentimentRequest, AnalyzeSentimentResponse, ParseWordsResponse } from "./nlp_models";
4
4
  /**
5
5
  * nlp client
6
6
  * @class
7
7
  */
8
8
  export declare class Client extends AbstractClient {
9
9
  constructor(clientConfig: ClientConfig);
10
- /**
11
- * NLP技术的句子相似度、相似词召回、文本分类、对联生成、诗词生成、词相似度、文本润色、句子生成和文本补全API接口将于2025年10月31日下线,届时将无法正常调用。为了避免对您的业务造成影响,请您尽快做好相关业务调整。如果您有NLP技术的产品需求,推荐您调用腾讯混元大模型(https://cloud.tencent.com/product/tclm)。
12
-
13
- 文本分类接口能够对用户输入的文章进行自动分类,将其映射到具体的类目上,用户只需要提供待分类的文本,而无需关注具体实现。该功能定义了一套较为完备的[三级分类体系](https://cloud.tencent.com/document/product/271/94286),积累了数百万的语料,经过多轮迭代优化打造了较先进的深度学习模型,以保证效果不断提升。
14
- */
15
- ClassifyContent(req: ClassifyContentRequest, cb?: (error: string, rep: ClassifyContentResponse) => void): Promise<ClassifyContentResponse>;
16
10
  /**
17
11
  * 智能识别并纠正句子中的语法、拼写、用词等错误,确保文本的准确性和可读性。
18
12
  */
19
13
  SentenceCorrection(req: SentenceCorrectionRequest, cb?: (error: string, rep: SentenceCorrectionResponse) => void): Promise<SentenceCorrectionResponse>;
20
14
  /**
21
- * NLP技术的句子相似度、相似词召回、文本分类、对联生成、诗词生成、词相似度、文本润色、句子生成和文本补全API接口将于2025年10月31日下线,届时将无法正常调用。为了避免对您的业务造成影响,请您尽快做好相关业务调整。如果您有NLP技术的产品需求,推荐您调用腾讯混元大模型(https://cloud.tencent.com/product/tclm)。
22
-
23
- 通过计算句子间的语义相似性,帮助您快速找到文本中重复或相似的句子,用于文本聚类、相似问题检索等应用场景。
24
- */
25
- EvaluateSentenceSimilarity(req: EvaluateSentenceSimilarityRequest, cb?: (error: string, rep: EvaluateSentenceSimilarityResponse) => void): Promise<EvaluateSentenceSimilarityResponse>;
26
- /**
27
- * NLP技术的句子相似度、相似词召回、文本分类、对联生成、诗词生成、词相似度、文本润色、句子生成和文本补全API接口将于2025年10月31日下线,届时将无法正常调用。为了避免对您的业务造成影响,请您尽快做好相关业务调整。如果您有NLP技术的产品需求,推荐您调用腾讯混元大模型(https://cloud.tencent.com/product/tclm)。
28
-
29
- 对联生成接口根据用户输入的命题关键词,智能生成一副完整的春联,包括上联、下联和横批。该接口利用先进的自然语言处理技术,确保生成的春联既符合传统对仗、对韵、对义的要求,又具有新意和创意,为用户提供独特的春节祝福。
15
+ * 通过精准地对文本进行分词、词性标注、命名实体识别等功能,助您更好地理解文本内容,挖掘出潜在的价值信息。
30
16
  */
31
- ComposeCouplet(req: ComposeCoupletRequest, cb?: (error: string, rep: ComposeCoupletResponse) => void): Promise<ComposeCoupletResponse>;
17
+ ParseWords(req: ParseWordsRequest, cb?: (error: string, rep: ParseWordsResponse) => void): Promise<ParseWordsResponse>;
32
18
  /**
33
19
  * 情感分析接口能够对带有情感色彩的主观性文本进行分析、处理、归纳和推理,识别出用户的情感倾向,是积极、中性还是消极,并且提供各自概率。
34
20
  */
35
21
  AnalyzeSentiment(req: AnalyzeSentimentRequest, cb?: (error: string, rep: AnalyzeSentimentResponse) => void): Promise<AnalyzeSentimentResponse>;
36
- /**
37
- * 通过精准地对文本进行分词、词性标注、命名实体识别等功能,助您更好地理解文本内容,挖掘出潜在的价值信息。
38
- */
39
- ParseWords(req: ParseWordsRequest, cb?: (error: string, rep: ParseWordsResponse) => void): Promise<ParseWordsResponse>;
40
22
  }
@@ -27,14 +27,6 @@ class Client extends abstract_client_1.AbstractClient {
27
27
  constructor(clientConfig) {
28
28
  super("nlp.tencentcloudapi.com", "2019-04-08", clientConfig);
29
29
  }
30
- /**
31
- * NLP技术的句子相似度、相似词召回、文本分类、对联生成、诗词生成、词相似度、文本润色、句子生成和文本补全API接口将于2025年10月31日下线,届时将无法正常调用。为了避免对您的业务造成影响,请您尽快做好相关业务调整。如果您有NLP技术的产品需求,推荐您调用腾讯混元大模型(https://cloud.tencent.com/product/tclm)。
32
-
33
- 文本分类接口能够对用户输入的文章进行自动分类,将其映射到具体的类目上,用户只需要提供待分类的文本,而无需关注具体实现。该功能定义了一套较为完备的[三级分类体系](https://cloud.tencent.com/document/product/271/94286),积累了数百万的语料,经过多轮迭代优化打造了较先进的深度学习模型,以保证效果不断提升。
34
- */
35
- async ClassifyContent(req, cb) {
36
- return this.request("ClassifyContent", req, cb);
37
- }
38
30
  /**
39
31
  * 智能识别并纠正句子中的语法、拼写、用词等错误,确保文本的准确性和可读性。
40
32
  */
@@ -42,20 +34,10 @@ class Client extends abstract_client_1.AbstractClient {
42
34
  return this.request("SentenceCorrection", req, cb);
43
35
  }
44
36
  /**
45
- * NLP技术的句子相似度、相似词召回、文本分类、对联生成、诗词生成、词相似度、文本润色、句子生成和文本补全API接口将于2025年10月31日下线,届时将无法正常调用。为了避免对您的业务造成影响,请您尽快做好相关业务调整。如果您有NLP技术的产品需求,推荐您调用腾讯混元大模型(https://cloud.tencent.com/product/tclm)。
46
-
47
- 通过计算句子间的语义相似性,帮助您快速找到文本中重复或相似的句子,用于文本聚类、相似问题检索等应用场景。
48
- */
49
- async EvaluateSentenceSimilarity(req, cb) {
50
- return this.request("EvaluateSentenceSimilarity", req, cb);
51
- }
52
- /**
53
- * NLP技术的句子相似度、相似词召回、文本分类、对联生成、诗词生成、词相似度、文本润色、句子生成和文本补全API接口将于2025年10月31日下线,届时将无法正常调用。为了避免对您的业务造成影响,请您尽快做好相关业务调整。如果您有NLP技术的产品需求,推荐您调用腾讯混元大模型(https://cloud.tencent.com/product/tclm)。
54
-
55
- 对联生成接口根据用户输入的命题关键词,智能生成一副完整的春联,包括上联、下联和横批。该接口利用先进的自然语言处理技术,确保生成的春联既符合传统对仗、对韵、对义的要求,又具有新意和创意,为用户提供独特的春节祝福。
37
+ * 通过精准地对文本进行分词、词性标注、命名实体识别等功能,助您更好地理解文本内容,挖掘出潜在的价值信息。
56
38
  */
57
- async ComposeCouplet(req, cb) {
58
- return this.request("ComposeCouplet", req, cb);
39
+ async ParseWords(req, cb) {
40
+ return this.request("ParseWords", req, cb);
59
41
  }
60
42
  /**
61
43
  * 情感分析接口能够对带有情感色彩的主观性文本进行分析、处理、归纳和推理,识别出用户的情感倾向,是积极、中性还是消极,并且提供各自概率。
@@ -63,11 +45,5 @@ class Client extends abstract_client_1.AbstractClient {
63
45
  async AnalyzeSentiment(req, cb) {
64
46
  return this.request("AnalyzeSentiment", req, cb);
65
47
  }
66
- /**
67
- * 通过精准地对文本进行分词、词性标注、命名实体识别等功能,助您更好地理解文本内容,挖掘出潜在的价值信息。
68
- */
69
- async ParseWords(req, cb) {
70
- return this.request("ParseWords", req, cb);
71
- }
72
48
  }
73
49
  exports.Client = Client;
@@ -1,64 +1,3 @@
1
- /**
2
- * 分类详细信息
3
- */
4
- export interface Category {
5
- /**
6
- * 分类id。
7
- 注意:此字段可能返回 null,表示取不到有效值。
8
- */
9
- Id?: number;
10
- /**
11
- * 分类英文名。
12
- 注意:此字段可能返回 null,表示取不到有效值。
13
- */
14
- Label?: string;
15
- /**
16
- * 分类中文名。
17
- 注意:此字段可能返回 null,表示取不到有效值。
18
- */
19
- Name?: string;
20
- /**
21
- * 分类置信度。
22
- 注意:此字段可能返回 null,表示取不到有效值。
23
- */
24
- Score?: number;
25
- }
26
- /**
27
- * ComposeCouplet请求参数结构体
28
- */
29
- export interface ComposeCoupletRequest {
30
- /**
31
- * 生成对联的关键词。长度需>=2,当长度>2时,自动截取前两个字作为关键字。内容需为常用汉字(不含有数字、英文、韩语、日语、符号等等其他)。
32
- */
33
- Text: string;
34
- /**
35
- * 返回的文本结果为繁体还是简体。0:简体;1:繁体。默认为0。
36
- */
37
- TargetType?: number;
38
- }
39
- /**
40
- * EvaluateSentenceSimilarity请求参数结构体
41
- */
42
- export interface EvaluateSentenceSimilarityRequest {
43
- /**
44
- * 待分析的句子对数组。句子对应不超过1对,仅支持中文文本,原句子与目标句子均应不超过500字符。
45
- */
46
- SentencePairList: Array<SentencePair>;
47
- }
48
- /**
49
- * 待分析的句子对
50
- */
51
- export interface SentencePair {
52
- /**
53
- * 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)
54
- */
55
- SourceText: string;
56
- /**
57
- * 目标句子。(仅支持UTF-8格式,不超过500字符)
58
-
59
- */
60
- TargetText: string;
61
- }
62
1
  /**
63
2
  * SentenceCorrection返回参数结构体
64
3
  */
@@ -74,17 +13,13 @@ export interface SentenceCorrectionResponse {
74
13
  RequestId?: string;
75
14
  }
76
15
  /**
77
- * ClassifyContent请求参数结构体
16
+ * ParseWords请求参数结构体
78
17
  */
79
- export interface ClassifyContentRequest {
80
- /**
81
- * 待分类的文章的标题(仅支持UTF-8格式,不超过100字符)。
82
- */
83
- Title: string;
18
+ export interface ParseWordsRequest {
84
19
  /**
85
- * 待分类文章的内容, 每个元素对应一个段落。(仅支持UTF-8格式,文章内容长度总和不超过2000字符)
20
+ * 待分析的文本(支持中英文文本,不超过500字符)
86
21
  */
87
- Content: Array<string>;
22
+ Text: string;
88
23
  }
89
24
  /**
90
25
  * 实体识别结果。
@@ -111,41 +46,6 @@ export interface Entity {
111
46
  */
112
47
  Name?: string;
113
48
  }
114
- /**
115
- * EvaluateSentenceSimilarity返回参数结构体
116
- */
117
- export interface EvaluateSentenceSimilarityResponse {
118
- /**
119
- * 每个句子对的相似度分值。
120
- */
121
- ScoreList?: Array<number>;
122
- /**
123
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
124
- */
125
- RequestId?: string;
126
- }
127
- /**
128
- * ClassifyContent返回参数结构体
129
- */
130
- export interface ClassifyContentResponse {
131
- /**
132
- * 一级分类。(请参见附录[三级分类体系表](https://cloud.tencent.com/document/product/271/94286))
133
- */
134
- FirstClassification?: Category;
135
- /**
136
- * 二级分类。(请参见附录[三级分类体系表](https://cloud.tencent.com/document/product/271/94286))
137
- */
138
- SecondClassification?: Category;
139
- /**
140
- * 三级分类。(请参见附录[三级分类体系表](https://cloud.tencent.com/document/product/271/94286))
141
- 注意:此字段可能返回 null,表示取不到有效值。
142
- */
143
- ThirdClassification?: Category;
144
- /**
145
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
146
- */
147
- RequestId?: string;
148
- }
149
49
  /**
150
50
  * SentenceCorrection请求参数结构体
151
51
  */
@@ -304,33 +204,3 @@ export interface CompoundParticiple {
304
204
  */
305
205
  Pos?: string;
306
206
  }
307
- /**
308
- * ParseWords请求参数结构体
309
- */
310
- export interface ParseWordsRequest {
311
- /**
312
- * 待分析的文本(支持中英文文本,不超过500字符)
313
- */
314
- Text: string;
315
- }
316
- /**
317
- * ComposeCouplet返回参数结构体
318
- */
319
- export interface ComposeCoupletResponse {
320
- /**
321
- * 横批。
322
- */
323
- TopScroll?: string;
324
- /**
325
- * 上联与下联。
326
- */
327
- Content?: Array<string>;
328
- /**
329
- * 当对联随机生成时,展示随机生成原因。
330
- */
331
- RandomCause?: string;
332
- /**
333
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
334
- */
335
- RequestId?: string;
336
- }
@@ -42,89 +42,48 @@ export interface DescribeProductsResponse {
42
42
  */
43
43
  export interface ZoneInfo {
44
44
  /**
45
- * 可用区名称,例如,ap-guangzhou-3
46
- 全网可用区名称如下:
47
- <li> ap-chongqing-1 </li>
48
- <li> ap-seoul-1 </li>
49
- <li> ap-seoul-2 </li>
50
- <li> ap-chengdu-1 </li>
51
- <li> ap-chengdu-2 </li>
52
- <li> ap-hongkong-1 </li>
53
- <li> ap-hongkong-2 </li>
54
- <li> ap-shenzhen-fsi-1 </li>
55
- <li> ap-shenzhen-fsi-2 </li>
56
- <li> ap-shenzhen-fsi-3 </li>
57
- <li> ap-guangzhou-1(售罄)</li>
58
- <li> ap-guangzhou-3 </li>
59
- <li> ap-guangzhou-4 </li>
60
- <li> ap-guangzhou-6 </li>
61
- <li> ap-tokyo-1 </li>
62
- <li> ap-singapore-1 </li>
63
- <li> ap-singapore-2 </li>
64
- <li> ap-shanghai-fsi-1 </li>
65
- <li> ap-shanghai-fsi-2 </li>
66
- <li> ap-shanghai-fsi-3 </li>
67
- <li> ap-bangkok-1 </li>
68
- <li> ap-shanghai-1(售罄) </li>
69
- <li> ap-shanghai-2 </li>
70
- <li> ap-shanghai-3 </li>
71
- <li> ap-shanghai-4 </li>
72
- <li> ap-shanghai-5 </li>
73
- <li> ap-mumbai-1 </li>
74
- <li> ap-mumbai-2 </li>
75
- <li> ap-beijing-1 </li>
76
- <li> ap-beijing-2 </li>
77
- <li> ap-beijing-3 </li>
78
- <li> ap-beijing-4 </li>
79
- <li> ap-beijing-5 </li>
80
- <li> na-siliconvalley-1 </li>
81
- <li> na-siliconvalley-2 </li>
82
- <li> eu-frankfurt-1 </li>
83
- <li> na-ashburn-1 </li>
84
- <li> na-ashburn-2 </li>
85
- <li> ap-nanjing-1 </li>
86
- <li> ap-nanjing-2 </li>
45
+ * <p>可用区名称,例如,ap-guangzhou-3<br>全网可用区名称如下:</p><li> ap-chongqing-1 </li><li> ap-seoul-1 </li><li> ap-seoul-2 </li><li> ap-chengdu-1 </li><li> ap-chengdu-2 </li><li> ap-hongkong-1 </li><li> ap-hongkong-2 </li><li> ap-shenzhen-fsi-1 </li><li> ap-shenzhen-fsi-2 </li><li> ap-shenzhen-fsi-3 </li><li> ap-guangzhou-1(售罄)</li><li> ap-guangzhou-3 </li><li> ap-guangzhou-4 </li><li> ap-guangzhou-6 </li><li> ap-tokyo-1 </li><li> ap-singapore-1 </li><li> ap-singapore-2 </li><li> ap-shanghai-fsi-1 </li><li> ap-shanghai-fsi-2 </li><li> ap-shanghai-fsi-3 </li><li> ap-bangkok-1 </li><li> ap-shanghai-2 </li><li> ap-shanghai-3 </li><li> ap-shanghai-4 </li><li> ap-shanghai-5 </li><li> ap-beijing-1 </li><li> ap-beijing-3 </li><li> ap-beijing-4 </li><li> ap-beijing-5 </li><li> na-siliconvalley-1 </li><li> na-siliconvalley-2 </li><li> eu-frankfurt-1 </li><li> na-ashburn-1 </li><li> na-ashburn-2 </li><li> ap-nanjing-1 </li><li> ap-nanjing-2 </li>
87
46
  */
88
47
  Zone?: string;
89
48
  /**
90
- * 可用区描述,例如,广州三区
49
+ * <p>可用区描述,例如,广州三区</p>
91
50
  */
92
51
  ZoneName?: string;
93
52
  /**
94
- * 可用区ID
53
+ * <p>可用区ID</p>
95
54
  */
96
55
  ZoneId?: string;
97
56
  /**
98
- * 可用区状态,包含AVAILABLE和UNAVAILABLE。AVAILABLE代表可用,UNAVAILABLE代表不可用。
57
+ * <p>可用区状态,包含AVAILABLE和UNAVAILABLE。AVAILABLE代表可用,UNAVAILABLE代表不可用。</p>
99
58
  */
100
59
  ZoneState?: string;
101
60
  /**
102
- * 父级zone
61
+ * <p>父级zone</p>
103
62
  注意:此字段可能返回 null,表示取不到有效值。
104
63
  */
105
64
  ParentZone?: string;
106
65
  /**
107
- * 父级可用区ID
66
+ * <p>父级可用区ID</p>
108
67
  注意:此字段可能返回 null,表示取不到有效值。
109
68
  */
110
69
  ParentZoneId?: string;
111
70
  /**
112
- * 父级可用区描述
71
+ * <p>父级可用区描述</p>
113
72
  注意:此字段可能返回 null,表示取不到有效值。
114
73
  */
115
74
  ParentZoneName?: string;
116
75
  /**
117
- * zone类型
76
+ * <p>zone类型</p>
118
77
  注意:此字段可能返回 null,表示取不到有效值。
119
78
  */
120
79
  ZoneType?: string;
121
80
  /**
122
- * 控制台类型
81
+ * <p>控制台类型</p>
123
82
  注意:此字段可能返回 null,表示取不到有效值。
124
83
  */
125
84
  MachineRoomTypeMC?: string;
126
85
  /**
127
- * ZoneId一样,适用于控制台调用。
86
+ * <p>和ZoneId一样,适用于控制台调用。</p>
128
87
  注意:此字段可能返回 null,表示取不到有效值。
129
88
  */
130
89
  ZoneIdMC?: string;