tencentcloud-sdk-nodejs 4.0.504 → 4.0.506
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 +277 -0
- package/README.md +17 -29
- package/SERVICE_CHANGELOG.md +272 -75
- package/examples/cvm_role.js +26 -0
- package/package.json +1 -1
- package/products.md +21 -21
- package/src/common/abstract_client.ts +27 -19
- package/src/common/cvm_role_credential.ts +62 -0
- package/src/common/http/fetch.ts +2 -2
- package/src/common/interface.ts +8 -1
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_models.ts +23 -1
- package/src/services/billing/v20180709/billing_models.ts +4 -6
- package/src/services/ccc/v20200210/ccc_client.ts +13 -1
- package/src/services/ccc/v20200210/ccc_models.ts +54 -29
- package/src/services/cfs/v20190719/cfs_models.ts +12 -0
- package/src/services/cfw/v20190904/cfw_models.ts +1 -1
- package/src/services/cvm/v20170312/cvm_models.ts +24 -39
- package/src/services/essbasic/v20210526/essbasic_client.ts +1 -1
- package/src/services/gme/v20180711/gme_client.ts +6 -6
- package/src/services/gme/v20180711/gme_models.ts +7 -7
- package/src/services/mps/v20190612/mps_models.ts +15 -6
- package/src/services/nlp/v20190408/nlp_client.ts +28 -4
- package/src/services/nlp/v20190408/nlp_models.ts +118 -38
- package/src/services/ses/v20201002/ses_client.ts +12 -0
- package/src/services/ses/v20201002/ses_models.ts +25 -0
- package/src/services/ssl/v20191205/ssl_client.ts +1 -0
- package/src/services/ssl/v20191205/ssl_models.ts +47 -0
- package/src/services/thpc/v20220401/thpc_models.ts +5 -5
- package/src/services/tione/v20211111/tione_models.ts +29 -2
- package/src/services/trtc/v20190722/trtc_models.ts +4 -4
- package/src/services/tsf/v20180326/tsf_models.ts +3 -2
- package/src/services/vpc/v20170312/vpc_client.ts +1 -1
- package/src/services/vpc/v20170312/vpc_models.ts +14 -8
- package/tencentcloud/common/abstract_client.d.ts +3 -2
- package/tencentcloud/common/abstract_client.js +21 -13
- package/tencentcloud/common/cvm_role_credential.d.ts +17 -0
- package/tencentcloud/common/cvm_role_credential.js +47 -0
- package/tencentcloud/common/http/fetch.d.ts +2 -2
- package/tencentcloud/common/interface.d.ts +7 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +19 -1
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +4 -6
- package/tencentcloud/services/ccc/v20200210/ccc_client.d.ts +5 -1
- package/tencentcloud/services/ccc/v20200210/ccc_client.js +6 -0
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +46 -24
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +10 -0
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +1 -1
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +19 -38
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +1 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +1 -1
- package/tencentcloud/services/gme/v20180711/gme_client.d.ts +6 -6
- package/tencentcloud/services/gme/v20180711/gme_client.js +6 -6
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +7 -7
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +12 -4
- package/tencentcloud/services/nlp/v20190408/nlp_client.d.ts +9 -1
- package/tencentcloud/services/nlp/v20190408/nlp_client.js +12 -0
- package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +103 -35
- package/tencentcloud/services/ses/v20201002/ses_client.d.ts +5 -1
- package/tencentcloud/services/ses/v20201002/ses_client.js +6 -0
- package/tencentcloud/services/ses/v20201002/ses_models.d.ts +22 -0
- package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +40 -0
- package/tencentcloud/services/thpc/v20220401/thpc_models.d.ts +5 -5
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +24 -2
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +4 -4
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +1 -0
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +11 -6
- package/test/ccc.v20200210.test.js +10 -0
- package/test/nlp.v20190408.test.js +20 -0
- package/test/ses.v20201002.test.js +10 -0
|
@@ -3198,6 +3198,22 @@ export interface Instance {
|
|
|
3198
3198
|
* 实例销毁保护标志,表示是否允许通过api接口删除实例。取值范围:<br><li>TRUE:表示开启实例保护,不允许通过api接口删除实例<br><li>FALSE:表示关闭实例保护,允许通过api接口删除实例<br><br>默认取值:FALSE。
|
|
3199
3199
|
*/
|
|
3200
3200
|
DisableApiTermination?: boolean
|
|
3201
|
+
|
|
3202
|
+
/**
|
|
3203
|
+
* 默认登录用户。
|
|
3204
|
+
*/
|
|
3205
|
+
DefaultLoginUser?: string
|
|
3206
|
+
|
|
3207
|
+
/**
|
|
3208
|
+
* 默认登录端口。
|
|
3209
|
+
*/
|
|
3210
|
+
DefaultLoginPort?: number
|
|
3211
|
+
|
|
3212
|
+
/**
|
|
3213
|
+
* 实例的最新操作错误信息。
|
|
3214
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3215
|
+
*/
|
|
3216
|
+
LatestOperationErrorMsg?: string
|
|
3201
3217
|
}
|
|
3202
3218
|
|
|
3203
3219
|
/**
|
|
@@ -4066,44 +4082,8 @@ export interface DescribeInstancesRequest {
|
|
|
4066
4082
|
InstanceIds?: Array<string>
|
|
4067
4083
|
|
|
4068
4084
|
/**
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
<li><strong>project-id</strong></li>
|
|
4072
|
-
<p style="padding-left: 30px;">按照【<strong>项目ID</strong>】进行过滤,可通过调用[DescribeProject](https://cloud.tencent.com/document/api/378/4400)查询已创建的项目列表或登录[控制台](https://console.cloud.tencent.com/cvm/index)进行查看;也可以调用[AddProject](https://cloud.tencent.com/document/api/378/4398)创建新的项目。项目ID形如:1002189。</p><p style="padding-left: 30px;">类型:Integer</p><p style="padding-left: 30px;">必选:否</p>
|
|
4073
|
-
<li><strong>host-id</strong></li>
|
|
4074
|
-
<p style="padding-left: 30px;">按照【<strong>[CDH](https://cloud.tencent.com/document/product/416) ID</strong>】进行过滤。[CDH](https://cloud.tencent.com/document/product/416) ID形如:host-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4075
|
-
<li><strong>dedicated-cluster-id</strong></li>
|
|
4076
|
-
<p style="padding-left: 30px;">按照【<strong>[CDC](https://cloud.tencent.com/document/product/1346) ID</strong>】进行过滤。[CDC](https://cloud.tencent.com/document/product/1346) ID形如:cluster-xxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4077
|
-
<li><strong>vpc-id</strong></li>
|
|
4078
|
-
<p style="padding-left: 30px;">按照【<strong>VPC ID</strong>】进行过滤。VPC ID形如:vpc-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4079
|
-
<li><strong>subnet-id</strong></li>
|
|
4080
|
-
<p style="padding-left: 30px;">按照【<strong>子网ID</strong>】进行过滤。子网ID形如:subnet-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4081
|
-
<li><strong>instance-id</strong></li>
|
|
4082
|
-
<p style="padding-left: 30px;">按照【<strong>实例ID</strong>】进行过滤。实例ID形如:ins-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4083
|
-
<li><strong>uuid</strong></li>
|
|
4084
|
-
<p style="padding-left: 30px;">按照【<strong>实例UUID</strong>】进行过滤。实例UUID形如:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4085
|
-
<li><strong>security-group-id</strong></li>
|
|
4086
|
-
<p style="padding-left: 30px;">按照【<strong>安全组ID</strong>】进行过滤。安全组ID形如: sg-8jlk3f3r。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4087
|
-
<li><strong>instance-name</strong></li>
|
|
4088
|
-
<p style="padding-left: 30px;">按照【<strong>实例名称</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4089
|
-
<li><strong>instance-charge-type</strong></li>
|
|
4090
|
-
<p style="padding-left: 30px;">按照【<strong>实例计费模式</strong>】进行过滤。(PREPAID:表示预付费,即包年包月 | POSTPAID_BY_HOUR:表示后付费,即按量计费 | CDHPAID:表示[CDH](https://cloud.tencent.com/document/product/416)付费,即只对[CDH](https://cloud.tencent.com/document/product/416)计费,不对[CDH](https://cloud.tencent.com/document/product/416)上的实例计费。)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4091
|
-
<li><strong>instance-state</strong></li>
|
|
4092
|
-
<p style="padding-left: 30px;">按照【<strong>实例状态</strong>】进行过滤。状态类型详见[实例状态表](https://cloud.tencent.com/document/api/213/15753#InstanceStatus)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4093
|
-
<li><strong>private-ip-address</strong></li>
|
|
4094
|
-
<p style="padding-left: 30px;">按照【<strong>实例主网卡的内网IP</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4095
|
-
<li><strong>public-ip-address</strong></li>
|
|
4096
|
-
<p style="padding-left: 30px;">按照【<strong>实例主网卡的公网IP</strong>】进行过滤,包含实例创建时自动分配的IP和实例创建后手动绑定的弹性IP。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4097
|
-
<li><strong>ipv6-address</strong></li>
|
|
4098
|
-
<p style="padding-left: 30px;">按照【<strong>实例的IPv6地址</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4099
|
-
<li><strong>tag-key</strong></li>
|
|
4100
|
-
<p style="padding-left: 30px;">按照【<strong>标签键</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4101
|
-
<li><strong>tag-value</strong></li>
|
|
4102
|
-
<p style="padding-left: 30px;">按照【<strong>标签值</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4103
|
-
<li><strong>tag:tag-key</strong></li>
|
|
4104
|
-
<p style="padding-left: 30px;">按照【<strong>标签键值对</strong>】进行过滤。tag-key使用具体的标签键进行替换。使用请参考示例2。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4105
|
-
每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`InstanceIds`和`Filters`。
|
|
4106
|
-
*/
|
|
4085
|
+
* <li><strong>zone</strong></li> <p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a></p> <li><strong>project-id</strong></li> <p style="padding-left: 30px;">按照【<strong>项目ID</strong>】进行过滤,可通过调用[DescribeProjects](https://cloud.tencent.com/document/api/651/78725)查询已创建的项目列表或登录[控制台](https://console.cloud.tencent.com/cvm/index)进行查看;也可以调用[AddProject](https://cloud.tencent.com/document/api/651/81952)创建新的项目。项目ID形如:1002189。</p><p style="padding-left: 30px;">类型:Integer</p><p style="padding-left: 30px;">必选:否</p> <li><strong>host-id</strong></li> <p style="padding-left: 30px;">按照【<strong>[CDH](https://cloud.tencent.com/document/product/416) ID</strong>】进行过滤。[CDH](https://cloud.tencent.com/document/product/416) ID形如:host-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>dedicated-cluster-id</strong></li> <p style="padding-left: 30px;">按照【<strong>[CDC](https://cloud.tencent.com/document/product/1346) ID</strong>】进行过滤。[CDC](https://cloud.tencent.com/document/product/1346) ID形如:cluster-xxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>vpc-id</strong></li> <p style="padding-left: 30px;">按照【<strong>VPC ID</strong>】进行过滤。VPC ID形如:vpc-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>subnet-id</strong></li> <p style="padding-left: 30px;">按照【<strong>子网ID</strong>】进行过滤。子网ID形如:subnet-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>instance-id</strong></li> <p style="padding-left: 30px;">按照【<strong>实例ID</strong>】进行过滤。实例ID形如:ins-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>uuid</strong></li> <p style="padding-left: 30px;">按照【<strong>实例UUID</strong>】进行过滤。实例UUID形如:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>security-group-id</strong></li> <p style="padding-left: 30px;">按照【<strong>安全组ID</strong>】进行过滤。安全组ID形如: sg-8jlk3f3r。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>instance-name</strong></li> <p style="padding-left: 30px;">按照【<strong>实例名称</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>instance-charge-type</strong></li> <p style="padding-left: 30px;">按照【<strong>实例计费模式</strong>】进行过滤。(PREPAID:表示预付费,即包年包月 | POSTPAID_BY_HOUR:表示后付费,即按量计费 | CDHPAID:表示[CDH](https://cloud.tencent.com/document/product/416)付费,即只对[CDH](https://cloud.tencent.com/document/product/416)计费,不对[CDH](https://cloud.tencent.com/document/product/416)上的实例计费。)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>instance-state</strong></li> <p style="padding-left: 30px;">按照【<strong>实例状态</strong>】进行过滤。状态类型详见[实例状态表](https://cloud.tencent.com/document/api/213/15753#InstanceStatus)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>private-ip-address</strong></li> <p style="padding-left: 30px;">按照【<strong>实例主网卡的内网IP</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>public-ip-address</strong></li> <p style="padding-left: 30px;">按照【<strong>实例主网卡的公网IP</strong>】进行过滤,包含实例创建时自动分配的IP和实例创建后手动绑定的弹性IP。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>ipv6-address</strong></li> <p style="padding-left: 30px;">按照【<strong>实例的IPv6地址</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>tag-key</strong></li> <p style="padding-left: 30px;">按照【<strong>标签键</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>tag-value</strong></li> <p style="padding-left: 30px;">按照【<strong>标签值</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>tag:tag-key</strong></li> <p style="padding-left: 30px;">按照【<strong>标签键值对</strong>】进行过滤。tag-key使用具体的标签键进行替换。使用请参考示例2。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`InstanceIds`和`Filters`。
|
|
4086
|
+
*/
|
|
4107
4087
|
Filters?: Array<Filter>
|
|
4108
4088
|
|
|
4109
4089
|
/**
|
|
@@ -4888,7 +4868,12 @@ export interface ExportImagesResponse {
|
|
|
4888
4868
|
/**
|
|
4889
4869
|
* 导出镜像任务ID
|
|
4890
4870
|
*/
|
|
4891
|
-
TaskId
|
|
4871
|
+
TaskId?: number
|
|
4872
|
+
|
|
4873
|
+
/**
|
|
4874
|
+
* 导出镜像的COS文件名列表
|
|
4875
|
+
*/
|
|
4876
|
+
CosPaths?: Array<string>
|
|
4892
4877
|
|
|
4893
4878
|
/**
|
|
4894
4879
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -139,7 +139,7 @@ export class Client extends AbstractClient {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
|
-
*
|
|
142
|
+
* 查询语音消息转文本热句模型列表
|
|
143
143
|
*/
|
|
144
144
|
async GetCustomizationList(
|
|
145
145
|
req: GetCustomizationListRequest,
|
|
@@ -169,7 +169,7 @@ export class Client extends AbstractClient {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
|
-
*
|
|
172
|
+
* 用户使用该接口可以创建语音消息转文本热句模型,以供识别调用
|
|
173
173
|
*/
|
|
174
174
|
async CreateCustomization(
|
|
175
175
|
req: CreateCustomizationRequest,
|
|
@@ -273,7 +273,7 @@ export class Client extends AbstractClient {
|
|
|
273
273
|
<h4 id="Callback_Declare"><b>回调相关说明:</b></h4>
|
|
274
274
|
<li>如果在请求参数中指定了回调地址参数 Callback,即一个 HTTP(S) 协议接口的 URL,则需要支持 POST 方法,传输数据编码采用 UTF-8。</li>
|
|
275
275
|
<li>在推送回调数据后,接收到的 HTTP 状态码为 200 时,表示推送成功。</li>
|
|
276
|
-
<li>HTTP
|
|
276
|
+
<li>HTTP 请求参数(query)说明:</li>
|
|
277
277
|
<table>
|
|
278
278
|
<thread>
|
|
279
279
|
<tr>
|
|
@@ -384,7 +384,7 @@ export class Client extends AbstractClient {
|
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
/**
|
|
387
|
-
*
|
|
387
|
+
* 用户通过该接口可以更新语音消息转文本热句模型。
|
|
388
388
|
*/
|
|
389
389
|
async ModifyCustomization(
|
|
390
390
|
req: ModifyCustomizationRequest,
|
|
@@ -435,7 +435,7 @@ export class Client extends AbstractClient {
|
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
/**
|
|
438
|
-
*
|
|
438
|
+
* 通过该接口,用户可以修改语音消息转文本热句模型状态,上下线热句模型
|
|
439
439
|
*/
|
|
440
440
|
async ModifyCustomizationState(
|
|
441
441
|
req: ModifyCustomizationStateRequest,
|
|
@@ -457,7 +457,7 @@ export class Client extends AbstractClient {
|
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
/**
|
|
460
|
-
*
|
|
460
|
+
* 用户通过该接口可以删除语音消息转文本热句模型
|
|
461
461
|
*/
|
|
462
462
|
async DeleteCustomization(
|
|
463
463
|
req: DeleteCustomizationRequest,
|
|
@@ -305,7 +305,7 @@ export interface ModifyUserMicStatusRequest {
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
/**
|
|
308
|
-
*
|
|
308
|
+
* 语音消息转文本热句模型配置
|
|
309
309
|
*/
|
|
310
310
|
export interface CustomizationConfigs {
|
|
311
311
|
/**
|
|
@@ -477,7 +477,7 @@ export interface ModifyCustomizationResponse {
|
|
|
477
477
|
ErrorCode: number
|
|
478
478
|
|
|
479
479
|
/**
|
|
480
|
-
*
|
|
480
|
+
* 模型ID
|
|
481
481
|
*/
|
|
482
482
|
ModelId: string
|
|
483
483
|
|
|
@@ -522,7 +522,7 @@ export interface DescribeScanResultListRequest {
|
|
|
522
522
|
*/
|
|
523
523
|
export interface ModifyCustomizationStateResponse {
|
|
524
524
|
/**
|
|
525
|
-
*
|
|
525
|
+
* 模型ID
|
|
526
526
|
*/
|
|
527
527
|
ModelId: string
|
|
528
528
|
|
|
@@ -639,7 +639,7 @@ export interface CreateScanUserRequest {
|
|
|
639
639
|
*/
|
|
640
640
|
export interface ModifyCustomizationStateRequest {
|
|
641
641
|
/**
|
|
642
|
-
*
|
|
642
|
+
* 模型ID
|
|
643
643
|
*/
|
|
644
644
|
ModelId: string
|
|
645
645
|
|
|
@@ -725,7 +725,7 @@ Age :子任务完成后的结果,0:成年人,1:未成年人,100:未知
|
|
|
725
725
|
*/
|
|
726
726
|
export interface GetCustomizationListResponse {
|
|
727
727
|
/**
|
|
728
|
-
*
|
|
728
|
+
* 语音消息转文本热句模型配置
|
|
729
729
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
730
730
|
*/
|
|
731
731
|
CustomizationConfigs: Array<CustomizationConfigs>
|
|
@@ -953,7 +953,7 @@ export interface ModifyCustomizationRequest {
|
|
|
953
953
|
TextUrl: string
|
|
954
954
|
|
|
955
955
|
/**
|
|
956
|
-
*
|
|
956
|
+
* 修改的模型ID
|
|
957
957
|
*/
|
|
958
958
|
ModelId: string
|
|
959
959
|
}
|
|
@@ -1501,7 +1501,7 @@ export interface StatusInfo {
|
|
|
1501
1501
|
*/
|
|
1502
1502
|
export interface DeleteCustomizationRequest {
|
|
1503
1503
|
/**
|
|
1504
|
-
*
|
|
1504
|
+
* 删除的模型ID
|
|
1505
1505
|
*/
|
|
1506
1506
|
ModelId: string
|
|
1507
1507
|
|
|
@@ -988,7 +988,7 @@ export interface EnhanceConfig {
|
|
|
988
988
|
*/
|
|
989
989
|
export interface MediaInputInfo {
|
|
990
990
|
/**
|
|
991
|
-
* 输入来源对象的类型,支持 COS
|
|
991
|
+
* 输入来源对象的类型,支持 COS、URL 两种。
|
|
992
992
|
*/
|
|
993
993
|
Type: string
|
|
994
994
|
|
|
@@ -4240,8 +4240,10 @@ export interface LiveStreamTaskNotifyConfig {
|
|
|
4240
4240
|
TopicName?: string
|
|
4241
4241
|
|
|
4242
4242
|
/**
|
|
4243
|
-
|
|
4244
|
-
|
|
4243
|
+
* 通知类型,默认CMQ,指定URL时HTTP回调推送到 NotifyUrl 指定的地址。
|
|
4244
|
+
|
|
4245
|
+
<font color="red"> 注:不填或为空时默认 CMQ,如需采用其他类型需填写对应类型值。 </font>
|
|
4246
|
+
*/
|
|
4245
4247
|
NotifyType?: string
|
|
4246
4248
|
|
|
4247
4249
|
/**
|
|
@@ -4979,6 +4981,13 @@ export interface ProcessMediaRequest {
|
|
|
4979
4981
|
注意3:编排的 Trigger 只是用来自动化触发场景,在手动发起的请求中已经配置的 Trigger 无意义。
|
|
4980
4982
|
*/
|
|
4981
4983
|
ScheduleId?: number
|
|
4984
|
+
|
|
4985
|
+
/**
|
|
4986
|
+
* 任务类型,默认Online
|
|
4987
|
+
<li> Online:实时任务</li>
|
|
4988
|
+
<li> Offline:闲时任务,不保证实效性,默认3天内处理完</li>
|
|
4989
|
+
*/
|
|
4990
|
+
TaskType?: string
|
|
4982
4991
|
}
|
|
4983
4992
|
|
|
4984
4993
|
/**
|
|
@@ -9627,12 +9636,12 @@ export interface TaskNotifyConfig {
|
|
|
9627
9636
|
/**
|
|
9628
9637
|
* CMQ或TDMQ-CMQ 的模型,有 Queue 和 Topic 两种。
|
|
9629
9638
|
*/
|
|
9630
|
-
CmqModel
|
|
9639
|
+
CmqModel?: string
|
|
9631
9640
|
|
|
9632
9641
|
/**
|
|
9633
9642
|
* CMQ或TDMQ-CMQ 的园区,如 sh,bj 等。
|
|
9634
9643
|
*/
|
|
9635
|
-
CmqRegion
|
|
9644
|
+
CmqRegion?: string
|
|
9636
9645
|
|
|
9637
9646
|
/**
|
|
9638
9647
|
* 当模型为 Topic 时有效,表示接收事件通知的 CMQ 或 TDMQ-CMQ 的主题名。
|
|
@@ -9655,7 +9664,7 @@ export interface TaskNotifyConfig {
|
|
|
9655
9664
|
<li>TDMQ-CMQ:消息队列</li>
|
|
9656
9665
|
<li>URL:指定URL时HTTP回调推送到 NotifyUrl 指定的地址,回调协议http+json,包体内容同解析事件通知接口的输出参数 </li>
|
|
9657
9666
|
<li>SCF:不推荐使用,需要在控制台额外配置SCF</li>
|
|
9658
|
-
|
|
9667
|
+
<font color="red"> 注:不填或为空时默认 CMQ,如需采用其他类型需填写对应类型值。 </font>
|
|
9659
9668
|
*/
|
|
9660
9669
|
NotifyType?: string
|
|
9661
9670
|
|
|
@@ -20,6 +20,7 @@ import { ClientConfig } from "../../../common/interface"
|
|
|
20
20
|
import {
|
|
21
21
|
LexicalAnalysisResponse,
|
|
22
22
|
SentenceEmbeddingRequest,
|
|
23
|
+
TextClassificationRequest,
|
|
23
24
|
WordSimilarityRequest,
|
|
24
25
|
SearchWordItemsResponse,
|
|
25
26
|
DpToken,
|
|
@@ -47,7 +48,7 @@ import {
|
|
|
47
48
|
UpdateDictRequest,
|
|
48
49
|
DeleteDictResponse,
|
|
49
50
|
DescribeWordItemsRequest,
|
|
50
|
-
|
|
51
|
+
GenerateCoupletResponse,
|
|
51
52
|
CreateDictResponse,
|
|
52
53
|
TextSimilarityRequest,
|
|
53
54
|
AutoSummarizationResponse,
|
|
@@ -56,7 +57,7 @@ import {
|
|
|
56
57
|
SimilarWordsRequest,
|
|
57
58
|
DescribeDictRequest,
|
|
58
59
|
PosToken,
|
|
59
|
-
|
|
60
|
+
GeneratePoetryResponse,
|
|
60
61
|
DeleteWordItemsRequest,
|
|
61
62
|
DescribeDictResponse,
|
|
62
63
|
TextCorrectionProRequest,
|
|
@@ -65,12 +66,15 @@ import {
|
|
|
65
66
|
DescribeDictsResponse,
|
|
66
67
|
DependencyParsingRequest,
|
|
67
68
|
DeleteDictRequest,
|
|
69
|
+
Similarity,
|
|
68
70
|
NerToken,
|
|
69
|
-
|
|
71
|
+
SentimentAnalysisResponse,
|
|
70
72
|
DependencyParsingResponse,
|
|
71
|
-
|
|
73
|
+
SimilarWordsResponse,
|
|
74
|
+
GenerateCoupletRequest,
|
|
72
75
|
CCIToken,
|
|
73
76
|
LexicalAnalysisRequest,
|
|
77
|
+
GeneratePoetryRequest,
|
|
74
78
|
CreateWordItemsResponse,
|
|
75
79
|
SentimentAnalysisRequest,
|
|
76
80
|
SearchWordItemsRequest,
|
|
@@ -175,6 +179,16 @@ https://ai.tencent.com/ailab/nlp/zh/embedding.html
|
|
|
175
179
|
return this.request("CreateDict", req, cb)
|
|
176
180
|
}
|
|
177
181
|
|
|
182
|
+
/**
|
|
183
|
+
* 根据用户输入的命题关键词自动生成一首七言律诗或五言律诗。(如需开通请联系商务)
|
|
184
|
+
*/
|
|
185
|
+
async GeneratePoetry(
|
|
186
|
+
req: GeneratePoetryRequest,
|
|
187
|
+
cb?: (error: string, rep: GeneratePoetryResponse) => void
|
|
188
|
+
): Promise<GeneratePoetryResponse> {
|
|
189
|
+
return this.request("GeneratePoetry", req, cb)
|
|
190
|
+
}
|
|
191
|
+
|
|
178
192
|
/**
|
|
179
193
|
* 文本分类接口能够对用户输入的文本进行自动分类,将其映射到具体的类目上,用户只需要提供待分类的文本,而无需关注具体实现。
|
|
180
194
|
|
|
@@ -235,6 +249,16 @@ https://ai.tencent.com/ailab/nlp/zh/embedding.html
|
|
|
235
249
|
return this.request("TextCorrection", req, cb)
|
|
236
250
|
}
|
|
237
251
|
|
|
252
|
+
/**
|
|
253
|
+
* 根据用户输入的命题关键词自动生成一副春联,包括上联、下联和横批。(如需开通请联系商务)
|
|
254
|
+
*/
|
|
255
|
+
async GenerateCouplet(
|
|
256
|
+
req: GenerateCoupletRequest,
|
|
257
|
+
cb?: (error: string, rep: GenerateCoupletResponse) => void
|
|
258
|
+
): Promise<GenerateCoupletResponse> {
|
|
259
|
+
return this.request("GenerateCouplet", req, cb)
|
|
260
|
+
}
|
|
261
|
+
|
|
238
262
|
/**
|
|
239
263
|
* 向指定的词库中添加词条。
|
|
240
264
|
*/
|
|
@@ -50,6 +50,23 @@ export interface SentenceEmbeddingRequest {
|
|
|
50
50
|
Text: string
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* TextClassification请求参数结构体
|
|
55
|
+
*/
|
|
56
|
+
export interface TextClassificationRequest {
|
|
57
|
+
/**
|
|
58
|
+
* 待分类的文本(仅支持UTF-8格式,不超过10000字)
|
|
59
|
+
*/
|
|
60
|
+
Text: string
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* 领域分类体系(默认取1值):
|
|
64
|
+
1、通用领域,二分类
|
|
65
|
+
2、新闻领域,五分类。类别数据不一定全部返回,详情见类目映射表(注意:目前五分类已下线不可用)
|
|
66
|
+
*/
|
|
67
|
+
Flag?: number
|
|
68
|
+
}
|
|
69
|
+
|
|
53
70
|
/**
|
|
54
71
|
* WordSimilarity请求参数结构体
|
|
55
72
|
*/
|
|
@@ -567,20 +584,28 @@ export interface DescribeWordItemsRequest {
|
|
|
567
584
|
}
|
|
568
585
|
|
|
569
586
|
/**
|
|
570
|
-
*
|
|
587
|
+
* GenerateCouplet返回参数结构体
|
|
571
588
|
*/
|
|
572
|
-
export interface
|
|
589
|
+
export interface GenerateCoupletResponse {
|
|
573
590
|
/**
|
|
574
|
-
*
|
|
591
|
+
* 横批。
|
|
575
592
|
*/
|
|
576
|
-
|
|
593
|
+
TopScroll: string
|
|
577
594
|
|
|
578
595
|
/**
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
596
|
+
* 上联与下联。
|
|
597
|
+
*/
|
|
598
|
+
Content: Array<string>
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* 当对联随机生成时,展示随机生成原因。
|
|
602
|
+
*/
|
|
603
|
+
RandomCause: string
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
607
|
+
*/
|
|
608
|
+
RequestId?: string
|
|
584
609
|
}
|
|
585
610
|
|
|
586
611
|
/**
|
|
@@ -726,32 +751,18 @@ export interface PosToken {
|
|
|
726
751
|
}
|
|
727
752
|
|
|
728
753
|
/**
|
|
729
|
-
*
|
|
754
|
+
* GeneratePoetry返回参数结构体
|
|
730
755
|
*/
|
|
731
|
-
export interface
|
|
756
|
+
export interface GeneratePoetryResponse {
|
|
732
757
|
/**
|
|
733
|
-
*
|
|
758
|
+
* 诗题,即输入的生成诗词的关键词。
|
|
734
759
|
*/
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
* 中性情感概率,当输入参数Mode取值为3class时有效,否则值为空
|
|
739
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
740
|
-
*/
|
|
741
|
-
Neutral: number
|
|
760
|
+
Title: string
|
|
742
761
|
|
|
743
762
|
/**
|
|
744
|
-
*
|
|
763
|
+
* 诗的内容。
|
|
745
764
|
*/
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* 情感分类结果:
|
|
750
|
-
1、positive,表示正面情感
|
|
751
|
-
2、negative,表示负面情感
|
|
752
|
-
3、neutral,表示中性、无情感
|
|
753
|
-
*/
|
|
754
|
-
Sentiment: string
|
|
765
|
+
Content: Array<string>
|
|
755
766
|
|
|
756
767
|
/**
|
|
757
768
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -877,6 +888,21 @@ export interface DeleteDictRequest {
|
|
|
877
888
|
DictId: string
|
|
878
889
|
}
|
|
879
890
|
|
|
891
|
+
/**
|
|
892
|
+
* 文本相似度
|
|
893
|
+
*/
|
|
894
|
+
export interface Similarity {
|
|
895
|
+
/**
|
|
896
|
+
* 目标文本句子
|
|
897
|
+
*/
|
|
898
|
+
Text: string
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* 相似度分数
|
|
902
|
+
*/
|
|
903
|
+
Score: number
|
|
904
|
+
}
|
|
905
|
+
|
|
880
906
|
/**
|
|
881
907
|
* 命名实体识别结果
|
|
882
908
|
*/
|
|
@@ -903,13 +929,32 @@ export interface NerToken {
|
|
|
903
929
|
}
|
|
904
930
|
|
|
905
931
|
/**
|
|
906
|
-
*
|
|
932
|
+
* SentimentAnalysis返回参数结构体
|
|
907
933
|
*/
|
|
908
|
-
export interface
|
|
934
|
+
export interface SentimentAnalysisResponse {
|
|
909
935
|
/**
|
|
910
|
-
*
|
|
936
|
+
* 正面情感概率
|
|
911
937
|
*/
|
|
912
|
-
|
|
938
|
+
Positive: number
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* 中性情感概率,当输入参数Mode取值为3class时有效,否则值为空
|
|
942
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
943
|
+
*/
|
|
944
|
+
Neutral: number
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* 负面情感概率
|
|
948
|
+
*/
|
|
949
|
+
Negative: number
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* 情感分类结果:
|
|
953
|
+
1、positive,表示正面情感
|
|
954
|
+
2、negative,表示负面情感
|
|
955
|
+
3、neutral,表示中性、无情感
|
|
956
|
+
*/
|
|
957
|
+
Sentiment: string
|
|
913
958
|
|
|
914
959
|
/**
|
|
915
960
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -948,18 +993,33 @@ export interface DependencyParsingResponse {
|
|
|
948
993
|
}
|
|
949
994
|
|
|
950
995
|
/**
|
|
951
|
-
*
|
|
996
|
+
* SimilarWords返回参数结构体
|
|
952
997
|
*/
|
|
953
|
-
export interface
|
|
998
|
+
export interface SimilarWordsResponse {
|
|
954
999
|
/**
|
|
955
|
-
*
|
|
1000
|
+
* 相似词数组
|
|
1001
|
+
*/
|
|
1002
|
+
SimilarWords?: Array<string>
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1006
|
+
*/
|
|
1007
|
+
RequestId?: string
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* GenerateCouplet请求参数结构体
|
|
1012
|
+
*/
|
|
1013
|
+
export interface GenerateCoupletRequest {
|
|
1014
|
+
/**
|
|
1015
|
+
* 生成对联的关键词。长度需>=2,当长度>2时,自动截取前两个字作为关键字。内容需为常用汉字(不含有数字、英文、韩语、日语、符号等等其他)。
|
|
956
1016
|
*/
|
|
957
1017
|
Text: string
|
|
958
1018
|
|
|
959
1019
|
/**
|
|
960
|
-
*
|
|
1020
|
+
* 返回的文本结果为繁体还是简体。0:简体;1:繁体。默认为0。
|
|
961
1021
|
*/
|
|
962
|
-
|
|
1022
|
+
TargetType?: number
|
|
963
1023
|
}
|
|
964
1024
|
|
|
965
1025
|
/**
|
|
@@ -1004,6 +1064,26 @@ export interface LexicalAnalysisRequest {
|
|
|
1004
1064
|
Flag?: number
|
|
1005
1065
|
}
|
|
1006
1066
|
|
|
1067
|
+
/**
|
|
1068
|
+
* GeneratePoetry请求参数结构体
|
|
1069
|
+
*/
|
|
1070
|
+
export interface GeneratePoetryRequest {
|
|
1071
|
+
/**
|
|
1072
|
+
* 生成诗词的关键词。
|
|
1073
|
+
*/
|
|
1074
|
+
Text: string
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* 生成诗词的类型。0:藏头或藏身;1:藏头;2:藏身。默认为0。
|
|
1078
|
+
*/
|
|
1079
|
+
PoetryType?: number
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* 诗的体裁。0:五言律诗或七言律诗;5:五言律诗;7:七言律诗。默认为0。
|
|
1083
|
+
*/
|
|
1084
|
+
Genre?: number
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1007
1087
|
/**
|
|
1008
1088
|
* CreateWordItems返回参数结构体
|
|
1009
1089
|
*/
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
CreateEmailTemplateRequest,
|
|
26
26
|
ListEmailAddressResponse,
|
|
27
27
|
ListEmailAddressRequest,
|
|
28
|
+
UpdateEmailSmtpPassWordResponse,
|
|
28
29
|
ListReceiversRequest,
|
|
29
30
|
GetEmailIdentityResponse,
|
|
30
31
|
ListBlackEmailAddressRequest,
|
|
@@ -47,6 +48,7 @@ import {
|
|
|
47
48
|
DeleteEmailTemplateResponse,
|
|
48
49
|
Volume,
|
|
49
50
|
CreateEmailIdentityRequest,
|
|
51
|
+
UpdateEmailSmtpPassWordRequest,
|
|
50
52
|
ReceiverData,
|
|
51
53
|
UpdateEmailIdentityResponse,
|
|
52
54
|
DeleteEmailTemplateRequest,
|
|
@@ -247,6 +249,16 @@ export class Client extends AbstractClient {
|
|
|
247
249
|
return this.request("BatchSendEmail", req, cb)
|
|
248
250
|
}
|
|
249
251
|
|
|
252
|
+
/**
|
|
253
|
+
* 设置邮箱的smtp密码。若要通过smtp发送邮件,必须为邮箱设置smtp密码。初始时,邮箱没有设置smtp密码,不能使用smtp的方式发送邮件。设置smtp密码后,可以修改密码。
|
|
254
|
+
*/
|
|
255
|
+
async UpdateEmailSmtpPassWord(
|
|
256
|
+
req: UpdateEmailSmtpPassWordRequest,
|
|
257
|
+
cb?: (error: string, rep: UpdateEmailSmtpPassWordResponse) => void
|
|
258
|
+
): Promise<UpdateEmailSmtpPassWordResponse> {
|
|
259
|
+
return this.request("UpdateEmailSmtpPassWord", req, cb)
|
|
260
|
+
}
|
|
261
|
+
|
|
250
262
|
/**
|
|
251
263
|
* 删除发信模板
|
|
252
264
|
*/
|
|
@@ -163,6 +163,16 @@ export interface ListEmailAddressResponse {
|
|
|
163
163
|
*/
|
|
164
164
|
export type ListEmailAddressRequest = null
|
|
165
165
|
|
|
166
|
+
/**
|
|
167
|
+
* UpdateEmailSmtpPassWord返回参数结构体
|
|
168
|
+
*/
|
|
169
|
+
export interface UpdateEmailSmtpPassWordResponse {
|
|
170
|
+
/**
|
|
171
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
172
|
+
*/
|
|
173
|
+
RequestId?: string
|
|
174
|
+
}
|
|
175
|
+
|
|
166
176
|
/**
|
|
167
177
|
* ListReceivers请求参数结构体
|
|
168
178
|
*/
|
|
@@ -690,6 +700,21 @@ export interface CreateEmailIdentityRequest {
|
|
|
690
700
|
EmailIdentity: string
|
|
691
701
|
}
|
|
692
702
|
|
|
703
|
+
/**
|
|
704
|
+
* UpdateEmailSmtpPassWord请求参数结构体
|
|
705
|
+
*/
|
|
706
|
+
export interface UpdateEmailSmtpPassWordRequest {
|
|
707
|
+
/**
|
|
708
|
+
* smtp密码,长度限制64
|
|
709
|
+
*/
|
|
710
|
+
Password: string
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* 发信邮箱,长度限制128
|
|
714
|
+
*/
|
|
715
|
+
EmailAddress: string
|
|
716
|
+
}
|
|
717
|
+
|
|
693
718
|
/**
|
|
694
719
|
* 收件人列表数据类型
|
|
695
720
|
*/
|