tencentcloud-sdk-nodejs 4.0.587 → 4.0.589
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/CHANGELOG.md +438 -0
- package/SERVICE_CHANGELOG.md +443 -214
- package/package.json +1 -1
- package/products.md +31 -31
- package/src/common/sdk_version.ts +1 -1
- package/src/services/aiart/v20221229/aiart_models.ts +1 -1
- package/src/services/billing/v20180709/billing_models.ts +6 -0
- package/src/services/cbs/v20170312/cbs_models.ts +17 -10
- package/src/services/cdb/v20170320/cdb_client.ts +173 -47
- package/src/services/cdb/v20170320/cdb_models.ts +1198 -362
- package/src/services/cfs/v20190719/cfs_client.ts +12 -0
- package/src/services/cfs/v20190719/cfs_models.ts +56 -0
- package/src/services/clb/v20180317/clb_models.ts +7 -7
- package/src/services/cls/v20201016/cls_models.ts +1 -1
- package/src/services/dnspod/v20210323/dnspod_models.ts +22 -0
- package/src/services/essbasic/v20210526/essbasic_models.ts +6 -0
- package/src/services/gaap/v20180529/gaap_client.ts +1 -0
- package/src/services/gaap/v20180529/gaap_models.ts +16 -0
- package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +6 -0
- package/src/services/iotvideoindustry/v20201201/iotvideoindustry_client.ts +1 -1
- package/src/services/iotvideoindustry/v20201201/iotvideoindustry_models.ts +6 -0
- package/src/services/mps/v20190612/mps_models.ts +28 -19
- package/src/services/nlp/v20190408/nlp_client.ts +159 -55
- package/src/services/nlp/v20190408/nlp_models.ts +991 -495
- package/src/services/ocr/v20181119/ocr_client.ts +1 -1
- package/src/services/ocr/v20181119/ocr_models.ts +4 -4
- package/src/services/redis/v20180412/redis_models.ts +3 -6
- package/src/services/rum/v20210622/rum_models.ts +13 -2
- package/src/services/tdmq/v20200217/tdmq_models.ts +43 -1
- package/src/services/teo/v20220901/teo_client.ts +46 -8
- package/src/services/teo/v20220901/teo_models.ts +310 -174
- package/src/services/tione/v20211111/tione_models.ts +41 -10
- package/src/services/tke/v20180525/tke_models.ts +16 -6
- package/src/services/tmt/v20180321/tmt_client.ts +1 -2
- package/src/services/tmt/v20180321/tmt_models.ts +13 -13
- package/src/services/trtc/v20190722/trtc_models.ts +1 -1
- package/src/services/vpc/v20170312/vpc_client.ts +19 -7
- package/src/services/vpc/v20170312/vpc_models.ts +30 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/aiart/v20221229/aiart_models.d.ts +1 -1
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +5 -0
- package/tencentcloud/services/cbs/v20170312/cbs_models.d.ts +14 -8
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +53 -13
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +77 -17
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +991 -286
- package/tencentcloud/services/cfs/v20190719/cfs_client.d.ts +5 -1
- package/tencentcloud/services/cfs/v20190719/cfs_client.js +6 -0
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +47 -0
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +7 -7
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +1 -1
- package/tencentcloud/services/dnspod/v20210323/dnspod_models.d.ts +18 -0
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +5 -0
- package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +14 -0
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +5 -0
- package/tencentcloud/services/iotvideoindustry/v20201201/iotvideoindustry_client.d.ts +1 -1
- package/tencentcloud/services/iotvideoindustry/v20201201/iotvideoindustry_client.js +1 -1
- package/tencentcloud/services/iotvideoindustry/v20201201/iotvideoindustry_models.d.ts +5 -0
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +10 -1
- package/tencentcloud/services/nlp/v20190408/nlp_client.d.ts +38 -6
- package/tencentcloud/services/nlp/v20190408/nlp_client.js +54 -6
- package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +946 -517
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +1 -1
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +1 -1
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +4 -4
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +3 -6
- package/tencentcloud/services/rum/v20210622/rum_models.d.ts +11 -2
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +36 -1
- package/tencentcloud/services/teo/v20220901/teo_client.d.ts +13 -1
- package/tencentcloud/services/teo/v20220901/teo_client.js +18 -0
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +275 -157
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +35 -9
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +14 -6
- package/tencentcloud/services/tmt/v20180321/tmt_client.d.ts +1 -2
- package/tencentcloud/services/tmt/v20180321/tmt_client.js +1 -2
- package/tencentcloud/services/tmt/v20180321/tmt_models.d.ts +13 -13
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +8 -4
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +10 -4
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +26 -0
- package/test/cdb.v20170320.test.js +110 -10
- package/test/cfs.v20190719.test.js +10 -0
- package/test/nlp.v20190408.test.js +82 -2
- package/test/teo.v20220901.test.js +30 -0
- package/test/vpc.v20170312.test.js +12 -2
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
CreateCfsFileSystemResponse,
|
|
31
31
|
FileSystemInfo,
|
|
32
32
|
BindAutoSnapshotPolicyRequest,
|
|
33
|
+
ModifyFileSystemAutoScaleUpRuleRequest,
|
|
33
34
|
ScaleUpFileSystemRequest,
|
|
34
35
|
CreateCfsPGroupRequest,
|
|
35
36
|
DescribeMigrationTasksResponse,
|
|
@@ -67,6 +68,7 @@ import {
|
|
|
67
68
|
PGroup,
|
|
68
69
|
SetUserQuotaRequest,
|
|
69
70
|
CreateAutoSnapshotPolicyResponse,
|
|
71
|
+
ModifyFileSystemAutoScaleUpRuleResponse,
|
|
70
72
|
AvailableType,
|
|
71
73
|
CreateCfsSnapshotResponse,
|
|
72
74
|
UserQuota,
|
|
@@ -375,6 +377,16 @@ export class Client extends AbstractClient {
|
|
|
375
377
|
return this.request("DescribeUserQuota", req, cb)
|
|
376
378
|
}
|
|
377
379
|
|
|
380
|
+
/**
|
|
381
|
+
* 用来设置文件系统扩容策略
|
|
382
|
+
*/
|
|
383
|
+
async ModifyFileSystemAutoScaleUpRule(
|
|
384
|
+
req: ModifyFileSystemAutoScaleUpRuleRequest,
|
|
385
|
+
cb?: (error: string, rep: ModifyFileSystemAutoScaleUpRuleResponse) => void
|
|
386
|
+
): Promise<ModifyFileSystemAutoScaleUpRuleResponse> {
|
|
387
|
+
return this.request("ModifyFileSystemAutoScaleUpRule", req, cb)
|
|
388
|
+
}
|
|
389
|
+
|
|
378
390
|
/**
|
|
379
391
|
* 更新定期自动快照策略
|
|
380
392
|
*/
|
|
@@ -578,6 +578,32 @@ export interface BindAutoSnapshotPolicyRequest {
|
|
|
578
578
|
FileSystemIds: string
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
+
/**
|
|
582
|
+
* ModifyFileSystemAutoScaleUpRule请求参数结构体
|
|
583
|
+
*/
|
|
584
|
+
export interface ModifyFileSystemAutoScaleUpRuleRequest {
|
|
585
|
+
/**
|
|
586
|
+
* 文件系统id
|
|
587
|
+
*/
|
|
588
|
+
FileSystemId: string
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* 扩容阈值,范围[10-90]
|
|
592
|
+
*/
|
|
593
|
+
ScaleUpThreshold: number
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* 扩容后目标阈值,范围[10-90],该值要小于ScaleUpThreshold
|
|
597
|
+
*/
|
|
598
|
+
TargetThreshold: number
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* 规则状态0:关闭,1 开启
|
|
602
|
+
|
|
603
|
+
*/
|
|
604
|
+
Status?: number
|
|
605
|
+
}
|
|
606
|
+
|
|
581
607
|
/**
|
|
582
608
|
* ScaleUpFileSystem请求参数结构体
|
|
583
609
|
*/
|
|
@@ -1276,6 +1302,36 @@ export interface CreateAutoSnapshotPolicyResponse {
|
|
|
1276
1302
|
RequestId?: string
|
|
1277
1303
|
}
|
|
1278
1304
|
|
|
1305
|
+
/**
|
|
1306
|
+
* ModifyFileSystemAutoScaleUpRule返回参数结构体
|
|
1307
|
+
*/
|
|
1308
|
+
export interface ModifyFileSystemAutoScaleUpRuleResponse {
|
|
1309
|
+
/**
|
|
1310
|
+
* 文件系统id
|
|
1311
|
+
*/
|
|
1312
|
+
FileSystemId?: string
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* 规则状态0:关闭,1 开启
|
|
1316
|
+
*/
|
|
1317
|
+
Status?: number
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* 扩容阈值,范围[10-90]
|
|
1321
|
+
*/
|
|
1322
|
+
ScaleUpThreshold?: number
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* 扩容后达到阈值,范围[10-90]
|
|
1326
|
+
*/
|
|
1327
|
+
TargetThreshold?: number
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1331
|
+
*/
|
|
1332
|
+
RequestId?: string
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1279
1335
|
/**
|
|
1280
1336
|
* 版本控制-类型数组
|
|
1281
1337
|
*/
|
|
@@ -586,12 +586,12 @@ export interface ModifyRuleRequest {
|
|
|
586
586
|
ForwardType?: string
|
|
587
587
|
|
|
588
588
|
/**
|
|
589
|
-
* TRPC被调服务器路由,ForwardType为TRPC
|
|
589
|
+
* TRPC被调服务器路由,ForwardType为TRPC时必填。目前暂未对外开放。
|
|
590
590
|
*/
|
|
591
591
|
TrpcCallee?: string
|
|
592
592
|
|
|
593
593
|
/**
|
|
594
|
-
* TRPC调用服务接口,ForwardType为TRPC
|
|
594
|
+
* TRPC调用服务接口,ForwardType为TRPC时必填。目前暂未对外开放。
|
|
595
595
|
*/
|
|
596
596
|
TrpcFunc?: string
|
|
597
597
|
}
|
|
@@ -3447,13 +3447,13 @@ export interface RuleOutput {
|
|
|
3447
3447
|
WafDomainId: string
|
|
3448
3448
|
|
|
3449
3449
|
/**
|
|
3450
|
-
* TRPC被调服务器路由,ForwardType为TRPC
|
|
3450
|
+
* TRPC被调服务器路由,ForwardType为TRPC时有效。目前暂未对外开放。
|
|
3451
3451
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3452
3452
|
*/
|
|
3453
3453
|
TrpcCallee: string
|
|
3454
3454
|
|
|
3455
3455
|
/**
|
|
3456
|
-
* TRPC调用服务接口,ForwardType为TRPC
|
|
3456
|
+
* TRPC调用服务接口,ForwardType为TRPC时有效。目前暂未对外开放。
|
|
3457
3457
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3458
3458
|
*/
|
|
3459
3459
|
TrpcFunc: string
|
|
@@ -5009,7 +5009,7 @@ export interface RuleInput {
|
|
|
5009
5009
|
Scheduler?: string
|
|
5010
5010
|
|
|
5011
5011
|
/**
|
|
5012
|
-
* 负载均衡与后端服务之间的转发协议,目前支持 HTTP/HTTPS/TRPC
|
|
5012
|
+
* 负载均衡与后端服务之间的转发协议,目前支持 HTTP/HTTPS/TRPC,TRPC暂未对外开放。
|
|
5013
5013
|
*/
|
|
5014
5014
|
ForwardType?: string
|
|
5015
5015
|
|
|
@@ -5029,12 +5029,12 @@ export interface RuleInput {
|
|
|
5029
5029
|
TargetType?: string
|
|
5030
5030
|
|
|
5031
5031
|
/**
|
|
5032
|
-
* TRPC被调服务器路由,ForwardType为TRPC
|
|
5032
|
+
* TRPC被调服务器路由,ForwardType为TRPC时必填。目前暂未对外开放。
|
|
5033
5033
|
*/
|
|
5034
5034
|
TrpcCallee?: string
|
|
5035
5035
|
|
|
5036
5036
|
/**
|
|
5037
|
-
* TRPC调用服务接口,ForwardType为TRPC
|
|
5037
|
+
* TRPC调用服务接口,ForwardType为TRPC时必填。目前暂未对外开放
|
|
5038
5038
|
*/
|
|
5039
5039
|
TrpcFunc?: string
|
|
5040
5040
|
|
|
@@ -245,6 +245,11 @@ export interface RollbackSnapshotRequest {
|
|
|
245
245
|
* 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。
|
|
246
246
|
*/
|
|
247
247
|
DomainId?: number
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* 指定需要回滚的记录
|
|
251
|
+
*/
|
|
252
|
+
RecordList?: Array<SnapshotRecord>
|
|
248
253
|
}
|
|
249
254
|
|
|
250
255
|
/**
|
|
@@ -1517,6 +1522,11 @@ export interface DomainAliasInfo {
|
|
|
1517
1522
|
* 域名别名
|
|
1518
1523
|
*/
|
|
1519
1524
|
DomainAlias: string
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* 别名状态:1-DNS不正确;2-正常;3-封禁。
|
|
1528
|
+
*/
|
|
1529
|
+
Status?: number
|
|
1520
1530
|
}
|
|
1521
1531
|
|
|
1522
1532
|
/**
|
|
@@ -2165,6 +2175,18 @@ export interface SnapshotRecord {
|
|
|
2165
2175
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2166
2176
|
*/
|
|
2167
2177
|
MX?: string
|
|
2178
|
+
|
|
2179
|
+
/**
|
|
2180
|
+
* 权重
|
|
2181
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2182
|
+
*/
|
|
2183
|
+
Weight?: string
|
|
2184
|
+
|
|
2185
|
+
/**
|
|
2186
|
+
* 失败原因
|
|
2187
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2188
|
+
*/
|
|
2189
|
+
Reason?: string
|
|
2168
2190
|
}
|
|
2169
2191
|
|
|
2170
2192
|
/**
|
|
@@ -3685,6 +3685,12 @@ SIGN_PAGING_SEAL - 可以指定印章ID
|
|
|
3685
3685
|
* 关键字索引,可选参数,如果一个关键字在PDF文件中存在多个,可以通过关键字索引指定使用第几个关键字作为最后的结果,可指定多个索引。示例[0,2],说明使用PDF文件内第1个和第3个关键字位置。
|
|
3686
3686
|
*/
|
|
3687
3687
|
KeywordIndexes?: Array<number>
|
|
3688
|
+
|
|
3689
|
+
/**
|
|
3690
|
+
* 填写提示的内容
|
|
3691
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3692
|
+
*/
|
|
3693
|
+
Placeholder?: string
|
|
3688
3694
|
}
|
|
3689
3695
|
|
|
3690
3696
|
/**
|
|
@@ -69,6 +69,12 @@ export interface RegionDetail {
|
|
|
69
69
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
70
70
|
*/
|
|
71
71
|
FeatureBitmap: number
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* 接入区域支持的能力
|
|
75
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
76
|
+
*/
|
|
77
|
+
SupportFeature: SupportFeature
|
|
72
78
|
}
|
|
73
79
|
|
|
74
80
|
/**
|
|
@@ -128,6 +134,16 @@ export interface DescribeUDPListenersRequest {
|
|
|
128
134
|
SearchValue?: string
|
|
129
135
|
}
|
|
130
136
|
|
|
137
|
+
/**
|
|
138
|
+
* 加速区域支持的能力,包括支持的网络类型等等。
|
|
139
|
+
*/
|
|
140
|
+
export interface SupportFeature {
|
|
141
|
+
/**
|
|
142
|
+
* 接入区域支持的网络类型列表,normal表示支持常规BGP,cn2表示精品BGP,triple表示三网,secure_eip表示定制安全eip。
|
|
143
|
+
*/
|
|
144
|
+
NetworkType: Array<string>
|
|
145
|
+
}
|
|
146
|
+
|
|
131
147
|
/**
|
|
132
148
|
* DescribeGlobalDomains请求参数结构体
|
|
133
149
|
*/
|
|
@@ -6360,48 +6360,57 @@ export interface LiveStreamAiRecognitionResultInfo {
|
|
|
6360
6360
|
*/
|
|
6361
6361
|
export interface ActivityPara {
|
|
6362
6362
|
/**
|
|
6363
|
-
|
|
6364
|
-
|
|
6363
|
+
* 视频转码任务
|
|
6364
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6365
|
+
*/
|
|
6365
6366
|
TranscodeTask?: TranscodeTaskInput
|
|
6366
6367
|
|
|
6367
6368
|
/**
|
|
6368
|
-
|
|
6369
|
-
|
|
6369
|
+
* 视频转动图任务
|
|
6370
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6371
|
+
*/
|
|
6370
6372
|
AnimatedGraphicTask?: AnimatedGraphicTaskInput
|
|
6371
6373
|
|
|
6372
6374
|
/**
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
+
* 视频按时间点截图任务
|
|
6376
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6377
|
+
*/
|
|
6375
6378
|
SnapshotByTimeOffsetTask?: SnapshotByTimeOffsetTaskInput
|
|
6376
6379
|
|
|
6377
6380
|
/**
|
|
6378
|
-
|
|
6379
|
-
|
|
6381
|
+
* 视频采样截图任务
|
|
6382
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6383
|
+
*/
|
|
6380
6384
|
SampleSnapshotTask?: SampleSnapshotTaskInput
|
|
6381
6385
|
|
|
6382
6386
|
/**
|
|
6383
|
-
|
|
6384
|
-
|
|
6387
|
+
* 视频截雪碧图任务
|
|
6388
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6389
|
+
*/
|
|
6385
6390
|
ImageSpriteTask?: ImageSpriteTaskInput
|
|
6386
6391
|
|
|
6387
6392
|
/**
|
|
6388
|
-
|
|
6389
|
-
|
|
6393
|
+
* 转自适应码流任务
|
|
6394
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6395
|
+
*/
|
|
6390
6396
|
AdaptiveDynamicStreamingTask?: AdaptiveDynamicStreamingTaskInput
|
|
6391
6397
|
|
|
6392
6398
|
/**
|
|
6393
|
-
|
|
6394
|
-
|
|
6399
|
+
* 视频内容审核类型任务
|
|
6400
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6401
|
+
*/
|
|
6395
6402
|
AiContentReviewTask?: AiContentReviewTaskInput
|
|
6396
6403
|
|
|
6397
6404
|
/**
|
|
6398
|
-
|
|
6399
|
-
|
|
6405
|
+
* 视频内容分析类型任务
|
|
6406
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6407
|
+
*/
|
|
6400
6408
|
AiAnalysisTask?: AiAnalysisTaskInput
|
|
6401
6409
|
|
|
6402
6410
|
/**
|
|
6403
|
-
|
|
6404
|
-
|
|
6411
|
+
* 视频内容识别类型任务
|
|
6412
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6413
|
+
*/
|
|
6405
6414
|
AiRecognitionTask?: AiRecognitionTaskInput
|
|
6406
6415
|
}
|
|
6407
6416
|
|
|
@@ -12208,7 +12217,7 @@ Enabled:已启用,
|
|
|
12208
12217
|
Disabled:已禁用。
|
|
12209
12218
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12210
12219
|
*/
|
|
12211
|
-
Status:
|
|
12220
|
+
Status: string
|
|
12212
12221
|
|
|
12213
12222
|
/**
|
|
12214
12223
|
* 编排绑定的触发规则。
|
|
@@ -18,67 +18,91 @@
|
|
|
18
18
|
import { AbstractClient } from "../../../common/abstract_client"
|
|
19
19
|
import { ClientConfig } from "../../../common/interface"
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
RetrieveSimilarWordsResponse,
|
|
22
22
|
SentenceEmbeddingRequest,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
DpToken,
|
|
27
|
-
TextSimilarityResponse,
|
|
28
|
-
WordEmbeddingRequest,
|
|
29
|
-
ChatBotResponse,
|
|
30
|
-
AutoSummarizationRequest,
|
|
31
|
-
ChatBotRequest,
|
|
32
|
-
TextClassificationResponse,
|
|
33
|
-
KeywordsExtractionRequest,
|
|
23
|
+
EvaluateWordSimilarityResponse,
|
|
24
|
+
ParseWordsResponse,
|
|
25
|
+
BasicParticiple,
|
|
34
26
|
DictInfo,
|
|
35
|
-
|
|
36
|
-
ClassificationResult,
|
|
27
|
+
WordItem,
|
|
37
28
|
TextCorrectionProResponse,
|
|
38
|
-
|
|
29
|
+
Embellish,
|
|
30
|
+
EvaluateWordSimilarityRequest,
|
|
31
|
+
DeleteDictResponse,
|
|
32
|
+
TextWritingResponse,
|
|
33
|
+
CreateDictResponse,
|
|
34
|
+
TextClassificationResponse,
|
|
35
|
+
LexicalAnalysisResponse,
|
|
36
|
+
DescribeDictResponse,
|
|
37
|
+
DescribeDictsResponse,
|
|
38
|
+
DeleteDictRequest,
|
|
39
|
+
Entity,
|
|
40
|
+
GeneratePoetryRequest,
|
|
41
|
+
SearchWordItemsRequest,
|
|
42
|
+
GenerateKeywordSentenceRequest,
|
|
43
|
+
SentimentAnalysisResponse,
|
|
44
|
+
ChatBotResponse,
|
|
45
|
+
KeywordsExtractionRequest,
|
|
46
|
+
SearchResult,
|
|
47
|
+
SentenceEmbeddingResponse,
|
|
48
|
+
UpdateDictRequest,
|
|
49
|
+
SentimentAnalysisRequest,
|
|
50
|
+
TextWritingRequest,
|
|
51
|
+
AutoSummarizationResponse,
|
|
52
|
+
TextCorrectionResponse,
|
|
53
|
+
DeleteWordItemsRequest,
|
|
54
|
+
NerToken,
|
|
55
|
+
SimilarWordsResponse,
|
|
56
|
+
DependencyParsingResponse,
|
|
57
|
+
GenerateCoupletRequest,
|
|
58
|
+
LexicalAnalysisRequest,
|
|
59
|
+
CreateWordItemsResponse,
|
|
39
60
|
TextSimilarityProRequest,
|
|
40
|
-
|
|
61
|
+
RetrieveSimilarWordsRequest,
|
|
62
|
+
Writing,
|
|
63
|
+
AutoSummarizationRequest,
|
|
64
|
+
ClassificationResult,
|
|
41
65
|
DescribeDictsRequest,
|
|
42
66
|
WordSimilarityResponse,
|
|
43
|
-
|
|
67
|
+
TextEmbellishRequest,
|
|
68
|
+
EvaluateSentenceSimilarityResponse,
|
|
44
69
|
CreateWordItemsRequest,
|
|
45
|
-
|
|
46
|
-
DeleteWordItemsResponse,
|
|
47
|
-
SentenceEmbeddingResponse,
|
|
48
|
-
UpdateDictRequest,
|
|
49
|
-
DeleteDictResponse,
|
|
70
|
+
SimilarWordsRequest,
|
|
50
71
|
DescribeWordItemsRequest,
|
|
51
72
|
GenerateCoupletResponse,
|
|
52
|
-
CreateDictResponse,
|
|
53
|
-
TextSimilarityRequest,
|
|
54
|
-
AutoSummarizationResponse,
|
|
55
73
|
WordEmbeddingResponse,
|
|
74
|
+
PosToken,
|
|
75
|
+
KeywordsExtractionResponse,
|
|
76
|
+
SentenceCorrectionResponse,
|
|
77
|
+
EvaluateSentenceSimilarityRequest,
|
|
78
|
+
Similarity,
|
|
79
|
+
GenerateKeywordSentenceResponse,
|
|
80
|
+
CCIToken,
|
|
81
|
+
TextEmbellishResponse,
|
|
82
|
+
CorrectionItem,
|
|
83
|
+
TextClassificationRequest,
|
|
84
|
+
SearchWordItemsResponse,
|
|
85
|
+
DpToken,
|
|
86
|
+
ChatBotRequest,
|
|
87
|
+
TextCorrectionRequest,
|
|
88
|
+
Keyword,
|
|
89
|
+
UpdateDictResponse,
|
|
90
|
+
WordSimilarityRequest,
|
|
91
|
+
DeleteWordItemsResponse,
|
|
92
|
+
TextSimilarityRequest,
|
|
93
|
+
WordEmbeddingRequest,
|
|
94
|
+
CompoundParticiple,
|
|
56
95
|
DescribeWordItemsResponse,
|
|
57
|
-
|
|
96
|
+
ParseWordsRequest,
|
|
97
|
+
TextSimilarityResponse,
|
|
58
98
|
DescribeDictRequest,
|
|
59
|
-
PosToken,
|
|
60
99
|
GeneratePoetryResponse,
|
|
61
|
-
DeleteWordItemsRequest,
|
|
62
|
-
DescribeDictResponse,
|
|
63
|
-
TextCorrectionProRequest,
|
|
64
|
-
TextCorrectionResponse,
|
|
65
100
|
TextSimilarityProResponse,
|
|
66
|
-
DescribeDictsResponse,
|
|
67
101
|
DependencyParsingRequest,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
DependencyParsingResponse,
|
|
73
|
-
SimilarWordsResponse,
|
|
74
|
-
GenerateCoupletRequest,
|
|
75
|
-
CCIToken,
|
|
76
|
-
LexicalAnalysisRequest,
|
|
77
|
-
GeneratePoetryRequest,
|
|
78
|
-
CreateWordItemsResponse,
|
|
79
|
-
SentimentAnalysisRequest,
|
|
80
|
-
SearchWordItemsRequest,
|
|
81
|
-
KeywordsExtractionResponse,
|
|
102
|
+
SentencePair,
|
|
103
|
+
KeywordSentence,
|
|
104
|
+
SentenceCorrectionRequest,
|
|
105
|
+
TextCorrectionProRequest,
|
|
82
106
|
CreateDictRequest,
|
|
83
107
|
} from "./nlp_models"
|
|
84
108
|
|
|
@@ -142,16 +166,23 @@ export class Client extends AbstractClient {
|
|
|
142
166
|
}
|
|
143
167
|
|
|
144
168
|
/**
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
169
|
+
* 通过计算句子间的语义相似性,帮助您快速找到文本中重复或相似的句子,用于文本聚类、相似问题检索等应用场景。
|
|
170
|
+
*/
|
|
171
|
+
async EvaluateSentenceSimilarity(
|
|
172
|
+
req: EvaluateSentenceSimilarityRequest,
|
|
173
|
+
cb?: (error: string, rep: EvaluateSentenceSimilarityResponse) => void
|
|
174
|
+
): Promise<EvaluateSentenceSimilarityResponse> {
|
|
175
|
+
return this.request("EvaluateSentenceSimilarity", req, cb)
|
|
176
|
+
}
|
|
148
177
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
178
|
+
/**
|
|
179
|
+
* 提取文本中的关键信息,生成简洁明了的关键句子,便于用户快速获取核心观点。
|
|
180
|
+
*/
|
|
181
|
+
async GenerateKeywordSentence(
|
|
182
|
+
req: GenerateKeywordSentenceRequest,
|
|
183
|
+
cb?: (error: string, rep: GenerateKeywordSentenceResponse) => void
|
|
184
|
+
): Promise<GenerateKeywordSentenceResponse> {
|
|
185
|
+
return this.request("GenerateKeywordSentence", req, cb)
|
|
155
186
|
}
|
|
156
187
|
|
|
157
188
|
/**
|
|
@@ -164,6 +195,16 @@ export class Client extends AbstractClient {
|
|
|
164
195
|
return this.request("DescribeDicts", req, cb)
|
|
165
196
|
}
|
|
166
197
|
|
|
198
|
+
/**
|
|
199
|
+
* 通过自动补全文本片段,帮助用户快速生成高质量、连贯的完整文本,提高创作效率。
|
|
200
|
+
*/
|
|
201
|
+
async TextWriting(
|
|
202
|
+
req: TextWritingRequest,
|
|
203
|
+
cb?: (error: string, rep: TextWritingResponse) => void
|
|
204
|
+
): Promise<TextWritingResponse> {
|
|
205
|
+
return this.request("TextWriting", req, cb)
|
|
206
|
+
}
|
|
207
|
+
|
|
167
208
|
/**
|
|
168
209
|
* 根据指定的名称、描述创建自定义词库。
|
|
169
210
|
*/
|
|
@@ -184,6 +225,16 @@ export class Client extends AbstractClient {
|
|
|
184
225
|
return this.request("GeneratePoetry", req, cb)
|
|
185
226
|
}
|
|
186
227
|
|
|
228
|
+
/**
|
|
229
|
+
* 通过精准地对文本进行分词、词性标注、命名实体识别等功能,助您更好地理解文本内容,挖掘出潜在的价值信息。
|
|
230
|
+
*/
|
|
231
|
+
async ParseWords(
|
|
232
|
+
req: ParseWordsRequest,
|
|
233
|
+
cb?: (error: string, rep: ParseWordsResponse) => void
|
|
234
|
+
): Promise<ParseWordsResponse> {
|
|
235
|
+
return this.request("ParseWords", req, cb)
|
|
236
|
+
}
|
|
237
|
+
|
|
187
238
|
/**
|
|
188
239
|
* 文本分类接口能够对用户输入的文本进行自动分类,将其映射到具体的类目上,用户只需要提供待分类的文本,而无需关注具体实现。
|
|
189
240
|
|
|
@@ -244,6 +295,16 @@ export class Client extends AbstractClient {
|
|
|
244
295
|
return this.request("TextCorrection", req, cb)
|
|
245
296
|
}
|
|
246
297
|
|
|
298
|
+
/**
|
|
299
|
+
* 评估两个词语在语义空间的相似程度,为您的场景应用提供有力支持,如关键词过滤、热门话题挖掘等。(目前仅支持中文)
|
|
300
|
+
*/
|
|
301
|
+
async EvaluateWordSimilarity(
|
|
302
|
+
req: EvaluateWordSimilarityRequest,
|
|
303
|
+
cb?: (error: string, rep: EvaluateWordSimilarityResponse) => void
|
|
304
|
+
): Promise<EvaluateWordSimilarityResponse> {
|
|
305
|
+
return this.request("EvaluateWordSimilarity", req, cb)
|
|
306
|
+
}
|
|
307
|
+
|
|
247
308
|
/**
|
|
248
309
|
* 根据用户输入的命题关键词自动生成一副春联,包括上联、下联和横批。(如需开通请联系商务)
|
|
249
310
|
*/
|
|
@@ -334,6 +395,16 @@ export class Client extends AbstractClient {
|
|
|
334
395
|
return this.request("LexicalAnalysis", req, cb)
|
|
335
396
|
}
|
|
336
397
|
|
|
398
|
+
/**
|
|
399
|
+
* 基于大数据和深度学习技术,可以快速地找到与给定词语高度相似的其他词语,有助于提高搜索和推荐的准确性。(目前仅支持中文)
|
|
400
|
+
*/
|
|
401
|
+
async RetrieveSimilarWords(
|
|
402
|
+
req: RetrieveSimilarWordsRequest,
|
|
403
|
+
cb?: (error: string, rep: RetrieveSimilarWordsResponse) => void
|
|
404
|
+
): Promise<RetrieveSimilarWordsResponse> {
|
|
405
|
+
return this.request("RetrieveSimilarWords", req, cb)
|
|
406
|
+
}
|
|
407
|
+
|
|
337
408
|
/**
|
|
338
409
|
* 基于关键词提取平台,通过对文本内容进行深度分析,提取出文本内容中的关键信息,为用户实现诸如新闻内容关键词自动提取、评论关键词提取等提供基础服务。
|
|
339
410
|
*/
|
|
@@ -344,6 +415,16 @@ export class Client extends AbstractClient {
|
|
|
344
415
|
return this.request("KeywordsExtraction", req, cb)
|
|
345
416
|
}
|
|
346
417
|
|
|
418
|
+
/**
|
|
419
|
+
* 运用先进的自然语言处理技术,对原始文本进行优化润色,提升文本的通顺性、表达力和语言质量。
|
|
420
|
+
*/
|
|
421
|
+
async TextEmbellish(
|
|
422
|
+
req: TextEmbellishRequest,
|
|
423
|
+
cb?: (error: string, rep: TextEmbellishResponse) => void
|
|
424
|
+
): Promise<TextEmbellishResponse> {
|
|
425
|
+
return this.request("TextEmbellish", req, cb)
|
|
426
|
+
}
|
|
427
|
+
|
|
347
428
|
/**
|
|
348
429
|
* 提供对中文文本的自动纠错功能,能够识别输入文本中的错误片段,定位错误并给出正确的文本结果;支持长度不超过128字符(含标点符号)的长文本纠错。
|
|
349
430
|
|
|
@@ -356,6 +437,29 @@ export class Client extends AbstractClient {
|
|
|
356
437
|
return this.request("TextCorrectionPro", req, cb)
|
|
357
438
|
}
|
|
358
439
|
|
|
440
|
+
/**
|
|
441
|
+
* 词向量接口能够将输入的词语映射成一个固定维度的词向量,用来表示这个词语的语义特征。词向量是很多自然语言处理技术的基础,能够显著提高它们的效果。
|
|
442
|
+
|
|
443
|
+
该词向量服务由腾讯知文自然语言处理团队联合腾讯AI Lab共同打造。使用的词向量基于千亿级大规模互联网语料并采用AI Lab自研的DSG算法训练而成,开源的词向量包含800多万中文词汇,在覆盖率、新鲜度及准确性等三方面性能突出。
|
|
444
|
+
|
|
445
|
+
*/
|
|
446
|
+
async WordEmbedding(
|
|
447
|
+
req: WordEmbeddingRequest,
|
|
448
|
+
cb?: (error: string, rep: WordEmbeddingResponse) => void
|
|
449
|
+
): Promise<WordEmbeddingResponse> {
|
|
450
|
+
return this.request("WordEmbedding", req, cb)
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* 智能识别并纠正句子中的语法、拼写、用词等错误,确保文本的准确性和可读性。
|
|
455
|
+
*/
|
|
456
|
+
async SentenceCorrection(
|
|
457
|
+
req: SentenceCorrectionRequest,
|
|
458
|
+
cb?: (error: string, rep: SentenceCorrectionResponse) => void
|
|
459
|
+
): Promise<SentenceCorrectionResponse> {
|
|
460
|
+
return this.request("SentenceCorrection", req, cb)
|
|
461
|
+
}
|
|
462
|
+
|
|
359
463
|
/**
|
|
360
464
|
* 删除自定义词库,会附带相应删除词库包含的所有词条。
|
|
361
465
|
*/
|