tencentcloud-sdk-nodejs-tms 4.1.52 → 4.1.67

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-tms",
3
- "version": "4.1.52",
3
+ "version": "4.1.67",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -4,17 +4,14 @@
4
4
  export interface SentimentAnalysis {
5
5
  /**
6
6
  * 情感标签
7
- 注意:此字段可能返回 null,表示取不到有效值。
8
7
  */
9
8
  Label?: string;
10
9
  /**
11
10
  * 标签分数,取值范围0到100
12
- 注意:此字段可能返回 null,表示取不到有效值。
13
11
  */
14
12
  Score?: number;
15
13
  /**
16
14
  * 情感分析明细
17
- 注意:此字段可能返回 null,表示取不到有效值。
18
15
  */
19
16
  Detail?: SentimentDetail;
20
17
  /**
@@ -23,7 +20,6 @@ export interface SentimentAnalysis {
23
20
  Code?: string;
24
21
  /**
25
22
  * 异常信息
26
- 注意:此字段可能返回 null,表示取不到有效值。
27
23
  */
28
24
  Message?: string;
29
25
  }
@@ -33,14 +29,12 @@ export interface SentimentAnalysis {
33
29
  export interface Positions {
34
30
  /**
35
31
  * 关键词起始位置
36
- 注意:此字段可能返回 null,表示取不到有效值。
37
32
  */
38
- Start: number;
33
+ Start?: number;
39
34
  /**
40
35
  * 关键词结束位置
41
- 注意:此字段可能返回 null,表示取不到有效值。
42
36
  */
43
- End: number;
37
+ End?: number;
44
38
  }
45
39
  /**
46
40
  * 账号风险检测结果
@@ -64,7 +58,7 @@ export interface TextModerationRequest {
64
58
  */
65
59
  Content: string;
66
60
  /**
67
- * 该字段表示使用的策略的具体编号,该字段需要先在[内容安全控制台](#https://console.cloud.tencent.com/cms/clouds/manage)中配置,控制台访问地址:。
61
+ * 该字段表示使用的策略的具体编号,该字段需要先在[内容安全控制台](https://console.cloud.tencent.com/cms/clouds/manage)中配置,控制台访问地址:。
68
62
  备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
69
63
  */
70
64
  BizType?: string;
@@ -81,11 +75,11 @@ export interface TextModerationRequest {
81
75
  */
82
76
  Device?: Device;
83
77
  /**
84
- * 表示Content的原始语种,枚举值包括 "en" 和 "zh"。其中,"en" 表示英文,"zh" 表示中文。非中文场景的处理耗时较高,具体情况取决于送审文本长度,非中文场景需[反馈工单](#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)确认。
78
+ * 表示Content的原始语种,枚举值包括 "en" 和 "zh"。其中,"en" 表示英文,"zh" 表示中文。非中文场景的处理耗时较高,具体情况取决于送审文本长度,非中文场景需[反馈工单](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)确认。
85
79
  */
86
80
  SourceLanguage?: string;
87
81
  /**
88
- * 审核的业务类型,枚举值包括 "TEXT" "TEXT_AIGC""TEXT" 表示传统文本审核,"TEXT_AIGC" 表示文本AIGC审核。
82
+ * 审核的业务类型,枚举值包括"TEXT"和"TEXT_AIGC"。其中"TEXT"表示传统文本审核,"TEXT_AIGC”表示AI生成检测(生成检测能力具体能力了解可[参见文档](https://cloud.tencent.com/document/product/1124/118694))。
89
83
  */
90
84
  Type?: string;
91
85
  }
@@ -99,37 +93,30 @@ export interface DetailResults {
99
93
  Label?: string;
100
94
  /**
101
95
  * 该字段用于返回对应当前标签的后续操作建议。当您获取到判定结果后,返回值表示系统推荐的后续操作;建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
102
- 注意:此字段可能返回 null,表示取不到有效值。
103
96
  */
104
97
  Suggestion?: string;
105
98
  /**
106
99
  * 该字段用于返回检测文本命中的关键词信息,用于标注文本违规的具体原因(如:*加我微信*)。该参数可能会有多个返回值,代表命中的多个关键词;如返回值为空且Score不为空,则代表识别结果所对应的恶意标签(Label)是来自于语义模型判断的返回值。
107
- 注意:此字段可能返回 null,表示取不到有效值。
108
100
  */
109
101
  Keywords?: Array<string>;
110
102
  /**
111
103
  * 该字段用于返回当前标签(Label)下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容;*色情 0*,则表明该文本不属于色情内容。
112
- 注意:此字段可能返回 null,表示取不到有效值。
113
104
  */
114
105
  Score?: number;
115
106
  /**
116
107
  * 该字段用于返回自定义关键词对应的词库类型,取值为**1**(黑白库)和**2**(自定义关键词库),若未配置自定义关键词库,则默认值为1(黑白库匹配)。
117
- 注意:此字段可能返回 null,表示取不到有效值。
118
108
  */
119
109
  LibType?: number;
120
110
  /**
121
111
  * 该字段用于返回自定义库的ID,以方便自定义库管理和配置。
122
- 注意:此字段可能返回 null,表示取不到有效值。
123
112
  */
124
113
  LibId?: string;
125
114
  /**
126
115
  * 该字段用于返回自定义库的名称,以方便自定义库管理和配置。
127
- 注意:此字段可能返回 null,表示取不到有效值。
128
116
  */
129
117
  LibName?: string;
130
118
  /**
131
119
  * 该字段用于返回当前标签(Label)下的二级标签。
132
- 注意:此字段可能返回 null,表示取不到有效值。
133
120
  */
134
121
  SubLabel?: string;
135
122
  /**
@@ -139,7 +126,6 @@ export interface DetailResults {
139
126
  Tags?: Array<Tag>;
140
127
  /**
141
128
  * 该字段用于返回违规文本命中信息
142
- 注意:此字段可能返回 null,表示取不到有效值。
143
129
  */
144
130
  HitInfos?: Array<HitInfo>;
145
131
  }
@@ -149,22 +135,18 @@ export interface DetailResults {
149
135
  export interface HitInfo {
150
136
  /**
151
137
  * 标识模型命中还是关键词命中
152
- 注意:此字段可能返回 null,表示取不到有效值。
153
138
  */
154
139
  Type?: string;
155
140
  /**
156
141
  * 命中关键词
157
- 注意:此字段可能返回 null,表示取不到有效值。
158
142
  */
159
143
  Keyword?: string;
160
144
  /**
161
145
  * 自定义词库名称
162
- 注意:此字段可能返回 null,表示取不到有效值。
163
146
  */
164
147
  LibName?: string;
165
148
  /**
166
149
  * 位置信息
167
- 注意:此字段可能返回 null,表示取不到有效值。
168
150
  */
169
151
  Positions?: Array<Positions>;
170
152
  }
@@ -174,17 +156,14 @@ export interface HitInfo {
174
156
  export interface Tag {
175
157
  /**
176
158
  * 该字段用于返回命中的关键词
177
- 注意:此字段可能返回 null,表示取不到有效值。
178
159
  */
179
160
  Keyword?: string;
180
161
  /**
181
162
  * 该字段用于返回子标签
182
- 注意:此字段可能返回 null,表示取不到有效值。
183
163
  */
184
164
  SubLabel?: string;
185
165
  /**
186
166
  * 该字段用于返回子标签对应的分数
187
- 注意:此字段可能返回 null,表示取不到有效值。
188
167
  */
189
168
  Score?: number;
190
169
  }
@@ -289,12 +268,10 @@ export interface Device {
289
268
  export interface SentimentDetail {
290
269
  /**
291
270
  * 正向分数,取值范围0到100
292
- 注意:此字段可能返回 null,表示取不到有效值。
293
271
  */
294
272
  Positive?: number;
295
273
  /**
296
274
  * 负向分数,取值范围0到100
297
- 注意:此字段可能返回 null,表示取不到有效值。
298
275
  */
299
276
  Negative?: number;
300
277
  }
@@ -335,22 +312,18 @@ export interface TextModerationResponse {
335
312
  RiskDetails?: Array<RiskDetails>;
336
313
  /**
337
314
  * 该字段用于返回根据您的需求配置的额外附加信息(Extra),如未配置则默认返回值为空。<br>备注:不同客户或Biztype下返回信息不同,如需配置该字段请提交工单咨询或联系售后专员处理
338
- 注意:此字段可能返回 null,表示取不到有效值。
339
315
  */
340
316
  Extra?: string;
341
317
  /**
342
318
  * 该字段用于返回检测对象对应请求参数中的DataId,与输入的DataId字段中的内容对应
343
- 注意:此字段可能返回 null,表示取不到有效值。
344
319
  */
345
320
  DataId?: string;
346
321
  /**
347
322
  * 该字段用于返回当前标签(Label)下的二级标签。
348
- 注意:此字段可能返回 null,表示取不到有效值。
349
323
  */
350
324
  SubLabel?: string;
351
325
  /**
352
326
  * 该字段用于返回上下文关联文本
353
- 注意:此字段可能返回 null,表示取不到有效值。
354
327
  */
355
328
  ContextText?: string;
356
329
  /**