tencentcloud-sdk-nodejs 4.0.507 → 4.0.508

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 (46) hide show
  1. package/CHANGELOG.md +156 -0
  2. package/SERVICE_CHANGELOG.md +202 -225
  3. package/package.json +1 -1
  4. package/products.md +10 -9
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/anicloud/index.ts +5 -0
  7. package/src/services/anicloud/v20220923/anicloud_client.ts +69 -0
  8. package/src/services/anicloud/v20220923/anicloud_models.ts +278 -0
  9. package/src/services/anicloud/v20220923/index.ts +6 -0
  10. package/src/services/cam/v20190116/cam_models.ts +3 -3
  11. package/src/services/cdn/v20180606/cdn_models.ts +1 -1
  12. package/src/services/essbasic/v20210526/essbasic_models.ts +14 -0
  13. package/src/services/gs/v20191118/gs_models.ts +9 -2
  14. package/src/services/index.ts +1 -0
  15. package/src/services/ocr/v20181119/ocr_models.ts +5 -0
  16. package/src/services/rum/v20210622/rum_client.ts +12 -0
  17. package/src/services/rum/v20210622/rum_models.ts +20 -0
  18. package/src/services/teo/v20220901/teo_models.ts +6 -0
  19. package/src/services/vod/v20180717/vod_client.ts +2 -1
  20. package/src/services/vod/v20180717/vod_models.ts +117 -5
  21. package/tencentcloud/common/sdk_version.d.ts +1 -1
  22. package/tencentcloud/common/sdk_version.js +1 -1
  23. package/tencentcloud/services/anicloud/index.d.ts +6 -0
  24. package/tencentcloud/services/anicloud/index.js +7 -0
  25. package/tencentcloud/services/anicloud/v20220923/anicloud_client.d.ts +22 -0
  26. package/tencentcloud/services/anicloud/v20220923/anicloud_client.js +49 -0
  27. package/tencentcloud/services/anicloud/v20220923/anicloud_models.d.ts +223 -0
  28. package/tencentcloud/services/anicloud/v20220923/anicloud_models.js +18 -0
  29. package/tencentcloud/services/anicloud/v20220923/index.d.ts +6 -0
  30. package/tencentcloud/services/anicloud/v20220923/index.js +9 -0
  31. package/tencentcloud/services/cam/v20190116/cam_models.d.ts +3 -3
  32. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +1 -1
  33. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +12 -0
  34. package/tencentcloud/services/gs/v20191118/gs_models.d.ts +8 -2
  35. package/tencentcloud/services/index.d.ts +1 -0
  36. package/tencentcloud/services/index.js +2 -0
  37. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +4 -0
  38. package/tencentcloud/services/rum/v20210622/rum_client.d.ts +5 -1
  39. package/tencentcloud/services/rum/v20210622/rum_client.js +6 -0
  40. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +18 -0
  41. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +5 -0
  42. package/tencentcloud/services/vod/v20180717/vod_client.d.ts +0 -1
  43. package/tencentcloud/services/vod/v20180717/vod_client.js +0 -1
  44. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +99 -2
  45. package/test/anicloud.v20220923.test.js +51 -0
  46. package/test/rum.v20210622.test.js +10 -0
@@ -272,6 +272,15 @@ export interface DescribeDataPvUrlInfoResponse {
272
272
  */
273
273
  RequestId?: string;
274
274
  }
275
+ /**
276
+ * StopProject返回参数结构体
277
+ */
278
+ export interface StopProjectResponse {
279
+ /**
280
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
281
+ */
282
+ RequestId?: string;
283
+ }
275
284
  /**
276
285
  * DescribeDataFetchUrl返回参数结构体
277
286
  */
@@ -939,6 +948,15 @@ export interface DescribeDataRequest {
939
948
  */
940
949
  ID: number;
941
950
  }
951
+ /**
952
+ * StopProject请求参数结构体
953
+ */
954
+ export interface StopProjectRequest {
955
+ /**
956
+ * 项目 id
957
+ */
958
+ ProjectId: number;
959
+ }
942
960
  /**
943
961
  * CreateOfflineLogConfig返回参数结构体
944
962
  */
