kb-cloud-client-typescript 2.3.0-alpha.72 → 2.3.0-alpha.74

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 (87) hide show
  1. package/dist/adminapi/apis/aiagent-api.d.ts +234 -2
  2. package/dist/adminapi/apis/aiagent-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/aiagent-api.js +243 -5
  4. package/dist/adminapi/apis/aiagent-api.js.map +1 -1
  5. package/dist/adminapi/models/ai-agent-conversation.d.ts +6 -0
  6. package/dist/adminapi/models/ai-agent-conversation.d.ts.map +1 -1
  7. package/dist/adminapi/models/ai-agent-create-conversation-request.d.ts +6 -0
  8. package/dist/adminapi/models/ai-agent-create-conversation-request.d.ts.map +1 -1
  9. package/dist/adminapi/models/ai-agent-delete-conversation-response.d.ts +31 -0
  10. package/dist/adminapi/models/ai-agent-delete-conversation-response.d.ts.map +1 -0
  11. package/dist/adminapi/models/ai-agent-delete-conversation-response.js +16 -0
  12. package/dist/adminapi/models/ai-agent-delete-conversation-response.js.map +1 -0
  13. package/dist/adminapi/models/ai-agent-event-type.d.ts +1 -0
  14. package/dist/adminapi/models/ai-agent-event-type.d.ts.map +1 -1
  15. package/dist/adminapi/models/ai-agent-event-type.js +1 -0
  16. package/dist/adminapi/models/ai-agent-event-type.js.map +1 -1
  17. package/dist/adminapi/models/ai-agent-message-part-type.d.ts +1 -0
  18. package/dist/adminapi/models/ai-agent-message-part-type.d.ts.map +1 -1
  19. package/dist/adminapi/models/ai-agent-message-part-type.js +1 -0
  20. package/dist/adminapi/models/ai-agent-message-part-type.js.map +1 -1
  21. package/dist/adminapi/models/ai-agent-turn-action-list.d.ts +26 -0
  22. package/dist/adminapi/models/ai-agent-turn-action-list.d.ts.map +1 -0
  23. package/dist/adminapi/models/ai-agent-turn-action-list.js +16 -0
  24. package/dist/adminapi/models/ai-agent-turn-action-list.js.map +1 -0
  25. package/dist/adminapi/models/ai-agent-turn-action.d.ts +106 -0
  26. package/dist/adminapi/models/ai-agent-turn-action.d.ts.map +1 -0
  27. package/dist/adminapi/models/ai-agent-turn-action.js +16 -0
  28. package/dist/adminapi/models/ai-agent-turn-action.js.map +1 -0
  29. package/dist/adminapi/models/index.d.ts +3 -0
  30. package/dist/adminapi/models/index.d.ts.map +1 -1
  31. package/dist/adminapi/models/index.js +3 -0
  32. package/dist/adminapi/models/index.js.map +1 -1
  33. package/dist/openapi/apis/aiagent-api.d.ts +234 -2
  34. package/dist/openapi/apis/aiagent-api.d.ts.map +1 -1
  35. package/dist/openapi/apis/aiagent-api.js +243 -5
  36. package/dist/openapi/apis/aiagent-api.js.map +1 -1
  37. package/dist/openapi/models/ai-agent-conversation.d.ts +6 -0
  38. package/dist/openapi/models/ai-agent-conversation.d.ts.map +1 -1
  39. package/dist/openapi/models/ai-agent-create-conversation-request.d.ts +6 -0
  40. package/dist/openapi/models/ai-agent-create-conversation-request.d.ts.map +1 -1
  41. package/dist/openapi/models/ai-agent-delete-conversation-response.d.ts +31 -0
  42. package/dist/openapi/models/ai-agent-delete-conversation-response.d.ts.map +1 -0
  43. package/dist/openapi/models/ai-agent-delete-conversation-response.js +16 -0
  44. package/dist/openapi/models/ai-agent-delete-conversation-response.js.map +1 -0
  45. package/dist/openapi/models/ai-agent-event-type.d.ts +1 -0
  46. package/dist/openapi/models/ai-agent-event-type.d.ts.map +1 -1
  47. package/dist/openapi/models/ai-agent-event-type.js +1 -0
  48. package/dist/openapi/models/ai-agent-event-type.js.map +1 -1
  49. package/dist/openapi/models/ai-agent-message-part-type.d.ts +1 -0
  50. package/dist/openapi/models/ai-agent-message-part-type.d.ts.map +1 -1
  51. package/dist/openapi/models/ai-agent-message-part-type.js +1 -0
  52. package/dist/openapi/models/ai-agent-message-part-type.js.map +1 -1
  53. package/dist/openapi/models/ai-agent-turn-action-list.d.ts +26 -0
  54. package/dist/openapi/models/ai-agent-turn-action-list.d.ts.map +1 -0
  55. package/dist/openapi/models/ai-agent-turn-action-list.js +16 -0
  56. package/dist/openapi/models/ai-agent-turn-action-list.js.map +1 -0
  57. package/dist/openapi/models/ai-agent-turn-action.d.ts +106 -0
  58. package/dist/openapi/models/ai-agent-turn-action.d.ts.map +1 -0
  59. package/dist/openapi/models/ai-agent-turn-action.js +16 -0
  60. package/dist/openapi/models/ai-agent-turn-action.js.map +1 -0
  61. package/dist/openapi/models/index.d.ts +3 -0
  62. package/dist/openapi/models/index.d.ts.map +1 -1
  63. package/dist/openapi/models/index.js +3 -0
  64. package/dist/openapi/models/index.js.map +1 -1
  65. package/package.json +1 -1
  66. package/src/sdk/adminapi/.openapi-generator/FILES +3 -0
  67. package/src/sdk/adminapi/apis/aiagent-api.ts +399 -5
  68. package/src/sdk/adminapi/models/ai-agent-conversation.ts +6 -0
  69. package/src/sdk/adminapi/models/ai-agent-create-conversation-request.ts +6 -0
  70. package/src/sdk/adminapi/models/ai-agent-delete-conversation-response.ts +36 -0
  71. package/src/sdk/adminapi/models/ai-agent-event-type.ts +1 -0
  72. package/src/sdk/adminapi/models/ai-agent-message-part-type.ts +1 -0
  73. package/src/sdk/adminapi/models/ai-agent-turn-action-list.ts +33 -0
  74. package/src/sdk/adminapi/models/ai-agent-turn-action.ts +113 -0
  75. package/src/sdk/adminapi/models/index.ts +3 -0
  76. package/src/sdk/adminapi.yaml +198 -0
  77. package/src/sdk/openapi/.openapi-generator/FILES +3 -0
  78. package/src/sdk/openapi/apis/aiagent-api.ts +399 -5
  79. package/src/sdk/openapi/models/ai-agent-conversation.ts +6 -0
  80. package/src/sdk/openapi/models/ai-agent-create-conversation-request.ts +6 -0
  81. package/src/sdk/openapi/models/ai-agent-delete-conversation-response.ts +36 -0
  82. package/src/sdk/openapi/models/ai-agent-event-type.ts +1 -0
  83. package/src/sdk/openapi/models/ai-agent-message-part-type.ts +1 -0
  84. package/src/sdk/openapi/models/ai-agent-turn-action-list.ts +33 -0
  85. package/src/sdk/openapi/models/ai-agent-turn-action.ts +113 -0
  86. package/src/sdk/openapi/models/index.ts +3 -0
  87. package/src/sdk/openapi.yaml +198 -0
