tencentcloud-sdk-nodejs-lke 4.1.232 → 4.1.237

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-lke",
3
- "version": "4.1.232",
3
+ "version": "4.1.237",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1044,190 +1044,97 @@ export interface ClarificationConfig {
1044
1044
  */
1045
1045
  export interface SaveDocRequest {
1046
1046
  /**
1047
- * 应用ID。应用ID 获取方法参看[如何获取 BotBizId](https://cloud.tencent.com/document/product/1759/109469#4eecb8c1-6ce4-45f5-8fa2-b269449d8efa)
1048
- 导入知识库文档时,该参数填入知识库 ID。
1049
-
1047
+ * <p>应用ID。应用ID 获取方法参看<a href="https://cloud.tencent.com/document/product/1759/109469#4eecb8c1-6ce4-45f5-8fa2-b269449d8efa">如何获取 BotBizId</a><br>导入知识库文档时,该参数填入知识库 ID。</p>
1050
1048
  */
1051
1049
  BotBizId: string;
1052
1050
  /**
1053
- * 文件名,需要包含文件扩展名
1051
+ * <p>文件名,需要包含文件扩展名</p>
1054
1052
  */
1055
1053
  FileName: string;
1056
1054
  /**
1057
- * 文档支持下面类型
1058
- pdf、doc、docx、ppt、mhtml、pptx、wps、ppsx,单个文件不超过200MB;
1059
- xlsx、xls、md、txt、csv、html,单个文件不超过20MB;
1060
-
1061
- 图片支持下面类型:
1062
- jpg、png、jpeg、tiff、bmp、gif,单个文件不超过50MB
1055
+ * <p>文档支持下面类型<br>pdf、doc、docx、ppt、mhtml、pptx、wps、ppsx,单个文件不超过200MB;<br>xlsx、xls、md、txt、csv、html,单个文件不超过20MB;</p><p>图片支持下面类型:<br>jpg、png、jpeg、tiff、bmp、gif,单个文件不超过50MB</p>
1063
1056
  */
1064
1057
  FileType: string;
1065
1058
  /**
1066
- * 平台cos路径,与DescribeStorageCredential接口查询UploadPath参数保持一致
1059
+ * <p>平台cos路径,与DescribeStorageCredential接口查询UploadPath参数保持一致</p>
1067
1060
  */
1068
1061
  CosUrl: string;
1069
1062
  /**
1070
- * ETag 全称为 Entity Tag,是对象被创建时标识对象内容的信息标签,可用于检查对象的内容是否发生变化 成功上传cos后,从返回头中获取
1063
+ * <p>ETag 全称为 Entity Tag,是对象被创建时标识对象内容的信息标签,可用于检查对象的内容是否发生变化 成功上传cos后,从返回头中获取</p>
1071
1064
  */
1072
1065
  ETag: string;
1073
1066
  /**
1074
- * cos_hash x-cos-hash-crc64ecma 头部中的 CRC64编码进行校验上传到云端的文件和本地文件的一致性
1075
- 成功上传cos后,从返回头中获取
1076
-
1077
- 请注意:
1078
- cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判定为重复文档
1067
+ * <p>cos_hash x-cos-hash-crc64ecma 头部中的 CRC64编码进行校验上传到云端的文件和本地文件的一致性<br>成功上传cos后,从返回头中获取</p><p>请注意:<br>cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判定为重复文档</p>
1079
1068
  */
1080
1069
  CosHash: string;
1081
1070
  /**
1082
- * 文件大小
1071
+ * <p>文件大小</p>
1083
1072
  */
1084
1073
  Size: string;
1085
1074
  /**
1086
- * 标签适用范围,1:全部,2:按条件。默认为1
1075
+ * <p>标签适用范围,1:全部,2:按条件。默认为1。</p>
1087
1076
  */
1088
1077
  AttrRange?: number;
1089
1078
  /**
1090
- * 来源(0 从本地文档导入),默认值为0
1079
+ * <p>来源(0 从本地文档导入),默认值为0</p>
1091
1080
  */
1092
1081
  Source?: number;
1093
1082
  /**
1094
- * 自定义链接地址, IsRefer为true的时候,该值才有意义
1083
+ * <p>自定义链接地址, IsRefer为true的时候,该值才有意义</p>
1095
1084
  */
1096
1085
  WebUrl?: string;
1097
1086
  /**
1098
- * 标签引用
1087
+ * <p>标签引用</p>
1099
1088
  */
1100
1089
  AttrLabels?: Array<AttrLabelRefer>;
1101
1090
  /**
1102
- * 外部引用链接类型 0:系统链接 1:自定义链接
1103
- 值为1时,WebUrl 字段不能为空,否则不生效。
1091
+ * <p>外部引用链接类型 0:系统链接 1:自定义链接<br>值为1时,WebUrl 字段不能为空,否则不生效。</p>
1104
1092
  */
1105
1093
  ReferUrlType?: number;
1106
1094
  /**
1107
- * 有效开始时间,unix秒级时间戳,默认为0
1095
+ * <p>有效开始时间,unix秒级时间戳,默认为0</p>
1108
1096
  */
1109
1097
  ExpireStart?: string;
1110
1098
  /**
1111
- * 有效结束时间,unix秒级时间戳,默认为0代表永久有效
1099
+ * <p>有效结束时间,unix秒级时间戳,默认为0代表永久有效</p>
1112
1100
  */
1113
1101
  ExpireEnd?: string;
1114
1102
  /**
1115
- * 是否显示引用的文档来源(false不显示 true显示)默认false
1103
+ * <p>是否显示引用的文档来源(false不显示 true显示)默认false</p>
1116
1104
  */
1117
1105
  IsRefer?: boolean;
1118
1106
  /**
1119
- * 文档操作类型:1:批量导入(批量导入问答对);2:文档导入(正常导入单个文档) 默认为2 <br> 请注意,opt=1的时候请从腾讯云智能体开发平台页面下载excel模板
1107
+ * <p>文档操作类型:1:批量导入(批量导入问答对);2:文档导入(正常导入单个文档) 默认为2 <br> 请注意,opt=1的时候请从腾讯云智能体开发平台页面下载excel模板</p>
1120
1108
  */
1121
1109
  Opt?: number;
1122
1110
  /**
1123
- * 分类ID
1111
+ * <p>分类ID</p>
1124
1112
  */
1125
1113
  CateBizId?: string;
1126
1114
  /**
1127
- * 是否可下载,IsRefer为true并且ReferUrlType为0时,该值才有意义
1115
+ * <p>是否可下载,IsRefer为true并且ReferUrlType为0时,该值才有意义</p>
1128
1116
  */
1129
1117
  IsDownload?: boolean;
1130
1118
  /**
1131
- * 重复文档处理方式,按顺序匹配第一个满足条件的方式处理
1119
+ * <p>重复文档处理方式,按顺序匹配第一个满足条件的方式处理</p>
1132
1120
  */
1133
1121
  DuplicateFileHandles?: Array<DuplicateFileHandle>;
1134
1122
  /**
1135
- * 自定义切分规则
1136
-
1137
- 请求参数为一个 **JSON Object**,具体格式可参见接口示例值。包含以下主要字段:
1138
-
1139
- | 字段名 | 类型 | 说明 |
1140
- |--------------------|--------|----------------------------------------|
1141
- | `xlsx_splitter` | Object | **Excel(xlsx)文件切分策略配置**,仅当处理 Excel 文件时有效 |
1142
- | `common_splitter` | Object | **通用文件(如 txt、pdf 等)切分策略配置**,按页或按标签切分 |
1143
- | `table_style` | String | 表格内容的输出格式,如 HTML 或 Markdown |
1144
-
1145
- ---
1146
-
1147
- ## `xlsx_splitter`(Excel 切分策略)
1148
-
1149
- 用于配置 **表格文件的切分方式**。
1150
- **类型:Object**
1151
-
1152
- ```json
1153
- "xlsx_splitter": {
1154
- "header_interval": [1, 2],
1155
- "content_start": 10,
1156
- "split_row": 2
1157
- }
1158
- ```
1159
-
1160
- ### 字段说明:
1161
-
1162
- | 字段名 | 类型 | 说明 |
1163
- |-------------------|--------|----------------------------------------------------------------------|
1164
- | `header_interval` | Array\<Number\> | 表头所在的行区间,格式为 `[起始行, 结束行]`,**行号从 1 开始计数**。例如 `[1, 2]` 表示第 1~2 行为表头。 |
1165
- | `content_start` | Number | **表格内容的起始行号(从 1 开始)**。 |
1166
- | `split_row` | Number | **切分行数**。 |
1167
-
1168
- ---
1169
- ## `common_splitter`(通用文件切分策略)
1170
-
1171
- 用于配置 **非 Excel 文件(如 TXT、PDF、DOCX 等)的切分方式**,支持两种策略:**按页切分(page)** 或 **按标识符切分(tag)**。
1172
-
1173
- **类型:Object**
1174
-
1175
- ```json
1176
- "common_splitter": {
1177
- "splitter": "page",
1178
- "page_splitter": {
1179
- "chunk_length": 1000,
1180
- "chunk_overlap_length": 100
1181
- }
1182
- }
1183
- ```
1184
-
1185
- ### 字段说明:
1186
-
1187
- | 字段名 | 类型 | 说明 |
1188
- |-------------------|--------|---------------------------------------------------|
1189
- | `splitter` | String | 切分策略类型,可选值为:`"page"`(按页切分) 或 `"tag"`(按标识符切分)。 |
1190
- | `page_splitter` | Object | **按页切分的配置**。 |
1191
- | `page_splitter.chunk_length` | 1000 | **切片最大长度**。 |
1192
- | `page_splitter.chunk_overlap_length` | 100 | **切片重叠长度**。 |
1193
- | `tag_splitter` | Object | **自定义切分配置**。 |
1194
- | `tag_splitter.tag` | Array\<String\> | **切分标识符**。 |
1195
- | `tag_splitter.chunk_length`| Number | **切片最大长度**。 |
1196
- | `tag_splitter.chunk_overlap_length` | Number | **切块重叠长度**。 |
1197
-
1198
- 🔹 **补充说明:**
1199
-
1200
- - `splitter` 字段的值可以是:
1201
- - `"page"`:只使用按页切分逻辑,此时只需要关心 `page_splitter` 相关字段。
1202
- - `"tag"`:只使用按标识符(如分号、换行等)切分逻辑,此时关注 `tag_splitter`。
1203
- ---
1204
-
1205
- ## `table_style`(表格输出样式)
1206
-
1207
- 用于指定 **表格类内容(比如从 Excel 或 CSV 中提取的表格)最终以何种格式返回**,方便前端展示或后续处理。
1208
-
1209
- **类型:String**
1210
-
1211
- ```json
1212
- "table_style": "md"
1213
- ```
1214
-
1215
- ### 字段说明:
1216
-
1217
- | 字段名 | 类型 | 说明 |
1218
- |--------------|--------|----------------------------------------------------------------------|
1219
- | `table_style` | String | 指定表格内容的输出格式。可用值:<br>• `"html"`:以 HTML 表格形式返回,适合网页展示。<br>• `"md"`:以 Markdown 表格语法返回,适合文档或 Markdown 渲染环境。|
1123
+ * <p>自定义切分规则</p><p>请求参数为一个 <strong>JSON Object</strong>,具体格式可参见接口示例值。包含以下主要字段:</p><table><thead><tr><th>字段名</th><th>类型</th><th>说明</th></tr></thead><tbody><tr><td><code>xlsx_splitter</code></td><td>Object</td><td><strong>Excel(xlsx)文件切分策略配置</strong>,仅当处理 Excel 文件时有效</td></tr><tr><td><code>common_splitter</code></td><td>Object</td><td><strong>通用文件(如 txt、pdf 等)切分策略配置</strong>,按页或按标签切分</td></tr><tr><td><code>table_style</code></td><td>String</td><td>表格内容的输出格式,如 HTML 或 Markdown</td></tr></tbody></table><hr><h2 id=".3Cdx-inline-code-holder.3E.3C.2Fdx-inline-code-holder.3E.EF.BC.88Excel-.E5.88.87.E5.88.86.E7.AD.96.E7.95.A5.EF.BC.89"><code>xlsx_splitter</code>(Excel 切分策略)</h2><p>用于配置 <strong>表格文件的切分方式</strong>。<br><strong>类型:Object</strong></p><p><pre><code class="language-json"><span class="hljs-attr">&quot;xlsx_splitter&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> <span class="hljs-attr">&quot;header_interval&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><span class="hljs-number">1</span><span class="hljs-punctuation">,</span> <span class="hljs-number">2</span><span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span> <span class="hljs-attr">&quot;content_start&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-number">10</span><span class="hljs-punctuation">,</span> <span class="hljs-attr">&quot;split_row&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-number">2</span><span class="hljs-punctuation">}</span></code></pre></p><h3 id=".E5.AD.97.E6.AE.B5.E8.AF.B4.E6.98.8E.EF.BC.9A">字段说明:</h3><table><thead><tr><th>字段名</th><th>类型</th><th>说明</th></tr></thead><tbody><tr><td><code>header_interval</code></td><td>Array&lt;Number&gt;</td><td>表头所在的行区间,格式为 <code>[起始行, 结束行]</code>,<strong>行号从 1 开始计数</strong>。例如 <code>[1, 2]</code> 表示第 1~2 行为表头。</td></tr><tr><td><code>content_start</code></td><td>Number</td><td><strong>表格内容的起始行号(从 1 开始)</strong>。</td></tr><tr><td><code>split_row</code></td><td>Number</td><td><strong>切分行数</strong>。</td></tr></tbody></table><hr><h2 id=".3Cdx-inline-code-holder.3E.3C.2Fdx-inline-code-holder.3E.EF.BC.88.E9.80.9A.E7.94.A8.E6.96.87.E4.BB.B6.E5.88.87.E5.88.86.E7.AD.96.E7.95.A5.EF.BC.89"><code>common_splitter</code>(通用文件切分策略)</h2><p>用于配置 <strong>非 Excel 文件(如 TXT、PDF、DOCX 等)的切分方式</strong>,支持两种策略:<strong>按页切分(page)</strong> 或 <strong>按标识符切分(tag)</strong>。</p><p><strong>类型:Object</strong></p><p><pre><code class="language-json"><span class="hljs-attr">&quot;common_splitter&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> <span class="hljs-attr">&quot;splitter&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;page&quot;</span><span class="hljs-punctuation">,</span> <span class="hljs-attr">&quot;page_splitter&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">{</span> <span class="hljs-attr">&quot;chunk_length&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-number">1000</span><span class="hljs-punctuation">,</span> <span class="hljs-attr">&quot;chunk_overlap_length&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-number">100</span> <span class="hljs-punctuation">}</span><span class="hljs-punctuation">}</span></code></pre></p><h3 id=".E5.AD.97.E6.AE.B5.E8.AF.B4.E6.98.8E.EF.BC.9A2">字段说明:</h3><table><thead><tr><th>字段名</th><th>类型</th><th>说明</th></tr></thead><tbody><tr><td><code>splitter</code></td><td>String</td><td>切分策略类型,可选值为:<code>&quot;page&quot;</code>(按页切分) 或 <code>&quot;tag&quot;</code>(按标识符切分)。</td></tr><tr><td><code>page_splitter</code></td><td>Object</td><td><strong>按页切分的配置</strong>。</td></tr><tr><td><code>page_splitter.chunk_length</code></td><td>1000</td><td><strong>切片最大长度</strong>。</td></tr><tr><td><code>page_splitter.chunk_overlap_length</code></td><td>100</td><td><strong>切片重叠长度</strong>。</td></tr><tr><td><code>tag_splitter</code></td><td>Object</td><td><strong>自定义切分配置</strong>。</td></tr><tr><td><code>tag_splitter.tag</code></td><td>Array&lt;String&gt;</td><td><strong>切分标识符</strong>。</td></tr><tr><td><code>tag_splitter.chunk_length</code></td><td>Number</td><td><strong>切片最大长度</strong>。</td></tr><tr><td><code>tag_splitter.chunk_overlap_length</code></td><td>Number</td><td><strong>切块重叠长度</strong>。</td></tr></tbody></table><p>???? <strong>补充说明:</strong></p><ul><li><code>splitter</code> 字段的值可以是:<ul><li><code>&quot;page&quot;</code>:只使用按页切分逻辑,此时只需要关心 <code>page_splitter</code> 相关字段。</li><li><code>&quot;tag&quot;</code>:只使用按标识符(如分号、换行等)切分逻辑,此时关注 <code>tag_splitter</code>。</li></ul></li></ul><hr><h2 id=".3Cdx-inline-code-holder.3E.3C.2Fdx-inline-code-holder.3E.EF.BC.88.E8.A1.A8.E6.A0.BC.E8.BE.93.E5.87.BA.E6.A0.B7.E5.BC.8F.EF.BC.89"><code>table_style</code>(表格输出样式)</h2><p>用于指定 <strong>表格类内容(比如从 Excel 或 CSV 中提取的表格)最终以何种格式返回</strong>,方便前端展示或后续处理。</p><p><strong>类型:String</strong></p><p><pre><code class="language-json"><span class="hljs-attr">&quot;table_style&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;md&quot;</span></code></pre></p><h3 id=".E5.AD.97.E6.AE.B5.E8.AF.B4.E6.98.8E.EF.BC.9A3">字段说明:</h3><table><thead><tr><th>字段名</th><th>类型</th><th>说明</th></tr></thead><tbody><tr><td><code>table_style</code></td><td>String</td><td>指定表格内容的输出格式。可用值:<br>• <code>&quot;html&quot;</code>:以 HTML 表格形式返回,适合网页展示。<br>• <code>&quot;md&quot;</code>:以 Markdown 表格语法返回,适合文档或 Markdown 渲染环境。</td></tr></tbody></table>
1220
1124
  */
1221
1125
  SplitRule?: string;
1222
1126
  /**
1223
- * 文档更新频率,默认值为0不更新
1127
+ * <p>文档更新频率,默认值为0不更新</p>
1224
1128
  */
1225
1129
  UpdatePeriodInfo?: UpdatePeriodInfo;
1226
1130
  /**
1227
- * 文档生效域: 1-不生效;2-仅开发域生效;3-仅发布域生效;4-开发域和发布域均生效
1228
- 默认值:应用内默认知识库为2,共享知识库为4。
1131
+ * <p>文档生效域: 1-不生效;2-仅开发域生效;3-仅发布域生效;4-开发域和发布域均生效<br>默认值:应用内默认知识库为2,共享知识库为4。</p>
1229
1132
  */
1230
1133
  EnableScope?: number;
1134
+ /**
1135
+ * <p>文件url 文件的 FileUrl、CosUrl必须提供一个,如果都提供,只使用CosUrl</p>
1136
+ */
1137
+ FileUrl?: string;
1231
1138
  }
1232
1139
  /**
1233
1140
  * ListSharedKnowledge返回参数结构体
@@ -10457,23 +10364,23 @@ export interface KnowledgeDetailInfo {
10457
10364
  */
10458
10365
  export interface SaveDocResponse {
10459
10366
  /**
10460
- * 文档ID
10367
+ * <p>文档ID</p>
10461
10368
  */
10462
10369
  DocBizId?: string;
10463
10370
  /**
10464
- * 导入错误信息
10371
+ * <p>导入错误信息</p>
10465
10372
  */
10466
10373
  ErrorMsg?: string;
10467
10374
  /**
10468
- * 错误链接
10375
+ * <p>错误链接</p>
10469
10376
  */
10470
10377
  ErrorLink?: string;
10471
10378
  /**
10472
- * 错误链接文本
10379
+ * <p>错误链接文本</p>
10473
10380
  */
10474
10381
  ErrorLinkText?: string;
10475
10382
  /**
10476
- * 重复类型,0:未重复,其他取值请参考入参DuplicateFileHandle结构体的CheckType字段
10383
+ * <p>重复类型,0:未重复,其他取值请参考入参DuplicateFileHandle结构体的CheckType字段</p>
10477
10384
  */
10478
10385
  DuplicateFileCheckType?: number;
10479
10386
  /**