ksyun-sdk-node 1.5.35 → 1.5.37

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.
@@ -676,6 +676,31 @@ module.exports = class Client extends BaseClient {
676
676
  KeyId: "Filter"
677
677
  }
678
678
  },
679
+ QueryTokenData: {
680
+ url: "/",
681
+ method: "GET",
682
+ config: {
683
+ query: {
684
+ Version: "2024-06-12",
685
+ Action: "QueryTokenData"
686
+ },
687
+ headers: {
688
+ "Content-Type": "application/x-www-form-urlencoded"
689
+ }
690
+ },
691
+ paramsType: {
692
+ StartTimestamp: "Long",
693
+ EndTimestamp: "Long",
694
+ LastKey: "String",
695
+ MaxResults: "Int",
696
+ ModelKeyword: "String",
697
+ Keyword: "String",
698
+ GroupBy: "String",
699
+ ReasoningType: "String",
700
+ Marker: "Int",
701
+ ModelName: "String"
702
+ }
703
+ },
679
704
  DisableApikeyStatus: {
680
705
  url: "/",
681
706
  method: "POST",
@@ -300,6 +300,52 @@ module.exports = class Client extends BaseClient {
300
300
  IndexingTechnique: "String",
301
301
  RetrievalModel: "Object"
302
302
  }
303
+ },
304
+ CreateMemorySdk: {
305
+ url: "/",
306
+ method: "POST",
307
+ config: {
308
+ query: {
309
+ Version: "2025-11-14",
310
+ Action: "CreateMemorySdk"
311
+ },
312
+ headers: {
313
+ "Content-Type": "application/json"
314
+ }
315
+ },
316
+ paramsType: {
317
+ Namespace: "String",
318
+ UserId: "String",
319
+ AgentId: "String",
320
+ SessionId: "String",
321
+ SceneId: "String",
322
+ DataType: "String",
323
+ Data: "Object"
324
+ }
325
+ },
326
+ QueryMemorySdk: {
327
+ url: "/",
328
+ method: "POST",
329
+ config: {
330
+ query: {
331
+ Version: "2025-11-14",
332
+ Action: "QueryMemorySdk"
333
+ },
334
+ headers: {
335
+ "Content-Type": "application/json"
336
+ }
337
+ },
338
+ paramsType: {
339
+ Namespace: "String",
340
+ UserId: "String",
341
+ Query: "String",
342
+ SceneId: "String",
343
+ OccurredAfter: "Long",
344
+ OccurredBefore: "Long",
345
+ Mode: "String",
346
+ ReturnCitations: "Boolean",
347
+ Limit: "Int"
348
+ }
303
349
  }
304
350
  });
305
351
  }
@@ -138,7 +138,6 @@ module.exports = class Client extends BaseClient {
138
138
  },
139
139
  paramsType: {
140
140
  ClusterId: "String",
141
- NodeIds: "Array",
142
141
  InstanceDelete: "Boolean",
143
142
  KceNodeIds: "String",
144
143
  InstanceIds: "Array"
@@ -200,64 +199,6 @@ module.exports = class Client extends BaseClient {
200
199
  MaxResults: "Int"
201
200
  }
202
201
  },
