tencentcloud-sdk-nodejs 4.0.347 → 4.0.348

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +40 -14
  3. package/SERVICE_CHANGELOG.md +93 -249
  4. package/package.json +1 -1
  5. package/products.md +10 -9
  6. package/src/common/sdk_version.ts +1 -1
  7. package/src/services/asr/v20190614/asr_models.ts +1 -1
  8. package/src/services/cls/v20201016/cls_client.ts +0 -1
  9. package/src/services/cvm/v20170312/cvm_models.ts +1 -1
  10. package/src/services/dasb/index.ts +5 -0
  11. package/src/services/dasb/v20191018/dasb_client.ts +157 -0
  12. package/src/services/dasb/v20191018/dasb_models.ts +1137 -0
  13. package/src/services/dasb/v20191018/index.ts +6 -0
  14. package/src/services/eb/v20210416/eb_models.ts +6 -0
  15. package/src/services/ims/v20201229/ims_models.ts +2 -2
  16. package/src/services/index.ts +1 -0
  17. package/src/services/soe/v20180724/soe_models.ts +1 -1
  18. package/src/services/vod/v20180717/vod_models.ts +93 -93
  19. package/tencentcloud/common/sdk_version.d.ts +1 -1
  20. package/tencentcloud/common/sdk_version.js +1 -1
  21. package/tencentcloud/services/asr/v20190614/asr_models.d.ts +1 -1
  22. package/tencentcloud/services/cls/v20201016/cls_client.d.ts +0 -1
  23. package/tencentcloud/services/cls/v20201016/cls_client.js +0 -1
  24. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +1 -1
  25. package/tencentcloud/services/dasb/index.d.ts +6 -0
  26. package/tencentcloud/services/dasb/index.js +7 -0
  27. package/tencentcloud/services/dasb/v20191018/dasb_client.d.ts +50 -0
  28. package/tencentcloud/services/dasb/v20191018/dasb_client.js +91 -0
  29. package/tencentcloud/services/dasb/v20191018/dasb_models.d.ts +922 -0
  30. package/tencentcloud/services/dasb/v20191018/dasb_models.js +18 -0
  31. package/tencentcloud/services/dasb/v20191018/index.d.ts +6 -0
  32. package/tencentcloud/services/dasb/v20191018/index.js +9 -0
  33. package/tencentcloud/services/eb/v20210416/eb_models.d.ts +5 -0
  34. package/tencentcloud/services/ims/v20201229/ims_models.d.ts +2 -2
  35. package/tencentcloud/services/index.d.ts +1 -0
  36. package/tencentcloud/services/index.js +2 -0
  37. package/tencentcloud/services/soe/v20180724/soe_models.d.ts +1 -1
  38. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +78 -78
  39. package/test/dasb.v20191018.test.js +121 -0
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import * as Models from "./dasb_models";
2
+ import { Client } from "./dasb_client";
3
+ export declare const v20191018: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20191018 = void 0;
4
+ const Models = require("./dasb_models");
5
+ const dasb_client_1 = require("./dasb_client");
6
+ exports.v20191018 = {
7
+ Client: dasb_client_1.Client,
8
+ Models: Models
9
+ };
@@ -1245,6 +1245,11 @@ export interface Event {
1245
1245
  * 事件来源详细描述,可自定义,选填。云服务默认为标准qcs资源表示语法:qcs::dts:ap-guangzhou:appid/uin:xxx
1246
1246
  */
1247
1247
  Subject: string;
1248
+ /**
1249
+ * 事件发生的毫秒时间戳,
1250
+ time.Now().UnixNano()/1e6
1251
+ */
1252
+ Time?: number;
1248
1253
  }
1249
1254
  /**
1250
1255
  * UpdateEventBus返回参数结构体
@@ -256,7 +256,7 @@ export interface LabelResult {
256
256
  */
257
257
  SubLabel: string;
258
258
  /**
259
- * 该字段用于返回当前标签(Label)下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容;*色情 0*,则表明该文本不属于色情内容。
259
+ * 该字段用于返回当前标签(Label)下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表图片越有可能属于当前返回的标签;如:*色情 99*,则表明该图片非常有可能属于色情内容;*色情 0*,则表明该图片不属于色情内容。
260
260
  */
