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

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 (57) hide show
  1. package/dist/adminapi/apis/aiagent-api.d.ts +74 -2
  2. package/dist/adminapi/apis/aiagent-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/aiagent-api.js +81 -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-message-part-type.d.ts +1 -0
  14. package/dist/adminapi/models/ai-agent-message-part-type.d.ts.map +1 -1
  15. package/dist/adminapi/models/ai-agent-message-part-type.js +1 -0
  16. package/dist/adminapi/models/ai-agent-message-part-type.js.map +1 -1
  17. package/dist/adminapi/models/index.d.ts +1 -0
  18. package/dist/adminapi/models/index.d.ts.map +1 -1
  19. package/dist/adminapi/models/index.js +1 -0
  20. package/dist/adminapi/models/index.js.map +1 -1
  21. package/dist/openapi/apis/aiagent-api.d.ts +74 -2
  22. package/dist/openapi/apis/aiagent-api.d.ts.map +1 -1
  23. package/dist/openapi/apis/aiagent-api.js +81 -5
  24. package/dist/openapi/apis/aiagent-api.js.map +1 -1
  25. package/dist/openapi/models/ai-agent-conversation.d.ts +6 -0
  26. package/dist/openapi/models/ai-agent-conversation.d.ts.map +1 -1
  27. package/dist/openapi/models/ai-agent-create-conversation-request.d.ts +6 -0
  28. package/dist/openapi/models/ai-agent-create-conversation-request.d.ts.map +1 -1
  29. package/dist/openapi/models/ai-agent-delete-conversation-response.d.ts +31 -0
  30. package/dist/openapi/models/ai-agent-delete-conversation-response.d.ts.map +1 -0
  31. package/dist/openapi/models/ai-agent-delete-conversation-response.js +16 -0
  32. package/dist/openapi/models/ai-agent-delete-conversation-response.js.map +1 -0
  33. package/dist/openapi/models/ai-agent-message-part-type.d.ts +1 -0
  34. package/dist/openapi/models/ai-agent-message-part-type.d.ts.map +1 -1
  35. package/dist/openapi/models/ai-agent-message-part-type.js +1 -0
  36. package/dist/openapi/models/ai-agent-message-part-type.js.map +1 -1
  37. package/dist/openapi/models/index.d.ts +1 -0
  38. package/dist/openapi/models/index.d.ts.map +1 -1
  39. package/dist/openapi/models/index.js +1 -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 +1 -0
  43. package/src/sdk/adminapi/apis/aiagent-api.ts +128 -5
  44. package/src/sdk/adminapi/models/ai-agent-conversation.ts +6 -0
  45. package/src/sdk/adminapi/models/ai-agent-create-conversation-request.ts +6 -0
  46. package/src/sdk/adminapi/models/ai-agent-delete-conversation-response.ts +36 -0
  47. package/src/sdk/adminapi/models/ai-agent-message-part-type.ts +1 -0
  48. package/src/sdk/adminapi/models/index.ts +1 -0
  49. package/src/sdk/adminapi.yaml +55 -0
  50. package/src/sdk/openapi/.openapi-generator/FILES +1 -0
  51. package/src/sdk/openapi/apis/aiagent-api.ts +128 -5
  52. package/src/sdk/openapi/models/ai-agent-conversation.ts +6 -0
  53. package/src/sdk/openapi/models/ai-agent-create-conversation-request.ts +6 -0
  54. package/src/sdk/openapi/models/ai-agent-delete-conversation-response.ts +36 -0
  55. package/src/sdk/openapi/models/ai-agent-message-part-type.ts +1 -0
  56. package/src/sdk/openapi/models/index.ts +1 -0
  57. package/src/sdk/openapi.yaml +55 -0
@@ -30,6 +30,8 @@ import type { AiAgentConversationList } from '../models';
30
30
  // @ts-ignore
31
31
  import type { AiAgentCreateConversationRequest } from '../models';
32
32
  // @ts-ignore
33
+ import type { AiAgentDeleteConversationResponse } from '../models';
34
+ // @ts-ignore
33
35
  import type { AiAgentEvent } from '../models';
34
36
  // @ts-ignore
