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
+ * 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
+
@@ -0,0 +1,113 @@
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 { 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
+
@@ -19,6 +19,7 @@ export * from './ai-agent-conversation';
19
19
  export * from './ai-agent-conversation-list';
20
20
  export * from './ai-agent-conversation-status';
21
21
  export * from './ai-agent-create-conversation-request';
22
+ export * from './ai-agent-delete-conversation-response';
22
23
  export * from './ai-agent-event';
23
24
  export * from './ai-agent-event-type';
24
25
  export * from './ai-agent-message';
@@ -36,6 +37,8 @@ export * from './ai-agent-stop-conversation-response';
36
37
  export * from './ai-agent-tool-confirmation-decision-request';
37
38
  export * from './ai-agent-tool-confirmation-decision-response';
38
39
  export * from './ai-agent-tool-confirmation-status';
40
+ export * from './ai-agent-turn-action';
41
+ export * from './ai-agent-turn-action-list';
39
42
  export * from './ai-agent-turn-status';
40
43
  export * from './ai-conversation';
41
44
  export * from './ai-conversation-list-response';
@@ -14330,6 +14330,11 @@ paths:
14330
14330
  required: false
14331
14331
  schema:
14332
14332
  type: string
14333
+ - name: clusterName
14334
+ in: query
14335
+ required: false
14336
+ schema:
14337
+ type: string
14333
14338
  responses:
14334
14339
  '200':
14335
14340
  description: AI diagnosis conversations
@@ -14407,6 +14412,39 @@ paths:
14407
14412
  $ref: '#/components/responses/404'
14408
14413
  '500':
14409
14414
  $ref: '#/components/responses/500'
14415
+ delete:
14416
+ tags:
14417
+ - AI Agent
14418
+ operationId: deleteAIAgentConversation
14419
+ summary: Delete an AI diagnosis conversation
14420
+ parameters:
14421
+ - name: orgName
14422
+ in: path
14423
+ required: true
14424
+ schema:
14425
+ type: string
14426
+ - name: conversationId
14427
+ in: path
14428
+ required: true
14429
+ schema:
14430
+ type: string
14431
+ responses:
14432
+ '200':
14433
+ description: AI diagnosis conversation deleted
14434
+ content:
14435
+ application/json:
14436
+ schema:
14437
+ $ref: '#/components/schemas/aiAgentDeleteConversationResponse'
14438
+ '401':
14439
+ $ref: '#/components/responses/401'
14440
+ '403':
14441
+ $ref: '#/components/responses/403'
14442
+ '404':
14443
+ $ref: '#/components/responses/404'
14444
+ '409':
14445
+ $ref: '#/components/responses/409'
14446
+ '500':
14447
+ $ref: '#/components/responses/500'
14410
14448
  /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/messages:
14411
14449
  get:
14412
14450
  tags:
@@ -14493,6 +14531,91 @@ paths:
14493
14531
  $ref: '#/components/responses/500'
14494
14532
  '503':
14495
14533
  $ref: '#/components/responses/503'
14534
+ /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/turn-actions:
14535
+ get:
14536
+ tags:
14537
+ - AI Agent
14538
+ operationId: listAIAgentTurnActions
14539
+ summary: List stable AI diagnosis turn process actions
14540
+ parameters:
14541
+ - name: orgName
14542
+ in: path
14543
+ required: true
14544
+ schema:
14545
+ type: string
14546
+ - name: conversationId
14547
+ in: path
14548
+ required: true
14549
+ schema:
14550
+ type: string
14551
+ - name: turnId
14552
+ in: query
14553
+ required: false
14554
+ schema:
14555
+ type: string
14556
+ - name: after
14557
+ in: query
14558
+ required: false
14559
+ schema:
14560
+ type: string
14561
+ - name: limit
14562
+ in: query
14563
+ required: false
14564
+ schema:
14565
+ type: integer
14566
+ default: 100
14567
+ responses:
14568
+ '200':
14569
+ description: Stable AI diagnosis process actions
14570
+ content:
14571
+ application/json:
14572
+ schema:
14573
+ $ref: '#/components/schemas/aiAgentTurnActionList'
14574
+ '401':
14575
+ $ref: '#/components/responses/401'
14576
+ '403':
14577
+ $ref: '#/components/responses/403'
14578
+ '404':
14579
+ $ref: '#/components/responses/404'
14580
+ '500':
14581
+ $ref: '#/components/responses/500'
14582
+ /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/turn-actions/{actionId}:
14583
+ get:
14584
+ tags:
14585
+ - AI Agent
14586
+ operationId: getAIAgentTurnAction
14587
+ summary: Get one stable AI diagnosis turn process action
14588
+ parameters:
14589
+ - name: orgName
14590
+ in: path
14591
+ required: true
14592
+ schema:
14593
+ type: string
14594
+ - name: conversationId
14595
+ in: path
14596
+ required: true
14597
+ schema:
14598
+ type: string
14599
+ - name: actionId
14600
+ in: path
14601
+ required: true
14602
+ schema:
14603
+ type: string
14604
+ responses:
14605
+ '200':
14606
+ description: AI diagnosis process action detail
14607
+ content:
14608
+ application/json:
14609
+ schema:
14610
+ $ref: '#/components/schemas/aiAgentTurnAction'
14611
+ '401':
14612
+ $ref: '#/components/responses/401'
14613
+ '403':
14614
+ $ref: '#/components/responses/403'
14615
+ '404':
14616
+ $ref: '#/components/responses/404'
14617
+ '500':
14618
+ $ref: '#/components/responses/500'
14496
14619
  /api/v1/organizations/{orgName}/ai-agent/conversations/{conversationId}/events:
14497
14620
  get:
14498
14621
  tags:
@@ -28503,6 +28626,7 @@ components:
28503
28626
  type: string
28504
28627
  enum:
28505
28628
  - text
28629
+ - reasoning_summary
28506
28630
  - diagnosis_summary
28507
28631
  - tool_observation_summary
28508
28632
  aiAgentMessagePart:
@@ -28561,6 +28685,9 @@ components:
28561
28685
  properties:
28562
28686
  conversationId:
28563
28687
  type: string
28688
+ entryClusterName:
28689
+ type: string
28690
+ x-nullable: true
28564
28691
  title:
28565
28692
  type: string
28566
28693
  x-nullable: true
@@ -28597,6 +28724,19 @@ components:
28597
28724
  model:
28598
28725
  type: string
28599
28726
  x-nullable: true
28727
+ entryClusterName:
28728
+ type: string
28729
+ x-nullable: true
28730
+ aiAgentDeleteConversationResponse:
28731
+ type: object
28732
+ required:
28733
+ - conversationId
28734
+ - status
28735
+ properties:
28736
+ conversationId:
28737
+ type: string
28738
+ status:
28739
+ type: string
28600
28740
  aiAgentMessageList:
28601
28741
  type: object
28602
28742
  required:
@@ -28647,6 +28787,7 @@ components:
28647
28787
  type: string
28648
28788
  enum:
28649
28789
  - cloud.conversation.ready
28790
+ - cloud.stream.connected
28650
28791
  - cloud.turn.started
28651
28792
  - message.delta
28652
28793
  - message.interim
@@ -28662,6 +28803,63 @@ components:
28662
28803
  - run.completed
28663
28804
  - run.failed
28664
28805
  - run.cancelled
28806
+ aiAgentTurnAction:
28807
+ type: object
28808
+ required:
28809
+ - actionId
28810
+ - conversationId
28811
+ - turnId
28812
+ - type
28813
+ - title
28814
+ - hasDetail
28815
+ - createdAt
28816
+ properties:
28817
+ actionId:
28818
+ type: string
28819
+ conversationId:
28820
+ type: string
28821
+ turnId:
28822
+ type: string
28823
+ messageId:
28824
+ type: string
28825
+ x-nullable: true
28826
+ type:
28827
+ $ref: '#/components/schemas/aiAgentEventType'
28828
+ status:
28829
+ type: string
28830
+ x-nullable: true
28831
+ title:
28832
+ type: string
28833
+ summary:
28834
+ type: string
28835
+ x-nullable: true
28836
+ toolName:
28837
+ type: string
28838
+ x-nullable: true
28839
+ target:
28840
+ type: string
28841
+ x-nullable: true
28842
+ confirmationId:
28843
+ type: string
28844
+ x-nullable: true
28845
+ hasDetail:
28846
+ type: boolean
28847
+ detail:
28848
+ type: object
28849
+ additionalProperties: true
28850
+ x-nullable: true
28851
+ createdAt:
28852
+ type: string
28853
+ format: date-time
28854
+ aiAgentTurnActionList:
28855
+ type: object
28856
+ required:
28857
+ - items
28858
+ properties:
28859
+ items:
28860
+ type: array
28861
+ items:
28862
+ $ref: '#/components/schemas/aiAgentTurnAction'
28665
28863
  aiAgentEvent:
28666
28864
  type: object
28667
28865
  required: