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

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 (55) hide show
  1. package/dist/adminapi/apis/aiagent-api.d.ts +160 -0
  2. package/dist/adminapi/apis/aiagent-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/aiagent-api.js +162 -0
  4. package/dist/adminapi/apis/aiagent-api.js.map +1 -1
  5. package/dist/adminapi/models/ai-agent-event-type.d.ts +1 -0
  6. package/dist/adminapi/models/ai-agent-event-type.d.ts.map +1 -1
  7. package/dist/adminapi/models/ai-agent-event-type.js +1 -0
  8. package/dist/adminapi/models/ai-agent-event-type.js.map +1 -1
  9. package/dist/adminapi/models/ai-agent-turn-action-list.d.ts +26 -0
  10. package/dist/adminapi/models/ai-agent-turn-action-list.d.ts.map +1 -0
  11. package/dist/adminapi/models/ai-agent-turn-action-list.js +16 -0
  12. package/dist/adminapi/models/ai-agent-turn-action-list.js.map +1 -0
  13. package/dist/adminapi/models/ai-agent-turn-action.d.ts +106 -0
  14. package/dist/adminapi/models/ai-agent-turn-action.d.ts.map +1 -0
  15. package/dist/adminapi/models/ai-agent-turn-action.js +16 -0
  16. package/dist/adminapi/models/ai-agent-turn-action.js.map +1 -0
  17. package/dist/adminapi/models/index.d.ts +2 -0
  18. package/dist/adminapi/models/index.d.ts.map +1 -1
  19. package/dist/adminapi/models/index.js +2 -0
  20. package/dist/adminapi/models/index.js.map +1 -1
  21. package/dist/openapi/apis/aiagent-api.d.ts +160 -0
  22. package/dist/openapi/apis/aiagent-api.d.ts.map +1 -1
  23. package/dist/openapi/apis/aiagent-api.js +162 -0
  24. package/dist/openapi/apis/aiagent-api.js.map +1 -1
  25. package/dist/openapi/models/ai-agent-event-type.d.ts +1 -0
  26. package/dist/openapi/models/ai-agent-event-type.d.ts.map +1 -1
  27. package/dist/openapi/models/ai-agent-event-type.js +1 -0
  28. package/dist/openapi/models/ai-agent-event-type.js.map +1 -1
  29. package/dist/openapi/models/ai-agent-turn-action-list.d.ts +26 -0
  30. package/dist/openapi/models/ai-agent-turn-action-list.d.ts.map +1 -0
  31. package/dist/openapi/models/ai-agent-turn-action-list.js +16 -0
  32. package/dist/openapi/models/ai-agent-turn-action-list.js.map +1 -0
  33. package/dist/openapi/models/ai-agent-turn-action.d.ts +106 -0
  34. package/dist/openapi/models/ai-agent-turn-action.d.ts.map +1 -0
  35. package/dist/openapi/models/ai-agent-turn-action.js +16 -0
  36. package/dist/openapi/models/ai-agent-turn-action.js.map +1 -0
  37. package/dist/openapi/models/index.d.ts +2 -0
  38. package/dist/openapi/models/index.d.ts.map +1 -1
  39. package/dist/openapi/models/index.js +2 -0
  40. package/dist/openapi/models/index.js.map +1 -1
  41. package/package.json +1 -1
  42. package/src/sdk/adminapi/.openapi-generator/FILES +2 -0
  43. package/src/sdk/adminapi/apis/aiagent-api.ts +271 -0
  44. package/src/sdk/adminapi/models/ai-agent-event-type.ts +1 -0
  45. package/src/sdk/adminapi/models/ai-agent-turn-action-list.ts +33 -0
  46. package/src/sdk/adminapi/models/ai-agent-turn-action.ts +113 -0
  47. package/src/sdk/adminapi/models/index.ts +2 -0
  48. package/src/sdk/adminapi.yaml +143 -0
  49. package/src/sdk/openapi/.openapi-generator/FILES +2 -0
  50. package/src/sdk/openapi/apis/aiagent-api.ts +271 -0
  51. package/src/sdk/openapi/models/ai-agent-event-type.ts +1 -0
  52. package/src/sdk/openapi/models/ai-agent-turn-action-list.ts +33 -0
  53. package/src/sdk/openapi/models/ai-agent-turn-action.ts +113 -0
  54. package/src/sdk/openapi/models/index.ts +2 -0
  55. package/src/sdk/openapi.yaml +143 -0