@@ -0,0 +1,33 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { AiAgentTurnAction } from './ai-agent-turn-action';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface AiAgentTurnActionList
24
+ */
25
+ export interface AiAgentTurnActionList {
26
+ /**
27
+ *
28
+ * @type {Array<AiAgentTurnAction>}
29
+ * @memberof AiAgentTurnActionList
30
+ */
31
+ 'items': Array<AiAgentTurnAction>;
32
+ }
33
+
@@ -0,0 +1,113 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { AiAgentEventType } from './ai-agent-event-type';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface AiAgentTurnAction
24
+ */
25
+ export interface AiAgentTurnAction {
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof AiAgentTurnAction
30
+ */
31
+ 'actionId': string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof AiAgentTurnAction
36
+ */
37
+ 'conversationId': string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof AiAgentTurnAction
42
+ */
43
+ 'turnId': string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof AiAgentTurnAction
48
+ */
49
+ 'messageId'?: string | null;
50
+ /**
51
+ *
52
+ * @type {AiAgentEventType}
53
+ * @memberof AiAgentTurnAction
54
+ */
55
+ 'type': AiAgentEventType;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof AiAgentTurnAction
60
+ */
61
+ 'status'?: string | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof AiAgentTurnAction
66
+ */
67
+ 'title': string;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof AiAgentTurnAction
72
+ */
73
+ 'summary'?: string | null;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof AiAgentTurnAction
78
+ */
79
+ 'toolName'?: string | null;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof AiAgentTurnAction
84
+ */
85
+ 'target'?: string | null;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof AiAgentTurnAction
90
+ */
91
+ 'confirmationId'?: string | null;
92
+ /**
93
+ *
94
+ * @type {boolean}
95
+ * @memberof AiAgentTurnAction
96
+ */
97
+ 'hasDetail': boolean;
98
+ /**
99
+ *
100
+ * @type {{ [key: string]: any; }}
101
+ * @memberof AiAgentTurnAction
102
+ */
103
+ 'detail'?: { [key: string]: any; } | null;
104
+ /**
105
+ *
106
+ * @type {string}
107
+ * @memberof AiAgentTurnAction
108
+ */
109
+ 'createdAt': string;
110
+ }
111
+
112
+
113
+
@@ -30,6 +30,7 @@ export * from './ai-agent-conversation';
30
30
  export * from './ai-agent-conversation-list';
