tencentcloud-sdk-nodejs 4.1.142 → 4.1.143

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 (77) hide show
  1. package/es/common/sdk_version.js +1 -1
  2. package/es/services/bma/index.js +2 -2
  3. package/es/services/chdfs/index.js +2 -2
  4. package/es/services/dataagent/index.js +4 -0
  5. package/es/services/dataagent/v20250513/dataagent_client.js +39 -0
  6. package/es/services/dataagent/v20250513/dataagent_models.js +1 -0
  7. package/es/services/dataagent/v20250513/index.js +6 -0
  8. package/es/services/dbbrain/index.js +2 -2
  9. package/es/services/es/index.js +2 -2
  10. package/es/services/essbasic/index.js +2 -2
  11. package/es/services/facefusion/index.js +2 -2
  12. package/es/services/index.js +1 -0
  13. package/es/services/iotvideo/index.js +2 -2
  14. package/es/services/mqtt/v20240516/mqtt_client.js +3 -0
  15. package/es/services/sms/index.js +2 -2
  16. package/es/services/thpc/index.js +2 -2
  17. package/es/services/tke/index.js +2 -2
  18. package/es/services/tke/v20180525/tke_client.js +12 -0
  19. package/es/services/tsw/index.js +2 -2
  20. package/es/services/vm/index.js +2 -2
  21. package/es/services/vod/index.js +2 -2
  22. package/es/services/wedata/index.js +2 -2
  23. package/es/services/yunsou/index.js +2 -2
  24. package/package.json +1 -1
  25. package/tencentcloud/common/sdk_version.d.ts +1 -1
  26. package/tencentcloud/common/sdk_version.js +1 -1
  27. package/tencentcloud/services/bma/index.d.ts +4 -4
  28. package/tencentcloud/services/bma/index.js +2 -2
  29. package/tencentcloud/services/chdfs/index.d.ts +4 -4
  30. package/tencentcloud/services/chdfs/index.js +2 -2
  31. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +5 -1
  32. package/tencentcloud/services/dataagent/index.d.ts +6 -0
  33. package/tencentcloud/services/dataagent/index.js +7 -0
  34. package/tencentcloud/services/dataagent/v20250513/dataagent_client.d.ts +54 -0
  35. package/tencentcloud/services/dataagent/v20250513/dataagent_client.js +97 -0
  36. package/tencentcloud/services/dataagent/v20250513/dataagent_models.d.ts +328 -0
  37. package/tencentcloud/services/dataagent/v20250513/dataagent_models.js +18 -0
  38. package/tencentcloud/services/dataagent/v20250513/index.d.ts +6 -0
  39. package/tencentcloud/services/dataagent/v20250513/index.js +10 -0
  40. package/tencentcloud/services/dbbrain/index.d.ts +4 -4
  41. package/tencentcloud/services/dbbrain/index.js +2 -2
  42. package/tencentcloud/services/emr/v20190103/emr_models.d.ts +4 -0
  43. package/tencentcloud/services/es/index.d.ts +4 -4
  44. package/tencentcloud/services/es/index.js +2 -2
  45. package/tencentcloud/services/essbasic/index.d.ts +4 -4
  46. package/tencentcloud/services/essbasic/index.js +2 -2
  47. package/tencentcloud/services/facefusion/index.d.ts +4 -4
  48. package/tencentcloud/services/facefusion/index.js +2 -2
  49. package/tencentcloud/services/index.d.ts +1 -0
  50. package/tencentcloud/services/index.js +6 -4
  51. package/tencentcloud/services/iotvideo/index.d.ts +4 -4
  52. package/tencentcloud/services/iotvideo/index.js +2 -2
  53. package/tencentcloud/services/mqtt/v20240516/mqtt_client.d.ts +5 -1
  54. package/tencentcloud/services/mqtt/v20240516/mqtt_client.js +6 -0
  55. package/tencentcloud/services/mqtt/v20240516/mqtt_models.d.ts +22 -0
  56. package/tencentcloud/services/sms/index.d.ts +4 -4
  57. package/tencentcloud/services/sms/index.js +2 -2
  58. package/tencentcloud/services/thpc/index.d.ts +4 -4
  59. package/tencentcloud/services/thpc/index.js +2 -2
  60. package/tencentcloud/services/tke/index.d.ts +4 -4
  61. package/tencentcloud/services/tke/index.js +2 -2
  62. package/tencentcloud/services/tke/v20180525/tke_client.d.ts +17 -1
  63. package/tencentcloud/services/tke/v20180525/tke_client.js +24 -0
  64. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +370 -165
  65. package/tencentcloud/services/tsw/index.d.ts +4 -4
  66. package/tencentcloud/services/tsw/index.js +2 -2
  67. package/tencentcloud/services/vm/index.d.ts +4 -4
  68. package/tencentcloud/services/vm/index.js +2 -2
  69. package/tencentcloud/services/vm/v20210922/vm_client.d.ts +1 -1
  70. package/tencentcloud/services/vm/v20210922/vm_client.js +1 -1
  71. package/tencentcloud/services/vm/v20210922/vm_models.d.ts +1 -1
  72. package/tencentcloud/services/vod/index.d.ts +4 -4
  73. package/tencentcloud/services/vod/index.js +2 -2
  74. package/tencentcloud/services/wedata/index.d.ts +4 -4
  75. package/tencentcloud/services/wedata/index.js +2 -2
  76. package/tencentcloud/services/yunsou/index.d.ts +4 -4
  77. package/tencentcloud/services/yunsou/index.js +2 -2
