tencentcloud-sdk-nodejs 4.1.265 → 4.1.266

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 (73) hide show
  1. package/es/common/sdk_version.js +1 -1
  2. package/es/services/antiddos/index.js +2 -2
  3. package/es/services/bma/index.js +2 -2
  4. package/es/services/btoe/index.js +2 -2
  5. package/es/services/cii/index.js +2 -2
  6. package/es/services/cynosdb/v20190107/cynosdb_client.js +3 -0
  7. package/es/services/dbbrain/index.js +2 -2
  8. package/es/services/es/index.js +2 -2
  9. package/es/services/iotcloud/index.js +2 -2
  10. package/es/services/iotvideo/index.js +2 -2
  11. package/es/services/irp/index.js +2 -2
  12. package/es/services/monitor/index.js +2 -2
  13. package/es/services/organization/index.js +2 -2
  14. package/es/services/tem/index.js +2 -2
  15. package/es/services/thpc/index.js +2 -2
  16. package/es/services/tsw/index.js +2 -2
  17. package/es/services/vm/index.js +2 -2
  18. package/es/services/vod/index.js +2 -2
  19. package/es/services/wedata/index.js +2 -2
  20. package/package.json +1 -1
  21. package/tencentcloud/common/sdk_version.d.ts +1 -1
  22. package/tencentcloud/common/sdk_version.js +1 -1
  23. package/tencentcloud/services/antiddos/index.d.ts +4 -4
  24. package/tencentcloud/services/antiddos/index.js +2 -2
  25. package/tencentcloud/services/antiddos/v20250903/antiddos_models.d.ts +4 -1
  26. package/tencentcloud/services/bma/index.d.ts +4 -4
  27. package/tencentcloud/services/bma/index.js +2 -2
  28. package/tencentcloud/services/btoe/index.d.ts +4 -4
  29. package/tencentcloud/services/btoe/index.js +2 -2
  30. package/tencentcloud/services/cii/index.d.ts +4 -4
  31. package/tencentcloud/services/cii/index.js +2 -2
  32. package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.d.ts +5 -1
  33. package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.js +6 -0
  34. package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +46 -24
  35. package/tencentcloud/services/dbbrain/index.d.ts +4 -4
  36. package/tencentcloud/services/dbbrain/index.js +2 -2
  37. package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +75 -96
  38. package/tencentcloud/services/es/index.d.ts +4 -4
  39. package/tencentcloud/services/es/index.js +2 -2
  40. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +48 -72
  41. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +29 -32
  42. package/tencentcloud/services/hai/v20230812/hai_models.d.ts +54 -1
  43. package/tencentcloud/services/iotcloud/index.d.ts +4 -4
  44. package/tencentcloud/services/iotcloud/index.js +2 -2
  45. package/tencentcloud/services/iotvideo/index.d.ts +4 -4
  46. package/tencentcloud/services/iotvideo/index.js +2 -2
  47. package/tencentcloud/services/irp/index.d.ts +4 -4
  48. package/tencentcloud/services/irp/index.js +2 -2
  49. package/tencentcloud/services/kms/v20190118/kms_models.d.ts +32 -32
  50. package/tencentcloud/services/monitor/index.d.ts +4 -4
  51. package/tencentcloud/services/monitor/index.js +2 -2
  52. package/tencentcloud/services/mps/v20190612/mps_models.d.ts +13 -0
  53. package/tencentcloud/services/organization/index.d.ts +4 -4
  54. package/tencentcloud/services/organization/index.js +2 -2
  55. package/tencentcloud/services/tdmysql/v20211122/tdmysql_models.d.ts +4 -0
  56. package/tencentcloud/services/tem/index.d.ts +4 -4
  57. package/tencentcloud/services/tem/index.js +2 -2
  58. package/tencentcloud/services/thpc/index.d.ts +4 -4
  59. package/tencentcloud/services/thpc/index.js +2 -2
  60. package/tencentcloud/services/tms/v20201229/tms_models.d.ts +70 -43
  61. package/tencentcloud/services/tokenhub/v20260322/tokenhub_client.d.ts +4 -4
  62. package/tencentcloud/services/tokenhub/v20260322/tokenhub_models.d.ts +125 -7
  63. package/tencentcloud/services/tse/v20201207/tse_client.d.ts +1 -1
  64. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +107 -69
  65. package/tencentcloud/services/tsw/index.d.ts +4 -4
  66. package/tencentcloud/services/tsw/index.js +2 -2
  67. package/tencentcloud/services/vm/index.d.ts +4 -4
  68. package/tencentcloud/services/vm/index.js +2 -2
  69. package/tencentcloud/services/vod/index.d.ts +4 -4
  70. package/tencentcloud/services/vod/index.js +2 -2
  71. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +70 -6
  72. package/tencentcloud/services/wedata/index.d.ts +4 -4
  73. package/tencentcloud/services/wedata/index.js +2 -2