@@ -47,6 +47,8 @@ export * from './ai-agent-stop-conversation-response';
47
47
  export * from './ai-agent-tool-confirmation-decision-request';
48
48
  export * from './ai-agent-tool-confirmation-decision-response';
49
49
  export * from './ai-agent-tool-confirmation-status';
50
+ export * from './ai-agent-turn-action';
51
+ export * from './ai-agent-turn-action-list';
50
52
  export * from './ai-agent-turn-status';
51
53
  export * from './ai-conversation';
52
54
  export * from './ai-conversation-list-response';
@@ -1291,6 +1291,91 @@ paths:
1291
1291
  $ref: '#/components/responses/500'
1292
1292
  '503':
1293
1293
  $ref: '#/components/responses/503'
1294
+ /admin/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/turn-actions:
1295
+ get:
1296
+ tags:
1297
+ - AI Agent
1298
+ operationId: listAIAgentTurnActions
1299
+ summary: List stable AI diagnosis turn process actions
1300
+ parameters:
1301
+ - name: orgName
1302
+ in: path
1303
+ required: true
1304
+ schema:
1305
+ type: string
1306
+ - name: conversationId
1307
+ in: path
1308
+ required: true
1309
+ schema:
1310
+ type: string
1311
+ - name: turnId
1312
+ in: query
1313
+ required: false
1314
+ schema:
1315
+ type: string
1316
+ - name: after
1317
+ in: query
1318
+ required: false
1319
+ schema:
1320
+ type: string
1321
+ - name: limit
1322
+ in: query
1323
+ required: false
1324
+ schema:
1325
+ type: integer
1326
+ default: 100
1327
+ responses:
1328
+ '200':
1329
+ description: Stable AI diagnosis process actions
1330
+ content:
1331
+ application/json:
1332
+ schema:
1333
+ $ref: '#/components/schemas/aiAgentTurnActionList'
1334
+ '401':
1335
+ $ref: '#/components/responses/401'
1336
+ '403':
1337
+ $ref: '#/components/responses/403'
1338
+ '404':
1339
+ $ref: '#/components/responses/404'
1340
+ '500':
1341
+ $ref: '#/components/responses/500'
1342
+ /admin/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/turn-actions/{actionId}:
1343
+ get:
1344
+ tags:
1345
+ - AI Agent
1346
+ operationId: getAIAgentTurnAction
1347
+ summary: Get one stable AI diagnosis turn process action
1348
+ parameters:
1349
+ - name: orgName
1350
+ in: path
1351
+ required: true
1352
+ schema:
1353
+ type: string
1354
+ - name: conversationId
1355
+ in: path
1356
+ required: true
1357
+ schema:
1358
+ type: string
1359
+ - name: actionId
1360
+ in: path
1361
+ required: true
1362
+ schema:
1363
+ type: string
1364
+ responses:
1365
+ '200':
1366
+ description: AI diagnosis process action detail
1367
+ content:
1368
+ application/json:
1369
+ schema:
1370
+ $ref: '#/components/schemas/aiAgentTurnAction'
1371
+ '401':
1372
+ $ref: '#/components/responses/401'
1373
+ '403':
1374
+ $ref: '#/components/responses/403'
1375
+ '404':
1376
+ $ref: '#/components/responses/404'
1377
+ '500':
1378
+ $ref: '#/components/responses/500'
1294
1379
  /admin/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/events:
1295
1380
  get:
1296
1381
  tags:
@@ -20934,6 +21019,7 @@ components:
20934
21019
  type: string
20935
21020
  enum:
20936
21021
  - cloud.conversation.ready
21022
+ - cloud.stream.connected
20937
21023
  - cloud.turn.started
20938
21024
  - message.delta
20939
21025
  - message.interim
@@ -20949,6 +21035,63 @@ components:
20949
21035
  - run.completed
20950
21036
  - run.failed
20951
21037
  - run.cancelled