261
261
  Score: number;
262
262
  /**
@@ -371,7 +371,7 @@ export interface ImageModerationResponse {
371
371
  */
372
372
  SubLabel: string;
373
373
  /**
374
- * 该字段用于返回当前标签(Label)下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容;*色情 0*,则表明该文本不属于色情内容。
374
+ * 该字段用于返回当前标签(Label)下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表图片越有可能属于当前返回的标签;如:*色情 99*,则表明该图片非常有可能属于色情内容;*色情 0*,则表明该图片不属于色情内容。
375
375
  */
376
376
  Score: number;
377
377
  /**
@@ -59,6 +59,7 @@ export { cvm } from "./cvm";
59
59
  export { cwp } from "./cwp";
60
60
  export { cws } from "./cws";
61
61
  export { cynosdb } from "./cynosdb";
62
+ export { dasb } from "./dasb";
62
63
  export { dayu } from "./dayu";
63
64
  export { dbbrain } from "./dbbrain";
64
65
  export { dc } from "./dc";
@@ -122,6 +122,8 @@ var cws_1 = require("./cws");
122
122
  Object.defineProperty(exports, "cws", { enumerable: true, get: function () { return cws_1.cws; } });
123
123
  var cynosdb_1 = require("./cynosdb");
124
124
  Object.defineProperty(exports, "cynosdb", { enumerable: true, get: function () { return cynosdb_1.cynosdb; } });
125
+ var dasb_1 = require("./dasb");
126
+ Object.defineProperty(exports, "dasb", { enumerable: true, get: function () { return dasb_1.dasb; } });
125
127
  var dayu_1 = require("./dayu");
126
128
  Object.defineProperty(exports, "dayu", { enumerable: true, get: function () { return dayu_1.dayu; } });
127
129
  var dbbrain_1 = require("./dbbrain");
@@ -564,7 +564,7 @@ export interface TransmitOralProcessWithInitResponse {
564
564
  */
565
565
  Status: string;
566
566
  /**
567
- * 建议评分,取值范围[0,100],评分方式为建议评分 = 准确度(PronAccuracyfloat)× 完整度(PronCompletionfloat)×(2 - 完整度(PronCompletionfloat)),如若评分策略不符合请参考Words数组中的详细分数自定义评分逻辑。
567
+ * 建议评分,取值范围[0,100],评分方式为建议评分 = 准确度(PronAccuracy)× 完整度(PronCompletion)×(2 - 完整度(PronCompletion)),如若评分策略不符合请参考Words数组中的详细分数自定义评分逻辑。
568
568
  */
569
569
  SuggestedScore: number;
570
570
  /**
@@ -212,6 +212,10 @@ export interface CreateTranscodeTemplateRequest {
212
212
  * 封装格式,可选值:mp4、flv、hls、mp3、flac、ogg、m4a。其中,mp3、flac、ogg、m4a 为纯音频文件。
213
213
  */
214
214
  Container: string;
215
+ /**
216
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
217
+ */
218
+ SubAppId?: number;
215
219
  /**
216
220
  * 转码模板名称,长度限制:64 个字符。
217
221
  */
@@ -246,10 +250,6 @@ export interface CreateTranscodeTemplateRequest {
246
250
  * 极速高清转码参数。
247
251
  */
248
252
  TEHDConfig?: TEHDConfig;
249
- /**
250
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
251
- */
252
- SubAppId?: number;
253
253
  }
254
254
  /**
255
255
  * 转场操作
@@ -970,6 +970,10 @@ export interface CreateImageSpriteTemplateRequest {
970
970
  * 雪碧图中小图的列数。
971
971
  */
972
972
  ColumnCount: number;
973
+ /**
974
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
975
+ */
976
+ SubAppId?: number;
973
977
  /**
974
978
  * 雪碧图模板名称,长度限制:64 个字符。
975
979
  */
