tencentcloud-sdk-nodejs-lke 4.0.1046 → 4.0.1049

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,7 +1,7 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-lke",
3
- "version": "4.0.1046",
4
- "description": "Tencent Cloud API NODEJS SDK",
3
+ "version": "4.0.1049",
4
+ "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
7
7
  "test": "mocha -t 10000",
@@ -22,7 +22,7 @@
22
22
  "author": "tencentcloudapi",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "tencentcloud-sdk-nodejs-common": "^4.0.488",
25
+ "tencentcloud-sdk-nodejs-common": "*",
26
26
  "tslib": "1.13.0"
27
27
  },
28
28
  "directories": {
@@ -35,14 +35,19 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/form-data": "^2.5.0",
38
+ "@types/json-bigint": "^1.0.1",
38
39
  "@types/node": "^14.0.26",
39
40
  "@types/node-fetch": "^2.5.7",
41
+ "@types/uuid": "^9.0.8",
40
42
  "@typescript-eslint/eslint-plugin": "^2.34.0",
41
43
  "@typescript-eslint/parser": "^2.34.0",
44
+ "babel-eslint": "^10.0.2",
42
45
  "chai": "^4.2.0",
43
46
  "eslint": "^6.8.0",
47
+ "eslint-plugin-react": "^7.17.0",
44
48
  "mocha": "^8.1.1",
49
+ "prettier": "^2.3.0",
45
50
  "ts-node": "^8.10.2",
46
51
  "typescript": "^3.9.7"
47
52
  }
48
- }
53
+ }
@@ -1063,8 +1063,13 @@ export class Client extends TencentCloudCommon.AbstractClient {
1063
1063
  }
1064
1064
 