21038
+ aiAgentTurnAction:
21039
+ type: object
21040
+ required:
21041
+ - actionId
21042
+ - conversationId
21043
+ - turnId
21044
+ - type
21045
+ - title
21046
+ - hasDetail
21047
+ - createdAt
21048
+ properties:
21049
+ actionId:
21050
+ type: string
21051
+ conversationId:
21052
+ type: string
21053
+ turnId:
21054
+ type: string
21055
+ messageId:
21056
+ type: string
21057
+ x-nullable: true
21058
+ type:
21059
+ $ref: '#/components/schemas/aiAgentEventType'
21060
+ status:
21061
+ type: string
21062
+ x-nullable: true
21063
+ title:
21064
+ type: string
21065
+ summary:
21066
+ type: string
21067
+ x-nullable: true
21068
+ toolName:
21069
+ type: string
21070
+ x-nullable: true
21071
+ target:
21072
+ type: string
21073
+ x-nullable: true
21074
+ confirmationId:
21075
+ type: string
21076
+ x-nullable: true
21077
+ hasDetail:
21078
+ type: boolean
21079
+ detail:
21080
+ type: object
21081
+ additionalProperties: true
21082
+ x-nullable: true
21083
+ createdAt:
21084
+ type: string
21085
+ format: date-time
21086
+ aiAgentTurnActionList:
21087
+ type: object
21088
+ required:
21089
+ - items
21090
+ properties:
21091
+ items:
21092
+ type: array
21093
+ items:
21094
+ $ref: '#/components/schemas/aiAgentTurnAction'
20952
21095
  aiAgentEvent:
20953
21096
  type: object
20954
21097
  required:
@@ -119,6 +119,8 @@ models/ai-agent-stop-conversation-response.ts
119
119
  models/ai-agent-tool-confirmation-decision-request.ts
120
120
  models/ai-agent-tool-confirmation-decision-response.ts
121
121
  models/ai-agent-tool-confirmation-status.ts
122
+ models/ai-agent-turn-action-list.ts
123
+ models/ai-agent-turn-action.ts
122
124
  models/ai-agent-turn-status.ts
123
125
  models/ai-conversation-list-response.ts
124
126
  models/ai-conversation.ts
@@ -45,6 +45,10 @@ import type { AiAgentStopConversationResponse } from '../models';
45
45
  import type { AiAgentToolConfirmationDecisionRequest } from '../models';
46
46
  // @ts-ignore
47
47
  import type { AiAgentToolConfirmationDecisionResponse } from '../models';
