tencentcloud-sdk-nodejs 4.1.234 → 4.1.235

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 (28) hide show
  1. package/es/common/sdk_version.js +1 -1
  2. package/es/services/lkeap/v20240522/lkeap_client.js +14 -62
  3. package/es/services/tione/v20211111/tione_client.js +5 -2
  4. package/es/services/waf/v20180125/waf_client.js +6 -0
  5. package/package.json +1 -1
  6. package/tencentcloud/common/sdk_version.d.ts +1 -1
  7. package/tencentcloud/common/sdk_version.js +1 -1
  8. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +17 -17
  9. package/tencentcloud/services/config/v20220802/config_models.d.ts +52 -52
  10. package/tencentcloud/services/csip/v20221121/csip_models.d.ts +18 -28
  11. package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +13 -14
  12. package/tencentcloud/services/ga2/v20250115/ga2_models.d.ts +19 -19
  13. package/tencentcloud/services/lkeap/v20240522/lkeap_client.d.ts +22 -87
  14. package/tencentcloud/services/lkeap/v20240522/lkeap_client.js +29 -126
  15. package/tencentcloud/services/lkeap/v20240522/lkeap_models.d.ts +125 -866
  16. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +15 -1
  17. package/tencentcloud/services/monitor/v20180724/monitor_client.js +15 -1
  18. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +7 -7
  19. package/tencentcloud/services/mps/v20190612/mps_models.d.ts +4 -0
  20. package/tencentcloud/services/rce/v20250425/rce_models.d.ts +1 -1
  21. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +79 -65
  22. package/tencentcloud/services/tdmysql/v20211122/tdmysql_models.d.ts +26 -14
  23. package/tencentcloud/services/tione/v20211111/tione_client.d.ts +7 -3
  24. package/tencentcloud/services/tione/v20211111/tione_client.js +9 -3
  25. package/tencentcloud/services/tione/v20211111/tione_models.d.ts +22 -0
  26. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +9 -1
  27. package/tencentcloud/services/waf/v20180125/waf_client.js +12 -0
  28. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +238 -40
@@ -81,44 +81,6 @@ export interface CreateSplitDocumentFlowRequest {
81
81
  */
82
82
  Config?: CreateSplitDocumentFlowConfig;
83
83
  }
84
- /**
85
- * 检索结果的元数据
86
- */
87
- export interface RetrievalRecordMetadata {
88
- /**
89
- * 结果的类型。
90
- - `DOC`:文档
91
- - `QA`:问答对
92
- */
93
- Type?: string;
94
- /**
95
- * 检索结果的来源。
96
- - `SEMANTIC`:从语义检索中得到的结果
97
- - `FULL_TEXT`:从全文检索中得到的结果
98
- */
99
- ResultSource?: string;
100
- /**
101
- * 切片在文档中的页码,仅部分文档支持
102
- */
103
- ChunkPageNumbers?: Array<number | bigint>;
104
- }
105
- /**
106
- * ListQAs请求参数结构体
107
- */
108
- export interface ListQAsRequest {
109
- /**
110
- * 知识库ID
111
- */
112
- KnowledgeBaseId: string;
113
- /**
114
- * 页码,默认1
115
- */
116
- PageNumber?: number;
117
- /**
118
- * 每页数目,最大50,默认20
119
- */
120
- PageSize?: number;
121
- }
122
84
  /**
123
85
  * ReconstructDocumentSSE返回参数结构体
124
86
  */
@@ -162,42 +124,16 @@ export interface ReconstructDocumentSSEResponse {
162
124
  RequestId?: string;
163
125
  }
164
126
  /**
165
- * 离线文档列表回包
127
+ * 思维链开关类型
166
128
  */
