@superatomai/sdk-web 0.0.1-mds
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/README.md +755 -0
- package/dist/index.cjs +3904 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4099 -0
- package/dist/index.d.ts +4099 -0
- package/dist/index.js +3845 -0
- package/dist/index.js.map +1 -0
- package/package.json +41 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,4099 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ExpressionSchema: z.ZodObject<{
|
|
4
|
+
$exp: z.ZodString;
|
|
5
|
+
$deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
type Expression = z.infer<typeof ExpressionSchema>;
|
|
8
|
+
declare const BindingSchema: z.ZodObject<{
|
|
9
|
+
$bind: z.ZodString;
|
|
10
|
+
$transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
13
|
+
}, z.core.$strip>>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
type Binding = z.infer<typeof BindingSchema>;
|
|
16
|
+
declare const ForDirectiveSchema: z.ZodObject<{
|
|
17
|
+
in: z.ZodUnion<readonly [z.ZodObject<{
|
|
18
|
+
$exp: z.ZodString;
|
|
19
|
+
$deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
$bind: z.ZodString;
|
|
22
|
+
$transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
}, z.core.$strip>, z.ZodString]>;
|
|
27
|
+
as: z.ZodString;
|
|
28
|
+
key: z.ZodOptional<z.ZodString>;
|
|
29
|
+
index: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
type ForDirective = z.infer<typeof ForDirectiveSchema>;
|
|
32
|
+
declare const QuerySpecSchema: z.ZodObject<{
|
|
33
|
+
graphql: z.ZodOptional<z.ZodString>;
|
|
34
|
+
sql: z.ZodOptional<z.ZodString>;
|
|
35
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
36
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
37
|
+
key: z.ZodOptional<z.ZodString>;
|
|
38
|
+
refetchPolicy: z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
"cache-first": "cache-first";
|
|
40
|
+
"network-only": "network-only";
|
|
41
|
+
"cache-and-network": "cache-and-network";
|
|
42
|
+
}>>;
|
|
43
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
type QuerySpec = z.infer<typeof QuerySpecSchema>;
|
|
46
|
+
declare const UIElementSchema: z.ZodType<any>;
|
|
47
|
+
type UIElement = z.infer<typeof UIElementSchema>;
|
|
48
|
+
declare const PageSchema: z.ZodObject<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
order: z.ZodNumber;
|
|
52
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
53
|
+
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
type Page = z.infer<typeof PageSchema>;
|
|
56
|
+
declare const UIComponentSchema: z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
name: z.ZodOptional<z.ZodString>;
|
|
59
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
60
|
+
states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
61
|
+
methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
62
|
+
fn: z.ZodString;
|
|
63
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
64
|
+
}, z.core.$strip>>>;
|
|
65
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
66
|
+
fn: z.ZodString;
|
|
67
|
+
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
|
+
}, z.core.$strip>>>;
|
|
69
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
70
|
+
render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
71
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
order: z.ZodNumber;
|
|
75
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
76
|
+
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
defaultPageId: z.ZodOptional<z.ZodString>;
|
|
79
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
graphql: z.ZodOptional<z.ZodString>;
|
|
81
|
+
sql: z.ZodOptional<z.ZodString>;
|
|
82
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
83
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
84
|
+
key: z.ZodOptional<z.ZodString>;
|
|
85
|
+
refetchPolicy: z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
"cache-first": "cache-first";
|
|
87
|
+
"network-only": "network-only";
|
|
88
|
+
"cache-and-network": "cache-and-network";
|
|
89
|
+
}>>;
|
|
90
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
type UIComponent = z.infer<typeof UIComponentSchema>;
|
|
94
|
+
declare const DSLRendererPropsSchema$2: z.ZodObject<{
|
|
95
|
+
dsl: z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
name: z.ZodOptional<z.ZodString>;
|
|
98
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
99
|
+
states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
100
|
+
methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
101
|
+
fn: z.ZodString;
|
|
102
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
103
|
+
}, z.core.$strip>>>;
|
|
104
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
|
+
fn: z.ZodString;
|
|
106
|
+
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
107
|
+
}, z.core.$strip>>>;
|
|
108
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
109
|
+
render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
110
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
111
|
+
id: z.ZodString;
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
order: z.ZodNumber;
|
|
114
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
115
|
+
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
116
|
+
}, z.core.$strip>>>;
|
|
117
|
+
defaultPageId: z.ZodOptional<z.ZodString>;
|
|
118
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
119
|
+
graphql: z.ZodOptional<z.ZodString>;
|
|
120
|
+
sql: z.ZodOptional<z.ZodString>;
|
|
121
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
122
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
123
|
+
key: z.ZodOptional<z.ZodString>;
|
|
124
|
+
refetchPolicy: z.ZodOptional<z.ZodEnum<{
|
|
125
|
+
"cache-first": "cache-first";
|
|
126
|
+
"network-only": "network-only";
|
|
127
|
+
"cache-and-network": "cache-and-network";
|
|
128
|
+
}>>;
|
|
129
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
133
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
type DSLRendererProps$2 = z.infer<typeof DSLRendererPropsSchema$2>;
|
|
136
|
+
|
|
137
|
+
declare const DSLRendererPropsSchema$1: z.ZodObject<{
|
|
138
|
+
dsl: z.ZodObject<{
|
|
139
|
+
id: z.ZodString;
|
|
140
|
+
name: z.ZodOptional<z.ZodString>;
|
|
141
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
142
|
+
states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
143
|
+
methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
144
|
+
fn: z.ZodString;
|
|
145
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
146
|
+
}, z.core.$strip>>>;
|
|
147
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
148
|
+
fn: z.ZodString;
|
|
149
|
+
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
150
|
+
}, z.core.$strip>>>;
|
|
151
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
152
|
+
render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
153
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
154
|
+
graphql: z.ZodOptional<z.ZodString>;
|
|
155
|
+
sql: z.ZodOptional<z.ZodString>;
|
|
156
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
157
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
158
|
+
key: z.ZodOptional<z.ZodString>;
|
|
159
|
+
refetchPolicy: z.ZodOptional<z.ZodEnum<{
|
|
160
|
+
"cache-first": "cache-first";
|
|
161
|
+
"network-only": "network-only";
|
|
162
|
+
"cache-and-network": "cache-and-network";
|
|
163
|
+
}>>;
|
|
164
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
165
|
+
}, z.core.$strip>>;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
168
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
type DSLRendererProps$1 = z.infer<typeof DSLRendererPropsSchema$1>;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Message participant schema (from/to)
|
|
174
|
+
* Synced with sdk-nodejs/src/types.ts
|
|
175
|
+
*/
|
|
176
|
+
declare const MessageParticipantSchema: z.ZodObject<{
|
|
177
|
+
id: z.ZodOptional<z.ZodString>;
|
|
178
|
+
type: z.ZodOptional<z.ZodString>;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
type MessageParticipant = z.infer<typeof MessageParticipantSchema>;
|
|
181
|
+
/**
|
|
182
|
+
* Base message schema
|
|
183
|
+
* Synced with sdk-nodejs/src/types.ts
|
|
184
|
+
*/
|
|
185
|
+
declare const MessageSchema: z.ZodObject<{
|
|
186
|
+
id: z.ZodString;
|
|
187
|
+
type: z.ZodString;
|
|
188
|
+
from: z.ZodObject<{
|
|
189
|
+
id: z.ZodOptional<z.ZodString>;
|
|
190
|
+
type: z.ZodOptional<z.ZodString>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
193
|
+
id: z.ZodOptional<z.ZodString>;
|
|
194
|
+
type: z.ZodOptional<z.ZodString>;
|
|
195
|
+
}, z.core.$strip>>;
|
|
196
|
+
payload: z.ZodUnknown;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
type Message = z.infer<typeof MessageSchema>;
|
|
199
|
+
/**
|
|
200
|
+
* Authentication login request payload schema
|
|
201
|
+
* Synced with sdk-nodejs: AuthLoginRequestPayloadSchema
|
|
202
|
+
*/
|
|
203
|
+
declare const AuthLoginPayloadSchema: z.ZodObject<{
|
|
204
|
+
login_data: z.ZodString;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
type AuthLoginPayload = z.infer<typeof AuthLoginPayloadSchema>;
|
|
207
|
+
/**
|
|
208
|
+
* Authentication login request message schema
|
|
209
|
+
* Synced with sdk-nodejs: AuthLoginRequestMessageSchema
|
|
210
|
+
*/
|
|
211
|
+
declare const AuthLoginRequestMessageSchema: z.ZodObject<{
|
|
212
|
+
id: z.ZodString;
|
|
213
|
+
type: z.ZodLiteral<"AUTH_LOGIN_REQ">;
|
|
214
|
+
from: z.ZodObject<{
|
|
215
|
+
id: z.ZodOptional<z.ZodString>;
|
|
216
|
+
type: z.ZodOptional<z.ZodString>;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
219
|
+
id: z.ZodOptional<z.ZodString>;
|
|
220
|
+
type: z.ZodOptional<z.ZodString>;
|
|
221
|
+
}, z.core.$strip>>;
|
|
222
|
+
payload: z.ZodObject<{
|
|
223
|
+
login_data: z.ZodString;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
type AuthLoginRequestMessage = z.infer<typeof AuthLoginRequestMessageSchema>;
|
|
227
|
+
/**
|
|
228
|
+
* Authentication login response payload schema
|
|
229
|
+
* Synced with sdk-nodejs handler: auth-login-requests.ts
|
|
230
|
+
*/
|
|
231
|
+
declare const AuthLoginResponsePayloadSchema: z.ZodObject<{
|
|
232
|
+
success: z.ZodBoolean;
|
|
233
|
+
error: z.ZodOptional<z.ZodString>;
|
|
234
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
type AuthLoginResponsePayload = z.infer<typeof AuthLoginResponsePayloadSchema>;
|
|
237
|
+
/**
|
|
238
|
+
* Authentication login response message schema
|
|
239
|
+
*/
|
|
240
|
+
declare const AuthLoginResponseMessageSchema: z.ZodObject<{
|
|
241
|
+
id: z.ZodString;
|
|
242
|
+
type: z.ZodLiteral<"AUTH_LOGIN_RES">;
|
|
243
|
+
from: z.ZodObject<{
|
|
244
|
+
id: z.ZodOptional<z.ZodString>;
|
|
245
|
+
type: z.ZodOptional<z.ZodString>;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
248
|
+
id: z.ZodOptional<z.ZodString>;
|
|
249
|
+
type: z.ZodOptional<z.ZodString>;
|
|
250
|
+
}, z.core.$strip>>;
|
|
251
|
+
payload: z.ZodObject<{
|
|
252
|
+
success: z.ZodBoolean;
|
|
253
|
+
error: z.ZodOptional<z.ZodString>;
|
|
254
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
type AuthLoginResponseMessage = z.infer<typeof AuthLoginResponseMessageSchema>;
|
|
258
|
+
/**
|
|
259
|
+
* Authentication verify request payload schema
|
|
260
|
+
* Synced with sdk-nodejs: AuthVerifyRequestPayloadSchema
|
|
261
|
+
*/
|
|
262
|
+
declare const AuthVerifyPayloadSchema: z.ZodObject<{
|
|
263
|
+
token: z.ZodString;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
type AuthVerifyPayload = z.infer<typeof AuthVerifyPayloadSchema>;
|
|
266
|
+
/**
|
|
267
|
+
* Authentication verify request message schema
|
|
268
|
+
* Synced with sdk-nodejs: AuthVerifyRequestMessageSchema
|
|
269
|
+
*/
|
|
270
|
+
declare const AuthVerifyRequestMessageSchema: z.ZodObject<{
|
|
271
|
+
id: z.ZodString;
|
|
272
|
+
type: z.ZodLiteral<"AUTH_VERIFY_REQ">;
|
|
273
|
+
from: z.ZodObject<{
|
|
274
|
+
id: z.ZodOptional<z.ZodString>;
|
|
275
|
+
type: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, z.core.$strip>;
|
|
277
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
278
|
+
id: z.ZodOptional<z.ZodString>;
|
|
279
|
+
type: z.ZodOptional<z.ZodString>;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
payload: z.ZodObject<{
|
|
282
|
+
token: z.ZodString;
|
|
283
|
+
}, z.core.$strip>;
|
|
284
|
+
}, z.core.$strip>;
|
|
285
|
+
type AuthVerifyRequestMessage = z.infer<typeof AuthVerifyRequestMessageSchema>;
|
|
286
|
+
/**
|
|
287
|
+
* Authentication verify response payload schema
|
|
288
|
+
* Synced with sdk-nodejs handler: auth-verify-request.ts
|
|
289
|
+
*/
|
|
290
|
+
declare const AuthVerifyResponsePayloadSchema: z.ZodObject<{
|
|
291
|
+
success: z.ZodBoolean;
|
|
292
|
+
error: z.ZodOptional<z.ZodString>;
|
|
293
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
294
|
+
}, z.core.$strip>;
|
|
295
|
+
type AuthVerifyResponsePayload = z.infer<typeof AuthVerifyResponsePayloadSchema>;
|
|
296
|
+
/**
|
|
297
|
+
* Authentication verify response message schema
|
|
298
|
+
*/
|
|
299
|
+
declare const AuthVerifyResponseMessageSchema: z.ZodObject<{
|
|
300
|
+
id: z.ZodString;
|
|
301
|
+
type: z.ZodLiteral<"AUTH_VERIFY_RES">;
|
|
302
|
+
from: z.ZodObject<{
|
|
303
|
+
id: z.ZodOptional<z.ZodString>;
|
|
304
|
+
type: z.ZodOptional<z.ZodString>;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
307
|
+
id: z.ZodOptional<z.ZodString>;
|
|
308
|
+
type: z.ZodOptional<z.ZodString>;
|
|
309
|
+
}, z.core.$strip>>;
|
|
310
|
+
payload: z.ZodObject<{
|
|
311
|
+
success: z.ZodBoolean;
|
|
312
|
+
error: z.ZodOptional<z.ZodString>;
|
|
313
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
type AuthVerifyResponseMessage = z.infer<typeof AuthVerifyResponseMessageSchema>;
|
|
317
|
+
/**
|
|
318
|
+
* User prompt request payload schema
|
|
319
|
+
* Synced with sdk-nodejs: UserPromptRequestPayloadSchema
|
|
320
|
+
*/
|
|
321
|
+
declare const UserPromptRequestPayloadSchema: z.ZodObject<{
|
|
322
|
+
prompt: z.ZodString;
|
|
323
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
324
|
+
SA_RUNTIME: z.ZodOptional<z.ZodObject<{
|
|
325
|
+
threadId: z.ZodString;
|
|
326
|
+
uiBlockId: z.ZodString;
|
|
327
|
+
}, z.core.$strip>>;
|
|
328
|
+
responseMode: z.ZodOptional<z.ZodEnum<{
|
|
329
|
+
component: "component";
|
|
330
|
+
text: "text";
|
|
331
|
+
}>>;
|
|
332
|
+
}, z.core.$strip>;
|
|
333
|
+
type UserPromptRequestPayload = z.infer<typeof UserPromptRequestPayloadSchema>;
|
|
334
|
+
/**
|
|
335
|
+
* User prompt request message schema
|
|
336
|
+
* Synced with sdk-nodejs: UserPromptRequestMessageSchema
|
|
337
|
+
*/
|
|
338
|
+
declare const UserPromptRequestMessageSchema: z.ZodObject<{
|
|
339
|
+
id: z.ZodString;
|
|
340
|
+
type: z.ZodLiteral<"USER_PROMPT_REQ">;
|
|
341
|
+
from: z.ZodObject<{
|
|
342
|
+
id: z.ZodOptional<z.ZodString>;
|
|
343
|
+
type: z.ZodOptional<z.ZodString>;
|
|
344
|
+
}, z.core.$strip>;
|
|
345
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
346
|
+
id: z.ZodOptional<z.ZodString>;
|
|
347
|
+
type: z.ZodOptional<z.ZodString>;
|
|
348
|
+
}, z.core.$strip>>;
|
|
349
|
+
payload: z.ZodObject<{
|
|
350
|
+
prompt: z.ZodString;
|
|
351
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
352
|
+
SA_RUNTIME: z.ZodOptional<z.ZodObject<{
|
|
353
|
+
threadId: z.ZodString;
|
|
354
|
+
uiBlockId: z.ZodString;
|
|
355
|
+
}, z.core.$strip>>;
|
|
356
|
+
responseMode: z.ZodOptional<z.ZodEnum<{
|
|
357
|
+
component: "component";
|
|
358
|
+
text: "text";
|
|
359
|
+
}>>;
|
|
360
|
+
}, z.core.$strip>;
|
|
361
|
+
}, z.core.$strip>;
|
|
362
|
+
type UserPromptRequestMessage = z.infer<typeof UserPromptRequestMessageSchema>;
|
|
363
|
+
/**
|
|
364
|
+
* Component schema (from backend)
|
|
365
|
+
* Synced with sdk-nodejs: ComponentSchema
|
|
366
|
+
*/
|
|
367
|
+
declare const ComponentSchema: z.ZodObject<{
|
|
368
|
+
id: z.ZodString;
|
|
369
|
+
name: z.ZodString;
|
|
370
|
+
type: z.ZodString;
|
|
371
|
+
description: z.ZodString;
|
|
372
|
+
props: z.ZodObject<{
|
|
373
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
374
|
+
title: z.ZodOptional<z.ZodString>;
|
|
375
|
+
description: z.ZodOptional<z.ZodString>;
|
|
376
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
377
|
+
}, z.core.$loose>;
|
|
378
|
+
category: z.ZodOptional<z.ZodString>;
|
|
379
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
380
|
+
}, z.core.$strip>;
|
|
381
|
+
type Component = z.infer<typeof ComponentSchema>;
|
|
382
|
+
/**
|
|
383
|
+
* User prompt response payload schema
|
|
384
|
+
* Synced with sdk-nodejs handler: user-prompt-request.ts
|
|
385
|
+
*/
|
|
386
|
+
declare const UserPromptResponsePayloadSchema: z.ZodObject<{
|
|
387
|
+
success: z.ZodBoolean;
|
|
388
|
+
error: z.ZodOptional<z.ZodString>;
|
|
389
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
390
|
+
component: z.ZodOptional<z.ZodObject<{
|
|
391
|
+
id: z.ZodString;
|
|
392
|
+
name: z.ZodString;
|
|
393
|
+
type: z.ZodString;
|
|
394
|
+
description: z.ZodString;
|
|
395
|
+
props: z.ZodObject<{
|
|
396
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
397
|
+
title: z.ZodOptional<z.ZodString>;
|
|
398
|
+
description: z.ZodOptional<z.ZodString>;
|
|
399
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
400
|
+
}, z.core.$loose>;
|
|
401
|
+
category: z.ZodOptional<z.ZodString>;
|
|
402
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
403
|
+
}, z.core.$strip>>;
|
|
404
|
+
}, z.core.$strip>>;
|
|
405
|
+
uiBlockId: z.ZodOptional<z.ZodString>;
|
|
406
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
407
|
+
}, z.core.$strip>;
|
|
408
|
+
type UserPromptResponsePayload = z.infer<typeof UserPromptResponsePayloadSchema>;
|
|
409
|
+
/**
|
|
410
|
+
* User prompt response message schema
|
|
411
|
+
*/
|
|
412
|
+
declare const UserPromptResponseMessageSchema: z.ZodObject<{
|
|
413
|
+
id: z.ZodString;
|
|
414
|
+
type: z.ZodLiteral<"USER_PROMPT_RES">;
|
|
415
|
+
from: z.ZodObject<{
|
|
416
|
+
id: z.ZodOptional<z.ZodString>;
|
|
417
|
+
type: z.ZodOptional<z.ZodString>;
|
|
418
|
+
}, z.core.$strip>;
|
|
419
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
420
|
+
id: z.ZodOptional<z.ZodString>;
|
|
421
|
+
type: z.ZodOptional<z.ZodString>;
|
|
422
|
+
}, z.core.$strip>>;
|
|
423
|
+
payload: z.ZodObject<{
|
|
424
|
+
success: z.ZodBoolean;
|
|
425
|
+
error: z.ZodOptional<z.ZodString>;
|
|
426
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
427
|
+
component: z.ZodOptional<z.ZodObject<{
|
|
428
|
+
id: z.ZodString;
|
|
429
|
+
name: z.ZodString;
|
|
430
|
+
type: z.ZodString;
|
|
431
|
+
description: z.ZodString;
|
|
432
|
+
props: z.ZodObject<{
|
|
433
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
434
|
+
title: z.ZodOptional<z.ZodString>;
|
|
435
|
+
description: z.ZodOptional<z.ZodString>;
|
|
436
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
437
|
+
}, z.core.$loose>;
|
|
438
|
+
category: z.ZodOptional<z.ZodString>;
|
|
439
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
440
|
+
}, z.core.$strip>>;
|
|
441
|
+
}, z.core.$strip>>;
|
|
442
|
+
uiBlockId: z.ZodOptional<z.ZodString>;
|
|
443
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
444
|
+
}, z.core.$strip>;
|
|
445
|
+
}, z.core.$strip>;
|
|
446
|
+
type UserPromptResponseMessage = z.infer<typeof UserPromptResponseMessageSchema>;
|
|
447
|
+
/**
|
|
448
|
+
* User prompt suggestions request payload schema
|
|
449
|
+
* Synced with sdk-nodejs: UserPromptSuggestionsPayloadSchema
|
|
450
|
+
*/
|
|
451
|
+
declare const UserPromptSuggestionsRequestPayloadSchema: z.ZodObject<{
|
|
452
|
+
prompt: z.ZodString;
|
|
453
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
454
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
455
|
+
}, z.core.$strip>;
|
|
456
|
+
type UserPromptSuggestionsRequestPayload = z.infer<typeof UserPromptSuggestionsRequestPayloadSchema>;
|
|
457
|
+
/**
|
|
458
|
+
* User prompt suggestions request message schema
|
|
459
|
+
* Synced with sdk-nodejs: UserPromptSuggestionsMessageSchema
|
|
460
|
+
*/
|
|
461
|
+
declare const UserPromptSuggestionsRequestMessageSchema: z.ZodObject<{
|
|
462
|
+
id: z.ZodString;
|
|
463
|
+
type: z.ZodLiteral<"USER_PROMPT_SUGGESTIONS_REQ">;
|
|
464
|
+
from: z.ZodObject<{
|
|
465
|
+
id: z.ZodOptional<z.ZodString>;
|
|
466
|
+
type: z.ZodOptional<z.ZodString>;
|
|
467
|
+
}, z.core.$strip>;
|
|
468
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
469
|
+
id: z.ZodOptional<z.ZodString>;
|
|
470
|
+
type: z.ZodOptional<z.ZodString>;
|
|
471
|
+
}, z.core.$strip>>;
|
|
472
|
+
payload: z.ZodObject<{
|
|
473
|
+
prompt: z.ZodString;
|
|
474
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
475
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
476
|
+
}, z.core.$strip>;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
type UserPromptSuggestionsRequestMessage = z.infer<typeof UserPromptSuggestionsRequestMessageSchema>;
|
|
479
|
+
/**
|
|
480
|
+
* User prompt suggestions response payload schema
|
|
481
|
+
* Synced with sdk-nodejs handler: user-prompt-suggestions.ts
|
|
482
|
+
*/
|
|
483
|
+
declare const UserPromptSuggestionsResponsePayloadSchema: z.ZodObject<{
|
|
484
|
+
success: z.ZodBoolean;
|
|
485
|
+
error: z.ZodOptional<z.ZodString>;
|
|
486
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
487
|
+
prompt: z.ZodString;
|
|
488
|
+
suggestions: z.ZodArray<z.ZodObject<{
|
|
489
|
+
id: z.ZodString;
|
|
490
|
+
name: z.ZodString;
|
|
491
|
+
type: z.ZodString;
|
|
492
|
+
description: z.ZodString;
|
|
493
|
+
props: z.ZodObject<{
|
|
494
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
495
|
+
title: z.ZodOptional<z.ZodString>;
|
|
496
|
+
description: z.ZodOptional<z.ZodString>;
|
|
497
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
498
|
+
}, z.core.$loose>;
|
|
499
|
+
category: z.ZodOptional<z.ZodString>;
|
|
500
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
501
|
+
}, z.core.$strip>>;
|
|
502
|
+
count: z.ZodNumber;
|
|
503
|
+
message: z.ZodOptional<z.ZodString>;
|
|
504
|
+
}, z.core.$strip>>;
|
|
505
|
+
}, z.core.$strip>;
|
|
506
|
+
type UserPromptSuggestionsResponsePayload = z.infer<typeof UserPromptSuggestionsResponsePayloadSchema>;
|
|
507
|
+
/**
|
|
508
|
+
* User prompt suggestions response message schema
|
|
509
|
+
*/
|
|
510
|
+
declare const UserPromptSuggestionsResponseMessageSchema: z.ZodObject<{
|
|
511
|
+
id: z.ZodString;
|
|
512
|
+
type: z.ZodLiteral<"USER_PROMPT_SUGGESTIONS_RES">;
|
|
513
|
+
from: z.ZodObject<{
|
|
514
|
+
id: z.ZodOptional<z.ZodString>;
|
|
515
|
+
type: z.ZodOptional<z.ZodString>;
|
|
516
|
+
}, z.core.$strip>;
|
|
517
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
518
|
+
id: z.ZodOptional<z.ZodString>;
|
|
519
|
+
type: z.ZodOptional<z.ZodString>;
|
|
520
|
+
}, z.core.$strip>>;
|
|
521
|
+
payload: z.ZodObject<{
|
|
522
|
+
success: z.ZodBoolean;
|
|
523
|
+
error: z.ZodOptional<z.ZodString>;
|
|
524
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
525
|
+
prompt: z.ZodString;
|
|
526
|
+
suggestions: z.ZodArray<z.ZodObject<{
|
|
527
|
+
id: z.ZodString;
|
|
528
|
+
name: z.ZodString;
|
|
529
|
+
type: z.ZodString;
|
|
530
|
+
description: z.ZodString;
|
|
531
|
+
props: z.ZodObject<{
|
|
532
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
533
|
+
title: z.ZodOptional<z.ZodString>;
|
|
534
|
+
description: z.ZodOptional<z.ZodString>;
|
|
535
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
536
|
+
}, z.core.$loose>;
|
|
537
|
+
category: z.ZodOptional<z.ZodString>;
|
|
538
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
539
|
+
}, z.core.$strip>>;
|
|
540
|
+
count: z.ZodNumber;
|
|
541
|
+
message: z.ZodOptional<z.ZodString>;
|
|
542
|
+
}, z.core.$strip>>;
|
|
543
|
+
}, z.core.$strip>;
|
|
544
|
+
}, z.core.$strip>;
|
|
545
|
+
type UserPromptSuggestionsResponseMessage = z.infer<typeof UserPromptSuggestionsResponseMessageSchema>;
|
|
546
|
+
/**
|
|
547
|
+
* Bundle request payload schema
|
|
548
|
+
*/
|
|
549
|
+
declare const BundleRequestPayloadSchema: z.ZodObject<{
|
|
550
|
+
devbundlereq: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
551
|
+
}, z.core.$strip>;
|
|
552
|
+
type BundleRequestPayload = z.infer<typeof BundleRequestPayloadSchema>;
|
|
553
|
+
/**
|
|
554
|
+
* Bundle request message schema
|
|
555
|
+
*/
|
|
556
|
+
declare const BundleRequestMessageSchema: z.ZodObject<{
|
|
557
|
+
id: z.ZodString;
|
|
558
|
+
type: z.ZodLiteral<"BUNDLE_REQ">;
|
|
559
|
+
from: z.ZodObject<{
|
|
560
|
+
id: z.ZodOptional<z.ZodString>;
|
|
561
|
+
type: z.ZodOptional<z.ZodString>;
|
|
562
|
+
}, z.core.$strip>;
|
|
563
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
564
|
+
id: z.ZodOptional<z.ZodString>;
|
|
565
|
+
type: z.ZodOptional<z.ZodString>;
|
|
566
|
+
}, z.core.$strip>>;
|
|
567
|
+
payload: z.ZodObject<{
|
|
568
|
+
devbundlereq: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
569
|
+
}, z.core.$strip>;
|
|
570
|
+
}, z.core.$strip>;
|
|
571
|
+
type BundleRequestMessage = z.infer<typeof BundleRequestMessageSchema>;
|
|
572
|
+
/**
|
|
573
|
+
* Bundle chunk payload schema
|
|
574
|
+
* Synced with sdk-nodejs handler: bundle-request.ts
|
|
575
|
+
*/
|
|
576
|
+
declare const BundleChunkPayloadSchema: z.ZodObject<{
|
|
577
|
+
chunk: z.ZodString;
|
|
578
|
+
chunkIndex: z.ZodNumber;
|
|
579
|
+
totalChunks: z.ZodNumber;
|
|
580
|
+
isComplete: z.ZodBoolean;
|
|
581
|
+
progress: z.ZodNumber;
|
|
582
|
+
}, z.core.$strip>;
|
|
583
|
+
type BundleChunkPayload = z.infer<typeof BundleChunkPayloadSchema>;
|
|
584
|
+
/**
|
|
585
|
+
* Bundle chunk message schema
|
|
586
|
+
*/
|
|
587
|
+
declare const BundleChunkMessageSchema: z.ZodObject<{
|
|
588
|
+
id: z.ZodString;
|
|
589
|
+
type: z.ZodLiteral<"BUNDLE_CHUNK">;
|
|
590
|
+
from: z.ZodObject<{
|
|
591
|
+
id: z.ZodOptional<z.ZodString>;
|
|
592
|
+
type: z.ZodOptional<z.ZodString>;
|
|
593
|
+
}, z.core.$strip>;
|
|
594
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
595
|
+
id: z.ZodOptional<z.ZodString>;
|
|
596
|
+
type: z.ZodOptional<z.ZodString>;
|
|
597
|
+
}, z.core.$strip>>;
|
|
598
|
+
payload: z.ZodObject<{
|
|
599
|
+
chunk: z.ZodString;
|
|
600
|
+
chunkIndex: z.ZodNumber;
|
|
601
|
+
totalChunks: z.ZodNumber;
|
|
602
|
+
isComplete: z.ZodBoolean;
|
|
603
|
+
progress: z.ZodNumber;
|
|
604
|
+
}, z.core.$strip>;
|
|
605
|
+
}, z.core.$strip>;
|
|
606
|
+
type BundleChunkMessage = z.infer<typeof BundleChunkMessageSchema>;
|
|
607
|
+
/**
|
|
608
|
+
* Bundle error response payload schema
|
|
609
|
+
* Synced with sdk-nodejs handler: bundle-request.ts
|
|
610
|
+
*/
|
|
611
|
+
declare const BundleErrorPayloadSchema: z.ZodObject<{
|
|
612
|
+
error: z.ZodString;
|
|
613
|
+
}, z.core.$strip>;
|
|
614
|
+
type BundleErrorPayload = z.infer<typeof BundleErrorPayloadSchema>;
|
|
615
|
+
/**
|
|
616
|
+
* Bundle error response message schema
|
|
617
|
+
*/
|
|
618
|
+
declare const BundleErrorMessageSchema: z.ZodObject<{
|
|
619
|
+
id: z.ZodString;
|
|
620
|
+
type: z.ZodLiteral<"BUNDLE_RES">;
|
|
621
|
+
from: z.ZodObject<{
|
|
622
|
+
id: z.ZodOptional<z.ZodString>;
|
|
623
|
+
type: z.ZodOptional<z.ZodString>;
|
|
624
|
+
}, z.core.$strip>;
|
|
625
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
626
|
+
id: z.ZodOptional<z.ZodString>;
|
|
627
|
+
type: z.ZodOptional<z.ZodString>;
|
|
628
|
+
}, z.core.$strip>>;
|
|
629
|
+
payload: z.ZodObject<{
|
|
630
|
+
error: z.ZodString;
|
|
631
|
+
}, z.core.$strip>;
|
|
632
|
+
}, z.core.$strip>;
|
|
633
|
+
type BundleErrorMessage = z.infer<typeof BundleErrorMessageSchema>;
|
|
634
|
+
/**
|
|
635
|
+
* Data request payload schema
|
|
636
|
+
* Synced with sdk-nodejs: DataRequestPayloadSchema
|
|
637
|
+
*/
|
|
638
|
+
declare const DataRequestPayloadSchema: z.ZodObject<{
|
|
639
|
+
collection: z.ZodString;
|
|
640
|
+
op: z.ZodString;
|
|
641
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
642
|
+
SA_RUNTIME: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
643
|
+
}, z.core.$strip>;
|
|
644
|
+
type DataRequestPayload = z.infer<typeof DataRequestPayloadSchema>;
|
|
645
|
+
/**
|
|
646
|
+
* Data request message schema
|
|
647
|
+
* Synced with sdk-nodejs: DataRequestMessageSchema
|
|
648
|
+
*/
|
|
649
|
+
declare const DataRequestMessageSchema: z.ZodObject<{
|
|
650
|
+
id: z.ZodString;
|
|
651
|
+
type: z.ZodLiteral<"DATA_REQ">;
|
|
652
|
+
from: z.ZodObject<{
|
|
653
|
+
id: z.ZodOptional<z.ZodString>;
|
|
654
|
+
type: z.ZodOptional<z.ZodString>;
|
|
655
|
+
}, z.core.$strip>;
|
|
656
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
id: z.ZodOptional<z.ZodString>;
|
|
658
|
+
type: z.ZodOptional<z.ZodString>;
|
|
659
|
+
}, z.core.$strip>>;
|
|
660
|
+
payload: z.ZodObject<{
|
|
661
|
+
collection: z.ZodString;
|
|
662
|
+
op: z.ZodString;
|
|
663
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
664
|
+
SA_RUNTIME: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
665
|
+
}, z.core.$strip>;
|
|
666
|
+
}, z.core.$strip>;
|
|
667
|
+
type DataRequestMessage = z.infer<typeof DataRequestMessageSchema>;
|
|
668
|
+
/**
|
|
669
|
+
* Data response payload schema
|
|
670
|
+
* Synced with sdk-nodejs handler: data-request.ts
|
|
671
|
+
*/
|
|
672
|
+
declare const DataResponsePayloadSchema: z.ZodObject<{
|
|
673
|
+
collection: z.ZodString;
|
|
674
|
+
op: z.ZodString;
|
|
675
|
+
data: z.ZodUnknown;
|
|
676
|
+
executionMs: z.ZodOptional<z.ZodNumber>;
|
|
677
|
+
error: z.ZodOptional<z.ZodString>;
|
|
678
|
+
}, z.core.$strip>;
|
|
679
|
+
type DataResponsePayload = z.infer<typeof DataResponsePayloadSchema>;
|
|
680
|
+
/**
|
|
681
|
+
* Data response message schema
|
|
682
|
+
*/
|
|
683
|
+
declare const DataResponseMessageSchema: z.ZodObject<{
|
|
684
|
+
id: z.ZodString;
|
|
685
|
+
type: z.ZodLiteral<"DATA_RES">;
|
|
686
|
+
from: z.ZodObject<{
|
|
687
|
+
id: z.ZodOptional<z.ZodString>;
|
|
688
|
+
type: z.ZodOptional<z.ZodString>;
|
|
689
|
+
}, z.core.$strip>;
|
|
690
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
691
|
+
id: z.ZodOptional<z.ZodString>;
|
|
692
|
+
type: z.ZodOptional<z.ZodString>;
|
|
693
|
+
}, z.core.$strip>>;
|
|
694
|
+
payload: z.ZodObject<{
|
|
695
|
+
collection: z.ZodString;
|
|
696
|
+
op: z.ZodString;
|
|
697
|
+
data: z.ZodUnknown;
|
|
698
|
+
executionMs: z.ZodOptional<z.ZodNumber>;
|
|
699
|
+
error: z.ZodOptional<z.ZodString>;
|
|
700
|
+
}, z.core.$strip>;
|
|
701
|
+
}, z.core.$strip>;
|
|
702
|
+
type DataResponseMessage = z.infer<typeof DataResponseMessageSchema>;
|
|
703
|
+
/**
|
|
704
|
+
* UI log entry schema
|
|
705
|
+
* Synced with sdk-nodejs: UILogsPayloadSchema
|
|
706
|
+
*/
|
|
707
|
+
declare const UILogEntrySchema: z.ZodObject<{
|
|
708
|
+
timestamp: z.ZodNumber;
|
|
709
|
+
level: z.ZodEnum<{
|
|
710
|
+
error: "error";
|
|
711
|
+
info: "info";
|
|
712
|
+
warn: "warn";
|
|
713
|
+
debug: "debug";
|
|
714
|
+
}>;
|
|
715
|
+
message: z.ZodString;
|
|
716
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
717
|
+
query: "query";
|
|
718
|
+
explanation: "explanation";
|
|
719
|
+
general: "general";
|
|
720
|
+
}>>;
|
|
721
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
722
|
+
}, z.core.$strip>;
|
|
723
|
+
type UILogEntry = z.infer<typeof UILogEntrySchema>;
|
|
724
|
+
/**
|
|
725
|
+
* UI logs payload schema
|
|
726
|
+
* Synced with sdk-nodejs: UILogsPayloadSchema
|
|
727
|
+
*/
|
|
728
|
+
declare const UILogsPayloadSchema: z.ZodObject<{
|
|
729
|
+
logs: z.ZodArray<z.ZodObject<{
|
|
730
|
+
timestamp: z.ZodNumber;
|
|
731
|
+
level: z.ZodEnum<{
|
|
732
|
+
error: "error";
|
|
733
|
+
info: "info";
|
|
734
|
+
warn: "warn";
|
|
735
|
+
debug: "debug";
|
|
736
|
+
}>;
|
|
737
|
+
message: z.ZodString;
|
|
738
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
739
|
+
query: "query";
|
|
740
|
+
explanation: "explanation";
|
|
741
|
+
general: "general";
|
|
742
|
+
}>>;
|
|
743
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
744
|
+
}, z.core.$strip>>;
|
|
745
|
+
}, z.core.$strip>;
|
|
746
|
+
type UILogsPayload = z.infer<typeof UILogsPayloadSchema>;
|
|
747
|
+
/**
|
|
748
|
+
* UI logs message schema
|
|
749
|
+
* Synced with sdk-nodejs: UILogsMessageSchema
|
|
750
|
+
*/
|
|
751
|
+
declare const UILogsMessageSchema: z.ZodObject<{
|
|
752
|
+
id: z.ZodString;
|
|
753
|
+
type: z.ZodLiteral<"UI_LOGS">;
|
|
754
|
+
from: z.ZodObject<{
|
|
755
|
+
id: z.ZodOptional<z.ZodString>;
|
|
756
|
+
type: z.ZodOptional<z.ZodString>;
|
|
757
|
+
}, z.core.$strip>;
|
|
758
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
759
|
+
id: z.ZodOptional<z.ZodString>;
|
|
760
|
+
type: z.ZodOptional<z.ZodString>;
|
|
761
|
+
}, z.core.$strip>>;
|
|
762
|
+
payload: z.ZodObject<{
|
|
763
|
+
logs: z.ZodArray<z.ZodObject<{
|
|
764
|
+
timestamp: z.ZodNumber;
|
|
765
|
+
level: z.ZodEnum<{
|
|
766
|
+
error: "error";
|
|
767
|
+
info: "info";
|
|
768
|
+
warn: "warn";
|
|
769
|
+
debug: "debug";
|
|
770
|
+
}>;
|
|
771
|
+
message: z.ZodString;
|
|
772
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
773
|
+
query: "query";
|
|
774
|
+
explanation: "explanation";
|
|
775
|
+
general: "general";
|
|
776
|
+
}>>;
|
|
777
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
778
|
+
}, z.core.$strip>>;
|
|
779
|
+
}, z.core.$strip>;
|
|
780
|
+
}, z.core.$strip>;
|
|
781
|
+
type UILogsMessage = z.infer<typeof UILogsMessageSchema>;
|
|
782
|
+
/**
|
|
783
|
+
* Actions request payload schema
|
|
784
|
+
* Synced with sdk-nodejs: ActionsRequestPayloadSchema
|
|
785
|
+
*/
|
|
786
|
+
declare const ActionsRequestPayloadSchema: z.ZodObject<{
|
|
787
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
788
|
+
SA_RUNTIME: z.ZodOptional<z.ZodObject<{
|
|
789
|
+
threadId: z.ZodString;
|
|
790
|
+
uiBlockId: z.ZodString;
|
|
791
|
+
}, z.core.$strip>>;
|
|
792
|
+
}, z.core.$strip>;
|
|
793
|
+
type ActionsRequestPayload = z.infer<typeof ActionsRequestPayloadSchema>;
|
|
794
|
+
declare const ActionsRequestMessageSchema: z.ZodObject<{
|
|
795
|
+
id: z.ZodString;
|
|
796
|
+
from: z.ZodObject<{
|
|
797
|
+
id: z.ZodOptional<z.ZodString>;
|
|
798
|
+
type: z.ZodOptional<z.ZodString>;
|
|
799
|
+
}, z.core.$strip>;
|
|
800
|
+
type: z.ZodLiteral<"ACTIONS">;
|
|
801
|
+
payload: z.ZodObject<{
|
|
802
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
803
|
+
SA_RUNTIME: z.ZodOptional<z.ZodObject<{
|
|
804
|
+
threadId: z.ZodString;
|
|
805
|
+
uiBlockId: z.ZodString;
|
|
806
|
+
}, z.core.$strip>>;
|
|
807
|
+
}, z.core.$strip>;
|
|
808
|
+
}, z.core.$strip>;
|
|
809
|
+
type ActionsRequestMessage = z.infer<typeof ActionsRequestMessageSchema>;
|
|
810
|
+
declare const ActionsResponsePayloadSchema: z.ZodObject<{
|
|
811
|
+
success: z.ZodBoolean;
|
|
812
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
813
|
+
error: z.ZodOptional<z.ZodString>;
|
|
814
|
+
}, z.core.$strip>;
|
|
815
|
+
type ActionsResponsePayload = z.infer<typeof ActionsResponsePayloadSchema>;
|
|
816
|
+
declare const ActionsResponseMessageSchema: z.ZodObject<{
|
|
817
|
+
id: z.ZodString;
|
|
818
|
+
type: z.ZodLiteral<"ACTIONS_RES">;
|
|
819
|
+
from: z.ZodObject<{
|
|
820
|
+
id: z.ZodOptional<z.ZodString>;
|
|
821
|
+
type: z.ZodOptional<z.ZodString>;
|
|
822
|
+
}, z.core.$strip>;
|
|
823
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
824
|
+
id: z.ZodOptional<z.ZodString>;
|
|
825
|
+
type: z.ZodOptional<z.ZodString>;
|
|
826
|
+
}, z.core.$strip>>;
|
|
827
|
+
payload: z.ZodObject<{
|
|
828
|
+
success: z.ZodBoolean;
|
|
829
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
830
|
+
error: z.ZodOptional<z.ZodString>;
|
|
831
|
+
}, z.core.$strip>;
|
|
832
|
+
}, z.core.$strip>;
|
|
833
|
+
type ActionsResponseMessage = z.infer<typeof ActionsResponseMessageSchema>;
|
|
834
|
+
/**
|
|
835
|
+
* Components request payload schema
|
|
836
|
+
* Synced with sdk-nodejs: ComponentsRequestPayloadSchema
|
|
837
|
+
*/
|
|
838
|
+
declare const ComponentsSendPayloadSchema: z.ZodObject<{
|
|
839
|
+
components: z.ZodArray<z.ZodAny>;
|
|
840
|
+
}, z.core.$strip>;
|
|
841
|
+
type ComponentsSendPayload = z.infer<typeof ComponentsSendPayloadSchema>;
|
|
842
|
+
/**
|
|
843
|
+
* Components request message schema
|
|
844
|
+
* Synced with sdk-nodejs: ComponentsRequestMessageSchema
|
|
845
|
+
*/
|
|
846
|
+
declare const ComponentsSendMessageSchema: z.ZodObject<{
|
|
847
|
+
id: z.ZodString;
|
|
848
|
+
type: z.ZodLiteral<"COMPONENT_LIST_RES">;
|
|
849
|
+
from: z.ZodObject<{
|
|
850
|
+
id: z.ZodOptional<z.ZodString>;
|
|
851
|
+
type: z.ZodOptional<z.ZodString>;
|
|
852
|
+
}, z.core.$strip>;
|
|
853
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
854
|
+
id: z.ZodOptional<z.ZodString>;
|
|
855
|
+
type: z.ZodOptional<z.ZodString>;
|
|
856
|
+
}, z.core.$strip>>;
|
|
857
|
+
payload: z.ZodObject<{
|
|
858
|
+
components: z.ZodArray<z.ZodAny>;
|
|
859
|
+
}, z.core.$strip>;
|
|
860
|
+
}, z.core.$strip>;
|
|
861
|
+
type ComponentsSendMessage = z.infer<typeof ComponentsSendMessageSchema>;
|
|
862
|
+
/**
|
|
863
|
+
* User query filters schema
|
|
864
|
+
* Synced with sdk-nodejs: UserQueryFiltersSchema
|
|
865
|
+
*/
|
|
866
|
+
declare const UserQueryFiltersSchema: z.ZodObject<{
|
|
867
|
+
username: z.ZodOptional<z.ZodString>;
|
|
868
|
+
email: z.ZodOptional<z.ZodString>;
|
|
869
|
+
role: z.ZodOptional<z.ZodString>;
|
|
870
|
+
fullname: z.ZodOptional<z.ZodString>;
|
|
871
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
872
|
+
}, z.core.$strip>;
|
|
873
|
+
type UserQueryFilters = z.infer<typeof UserQueryFiltersSchema>;
|
|
874
|
+
/**
|
|
875
|
+
* Dashboard query filters schema
|
|
876
|
+
* Synced with sdk-nodejs: DashboardQueryFiltersSchema
|
|
877
|
+
*/
|
|
878
|
+
declare const DashboardQueryFiltersSchema: z.ZodObject<{
|
|
879
|
+
dashboardId: z.ZodOptional<z.ZodString>;
|
|
880
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
881
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
882
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
883
|
+
name: z.ZodOptional<z.ZodString>;
|
|
884
|
+
published: z.ZodOptional<z.ZodBoolean>;
|
|
885
|
+
}, z.core.$strip>;
|
|
886
|
+
type DashboardQueryFilters = z.infer<typeof DashboardQueryFiltersSchema>;
|
|
887
|
+
/**
|
|
888
|
+
* Report query filters schema
|
|
889
|
+
* Synced with sdk-nodejs: ReportQueryFiltersSchema
|
|
890
|
+
*/
|
|
891
|
+
declare const ReportQueryFiltersSchema: z.ZodObject<{
|
|
892
|
+
reportId: z.ZodOptional<z.ZodString>;
|
|
893
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
894
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
895
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
896
|
+
name: z.ZodOptional<z.ZodString>;
|
|
897
|
+
published: z.ZodOptional<z.ZodBoolean>;
|
|
898
|
+
}, z.core.$strip>;
|
|
899
|
+
type ReportQueryFilters = z.infer<typeof ReportQueryFiltersSchema>;
|
|
900
|
+
/**
|
|
901
|
+
* UI query filters schema
|
|
902
|
+
* Synced with sdk-nodejs: UIQueryFiltersSchema
|
|
903
|
+
*/
|
|
904
|
+
declare const UIQueryFiltersSchema: z.ZodObject<{
|
|
905
|
+
uiId: z.ZodOptional<z.ZodString>;
|
|
906
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
907
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
908
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
909
|
+
name: z.ZodOptional<z.ZodString>;
|
|
910
|
+
}, z.core.$strip>;
|
|
911
|
+
type UIQueryFilters = z.infer<typeof UIQueryFiltersSchema>;
|
|
912
|
+
/**
|
|
913
|
+
* DBUIBlock schema for database storage
|
|
914
|
+
* Synced with sdk-nodejs: DBUIBlockSchema (from conversation-saver.ts)
|
|
915
|
+
*/
|
|
916
|
+
declare const DBUIBlockSchema: z.ZodObject<{
|
|
917
|
+
id: z.ZodString;
|
|
918
|
+
component: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
919
|
+
analysis: z.ZodNullable<z.ZodString>;
|
|
920
|
+
user_prompt: z.ZodString;
|
|
921
|
+
}, z.core.$strip>;
|
|
922
|
+
type DBUIBlock = z.infer<typeof DBUIBlockSchema>;
|
|
923
|
+
/**
|
|
924
|
+
* Bookmark data schema
|
|
925
|
+
* Synced with sdk-nodejs: BookmarkDataSchema
|
|
926
|
+
*/
|
|
927
|
+
declare const BookmarkDataSchema: z.ZodObject<{
|
|
928
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
929
|
+
uiblock: z.ZodObject<{
|
|
930
|
+
id: z.ZodString;
|
|
931
|
+
component: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
932
|
+
analysis: z.ZodNullable<z.ZodString>;
|
|
933
|
+
user_prompt: z.ZodString;
|
|
934
|
+
}, z.core.$strip>;
|
|
935
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
936
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
937
|
+
}, z.core.$strip>;
|
|
938
|
+
type BookmarkData = z.infer<typeof BookmarkDataSchema>;
|
|
939
|
+
/**
|
|
940
|
+
* Bookmark query filters schema
|
|
941
|
+
* Synced with sdk-nodejs: BookmarkQueryFiltersSchema
|
|
942
|
+
*/
|
|
943
|
+
declare const BookmarkQueryFiltersSchema: z.ZodObject<{
|
|
944
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
945
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
946
|
+
name: z.ZodOptional<z.ZodString>;
|
|
947
|
+
}, z.core.$strip>;
|
|
948
|
+
type BookmarkQueryFilters = z.infer<typeof BookmarkQueryFiltersSchema>;
|
|
949
|
+
/**
|
|
950
|
+
* Artifact data schema
|
|
951
|
+
* Synced with sdk-nodejs/project-setup: artifacts.ts
|
|
952
|
+
*/
|
|
953
|
+
declare const ArtifactDataSchema: z.ZodObject<{
|
|
954
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
955
|
+
name: z.ZodString;
|
|
956
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
957
|
+
dsl: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
958
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
959
|
+
filters: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
960
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
961
|
+
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
962
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
963
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
964
|
+
}, z.core.$strip>;
|
|
965
|
+
type ArtifactData = z.infer<typeof ArtifactDataSchema>;
|
|
966
|
+
/**
|
|
967
|
+
* KB Node data schema
|
|
968
|
+
* Synced with sdk-nodejs/project-setup: kb-nodes.ts
|
|
969
|
+
*/
|
|
970
|
+
declare const KbNodeDataSchema: z.ZodObject<{
|
|
971
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
972
|
+
title: z.ZodString;
|
|
973
|
+
content: z.ZodString;
|
|
974
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
975
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
976
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
977
|
+
query: "query";
|
|
978
|
+
user: "user";
|
|
979
|
+
global: "global";
|
|
980
|
+
}>>>;
|
|
981
|
+
createdBy: z.ZodString;
|
|
982
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
983
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
984
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
985
|
+
}, z.core.$strip>;
|
|
986
|
+
type KbNodeData = z.infer<typeof KbNodeDataSchema>;
|
|
987
|
+
/**
|
|
988
|
+
* KB Nodes query filters schema
|
|
989
|
+
* Synced with sdk-nodejs: KbNodesQueryFiltersSchema
|
|
990
|
+
*/
|
|
991
|
+
declare const KbNodesQueryFiltersSchema: z.ZodObject<{
|
|
992
|
+
query: z.ZodOptional<z.ZodString>;
|
|
993
|
+
category: z.ZodOptional<z.ZodString>;
|
|
994
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
995
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
996
|
+
query: "query";
|
|
997
|
+
user: "user";
|
|
998
|
+
global: "global";
|
|
999
|
+
}>>;
|
|
1000
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
1001
|
+
}, z.core.$strip>;
|
|
1002
|
+
type KbNodesQueryFilters = z.infer<typeof KbNodesQueryFiltersSchema>;
|
|
1003
|
+
/**
|
|
1004
|
+
* KB Nodes request payload schema
|
|
1005
|
+
* Synced with sdk-nodejs: KbNodesRequestPayloadSchema
|
|
1006
|
+
*/
|
|
1007
|
+
declare const KbNodesRequestPayloadSchema: z.ZodObject<{
|
|
1008
|
+
operation: z.ZodEnum<{
|
|
1009
|
+
search: "search";
|
|
1010
|
+
create: "create";
|
|
1011
|
+
update: "update";
|
|
1012
|
+
delete: "delete";
|
|
1013
|
+
getAll: "getAll";
|
|
1014
|
+
getOne: "getOne";
|
|
1015
|
+
getByCategory: "getByCategory";
|
|
1016
|
+
getByUser: "getByUser";
|
|
1017
|
+
getCategories: "getCategories";
|
|
1018
|
+
getTags: "getTags";
|
|
1019
|
+
}>;
|
|
1020
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
1021
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1022
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1023
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1024
|
+
category: z.ZodOptional<z.ZodString>;
|
|
1025
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1026
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1027
|
+
query: "query";
|
|
1028
|
+
user: "user";
|
|
1029
|
+
global: "global";
|
|
1030
|
+
}>>;
|
|
1031
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
1032
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
1033
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
1034
|
+
query: z.ZodOptional<z.ZodString>;
|
|
1035
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
1036
|
+
query: z.ZodOptional<z.ZodString>;
|
|
1037
|
+
category: z.ZodOptional<z.ZodString>;
|
|
1038
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1039
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1040
|
+
query: "query";
|
|
1041
|
+
user: "user";
|
|
1042
|
+
global: "global";
|
|
1043
|
+
}>>;
|
|
1044
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
}, z.core.$strip>>;
|
|
1046
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1047
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1048
|
+
}, z.core.$strip>>;
|
|
1049
|
+
}, z.core.$strip>;
|
|
1050
|
+
type KbNodesRequestPayload = z.infer<typeof KbNodesRequestPayloadSchema>;
|
|
1051
|
+
/**
|
|
1052
|
+
* KB Nodes request message schema
|
|
1053
|
+
* Synced with sdk-nodejs: KbNodesRequestMessageSchema
|
|
1054
|
+
*/
|
|
1055
|
+
declare const KbNodesRequestMessageSchema: z.ZodObject<{
|
|
1056
|
+
id: z.ZodString;
|
|
1057
|
+
type: z.ZodLiteral<"KB_NODES">;
|
|
1058
|
+
from: z.ZodObject<{
|
|
1059
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1060
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1061
|
+
}, z.core.$strip>;
|
|
1062
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
1063
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1064
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1065
|
+
}, z.core.$strip>>;
|
|
1066
|
+
payload: z.ZodObject<{
|
|
1067
|
+
operation: z.ZodEnum<{
|
|
1068
|
+
search: "search";
|
|
1069
|
+
create: "create";
|
|
1070
|
+
update: "update";
|
|
1071
|
+
delete: "delete";
|
|
1072
|
+
getAll: "getAll";
|
|
1073
|
+
getOne: "getOne";
|
|
1074
|
+
getByCategory: "getByCategory";
|
|
1075
|
+
getByUser: "getByUser";
|
|
1076
|
+
getCategories: "getCategories";
|
|
1077
|
+
getTags: "getTags";
|
|
1078
|
+
}>;
|
|
1079
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
1080
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1081
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1082
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1083
|
+
category: z.ZodOptional<z.ZodString>;
|
|
1084
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1085
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1086
|
+
query: "query";
|
|
1087
|
+
user: "user";
|
|
1088
|
+
global: "global";
|
|
1089
|
+
}>>;
|
|
1090
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
1091
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
1092
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
1093
|
+
query: z.ZodOptional<z.ZodString>;
|
|
1094
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
1095
|
+
query: z.ZodOptional<z.ZodString>;
|
|
1096
|
+
category: z.ZodOptional<z.ZodString>;
|
|
1097
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1098
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1099
|
+
query: "query";
|
|
1100
|
+
user: "user";
|
|
1101
|
+
global: "global";
|
|
1102
|
+
}>>;
|
|
1103
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
1104
|
+
}, z.core.$strip>>;
|
|
1105
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1106
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1107
|
+
}, z.core.$strip>>;
|
|
1108
|
+
}, z.core.$strip>;
|
|
1109
|
+
}, z.core.$strip>;
|
|
1110
|
+
type KbNodesRequestMessage = z.infer<typeof KbNodesRequestMessageSchema>;
|
|
1111
|
+
/**
|
|
1112
|
+
* KB Nodes response payload schema
|
|
1113
|
+
* Synced with sdk-nodejs handler: kb-nodes.ts
|
|
1114
|
+
*/
|
|
1115
|
+
declare const KbNodesResponsePayloadSchema: z.ZodObject<{
|
|
1116
|
+
success: z.ZodBoolean;
|
|
1117
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1118
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
1119
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1120
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1121
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1122
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1123
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1124
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1125
|
+
query: "query";
|
|
1126
|
+
user: "user";
|
|
1127
|
+
global: "global";
|
|
1128
|
+
}>>>;
|
|
1129
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
1130
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
1131
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1133
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1134
|
+
node: z.ZodOptional<z.ZodObject<{
|
|
1135
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1136
|
+
title: z.ZodString;
|
|
1137
|
+
content: z.ZodString;
|
|
1138
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1139
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1140
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1141
|
+
query: "query";
|
|
1142
|
+
user: "user";
|
|
1143
|
+
global: "global";
|
|
1144
|
+
}>>>;
|
|
1145
|
+
createdBy: z.ZodString;
|
|
1146
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
1147
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1148
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1149
|
+
}, z.core.$strip>>;
|
|
1150
|
+
nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1151
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1152
|
+
title: z.ZodString;
|
|
1153
|
+
content: z.ZodString;
|
|
1154
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1155
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1156
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1157
|
+
query: "query";
|
|
1158
|
+
user: "user";
|
|
1159
|
+
global: "global";
|
|
1160
|
+
}>>>;
|
|
1161
|
+
createdBy: z.ZodString;
|
|
1162
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
1163
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1164
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1165
|
+
}, z.core.$strip>>>;
|
|
1166
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1167
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
1168
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1169
|
+
}, z.core.$strip>>;
|
|
1170
|
+
}, z.core.$strip>;
|
|
1171
|
+
type KbNodesResponsePayload = z.infer<typeof KbNodesResponsePayloadSchema>;
|
|
1172
|
+
/**
|
|
1173
|
+
* KB Nodes response message schema
|
|
1174
|
+
*/
|
|
1175
|
+
declare const KbNodesResponseMessageSchema: z.ZodObject<{
|
|
1176
|
+
id: z.ZodString;
|
|
1177
|
+
type: z.ZodLiteral<"KB_NODES_RES">;
|
|
1178
|
+
from: z.ZodObject<{
|
|
1179
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1180
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1181
|
+
}, z.core.$strip>;
|
|
1182
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
1183
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1184
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1185
|
+
}, z.core.$strip>>;
|
|
1186
|
+
payload: z.ZodObject<{
|
|
1187
|
+
success: z.ZodBoolean;
|
|
1188
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1189
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
1190
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1191
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1192
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1193
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1194
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1195
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1196
|
+
query: "query";
|
|
1197
|
+
user: "user";
|
|
1198
|
+
global: "global";
|
|
1199
|
+
}>>>;
|
|
1200
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
1201
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
1202
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1203
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1204
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1205
|
+
node: z.ZodOptional<z.ZodObject<{
|
|
1206
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1207
|
+
title: z.ZodString;
|
|
1208
|
+
content: z.ZodString;
|
|
1209
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1210
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1211
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1212
|
+
query: "query";
|
|
1213
|
+
user: "user";
|
|
1214
|
+
global: "global";
|
|
1215
|
+
}>>>;
|
|
1216
|
+
createdBy: z.ZodString;
|
|
1217
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
1218
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1219
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1220
|
+
}, z.core.$strip>>;
|
|
1221
|
+
nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1222
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1223
|
+
title: z.ZodString;
|
|
1224
|
+
content: z.ZodString;
|
|
1225
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1226
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1227
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1228
|
+
query: "query";
|
|
1229
|
+
user: "user";
|
|
1230
|
+
global: "global";
|
|
1231
|
+
}>>>;
|
|
1232
|
+
createdBy: z.ZodString;
|
|
1233
|
+
updatedBy: z.ZodOptional<z.ZodString>;
|
|
1234
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1235
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1236
|
+
}, z.core.$strip>>>;
|
|
1237
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1238
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
1239
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1240
|
+
}, z.core.$strip>>;
|
|
1241
|
+
}, z.core.$strip>;
|
|
1242
|
+
}, z.core.$strip>;
|
|
1243
|
+
type KbNodesResponseMessage = z.infer<typeof KbNodesResponseMessageSchema>;
|
|
1244
|
+
/**
|
|
1245
|
+
* Menu data interface (defined separately for self-referencing schema)
|
|
1246
|
+
*/
|
|
1247
|
+
interface MenuData {
|
|
1248
|
+
id?: number;
|
|
1249
|
+
name: string;
|
|
1250
|
+
componentName: string;
|
|
1251
|
+
icon?: string | null;
|
|
1252
|
+
userMessage?: string | null;
|
|
1253
|
+
parentId?: number | null;
|
|
1254
|
+
sortOrder?: number;
|
|
1255
|
+
props?: Record<string, unknown> | null;
|
|
1256
|
+
isActive?: boolean;
|
|
1257
|
+
createdAt?: string;
|
|
1258
|
+
updatedAt?: string;
|
|
1259
|
+
children?: MenuData[];
|
|
1260
|
+
menuJson?: Record<string, unknown> | null;
|
|
1261
|
+
version?: number;
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
* Menu data schema
|
|
1265
|
+
* Synced with sdk-nodejs: MenuDataSchema
|
|
1266
|
+
*/
|
|
1267
|
+
declare const MenuDataSchema: z.ZodType<MenuData>;
|
|
1268
|
+
/**
|
|
1269
|
+
* Menu query filters schema
|
|
1270
|
+
* Synced with sdk-nodejs: MenuQueryFiltersSchema
|
|
1271
|
+
*/
|
|
1272
|
+
declare const MenuQueryFiltersSchema: z.ZodObject<{
|
|
1273
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1274
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
1275
|
+
}, z.core.$strip>;
|
|
1276
|
+
type MenuQueryFilters = z.infer<typeof MenuQueryFiltersSchema>;
|
|
1277
|
+
/**
|
|
1278
|
+
* Menus request payload schema
|
|
1279
|
+
* Synced with sdk-nodejs: MenusRequestPayloadSchema
|
|
1280
|
+
*/
|
|
1281
|
+
declare const MenusRequestPayloadSchema: z.ZodObject<{
|
|
1282
|
+
operation: z.ZodEnum<{
|
|
1283
|
+
query: "query";
|
|
1284
|
+
create: "create";
|
|
1285
|
+
update: "update";
|
|
1286
|
+
delete: "delete";
|
|
1287
|
+
getAll: "getAll";
|
|
1288
|
+
getOne: "getOne";
|
|
1289
|
+
getRootMenus: "getRootMenus";
|
|
1290
|
+
getChildMenus: "getChildMenus";
|
|
1291
|
+
getHierarchy: "getHierarchy";
|
|
1292
|
+
reorder: "reorder";
|
|
1293
|
+
}>;
|
|
1294
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
1295
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1296
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
1298
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1299
|
+
userMessage: z.ZodOptional<z.ZodString>;
|
|
1300
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1301
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
1302
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1303
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
1304
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
1305
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1306
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
1307
|
+
}, z.core.$strip>>;
|
|
1308
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1309
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
1310
|
+
ASC: "ASC";
|
|
1311
|
+
DESC: "DESC";
|
|
1312
|
+
}>>;
|
|
1313
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1314
|
+
id: z.ZodNumber;
|
|
1315
|
+
sortOrder: z.ZodNumber;
|
|
1316
|
+
}, z.core.$strip>>>;
|
|
1317
|
+
}, z.core.$strip>>;
|
|
1318
|
+
}, z.core.$strip>;
|
|
1319
|
+
type MenusRequestPayload = z.infer<typeof MenusRequestPayloadSchema>;
|
|
1320
|
+
/**
|
|
1321
|
+
* Menus request message schema
|
|
1322
|
+
* Synced with sdk-nodejs: MenusRequestMessageSchema
|
|
1323
|
+
*/
|
|
1324
|
+
declare const MenusRequestMessageSchema: z.ZodObject<{
|
|
1325
|
+
id: z.ZodString;
|
|
1326
|
+
type: z.ZodLiteral<"MENUS">;
|
|
1327
|
+
from: z.ZodObject<{
|
|
1328
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1329
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1330
|
+
}, z.core.$strip>;
|
|
1331
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
1332
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1333
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1334
|
+
}, z.core.$strip>>;
|
|
1335
|
+
payload: z.ZodObject<{
|
|
1336
|
+
operation: z.ZodEnum<{
|
|
1337
|
+
query: "query";
|
|
1338
|
+
create: "create";
|
|
1339
|
+
update: "update";
|
|
1340
|
+
delete: "delete";
|
|
1341
|
+
getAll: "getAll";
|
|
1342
|
+
getOne: "getOne";
|
|
1343
|
+
getRootMenus: "getRootMenus";
|
|
1344
|
+
getChildMenus: "getChildMenus";
|
|
1345
|
+
getHierarchy: "getHierarchy";
|
|
1346
|
+
reorder: "reorder";
|
|
1347
|
+
}>;
|
|
1348
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
1349
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
1350
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1351
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
1352
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1353
|
+
userMessage: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1355
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
1356
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1357
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
1358
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
1359
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1360
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
1361
|
+
}, z.core.$strip>>;
|
|
1362
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1363
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
1364
|
+
ASC: "ASC";
|
|
1365
|
+
DESC: "DESC";
|
|
1366
|
+
}>>;
|
|
1367
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1368
|
+
id: z.ZodNumber;
|
|
1369
|
+
sortOrder: z.ZodNumber;
|
|
1370
|
+
}, z.core.$strip>>>;
|
|
1371
|
+
}, z.core.$strip>>;
|
|
1372
|
+
}, z.core.$strip>;
|
|
1373
|
+
}, z.core.$strip>;
|
|
1374
|
+
type MenusRequestMessage = z.infer<typeof MenusRequestMessageSchema>;
|
|
1375
|
+
/**
|
|
1376
|
+
* Menus response payload schema
|
|
1377
|
+
* Synced with sdk-nodejs handler: menus.ts
|
|
1378
|
+
*/
|
|
1379
|
+
declare const MenusResponsePayloadSchema: z.ZodObject<{
|
|
1380
|
+
success: z.ZodBoolean;
|
|
1381
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1382
|
+
data: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<MenuData, unknown, z.core.$ZodTypeInternals<MenuData, unknown>>, z.ZodArray<z.ZodType<MenuData, unknown, z.core.$ZodTypeInternals<MenuData, unknown>>>]>>;
|
|
1383
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1384
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
}, z.core.$strip>;
|
|
1386
|
+
type MenusResponsePayload = z.infer<typeof MenusResponsePayloadSchema>;
|
|
1387
|
+
/**
|
|
1388
|
+
* Menus response message schema
|
|
1389
|
+
*/
|
|
1390
|
+
declare const MenusResponseMessageSchema: z.ZodObject<{
|
|
1391
|
+
id: z.ZodString;
|
|
1392
|
+
type: z.ZodLiteral<"MENUS_RES">;
|
|
1393
|
+
from: z.ZodObject<{
|
|
1394
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1395
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1396
|
+
}, z.core.$strip>;
|
|
1397
|
+
to: z.ZodOptional<z.ZodObject<{
|
|
1398
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1399
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1400
|
+
}, z.core.$strip>>;
|
|
1401
|
+
payload: z.ZodObject<{
|
|
1402
|
+
success: z.ZodBoolean;
|
|
1403
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1404
|
+
data: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<MenuData, unknown, z.core.$ZodTypeInternals<MenuData, unknown>>, z.ZodArray<z.ZodType<MenuData, unknown, z.core.$ZodTypeInternals<MenuData, unknown>>>]>>;
|
|
1405
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1406
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1407
|
+
}, z.core.$strip>;
|
|
1408
|
+
}, z.core.$strip>;
|
|
1409
|
+
type MenusResponseMessage = z.infer<typeof MenusResponseMessageSchema>;
|
|
1410
|
+
/**
|
|
1411
|
+
* Schema column statistics
|
|
1412
|
+
* Synced with sdk-nodejs: SchemaColumnStatisticsSchema
|
|
1413
|
+
*/
|
|
1414
|
+
declare const SchemaColumnStatisticsSchema: z.ZodObject<{
|
|
1415
|
+
distinct: z.ZodOptional<z.ZodNumber>;
|
|
1416
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1417
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1418
|
+
}, z.core.$strip>;
|
|
1419
|
+
type SchemaColumnStatistics = z.infer<typeof SchemaColumnStatisticsSchema>;
|
|
1420
|
+
/**
|
|
1421
|
+
* Schema column definition
|
|
1422
|
+
* Synced with sdk-nodejs: SchemaColumnSchema
|
|
1423
|
+
*/
|
|
1424
|
+
declare const SchemaColumnSchema: z.ZodObject<{
|
|
1425
|
+
name: z.ZodString;
|
|
1426
|
+
type: z.ZodString;
|
|
1427
|
+
nativeType: z.ZodString;
|
|
1428
|
+
nullable: z.ZodBoolean;
|
|
1429
|
+
description: z.ZodString;
|
|
1430
|
+
statistics: z.ZodOptional<z.ZodObject<{
|
|
1431
|
+
distinct: z.ZodOptional<z.ZodNumber>;
|
|
1432
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1433
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1434
|
+
}, z.core.$strip>>;
|
|
1435
|
+
cardinality: z.ZodOptional<z.ZodEnum<{
|
|
1436
|
+
unique: "unique";
|
|
1437
|
+
high: "high";
|
|
1438
|
+
medium: "medium";
|
|
1439
|
+
low: "low";
|
|
1440
|
+
}>>;
|
|
1441
|
+
sampleValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1442
|
+
}, z.core.$strip>;
|
|
1443
|
+
type SchemaColumn = z.infer<typeof SchemaColumnSchema>;
|
|
1444
|
+
/**
|
|
1445
|
+
* Schema table definition
|
|
1446
|
+
* Synced with sdk-nodejs: SchemaTableSchema
|
|
1447
|
+
*/
|
|
1448
|
+
declare const SchemaTableSchema: z.ZodObject<{
|
|
1449
|
+
name: z.ZodString;
|
|
1450
|
+
fullName: z.ZodString;
|
|
1451
|
+
rowCount: z.ZodNumber;
|
|
1452
|
+
description: z.ZodString;
|
|
1453
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1454
|
+
name: z.ZodString;
|
|
1455
|
+
type: z.ZodString;
|
|
1456
|
+
nativeType: z.ZodString;
|
|
1457
|
+
nullable: z.ZodBoolean;
|
|
1458
|
+
description: z.ZodString;
|
|
1459
|
+
statistics: z.ZodOptional<z.ZodObject<{
|
|
1460
|
+
distinct: z.ZodOptional<z.ZodNumber>;
|
|
1461
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1462
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1463
|
+
}, z.core.$strip>>;
|
|
1464
|
+
cardinality: z.ZodOptional<z.ZodEnum<{
|
|
1465
|
+
unique: "unique";
|
|
1466
|
+
high: "high";
|
|
1467
|
+
medium: "medium";
|
|
1468
|
+
low: "low";
|
|
1469
|
+
}>>;
|
|
1470
|
+
sampleValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1471
|
+
}, z.core.$strip>>;
|
|
1472
|
+
}, z.core.$strip>;
|
|
1473
|
+
type SchemaTable = z.infer<typeof SchemaTableSchema>;
|
|
1474
|
+
/**
|
|
1475
|
+
* Schema relationship definition
|
|
1476
|
+
* Synced with sdk-nodejs: SchemaRelationshipSchema
|
|
1477
|
+
*/
|
|
1478
|
+
declare const SchemaRelationshipSchema: z.ZodObject<{
|
|
1479
|
+
from: z.ZodString;
|
|
1480
|
+
to: z.ZodString;
|
|
1481
|
+
type: z.ZodString;
|
|
1482
|
+
keys: z.ZodArray<z.ZodString>;
|
|
1483
|
+
}, z.core.$strip>;
|
|
1484
|
+
type SchemaRelationship = z.infer<typeof SchemaRelationshipSchema>;
|
|
1485
|
+
/**
|
|
1486
|
+
* Database schema definition
|
|
1487
|
+
* Synced with sdk-nodejs: DatabaseSchemaSchema
|
|
1488
|
+
*/
|
|
1489
|
+
declare const DatabaseSchemaSchema: z.ZodObject<{
|
|
1490
|
+
database: z.ZodString;
|
|
1491
|
+
databaseType: z.ZodOptional<z.ZodString>;
|
|
1492
|
+
schema: z.ZodString;
|
|
1493
|
+
description: z.ZodString;
|
|
1494
|
+
tables: z.ZodArray<z.ZodObject<{
|
|
1495
|
+
name: z.ZodString;
|
|
1496
|
+
fullName: z.ZodString;
|
|
1497
|
+
rowCount: z.ZodNumber;
|
|
1498
|
+
description: z.ZodString;
|
|
1499
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1500
|
+
name: z.ZodString;
|
|
1501
|
+
type: z.ZodString;
|
|
1502
|
+
nativeType: z.ZodString;
|
|
1503
|
+
nullable: z.ZodBoolean;
|
|
1504
|
+
description: z.ZodString;
|
|
1505
|
+
statistics: z.ZodOptional<z.ZodObject<{
|
|
1506
|
+
distinct: z.ZodOptional<z.ZodNumber>;
|
|
1507
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1508
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1509
|
+
}, z.core.$strip>>;
|
|
1510
|
+
cardinality: z.ZodOptional<z.ZodEnum<{
|
|
1511
|
+
unique: "unique";
|
|
1512
|
+
high: "high";
|
|
1513
|
+
medium: "medium";
|
|
1514
|
+
low: "low";
|
|
1515
|
+
}>>;
|
|
1516
|
+
sampleValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1517
|
+
}, z.core.$strip>>;
|
|
1518
|
+
}, z.core.$strip>>;
|
|
1519
|
+
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1520
|
+
from: z.ZodString;
|
|
1521
|
+
to: z.ZodString;
|
|
1522
|
+
type: z.ZodString;
|
|
1523
|
+
keys: z.ZodArray<z.ZodString>;
|
|
1524
|
+
}, z.core.$strip>>>;
|
|
1525
|
+
}, z.core.$strip>;
|
|
1526
|
+
type DatabaseSchema = z.infer<typeof DatabaseSchemaSchema>;
|
|
1527
|
+
/**
|
|
1528
|
+
* Schema request payload
|
|
1529
|
+
* Synced with sdk-nodejs: SchemaRequestPayloadSchema
|
|
1530
|
+
*/
|
|
1531
|
+
declare const SchemaRequestPayloadSchema: z.ZodObject<{
|
|
1532
|
+
formatted: z.ZodOptional<z.ZodBoolean>;
|
|
1533
|
+
}, z.core.$strip>;
|
|
1534
|
+
type SchemaRequestPayload = z.infer<typeof SchemaRequestPayloadSchema>;
|
|
1535
|
+
/**
|
|
1536
|
+
* Schema response payload
|
|
1537
|
+
* Synced with sdk-nodejs handler: schema-request.ts
|
|
1538
|
+
*/
|
|
1539
|
+
declare const SchemaResponsePayloadSchema: z.ZodObject<{
|
|
1540
|
+
success: z.ZodBoolean;
|
|
1541
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1542
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
1543
|
+
schema: z.ZodObject<{
|
|
1544
|
+
database: z.ZodString;
|
|
1545
|
+
databaseType: z.ZodOptional<z.ZodString>;
|
|
1546
|
+
schema: z.ZodString;
|
|
1547
|
+
description: z.ZodString;
|
|
1548
|
+
tables: z.ZodArray<z.ZodObject<{
|
|
1549
|
+
name: z.ZodString;
|
|
1550
|
+
fullName: z.ZodString;
|
|
1551
|
+
rowCount: z.ZodNumber;
|
|
1552
|
+
description: z.ZodString;
|
|
1553
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1554
|
+
name: z.ZodString;
|
|
1555
|
+
type: z.ZodString;
|
|
1556
|
+
nativeType: z.ZodString;
|
|
1557
|
+
nullable: z.ZodBoolean;
|
|
1558
|
+
description: z.ZodString;
|
|
1559
|
+
statistics: z.ZodOptional<z.ZodObject<{
|
|
1560
|
+
distinct: z.ZodOptional<z.ZodNumber>;
|
|
1561
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1562
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1563
|
+
}, z.core.$strip>>;
|
|
1564
|
+
cardinality: z.ZodOptional<z.ZodEnum<{
|
|
1565
|
+
unique: "unique";
|
|
1566
|
+
high: "high";
|
|
1567
|
+
medium: "medium";
|
|
1568
|
+
low: "low";
|
|
1569
|
+
}>>;
|
|
1570
|
+
sampleValues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1571
|
+
}, z.core.$strip>>;
|
|
1572
|
+
}, z.core.$strip>>;
|
|
1573
|
+
relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1574
|
+
from: z.ZodString;
|
|
1575
|
+
to: z.ZodString;
|
|
1576
|
+
type: z.ZodString;
|
|
1577
|
+
keys: z.ZodArray<z.ZodString>;
|
|
1578
|
+
}, z.core.$strip>>>;
|
|
1579
|
+
}, z.core.$strip>;
|
|
1580
|
+
formatted: z.ZodOptional<z.ZodString>;
|
|
1581
|
+
}, z.core.$strip>>;
|
|
1582
|
+
}, z.core.$strip>;
|
|
1583
|
+
type SchemaResponsePayload = z.infer<typeof SchemaResponsePayloadSchema>;
|
|
1584
|
+
/**
|
|
1585
|
+
* Client configuration schema
|
|
1586
|
+
*/
|
|
1587
|
+
declare const ClientConfigSchema: z.ZodObject<{
|
|
1588
|
+
userId: z.ZodString;
|
|
1589
|
+
projectId: z.ZodString;
|
|
1590
|
+
baseUrl: z.ZodDefault<z.ZodString>;
|
|
1591
|
+
type: z.ZodDefault<z.ZodString>;
|
|
1592
|
+
maxReconnectAttempts: z.ZodDefault<z.ZodNumber>;
|
|
1593
|
+
initialReconnectDelay: z.ZodDefault<z.ZodNumber>;
|
|
1594
|
+
maxReconnectDelay: z.ZodDefault<z.ZodNumber>;
|
|
1595
|
+
defaultTimeout: z.ZodDefault<z.ZodNumber>;
|
|
1596
|
+
debug: z.ZodDefault<z.ZodBoolean>;
|
|
1597
|
+
}, z.core.$strip>;
|
|
1598
|
+
type ClientConfig = z.input<typeof ClientConfigSchema>;
|
|
1599
|
+
type ResolvedClientConfig = z.output<typeof ClientConfigSchema>;
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* Authentication Service
|
|
1603
|
+
* Handles auth_login_req and auth_verify_req messages
|
|
1604
|
+
*/
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* Send authentication login request
|
|
1608
|
+
* @param client - SuperatomClient instance
|
|
1609
|
+
* @param loginDataBase64 - Base64 encoded login data (username + SHA-1 hashed password)
|
|
1610
|
+
* @param timeout - Request timeout in milliseconds
|
|
1611
|
+
* @returns Server response message
|
|
1612
|
+
*/
|
|
1613
|
+
declare function sendAuthLoginRequest(client: SuperatomClient, loginDataBase64: string, timeout?: number): Promise<Message>;
|
|
1614
|
+
/**
|
|
1615
|
+
* Send authentication verify request
|
|
1616
|
+
* @param client - SuperatomClient instance
|
|
1617
|
+
* @param token - Base64 encoded authentication token
|
|
1618
|
+
* @param timeout - Request timeout in milliseconds
|
|
1619
|
+
* @returns Server response message
|
|
1620
|
+
*/
|
|
1621
|
+
declare function sendAuthVerifyRequest(client: SuperatomClient, token: string, timeout?: number): Promise<Message>;
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* User Prompt Service
|
|
1625
|
+
* Handles user_prompt_req and user_prompt_suggestions_req messages
|
|
1626
|
+
*/
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
* Send a user prompt request
|
|
1630
|
+
* @param client - SuperatomClient instance
|
|
1631
|
+
* @param prompt - User's prompt text
|
|
1632
|
+
* @param threadId - Thread ID for conversation context
|
|
1633
|
+
* @param uiBlockId - UI block ID for context
|
|
1634
|
+
* @param userId - User ID for the request
|
|
1635
|
+
* @param responseMode - 'component' for component response (default), 'text' for text streaming
|
|
1636
|
+
* @param onStream - Optional callback for streaming text chunks (only for text mode)
|
|
1637
|
+
* @param timeout - Request timeout in milliseconds
|
|
1638
|
+
* @returns Server response message
|
|
1639
|
+
*/
|
|
1640
|
+
declare function sendUserPromptRequest(client: SuperatomClient, prompt: string, threadId: string, uiBlockId: string, userId?: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
|
|
1641
|
+
/**
|
|
1642
|
+
* Send a user prompt suggestions request
|
|
1643
|
+
* @param client - SuperatomClient instance
|
|
1644
|
+
* @param prompt - User's partial prompt text
|
|
1645
|
+
* @param userId - User ID for the request
|
|
1646
|
+
* @param limit - Maximum number of suggestions to return
|
|
1647
|
+
* @param timeout - Request timeout in milliseconds
|
|
1648
|
+
* @returns Server response message or null if prompt is empty
|
|
1649
|
+
*/
|
|
1650
|
+
declare function sendUserPromptSuggestionsRequest(client: SuperatomClient, prompt: string, userId?: string, limit?: number, timeout?: number): Promise<Message | null>;
|
|
1651
|
+
|
|
1652
|
+
/**
|
|
1653
|
+
* Bundle Service
|
|
1654
|
+
* Handles bundle_req messages and chunked bundle delivery
|
|
1655
|
+
*/
|
|
1656
|
+
|
|
1657
|
+
/**
|
|
1658
|
+
* Request bundle from server
|
|
1659
|
+
* @param client - SuperatomClient instance
|
|
1660
|
+
* @param options - Bundle request options
|
|
1661
|
+
* @param options.timeout - Request timeout in milliseconds (default: 60000)
|
|
1662
|
+
* @param options.onProgress - Progress callback (0-100)
|
|
1663
|
+
* @returns Complete bundle as string
|
|
1664
|
+
*/
|
|
1665
|
+
declare function requestBundle(client: SuperatomClient, options?: {
|
|
1666
|
+
timeout?: number;
|
|
1667
|
+
onProgress?: (progress: number) => void;
|
|
1668
|
+
devbundlereq?: boolean;
|
|
1669
|
+
}): Promise<string>;
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* Data Service
|
|
1673
|
+
* Handles data_req messages for querying collections
|
|
1674
|
+
*/
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* Request data from a collection
|
|
1678
|
+
* @param client - SuperatomClient instance
|
|
1679
|
+
* @param options - Data request options
|
|
1680
|
+
* @param options.collection - Collection name to query
|
|
1681
|
+
* @param options.operation - Operation to perform (e.g., 'find', 'aggregate')
|
|
1682
|
+
* @param options.params - Operation parameters
|
|
1683
|
+
* @param options.timeout - Request timeout in milliseconds
|
|
1684
|
+
* @returns Response with data or error
|
|
1685
|
+
*/
|
|
1686
|
+
declare function requestData(client: SuperatomClient, options: {
|
|
1687
|
+
collection: string;
|
|
1688
|
+
operation: string;
|
|
1689
|
+
params?: Record<string, unknown>;
|
|
1690
|
+
SA_RUNTIME?: Record<string, unknown>;
|
|
1691
|
+
timeout?: number;
|
|
1692
|
+
}): Promise<{
|
|
1693
|
+
data?: unknown;
|
|
1694
|
+
error?: string;
|
|
1695
|
+
executionMs?: number;
|
|
1696
|
+
}>;
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* Component Service
|
|
1700
|
+
* Handles AI-powered component suggestions
|
|
1701
|
+
*/
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
* Get AI-powered component suggestions based on a query
|
|
1705
|
+
* @param client - SuperatomClient instance
|
|
1706
|
+
* @param query - User query for component suggestion
|
|
1707
|
+
* @param options - Request options
|
|
1708
|
+
* @param options.timeout - Request timeout in milliseconds
|
|
1709
|
+
* @returns Component suggestion or error
|
|
1710
|
+
*/
|
|
1711
|
+
declare function getComponentSuggestions(client: SuperatomClient, query: string, options?: {
|
|
1712
|
+
timeout?: number;
|
|
1713
|
+
}): Promise<{
|
|
1714
|
+
component?: {
|
|
1715
|
+
id: string;
|
|
1716
|
+
name: string;
|
|
1717
|
+
};
|
|
1718
|
+
error?: string;
|
|
1719
|
+
}>;
|
|
1720
|
+
declare function sendComponents(client: SuperatomClient, components: any[]): Promise<void>;
|
|
1721
|
+
|
|
1722
|
+
/**
|
|
1723
|
+
* Users Service
|
|
1724
|
+
* Handles USERS message for user CRUD operations
|
|
1725
|
+
*/
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* User interface for response data
|
|
1729
|
+
*/
|
|
1730
|
+
interface User {
|
|
1731
|
+
username: string;
|
|
1732
|
+
email?: string;
|
|
1733
|
+
fullname?: string;
|
|
1734
|
+
role?: string;
|
|
1735
|
+
userInfo?: Record<string, unknown>;
|
|
1736
|
+
wsIds?: string[];
|
|
1737
|
+
}
|
|
1738
|
+
/**
|
|
1739
|
+
* Create a new user
|
|
1740
|
+
* @param client - SuperatomClient instance
|
|
1741
|
+
* @param username - Username for the new user
|
|
1742
|
+
* @param password - Password for the new user
|
|
1743
|
+
* @param email - Email for the new user (optional)
|
|
1744
|
+
* @param fullname - Full name for the new user (optional)
|
|
1745
|
+
* @param role - Role for the new user (optional)
|
|
1746
|
+
* @param userInfo - Additional user info as JSON object (optional)
|
|
1747
|
+
* @param timeout - Request timeout in milliseconds
|
|
1748
|
+
* @returns Server response with success status
|
|
1749
|
+
*/
|
|
1750
|
+
declare function createUser(client: SuperatomClient, username: string, password: string, email?: string, fullname?: string, role?: string, userInfo?: Record<string, unknown>, timeout?: number): Promise<{
|
|
1751
|
+
success: boolean;
|
|
1752
|
+
error?: string;
|
|
1753
|
+
message?: string;
|
|
1754
|
+
username?: string;
|
|
1755
|
+
email?: string;
|
|
1756
|
+
fullname?: string;
|
|
1757
|
+
role?: string;
|
|
1758
|
+
}>;
|
|
1759
|
+
/**
|
|
1760
|
+
* Update an existing user
|
|
1761
|
+
* @param client - SuperatomClient instance
|
|
1762
|
+
* @param username - Username to update
|
|
1763
|
+
* @param updates - Object containing fields to update (password, email, fullname, role)
|
|
1764
|
+
* @param timeout - Request timeout in milliseconds
|
|
1765
|
+
* @returns Server response with success status
|
|
1766
|
+
*/
|
|
1767
|
+
declare function updateUser(client: SuperatomClient, id: number, updates: {
|
|
1768
|
+
password?: string;
|
|
1769
|
+
email?: string;
|
|
1770
|
+
fullname?: string;
|
|
1771
|
+
role?: string;
|
|
1772
|
+
userInfo?: Record<string, unknown>;
|
|
1773
|
+
}, timeout?: number): Promise<{
|
|
1774
|
+
success: boolean;
|
|
1775
|
+
error?: string;
|
|
1776
|
+
message?: string;
|
|
1777
|
+
username?: string;
|
|
1778
|
+
email?: string;
|
|
1779
|
+
fullname?: string;
|
|
1780
|
+
role?: string;
|
|
1781
|
+
}>;
|
|
1782
|
+
/**
|
|
1783
|
+
* Delete a user
|
|
1784
|
+
* @param client - SuperatomClient instance
|
|
1785
|
+
* @param username - Username to delete
|
|
1786
|
+
* @param timeout - Request timeout in milliseconds
|
|
1787
|
+
* @returns Server response with success status
|
|
1788
|
+
*/
|
|
1789
|
+
declare function deleteUser(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
1790
|
+
success: boolean;
|
|
1791
|
+
error?: string;
|
|
1792
|
+
message?: string;
|
|
1793
|
+
username?: string;
|
|
1794
|
+
email?: string;
|
|
1795
|
+
fullname?: string;
|
|
1796
|
+
role?: string;
|
|
1797
|
+
}>;
|
|
1798
|
+
/**
|
|
1799
|
+
* Get all users
|
|
1800
|
+
* @param client - SuperatomClient instance
|
|
1801
|
+
* @param timeout - Request timeout in milliseconds
|
|
1802
|
+
* @returns Server response with list of users
|
|
1803
|
+
*/
|
|
1804
|
+
declare function getAllUsers(client: SuperatomClient, timeout?: number): Promise<{
|
|
1805
|
+
success: boolean;
|
|
1806
|
+
error?: string;
|
|
1807
|
+
users?: User[];
|
|
1808
|
+
count?: number;
|
|
1809
|
+
message?: string;
|
|
1810
|
+
}>;
|
|
1811
|
+
/**
|
|
1812
|
+
* Get a specific user by username
|
|
1813
|
+
* @param client - SuperatomClient instance
|
|
1814
|
+
* @param username - Username to retrieve
|
|
1815
|
+
* @param timeout - Request timeout in milliseconds
|
|
1816
|
+
* @returns Server response with user data
|
|
1817
|
+
*/
|
|
1818
|
+
declare function getUser(client: SuperatomClient, username: string, timeout?: number): Promise<{
|
|
1819
|
+
success: boolean;
|
|
1820
|
+
error?: string;
|
|
1821
|
+
user?: User;
|
|
1822
|
+
message?: string;
|
|
1823
|
+
}>;
|
|
1824
|
+
/**
|
|
1825
|
+
* Query users options
|
|
1826
|
+
*/
|
|
1827
|
+
interface QueryUsersOptions {
|
|
1828
|
+
filters?: UserQueryFilters;
|
|
1829
|
+
limit?: number;
|
|
1830
|
+
sort?: 'ASC' | 'DESC';
|
|
1831
|
+
}
|
|
1832
|
+
/**
|
|
1833
|
+
* Query users with filters, limit, and sort
|
|
1834
|
+
* @param client - SuperatomClient instance
|
|
1835
|
+
* @param options - Query options with filters, limit, and sort
|
|
1836
|
+
* @param timeout - Request timeout in milliseconds
|
|
1837
|
+
* @returns Server response with list of users
|
|
1838
|
+
*/
|
|
1839
|
+
declare function queryUsers(client: SuperatomClient, options?: QueryUsersOptions, timeout?: number): Promise<{
|
|
1840
|
+
success: boolean;
|
|
1841
|
+
error?: string;
|
|
1842
|
+
users?: User[];
|
|
1843
|
+
count?: number;
|
|
1844
|
+
message?: string;
|
|
1845
|
+
}>;
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* Dashboards Service
|
|
1849
|
+
* Handles DASHBOARDS message for dashboard CRUD operations
|
|
1850
|
+
*/
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* Dashboard interface for response data
|
|
1854
|
+
*/
|
|
1855
|
+
interface Dashboard {
|
|
1856
|
+
id?: number;
|
|
1857
|
+
dashboardId: string;
|
|
1858
|
+
projectId?: string;
|
|
1859
|
+
name?: string;
|
|
1860
|
+
description?: string;
|
|
1861
|
+
published?: boolean;
|
|
1862
|
+
dashboard?: DSLRendererProps$2;
|
|
1863
|
+
createdBy?: string;
|
|
1864
|
+
updatedBy?: string;
|
|
1865
|
+
allowedUsers?: string[];
|
|
1866
|
+
createdAt?: string;
|
|
1867
|
+
updatedAt?: string;
|
|
1868
|
+
}
|
|
1869
|
+
/**
|
|
1870
|
+
* Create dashboard options
|
|
1871
|
+
*/
|
|
1872
|
+
interface CreateDashboardOptions {
|
|
1873
|
+
dashboardId: string;
|
|
1874
|
+
projectId: string;
|
|
1875
|
+
name?: string;
|
|
1876
|
+
description?: string;
|
|
1877
|
+
published?: boolean;
|
|
1878
|
+
createdBy?: string;
|
|
1879
|
+
allowedUsers?: string[];
|
|
1880
|
+
dashboard?: DSLRendererProps$2;
|
|
1881
|
+
}
|
|
1882
|
+
/**
|
|
1883
|
+
* Update dashboard options
|
|
1884
|
+
*/
|
|
1885
|
+
interface UpdateDashboardOptions {
|
|
1886
|
+
id: number;
|
|
1887
|
+
name?: string;
|
|
1888
|
+
description?: string;
|
|
1889
|
+
published?: boolean;
|
|
1890
|
+
createdBy?: string;
|
|
1891
|
+
updatedBy?: string;
|
|
1892
|
+
allowedUsers?: string[];
|
|
1893
|
+
dashboard?: DSLRendererProps$2;
|
|
1894
|
+
}
|
|
1895
|
+
/**
|
|
1896
|
+
* Query dashboards options
|
|
1897
|
+
*/
|
|
1898
|
+
interface QueryDashboardsOptions {
|
|
1899
|
+
filters?: DashboardQueryFilters;
|
|
1900
|
+
limit?: number;
|
|
1901
|
+
sort?: 'ASC' | 'DESC';
|
|
1902
|
+
}
|
|
1903
|
+
/**
|
|
1904
|
+
* Create a new dashboard
|
|
1905
|
+
* @param client - SuperatomClient instance
|
|
1906
|
+
* @param options - Dashboard creation options
|
|
1907
|
+
* @param timeout - Request timeout in milliseconds
|
|
1908
|
+
* @returns Server response with success status
|
|
1909
|
+
*/
|
|
1910
|
+
declare function createDashboard(client: SuperatomClient, options: CreateDashboardOptions, timeout?: number): Promise<{
|
|
1911
|
+
success: boolean;
|
|
1912
|
+
error?: string;
|
|
1913
|
+
message?: string;
|
|
1914
|
+
id?: number;
|
|
1915
|
+
dashboardId?: string;
|
|
1916
|
+
dashboard?: DSLRendererProps$2;
|
|
1917
|
+
}>;
|
|
1918
|
+
/**
|
|
1919
|
+
* Update an existing dashboard
|
|
1920
|
+
* @param client - SuperatomClient instance
|
|
1921
|
+
* @param options - Dashboard update options
|
|
1922
|
+
* @param timeout - Request timeout in milliseconds
|
|
1923
|
+
* @returns Server response with success status
|
|
1924
|
+
*/
|
|
1925
|
+
declare function updateDashboard(client: SuperatomClient, options: UpdateDashboardOptions, timeout?: number): Promise<{
|
|
1926
|
+
success: boolean;
|
|
1927
|
+
error?: string;
|
|
1928
|
+
message?: string;
|
|
1929
|
+
id?: number;
|
|
1930
|
+
dashboardId?: string;
|
|
1931
|
+
dashboard?: DSLRendererProps$2;
|
|
1932
|
+
}>;
|
|
1933
|
+
/**
|
|
1934
|
+
* Delete a dashboard
|
|
1935
|
+
* @param client - SuperatomClient instance
|
|
1936
|
+
* @param id - Dashboard ID (numeric) to delete
|
|
1937
|
+
* @param timeout - Request timeout in milliseconds
|
|
1938
|
+
* @returns Server response with success status
|
|
1939
|
+
*/
|
|
1940
|
+
declare function deleteDashboard(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
1941
|
+
success: boolean;
|
|
1942
|
+
error?: string;
|
|
1943
|
+
message?: string;
|
|
1944
|
+
id?: number;
|
|
1945
|
+
}>;
|
|
1946
|
+
/**
|
|
1947
|
+
* Get all dashboards
|
|
1948
|
+
* @param client - SuperatomClient instance
|
|
1949
|
+
* @param timeout - Request timeout in milliseconds
|
|
1950
|
+
* @returns Server response with list of dashboards
|
|
1951
|
+
*/
|
|
1952
|
+
declare function getAllDashboards(client: SuperatomClient, timeout?: number): Promise<{
|
|
1953
|
+
success: boolean;
|
|
1954
|
+
error?: string;
|
|
1955
|
+
dashboards?: Dashboard[];
|
|
1956
|
+
count?: number;
|
|
1957
|
+
message?: string;
|
|
1958
|
+
}>;
|
|
1959
|
+
/**
|
|
1960
|
+
* Get a specific dashboard by ID
|
|
1961
|
+
* @param client - SuperatomClient instance
|
|
1962
|
+
* @param id - Dashboard ID (numeric) to retrieve
|
|
1963
|
+
* @param timeout - Request timeout in milliseconds
|
|
1964
|
+
* @returns Server response with dashboard data
|
|
1965
|
+
*/
|
|
1966
|
+
declare function getDashboard(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
1967
|
+
success: boolean;
|
|
1968
|
+
error?: string;
|
|
1969
|
+
id?: number;
|
|
1970
|
+
dashboardId?: string;
|
|
1971
|
+
dashboard?: DSLRendererProps$2;
|
|
1972
|
+
message?: string;
|
|
1973
|
+
}>;
|
|
1974
|
+
/**
|
|
1975
|
+
* Query dashboards with filters, limit, and sort
|
|
1976
|
+
* @param client - SuperatomClient instance
|
|
1977
|
+
* @param options - Query options with filters, limit, and sort
|
|
1978
|
+
* @param timeout - Request timeout in milliseconds
|
|
1979
|
+
* @returns Server response with list of dashboards
|
|
1980
|
+
*/
|
|
1981
|
+
declare function queryDashboards(client: SuperatomClient, options?: QueryDashboardsOptions, timeout?: number): Promise<{
|
|
1982
|
+
success: boolean;
|
|
1983
|
+
error?: string;
|
|
1984
|
+
dashboards?: Dashboard[];
|
|
1985
|
+
count?: number;
|
|
1986
|
+
message?: string;
|
|
1987
|
+
}>;
|
|
1988
|
+
|
|
1989
|
+
/**
|
|
1990
|
+
* Reports Service
|
|
1991
|
+
* Handles REPORTS message for report CRUD operations
|
|
1992
|
+
*/
|
|
1993
|
+
|
|
1994
|
+
/**
|
|
1995
|
+
* Report interface for response data
|
|
1996
|
+
*/
|
|
1997
|
+
interface Report {
|
|
1998
|
+
id?: number;
|
|
1999
|
+
reportId: string;
|
|
2000
|
+
projectId?: string;
|
|
2001
|
+
name?: string;
|
|
2002
|
+
description?: string;
|
|
2003
|
+
published?: boolean;
|
|
2004
|
+
report?: DSLRendererProps$1;
|
|
2005
|
+
createdBy?: string;
|
|
2006
|
+
updatedBy?: string;
|
|
2007
|
+
createdAt?: string;
|
|
2008
|
+
updatedAt?: string;
|
|
2009
|
+
}
|
|
2010
|
+
/**
|
|
2011
|
+
* Create report options
|
|
2012
|
+
*/
|
|
2013
|
+
interface CreateReportOptions {
|
|
2014
|
+
reportId: string;
|
|
2015
|
+
projectId: string;
|
|
2016
|
+
name?: string;
|
|
2017
|
+
description?: string;
|
|
2018
|
+
published?: boolean;
|
|
2019
|
+
createdBy?: string;
|
|
2020
|
+
report?: DSLRendererProps$1;
|
|
2021
|
+
}
|
|
2022
|
+
/**
|
|
2023
|
+
* Update report options
|
|
2024
|
+
*/
|
|
2025
|
+
interface UpdateReportOptions {
|
|
2026
|
+
id: number;
|
|
2027
|
+
name?: string;
|
|
2028
|
+
description?: string;
|
|
2029
|
+
published?: boolean;
|
|
2030
|
+
createdBy?: string;
|
|
2031
|
+
updatedBy?: string;
|
|
2032
|
+
report?: DSLRendererProps$1;
|
|
2033
|
+
}
|
|
2034
|
+
/**
|
|
2035
|
+
* Query reports options
|
|
2036
|
+
*/
|
|
2037
|
+
interface QueryReportsOptions {
|
|
2038
|
+
filters?: ReportQueryFilters;
|
|
2039
|
+
limit?: number;
|
|
2040
|
+
sort?: 'ASC' | 'DESC';
|
|
2041
|
+
}
|
|
2042
|
+
/**
|
|
2043
|
+
* Create a new report
|
|
2044
|
+
* @param client - SuperatomClient instance
|
|
2045
|
+
* @param options - Report creation options
|
|
2046
|
+
* @param timeout - Request timeout in milliseconds
|
|
2047
|
+
* @returns Server response with success status
|
|
2048
|
+
*/
|
|
2049
|
+
declare function createReport(client: SuperatomClient, options: CreateReportOptions, timeout?: number): Promise<{
|
|
2050
|
+
success: boolean;
|
|
2051
|
+
error?: string;
|
|
2052
|
+
message?: string;
|
|
2053
|
+
id?: number;
|
|
2054
|
+
reportId?: string;
|
|
2055
|
+
report?: DSLRendererProps$1;
|
|
2056
|
+
}>;
|
|
2057
|
+
/**
|
|
2058
|
+
* Update an existing report
|
|
2059
|
+
* @param client - SuperatomClient instance
|
|
2060
|
+
* @param options - Report update options
|
|
2061
|
+
* @param timeout - Request timeout in milliseconds
|
|
2062
|
+
* @returns Server response with success status
|
|
2063
|
+
*/
|
|
2064
|
+
declare function updateReport(client: SuperatomClient, options: UpdateReportOptions, timeout?: number): Promise<{
|
|
2065
|
+
success: boolean;
|
|
2066
|
+
error?: string;
|
|
2067
|
+
message?: string;
|
|
2068
|
+
id?: number;
|
|
2069
|
+
reportId?: string;
|
|
2070
|
+
report?: DSLRendererProps$1;
|
|
2071
|
+
}>;
|
|
2072
|
+
/**
|
|
2073
|
+
* Delete a report
|
|
2074
|
+
* @param client - SuperatomClient instance
|
|
2075
|
+
* @param id - Report ID (numeric) to delete
|
|
2076
|
+
* @param timeout - Request timeout in milliseconds
|
|
2077
|
+
* @returns Server response with success status
|
|
2078
|
+
*/
|
|
2079
|
+
declare function deleteReport(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
2080
|
+
success: boolean;
|
|
2081
|
+
error?: string;
|
|
2082
|
+
message?: string;
|
|
2083
|
+
id?: number;
|
|
2084
|
+
}>;
|
|
2085
|
+
/**
|
|
2086
|
+
* Get all reports
|
|
2087
|
+
* @param client - SuperatomClient instance
|
|
2088
|
+
* @param timeout - Request timeout in milliseconds
|
|
2089
|
+
* @returns Server response with list of reports
|
|
2090
|
+
*/
|
|
2091
|
+
declare function getAllReports(client: SuperatomClient, timeout?: number): Promise<{
|
|
2092
|
+
success: boolean;
|
|
2093
|
+
error?: string;
|
|
2094
|
+
reports?: Report[];
|
|
2095
|
+
count?: number;
|
|
2096
|
+
message?: string;
|
|
2097
|
+
}>;
|
|
2098
|
+
/**
|
|
2099
|
+
* Get a specific report by ID
|
|
2100
|
+
* @param client - SuperatomClient instance
|
|
2101
|
+
* @param id - Report ID (numeric) to retrieve
|
|
2102
|
+
* @param timeout - Request timeout in milliseconds
|
|
2103
|
+
* @returns Server response with report data
|
|
2104
|
+
*/
|
|
2105
|
+
declare function getReport(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
2106
|
+
success: boolean;
|
|
2107
|
+
error?: string;
|
|
2108
|
+
id?: number;
|
|
2109
|
+
reportId?: string;
|
|
2110
|
+
report?: DSLRendererProps$1;
|
|
2111
|
+
message?: string;
|
|
2112
|
+
}>;
|
|
2113
|
+
/**
|
|
2114
|
+
* Query reports with filters, limit, and sort
|
|
2115
|
+
* @param client - SuperatomClient instance
|
|
2116
|
+
* @param options - Query options with filters, limit, and sort
|
|
2117
|
+
* @param timeout - Request timeout in milliseconds
|
|
2118
|
+
* @returns Server response with list of reports
|
|
2119
|
+
*/
|
|
2120
|
+
declare function queryReports(client: SuperatomClient, options?: QueryReportsOptions, timeout?: number): Promise<{
|
|
2121
|
+
success: boolean;
|
|
2122
|
+
error?: string;
|
|
2123
|
+
reports?: Report[];
|
|
2124
|
+
count?: number;
|
|
2125
|
+
message?: string;
|
|
2126
|
+
}>;
|
|
2127
|
+
|
|
2128
|
+
/**
|
|
2129
|
+
* Bookmarks Service
|
|
2130
|
+
* Handles BOOKMARKS message for bookmark CRUD operations
|
|
2131
|
+
*/
|
|
2132
|
+
|
|
2133
|
+
/**
|
|
2134
|
+
* Bookmark interface for response data
|
|
2135
|
+
*/
|
|
2136
|
+
interface Bookmark {
|
|
2137
|
+
id?: number;
|
|
2138
|
+
userId?: string;
|
|
2139
|
+
threadId?: string;
|
|
2140
|
+
name?: string;
|
|
2141
|
+
description?: string;
|
|
2142
|
+
uiblock: DBUIBlock;
|
|
2143
|
+
created_at?: string;
|
|
2144
|
+
updated_at?: string;
|
|
2145
|
+
}
|
|
2146
|
+
/**
|
|
2147
|
+
* Create bookmark options
|
|
2148
|
+
*/
|
|
2149
|
+
interface CreateBookmarkOptions {
|
|
2150
|
+
userId: string;
|
|
2151
|
+
uiblock: DBUIBlock;
|
|
2152
|
+
threadId?: string;
|
|
2153
|
+
name?: string;
|
|
2154
|
+
description?: string;
|
|
2155
|
+
}
|
|
2156
|
+
/**
|
|
2157
|
+
* Create a new bookmark
|
|
2158
|
+
* @param client - SuperatomClient instance
|
|
2159
|
+
* @param options - Bookmark creation options
|
|
2160
|
+
* @param timeout - Request timeout in milliseconds
|
|
2161
|
+
* @returns Server response with success status
|
|
2162
|
+
*/
|
|
2163
|
+
declare function createBookmark(client: SuperatomClient, options: CreateBookmarkOptions, timeout?: number): Promise<{
|
|
2164
|
+
success: boolean;
|
|
2165
|
+
error?: string;
|
|
2166
|
+
message?: string;
|
|
2167
|
+
data?: BookmarkData;
|
|
2168
|
+
}>;
|
|
2169
|
+
/**
|
|
2170
|
+
* Update bookmark options
|
|
2171
|
+
*/
|
|
2172
|
+
interface UpdateBookmarkOptions {
|
|
2173
|
+
id: number;
|
|
2174
|
+
uiblock?: DBUIBlock;
|
|
2175
|
+
threadId?: string;
|
|
2176
|
+
name?: string;
|
|
2177
|
+
description?: string;
|
|
2178
|
+
}
|
|
2179
|
+
/**
|
|
2180
|
+
* Update an existing bookmark
|
|
2181
|
+
* @param client - SuperatomClient instance
|
|
2182
|
+
* @param options - Bookmark update options
|
|
2183
|
+
* @param timeout - Request timeout in milliseconds
|
|
2184
|
+
* @returns Server response with success status
|
|
2185
|
+
*/
|
|
2186
|
+
declare function updateBookmark(client: SuperatomClient, options: UpdateBookmarkOptions, timeout?: number): Promise<{
|
|
2187
|
+
success: boolean;
|
|
2188
|
+
error?: string;
|
|
2189
|
+
message?: string;
|
|
2190
|
+
data?: BookmarkData;
|
|
2191
|
+
}>;
|
|
2192
|
+
/**
|
|
2193
|
+
* Delete a bookmark
|
|
2194
|
+
* @param client - SuperatomClient instance
|
|
2195
|
+
* @param id - Bookmark ID to delete
|
|
2196
|
+
* @param timeout - Request timeout in milliseconds
|
|
2197
|
+
* @returns Server response with success status
|
|
2198
|
+
*/
|
|
2199
|
+
declare function deleteBookmark(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
2200
|
+
success: boolean;
|
|
2201
|
+
error?: string;
|
|
2202
|
+
message?: string;
|
|
2203
|
+
data?: BookmarkData;
|
|
2204
|
+
}>;
|
|
2205
|
+
/**
|
|
2206
|
+
* Get all bookmarks
|
|
2207
|
+
* @param client - SuperatomClient instance
|
|
2208
|
+
* @param timeout - Request timeout in milliseconds
|
|
2209
|
+
* @returns Server response with list of bookmarks
|
|
2210
|
+
*/
|
|
2211
|
+
declare function getAllBookmarks(client: SuperatomClient, timeout?: number): Promise<{
|
|
2212
|
+
success: boolean;
|
|
2213
|
+
error?: string;
|
|
2214
|
+
data?: BookmarkData[];
|
|
2215
|
+
count?: number;
|
|
2216
|
+
message?: string;
|
|
2217
|
+
}>;
|
|
2218
|
+
/**
|
|
2219
|
+
* Get a specific bookmark by ID
|
|
2220
|
+
* @param client - SuperatomClient instance
|
|
2221
|
+
* @param id - Bookmark ID to retrieve
|
|
2222
|
+
* @param timeout - Request timeout in milliseconds
|
|
2223
|
+
* @returns Server response with bookmark data
|
|
2224
|
+
*/
|
|
2225
|
+
declare function getBookmark(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
2226
|
+
success: boolean;
|
|
2227
|
+
error?: string;
|
|
2228
|
+
data?: BookmarkData;
|
|
2229
|
+
message?: string;
|
|
2230
|
+
}>;
|
|
2231
|
+
/**
|
|
2232
|
+
* Query bookmarks options
|
|
2233
|
+
*/
|
|
2234
|
+
interface QueryBookmarksOptions {
|
|
2235
|
+
filters?: BookmarkQueryFilters;
|
|
2236
|
+
limit?: number;
|
|
2237
|
+
sort?: 'ASC' | 'DESC';
|
|
2238
|
+
}
|
|
2239
|
+
/**
|
|
2240
|
+
* Query bookmarks with filters, limit, and sort
|
|
2241
|
+
* @param client - SuperatomClient instance
|
|
2242
|
+
* @param options - Query options with filters, limit, and sort
|
|
2243
|
+
* @param timeout - Request timeout in milliseconds
|
|
2244
|
+
* @returns Server response with list of bookmarks
|
|
2245
|
+
*/
|
|
2246
|
+
declare function queryBookmarks(client: SuperatomClient, options?: QueryBookmarksOptions, timeout?: number): Promise<{
|
|
2247
|
+
success: boolean;
|
|
2248
|
+
error?: string;
|
|
2249
|
+
data?: BookmarkData[];
|
|
2250
|
+
count?: number;
|
|
2251
|
+
message?: string;
|
|
2252
|
+
}>;
|
|
2253
|
+
|
|
2254
|
+
/**
|
|
2255
|
+
* Artifacts Service
|
|
2256
|
+
* Handles ARTIFACTS message for artifact CRUD operations
|
|
2257
|
+
*/
|
|
2258
|
+
|
|
2259
|
+
/**
|
|
2260
|
+
* Artifact interface for response data
|
|
2261
|
+
*/
|
|
2262
|
+
interface Artifact {
|
|
2263
|
+
id?: number;
|
|
2264
|
+
name: string;
|
|
2265
|
+
createdBy?: string | null;
|
|
2266
|
+
dsl?: Record<string, any> | null;
|
|
2267
|
+
status?: string | null;
|
|
2268
|
+
deleted?: boolean;
|
|
2269
|
+
createdAt?: string;
|
|
2270
|
+
updatedAt?: string;
|
|
2271
|
+
}
|
|
2272
|
+
/**
|
|
2273
|
+
* Create artifact options
|
|
2274
|
+
*/
|
|
2275
|
+
interface CreateArtifactOptions {
|
|
2276
|
+
name: string;
|
|
2277
|
+
createdBy?: string;
|
|
2278
|
+
dsl?: Record<string, any>;
|
|
2279
|
+
type?: string;
|
|
2280
|
+
filters?: Record<string, any>;
|
|
2281
|
+
status?: string;
|
|
2282
|
+
}
|
|
2283
|
+
/**
|
|
2284
|
+
* Create a new artifact
|
|
2285
|
+
* @param client - SuperatomClient instance
|
|
2286
|
+
* @param options - Artifact creation options
|
|
2287
|
+
* @param timeout - Request timeout in milliseconds
|
|
2288
|
+
* @returns Server response with success status
|
|
2289
|
+
*/
|
|
2290
|
+
declare function createArtifact(client: SuperatomClient, options: CreateArtifactOptions, timeout?: number): Promise<{
|
|
2291
|
+
success: boolean;
|
|
2292
|
+
error?: string;
|
|
2293
|
+
message?: string;
|
|
2294
|
+
data?: ArtifactData;
|
|
2295
|
+
}>;
|
|
2296
|
+
/**
|
|
2297
|
+
* Update artifact options
|
|
2298
|
+
*/
|
|
2299
|
+
interface UpdateArtifactOptions {
|
|
2300
|
+
id: number;
|
|
2301
|
+
name?: string;
|
|
2302
|
+
dsl?: Record<string, any>;
|
|
2303
|
+
type?: string;
|
|
2304
|
+
filters?: Record<string, any>;
|
|
2305
|
+
status?: string;
|
|
2306
|
+
deleted?: boolean;
|
|
2307
|
+
}
|
|
2308
|
+
/**
|
|
2309
|
+
* Update an existing artifact
|
|
2310
|
+
* @param client - SuperatomClient instance
|
|
2311
|
+
* @param options - Artifact update options
|
|
2312
|
+
* @param timeout - Request timeout in milliseconds
|
|
2313
|
+
* @returns Server response with success status
|
|
2314
|
+
*/
|
|
2315
|
+
declare function updateArtifact(client: SuperatomClient, options: UpdateArtifactOptions, timeout?: number): Promise<{
|
|
2316
|
+
success: boolean;
|
|
2317
|
+
error?: string;
|
|
2318
|
+
message?: string;
|
|
2319
|
+
data?: ArtifactData;
|
|
2320
|
+
}>;
|
|
2321
|
+
/**
|
|
2322
|
+
* Delete an artifact (soft delete)
|
|
2323
|
+
* @param client - SuperatomClient instance
|
|
2324
|
+
* @param id - Artifact ID to delete
|
|
2325
|
+
* @param timeout - Request timeout in milliseconds
|
|
2326
|
+
* @returns Server response with success status
|
|
2327
|
+
*/
|
|
2328
|
+
declare function deleteArtifact(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
2329
|
+
success: boolean;
|
|
2330
|
+
error?: string;
|
|
2331
|
+
message?: string;
|
|
2332
|
+
data?: ArtifactData;
|
|
2333
|
+
}>;
|
|
2334
|
+
/**
|
|
2335
|
+
* Get all artifacts
|
|
2336
|
+
* @param client - SuperatomClient instance
|
|
2337
|
+
* @param limit - Optional limit for number of results
|
|
2338
|
+
* @param timeout - Request timeout in milliseconds
|
|
2339
|
+
* @returns Server response with list of artifacts
|
|
2340
|
+
*/
|
|
2341
|
+
declare function getAllArtifacts(client: SuperatomClient, limit?: number, timeout?: number): Promise<{
|
|
2342
|
+
success: boolean;
|
|
2343
|
+
error?: string;
|
|
2344
|
+
data?: ArtifactData[];
|
|
2345
|
+
count?: number;
|
|
2346
|
+
message?: string;
|
|
2347
|
+
}>;
|
|
2348
|
+
/**
|
|
2349
|
+
* Get a specific artifact by ID
|
|
2350
|
+
* @param client - SuperatomClient instance
|
|
2351
|
+
* @param id - Artifact ID to retrieve
|
|
2352
|
+
* @param timeout - Request timeout in milliseconds
|
|
2353
|
+
* @returns Server response with artifact data
|
|
2354
|
+
*/
|
|
2355
|
+
declare function getArtifact(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
2356
|
+
success: boolean;
|
|
2357
|
+
error?: string;
|
|
2358
|
+
data?: ArtifactData;
|
|
2359
|
+
message?: string;
|
|
2360
|
+
}>;
|
|
2361
|
+
/**
|
|
2362
|
+
* Query artifacts filters
|
|
2363
|
+
*/
|
|
2364
|
+
interface QueryArtifactsFilters {
|
|
2365
|
+
createdBy?: string;
|
|
2366
|
+
type?: string;
|
|
2367
|
+
status?: string;
|
|
2368
|
+
name?: string;
|
|
2369
|
+
deleted?: boolean;
|
|
2370
|
+
createdAt?: string;
|
|
2371
|
+
}
|
|
2372
|
+
/**
|
|
2373
|
+
* Query artifacts options
|
|
2374
|
+
*/
|
|
2375
|
+
interface QueryArtifactsOptions {
|
|
2376
|
+
filters?: QueryArtifactsFilters;
|
|
2377
|
+
limit?: number;
|
|
2378
|
+
offset?: number;
|
|
2379
|
+
sort?: 'ASC' | 'DESC';
|
|
2380
|
+
}
|
|
2381
|
+
/**
|
|
2382
|
+
* Query artifacts with filters
|
|
2383
|
+
* @param client - SuperatomClient instance
|
|
2384
|
+
* @param options - Query options with filters, limit, and sort
|
|
2385
|
+
* @param timeout - Request timeout in milliseconds
|
|
2386
|
+
* @returns Server response with list of matching artifacts
|
|
2387
|
+
*/
|
|
2388
|
+
declare function queryArtifacts(client: SuperatomClient, options?: QueryArtifactsOptions, timeout?: number): Promise<{
|
|
2389
|
+
success: boolean;
|
|
2390
|
+
error?: string;
|
|
2391
|
+
data?: ArtifactData[];
|
|
2392
|
+
count?: number;
|
|
2393
|
+
message?: string;
|
|
2394
|
+
}>;
|
|
2395
|
+
|
|
2396
|
+
declare function getActions(client: SuperatomClient, options: {
|
|
2397
|
+
userId?: string;
|
|
2398
|
+
SA_RUNTIME?: Record<string, unknown>;
|
|
2399
|
+
timeout?: number;
|
|
2400
|
+
}): Promise<{
|
|
2401
|
+
success: boolean;
|
|
2402
|
+
data?: unknown;
|
|
2403
|
+
error?: string;
|
|
2404
|
+
}>;
|
|
2405
|
+
|
|
2406
|
+
declare const DSLRendererPropsSchema: z.ZodObject<{
|
|
2407
|
+
dsl: z.ZodObject<{
|
|
2408
|
+
id: z.ZodString;
|
|
2409
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2410
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2411
|
+
states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2412
|
+
methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2413
|
+
fn: z.ZodString;
|
|
2414
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2415
|
+
}, z.core.$strip>>>;
|
|
2416
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2417
|
+
fn: z.ZodString;
|
|
2418
|
+
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2419
|
+
}, z.core.$strip>>>;
|
|
2420
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2421
|
+
render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
2422
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
2423
|
+
graphql: z.ZodOptional<z.ZodString>;
|
|
2424
|
+
sql: z.ZodOptional<z.ZodString>;
|
|
2425
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2426
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2427
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2428
|
+
refetchPolicy: z.ZodOptional<z.ZodEnum<{
|
|
2429
|
+
"cache-first": "cache-first";
|
|
2430
|
+
"network-only": "network-only";
|
|
2431
|
+
"cache-and-network": "cache-and-network";
|
|
2432
|
+
}>>;
|
|
2433
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2434
|
+
}, z.core.$strip>>;
|
|
2435
|
+
}, z.core.$strip>;
|
|
2436
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2437
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2438
|
+
}, z.core.$strip>;
|
|
2439
|
+
type DSLRendererProps = z.infer<typeof DSLRendererPropsSchema>;
|
|
2440
|
+
|
|
2441
|
+
/**
|
|
2442
|
+
* UIs Service
|
|
2443
|
+
* Handles UIS message for UI CRUD operations
|
|
2444
|
+
*/
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* UI interface for response data
|
|
2448
|
+
*/
|
|
2449
|
+
interface UI {
|
|
2450
|
+
id?: number;
|
|
2451
|
+
uiId: string;
|
|
2452
|
+
projectId?: string;
|
|
2453
|
+
name?: string;
|
|
2454
|
+
description?: string;
|
|
2455
|
+
ui?: DSLRendererProps;
|
|
2456
|
+
createdBy?: string;
|
|
2457
|
+
updatedBy?: string;
|
|
2458
|
+
createdAt?: string;
|
|
2459
|
+
updatedAt?: string;
|
|
2460
|
+
}
|
|
2461
|
+
/**
|
|
2462
|
+
* Create UI options
|
|
2463
|
+
*/
|
|
2464
|
+
interface CreateUIOptions {
|
|
2465
|
+
uiId: string;
|
|
2466
|
+
projectId: string;
|
|
2467
|
+
name?: string;
|
|
2468
|
+
description?: string;
|
|
2469
|
+
createdBy?: string;
|
|
2470
|
+
ui?: DSLRendererProps;
|
|
2471
|
+
}
|
|
2472
|
+
/**
|
|
2473
|
+
* Update UI options
|
|
2474
|
+
*/
|
|
2475
|
+
interface UpdateUIOptions {
|
|
2476
|
+
id: number;
|
|
2477
|
+
name?: string;
|
|
2478
|
+
description?: string;
|
|
2479
|
+
createdBy?: string;
|
|
2480
|
+
updatedBy?: string;
|
|
2481
|
+
ui?: DSLRendererProps;
|
|
2482
|
+
}
|
|
2483
|
+
/**
|
|
2484
|
+
* Query UIs options
|
|
2485
|
+
*/
|
|
2486
|
+
interface QueryUIsOptions {
|
|
2487
|
+
filters?: UIQueryFilters;
|
|
2488
|
+
limit?: number;
|
|
2489
|
+
sort?: 'ASC' | 'DESC';
|
|
2490
|
+
}
|
|
2491
|
+
/**
|
|
2492
|
+
* Create a new UI
|
|
2493
|
+
* @param client - SuperatomClient instance
|
|
2494
|
+
* @param options - UI creation options
|
|
2495
|
+
* @param timeout - Request timeout in milliseconds
|
|
2496
|
+
* @returns Server response with success status
|
|
2497
|
+
*/
|
|
2498
|
+
declare function createUI(client: SuperatomClient, options: CreateUIOptions, timeout?: number): Promise<{
|
|
2499
|
+
success: boolean;
|
|
2500
|
+
error?: string;
|
|
2501
|
+
message?: string;
|
|
2502
|
+
id?: number;
|
|
2503
|
+
uiId?: string;
|
|
2504
|
+
ui?: DSLRendererProps;
|
|
2505
|
+
}>;
|
|
2506
|
+
/**
|
|
2507
|
+
* Update an existing UI
|
|
2508
|
+
* @param client - SuperatomClient instance
|
|
2509
|
+
* @param options - UI update options
|
|
2510
|
+
* @param timeout - Request timeout in milliseconds
|
|
2511
|
+
* @returns Server response with success status
|
|
2512
|
+
*/
|
|
2513
|
+
declare function updateUI(client: SuperatomClient, options: UpdateUIOptions, timeout?: number): Promise<{
|
|
2514
|
+
success: boolean;
|
|
2515
|
+
error?: string;
|
|
2516
|
+
message?: string;
|
|
2517
|
+
id?: number;
|
|
2518
|
+
uiId?: string;
|
|
2519
|
+
ui?: DSLRendererProps;
|
|
2520
|
+
}>;
|
|
2521
|
+
/**
|
|
2522
|
+
* Delete a UI
|
|
2523
|
+
* @param client - SuperatomClient instance
|
|
2524
|
+
* @param id - UI ID (numeric) to delete
|
|
2525
|
+
* @param timeout - Request timeout in milliseconds
|
|
2526
|
+
* @returns Server response with success status
|
|
2527
|
+
*/
|
|
2528
|
+
declare function deleteUI(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
2529
|
+
success: boolean;
|
|
2530
|
+
error?: string;
|
|
2531
|
+
message?: string;
|
|
2532
|
+
id?: number;
|
|
2533
|
+
}>;
|
|
2534
|
+
/**
|
|
2535
|
+
* Get all UIs
|
|
2536
|
+
* @param client - SuperatomClient instance
|
|
2537
|
+
* @param timeout - Request timeout in milliseconds
|
|
2538
|
+
* @returns Server response with list of UIs
|
|
2539
|
+
*/
|
|
2540
|
+
declare function getAllUIs(client: SuperatomClient, timeout?: number): Promise<{
|
|
2541
|
+
success: boolean;
|
|
2542
|
+
error?: string;
|
|
2543
|
+
uis?: UI[];
|
|
2544
|
+
count?: number;
|
|
2545
|
+
message?: string;
|
|
2546
|
+
}>;
|
|
2547
|
+
/**
|
|
2548
|
+
* Get a specific UI by ID
|
|
2549
|
+
* @param client - SuperatomClient instance
|
|
2550
|
+
* @param id - UI ID (numeric) to retrieve
|
|
2551
|
+
* @param timeout - Request timeout in milliseconds
|
|
2552
|
+
* @returns Server response with UI data
|
|
2553
|
+
*/
|
|
2554
|
+
declare function getUI(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
2555
|
+
success: boolean;
|
|
2556
|
+
error?: string;
|
|
2557
|
+
id?: number;
|
|
2558
|
+
uiId?: string;
|
|
2559
|
+
ui?: DSLRendererProps;
|
|
2560
|
+
message?: string;
|
|
2561
|
+
}>;
|
|
2562
|
+
/**
|
|
2563
|
+
* Query UIs with filters, limit, and sort
|
|
2564
|
+
* @param client - SuperatomClient instance
|
|
2565
|
+
* @param options - Query options with filters, limit, and sort
|
|
2566
|
+
* @param timeout - Request timeout in milliseconds
|
|
2567
|
+
* @returns Server response with list of UIs
|
|
2568
|
+
*/
|
|
2569
|
+
declare function queryUIs(client: SuperatomClient, options?: QueryUIsOptions, timeout?: number): Promise<{
|
|
2570
|
+
success: boolean;
|
|
2571
|
+
error?: string;
|
|
2572
|
+
uis?: UI[];
|
|
2573
|
+
count?: number;
|
|
2574
|
+
message?: string;
|
|
2575
|
+
}>;
|
|
2576
|
+
|
|
2577
|
+
/**
|
|
2578
|
+
* KB Nodes (Knowledge Base) Service
|
|
2579
|
+
* Handles KB_NODES message for knowledge base CRUD operations
|
|
2580
|
+
*/
|
|
2581
|
+
|
|
2582
|
+
/**
|
|
2583
|
+
* KB Node type
|
|
2584
|
+
*/
|
|
2585
|
+
type KbNodeType = 'global' | 'user' | 'query';
|
|
2586
|
+
/**
|
|
2587
|
+
* KB Node interface for response data
|
|
2588
|
+
*/
|
|
2589
|
+
interface KbNode {
|
|
2590
|
+
id?: number;
|
|
2591
|
+
title: string;
|
|
2592
|
+
content: string;
|
|
2593
|
+
category?: string | null;
|
|
2594
|
+
tags?: string[] | null;
|
|
2595
|
+
type?: KbNodeType | null;
|
|
2596
|
+
createdBy: string;
|
|
2597
|
+
updatedBy?: string;
|
|
2598
|
+
createdAt?: string;
|
|
2599
|
+
updatedAt?: string;
|
|
2600
|
+
}
|
|
2601
|
+
/**
|
|
2602
|
+
* Create a new knowledge base node
|
|
2603
|
+
* @param client - SuperatomClient instance
|
|
2604
|
+
* @param title - Title for the KB node
|
|
2605
|
+
* @param content - Content for the KB node
|
|
2606
|
+
* @param createdBy - User ID of the creator
|
|
2607
|
+
* @param category - Category for the KB node (optional)
|
|
2608
|
+
* @param tags - Tags for the KB node (optional)
|
|
2609
|
+
* @param type - Type of the KB node: 'global', 'user', or 'query' (optional, default 'query')
|
|
2610
|
+
* @param timeout - Request timeout in milliseconds
|
|
2611
|
+
* @returns Server response with success status and created node data
|
|
2612
|
+
*/
|
|
2613
|
+
declare function createKbNode(client: SuperatomClient, title: string, content: string, createdBy: string, category?: string, tags?: string[], type?: KbNodeType, timeout?: number): Promise<{
|
|
2614
|
+
success: boolean;
|
|
2615
|
+
error?: string;
|
|
2616
|
+
message?: string;
|
|
2617
|
+
node?: KbNode;
|
|
2618
|
+
}>;
|
|
2619
|
+
/**
|
|
2620
|
+
* Update an existing knowledge base node
|
|
2621
|
+
* @param client - SuperatomClient instance
|
|
2622
|
+
* @param id - ID of the KB node to update
|
|
2623
|
+
* @param updatedBy - User ID of the updater
|
|
2624
|
+
* @param updates - Object containing fields to update (title, content, category, tags, type)
|
|
2625
|
+
* @param timeout - Request timeout in milliseconds
|
|
2626
|
+
* @returns Server response with success status and updated node data
|
|
2627
|
+
*/
|
|
2628
|
+
declare function updateKbNode(client: SuperatomClient, id: number, updatedBy: string, updates: {
|
|
2629
|
+
title?: string;
|
|
2630
|
+
content?: string;
|
|
2631
|
+
category?: string;
|
|
2632
|
+
tags?: string[];
|
|
2633
|
+
type?: KbNodeType;
|
|
2634
|
+
}, timeout?: number): Promise<{
|
|
2635
|
+
success: boolean;
|
|
2636
|
+
error?: string;
|
|
2637
|
+
message?: string;
|
|
2638
|
+
node?: KbNode;
|
|
2639
|
+
}>;
|
|
2640
|
+
/**
|
|
2641
|
+
* Delete a knowledge base node
|
|
2642
|
+
* @param client - SuperatomClient instance
|
|
2643
|
+
* @param id - ID of the KB node to delete
|
|
2644
|
+
* @param timeout - Request timeout in milliseconds
|
|
2645
|
+
* @returns Server response with success status
|
|
2646
|
+
*/
|
|
2647
|
+
declare function deleteKbNode(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
2648
|
+
success: boolean;
|
|
2649
|
+
error?: string;
|
|
2650
|
+
message?: string;
|
|
2651
|
+
}>;
|
|
2652
|
+
/**
|
|
2653
|
+
* Get all knowledge base nodes
|
|
2654
|
+
* @param client - SuperatomClient instance
|
|
2655
|
+
* @param limit - Maximum number of nodes to retrieve (optional, default 100)
|
|
2656
|
+
* @param offset - Offset for pagination (optional, default 0)
|
|
2657
|
+
* @param timeout - Request timeout in milliseconds
|
|
2658
|
+
* @returns Server response with list of KB nodes
|
|
2659
|
+
*/
|
|
2660
|
+
declare function getAllKbNodes(client: SuperatomClient, limit?: number, offset?: number, timeout?: number): Promise<{
|
|
2661
|
+
success: boolean;
|
|
2662
|
+
error?: string;
|
|
2663
|
+
nodes?: KbNode[];
|
|
2664
|
+
count?: number;
|
|
2665
|
+
message?: string;
|
|
2666
|
+
}>;
|
|
2667
|
+
/**
|
|
2668
|
+
* Get a specific knowledge base node by ID
|
|
2669
|
+
* @param client - SuperatomClient instance
|
|
2670
|
+
* @param id - ID of the KB node to retrieve
|
|
2671
|
+
* @param timeout - Request timeout in milliseconds
|
|
2672
|
+
* @returns Server response with KB node data
|
|
2673
|
+
*/
|
|
2674
|
+
declare function getKbNode(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
2675
|
+
success: boolean;
|
|
2676
|
+
error?: string;
|
|
2677
|
+
node?: KbNode;
|
|
2678
|
+
message?: string;
|
|
2679
|
+
}>;
|
|
2680
|
+
/**
|
|
2681
|
+
* Search options for KB nodes
|
|
2682
|
+
*/
|
|
2683
|
+
interface SearchKbNodesOptions {
|
|
2684
|
+
query?: string;
|
|
2685
|
+
category?: string;
|
|
2686
|
+
tags?: string[];
|
|
2687
|
+
type?: KbNodeType;
|
|
2688
|
+
createdBy?: string;
|
|
2689
|
+
limit?: number;
|
|
2690
|
+
offset?: number;
|
|
2691
|
+
}
|
|
2692
|
+
/**
|
|
2693
|
+
* Search knowledge base nodes with full-text search and filters
|
|
2694
|
+
* @param client - SuperatomClient instance
|
|
2695
|
+
* @param options - Search options with query, category, tags, type, createdBy, limit, offset
|
|
2696
|
+
* @param timeout - Request timeout in milliseconds
|
|
2697
|
+
* @returns Server response with list of matching KB nodes
|
|
2698
|
+
*/
|
|
2699
|
+
declare function searchKbNodes(client: SuperatomClient, options?: SearchKbNodesOptions, timeout?: number): Promise<{
|
|
2700
|
+
success: boolean;
|
|
2701
|
+
error?: string;
|
|
2702
|
+
nodes?: KbNode[];
|
|
2703
|
+
count?: number;
|
|
2704
|
+
message?: string;
|
|
2705
|
+
}>;
|
|
2706
|
+
/**
|
|
2707
|
+
* Get knowledge base nodes by category
|
|
2708
|
+
* @param client - SuperatomClient instance
|
|
2709
|
+
* @param category - Category to filter by
|
|
2710
|
+
* @param limit - Maximum number of nodes to retrieve (optional, default 50)
|
|
2711
|
+
* @param offset - Offset for pagination (optional, default 0)
|
|
2712
|
+
* @param timeout - Request timeout in milliseconds
|
|
2713
|
+
* @returns Server response with list of KB nodes in the category
|
|
2714
|
+
*/
|
|
2715
|
+
declare function getKbNodesByCategory(client: SuperatomClient, category: string, limit?: number, offset?: number, timeout?: number): Promise<{
|
|
2716
|
+
success: boolean;
|
|
2717
|
+
error?: string;
|
|
2718
|
+
nodes?: KbNode[];
|
|
2719
|
+
count?: number;
|
|
2720
|
+
category?: string;
|
|
2721
|
+
message?: string;
|
|
2722
|
+
}>;
|
|
2723
|
+
/**
|
|
2724
|
+
* Get knowledge base nodes by user (creator)
|
|
2725
|
+
* @param client - SuperatomClient instance
|
|
2726
|
+
* @param userId - User ID to filter by
|
|
2727
|
+
* @param limit - Maximum number of nodes to retrieve (optional, default 50)
|
|
2728
|
+
* @param offset - Offset for pagination (optional, default 0)
|
|
2729
|
+
* @param timeout - Request timeout in milliseconds
|
|
2730
|
+
* @returns Server response with list of KB nodes created by the user
|
|
2731
|
+
*/
|
|
2732
|
+
declare function getKbNodesByUser(client: SuperatomClient, userId: string, limit?: number, offset?: number, timeout?: number): Promise<{
|
|
2733
|
+
success: boolean;
|
|
2734
|
+
error?: string;
|
|
2735
|
+
nodes?: KbNode[];
|
|
2736
|
+
count?: number;
|
|
2737
|
+
userId?: string;
|
|
2738
|
+
message?: string;
|
|
2739
|
+
}>;
|
|
2740
|
+
/**
|
|
2741
|
+
* Get all unique categories from knowledge base nodes
|
|
2742
|
+
* @param client - SuperatomClient instance
|
|
2743
|
+
* @param timeout - Request timeout in milliseconds
|
|
2744
|
+
* @returns Server response with list of unique categories
|
|
2745
|
+
*/
|
|
2746
|
+
declare function getKbNodeCategories(client: SuperatomClient, timeout?: number): Promise<{
|
|
2747
|
+
success: boolean;
|
|
2748
|
+
error?: string;
|
|
2749
|
+
categories?: string[];
|
|
2750
|
+
count?: number;
|
|
2751
|
+
message?: string;
|
|
2752
|
+
}>;
|
|
2753
|
+
/**
|
|
2754
|
+
* Get all unique tags from knowledge base nodes
|
|
2755
|
+
* @param client - SuperatomClient instance
|
|
2756
|
+
* @param timeout - Request timeout in milliseconds
|
|
2757
|
+
* @returns Server response with list of unique tags
|
|
2758
|
+
*/
|
|
2759
|
+
declare function getKbNodeTags(client: SuperatomClient, timeout?: number): Promise<{
|
|
2760
|
+
success: boolean;
|
|
2761
|
+
error?: string;
|
|
2762
|
+
tags?: string[];
|
|
2763
|
+
count?: number;
|
|
2764
|
+
message?: string;
|
|
2765
|
+
}>;
|
|
2766
|
+
|
|
2767
|
+
/**
|
|
2768
|
+
* Dashboard Component Service
|
|
2769
|
+
* Handles DASH_COMP_REQ messages for picking components and generating props
|
|
2770
|
+
*/
|
|
2771
|
+
|
|
2772
|
+
/**
|
|
2773
|
+
* Request type for dashboard component
|
|
2774
|
+
*/
|
|
2775
|
+
type DashCompReqType = 'create' | 'update' | 'filter';
|
|
2776
|
+
/**
|
|
2777
|
+
* Response type for dashboard component request
|
|
2778
|
+
*/
|
|
2779
|
+
interface DashCompResponse {
|
|
2780
|
+
success: boolean;
|
|
2781
|
+
errors?: string[];
|
|
2782
|
+
component?: Component;
|
|
2783
|
+
reasoning?: string;
|
|
2784
|
+
dataSource?: 'database' | 'external_tool' | 'none';
|
|
2785
|
+
filterComponent?: Component;
|
|
2786
|
+
updatedComponents?: Component[];
|
|
2787
|
+
filterBindings?: Record<string, unknown>;
|
|
2788
|
+
}
|
|
2789
|
+
/**
|
|
2790
|
+
* Options for dashboard component request
|
|
2791
|
+
*/
|
|
2792
|
+
interface DashCompRequestOptions {
|
|
2793
|
+
/** User's prompt describing what component they need */
|
|
2794
|
+
prompt: string;
|
|
2795
|
+
/** User ID for the request */
|
|
2796
|
+
userId?: string;
|
|
2797
|
+
/** Optional thread ID for conversation context */
|
|
2798
|
+
threadId?: string;
|
|
2799
|
+
/** Optional UI block ID for context */
|
|
2800
|
+
uiBlockId?: string;
|
|
2801
|
+
/** Request timeout in milliseconds */
|
|
2802
|
+
timeout?: number;
|
|
2803
|
+
/** Existing components on the dashboard (for filter/update requests) */
|
|
2804
|
+
existingComponents?: Component[];
|
|
2805
|
+
/** Request type: 'create' for new component, 'update' for modifying, 'filter' for creating filter */
|
|
2806
|
+
reqType?: DashCompReqType;
|
|
2807
|
+
}
|
|
2808
|
+
/**
|
|
2809
|
+
* Send a dashboard component request
|
|
2810
|
+
*
|
|
2811
|
+
* This method asks the LLM to:
|
|
2812
|
+
* 1. Pick the most appropriate component from available components
|
|
2813
|
+
* 2. Generate complete props for the component
|
|
2814
|
+
* 3. Determine data source (database query or external tool)
|
|
2815
|
+
*
|
|
2816
|
+
* @param client - SuperatomClient instance
|
|
2817
|
+
* @param options - Request options including prompt and optional context
|
|
2818
|
+
* @returns Dashboard component response with selected component and props
|
|
2819
|
+
*
|
|
2820
|
+
* @example
|
|
2821
|
+
* ```typescript
|
|
2822
|
+
* const response = await sendDashCompRequest(client, {
|
|
2823
|
+
* prompt: "Show me a bar chart of sales by category",
|
|
2824
|
+
* threadId: "thread-123",
|
|
2825
|
+
* });
|
|
2826
|
+
*
|
|
2827
|
+
* if (response.success && response.component) {
|
|
2828
|
+
* console.log('Selected component:', response.component.name);
|
|
2829
|
+
* console.log('Generated props:', response.component.props);
|
|
2830
|
+
* console.log('Data source:', response.dataSource);
|
|
2831
|
+
* }
|
|
2832
|
+
* ```
|
|
2833
|
+
*/
|
|
2834
|
+
declare function sendDashCompRequest(client: SuperatomClient, options: DashCompRequestOptions): Promise<DashCompResponse>;
|
|
2835
|
+
|
|
2836
|
+
/**
|
|
2837
|
+
* Menus Service
|
|
2838
|
+
* Handles MENUS message for menu CRUD operations
|
|
2839
|
+
*/
|
|
2840
|
+
|
|
2841
|
+
/**
|
|
2842
|
+
* Menu interface for response data
|
|
2843
|
+
*/
|
|
2844
|
+
interface Menu {
|
|
2845
|
+
id: number;
|
|
2846
|
+
name: string;
|
|
2847
|
+
componentName: string;
|
|
2848
|
+
icon?: string | null;
|
|
2849
|
+
userMessage?: string | null;
|
|
2850
|
+
parentId?: number | null;
|
|
2851
|
+
sortOrder?: number;
|
|
2852
|
+
props?: Record<string, unknown> | null;
|
|
2853
|
+
isActive?: boolean;
|
|
2854
|
+
createdAt?: string;
|
|
2855
|
+
updatedAt?: string;
|
|
2856
|
+
children?: Menu[];
|
|
2857
|
+
menuJson?: Record<string, unknown> | null;
|
|
2858
|
+
version?: number;
|
|
2859
|
+
}
|
|
2860
|
+
/**
|
|
2861
|
+
* Create menu options
|
|
2862
|
+
*/
|
|
2863
|
+
interface CreateMenuOptions {
|
|
2864
|
+
name: string;
|
|
2865
|
+
componentName: string;
|
|
2866
|
+
icon?: string;
|
|
2867
|
+
userMessage?: string;
|
|
2868
|
+
parentId?: number;
|
|
2869
|
+
sortOrder?: number;
|
|
2870
|
+
props?: Record<string, unknown>;
|
|
2871
|
+
isActive?: boolean;
|
|
2872
|
+
}
|
|
2873
|
+
/**
|
|
2874
|
+
* Update menu options
|
|
2875
|
+
*/
|
|
2876
|
+
interface UpdateMenuOptions {
|
|
2877
|
+
id: number;
|
|
2878
|
+
name?: string;
|
|
2879
|
+
componentName?: string;
|
|
2880
|
+
icon?: string;
|
|
2881
|
+
userMessage?: string;
|
|
2882
|
+
parentId?: number | null;
|
|
2883
|
+
sortOrder?: number;
|
|
2884
|
+
props?: Record<string, unknown>;
|
|
2885
|
+
isActive?: boolean;
|
|
2886
|
+
}
|
|
2887
|
+
/**
|
|
2888
|
+
* Query menus options
|
|
2889
|
+
*/
|
|
2890
|
+
interface QueryMenusOptions {
|
|
2891
|
+
filters?: MenuQueryFilters;
|
|
2892
|
+
limit?: number;
|
|
2893
|
+
sort?: 'ASC' | 'DESC';
|
|
2894
|
+
}
|
|
2895
|
+
/**
|
|
2896
|
+
* Reorder menu item
|
|
2897
|
+
*/
|
|
2898
|
+
interface ReorderMenuItem {
|
|
2899
|
+
id: number;
|
|
2900
|
+
sortOrder: number;
|
|
2901
|
+
}
|
|
2902
|
+
/**
|
|
2903
|
+
* Create a new menu
|
|
2904
|
+
* @param client - SuperatomClient instance
|
|
2905
|
+
* @param options - Menu creation options
|
|
2906
|
+
* @param timeout - Request timeout in milliseconds
|
|
2907
|
+
* @returns Server response with success status
|
|
2908
|
+
*/
|
|
2909
|
+
declare function createMenu(client: SuperatomClient, options: CreateMenuOptions, timeout?: number): Promise<{
|
|
2910
|
+
success: boolean;
|
|
2911
|
+
error?: string;
|
|
2912
|
+
message?: string;
|
|
2913
|
+
data?: Menu;
|
|
2914
|
+
}>;
|
|
2915
|
+
/**
|
|
2916
|
+
* Update an existing menu
|
|
2917
|
+
* @param client - SuperatomClient instance
|
|
2918
|
+
* @param options - Menu update options
|
|
2919
|
+
* @param timeout - Request timeout in milliseconds
|
|
2920
|
+
* @returns Server response with success status
|
|
2921
|
+
*/
|
|
2922
|
+
declare function updateMenu(client: SuperatomClient, options: UpdateMenuOptions, timeout?: number): Promise<{
|
|
2923
|
+
success: boolean;
|
|
2924
|
+
error?: string;
|
|
2925
|
+
message?: string;
|
|
2926
|
+
data?: Menu;
|
|
2927
|
+
}>;
|
|
2928
|
+
/**
|
|
2929
|
+
* Delete a menu
|
|
2930
|
+
* @param client - SuperatomClient instance
|
|
2931
|
+
* @param id - Menu ID to delete
|
|
2932
|
+
* @param timeout - Request timeout in milliseconds
|
|
2933
|
+
* @returns Server response with success status
|
|
2934
|
+
*/
|
|
2935
|
+
declare function deleteMenu(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
2936
|
+
success: boolean;
|
|
2937
|
+
error?: string;
|
|
2938
|
+
message?: string;
|
|
2939
|
+
data?: Menu;
|
|
2940
|
+
}>;
|
|
2941
|
+
/**
|
|
2942
|
+
* Get all menus
|
|
2943
|
+
* @param client - SuperatomClient instance
|
|
2944
|
+
* @param timeout - Request timeout in milliseconds
|
|
2945
|
+
* @returns Server response with list of menus
|
|
2946
|
+
*/
|
|
2947
|
+
declare function getAllMenus(client: SuperatomClient, timeout?: number): Promise<{
|
|
2948
|
+
success: boolean;
|
|
2949
|
+
error?: string;
|
|
2950
|
+
menus?: Menu[];
|
|
2951
|
+
count?: number;
|
|
2952
|
+
message?: string;
|
|
2953
|
+
}>;
|
|
2954
|
+
/**
|
|
2955
|
+
* Get a specific menu by ID
|
|
2956
|
+
* @param client - SuperatomClient instance
|
|
2957
|
+
* @param id - Menu ID to retrieve
|
|
2958
|
+
* @param timeout - Request timeout in milliseconds
|
|
2959
|
+
* @returns Server response with menu data
|
|
2960
|
+
*/
|
|
2961
|
+
declare function getMenu(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
2962
|
+
success: boolean;
|
|
2963
|
+
error?: string;
|
|
2964
|
+
menu?: Menu;
|
|
2965
|
+
message?: string;
|
|
2966
|
+
}>;
|
|
2967
|
+
/**
|
|
2968
|
+
* Get root menus (top-level sidebar items)
|
|
2969
|
+
* @param client - SuperatomClient instance
|
|
2970
|
+
* @param timeout - Request timeout in milliseconds
|
|
2971
|
+
* @returns Server response with list of root menus
|
|
2972
|
+
*/
|
|
2973
|
+
declare function getRootMenus(client: SuperatomClient, timeout?: number): Promise<{
|
|
2974
|
+
success: boolean;
|
|
2975
|
+
error?: string;
|
|
2976
|
+
menus?: Menu[];
|
|
2977
|
+
count?: number;
|
|
2978
|
+
message?: string;
|
|
2979
|
+
}>;
|
|
2980
|
+
/**
|
|
2981
|
+
* Get child menus by parent ID
|
|
2982
|
+
* @param client - SuperatomClient instance
|
|
2983
|
+
* @param parentId - Parent menu ID
|
|
2984
|
+
* @param timeout - Request timeout in milliseconds
|
|
2985
|
+
* @returns Server response with list of child menus
|
|
2986
|
+
*/
|
|
2987
|
+
declare function getChildMenus(client: SuperatomClient, parentId: number, timeout?: number): Promise<{
|
|
2988
|
+
success: boolean;
|
|
2989
|
+
error?: string;
|
|
2990
|
+
menus?: Menu[];
|
|
2991
|
+
count?: number;
|
|
2992
|
+
message?: string;
|
|
2993
|
+
}>;
|
|
2994
|
+
/**
|
|
2995
|
+
* Get menus with hierarchy (nested structure)
|
|
2996
|
+
* @param client - SuperatomClient instance
|
|
2997
|
+
* @param timeout - Request timeout in milliseconds
|
|
2998
|
+
* @returns Server response with hierarchical menus
|
|
2999
|
+
*/
|
|
3000
|
+
declare function getMenusHierarchy(client: SuperatomClient, timeout?: number): Promise<{
|
|
3001
|
+
success: boolean;
|
|
3002
|
+
error?: string;
|
|
3003
|
+
menus?: Menu[];
|
|
3004
|
+
count?: number;
|
|
3005
|
+
message?: string;
|
|
3006
|
+
}>;
|
|
3007
|
+
/**
|
|
3008
|
+
* Query menus with filters, limit, and sort
|
|
3009
|
+
* @param client - SuperatomClient instance
|
|
3010
|
+
* @param options - Query options with filters, limit, and sort
|
|
3011
|
+
* @param timeout - Request timeout in milliseconds
|
|
3012
|
+
* @returns Server response with list of menus
|
|
3013
|
+
*/
|
|
3014
|
+
declare function queryMenus(client: SuperatomClient, options?: QueryMenusOptions, timeout?: number): Promise<{
|
|
3015
|
+
success: boolean;
|
|
3016
|
+
error?: string;
|
|
3017
|
+
menus?: Menu[];
|
|
3018
|
+
count?: number;
|
|
3019
|
+
message?: string;
|
|
3020
|
+
}>;
|
|
3021
|
+
/**
|
|
3022
|
+
* Reorder menus
|
|
3023
|
+
* @param client - SuperatomClient instance
|
|
3024
|
+
* @param items - Array of menu IDs and their new sort orders
|
|
3025
|
+
* @param timeout - Request timeout in milliseconds
|
|
3026
|
+
* @returns Server response with success status
|
|
3027
|
+
*/
|
|
3028
|
+
declare function reorderMenus(client: SuperatomClient, items: ReorderMenuItem[], timeout?: number): Promise<{
|
|
3029
|
+
success: boolean;
|
|
3030
|
+
error?: string;
|
|
3031
|
+
message?: string;
|
|
3032
|
+
data?: Menu[];
|
|
3033
|
+
}>;
|
|
3034
|
+
|
|
3035
|
+
/**
|
|
3036
|
+
* Schema Service
|
|
3037
|
+
* Handles SCHEMA_REQ messages to retrieve the database schema
|
|
3038
|
+
*/
|
|
3039
|
+
|
|
3040
|
+
/**
|
|
3041
|
+
* Schema request options
|
|
3042
|
+
*/
|
|
3043
|
+
interface GetSchemaOptions {
|
|
3044
|
+
/** If true, also returns the formatted documentation string */
|
|
3045
|
+
formatted?: boolean;
|
|
3046
|
+
/** Request timeout in milliseconds */
|
|
3047
|
+
timeout?: number;
|
|
3048
|
+
}
|
|
3049
|
+
/**
|
|
3050
|
+
* Schema response
|
|
3051
|
+
*/
|
|
3052
|
+
interface GetSchemaResponse {
|
|
3053
|
+
success: boolean;
|
|
3054
|
+
error?: string;
|
|
3055
|
+
data?: {
|
|
3056
|
+
schema: DatabaseSchema;
|
|
3057
|
+
/** Formatted schema documentation (only if formatted: true was requested) */
|
|
3058
|
+
formatted?: string;
|
|
3059
|
+
};
|
|
3060
|
+
}
|
|
3061
|
+
/**
|
|
3062
|
+
* Request the database schema from the server
|
|
3063
|
+
* @param client - SuperatomClient instance
|
|
3064
|
+
* @param options - Schema request options
|
|
3065
|
+
* @returns Response with schema data or error
|
|
3066
|
+
*/
|
|
3067
|
+
declare function getSchema(client: SuperatomClient, options?: GetSchemaOptions): Promise<GetSchemaResponse>;
|
|
3068
|
+
|
|
3069
|
+
/**
|
|
3070
|
+
* Services Index
|
|
3071
|
+
* Re-exports all service functions for easy importing
|
|
3072
|
+
*/
|
|
3073
|
+
|
|
3074
|
+
type index_Artifact = Artifact;
|
|
3075
|
+
type index_Binding = Binding;
|
|
3076
|
+
declare const index_BindingSchema: typeof BindingSchema;
|
|
3077
|
+
type index_Bookmark = Bookmark;
|
|
3078
|
+
type index_CreateArtifactOptions = CreateArtifactOptions;
|
|
3079
|
+
type index_CreateBookmarkOptions = CreateBookmarkOptions;
|
|
3080
|
+
type index_CreateDashboardOptions = CreateDashboardOptions;
|
|
3081
|
+
type index_CreateMenuOptions = CreateMenuOptions;
|
|
3082
|
+
type index_CreateReportOptions = CreateReportOptions;
|
|
3083
|
+
type index_CreateUIOptions = CreateUIOptions;
|
|
3084
|
+
type index_DashCompReqType = DashCompReqType;
|
|
3085
|
+
type index_DashCompRequestOptions = DashCompRequestOptions;
|
|
3086
|
+
type index_DashCompResponse = DashCompResponse;
|
|
3087
|
+
type index_Dashboard = Dashboard;
|
|
3088
|
+
type index_DatabaseSchema = DatabaseSchema;
|
|
3089
|
+
type index_Expression = Expression;
|
|
3090
|
+
declare const index_ExpressionSchema: typeof ExpressionSchema;
|
|
3091
|
+
type index_ForDirective = ForDirective;
|
|
3092
|
+
declare const index_ForDirectiveSchema: typeof ForDirectiveSchema;
|
|
3093
|
+
type index_GetSchemaOptions = GetSchemaOptions;
|
|
3094
|
+
type index_GetSchemaResponse = GetSchemaResponse;
|
|
3095
|
+
type index_KbNode = KbNode;
|
|
3096
|
+
type index_KbNodeType = KbNodeType;
|
|
3097
|
+
type index_Menu = Menu;
|
|
3098
|
+
type index_Page = Page;
|
|
3099
|
+
declare const index_PageSchema: typeof PageSchema;
|
|
3100
|
+
type index_QueryArtifactsFilters = QueryArtifactsFilters;
|
|
3101
|
+
type index_QueryArtifactsOptions = QueryArtifactsOptions;
|
|
3102
|
+
type index_QueryBookmarksOptions = QueryBookmarksOptions;
|
|
3103
|
+
type index_QueryDashboardsOptions = QueryDashboardsOptions;
|
|
3104
|
+
type index_QueryMenusOptions = QueryMenusOptions;
|
|
3105
|
+
type index_QueryReportsOptions = QueryReportsOptions;
|
|
3106
|
+
type index_QuerySpec = QuerySpec;
|
|
3107
|
+
declare const index_QuerySpecSchema: typeof QuerySpecSchema;
|
|
3108
|
+
type index_QueryUIsOptions = QueryUIsOptions;
|
|
3109
|
+
type index_QueryUsersOptions = QueryUsersOptions;
|
|
3110
|
+
type index_ReorderMenuItem = ReorderMenuItem;
|
|
3111
|
+
type index_Report = Report;
|
|
3112
|
+
type index_SchemaColumn = SchemaColumn;
|
|
3113
|
+
type index_SchemaColumnStatistics = SchemaColumnStatistics;
|
|
3114
|
+
type index_SchemaRelationship = SchemaRelationship;
|
|
3115
|
+
type index_SchemaRequestPayload = SchemaRequestPayload;
|
|
3116
|
+
type index_SchemaResponsePayload = SchemaResponsePayload;
|
|
3117
|
+
type index_SchemaTable = SchemaTable;
|
|
3118
|
+
type index_SearchKbNodesOptions = SearchKbNodesOptions;
|
|
3119
|
+
type index_UI = UI;
|
|
3120
|
+
type index_UIComponent = UIComponent;
|
|
3121
|
+
declare const index_UIComponentSchema: typeof UIComponentSchema;
|
|
3122
|
+
type index_UIElement = UIElement;
|
|
3123
|
+
declare const index_UIElementSchema: typeof UIElementSchema;
|
|
3124
|
+
type index_UpdateArtifactOptions = UpdateArtifactOptions;
|
|
3125
|
+
type index_UpdateBookmarkOptions = UpdateBookmarkOptions;
|
|
3126
|
+
type index_UpdateDashboardOptions = UpdateDashboardOptions;
|
|
3127
|
+
type index_UpdateMenuOptions = UpdateMenuOptions;
|
|
3128
|
+
type index_UpdateReportOptions = UpdateReportOptions;
|
|
3129
|
+
type index_UpdateUIOptions = UpdateUIOptions;
|
|
3130
|
+
type index_User = User;
|
|
3131
|
+
declare const index_createArtifact: typeof createArtifact;
|
|
3132
|
+
declare const index_createBookmark: typeof createBookmark;
|
|
3133
|
+
declare const index_createDashboard: typeof createDashboard;
|
|
3134
|
+
declare const index_createKbNode: typeof createKbNode;
|
|
3135
|
+
declare const index_createMenu: typeof createMenu;
|
|
3136
|
+
declare const index_createReport: typeof createReport;
|
|
3137
|
+
declare const index_createUI: typeof createUI;
|
|
3138
|
+
declare const index_createUser: typeof createUser;
|
|
3139
|
+
declare const index_deleteArtifact: typeof deleteArtifact;
|
|
3140
|
+
declare const index_deleteBookmark: typeof deleteBookmark;
|
|
3141
|
+
declare const index_deleteDashboard: typeof deleteDashboard;
|
|
3142
|
+
declare const index_deleteKbNode: typeof deleteKbNode;
|
|
3143
|
+
declare const index_deleteMenu: typeof deleteMenu;
|
|
3144
|
+
declare const index_deleteReport: typeof deleteReport;
|
|
3145
|
+
declare const index_deleteUI: typeof deleteUI;
|
|
3146
|
+
declare const index_deleteUser: typeof deleteUser;
|
|
3147
|
+
declare const index_getActions: typeof getActions;
|
|
3148
|
+
declare const index_getAllArtifacts: typeof getAllArtifacts;
|
|
3149
|
+
declare const index_getAllBookmarks: typeof getAllBookmarks;
|
|
3150
|
+
declare const index_getAllDashboards: typeof getAllDashboards;
|
|
3151
|
+
declare const index_getAllKbNodes: typeof getAllKbNodes;
|
|
3152
|
+
declare const index_getAllMenus: typeof getAllMenus;
|
|
3153
|
+
declare const index_getAllReports: typeof getAllReports;
|
|
3154
|
+
declare const index_getAllUIs: typeof getAllUIs;
|
|
3155
|
+
declare const index_getAllUsers: typeof getAllUsers;
|
|
3156
|
+
declare const index_getArtifact: typeof getArtifact;
|
|
3157
|
+
declare const index_getBookmark: typeof getBookmark;
|
|
3158
|
+
declare const index_getChildMenus: typeof getChildMenus;
|
|
3159
|
+
declare const index_getComponentSuggestions: typeof getComponentSuggestions;
|
|
3160
|
+
declare const index_getDashboard: typeof getDashboard;
|
|
3161
|
+
declare const index_getKbNode: typeof getKbNode;
|
|
3162
|
+
declare const index_getKbNodeCategories: typeof getKbNodeCategories;
|
|
3163
|
+
declare const index_getKbNodeTags: typeof getKbNodeTags;
|
|
3164
|
+
declare const index_getKbNodesByCategory: typeof getKbNodesByCategory;
|
|
3165
|
+
declare const index_getKbNodesByUser: typeof getKbNodesByUser;
|
|
3166
|
+
declare const index_getMenu: typeof getMenu;
|
|
3167
|
+
declare const index_getMenusHierarchy: typeof getMenusHierarchy;
|
|
3168
|
+
declare const index_getReport: typeof getReport;
|
|
3169
|
+
declare const index_getRootMenus: typeof getRootMenus;
|
|
3170
|
+
declare const index_getSchema: typeof getSchema;
|
|
3171
|
+
declare const index_getUI: typeof getUI;
|
|
3172
|
+
declare const index_getUser: typeof getUser;
|
|
3173
|
+
declare const index_queryArtifacts: typeof queryArtifacts;
|
|
3174
|
+
declare const index_queryBookmarks: typeof queryBookmarks;
|
|
3175
|
+
declare const index_queryDashboards: typeof queryDashboards;
|
|
3176
|
+
declare const index_queryMenus: typeof queryMenus;
|
|
3177
|
+
declare const index_queryReports: typeof queryReports;
|
|
3178
|
+
declare const index_queryUIs: typeof queryUIs;
|
|
3179
|
+
declare const index_queryUsers: typeof queryUsers;
|
|
3180
|
+
declare const index_reorderMenus: typeof reorderMenus;
|
|
3181
|
+
declare const index_requestBundle: typeof requestBundle;
|
|
3182
|
+
declare const index_requestData: typeof requestData;
|
|
3183
|
+
declare const index_searchKbNodes: typeof searchKbNodes;
|
|
3184
|
+
declare const index_sendAuthLoginRequest: typeof sendAuthLoginRequest;
|
|
3185
|
+
declare const index_sendAuthVerifyRequest: typeof sendAuthVerifyRequest;
|
|
3186
|
+
declare const index_sendComponents: typeof sendComponents;
|
|
3187
|
+
declare const index_sendDashCompRequest: typeof sendDashCompRequest;
|
|
3188
|
+
declare const index_sendUserPromptRequest: typeof sendUserPromptRequest;
|
|
3189
|
+
declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSuggestionsRequest;
|
|
3190
|
+
declare const index_updateArtifact: typeof updateArtifact;
|
|
3191
|
+
declare const index_updateBookmark: typeof updateBookmark;
|
|
3192
|
+
declare const index_updateDashboard: typeof updateDashboard;
|
|
3193
|
+
declare const index_updateKbNode: typeof updateKbNode;
|
|
3194
|
+
declare const index_updateMenu: typeof updateMenu;
|
|
3195
|
+
declare const index_updateReport: typeof updateReport;
|
|
3196
|
+
declare const index_updateUI: typeof updateUI;
|
|
3197
|
+
declare const index_updateUser: typeof updateUser;
|
|
3198
|
+
declare namespace index {
|
|
3199
|
+
export { type index_Artifact as Artifact, type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateArtifactOptions as CreateArtifactOptions, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateMenuOptions as CreateMenuOptions, type index_CreateReportOptions as CreateReportOptions, type index_CreateUIOptions as CreateUIOptions, type DSLRendererProps$2 as DSLRendererProps, DSLRendererPropsSchema$2 as DSLRendererPropsSchema, type index_DashCompReqType as DashCompReqType, type index_DashCompRequestOptions as DashCompRequestOptions, type index_DashCompResponse as DashCompResponse, type index_Dashboard as Dashboard, type index_DatabaseSchema as DatabaseSchema, type index_Expression as Expression, index_ExpressionSchema as ExpressionSchema, type index_ForDirective as ForDirective, index_ForDirectiveSchema as ForDirectiveSchema, type index_GetSchemaOptions as GetSchemaOptions, type index_GetSchemaResponse as GetSchemaResponse, type index_KbNode as KbNode, type index_KbNodeType as KbNodeType, type index_Menu as Menu, type index_Page as Page, index_PageSchema as PageSchema, type index_QueryArtifactsFilters as QueryArtifactsFilters, type index_QueryArtifactsOptions as QueryArtifactsOptions, type index_QueryBookmarksOptions as QueryBookmarksOptions, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryMenusOptions as QueryMenusOptions, type index_QueryReportsOptions as QueryReportsOptions, type index_QuerySpec as QuerySpec, index_QuerySpecSchema as QuerySpecSchema, type index_QueryUIsOptions as QueryUIsOptions, type index_QueryUsersOptions as QueryUsersOptions, type index_ReorderMenuItem as ReorderMenuItem, type index_Report as Report, type DSLRendererProps$1 as ReportDSLRendererProps, type index_SchemaColumn as SchemaColumn, type index_SchemaColumnStatistics as SchemaColumnStatistics, type index_SchemaRelationship as SchemaRelationship, type index_SchemaRequestPayload as SchemaRequestPayload, type index_SchemaResponsePayload as SchemaResponsePayload, type index_SchemaTable as SchemaTable, type index_SearchKbNodesOptions as SearchKbNodesOptions, type index_UI as UI, type index_UIComponent as UIComponent, index_UIComponentSchema as UIComponentSchema, type DSLRendererProps as UIDSLRendererProps, type index_UIElement as UIElement, index_UIElementSchema as UIElementSchema, type index_UpdateArtifactOptions as UpdateArtifactOptions, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateMenuOptions as UpdateMenuOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createArtifact as createArtifact, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createKbNode as createKbNode, index_createMenu as createMenu, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteArtifact as deleteArtifact, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteKbNode as deleteKbNode, index_deleteMenu as deleteMenu, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllArtifacts as getAllArtifacts, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllKbNodes as getAllKbNodes, index_getAllMenus as getAllMenus, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getArtifact as getArtifact, index_getBookmark as getBookmark, index_getChildMenus as getChildMenus, index_getComponentSuggestions as getComponentSuggestions, index_getDashboard as getDashboard, index_getKbNode as getKbNode, index_getKbNodeCategories as getKbNodeCategories, index_getKbNodeTags as getKbNodeTags, index_getKbNodesByCategory as getKbNodesByCategory, index_getKbNodesByUser as getKbNodesByUser, index_getMenu as getMenu, index_getMenusHierarchy as getMenusHierarchy, index_getReport as getReport, index_getRootMenus as getRootMenus, index_getSchema as getSchema, index_getUI as getUI, index_getUser as getUser, index_queryArtifacts as queryArtifacts, index_queryBookmarks as queryBookmarks, index_queryDashboards as queryDashboards, index_queryMenus as queryMenus, index_queryReports as queryReports, index_queryUIs as queryUIs, index_queryUsers as queryUsers, index_reorderMenus as reorderMenus, index_requestBundle as requestBundle, index_requestData as requestData, index_searchKbNodes as searchKbNodes, index_sendAuthLoginRequest as sendAuthLoginRequest, index_sendAuthVerifyRequest as sendAuthVerifyRequest, index_sendComponents as sendComponents, index_sendDashCompRequest as sendDashCompRequest, index_sendUserPromptRequest as sendUserPromptRequest, index_sendUserPromptSuggestionsRequest as sendUserPromptSuggestionsRequest, index_updateArtifact as updateArtifact, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateKbNode as updateKbNode, index_updateMenu as updateMenu, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3202
|
+
type MessageHandler = (message: Message) => void;
|
|
3203
|
+
type ConnectionHandler = () => void;
|
|
3204
|
+
type ErrorHandler = (error: Event | Error) => void;
|
|
3205
|
+
/**
|
|
3206
|
+
* SuperatomClient - WebSocket client for SuperAtom platform
|
|
3207
|
+
*
|
|
3208
|
+
* Core WebSocket client handling connection management, messaging, and event handling.
|
|
3209
|
+
* Domain-specific functionality (auth, user prompts, bundles) is delegated to service functions.
|
|
3210
|
+
*/
|
|
3211
|
+
declare class SuperatomClient {
|
|
3212
|
+
private socket;
|
|
3213
|
+
private reconnectAttempts;
|
|
3214
|
+
private reconnectTimer;
|
|
3215
|
+
private shouldReconnect;
|
|
3216
|
+
private messageHandlers;
|
|
3217
|
+
private connectionHandlers;
|
|
3218
|
+
private disconnectionHandlers;
|
|
3219
|
+
private errorHandlers;
|
|
3220
|
+
private config;
|
|
3221
|
+
private connectPromise;
|
|
3222
|
+
private connectResolve;
|
|
3223
|
+
constructor(config: ClientConfig);
|
|
3224
|
+
/**
|
|
3225
|
+
* Get WebSocket URL with query parameters
|
|
3226
|
+
*/
|
|
3227
|
+
private getWebSocketUrl;
|
|
3228
|
+
/**
|
|
3229
|
+
* Calculate reconnection delay with exponential backoff
|
|
3230
|
+
*/
|
|
3231
|
+
private calculateReconnectDelay;
|
|
3232
|
+
/**
|
|
3233
|
+
* Schedule reconnection attempt
|
|
3234
|
+
*/
|
|
3235
|
+
private scheduleReconnect;
|
|
3236
|
+
/**
|
|
3237
|
+
* Setup WebSocket event handlers
|
|
3238
|
+
*/
|
|
3239
|
+
private setupSocketHandlers;
|
|
3240
|
+
/**
|
|
3241
|
+
* Connect to SuperAtom WebSocket server
|
|
3242
|
+
* Returns a Promise that resolves when the connection is established
|
|
3243
|
+
* The Promise never rejects - failures are logged silently and auto-reconnect is triggered
|
|
3244
|
+
*/
|
|
3245
|
+
connect(): Promise<void>;
|
|
3246
|
+
/**
|
|
3247
|
+
* Disconnect from WebSocket server
|
|
3248
|
+
*/
|
|
3249
|
+
disconnect(): void;
|
|
3250
|
+
/**
|
|
3251
|
+
* Update client configuration
|
|
3252
|
+
*/
|
|
3253
|
+
private updateConfig;
|
|
3254
|
+
/**
|
|
3255
|
+
* Reconnect with new configuration
|
|
3256
|
+
* Disconnects from existing connection and reconnects with updated config
|
|
3257
|
+
* Returns a Promise that resolves when the new connection is established
|
|
3258
|
+
*/
|
|
3259
|
+
reconnectWithConfig(config: Partial<ClientConfig>): Promise<void>;
|
|
3260
|
+
/**
|
|
3261
|
+
* Send a message to the server
|
|
3262
|
+
*/
|
|
3263
|
+
send(message: Omit<Message, 'from'> & {
|
|
3264
|
+
from?: {
|
|
3265
|
+
type?: string;
|
|
3266
|
+
id?: string;
|
|
3267
|
+
};
|
|
3268
|
+
}): void;
|
|
3269
|
+
/**
|
|
3270
|
+
* Send a message and wait for a response with the same ID
|
|
3271
|
+
* Uses closure-based approach - no global state management needed
|
|
3272
|
+
*/
|
|
3273
|
+
sendWithResponse(message: Omit<Message, 'from'> & {
|
|
3274
|
+
from?: {
|
|
3275
|
+
type?: string;
|
|
3276
|
+
id?: string;
|
|
3277
|
+
};
|
|
3278
|
+
}, timeout?: number): Promise<Message>;
|
|
3279
|
+
/**
|
|
3280
|
+
* Register message handler
|
|
3281
|
+
*/
|
|
3282
|
+
onMessage(handler: MessageHandler): () => void;
|
|
3283
|
+
/**
|
|
3284
|
+
* Register connection handler
|
|
3285
|
+
*/
|
|
3286
|
+
onConnect(handler: ConnectionHandler): () => void;
|
|
3287
|
+
/**
|
|
3288
|
+
* Register disconnection handler
|
|
3289
|
+
*/
|
|
3290
|
+
onDisconnect(handler: ConnectionHandler): () => void;
|
|
3291
|
+
/**
|
|
3292
|
+
* Register error handler
|
|
3293
|
+
*/
|
|
3294
|
+
onError(handler: ErrorHandler): () => void;
|
|
3295
|
+
/**
|
|
3296
|
+
* Check if client is connected
|
|
3297
|
+
*/
|
|
3298
|
+
isConnected(): boolean;
|
|
3299
|
+
/**
|
|
3300
|
+
* Get current reconnection attempts
|
|
3301
|
+
*/
|
|
3302
|
+
getReconnectAttempts(): number;
|
|
3303
|
+
/**
|
|
3304
|
+
* Get client type
|
|
3305
|
+
*/
|
|
3306
|
+
get type(): string;
|
|
3307
|
+
/**
|
|
3308
|
+
* Send a message and wait for response with timeout (alias for sendWithResponse)
|
|
3309
|
+
*/
|
|
3310
|
+
ask(message: Omit<Message, 'from'> & {
|
|
3311
|
+
from?: {
|
|
3312
|
+
type?: string;
|
|
3313
|
+
id?: string;
|
|
3314
|
+
};
|
|
3315
|
+
}, options?: {
|
|
3316
|
+
timeout?: number;
|
|
3317
|
+
}): Promise<Message>;
|
|
3318
|
+
/**
|
|
3319
|
+
* Send authentication login request
|
|
3320
|
+
* Delegates to auth service
|
|
3321
|
+
*/
|
|
3322
|
+
sendAuthLoginRequest(loginDataBase64: string, timeout?: number): Promise<Message>;
|
|
3323
|
+
/**
|
|
3324
|
+
* Send authentication verify request
|
|
3325
|
+
* Delegates to auth service
|
|
3326
|
+
*/
|
|
3327
|
+
sendAuthVerifyRequest(token: string, timeout?: number): Promise<Message>;
|
|
3328
|
+
/**
|
|
3329
|
+
* Send a user prompt request
|
|
3330
|
+
* Delegates to user prompt service
|
|
3331
|
+
* @param userId - User ID for the request
|
|
3332
|
+
* @param responseMode - 'component' for component response (default), 'text' for text streaming
|
|
3333
|
+
* @param onStream - Optional callback for streaming text chunks (only for text mode)
|
|
3334
|
+
*/
|
|
3335
|
+
sendUserPromptRequest(prompt: string, threadId: string, uiBlockId: string, userId?: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
|
|
3336
|
+
/**
|
|
3337
|
+
* Send a user prompt suggestions request
|
|
3338
|
+
* Delegates to user prompt service
|
|
3339
|
+
* @param userId - User ID for the request
|
|
3340
|
+
*/
|
|
3341
|
+
sendUserPromptSuggestionsRequest(prompt: string, userId?: string, limit?: number, timeout?: number): Promise<Message | null>;
|
|
3342
|
+
/**
|
|
3343
|
+
* Request bundle from server
|
|
3344
|
+
* Delegates to bundle service
|
|
3345
|
+
*/
|
|
3346
|
+
requestBundle(options?: {
|
|
3347
|
+
timeout?: number;
|
|
3348
|
+
onProgress?: (progress: number) => void;
|
|
3349
|
+
devbundle?: boolean;
|
|
3350
|
+
}): Promise<string>;
|
|
3351
|
+
/**
|
|
3352
|
+
* Request data from a collection
|
|
3353
|
+
* Delegates to data service
|
|
3354
|
+
*/
|
|
3355
|
+
requestData(options: {
|
|
3356
|
+
collection: string;
|
|
3357
|
+
operation: string;
|
|
3358
|
+
params?: Record<string, unknown>;
|
|
3359
|
+
SA_RUNTIME?: Record<string, unknown>;
|
|
3360
|
+
timeout?: number;
|
|
3361
|
+
}): Promise<{
|
|
3362
|
+
data?: unknown;
|
|
3363
|
+
error?: string;
|
|
3364
|
+
}>;
|
|
3365
|
+
/**
|
|
3366
|
+
* Get AI-powered component suggestions based on a query
|
|
3367
|
+
* Delegates to component service
|
|
3368
|
+
*/
|
|
3369
|
+
getComponentSuggestions(query: string, options?: {
|
|
3370
|
+
timeout?: number;
|
|
3371
|
+
}): Promise<{
|
|
3372
|
+
component?: {
|
|
3373
|
+
id: string;
|
|
3374
|
+
name: string;
|
|
3375
|
+
};
|
|
3376
|
+
error?: string;
|
|
3377
|
+
}>;
|
|
3378
|
+
/**
|
|
3379
|
+
* Get AI-powered component suggestions based on a query
|
|
3380
|
+
* Delegates to component service
|
|
3381
|
+
* @param userId - User ID for the request
|
|
3382
|
+
*/
|
|
3383
|
+
getActions(options: {
|
|
3384
|
+
userId?: string;
|
|
3385
|
+
SA_RUNTIME?: Record<string, unknown>;
|
|
3386
|
+
timeout?: number;
|
|
3387
|
+
}): Promise<{
|
|
3388
|
+
success: boolean;
|
|
3389
|
+
data?: unknown;
|
|
3390
|
+
error?: string;
|
|
3391
|
+
}>;
|
|
3392
|
+
sendComponents(components: any[]): Promise<void>;
|
|
3393
|
+
/**
|
|
3394
|
+
* Create a new user
|
|
3395
|
+
* Delegates to users service
|
|
3396
|
+
*/
|
|
3397
|
+
createUser(username: string, password: string, email?: string, fullname?: string, role?: string, userInfo?: Record<string, unknown>, timeout?: number): Promise<{
|
|
3398
|
+
success: boolean;
|
|
3399
|
+
error?: string;
|
|
3400
|
+
message?: string;
|
|
3401
|
+
username?: string;
|
|
3402
|
+
email?: string;
|
|
3403
|
+
fullname?: string;
|
|
3404
|
+
role?: string;
|
|
3405
|
+
}>;
|
|
3406
|
+
/**
|
|
3407
|
+
* Update an existing user
|
|
3408
|
+
* Delegates to users service
|
|
3409
|
+
*/
|
|
3410
|
+
updateUser(id: number, updates: {
|
|
3411
|
+
password?: string;
|
|
3412
|
+
email?: string;
|
|
3413
|
+
fullname?: string;
|
|
3414
|
+
role?: string;
|
|
3415
|
+
userInfo?: Record<string, unknown>;
|
|
3416
|
+
}, timeout?: number): Promise<{
|
|
3417
|
+
success: boolean;
|
|
3418
|
+
error?: string;
|
|
3419
|
+
message?: string;
|
|
3420
|
+
username?: string;
|
|
3421
|
+
email?: string;
|
|
3422
|
+
fullname?: string;
|
|
3423
|
+
role?: string;
|
|
3424
|
+
}>;
|
|
3425
|
+
/**
|
|
3426
|
+
* Delete a user
|
|
3427
|
+
* Delegates to users service
|
|
3428
|
+
*/
|
|
3429
|
+
deleteUser(id: number, timeout?: number): Promise<{
|
|
3430
|
+
success: boolean;
|
|
3431
|
+
error?: string;
|
|
3432
|
+
message?: string;
|
|
3433
|
+
username?: string;
|
|
3434
|
+
email?: string;
|
|
3435
|
+
fullname?: string;
|
|
3436
|
+
role?: string;
|
|
3437
|
+
}>;
|
|
3438
|
+
/**
|
|
3439
|
+
* Get all users
|
|
3440
|
+
* Delegates to users service
|
|
3441
|
+
*/
|
|
3442
|
+
getAllUsers(timeout?: number): Promise<{
|
|
3443
|
+
success: boolean;
|
|
3444
|
+
error?: string;
|
|
3445
|
+
users?: User[];
|
|
3446
|
+
count?: number;
|
|
3447
|
+
message?: string;
|
|
3448
|
+
}>;
|
|
3449
|
+
/**
|
|
3450
|
+
* Get a specific user by username
|
|
3451
|
+
* Delegates to users service
|
|
3452
|
+
*/
|
|
3453
|
+
getUser(username: string, timeout?: number): Promise<{
|
|
3454
|
+
success: boolean;
|
|
3455
|
+
error?: string;
|
|
3456
|
+
user?: User;
|
|
3457
|
+
message?: string;
|
|
3458
|
+
}>;
|
|
3459
|
+
/**
|
|
3460
|
+
* Query users with filters, limit, and sort
|
|
3461
|
+
* Delegates to users service
|
|
3462
|
+
*/
|
|
3463
|
+
queryUsers(options?: QueryUsersOptions, timeout?: number): Promise<{
|
|
3464
|
+
success: boolean;
|
|
3465
|
+
error?: string;
|
|
3466
|
+
users?: User[];
|
|
3467
|
+
count?: number;
|
|
3468
|
+
message?: string;
|
|
3469
|
+
}>;
|
|
3470
|
+
/**
|
|
3471
|
+
* Create a new dashboard
|
|
3472
|
+
* Delegates to dashboards service
|
|
3473
|
+
*/
|
|
3474
|
+
createDashboard(options: CreateDashboardOptions, timeout?: number): Promise<{
|
|
3475
|
+
success: boolean;
|
|
3476
|
+
error?: string;
|
|
3477
|
+
message?: string;
|
|
3478
|
+
dashboardId?: string;
|
|
3479
|
+
dashboard?: DSLRendererProps$2;
|
|
3480
|
+
}>;
|
|
3481
|
+
/**
|
|
3482
|
+
* Update an existing dashboard
|
|
3483
|
+
* Delegates to dashboards service
|
|
3484
|
+
*/
|
|
3485
|
+
updateDashboard(options: UpdateDashboardOptions, timeout?: number): Promise<{
|
|
3486
|
+
success: boolean;
|
|
3487
|
+
error?: string;
|
|
3488
|
+
message?: string;
|
|
3489
|
+
id?: number;
|
|
3490
|
+
dashboardId?: string;
|
|
3491
|
+
dashboard?: DSLRendererProps$2;
|
|
3492
|
+
}>;
|
|
3493
|
+
/**
|
|
3494
|
+
* Delete a dashboard
|
|
3495
|
+
* Delegates to dashboards service
|
|
3496
|
+
*/
|
|
3497
|
+
deleteDashboard(id: number, timeout?: number): Promise<{
|
|
3498
|
+
success: boolean;
|
|
3499
|
+
error?: string;
|
|
3500
|
+
message?: string;
|
|
3501
|
+
id?: number;
|
|
3502
|
+
}>;
|
|
3503
|
+
/**
|
|
3504
|
+
* Get all dashboards
|
|
3505
|
+
* Delegates to dashboards service
|
|
3506
|
+
*/
|
|
3507
|
+
getAllDashboards(timeout?: number): Promise<{
|
|
3508
|
+
success: boolean;
|
|
3509
|
+
error?: string;
|
|
3510
|
+
dashboards?: Dashboard[];
|
|
3511
|
+
count?: number;
|
|
3512
|
+
message?: string;
|
|
3513
|
+
}>;
|
|
3514
|
+
/**
|
|
3515
|
+
* Get a specific dashboard by ID
|
|
3516
|
+
* Delegates to dashboards service
|
|
3517
|
+
*/
|
|
3518
|
+
getDashboard(id: number, timeout?: number): Promise<{
|
|
3519
|
+
success: boolean;
|
|
3520
|
+
error?: string;
|
|
3521
|
+
id?: number;
|
|
3522
|
+
dashboardId?: string;
|
|
3523
|
+
dashboard?: DSLRendererProps$2;
|
|
3524
|
+
message?: string;
|
|
3525
|
+
}>;
|
|
3526
|
+
/**
|
|
3527
|
+
* Query dashboards with filters
|
|
3528
|
+
* Delegates to dashboards service
|
|
3529
|
+
*/
|
|
3530
|
+
queryDashboards(options?: QueryDashboardsOptions, timeout?: number): Promise<{
|
|
3531
|
+
success: boolean;
|
|
3532
|
+
error?: string;
|
|
3533
|
+
dashboards?: Dashboard[];
|
|
3534
|
+
count?: number;
|
|
3535
|
+
message?: string;
|
|
3536
|
+
}>;
|
|
3537
|
+
/**
|
|
3538
|
+
* Create a new bookmark
|
|
3539
|
+
* Delegates to bookmarks service
|
|
3540
|
+
*/
|
|
3541
|
+
createBookmark(options: CreateBookmarkOptions, timeout?: number): Promise<{
|
|
3542
|
+
success: boolean;
|
|
3543
|
+
error?: string;
|
|
3544
|
+
message?: string;
|
|
3545
|
+
data?: Bookmark;
|
|
3546
|
+
}>;
|
|
3547
|
+
/**
|
|
3548
|
+
* Update an existing bookmark
|
|
3549
|
+
* Delegates to bookmarks service
|
|
3550
|
+
*/
|
|
3551
|
+
updateBookmark(options: UpdateBookmarkOptions, timeout?: number): Promise<{
|
|
3552
|
+
success: boolean;
|
|
3553
|
+
error?: string;
|
|
3554
|
+
message?: string;
|
|
3555
|
+
data?: Bookmark;
|
|
3556
|
+
}>;
|
|
3557
|
+
/**
|
|
3558
|
+
* Delete a bookmark
|
|
3559
|
+
* Delegates to bookmarks service
|
|
3560
|
+
*/
|
|
3561
|
+
deleteBookmark(id: number, timeout?: number): Promise<{
|
|
3562
|
+
success: boolean;
|
|
3563
|
+
error?: string;
|
|
3564
|
+
message?: string;
|
|
3565
|
+
data?: Bookmark;
|
|
3566
|
+
}>;
|
|
3567
|
+
/**
|
|
3568
|
+
* Get all bookmarks
|
|
3569
|
+
* Delegates to bookmarks service
|
|
3570
|
+
*/
|
|
3571
|
+
getAllBookmarks(timeout?: number): Promise<{
|
|
3572
|
+
success: boolean;
|
|
3573
|
+
error?: string;
|
|
3574
|
+
data?: Bookmark[];
|
|
3575
|
+
count?: number;
|
|
3576
|
+
message?: string;
|
|
3577
|
+
}>;
|
|
3578
|
+
/**
|
|
3579
|
+
* Get a specific bookmark by ID
|
|
3580
|
+
* Delegates to bookmarks service
|
|
3581
|
+
*/
|
|
3582
|
+
getBookmark(id: number, timeout?: number): Promise<{
|
|
3583
|
+
success: boolean;
|
|
3584
|
+
error?: string;
|
|
3585
|
+
data?: Bookmark;
|
|
3586
|
+
message?: string;
|
|
3587
|
+
}>;
|
|
3588
|
+
/**
|
|
3589
|
+
* Query bookmarks with filters, limit, and sort
|
|
3590
|
+
* Delegates to bookmarks service
|
|
3591
|
+
*/
|
|
3592
|
+
queryBookmarks(options?: QueryBookmarksOptions, timeout?: number): Promise<{
|
|
3593
|
+
success: boolean;
|
|
3594
|
+
error?: string;
|
|
3595
|
+
data?: Bookmark[];
|
|
3596
|
+
count?: number;
|
|
3597
|
+
message?: string;
|
|
3598
|
+
}>;
|
|
3599
|
+
/**
|
|
3600
|
+
* Create a new artifact
|
|
3601
|
+
* Delegates to artifacts service
|
|
3602
|
+
*/
|
|
3603
|
+
createArtifact(options: CreateArtifactOptions, timeout?: number): Promise<{
|
|
3604
|
+
success: boolean;
|
|
3605
|
+
error?: string;
|
|
3606
|
+
message?: string;
|
|
3607
|
+
data?: Artifact;
|
|
3608
|
+
}>;
|
|
3609
|
+
/**
|
|
3610
|
+
* Update an existing artifact
|
|
3611
|
+
* Delegates to artifacts service
|
|
3612
|
+
*/
|
|
3613
|
+
updateArtifact(options: UpdateArtifactOptions, timeout?: number): Promise<{
|
|
3614
|
+
success: boolean;
|
|
3615
|
+
error?: string;
|
|
3616
|
+
message?: string;
|
|
3617
|
+
data?: Artifact;
|
|
3618
|
+
}>;
|
|
3619
|
+
/**
|
|
3620
|
+
* Delete an artifact (soft delete)
|
|
3621
|
+
* Delegates to artifacts service
|
|
3622
|
+
*/
|
|
3623
|
+
deleteArtifact(id: number, timeout?: number): Promise<{
|
|
3624
|
+
success: boolean;
|
|
3625
|
+
error?: string;
|
|
3626
|
+
message?: string;
|
|
3627
|
+
data?: Artifact;
|
|
3628
|
+
}>;
|
|
3629
|
+
/**
|
|
3630
|
+
* Get all artifacts
|
|
3631
|
+
* Delegates to artifacts service
|
|
3632
|
+
*/
|
|
3633
|
+
getAllArtifacts(limit?: number, timeout?: number): Promise<{
|
|
3634
|
+
success: boolean;
|
|
3635
|
+
error?: string;
|
|
3636
|
+
data?: Artifact[];
|
|
3637
|
+
count?: number;
|
|
3638
|
+
message?: string;
|
|
3639
|
+
}>;
|
|
3640
|
+
/**
|
|
3641
|
+
* Get a specific artifact by ID
|
|
3642
|
+
* Delegates to artifacts service
|
|
3643
|
+
*/
|
|
3644
|
+
getArtifact(id: number, timeout?: number): Promise<{
|
|
3645
|
+
success: boolean;
|
|
3646
|
+
error?: string;
|
|
3647
|
+
data?: Artifact;
|
|
3648
|
+
message?: string;
|
|
3649
|
+
}>;
|
|
3650
|
+
/**
|
|
3651
|
+
* Query artifacts with filters
|
|
3652
|
+
* Delegates to artifacts service
|
|
3653
|
+
*/
|
|
3654
|
+
queryArtifacts(options?: QueryArtifactsOptions, timeout?: number): Promise<{
|
|
3655
|
+
success: boolean;
|
|
3656
|
+
error?: string;
|
|
3657
|
+
data?: Artifact[];
|
|
3658
|
+
count?: number;
|
|
3659
|
+
message?: string;
|
|
3660
|
+
}>;
|
|
3661
|
+
/**
|
|
3662
|
+
* Create a new report
|
|
3663
|
+
* Delegates to reports service
|
|
3664
|
+
*/
|
|
3665
|
+
createReport(options: CreateReportOptions, timeout?: number): Promise<{
|
|
3666
|
+
success: boolean;
|
|
3667
|
+
error?: string;
|
|
3668
|
+
message?: string;
|
|
3669
|
+
reportId?: string;
|
|
3670
|
+
report?: DSLRendererProps$1;
|
|
3671
|
+
}>;
|
|
3672
|
+
/**
|
|
3673
|
+
* Update an existing report
|
|
3674
|
+
* Delegates to reports service
|
|
3675
|
+
*/
|
|
3676
|
+
updateReport(options: UpdateReportOptions, timeout?: number): Promise<{
|
|
3677
|
+
success: boolean;
|
|
3678
|
+
error?: string;
|
|
3679
|
+
message?: string;
|
|
3680
|
+
id?: number;
|
|
3681
|
+
reportId?: string;
|
|
3682
|
+
report?: DSLRendererProps$1;
|
|
3683
|
+
}>;
|
|
3684
|
+
/**
|
|
3685
|
+
* Delete a report
|
|
3686
|
+
* Delegates to reports service
|
|
3687
|
+
*/
|
|
3688
|
+
deleteReport(id: number, timeout?: number): Promise<{
|
|
3689
|
+
success: boolean;
|
|
3690
|
+
error?: string;
|
|
3691
|
+
message?: string;
|
|
3692
|
+
id?: number;
|
|
3693
|
+
}>;
|
|
3694
|
+
/**
|
|
3695
|
+
* Get all reports
|
|
3696
|
+
* Delegates to reports service
|
|
3697
|
+
*/
|
|
3698
|
+
getAllReports(timeout?: number): Promise<{
|
|
3699
|
+
success: boolean;
|
|
3700
|
+
error?: string;
|
|
3701
|
+
reports?: Report[];
|
|
3702
|
+
count?: number;
|
|
3703
|
+
message?: string;
|
|
3704
|
+
}>;
|
|
3705
|
+
/**
|
|
3706
|
+
* Get a specific report by ID
|
|
3707
|
+
* Delegates to reports service
|
|
3708
|
+
*/
|
|
3709
|
+
getReport(id: number, timeout?: number): Promise<{
|
|
3710
|
+
success: boolean;
|
|
3711
|
+
error?: string;
|
|
3712
|
+
id?: number;
|
|
3713
|
+
reportId?: string;
|
|
3714
|
+
report?: DSLRendererProps$1;
|
|
3715
|
+
message?: string;
|
|
3716
|
+
}>;
|
|
3717
|
+
/**
|
|
3718
|
+
* Query reports with filters
|
|
3719
|
+
* Delegates to reports service
|
|
3720
|
+
*/
|
|
3721
|
+
queryReports(options?: QueryReportsOptions, timeout?: number): Promise<{
|
|
3722
|
+
success: boolean;
|
|
3723
|
+
error?: string;
|
|
3724
|
+
reports?: Report[];
|
|
3725
|
+
count?: number;
|
|
3726
|
+
message?: string;
|
|
3727
|
+
}>;
|
|
3728
|
+
/**
|
|
3729
|
+
* Create a new UI
|
|
3730
|
+
* Delegates to uis service
|
|
3731
|
+
*/
|
|
3732
|
+
createUI(options: CreateUIOptions, timeout?: number): Promise<{
|
|
3733
|
+
success: boolean;
|
|
3734
|
+
error?: string;
|
|
3735
|
+
message?: string;
|
|
3736
|
+
id?: number;
|
|
3737
|
+
uiId?: string;
|
|
3738
|
+
ui?: DSLRendererProps$2;
|
|
3739
|
+
}>;
|
|
3740
|
+
/**
|
|
3741
|
+
* Update an existing UI
|
|
3742
|
+
* Delegates to uis service
|
|
3743
|
+
*/
|
|
3744
|
+
updateUI(options: UpdateUIOptions, timeout?: number): Promise<{
|
|
3745
|
+
success: boolean;
|
|
3746
|
+
error?: string;
|
|
3747
|
+
message?: string;
|
|
3748
|
+
id?: number;
|
|
3749
|
+
uiId?: string;
|
|
3750
|
+
ui?: DSLRendererProps$2;
|
|
3751
|
+
}>;
|
|
3752
|
+
/**
|
|
3753
|
+
* Delete a UI
|
|
3754
|
+
* Delegates to uis service
|
|
3755
|
+
*/
|
|
3756
|
+
deleteUI(id: number, timeout?: number): Promise<{
|
|
3757
|
+
success: boolean;
|
|
3758
|
+
error?: string;
|
|
3759
|
+
message?: string;
|
|
3760
|
+
id?: number;
|
|
3761
|
+
}>;
|
|
3762
|
+
/**
|
|
3763
|
+
* Get all UIs
|
|
3764
|
+
* Delegates to uis service
|
|
3765
|
+
*/
|
|
3766
|
+
getAllUIs(timeout?: number): Promise<{
|
|
3767
|
+
success: boolean;
|
|
3768
|
+
error?: string;
|
|
3769
|
+
uis?: UI[];
|
|
3770
|
+
count?: number;
|
|
3771
|
+
message?: string;
|
|
3772
|
+
}>;
|
|
3773
|
+
/**
|
|
3774
|
+
* Get a specific UI by ID
|
|
3775
|
+
* Delegates to uis service
|
|
3776
|
+
*/
|
|
3777
|
+
getUI(id: number, timeout?: number): Promise<{
|
|
3778
|
+
success: boolean;
|
|
3779
|
+
error?: string;
|
|
3780
|
+
id?: number;
|
|
3781
|
+
uiId?: string;
|
|
3782
|
+
ui?: DSLRendererProps$2;
|
|
3783
|
+
message?: string;
|
|
3784
|
+
}>;
|
|
3785
|
+
/**
|
|
3786
|
+
* Query UIs with filters
|
|
3787
|
+
* Delegates to uis service
|
|
3788
|
+
*/
|
|
3789
|
+
queryUIs(options?: QueryUIsOptions, timeout?: number): Promise<{
|
|
3790
|
+
success: boolean;
|
|
3791
|
+
error?: string;
|
|
3792
|
+
uis?: UI[];
|
|
3793
|
+
count?: number;
|
|
3794
|
+
message?: string;
|
|
3795
|
+
}>;
|
|
3796
|
+
/**
|
|
3797
|
+
* Create a new knowledge base node
|
|
3798
|
+
* Delegates to kb-nodes service
|
|
3799
|
+
*/
|
|
3800
|
+
createKbNode(title: string, content: string, createdBy: string, category?: string, tags?: string[], type?: KbNodeType, timeout?: number): Promise<{
|
|
3801
|
+
success: boolean;
|
|
3802
|
+
error?: string;
|
|
3803
|
+
message?: string;
|
|
3804
|
+
node?: KbNode;
|
|
3805
|
+
}>;
|
|
3806
|
+
/**
|
|
3807
|
+
* Update an existing knowledge base node
|
|
3808
|
+
* Delegates to kb-nodes service
|
|
3809
|
+
*/
|
|
3810
|
+
updateKbNode(id: number, updatedBy: string, updates: {
|
|
3811
|
+
title?: string;
|
|
3812
|
+
content?: string;
|
|
3813
|
+
category?: string;
|
|
3814
|
+
tags?: string[];
|
|
3815
|
+
type?: KbNodeType;
|
|
3816
|
+
}, timeout?: number): Promise<{
|
|
3817
|
+
success: boolean;
|
|
3818
|
+
error?: string;
|
|
3819
|
+
message?: string;
|
|
3820
|
+
node?: KbNode;
|
|
3821
|
+
}>;
|
|
3822
|
+
/**
|
|
3823
|
+
* Delete a knowledge base node
|
|
3824
|
+
* Delegates to kb-nodes service
|
|
3825
|
+
*/
|
|
3826
|
+
deleteKbNode(id: number, timeout?: number): Promise<{
|
|
3827
|
+
success: boolean;
|
|
3828
|
+
error?: string;
|
|
3829
|
+
message?: string;
|
|
3830
|
+
}>;
|
|
3831
|
+
/**
|
|
3832
|
+
* Get all knowledge base nodes
|
|
3833
|
+
* Delegates to kb-nodes service
|
|
3834
|
+
*/
|
|
3835
|
+
getAllKbNodes(limit?: number, offset?: number, timeout?: number): Promise<{
|
|
3836
|
+
success: boolean;
|
|
3837
|
+
error?: string;
|
|
3838
|
+
nodes?: KbNode[];
|
|
3839
|
+
count?: number;
|
|
3840
|
+
message?: string;
|
|
3841
|
+
}>;
|
|
3842
|
+
/**
|
|
3843
|
+
* Get a specific knowledge base node by ID
|
|
3844
|
+
* Delegates to kb-nodes service
|
|
3845
|
+
*/
|
|
3846
|
+
getKbNode(id: number, timeout?: number): Promise<{
|
|
3847
|
+
success: boolean;
|
|
3848
|
+
error?: string;
|
|
3849
|
+
node?: KbNode;
|
|
3850
|
+
message?: string;
|
|
3851
|
+
}>;
|
|
3852
|
+
/**
|
|
3853
|
+
* Search knowledge base nodes with full-text search and filters
|
|
3854
|
+
* Delegates to kb-nodes service
|
|
3855
|
+
*/
|
|
3856
|
+
searchKbNodes(options?: SearchKbNodesOptions, timeout?: number): Promise<{
|
|
3857
|
+
success: boolean;
|
|
3858
|
+
error?: string;
|
|
3859
|
+
nodes?: KbNode[];
|
|
3860
|
+
count?: number;
|
|
3861
|
+
message?: string;
|
|
3862
|
+
}>;
|
|
3863
|
+
/**
|
|
3864
|
+
* Get knowledge base nodes by category
|
|
3865
|
+
* Delegates to kb-nodes service
|
|
3866
|
+
*/
|
|
3867
|
+
getKbNodesByCategory(category: string, limit?: number, offset?: number, timeout?: number): Promise<{
|
|
3868
|
+
success: boolean;
|
|
3869
|
+
error?: string;
|
|
3870
|
+
nodes?: KbNode[];
|
|
3871
|
+
count?: number;
|
|
3872
|
+
category?: string;
|
|
3873
|
+
message?: string;
|
|
3874
|
+
}>;
|
|
3875
|
+
/**
|
|
3876
|
+
* Get knowledge base nodes by user (creator)
|
|
3877
|
+
* Delegates to kb-nodes service
|
|
3878
|
+
*/
|
|
3879
|
+
getKbNodesByUser(userId: string, limit?: number, offset?: number, timeout?: number): Promise<{
|
|
3880
|
+
success: boolean;
|
|
3881
|
+
error?: string;
|
|
3882
|
+
nodes?: KbNode[];
|
|
3883
|
+
count?: number;
|
|
3884
|
+
userId?: string;
|
|
3885
|
+
message?: string;
|
|
3886
|
+
}>;
|
|
3887
|
+
/**
|
|
3888
|
+
* Get all unique categories from knowledge base nodes
|
|
3889
|
+
* Delegates to kb-nodes service
|
|
3890
|
+
*/
|
|
3891
|
+
getKbNodeCategories(timeout?: number): Promise<{
|
|
3892
|
+
success: boolean;
|
|
3893
|
+
error?: string;
|
|
3894
|
+
categories?: string[];
|
|
3895
|
+
count?: number;
|
|
3896
|
+
message?: string;
|
|
3897
|
+
}>;
|
|
3898
|
+
/**
|
|
3899
|
+
* Get all unique tags from knowledge base nodes
|
|
3900
|
+
* Delegates to kb-nodes service
|
|
3901
|
+
*/
|
|
3902
|
+
getKbNodeTags(timeout?: number): Promise<{
|
|
3903
|
+
success: boolean;
|
|
3904
|
+
error?: string;
|
|
3905
|
+
tags?: string[];
|
|
3906
|
+
count?: number;
|
|
3907
|
+
message?: string;
|
|
3908
|
+
}>;
|
|
3909
|
+
/**
|
|
3910
|
+
* Request a dashboard component based on user prompt
|
|
3911
|
+
* Uses LLM to pick the best component and generate props
|
|
3912
|
+
* Supports both database queries and external tools as data sources
|
|
3913
|
+
* Delegates to dash-comp service
|
|
3914
|
+
*
|
|
3915
|
+
* @example
|
|
3916
|
+
* ```typescript
|
|
3917
|
+
* const response = await client.sendDashCompRequest({
|
|
3918
|
+
* prompt: "Show me a bar chart of sales by category",
|
|
3919
|
+
* threadId: "thread-123",
|
|
3920
|
+
* });
|
|
3921
|
+
*
|
|
3922
|
+
* if (response.success && response.component) {
|
|
3923
|
+
* console.log('Component:', response.component.name);
|
|
3924
|
+
* console.log('Props:', response.component.props);
|
|
3925
|
+
* console.log('Data source:', response.dataSource);
|
|
3926
|
+
* }
|
|
3927
|
+
* ```
|
|
3928
|
+
*/
|
|
3929
|
+
sendDashCompRequest(options: DashCompRequestOptions): Promise<DashCompResponse>;
|
|
3930
|
+
/**
|
|
3931
|
+
* Create a new menu
|
|
3932
|
+
* Delegates to menus service
|
|
3933
|
+
*/
|
|
3934
|
+
createMenu(options: CreateMenuOptions, timeout?: number): Promise<{
|
|
3935
|
+
success: boolean;
|
|
3936
|
+
error?: string;
|
|
3937
|
+
message?: string;
|
|
3938
|
+
data?: Menu;
|
|
3939
|
+
}>;
|
|
3940
|
+
/**
|
|
3941
|
+
* Update an existing menu
|
|
3942
|
+
* Delegates to menus service
|
|
3943
|
+
*/
|
|
3944
|
+
updateMenu(options: UpdateMenuOptions, timeout?: number): Promise<{
|
|
3945
|
+
success: boolean;
|
|
3946
|
+
error?: string;
|
|
3947
|
+
message?: string;
|
|
3948
|
+
data?: Menu;
|
|
3949
|
+
}>;
|
|
3950
|
+
/**
|
|
3951
|
+
* Delete a menu
|
|
3952
|
+
* Delegates to menus service
|
|
3953
|
+
*/
|
|
3954
|
+
deleteMenu(id: number, timeout?: number): Promise<{
|
|
3955
|
+
success: boolean;
|
|
3956
|
+
error?: string;
|
|
3957
|
+
message?: string;
|
|
3958
|
+
data?: Menu;
|
|
3959
|
+
}>;
|
|
3960
|
+
/**
|
|
3961
|
+
* Get all menus
|
|
3962
|
+
* Delegates to menus service
|
|
3963
|
+
*/
|
|
3964
|
+
getAllMenus(timeout?: number): Promise<{
|
|
3965
|
+
success: boolean;
|
|
3966
|
+
error?: string;
|
|
3967
|
+
menus?: Menu[];
|
|
3968
|
+
count?: number;
|
|
3969
|
+
message?: string;
|
|
3970
|
+
}>;
|
|
3971
|
+
/**
|
|
3972
|
+
* Get a specific menu by ID
|
|
3973
|
+
* Delegates to menus service
|
|
3974
|
+
*/
|
|
3975
|
+
getMenu(id: number, timeout?: number): Promise<{
|
|
3976
|
+
success: boolean;
|
|
3977
|
+
error?: string;
|
|
3978
|
+
menu?: Menu;
|
|
3979
|
+
message?: string;
|
|
3980
|
+
}>;
|
|
3981
|
+
/**
|
|
3982
|
+
* Get root menus (top-level sidebar items)
|
|
3983
|
+
* Delegates to menus service
|
|
3984
|
+
*/
|
|
3985
|
+
getRootMenus(timeout?: number): Promise<{
|
|
3986
|
+
success: boolean;
|
|
3987
|
+
error?: string;
|
|
3988
|
+
menus?: Menu[];
|
|
3989
|
+
count?: number;
|
|
3990
|
+
message?: string;
|
|
3991
|
+
}>;
|
|
3992
|
+
/**
|
|
3993
|
+
* Get child menus by parent ID
|
|
3994
|
+
* Delegates to menus service
|
|
3995
|
+
*/
|
|
3996
|
+
getChildMenus(parentId: number, timeout?: number): Promise<{
|
|
3997
|
+
success: boolean;
|
|
3998
|
+
error?: string;
|
|
3999
|
+
menus?: Menu[];
|
|
4000
|
+
count?: number;
|
|
4001
|
+
message?: string;
|
|
4002
|
+
}>;
|
|
4003
|
+
/**
|
|
4004
|
+
* Get menus with hierarchy (nested structure)
|
|
4005
|
+
* Delegates to menus service
|
|
4006
|
+
*/
|
|
4007
|
+
getMenusHierarchy(timeout?: number): Promise<{
|
|
4008
|
+
success: boolean;
|
|
4009
|
+
error?: string;
|
|
4010
|
+
menus?: Menu[];
|
|
4011
|
+
count?: number;
|
|
4012
|
+
message?: string;
|
|
4013
|
+
}>;
|
|
4014
|
+
/**
|
|
4015
|
+
* Query menus with filters
|
|
4016
|
+
* Delegates to menus service
|
|
4017
|
+
*/
|
|
4018
|
+
queryMenus(options?: QueryMenusOptions, timeout?: number): Promise<{
|
|
4019
|
+
success: boolean;
|
|
4020
|
+
error?: string;
|
|
4021
|
+
menus?: Menu[];
|
|
4022
|
+
count?: number;
|
|
4023
|
+
message?: string;
|
|
4024
|
+
}>;
|
|
4025
|
+
/**
|
|
4026
|
+
* Reorder menus
|
|
4027
|
+
* Delegates to menus service
|
|
4028
|
+
*/
|
|
4029
|
+
reorderMenus(items: ReorderMenuItem[], timeout?: number): Promise<{
|
|
4030
|
+
success: boolean;
|
|
4031
|
+
error?: string;
|
|
4032
|
+
message?: string;
|
|
4033
|
+
data?: Menu[];
|
|
4034
|
+
}>;
|
|
4035
|
+
/**
|
|
4036
|
+
* Get the database schema
|
|
4037
|
+
* Retrieves the schema.json containing table definitions, columns, and relationships
|
|
4038
|
+
*/
|
|
4039
|
+
getSchema(options?: GetSchemaOptions): Promise<GetSchemaResponse>;
|
|
4040
|
+
/**
|
|
4041
|
+
* Internal logging
|
|
4042
|
+
*/
|
|
4043
|
+
private log;
|
|
4044
|
+
}
|
|
4045
|
+
|
|
4046
|
+
/**
|
|
4047
|
+
* Component mount function type
|
|
4048
|
+
*/
|
|
4049
|
+
type MountFunction = (Component: any, container: HTMLElement, props?: Record<string, any>) => {
|
|
4050
|
+
unmount: () => void;
|
|
4051
|
+
};
|
|
4052
|
+
/**
|
|
4053
|
+
* Components registry interface
|
|
4054
|
+
*/
|
|
4055
|
+
interface ComponentsRegistry {
|
|
4056
|
+
[key: string]: any;
|
|
4057
|
+
mount: MountFunction;
|
|
4058
|
+
}
|
|
4059
|
+
/**
|
|
4060
|
+
* SuperAtom global interface
|
|
4061
|
+
*/
|
|
4062
|
+
interface SuperAtomGlobal {
|
|
4063
|
+
COMPONENTS?: ComponentsRegistry;
|
|
4064
|
+
wsClient?: any;
|
|
4065
|
+
runtime?: {
|
|
4066
|
+
componentsLoaded?: () => void;
|
|
4067
|
+
};
|
|
4068
|
+
}
|
|
4069
|
+
declare global {
|
|
4070
|
+
interface Window {
|
|
4071
|
+
SUPERATOM?: SuperAtomGlobal;
|
|
4072
|
+
SA?: SuperAtomGlobal;
|
|
4073
|
+
}
|
|
4074
|
+
}
|
|
4075
|
+
/**
|
|
4076
|
+
* Setup function to register components with SuperAtom
|
|
4077
|
+
* This makes components available to the runtime for dynamic rendering
|
|
4078
|
+
*/
|
|
4079
|
+
declare function setup(components: ComponentsRegistry): void;
|
|
4080
|
+
/**
|
|
4081
|
+
* Get registered components
|
|
4082
|
+
*/
|
|
4083
|
+
declare function getComponents(): ComponentsRegistry | undefined;
|
|
4084
|
+
/**
|
|
4085
|
+
* Get a specific component by name
|
|
4086
|
+
*/
|
|
4087
|
+
declare function getComponent(name: string): any;
|
|
4088
|
+
/**
|
|
4089
|
+
* Check if components are registered
|
|
4090
|
+
*/
|
|
4091
|
+
declare function hasComponents(): boolean;
|
|
4092
|
+
|
|
4093
|
+
/**
|
|
4094
|
+
* @superatom/sdk-web
|
|
4095
|
+
* SuperAtom Web SDK - TypeScript SDK for browser-based WebSocket communication
|
|
4096
|
+
*/
|
|
4097
|
+
declare const SDK_VERSION = "0.1.0";
|
|
4098
|
+
|
|
4099
|
+
export { type ActionsRequestMessage, ActionsRequestMessageSchema, type ActionsRequestPayload, ActionsRequestPayloadSchema, type ActionsResponseMessage, ActionsResponseMessageSchema, type ActionsResponsePayload, ActionsResponsePayloadSchema, type AuthLoginPayload, AuthLoginPayloadSchema, type AuthLoginRequestMessage, AuthLoginRequestMessageSchema, type AuthLoginResponseMessage, AuthLoginResponseMessageSchema, type AuthLoginResponsePayload, AuthLoginResponsePayloadSchema, type AuthVerifyPayload, AuthVerifyPayloadSchema, type AuthVerifyRequestMessage, AuthVerifyRequestMessageSchema, type AuthVerifyResponseMessage, AuthVerifyResponseMessageSchema, type AuthVerifyResponsePayload, AuthVerifyResponsePayloadSchema, type BundleChunkMessage, BundleChunkMessageSchema, type BundleChunkPayload, BundleChunkPayloadSchema, type BundleErrorMessage, BundleErrorMessageSchema, type BundleErrorPayload, BundleErrorPayloadSchema, type BundleRequestMessage, BundleRequestMessageSchema, type BundleRequestPayload, BundleRequestPayloadSchema, type ClientConfig, ClientConfigSchema, type Component, ComponentSchema, type ComponentsRegistry, type ComponentsSendMessage, ComponentsSendMessageSchema, type ComponentsSendPayload, ComponentsSendPayloadSchema, type DataRequestMessage, DataRequestMessageSchema, type DataRequestPayload, DataRequestPayloadSchema, type DataResponseMessage, DataResponseMessageSchema, type DataResponsePayload, DataResponsePayloadSchema, type KbNodeData, KbNodeDataSchema, type KbNodesQueryFilters, KbNodesQueryFiltersSchema, type KbNodesRequestMessage, KbNodesRequestMessageSchema, type KbNodesRequestPayload, KbNodesRequestPayloadSchema, type KbNodesResponseMessage, KbNodesResponseMessageSchema, type KbNodesResponsePayload, KbNodesResponsePayloadSchema, type MenuData, MenuDataSchema, type MenuQueryFilters, MenuQueryFiltersSchema, type MenusRequestMessage, MenusRequestMessageSchema, type MenusRequestPayload, MenusRequestPayloadSchema, type MenusResponseMessage, MenusResponseMessageSchema, type MenusResponsePayload, MenusResponsePayloadSchema, type Message, type MessageParticipant, MessageParticipantSchema, MessageSchema, type MountFunction, type ResolvedClientConfig, SDK_VERSION, type SuperAtomGlobal, SuperatomClient, type UILogEntry, UILogEntrySchema, type UILogsMessage, UILogsMessageSchema, type UILogsPayload, UILogsPayloadSchema, type UserPromptRequestMessage, UserPromptRequestMessageSchema, type UserPromptRequestPayload, UserPromptRequestPayloadSchema, type UserPromptResponseMessage, UserPromptResponseMessageSchema, type UserPromptResponsePayload, UserPromptResponsePayloadSchema, type UserPromptSuggestionsRequestMessage, UserPromptSuggestionsRequestMessageSchema, type UserPromptSuggestionsRequestPayload, UserPromptSuggestionsRequestPayloadSchema, type UserPromptSuggestionsResponseMessage, UserPromptSuggestionsResponseMessageSchema, type UserPromptSuggestionsResponsePayload, UserPromptSuggestionsResponsePayloadSchema, getComponent, getComponents, hasComponents, index as services, setup };
|