@@ -1 +1 @@
1
- export const sdkVersion = "4.1.142";
1
+ export const sdkVersion = "4.1.143";
@@ -1,6 +1,6 @@
1
- import { v20210624 } from "./v20210624";
2
1
  import { v20221115 } from "./v20221115";
2
+ import { v20210624 } from "./v20210624";
3
3
  export const bma = {
4
- v20210624: v20210624,
5
4
  v20221115: v20221115,
5
+ v20210624: v20210624,
6
6
  };
@@ -1,6 +1,6 @@
1
- import { v20201112 } from "./v20201112";
2
1
  import { v20190718 } from "./v20190718";
2
+ import { v20201112 } from "./v20201112";
3
3
  export const chdfs = {
4
- v20201112: v20201112,
5
4
  v20190718: v20190718,
5
+ v20201112: v20201112,
6
6
  };
@@ -0,0 +1,4 @@
1
+ import { v20250513 } from "./v20250513";
2
+ export const dataagent = {
3
+ v20250513: v20250513,
4
+ };
@@ -0,0 +1,39 @@
1
+ import { AbstractClient } from "../../../common/abstract_client";
2
+ export class Client extends AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("dataagent.tencentcloudapi.com", "2025-05-13", clientConfig);
5
+ }
6
+ async ModifyChunk(req, cb) {
7
+ return this.request("ModifyChunk", req, cb);
8
+ }
9
+ async DeleteChunk(req, cb) {
10
+ return this.request("DeleteChunk", req, cb);
11
+ }
12
+ async GetKnowledgeBaseList(req, cb) {
13
+ return this.request("GetKnowledgeBaseList", req, cb);
14
+ }
15
+ async AddChunk(req, cb) {
16
+ return this.request("AddChunk", req, cb);
17
+ }
18
+ async ChatAI(req, cb) {
19
+ return this.request("ChatAI", req, cb);
20
+ }
21
+ async CreateDataAgentSession(req, cb) {
22
+ return this.request("CreateDataAgentSession", req, cb);
23
+ }
24
+ async ModifyKnowledgeBase(req, cb) {
25
+ return this.request("ModifyKnowledgeBase", req, cb);
26
+ }
27
+ async DeleteDataAgentSession(req, cb) {
28
+ return this.request("DeleteDataAgentSession", req, cb);
29
+ }
30
+ async QueryChunkList(req, cb) {
31
+ return this.request("QueryChunkList", req, cb);
32
+ }
33
+ async GetSessionDetails(req, cb) {
34
+ return this.request("GetSessionDetails", req, cb);
35
+ }
36
+ async StopChatAI(req, cb) {
37
+ return this.request("StopChatAI", req, cb);
38
+ }
39
+ }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./dataagent_models";
2
+ import { Client } from "./dataagent_client";
3
+ export const v20250513 = {
4
+ Client: Client,
5
+ Models: Models
6
+ };
@@ -1,6 +1,6 @@
1
- import { v20210527 } from "./v20210527";
2
1
  import { v20191016 } from "./v20191016";
2
+ import { v20210527 } from "./v20210527";
3
3
  export const dbbrain = {
4
- v20210527: v20210527,
5
4
  v20191016: v20191016,
5
+ v20210527: v20210527,
6
6
  };
@@ -1,6 +1,6 @@
1
- import { v20180416 } from "./v20180416";
2
1
  import { v20250101 } from "./v20250101";