@@ -7464,6 +7464,11 @@ export interface FollowOrigin {
7464
7464
  注意:此字段可能返回 null,表示取不到有效值。
7465
7465
  */
7466
7466
  DefaultCache?: string;
7467
+ /**
7468
+ * 源站未返回 Cache-Control 头时, 使用/不使用默认缓存策略
7469
+ 注意:此字段可能返回 null,表示取不到有效值。
7470
+ */
7471
+ DefaultCacheStrategy?: string;
7467
7472
  }
7468
7473
  /**
7469
7474
  * DescribeSpeedTestingDetails请求参数结构体
@@ -734,7 +734,6 @@ export declare class Client extends AbstractClient {
734
734
  ><li>图片文件大小支持:文件 < 5M;</li>
735
735
  ><li>图片文件分辨率支持:建议分辨率大于256x256,否则可能会影响审核效果;</li>
736
736
  ><li>图片文件支持格式:PNG、JPG、JPEG、BMP、GIF、WEBP格式。</li>
737
-
738
737
  */
739
738
  ReviewImage(req: ReviewImageRequest, cb?: (error: string, rep: ReviewImageResponse) => void): Promise<ReviewImageResponse>;
740
739
  /**
@@ -1004,7 +1004,6 @@ class Client extends abstract_client_1.AbstractClient {
1004
1004
  ><li>图片文件大小支持:文件 < 5M;</li>
1005
1005
  ><li>图片文件分辨率支持:建议分辨率大于256x256,否则可能会影响审核效果;</li>
1006
1006
  ><li>图片文件支持格式:PNG、JPG、JPEG、BMP、GIF、WEBP格式。</li>
1007
-
1008
1007
  */