35
37
  import type { AiAgentMessageList } from '../models';
@@ -147,6 +149,47 @@ export const AIAgentApiAxiosParamCreator = function (configuration?: Configurati
147
149
  options: localVarRequestOptions,
148
150
  };
149
151
  },
152
+ /**
153
+ *
154
+ * @summary Delete an AI diagnosis conversation
155
+ * @param {string} orgName
156
+ * @param {string} conversationId
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ deleteAIAgentConversation: async (orgName: string, conversationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
161
+ // verify required parameter 'orgName' is not null or undefined
162
+ assertParamExists('deleteAIAgentConversation', 'orgName', orgName)
163
+ // verify required parameter 'conversationId' is not null or undefined
164
+ assertParamExists('deleteAIAgentConversation', 'conversationId', conversationId)
165
+ const localVarPath = `/admin/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}`
166
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
167
+ .replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
168
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
169
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
170
+ let baseOptions;
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ }
174
+
175
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
176
+ const localVarHeaderParameter = {} as any;
177
+ const localVarQueryParameter = {} as any;
178
+
179
+ // authentication BearerToken required
180
+ await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
181
+
182
+
183
+
184
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
185
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
187
+
188
+ return {
189
+ url: toPathString(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ };
192
+ },
150
193
  /**
151
194
  *
152
195
  * @summary Get an AI diagnosis conversation
@@ -276,10 +319,11 @@ export const AIAgentApiAxiosParamCreator = function (configuration?: Configurati
276
319
  * @param {string} orgName
277
320
  * @param {number} [limit]
278
321
  * @param {string} [after]
322
+ * @param {string} [clusterName]
279
323
  * @param {*} [options] Override http request option.
280
324
  * @throws {RequiredError}
281
325
  */