31
31
  export * from './ai-agent-conversation-status';
32
32
  export * from './ai-agent-create-conversation-request';
33
+ export * from './ai-agent-delete-conversation-response';
33
34
  export * from './ai-agent-event';
34
35
  export * from './ai-agent-event-type';
35
36
  export * from './ai-agent-message';
@@ -47,6 +48,8 @@ export * from './ai-agent-stop-conversation-response';
47
48
  export * from './ai-agent-tool-confirmation-decision-request';
48
49
  export * from './ai-agent-tool-confirmation-decision-response';
49
50
  export * from './ai-agent-tool-confirmation-status';
51
+ export * from './ai-agent-turn-action';
52
+ export * from './ai-agent-turn-action-list';
50
53
  export * from './ai-agent-turn-status';
51
54
  export * from './ai-conversation';
52
55
  export * from './ai-conversation-list-response';
@@ -1128,6 +1128,11 @@ paths:
1128
1128
  required: false
1129
1129
  schema:
1130
1130
  type: string
1131
+ - name: clusterName
1132
+ in: query
1133
+ required: false
1134
+ schema:
1135
+ type: string
1131
1136
  responses:
1132
1137
  '200':
1133
1138
  description: AI diagnosis conversations
@@ -1205,6 +1210,39 @@ paths:
1205
1210
  $ref: '#/components/responses/404'
1206
1211
  '500':
1207
1212
  $ref: '#/components/responses/500'