@@ -738,19 +738,19 @@ export interface CreateWhiteBoxKeyResponse {
738
738
  */
739
739
  export interface ImportKeyMaterialRequest {
740
740
  /**
741
- * 使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit
741
+ * <p>使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS 140-2版本region的KMS, 导入的密钥材料长度要求为 256 bit。</p>
742
742
  */
743
743
  EncryptedKeyMaterial: string;
744
744
  /**
745
- * 通过调用GetParametersForImport获得的导入令牌。
745
+ * <p>通过调用GetParametersForImport获得的导入令牌。</p>
746
746
  */
747
747
  ImportToken: string;
748
748
  /**
749
- * 指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。
749
+ * <p>指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。</p>
750
750
  */
751
751
  KeyId: string;
752
752
  /**
753
- * 密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200
753
+ * <p>密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。</p>
754
754
  */
755
755
  ValidTo?: number;
756
756
  }
@@ -1828,115 +1828,115 @@ export interface DataKey {
1828
1828
  */
1829
1829
  export interface KeyMetadata {
1830
1830
  /**
1831
- * CMK的全局唯一标识
1831
+ * <p>CMK的全局唯一标识</p>
1832
1832
  */
1833
1833
  KeyId?: string;
1834
1834
  /**
1835
- * 作为密钥更容易辨识,更容易被人看懂的别名
1835
+ * <p>作为密钥更容易辨识,更容易被人看懂的别名</p>
1836
1836
  */
1837
1837
  Alias?: string;
1838
1838
  /**
1839
- * 密钥创建时间
1839
+ * <p>密钥创建时间</p>
1840
1840
  */
1841
1841
  CreateTime?: number;
1842
1842
  /**
1843
- * CMK的描述
1843
+ * <p>CMK的描述</p>
1844
1844
  */
1845
1845
  Description?: string;
1846
1846
  /**
1847
- * CMK的状态, 取值为:Enabled | Disabled | PendingDelete | PendingImport | Archived
1847
+ * <p>CMK的状态, 取值为:Enabled | Disabled | PendingDelete | PendingImport | Archived</p>
1848
1848
  */
1849
1849
  KeyState?: string;
1850
1850
  /**
1851
- * CMK用途,取值为: ENCRYPT_DECRYPT | ASYMMETRIC_DECRYPT_RSA_2048 | ASYMMETRIC_DECRYPT_SM2 | ASYMMETRIC_SIGN_VERIFY_SM2 | ASYMMETRIC_SIGN_VERIFY_RSA_2048 | ASYMMETRIC_SIGN_VERIFY_ECC
1851
+ * <p>CMK用途,取值为: ENCRYPT_DECRYPT | ASYMMETRIC_DECRYPT_RSA_2048 | ASYMMETRIC_DECRYPT_SM2 | ASYMMETRIC_SIGN_VERIFY_SM2 | ASYMMETRIC_SIGN_VERIFY_RSA_2048 | ASYMMETRIC_SIGN_VERIFY_ECC</p>
1852
1852
  */
1853
1853
  KeyUsage?: string;
1854
1854
  /**
1855
- * CMK类型,2 表示符合FIPS标准,4表示符合国密标准
1855
+ * <p>CMK类型,2 表示符合FIPS 140-2标准,4表示符合国密标准</p><p>枚举值:</p><ul><li>2: 表示符合FIPS 140-2标准</li><li>4: 表示符合国密标准</li></ul>
1856
1856
  */
1857
1857
  Type?: number;
1858
1858
  /**
1859
- * 创建者
1859
+ * <p>创建者</p>
1860
1860
  */
1861
1861
  CreatorUin?: number;
1862
1862
  /**
1863
- * 是否开启了密钥轮换功能
1863
+ * <p>是否开启了密钥轮换功能</p>
1864
1864
  */
1865
1865
  KeyRotationEnabled?: boolean;
1866
1866
  /**
1867
- * CMK的创建者,用户创建的为 user,授权各云产品自动创建的为对应的产品名
1867
+ * <p>CMK的创建者,用户创建的为 user,授权各云产品自动创建的为对应的产品名</p>
1868
1868
  */
1869
1869
  Owner?: string;
1870
1870
  /**
1871
- * 在密钥轮换开启状态下,下次轮换的时间
1871
+ * <p>在密钥轮换开启状态下,下次轮换的时间</p>
1872
1872
  */
1873
1873
  NextRotateTime?: number;
1874
1874
  /**
1875
- * 计划删除的时间
1875
+ * <p>计划删除的时间</p>
1876
1876
  */
1877
1877
  DeletionDate?: number;
1878
1878
  /**
1879
- * CMK 密钥材料类型,由KMS创建的为: TENCENT_KMS, 由用户导入的类型为:EXTERNAL
1879
+ * <p>CMK 密钥材料类型,由KMS创建的为: TENCENT_KMS, 由用户导入的类型为:EXTERNAL</p>
1880
1880
  */
1881
1881
  Origin?: string;
1882
1882
  /**
1883
- * Origin为 EXTERNAL 时有效,表示密钥材料的有效日期, 0 表示不过期
1883
+ * <p>在Origin为 EXTERNAL 时有效,表示密钥材料的有效日期, 0 表示不过期</p>
1884
1884
  */
1885
1885
  ValidTo?: number;
1886
1886
  /**
1887
- * 资源ID,格式:creatorUin/$creatorUin/$keyId
1887
+ * <p>资源ID,格式:creatorUin/$creatorUin/$keyId</p>
1888
1888
  */
1889
1889
  ResourceId?: string;
1890
1890
  /**
1891
- * HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)
1891
+ * <p>HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)</p>
1892
1892
  */
1893
1893
  HsmClusterId?: string;
1894
1894
  /**
1895
- * 密钥轮转周期(天)
1895
+ * <p>密钥轮转周期(天)</p>
1896
1896
  */
1897
1897
  RotateDays?: number;
1898
1898
  /**
1899
- * 上次乱转时间(Unix timestamp
1899
+ * <p>上次轮转时间(Unix timestamp)</p>
1900
1900
  */
1901
1901
  LastRotateTime?: number;
1902
1902
  /**
1903
- * 密钥是否是主副本。0:主本,1:同步副本。
1903
+ * <p>密钥是否是主副本。0:主本,1:同步副本。</p>
1904
1904
  */
1905
1905
  IsSyncReplica?: number;
1906
1906
  /**
1907
- * 同步的原始地域
1907
+ * <p>同步的原始地域</p>
1908
1908
  */
1909
1909
  SourceRegion?: string;
1910
1910
  /**
1911
- * 密钥同步的状态,0:未同步,1:同步成功,2:同步失败,3:同步中。
1911
+ * <p>密钥同步的状态,0:未同步,1:同步成功,2:同步失败,3:同步中。</p>
1912
1912
  */
1913
1913
  SyncStatus?: number;
1914
1914
  /**
1915
- * 同步的结果描述
1915
+ * <p>同步的结果描述</p>
1916
1916
  */
1917
1917
  SyncMessages?: string;
1918
1918
  /**
1919
- * 同步的开始时间
1919
+ * <p>同步的开始时间</p>
1920
1920
  */
1921
1921
  SyncStartTime?: number;
1922
1922
  /**
1923
- * 同步的结束时间
1923
+ * <p>同步的结束时间</p>
1924
1924
  */
1925
1925
  SyncEndTime?: number;
1926
1926
  /**
1927
- * 同步的原始集群,如果为空,是公有云公共集群
1927
+ * <p>同步的原始集群,如果为空,是公有云公共集群</p>
1928
1928
  */
1929
1929
  SourceHsmClusterId?: string;
1930
1930
  /**
1931
- * 成员账号appId
1931
+ * <p>成员账号appId</p>
1932
1932
  */
1933
1933
  AccountAppId?: number;
1934
1934
  /**
1935
- * 成员账号uin
1935
+ * <p>成员账号uin</p>
1936
1936
  */
1937
1937
  AccountUin?: number;
1938
1938
  /**
1939
- * 成员账号名称
1939
+ * <p>成员账号名称</p>
1940
1940
  */
1941
1941
  AccountName?: string;
1942
1942
  }
@@ -1,10 +1,10 @@
1
1
  export declare const monitor: {
2
- v20180724: {
3
- Client: typeof import("./v20180724/monitor_client").Client;
4
- Models: typeof import("./v20180724/monitor_models");
5
- };
6
2
  v20230616: {
7
3
  Client: typeof import("./v20230616/monitor_client").Client;
8
4
  Models: typeof import("./v20230616/monitor_models");
9
5
  };
6
+ v20180724: {
7
+ Client: typeof import("./v20180724/monitor_client").Client;
8
+ Models: typeof import("./v20180724/monitor_models");
9
+ };
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.monitor = void 0;
4
- const v20180724_1 = require("./v20180724");
5
4
  const v20230616_1 = require("./v20230616");
5
+ const v20180724_1 = require("./v20180724");
6
6
  exports.monitor = {
7
- v20180724: v20180724_1.v20180724,
8
7
  v20230616: v20230616_1.v20230616,
8
+ v20180724: v20180724_1.v20180724,
9
9
  };
@@ -10161,6 +10161,10 @@ export interface CreateAigcVideoTaskRequest {
10161
10161
  * <p>目前仅 Kling O1、Kling 3.0-Omni、Vidu q2-pro、H2 1.0 支持参考视频信息传入。</p><ol><li>Kling O1、3.0-Omni 可作为特征参考视频,也可作为待编辑视频,默认为待编辑视频;可选择性保留视频原声。</li><li>Vidu q2-pro 支持视频参考。</li><li>H2 1.0 支持视频参考。</li></ol>
10162
10162
  */
10163
10163
  VideoInfos?: Array<AigcVideoReferenceVideoInfo>;
10164
+ /**
10165
+ * <p>部分模型支持参考音频传入,使用URL传入。</p>
10166
+ */
10167
+ AudioInfos?: Array<AigcVideoReferenceAudioInfo>;
10164
10168
  /**
10165
10169
  * <p>生成视频的时长。<br>注意:</p><ol><li>Kling,默认:5 秒。<ul><li>O1 支持 3-10 秒。</li><li>3.0-Omni 支持 3-15 秒,当使用视频参考时只支持 3-10 秒。</li><li>3.0 支持 3-15 秒。</li><li>其他版本支持 5、10 秒。</li></ul></li><li>Hailuo 的 std 模式可支持 6、10 秒,其他仅 6 秒。默认:6 秒。</li><li>Vidu,默认:5 秒。<ul><li>q3-pro、q3-turbo、q3、q3-mix 支持 3-16 秒。</li><li>q2-pro、q2-turbo、q2 支持 1-10 秒。 </li></ul></li><li>PixVerse,默认:5 秒。<ul><li>v5.6 支持 5、8、10 秒。</li><li>v6、c1 支持 1-15 秒。</li></ul></li><li>H2,支持 3-15 秒,默认 :5 秒。</li></ol>
10166
10170
  */
@@ -19137,6 +19141,15 @@ export interface StreamUrlDetail {
19137
19141
  */
19138
19142
  Type?: string;
19139
19143
  }
19144
+ /**
19145
+ * 参考音频信息。
19146
+ */
19147
+ export interface AigcVideoReferenceAudioInfo {
19148
+ /**
19149
+ * <p>参考音频URL信息。需外网可访问。</p>
19150
+ */
19151
+ AudioUrl?: string;
19152
+ }
19140
19153
  /**
19141
19154
  * DeleteProcessImageTemplate返回参数结构体
19142
19155
  */
@@ -1,10 +1,10 @@
1
1
  export declare const organization: {
2
- v20210331: {
3
- Client: typeof import("./v20210331/organization_client").Client;
4
- Models: typeof import("./v20210331/organization_models");
5
- };
6
2
  v20181225: {
7
3
  Client: typeof import("./v20181225/organization_client").Client;
8
4
  Models: typeof import("./v20181225/organization_models");
9
5
  };
6
+ v20210331: {
7
+ Client: typeof import("./v20210331/organization_client").Client;
8
+ Models: typeof import("./v20210331/organization_models");
9
+ };
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.organization = void 0;
4
- const v20210331_1 = require("./v20210331");
5
4
  const v20181225_1 = require("./v20181225");
5
+ const v20210331_1 = require("./v20210331");
6
6
  exports.organization = {
7
- v20210331: v20210331_1.v20210331,
8
7
  v20181225: v20181225_1.v20181225,
8
+ v20210331: v20210331_1.v20210331,
9
9
  };
@@ -731,6 +731,10 @@ export interface DeleteDBSBackupSetsResponse {
731
731
  * DescribeFlow返回参数结构体
732
732
  */
733
733
  export interface DescribeFlowResponse {
734
+ /**
735
+ * <p>running表示进行中;success表示成功;paused表示暂停;failed表示失败</p>
736
+ */
737
+ Status?: string;
734
738
  /**
735
739
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
736
740
  */
@@ -1,10 +1,10 @@
1
1
  export declare const tem: {
2
- v20210701: {
3
- Client: typeof import("./v20210701/tem_client").Client;
4
- Models: typeof import("./v20210701/tem_models");
5
- };
6
2
  v20201221: {
7
3
  Client: typeof import("./v20201221/tem_client").Client;
8
4
  Models: typeof import("./v20201221/tem_models");
9
5
  };
6
+ v20210701: {
7
+ Client: typeof import("./v20210701/tem_client").Client;
8
+ Models: typeof import("./v20210701/tem_models");
9
+ };
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tem = void 0;
4
- const v20210701_1 = require("./v20210701");
5
4
  const v20201221_1 = require("./v20201221");
5
+ const v20210701_1 = require("./v20210701");
6
6
  exports.tem = {
7
- v20210701: v20210701_1.v20210701,
8
7
  v20201221: v20201221_1.v20201221,
8
+ v20210701: v20210701_1.v20210701,
9
9
  };
@@ -3,12 +3,12 @@ export declare const thpc: {
3
3
  Client: typeof import("./v20220401/thpc_client").Client;
4
4
  Models: typeof import("./v20220401/thpc_models");
5
5
  };
6
- v20211109: {
7
- Client: typeof import("./v20211109/thpc_client").Client;
8
- Models: typeof import("./v20211109/thpc_models");
9
- };
10
6
  v20230321: {
11
7
  Client: typeof import("./v20230321/thpc_client").Client;
12
8
  Models: typeof import("./v20230321/thpc_models");
13
9
  };
10
+ v20211109: {
11
+ Client: typeof import("./v20211109/thpc_client").Client;
12
+ Models: typeof import("./v20211109/thpc_models");
13
+ };
14
14
  };
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.thpc = void 0;
4
4
  const v20220401_1 = require("./v20220401");
5
- const v20211109_1 = require("./v20211109");
6
5
  const v20230321_1 = require("./v20230321");
6
+ const v20211109_1 = require("./v20211109");
7
7
  exports.thpc = {
8
8
  v20220401: v20220401_1.v20220401,
9
- v20211109: v20211109_1.v20211109,
10
9
  v20230321: v20230321_1.v20230321,
10
+ v20211109: v20211109_1.v20211109,
11
11
  };
@@ -1,3 +1,16 @@
1
+ /**
2
+ * 命中的位置坐标,是个左闭右开结构,比如原文是“一二三四五”,命中的文本是“二三”,则位置坐标是{1,3}
3
+ */
4
+ export interface HitPosition {
5
+ /**
6
+ * <p>起始下标,含(按 rune/字符计算),一段文本的起始下标是0</p>
7
+ */
8
+ Start?: number;
9
+ /**
10
+ * <p>结束下标,不含(按 rune/字符),比如Start:1,End:3,表示第1,第2个字符,不包含第3个字符</p>
11
+ */
12
+ End?: number;
13
+ }
1
14
  /**
2
15
  * 情感分析结果
3
16
  */
@@ -87,44 +100,44 @@ export interface GetFinancialLLMTaskResultResponse {
87
100
  */
88
101
  export interface DetailResults {
89
102
  /**
90
- * 该字段用于返回检测结果所对应的全部恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告;以及其他令人反感、不安全或不适宜的内容类型。
103
+ * <p>该字段用于返回检测结果所对应的全部恶意标签。<br>返回值:<strong>Normal</strong>:正常,<strong>Porn</strong>:色情,<strong>Abuse</strong>:谩骂,<strong>Ad</strong>:广告;以及其他令人反感、不安全或不适宜的内容类型。</p>
91
104
  */
92
105
  Label?: string;
93
106
  /**
94
- * 该字段用于返回对应当前标签的后续操作建议。当您获取到判定结果后,返回值表示系统推荐的后续操作;建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
107
+ * <p>该字段用于返回对应当前标签的后续操作建议。当您获取到判定结果后,返回值表示系统推荐的后续操作;建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:<strong>Block</strong>:建议屏蔽,<strong>Review</strong> :建议人工复审,<strong>Pass</strong>:建议通过</p>
95
108
  */
96
109
  Suggestion?: string;
97
110
  /**
98
- * 该字段用于返回检测文本命中的关键词信息,用于标注文本违规的具体原因(如:*加我微信*)。该参数可能会有多个返回值,代表命中的多个关键词;如返回值为空且Score不为空,则代表识别结果所对应的恶意标签(Label)是来自于语义模型判断的返回值。
111
+ * <p>该字段用于返回检测文本命中的关键词信息,用于标注文本违规的具体原因(如:<em>加我微信</em>)。该参数可能会有多个返回值,代表命中的多个关键词;如返回值为空且Score不为空,则代表识别结果所对应的恶意标签(Label)是来自于语义模型判断的返回值。</p>
99
112
  */
100
113
  Keywords?: Array<string>;
101
114
  /**
102
- * 该字段用于返回当前标签(Label)下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容;*色情 0*,则表明该文本不属于色情内容。
115
+ * <p>该字段用于返回当前标签(Label)下的置信度,取值范围:0(<strong>置信度最低</strong>)-100(<strong>置信度最高</strong> ),越高代表文本越有可能属于当前返回的标签;如:<em>色情 99</em>,则表明该文本非常有可能属于色情内容;<em>色情 0</em>,则表明该文本不属于色情内容。</p>
103
116
  */
104
117
  Score?: number;
105
118
  /**
106
- * 该字段用于返回自定义关键词对应的词库类型,取值为**1**(黑白库)和**2**(自定义关键词库),若未配置自定义关键词库,则默认值为1(黑白库匹配)。
119
+ * <p>该字段用于返回自定义关键词对应的词库类型,取值为<strong>1</strong>(黑白库)和<strong>2</strong>(自定义关键词库),若未配置自定义关键词库,则默认值为1(黑白库匹配)。</p>
107
120
  */
108
121
  LibType?: number;
109
122
  /**
110
- * 该字段用于返回自定义库的ID,以方便自定义库管理和配置。
123
+ * <p>该字段用于返回自定义库的ID,以方便自定义库管理和配置。</p>
111
124
  */
112
125
  LibId?: string;
113
126
  /**
114
- * 该字段用于返回自定义库的名称,以方便自定义库管理和配置。
127
+ * <p>该字段用于返回自定义库的名称,以方便自定义库管理和配置。</p>
115
128
  */
116
129
  LibName?: string;
117
130
  /**
118
- * 该字段用于返回当前标签(Label)下的二级标签。
131
+ * <p>该字段用于返回当前标签(Label)下的二级标签。</p>
119
132
  */
120
133
  SubLabel?: string;
121
134
  /**
122
- * 该字段用于返回当前一级标签(Label)下的关键词、子标签及分数。
135
+ * <p>该字段用于返回当前一级标签(Label)下的关键词、子标签及分数。</p>
123
136
  注意:此字段可能返回 null,表示取不到有效值。
124
137
  */
125
138
  Tags?: Array<Tag>;
126
139
  /**
127
- * 该字段用于返回违规文本命中信息
140
+ * <p>该字段用于返回违规文本命中信息</p>
128
141
  */
129
142
  HitInfos?: Array<HitInfo>;
130
143
  }
@@ -133,44 +146,35 @@ export interface DetailResults {
133
146
  */
134
147
  export interface TextModerationRequest {
135
148
  /**
136
- * 待检测的文本内容,需为UTF-8编码并以Base64格式传入。
137
-
149
+ * <p>待检测的文本内容,需为UTF-8编码并以Base64格式传入。</p>
138
150
  */
139
151
  Content: string;
140
152
  /**
141
- * 接口使用的识别策略编号,需在[控制台](https://console.cloud.tencent.com/cms/clouds/manage)获取。详细获取方式请参考以下链接:
142
- - **内容安全**(详见步骤四:策略配置):[点击这里](https://cloud.tencent.com/document/product/1124/37119)
143
- - **AI生成识别**(详见服务对接->方式二):[点击这里](https://cloud.tencent.com/document/product/1124/118694)
153
+ * <p>接口使用的识别策略编号,需在<a href="https://console.cloud.tencent.com/cms/clouds/manage">控制台</a>获取。详细获取方式请参考以下链接:</p><ul><li><strong>内容安全</strong>(详见步骤四:策略配置):<a href="https://cloud.tencent.com/document/product/1124/37119">点击这里</a></li><li><strong>AI生成识别</strong>(详见服务对接-&gt;方式二):<a href="https://cloud.tencent.com/document/product/1124/118694">点击这里</a></li></ul>
144
154
  */
145
155
  BizType?: string;
146
156
  /**
147
- * 该字段表示您为待检测文本分配的数据ID,作用是方便您对数据进行标识和管理。
148
- 取值:可由英文字母、数字、四种特殊符号(_,-,@,#)组成,**长度不超过64个字符**。
157
+ * <p>该字段表示您为待检测文本分配的数据ID,作用是方便您对数据进行标识和管理。<br>取值:可由英文字母、数字、四种特殊符号(_,-,@,#)组成,<strong>长度不超过64个字符</strong>。</p>
149
158
  */
150
159
  DataId?: string;
151
160
  /**
152
- * 该字段标识用户信息,传入后可增强甄别有违规风险的发布者账号。
161
+ * <p>该字段标识用户信息,传入后可增强甄别有违规风险的发布者账号。</p>
153
162
  */
154
163
  User?: User;
155
164
  /**
156
- * 该字段标识设备信息,传入后可增强甄别有违规风险的发布者设备。
165
+ * <p>该字段标识设备信息,传入后可增强甄别有违规风险的发布者设备。</p>
157
166
  */
158
167
  Device?: Device;
159
168
  /**
160
- * Content字段的原始语种,枚举值包括 zh 和 en
161
- - 推荐使用 zh
162
- - en 适用于纯英文内容,耗时较高。若需使用 en,请先通过[反馈工单](https://console.cloud.tencent.com/workorder/category?level1_id=141&level2_id=1287&source=14&data_title=%E6%96%87%E6%9C%AC%E5%86%85%E5%AE%B9%E5%AE%89%E5%85%A8&step=1)确认
163
-
169
+ * <p>Content字段的原始语种,枚举值包括 zh 和 en:</p><ul><li>推荐使用 zh</li><li>en 适用于纯英文内容,耗时较高。若需使用 en,请先通过<a href="https://console.cloud.tencent.com/workorder/category?level1_id=141&amp;level2_id=1287&amp;source=14&amp;data_title=%E6%96%87%E6%9C%AC%E5%86%85%E5%AE%B9%E5%AE%89%E5%85%A8&amp;step=1">反馈工单</a>确认</li></ul>
164
170
  */
165
171
  SourceLanguage?: string;
166
172
  /**
167
- * 服务类型,枚举值包括 TEXT 和 TEXT_AIGC:
168
- TEXT:内容安全
169
- TEXT_AIGC:AI生成识别
173
+ * <p>服务类型,枚举值包括 TEXT 和 TEXT_AIGC:<br>TEXT:内容安全<br>TEXT_AIGCAI生成识别</p>
170
174
  */
171
175
  Type?: string;
172
176
  /**
173
- * 适用于上下文关联审核场景,若多条文本内容需要联合审核,通过该字段关联会话。
177
+ * <p>适用于上下文关联审核场景,若多条文本内容需要联合审核,通过该字段关联会话。</p>
174
178
  */
175
179
  SessionId?: string;
176
180
  }
@@ -238,6 +242,27 @@ export interface Tag {
238
242
  */
239
243
  Score?: number;
240
244
  }
245
+ /**
246
+ * 导致命中审核标签的原文片段信息,如果不命中任何审核标签,则不会有该片段信息,该片段信息只鹰用于辅助分析导致命中审核标签的文本所在位置
247
+ */
248
+ export interface HitSnippetInfo {
249
+ /**
250
+ * <p>命中的文本片段(明文),已还原到预处理前的原文,注意该字段内容在原文中可能不连续,需要结合HitSnippetInfos[].Positions来还原出所在原文位置</p>
251
+ */
252
+ Snippet?: string;
253
+ /**
254
+ * <p>原子能力类型,如果是业务自定义库命中,会给出词库名称</p>
255
+ */
256
+ AtomicName?: string;
257
+ /**
258
+ * <p>原子能力ID,如果是业务自定义库导致命中本次审核标签,该值是词库ID</p>
259
+ */
260
+ AtomicId?: string;
261
+ /**
262
+ * <p>该命中片段在原文中的位置列表,由于文本片段在原文中可能不连续,它可能是有多段位置信息</p>
263
+ */
264
+ Positions?: Array<HitPosition>;
265
+ }
241
266
  /**
242
267
  * CreateFinancialLLMTask请求参数结构体
243
268
  */
@@ -334,67 +359,69 @@ export interface SentimentDetail {
334
359
  */
335
360
  export interface TextModerationResponse {
336
361
  /**
337
- * 该字段用于回显检测对象请求参数中的 BizType,与输入的 BizType 值对应。
362
+ * <p>该字段用于回显检测对象请求参数中的 BizType,与输入的 BizType 值对应。</p>
338
363
  */
339
364
  BizType?: string;
340
365
  /**
341
- * 用于标识对本次请求的处置建议,共三种返回值。
342
- 返回值:**Block**: 建议直接做违规处置,**Review**: 建议人工二次确认,**Pass**: 未识别到风险。
366
+ * <p>用于标识对本次请求的处置建议,共三种返回值。<br>返回值:<strong>Block</strong>: 建议直接做违规处置,<strong>Review</strong>: 建议人工二次确认,<strong>Pass</strong>: 未识别到风险。</p>
343
367
  */
344
368
  Suggestion?: string;
345
369
  /**
346
- * 该字段用于返回检测结果(DetailResults)中所对应的**优先级最高的恶意标签**,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告;以及其他令人反感、不安全或不适宜的内容类型
370
+ * <p>该字段用于返回检测结果(DetailResults)中所对应的<strong>优先级最高的恶意标签</strong>,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:<strong>Normal</strong>:正常,<strong>Porn</strong>:色情,<strong>Abuse</strong>:谩骂,<strong>Ad</strong>:广告;以及其他令人反感、不安全或不适宜的内容类型</p>
347
371
  */
348
372
  Label?: string;
349
373
  /**
350
- * 对应 Label 字段下的二级子标签,表示该 Label 下更细分的违规点。
374
+ * <p>对应 Label 字段下的二级子标签,表示该 Label 下更细分的违规点。</p>
351
375
  */
352
376
  SubLabel?: string;
353
377
  /**
354
- * 该字段标识 SubLabel 的置信度,取值范围为 0 - 100,值越高代表置信度越高。
378
+ * <p>该字段标识 SubLabel 的置信度,取值范围为 0 - 100,值越高代表置信度越高。</p>
355
379
  */
356
380
  Score?: number;
357
381
  /**
358
- * 该字段标识被检测文本所命中的关键词,可能返回0个或多个关键词。
382
+ * <p>该字段标识被检测文本所命中的关键词,可能返回0个或多个关键词。</p>
359
383
  注意:此字段可能返回 null,表示取不到有效值。
360
384
  */
361
385
  Keywords?: Array<string>;
362
386
  /**
363
- * 该字段返回的检测的详细信息,返回值信息可参阅对应数据结构 DetailResults 的详细描述。
387
+ * <p>该字段返回的检测的详细信息,返回值信息可参阅对应数据结构 DetailResults 的详细描述。</p>
364
388
  注意:此字段可能返回 null,表示取不到有效值。
365
389
  */
366
390
  DetailResults?: Array<DetailResults>;
367
391
  /**
368
- * 该字段标识入参 User 的检测结果,具体内容参阅数据结构 RiskDetails
392
+ * <p>该字段标识入参 User 的检测结果,具体内容参阅数据结构 RiskDetails。</p>
369
393
  注意:此字段可能返回 null,表示取不到有效值。
370
394
  */
371
395
  RiskDetails?: Array<RiskDetails>;
372
396
  /**
373
- * 该字段用于返回根据您的需求配置的附加信息(Extra),如未配置则默认返回值为空。
374
- 备注:不同客户或Biztype下返回信息不同,如需配置该字段请提交工单咨询或联系售后专员处理。
397
+ * <p>该字段用于返回根据您的需求配置的附加信息(Extra),如未配置则默认返回值为空。<br>备注:不同客户或Biztype下返回信息不同,如需配置该字段请提交工单咨询或联系售后专员处理。</p>
375
398
  */
376
399
  Extra?: string;
377
400
  /**
378
- * 该字段用于回显检测对象请求参数中的 DataId,与输入的 DataId 值对应。
401
+ * <p>该字段用于回显检测对象请求参数中的 DataId,与输入的 DataId 值对应。</p>
379
402
  */
380
403
  DataId?: string;
381
404
  /**
382
- * 历史上下文关联的字段,不再推荐使用。上下文关联审核可通过入参的 SessionId 来实现。
405
+ * <p>历史上下文关联的字段,不再推荐使用。上下文关联审核可通过入参的 SessionId 来实现。</p>
383
406
  */
384
407
  ContextText?: string;
385
408
  /**
386
- * 该字段为历史结构字段,不再推荐使用。
409
+ * <p>该字段为历史结构字段,不再推荐使用。</p>
387
410
  注意:此字段可能返回 null,表示取不到有效值。
388
411
  */
389
412
  SentimentAnalysis?: SentimentAnalysis;
390
413
  /**
391
- * 该字段为历史结构字段,不再推荐使用。
414
+ * <p>该字段为历史结构字段,不再推荐使用。</p>
392
415
  */
393
416
  HitType?: string;
394
417
  /**
395
- * 该字段用于回显检测对象请求参数中的 SessionId,与输入的 SessionId 值对应。
418
+ * <p>该字段用于回显检测对象请求参数中的 SessionId,与输入的 SessionId 值对应。</p>
396
419
  */
397
420
  SessionId?: string;
421
+ /**
422
+ * <p>该字段用于标记导致本次审核命中标签的原文内容位置信息</p>
423
+ */
424
+ HitSnippetInfos?: Array<HitSnippetInfo>;
398
425
  /**
399
426
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
400
427
  */
@@ -72,7 +72,7 @@ export declare class Client extends AbstractClient {
72
72
 
73
73
  更新 API 密钥的备注信息、 IP 白名单和 Token 限额(修改限额推荐使用QuotaDesired参数)。所有可选参数不传表示不修改。
74
74
  */
75
- ModifyApiKeyInfo(req?: ModifyApiKeyInfoRequest, cb?: (error: string, rep: ModifyApiKeyInfoResponse) => void): Promise<ModifyApiKeyInfoResponse>;
75
+ ModifyApiKeyInfo(req: ModifyApiKeyInfoRequest, cb?: (error: string, rep: ModifyApiKeyInfoResponse) => void): Promise<ModifyApiKeyInfoResponse>;
76
76
  /**
77
77
  * 查询术语条目列表。
78
78
 
@@ -104,7 +104,7 @@ export declare class Client extends AbstractClient {
104
104
  /**
105
105
  * 更新 API 密钥的启用或禁用状态。
106
106
  */
107
- ModifyApiKeyStatus(req?: ModifyApiKeyStatusRequest, cb?: (error: string, rep: ModifyApiKeyStatusResponse) => void): Promise<ModifyApiKeyStatusResponse>;
107
+ ModifyApiKeyStatus(req: ModifyApiKeyStatusRequest, cb?: (error: string, rep: ModifyApiKeyStatusResponse) => void): Promise<ModifyApiKeyStatusResponse>;
108
108
  /**
109
109
  * 升配套餐。
110
110
 
@@ -116,7 +116,7 @@ export declare class Client extends AbstractClient {
116
116
 
117
117
  创建一个新的 API 密钥,创建成功后返回 API 密钥 ID。需指定平台类型、绑定方式和初始状态。
118
118
  */
119
- CreateApiKey(req?: CreateApiKeyRequest, cb?: (error: string, rep: CreateApiKeyResponse) => void): Promise<CreateApiKeyResponse>;
119
+ CreateApiKey(req: CreateApiKeyRequest, cb?: (error: string, rep: CreateApiKeyResponse) => void): Promise<CreateApiKeyResponse>;
120
120
  /**
121
121
  * 创建术语库。
122
122
 
@@ -172,7 +172,7 @@ export declare class Client extends AbstractClient {
172
172
  /**
173
173
  * 删除指定的 API 密钥,同时清理关联的模型绑定关系。
174
174
  */
175
- DeleteApiKey(req?: DeleteApiKeyRequest, cb?: (error: string, rep: DeleteApiKeyResponse) => void): Promise<DeleteApiKeyResponse>;
175
+ DeleteApiKey(req: DeleteApiKeyRequest, cb?: (error: string, rep: DeleteApiKeyResponse) => void): Promise<DeleteApiKeyResponse>;
176
176
  /**
177
177
  * 查询 TokenPlan APIKey 密钥(明文)。
178
178