tencentcloud-sdk-nodejs 4.0.967 → 4.0.968
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 +215 -0
- package/SERVICE_CHANGELOG.md +288 -139
- package/package.json +1 -1
- package/products.md +23 -23
- package/src/common/sdk_version.ts +1 -1
- package/src/services/apigateway/v20180808/apigateway_models.ts +7 -7
- package/src/services/apm/v20210622/apm_models.ts +8 -0
- package/src/services/cdwdoris/v20211228/cdwdoris_models.ts +15 -0
- package/src/services/cfs/v20190719/cfs_client.ts +4 -3
- package/src/services/cfs/v20190719/cfs_models.ts +71 -35
- package/src/services/cfw/v20190904/cfw_client.ts +4 -2
- package/src/services/cls/v20201016/cls_models.ts +14 -14
- package/src/services/dlc/v20210125/dlc_models.ts +13 -8
- package/src/services/dnspod/v20210323/dnspod_client.ts +108 -45
- package/src/services/dnspod/v20210323/dnspod_models.ts +321 -83
- package/src/services/ess/v20201111/ess_models.ts +2 -6
- package/src/services/essbasic/v20210526/essbasic_client.ts +1 -1
- package/src/services/essbasic/v20210526/essbasic_models.ts +12 -11
- package/src/services/hunyuan/v20230901/hunyuan_client.ts +182 -50
- package/src/services/hunyuan/v20230901/hunyuan_models.ts +672 -33
- package/src/services/iotvideo/v20201215/iotvideo_models.ts +1 -1
- package/src/services/iotvideo/v20211125/iotvideo_models.ts +1 -1
- package/src/services/kms/v20190118/kms_models.ts +8 -0
- package/src/services/ssm/v20190923/ssm_models.ts +48 -78
- package/src/services/tdmq/v20200217/tdmq_models.ts +3 -4
- package/src/services/teo/v20220901/teo_client.ts +1 -0
- package/src/services/teo/v20220901/teo_models.ts +17 -3
- package/src/services/thpc/v20230321/thpc_models.ts +3 -3
- package/src/services/tke/v20180525/tke_models.ts +2 -2
- package/src/services/vod/v20180717/vod_client.ts +6 -1
- package/src/services/vod/v20180717/vod_models.ts +123 -24
- package/src/services/waf/v20180125/waf_models.ts +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +7 -7
- package/tencentcloud/services/apm/v20210622/apm_models.d.ts +8 -0
- package/tencentcloud/services/cdwdoris/v20211228/cdwdoris_models.d.ts +15 -0
- package/tencentcloud/services/cfs/v20190719/cfs_client.d.ts +1 -1
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +69 -34
- package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +3 -1
- package/tencentcloud/services/cfw/v20190904/cfw_client.js +3 -1
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +14 -14
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +13 -8
- package/tencentcloud/services/dnspod/v20210323/dnspod_client.d.ts +34 -14
- package/tencentcloud/services/dnspod/v20210323/dnspod_client.js +49 -19
- package/tencentcloud/services/dnspod/v20210323/dnspod_models.d.ts +308 -83
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +2 -6
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +1 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +1 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +12 -11
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_client.d.ts +75 -17
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_client.js +98 -24
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_models.d.ts +645 -32
- package/tencentcloud/services/iotvideo/v20201215/iotvideo_models.d.ts +1 -1
- package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +1 -1
- package/tencentcloud/services/kms/v20190118/kms_models.d.ts +8 -0
- package/tencentcloud/services/ssm/v20190923/ssm_models.d.ts +48 -78
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +3 -4
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +16 -3
- package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +3 -3
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +2 -2
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +118 -24
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +1 -1
- package/test/dnspod.v20210323.test.js +62 -12
- package/test/hunyuan.v20230901.test.js +94 -14
|
@@ -7957,6 +7957,26 @@ export interface ProcessImageRequest {
|
|
|
7957
7957
|
*/
|
|
7958
7958
|
SubAppId?: number;
|
|
7959
7959
|
}
|
|
7960
|
+
/**
|
|
7961
|
+
* 自适应码流任务信息。
|
|
7962
|
+
*/
|
|
7963
|
+
export interface ComplexAdaptiveDynamicStreamingTask {
|
|
7964
|
+
/**
|
|
7965
|
+
* 任务 ID。
|
|
7966
|
+
*/
|
|
7967
|
+
TaskId?: string;
|
|
7968
|
+
/**
|
|
7969
|
+
* 任务状态,取值:
|
|
7970
|
+
<li>PROCESSING:处理中;</li>
|
|
7971
|
+
<li>FINISH:已完成。</li>
|
|
7972
|
+
|
|
7973
|
+
*/
|
|
7974
|
+
Status?: string;
|
|
7975
|
+
/**
|
|
7976
|
+
* 自适应码流任务的执行状态与结果,每个元素对应一个自适应码流模版。
|
|
7977
|
+
*/
|
|
7978
|
+
ComplexAdaptiveDynamicStreamingTaskResultSet?: Array<ComplexAdaptiveDynamicStreamingTaskResult>;
|
|
7979
|
+
}
|
|
7960
7980
|
/**
|
|
7961
7981
|
* ModifyMediaInfo返回参数结构体
|
|
7962
7982
|
*/
|
|
@@ -9388,15 +9408,14 @@ export interface CreateWatermarkTemplateRequest {
|
|
|
9388
9408
|
SvgTemplate?: SvgWatermarkInput;
|
|
9389
9409
|
}
|
|
9390
9410
|
/**
|
|
9391
|
-
*
|
|
9411
|
+
* 自适应码流任务的输入参数。
|
|
9392
9412
|
*/
|
|
9393
|
-
export interface
|
|
9413
|
+
export interface ComplexAdaptiveDynamicStreamingTaskInput {
|
|
9394
9414
|
/**
|
|
9395
|
-
*
|
|
9396
|
-
|
|
9397
|
-
<li>OFF:关闭。</li>
|
|
9415
|
+
* 自适应码流参数。
|
|
9416
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
9398
9417
|
*/
|
|
9399
|
-
|
|
9418
|
+
StreamPara: ComplexAdaptiveDynamicStreamingTaskStreamPara;
|
|
9400
9419
|
}
|
|
9401
9420
|
/**
|
|
9402
9421
|
* 排序依据
|
|
@@ -10287,6 +10306,33 @@ export interface AiSampleTagOperation {
|
|
|
10287
10306
|
*/
|
|
10288
10307
|
Tags: Array<string>;
|
|
10289
10308
|
}
|
|
10309
|
+
/**
|
|
10310
|
+
* 自适应码流任务的输出结果。
|
|
10311
|
+
*/
|
|
10312
|
+
export interface ComplexAdaptiveDynamicStreamingTaskOutput {
|
|
10313
|
+
/**
|
|
10314
|
+
* 自适应码流模版 ID。
|
|
10315
|
+
*/
|
|
10316
|
+
Definition?: number;
|
|
10317
|
+
/**
|
|
10318
|
+
* 自适应码流打包格式。可选值:
|
|
10319
|
+
<li>HLS;</li>
|
|
10320
|
+
<li>MPEG-DASH。</li>
|
|
10321
|
+
*/
|
|
10322
|
+
Format?: string;
|
|
10323
|
+
/**
|
|
10324
|
+
* DRM 方案类型。可选值:
|
|
10325
|
+
<li>空字符串:无加密;</li>
|
|
10326
|
+
<li>SimpleAES;</li>
|
|
10327
|
+
<li>Widevine;</li>
|
|
10328
|
+
<li>FairPlay。</li>
|
|
10329
|
+
*/
|
|
10330
|
+
DrmType?: string;
|
|
10331
|
+
/**
|
|
10332
|
+
* 自适应码流的播放地址。
|
|
10333
|
+
*/
|
|
10334
|
+
Url?: string;
|
|
10335
|
+
}
|
|
10290
10336
|
/**
|
|
10291
10337
|
* 播放器配置详情
|
|
10292
10338
|
*/
|
|
@@ -10359,6 +10405,39 @@ export interface PlayerConfig {
|
|
|
10359
10405
|
*/
|
|
10360
10406
|
Comment?: string;
|
|
10361
10407
|
}
|
|
10408
|
+
/**
|
|
10409
|
+
* 自适应码流任务信息。
|
|
10410
|
+
*/
|
|
10411
|
+
export interface ComplexAdaptiveDynamicStreamingTaskResult {
|
|
10412
|
+
/**
|
|
10413
|
+
* 任务状态,取值:
|
|
10414
|
+
<li>PROCESSING:处理中;</li>
|
|
10415
|
+
<li>SUCCESS:已完成;</li>
|
|
10416
|
+
<li>FAIL:失败。</li>
|
|
10417
|
+
*/
|
|
10418
|
+
Status?: string;
|
|
10419
|
+
/**
|
|
10420
|
+
* 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](https://cloud.tencent.com/document/product/266/50368#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81) 列表。
|
|
10421
|
+
*/
|
|
10422
|
+
ErrCodeExt?: string;
|
|
10423
|
+
/**
|
|
10424
|
+
* 错误信息。
|
|
10425
|
+
*/
|
|
10426
|
+
Message?: string;
|
|
10427
|
+
/**
|
|
10428
|
+
* 转码进度,取值范围 [0-100] 。
|
|
10429
|
+
*/
|
|
10430
|
+
Progress?: number;
|
|
10431
|
+
/**
|
|
10432
|
+
* 自适应码流任务的输入。
|
|
10433
|
+
*/
|
|
10434
|
+
Input?: ComplexAdaptiveDynamicStreamingTaskInput;
|
|
10435
|
+
/**
|
|
10436
|
+
* 自适应码流任务的输出。
|
|
10437
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
10438
|
+
*/
|
|
10439
|
+
Output?: ComplexAdaptiveDynamicStreamingTaskOutput;
|
|
10440
|
+
}
|
|
10362
10441
|
/**
|
|
10363
10442
|
* ConfirmEvents请求参数结构体
|
|
10364
10443
|
*/
|
|
@@ -13505,7 +13584,8 @@ export interface EventContent {
|
|
|
13505
13584
|
<li>DescribeFileAttributesComplete:获取文件属性完成;</li>
|
|
13506
13585
|
<li>QualityInspectComplete:音画质检测完成;</li>
|
|
13507
13586
|
<li>QualityEnhanceComplete:音画质重生任务完成;</li>
|
|
13508
|
-
<li>PersistenceComplete
|
|
13587
|
+
<li>PersistenceComplete:剪辑固化完成;</li>
|
|
13588
|
+
<li>ComplexAdaptiveDynamicStreamingComplete:复杂自适应码流任务完成。</li>
|
|
13509
13589
|
<b>兼容 2017 版的事件类型:</b>
|
|
13510
13590
|
<li>TranscodeComplete:视频转码完成;</li>
|
|
13511
13591
|
<li>ConcatComplete:视频拼接完成;</li>
|
|
@@ -13644,6 +13724,11 @@ export interface EventContent {
|
|
|
13644
13724
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
13645
13725
|
*/
|
|
13646
13726
|
PersistenceCompleteEvent?: PersistenceCompleteTask;
|
|
13727
|
+
/**
|
|
13728
|
+
* 自适应码流任务信息,仅当 EventType 为ComplexAdaptiveDynamicStreamingComplete 时有效。
|
|
13729
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
13730
|
+
*/
|
|
13731
|
+
ComplexAdaptiveDynamicStreamingCompleteEvent?: ComplexAdaptiveDynamicStreamingTask;
|
|
13647
13732
|
}
|
|
13648
13733
|
/**
|
|
13649
13734
|
* 智能精彩片段任务控制参数
|
|
@@ -15370,23 +15455,7 @@ export interface RebuildMediaRequest {
|
|
|
15370
15455
|
*/
|
|
15371
15456
|
export interface DescribeTaskDetailResponse {
|
|
15372
15457
|
/**
|
|
15373
|
-
*
|
|
15374
|
-
<li>Procedure:视频处理任务;</li>
|
|
15375
|
-
<li>EditMedia:视频编辑任务;</li>
|
|
15376
|
-
<li>SplitMedia:视频拆条任务;</li>
|
|
15377
|
-
<li>ComposeMedia:制作媒体文件任务;</li>
|
|
15378
|
-
<li>WechatPublish:微信发布任务;</li>
|
|
15379
|
-
<li>WechatMiniProgramPublish:微信小程序视频发布任务;</li>
|
|
15380
|
-
<li>PullUpload:拉取上传媒体文件任务;</li>
|
|
15381
|
-
<li>FastClipMedia:快速剪辑任务;</li>
|
|
15382
|
-
<li>RemoveWatermarkTask:智能去除水印任务;</li>
|
|
15383
|
-
<li>DescribeFileAttributesTask:获取文件属性任务;</li>
|
|
15384
|
-
<li>RebuildMedia:音画质重生任务(不推荐使用);</li>
|
|
15385
|
-
<li>ReviewAudioVideo:音视频审核任务;</li>
|
|
15386
|
-
<li>ExtractTraceWatermark:提取溯源水印任务;</li>
|
|
15387
|
-
<li>ExtractCopyRightWatermark:提取版权水印任务;</li>
|
|
15388
|
-
<li>QualityInspect:音画质检测任务;</li>
|
|
15389
|
-
<li>QualityEnhance:音画质重生任务。</li>
|
|
15458
|
+
* 任务类型,取值:<li>Procedure:视频处理任务;</li><li>EditMedia:视频编辑任务;</li><li>SplitMedia:视频拆条任务;</li><li>ComposeMedia:制作媒体文件任务;</li><li>WechatPublish:微信发布任务;</li><li>WechatMiniProgramPublish:微信小程序视频发布任务;</li><li>PullUpload:拉取上传媒体文件任务;</li><li>FastClipMedia:快速剪辑任务;</li><li>RemoveWatermarkTask:智能去除水印任务;</li><li>DescribeFileAttributesTask:获取文件属性任务;</li><li>RebuildMedia:音画质重生任务(不推荐使用);</li><li>ReviewAudioVideo:音视频审核任务;</li><li>ExtractTraceWatermark:提取溯源水印任务;</li><li>ExtractCopyRightWatermark:提取版权水印任务;</li><li>QualityInspect:音画质检测任务;</li><li>QualityEnhance:音画质重生任务;</li><li>ComplexAdaptiveDynamicStreaming:复杂自适应码流任务。</li>
|
|
15390
15459
|
*/
|
|
15391
15460
|
TaskType?: string;
|
|
15392
15461
|
/**
|
|
@@ -15514,6 +15583,11 @@ export interface DescribeTaskDetailResponse {
|
|
|
15514
15583
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15515
15584
|
*/
|
|
15516
15585
|
QualityEnhanceTask?: QualityEnhanceTask;
|
|
15586
|
+
/**
|
|
15587
|
+
* 复杂自适应码流任务信息,仅当 TaskType 为 ComplexAdaptiveDynamicStreaming,该字段有值。
|
|
15588
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15589
|
+
*/
|
|
15590
|
+
ComplexAdaptiveDynamicStreamingTask?: ComplexAdaptiveDynamicStreamingTask;
|
|
15517
15591
|
/**
|
|
15518
15592
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15519
15593
|
*/
|
|
@@ -16660,6 +16734,15 @@ export interface AiReviewTerrorismTaskInput {
|
|
|
16660
16734
|
*/
|
|
16661
16735
|
Definition?: number;
|
|
16662
16736
|
}
|
|
16737
|
+
/**
|
|
16738
|
+
* 自适应码流任务的流参数。
|
|
16739
|
+
*/
|
|
16740
|
+
export interface ComplexAdaptiveDynamicStreamingTaskStreamPara {
|
|
16741
|
+
/**
|
|
16742
|
+
* 自适应码流模版 ID。
|
|
16743
|
+
*/
|
|
16744
|
+
Definition: number;
|
|
16745
|
+
}
|
|
16663
16746
|
/**
|
|
16664
16747
|
* RebuildMediaByTemplate返回参数结构体
|
|
16665
16748
|
*/
|
|
@@ -18981,6 +19064,17 @@ export interface EditMediaFileInfo {
|
|
|
18981
19064
|
*/
|
|
18982
19065
|
EndTimeOffset?: number;
|
|
18983
19066
|
}
|
|
19067
|
+
/**
|
|
19068
|
+
* 视频画面黑边、白边、黑屏、白屏检测的控制参数。
|
|
19069
|
+
*/
|
|
19070
|
+
export interface BlackWhiteEdgeConfigureInfo {
|
|
19071
|
+
/**
|
|
19072
|
+
* 视频画面黑边、白边、黑屏、白屏检测开关,可选值:
|
|
19073
|
+
<li>ON:开启;</li>
|
|
19074
|
+
<li>OFF:关闭。</li>
|
|
19075
|
+
*/
|
|
19076
|
+
Switch: string;
|
|
19077
|
+
}
|
|
18984
19078
|
/**
|
|
18985
19079
|
* 图片水印模板输入参数
|
|
18986
19080
|
*/
|
|
@@ -68,6 +68,16 @@ it("dnspod.v20210323.ModifyVasAutoRenewStatus", async function () {
|
|
|
68
68
|
}
|
|
69
69
|
})
|
|
70
70
|
|
|
71
|
+
it("dnspod.v20210323.CreateLineGroup", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.CreateLineGroup({})
|
|
74
|
+
expect(data).to.be.ok
|
|
75
|
+
} catch(error) {
|
|
76
|
+
expect(error.requestId).to.be.ok
|
|
77
|
+
expect(error.code).to.be.ok
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
|
|
71
81
|
it("dnspod.v20210323.DescribeDomainPurview", async function () {
|
|
72
82
|
try {
|
|
73
83
|
const data = await client.DescribeDomainPurview({})
|
|
@@ -78,9 +88,9 @@ it("dnspod.v20210323.DescribeDomainPurview", async function () {
|
|
|
78
88
|
}
|
|
79
89
|
})
|
|
80
90
|
|
|
81
|
-
it("dnspod.v20210323.
|
|
91
|
+
it("dnspod.v20210323.DescribeLineGroupList", async function () {
|
|
82
92
|
try {
|
|
83
|
-
const data = await client.
|
|
93
|
+
const data = await client.DescribeLineGroupList({})
|
|
84
94
|
expect(data).to.be.ok
|
|
85
95
|
} catch(error) {
|
|
86
96
|
expect(error.requestId).to.be.ok
|
|
@@ -308,6 +318,16 @@ it("dnspod.v20210323.DescribeSnapshotConfig", async function () {
|
|
|
308
318
|
}
|
|
309
319
|
})
|
|
310
320
|
|
|
321
|
+
it("dnspod.v20210323.ModifyDomainLock", async function () {
|
|
322
|
+
try {
|
|
323
|
+
const data = await client.ModifyDomainLock({})
|
|
324
|
+
expect(data).to.be.ok
|
|
325
|
+
} catch(error) {
|
|
326
|
+
expect(error.requestId).to.be.ok
|
|
327
|
+
expect(error.code).to.be.ok
|
|
328
|
+
}
|
|
329
|
+
})
|
|
330
|
+
|
|
311
331
|
it("dnspod.v20210323.DeleteShareDomain", async function () {
|
|
312
332
|
try {
|
|
313
333
|
const data = await client.DeleteShareDomain({})
|
|
@@ -338,9 +358,19 @@ it("dnspod.v20210323.DescribeDomain", async function () {
|
|
|
338
358
|
}
|
|
339
359
|
})
|
|
340
360
|
|
|
341
|
-
it("dnspod.v20210323.
|
|
361
|
+
it("dnspod.v20210323.ModifyLineGroup", async function () {
|
|
342
362
|
try {
|
|
343
|
-
const data = await client.
|
|
363
|
+
const data = await client.ModifyLineGroup({})
|
|
364
|
+
expect(data).to.be.ok
|
|
365
|
+
} catch(error) {
|
|
366
|
+
expect(error.requestId).to.be.ok
|
|
367
|
+
expect(error.code).to.be.ok
|
|
368
|
+
}
|
|
369
|
+
})
|
|
370
|
+
|
|
371
|
+
it("dnspod.v20210323.DeleteLineGroup", async function () {
|
|
372
|
+
try {
|
|
373
|
+
const data = await client.DeleteLineGroup({})
|
|
344
374
|
expect(data).to.be.ok
|
|
345
375
|
} catch(error) {
|
|
346
376
|
expect(error.requestId).to.be.ok
|
|
@@ -398,9 +428,9 @@ it("dnspod.v20210323.CreateDomainCustomLine", async function () {
|
|
|
398
428
|
}
|
|
399
429
|
})
|
|
400
430
|
|
|
401
|
-
it("dnspod.v20210323.
|
|
431
|
+
it("dnspod.v20210323.DescribeBatchTask", async function () {
|
|
402
432
|
try {
|
|
403
|
-
const data = await client.
|
|
433
|
+
const data = await client.DescribeBatchTask({})
|
|
404
434
|
expect(data).to.be.ok
|
|
405
435
|
} catch(error) {
|
|
406
436
|
expect(error.requestId).to.be.ok
|
|
@@ -428,6 +458,16 @@ it("dnspod.v20210323.DeleteRecord", async function () {
|
|
|
428
458
|
}
|
|
429
459
|
})
|
|
430
460
|
|
|
461
|
+
it("dnspod.v20210323.ModifySubdomainStatus", async function () {
|
|
462
|
+
try {
|
|
463
|
+
const data = await client.ModifySubdomainStatus({})
|
|
464
|
+
expect(data).to.be.ok
|
|
465
|
+
} catch(error) {
|
|
466
|
+
expect(error.requestId).to.be.ok
|
|
467
|
+
expect(error.code).to.be.ok
|
|
468
|
+
}
|
|
469
|
+
})
|
|
470
|
+
|
|
431
471
|
it("dnspod.v20210323.ModifyRecordFields", async function () {
|
|
432
472
|
try {
|
|
433
473
|
const data = await client.ModifyRecordFields({})
|
|
@@ -438,6 +478,16 @@ it("dnspod.v20210323.ModifyRecordFields", async function () {
|
|
|
438
478
|
}
|
|
439
479
|
})
|
|
440
480
|
|
|
481
|
+
it("dnspod.v20210323.ModifyRecordGroup", async function () {
|
|
482
|
+
try {
|
|
483
|
+
const data = await client.ModifyRecordGroup({})
|
|
484
|
+
expect(data).to.be.ok
|
|
485
|
+
} catch(error) {
|
|
486
|
+
expect(error.requestId).to.be.ok
|
|
487
|
+
expect(error.code).to.be.ok
|
|
488
|
+
}
|
|
489
|
+
})
|
|
490
|
+
|
|
441
491
|
it("dnspod.v20210323.DescribeRecord", async function () {
|
|
442
492
|
try {
|
|
443
493
|
const data = await client.DescribeRecord({})
|
|
@@ -498,9 +548,9 @@ it("dnspod.v20210323.ModifyPackageAutoRenew", async function () {
|
|
|
498
548
|
}
|
|
499
549
|
})
|
|
500
550
|
|
|
501
|
-
it("dnspod.v20210323.
|
|
551
|
+
it("dnspod.v20210323.DeleteRecordBatch", async function () {
|
|
502
552
|
try {
|
|
503
|
-
const data = await client.
|
|
553
|
+
const data = await client.DeleteRecordBatch({})
|
|
504
554
|
expect(data).to.be.ok
|
|
505
555
|
} catch(error) {
|
|
506
556
|
expect(error.requestId).to.be.ok
|
|
@@ -598,9 +648,9 @@ it("dnspod.v20210323.DeleteDomainAlias", async function () {
|
|
|
598
648
|
}
|
|
599
649
|
})
|
|
600
650
|
|
|
601
|
-
it("dnspod.v20210323.
|
|
651
|
+
it("dnspod.v20210323.CreateLineGroupCopy", async function () {
|
|
602
652
|
try {
|
|
603
|
-
const data = await client.
|
|
653
|
+
const data = await client.CreateLineGroupCopy({})
|
|
604
654
|
expect(data).to.be.ok
|
|
605
655
|
} catch(error) {
|
|
606
656
|
expect(error.requestId).to.be.ok
|
|
@@ -758,9 +808,9 @@ it("dnspod.v20210323.DescribeDomainLogList", async function () {
|
|
|
758
808
|
}
|
|
759
809
|
})
|
|
760
810
|
|
|
761
|
-
it("dnspod.v20210323.
|
|
811
|
+
it("dnspod.v20210323.DescribeUserDetail", async function () {
|
|
762
812
|
try {
|
|
763
|
-
const data = await client.
|
|
813
|
+
const data = await client.DescribeUserDetail({})
|
|
764
814
|
expect(data).to.be.ok
|
|
765
815
|
} catch(error) {
|
|
766
816
|
expect(error.requestId).to.be.ok
|
|
@@ -18,9 +18,9 @@ const client = new tencentcloud.hunyuan.v20230901.Client({
|
|
|
18
18
|
})
|
|
19
19
|
describe("hunyuan.v20230901.test.js", function () {
|
|
20
20
|
|
|
21
|
-
it("hunyuan.v20230901.
|
|
21
|
+
it("hunyuan.v20230901.SetPayMode", async function () {
|
|
22
22
|
try {
|
|
23
|
-
const data = await client.
|
|
23
|
+
const data = await client.SetPayMode({})
|
|
24
24
|
expect(data).to.be.ok
|
|
25
25
|
} catch(error) {
|
|
26
26
|
expect(error.requestId).to.be.ok
|
|
@@ -28,9 +28,49 @@ it("hunyuan.v20230901.QueryHunyuanImageChatJob", async function () {
|
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
-
it("hunyuan.v20230901.
|
|
31
|
+
it("hunyuan.v20230901.FilesList", async function () {
|
|
32
32
|
try {
|
|
33
|
-
const data = await client.
|
|
33
|
+
const data = await client.FilesList({})
|
|
34
|
+
expect(data).to.be.ok
|
|
35
|
+
} catch(error) {
|
|
36
|
+
expect(error.requestId).to.be.ok
|
|
37
|
+
expect(error.code).to.be.ok
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
it("hunyuan.v20230901.GetThread", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.GetThread({})
|
|
44
|
+
expect(data).to.be.ok
|
|
45
|
+
} catch(error) {
|
|
46
|
+
expect(error.requestId).to.be.ok
|
|
47
|
+
expect(error.code).to.be.ok
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
it("hunyuan.v20230901.SubmitHunyuanImageChatJob", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.SubmitHunyuanImageChatJob({})
|
|
54
|
+
expect(data).to.be.ok
|
|
55
|
+
} catch(error) {
|
|
56
|
+
expect(error.requestId).to.be.ok
|
|
57
|
+
expect(error.code).to.be.ok
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
it("hunyuan.v20230901.CreateThread", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.CreateThread({})
|
|
64
|
+
expect(data).to.be.ok
|
|
65
|
+
} catch(error) {
|
|
66
|
+
expect(error.requestId).to.be.ok
|
|
67
|
+
expect(error.code).to.be.ok
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
it("hunyuan.v20230901.GetTokenCount", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.GetTokenCount({})
|
|
34
74
|
expect(data).to.be.ok
|
|
35
75
|
} catch(error) {
|
|
36
76
|
expect(error.requestId).to.be.ok
|
|
@@ -48,9 +88,9 @@ it("hunyuan.v20230901.QueryHunyuanImageJob", async function () {
|
|
|
48
88
|
}
|
|
49
89
|
})
|
|
50
90
|
|
|
51
|
-
it("hunyuan.v20230901.
|
|
91
|
+
it("hunyuan.v20230901.SubmitHunyuanImageJob", async function () {
|
|
52
92
|
try {
|
|
53
|
-
const data = await client.
|
|
93
|
+
const data = await client.SubmitHunyuanImageJob({})
|
|
54
94
|
expect(data).to.be.ok
|
|
55
95
|
} catch(error) {
|
|
56
96
|
expect(error.requestId).to.be.ok
|
|
@@ -58,9 +98,39 @@ it("hunyuan.v20230901.SetPayMode", async function () {
|
|
|
58
98
|
}
|
|
59
99
|
})
|
|
60
100
|
|
|
61
|
-
it("hunyuan.v20230901.
|
|
101
|
+
it("hunyuan.v20230901.FilesDeletions", async function () {
|
|
62
102
|
try {
|
|
63
|
-
const data = await client.
|
|
103
|
+
const data = await client.FilesDeletions({})
|
|
104
|
+
expect(data).to.be.ok
|
|
105
|
+
} catch(error) {
|
|
106
|
+
expect(error.requestId).to.be.ok
|
|
107
|
+
expect(error.code).to.be.ok
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
it("hunyuan.v20230901.GetThreadMessageList", async function () {
|
|
112
|
+
try {
|
|
113
|
+
const data = await client.GetThreadMessageList({})
|
|
114
|
+
expect(data).to.be.ok
|
|
115
|
+
} catch(error) {
|
|
116
|
+
expect(error.requestId).to.be.ok
|
|
117
|
+
expect(error.code).to.be.ok
|
|
118
|
+
}
|
|
119
|
+
})
|
|
120
|
+
|
|
121
|
+
it("hunyuan.v20230901.GetThreadMessage", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.GetThreadMessage({})
|
|
124
|
+
expect(data).to.be.ok
|
|
125
|
+
} catch(error) {
|
|
126
|
+
expect(error.requestId).to.be.ok
|
|
127
|
+
expect(error.code).to.be.ok
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
|
|
131
|
+
it("hunyuan.v20230901.RunThread", async function () {
|
|
132
|
+
try {
|
|
133
|
+
const data = await client.RunThread({})
|
|
64
134
|
expect(data).to.be.ok
|
|
65
135
|
} catch(error) {
|
|
66
136
|
expect(error.requestId).to.be.ok
|
|
@@ -78,9 +148,9 @@ it("hunyuan.v20230901.ChatCompletions", async function () {
|
|
|
78
148
|
}
|
|
79
149
|
})
|
|
80
150
|
|
|
81
|
-
it("hunyuan.v20230901.
|
|
151
|
+
it("hunyuan.v20230901.QueryHunyuanImageChatJob", async function () {
|
|
82
152
|
try {
|
|
83
|
-
const data = await client.
|
|
153
|
+
const data = await client.QueryHunyuanImageChatJob({})
|
|
84
154
|
expect(data).to.be.ok
|
|
85
155
|
} catch(error) {
|
|
86
156
|
expect(error.requestId).to.be.ok
|
|
@@ -88,9 +158,19 @@ it("hunyuan.v20230901.ActivateService", async function () {
|
|
|
88
158
|
}
|
|
89
159
|
})
|
|
90
160
|
|
|
91
|
-
it("hunyuan.v20230901.
|
|
161
|
+
it("hunyuan.v20230901.GetEmbedding", async function () {
|
|
92
162
|
try {
|
|
93
|
-
const data = await client.
|
|
163
|
+
const data = await client.GetEmbedding({})
|
|
164
|
+
expect(data).to.be.ok
|
|
165
|
+
} catch(error) {
|
|
166
|
+
expect(error.requestId).to.be.ok
|
|
167
|
+
expect(error.code).to.be.ok
|
|
168
|
+
}
|
|
169
|
+
})
|
|
170
|
+
|
|
171
|
+
it("hunyuan.v20230901.FilesUploads", async function () {
|
|
172
|
+
try {
|
|
173
|
+
const data = await client.FilesUploads({})
|
|
94
174
|
expect(data).to.be.ok
|
|
95
175
|
} catch(error) {
|
|
96
176
|
expect(error.requestId).to.be.ok
|
|
@@ -108,9 +188,9 @@ it("hunyuan.v20230901.TextToImageLite", async function () {
|
|
|
108
188
|
}
|
|
109
189
|
})
|
|
110
190
|
|
|
111
|
-
it("hunyuan.v20230901.
|
|
191
|
+
it("hunyuan.v20230901.ActivateService", async function () {
|
|
112
192
|
try {
|
|
113
|
-
const data = await client.
|
|
193
|
+
const data = await client.ActivateService({})
|
|
114
194
|
expect(data).to.be.ok
|
|
115
195
|
} catch(error) {
|
|
116
196
|
expect(error.requestId).to.be.ok
|