1009
1008
  async ReviewImage(req, cb) {
1010
1009
  return this.request("ReviewImage", req, cb);
@@ -4486,6 +4486,54 @@ export interface LicenseUsageDataItem {
4486
4486
  */
4487
4487
  Count: number;
4488
4488
  }
4489
+ /**
4490
+ * 图片审核片段。
4491
+ */
4492
+ export interface ReviewImageSegmentItem {
4493
+ /**
4494
+ * 嫌疑片段涉及令人反感的信息的分数。
4495
+ */
4496
+ Confidence?: number;
4497
+ /**
4498
+ * 嫌疑片段鉴别涉及违规信息的结果建议,取值范围:
4499
+ <li>review:疑似违规,建议复审;</li>
4500
+ <li>block:确认违规,建议封禁。</li>
4501
+ */
4502
+ Suggestion?: string;
4503
+ /**
4504
+ * 嫌疑片段最可能的违规的标签,取值范围:
4505
+ <li>Porn:色情;</li>
4506
+ <li>Terror:暴恐;</li>
4507
+ <li>Polity:不适宜的信息;</li>
4508
+ <li>Ad:广告;</li>
4509
+ <li>Illegal:违法;</li>
4510
+ <li>Religion:宗教;</li>
4511
+ <li>Abuse:谩骂。</li>
4512
+ */
4513
+ Label?: string;
4514
+ /**
4515
+ * 违规子标签。
4516
+ */
4517
+ SubLabel?: string;
4518
+ /**
4519
+ * 嫌疑片段违禁的形式,取值范围:
4520
+ <li>Image:画面上的人物或图标;</li>
4521
+ <li>OCR:画面上的文字。</li>
4522
+ */
4523
+ Form?: string;
4524
+ /**
4525
+ * 嫌疑人物、图标或文字出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
4526
+ */
4527
+ AreaCoordSet?: Array<number>;
4528
+ /**
4529
+ * 当 Form 为 OCR 时有效,表示识别出来的 OCR 文本内容。
4530
+ */
4531
+ Text?: string;
4532
+ /**
4533
+ * 当 Form 为 OCR 时有效,表示嫌疑片段命中的违规关键词列表。
4534
+ */
4535
+ KeywordSet?: Array<string>;
4536
+ }
4489
4537
  /**
4490
4538
  * 视频拼接源文件信息(2017 版)
4491
4539
  */
@@ -8302,6 +8350,48 @@ export interface ParseStreamingManifestRequest {
8302
8350
  */
8303
8351
  ManifestType?: string;
8304
8352
  }
8353
+ /**
8354
+ * 图片审核结果。
8355
+ */
8356
+ export interface ReviewImageResult {
8357
+ /**
8358
+ * 图片审核的结果建议,取值范围:
8359
+ <li>pass:建议通过;</li>
8360
+ <li>review:建议复审;</li>
8361
+ <li>block:建议封禁。</li>
8362
+ */
8363
+ Suggestion?: string;
8364
+ /**
8365
+ * 当 Suggestion 为 review 或 block 时有效,表示最可能的违规的标签,取值范围:
8366
+ <li>Porn:色情;</li>
8367
+ <li>Terror:暴恐;</li>
8368
+ <li>Polity:不适宜的信息;</li>
8369
+ <li>Ad:广告;</li>
8370
+ <li>Illegal:违法;</li>
8371
+ <li>Religion:宗教;</li>
8372
+ <li>Abuse:谩骂。</li>
8373
+ */
8374
+ Label?: string;
8375
+ /**
8376
+ * 当 Suggestion 为 review 或 block 时有效,表示最可能的违禁的形式,取值范围:
8377
+ <li>Image:画面上的人物或图标;</li>
8378
+ <li>OCR:画面上的文字。</li>
8379
+ */
8380
+ Form?: string;
8381
+ /**
8382
+ * 有违规信息的嫌疑的视频片段列表。
8383
+ <font color=red>注意</font> :该列表最多仅展示前 10个 元素。如希望获得完整结果,请从 SegmentSetFileUrl 对应的文件中获取。
8384
+ */
8385
+ SegmentSet?: Array<ReviewImageSegmentItem>;
8386
+ /**
8387
+ * 涉及违规信息的嫌疑的视频片段列表文件 URL。文件的内容为 JSON,数据结构与 SegmentSet 字段一致。 (文件不会永久存储,到达SegmentSetFileUrlExpireTime 时间点后文件将被删除)。
8388
+ */
8389
+ SegmentSetFileUrl?: string;
8390
+ /**
8391
+ * 涉及违规信息的嫌疑的视频片段列表文件 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
8392
+ */
8393
+ SegmentSetFileUrlExpireTime?: string;
8394
+ }
8305
8395
  /**
8306
8396
  * DeleteSampleSnapshotTemplate返回参数结构体
8307
8397
  */
@@ -12389,8 +12479,14 @@ export interface AiReviewTaskPoliticalResult {
12389
12479
  export interface ReviewImageResponse {
12390
12480
  /**
12391
12481
  * 图片审核任务结果。
12482
+ <font color=red>注意:该字段已废弃,建议使用 ReviewResult。</font>
12483
+ */
12484
+ ReviewResultSet?: Array<ContentReviewResult>;
12485
+ /**
12486
+ * 图片审核任务结果。
12487
+ 注意:此字段可能返回 null,表示取不到有效值。
12392
12488
  */
12393
- ReviewResultSet: Array<ContentReviewResult>;
12489
+ MediaReviewResult?: ReviewImageResult;
12394
12490
  /**
12395
12491
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
12396
12492
  */
@@ -15133,7 +15229,8 @@ export interface ReviewImageRequest {
15133
15229
  */
15134
15230
  FileId: string;
15135
15231
  /**
15136
- * 图片审核模板 ID,当前固定填 10。
15232
+ * 图片审核模板 ID,取值范围:
15233
+ <li>10:预置模板,支持检测的违规标签包括色情(Porn)、暴恐(Terror)和不适宜的信息(Polity)。</li>
15137
15234
  */
15138
15235
  Definition: number;
15139
15236
  /**
@@ -0,0 +1,51 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.anicloud.v20220923.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("anicloud.v20220923.test.js", function () {
20
+
21
+ it("anicloud.v20220923.CheckAppidExist", async function () {
22
+ try {
23
+ const data = await client.CheckAppidExist({})
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("anicloud.v20220923.QueryResource", async function () {
32
+ try {
33
+ const data = await client.QueryResource({})
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("anicloud.v20220923.QueryResourceInfo", async function () {
42
+ try {
43
+ const data = await client.QueryResourceInfo({})
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
+ })
@@ -318,6 +318,16 @@ it("rum.v20210622.DescribeProjects", async function () {
318
318
  }
319
319
  })
320
320
 
321
+ it("rum.v20210622.StopProject", async function () {
322
+ try {
323
+ const data = await client.StopProject({})
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
+
321
331
  it("rum.v20210622.CreateStarProject", async function () {
322
332
  try {
323
333
  const data = await client.CreateStarProject({})