tencentcloud-sdk-nodejs 4.0.667 → 4.0.668
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 +184 -0
- package/SERVICE_CHANGELOG.md +225 -54
- package/package.json +1 -1
- package/products.md +16 -16
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cam/v20190116/cam_models.ts +11 -11
- package/src/services/cdb/v20170320/cdb_client.ts +13 -30
- package/src/services/cdb/v20170320/cdb_models.ts +0 -54
- package/src/services/cls/v20201016/cls_client.ts +4 -2
- package/src/services/cls/v20201016/cls_models.ts +1 -1
- package/src/services/cwp/v20180228/cwp_models.ts +5 -3
- package/src/services/cynosdb/v20190107/cynosdb_client.ts +1 -1
- package/src/services/cynosdb/v20190107/cynosdb_models.ts +2 -2
- package/src/services/ecm/v20190719/ecm_models.ts +4 -0
- package/src/services/ess/v20201111/ess_client.ts +2 -3
- package/src/services/ess/v20201111/ess_models.ts +107 -139
- package/src/services/essbasic/v20210526/essbasic_client.ts +2 -1
- package/src/services/essbasic/v20210526/essbasic_models.ts +44 -20
- package/src/services/iotvideo/v20211125/iotvideo_client.ts +24 -12
- package/src/services/iotvideo/v20211125/iotvideo_models.ts +42 -0
- package/src/services/lcic/v20220817/lcic_client.ts +15 -3
- package/src/services/lcic/v20220817/lcic_models.ts +32 -12
- package/src/services/mps/v20190612/mps_client.ts +1 -0
- package/src/services/mps/v20190612/mps_models.ts +45 -13
- package/src/services/nlp/v20190408/nlp_client.ts +15 -0
- package/src/services/nlp/v20190408/nlp_models.ts +117 -0
- package/src/services/privatedns/v20201028/privatedns_models.ts +5 -5
- package/src/services/vpc/v20170312/vpc_models.ts +5 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cam/v20190116/cam_models.d.ts +11 -11
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +5 -13
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +6 -16
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +0 -51
- package/tencentcloud/services/cls/v20201016/cls_client.d.ts +2 -0
- package/tencentcloud/services/cls/v20201016/cls_client.js +2 -0
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +1 -1
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +5 -3
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.d.ts +1 -1
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.js +1 -1
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +2 -2
- package/tencentcloud/services/ecm/v20190719/ecm_models.d.ts +4 -0
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +0 -1
- package/tencentcloud/services/ess/v20201111/ess_client.js +0 -1
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +107 -139
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +1 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +43 -20
- package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.d.ts +9 -5
- package/tencentcloud/services/iotvideo/v20211125/iotvideo_client.js +12 -6
- package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +40 -0
- package/tencentcloud/services/lcic/v20220817/lcic_client.d.ts +5 -1
- package/tencentcloud/services/lcic/v20220817/lcic_client.js +6 -0
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +30 -12
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +44 -13
- package/tencentcloud/services/nlp/v20190408/nlp_client.d.ts +5 -1
- package/tencentcloud/services/nlp/v20190408/nlp_client.js +6 -0
- package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +112 -0
- package/tencentcloud/services/privatedns/v20201028/privatedns_models.d.ts +5 -5
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +5 -1
- package/test/cdb.v20170320.test.js +4 -14
- package/test/iotvideo.v20211125.test.js +14 -4
- package/test/lcic.v20220817.test.js +10 -0
- package/test/nlp.v20190408.test.js +10 -0
|
@@ -3416,6 +3416,16 @@ export interface UploadFirmwareResponse {
|
|
|
3416
3416
|
RequestId?: string
|
|
3417
3417
|
}
|
|
3418
3418
|
|
|
3419
|
+
/**
|
|
3420
|
+
* DescribeCloudStorageOrder请求参数结构体
|
|
3421
|
+
*/
|
|
3422
|
+
export interface DescribeCloudStorageOrderRequest {
|
|
3423
|
+
/**
|
|
3424
|
+
* 订单id
|
|
3425
|
+
*/
|
|
3426
|
+
OrderId: string
|
|
3427
|
+
}
|
|
3428
|
+
|
|
3419
3429
|
/**
|
|
3420
3430
|
* UpdateAIModelChannel请求参数结构体
|
|
3421
3431
|
*/
|
|
@@ -4513,6 +4523,38 @@ export interface DescribeDeviceDataResponse {
|
|
|
4513
4523
|
RequestId?: string
|
|
4514
4524
|
}
|
|
4515
4525
|
|
|
4526
|
+
/**
|
|
4527
|
+
* DescribeCloudStorageOrder返回参数结构体
|
|
4528
|
+
*/
|
|
4529
|
+
export interface DescribeCloudStorageOrderResponse {
|
|
4530
|
+
/**
|
|
4531
|
+
* 云存套餐开始时间
|
|
4532
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4533
|
+
*/
|
|
4534
|
+
StartTime?: number
|
|
4535
|
+
/**
|
|
4536
|
+
* 云存套餐过期时间
|
|
4537
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4538
|
+
*/
|
|
4539
|
+
ExpireTime?: number
|
|
4540
|
+
/**
|
|
4541
|
+
* 套餐id
|
|
4542
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4543
|
+
*/
|
|
4544
|
+
PackageId?: string
|
|
4545
|
+
/**
|
|
4546
|
+
* 套餐状态
|
|
4547
|
+
0:等待生效
|
|
4548
|
+
1: 已过期
|
|
4549
|
+
2:生效
|
|
4550
|
+
*/
|
|
4551
|
+
Status?: number
|
|
4552
|
+
/**
|
|
4553
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4554
|
+
*/
|
|
4555
|
+
RequestId?: string
|
|
4556
|
+
}
|
|
4557
|
+
|
|
4516
4558
|
/**
|
|
4517
4559
|
* DeleteForwardRule返回参数结构体
|
|
4518
4560
|
*/
|
|
@@ -23,8 +23,9 @@ import {
|
|
|
23
23
|
ModifyRoomResponse,
|
|
24
24
|
DescribeAppDetailResponse,
|
|
25
25
|
DeleteSupervisorRequest,
|
|
26
|
+
DeleteUserRequest,
|
|
26
27
|
DescribeSupervisorsResponse,
|
|
27
|
-
|
|
28
|
+
DeleteUserResponse,
|
|
28
29
|
BatchDeleteRecordRequest,
|
|
29
30
|
ModifyAppResponse,
|
|
30
31
|
BatchRegisterRequest,
|
|
@@ -57,6 +58,7 @@ import {
|
|
|
57
58
|
LoginUserResponse,
|
|
58
59
|
ModifyGroupRequest,
|
|
59
60
|
DescribeAppDetailRequest,
|
|
61
|
+
KickUserFromRoomResponse,
|
|
60
62
|
DeleteGroupRequest,
|
|
61
63
|
StartRoomRequest,
|
|
62
64
|
AddGroupMemberRequest,
|
|
@@ -104,7 +106,7 @@ import {
|
|
|
104
106
|
DeleteDocumentRequest,
|
|
105
107
|
DescribeSupervisorsRequest,
|
|
106
108
|
MessageList,
|
|
107
|
-
|
|
109
|
+
DescribeGroupRequest,
|
|
108
110
|
EndRoomResponse,
|
|
109
111
|
GetWatermarkRequest,
|
|
110
112
|
CreateGroupWithMembersResponse,
|
|
@@ -138,7 +140,7 @@ import {
|
|
|
138
140
|
SceneItem,
|
|
139
141
|
DeleteRoomRequest,
|
|
140
142
|
BatchCreateGroupWithMembersRequest,
|
|
141
|
-
|
|
143
|
+
DeleteGroupMemberRequest,
|
|
142
144
|
CreateSupervisorRequest,
|
|
143
145
|
BackgroundPictureConfig,
|
|
144
146
|
DeleteAppCustomContentResponse,
|
|
@@ -421,6 +423,16 @@ export class Client extends AbstractClient {
|
|
|
421
423
|
return this.request("GetRoomEvent", req, cb)
|
|
422
424
|
}
|
|
423
425
|
|
|
426
|
+
/**
|
|
427
|
+
* 删除已注册用户。注:如果该成员已被添加到群组,请先在群组中删除该成员。
|
|
428
|
+
*/
|
|
429
|
+
async DeleteUser(
|
|
430
|
+
req: DeleteUserRequest,
|
|
431
|
+
cb?: (error: string, rep: DeleteUserResponse) => void
|
|
432
|
+
): Promise<DeleteUserResponse> {
|
|
433
|
+
return this.request("DeleteUser", req, cb)
|
|
434
|
+
}
|
|
435
|
+
|
|
424
436
|
/**
|
|
425
437
|
* 获取房间信息
|
|
426
438
|
*/
|
|
@@ -191,6 +191,16 @@ export interface DeleteSupervisorRequest {
|
|
|
191
191
|
Users: Array<string>
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
/**
|
|
195
|
+
* DeleteUser请求参数结构体
|
|
196
|
+
*/
|
|
197
|
+
export interface DeleteUserRequest {
|
|
198
|
+
/**
|
|
199
|
+
* 待删除用户的ID
|
|
200
|
+
*/
|
|
201
|
+
UserId: string
|
|
202
|
+
}
|
|
203
|
+
|
|
194
204
|
/**
|
|
195
205
|
* DescribeSupervisors返回参数结构体
|
|
196
206
|
*/
|
|
@@ -218,9 +228,9 @@ export interface DescribeSupervisorsResponse {
|
|
|
218
228
|
}
|
|
219
229
|
|
|
220
230
|
/**
|
|
221
|
-
*
|
|
231
|
+
* DeleteUser返回参数结构体
|
|
222
232
|
*/
|
|
223
|
-
export interface
|
|
233
|
+
export interface DeleteUserResponse {
|
|
224
234
|
/**
|
|
225
235
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
226
236
|
*/
|
|
@@ -971,6 +981,16 @@ export interface DescribeAppDetailRequest {
|
|
|
971
981
|
DeveloperId: string
|
|
972
982
|
}
|
|
973
983
|
|
|
984
|
+
/**
|
|
985
|
+
* KickUserFromRoom返回参数结构体
|
|
986
|
+
*/
|
|
987
|
+
export interface KickUserFromRoomResponse {
|
|
988
|
+
/**
|
|
989
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
990
|
+
*/
|
|
991
|
+
RequestId?: string
|
|
992
|
+
}
|
|
993
|
+
|
|
974
994
|
/**
|
|
975
995
|
* DeleteGroup请求参数结构体
|
|
976
996
|
*/
|
|
@@ -2115,21 +2135,17 @@ export interface MessageList {
|
|
|
2115
2135
|
}
|
|
2116
2136
|
|
|
2117
2137
|
/**
|
|
2118
|
-
*
|
|
2138
|
+
* DescribeGroup请求参数结构体
|
|
2119
2139
|
*/
|
|
2120
|
-
export interface
|
|
2140
|
+
export interface DescribeGroupRequest {
|
|
2121
2141
|
/**
|
|
2122
|
-
* 群组ID
|
|
2142
|
+
* 群组ID
|
|
2123
2143
|
*/
|
|
2124
2144
|
GroupId: string
|
|
2125
2145
|
/**
|
|
2126
2146
|
* 低代码平台应用ID
|
|
2127
2147
|
*/
|
|
2128
2148
|
SdkAppId: number
|
|
2129
|
-
/**
|
|
2130
|
-
* 成员列表,最大值200
|
|
2131
|
-
*/
|
|
2132
|
-
MemberIds: Array<string>
|
|
2133
2149
|
}
|
|
2134
2150
|
|
|
2135
2151
|
/**
|
|
@@ -2824,17 +2840,21 @@ export interface BatchCreateGroupWithMembersRequest {
|
|
|
2824
2840
|
}
|
|
2825
2841
|
|
|
2826
2842
|
/**
|
|
2827
|
-
*
|
|
2843
|
+
* DeleteGroupMember请求参数结构体
|
|
2828
2844
|
*/
|
|
2829
|
-
export interface
|
|
2845
|
+
export interface DeleteGroupMemberRequest {
|
|
2830
2846
|
/**
|
|
2831
|
-
* 群组ID
|
|
2847
|
+
* 群组ID,联合群组无法删除群组成员
|
|
2832
2848
|
*/
|
|
2833
2849
|
GroupId: string
|
|
2834
2850
|
/**
|
|
2835
2851
|
* 低代码平台应用ID
|
|
2836
2852
|
*/
|
|
2837
2853
|
SdkAppId: number
|
|
2854
|
+
/**
|
|
2855
|
+
* 成员列表,最大值200
|
|
2856
|
+
*/
|
|
2857
|
+
MemberIds: Array<string>
|
|
2838
2858
|
}
|
|
2839
2859
|
|
|
2840
2860
|
/**
|
|
@@ -199,6 +199,11 @@ export interface OverrideTranscodeParameter {
|
|
|
199
199
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
200
200
|
*/
|
|
201
201
|
StdExtInfo?: string
|
|
202
|
+
/**
|
|
203
|
+
* 要插入的字幕文件。
|
|
204
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
205
|
+
*/
|
|
206
|
+
AddOnSubtitles?: Array<AddOnSubtitle>
|
|
202
207
|
}
|
|
203
208
|
|
|
204
209
|
/**
|
|
@@ -8735,18 +8740,22 @@ export interface UserDefineConfigureInfoForUpdate {
|
|
|
8735
8740
|
export interface S3OutputStorage {
|
|
8736
8741
|
/**
|
|
8737
8742
|
* S3 bucket。
|
|
8743
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8738
8744
|
*/
|
|
8739
8745
|
S3Bucket: string
|
|
8740
8746
|
/**
|
|
8741
8747
|
* S3 bucket 对应的区域。
|
|
8748
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8742
8749
|
*/
|
|
8743
8750
|
S3Region: string
|
|
8744
8751
|
/**
|
|
8745
8752
|
* AWS 内网上传 媒体资源的秘钥id。
|
|
8753
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8746
8754
|
*/
|
|
8747
8755
|
S3SecretId?: string
|
|
8748
8756
|
/**
|
|
8749
8757
|
* AWS 内网上传 媒体资源的秘钥key。
|
|
8758
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8750
8759
|
*/
|
|
8751
8760
|
S3SecretKey?: string
|
|
8752
8761
|
}
|
|
@@ -9801,6 +9810,11 @@ export interface AdaptiveDynamicStreamingTaskInput {
|
|
|
9801
9810
|
* 转自适应码流(仅 HLS)后,分片文件的输出路径,只能为相对路径。如果不填,则默认为相对路径:`{inputName}_adaptiveDynamicStreaming_{definition}_{subStreamNumber}_{segmentNumber}.{format}`。
|
|
9802
9811
|
*/
|
|
9803
9812
|
SegmentObjectName?: string
|
|
9813
|
+
/**
|
|
9814
|
+
* 要插入的字幕文件。
|
|
9815
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
9816
|
+
*/
|
|
9817
|
+
AddOnSubtitles?: Array<AddOnSubtitle>
|
|
9804
9818
|
}
|
|
9805
9819
|
|
|
9806
9820
|
/**
|
|
@@ -10618,43 +10632,43 @@ export interface MediaVideoStreamItem {
|
|
|
10618
10632
|
/**
|
|
10619
10633
|
* 视频流的码率,单位:bps。
|
|
10620
10634
|
*/
|
|
10621
|
-
Bitrate
|
|
10635
|
+
Bitrate?: number
|
|
10622
10636
|
/**
|
|
10623
10637
|
* 视频流的高度,单位:px。
|
|
10624
10638
|
*/
|
|
10625
|
-
Height
|
|
10639
|
+
Height?: number
|
|
10626
10640
|
/**
|
|
10627
10641
|
* 视频流的宽度,单位:px。
|
|
10628
10642
|
*/
|
|
10629
|
-
Width
|
|
10643
|
+
Width?: number
|
|
10630
10644
|
/**
|
|
10631
10645
|
* 视频流的编码格式,例如 h264。
|
|
10632
10646
|
*/
|
|
10633
|
-
Codec
|
|
10647
|
+
Codec?: string
|
|
10634
10648
|
/**
|
|
10635
10649
|
* 帧率,单位:hz。
|
|
10636
10650
|
*/
|
|
10637
|
-
Fps
|
|
10651
|
+
Fps?: number
|
|
10638
10652
|
/**
|
|
10639
10653
|
* 色彩空间。
|
|
10640
10654
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
10641
10655
|
*/
|
|
10642
|
-
ColorPrimaries
|
|
10656
|
+
ColorPrimaries?: string
|
|
10643
10657
|
/**
|
|
10644
10658
|
* 色彩空间。
|
|
10645
10659
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
10646
10660
|
*/
|
|
10647
|
-
ColorSpace
|
|
10661
|
+
ColorSpace?: string
|
|
10648
10662
|
/**
|
|
10649
10663
|
* 色彩空间。
|
|
10650
10664
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
10651
10665
|
*/
|
|
10652
|
-
ColorTransfer
|
|
10666
|
+
ColorTransfer?: string
|
|
10653
10667
|
/**
|
|
10654
10668
|
* HDR类型。
|
|
10655
10669
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
10656
10670
|
*/
|
|
10657
|
-
HdrType
|
|
10671
|
+
HdrType?: string
|
|
10658
10672
|
/**
|
|
10659
10673
|
* 视频Codecs。
|
|
10660
10674
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -10993,20 +11007,20 @@ export interface MediaAudioStreamItem {
|
|
|
10993
11007
|
/**
|
|
10994
11008
|
* 音频流的码率,单位:bps。
|
|
10995
11009
|
*/
|
|
10996
|
-
Bitrate
|
|
11010
|
+
Bitrate?: number
|
|
10997
11011
|
/**
|
|
10998
11012
|
* 音频流的采样率,单位:hz。
|
|
10999
11013
|
*/
|
|
11000
|
-
SamplingRate
|
|
11014
|
+
SamplingRate?: number
|
|
11001
11015
|
/**
|
|
11002
11016
|
* 音频流的编码格式,例如 aac。
|
|
11003
11017
|
*/
|
|
11004
|
-
Codec
|
|
11018
|
+
Codec?: string
|
|
11005
11019
|
/**
|
|
11006
11020
|
* 音频声道数,例如 2。
|
|
11007
11021
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
11008
11022
|
*/
|
|
11009
|
-
Channel
|
|
11023
|
+
Channel?: number
|
|
11010
11024
|
/**
|
|
11011
11025
|
* 音频Codecs。
|
|
11012
11026
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -11239,6 +11253,24 @@ export interface DescribeWordSamplesRequest {
|
|
|
11239
11253
|
Limit?: number
|
|
11240
11254
|
}
|
|
11241
11255
|
|
|
11256
|
+
/**
|
|
11257
|
+
* 外挂字幕。
|
|
11258
|
+
*/
|
|
11259
|
+
export interface AddOnSubtitle {
|
|
11260
|
+
/**
|
|
11261
|
+
* 插入形式,可选值:
|
|
11262
|
+
<li>subtitle-stream:插入字幕轨道</li>
|
|
11263
|
+
<li>close-caption:编码到SEI帧</li>
|
|
11264
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
11265
|
+
*/
|
|
11266
|
+
Type?: string
|
|
11267
|
+
/**
|
|
11268
|
+
* 字幕文件。
|
|
11269
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
11270
|
+
*/
|
|
11271
|
+
Subtitle?: MediaInputInfo
|
|
11272
|
+
}
|
|
11273
|
+
|
|
11242
11274
|
/**
|
|
11243
11275
|
* Aws SQS 队列信息
|
|
11244
11276
|
*/
|
|
@@ -26,14 +26,18 @@ import {
|
|
|
26
26
|
ParseWordsResponse,
|
|
27
27
|
BasicParticiple,
|
|
28
28
|
ComposePoetryResponse,
|
|
29
|
+
TextGenerationMessage,
|
|
29
30
|
ClassifyContentRequest,
|
|
30
31
|
RetrieveSimilarWordsResponse,
|
|
31
32
|
EvaluateSentenceSimilarityResponse,
|
|
32
33
|
Embellish,
|
|
34
|
+
TestingTextGenerationResponse,
|
|
33
35
|
EvaluateWordSimilarityRequest,
|
|
34
36
|
CompoundParticiple,
|
|
37
|
+
TestingTextGenerationRequest,
|
|
35
38
|
TextWritingResponse,
|
|
36
39
|
AnalyzeSentimentResponse,
|
|
40
|
+
TextGenerationUsage,
|
|
37
41
|
ParseWordsRequest,
|
|
38
42
|
Writing,
|
|
39
43
|
SentenceCorrectionResponse,
|
|
@@ -41,6 +45,7 @@ import {
|
|
|
41
45
|
KeywordSentence,
|
|
42
46
|
ComposeCoupletRequest,
|
|
43
47
|
EvaluateSentenceSimilarityRequest,
|
|
48
|
+
TextGenerationChoices,
|
|
44
49
|
TextWritingRequest,
|
|
45
50
|
GenerateKeywordSentenceResponse,
|
|
46
51
|
Entity,
|
|
@@ -181,4 +186,14 @@ export class Client extends AbstractClient {
|
|
|
181
186
|
): Promise<ParseWordsResponse> {
|
|
182
187
|
return this.request("ParseWords", req, cb)
|
|
183
188
|
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* 基于腾讯大模型能力,用户可以通过传入不同的参数控制生成内容的类型,并通过自然语言给模型以内容生成的指令,可以满足多种场景的文本生成需求,包括但不限于文章写作、营销文案、视频脚本、电商文案、纪要整理等(注意:当前接口为内测体验专用接口,非正式服务接口,内测期结束接口会下线或停服,届时请接入正式服务接口)
|
|
192
|
+
*/
|
|
193
|
+
async TestingTextGeneration(
|
|
194
|
+
req: TestingTextGenerationRequest,
|
|
195
|
+
cb?: (error: string, rep: TestingTextGenerationResponse) => void
|
|
196
|
+
): Promise<TestingTextGenerationResponse> {
|
|
197
|
+
return this.request("TestingTextGeneration", req, cb)
|
|
198
|
+
}
|
|
184
199
|
}
|
|
@@ -190,6 +190,22 @@ export interface ComposePoetryResponse {
|
|
|
190
190
|
RequestId?: string
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
+
/**
|
|
194
|
+
* TextGenerationMessage
|
|
195
|
+
*/
|
|
196
|
+
export interface TextGenerationMessage {
|
|
197
|
+
/**
|
|
198
|
+
* 角色支持 system, user, assistant。默认为user。
|
|
199
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
200
|
+
*/
|
|
201
|
+
Role?: string
|
|
202
|
+
/**
|
|
203
|
+
* 消息的内容。
|
|
204
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
205
|
+
*/
|
|
206
|
+
Content?: string
|
|
207
|
+
}
|
|
208
|
+
|
|
193
209
|
/**
|
|
194
210
|
* ClassifyContent请求参数结构体
|
|
195
211
|
*/
|
|
@@ -254,6 +270,36 @@ translation_a2m:从古文改写为现代文
|
|
|
254
270
|
EmbellishType?: string
|
|
255
271
|
}
|
|
256
272
|
|
|
273
|
+
/**
|
|
274
|
+
* TestingTextGeneration返回参数结构体
|
|
275
|
+
*/
|
|
276
|
+
export interface TestingTextGenerationResponse {
|
|
277
|
+
/**
|
|
278
|
+
* 结果
|
|
279
|
+
*/
|
|
280
|
+
Choices?: Array<TextGenerationChoices>
|
|
281
|
+
/**
|
|
282
|
+
* unix时间戳的字符串
|
|
283
|
+
*/
|
|
284
|
+
Created?: number
|
|
285
|
+
/**
|
|
286
|
+
* 会话id
|
|
287
|
+
*/
|
|
288
|
+
Id?: string
|
|
289
|
+
/**
|
|
290
|
+
* 模型名
|
|
291
|
+
*/
|
|
292
|
+
Model?: string
|
|
293
|
+
/**
|
|
294
|
+
* token数量
|
|
295
|
+
*/
|
|
296
|
+
Usage?: TextGenerationUsage
|
|
297
|
+
/**
|
|
298
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
299
|
+
*/
|
|
300
|
+
RequestId?: string
|
|
301
|
+
}
|
|
302
|
+
|
|
257
303
|
/**
|
|
258
304
|
* EvaluateWordSimilarity请求参数结构体
|
|
259
305
|
*/
|
|
@@ -292,6 +338,48 @@ export interface CompoundParticiple {
|
|
|
292
338
|
Pos?: string
|
|
293
339
|
}
|
|
294
340
|
|
|
341
|
+
/**
|
|
342
|
+
* TestingTextGeneration请求参数结构体
|
|
343
|
+
*/
|
|
344
|
+
export interface TestingTextGenerationRequest {
|
|
345
|
+
/**
|
|
346
|
+
* 会话内容,按对话时间从旧到新在数组中排列。
|
|
347
|
+
*/
|
|
348
|
+
Messages: Array<TextGenerationMessage>
|
|
349
|
+
/**
|
|
350
|
+
* 模型名称,当前固定为TestingModel
|
|
351
|
+
*/
|
|
352
|
+
Model?: string
|
|
353
|
+
/**
|
|
354
|
+
* 会话id。
|
|
355
|
+
*/
|
|
356
|
+
QueryId?: string
|
|
357
|
+
/**
|
|
358
|
+
* 超参数temperature, 该参数用于控制生成文本中重复内容。取值区间为[0.0, 2.0], 非必要不建议使用, 不合理的取值会影响效果。默认为1.0。
|
|
359
|
+
*/
|
|
360
|
+
Temperature?: number
|
|
361
|
+
/**
|
|
362
|
+
* 超参数top_p, 该参数用于控制生成文本的多样性。较小的"top_p"值会限制模型的选择范围,使生成的文本更加一致和确定性。较大的"top_p"值会扩大选择范围,使生成的文本更加多样化和随机。取值区间为[0.0, 1.0], 非必要不建议使用, 不合理的取值会影响效果。默认值为1.0。
|
|
363
|
+
*/
|
|
364
|
+
TopP?: number
|
|
365
|
+
/**
|
|
366
|
+
* 超参数top_k,该参数用于控制生成文本的多样性和可控性,较小的"top_k"值会限制模型的选择范围,使生成的文本更加一致和确定性。较大的"top_k"值会扩大选择范围,使生成的文本更加多样化和随机。取值区间为[1, 100],默认值 40。
|
|
367
|
+
*/
|
|
368
|
+
TopK?: number
|
|
369
|
+
/**
|
|
370
|
+
* 重复惩罚项,该参数用于用于控制生成文本中重复内容。建议范围[1.0, 1.05]非必要不建议使用, 不合理的取值会影响效果。默认为1。
|
|
371
|
+
*/
|
|
372
|
+
RepetitionPenalty?: number
|
|
373
|
+
/**
|
|
374
|
+
* 输出结果最大tokens数量。取值区间为(0, 1024]。默认值为768。
|
|
375
|
+
*/
|
|
376
|
+
OutputSeqLen?: number
|
|
377
|
+
/**
|
|
378
|
+
* 输入文本的最大 tokens 数量。取值区间为(0, 1024]。默认值为256。
|
|
379
|
+
*/
|
|
380
|
+
MaxInputSeqLen?: number
|
|
381
|
+
}
|
|
382
|
+
|
|
295
383
|
/**
|
|
296
384
|
* TextWriting返回参数结构体
|
|
297
385
|
*/
|
|
@@ -335,6 +423,24 @@ neutral:中性、无情感
|
|
|
335
423
|
RequestId?: string
|
|
336
424
|
}
|
|
337
425
|
|
|
426
|
+
/**
|
|
427
|
+
* TextGenerationUsage
|
|
428
|
+
*/
|
|
429
|
+
export interface TextGenerationUsage {
|
|
430
|
+
/**
|
|
431
|
+
* 输入tokens数量
|
|
432
|
+
*/
|
|
433
|
+
PromptTokens?: number
|
|
434
|
+
/**
|
|
435
|
+
* 输出tokens数量
|
|
436
|
+
*/
|
|
437
|
+
CompletionTokens?: number
|
|
438
|
+
/**
|
|
439
|
+
* 总token数量
|
|
440
|
+
*/
|
|
441
|
+
TotalTokens?: number
|
|
442
|
+
}
|
|
443
|
+
|
|
338
444
|
/**
|
|
339
445
|
* ParseWords请求参数结构体
|
|
340
446
|
*/
|
|
@@ -423,6 +529,17 @@ export interface EvaluateSentenceSimilarityRequest {
|
|
|
423
529
|
SentencePairList: Array<SentencePair>
|
|
424
530
|
}
|
|
425
531
|
|
|
532
|
+
/**
|
|
533
|
+
* TextGenerationChoices
|
|
534
|
+
*/
|
|
535
|
+
export interface TextGenerationChoices {
|
|
536
|
+
/**
|
|
537
|
+
* 内容
|
|
538
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
539
|
+
*/
|
|
540
|
+
Message?: TextGenerationMessage
|
|
541
|
+
}
|
|
542
|
+
|
|
426
543
|
/**
|
|
427
544
|
* TextWriting请求参数结构体
|
|
428
545
|
*/
|
|
@@ -621,11 +621,11 @@ export interface CreatePrivateZoneResponse {
|
|
|
621
621
|
/**
|
|
622
622
|
* 私有域ID, zone-xxxxxx
|
|
623
623
|
*/
|
|
624
|
-
ZoneId
|
|
624
|
+
ZoneId?: string
|
|
625
625
|
/**
|
|
626
626
|
* 私有域名
|
|
627
627
|
*/
|
|
628
|
-
Domain
|
|
628
|
+
Domain?: string
|
|
629
629
|
/**
|
|
630
630
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
631
631
|
*/
|
|
@@ -1105,15 +1105,15 @@ export interface ModifyPrivateZoneVpcResponse {
|
|
|
1105
1105
|
/**
|
|
1106
1106
|
* 私有域ID, zone-xxxxxx
|
|
1107
1107
|
*/
|
|
1108
|
-
ZoneId
|
|
1108
|
+
ZoneId?: string
|
|
1109
1109
|
/**
|
|
1110
1110
|
* 解析域关联的VPC列表
|
|
1111
1111
|
*/
|
|
1112
|
-
VpcSet
|
|
1112
|
+
VpcSet?: Array<VpcInfo>
|
|
1113
1113
|
/**
|
|
1114
1114
|
* 私有域账号关联的全部VPC列表
|
|
1115
1115
|
*/
|
|
1116
|
-
AccountVpcSet
|
|
1116
|
+
AccountVpcSet?: Array<AccountVpcInfoOutput>
|
|
1117
1117
|
/**
|
|
1118
1118
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1119
1119
|
*/
|
|
@@ -14579,9 +14579,13 @@ export interface AddTemplateMemberRequest {
|
|
|
14579
14579
|
*/
|
|
14580
14580
|
export interface DescribeVpcEndPointServiceWhiteListResponse {
|
|
14581
14581
|
/**
|
|
14582
|
-
*
|
|
14582
|
+
* 白名单对象数组。已废弃
|
|
14583
14583
|
*/
|
|
14584
14584
|
VpcEndpointServiceUserSet?: Array<VpcEndPointServiceUser>
|
|
14585
|
+
/**
|
|
14586
|
+
* 白名单对象数组。
|
|
14587
|
+
*/
|
|
14588
|
+
VpcEndPointServiceUserSet?: Array<VpcEndPointServiceUser>
|
|
14585
14589
|
/**
|
|
14586
14590
|
* 符合条件的白名单个数。
|
|
14587
14591
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const sdkVersion = "4.0.
|
|
1
|
+
export declare const sdkVersion = "4.0.668";
|
|
@@ -1056,51 +1056,51 @@ export interface RoleInfo {
|
|
|
1056
1056
|
/**
|
|
1057
1057
|
* 角色ID
|
|
1058
1058
|
*/
|
|
1059
|
-
RoleId
|
|
1059
|
+
RoleId?: string;
|
|
1060
1060
|
/**
|
|
1061
1061
|
* 角色名称
|
|
1062
1062
|
*/
|
|
1063
|
-
RoleName
|
|
1063
|
+
RoleName?: string;
|
|
1064
1064
|
/**
|
|
1065
1065
|
* 角色的策略文档
|
|
1066
1066
|
*/
|
|
1067
|
-
PolicyDocument
|
|
1067
|
+
PolicyDocument?: string;
|
|
1068
1068
|
/**
|
|
1069
1069
|
* 角色描述
|
|
1070
1070
|
*/
|
|
1071
|
-
Description
|
|
1071
|
+
Description?: string;
|
|
1072
1072
|
/**
|
|
1073
1073
|
* 角色的创建时间
|
|
1074
1074
|
*/
|
|
1075
|
-
AddTime
|
|
1075
|
+
AddTime?: string;
|
|
1076
1076
|
/**
|
|
1077
1077
|
* 角色的最近一次时间
|
|
1078
1078
|
*/
|
|
1079
|
-
UpdateTime
|
|
1079
|
+
UpdateTime?: string;
|
|
1080
1080
|
/**
|
|
1081
1081
|
* 角色是否允许登录
|
|
1082
1082
|
*/
|
|
1083
|
-
ConsoleLogin
|
|
1083
|
+
ConsoleLogin?: number;
|
|
1084
1084
|
/**
|
|
1085
1085
|
* 角色类型,取user、system或service_linked
|
|
1086
1086
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1087
1087
|
*/
|
|
1088
|
-
RoleType
|
|
1088
|
+
RoleType?: string;
|
|
1089
1089
|
/**
|
|
1090
1090
|
* 有效时间
|
|
1091
1091
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1092
1092
|
*/
|
|
1093
|
-
SessionDuration
|
|
1093
|
+
SessionDuration?: number;
|
|
1094
1094
|
/**
|
|
1095
1095
|
* 服务相关角色删除TaskId
|
|
1096
1096
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1097
1097
|
*/
|
|
1098
|
-
DeletionTaskId
|
|
1098
|
+
DeletionTaskId?: string;
|
|
1099
1099
|
/**
|
|
1100
1100
|
* 标签
|
|
1101
1101
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1102
1102
|
*/
|
|
1103
|
-
Tags
|
|
1103
|
+
Tags?: Array<RoleTags>;
|
|
1104
1104
|
}
|
|
1105
1105
|
/**
|
|
1106
1106
|
* DescribeSafeAuthFlag返回参数结构体
|