203
- DescribeNetwork: {
204
- url: "/",
205
- method: "POST",
206
- config: {
207
- query: {
208
- Version: "2023-01-01",
209
- Action: "DescribeNetwork"
210
- },
211
- headers: {
212
- "Content-Type": "application/x-www-form-urlencoded"
213
- }
214
- },
215
- paramsType: {
216
- ClusterId: "String",
217
- ClusterName: "String"
218
- }
219
- },
220
- DescribeComponentParams: {
221
- url: "/",
222
- method: "POST",
223
- config: {
224
- query: {
225
- Version: "2023-01-01",
226
- Action: "DescribeComponentParams"
227
- },
228
- headers: {
229
- "Content-Type": "application/x-www-form-urlencoded"
230
- }
231
- },
232
- paramsType: {
233
- ClusterId: "String",
234
- Components: "Array",
235
- Marker: "Int",
236
- MaxResults: "Int"
237
- }
238
- },
239
- DescribeEventLogs: {
240
- url: "/",
241
- method: "POST",
242
- config: {
243
- query: {
244
- Version: "2023-01-01",
245
- Action: "DescribeEventLogs"
246
- },
247
- headers: {
248
- "Content-Type": "application/x-www-form-urlencoded"
249
- }
250
- },
251
- paramsType: {
252
- ClusterId: "String",
253
- ClusterName: "String",
254
- NodeId: "String",
255
- NodeName: "String",
256
- Inner: "Boolean",
257
- Marker: "Int",
258
- MaxResults: "Int"
259
- }
260
- },
261
202
  DescribeClusterVersionList: {
262
203
  url: "/",
263
204
  method: "POST",
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
+ const BaseClient = require("../../../base/BaseClient.js");
7
+ module.exports = class Client extends BaseClient {
8
+ constructor(...args) {
9
+ super(...args);
10
+ _defineProperty(this, "_baseConfig", {
11
+ protocol: "http://",
12
+ endpoint: "kmaf.api.ksyun.com",
13
+ config: {
14
+ timeout: 60,
15
+ //设置timeout
16
+ headers: {
17
+ Accept: "application/json"
18
+ },
19
+ credentials: {
20
+ region: "cn-shanghai-3",
21
+ service: "kmaf"
22
+ }
23
+ }
24
+ });
25
+ _defineProperty(this, "_apiList", {
26
+ QueryAnswer: {
27
+ url: "/",
28
+ method: "POST",
29
+ config: {
30
+ query: {
31
+ Version: "2026-01-30",
32
+ Action: "QueryAnswer"
33
+ },
34
+ headers: {
35
+ "Content-Type": "application/json"
36
+ }
37
+ },
38
+ paramsType: {
39
+ AppId: "String",
40
+ MsgId: "String",
41
+ UseStream: "Int"
42
+ }
43
+ },
44
+ CheckModerate: {
45
+ url: "/",
46
+ method: "POST",
47
+ config: {
48
+ query: {
49
+ Version: "2026-01-30",
50
+ Action: "CheckModerate"
51
+ },
52
+ headers: {
53
+ "Content-Type": "application/json"
54
+ }
55
+ },
56
+ paramsType: {
57
+ AppId: "String",
58
+ MsgId: "String",
59
+ UseStream: "Int",
60
+ Message: "Object",
61
+ History: "Array"
62
+ }
63
+ }
64
+ });
65
+ }
66
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ksyun-sdk-node",
3
- "version": "1.5.35",
3
+ "version": "1.5.37",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -669,6 +669,31 @@ module.exports = class Client extends BaseClient {
669
669
  KeyId: "Filter",
670
670
  },
671
671
  },
672
+ QueryTokenData: {
673
+ url: "/",
674
+ method: "GET",
675
+ config: {
676
+ query: {
677
+ Version: "2024-06-12",
678
+ Action: "QueryTokenData",
679
+ },
680
+ headers: {
681
+ "Content-Type": "application/x-www-form-urlencoded",
682
+ },
683
+ },
684
+ paramsType: {
685
+ StartTimestamp: "Long",
686
+ EndTimestamp: "Long",
687
+ LastKey: "String",
688
+ MaxResults: "Int",
689
+ ModelKeyword: "String",
690
+ Keyword: "String",
691
+ GroupBy: "String",
692
+ ReasoningType: "String",
693
+ Marker: "Int",
694
+ ModelName: "String",
695
+ },
696
+ },
672
697
  DisableApikeyStatus: {
673
698
  url: "/",
674
699
  method: "POST",
@@ -294,5 +294,51 @@ module.exports = class Client extends BaseClient {
294
294
  RetrievalModel: "Object",
295
295
  },
296
296
  },
297
+ CreateMemorySdk: {
298
+ url: "/",
299
+ method: "POST",
300
+ config: {
301
+ query: {
302
+ Version: "2025-11-14",
303
+ Action: "CreateMemorySdk",
304
+ },
305
+ headers: {
306
+ "Content-Type": "application/json",
307
+ },
308
+ },
309
+ paramsType: {
310
+ Namespace: "String",
311
+ UserId: "String",
312
+ AgentId: "String",
313
+ SessionId: "String",
314
+ SceneId: "String",
315
+ DataType: "String",
316
+ Data: "Object",
317
+ },
318
+ },
319
+ QueryMemorySdk: {
320
+ url: "/",
321
+ method: "POST",
322
+ config: {
323
+ query: {
324
+ Version: "2025-11-14",
325
+ Action: "QueryMemorySdk",
326
+ },
327
+ headers: {
328
+ "Content-Type": "application/json",
329
+ },
330
+ },
331
+ paramsType: {
332
+ Namespace: "String",
333
+ UserId: "String",
334
+ Query: "String",
335
+ SceneId: "String",
336
+ OccurredAfter: "Long",
337
+ OccurredBefore: "Long",
338
+ Mode: "String",
339
+ ReturnCitations: "Boolean",
340
+ Limit: "Int",
341
+ },
342
+ },
297
343
  };