2
+ import { v20180416 } from "./v20180416";
3
3
  export const es = {
4
- v20180416: v20180416,
5
4
  v20250101: v20250101,
5
+ v20180416: v20180416,
6
6
  };
@@ -1,6 +1,6 @@
1
- import { v20210526 } from "./v20210526";
2
1
  import { v20201222 } from "./v20201222";
2
+ import { v20210526 } from "./v20210526";
3
3
  export const essbasic = {
4
- v20210526: v20210526,
5
4
  v20201222: v20201222,
5
+ v20210526: v20210526,
6
6
  };
@@ -1,6 +1,6 @@
1
- import { v20220927 } from "./v20220927";
2
1
  import { v20181201 } from "./v20181201";
2
+ import { v20220927 } from "./v20220927";
3
3
  export const facefusion = {
4
- v20220927: v20220927,
5
4
  v20181201: v20181201,
5
+ v20220927: v20220927,
6
6
  };
@@ -79,6 +79,7 @@ export { cwp } from "./cwp";
79
79
  export { cws } from "./cws";
80
80
  export { cynosdb } from "./cynosdb";
81
81
  export { dasb } from "./dasb";
82
+ export { dataagent } from "./dataagent";
82
83
  export { dayu } from "./dayu";
83
84
  export { dbbrain } from "./dbbrain";
84
85
  export { dbdc } from "./dbdc";
@@ -1,8 +1,8 @@
1
- import { v20211125 } from "./v20211125";
2
1
  import { v20201215 } from "./v20201215";
3
2
  import { v20191126 } from "./v20191126";
3
+ import { v20211125 } from "./v20211125";
4
4
  export const iotvideo = {
5
- v20211125: v20211125,
6
5
  v20201215: v20201215,
7
6
  v20191126: v20191126,
7
+ v20211125: v20211125,
8
8
  };