@@ -1010,10 +1014,6 @@ export interface CreateImageSpriteTemplateRequest {
1010
1014
  默认值:open。
1011
1015
  */
1012
1016
  ResolutionAdaptive?: string;
1013
- /**
1014
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
1015
- */
1016
- SubAppId?: number;
1017
1017
  }
1018
1018
  /**
1019
1019
  * 指定时间点截图信息
@@ -1411,7 +1411,7 @@ export interface DeletePersonSampleRequest {
1411
1411
  */
1412
1412
  PersonId: string;
1413
1413
  /**
1414
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
1414
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
1415
1415
  */
1416
1416
  SubAppId?: number;
1417
1417
  }
@@ -1671,6 +1671,10 @@ export interface CreateAdaptiveDynamicStreamingTemplateRequest {
1671
1671
  注意:各个子流的帧率必须保持一致;如果不一致,采用第一个子流的帧率作为输出帧率。
1672
1672
  */
1673
1673
  StreamInfos: Array<AdaptiveStreamTemplate>;
1674
+ /**
1675
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
1676
+ */
1677
+ SubAppId?: number;
1674
1678
  /**
1675
1679
  * 模板名称,长度限制:64 个字符。
1676
1680
  */
@@ -1701,10 +1705,6 @@ export interface CreateAdaptiveDynamicStreamingTemplateRequest {
1701
1705
  * 模板描述信息,长度限制:256 个字符。
1702
1706
  */
1703
1707
  Comment?: string;
1704
- /**
1705
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
1706
- */
1707
- SubAppId?: number;
1708
1708
  }
1709
1709
  /**
1710
1710
  * PushUrlCache返回参数结构体
@@ -2096,6 +2096,10 @@ export interface CreatePersonSampleRequest {
2096
2096
  3. All:包含以上全部,等价于 1+2。
2097
2097
  */
2098
2098
  Usages: Array<string>;
2099
+ /**
2100
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
2101
+ */
2102
+ SubAppId?: number;
2099
2103
  /**
2100
2104
  * 素材描述,长度限制:1024 个字符。
2101
2105
  */
@@ -2111,10 +2115,6 @@ export interface CreatePersonSampleRequest {
2111
2115
  <li>单个标签长度限制:128 个字符。</li>
2112
2116
  */
2113
2117
  Tags?: Array<string>;
2114
- /**
2115
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
2116
- */
2117
- SubAppId?: number;
2118
2118
  }
2119
2119
  /**
2120
2120
  * 存储地域信息
@@ -2444,11 +2444,11 @@ export interface DescribeWordSamplesResponse {
2444
2444
  /**
2445
2445
  * 符合条件的记录总数。
2446
2446
  */
2447
- TotalCount?: number;
2447
+ TotalCount: number;
2448
2448
  /**
2449
2449
  * 关键词信息。
2450
2450
  */
2451
- WordSet?: Array<AiSampleWord>;
2451
+ WordSet: Array<AiSampleWord>;
2452
2452
  /**
2453
2453
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2454
2454
  */
@@ -3427,7 +3427,7 @@ export interface CreateWordSamplesRequest {
3427
3427
  */
3428
3428
  Words: Array<AiSampleWordInfo>;
3429
3429
  /**
3430
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
3430
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
3431
3431
  */
3432
3432
  SubAppId?: number;
3433
3433
  }
@@ -4273,11 +4273,11 @@ export interface CreatePersonSampleResponse {
4273
4273
  /**
4274
4274
  * 素材信息。
4275
4275
  */
4276
- Person?: AiSamplePerson;
4276
+ Person: AiSamplePerson;
4277
4277
  /**
4278
4278
  * 处理失败的五官定位信息。
4279
4279
  */
4280
- FailFaceInfoSet?: Array<AiSampleFailFaceInfo>;
4280
+ FailFaceInfoSet: Array<AiSampleFailFaceInfo>;
4281
4281
  /**
4282
4282
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4283
4283
  */
@@ -4464,7 +4464,7 @@ export interface DeleteWordSamplesRequest {
4464
4464
  */
4465
4465
  Keywords: Array<string>;
4466
4466
  /**
4467
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
4467
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
4468
4468
  */
4469
4469
  SubAppId?: number;
4470
4470
  }
@@ -5035,6 +5035,10 @@ export interface ModifyWordSampleRequest {
5035
5035
  * 关键词,长度限制:128 个字符。
5036
5036
  */
5037
5037
  Keyword: string;
5038
+ /**
5039
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
5040
+ */
5041
+ SubAppId?: number;
5038
5042
  /**
5039
5043
  * <b>关键词应用场景,可选值:</b>
5040
5044
  1. Recognition.Ocr:通过光学字符识别技术,进行内容识别;
@@ -5051,10 +5055,6 @@ export interface ModifyWordSampleRequest {
5051
5055
  * 标签操作信息。
5052
5056
  */
5053
5057
  TagOperationInfo?: AiSampleTagOperation;
5054
- /**
5055
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
5056
- */
5057
- SubAppId?: number;
5058
5058
  }
5059
5059
  /**
5060
5060
  * 人脸识别结果片段
@@ -6347,6 +6347,10 @@ export interface CreateWatermarkTemplateRequest {
6347
6347
  <li>svg:SVG 水印。</li>
6348
6348
  */
6349
6349
  Type: string;
6350
+ /**
6351
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
6352
+ */
6353
+ SubAppId?: number;
6350
6354
  /**
6351
6355
  * 水印模板名称,长度限制:64 个字符。
6352
6356
  */
@@ -6390,10 +6394,6 @@ export interface CreateWatermarkTemplateRequest {
6390
6394
  * SVG水印模板,当 Type 为 svg,该字段必填。当 Type 为 image 或 text,该字段无效。
6391
6395
  */
6392
6396
  SvgTemplate?: SvgWatermarkInput;
6393
- /**
6394
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
6395
- */
6396
- SubAppId?: number;
6397
6397
  }
6398
6398
  /**
6399
6399
  * 鉴别涉及令人不安全的信息的任务控制参数。
@@ -7014,11 +7014,11 @@ export interface CreateWatermarkTemplateResponse {
7014
7014
  /**
7015
7015
  * 水印模板唯一标识。
7016
7016
  */
7017
- Definition?: number;
7017
+ Definition: number;
7018
7018
  /**
7019
7019
  * 水印图片地址,仅当 Type 为 image,该字段有效。
7020
7020
  */
7021
- ImageUrl?: string;
7021
+ ImageUrl: string;
7022
7022
  /**
7023
7023
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7024
7024
  */
@@ -7773,7 +7773,7 @@ export interface CreateSnapshotByTimeOffsetTemplateResponse {
7773
7773
  /**
7774
7774
  * 时间点截图模板唯一标识。
7775
7775
  */
7776
- Definition?: number;
7776
+ Definition: number;
7777
7777
  /**
7778
7778
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7779
7779
  */
@@ -8190,7 +8190,7 @@ export interface CreateSampleSnapshotTemplateResponse {
8190
8190
  /**
8191
8191
  * 采样截图模板唯一标识。
8192
8192
  */
8193
- Definition?: number;
8193
+ Definition: number;
8194
8194
  /**
8195
8195
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8196
8196
  */
@@ -9343,7 +9343,7 @@ export interface CreateAIAnalysisTemplateResponse {
9343
9343
  /**
9344
9344
  * 视频内容分析模板唯一标识。
9345
9345
  */
9346
- Definition?: number;
9346
+ Definition: number;
9347
9347
  /**
9348
9348
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9349
9349
  */
@@ -9686,6 +9686,10 @@ export interface ModifyPersonSampleRequest {
9686
9686
  * 素材 ID。
9687
9687
  */
9688
9688
  PersonId: string;
9689
+ /**
9690
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
9691
+ */
9692
+ SubAppId?: number;
9689
9693
  /**
9690
9694
  * 名称,长度限制:128 个字符。
9691
9695
  */
@@ -9709,10 +9713,6 @@ export interface ModifyPersonSampleRequest {
9709
9713
  * 标签操作信息。
9710
9714
  */
9711
9715
  TagOperationInfo?: AiSampleTagOperation;
9712
- /**
9713
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
9714
- */
9715
- SubAppId?: number;
9716
9716
  }
9717
9717
  /**
9718
9718
  * DescribeDrmDataKey请求参数结构体
@@ -9783,6 +9783,10 @@ export interface DeleteVodDomainRequest {
9783
9783
  * CreateAIRecognitionTemplate请求参数结构体
9784
9784
  */
9785
9785
  export interface CreateAIRecognitionTemplateRequest {
9786
+ /**
9787
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
9788
+ */
9789
+ SubAppId?: number;
9786
9790
  /**
9787
9791
  * 视频内容识别模板名称,长度限制:64 个字符。
9788
9792
  */
@@ -9827,10 +9831,6 @@ export interface CreateAIRecognitionTemplateRequest {
9827
9831
  * 截帧间隔,单位为秒。当不填时,默认截帧间隔为 1 秒,最小值为 0.5 秒。
9828
9832
  */
9829
9833
  ScreenshotInterval?: number;
9830
- /**
9831
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
9832
- */
9833
- SubAppId?: number;
9834
9834
  }
9835
9835
  /**
9836
9836
  * DescribeTaskDetail请求参数结构体
@@ -10485,6 +10485,10 @@ export interface CreateContentReviewTemplateRequest {
10485
10485
  <li>OFF:否。</li>
10486
10486
  */
10487
10487
  ReviewWallSwitch: string;
10488
+ /**
10489
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
10490
+ */
10491
+ SubAppId?: number;
10488
10492
  /**
10489
10493
  * 内容智能识别模板名称,长度限制:64 个字符。
10490
10494
  */
@@ -10519,10 +10523,6 @@ export interface CreateContentReviewTemplateRequest {
10519
10523
  * 截帧间隔,单位为秒。当不填时,默认截帧间隔为 1 秒,最小值为 0.5 秒。
10520
10524
  */
10521
10525
  ScreenshotInterval?: number;
10522
- /**
10523
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
10524
- */
10525
- SubAppId?: number;
10526
10526
  }
10527
10527
  /**
10528
10528
  * DescribeContentReviewTemplates请求参数结构体
@@ -11634,6 +11634,10 @@ export interface SnapshotByTimeOffset2017 {
11634
11634
  * CreateAIAnalysisTemplate请求参数结构体
11635
11635
  */
11636
11636
  export interface CreateAIAnalysisTemplateRequest {
11637
+ /**
11638
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
11639
+ */
11640
+ SubAppId?: number;
11637
11641
  /**
11638
11642
  * 视频内容分析模板名称,长度限制:64 个字符。
11639
11643
  */
@@ -11662,10 +11666,6 @@ export interface CreateAIAnalysisTemplateRequest {
11662
11666
  * 智能精彩集锦任务控制参数。
11663
11667
  */
11664
11668
  HighlightConfigure?: HighlightsConfigureInfo;
11665
- /**
11666
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
11667
- */
11668
- SubAppId?: number;
11669
11669
  }
11670
11670
  /**
11671
11671
  * 智能识别涉及令人不安全的信息的任务输入参数类型
@@ -11851,6 +11851,10 @@ export interface EditMediaStreamInfo {
11851
11851
  * DescribeWordSamples请求参数结构体
11852
11852
  */
11853
11853
  export interface DescribeWordSamplesRequest {
11854
+ /**
11855
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
11856
+ */
11857
+ SubAppId?: number;
11854
11858
  /**
11855
11859
  * <b>关键词应用场景过滤条件,可选值:</b>
11856
11860
  1. Recognition.Ocr:通过光学字符识别技术,进行内容识别;
@@ -11879,10 +11883,6 @@ export interface DescribeWordSamplesRequest {
11879
11883
  * 返回记录条数,默认值:100,最大值:100。
11880
11884
  */
11881
11885
  Limit?: number;
11882
- /**
11883
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
11884
- */
11885
- SubAppId?: number;
11886
11886
  }
11887
11887
  /**
11888
11888
  * 图片中心裁剪处理。
@@ -12269,6 +12269,10 @@ export interface CreateAnimatedGraphicsTemplateRequest {
12269
12269
  * 帧率,取值范围:[1, 30],单位:Hz。
12270
12270
  */
12271
12271
  Fps: number;
12272
+ /**
12273
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
12274
+ */
12275
+ SubAppId?: number;
12272
12276
  /**
12273
12277
  * 动图宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。
12274
12278
  <li>当 Width、Height 均为 0,则分辨率同源;</li>
@@ -12310,10 +12314,6 @@ export interface CreateAnimatedGraphicsTemplateRequest {
12310
12314
  * 模板描述信息,长度限制:256 个字符。
12311
12315
  */
12312
12316
  Comment?: string;
12313
- /**
12314
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
12315
- */
12316
- SubAppId?: number;
12317
12317
  }
12318
12318
  /**
12319
12319
  * 智能按帧标签任务控制参数
@@ -12375,12 +12375,12 @@ export interface ModifyPersonSampleResponse {
12375
12375
  /**
12376
12376
  * 素材信息。
12377
12377
  */
12378
- Person?: AiSamplePerson;
12378
+ Person: AiSamplePerson;
12379
12379
  /**
12380
12380
  * 处理失败的五官信息。
12381
12381
  注意:此字段可能返回 null,表示取不到有效值。
12382
12382
  */
12383
- FailFaceInfoSet?: Array<AiSampleFailFaceInfo>;
12383
+ FailFaceInfoSet: Array<AiSampleFailFaceInfo>;
12384
12384
  /**
12385
12385
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
12386
12386
  */
@@ -12539,11 +12539,11 @@ export interface DescribePersonSamplesResponse {
12539
12539
  /**
12540
12540
  * 符合条件的记录总数。
12541
12541
  */
12542
- TotalCount?: number;
12542
+ TotalCount: number;
12543
12543
  /**
12544
12544
  * 人物信息。
12545
12545
  */
12546
- PersonSet?: Array<AiSamplePerson>;
12546
+ PersonSet: Array<AiSamplePerson>;
12547
12547
  /**
12548
12548
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
12549
12549
  */
@@ -12702,6 +12702,10 @@ export interface DescribeAIAnalysisTemplatesResponse {
12702
12702
  * CreateSnapshotByTimeOffsetTemplate请求参数结构体
12703
12703
  */
12704
12704
  export interface CreateSnapshotByTimeOffsetTemplateRequest {
12705
+ /**
12706
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
12707
+ */
12708
+ SubAppId?: number;
12705
12709
  /**
12706
12710
  * 指定时间点截图模板名称,长度限制:64 个字符。
12707
12711
  */
@@ -12739,10 +12743,6 @@ export interface CreateSnapshotByTimeOffsetTemplateRequest {
12739
12743
  * 模板描述信息,长度限制:256 个字符。
12740
12744
  */
12741
12745
  Comment?: string;
12742
- /**
12743
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
12744
- */
12745
- SubAppId?: number;
12746
12746
  /**
12747
12747
  * 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
12748
12748
  <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li>
@@ -12985,6 +12985,10 @@ export interface CreateSampleSnapshotTemplateRequest {
12985
12985
  <li>当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。</li>
12986
12986
  */
12987
12987
  SampleInterval: number;
12988
+ /**
12989
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
12990
+ */
12991
+ SubAppId?: number;
12988
12992
  /**
12989
12993
  * 采样截图模板名称,长度限制:64 个字符。
12990
12994
  */
@@ -13022,10 +13026,6 @@ export interface CreateSampleSnapshotTemplateRequest {
13022
13026
  * 模板描述信息,长度限制:256 个字符。
13023
13027
  */
13024
13028
  Comment?: string;
13025
- /**
13026
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
13027
- */
13028
- SubAppId?: number;
13029
13029
  /**
13030
13030
  * 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
13031
13031
  <li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li>
@@ -13656,7 +13656,7 @@ export interface CreateAnimatedGraphicsTemplateResponse {
13656
13656
  /**
13657
13657
  * 转动图模板唯一标识。
13658
13658
  */
13659
- Definition?: number;
13659
+ Definition: number;
13660
13660
  /**
13661
13661
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
13662
13662
  */
@@ -13773,6 +13773,10 @@ export interface AiRecognitionTaskHeadTailResult {
13773
13773
  * DescribePersonSamples请求参数结构体
13774
13774
  */
13775
13775
  export interface DescribePersonSamplesRequest {
13776
+ /**
13777
+ * <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
13778
+ */
13779
+ SubAppId?: number;
13776
13780
  /**
13777
13781
  * 拉取的素材类型,可选值:
13778
13782
  <li>UserDefine:用户自定义素材库;</li>
@@ -13802,10 +13806,6 @@ export interface DescribePersonSamplesRequest {
13802
13806
  * 返回记录条数,默认值:100,最大值:100。
13803
13807
  */
13804
13808
  Limit?: number;
13805
- /**
13806
- * 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
13807
- */
13808
- SubAppId?: number;
13809
13809
  }
13810
13810
  /**
13811
13811
  * 人脸识别结果
@@ -14164,7 +14164,7 @@ export interface CreateImageSpriteTemplateResponse {
14164
14164
  /**
14165
14165
  * 雪碧图模板唯一标识。
14166
14166
  */
14167
- Definition?: number;
14167
+ Definition: number;
14168
14168
  /**
14169
14169
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
14170
14170
  */
@@ -0,0 +1,121 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.dasb.v20191018.Client({
5
+ credential: {
6
+ secretId: process.env.secretId,
7
+ secretKey: process.env.secretKey,
8
+ },
9
+ region: "ap-shanghai",
10
+ profile: {
11
+ signMethod: "TC3-HMAC-SHA256",
12
+ httpProfile: {
13
+ reqMethod: "POST",
14
+ reqTimeout: 30,
15
+ endpoint: "cvm.ap-shanghai.tencentcloudapi.com",
16
+ },
17
+ },
18
+ })
19
+ describe("dasb.v20191018.test.js", function () {
20
+
21
+ it("dasb.v20191018.DeleteUsers", async function () {
22
+ try {
23
+ const data = await client.DeleteUsers({})
24
+ expect(data).to.be.ok
25
+ } catch(error) {
26
+ expect(error.requestId).to.be.ok
27
+ expect(error.code).to.be.ok
28
+ }
29
+ })
30
+
31
+ it("dasb.v20191018.CreateAcl", async function () {
32
+ try {
33
+ const data = await client.CreateAcl({})
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("dasb.v20191018.DescribeDasbImageIds", async function () {
42
+ try {
43
+ const data = await client.DescribeDasbImageIds({})
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("dasb.v20191018.ModifyUser", async function () {
52
+ try {
53
+ const data = await client.ModifyUser({})
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("dasb.v20191018.DeleteAcls", async function () {
62
+ try {
63
+ const data = await client.DeleteAcls({})
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("dasb.v20191018.DescribeDevices", async function () {
72
+ try {
73
+ const data = await client.DescribeDevices({})
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
+
81
+ it("dasb.v20191018.DescribeAcls", async function () {
82
+ try {
83
+ const data = await client.DescribeAcls({})
84
+ expect(data).to.be.ok
85
+ } catch(error) {
86
+ expect(error.requestId).to.be.ok
87
+ expect(error.code).to.be.ok
88
+ }
89
+ })
90
+
91
+ it("dasb.v20191018.CreateUser", async function () {
92
+ try {
93
+ const data = await client.CreateUser({})
94
+ expect(data).to.be.ok
95
+ } catch(error) {
96
+ expect(error.requestId).to.be.ok
97
+ expect(error.code).to.be.ok
98
+ }
99
+ })
100
+
101
+ it("dasb.v20191018.DescribeUsers", async function () {
102
+ try {
103
+ const data = await client.DescribeUsers({})
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("dasb.v20191018.ModifyAcl", async function () {
112
+ try {
113
+ const data = await client.ModifyAcl({})
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
+ })