298
344
  };
@@ -131,7 +131,6 @@ module.exports = class Client extends BaseClient {
131
131
  },
132
132
  paramsType: {
133
133
  ClusterId: "String",
134
- NodeIds: "Array",
135
134
  InstanceDelete: "Boolean",
136
135
  KceNodeIds: "String",
137
136
  InstanceIds: "Array",
@@ -193,64 +192,6 @@ module.exports = class Client extends BaseClient {
193
192
  MaxResults: "Int",
194
193
  },
195
194
  },
196
- DescribeNetwork: {
197
- url: "/",
198
- method: "POST",
199
- config: {
200
- query: {
201
- Version: "2023-01-01",
202
- Action: "DescribeNetwork",
203
- },
204
- headers: {
205
- "Content-Type": "application/x-www-form-urlencoded",
206
- },
207
- },
208
- paramsType: {
209
- ClusterId: "String",
210
- ClusterName: "String",
211
- },
212
- },
213
- DescribeComponentParams: {
214
- url: "/",
215
- method: "POST",
216
- config: {
217
- query: {
218
- Version: "2023-01-01",
219
- Action: "DescribeComponentParams",
220
- },
221
- headers: {
222
- "Content-Type": "application/x-www-form-urlencoded",
223
- },
224
- },
225
- paramsType: {
226
- ClusterId: "String",
227
- Components: "Array",
228
- Marker: "Int",
229
- MaxResults: "Int",
230
- },
231
- },
232
- DescribeEventLogs: {
233
- url: "/",
234
- method: "POST",
235
- config: {
236
- query: {
237
- Version: "2023-01-01",
238
- Action: "DescribeEventLogs",
239
- },
240
- headers: {
241
- "Content-Type": "application/x-www-form-urlencoded",
242
- },
243
- },
244
- paramsType: {
245
- ClusterId: "String",
246
- ClusterName: "String",
247
- NodeId: "String",
248
- NodeName: "String",
249
- Inner: "Boolean",
250
- Marker: "Int",
251
- MaxResults: "Int",
252
- },
253
- },
254
195
  DescribeClusterVersionList: {
255
196
  url: "/",
256
197
  method: "POST",
@@ -0,0 +1,58 @@
1
+ const BaseClient = require("../../../base/BaseClient.js");
2
+
3
+ module.exports = class Client extends BaseClient {
4
+ _baseConfig = {
5
+ protocol: "http://",
6
+ endpoint: "kmaf.api.ksyun.com",
7
+ config: {
8
+ timeout: 60, //设置timeout
9
+ headers: {
10
+ Accept: "application/json",
11
+ },
12
+ credentials: {
13
+ region: "cn-shanghai-3",
14
+ service: "kmaf",
15
+ },
16
+ },
17
+ };
18
+ _apiList = {
19
+ QueryAnswer: {
20
+ url: "/",
21
+ method: "POST",
22
+ config: {
23
+ query: {
24
+ Version: "2026-01-30",
25
+ Action: "QueryAnswer",
26
+ },
27
+ headers: {
28
+ "Content-Type": "application/json",
29
+ },
30
+ },
31
+ paramsType: {
32
+ AppId: "String",
33
+ MsgId: "String",
34
+ UseStream: "Int",
35
+ },
36
+ },
37
+ CheckModerate: {
38
+ url: "/",
39
+ method: "POST",
40
+ config: {
41
+ query: {
42
+ Version: "2026-01-30",
43
+ Action: "CheckModerate",
44
+ },
45
+ headers: {
46
+ "Content-Type": "application/json",
47
+ },
48
+ },
49
+ paramsType: {
50
+ AppId: "String",
51
+ MsgId: "String",
52
+ UseStream: "Int",
53
+ Message: "Object",
54
+ History: "Array",
55
+ },
56
+ },
57
+ };
58
+ };