1213
+ delete:
1214
+ tags:
1215
+ - AI Agent
1216
+ operationId: deleteAIAgentConversation
1217
+ summary: Delete an AI diagnosis conversation
1218
+ parameters:
1219
+ - name: orgName
1220
+ in: path
1221
+ required: true
1222
+ schema:
1223
+ type: string
1224
+ - name: conversationId
1225
+ in: path
1226
+ required: true
1227
+ schema:
1228
+ type: string
1229
+ responses:
1230
+ '200':
1231
+ description: AI diagnosis conversation deleted
1232
+ content:
1233
+ application/json:
1234
+ schema:
1235
+ $ref: '#/components/schemas/aiAgentDeleteConversationResponse'
1236
+ '401':
1237
+ $ref: '#/components/responses/401'
1238
+ '403':
1239
+ $ref: '#/components/responses/403'
1240
+ '404':
1241
+ $ref: '#/components/responses/404'
1242
+ '409':
1243
+ $ref: '#/components/responses/409'
1244
+ '500':
1245
+ $ref: '#/components/responses/500'
1208
1246
  /admin/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/messages:
1209
1247
  get:
1210
1248
  tags:
@@ -1291,6 +1329,91 @@ paths:
1291
1329
  $ref: '#/components/responses/500'
1292
1330
  '503':
1293
1331
  $ref: '#/components/responses/503'
1332
+ /admin/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/turn-actions:
1333
+ get:
1334
+ tags:
1335
+ - AI Agent
1336
+ operationId: listAIAgentTurnActions
1337
+ summary: List stable AI diagnosis turn process actions
1338
+ parameters:
1339
+ - name: orgName
1340
+ in: path
1341
+ required: true
1342
+ schema:
1343
+ type: string
1344
+ - name: conversationId
1345
+ in: path
1346
+ required: true
1347
+ schema:
1348
+ type: string
1349
+ - name: turnId
1350
+ in: query
1351
+ required: false
1352
+ schema:
1353
+ type: string
1354
+ - name: after
1355
+ in: query
1356
+ required: false
1357
+ schema:
1358
+ type: string
1359
+ - name: limit
1360
+ in: query
1361
+ required: false
1362
+ schema:
1363
+ type: integer
1364
+ default: 100
1365
+ responses:
1366
+ '200':
1367
+ description: Stable AI diagnosis process actions
1368
+ content:
1369
+ application/json:
1370
+ schema:
1371
+ $ref: '#/components/schemas/aiAgentTurnActionList'
1372
+ '401':
1373
+ $ref: '#/components/responses/401'
1374
+ '403':
1375
+ $ref: '#/components/responses/403'
1376
+ '404':
1377
+ $ref: '#/components/responses/404'
1378
+ '500':
1379
+ $ref: '#/components/responses/500'
1380
+ /admin/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/turn-actions/{actionId}:
1381
+ get:
1382
+ tags:
1383
+ - AI Agent
1384
+ operationId: getAIAgentTurnAction
1385
+ summary: Get one stable AI diagnosis turn process action
1386
+ parameters:
1387
+ - name: orgName
1388
+ in: path
1389
+ required: true
1390
+ schema:
1391
+ type: string
1392
+ - name: conversationId
1393
+ in: path
1394
+ required: true
1395
+ schema:
1396
+ type: string
1397
+ - name: actionId
1398
+ in: path
1399
+ required: true
1400
+ schema:
1401
+ type: string
1402
+ responses:
1403
+ '200':
1404
+ description: AI diagnosis process action detail
1405
+ content:
1406
+ application/json:
1407
+ schema:
1408
+ $ref: '#/components/schemas/aiAgentTurnAction'
1409
+ '401':
1410
+ $ref: '#/components/responses/401'
1411
+ '403':
1412
+ $ref: '#/components/responses/403'
1413
+ '404':
1414
+ $ref: '#/components/responses/404'
1415
+ '500':
1416
+ $ref: '#/components/responses/500'
1294
1417
  /admin/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/events:
1295
1418
  get:
1296
1419
  tags:
@@ -20790,6 +20913,7 @@ components:
20790
20913
  type: string
20791
20914
  enum:
20792
20915
  - text
20916
+ - reasoning_summary
20793
20917
  - diagnosis_summary
20794
20918
  - tool_observation_summary
20795
20919
  aiAgentMessagePart:
@@ -20848,6 +20972,9 @@ components:
20848
20972
  properties:
20849
20973
  conversationId:
20850
20974
  type: string
20975
+ entryClusterName:
20976
+ type: string
20977
+ x-nullable: true
20851
20978
  title:
20852
20979
  type: string
20853
20980
  x-nullable: true
@@ -20884,6 +21011,19 @@ components:
20884
21011
  model:
20885
21012
  type: string
20886
21013
  x-nullable: true
21014
+ entryClusterName:
21015
+ type: string
21016
+ x-nullable: true
21017
+ aiAgentDeleteConversationResponse:
21018
+ type: object
21019
+ required:
21020
+ - conversationId
21021
+ - status
21022
+ properties:
21023
+ conversationId:
21024
+ type: string
21025
+ status:
21026
+ type: string
20887
21027
  aiAgentMessageList:
20888
21028
  type: object
20889
21029
  required:
@@ -20934,6 +21074,7 @@ components:
20934
21074
  type: string
20935
21075
  enum:
20936
21076
  - cloud.conversation.ready
21077
+ - cloud.stream.connected
20937
21078
  - cloud.turn.started
20938
21079
  - message.delta
20939
21080
  - message.interim
@@ -20949,6 +21090,63 @@ components:
20949
21090
  - run.completed
20950
21091
  - run.failed
20951
21092
  - run.cancelled
21093
+ aiAgentTurnAction:
21094
+ type: object
21095
+ required:
21096
+ - actionId
21097
+ - conversationId
21098
+ - turnId
21099
+ - type
21100
+ - title
21101
+ - hasDetail
21102
+ - createdAt
21103
+ properties:
21104
+ actionId:
21105
+ type: string
21106
+ conversationId:
21107
+ type: string
21108
+ turnId:
21109
+ type: string
21110
+ messageId:
21111
+ type: string
21112
+ x-nullable: true
21113
+ type:
21114
+ $ref: '#/components/schemas/aiAgentEventType'
21115
+ status:
21116
+ type: string
21117
+ x-nullable: true
21118
+ title:
21119
+ type: string
21120
+ summary:
21121
+ type: string
21122
+ x-nullable: true
21123
+ toolName:
21124
+ type: string
21125
+ x-nullable: true
21126
+ target:
21127
+ type: string
21128
+ x-nullable: true
21129
+ confirmationId:
21130
+ type: string
21131
+ x-nullable: true
21132
+ hasDetail:
21133
+ type: boolean
21134
+ detail:
21135
+ type: object
21136
+ additionalProperties: true
21137
+ x-nullable: true
21138
+ createdAt:
21139
+ type: string
21140
+ format: date-time
21141
+ aiAgentTurnActionList:
21142
+ type: object
21143
+ required:
21144
+ - items
21145
+ properties:
21146
+ items:
21147
+ type: array
21148
+ items:
21149
+ $ref: '#/components/schemas/aiAgentTurnAction'
20952
21150
  aiAgentEvent:
20953
21151
  type: object
20954
21152
  required:
@@ -102,6 +102,7 @@ models/ai-agent-conversation-list.ts
102
102
  models/ai-agent-conversation-status.ts
103
103
  models/ai-agent-conversation.ts
104
104
  models/ai-agent-create-conversation-request.ts
105
+ models/ai-agent-delete-conversation-response.ts
105
106
  models/ai-agent-event-type.ts
106
107
  models/ai-agent-event.ts
107
108
  models/ai-agent-message-list.ts
@@ -119,6 +120,8 @@ models/ai-agent-stop-conversation-response.ts
119
120
  models/ai-agent-tool-confirmation-decision-request.ts
120
121
  models/ai-agent-tool-confirmation-decision-response.ts
121
122
  models/ai-agent-tool-confirmation-status.ts
123
+ models/ai-agent-turn-action-list.ts
124
+ models/ai-agent-turn-action.ts
122
125
  models/ai-agent-turn-status.ts
123
126
  models/ai-conversation-list-response.ts
124
127
  models/ai-conversation.ts