@@ -132,6 +132,9 @@ export class Client extends AbstractClient {
132
132
  async DeleteUser(req, cb) {
133
133
  return this.request("DeleteUser", req, cb);
134
134
  }
135
+ async KickOutClient(req, cb) {
136
+ return this.request("KickOutClient", req, cb);
137
+ }
135
138
  async ModifyAuthorizationPolicy(req, cb) {
136
139
  return this.request("ModifyAuthorizationPolicy", req, cb);
137
140
  }
@@ -1,6 +1,6 @@
1
- import { v20190711 } from "./v20190711";
2
1
  import { v20210111 } from "./v20210111";
2
+ import { v20190711 } from "./v20190711";
3
3
  export const sms = {
4
- v20190711: v20190711,
5
4
  v20210111: v20210111,
5
+ v20190711: v20190711,
6
6
  };
@@ -1,8 +1,8 @@
1
+ import { v20211109 } from "./v20211109";
1
2
  import { v20220401 } from "./v20220401";
2
3
  import { v20230321 } from "./v20230321";
3
- import { v20211109 } from "./v20211109";
4
4
  export const thpc = {
5
+ v20211109: v20211109,
5
6
  v20220401: v20220401,
6
7
  v20230321: v20230321,
7
- v20211109: v20211109,
8
8
  };
@@ -1,6 +1,6 @@
1
- import { v20220501 } from "./v20220501";
2
1
  import { v20180525 } from "./v20180525";
2
+ import { v20220501 } from "./v20220501";
3
3
  export const tke = {
4
- v20220501: v20220501,
5
4
  v20180525: v20180525,
5
+ v20220501: v20220501,
6
6
  };
@@ -198,6 +198,9 @@ export class Client extends AbstractClient {
198
198
  async DeletePrometheusTemplateSync(req, cb) {
199
199
  return this.request("DeletePrometheusTemplateSync", req, cb);
200
200
  }
201
+ async ModifyClusterExtraArgs(req, cb) {
202
+ return this.request("ModifyClusterExtraArgs", req, cb);
203
+ }
201
204
  async CreateClusterInstances(req, cb) {
202
205
  return this.request("CreateClusterInstances", req, cb);
203
206
  }
@@ -360,6 +363,9 @@ export class Client extends AbstractClient {
360
363
  async CreatePrometheusTemp(req, cb) {
361
364
  return this.request("CreatePrometheusTemp", req, cb);
362
365
  }
366
+ async ModifyClusterExtraArgsTaskState(req, cb) {
367
+ return this.request("ModifyClusterExtraArgsTaskState", req, cb);
368
+ }
363
369
  async ListClusterInspectionResultsItems(req, cb) {
364
370
  return this.request("ListClusterInspectionResultsItems", req, cb);
365
371
  }
@@ -465,6 +471,9 @@ export class Client extends AbstractClient {
465
471
  async RenewReservedInstances(req, cb) {
466
472
  return this.request("RenewReservedInstances", req, cb);
467
473
  }
474
+ async DescribeTasks(req, cb) {
475
+ return this.request("DescribeTasks", req, cb);
476
+ }
468
477
  async DescribePrometheusClusterAgents(req, cb) {
469
478
  return this.request("DescribePrometheusClusterAgents", req, cb);
470
479
  }
@@ -546,6 +555,9 @@ export class Client extends AbstractClient {
546
555
  async CreatePrometheusAlertPolicy(req, cb) {
547
556
  return this.request("CreatePrometheusAlertPolicy", req, cb);
548
557
  }
558
+ async DescribeClusterAvailableExtraArgs(req, cb) {
559
+ return this.request("DescribeClusterAvailableExtraArgs", req, cb);
560
+ }
549
561
  async DeletePrometheusTemplate(req, cb) {
550
562
  return this.request("DeletePrometheusTemplate", req, cb);
551
563
  }
@@ -1,6 +1,6 @@
1
- import { v20210412 } from "./v20210412";
2
1
  import { v20200924 } from "./v20200924";
2
+ import { v20210412 } from "./v20210412";
3
3
  export const tsw = {
4
- v20210412: v20210412,
5
4
  v20200924: v20200924,
5
+ v20210412: v20210412,
6
6
  };
@@ -1,8 +1,8 @@
1
+ import { v20210922 } from "./v20210922";
1
2
  import { v20200709 } from "./v20200709";
2
3
  import { v20201229 } from "./v20201229";
3
- import { v20210922 } from "./v20210922";
4
4
  export const vm = {
5
+ v20210922: v20210922,
5
6
  v20200709: v20200709,
6
7
  v20201229: v20201229,
7
- v20210922: v20210922,
8
8
  };
@@ -1,6 +1,6 @@
1
- import { v20240718 } from "./v20240718";
2
1
  import { v20180717 } from "./v20180717";
2
+ import { v20240718 } from "./v20240718";
3
3
  export const vod = {
4
- v20240718: v20240718,
5
4
  v20180717: v20180717,
5
+ v20240718: v20240718,
6
6
  };
@@ -1,6 +1,6 @@
1
- import { v20250806 } from "./v20250806";
2
1
  import { v20210820 } from "./v20210820";
2
+ import { v20250806 } from "./v20250806";
3
3
  export const wedata = {
4
- v20250806: v20250806,
5
4
  v20210820: v20210820,
5
+ v20250806: v20250806,
6
6
  };
@@ -1,6 +1,6 @@
1
- import { v20191115 } from "./v20191115";
2
1
  import { v20180504 } from "./v20180504";
2
+ import { v20191115 } from "./v20191115";
3
3
  export const yunsou = {
4
- v20191115: v20191115,
5
4
  v20180504: v20180504,
5
+ v20191115: v20191115,
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs",
3
- "version": "4.1.142",
3
+ "version": "4.1.143",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1 +1 @@
1
- export declare const sdkVersion = "4.1.142";
1
+ export declare const sdkVersion = "4.1.143";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sdkVersion = void 0;
4
- exports.sdkVersion = "4.1.142";
4
+ exports.sdkVersion = "4.1.143";
@@ -1,10 +1,10 @@
1
1
  export declare const bma: {
2
- v20210624: {
3
- Client: typeof import("./v20210624/bma_client").Client;
4
- Models: typeof import("./v20210624/bma_models");
5
- };
6
2
  v20221115: {
7
3
  Client: typeof import("./v20221115/bma_client").Client;
8
4
  Models: typeof import("./v20221115/bma_models");
9
5
  };
6
+ v20210624: {
7
+ Client: typeof import("./v20210624/bma_client").Client;
8
+ Models: typeof import("./v20210624/bma_models");
9
+ };
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bma = void 0;
4
- const v20210624_1 = require("./v20210624");
5
4
  const v20221115_1 = require("./v20221115");
5
+ const v20210624_1 = require("./v20210624");
6
6
  exports.bma = {
7
- v20210624: v20210624_1.v20210624,
8
7
  v20221115: v20221115_1.v20221115,
8
+ v20210624: v20210624_1.v20210624,
9
9
  };
@@ -1,10 +1,10 @@
1
1
  export declare const chdfs: {
2
- v20201112: {
3
- Client: typeof import("./v20201112/chdfs_client").Client;
4
- Models: typeof import("./v20201112/chdfs_models");
5
- };
6
2
  v20190718: {
7
3
  Client: typeof import("./v20190718/chdfs_client").Client;
8
4
  Models: typeof import("./v20190718/chdfs_models");
9
5
  };
6
+ v20201112: {
7
+ Client: typeof import("./v20201112/chdfs_client").Client;
8
+ Models: typeof import("./v20201112/chdfs_models");
9
+ };
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.chdfs = void 0;
4
- const v20201112_1 = require("./v20201112");
5
4
  const v20190718_1 = require("./v20190718");
5
+ const v20201112_1 = require("./v20201112");
6
6
  exports.chdfs = {
7
- v20201112: v20201112_1.v20201112,
8
7
  v20190718: v20190718_1.v20190718,
8
+ v20201112: v20201112_1.v20201112,
9
9
  };
@@ -2122,13 +2122,17 @@ export interface Listener {
2122
2122
  */
2123
2123
  IdleConnectTimeout?: number;
2124
2124
  /**
2125
- * 调度时间。触发强制重新调度后,长连接将会在设置的调度时间内断开并完成重新分配
2125
+ * 重新调度触发持续时间,取值0~3600s。仅TCP/UDP监听器支持。触发重新调度后,长连接将会在设置的调度时间内断开并完成重新分配。
2126
2126
  */
2127
2127
  RescheduleInterval?: number;
2128
2128
  /**
2129
2129
  * 数据压缩模式
2130
2130
  */
2131
2131
  DataCompressMode?: string;
2132
+ /**
2133
+ * 重新调度启动时间,配置了重新调度启动时间后,会在启动时间到达时触发重新调度。
2134
+ */
2135
+ RescheduleStartTime?: number;
2132
2136
  }
2133
2137
  /**
2134
2138
  * 负载均衡流量数据。
@@ -0,0 +1,6 @@
1
+ export declare const dataagent: {
2
+ v20250513: {
3
+ Client: typeof import("./v20250513/dataagent_client").Client;
4
+ Models: typeof import("./v20250513/dataagent_models");
5
+ };
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataagent = void 0;
4
+ const v20250513_1 = require("./v20250513");
5
+ exports.dataagent = {
6
+ v20250513: v20250513_1.v20250513,
7
+ };
@@ -0,0 +1,54 @@
1
+ import { AbstractClient } from "../../../common/abstract_client";
2
+ import { ClientConfig } from "../../../common/interface";
3
+ import { GetKnowledgeBaseListRequest, AddChunkRequest, ModifyChunkResponse, ChatAIResponse, DeleteChunkRequest, GetSessionDetailsResponse, DeleteChunkResponse, QueryChunkListResponse, QueryChunkListRequest, StopChatAIRequest, GetSessionDetailsRequest, ModifyKnowledgeBaseRequest, ModifyChunkRequest, CreateDataAgentSessionResponse, StopChatAIResponse, DeleteDataAgentSessionResponse, ChatAIRequest, AddChunkResponse, GetKnowledgeBaseListResponse, CreateDataAgentSessionRequest, ModifyKnowledgeBaseResponse, DeleteDataAgentSessionRequest } from "./dataagent_models";
4
+ /**
5
+ * dataagent client
6
+ * @class
7
+ */
8
+ export declare class Client extends AbstractClient {
9
+ constructor(clientConfig: ClientConfig);
10
+ /**
11
+ * 编辑修改分片
12
+ */
13
+ ModifyChunk(req: ModifyChunkRequest, cb?: (error: string, rep: ModifyChunkResponse) => void): Promise<ModifyChunkResponse>;
14
+ /**
15
+ * 文档切片删除
16
+ */
17
+ DeleteChunk(req: DeleteChunkRequest, cb?: (error: string, rep: DeleteChunkResponse) => void): Promise<DeleteChunkResponse>;
18
+ /**
19
+ * 获取知识库列表
20
+ */
21
+ GetKnowledgeBaseList(req: GetKnowledgeBaseListRequest, cb?: (error: string, rep: GetKnowledgeBaseListResponse) => void): Promise<GetKnowledgeBaseListResponse>;
22
+ /**
23
+ * 文档切片新增
24
+ */
25
+ AddChunk(req: AddChunkRequest, cb?: (error: string, rep: AddChunkResponse) => void): Promise<AddChunkResponse>;
26
+ /**
27
+ * 提供DataAgent 产品服务API
28
+ */
29
+ ChatAI(req: ChatAIRequest, cb?: (error: string, rep: ChatAIResponse) => void): Promise<ChatAIResponse>;
30
+ /**
31
+ * 生成DataAgent 会话ID
32
+ */
33
+ CreateDataAgentSession(req?: CreateDataAgentSessionRequest, cb?: (error: string, rep: CreateDataAgentSessionResponse) => void): Promise<CreateDataAgentSessionResponse>;
34
+ /**
35
+ * 操作知识库
36
+ */
37
+ ModifyKnowledgeBase(req: ModifyKnowledgeBaseRequest, cb?: (error: string, rep: ModifyKnowledgeBaseResponse) => void): Promise<ModifyKnowledgeBaseResponse>;
38
+ /**
39
+ * 删除会话
40
+ */
41
+ DeleteDataAgentSession(req?: DeleteDataAgentSessionRequest, cb?: (error: string, rep: DeleteDataAgentSessionResponse) => void): Promise<DeleteDataAgentSessionResponse>;
42
+ /**
43
+ * 分配查询
44
+ */
45
+ QueryChunkList(req: QueryChunkListRequest, cb?: (error: string, rep: QueryChunkListResponse) => void): Promise<QueryChunkListResponse>;
46
+ /**
47
+ * 获取用户会话记录详情列表
48
+ */
49
+ GetSessionDetails(req?: GetSessionDetailsRequest, cb?: (error: string, rep: GetSessionDetailsResponse) => void): Promise<GetSessionDetailsResponse>;
50
+ /**
51
+ * 中断DataAgent的回答输出
52
+ */
53
+ StopChatAI(req?: StopChatAIRequest, cb?: (error: string, rep: StopChatAIResponse) => void): Promise<StopChatAIResponse>;
54
+ }
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ /* eslint-disable @typescript-eslint/no-unused-vars */
5
+ /*
6
+ * Copyright (c) 2018 Tencent. All Rights Reserved.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+ const abstract_client_1 = require("../../../common/abstract_client");
22
+ /**
23
+ * dataagent client
24
+ * @class
25
+ */
26
+ class Client extends abstract_client_1.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("dataagent.tencentcloudapi.com", "2025-05-13", clientConfig);
29
+ }
30
+ /**
31
+ * 编辑修改分片
32
+ */
33
+ async ModifyChunk(req, cb) {
34
+ return this.request("ModifyChunk", req, cb);
35
+ }
36
+ /**
37
+ * 文档切片删除
38
+ */
39
+ async DeleteChunk(req, cb) {
40
+ return this.request("DeleteChunk", req, cb);
41
+ }
42
+ /**
43
+ * 获取知识库列表
44
+ */
45
+ async GetKnowledgeBaseList(req, cb) {
46
+ return this.request("GetKnowledgeBaseList", req, cb);
47
+ }
48
+ /**
49
+ * 文档切片新增
50
+ */
51
+ async AddChunk(req, cb) {
52
+ return this.request("AddChunk", req, cb);
53
+ }
54
+ /**
55
+ * 提供DataAgent 产品服务API
56
+ */
57
+ async ChatAI(req, cb) {
58
+ return this.request("ChatAI", req, cb);
59
+ }
60
+ /**
61
+ * 生成DataAgent 会话ID
62
+ */
63
+ async CreateDataAgentSession(req, cb) {
64
+ return this.request("CreateDataAgentSession", req, cb);
65
+ }
66
+ /**
67
+ * 操作知识库
68
+ */
69
+ async ModifyKnowledgeBase(req, cb) {
70
+ return this.request("ModifyKnowledgeBase", req, cb);
71
+ }
72
+ /**
73
+ * 删除会话
74
+ */
75
+ async DeleteDataAgentSession(req, cb) {
76
+ return this.request("DeleteDataAgentSession", req, cb);
77
+ }
78
+ /**
79
+ * 分配查询
80
+ */
81
+ async QueryChunkList(req, cb) {
82
+ return this.request("QueryChunkList", req, cb);
83
+ }
84
+ /**
85
+ * 获取用户会话记录详情列表
86
+ */
87
+ async GetSessionDetails(req, cb) {
88
+ return this.request("GetSessionDetails", req, cb);
89
+ }
90
+ /**
91
+ * 中断DataAgent的回答输出
92
+ */
93
+ async StopChatAI(req, cb) {
94
+ return this.request("StopChatAI", req, cb);
95
+ }
96
+ }
97
+ exports.Client = Client;