tencentcloud-sdk-nodejs 4.1.72 → 4.1.74
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/es/common/sdk_version.js +1 -1
- package/es/services/cfw/v20190904/cfw_client.js +3 -0
- package/es/services/csip/v20221121/csip_client.js +53 -14
- package/es/services/lcic/v20220817/lcic_client.js +3 -0
- package/es/services/nlp/v20190408/nlp_client.js +0 -18
- package/es/services/tke/v20220501/tke_client.js +3 -0
- package/package.json +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/ai3d/v20250513/ai3d_models.d.ts +1 -1
- package/tencentcloud/services/batch/v20170312/batch_models.d.ts +46 -0
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +1 -1
- package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +1 -1
- package/tencentcloud/services/cdn/v20180606/cdn_client.js +1 -1
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +2 -2
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +10 -10
- package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +5 -1
- package/tencentcloud/services/cfw/v20190904/cfw_client.js +6 -0
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +152 -23
- package/tencentcloud/services/csip/v20221121/csip_client.d.ts +67 -15
- package/tencentcloud/services/csip/v20221121/csip_client.js +99 -21
- package/tencentcloud/services/csip/v20221121/csip_models.d.ts +1219 -366
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +1 -1
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +4 -0
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +91 -2
- package/tencentcloud/services/es/v20250101/es_models.d.ts +8 -0
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +10 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +8 -3
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +1 -1
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.js +1 -1
- package/tencentcloud/services/lcic/v20220817/lcic_client.d.ts +5 -1
- package/tencentcloud/services/lcic/v20220817/lcic_client.js +6 -0
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +44 -18
- package/tencentcloud/services/live/v20180801/live_models.d.ts +121 -1
- package/tencentcloud/services/lke/v20231130/lke_models.d.ts +105 -1
- package/tencentcloud/services/mrs/v20200910/mrs_models.d.ts +4 -0
- package/tencentcloud/services/nlp/v20190408/nlp_client.d.ts +1 -25
- package/tencentcloud/services/nlp/v20190408/nlp_client.js +0 -36
- package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +87 -344
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +1 -1
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +31 -6
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +10 -6
- package/tencentcloud/services/ses/v20201002/ses_models.d.ts +5 -0
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +4 -0
- package/tencentcloud/services/teo/v20220901/teo_client.d.ts +2 -2
- package/tencentcloud/services/teo/v20220901/teo_client.js +1 -1
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +205 -98
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +51 -43
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +23 -23
- package/tencentcloud/services/tke/v20220501/tke_client.d.ts +5 -1
- package/tencentcloud/services/tke/v20220501/tke_client.js +6 -0
- package/tencentcloud/services/tke/v20220501/tke_models.d.ts +96 -70
- package/tencentcloud/services/tmt/v20180321/tmt_models.d.ts +4 -4
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +4 -0
- package/tencentcloud/services/vclm/v20240523/vclm_models.d.ts +1 -14
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +4 -2
|
@@ -24,113 +24,72 @@ export interface Category {
|
|
|
24
24
|
Score?: number;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* ComposeCouplet请求参数结构体
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface ComposeCoupletRequest {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* 生成对联的关键词。长度需>=2,当长度>2时,自动截取前两个字作为关键字。内容需为常用汉字(不含有数字、英文、韩语、日语、符号等等其他)。
|
|
32
32
|
*/
|
|
33
33
|
Text: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
zh:中文
|
|
37
|
-
en:英文
|
|
38
|
-
*/
|
|
39
|
-
SourceLang: string;
|
|
40
|
-
/**
|
|
41
|
-
* 返回润色结果的个数。数量需>=1且<=5。
|
|
42
|
-
(注意实际结果可能小于指定个数)
|
|
43
|
-
*/
|
|
44
|
-
Number: number;
|
|
45
|
-
/**
|
|
46
|
-
* 控制润色类型,类型如下:
|
|
47
|
-
both:同时返回改写和扩写
|
|
48
|
-
expansion:扩写
|
|
49
|
-
rewriting:改写
|
|
50
|
-
m2a:从现代文改写为古文
|
|
51
|
-
a2m:从古文改写为现代文
|
|
52
|
-
默认为both。
|
|
35
|
+
* 返回的文本结果为繁体还是简体。0:简体;1:繁体。默认为0。
|
|
53
36
|
*/
|
|
54
|
-
|
|
37
|
+
TargetType?: number;
|
|
55
38
|
}
|
|
56
39
|
/**
|
|
57
|
-
*
|
|
40
|
+
* EvaluateSentenceSimilarity请求参数结构体
|
|
58
41
|
*/
|
|
59
|
-
export interface
|
|
60
|
-
/**
|
|
61
|
-
* 词相似度分值。
|
|
62
|
-
*/
|
|
63
|
-
Similarity?: number;
|
|
42
|
+
export interface EvaluateSentenceSimilarityRequest {
|
|
64
43
|
/**
|
|
65
|
-
*
|
|
44
|
+
* 待分析的句子对数组。句子对应不超过1对,仅支持中文文本,原句子与目标句子均应不超过500字符。
|
|
66
45
|
*/
|
|
67
|
-
|
|
46
|
+
SentencePairList: Array<SentencePair>;
|
|
68
47
|
}
|
|
69
48
|
/**
|
|
70
|
-
*
|
|
49
|
+
* 待分析的句子对
|
|
71
50
|
*/
|
|
72
|
-
export interface
|
|
51
|
+
export interface SentencePair {
|
|
73
52
|
/**
|
|
74
|
-
*
|
|
53
|
+
* 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)
|
|
75
54
|
*/
|
|
76
|
-
|
|
55
|
+
SourceText: string;
|
|
77
56
|
/**
|
|
78
|
-
*
|
|
57
|
+
* 目标句子。(仅支持UTF-8格式,不超过500字符)
|
|
58
|
+
|
|
79
59
|
*/
|
|
80
|
-
|
|
60
|
+
TargetText: string;
|
|
81
61
|
}
|
|
82
62
|
/**
|
|
83
|
-
*
|
|
63
|
+
* SentenceCorrection返回参数结构体
|
|
84
64
|
*/
|
|
85
|
-
export interface
|
|
86
|
-
/**
|
|
87
|
-
* 一级分类。(请参见附录[三级分类体系表](https://cloud.tencent.com/document/product/271/94286))
|
|
88
|
-
*/
|
|
89
|
-
FirstClassification?: Category;
|
|
90
|
-
/**
|
|
91
|
-
* 二级分类。(请参见附录[三级分类体系表](https://cloud.tencent.com/document/product/271/94286))
|
|
92
|
-
*/
|
|
93
|
-
SecondClassification?: Category;
|
|
65
|
+
export interface SentenceCorrectionResponse {
|
|
94
66
|
/**
|
|
95
|
-
*
|
|
96
|
-
|
|
67
|
+
* 纠错结果列表。
|
|
68
|
+
(注意仅展示错误句子的纠错结果,若句子无错则不展示,若全部待纠错句子都被认为无错,则可能返回数组为空)
|
|
97
69
|
*/
|
|
98
|
-
|
|
70
|
+
CorrectionList?: Array<CorrectionItem>;
|
|
99
71
|
/**
|
|
100
72
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
101
73
|
*/
|
|
102
74
|
RequestId?: string;
|
|
103
75
|
}
|
|
104
76
|
/**
|
|
105
|
-
*
|
|
77
|
+
* ClassifyContent请求参数结构体
|
|
106
78
|
*/
|
|
107
|
-
export interface
|
|
108
|
-
/**
|
|
109
|
-
* 输入文本正则化的结果。(包括对英文文本中的开头和实体进行大写等)
|
|
110
|
-
*/
|
|
111
|
-
NormalText?: string;
|
|
112
|
-
/**
|
|
113
|
-
* 基础粒度分词和词性标注的结果。(请参见附录[词性表](https://cloud.tencent.com/document/product/271/36460))
|
|
114
|
-
*/
|
|
115
|
-
BasicParticiples?: Array<BasicParticiple>;
|
|
116
|
-
/**
|
|
117
|
-
* 复合粒度分词和词性标注的结果。(请参见附录[词性表](https://cloud.tencent.com/document/product/271/36460))
|
|
118
|
-
*/
|
|
119
|
-
CompoundParticiples?: Array<CompoundParticiple>;
|
|
79
|
+
export interface ClassifyContentRequest {
|
|
120
80
|
/**
|
|
121
|
-
*
|
|
122
|
-
|
|
81
|
+
* 待分类的文章的标题(仅支持UTF-8格式,不超过100字符)。
|
|
123
82
|
*/
|
|
124
|
-
|
|
83
|
+
Title: string;
|
|
125
84
|
/**
|
|
126
|
-
*
|
|
85
|
+
* 待分类文章的内容, 每个元素对应一个段落。(仅支持UTF-8格式,文章内容长度总和不超过2000字符)
|
|
127
86
|
*/
|
|
128
|
-
|
|
87
|
+
Content: Array<string>;
|
|
129
88
|
}
|
|
130
89
|
/**
|
|
131
|
-
*
|
|
90
|
+
* 实体识别结果。
|
|
132
91
|
*/
|
|
133
|
-
export interface
|
|
92
|
+
export interface Entity {
|
|
134
93
|
/**
|
|
135
94
|
* 基础词。
|
|
136
95
|
*/
|
|
@@ -144,52 +103,13 @@ export interface BasicParticiple {
|
|
|
144
103
|
*/
|
|
145
104
|
Length?: number;
|
|
146
105
|
/**
|
|
147
|
-
*
|
|
148
|
-
*/
|
|
149
|
-
Pos?: string;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* ComposePoetry返回参数结构体
|
|
153
|
-
*/
|
|
154
|
-
export interface ComposePoetryResponse {
|
|
155
|
-
/**
|
|
156
|
-
* 诗题,即输入的生成诗词的关键词。
|
|
157
|
-
*/
|
|
158
|
-
Title?: string;
|
|
159
|
-
/**
|
|
160
|
-
* 诗的内容。
|
|
161
|
-
*/
|
|
162
|
-
Content?: Array<string>;
|
|
163
|
-
/**
|
|
164
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
165
|
-
*/
|
|
166
|
-
RequestId?: string;
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* ClassifyContent请求参数结构体
|
|
170
|
-
*/
|
|
171
|
-
export interface ClassifyContentRequest {
|
|
172
|
-
/**
|
|
173
|
-
* 待分类的文章的标题(仅支持UTF-8格式,不超过100字符)。
|
|
174
|
-
*/
|
|
175
|
-
Title: string;
|
|
176
|
-
/**
|
|
177
|
-
* 待分类文章的内容, 每个元素对应一个段落。(仅支持UTF-8格式,文章内容长度总和不超过2000字符)
|
|
178
|
-
*/
|
|
179
|
-
Content: Array<string>;
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* RetrieveSimilarWords返回参数结构体
|
|
183
|
-
*/
|
|
184
|
-
export interface RetrieveSimilarWordsResponse {
|
|
185
|
-
/**
|
|
186
|
-
* 召回的相似词数组。
|
|
106
|
+
* 实体类型的标准名字。
|
|
187
107
|
*/
|
|
188
|
-
|
|
108
|
+
Type?: string;
|
|
189
109
|
/**
|
|
190
|
-
*
|
|
110
|
+
* 类型名字的自然语言表达。(中文或英文)
|
|
191
111
|
*/
|
|
192
|
-
|
|
112
|
+
Name?: string;
|
|
193
113
|
}
|
|
194
114
|
/**
|
|
195
115
|
* EvaluateSentenceSimilarity返回参数结构体
|
|
@@ -205,74 +125,44 @@ export interface EvaluateSentenceSimilarityResponse {
|
|
|
205
125
|
RequestId?: string;
|
|
206
126
|
}
|
|
207
127
|
/**
|
|
208
|
-
*
|
|
128
|
+
* ClassifyContent返回参数结构体
|
|
209
129
|
*/
|
|
210
|
-
export interface
|
|
130
|
+
export interface ClassifyContentResponse {
|
|
211
131
|
/**
|
|
212
|
-
*
|
|
213
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
132
|
+
* 一级分类。(请参见附录[三级分类体系表](https://cloud.tencent.com/document/product/271/94286))
|
|
214
133
|
*/
|
|
215
|
-
|
|
134
|
+
FirstClassification?: Category;
|
|
216
135
|
/**
|
|
217
|
-
*
|
|
218
|
-
expansion:扩写
|
|
219
|
-
rewriting:改写
|
|
220
|
-
translation_m2a:从现代文改写为古文
|
|
221
|
-
translation_a2m:从古文改写为现代文
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
136
|
+
* 二级分类。(请参见附录[三级分类体系表](https://cloud.tencent.com/document/product/271/94286))
|
|
225
137
|
*/
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* EvaluateWordSimilarity请求参数结构体
|
|
230
|
-
*/
|
|
231
|
-
export interface EvaluateWordSimilarityRequest {
|
|
138
|
+
SecondClassification?: Category;
|
|
232
139
|
/**
|
|
233
|
-
*
|
|
234
|
-
|
|
140
|
+
* 三级分类。(请参见附录[三级分类体系表](https://cloud.tencent.com/document/product/271/94286))
|
|
141
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
235
142
|
*/
|
|
236
|
-
|
|
143
|
+
ThirdClassification?: Category;
|
|
237
144
|
/**
|
|
238
|
-
*
|
|
239
|
-
|
|
145
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
240
146
|
*/
|
|
241
|
-
|
|
147
|
+
RequestId?: string;
|
|
242
148
|
}
|
|
243
149
|
/**
|
|
244
|
-
*
|
|
150
|
+
* SentenceCorrection请求参数结构体
|
|
245
151
|
*/
|
|
246
|
-
export interface
|
|
247
|
-
/**
|
|
248
|
-
* 基础词。
|
|
249
|
-
*/
|
|
250
|
-
Word?: string;
|
|
251
|
-
/**
|
|
252
|
-
* 基础词在NormalText中的起始位置。
|
|
253
|
-
*/
|
|
254
|
-
BeginOffset?: number;
|
|
255
|
-
/**
|
|
256
|
-
* 基础词的长度。
|
|
257
|
-
*/
|
|
258
|
-
Length?: number;
|
|
152
|
+
export interface SentenceCorrectionRequest {
|
|
259
153
|
/**
|
|
260
|
-
*
|
|
154
|
+
* 待纠错的句子列表。可以以数组方式在一次请求中填写多个待纠错的句子。文本统一使用utf-8格式编码,每个中文句子的长度不超过150字符,每个英文句子的长度不超过100个单词,且数组长度需小于30,即句子总数需少于30句。
|
|
261
155
|
*/
|
|
262
|
-
|
|
156
|
+
TextList: Array<string>;
|
|
263
157
|
}
|
|
264
158
|
/**
|
|
265
|
-
*
|
|
159
|
+
* AnalyzeSentiment请求参数结构体
|
|
266
160
|
*/
|
|
267
|
-
export interface
|
|
268
|
-
/**
|
|
269
|
-
* 续写结果列表。
|
|
270
|
-
*/
|
|
271
|
-
WritingList?: Array<Writing>;
|
|
161
|
+
export interface AnalyzeSentimentRequest {
|
|
272
162
|
/**
|
|
273
|
-
*
|
|
163
|
+
* 待分析的文本(仅支持UTF-8格式,不超过200字)。
|
|
274
164
|
*/
|
|
275
|
-
|
|
165
|
+
Text: string;
|
|
276
166
|
}
|
|
277
167
|
/**
|
|
278
168
|
* AnalyzeSentiment返回参数结构体
|
|
@@ -303,139 +193,35 @@ export interface AnalyzeSentimentResponse {
|
|
|
303
193
|
RequestId?: string;
|
|
304
194
|
}
|
|
305
195
|
/**
|
|
306
|
-
* ParseWords
|
|
307
|
-
*/
|
|
308
|
-
export interface ParseWordsRequest {
|
|
309
|
-
/**
|
|
310
|
-
* 待分析的文本(支持中英文文本,不超过500字符)
|
|
311
|
-
*/
|
|
312
|
-
Text: string;
|
|
313
|
-
}
|
|
314
|
-
/**
|
|
315
|
-
* 文本续写结果
|
|
316
|
-
*/
|
|
317
|
-
export interface Writing {
|
|
318
|
-
/**
|
|
319
|
-
* 续写的文本。
|
|
320
|
-
*/
|
|
321
|
-
TargetText?: string;
|
|
322
|
-
/**
|
|
323
|
-
* 续写的前缀。
|
|
324
|
-
*/
|
|
325
|
-
PrefixText?: string;
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* SentenceCorrection返回参数结构体
|
|
196
|
+
* ParseWords返回参数结构体
|
|
329
197
|
*/
|
|
330
|
-
export interface
|
|
198
|
+
export interface ParseWordsResponse {
|
|
331
199
|
/**
|
|
332
|
-
*
|
|
333
|
-
(注意仅展示错误句子的纠错结果,若句子无错则不展示,若全部待纠错句子都被认为无错,则可能返回数组为空)
|
|
200
|
+
* 输入文本正则化的结果。(包括对英文文本中的开头和实体进行大写等)
|
|
334
201
|
*/
|
|
335
|
-
|
|
202
|
+
NormalText?: string;
|
|
336
203
|
/**
|
|
337
|
-
*
|
|
204
|
+
* 基础粒度分词和词性标注的结果。(请参见附录[词性表](https://cloud.tencent.com/document/product/271/36460))
|
|
338
205
|
*/
|
|
339
|
-
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* 待分析的句子对
|
|
343
|
-
*/
|
|
344
|
-
export interface SentencePair {
|
|
206
|
+
BasicParticiples?: Array<BasicParticiple>;
|
|
345
207
|
/**
|
|
346
|
-
*
|
|
208
|
+
* 复合粒度分词和词性标注的结果。(请参见附录[词性表](https://cloud.tencent.com/document/product/271/36460))
|
|
347
209
|
*/
|
|
348
|
-
|
|
210
|
+
CompoundParticiples?: Array<CompoundParticiple>;
|
|
349
211
|
/**
|
|
350
|
-
*
|
|
212
|
+
* 实体识别结果。(请参见附录[实体类型数据](https://cloud.tencent.com/document/product/271/90592))
|
|
351
213
|
|
|
352
214
|
*/
|
|
353
|
-
|
|
354
|
-
}
|
|
355
|
-
/**
|
|
356
|
-
* 通过关键词生成的句子信息
|
|
357
|
-
*/
|
|
358
|
-
export interface KeywordSentence {
|
|
359
|
-
/**
|
|
360
|
-
* 通过关键词生成的句子。
|
|
361
|
-
*/
|
|
362
|
-
TargetText?: string;
|
|
363
|
-
}
|
|
364
|
-
/**
|
|
365
|
-
* ComposeCouplet请求参数结构体
|
|
366
|
-
*/
|
|
367
|
-
export interface ComposeCoupletRequest {
|
|
368
|
-
/**
|
|
369
|
-
* 生成对联的关键词。长度需>=2,当长度>2时,自动截取前两个字作为关键字。内容需为常用汉字(不含有数字、英文、韩语、日语、符号等等其他)。
|
|
370
|
-
*/
|
|
371
|
-
Text: string;
|
|
372
|
-
/**
|
|
373
|
-
* 返回的文本结果为繁体还是简体。0:简体;1:繁体。默认为0。
|
|
374
|
-
*/
|
|
375
|
-
TargetType?: number;
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* EvaluateSentenceSimilarity请求参数结构体
|
|
379
|
-
*/
|
|
380
|
-
export interface EvaluateSentenceSimilarityRequest {
|
|
381
|
-
/**
|
|
382
|
-
* 待分析的句子对数组。句子对应不超过1对,仅支持中文文本,原句子与目标句子均应不超过500字符。
|
|
383
|
-
*/
|
|
384
|
-
SentencePairList: Array<SentencePair>;
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
* TextWriting请求参数结构体
|
|
388
|
-
*/
|
|
389
|
-
export interface TextWritingRequest {
|
|
390
|
-
/**
|
|
391
|
-
* 待续写的句子,文本统一使用utf-8格式编码,长度不超过200字符。
|
|
392
|
-
*/
|
|
393
|
-
Text: string;
|
|
394
|
-
/**
|
|
395
|
-
* 待续写文本的语言类型,支持语言如下:
|
|
396
|
-
zh:中文
|
|
397
|
-
en:英文
|
|
398
|
-
*/
|
|
399
|
-
SourceLang: string;
|
|
400
|
-
/**
|
|
401
|
-
* 返回续写结果的个数。数量需>=1且<=5。
|
|
402
|
-
(注意实际结果可能小于指定个数)
|
|
403
|
-
*/
|
|
404
|
-
Number: number;
|
|
405
|
-
/**
|
|
406
|
-
* 指定续写领域,支持领域如下:
|
|
407
|
-
general:通用领域,支持中英文补全
|
|
408
|
-
academic:学术领域,仅支持英文补全
|
|
409
|
-
默认为general(通用领域)。
|
|
410
|
-
*/
|
|
411
|
-
Domain?: string;
|
|
412
|
-
/**
|
|
413
|
-
* 指定续写风格,支持风格如下:
|
|
414
|
-
science_fiction:科幻
|
|
415
|
-
military_history:军事
|
|
416
|
-
xuanhuan_wuxia:武侠
|
|
417
|
-
urban_officialdom:职场
|
|
418
|
-
默认为xuanhuan_wuxia(武侠)。
|
|
419
|
-
*/
|
|
420
|
-
Style?: string;
|
|
421
|
-
}
|
|
422
|
-
/**
|
|
423
|
-
* GenerateKeywordSentence返回参数结构体
|
|
424
|
-
*/
|
|
425
|
-
export interface GenerateKeywordSentenceResponse {
|
|
426
|
-
/**
|
|
427
|
-
* 生成的句子列表。
|
|
428
|
-
*/
|
|
429
|
-
KeywordSentenceList?: Array<KeywordSentence>;
|
|
215
|
+
Entities?: Array<Entity>;
|
|
430
216
|
/**
|
|
431
217
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
432
218
|
*/
|
|
433
219
|
RequestId?: string;
|
|
434
220
|
}
|
|
435
221
|
/**
|
|
436
|
-
*
|
|
222
|
+
* 基础粒度分词和词性标注的结果
|
|
437
223
|
*/
|
|
438
|
-
export interface
|
|
224
|
+
export interface BasicParticiple {
|
|
439
225
|
/**
|
|
440
226
|
* 基础词。
|
|
441
227
|
*/
|
|
@@ -449,61 +235,9 @@ export interface Entity {
|
|
|
449
235
|
*/
|
|
450
236
|
Length?: number;
|
|
451
237
|
/**
|
|
452
|
-
*
|
|
453
|
-
*/
|
|
454
|
-
Type?: string;
|
|
455
|
-
/**
|
|
456
|
-
* 类型名字的自然语言表达。(中文或英文)
|
|
457
|
-
*/
|
|
458
|
-
Name?: string;
|
|
459
|
-
}
|
|
460
|
-
/**
|
|
461
|
-
* ComposePoetry请求参数结构体
|
|
462
|
-
*/
|
|
463
|
-
export interface ComposePoetryRequest {
|
|
464
|
-
/**
|
|
465
|
-
* 生成诗词的关键词。
|
|
466
|
-
*/
|
|
467
|
-
Text: string;
|
|
468
|
-
/**
|
|
469
|
-
* 生成诗词的类型。0:藏头或藏身;1:藏头;2:藏身。默认为0。
|
|
470
|
-
*/
|
|
471
|
-
PoetryType?: number;
|
|
472
|
-
/**
|
|
473
|
-
* 诗的体裁。0:五言律诗或七言律诗;5:五言律诗;7:七言律诗。默认为0。
|
|
474
|
-
*/
|
|
475
|
-
Genre?: number;
|
|
476
|
-
}
|
|
477
|
-
/**
|
|
478
|
-
* SentenceCorrection请求参数结构体
|
|
479
|
-
*/
|
|
480
|
-
export interface SentenceCorrectionRequest {
|
|
481
|
-
/**
|
|
482
|
-
* 待纠错的句子列表。可以以数组方式在一次请求中填写多个待纠错的句子。文本统一使用utf-8格式编码,每个中文句子的长度不超过150字符,每个英文句子的长度不超过100个单词,且数组长度需小于30,即句子总数需少于30句。
|
|
483
|
-
*/
|
|
484
|
-
TextList: Array<string>;
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* TextEmbellish返回参数结构体
|
|
488
|
-
*/
|
|
489
|
-
export interface TextEmbellishResponse {
|
|
490
|
-
/**
|
|
491
|
-
* 润色结果列表。
|
|
492
|
-
*/
|
|
493
|
-
EmbellishList?: Array<Embellish>;
|
|
494
|
-
/**
|
|
495
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
496
|
-
*/
|
|
497
|
-
RequestId?: string;
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* AnalyzeSentiment请求参数结构体
|
|
501
|
-
*/
|
|
502
|
-
export interface AnalyzeSentimentRequest {
|
|
503
|
-
/**
|
|
504
|
-
* 待分析的文本(仅支持UTF-8格式,不超过200字)。
|
|
238
|
+
* 词性。
|
|
505
239
|
*/
|
|
506
|
-
|
|
240
|
+
Pos?: string;
|
|
507
241
|
}
|
|
508
242
|
/**
|
|
509
243
|
* 纠错结果列表
|
|
@@ -550,25 +284,34 @@ export interface CorrectionItem {
|
|
|
550
284
|
DescriptionEn?: string;
|
|
551
285
|
}
|
|
552
286
|
/**
|
|
553
|
-
*
|
|
287
|
+
* 复合粒度分词和词性标注的结果。
|
|
554
288
|
*/
|
|
555
|
-
export interface
|
|
289
|
+
export interface CompoundParticiple {
|
|
556
290
|
/**
|
|
557
|
-
*
|
|
291
|
+
* 基础词。
|
|
292
|
+
*/
|
|
293
|
+
Word?: string;
|
|
294
|
+
/**
|
|
295
|
+
* 基础词在NormalText中的起始位置。
|
|
558
296
|
*/
|
|
559
|
-
|
|
297
|
+
BeginOffset?: number;
|
|
560
298
|
/**
|
|
561
|
-
*
|
|
562
|
-
(注意实际结果可能小于指定个数)
|
|
299
|
+
* 基础词的长度。
|
|
563
300
|
*/
|
|
564
|
-
|
|
301
|
+
Length?: number;
|
|
565
302
|
/**
|
|
566
|
-
*
|
|
567
|
-
general:通用领域,支持中英文
|
|
568
|
-
academic:学术领域,仅支持英文
|
|
569
|
-
默认为general(通用领域)。
|
|
303
|
+
* 词性。
|
|
570
304
|
*/
|
|
571
|
-
|
|
305
|
+
Pos?: string;
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* ParseWords请求参数结构体
|
|
309
|
+
*/
|
|
310
|
+
export interface ParseWordsRequest {
|
|
311
|
+
/**
|
|
312
|
+
* 待分析的文本(支持中英文文本,不超过500字符)
|
|
313
|
+
*/
|
|
314
|
+
Text: string;
|
|
572
315
|
}
|
|
573
316
|
/**
|
|
574
317
|
* ComposeCouplet返回参数结构体
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { TableOCRRequest, RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, ExtractDocMultiRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, TollInvoiceOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, RecognizeEncryptedIDCardOCRRequest, SmartStructuralOCRRequest, ExtractDocMultiProResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, LicensePlateOCRResponse, ExtractDocBasicRequest, RecognizeThaiIDCardOCRResponse, OrgCodeCertOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, ExtractDocMultiResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnglishOCRRequest, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, RecognizeGeneralTextImageWarnResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, HandwritingEssayOCRRequest, BankSlipOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse,
|
|
3
|
+
import { TableOCRRequest, RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, ExtractDocMultiRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, TollInvoiceOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, RecognizeEncryptedIDCardOCRRequest, SmartStructuralOCRRequest, ExtractDocMultiProResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, LicensePlateOCRResponse, ExtractDocBasicRequest, RecognizeThaiIDCardOCRResponse, OrgCodeCertOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, ExtractDocMultiResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnglishOCRRequest, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, RecognizeGeneralTextImageWarnResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, HandwritingEssayOCRRequest, BankSlipOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse, RideHailingTransportLicenseOCRRequest, VatInvoiceVerifyNewResponse, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, RecognizeHealthCodeOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
|
|
4
4
|
/**
|
|
5
5
|
* ocr client
|
|
6
6
|
* @class
|
|
@@ -2838,6 +2838,10 @@ export interface BizLicenseOCRRequest {
|
|
|
2838
2838
|
* 是否返回自动拼接的有效期,默认为true
|
|
2839
2839
|
*/
|
|
2840
2840
|
EnablePeriodComplete?: boolean;
|
|
2841
|
+
/**
|
|
2842
|
+
* 是否支持营业类证件识别(包括营业执照和非营业执照的其他证件),默认为false
|
|
2843
|
+
*/
|
|
2844
|
+
EnableBusinessCertificate?: boolean;
|
|
2841
2845
|
}
|
|
2842
2846
|
/**
|
|
2843
2847
|
* MixedInvoiceDetect返回参数结构体
|
|
@@ -7108,6 +7112,19 @@ export interface VerifyOfdVatInvoiceOCRRequest {
|
|
|
7108
7112
|
*/
|
|
7109
7113
|
OfdPageNumber?: number;
|
|
7110
7114
|
}
|
|
7115
|
+
/**
|
|
7116
|
+
* GetOCRToken请求参数结构体
|
|
7117
|
+
*/
|
|
7118
|
+
export interface GetOCRTokenRequest {
|
|
7119
|
+
/**
|
|
7120
|
+
* 业务类型,如身份证识别为IDCardOCR
|
|
7121
|
+
*/
|
|
7122
|
+
Type: string;
|
|
7123
|
+
/**
|
|
7124
|
+
* 身份证配置信息
|
|
7125
|
+
*/
|
|
7126
|
+
IDCardConfig?: IDCardConfig;
|
|
7127
|
+
}
|
|
7111
7128
|
/**
|
|
7112
7129
|
* FinanBillSliceOCR请求参数结构体
|
|
7113
7130
|
*/
|
|
@@ -10489,17 +10506,21 @@ export interface RecognizeStoreNameResponse {
|
|
|
10489
10506
|
RequestId?: string;
|
|
10490
10507
|
}
|
|
10491
10508
|
/**
|
|
10492
|
-
*
|
|
10509
|
+
* 非营业执照的营业类证件识别结果,将以结构化形式呈现。
|
|
10493
10510
|
*/
|
|
10494
|
-
export interface
|
|
10511
|
+
export interface BusinessCertificateInfo {
|
|
10495
10512
|
/**
|
|
10496
|
-
*
|
|
10513
|
+
* 识别出的名称
|
|
10497
10514
|
*/
|
|
10498
|
-
|
|
10515
|
+
Name?: string;
|
|
10499
10516
|
/**
|
|
10500
|
-
*
|
|
10517
|
+
* 识别出的字段名称对应的值
|
|
10501
10518
|
*/
|
|
10502
|
-
|
|
10519
|
+
Value?: string;
|
|
10520
|
+
/**
|
|
10521
|
+
* 坐标
|
|
10522
|
+
*/
|
|
10523
|
+
Rect?: Rect;
|
|
10503
10524
|
}
|
|
10504
10525
|
/**
|
|
10505
10526
|
* RideHailingTransportLicenseOCR请求参数结构体
|
|
@@ -10840,6 +10861,10 @@ export interface BizLicenseOCRResponse {
|
|
|
10840
10861
|
* 是否是电子营业执照。false为没有,true为有。
|
|
10841
10862
|
*/
|
|
10842
10863
|
Electronic?: boolean;
|
|
10864
|
+
/**
|
|
10865
|
+
* 非营业执照的营业类证件识别结果,将以结构化形式呈现。
|
|
10866
|
+
*/
|
|
10867
|
+
BusinessCertificate?: Array<BusinessCertificateInfo>;
|
|
10843
10868
|
/**
|
|
10844
10869
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10845
10870
|
*/
|