1065
1065
  /**
1066
- * 保存文档
1067
- */
1066
+ * 知识库文档问答保存。
1067
+ 将文件存储到应用的知识库内需要三步:
1068
+ 1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)。
1069
+ 2.调用腾讯云提供的 cos 存储接口,将文件存储到知识引擎 cos 中:参考[PUT Objectufeff](https://cloud.tencent.com/document/product/436/7749)
1070
+ 3.调用本接口,将文件的基础信息存储到知识引擎中。
1071
+ 以上步骤可参考[文档](https://cloud.tencent.com/document/product/1759/108903),文档最后有[代码demo](https://cloud.tencent.com/document/product/1759/108903#demo),可作为参考。
1072
+ */
1068
1073
  async SaveDoc(
1069
1074
  req: SaveDocRequest,
1070
1075
  cb?: (error: string, rep: SaveDocResponse) => void
@@ -3083,11 +3083,11 @@ export interface SaveDocRequest {
3083
3083
  */
3084
3084
  CosUrl: string
3085
3085
  /**
3086
- * ETag 全称为 Entity Tag,是对象被创建时标识对象内容的信息标签,可用于检查对象的内容是否发生变化
3086
+ * ETag 全称为 Entity Tag,是对象被创建时标识对象内容的信息标签,可用于检查对象的内容是否发生变化 成功上传cos后,从返回头中获取
3087
3087
  */
3088
3088
  ETag: string
3089
3089
  /**
3090
- * cos_hash x-cos-hash-crc64ecma 头部中的 CRC64编码进行校验上传到云端的文件和本地文件的一致性
3090
+ * cos_hash x-cos-hash-crc64ecma 头部中的 CRC64编码进行校验上传到云端的文件和本地文件的一致性 <br> 成功上传cos后,从返回头中获取
3091
3091
  */
3092
3092
  CosHash: string
3093
3093
  /**
@@ -3095,9 +3095,9 @@ export interface SaveDocRequest {
3095
3095
  */
3096
3096
  Size: string
3097
3097
  /**
3098
- * 标签适用范围 1:全部,2:按条件范围
3098
+ * 标签适用范围,默认填0即可
3099
3099
  */
3100
- AttrRange: number
3100
+ AttrRange?: number
3101
3101
  /**
3102
3102
  * 来源(0 源文件导入 1 网页导入)
3103
3103
  */
@@ -3128,7 +3128,7 @@ export interface SaveDocRequest {
3128
3128
  */
3129
3129
  IsRefer?: boolean
3130
3130
  /**
3131
- * 文档操作类型:1:批量导入(批量导入问答对);2:文档导入(正常导入单个文档)
3131
+ * 文档操作类型:1:批量导入(批量导入问答对);2:文档导入(正常导入单个文档) 默认为1 <br> 请注意,opt=1的时候请从知识引擎页面下载excel模板
3132
3132
  */
3133
3133
  Opt?: number
3134
3134
  /**
@@ -308,8 +308,13 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
308
308
  */
309
309
  ModifyQA(req: ModifyQARequest, cb?: (error: string, rep: ModifyQAResponse) => void): Promise<ModifyQAResponse>;
310
310
  /**
311
- * 保存文档
312
- */
311
+ * 知识库文档问答保存。
312
+ 将文件存储到应用的知识库内需要三步:
313
+ 1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)。
314
+ 2.调用腾讯云提供的 cos 存储接口,将文件存储到知识引擎 cos 中:参考[PUT Objectufeff](https://cloud.tencent.com/document/product/436/7749)
315
+ 3.调用本接口,将文件的基础信息存储到知识引擎中。
316
+ 以上步骤可参考[文档](https://cloud.tencent.com/document/product/1759/108903),文档最后有[代码demo](https://cloud.tencent.com/document/product/1759/108903#demo),可作为参考。
317
+ */
313
318
  SaveDoc(req: SaveDocRequest, cb?: (error: string, rep: SaveDocResponse) => void): Promise<SaveDocResponse>;
314
319
  /**
315
320
  * 删除文档
@@ -477,8 +477,13 @@ class Client extends TencentCloudCommon.AbstractClient {
477
477
  return this.request("ModifyQA", req, cb);
478
478
  }
479
479
  /**
480
- * 保存文档
481
- */
480
+ * 知识库文档问答保存。
481
+ 将文件存储到应用的知识库内需要三步:
482
+ 1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)。
483
+ 2.调用腾讯云提供的 cos 存储接口,将文件存储到知识引擎 cos 中:参考[PUT Objectufeff](https://cloud.tencent.com/document/product/436/7749)
484
+ 3.调用本接口,将文件的基础信息存储到知识引擎中。
485
+ 以上步骤可参考[文档](https://cloud.tencent.com/document/product/1759/108903),文档最后有[代码demo](https://cloud.tencent.com/document/product/1759/108903#demo),可作为参考。
486
+ */
482
487
  async SaveDoc(req, cb) {
483
488
  return this.request("SaveDoc", req, cb);
484
489
  }
@@ -2957,11 +2957,11 @@ export interface SaveDocRequest {
2957
2957
  */
2958
2958
  CosUrl: string;
2959
2959
  /**
2960
- * ETag 全称为 Entity Tag,是对象被创建时标识对象内容的信息标签,可用于检查对象的内容是否发生变化
2960
+ * ETag 全称为 Entity Tag,是对象被创建时标识对象内容的信息标签,可用于检查对象的内容是否发生变化 成功上传cos后,从返回头中获取
2961
2961
  */
2962
2962
  ETag: string;
2963
2963
  /**
2964
- * cos_hash x-cos-hash-crc64ecma 头部中的 CRC64编码进行校验上传到云端的文件和本地文件的一致性
2964
+ * cos_hash x-cos-hash-crc64ecma 头部中的 CRC64编码进行校验上传到云端的文件和本地文件的一致性 <br> 成功上传cos后,从返回头中获取
2965
2965
  */
2966
2966
  CosHash: string;
2967
2967
  /**
@@ -2969,9 +2969,9 @@ export interface SaveDocRequest {
2969
2969
  */
2970
2970
  Size: string;
2971
2971
  /**
2972
- * 标签适用范围 1:全部,2:按条件范围
2972
+ * 标签适用范围,默认填0即可
2973
2973
  */
2974
- AttrRange: number;
2974
+ AttrRange?: number;
2975
2975
  /**
2976
2976
  * 来源(0 源文件导入 1 网页导入)
2977
2977
  */
@@ -3002,7 +3002,7 @@ export interface SaveDocRequest {
3002
3002
  */
3003
3003
  IsRefer?: boolean;
3004
3004
  /**
3005
- * 文档操作类型:1:批量导入(批量导入问答对);2:文档导入(正常导入单个文档)
3005
+ * 文档操作类型:1:批量导入(批量导入问答对);2:文档导入(正常导入单个文档) 默认为1 <br> 请注意,opt=1的时候请从知识引擎页面下载excel模板
3006
3006
  */
3007
3007
  Opt?: number;
3008
3008
  /**