@keboola/api-client 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +456 -0
- package/dist/ai/index.cjs +203 -0
- package/dist/ai/index.cjs.map +1 -0
- package/dist/ai/index.d.cts +35 -0
- package/dist/ai/index.d.ts +35 -0
- package/dist/ai/index.js +197 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/types.cjs +4 -0
- package/dist/ai/types.cjs.map +1 -0
- package/dist/ai/types.d.cts +2 -0
- package/dist/ai/types.d.ts +2 -0
- package/dist/ai/types.js +3 -0
- package/dist/ai/types.js.map +1 -0
- package/dist/assets/index.cjs +182 -0
- package/dist/assets/index.cjs.map +1 -0
- package/dist/assets/index.d.cts +9 -0
- package/dist/assets/index.d.ts +9 -0
- package/dist/assets/index.js +176 -0
- package/dist/assets/index.js.map +1 -0
- package/dist/assets/types.cjs +4 -0
- package/dist/assets/types.cjs.map +1 -0
- package/dist/assets/types.d.cts +8 -0
- package/dist/assets/types.d.ts +8 -0
- package/dist/assets/types.js +3 -0
- package/dist/assets/types.js.map +1 -0
- package/dist/authMiddleware-BTFSCMTE.d.ts +11 -0
- package/dist/authMiddleware-BteBe1Bt.d.cts +11 -0
- package/dist/chat/index.cjs +428 -0
- package/dist/chat/index.cjs.map +1 -0
- package/dist/chat/index.d.cts +51 -0
- package/dist/chat/index.d.ts +51 -0
- package/dist/chat/index.js +422 -0
- package/dist/chat/index.js.map +1 -0
- package/dist/chat/suggestions.cjs +158 -0
- package/dist/chat/suggestions.cjs.map +1 -0
- package/dist/chat/suggestions.d.cts +437 -0
- package/dist/chat/suggestions.d.ts +437 -0
- package/dist/chat/suggestions.js +140 -0
- package/dist/chat/suggestions.js.map +1 -0
- package/dist/chat/types.cjs +10 -0
- package/dist/chat/types.cjs.map +1 -0
- package/dist/chat/types.d.cts +3 -0
- package/dist/chat/types.d.ts +3 -0
- package/dist/chat/types.js +8 -0
- package/dist/chat/types.js.map +1 -0
- package/dist/createGenericFetchClient-CLUzu-jY.d.cts +18 -0
- package/dist/createGenericFetchClient-DEakI3F1.d.ts +18 -0
- package/dist/createOpenapiFetchClient-CpXmAIFB.d.cts +24 -0
- package/dist/createOpenapiFetchClient-_sm4bchL.d.ts +24 -0
- package/dist/dataScience/index.cjs +416 -0
- package/dist/dataScience/index.cjs.map +1 -0
- package/dist/dataScience/index.d.cts +191 -0
- package/dist/dataScience/index.d.ts +191 -0
- package/dist/dataScience/index.js +388 -0
- package/dist/dataScience/index.js.map +1 -0
- package/dist/dataScience/types.cjs +4 -0
- package/dist/dataScience/types.cjs.map +1 -0
- package/dist/dataScience/types.d.cts +2 -0
- package/dist/dataScience/types.d.ts +2 -0
- package/dist/dataScience/types.js +3 -0
- package/dist/dataScience/types.js.map +1 -0
- package/dist/editor/index.cjs +275 -0
- package/dist/editor/index.cjs.map +1 -0
- package/dist/editor/index.d.cts +172 -0
- package/dist/editor/index.d.ts +172 -0
- package/dist/editor/index.js +269 -0
- package/dist/editor/index.js.map +1 -0
- package/dist/editor/types.cjs +4 -0
- package/dist/editor/types.cjs.map +1 -0
- package/dist/editor/types.d.cts +2 -0
- package/dist/editor/types.d.ts +2 -0
- package/dist/editor/types.js +3 -0
- package/dist/editor/types.js.map +1 -0
- package/dist/encryption/index.cjs +192 -0
- package/dist/encryption/index.cjs.map +1 -0
- package/dist/encryption/index.d.cts +14 -0
- package/dist/encryption/index.d.ts +14 -0
- package/dist/encryption/index.js +186 -0
- package/dist/encryption/index.js.map +1 -0
- package/dist/encryption/types.cjs +4 -0
- package/dist/encryption/types.cjs.map +1 -0
- package/dist/encryption/types.d.cts +8 -0
- package/dist/encryption/types.d.ts +8 -0
- package/dist/encryption/types.js +3 -0
- package/dist/encryption/types.js.map +1 -0
- package/dist/import/index.cjs +198 -0
- package/dist/import/index.cjs.map +1 -0
- package/dist/import/index.d.cts +9 -0
- package/dist/import/index.d.ts +9 -0
- package/dist/import/index.js +192 -0
- package/dist/import/index.js.map +1 -0
- package/dist/index.cjs +3910 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3108 -0
- package/dist/index.d.ts +3108 -0
- package/dist/index.js +3858 -0
- package/dist/index.js.map +1 -0
- package/dist/keboolaUID-D1DGSbge.d.cts +19 -0
- package/dist/keboolaUID-D1DGSbge.d.ts +19 -0
- package/dist/management/index.cjs +872 -0
- package/dist/management/index.cjs.map +1 -0
- package/dist/management/index.d.cts +440 -0
- package/dist/management/index.d.ts +440 -0
- package/dist/management/index.js +865 -0
- package/dist/management/index.js.map +1 -0
- package/dist/management/types.cjs +4 -0
- package/dist/management/types.cjs.map +1 -0
- package/dist/management/types.d.cts +9 -0
- package/dist/management/types.d.ts +9 -0
- package/dist/management/types.js +3 -0
- package/dist/management/types.js.map +1 -0
- package/dist/metastore/index.cjs +339 -0
- package/dist/metastore/index.cjs.map +1 -0
- package/dist/metastore/index.d.cts +52 -0
- package/dist/metastore/index.d.ts +52 -0
- package/dist/metastore/index.js +333 -0
- package/dist/metastore/index.js.map +1 -0
- package/dist/metastore/types.cjs +4 -0
- package/dist/metastore/types.cjs.map +1 -0
- package/dist/metastore/types.d.cts +2 -0
- package/dist/metastore/types.d.ts +2 -0
- package/dist/metastore/types.js +3 -0
- package/dist/metastore/types.js.map +1 -0
- package/dist/queryService/index.cjs +250 -0
- package/dist/queryService/index.cjs.map +1 -0
- package/dist/queryService/index.d.cts +39 -0
- package/dist/queryService/index.d.ts +39 -0
- package/dist/queryService/index.js +244 -0
- package/dist/queryService/index.js.map +1 -0
- package/dist/queryService/types.cjs +4 -0
- package/dist/queryService/types.cjs.map +1 -0
- package/dist/queryService/types.d.cts +2 -0
- package/dist/queryService/types.d.ts +2 -0
- package/dist/queryService/types.js +3 -0
- package/dist/queryService/types.js.map +1 -0
- package/dist/queue/index.cjs +192 -0
- package/dist/queue/index.cjs.map +1 -0
- package/dist/queue/index.d.cts +133 -0
- package/dist/queue/index.d.ts +133 -0
- package/dist/queue/index.js +186 -0
- package/dist/queue/index.js.map +1 -0
- package/dist/queue/types.cjs +4 -0
- package/dist/queue/types.cjs.map +1 -0
- package/dist/queue/types.d.cts +2 -0
- package/dist/queue/types.d.ts +2 -0
- package/dist/queue/types.js +3 -0
- package/dist/queue/types.js.map +1 -0
- package/dist/sdk/storage/index.cjs +96 -0
- package/dist/sdk/storage/index.cjs.map +1 -0
- package/dist/sdk/storage/index.d.cts +24 -0
- package/dist/sdk/storage/index.d.ts +24 -0
- package/dist/sdk/storage/index.js +94 -0
- package/dist/sdk/storage/index.js.map +1 -0
- package/dist/sdk/tag/index.cjs +210 -0
- package/dist/sdk/tag/index.cjs.map +1 -0
- package/dist/sdk/tag/index.d.cts +25 -0
- package/dist/sdk/tag/index.d.ts +25 -0
- package/dist/sdk/tag/index.js +208 -0
- package/dist/sdk/tag/index.js.map +1 -0
- package/dist/sdk/tag/types.cjs +4 -0
- package/dist/sdk/tag/types.cjs.map +1 -0
- package/dist/sdk/tag/types.d.cts +30 -0
- package/dist/sdk/tag/types.d.ts +30 -0
- package/dist/sdk/tag/types.js +3 -0
- package/dist/sdk/tag/types.js.map +1 -0
- package/dist/status/index.cjs +178 -0
- package/dist/status/index.cjs.map +1 -0
- package/dist/status/index.d.cts +10 -0
- package/dist/status/index.d.ts +10 -0
- package/dist/status/index.js +172 -0
- package/dist/status/index.js.map +1 -0
- package/dist/status/types.cjs +4 -0
- package/dist/status/types.cjs.map +1 -0
- package/dist/status/types.d.cts +19 -0
- package/dist/status/types.d.ts +19 -0
- package/dist/status/types.js +3 -0
- package/dist/status/types.js.map +1 -0
- package/dist/storage/index.cjs +1021 -0
- package/dist/storage/index.cjs.map +1 -0
- package/dist/storage/index.d.cts +12 -0
- package/dist/storage/index.d.ts +12 -0
- package/dist/storage/index.js +1014 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/types.cjs +4 -0
- package/dist/storage/types.cjs.map +1 -0
- package/dist/storage/types.d.cts +10976 -0
- package/dist/storage/types.d.ts +10976 -0
- package/dist/storage/types.js +3 -0
- package/dist/storage/types.js.map +1 -0
- package/dist/storageClient-DPLh_p0V.d.cts +608 -0
- package/dist/storageClient-YVWer22Y.d.ts +608 -0
- package/dist/syncActions/index.cjs +366 -0
- package/dist/syncActions/index.cjs.map +1 -0
- package/dist/syncActions/index.d.cts +94 -0
- package/dist/syncActions/index.d.ts +94 -0
- package/dist/syncActions/index.js +341 -0
- package/dist/syncActions/index.js.map +1 -0
- package/dist/syncActions/types.cjs +4 -0
- package/dist/syncActions/types.cjs.map +1 -0
- package/dist/syncActions/types.d.cts +261 -0
- package/dist/syncActions/types.d.ts +261 -0
- package/dist/syncActions/types.js +3 -0
- package/dist/syncActions/types.js.map +1 -0
- package/dist/telemetry/index.cjs +189 -0
- package/dist/telemetry/index.cjs.map +1 -0
- package/dist/telemetry/index.d.cts +13 -0
- package/dist/telemetry/index.d.ts +13 -0
- package/dist/telemetry/index.js +183 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/telemetry/types.cjs +4 -0
- package/dist/telemetry/types.cjs.map +1 -0
- package/dist/telemetry/types.d.cts +12 -0
- package/dist/telemetry/types.d.ts +12 -0
- package/dist/telemetry/types.js +3 -0
- package/dist/telemetry/types.js.map +1 -0
- package/dist/types-B51cQMrX.d.ts +1408 -0
- package/dist/types-B7k8S4ki.d.ts +1520 -0
- package/dist/types-BNQK_jR_.d.cts +1520 -0
- package/dist/types-BY0tjg2Q.d.ts +1079 -0
- package/dist/types-BeShtGlc.d.cts +8591 -0
- package/dist/types-BeShtGlc.d.ts +8591 -0
- package/dist/types-BjrNNn5I.d.ts +1643 -0
- package/dist/types-C-bd4ArM.d.cts +1079 -0
- package/dist/types-C7mpAfq-.d.cts +64 -0
- package/dist/types-C7mpAfq-.d.ts +64 -0
- package/dist/types-CGMJT3JL.d.ts +943 -0
- package/dist/types-CRSKcua9.d.cts +1314 -0
- package/dist/types-DJ6nbNq5.d.cts +1643 -0
- package/dist/types-DJkU9gvB.d.cts +943 -0
- package/dist/types-DYMMsuU0.d.cts +78 -0
- package/dist/types-DYMMsuU0.d.ts +78 -0
- package/dist/types-Dg1tEsVR.d.cts +17 -0
- package/dist/types-Dg1tEsVR.d.ts +17 -0
- package/dist/types-DgaMV8FF.d.cts +60 -0
- package/dist/types-DgaMV8FF.d.ts +60 -0
- package/dist/types-Dws8mFNY.d.cts +1408 -0
- package/dist/types-cH0_hkCW.d.ts +1314 -0
- package/dist/utils-BNQZiNOu.d.ts +1657 -0
- package/dist/utils-DE09pDTi.d.cts +1657 -0
- package/dist/vault/index.cjs +225 -0
- package/dist/vault/index.cjs.map +1 -0
- package/dist/vault/index.d.cts +26 -0
- package/dist/vault/index.d.ts +26 -0
- package/dist/vault/index.js +219 -0
- package/dist/vault/index.js.map +1 -0
- package/dist/vault/types.cjs +4 -0
- package/dist/vault/types.cjs.map +1 -0
- package/dist/vault/types.d.cts +390 -0
- package/dist/vault/types.d.ts +390 -0
- package/dist/vault/types.js +3 -0
- package/dist/vault/types.js.map +1 -0
- package/dist/verify/index.cjs +190 -0
- package/dist/verify/index.cjs.map +1 -0
- package/dist/verify/index.d.cts +9 -0
- package/dist/verify/index.d.ts +9 -0
- package/dist/verify/index.js +184 -0
- package/dist/verify/index.js.map +1 -0
- package/dist/verify/types.cjs +4 -0
- package/dist/verify/types.cjs.map +1 -0
- package/dist/verify/types.d.cts +29 -0
- package/dist/verify/types.d.ts +29 -0
- package/dist/verify/types.js +3 -0
- package/dist/verify/types.js.map +1 -0
- package/package.json +570 -0
|
@@ -0,0 +1,1643 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { c as OpenapiQueryType, d as OpenapiPathType, b as OpenapiBodyType, a as OpenapiReturnType } from './types-C7mpAfq-.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This file was auto-generated by openapi-typescript.
|
|
6
|
+
* Do not make direct changes to the file.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
type paths = {
|
|
10
|
+
'/chat': {
|
|
11
|
+
parameters: {
|
|
12
|
+
query?: never;
|
|
13
|
+
header?: never;
|
|
14
|
+
path?: never;
|
|
15
|
+
cookie?: never;
|
|
16
|
+
};
|
|
17
|
+
get?: never;
|
|
18
|
+
put?: never;
|
|
19
|
+
/**
|
|
20
|
+
* Create a new chat message and get AI response
|
|
21
|
+
* @description Send a message to the AI chatbot and receive a streaming response. The "id" field is required and should be a UUIDv4 generated by the frontend.
|
|
22
|
+
*/
|
|
23
|
+
post: {
|
|
24
|
+
parameters: {
|
|
25
|
+
query?: never;
|
|
26
|
+
header?: never;
|
|
27
|
+
path?: never;
|
|
28
|
+
cookie?: never;
|
|
29
|
+
};
|
|
30
|
+
requestBody: {
|
|
31
|
+
content: {
|
|
32
|
+
'application/json': components['schemas']['ChatRequest'];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
responses: {
|
|
36
|
+
/** @description Streaming AI response. If the conversation is too long and compaction is supported, the stream may include a compaction-pending event instead of the AI response. */
|
|
37
|
+
200: {
|
|
38
|
+
headers: {
|
|
39
|
+
[name: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
content: {
|
|
42
|
+
'text/event-stream': string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
/** @description Bad request */
|
|
46
|
+
400: {
|
|
47
|
+
headers: {
|
|
48
|
+
[name: string]: unknown;
|
|
49
|
+
};
|
|
50
|
+
content: {
|
|
51
|
+
'application/json': components['schemas']['Error'];
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
/** @description Unauthorized */
|
|
55
|
+
401: {
|
|
56
|
+
headers: {
|
|
57
|
+
[name: string]: unknown;
|
|
58
|
+
};
|
|
59
|
+
content: {
|
|
60
|
+
'application/json': components['schemas']['Error'];
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
/** @description Forbidden */
|
|
64
|
+
403: {
|
|
65
|
+
headers: {
|
|
66
|
+
[name: string]: unknown;
|
|
67
|
+
};
|
|
68
|
+
content: {
|
|
69
|
+
'application/json': components['schemas']['Error'];
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
/** @description Rate limit exceeded */
|
|
73
|
+
429: {
|
|
74
|
+
headers: {
|
|
75
|
+
[name: string]: unknown;
|
|
76
|
+
};
|
|
77
|
+
content: {
|
|
78
|
+
'application/json': components['schemas']['Error'];
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Delete a chat
|
|
85
|
+
* @description Delete a chat by ID
|
|
86
|
+
*/
|
|
87
|
+
delete: {
|
|
88
|
+
parameters: {
|
|
89
|
+
query: {
|
|
90
|
+
/** @description Chat ID to delete */
|
|
91
|
+
id: string;
|
|
92
|
+
};
|
|
93
|
+
header?: never;
|
|
94
|
+
path?: never;
|
|
95
|
+
cookie?: never;
|
|
96
|
+
};
|
|
97
|
+
requestBody?: never;
|
|
98
|
+
responses: {
|
|
99
|
+
/** @description Chat deleted successfully */
|
|
100
|
+
200: {
|
|
101
|
+
headers: {
|
|
102
|
+
[name: string]: unknown;
|
|
103
|
+
};
|
|
104
|
+
content: {
|
|
105
|
+
'application/json': components['schemas']['Chat'];
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
/** @description Bad request */
|
|
109
|
+
400: {
|
|
110
|
+
headers: {
|
|
111
|
+
[name: string]: unknown;
|
|
112
|
+
};
|
|
113
|
+
content: {
|
|
114
|
+
'application/json': components['schemas']['Error'];
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
/** @description Unauthorized */
|
|
118
|
+
401: {
|
|
119
|
+
headers: {
|
|
120
|
+
[name: string]: unknown;
|
|
121
|
+
};
|
|
122
|
+
content: {
|
|
123
|
+
'application/json': components['schemas']['Error'];
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
/** @description Forbidden */
|
|
127
|
+
403: {
|
|
128
|
+
headers: {
|
|
129
|
+
[name: string]: unknown;
|
|
130
|
+
};
|
|
131
|
+
content: {
|
|
132
|
+
'application/json': components['schemas']['Error'];
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
options?: never;
|
|
138
|
+
head?: never;
|
|
139
|
+
patch?: never;
|
|
140
|
+
trace?: never;
|
|
141
|
+
};
|
|
142
|
+
'/history': {
|
|
143
|
+
parameters: {
|
|
144
|
+
query?: never;
|
|
145
|
+
header?: never;
|
|
146
|
+
path?: never;
|
|
147
|
+
cookie?: never;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Get chat history
|
|
151
|
+
* @description Retrieve paginated list of user's chats
|
|
152
|
+
*/
|
|
153
|
+
get: {
|
|
154
|
+
parameters: {
|
|
155
|
+
query?: {
|
|
156
|
+
/** @description Number of chats to return */
|
|
157
|
+
limit?: number;
|
|
158
|
+
/** @description Chat ID to start pagination after */
|
|
159
|
+
starting_after?: string;
|
|
160
|
+
/** @description Chat ID to end pagination before */
|
|
161
|
+
ending_before?: string;
|
|
162
|
+
};
|
|
163
|
+
header?: never;
|
|
164
|
+
path?: never;
|
|
165
|
+
cookie?: never;
|
|
166
|
+
};
|
|
167
|
+
requestBody?: never;
|
|
168
|
+
responses: {
|
|
169
|
+
/** @description List of chats with pagination info */
|
|
170
|
+
200: {
|
|
171
|
+
headers: {
|
|
172
|
+
[name: string]: unknown;
|
|
173
|
+
};
|
|
174
|
+
content: {
|
|
175
|
+
'application/json': {
|
|
176
|
+
chats: components['schemas']['Chat'][];
|
|
177
|
+
/** @description Whether there are more chats available */
|
|
178
|
+
hasMore: boolean;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
/** @description Bad request */
|
|
183
|
+
400: {
|
|
184
|
+
headers: {
|
|
185
|
+
[name: string]: unknown;
|
|
186
|
+
};
|
|
187
|
+
content: {
|
|
188
|
+
'application/json': components['schemas']['Error'];
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
/** @description Unauthorized */
|
|
192
|
+
401: {
|
|
193
|
+
headers: {
|
|
194
|
+
[name: string]: unknown;
|
|
195
|
+
};
|
|
196
|
+
content: {
|
|
197
|
+
'application/json': components['schemas']['Error'];
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
put?: never;
|
|
203
|
+
post?: never;
|
|
204
|
+
delete?: never;
|
|
205
|
+
options?: never;
|
|
206
|
+
head?: never;
|
|
207
|
+
patch?: never;
|
|
208
|
+
trace?: never;
|
|
209
|
+
};
|
|
210
|
+
'/chat/{id}': {
|
|
211
|
+
parameters: {
|
|
212
|
+
query?: never;
|
|
213
|
+
header?: never;
|
|
214
|
+
path?: never;
|
|
215
|
+
cookie?: never;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Get chat details and message history
|
|
219
|
+
* @description Retrieve complete chat details including all messages in the conversation
|
|
220
|
+
*/
|
|
221
|
+
get: {
|
|
222
|
+
parameters: {
|
|
223
|
+
query?: never;
|
|
224
|
+
header?: never;
|
|
225
|
+
path: {
|
|
226
|
+
/** @description Chat ID to retrieve */
|
|
227
|
+
id: string;
|
|
228
|
+
};
|
|
229
|
+
cookie?: never;
|
|
230
|
+
};
|
|
231
|
+
requestBody?: never;
|
|
232
|
+
responses: {
|
|
233
|
+
/** @description Chat details with message history */
|
|
234
|
+
200: {
|
|
235
|
+
headers: {
|
|
236
|
+
[name: string]: unknown;
|
|
237
|
+
};
|
|
238
|
+
content: {
|
|
239
|
+
'application/json': components['schemas']['ChatWithMessages'];
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
/** @description Bad request */
|
|
243
|
+
400: {
|
|
244
|
+
headers: {
|
|
245
|
+
[name: string]: unknown;
|
|
246
|
+
};
|
|
247
|
+
content: {
|
|
248
|
+
'application/json': components['schemas']['Error'];
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
/** @description Unauthorized */
|
|
252
|
+
401: {
|
|
253
|
+
headers: {
|
|
254
|
+
[name: string]: unknown;
|
|
255
|
+
};
|
|
256
|
+
content: {
|
|
257
|
+
'application/json': components['schemas']['Error'];
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
/** @description Forbidden */
|
|
261
|
+
403: {
|
|
262
|
+
headers: {
|
|
263
|
+
[name: string]: unknown;
|
|
264
|
+
};
|
|
265
|
+
content: {
|
|
266
|
+
'application/json': components['schemas']['Error'];
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
/** @description Chat not found */
|
|
270
|
+
404: {
|
|
271
|
+
headers: {
|
|
272
|
+
[name: string]: unknown;
|
|
273
|
+
};
|
|
274
|
+
content: {
|
|
275
|
+
'application/json': components['schemas']['Error'];
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
put?: never;
|
|
281
|
+
post?: never;
|
|
282
|
+
delete?: never;
|
|
283
|
+
options?: never;
|
|
284
|
+
head?: never;
|
|
285
|
+
patch?: never;
|
|
286
|
+
trace?: never;
|
|
287
|
+
};
|
|
288
|
+
'/chat/{id}/stream': {
|
|
289
|
+
parameters: {
|
|
290
|
+
query?: never;
|
|
291
|
+
header?: never;
|
|
292
|
+
path?: never;
|
|
293
|
+
cookie?: never;
|
|
294
|
+
};
|
|
295
|
+
/**
|
|
296
|
+
* Resume a chat stream
|
|
297
|
+
* @description Resume or restore a streaming chat response for a specific chat
|
|
298
|
+
*/
|
|
299
|
+
get: {
|
|
300
|
+
parameters: {
|
|
301
|
+
query?: never;
|
|
302
|
+
header?: never;
|
|
303
|
+
path: {
|
|
304
|
+
/** @description Chat ID to resume stream for */
|
|
305
|
+
id: string;
|
|
306
|
+
};
|
|
307
|
+
cookie?: never;
|
|
308
|
+
};
|
|
309
|
+
requestBody?: never;
|
|
310
|
+
responses: {
|
|
311
|
+
/** @description Streaming chat response */
|
|
312
|
+
200: {
|
|
313
|
+
headers: {
|
|
314
|
+
[name: string]: unknown;
|
|
315
|
+
};
|
|
316
|
+
content: {
|
|
317
|
+
'text/event-stream': string;
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
/** @description No streaming context available */
|
|
321
|
+
204: {
|
|
322
|
+
headers: {
|
|
323
|
+
[name: string]: unknown;
|
|
324
|
+
};
|
|
325
|
+
content?: never;
|
|
326
|
+
};
|
|
327
|
+
/** @description Bad request */
|
|
328
|
+
400: {
|
|
329
|
+
headers: {
|
|
330
|
+
[name: string]: unknown;
|
|
331
|
+
};
|
|
332
|
+
content: {
|
|
333
|
+
'application/json': components['schemas']['Error'];
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
/** @description Unauthorized */
|
|
337
|
+
401: {
|
|
338
|
+
headers: {
|
|
339
|
+
[name: string]: unknown;
|
|
340
|
+
};
|
|
341
|
+
content: {
|
|
342
|
+
'application/json': components['schemas']['Error'];
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
/** @description Forbidden */
|
|
346
|
+
403: {
|
|
347
|
+
headers: {
|
|
348
|
+
[name: string]: unknown;
|
|
349
|
+
};
|
|
350
|
+
content: {
|
|
351
|
+
'application/json': components['schemas']['Error'];
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
/** @description Chat or stream not found */
|
|
355
|
+
404: {
|
|
356
|
+
headers: {
|
|
357
|
+
[name: string]: unknown;
|
|
358
|
+
};
|
|
359
|
+
content: {
|
|
360
|
+
'application/json': components['schemas']['Error'];
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
put?: never;
|
|
366
|
+
post?: never;
|
|
367
|
+
delete?: never;
|
|
368
|
+
options?: never;
|
|
369
|
+
head?: never;
|
|
370
|
+
patch?: never;
|
|
371
|
+
trace?: never;
|
|
372
|
+
};
|
|
373
|
+
'/docs': {
|
|
374
|
+
parameters: {
|
|
375
|
+
query?: never;
|
|
376
|
+
header?: never;
|
|
377
|
+
path?: never;
|
|
378
|
+
cookie?: never;
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* Get OpenAPI specification
|
|
382
|
+
* @description Returns the OpenAPI/Swagger specification for the API
|
|
383
|
+
*/
|
|
384
|
+
get: {
|
|
385
|
+
parameters: {
|
|
386
|
+
query?: never;
|
|
387
|
+
header?: never;
|
|
388
|
+
path?: never;
|
|
389
|
+
cookie?: never;
|
|
390
|
+
};
|
|
391
|
+
requestBody?: never;
|
|
392
|
+
responses: {
|
|
393
|
+
/** @description OpenAPI specification */
|
|
394
|
+
200: {
|
|
395
|
+
headers: {
|
|
396
|
+
[name: string]: unknown;
|
|
397
|
+
};
|
|
398
|
+
content: {
|
|
399
|
+
'application/json': Record<string, never>;
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
put?: never;
|
|
405
|
+
post?: never;
|
|
406
|
+
delete?: never;
|
|
407
|
+
options?: never;
|
|
408
|
+
head?: never;
|
|
409
|
+
patch?: never;
|
|
410
|
+
trace?: never;
|
|
411
|
+
};
|
|
412
|
+
'/docs/ui': {
|
|
413
|
+
parameters: {
|
|
414
|
+
query?: never;
|
|
415
|
+
header?: never;
|
|
416
|
+
path?: never;
|
|
417
|
+
cookie?: never;
|
|
418
|
+
};
|
|
419
|
+
/**
|
|
420
|
+
* Swagger UI
|
|
421
|
+
* @description Interactive API documentation interface
|
|
422
|
+
*/
|
|
423
|
+
get: {
|
|
424
|
+
parameters: {
|
|
425
|
+
query?: never;
|
|
426
|
+
header?: never;
|
|
427
|
+
path?: never;
|
|
428
|
+
cookie?: never;
|
|
429
|
+
};
|
|
430
|
+
requestBody?: never;
|
|
431
|
+
responses: {
|
|
432
|
+
/** @description Swagger UI HTML page */
|
|
433
|
+
200: {
|
|
434
|
+
headers: {
|
|
435
|
+
[name: string]: unknown;
|
|
436
|
+
};
|
|
437
|
+
content: {
|
|
438
|
+
'text/html': string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
put?: never;
|
|
444
|
+
post?: never;
|
|
445
|
+
delete?: never;
|
|
446
|
+
options?: never;
|
|
447
|
+
head?: never;
|
|
448
|
+
patch?: never;
|
|
449
|
+
trace?: never;
|
|
450
|
+
};
|
|
451
|
+
'/vote': {
|
|
452
|
+
parameters: {
|
|
453
|
+
query?: never;
|
|
454
|
+
header?: never;
|
|
455
|
+
path?: never;
|
|
456
|
+
cookie?: never;
|
|
457
|
+
};
|
|
458
|
+
/**
|
|
459
|
+
* Get votes for a chat
|
|
460
|
+
* @description Retrieve all votes for messages in a specific chat
|
|
461
|
+
*/
|
|
462
|
+
get: {
|
|
463
|
+
parameters: {
|
|
464
|
+
query: {
|
|
465
|
+
/** @description Chat ID to get votes for */
|
|
466
|
+
chatId: string;
|
|
467
|
+
};
|
|
468
|
+
header?: never;
|
|
469
|
+
path?: never;
|
|
470
|
+
cookie?: never;
|
|
471
|
+
};
|
|
472
|
+
requestBody?: never;
|
|
473
|
+
responses: {
|
|
474
|
+
/** @description List of votes */
|
|
475
|
+
200: {
|
|
476
|
+
headers: {
|
|
477
|
+
[name: string]: unknown;
|
|
478
|
+
};
|
|
479
|
+
content: {
|
|
480
|
+
'application/json': components['schemas']['Vote'][];
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
/** @description Bad request */
|
|
484
|
+
400: {
|
|
485
|
+
headers: {
|
|
486
|
+
[name: string]: unknown;
|
|
487
|
+
};
|
|
488
|
+
content: {
|
|
489
|
+
'application/json': components['schemas']['Error'];
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
/** @description Unauthorized */
|
|
493
|
+
401: {
|
|
494
|
+
headers: {
|
|
495
|
+
[name: string]: unknown;
|
|
496
|
+
};
|
|
497
|
+
content: {
|
|
498
|
+
'application/json': components['schemas']['Error'];
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
/** @description Forbidden */
|
|
502
|
+
403: {
|
|
503
|
+
headers: {
|
|
504
|
+
[name: string]: unknown;
|
|
505
|
+
};
|
|
506
|
+
content: {
|
|
507
|
+
'application/json': components['schemas']['Error'];
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
/** @description Chat not found */
|
|
511
|
+
404: {
|
|
512
|
+
headers: {
|
|
513
|
+
[name: string]: unknown;
|
|
514
|
+
};
|
|
515
|
+
content: {
|
|
516
|
+
'application/json': components['schemas']['Error'];
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
put?: never;
|
|
522
|
+
post?: never;
|
|
523
|
+
delete?: never;
|
|
524
|
+
options?: never;
|
|
525
|
+
head?: never;
|
|
526
|
+
/**
|
|
527
|
+
* Vote on a message
|
|
528
|
+
* @description Add or update a vote on a specific message
|
|
529
|
+
*/
|
|
530
|
+
patch: {
|
|
531
|
+
parameters: {
|
|
532
|
+
query?: never;
|
|
533
|
+
header?: never;
|
|
534
|
+
path?: never;
|
|
535
|
+
cookie?: never;
|
|
536
|
+
};
|
|
537
|
+
requestBody: {
|
|
538
|
+
content: {
|
|
539
|
+
'application/json': components['schemas']['VoteRequest'];
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
responses: {
|
|
543
|
+
/** @description Vote recorded successfully */
|
|
544
|
+
200: {
|
|
545
|
+
headers: {
|
|
546
|
+
[name: string]: unknown;
|
|
547
|
+
};
|
|
548
|
+
content?: never;
|
|
549
|
+
};
|
|
550
|
+
/** @description Bad request */
|
|
551
|
+
400: {
|
|
552
|
+
headers: {
|
|
553
|
+
[name: string]: unknown;
|
|
554
|
+
};
|
|
555
|
+
content: {
|
|
556
|
+
'application/json': components['schemas']['Error'];
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
/** @description Unauthorized */
|
|
560
|
+
401: {
|
|
561
|
+
headers: {
|
|
562
|
+
[name: string]: unknown;
|
|
563
|
+
};
|
|
564
|
+
content: {
|
|
565
|
+
'application/json': components['schemas']['Error'];
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
/** @description Forbidden */
|
|
569
|
+
403: {
|
|
570
|
+
headers: {
|
|
571
|
+
[name: string]: unknown;
|
|
572
|
+
};
|
|
573
|
+
content: {
|
|
574
|
+
'application/json': components['schemas']['Error'];
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
/** @description Chat not found */
|
|
578
|
+
404: {
|
|
579
|
+
headers: {
|
|
580
|
+
[name: string]: unknown;
|
|
581
|
+
};
|
|
582
|
+
content: {
|
|
583
|
+
'application/json': components['schemas']['Error'];
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
trace?: never;
|
|
589
|
+
};
|
|
590
|
+
'/api': {
|
|
591
|
+
parameters: {
|
|
592
|
+
query?: never;
|
|
593
|
+
header?: never;
|
|
594
|
+
path?: never;
|
|
595
|
+
cookie?: never;
|
|
596
|
+
};
|
|
597
|
+
/**
|
|
598
|
+
* Get API information and MCP server status
|
|
599
|
+
* @description Returns build/runtime metadata and MCP connectivity details
|
|
600
|
+
*/
|
|
601
|
+
get: {
|
|
602
|
+
parameters: {
|
|
603
|
+
query?: never;
|
|
604
|
+
header?: never;
|
|
605
|
+
path?: never;
|
|
606
|
+
cookie?: never;
|
|
607
|
+
};
|
|
608
|
+
requestBody?: never;
|
|
609
|
+
responses: {
|
|
610
|
+
/** @description API information and MCP server status */
|
|
611
|
+
200: {
|
|
612
|
+
headers: {
|
|
613
|
+
[name: string]: unknown;
|
|
614
|
+
};
|
|
615
|
+
content: {
|
|
616
|
+
'application/json': components['schemas']['ApiInfoResponse'];
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
put?: never;
|
|
622
|
+
post?: never;
|
|
623
|
+
delete?: never;
|
|
624
|
+
options?: never;
|
|
625
|
+
head?: never;
|
|
626
|
+
patch?: never;
|
|
627
|
+
trace?: never;
|
|
628
|
+
};
|
|
629
|
+
'/ping': {
|
|
630
|
+
parameters: {
|
|
631
|
+
query?: never;
|
|
632
|
+
header?: never;
|
|
633
|
+
path?: never;
|
|
634
|
+
cookie?: never;
|
|
635
|
+
};
|
|
636
|
+
/**
|
|
637
|
+
* Readiness probe
|
|
638
|
+
* @description Lightweight uptime check for Kubernetes deployments
|
|
639
|
+
*/
|
|
640
|
+
get: {
|
|
641
|
+
parameters: {
|
|
642
|
+
query?: never;
|
|
643
|
+
header?: never;
|
|
644
|
+
path?: never;
|
|
645
|
+
cookie?: never;
|
|
646
|
+
};
|
|
647
|
+
requestBody?: never;
|
|
648
|
+
responses: {
|
|
649
|
+
/** @description Timestamp response */
|
|
650
|
+
200: {
|
|
651
|
+
headers: {
|
|
652
|
+
[name: string]: unknown;
|
|
653
|
+
};
|
|
654
|
+
content: {
|
|
655
|
+
'application/json': {
|
|
656
|
+
/**
|
|
657
|
+
* Format: date-time
|
|
658
|
+
* @description Current server timestamp in ISO 8601 format
|
|
659
|
+
*/
|
|
660
|
+
timestamp: string;
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
put?: never;
|
|
667
|
+
post?: never;
|
|
668
|
+
delete?: never;
|
|
669
|
+
options?: never;
|
|
670
|
+
head?: never;
|
|
671
|
+
patch?: never;
|
|
672
|
+
trace?: never;
|
|
673
|
+
};
|
|
674
|
+
'/usage': {
|
|
675
|
+
parameters: {
|
|
676
|
+
query?: never;
|
|
677
|
+
header?: never;
|
|
678
|
+
path?: never;
|
|
679
|
+
cookie?: never;
|
|
680
|
+
};
|
|
681
|
+
/**
|
|
682
|
+
* Get rate limit usage information
|
|
683
|
+
* @description Returns the current rate limit usage for the authenticated user in the current project. Shows messages used this month, the monthly limit, and when the limit resets.
|
|
684
|
+
*/
|
|
685
|
+
get: {
|
|
686
|
+
parameters: {
|
|
687
|
+
query?: never;
|
|
688
|
+
header?: never;
|
|
689
|
+
path?: never;
|
|
690
|
+
cookie?: never;
|
|
691
|
+
};
|
|
692
|
+
requestBody?: never;
|
|
693
|
+
responses: {
|
|
694
|
+
/** @description Rate limit usage information */
|
|
695
|
+
200: {
|
|
696
|
+
headers: {
|
|
697
|
+
[name: string]: unknown;
|
|
698
|
+
};
|
|
699
|
+
content: {
|
|
700
|
+
'application/json': components['schemas']['UsageResponse'];
|
|
701
|
+
};
|
|
702
|
+
};
|
|
703
|
+
/** @description Unauthorized */
|
|
704
|
+
401: {
|
|
705
|
+
headers: {
|
|
706
|
+
[name: string]: unknown;
|
|
707
|
+
};
|
|
708
|
+
content: {
|
|
709
|
+
'application/json': components['schemas']['Error'];
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
/** @description Internal server error */
|
|
713
|
+
500: {
|
|
714
|
+
headers: {
|
|
715
|
+
[name: string]: unknown;
|
|
716
|
+
};
|
|
717
|
+
content: {
|
|
718
|
+
'application/json': components['schemas']['Error'];
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
put?: never;
|
|
724
|
+
post?: never;
|
|
725
|
+
delete?: never;
|
|
726
|
+
options?: never;
|
|
727
|
+
head?: never;
|
|
728
|
+
patch?: never;
|
|
729
|
+
trace?: never;
|
|
730
|
+
};
|
|
731
|
+
'/suggestions': {
|
|
732
|
+
parameters: {
|
|
733
|
+
query?: never;
|
|
734
|
+
header?: never;
|
|
735
|
+
path?: never;
|
|
736
|
+
cookie?: never;
|
|
737
|
+
};
|
|
738
|
+
get?: never;
|
|
739
|
+
put?: never;
|
|
740
|
+
/**
|
|
741
|
+
* Generate contextual suggestions
|
|
742
|
+
* @description Generate AI-powered contextual suggestions for supported contexts: dashboard, job-detail, and configuration-detail
|
|
743
|
+
*/
|
|
744
|
+
post: {
|
|
745
|
+
parameters: {
|
|
746
|
+
query?: never;
|
|
747
|
+
header?: never;
|
|
748
|
+
path?: never;
|
|
749
|
+
cookie?: never;
|
|
750
|
+
};
|
|
751
|
+
requestBody: {
|
|
752
|
+
content: {
|
|
753
|
+
'application/json': components['schemas']['SuggestionsRequest'];
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
responses: {
|
|
757
|
+
/** @description Suggestions generated successfully */
|
|
758
|
+
200: {
|
|
759
|
+
headers: {
|
|
760
|
+
[name: string]: unknown;
|
|
761
|
+
};
|
|
762
|
+
content: {
|
|
763
|
+
'application/json': components['schemas']['SuggestionsResponse'];
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
/** @description Bad request */
|
|
767
|
+
400: {
|
|
768
|
+
headers: {
|
|
769
|
+
[name: string]: unknown;
|
|
770
|
+
};
|
|
771
|
+
content: {
|
|
772
|
+
'application/json': components['schemas']['Error'];
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
/** @description Unauthorized */
|
|
776
|
+
401: {
|
|
777
|
+
headers: {
|
|
778
|
+
[name: string]: unknown;
|
|
779
|
+
};
|
|
780
|
+
content: {
|
|
781
|
+
'application/json': components['schemas']['Error'];
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
/** @description Suggestions feature is not enabled for this project */
|
|
785
|
+
403: {
|
|
786
|
+
headers: {
|
|
787
|
+
[name: string]: unknown;
|
|
788
|
+
};
|
|
789
|
+
content: {
|
|
790
|
+
'application/json': components['schemas']['Error'];
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
delete?: never;
|
|
796
|
+
options?: never;
|
|
797
|
+
head?: never;
|
|
798
|
+
patch?: never;
|
|
799
|
+
trace?: never;
|
|
800
|
+
};
|
|
801
|
+
'/settings': {
|
|
802
|
+
parameters: {
|
|
803
|
+
query?: never;
|
|
804
|
+
header?: never;
|
|
805
|
+
path?: never;
|
|
806
|
+
cookie?: never;
|
|
807
|
+
};
|
|
808
|
+
/**
|
|
809
|
+
* Get agent settings
|
|
810
|
+
* @description Retrieve agent settings for the current project
|
|
811
|
+
*/
|
|
812
|
+
get: {
|
|
813
|
+
parameters: {
|
|
814
|
+
query?: never;
|
|
815
|
+
header?: never;
|
|
816
|
+
path?: never;
|
|
817
|
+
cookie?: never;
|
|
818
|
+
};
|
|
819
|
+
requestBody?: never;
|
|
820
|
+
responses: {
|
|
821
|
+
/** @description Agent settings */
|
|
822
|
+
200: {
|
|
823
|
+
headers: {
|
|
824
|
+
[name: string]: unknown;
|
|
825
|
+
};
|
|
826
|
+
content: {
|
|
827
|
+
'application/json': components['schemas']['AgentSettings'];
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
/** @description Bad request */
|
|
831
|
+
400: {
|
|
832
|
+
headers: {
|
|
833
|
+
[name: string]: unknown;
|
|
834
|
+
};
|
|
835
|
+
content: {
|
|
836
|
+
'application/json': components['schemas']['Error'];
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
/** @description Unauthorized */
|
|
840
|
+
401: {
|
|
841
|
+
headers: {
|
|
842
|
+
[name: string]: unknown;
|
|
843
|
+
};
|
|
844
|
+
content: {
|
|
845
|
+
'application/json': components['schemas']['Error'];
|
|
846
|
+
};
|
|
847
|
+
};
|
|
848
|
+
/** @description Internal server error */
|
|
849
|
+
500: {
|
|
850
|
+
headers: {
|
|
851
|
+
[name: string]: unknown;
|
|
852
|
+
};
|
|
853
|
+
content: {
|
|
854
|
+
'application/json': components['schemas']['Error'];
|
|
855
|
+
};
|
|
856
|
+
};
|
|
857
|
+
};
|
|
858
|
+
};
|
|
859
|
+
put?: never;
|
|
860
|
+
post?: never;
|
|
861
|
+
delete?: never;
|
|
862
|
+
options?: never;
|
|
863
|
+
head?: never;
|
|
864
|
+
/**
|
|
865
|
+
* Update agent settings
|
|
866
|
+
* @description Create or update agent settings for the current project
|
|
867
|
+
*/
|
|
868
|
+
patch: {
|
|
869
|
+
parameters: {
|
|
870
|
+
query?: never;
|
|
871
|
+
header?: never;
|
|
872
|
+
path?: never;
|
|
873
|
+
cookie?: never;
|
|
874
|
+
};
|
|
875
|
+
requestBody: {
|
|
876
|
+
content: {
|
|
877
|
+
'application/json': components['schemas']['UpdateAgentSettingsRequest'];
|
|
878
|
+
};
|
|
879
|
+
};
|
|
880
|
+
responses: {
|
|
881
|
+
/** @description Agent settings */
|
|
882
|
+
200: {
|
|
883
|
+
headers: {
|
|
884
|
+
[name: string]: unknown;
|
|
885
|
+
};
|
|
886
|
+
content: {
|
|
887
|
+
'application/json': components['schemas']['AgentSettings'];
|
|
888
|
+
};
|
|
889
|
+
};
|
|
890
|
+
/** @description Bad request */
|
|
891
|
+
400: {
|
|
892
|
+
headers: {
|
|
893
|
+
[name: string]: unknown;
|
|
894
|
+
};
|
|
895
|
+
content: {
|
|
896
|
+
'application/json': components['schemas']['Error'];
|
|
897
|
+
};
|
|
898
|
+
};
|
|
899
|
+
/** @description Unauthorized */
|
|
900
|
+
401: {
|
|
901
|
+
headers: {
|
|
902
|
+
[name: string]: unknown;
|
|
903
|
+
};
|
|
904
|
+
content: {
|
|
905
|
+
'application/json': components['schemas']['Error'];
|
|
906
|
+
};
|
|
907
|
+
};
|
|
908
|
+
/** @description Internal server error */
|
|
909
|
+
500: {
|
|
910
|
+
headers: {
|
|
911
|
+
[name: string]: unknown;
|
|
912
|
+
};
|
|
913
|
+
content: {
|
|
914
|
+
'application/json': components['schemas']['Error'];
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
trace?: never;
|
|
920
|
+
};
|
|
921
|
+
'/settings/tools': {
|
|
922
|
+
parameters: {
|
|
923
|
+
query?: never;
|
|
924
|
+
header?: never;
|
|
925
|
+
path?: never;
|
|
926
|
+
cookie?: never;
|
|
927
|
+
};
|
|
928
|
+
/**
|
|
929
|
+
* List available MCP tools
|
|
930
|
+
* @description Returns all available MCP tools with their names, descriptions, and read-only status. Used by the tool permissions UI to display the list of configurable tools.
|
|
931
|
+
*/
|
|
932
|
+
get: {
|
|
933
|
+
parameters: {
|
|
934
|
+
query?: never;
|
|
935
|
+
header?: never;
|
|
936
|
+
path?: never;
|
|
937
|
+
cookie?: never;
|
|
938
|
+
};
|
|
939
|
+
requestBody?: never;
|
|
940
|
+
responses: {
|
|
941
|
+
/** @description List of available tools */
|
|
942
|
+
200: {
|
|
943
|
+
headers: {
|
|
944
|
+
[name: string]: unknown;
|
|
945
|
+
};
|
|
946
|
+
content: {
|
|
947
|
+
'application/json': components['schemas']['ToolsListResponse'];
|
|
948
|
+
};
|
|
949
|
+
};
|
|
950
|
+
/** @description Bad request */
|
|
951
|
+
400: {
|
|
952
|
+
headers: {
|
|
953
|
+
[name: string]: unknown;
|
|
954
|
+
};
|
|
955
|
+
content: {
|
|
956
|
+
'application/json': components['schemas']['Error'];
|
|
957
|
+
};
|
|
958
|
+
};
|
|
959
|
+
/** @description Unauthorized */
|
|
960
|
+
401: {
|
|
961
|
+
headers: {
|
|
962
|
+
[name: string]: unknown;
|
|
963
|
+
};
|
|
964
|
+
content: {
|
|
965
|
+
'application/json': components['schemas']['Error'];
|
|
966
|
+
};
|
|
967
|
+
};
|
|
968
|
+
/** @description Internal server error */
|
|
969
|
+
500: {
|
|
970
|
+
headers: {
|
|
971
|
+
[name: string]: unknown;
|
|
972
|
+
};
|
|
973
|
+
content: {
|
|
974
|
+
'application/json': components['schemas']['Error'];
|
|
975
|
+
};
|
|
976
|
+
};
|
|
977
|
+
};
|
|
978
|
+
};
|
|
979
|
+
put?: never;
|
|
980
|
+
post?: never;
|
|
981
|
+
delete?: never;
|
|
982
|
+
options?: never;
|
|
983
|
+
head?: never;
|
|
984
|
+
patch?: never;
|
|
985
|
+
trace?: never;
|
|
986
|
+
};
|
|
987
|
+
'/settings/user': {
|
|
988
|
+
parameters: {
|
|
989
|
+
query?: never;
|
|
990
|
+
header?: never;
|
|
991
|
+
path?: never;
|
|
992
|
+
cookie?: never;
|
|
993
|
+
};
|
|
994
|
+
/**
|
|
995
|
+
* Get user agent settings
|
|
996
|
+
* @description Retrieve agent settings for the current user in the current project
|
|
997
|
+
*/
|
|
998
|
+
get: {
|
|
999
|
+
parameters: {
|
|
1000
|
+
query?: never;
|
|
1001
|
+
header?: never;
|
|
1002
|
+
path?: never;
|
|
1003
|
+
cookie?: never;
|
|
1004
|
+
};
|
|
1005
|
+
requestBody?: never;
|
|
1006
|
+
responses: {
|
|
1007
|
+
/** @description User agent settings */
|
|
1008
|
+
200: {
|
|
1009
|
+
headers: {
|
|
1010
|
+
[name: string]: unknown;
|
|
1011
|
+
};
|
|
1012
|
+
content: {
|
|
1013
|
+
'application/json': components['schemas']['UserAgentSettings'];
|
|
1014
|
+
};
|
|
1015
|
+
};
|
|
1016
|
+
/** @description Bad request */
|
|
1017
|
+
400: {
|
|
1018
|
+
headers: {
|
|
1019
|
+
[name: string]: unknown;
|
|
1020
|
+
};
|
|
1021
|
+
content: {
|
|
1022
|
+
'application/json': components['schemas']['Error'];
|
|
1023
|
+
};
|
|
1024
|
+
};
|
|
1025
|
+
/** @description Unauthorized */
|
|
1026
|
+
401: {
|
|
1027
|
+
headers: {
|
|
1028
|
+
[name: string]: unknown;
|
|
1029
|
+
};
|
|
1030
|
+
content: {
|
|
1031
|
+
'application/json': components['schemas']['Error'];
|
|
1032
|
+
};
|
|
1033
|
+
};
|
|
1034
|
+
/** @description Internal server error */
|
|
1035
|
+
500: {
|
|
1036
|
+
headers: {
|
|
1037
|
+
[name: string]: unknown;
|
|
1038
|
+
};
|
|
1039
|
+
content: {
|
|
1040
|
+
'application/json': components['schemas']['Error'];
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
};
|
|
1045
|
+
put?: never;
|
|
1046
|
+
post?: never;
|
|
1047
|
+
delete?: never;
|
|
1048
|
+
options?: never;
|
|
1049
|
+
head?: never;
|
|
1050
|
+
/**
|
|
1051
|
+
* Update user agent settings
|
|
1052
|
+
* @description Create or update agent settings for the current user in the current project
|
|
1053
|
+
*/
|
|
1054
|
+
patch: {
|
|
1055
|
+
parameters: {
|
|
1056
|
+
query?: never;
|
|
1057
|
+
header?: never;
|
|
1058
|
+
path?: never;
|
|
1059
|
+
cookie?: never;
|
|
1060
|
+
};
|
|
1061
|
+
requestBody: {
|
|
1062
|
+
content: {
|
|
1063
|
+
'application/json': components['schemas']['UpdateUserAgentSettingsRequest'];
|
|
1064
|
+
};
|
|
1065
|
+
};
|
|
1066
|
+
responses: {
|
|
1067
|
+
/** @description User agent settings */
|
|
1068
|
+
200: {
|
|
1069
|
+
headers: {
|
|
1070
|
+
[name: string]: unknown;
|
|
1071
|
+
};
|
|
1072
|
+
content: {
|
|
1073
|
+
'application/json': components['schemas']['UserAgentSettings'];
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
/** @description Bad request */
|
|
1077
|
+
400: {
|
|
1078
|
+
headers: {
|
|
1079
|
+
[name: string]: unknown;
|
|
1080
|
+
};
|
|
1081
|
+
content: {
|
|
1082
|
+
'application/json': components['schemas']['Error'];
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
1085
|
+
/** @description Unauthorized */
|
|
1086
|
+
401: {
|
|
1087
|
+
headers: {
|
|
1088
|
+
[name: string]: unknown;
|
|
1089
|
+
};
|
|
1090
|
+
content: {
|
|
1091
|
+
'application/json': components['schemas']['Error'];
|
|
1092
|
+
};
|
|
1093
|
+
};
|
|
1094
|
+
/** @description Internal server error */
|
|
1095
|
+
500: {
|
|
1096
|
+
headers: {
|
|
1097
|
+
[name: string]: unknown;
|
|
1098
|
+
};
|
|
1099
|
+
content: {
|
|
1100
|
+
'application/json': components['schemas']['Error'];
|
|
1101
|
+
};
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
};
|
|
1105
|
+
trace?: never;
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
type components = {
|
|
1109
|
+
schemas: {
|
|
1110
|
+
Error: {
|
|
1111
|
+
code: string;
|
|
1112
|
+
message: string;
|
|
1113
|
+
cause?: string;
|
|
1114
|
+
};
|
|
1115
|
+
Message: {
|
|
1116
|
+
/** Format: uuid */
|
|
1117
|
+
id: string;
|
|
1118
|
+
/** @enum {string} */
|
|
1119
|
+
role: 'user' | 'assistant';
|
|
1120
|
+
parts: (
|
|
1121
|
+
| {
|
|
1122
|
+
/** @enum {string} */
|
|
1123
|
+
type: 'text';
|
|
1124
|
+
text: string;
|
|
1125
|
+
/** @enum {string} */
|
|
1126
|
+
state?: 'done';
|
|
1127
|
+
}
|
|
1128
|
+
| {
|
|
1129
|
+
/** @enum {string} */
|
|
1130
|
+
type: 'tool-result';
|
|
1131
|
+
/** @description ID of the tool call this result corresponds to */
|
|
1132
|
+
toolCallId: string;
|
|
1133
|
+
/** @description Name of the tool that was called */
|
|
1134
|
+
toolName: string;
|
|
1135
|
+
/** @description Confirmation result: "Yes, confirmed." or "No, denied." */
|
|
1136
|
+
result: string;
|
|
1137
|
+
}
|
|
1138
|
+
| {
|
|
1139
|
+
/** @enum {string} */
|
|
1140
|
+
type: 'step-start';
|
|
1141
|
+
}
|
|
1142
|
+
| {
|
|
1143
|
+
/** @description Tool part type (must start with "tool-") */
|
|
1144
|
+
type: string;
|
|
1145
|
+
toolCallId: string;
|
|
1146
|
+
/** @enum {string} */
|
|
1147
|
+
state:
|
|
1148
|
+
| 'output-available'
|
|
1149
|
+
| 'output-error'
|
|
1150
|
+
| 'output-denied'
|
|
1151
|
+
| 'input-available'
|
|
1152
|
+
| 'input-streaming'
|
|
1153
|
+
| 'approval-requested'
|
|
1154
|
+
| 'approval-responded';
|
|
1155
|
+
input?: {
|
|
1156
|
+
[key: string]: unknown;
|
|
1157
|
+
};
|
|
1158
|
+
/** @description Tool output (any type) */
|
|
1159
|
+
output?: unknown;
|
|
1160
|
+
/** @description Error message when tool call failed (present when state is output-error) */
|
|
1161
|
+
errorText?: string;
|
|
1162
|
+
approval?: {
|
|
1163
|
+
id?: string;
|
|
1164
|
+
approved?: boolean;
|
|
1165
|
+
reason?: string;
|
|
1166
|
+
};
|
|
1167
|
+
}
|
|
1168
|
+
)[];
|
|
1169
|
+
/** @description Message metadata including createdAt timestamp and optional hidden flag */
|
|
1170
|
+
metadata?: {
|
|
1171
|
+
/**
|
|
1172
|
+
* Format: date-time
|
|
1173
|
+
* @description ISO 8601 timestamp when the message was created
|
|
1174
|
+
*/
|
|
1175
|
+
createdAt?: string;
|
|
1176
|
+
/** @description Whether the message should be hidden from the UI */
|
|
1177
|
+
hidden?: boolean;
|
|
1178
|
+
/** @description Context about where the message was sent from */
|
|
1179
|
+
requestContext?: {
|
|
1180
|
+
/** @description URL path where the message was sent */
|
|
1181
|
+
path?: string;
|
|
1182
|
+
/** @description Whether the SQL editor mode is active */
|
|
1183
|
+
sqlEditorActive?: boolean;
|
|
1184
|
+
};
|
|
1185
|
+
/**
|
|
1186
|
+
* Format: uuid
|
|
1187
|
+
* @description If present, indicates this chat was compacted and continued in another chat
|
|
1188
|
+
*/
|
|
1189
|
+
compactedTo?: string;
|
|
1190
|
+
/**
|
|
1191
|
+
* Format: uuid
|
|
1192
|
+
* @description If present, indicates this chat was created from compacting another chat
|
|
1193
|
+
*/
|
|
1194
|
+
compactedFrom?: string;
|
|
1195
|
+
};
|
|
1196
|
+
/**
|
|
1197
|
+
* @description Message generation status. pending=generation in progress, completed=successfully finished, interrupted=user stopped or disconnected, failed=error occurred
|
|
1198
|
+
* @enum {string}
|
|
1199
|
+
*/
|
|
1200
|
+
status?: 'pending' | 'completed' | 'interrupted' | 'failed';
|
|
1201
|
+
};
|
|
1202
|
+
ChatRequest: {
|
|
1203
|
+
/**
|
|
1204
|
+
* Format: uuid
|
|
1205
|
+
* @description Chat session ID (UUIDv4). Must be generated by the frontend.
|
|
1206
|
+
*/
|
|
1207
|
+
id: string;
|
|
1208
|
+
message: components['schemas']['Message'];
|
|
1209
|
+
/**
|
|
1210
|
+
* @description Selected AI model
|
|
1211
|
+
* @enum {string}
|
|
1212
|
+
*/
|
|
1213
|
+
selectedChatModel: 'chat-model' | 'chat-model-reasoning';
|
|
1214
|
+
/**
|
|
1215
|
+
* @description Chat visibility
|
|
1216
|
+
* @enum {string}
|
|
1217
|
+
*/
|
|
1218
|
+
selectedVisibilityType: 'public' | 'private';
|
|
1219
|
+
/** @description Optional Keboola branch ID for the chat to operate in */
|
|
1220
|
+
branchId?: number;
|
|
1221
|
+
/** @description Optional metadata for telemetry correlation (e.g., suggestion_session_id, clicked_suggestion_index) */
|
|
1222
|
+
telemetryMetadata?: {
|
|
1223
|
+
[key: string]: string | number | boolean;
|
|
1224
|
+
};
|
|
1225
|
+
};
|
|
1226
|
+
Chat: {
|
|
1227
|
+
/** Format: uuid */
|
|
1228
|
+
id: string;
|
|
1229
|
+
title: string;
|
|
1230
|
+
userId: string;
|
|
1231
|
+
/** Format: date-time */
|
|
1232
|
+
createdAt: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* Format: date-time
|
|
1235
|
+
* @description Timestamp of the last message in this chat
|
|
1236
|
+
*/
|
|
1237
|
+
lastMessageAt: string;
|
|
1238
|
+
/** @enum {string} */
|
|
1239
|
+
visibility: 'public' | 'private';
|
|
1240
|
+
/** @description Keboola branch ID that the chat operates in */
|
|
1241
|
+
branchId?: number | null;
|
|
1242
|
+
};
|
|
1243
|
+
ChatWithMessages: {
|
|
1244
|
+
/** Format: uuid */
|
|
1245
|
+
id: string;
|
|
1246
|
+
title: string;
|
|
1247
|
+
userId: string;
|
|
1248
|
+
/** Format: date-time */
|
|
1249
|
+
createdAt: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* Format: date-time
|
|
1252
|
+
* @description Timestamp of the last message in this chat
|
|
1253
|
+
*/
|
|
1254
|
+
lastMessageAt: string;
|
|
1255
|
+
/** @enum {string} */
|
|
1256
|
+
visibility: 'public' | 'private';
|
|
1257
|
+
/** @description Keboola branch ID that the chat operates in */
|
|
1258
|
+
branchId?: number | null;
|
|
1259
|
+
messages: components['schemas']['Message'][];
|
|
1260
|
+
};
|
|
1261
|
+
/** @description Streamed as an error event when the conversation is too long and compaction has been triggered. The client should poll the original chat for a compactedTo metadata message to discover the new chat ID. */
|
|
1262
|
+
CompactionPendingEvent: {
|
|
1263
|
+
/** @enum {string} */
|
|
1264
|
+
type: 'compaction-pending';
|
|
1265
|
+
/** @description User-facing message explaining the compaction */
|
|
1266
|
+
message: string;
|
|
1267
|
+
/**
|
|
1268
|
+
* Format: uuid
|
|
1269
|
+
* @description The chat ID that is being compacted
|
|
1270
|
+
*/
|
|
1271
|
+
originalChatId: string;
|
|
1272
|
+
};
|
|
1273
|
+
Vote: {
|
|
1274
|
+
/** Format: uuid */
|
|
1275
|
+
chatId: string;
|
|
1276
|
+
/** Format: uuid */
|
|
1277
|
+
messageId: string;
|
|
1278
|
+
/** @description True for upvote, false for downvote */
|
|
1279
|
+
isUpvoted: boolean;
|
|
1280
|
+
};
|
|
1281
|
+
VoteRequest: {
|
|
1282
|
+
/** Format: uuid */
|
|
1283
|
+
chatId: string;
|
|
1284
|
+
/** Format: uuid */
|
|
1285
|
+
messageId: string;
|
|
1286
|
+
/** @enum {string} */
|
|
1287
|
+
type: 'up' | 'down';
|
|
1288
|
+
};
|
|
1289
|
+
Suggestion: {
|
|
1290
|
+
/** @description Unique identifier for the suggestion */
|
|
1291
|
+
id: string;
|
|
1292
|
+
/** @description Button label for the suggestion */
|
|
1293
|
+
label: string;
|
|
1294
|
+
/** @description Full prompt text to send to the assistant */
|
|
1295
|
+
prompt: string;
|
|
1296
|
+
/** @description Priority level (1=errors, 2=maintenance, 3=documentation) */
|
|
1297
|
+
priority: number;
|
|
1298
|
+
/**
|
|
1299
|
+
* @description Category of the suggestion
|
|
1300
|
+
* @enum {string}
|
|
1301
|
+
*/
|
|
1302
|
+
category: 'error' | 'maintenance' | 'documentation';
|
|
1303
|
+
/** @description LLM reasoning for why this suggestion was generated */
|
|
1304
|
+
reasoning: string;
|
|
1305
|
+
};
|
|
1306
|
+
SuggestionsResponse: {
|
|
1307
|
+
/** @description List of contextual suggestions */
|
|
1308
|
+
suggestions: {
|
|
1309
|
+
/** @description Unique identifier for the suggestion */
|
|
1310
|
+
id: string;
|
|
1311
|
+
/** @description Button label for the suggestion */
|
|
1312
|
+
label: string;
|
|
1313
|
+
/** @description Full prompt text to send to the assistant */
|
|
1314
|
+
prompt: string;
|
|
1315
|
+
/** @description Priority level (1=errors, 2=maintenance, 3=documentation) */
|
|
1316
|
+
priority: number;
|
|
1317
|
+
/**
|
|
1318
|
+
* @description Category of the suggestion
|
|
1319
|
+
* @enum {string}
|
|
1320
|
+
*/
|
|
1321
|
+
category: 'error' | 'maintenance' | 'documentation';
|
|
1322
|
+
/** @description LLM reasoning for why this suggestion was generated */
|
|
1323
|
+
reasoning: string;
|
|
1324
|
+
}[];
|
|
1325
|
+
/** @description Session ID for correlating suggestion generation with subsequent chat messages in telemetry */
|
|
1326
|
+
suggestionSessionId: string;
|
|
1327
|
+
};
|
|
1328
|
+
DashboardSuggestionsRequest: {
|
|
1329
|
+
/**
|
|
1330
|
+
* @description Dashboard context for suggestions (enum property replaced by openapi-typescript)
|
|
1331
|
+
* @enum {string}
|
|
1332
|
+
*/
|
|
1333
|
+
context: 'dashboard';
|
|
1334
|
+
data: {
|
|
1335
|
+
recentFailedJobs: {
|
|
1336
|
+
id: string;
|
|
1337
|
+
/** @enum {string} */
|
|
1338
|
+
status: 'error' | 'warning';
|
|
1339
|
+
component: string;
|
|
1340
|
+
configId: string;
|
|
1341
|
+
configName?: string;
|
|
1342
|
+
createdTime: string;
|
|
1343
|
+
durationSeconds?: number;
|
|
1344
|
+
errorMessage?: string;
|
|
1345
|
+
}[];
|
|
1346
|
+
deprecatedComponents: {
|
|
1347
|
+
id: string;
|
|
1348
|
+
name: string;
|
|
1349
|
+
type: string;
|
|
1350
|
+
expiredOn: string;
|
|
1351
|
+
configCount: number;
|
|
1352
|
+
}[];
|
|
1353
|
+
userRecentEdits: {
|
|
1354
|
+
component: string;
|
|
1355
|
+
configId: string;
|
|
1356
|
+
configName: string;
|
|
1357
|
+
lastEdited: string;
|
|
1358
|
+
}[];
|
|
1359
|
+
/** Format: email */
|
|
1360
|
+
currentUserEmail: string;
|
|
1361
|
+
};
|
|
1362
|
+
};
|
|
1363
|
+
JobDetailSuggestionsRequest: {
|
|
1364
|
+
/**
|
|
1365
|
+
* @description Job detail context for suggestions (enum property replaced by openapi-typescript)
|
|
1366
|
+
* @enum {string}
|
|
1367
|
+
*/
|
|
1368
|
+
context: 'job-detail';
|
|
1369
|
+
data: {
|
|
1370
|
+
job: {
|
|
1371
|
+
id: string;
|
|
1372
|
+
/** @enum {string} */
|
|
1373
|
+
status:
|
|
1374
|
+
| 'created'
|
|
1375
|
+
| 'waiting'
|
|
1376
|
+
| 'processing'
|
|
1377
|
+
| 'success'
|
|
1378
|
+
| 'error'
|
|
1379
|
+
| 'terminating'
|
|
1380
|
+
| 'terminated'
|
|
1381
|
+
| 'cancelled'
|
|
1382
|
+
| 'warning';
|
|
1383
|
+
component: string;
|
|
1384
|
+
configId?: string;
|
|
1385
|
+
configName?: string;
|
|
1386
|
+
createdTime: string;
|
|
1387
|
+
startTime?: string;
|
|
1388
|
+
endTime?: string;
|
|
1389
|
+
durationSeconds?: number;
|
|
1390
|
+
errorMessage?: string;
|
|
1391
|
+
/** @enum {string} */
|
|
1392
|
+
errorType?: 'user' | 'application';
|
|
1393
|
+
backendSize?: string;
|
|
1394
|
+
};
|
|
1395
|
+
component?: {
|
|
1396
|
+
id: string;
|
|
1397
|
+
name: string;
|
|
1398
|
+
type: string;
|
|
1399
|
+
};
|
|
1400
|
+
runtimeHistory?: {
|
|
1401
|
+
averageDurationSeconds?: number;
|
|
1402
|
+
minDurationSeconds?: number;
|
|
1403
|
+
maxDurationSeconds?: number;
|
|
1404
|
+
recentJobsCount: number;
|
|
1405
|
+
isSlowerThanAverage?: boolean;
|
|
1406
|
+
isFasterThanAverage?: boolean;
|
|
1407
|
+
percentageDifference?: number;
|
|
1408
|
+
};
|
|
1409
|
+
/** Format: email */
|
|
1410
|
+
currentUserEmail: string;
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
ConfigurationDetailSuggestionsRequest: {
|
|
1414
|
+
/**
|
|
1415
|
+
* @description Configuration detail context for suggestions (enum property replaced by openapi-typescript)
|
|
1416
|
+
* @enum {string}
|
|
1417
|
+
*/
|
|
1418
|
+
context: 'configuration-detail';
|
|
1419
|
+
data: {
|
|
1420
|
+
configuration: {
|
|
1421
|
+
id: string;
|
|
1422
|
+
name: string;
|
|
1423
|
+
description?: string;
|
|
1424
|
+
component: string;
|
|
1425
|
+
hasRows: boolean;
|
|
1426
|
+
rowCount?: number;
|
|
1427
|
+
lastChangeDescription?: string;
|
|
1428
|
+
};
|
|
1429
|
+
component?: {
|
|
1430
|
+
id: string;
|
|
1431
|
+
name: string;
|
|
1432
|
+
type: string;
|
|
1433
|
+
};
|
|
1434
|
+
latestJobs?: {
|
|
1435
|
+
id: string;
|
|
1436
|
+
/** @enum {string} */
|
|
1437
|
+
status:
|
|
1438
|
+
| 'created'
|
|
1439
|
+
| 'waiting'
|
|
1440
|
+
| 'processing'
|
|
1441
|
+
| 'success'
|
|
1442
|
+
| 'error'
|
|
1443
|
+
| 'terminating'
|
|
1444
|
+
| 'terminated'
|
|
1445
|
+
| 'cancelled'
|
|
1446
|
+
| 'warning';
|
|
1447
|
+
durationSeconds?: number;
|
|
1448
|
+
errorMessage?: string;
|
|
1449
|
+
createdTime: string;
|
|
1450
|
+
}[];
|
|
1451
|
+
/** Format: email */
|
|
1452
|
+
currentUserEmail: string;
|
|
1453
|
+
};
|
|
1454
|
+
};
|
|
1455
|
+
SuggestionsRequest:
|
|
1456
|
+
| components['schemas']['DashboardSuggestionsRequest']
|
|
1457
|
+
| components['schemas']['JobDetailSuggestionsRequest']
|
|
1458
|
+
| components['schemas']['ConfigurationDetailSuggestionsRequest'];
|
|
1459
|
+
ApiInfoResponse: {
|
|
1460
|
+
/**
|
|
1461
|
+
* Format: date-time
|
|
1462
|
+
* @description The current server date and time in ISO string format
|
|
1463
|
+
*/
|
|
1464
|
+
timestamp: string;
|
|
1465
|
+
/** @description The number of seconds the process has been running since start */
|
|
1466
|
+
uptime: number;
|
|
1467
|
+
/** @description The name of the running application */
|
|
1468
|
+
appName: string;
|
|
1469
|
+
/** @description The version of the application commit hash (e.g. from environment or build metadata) */
|
|
1470
|
+
appVersion: string;
|
|
1471
|
+
/** @description The underlying backend/server package version (from package.json) */
|
|
1472
|
+
serverVersion: string;
|
|
1473
|
+
connectedMcp: components['schemas']['McpServerConnectionStatus'];
|
|
1474
|
+
};
|
|
1475
|
+
McpServerConnectionStatus: {
|
|
1476
|
+
/** @description MCP server URL */
|
|
1477
|
+
url: string;
|
|
1478
|
+
/**
|
|
1479
|
+
* @description Connection status
|
|
1480
|
+
* @enum {string}
|
|
1481
|
+
*/
|
|
1482
|
+
status: 'ok' | 'error';
|
|
1483
|
+
/** @description MCP server information if connection is successful */
|
|
1484
|
+
details: components['schemas']['McpServerInfo'] | null;
|
|
1485
|
+
/** @description Error message if connection failed */
|
|
1486
|
+
error?: string;
|
|
1487
|
+
};
|
|
1488
|
+
McpServerInfo: {
|
|
1489
|
+
/** @description MCP server application name */
|
|
1490
|
+
appName: string;
|
|
1491
|
+
/** @description MCP server application version */
|
|
1492
|
+
appVersion: string;
|
|
1493
|
+
/** @description MCP server version */
|
|
1494
|
+
serverVersion: string;
|
|
1495
|
+
/** @description MCP library version */
|
|
1496
|
+
mcpLibraryVersion: string;
|
|
1497
|
+
/** @description FastMCP library version */
|
|
1498
|
+
fastmcpLibraryVersion: string;
|
|
1499
|
+
/** @description Server transport type */
|
|
1500
|
+
serverTransport?: string;
|
|
1501
|
+
};
|
|
1502
|
+
/** @description Preview data showing current and resulting configuration for diff display. For config update tool calls (update_config, update_config_row, update_sql_transformation, update_flow, modify_flow, modify_data_app), this data is embedded in the tool-call input under the `_preview` key rather than as a separate stream event. */
|
|
1503
|
+
ConfigPreviewData: {
|
|
1504
|
+
/** @description Configuration coordinates identifying the component and configuration */
|
|
1505
|
+
coordinates: {
|
|
1506
|
+
/** @description The component ID (e.g., "keboola.ex-tryfi") */
|
|
1507
|
+
componentId: string;
|
|
1508
|
+
/** @description The configuration ID */
|
|
1509
|
+
configurationId: string;
|
|
1510
|
+
};
|
|
1511
|
+
/** @description The current configuration before changes */
|
|
1512
|
+
originalConfig: {
|
|
1513
|
+
[key: string]: unknown;
|
|
1514
|
+
};
|
|
1515
|
+
/** @description The configuration that would result from applying the tool changes */
|
|
1516
|
+
updatedConfig: {
|
|
1517
|
+
[key: string]: unknown;
|
|
1518
|
+
};
|
|
1519
|
+
/** @description Whether the resulting configuration is valid */
|
|
1520
|
+
isValid: boolean;
|
|
1521
|
+
/** @description List of validation errors if configuration is invalid */
|
|
1522
|
+
validationErrors?: string[];
|
|
1523
|
+
};
|
|
1524
|
+
/** @description Rate limit usage information for the current user and project */
|
|
1525
|
+
UsageResponse: {
|
|
1526
|
+
/** @description Number of messages used in the current calendar month */
|
|
1527
|
+
messagesUsed: number;
|
|
1528
|
+
/** @description Maximum number of messages allowed per month */
|
|
1529
|
+
messagesLimit: number;
|
|
1530
|
+
/**
|
|
1531
|
+
* Format: date-time
|
|
1532
|
+
* @description ISO 8601 date when the usage counter resets (first day of next month)
|
|
1533
|
+
*/
|
|
1534
|
+
resetDate: string;
|
|
1535
|
+
};
|
|
1536
|
+
/** @description Agent settings for a project */
|
|
1537
|
+
AgentSettings: {
|
|
1538
|
+
/** @description Project ID */
|
|
1539
|
+
projectId: string;
|
|
1540
|
+
/** @description Custom instructions to append to the system prompt */
|
|
1541
|
+
customInstructions: string | null;
|
|
1542
|
+
/**
|
|
1543
|
+
* Format: date-time
|
|
1544
|
+
* @description Creation timestamp
|
|
1545
|
+
*/
|
|
1546
|
+
createdAt: string;
|
|
1547
|
+
/**
|
|
1548
|
+
* Format: date-time
|
|
1549
|
+
* @description Last update timestamp
|
|
1550
|
+
*/
|
|
1551
|
+
updatedAt: string;
|
|
1552
|
+
};
|
|
1553
|
+
/** @description Request to update agent settings */
|
|
1554
|
+
UpdateAgentSettingsRequest: {
|
|
1555
|
+
/** @description Custom instructions to append to the system prompt */
|
|
1556
|
+
customInstructions?: string | null;
|
|
1557
|
+
};
|
|
1558
|
+
/** @description User-scoped agent settings for a project */
|
|
1559
|
+
UserAgentSettings: {
|
|
1560
|
+
/** @description Project ID */
|
|
1561
|
+
projectId: string;
|
|
1562
|
+
/** @description User ID */
|
|
1563
|
+
userId: string;
|
|
1564
|
+
/** @description Custom instructions to append to the system prompt */
|
|
1565
|
+
customInstructions: string | null;
|
|
1566
|
+
/** @description Map of tool names to permission values. Tools not in the map use default behavior. */
|
|
1567
|
+
toolPermissions: {
|
|
1568
|
+
[key: string]: components['schemas']['ToolPermissionValue'];
|
|
1569
|
+
} | null;
|
|
1570
|
+
/**
|
|
1571
|
+
* Format: date-time
|
|
1572
|
+
* @description Creation timestamp
|
|
1573
|
+
*/
|
|
1574
|
+
createdAt: string;
|
|
1575
|
+
/**
|
|
1576
|
+
* Format: date-time
|
|
1577
|
+
* @description Last update timestamp
|
|
1578
|
+
*/
|
|
1579
|
+
updatedAt: string;
|
|
1580
|
+
};
|
|
1581
|
+
/** @description Request to update user agent settings */
|
|
1582
|
+
UpdateUserAgentSettingsRequest: {
|
|
1583
|
+
/** @description Custom instructions to append to the system prompt */
|
|
1584
|
+
customInstructions?: string | null;
|
|
1585
|
+
/** @description Map of tool names to permission values. Merged with existing permissions on update. Send null to clear all. */
|
|
1586
|
+
toolPermissions?: {
|
|
1587
|
+
[key: string]: components['schemas']['ToolPermissionValue'];
|
|
1588
|
+
} | null;
|
|
1589
|
+
};
|
|
1590
|
+
/**
|
|
1591
|
+
* @description Tool permission level: always_allow (no confirmation), always_ask (requires confirmation), blocked (tool not available)
|
|
1592
|
+
* @enum {string}
|
|
1593
|
+
*/
|
|
1594
|
+
ToolPermissionValue: 'always_allow' | 'always_ask' | 'blocked';
|
|
1595
|
+
/** @description Information about an available MCP tool */
|
|
1596
|
+
ToolInfo: {
|
|
1597
|
+
/** @description Tool name identifier */
|
|
1598
|
+
name: string;
|
|
1599
|
+
/** @description Human-readable tool description */
|
|
1600
|
+
description: string;
|
|
1601
|
+
/** @description Whether the tool is read-only (true) or a write tool (false) */
|
|
1602
|
+
readOnly: boolean;
|
|
1603
|
+
};
|
|
1604
|
+
/** @description Response containing the list of available MCP tools */
|
|
1605
|
+
ToolsListResponse: {
|
|
1606
|
+
/** @description List of available tools */
|
|
1607
|
+
tools: components['schemas']['ToolInfo'][];
|
|
1608
|
+
};
|
|
1609
|
+
};
|
|
1610
|
+
responses: never;
|
|
1611
|
+
parameters: never;
|
|
1612
|
+
requestBodies: never;
|
|
1613
|
+
headers: never;
|
|
1614
|
+
pathItems: never;
|
|
1615
|
+
};
|
|
1616
|
+
|
|
1617
|
+
declare const askUserQuestionAnswersSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1618
|
+
type AskUserQuestionAnswers = z.Infer<typeof askUserQuestionAnswersSchema>;
|
|
1619
|
+
type GetHistoryQuery = OpenapiQueryType<paths['/history']['get']>;
|
|
1620
|
+
type GetVotesQuery = OpenapiQueryType<paths['/vote']['get']>;
|
|
1621
|
+
type GetChatPath = OpenapiPathType<paths['/chat/{id}']['get']>;
|
|
1622
|
+
type VoteRequest = OpenapiBodyType<paths['/vote']['patch']>;
|
|
1623
|
+
type ChatRequest = OpenapiBodyType<paths['/chat']['post']>;
|
|
1624
|
+
type HistoryResponse = OpenapiReturnType<paths['/history']['get']>;
|
|
1625
|
+
type ChatWithMessages = OpenapiReturnType<paths['/chat/{id}']['get']>;
|
|
1626
|
+
type VotesResponse = OpenapiReturnType<paths['/vote']['get']>;
|
|
1627
|
+
type UsageResponse = OpenapiReturnType<paths['/usage']['get']>;
|
|
1628
|
+
type Chat = components['schemas']['Chat'];
|
|
1629
|
+
type Vote = VotesResponse[number];
|
|
1630
|
+
type ChatWithMessage = components['schemas']['ChatWithMessages'];
|
|
1631
|
+
type ChatMessage = ChatWithMessage['messages'][number];
|
|
1632
|
+
type UserMessage = components['schemas']['Message'];
|
|
1633
|
+
type TextPart = UserMessage['parts'][number];
|
|
1634
|
+
type MessageStatus = NonNullable<UserMessage['status']>;
|
|
1635
|
+
type AgentSettings = components['schemas']['AgentSettings'];
|
|
1636
|
+
type UpdateAgentSettingsRequest = components['schemas']['UpdateAgentSettingsRequest'];
|
|
1637
|
+
type UserAgentSettings = components['schemas']['UserAgentSettings'];
|
|
1638
|
+
type UpdateUserAgentSettingsRequest = components['schemas']['UpdateUserAgentSettingsRequest'];
|
|
1639
|
+
type ToolPermissionValue = components['schemas']['ToolPermissionValue'];
|
|
1640
|
+
type ToolInfo = components['schemas']['ToolInfo'];
|
|
1641
|
+
type ToolsListResponse = components['schemas']['ToolsListResponse'];
|
|
1642
|
+
|
|
1643
|
+
export { type AgentSettings as A, type ChatRequest as C, type GetHistoryQuery as G, type HistoryResponse as H, type MessageStatus as M, type ToolsListResponse as T, type UsageResponse as U, type VoteRequest as V, type GetChatPath as a, type GetVotesQuery as b, type components as c, type UpdateAgentSettingsRequest as d, type UserAgentSettings as e, type UpdateUserAgentSettingsRequest as f, type AskUserQuestionAnswers as g, type Chat as h, type ChatMessage as i, type ChatWithMessage as j, type ChatWithMessages as k, type TextPart as l, type ToolInfo as m, type ToolPermissionValue as n, type UserMessage as o, type Vote as p, type VotesResponse as q, askUserQuestionAnswersSchema as r };
|