282
- listAIAgentConversations: async (orgName: string, limit?: number, after?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
326
+ listAIAgentConversations: async (orgName: string, limit?: number, after?: string, clusterName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
283
327
  // verify required parameter 'orgName' is not null or undefined
284
328
  assertParamExists('listAIAgentConversations', 'orgName', orgName)
285
329
  const localVarPath = `/admin/v1/organizations/{orgName}/ai-agent/conversations`
@@ -306,6 +350,10 @@ export const AIAgentApiAxiosParamCreator = function (configuration?: Configurati
306
350
  localVarQueryParameter['after'] = after;
307
351
  }
308
352
 
353
+ if (clusterName !== undefined) {
354
+ localVarQueryParameter['clusterName'] = clusterName;
355
+ }
356
+
309
357
 
310
358
 
311
359
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -647,6 +695,20 @@ export const AIAgentApiFp = function(configuration?: Configuration) {
647
695
  const localVarOperationServerBasePath = operationServerMap['AIAgentApi.createAIAgentConversation']?.[localVarOperationServerIndex]?.url;
648
696
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
649
697
  },
698
+ /**
699
+ *
700
+ * @summary Delete an AI diagnosis conversation
701
+ * @param {string} orgName
702
+ * @param {string} conversationId
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ */
706
+ async deleteAIAgentConversation(orgName: string, conversationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiAgentDeleteConversationResponse>> {
707
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAIAgentConversation(orgName, conversationId, options);
708
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
709
+ const localVarOperationServerBasePath = operationServerMap['AIAgentApi.deleteAIAgentConversation']?.[localVarOperationServerIndex]?.url;
710
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
711
+ },
650
712
  /**
651
713
  *
652
714
  * @summary Get an AI diagnosis conversation
@@ -695,11 +757,12 @@ export const AIAgentApiFp = function(configuration?: Configuration) {
695
757
  * @param {string} orgName
696
758
  * @param {number} [limit]
697
759
  * @param {string} [after]
760
+ * @param {string} [clusterName]
698
761
  * @param {*} [options] Override http request option.
699
762
  * @throws {RequiredError}
700
763
  */
701
- async listAIAgentConversations(orgName: string, limit?: number, after?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiAgentConversationList>> {
702
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAIAgentConversations(orgName, limit, after, options);
764
+ async listAIAgentConversations(orgName: string, limit?: number, after?: string, clusterName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiAgentConversationList>> {
765
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAIAgentConversations(orgName, limit, after, clusterName, options);
703
766
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
704
767
  const localVarOperationServerBasePath = operationServerMap['AIAgentApi.listAIAgentConversations']?.[localVarOperationServerIndex]?.url;
705
768
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -827,6 +890,16 @@ export const AIAgentApiFactory = function (configuration?: Configuration, basePa
827
890
  createAIAgentConversation(requestParameters: AIAgentApiCreateAIAgentConversationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentConversation> {
828
891
  return localVarFp.createAIAgentConversation(requestParameters.orgName, requestParameters.aiAgentCreateConversationRequest, options).then((request) => request(axios, basePath));
829
892
  },
893
+ /**
894
+ *
895
+ * @summary Delete an AI diagnosis conversation
896
+ * @param {AIAgentApiDeleteAIAgentConversationRequest} requestParameters Request parameters.
897
+ * @param {*} [options] Override http request option.
898
+ * @throws {RequiredError}
899
+ */
900
+ deleteAIAgentConversation(requestParameters: AIAgentApiDeleteAIAgentConversationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentDeleteConversationResponse> {
901
+ return localVarFp.deleteAIAgentConversation(requestParameters.orgName, requestParameters.conversationId, options).then((request) => request(axios, basePath));
902
+ },
830
903
  /**
831
904
  *
832
905
  * @summary Get an AI diagnosis conversation
@@ -865,7 +938,7 @@ export const AIAgentApiFactory = function (configuration?: Configuration, basePa
865
938
  * @throws {RequiredError}
866
939
  */
867
940
  listAIAgentConversations(requestParameters: AIAgentApiListAIAgentConversationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentConversationList> {
868
- return localVarFp.listAIAgentConversations(requestParameters.orgName, requestParameters.limit, requestParameters.after, options).then((request) => request(axios, basePath));
941
+ return localVarFp.listAIAgentConversations(requestParameters.orgName, requestParameters.limit, requestParameters.after, requestParameters.clusterName, options).then((request) => request(axios, basePath));
869
942
  },
870
943
  /**
871
944
  *
@@ -956,6 +1029,16 @@ export interface AIAgentApiInterface {
956
1029
  */
957
1030
  createAIAgentConversation(requestParameters: AIAgentApiCreateAIAgentConversationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentConversation>;
958
1031
 
1032
+ /**
1033
+ *
1034
+ * @summary Delete an AI diagnosis conversation
1035
+ * @param {AIAgentApiDeleteAIAgentConversationRequest} requestParameters Request parameters.
1036
+ * @param {*} [options] Override http request option.
1037
+ * @throws {RequiredError}
1038
+ * @memberof AIAgentApiInterface
1039
+ */
1040
+ deleteAIAgentConversation(requestParameters: AIAgentApiDeleteAIAgentConversationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentDeleteConversationResponse>;
1041
+
959
1042
  /**
960
1043
  *
961
1044
  * @summary Get an AI diagnosis conversation
@@ -1114,6 +1197,27 @@ export interface AIAgentApiCreateAIAgentConversationRequest {
1114
1197
  readonly aiAgentCreateConversationRequest: AiAgentCreateConversationRequest
1115
1198
  }
1116
1199
 
1200
+ /**
1201
+ * Request parameters for deleteAIAgentConversation operation in AIAgentApi.
1202
+ * @export
1203
+ * @interface AIAgentApiDeleteAIAgentConversationRequest
1204
+ */
1205
+ export interface AIAgentApiDeleteAIAgentConversationRequest {
1206
+ /**
1207
+ *
1208
+ * @type {string}
1209
+ * @memberof AIAgentApiDeleteAIAgentConversation
1210
+ */
1211
+ readonly orgName: string
1212
+
1213
+ /**
1214
+ *
1215
+ * @type {string}
1216
+ * @memberof AIAgentApiDeleteAIAgentConversation
1217
+ */
1218
+ readonly conversationId: string
1219
+ }
1220
+
1117
1221
  /**
1118
1222
  * Request parameters for getAIAgentConversation operation in AIAgentApi.
1119
1223
  * @export
@@ -1203,6 +1307,13 @@ export interface AIAgentApiListAIAgentConversationsRequest {
1203
1307
  * @memberof AIAgentApiListAIAgentConversations
1204
1308
  */
1205
1309
  readonly after?: string
1310
+
1311
+ /**
1312
+ *
1313
+ * @type {string}
1314
+ * @memberof AIAgentApiListAIAgentConversations
1315
+ */
1316
+ readonly clusterName?: string
1206
1317
  }
1207
1318
 
1208
1319
  /**
@@ -1425,6 +1536,18 @@ export class AIAgentApi extends BaseAPI implements AIAgentApiInterface {
1425
1536
  return AIAgentApiFp(this.configuration).createAIAgentConversation(requestParameters.orgName, requestParameters.aiAgentCreateConversationRequest, options).then((request) => request(this.axios, this.basePath));
1426
1537
  }
1427
1538
 
1539
+ /**
1540
+ *
1541
+ * @summary Delete an AI diagnosis conversation
1542
+ * @param {AIAgentApiDeleteAIAgentConversationRequest} requestParameters Request parameters.
1543
+ * @param {*} [options] Override http request option.
1544
+ * @throws {RequiredError}
1545
+ * @memberof AIAgentApi
1546
+ */
1547
+ public deleteAIAgentConversation(requestParameters: AIAgentApiDeleteAIAgentConversationRequest, options?: RawAxiosRequestConfig) {
1548
+ return AIAgentApiFp(this.configuration).deleteAIAgentConversation(requestParameters.orgName, requestParameters.conversationId, options).then((request) => request(this.axios, this.basePath));
1549
+ }
1550
+
1428
1551
  /**
1429
1552
  *
1430
1553
  * @summary Get an AI diagnosis conversation
@@ -1470,7 +1593,7 @@ export class AIAgentApi extends BaseAPI implements AIAgentApiInterface {
1470
1593
  * @memberof AIAgentApi
1471
1594
  */
1472
1595
  public listAIAgentConversations(requestParameters: AIAgentApiListAIAgentConversationsRequest, options?: RawAxiosRequestConfig) {
1473
- return AIAgentApiFp(this.configuration).listAIAgentConversations(requestParameters.orgName, requestParameters.limit, requestParameters.after, options).then((request) => request(this.axios, this.basePath));
1596
+ return AIAgentApiFp(this.configuration).listAIAgentConversations(requestParameters.orgName, requestParameters.limit, requestParameters.after, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1474
1597
  }
1475
1598
 
1476
1599
  /**
@@ -35,6 +35,12 @@ export interface AiAgentConversation {
35
35
  * @memberof AiAgentConversation
36
36
  */
37
37
  'conversationId': string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof AiAgentConversation
42
+ */
43
+ 'entryClusterName'?: string | null;
38
44
  /**
39
45
  *
40
46
  * @type {string}
@@ -32,5 +32,11 @@ export interface AiAgentCreateConversationRequest {
32
32
  * @memberof AiAgentCreateConversationRequest
33
33
  */
34
34
  'model'?: string | null;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof AiAgentCreateConversationRequest
39
+ */
40
+ 'entryClusterName'?: string | null;
35
41
  }
36
42
 
@@ -0,0 +1,36 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface AiAgentDeleteConversationResponse
21
+ */
22
+ export interface AiAgentDeleteConversationResponse {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof AiAgentDeleteConversationResponse
27
+ */
28
+ 'conversationId': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof AiAgentDeleteConversationResponse
33
+ */
34
+ 'status': string;
35
+ }
36
+
@@ -22,6 +22,7 @@
22
22
 
23
23
  export const AiAgentMessagePartType = {
24
24
  text: 'text',
25
+ reasoning_summary: 'reasoning_summary',
25
26
  diagnosis_summary: 'diagnosis_summary',
26
27
  tool_observation_summary: 'tool_observation_summary'
27
28
  } as const;
@@ -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';
@@ -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:
@@ -20875,6 +20913,7 @@ components:
20875
20913
  type: string
20876
20914
  enum:
20877
20915
  - text
20916
+ - reasoning_summary
20878
20917
  - diagnosis_summary
20879
20918
  - tool_observation_summary
20880
20919
  aiAgentMessagePart:
@@ -20933,6 +20972,9 @@ components:
20933
20972
  properties:
20934
20973
  conversationId:
20935
20974
  type: string
20975
+ entryClusterName:
20976
+ type: string
20977
+ x-nullable: true
20936
20978
  title:
20937
20979
  type: string
20938
20980
  x-nullable: true
@@ -20969,6 +21011,19 @@ components:
20969
21011
  model:
20970
21012
  type: string
20971
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
20972
21027
  aiAgentMessageList:
20973
21028
  type: object
20974
21029
  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
@@ -30,6 +30,8 @@ import type { AiAgentConversationList } from '../models';
30
30
  // @ts-ignore
31
31
  import type { AiAgentCreateConversationRequest } from '../models';
32
32
  // @ts-ignore
33
+ import type { AiAgentDeleteConversationResponse } from '../models';
34
+ // @ts-ignore
33
35
  import type { AiAgentEvent } from '../models';
34
36
  // @ts-ignore
35
37
  import type { AiAgentMessageList } from '../models';
@@ -147,6 +149,47 @@ export const AIAgentApiAxiosParamCreator = function (configuration?: Configurati
147
149
  options: localVarRequestOptions,
148
150
  };
149
151
  },
152
+ /**
153
+ *
154
+ * @summary Delete an AI diagnosis conversation
155
+ * @param {string} orgName
156
+ * @param {string} conversationId
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ deleteAIAgentConversation: async (orgName: string, conversationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
161
+ // verify required parameter 'orgName' is not null or undefined
162
+ assertParamExists('deleteAIAgentConversation', 'orgName', orgName)
163
+ // verify required parameter 'conversationId' is not null or undefined
164
+ assertParamExists('deleteAIAgentConversation', 'conversationId', conversationId)
165
+ const localVarPath = `/api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}`
166
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
167
+ .replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
168
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
169
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
170
+ let baseOptions;
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ }
174
+
175
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
176
+ const localVarHeaderParameter = {} as any;
177
+ const localVarQueryParameter = {} as any;
178
+
179
+ // authentication BearerToken required
180
+ await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
181
+
182
+
183
+
184
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
185
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
187
+
188
+ return {
189
+ url: toPathString(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ };
192
+ },
150
193
  /**
151
194
  *
152
195
  * @summary Get an AI diagnosis conversation
@@ -276,10 +319,11 @@ export const AIAgentApiAxiosParamCreator = function (configuration?: Configurati
276
319
  * @param {string} orgName
277
320
  * @param {number} [limit]
278
321
  * @param {string} [after]
322
+ * @param {string} [clusterName]
279
323
  * @param {*} [options] Override http request option.
280
324
  * @throws {RequiredError}
281
325
  */
282
- listAIAgentConversations: async (orgName: string, limit?: number, after?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
326
+ listAIAgentConversations: async (orgName: string, limit?: number, after?: string, clusterName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
283
327
  // verify required parameter 'orgName' is not null or undefined
284
328
  assertParamExists('listAIAgentConversations', 'orgName', orgName)
285
329
  const localVarPath = `/api/v1/organizations/{orgName}/ai-agent/conversations`
@@ -306,6 +350,10 @@ export const AIAgentApiAxiosParamCreator = function (configuration?: Configurati
306
350
  localVarQueryParameter['after'] = after;
307
351
  }
308
352
 
353
+ if (clusterName !== undefined) {
354
+ localVarQueryParameter['clusterName'] = clusterName;
355
+ }
356
+
309
357
 
310
358
 
311
359
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -647,6 +695,20 @@ export const AIAgentApiFp = function(configuration?: Configuration) {
647
695
  const localVarOperationServerBasePath = operationServerMap['AIAgentApi.createAIAgentConversation']?.[localVarOperationServerIndex]?.url;
648
696
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
649
697
  },
698
+ /**
699
+ *
700
+ * @summary Delete an AI diagnosis conversation
701
+ * @param {string} orgName
702
+ * @param {string} conversationId
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ */
706
+ async deleteAIAgentConversation(orgName: string, conversationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiAgentDeleteConversationResponse>> {
707
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAIAgentConversation(orgName, conversationId, options);
708
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
709
+ const localVarOperationServerBasePath = operationServerMap['AIAgentApi.deleteAIAgentConversation']?.[localVarOperationServerIndex]?.url;
710
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
711
+ },
650
712
  /**
651
713
  *
652
714
  * @summary Get an AI diagnosis conversation
@@ -695,11 +757,12 @@ export const AIAgentApiFp = function(configuration?: Configuration) {
695
757
  * @param {string} orgName
696
758
  * @param {number} [limit]
697
759
  * @param {string} [after]
760
+ * @param {string} [clusterName]
698
761
  * @param {*} [options] Override http request option.
699
762
  * @throws {RequiredError}
700
763
  */
701
- async listAIAgentConversations(orgName: string, limit?: number, after?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiAgentConversationList>> {
702
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAIAgentConversations(orgName, limit, after, options);
764
+ async listAIAgentConversations(orgName: string, limit?: number, after?: string, clusterName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiAgentConversationList>> {
765
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAIAgentConversations(orgName, limit, after, clusterName, options);
703
766
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
704
767
  const localVarOperationServerBasePath = operationServerMap['AIAgentApi.listAIAgentConversations']?.[localVarOperationServerIndex]?.url;
705
768
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -827,6 +890,16 @@ export const AIAgentApiFactory = function (configuration?: Configuration, basePa
827
890
  createAIAgentConversation(requestParameters: AIAgentApiCreateAIAgentConversationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentConversation> {
828
891
  return localVarFp.createAIAgentConversation(requestParameters.orgName, requestParameters.aiAgentCreateConversationRequest, options).then((request) => request(axios, basePath));
829
892
  },
893
+ /**
894
+ *
895
+ * @summary Delete an AI diagnosis conversation
896
+ * @param {AIAgentApiDeleteAIAgentConversationRequest} requestParameters Request parameters.
897
+ * @param {*} [options] Override http request option.
898
+ * @throws {RequiredError}
899
+ */
900
+ deleteAIAgentConversation(requestParameters: AIAgentApiDeleteAIAgentConversationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentDeleteConversationResponse> {
901
+ return localVarFp.deleteAIAgentConversation(requestParameters.orgName, requestParameters.conversationId, options).then((request) => request(axios, basePath));
902
+ },
830
903
  /**
831
904
  *
832
905
  * @summary Get an AI diagnosis conversation
@@ -865,7 +938,7 @@ export const AIAgentApiFactory = function (configuration?: Configuration, basePa
865
938
  * @throws {RequiredError}
866
939
  */
867
940
  listAIAgentConversations(requestParameters: AIAgentApiListAIAgentConversationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentConversationList> {
868
- return localVarFp.listAIAgentConversations(requestParameters.orgName, requestParameters.limit, requestParameters.after, options).then((request) => request(axios, basePath));
941
+ return localVarFp.listAIAgentConversations(requestParameters.orgName, requestParameters.limit, requestParameters.after, requestParameters.clusterName, options).then((request) => request(axios, basePath));
869
942
  },
870
943
  /**
871
944
  *
@@ -956,6 +1029,16 @@ export interface AIAgentApiInterface {
956
1029
  */
957
1030
  createAIAgentConversation(requestParameters: AIAgentApiCreateAIAgentConversationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentConversation>;
958
1031
 
1032
+ /**
1033
+ *
1034
+ * @summary Delete an AI diagnosis conversation
1035
+ * @param {AIAgentApiDeleteAIAgentConversationRequest} requestParameters Request parameters.
1036
+ * @param {*} [options] Override http request option.
1037
+ * @throws {RequiredError}
1038
+ * @memberof AIAgentApiInterface
1039
+ */
1040
+ deleteAIAgentConversation(requestParameters: AIAgentApiDeleteAIAgentConversationRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiAgentDeleteConversationResponse>;
1041
+
959
1042
  /**
960
1043
  *
961
1044
  * @summary Get an AI diagnosis conversation
@@ -1114,6 +1197,27 @@ export interface AIAgentApiCreateAIAgentConversationRequest {
1114
1197
  readonly aiAgentCreateConversationRequest: AiAgentCreateConversationRequest
1115
1198
  }
1116
1199
 
1200
+ /**
1201
+ * Request parameters for deleteAIAgentConversation operation in AIAgentApi.
1202
+ * @export
1203
+ * @interface AIAgentApiDeleteAIAgentConversationRequest
1204
+ */
1205
+ export interface AIAgentApiDeleteAIAgentConversationRequest {
1206
+ /**
1207
+ *
1208
+ * @type {string}
1209
+ * @memberof AIAgentApiDeleteAIAgentConversation
1210
+ */
1211
+ readonly orgName: string
1212
+
1213
+ /**
1214
+ *
1215
+ * @type {string}
1216
+ * @memberof AIAgentApiDeleteAIAgentConversation
1217
+ */
1218
+ readonly conversationId: string
1219
+ }
1220
+
1117
1221
  /**
1118
1222
  * Request parameters for getAIAgentConversation operation in AIAgentApi.
1119
1223
  * @export
@@ -1203,6 +1307,13 @@ export interface AIAgentApiListAIAgentConversationsRequest {
1203
1307
  * @memberof AIAgentApiListAIAgentConversations
1204
1308
  */
1205
1309
  readonly after?: string
1310
+
1311
+ /**
1312
+ *
1313
+ * @type {string}
1314
+ * @memberof AIAgentApiListAIAgentConversations
1315
+ */
1316
+ readonly clusterName?: string
1206
1317
  }
1207
1318
 
1208
1319
  /**
@@ -1425,6 +1536,18 @@ export class AIAgentApi extends BaseAPI implements AIAgentApiInterface {
1425
1536
  return AIAgentApiFp(this.configuration).createAIAgentConversation(requestParameters.orgName, requestParameters.aiAgentCreateConversationRequest, options).then((request) => request(this.axios, this.basePath));
1426
1537
  }
1427
1538
 
1539
+ /**
1540
+ *
1541
+ * @summary Delete an AI diagnosis conversation
1542
+ * @param {AIAgentApiDeleteAIAgentConversationRequest} requestParameters Request parameters.
1543
+ * @param {*} [options] Override http request option.
1544
+ * @throws {RequiredError}
1545
+ * @memberof AIAgentApi
1546
+ */
1547
+ public deleteAIAgentConversation(requestParameters: AIAgentApiDeleteAIAgentConversationRequest, options?: RawAxiosRequestConfig) {
1548
+ return AIAgentApiFp(this.configuration).deleteAIAgentConversation(requestParameters.orgName, requestParameters.conversationId, options).then((request) => request(this.axios, this.basePath));
1549
+ }
1550
+
1428
1551
  /**
1429
1552
  *
1430
1553
  * @summary Get an AI diagnosis conversation
@@ -1470,7 +1593,7 @@ export class AIAgentApi extends BaseAPI implements AIAgentApiInterface {
1470
1593
  * @memberof AIAgentApi
1471
1594
  */
1472
1595
  public listAIAgentConversations(requestParameters: AIAgentApiListAIAgentConversationsRequest, options?: RawAxiosRequestConfig) {
1473
- return AIAgentApiFp(this.configuration).listAIAgentConversations(requestParameters.orgName, requestParameters.limit, requestParameters.after, options).then((request) => request(this.axios, this.basePath));
1596
+ return AIAgentApiFp(this.configuration).listAIAgentConversations(requestParameters.orgName, requestParameters.limit, requestParameters.after, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1474
1597
  }
1475
1598
 
1476
1599
  /**
@@ -35,6 +35,12 @@ export interface AiAgentConversation {
35
35
  * @memberof AiAgentConversation
36
36
  */
37
37
  'conversationId': string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof AiAgentConversation
42
+ */
43
+ 'entryClusterName'?: string | null;
38
44
  /**
39
45
  *
40
46
  * @type {string}
@@ -32,5 +32,11 @@ export interface AiAgentCreateConversationRequest {
32
32
  * @memberof AiAgentCreateConversationRequest
33
33
  */
34
34
  'model'?: string | null;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof AiAgentCreateConversationRequest
39
+ */
40
+ 'entryClusterName'?: string | null;
35
41
  }
36
42