167
- export interface DocItem {
168
- /**
169
- * 文档id
170
- 注意:此字段可能返回 null,表示取不到有效值。
171
- */
172
- DocId?: string;
173
- /**
174
- * 状态,
175
- - Uploading 上传中
176
- - Auditing 审核中
177
- - Parsing 解析中
178
- - ParseFailed 解析失败
179
- - Indexing 创建索引中
180
- - IndexFailed 创建索引失败
181
- - Success 发布成功
182
- - Failed 失败
183
- 注意:此字段可能返回 null,表示取不到有效值。
184
- */
185
- Status?: string;
186
- /**
187
- * 文件名
188
- 注意:此字段可能返回 null,表示取不到有效值。
189
- */
190
- FileName?: string;
191
- /**
192
- * 更新时间
193
- 注意:此字段可能返回 null,表示取不到有效值。
194
- */
195
- UpdateTime?: string;
129
+ export interface Thinking {
196
130
  /**
197
- * 属性标签
198
- 注意:此字段可能返回 null,表示取不到有效值。
131
+ * 控制开启思维链,默认disabled
132
+
133
+ enabled:开启思维链
134
+ disabled:关闭思维链
199
135
  */
200
- AttributeLabels?: Array<AttributeLabelReferItem>;
136
+ Type?: string;
201
137
  }
202
138
  /**
203
139
  * GetEmbedding请求参数结构体
@@ -222,117 +158,14 @@ export interface GetEmbeddingRequest {
222
158
  Instruction?: string;
223
159
  }
224
160
  /**
225
- * ImportQAs返回参数结构体
226
- */
227
- export interface ImportQAsResponse {
228
- /**
229
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
230
- */
231
- RequestId?: string;
232
- }
233
- /**
234
- * UploadDoc返回参数结构体
235
- */
236
- export interface UploadDocResponse {
237
- /**
238
- * 文档ID
239
- */
240
- DocId?: string;
241
- /**
242
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
243
- */
244
- RequestId?: string;
245
- }
246
- /**
247
- * DescribeDoc返回参数结构体
248
- */
249
- export interface DescribeDocResponse {
250
- /**
251
- * 文档ID
252
- */
253
- DocId?: string;
254
- /**
255
- * 状态,
256
-
257
- - Uploading 上传中
258
- - Auditing 审核中
259
- - Parsing 解析中
260
- - ParseFailed 解析失败
261
- - Indexing 创建索引中
262
- - IndexFailed 创建索引失败
263
- - Success 发布成功
264
- - Failed 失败
265
- */
266
- Status?: string;
267
- /**
268
- * 文件名
269
- */
270
- FileName?: string;
271
- /**
272
- * 更新时间
273
- */
274
- UpdateTime?: string;
275
- /**
276
- * 属性标签
277
- */
278
- AttributeLabels?: Array<AttributeLabelReferItem>;
279
- /**
280
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
281
- */
282
- RequestId?: string;
283
- }
284
- /**
285
- * 属性标签引用
286
- */
287
- export interface AttributeLabelReferItem {
288
- /**
289
- * 属性id
290
- 注意:此字段可能返回 null,表示取不到有效值。
291
- */
292
- AttributeId?: string;
293
- /**
294
- * 标签id
295
- 注意:此字段可能返回 null,表示取不到有效值。
296
- */
297
- LabelIds?: Array<string>;
298
- }
299
- /**
300
- * DeleteQAs请求参数结构体
301
- */
302
- export interface DeleteQAsRequest {
303
- /**
304
- * 知识库ID
305
- */
306
- KnowledgeBaseId: string;
307
- /**
308
- * 问答对ID列表。支持批量删除,数量不超过100
309
- */
310
- QaIds: Array<string>;
311
- }
312
- /**
313
- * ModifyQA请求参数结构体
161
+ * GetReconstructDocumentResult请求参数结构体
314
162
  */
315
- export interface ModifyQARequest {
316
- /**
317
- * 知识库ID
318
- */
319
- KnowledgeBaseId: string;
320
- /**
321
- * 问答对ID
322
- */
323
- QaId: string;
324
- /**
325
- * 问题,最大1000个英文字符
326
- */
327
- Question: string;
328
- /**
329
- * 答案,最大4000个英文字符
330
- */
331
- Answer: string;
163
+ export interface GetReconstructDocumentResultRequest {
332
164
  /**
333
- * 属性标签
165
+ * 说明:解析任务ID
166
+ 备注:仅支持单个任务ID
334
167
  */
335
- AttributeLabels?: Array<AttributeLabelReferItem>;
168
+ TaskId: string;
336
169
  }
337
170
  /**
338
171
  * 消耗量
@@ -355,63 +188,6 @@ export interface Usage {
355
188
  */
356
189
  TotalTokens?: number;
357
190
  }
358
- /**
359
- * GetReconstructDocumentResult请求参数结构体
360
- */
361
- export interface GetReconstructDocumentResultRequest {
362
- /**
363
- * 说明:解析任务ID
364
- 备注:仅支持单个任务ID
365
- */
366
- TaskId: string;
367
- }
368
- /**
369
- * ListQAs返回参数结构体
370
- */
371
- export interface ListQAsResponse {
372
- /**
373
- * 问答对总数量
374
- */
375
- TotalCount?: number;
376
- /**
377
- * 问答对信息
378
- */
379
- List?: Array<QaItem>;
380
- /**
381
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
382
- */
383
- RequestId?: string;
384
- }
385
- /**
386
- * DeleteAttributeLabels返回参数结构体
387
- */
388
- export interface DeleteAttributeLabelsResponse {
389
- /**
390
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
391
- */
392
- RequestId?: string;
393
- }
394
- /**
395
- * 检索参数设置
396
- */
397
- export interface RetrievalSetting {
398
- /**
399
- * 检索的类型,不填该参数则检索全部。
400
- - `DOC`:文档
401
- - `QA`:QA
402
-
403
- 仅RetrieveKnowledge接口支持该参数
404
- */
405
- Type?: string;
406
- /**
407
- * 返回个数
408
- */
409
- TopK?: number;
410
- /**
411
- * 分数过滤
412
- */
413
- ScoreThreshold?: number;
414
- }
415
191
  /**
416
192
  * CancelTask请求参数结构体
417
193
  */
@@ -422,170 +198,62 @@ export interface CancelTaskRequest {
422
198
  TaskId: string;
423
199
  }
424
200
  /**
425
- * CreateAttributeLabel返回参数结构体
426
- */
427
- export interface CreateAttributeLabelResponse {
428
- /**
429
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
430
- */
431
- RequestId?: string;
432
- }
433
- /**
434
- * RetrieveKnowledge返回参数结构体
435
- */
436
- export interface RetrieveKnowledgeResponse {
437
- /**
438
- * 检索结果
439
- */
440
- Records?: Array<RetrievalRecord>;
441
- /**
442
- * 检索结果数量
443
- */
444
- TotalCount?: number;
445
- /**
446
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
447
- */
448
- RequestId?: string;
449
- }
450
- /**
451
- * CreateSplitDocumentFlow返回参数结构体
452
- */
453
- export interface CreateSplitDocumentFlowResponse {
454
- /**
455
- * 拆分任务唯一ID。
456
- 30天内可以通过`GetSplitDocumentResult`接口查询TaskId对应的拆分结果。
457
- */
458
- TaskId?: string;
459
- /**
460
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
461
- */
462
- RequestId?: string;
463
- }
464
- /**
465
- * 分段配置
466
- */
467
- export interface SegmentationConfig {
468
- /**
469
- * 最大分片长度
470
- */
471
- MaxChunkSize?: number;
472
- }
473
- /**
474
- * CreateQA返回参数结构体
475
- */
476
- export interface CreateQAResponse {
477
- /**
478
- * 问答对ID
479
- */
480
- QaId?: string;
481
- /**
482
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
483
- */
484
- RequestId?: string;
485
- }
486
- /**
487
- * ModifyAttributeLabel请求参数结构体
201
+ * 返回的回复, 支持多个
488
202
  */
489
- export interface ModifyAttributeLabelRequest {
490
- /**
491
- * 说明:知识库ID
492
- 备注:通过创建知识库接口(DeleteKnowledgeBase)得到知识库ID(KnowledgeBaseId)
493
- */
494
- KnowledgeBaseId: string;
495
- /**
496
- * 说明:属性ID
497
- 备注:通过CreateAttributeLabel接口创建属性时会生成AttributeId,通过ListAttributeLabels接口可查询得到AttributeId、AttributeKey、AttributeName以及LabelId、LabelName的对应关系
498
- */
499
- AttributeId: string;
203
+ export interface Choice {
500
204
  /**
501
- * 说明:属性标识,
502
- 备注:仅支持英文字符,不支持数字,支持下划线。最大支持40个英文字符,如style
205
+ * 结束标志位,可能为 stop、 content_filter。
206
+ stop 表示输出正常结束。
207
+ content_filter 只在开启流式输出审核时会出现,表示安全审核未通过。
503
208
  */
504
- AttributeKey: string;
209
+ FinishReason?: string;
505
210
  /**
506
- * 说明:属性名称
507
- 备注:支持中英文字符。最大支持80个中英文字符,如风格
211
+ * 增量返回值,流式调用时使用该字段。
508
212
  */
509
- AttributeName: string;
213
+ Delta?: Delta;
510
214
  /**
511
- * 说明:标签ID(LabelId)以及标签名(LabelName)
512
- 备注:
513
- - 不填写LabelId,默认在当前AttributeId下新增标签值(LabelName);
514
- - 若填写该AttributeId下的LabelId以及LabelName,则为修改该LabelId对应的标签值
215
+ * 返回值,非流式调用时使用该字段。
515
216
  */
516
- Labels?: Array<AttributeLabelItem>;
217
+ Message?: Message;
517
218
  /**
518
- * 说明:删除的标签id
219
+ * 索引值,流式调用时使用该字段。
519
220
  */
520
- DeleteLabelIds?: Array<string>;
221
+ Index?: number;
521
222
  }
522
223
  /**
523
- * GetReconstructDocumentResult返回参数结构体
224
+ * GetCharacterUsage请求参数结构体
524
225
  */
525
- export interface GetReconstructDocumentResultResponse {
526
- /**
527
- * 任务状态。
528
- - `Success`:执行完成
529
- - `Processing`:执行中
530
- - `Pause`: 暂停
531
- - `Failed`:执行失败
532
- - `WaitExecute`:等待执行
533
- */
534
- Status?: string;
535
- /**
536
- * 解析结果的临时下载地址。文件类型为zip压缩包,下载链接有效期30分钟
537
- */
538
- DocumentRecognizeResultUrl?: string;
539
- /**
540
- * 文档解析失败的页码
541
- */
542
- FailedPages?: Array<ReconstructDocumentFailedPage>;
543
- /**
544
- * 文档拆分任务的用量
545
- */
546
- Usage?: DocumentUsage;
547
- /**
548
- * 文档解析任务失败错误信息,当文档解析任务失败会返回具体的错误信息
549
- */
550
- Error?: ErrorInfo;
551
- /**
552
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
553
- */
554
- RequestId?: string;
555
- }
226
+ export type GetCharacterUsageRequest = null;
556
227
  /**
557
- * ListDocs请求参数结构体
228
+ * ReconstructDocumentSSE 功能配置参数
558
229
  */
559
- export interface ListDocsRequest {
560
- /**
561
- * 知识库ID
562
- */
563
- KnowledgeBaseId: string;
230
+ export interface ReconstructDocumentSSEConfig {
564
231
  /**
565
- * 页码,默认1
232
+ * Markdown文件中表格返回的形式
233
+ 0,表格以MD形式返回
234
+ 1,表格以HTML形式返回
235
+ 默认为0
566
236
  */
567
- PageNumber?: number;
237
+ TableResultType?: string;
568
238
  /**
569
- * 每页数目,最大50,默认20
239
+ * Markdown文件中图片返回的形式
240
+ 0:markdown中图片以链接形式返回
241
+ 1:markdown中图片只返回图片中提取的文本内容
242
+ 默认是0
570
243
  */
571
- PageSize?: number;
572
- }
573
- /**
574
- * ListDocs返回参数结构体
575
- */
576
- export interface ListDocsResponse {
244
+ MarkdownImageResponseType?: string;
577
245
  /**
578
- * 文档总数
246
+ * Markdown文件中是否包含页码信息
579
247
  */
580
- TotalCount?: number;
248
+ ReturnPageFormat?: boolean;
581
249
  /**
582
- * 文档信息
250
+ * 自定义输出页码样式,{{p}}为页码占位符,开启ReturnPageFormat生效。未填默认样式:<page_num>page {{p}}</page_num>
583
251
  */
584
- List?: Array<DocItem>;
252
+ PageFormat?: string;
585
253
  /**
586
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
254
+ * 是否忽略失败页,返回已成功的页数据
587
255
  */
588
- RequestId?: string;
256
+ IgnoreFailedPage?: boolean;
589
257
  }
590
258
  /**
591
259
  * 文档拆分任务的用量
@@ -625,23 +293,6 @@ export interface DocumentUsage {
625
293
  */
626
294
  FileSize?: number;
627
295
  }
628
- /**
629
- * ListAttributeLabels请求参数结构体
630
- */
631
- export interface ListAttributeLabelsRequest {
632
- /**
633
- * 知识库ID
634
- */
635
- KnowledgeBaseId: string;
636
- /**
637
- * 页码,默认1
638
- */
639
- PageNumber?: number;
640
- /**
641
- * 每页数目,最大50,默认20
642
- */
643
- PageSize?: number;
644
- }
645
296
  /**
646
297
  * 搜索结果
647
298
  */
@@ -676,68 +327,38 @@ export interface SearchResult {
676
327
  PublishedTime?: number;
677
328
  }
678
329
  /**
679
- * DeleteAttributeLabels请求参数结构体
680
- */
681
- export interface DeleteAttributeLabelsRequest {
682
- /**
683
- * 知识库ID
684
- */
685
- KnowledgeBaseId: string;
686
- /**
687
- * 属性ID
688
- */
689
- AttributeIds: Array<string>;
690
- }
691
- /**
692
- * RetrieveKnowledge请求参数结构体
330
+ * GetReconstructDocumentResult返回参数结构体
693
331
  */
694
- export interface RetrieveKnowledgeRequest {
695
- /**
696
- * 知识库ID。
697
- */
698
- KnowledgeBaseId: string;
699
- /**
700
- * 用于检索的文本。
701
- */
702
- Query: string;
703
- /**
704
- * 检索方法,默认使用`HYBRID`混合检索。
705
- - `SEMANTIC`:语义检索
706
- - `FULL_TEXT`:全文检索
707
- - `HYBRID`:混合检索
708
- */
709
- RetrievalMethod?: string;
332
+ export interface GetReconstructDocumentResultResponse {
710
333
  /**
711
- * 检索设置。
334
+ * 任务状态。
335
+ - `Success`:执行完成
336
+ - `Processing`:执行中
337
+ - `Pause`: 暂停
338
+ - `Failed`:执行失败
339
+ - `WaitExecute`:等待执行
712
340
  */
713
- RetrievalSetting?: RetrievalSetting;
341
+ Status?: string;
714
342
  /**
715
- * 标签过滤。
343
+ * 解析结果的临时下载地址。文件类型为zip压缩包,下载链接有效期30分钟
716
344
  */
717
- AttributeLabels?: Array<LabelItem>;
718
- }
719
- /**
720
- * 返回的回复, 支持多个
721
- */
722
- export interface Choice {
345
+ DocumentRecognizeResultUrl?: string;
723
346
  /**
724
- * 结束标志位,可能为 stop、 content_filter。
725
- stop 表示输出正常结束。
726
- content_filter 只在开启流式输出审核时会出现,表示安全审核未通过。
347
+ * 文档解析失败的页码
727
348
  */
728
- FinishReason?: string;
349
+ FailedPages?: Array<ReconstructDocumentFailedPage>;
729
350
  /**
730
- * 增量返回值,流式调用时使用该字段。
351
+ * 文档拆分任务的用量
731
352
  */
732
- Delta?: Delta;
353
+ Usage?: DocumentUsage;
733
354
  /**
734
- * 返回值,非流式调用时使用该字段。
355
+ * 文档解析任务失败错误信息,当文档解析任务失败会返回具体的错误信息
735
356
  */
736
- Message?: Message;
357
+ Error?: ErrorInfo;
737
358
  /**
738
- * 索引值,流式调用时使用该字段。
359
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
739
360
  */
740
- Index?: number;
361
+ RequestId?: string;
741
362
  }
742
363
  /**
743
364
  * 创建智能文档解析任务的配置信息
@@ -803,207 +424,76 @@ export interface ChatUsage {
803
424
  TotalTokens?: number;
804
425
  }
805
426
  /**
806
- * DeleteQAs返回参数结构体
807
- */
808
- export interface DeleteQAsResponse {
809
- /**
810
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
811
- */
812
- RequestId?: string;
813
- }
814
- /**
815
- * 返回的内容
816
- */
817
- export interface Delta {
818
- /**
819
- * 角色名称。
820
- */
821
- Role?: string;
822
- /**
823
- * 内容详情。
824
- */
825
- Content?: string;
826
- /**
827
- * 思维链内容。 ReasoningConent参数仅支持出参,且只有deepseek-r1模型会返回。
828
- */
829
- ReasoningContent?: string;
830
- }
831
- /**
832
- * ReconstructDocumentSSE请求参数结构体
833
- */
834
- export interface ReconstructDocumentSSERequest {
835
- /**
836
- * 支持解析的文件类型。**支持的文件类型**:WPS、PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、IM、PCX、PPM、TIFF、XBM、HEIF、JP2**支持的文件大小**:- WPS、PDF、DOC、DOCX、PPT、PPTX 支持100M- MD、TXT、XLS、XLSX、CSV 支持10M- 其他支持20M
837
- */
838
- FileType: string;
839
- /**
840
- * 文件的 URL 地址。文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
841
- 参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
842
-
843
- 默认值:无
844
- */
845
- FileUrl?: string;
846
- /**
847
- * 说明:文件的 Base64 值。
848
- 备注:支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。
849
- 支持的图片像素:单边介于20-10000px之间。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
850
-
851
- 默认值:无
852
- */
853
- FileBase64?: string;
854
- /**
855
- * 说明:文档的起始页码。
856
- 备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。
857
- 默认值:无
858
- */
859
- FileStartPageNumber?: number;
860
- /**
861
- * 说明:文档的结束页码。备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值,文档页码大于100页建议使用异步解析接入。默认值:无
862
- */
863
- FileEndPageNumber?: number;
864
- /**
865
- * 说明:文档解析配置信息
866
- 备注:可设置返回markdown结果的格式
867
- 默认值:无
868
-
869
- */
870
- Config?: ReconstructDocumentSSEConfig;
871
- }
872
- /**
873
- * ListAttributeLabels返回参数结构体
874
- */
875
- export interface ListAttributeLabelsResponse {
876
- /**
877
- * 属性总数
878
- */
879
- TotalCount?: number;
880
- /**
881
- * 属性标签列表
882
- */
883
- List?: Array<AttributeItem>;
884
- /**
885
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
886
- */
887
- RequestId?: string;
888
- }
889
- /**
890
- * 检索的结果
891
- */
892
- export interface RetrievalRecord {
893
- /**
894
- * 检索结果的元数据
895
- */
896
- Metadata?: RetrievalRecordMetadata;
897
- /**
898
- * 检索到的标题
899
- */
900
- Title?: string;
901
- /**
902
- * 检索到的内容
903
- */
904
- Content?: string;
905
- }
906
- /**
907
- * 属性标签信息
908
- */
909
- export interface AttributeLabelItem {
910
- /**
911
- * 标签id
912
- 注意:此字段可能返回 null,表示取不到有效值。
913
- */
914
- LabelId?: string;
915
- /**
916
- * 标签名称,最大80个英文字符
917
- 注意:此字段可能返回 null,表示取不到有效值。
918
- */
919
- LabelName?: string;
920
- }
921
- /**
922
- * CreateAttributeLabel请求参数结构体
923
- */
924
- export interface CreateAttributeLabelRequest {
925
- /**
926
- * 知识库ID
927
- */
928
- KnowledgeBaseId: string;
929
- /**
930
- * 属性标识,最大40个英文字符,如style
931
- */
932
- AttributeKey: string;
427
+ * CreateSplitDocumentFlow返回参数结构体
428
+ */
429
+ export interface CreateSplitDocumentFlowResponse {
933
430
  /**
934
- * 属性名称,最大80个英文字符,如风格
431
+ * 拆分任务唯一ID。
432
+ 30天内可以通过`GetSplitDocumentResult`接口查询TaskId对应的拆分结果。
935
433
  */
936
- AttributeName: string;
434
+ TaskId?: string;
937
435
  /**
938
- * 属性标签信息
436
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
939
437
  */
940
- Labels?: Array<AttributeLabelItem>;
438
+ RequestId?: string;
941
439
  }
942
440
  /**
943
- * ImportQAs请求参数结构体
441
+ * 返回的内容
944
442
  */
945
- export interface ImportQAsRequest {
946
- /**
947
- * 知识库ID
948
- */
949
- KnowledgeBaseId: string;
443
+ export interface Delta {
950
444
  /**
951
- * 文件名
445
+ * 角色名称。
952
446
  */
953
- FileName: string;
447
+ Role?: string;
954
448
  /**
955
- * 文件的 Url 地址。文件存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
956
- 导入模板:https://cdn.xiaowei.qq.com/lke/assets//static/批量导入问答模板v6.xlsx
449
+ * 内容详情。
957
450
  */
958
- FileUrl: string;
451
+ Content?: string;
959
452
  /**
960
- * 文件类型,仅支持XLSX格式,请使用模板
453
+ * 思维链内容。 ReasoningConent参数仅支持出参,且只有deepseek-r1模型会返回。
961
454
  */
962
- FileType?: string;
455
+ ReasoningContent?: string;
963
456
  }
964
457
  /**
965
- * DescribeDoc请求参数结构体
458
+ * ReconstructDocumentSSE请求参数结构体
966
459
  */
967
- export interface DescribeDocRequest {
460
+ export interface ReconstructDocumentSSERequest {
968
461
  /**
969
- * 知识库ID
462
+ * 支持解析的文件类型。**支持的文件类型**:WPS、PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、IM、PCX、PPM、TIFF、XBM、HEIF、JP2**支持的文件大小**:- WPS、PDF、DOC、DOCX、PPT、PPTX 支持100M- MD、TXT、XLS、XLSX、CSV 支持10M- 其他支持20M
970
463
  */
971
- KnowledgeBaseId: string;
464
+ FileType: string;
972
465
  /**
973
- * 文档ID
466
+ * 文件的 URL 地址。文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
467
+ 参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
468
+
469
+ 默认值:无
974
470
  */
975
- DocId: string;
976
- }
977
- /**
978
- * DeleteKnowledgeBase返回参数结构体
979
- */
980
- export interface DeleteKnowledgeBaseResponse {
471
+ FileUrl?: string;
981
472
  /**
982
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
473
+ * 说明:文件的 Base64 值。
474
+ 备注:支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。
475
+ 支持的图片像素:单边介于20-10000px之间。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
476
+
477
+ 默认值:无
983
478
  */
984
- RequestId?: string;
985
- }
986
- /**
987
- * DeleteDocs返回参数结构体
988
- */
989
- export interface DeleteDocsResponse {
479
+ FileBase64?: string;
990
480
  /**
991
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
481
+ * 说明:文档的起始页码。
482
+ 备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。
483
+ 默认值:无
992
484
  */
993
- RequestId?: string;
994
- }
995
- /**
996
- * 属性标签
997
- */
998
- export interface LabelItem {
485
+ FileStartPageNumber?: number;
999
486
  /**
1000
- * 属性key
487
+ * 说明:文档的结束页码。备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值,文档页码大于100页建议使用异步解析接入。默认值:无
1001
488
  */
1002
- Name?: string;
489
+ FileEndPageNumber?: number;
1003
490
  /**
1004
- * 标签值
491
+ * 说明:文档解析配置信息
492
+ 备注:可设置返回markdown结果的格式
493
+ 默认值:无
494
+
1005
495
  */
1006
- Values?: Array<string>;
496
+ Config?: ReconstructDocumentSSEConfig;
1007
497
  }
1008
498
  /**
1009
499
  * CreateReconstructDocumentFlow请求参数结构体
@@ -1046,46 +536,6 @@ export interface CreateReconstructDocumentFlowRequest {
1046
536
  */
1047
537
  Config?: CreateReconstructDocumentFlowConfig;
1048
538
  }
1049
- /**
1050
- * GetSplitDocumentResult请求参数结构体
1051
- */
1052
- export interface GetSplitDocumentResultRequest {
1053
- /**
1054
- * 拆分任务ID
1055
- */
1056
- TaskId: string;
1057
- }
1058
- /**
1059
- * ReconstructDocumentSSE 功能配置参数
1060
- */
1061
- export interface ReconstructDocumentSSEConfig {
1062
- /**
1063
- * Markdown文件中表格返回的形式
1064
- 0,表格以MD形式返回
1065
- 1,表格以HTML形式返回
1066
- 默认为0
1067
- */
1068
- TableResultType?: string;
1069
- /**
1070
- * Markdown文件中图片返回的形式
1071
- 0:markdown中图片以链接形式返回
1072
- 1:markdown中图片只返回图片中提取的文本内容
1073
- 默认是0
1074
- */
1075
- MarkdownImageResponseType?: string;
1076
- /**
1077
- * Markdown文件中是否包含页码信息
1078
- */
1079
- ReturnPageFormat?: boolean;
1080
- /**
1081
- * 自定义输出页码样式,{{p}}为页码占位符,开启ReturnPageFormat生效。未填默认样式:<page_num>page {{p}}</page_num>
1082
- */
1083
- PageFormat?: string;
1084
- /**
1085
- * 是否忽略失败页,返回已成功的页数据
1086
- */
1087
- IgnoreFailedPage?: boolean;
1088
- }
1089
539
  /**
1090
540
  * GetSplitDocumentResult返回参数结构体
1091
541
  */
@@ -1132,15 +582,6 @@ export interface GetSplitDocumentResultResponse {
1132
582
  */
1133
583
  RequestId?: string;
1134
584
  }
1135
- /**
1136
- * ModifyQA返回参数结构体
1137
- */
1138
- export interface ModifyQAResponse {
1139
- /**
1140
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1141
- */
1142
- RequestId?: string;
1143
- }
1144
585
  /**
1145
586
  * 文档解析失败记录
1146
587
  */
@@ -1161,90 +602,6 @@ export interface SplitDocumentFailedPage {
1161
602
  */
1162
603
  PageNumber?: number;
1163
604
  }
1164
- /**
1165
- * ModifyAttributeLabel返回参数结构体
1166
- */
1167
- export interface ModifyAttributeLabelResponse {
1168
- /**
1169
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1170
- */
1171
- RequestId?: string;
1172
- }
1173
- /**
1174
- * 思维链开关类型
1175
- */
1176
- export interface Thinking {
1177
- /**
1178
- * 控制开启思维链,默认disabled
1179
-
1180
- enabled:开启思维链
1181
- disabled:关闭思维链
1182
- */
1183
- Type?: string;
1184
- }
1185
- /**
1186
- * QueryRewrite返回参数结构体
1187
- */
1188
- export interface QueryRewriteResponse {
1189
- /**
1190
- * 改写结果
1191
- */
1192
- Content?: string;
1193
- /**
1194
- * 消耗量,返回输入token数,输出token数以及总token数
1195
- */
1196
- Usage?: Usage;
1197
- /**
1198
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1199
- */
1200
- RequestId?: string;
1201
- }
1202
- /**
1203
- * UploadDoc请求参数结构体
1204
- */
1205
- export interface UploadDocRequest {
1206
- /**
1207
- * 知识库ID
1208
- */
1209
- KnowledgeBaseId: string;
1210
- /**
1211
- * 文件名。
1212
- **需带文件类型后缀**
1213
- */
1214
- FileName: string;
1215
- /**
1216
- * 文件类型。
1217
-
1218
- **支持的文件类型:**
1219
- - `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`
1220
-
1221
- **支持的文件大小:**
1222
- - `PDF`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
1223
- - `TXT`、`MD` 最大10M
1224
- - 其他 最大20M
1225
-
1226
- */
1227
- FileType: string;
1228
- /**
1229
- * 文件的 URL 地址。
1230
- 文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
1231
- 参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
1232
- */
1233
- FileUrl: string;
1234
- /**
1235
- * 属性标签引用
1236
- * @deprecated
1237
- */
1238
- AttributeLabel?: Array<AttributeLabelReferItem>;
1239
- /**
1240
- * 属性标签引用
1241
- */
1242
- AttributeLabels?: Array<AttributeLabelReferItem>;
1243
- /**
1244
- * 分段信息
1245
- */
1246
- Config?: SegmentationConfig;
1247
- }
1248
605
  /**
1249
606
  * CancelTask返回参数结构体
1250
607
  */
@@ -1254,19 +611,6 @@ export interface CancelTaskResponse {
1254
611
  */
1255
612
  RequestId?: string;
1256
613
  }
1257
- /**
1258
- * CreateKnowledgeBase返回参数结构体
1259
- */
1260
- export interface CreateKnowledgeBaseResponse {
1261
- /**
1262
- * 知识库ID
1263
- */
1264
- KnowledgeBaseId?: string;
1265
- /**
1266
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1267
- */
1268
- RequestId?: string;
1269
- }
1270
614
  /**
1271
615
  * GetEmbedding返回参数结构体
1272
616
  */
@@ -1300,41 +644,6 @@ export interface QueryRewriteRequest {
1300
644
  */
1301
645
  Model?: string;
1302
646
  }
1303
- /**
1304
- * 问答对信息
1305
- */
1306
- export interface QaItem {
1307
- /**
1308
- * 问答id
1309
- 注意:此字段可能返回 null,表示取不到有效值。
1310
- */
1311
- QaId?: string;
1312
- /**
1313
- * 问题
1314
- 注意:此字段可能返回 null,表示取不到有效值。
1315
- */
1316
- Question?: string;
1317
- /**
1318
- * 答案
1319
- 注意:此字段可能返回 null,表示取不到有效值。
1320
- */
1321
- Answer?: string;
1322
- /**
1323
- * 属性标签
1324
- 注意:此字段可能返回 null,表示取不到有效值。
1325
- */
1326
- AttributeLabels?: Array<AttributeLabelReferItem>;
1327
- /**
1328
- * 创建时间
1329
- 注意:此字段可能返回 null,表示取不到有效值。
1330
- */
1331
- CreateTime?: string;
1332
- /**
1333
- * 更新时间
1334
- 注意:此字段可能返回 null,表示取不到有效值。
1335
- */
1336
- UpdateTime?: string;
1337
- }
1338
647
  /**
1339
648
  * 创建智能文档拆分任务的配置信息
1340
649
  */
@@ -1409,80 +718,30 @@ export interface CreateReconstructDocumentFlowResponse {
1409
718
  RequestId?: string;
1410
719
  }
1411
720
  /**
1412
- * DeleteKnowledgeBase请求参数结构体
1413
- */
1414
- export interface DeleteKnowledgeBaseRequest {
1415
- /**
1416
- * 知识库ID
1417
- */
1418
- KnowledgeBaseId: string;
1419
- }
1420
- /**
1421
- * CreateQA请求参数结构体
1422
- */
1423
- export interface CreateQARequest {
1424
- /**
1425
- * 知识库ID
1426
- */
1427
- KnowledgeBaseId: string;
1428
- /**
1429
- * 问题,最大1000个英文字符
1430
- */
1431
- Question: string;
1432
- /**
1433
- * 答案,最大4000个英文字符
1434
- */
1435
- Answer: string;
1436
- /**
1437
- * 属性标签
1438
- */
1439
- AttributeLabels?: Array<AttributeLabelReferItem>;
1440
- }
1441
- /**
1442
- * GetCharacterUsage请求参数结构体
1443
- */
1444
- export type GetCharacterUsageRequest = null;
1445
- /**
1446
- * GetCharacterUsage返回参数结构体
721
+ * QueryRewrite返回参数结构体
1447
722
  */
1448
- export interface GetCharacterUsageResponse {
723
+ export interface QueryRewriteResponse {
1449
724
  /**
1450
- * 已用字符数
725
+ * 改写结果
1451
726
  */
1452
- Used?: number;
727
+ Content?: string;
1453
728
  /**
1454
- * 可用字符数
729
+ * 消耗量,返回输入token数,输出token数以及总token数
1455
730
  */
1456
- Total?: number;
731
+ Usage?: Usage;
1457
732
  /**
1458
733
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1459
734
  */
1460
735
  RequestId?: string;
1461
736
  }
1462
737
  /**
1463
- * 属性信息
738
+ * GetSplitDocumentResult请求参数结构体
1464
739
  */
1465
- export interface AttributeItem {
1466
- /**
1467
- * 属性id
1468
- 注意:此字段可能返回 null,表示取不到有效值。
1469
- */
1470
- AttributeId?: string;
1471
- /**
1472
- * 属性标识
1473
- 注意:此字段可能返回 null,表示取不到有效值。
1474
- */
1475
- AttributeKey?: string;
1476
- /**
1477
- * 属性名称
1478
- 注意:此字段可能返回 null,表示取不到有效值。
1479
- */
1480
- AttributeName?: string;
740
+ export interface GetSplitDocumentResultRequest {
1481
741
  /**
1482
- * 标签名称
1483
- 注意:此字段可能返回 null,表示取不到有效值。
742
+ * 拆分任务ID
1484
743
  */
1485
- Labels?: Array<AttributeLabelItem>;
744
+ TaskId: string;
1486
745
  }
1487
746
  /**
1488
747
  * 向量
@@ -1528,10 +787,6 @@ export interface ErrorInfo {
1528
787
  */
1529
788
  Message?: string;
1530
789
  }
1531
- /**
1532
- * CreateKnowledgeBase请求参数结构体
1533
- */
1534
- export type CreateKnowledgeBaseRequest = null;
1535
790
  /**
1536
791
  * ChatCompletions返回参数结构体
1537
792
  */
@@ -1563,15 +818,19 @@ export interface ChatCompletionsResponse {
1563
818
  RequestId?: string;
1564
819
  }
1565
820
  /**
1566
- * DeleteDocs请求参数结构体
821
+ * GetCharacterUsage返回参数结构体
1567
822
  */
1568
- export interface DeleteDocsRequest {
823
+ export interface GetCharacterUsageResponse {
1569
824
  /**
1570
- * 知识库ID
825
+ * 已用字符数
826
+ */
827
+ Used?: number;
828
+ /**
829
+ * 可用字符数
1571
830
  */
1572
- KnowledgeBaseId: string;
831
+ Total?: number;
1573
832
  /**
1574
- * 文档ID列表。支持批量删除,数量不超过100
833
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1575
834
  */
1576
- DocIds: Array<string>;
835
+ RequestId?: string;
1577
836
  }