48
+ // @ts-ignore
49
+ import type { AiAgentTurnAction } from '../models';
50
+ // @ts-ignore
51
+ import type { AiAgentTurnActionList } from '../models';
48
52
  /**
49
53
  * AIAgentApi - axios parameter creator
50
54
  * @export
@@ -212,6 +216,51 @@ export const AIAgentApiAxiosParamCreator = function (configuration?: Configurati
212
216
 
213
217
 
214
218
 
219
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
220
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
221
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
222
+
223
+ return {
224
+ url: toPathString(localVarUrlObj),
225
+ options: localVarRequestOptions,
226
+ };
227
+ },
228
+ /**
229
+ *
230
+ * @summary Get one stable AI diagnosis turn process action
231
+ * @param {string} orgName
232
+ * @param {string} conversationId
233
+ * @param {string} actionId
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ getAIAgentTurnAction: async (orgName: string, conversationId: string, actionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
238
+ // verify required parameter 'orgName' is not null or undefined
239
+ assertParamExists('getAIAgentTurnAction', 'orgName', orgName)
240
+ // verify required parameter 'conversationId' is not null or undefined
241
+ assertParamExists('getAIAgentTurnAction', 'conversationId', conversationId)
242
+ // verify required parameter 'actionId' is not null or undefined
243
+ assertParamExists('getAIAgentTurnAction', 'actionId', actionId)
244
+ const localVarPath = `/api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/turn-actions/{actionId}`
245
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
246
+ .replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)))
247
+ .replace(`{${"actionId"}}`, encodeURIComponent(String(actionId)));
248
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
249
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
250
+ let baseOptions;
251
+ if (configuration) {
252
+ baseOptions = configuration.baseOptions;
253
+ }
254
+
255
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
256
+ const localVarHeaderParameter = {} as any;
257
+ const localVarQueryParameter = {} as any;
258
+
259
+ // authentication BearerToken required
260
+ await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
261
+
262
+
263
+
215
264
  setSearchParams(localVarUrlObj, localVarQueryParameter);
216
265
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
217
266
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -310,6 +359,62 @@ export const AIAgentApiAxiosParamCreator = function (configuration?: Configurati
310
359
 
311
360
 
312
361
 
362
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
363
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
364
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
365
+
366
+ return {
367
+ url: toPathString(localVarUrlObj),
368
+ options: localVarRequestOptions,
369
+ };
370
+ },
371
+ /**
372
+ *
373
+ * @summary List stable AI diagnosis turn process actions
374
+ * @param {string} orgName
375
+ * @param {string} conversationId
376
+ * @param {string} [turnId]
377
+ * @param {string} [after]
378
+ * @param {number} [limit]
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ listAIAgentTurnActions: async (orgName: string, conversationId: string, turnId?: string, after?: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
383
+ // verify required parameter 'orgName' is not null or undefined
384
+ assertParamExists('listAIAgentTurnActions', 'orgName', orgName)
385
+ // verify required parameter 'conversationId' is not null or undefined
386
+ assertParamExists('listAIAgentTurnActions', 'conversationId', conversationId)
387
+ const localVarPath = `/api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/turn-actions`
388
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
389
+ .replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
390
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
391
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
392
+ let baseOptions;
393
+ if (configuration) {
394
+ baseOptions = configuration.baseOptions;
395
+ }
396
+
397
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
398
+ const localVarHeaderParameter = {} as any;
399
+ const localVarQueryParameter = {} as any;
400
+
401
+ // authentication BearerToken required
402
+ await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
403
+
404
+ if (turnId !== undefined) {
405
+ localVarQueryParameter['turnId'] = turnId;
406
+ }
407
+
408
+ if (after !== undefined) {
409
+ localVarQueryParameter['after'] = after;
410
+ }
411
+
412
+ if (limit !== undefined) {
413
+ localVarQueryParameter['limit'] = limit;
414
+ }
415
+
416
+
417
+
313
418
  setSearchParams(localVarUrlObj, localVarQueryParameter);
314
419
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
315
420
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -569,6 +674,21 @@ export const AIAgentApiFp = function(configuration?: Configuration) {
569
674
  const localVarOperationServerBasePath = operationServerMap['AIAgentApi.getAIAgentStatus']?.[localVarOperationServerIndex]?.url;
570
675
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
571
676
  },
677
+ /**
678
+ *
679
+ * @summary Get one stable AI diagnosis turn process action
680
+ * @param {string} orgName
681
+ * @param {string} conversationId
682
+ * @param {string} actionId
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ */
686
+ async getAIAgentTurnAction(orgName: string, conversationId: string, actionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiAgentTurnAction>> {
687
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAIAgentTurnAction(orgName, conversationId, actionId, options);
688
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
689
+ const localVarOperationServerBasePath = operationServerMap['AIAgentApi.getAIAgentTurnAction']?.[localVarOperationServerIndex]?.url;
690
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
691
+ },
572
692
  /**
573
693
  *
574
694
  * @summary List AI diagnosis conversations
@@ -600,6 +720,23 @@ export const AIAgentApiFp = function(configuration?: Configuration) {
600
720
  const localVarOperationServerBasePath = operationServerMap['AIAgentApi.listAIAgentMessages']?.[localVarOperationServerIndex]?.url;
601
721
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
602
722
  },
723
+ /**
724
+ *
725
+ * @summary List stable AI diagnosis turn process actions
726
+ * @param {string} orgName
727
+ * @param {string} conversationId
728
+ * @param {string} [turnId]
729
+ * @param {string} [after]
730
+ * @param {number} [limit]
731
+ * @param {*} [options] Override http request option.
732
+ * @throws {RequiredError}
733
+ */
734
+ async listAIAgentTurnActions(orgName: string, conversationId: string, turnId?: string, after?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiAgentTurnActionList>> {
735
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAIAgentTurnActions(orgName, conversationId, turnId, after, limit, options);
736
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
737
+ const localVarOperationServerBasePath = operationServerMap['AIAgentApi.listAIAgentTurnActions']?.[localVarOperationServerIndex]?.url;
738
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
739
+ },
603
740
  /**
604
741
  *
605
742
  * @summary Reject one AI diagnosis tool confirmation
@@ -710,6 +847,16 @@ export const AIAgentApiFactory = function (configuration?: Configuration, basePa
710
847
  getAIAgentStatus(requestParameters: AIAgentApiGetAIAgentStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentRuntimeStatus> {
711
848
  return localVarFp.getAIAgentStatus(requestParameters.orgName, options).then((request) => request(axios, basePath));
712
849
  },
850
+ /**
851
+ *
852
+ * @summary Get one stable AI diagnosis turn process action
853
+ * @param {AIAgentApiGetAIAgentTurnActionRequest} requestParameters Request parameters.
854
+ * @param {*} [options] Override http request option.
855
+ * @throws {RequiredError}
856
+ */
857
+ getAIAgentTurnAction(requestParameters: AIAgentApiGetAIAgentTurnActionRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentTurnAction> {
858
+ return localVarFp.getAIAgentTurnAction(requestParameters.orgName, requestParameters.conversationId, requestParameters.actionId, options).then((request) => request(axios, basePath));
859
+ },
713
860
  /**
714
861
  *
715
862
  * @summary List AI diagnosis conversations
@@ -730,6 +877,16 @@ export const AIAgentApiFactory = function (configuration?: Configuration, basePa
730
877
  listAIAgentMessages(requestParameters: AIAgentApiListAIAgentMessagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentMessageList> {
731
878
  return localVarFp.listAIAgentMessages(requestParameters.orgName, requestParameters.conversationId, requestParameters.after, requestParameters.limit, options).then((request) => request(axios, basePath));
732
879
  },
880
+ /**
881
+ *
882
+ * @summary List stable AI diagnosis turn process actions
883
+ * @param {AIAgentApiListAIAgentTurnActionsRequest} requestParameters Request parameters.
884
+ * @param {*} [options] Override http request option.
885
+ * @throws {RequiredError}
886
+ */
887
+ listAIAgentTurnActions(requestParameters: AIAgentApiListAIAgentTurnActionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentTurnActionList> {
888
+ return localVarFp.listAIAgentTurnActions(requestParameters.orgName, requestParameters.conversationId, requestParameters.turnId, requestParameters.after, requestParameters.limit, options).then((request) => request(axios, basePath));
889
+ },
733
890
  /**
734
891
  *
735
892
  * @summary Reject one AI diagnosis tool confirmation
@@ -819,6 +976,16 @@ export interface AIAgentApiInterface {
819
976
  */
820
977
  getAIAgentStatus(requestParameters: AIAgentApiGetAIAgentStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentRuntimeStatus>;
821
978
 
979
+ /**
980
+ *
981
+ * @summary Get one stable AI diagnosis turn process action
982
+ * @param {AIAgentApiGetAIAgentTurnActionRequest} requestParameters Request parameters.
983
+ * @param {*} [options] Override http request option.
984
+ * @throws {RequiredError}
985
+ * @memberof AIAgentApiInterface
986
+ */
987
+ getAIAgentTurnAction(requestParameters: AIAgentApiGetAIAgentTurnActionRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentTurnAction>;
988
+
822
989
  /**
823
990
  *
824
991
  * @summary List AI diagnosis conversations
@@ -839,6 +1006,16 @@ export interface AIAgentApiInterface {
839
1006
  */
840
1007
  listAIAgentMessages(requestParameters: AIAgentApiListAIAgentMessagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentMessageList>;
841
1008
 
1009
+ /**
1010
+ *
1011
+ * @summary List stable AI diagnosis turn process actions
1012
+ * @param {AIAgentApiListAIAgentTurnActionsRequest} requestParameters Request parameters.
1013
+ * @param {*} [options] Override http request option.
1014
+ * @throws {RequiredError}
1015
+ * @memberof AIAgentApiInterface
1016
+ */
1017
+ listAIAgentTurnActions(requestParameters: AIAgentApiListAIAgentTurnActionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentTurnActionList>;
1018
+
842
1019
  /**
843
1020
  *
844
1021
  * @summary Reject one AI diagnosis tool confirmation
@@ -972,6 +1149,34 @@ export interface AIAgentApiGetAIAgentStatusRequest {
972
1149
  readonly orgName: string
973
1150
  }
974
1151
 
1152
+ /**
1153
+ * Request parameters for getAIAgentTurnAction operation in AIAgentApi.
1154
+ * @export
1155
+ * @interface AIAgentApiGetAIAgentTurnActionRequest
1156
+ */
1157
+ export interface AIAgentApiGetAIAgentTurnActionRequest {
1158
+ /**
1159
+ *
1160
+ * @type {string}
1161
+ * @memberof AIAgentApiGetAIAgentTurnAction
1162
+ */
1163
+ readonly orgName: string
1164
+
1165
+ /**
1166
+ *
1167
+ * @type {string}
1168
+ * @memberof AIAgentApiGetAIAgentTurnAction
1169
+ */
1170
+ readonly conversationId: string
1171
+
1172
+ /**
1173
+ *
1174
+ * @type {string}
1175
+ * @memberof AIAgentApiGetAIAgentTurnAction
1176
+ */
1177
+ readonly actionId: string
1178
+ }
1179
+
975
1180
  /**
976
1181
  * Request parameters for listAIAgentConversations operation in AIAgentApi.
977
1182
  * @export
@@ -1035,6 +1240,48 @@ export interface AIAgentApiListAIAgentMessagesRequest {
1035
1240
  readonly limit?: number
1036
1241
  }
1037
1242
 
1243
+ /**
1244
+ * Request parameters for listAIAgentTurnActions operation in AIAgentApi.
1245
+ * @export
1246
+ * @interface AIAgentApiListAIAgentTurnActionsRequest
1247
+ */
1248
+ export interface AIAgentApiListAIAgentTurnActionsRequest {
1249
+ /**
1250
+ *
1251
+ * @type {string}
1252
+ * @memberof AIAgentApiListAIAgentTurnActions
1253
+ */
1254
+ readonly orgName: string
1255
+
1256
+ /**
1257
+ *
1258
+ * @type {string}
1259
+ * @memberof AIAgentApiListAIAgentTurnActions
1260
+ */
1261
+ readonly conversationId: string
1262
+
1263
+ /**
1264
+ *
1265
+ * @type {string}
1266
+ * @memberof AIAgentApiListAIAgentTurnActions
1267
+ */
1268
+ readonly turnId?: string
1269
+
1270
+ /**
1271
+ *
1272
+ * @type {string}
1273
+ * @memberof AIAgentApiListAIAgentTurnActions
1274
+ */
1275
+ readonly after?: string
1276
+
1277
+ /**
1278
+ *
1279
+ * @type {number}
1280
+ * @memberof AIAgentApiListAIAgentTurnActions
1281
+ */
1282
+ readonly limit?: number
1283
+ }
1284
+
1038
1285
  /**
1039
1286
  * Request parameters for rejectAIAgentToolConfirmation operation in AIAgentApi.
1040
1287
  * @export
@@ -1202,6 +1449,18 @@ export class AIAgentApi extends BaseAPI implements AIAgentApiInterface {
1202
1449
  return AIAgentApiFp(this.configuration).getAIAgentStatus(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
1203
1450
  }
1204
1451
 
1452
+ /**
1453
+ *
1454
+ * @summary Get one stable AI diagnosis turn process action
1455
+ * @param {AIAgentApiGetAIAgentTurnActionRequest} requestParameters Request parameters.
1456
+ * @param {*} [options] Override http request option.
1457
+ * @throws {RequiredError}
1458
+ * @memberof AIAgentApi
1459
+ */
1460
+ public getAIAgentTurnAction(requestParameters: AIAgentApiGetAIAgentTurnActionRequest, options?: RawAxiosRequestConfig) {
1461
+ return AIAgentApiFp(this.configuration).getAIAgentTurnAction(requestParameters.orgName, requestParameters.conversationId, requestParameters.actionId, options).then((request) => request(this.axios, this.basePath));
1462
+ }
1463
+
1205
1464
  /**
1206
1465
  *
1207
1466
  * @summary List AI diagnosis conversations
@@ -1226,6 +1485,18 @@ export class AIAgentApi extends BaseAPI implements AIAgentApiInterface {
1226
1485
  return AIAgentApiFp(this.configuration).listAIAgentMessages(requestParameters.orgName, requestParameters.conversationId, requestParameters.after, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
1227
1486
  }
1228
1487
 
1488
+ /**
1489
+ *
1490
+ * @summary List stable AI diagnosis turn process actions
1491
+ * @param {AIAgentApiListAIAgentTurnActionsRequest} requestParameters Request parameters.
1492
+ * @param {*} [options] Override http request option.
1493
+ * @throws {RequiredError}
1494
+ * @memberof AIAgentApi
1495
+ */
1496
+ public listAIAgentTurnActions(requestParameters: AIAgentApiListAIAgentTurnActionsRequest, options?: RawAxiosRequestConfig) {
1497
+ return AIAgentApiFp(this.configuration).listAIAgentTurnActions(requestParameters.orgName, requestParameters.conversationId, requestParameters.turnId, requestParameters.after, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
1498
+ }
1499
+
1229
1500
  /**
1230
1501
  *
1231
1502
  * @summary Reject one AI diagnosis tool confirmation
@@ -22,6 +22,7 @@
22
22
 
23
23
  export const AiAgentEventType = {
24
24
  cloud_conversation_ready: 'cloud.conversation.ready',
25
+ cloud_stream_connected: 'cloud.stream.connected',
25
26
  cloud_turn_started: 'cloud.turn.started',
26
27
  message_delta: 'message.delta',
27
28
  message_interim: 'message.interim',
@@ -0,0 +1,33 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * ***KubeBlocks Cloud API*** is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
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
+