@superatomai/application-react 0.0.1-node12

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.
@@ -0,0 +1,3589 @@
1
+ import { z } from 'zod';
2
+ import React, { Component as Component$1, ReactNode } from 'react';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+
5
+ declare const ExpressionSchema$1: z.ZodObject<{
6
+ $exp: z.ZodString;
7
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
+ }, z.core.$strip>;
9
+ type Expression$1 = z.infer<typeof ExpressionSchema$1>;
10
+ declare const BindingSchema$1: z.ZodObject<{
11
+ $bind: z.ZodString;
12
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
13
+ name: z.ZodString;
14
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
15
+ }, z.core.$strip>>>;
16
+ }, z.core.$strip>;
17
+ type Binding$1 = z.infer<typeof BindingSchema$1>;
18
+ declare const ForDirectiveSchema$1: z.ZodObject<{
19
+ in: z.ZodUnion<readonly [z.ZodObject<{
20
+ $exp: z.ZodString;
21
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ $bind: z.ZodString;
24
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
25
+ name: z.ZodString;
26
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
27
+ }, z.core.$strip>>>;
28
+ }, z.core.$strip>, z.ZodString]>;
29
+ as: z.ZodString;
30
+ key: z.ZodOptional<z.ZodString>;
31
+ index: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>;
33
+ type ForDirective$1 = z.infer<typeof ForDirectiveSchema$1>;
34
+ declare const QuerySpecSchema$1: z.ZodObject<{
35
+ graphql: z.ZodOptional<z.ZodString>;
36
+ sql: z.ZodOptional<z.ZodString>;
37
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
38
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
39
+ key: z.ZodOptional<z.ZodString>;
40
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
41
+ "cache-first": "cache-first";
42
+ "network-only": "network-only";
43
+ "cache-and-network": "cache-and-network";
44
+ }>>;
45
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
46
+ }, z.core.$strip>;
47
+ type QuerySpec$1 = z.infer<typeof QuerySpecSchema$1>;
48
+ declare const UIElementSchema$1: z.ZodType<any>;
49
+ type UIElement$1 = z.infer<typeof UIElementSchema$1>;
50
+ declare const PageSchema: z.ZodObject<{
51
+ id: z.ZodString;
52
+ name: z.ZodString;
53
+ order: z.ZodNumber;
54
+ icon: z.ZodOptional<z.ZodString>;
55
+ render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
56
+ }, z.core.$strip>;
57
+ type Page = z.infer<typeof PageSchema>;
58
+ declare const UIComponentSchema$1: z.ZodObject<{
59
+ id: z.ZodString;
60
+ name: z.ZodOptional<z.ZodString>;
61
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
62
+ states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
63
+ methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
64
+ fn: z.ZodString;
65
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
66
+ }, z.core.$strip>>>;
67
+ effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
68
+ fn: z.ZodString;
69
+ deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
+ }, z.core.$strip>>>;
71
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
72
+ render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
73
+ pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
+ id: z.ZodString;
75
+ name: z.ZodString;
76
+ order: z.ZodNumber;
77
+ icon: z.ZodOptional<z.ZodString>;
78
+ render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
79
+ }, z.core.$strip>>>;
80
+ defaultPageId: z.ZodOptional<z.ZodString>;
81
+ query: z.ZodOptional<z.ZodObject<{
82
+ graphql: z.ZodOptional<z.ZodString>;
83
+ sql: z.ZodOptional<z.ZodString>;
84
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
85
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
86
+ key: z.ZodOptional<z.ZodString>;
87
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
88
+ "cache-first": "cache-first";
89
+ "network-only": "network-only";
90
+ "cache-and-network": "cache-and-network";
91
+ }>>;
92
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
93
+ }, z.core.$strip>>;
94
+ }, z.core.$strip>;
95
+ type UIComponent$1 = z.infer<typeof UIComponentSchema$1>;
96
+ declare const DSLRendererPropsSchema$3: z.ZodObject<{
97
+ dsl: z.ZodObject<{
98
+ id: z.ZodString;
99
+ name: z.ZodOptional<z.ZodString>;
100
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
101
+ states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
102
+ methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
103
+ fn: z.ZodString;
104
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
105
+ }, z.core.$strip>>>;
106
+ effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
107
+ fn: z.ZodString;
108
+ deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
109
+ }, z.core.$strip>>>;
110
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
111
+ render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
112
+ pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
113
+ id: z.ZodString;
114
+ name: z.ZodString;
115
+ order: z.ZodNumber;
116
+ icon: z.ZodOptional<z.ZodString>;
117
+ render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
118
+ }, z.core.$strip>>>;
119
+ defaultPageId: z.ZodOptional<z.ZodString>;
120
+ query: z.ZodOptional<z.ZodObject<{
121
+ graphql: z.ZodOptional<z.ZodString>;
122
+ sql: z.ZodOptional<z.ZodString>;
123
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
124
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
125
+ key: z.ZodOptional<z.ZodString>;
126
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
127
+ "cache-first": "cache-first";
128
+ "network-only": "network-only";
129
+ "cache-and-network": "cache-and-network";
130
+ }>>;
131
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
132
+ }, z.core.$strip>>;
133
+ }, z.core.$strip>;
134
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
135
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
136
+ }, z.core.$strip>;
137
+ type DSLRendererProps$3 = z.infer<typeof DSLRendererPropsSchema$3>;
138
+
139
+ declare const DSLRendererPropsSchema$2: z.ZodObject<{
140
+ dsl: z.ZodObject<{
141
+ id: z.ZodString;
142
+ name: z.ZodOptional<z.ZodString>;
143
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
144
+ states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
145
+ methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
146
+ fn: z.ZodString;
147
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
148
+ }, z.core.$strip>>>;
149
+ effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
150
+ fn: z.ZodString;
151
+ deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
152
+ }, z.core.$strip>>>;
153
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
154
+ render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
155
+ query: z.ZodOptional<z.ZodObject<{
156
+ graphql: z.ZodOptional<z.ZodString>;
157
+ sql: z.ZodOptional<z.ZodString>;
158
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
159
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
160
+ key: z.ZodOptional<z.ZodString>;
161
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
162
+ "cache-first": "cache-first";
163
+ "network-only": "network-only";
164
+ "cache-and-network": "cache-and-network";
165
+ }>>;
166
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
167
+ }, z.core.$strip>>;
168
+ }, z.core.$strip>;
169
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
170
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
171
+ }, z.core.$strip>;
172
+ type DSLRendererProps$2 = z.infer<typeof DSLRendererPropsSchema$2>;
173
+
174
+ /**
175
+ * Message participant schema (from/to)
176
+ * Synced with sdk-nodejs/src/types.ts
177
+ */
178
+ declare const MessageParticipantSchema: z.ZodObject<{
179
+ id: z.ZodOptional<z.ZodString>;
180
+ type: z.ZodOptional<z.ZodString>;
181
+ }, z.core.$strip>;
182
+ type MessageParticipant = z.infer<typeof MessageParticipantSchema>;
183
+ /**
184
+ * Base message schema
185
+ * Synced with sdk-nodejs/src/types.ts
186
+ */
187
+ declare const MessageSchema: z.ZodObject<{
188
+ id: z.ZodString;
189
+ type: z.ZodString;
190
+ from: z.ZodObject<{
191
+ id: z.ZodOptional<z.ZodString>;
192
+ type: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$strip>;
194
+ to: z.ZodOptional<z.ZodObject<{
195
+ id: z.ZodOptional<z.ZodString>;
196
+ type: z.ZodOptional<z.ZodString>;
197
+ }, z.core.$strip>>;
198
+ payload: z.ZodUnknown;
199
+ }, z.core.$strip>;
200
+ type Message = z.infer<typeof MessageSchema>;
201
+ /**
202
+ * User prompt request payload schema
203
+ * Synced with sdk-nodejs: UserPromptRequestPayloadSchema
204
+ */
205
+ declare const UserPromptRequestPayloadSchema: z.ZodObject<{
206
+ prompt: z.ZodString;
207
+ userId: z.ZodOptional<z.ZodString>;
208
+ SA_RUNTIME: z.ZodOptional<z.ZodObject<{
209
+ threadId: z.ZodString;
210
+ uiBlockId: z.ZodString;
211
+ }, z.core.$strip>>;
212
+ responseMode: z.ZodOptional<z.ZodEnum<{
213
+ component: "component";
214
+ text: "text";
215
+ }>>;
216
+ }, z.core.$strip>;
217
+ type UserPromptRequestPayload = z.infer<typeof UserPromptRequestPayloadSchema>;
218
+ /**
219
+ * User prompt request message schema
220
+ * Synced with sdk-nodejs: UserPromptRequestMessageSchema
221
+ */
222
+ declare const UserPromptRequestMessageSchema: z.ZodObject<{
223
+ id: z.ZodString;
224
+ type: z.ZodLiteral<"USER_PROMPT_REQ">;
225
+ from: z.ZodObject<{
226
+ id: z.ZodOptional<z.ZodString>;
227
+ type: z.ZodOptional<z.ZodString>;
228
+ }, z.core.$strip>;
229
+ to: z.ZodOptional<z.ZodObject<{
230
+ id: z.ZodOptional<z.ZodString>;
231
+ type: z.ZodOptional<z.ZodString>;
232
+ }, z.core.$strip>>;
233
+ payload: z.ZodObject<{
234
+ prompt: z.ZodString;
235
+ userId: z.ZodOptional<z.ZodString>;
236
+ SA_RUNTIME: z.ZodOptional<z.ZodObject<{
237
+ threadId: z.ZodString;
238
+ uiBlockId: z.ZodString;
239
+ }, z.core.$strip>>;
240
+ responseMode: z.ZodOptional<z.ZodEnum<{
241
+ component: "component";
242
+ text: "text";
243
+ }>>;
244
+ }, z.core.$strip>;
245
+ }, z.core.$strip>;
246
+ type UserPromptRequestMessage = z.infer<typeof UserPromptRequestMessageSchema>;
247
+ /**
248
+ * Component schema (from backend)
249
+ * Synced with sdk-nodejs: ComponentSchema
250
+ */
251
+ declare const ComponentSchema: z.ZodObject<{
252
+ id: z.ZodString;
253
+ name: z.ZodString;
254
+ type: z.ZodString;
255
+ description: z.ZodString;
256
+ props: z.ZodObject<{
257
+ query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
258
+ title: z.ZodOptional<z.ZodString>;
259
+ description: z.ZodOptional<z.ZodString>;
260
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
261
+ }, z.core.$loose>;
262
+ category: z.ZodOptional<z.ZodString>;
263
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
264
+ }, z.core.$strip>;
265
+ type Component = z.infer<typeof ComponentSchema>;
266
+ /**
267
+ * User prompt response payload schema
268
+ * Synced with sdk-nodejs handler: user-prompt-request.ts
269
+ */
270
+ declare const UserPromptResponsePayloadSchema: z.ZodObject<{
271
+ success: z.ZodBoolean;
272
+ error: z.ZodOptional<z.ZodString>;
273
+ data: z.ZodOptional<z.ZodObject<{
274
+ component: z.ZodOptional<z.ZodObject<{
275
+ id: z.ZodString;
276
+ name: z.ZodString;
277
+ type: z.ZodString;
278
+ description: z.ZodString;
279
+ props: z.ZodObject<{
280
+ query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
281
+ title: z.ZodOptional<z.ZodString>;
282
+ description: z.ZodOptional<z.ZodString>;
283
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
284
+ }, z.core.$loose>;
285
+ category: z.ZodOptional<z.ZodString>;
286
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
287
+ }, z.core.$strip>>;
288
+ }, z.core.$strip>>;
289
+ uiBlockId: z.ZodOptional<z.ZodString>;
290
+ threadId: z.ZodOptional<z.ZodString>;
291
+ }, z.core.$strip>;
292
+ type UserPromptResponsePayload = z.infer<typeof UserPromptResponsePayloadSchema>;
293
+ /**
294
+ * User prompt response message schema
295
+ */
296
+ declare const UserPromptResponseMessageSchema: z.ZodObject<{
297
+ id: z.ZodString;
298
+ type: z.ZodLiteral<"USER_PROMPT_RES">;
299
+ from: z.ZodObject<{
300
+ id: z.ZodOptional<z.ZodString>;
301
+ type: z.ZodOptional<z.ZodString>;
302
+ }, z.core.$strip>;
303
+ to: z.ZodOptional<z.ZodObject<{
304
+ id: z.ZodOptional<z.ZodString>;
305
+ type: z.ZodOptional<z.ZodString>;
306
+ }, z.core.$strip>>;
307
+ payload: z.ZodObject<{
308
+ success: z.ZodBoolean;
309
+ error: z.ZodOptional<z.ZodString>;
310
+ data: z.ZodOptional<z.ZodObject<{
311
+ component: z.ZodOptional<z.ZodObject<{
312
+ id: z.ZodString;
313
+ name: z.ZodString;
314
+ type: z.ZodString;
315
+ description: z.ZodString;
316
+ props: z.ZodObject<{
317
+ query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
318
+ title: z.ZodOptional<z.ZodString>;
319
+ description: z.ZodOptional<z.ZodString>;
320
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
321
+ }, z.core.$loose>;
322
+ category: z.ZodOptional<z.ZodString>;
323
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
324
+ }, z.core.$strip>>;
325
+ }, z.core.$strip>>;
326
+ uiBlockId: z.ZodOptional<z.ZodString>;
327
+ threadId: z.ZodOptional<z.ZodString>;
328
+ }, z.core.$strip>;
329
+ }, z.core.$strip>;
330
+ type UserPromptResponseMessage = z.infer<typeof UserPromptResponseMessageSchema>;
331
+ /**
332
+ * User prompt suggestions request payload schema
333
+ * Synced with sdk-nodejs: UserPromptSuggestionsPayloadSchema
334
+ */
335
+ declare const UserPromptSuggestionsRequestPayloadSchema: z.ZodObject<{
336
+ prompt: z.ZodString;
337
+ userId: z.ZodOptional<z.ZodString>;
338
+ limit: z.ZodDefault<z.ZodNumber>;
339
+ }, z.core.$strip>;
340
+ type UserPromptSuggestionsRequestPayload = z.infer<typeof UserPromptSuggestionsRequestPayloadSchema>;
341
+ /**
342
+ * User prompt suggestions request message schema
343
+ * Synced with sdk-nodejs: UserPromptSuggestionsMessageSchema
344
+ */
345
+ declare const UserPromptSuggestionsRequestMessageSchema: z.ZodObject<{
346
+ id: z.ZodString;
347
+ type: z.ZodLiteral<"USER_PROMPT_SUGGESTIONS_REQ">;
348
+ from: z.ZodObject<{
349
+ id: z.ZodOptional<z.ZodString>;
350
+ type: z.ZodOptional<z.ZodString>;
351
+ }, z.core.$strip>;
352
+ to: z.ZodOptional<z.ZodObject<{
353
+ id: z.ZodOptional<z.ZodString>;
354
+ type: z.ZodOptional<z.ZodString>;
355
+ }, z.core.$strip>>;
356
+ payload: z.ZodObject<{
357
+ prompt: z.ZodString;
358
+ userId: z.ZodOptional<z.ZodString>;
359
+ limit: z.ZodDefault<z.ZodNumber>;
360
+ }, z.core.$strip>;
361
+ }, z.core.$strip>;
362
+ type UserPromptSuggestionsRequestMessage = z.infer<typeof UserPromptSuggestionsRequestMessageSchema>;
363
+ /**
364
+ * User prompt suggestions response payload schema
365
+ * Synced with sdk-nodejs handler: user-prompt-suggestions.ts
366
+ */
367
+ declare const UserPromptSuggestionsResponsePayloadSchema: z.ZodObject<{
368
+ success: z.ZodBoolean;
369
+ error: z.ZodOptional<z.ZodString>;
370
+ data: z.ZodOptional<z.ZodObject<{
371
+ prompt: z.ZodString;
372
+ suggestions: z.ZodArray<z.ZodObject<{
373
+ id: z.ZodString;
374
+ name: z.ZodString;
375
+ type: z.ZodString;
376
+ description: z.ZodString;
377
+ props: z.ZodObject<{
378
+ query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
379
+ title: z.ZodOptional<z.ZodString>;
380
+ description: z.ZodOptional<z.ZodString>;
381
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
382
+ }, z.core.$loose>;
383
+ category: z.ZodOptional<z.ZodString>;
384
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
385
+ }, z.core.$strip>>;
386
+ count: z.ZodNumber;
387
+ message: z.ZodOptional<z.ZodString>;
388
+ }, z.core.$strip>>;
389
+ }, z.core.$strip>;
390
+ type UserPromptSuggestionsResponsePayload = z.infer<typeof UserPromptSuggestionsResponsePayloadSchema>;
391
+ /**
392
+ * User prompt suggestions response message schema
393
+ */
394
+ declare const UserPromptSuggestionsResponseMessageSchema: z.ZodObject<{
395
+ id: z.ZodString;
396
+ type: z.ZodLiteral<"USER_PROMPT_SUGGESTIONS_RES">;
397
+ from: z.ZodObject<{
398
+ id: z.ZodOptional<z.ZodString>;
399
+ type: z.ZodOptional<z.ZodString>;
400
+ }, z.core.$strip>;
401
+ to: z.ZodOptional<z.ZodObject<{
402
+ id: z.ZodOptional<z.ZodString>;
403
+ type: z.ZodOptional<z.ZodString>;
404
+ }, z.core.$strip>>;
405
+ payload: z.ZodObject<{
406
+ success: z.ZodBoolean;
407
+ error: z.ZodOptional<z.ZodString>;
408
+ data: z.ZodOptional<z.ZodObject<{
409
+ prompt: z.ZodString;
410
+ suggestions: z.ZodArray<z.ZodObject<{
411
+ id: z.ZodString;
412
+ name: z.ZodString;
413
+ type: z.ZodString;
414
+ description: z.ZodString;
415
+ props: z.ZodObject<{
416
+ query: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
417
+ title: z.ZodOptional<z.ZodString>;
418
+ description: z.ZodOptional<z.ZodString>;
419
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
420
+ }, z.core.$loose>;
421
+ category: z.ZodOptional<z.ZodString>;
422
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
423
+ }, z.core.$strip>>;
424
+ count: z.ZodNumber;
425
+ message: z.ZodOptional<z.ZodString>;
426
+ }, z.core.$strip>>;
427
+ }, z.core.$strip>;
428
+ }, z.core.$strip>;
429
+ type UserPromptSuggestionsResponseMessage = z.infer<typeof UserPromptSuggestionsResponseMessageSchema>;
430
+ /**
431
+ * Bundle request payload schema
432
+ */
433
+ declare const BundleRequestPayloadSchema: z.ZodObject<{
434
+ devbundlereq: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
435
+ }, z.core.$strip>;
436
+ type BundleRequestPayload = z.infer<typeof BundleRequestPayloadSchema>;
437
+ /**
438
+ * Bundle request message schema
439
+ */
440
+ declare const BundleRequestMessageSchema: z.ZodObject<{
441
+ id: z.ZodString;
442
+ type: z.ZodLiteral<"BUNDLE_REQ">;
443
+ from: z.ZodObject<{
444
+ id: z.ZodOptional<z.ZodString>;
445
+ type: z.ZodOptional<z.ZodString>;
446
+ }, z.core.$strip>;
447
+ to: z.ZodOptional<z.ZodObject<{
448
+ id: z.ZodOptional<z.ZodString>;
449
+ type: z.ZodOptional<z.ZodString>;
450
+ }, z.core.$strip>>;
451
+ payload: z.ZodObject<{
452
+ devbundlereq: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
453
+ }, z.core.$strip>;
454
+ }, z.core.$strip>;
455
+ type BundleRequestMessage = z.infer<typeof BundleRequestMessageSchema>;
456
+ /**
457
+ * Bundle chunk payload schema
458
+ * Synced with sdk-nodejs handler: bundle-request.ts
459
+ */
460
+ declare const BundleChunkPayloadSchema: z.ZodObject<{
461
+ chunk: z.ZodString;
462
+ chunkIndex: z.ZodNumber;
463
+ totalChunks: z.ZodNumber;
464
+ isComplete: z.ZodBoolean;
465
+ progress: z.ZodNumber;
466
+ }, z.core.$strip>;
467
+ type BundleChunkPayload = z.infer<typeof BundleChunkPayloadSchema>;
468
+ /**
469
+ * Bundle chunk message schema
470
+ */
471
+ declare const BundleChunkMessageSchema: z.ZodObject<{
472
+ id: z.ZodString;
473
+ type: z.ZodLiteral<"BUNDLE_CHUNK">;
474
+ from: z.ZodObject<{
475
+ id: z.ZodOptional<z.ZodString>;
476
+ type: z.ZodOptional<z.ZodString>;
477
+ }, z.core.$strip>;
478
+ to: z.ZodOptional<z.ZodObject<{
479
+ id: z.ZodOptional<z.ZodString>;
480
+ type: z.ZodOptional<z.ZodString>;
481
+ }, z.core.$strip>>;
482
+ payload: z.ZodObject<{
483
+ chunk: z.ZodString;
484
+ chunkIndex: z.ZodNumber;
485
+ totalChunks: z.ZodNumber;
486
+ isComplete: z.ZodBoolean;
487
+ progress: z.ZodNumber;
488
+ }, z.core.$strip>;
489
+ }, z.core.$strip>;
490
+ type BundleChunkMessage = z.infer<typeof BundleChunkMessageSchema>;
491
+ /**
492
+ * Bundle error response payload schema
493
+ * Synced with sdk-nodejs handler: bundle-request.ts
494
+ */
495
+ declare const BundleErrorPayloadSchema: z.ZodObject<{
496
+ error: z.ZodString;
497
+ }, z.core.$strip>;
498
+ type BundleErrorPayload = z.infer<typeof BundleErrorPayloadSchema>;
499
+ /**
500
+ * Bundle error response message schema
501
+ */
502
+ declare const BundleErrorMessageSchema: z.ZodObject<{
503
+ id: z.ZodString;
504
+ type: z.ZodLiteral<"BUNDLE_RES">;
505
+ from: z.ZodObject<{
506
+ id: z.ZodOptional<z.ZodString>;
507
+ type: z.ZodOptional<z.ZodString>;
508
+ }, z.core.$strip>;
509
+ to: z.ZodOptional<z.ZodObject<{
510
+ id: z.ZodOptional<z.ZodString>;
511
+ type: z.ZodOptional<z.ZodString>;
512
+ }, z.core.$strip>>;
513
+ payload: z.ZodObject<{
514
+ error: z.ZodString;
515
+ }, z.core.$strip>;
516
+ }, z.core.$strip>;
517
+ type BundleErrorMessage = z.infer<typeof BundleErrorMessageSchema>;
518
+ /**
519
+ * Data request payload schema
520
+ * Synced with sdk-nodejs: DataRequestPayloadSchema
521
+ */
522
+ declare const DataRequestPayloadSchema: z.ZodObject<{
523
+ collection: z.ZodString;
524
+ op: z.ZodString;
525
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
526
+ SA_RUNTIME: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
527
+ }, z.core.$strip>;
528
+ type DataRequestPayload = z.infer<typeof DataRequestPayloadSchema>;
529
+ /**
530
+ * Data request message schema
531
+ * Synced with sdk-nodejs: DataRequestMessageSchema
532
+ */
533
+ declare const DataRequestMessageSchema: z.ZodObject<{
534
+ id: z.ZodString;
535
+ type: z.ZodLiteral<"DATA_REQ">;
536
+ from: z.ZodObject<{
537
+ id: z.ZodOptional<z.ZodString>;
538
+ type: z.ZodOptional<z.ZodString>;
539
+ }, z.core.$strip>;
540
+ to: z.ZodOptional<z.ZodObject<{
541
+ id: z.ZodOptional<z.ZodString>;
542
+ type: z.ZodOptional<z.ZodString>;
543
+ }, z.core.$strip>>;
544
+ payload: z.ZodObject<{
545
+ collection: z.ZodString;
546
+ op: z.ZodString;
547
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
548
+ SA_RUNTIME: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
549
+ }, z.core.$strip>;
550
+ }, z.core.$strip>;
551
+ type DataRequestMessage = z.infer<typeof DataRequestMessageSchema>;
552
+ /**
553
+ * Data response payload schema
554
+ * Synced with sdk-nodejs handler: data-request.ts
555
+ */
556
+ declare const DataResponsePayloadSchema: z.ZodObject<{
557
+ collection: z.ZodString;
558
+ op: z.ZodString;
559
+ data: z.ZodUnknown;
560
+ executionMs: z.ZodOptional<z.ZodNumber>;
561
+ error: z.ZodOptional<z.ZodString>;
562
+ }, z.core.$strip>;
563
+ type DataResponsePayload = z.infer<typeof DataResponsePayloadSchema>;
564
+ /**
565
+ * Data response message schema
566
+ */
567
+ declare const DataResponseMessageSchema: z.ZodObject<{
568
+ id: z.ZodString;
569
+ type: z.ZodLiteral<"DATA_RES">;
570
+ from: z.ZodObject<{
571
+ id: z.ZodOptional<z.ZodString>;
572
+ type: z.ZodOptional<z.ZodString>;
573
+ }, z.core.$strip>;
574
+ to: z.ZodOptional<z.ZodObject<{
575
+ id: z.ZodOptional<z.ZodString>;
576
+ type: z.ZodOptional<z.ZodString>;
577
+ }, z.core.$strip>>;
578
+ payload: z.ZodObject<{
579
+ collection: z.ZodString;
580
+ op: z.ZodString;
581
+ data: z.ZodUnknown;
582
+ executionMs: z.ZodOptional<z.ZodNumber>;
583
+ error: z.ZodOptional<z.ZodString>;
584
+ }, z.core.$strip>;
585
+ }, z.core.$strip>;
586
+ type DataResponseMessage = z.infer<typeof DataResponseMessageSchema>;
587
+ /**
588
+ * UI log entry schema
589
+ * Synced with sdk-nodejs: UILogsPayloadSchema
590
+ */
591
+ declare const UILogEntrySchema: z.ZodObject<{
592
+ timestamp: z.ZodNumber;
593
+ level: z.ZodEnum<{
594
+ error: "error";
595
+ info: "info";
596
+ warn: "warn";
597
+ debug: "debug";
598
+ }>;
599
+ message: z.ZodString;
600
+ type: z.ZodOptional<z.ZodEnum<{
601
+ query: "query";
602
+ explanation: "explanation";
603
+ general: "general";
604
+ }>>;
605
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
606
+ }, z.core.$strip>;
607
+ type UILogEntry = z.infer<typeof UILogEntrySchema>;
608
+ /**
609
+ * UI logs payload schema
610
+ * Synced with sdk-nodejs: UILogsPayloadSchema
611
+ */
612
+ declare const UILogsPayloadSchema: z.ZodObject<{
613
+ logs: z.ZodArray<z.ZodObject<{
614
+ timestamp: z.ZodNumber;
615
+ level: z.ZodEnum<{
616
+ error: "error";
617
+ info: "info";
618
+ warn: "warn";
619
+ debug: "debug";
620
+ }>;
621
+ message: z.ZodString;
622
+ type: z.ZodOptional<z.ZodEnum<{
623
+ query: "query";
624
+ explanation: "explanation";
625
+ general: "general";
626
+ }>>;
627
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
628
+ }, z.core.$strip>>;
629
+ }, z.core.$strip>;
630
+ type UILogsPayload = z.infer<typeof UILogsPayloadSchema>;
631
+ /**
632
+ * UI logs message schema
633
+ * Synced with sdk-nodejs: UILogsMessageSchema
634
+ */
635
+ declare const UILogsMessageSchema: z.ZodObject<{
636
+ id: z.ZodString;
637
+ type: z.ZodLiteral<"UI_LOGS">;
638
+ from: z.ZodObject<{
639
+ id: z.ZodOptional<z.ZodString>;
640
+ type: z.ZodOptional<z.ZodString>;
641
+ }, z.core.$strip>;
642
+ to: z.ZodOptional<z.ZodObject<{
643
+ id: z.ZodOptional<z.ZodString>;
644
+ type: z.ZodOptional<z.ZodString>;
645
+ }, z.core.$strip>>;
646
+ payload: z.ZodObject<{
647
+ logs: z.ZodArray<z.ZodObject<{
648
+ timestamp: z.ZodNumber;
649
+ level: z.ZodEnum<{
650
+ error: "error";
651
+ info: "info";
652
+ warn: "warn";
653
+ debug: "debug";
654
+ }>;
655
+ message: z.ZodString;
656
+ type: z.ZodOptional<z.ZodEnum<{
657
+ query: "query";
658
+ explanation: "explanation";
659
+ general: "general";
660
+ }>>;
661
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
662
+ }, z.core.$strip>>;
663
+ }, z.core.$strip>;
664
+ }, z.core.$strip>;
665
+ type UILogsMessage = z.infer<typeof UILogsMessageSchema>;
666
+ /**
667
+ * Actions request payload schema
668
+ * Synced with sdk-nodejs: ActionsRequestPayloadSchema
669
+ */
670
+ declare const ActionsRequestPayloadSchema: z.ZodObject<{
671
+ userId: z.ZodOptional<z.ZodString>;
672
+ SA_RUNTIME: z.ZodOptional<z.ZodObject<{
673
+ threadId: z.ZodString;
674
+ uiBlockId: z.ZodString;
675
+ }, z.core.$strip>>;
676
+ }, z.core.$strip>;
677
+ type ActionsRequestPayload = z.infer<typeof ActionsRequestPayloadSchema>;
678
+ declare const ActionsRequestMessageSchema: z.ZodObject<{
679
+ id: z.ZodString;
680
+ from: z.ZodObject<{
681
+ id: z.ZodOptional<z.ZodString>;
682
+ type: z.ZodOptional<z.ZodString>;
683
+ }, z.core.$strip>;
684
+ type: z.ZodLiteral<"ACTIONS">;
685
+ payload: z.ZodObject<{
686
+ userId: z.ZodOptional<z.ZodString>;
687
+ SA_RUNTIME: z.ZodOptional<z.ZodObject<{
688
+ threadId: z.ZodString;
689
+ uiBlockId: z.ZodString;
690
+ }, z.core.$strip>>;
691
+ }, z.core.$strip>;
692
+ }, z.core.$strip>;
693
+ type ActionsRequestMessage = z.infer<typeof ActionsRequestMessageSchema>;
694
+ declare const ActionsResponsePayloadSchema: z.ZodObject<{
695
+ success: z.ZodBoolean;
696
+ data: z.ZodOptional<z.ZodAny>;
697
+ error: z.ZodOptional<z.ZodString>;
698
+ }, z.core.$strip>;
699
+ type ActionsResponsePayload = z.infer<typeof ActionsResponsePayloadSchema>;
700
+ declare const ActionsResponseMessageSchema: z.ZodObject<{
701
+ id: z.ZodString;
702
+ type: z.ZodLiteral<"ACTIONS_RES">;
703
+ from: z.ZodObject<{
704
+ id: z.ZodOptional<z.ZodString>;
705
+ type: z.ZodOptional<z.ZodString>;
706
+ }, z.core.$strip>;
707
+ to: z.ZodOptional<z.ZodObject<{
708
+ id: z.ZodOptional<z.ZodString>;
709
+ type: z.ZodOptional<z.ZodString>;
710
+ }, z.core.$strip>>;
711
+ payload: z.ZodObject<{
712
+ success: z.ZodBoolean;
713
+ data: z.ZodOptional<z.ZodAny>;
714
+ error: z.ZodOptional<z.ZodString>;
715
+ }, z.core.$strip>;
716
+ }, z.core.$strip>;
717
+ type ActionsResponseMessage = z.infer<typeof ActionsResponseMessageSchema>;
718
+ /**
719
+ * Components request payload schema
720
+ * Synced with sdk-nodejs: ComponentsRequestPayloadSchema
721
+ */
722
+ declare const ComponentsSendPayloadSchema: z.ZodObject<{
723
+ components: z.ZodArray<z.ZodAny>;
724
+ }, z.core.$strip>;
725
+ type ComponentsSendPayload = z.infer<typeof ComponentsSendPayloadSchema>;
726
+ /**
727
+ * Components request message schema
728
+ * Synced with sdk-nodejs: ComponentsRequestMessageSchema
729
+ */
730
+ declare const ComponentsSendMessageSchema: z.ZodObject<{
731
+ id: z.ZodString;
732
+ type: z.ZodLiteral<"COMPONENT_LIST_RES">;
733
+ from: z.ZodObject<{
734
+ id: z.ZodOptional<z.ZodString>;
735
+ type: z.ZodOptional<z.ZodString>;
736
+ }, z.core.$strip>;
737
+ to: z.ZodOptional<z.ZodObject<{
738
+ id: z.ZodOptional<z.ZodString>;
739
+ type: z.ZodOptional<z.ZodString>;
740
+ }, z.core.$strip>>;
741
+ payload: z.ZodObject<{
742
+ components: z.ZodArray<z.ZodAny>;
743
+ }, z.core.$strip>;
744
+ }, z.core.$strip>;
745
+ type ComponentsSendMessage = z.infer<typeof ComponentsSendMessageSchema>;
746
+ /**
747
+ * User query filters schema
748
+ * Synced with sdk-nodejs: UserQueryFiltersSchema
749
+ */
750
+ declare const UserQueryFiltersSchema: z.ZodObject<{
751
+ username: z.ZodOptional<z.ZodString>;
752
+ email: z.ZodOptional<z.ZodString>;
753
+ role: z.ZodOptional<z.ZodString>;
754
+ fullname: z.ZodOptional<z.ZodString>;
755
+ id: z.ZodOptional<z.ZodNumber>;
756
+ }, z.core.$strip>;
757
+ type UserQueryFilters = z.infer<typeof UserQueryFiltersSchema>;
758
+ /**
759
+ * Dashboard query filters schema
760
+ * Synced with sdk-nodejs: DashboardQueryFiltersSchema
761
+ */
762
+ declare const DashboardQueryFiltersSchema: z.ZodObject<{
763
+ dashboardId: z.ZodOptional<z.ZodString>;
764
+ projectId: z.ZodOptional<z.ZodString>;
765
+ createdBy: z.ZodOptional<z.ZodString>;
766
+ updatedBy: z.ZodOptional<z.ZodString>;
767
+ name: z.ZodOptional<z.ZodString>;
768
+ published: z.ZodOptional<z.ZodBoolean>;
769
+ }, z.core.$strip>;
770
+ type DashboardQueryFilters = z.infer<typeof DashboardQueryFiltersSchema>;
771
+ /**
772
+ * Report query filters schema
773
+ * Synced with sdk-nodejs: ReportQueryFiltersSchema
774
+ */
775
+ declare const ReportQueryFiltersSchema: z.ZodObject<{
776
+ reportId: z.ZodOptional<z.ZodString>;
777
+ projectId: z.ZodOptional<z.ZodString>;
778
+ createdBy: z.ZodOptional<z.ZodString>;
779
+ updatedBy: z.ZodOptional<z.ZodString>;
780
+ name: z.ZodOptional<z.ZodString>;
781
+ published: z.ZodOptional<z.ZodBoolean>;
782
+ }, z.core.$strip>;
783
+ type ReportQueryFilters = z.infer<typeof ReportQueryFiltersSchema>;
784
+ /**
785
+ * UI query filters schema
786
+ * Synced with sdk-nodejs: UIQueryFiltersSchema
787
+ */
788
+ declare const UIQueryFiltersSchema: z.ZodObject<{
789
+ uiId: z.ZodOptional<z.ZodString>;
790
+ projectId: z.ZodOptional<z.ZodString>;
791
+ createdBy: z.ZodOptional<z.ZodString>;
792
+ updatedBy: z.ZodOptional<z.ZodString>;
793
+ name: z.ZodOptional<z.ZodString>;
794
+ }, z.core.$strip>;
795
+ type UIQueryFilters = z.infer<typeof UIQueryFiltersSchema>;
796
+ /**
797
+ * DBUIBlock schema for database storage
798
+ * Synced with sdk-nodejs: DBUIBlockSchema (from conversation-saver.ts)
799
+ */
800
+ declare const DBUIBlockSchema: z.ZodObject<{
801
+ id: z.ZodString;
802
+ component: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
803
+ analysis: z.ZodNullable<z.ZodString>;
804
+ user_prompt: z.ZodString;
805
+ }, z.core.$strip>;
806
+ type DBUIBlock = z.infer<typeof DBUIBlockSchema>;
807
+ /**
808
+ * Bookmark data schema
809
+ * Synced with sdk-nodejs: BookmarkDataSchema
810
+ */
811
+ declare const BookmarkDataSchema: z.ZodObject<{
812
+ id: z.ZodOptional<z.ZodNumber>;
813
+ uiblock: z.ZodObject<{
814
+ id: z.ZodString;
815
+ component: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
816
+ analysis: z.ZodNullable<z.ZodString>;
817
+ user_prompt: z.ZodString;
818
+ }, z.core.$strip>;
819
+ created_at: z.ZodOptional<z.ZodString>;
820
+ updated_at: z.ZodOptional<z.ZodString>;
821
+ }, z.core.$strip>;
822
+ type BookmarkData = z.infer<typeof BookmarkDataSchema>;
823
+ /**
824
+ * Bookmark query filters schema
825
+ * Synced with sdk-nodejs: BookmarkQueryFiltersSchema
826
+ */
827
+ declare const BookmarkQueryFiltersSchema: z.ZodObject<{
828
+ userId: z.ZodOptional<z.ZodString>;
829
+ threadId: z.ZodOptional<z.ZodString>;
830
+ name: z.ZodOptional<z.ZodString>;
831
+ }, z.core.$strip>;
832
+ type BookmarkQueryFilters = z.infer<typeof BookmarkQueryFiltersSchema>;
833
+ /**
834
+ * Artifact data schema
835
+ * Synced with sdk-nodejs/project-setup: artifacts.ts
836
+ */
837
+ declare const ArtifactDataSchema: z.ZodObject<{
838
+ id: z.ZodOptional<z.ZodNumber>;
839
+ name: z.ZodString;
840
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
841
+ dsl: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
842
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
843
+ filters: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
844
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
845
+ deleted: z.ZodOptional<z.ZodBoolean>;
846
+ createdAt: z.ZodOptional<z.ZodString>;
847
+ updatedAt: z.ZodOptional<z.ZodString>;
848
+ }, z.core.$strip>;
849
+ type ArtifactData = z.infer<typeof ArtifactDataSchema>;
850
+ /**
851
+ * Menu data interface (defined separately for self-referencing schema)
852
+ */
853
+ interface MenuData {
854
+ id?: number;
855
+ name: string;
856
+ componentName: string;
857
+ icon?: string | null;
858
+ userMessage?: string | null;
859
+ parentId?: number | null;
860
+ sortOrder?: number;
861
+ props?: Record<string, unknown> | null;
862
+ isActive?: boolean;
863
+ createdAt?: string;
864
+ updatedAt?: string;
865
+ children?: MenuData[];
866
+ menuJson?: Record<string, unknown> | null;
867
+ version?: number;
868
+ }
869
+ /**
870
+ * Menu data schema
871
+ * Synced with sdk-nodejs: MenuDataSchema
872
+ */
873
+ declare const MenuDataSchema: z.ZodType<MenuData>;
874
+ /**
875
+ * Menu query filters schema
876
+ * Synced with sdk-nodejs: MenuQueryFiltersSchema
877
+ */
878
+ declare const MenuQueryFiltersSchema: z.ZodObject<{
879
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
880
+ isActive: z.ZodOptional<z.ZodBoolean>;
881
+ }, z.core.$strip>;
882
+ type MenuQueryFilters = z.infer<typeof MenuQueryFiltersSchema>;
883
+ /**
884
+ * Menus request payload schema
885
+ * Synced with sdk-nodejs: MenusRequestPayloadSchema
886
+ */
887
+ declare const MenusRequestPayloadSchema: z.ZodObject<{
888
+ operation: z.ZodEnum<{
889
+ query: "query";
890
+ create: "create";
891
+ update: "update";
892
+ delete: "delete";
893
+ getAll: "getAll";
894
+ getOne: "getOne";
895
+ getRootMenus: "getRootMenus";
896
+ getChildMenus: "getChildMenus";
897
+ getHierarchy: "getHierarchy";
898
+ reorder: "reorder";
899
+ }>;
900
+ data: z.ZodOptional<z.ZodObject<{
901
+ id: z.ZodOptional<z.ZodNumber>;
902
+ name: z.ZodOptional<z.ZodString>;
903
+ componentName: z.ZodOptional<z.ZodString>;
904
+ icon: z.ZodOptional<z.ZodString>;
905
+ userMessage: z.ZodOptional<z.ZodString>;
906
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
907
+ sortOrder: z.ZodOptional<z.ZodNumber>;
908
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
909
+ isActive: z.ZodOptional<z.ZodBoolean>;
910
+ filters: z.ZodOptional<z.ZodObject<{
911
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
912
+ isActive: z.ZodOptional<z.ZodBoolean>;
913
+ }, z.core.$strip>>;
914
+ limit: z.ZodOptional<z.ZodNumber>;
915
+ sort: z.ZodOptional<z.ZodEnum<{
916
+ ASC: "ASC";
917
+ DESC: "DESC";
918
+ }>>;
919
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
920
+ id: z.ZodNumber;
921
+ sortOrder: z.ZodNumber;
922
+ }, z.core.$strip>>>;
923
+ }, z.core.$strip>>;
924
+ }, z.core.$strip>;
925
+ type MenusRequestPayload = z.infer<typeof MenusRequestPayloadSchema>;
926
+ /**
927
+ * Menus request message schema
928
+ * Synced with sdk-nodejs: MenusRequestMessageSchema
929
+ */
930
+ declare const MenusRequestMessageSchema: z.ZodObject<{
931
+ id: z.ZodString;
932
+ type: z.ZodLiteral<"MENUS">;
933
+ from: z.ZodObject<{
934
+ id: z.ZodOptional<z.ZodString>;
935
+ type: z.ZodOptional<z.ZodString>;
936
+ }, z.core.$strip>;
937
+ to: z.ZodOptional<z.ZodObject<{
938
+ id: z.ZodOptional<z.ZodString>;
939
+ type: z.ZodOptional<z.ZodString>;
940
+ }, z.core.$strip>>;
941
+ payload: z.ZodObject<{
942
+ operation: z.ZodEnum<{
943
+ query: "query";
944
+ create: "create";
945
+ update: "update";
946
+ delete: "delete";
947
+ getAll: "getAll";
948
+ getOne: "getOne";
949
+ getRootMenus: "getRootMenus";
950
+ getChildMenus: "getChildMenus";
951
+ getHierarchy: "getHierarchy";
952
+ reorder: "reorder";
953
+ }>;
954
+ data: z.ZodOptional<z.ZodObject<{
955
+ id: z.ZodOptional<z.ZodNumber>;
956
+ name: z.ZodOptional<z.ZodString>;
957
+ componentName: z.ZodOptional<z.ZodString>;
958
+ icon: z.ZodOptional<z.ZodString>;
959
+ userMessage: z.ZodOptional<z.ZodString>;
960
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
961
+ sortOrder: z.ZodOptional<z.ZodNumber>;
962
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
963
+ isActive: z.ZodOptional<z.ZodBoolean>;
964
+ filters: z.ZodOptional<z.ZodObject<{
965
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
966
+ isActive: z.ZodOptional<z.ZodBoolean>;
967
+ }, z.core.$strip>>;
968
+ limit: z.ZodOptional<z.ZodNumber>;
969
+ sort: z.ZodOptional<z.ZodEnum<{
970
+ ASC: "ASC";
971
+ DESC: "DESC";
972
+ }>>;
973
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
974
+ id: z.ZodNumber;
975
+ sortOrder: z.ZodNumber;
976
+ }, z.core.$strip>>>;
977
+ }, z.core.$strip>>;
978
+ }, z.core.$strip>;
979
+ }, z.core.$strip>;
980
+ type MenusRequestMessage = z.infer<typeof MenusRequestMessageSchema>;
981
+ /**
982
+ * Menus response payload schema
983
+ * Synced with sdk-nodejs handler: menus.ts
984
+ */
985
+ declare const MenusResponsePayloadSchema: z.ZodObject<{
986
+ success: z.ZodBoolean;
987
+ error: z.ZodOptional<z.ZodString>;
988
+ 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>>>]>>;
989
+ count: z.ZodOptional<z.ZodNumber>;
990
+ message: z.ZodOptional<z.ZodString>;
991
+ }, z.core.$strip>;
992
+ type MenusResponsePayload = z.infer<typeof MenusResponsePayloadSchema>;
993
+ /**
994
+ * Menus response message schema
995
+ */
996
+ declare const MenusResponseMessageSchema: z.ZodObject<{
997
+ id: z.ZodString;
998
+ type: z.ZodLiteral<"MENUS_RES">;
999
+ from: z.ZodObject<{
1000
+ id: z.ZodOptional<z.ZodString>;
1001
+ type: z.ZodOptional<z.ZodString>;
1002
+ }, z.core.$strip>;
1003
+ to: z.ZodOptional<z.ZodObject<{
1004
+ id: z.ZodOptional<z.ZodString>;
1005
+ type: z.ZodOptional<z.ZodString>;
1006
+ }, z.core.$strip>>;
1007
+ payload: z.ZodObject<{
1008
+ success: z.ZodBoolean;
1009
+ error: z.ZodOptional<z.ZodString>;
1010
+ 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>>>]>>;
1011
+ count: z.ZodOptional<z.ZodNumber>;
1012
+ message: z.ZodOptional<z.ZodString>;
1013
+ }, z.core.$strip>;
1014
+ }, z.core.$strip>;
1015
+ type MenusResponseMessage = z.infer<typeof MenusResponseMessageSchema>;
1016
+ /**
1017
+ * Client configuration schema
1018
+ */
1019
+ declare const ClientConfigSchema: z.ZodObject<{
1020
+ userId: z.ZodString;
1021
+ projectId: z.ZodString;
1022
+ baseUrl: z.ZodDefault<z.ZodString>;
1023
+ type: z.ZodDefault<z.ZodString>;
1024
+ maxReconnectAttempts: z.ZodDefault<z.ZodNumber>;
1025
+ initialReconnectDelay: z.ZodDefault<z.ZodNumber>;
1026
+ maxReconnectDelay: z.ZodDefault<z.ZodNumber>;
1027
+ defaultTimeout: z.ZodDefault<z.ZodNumber>;
1028
+ debug: z.ZodDefault<z.ZodBoolean>;
1029
+ }, z.core.$strip>;
1030
+ type ClientConfig = z.input<typeof ClientConfigSchema>;
1031
+ type ResolvedClientConfig = z.output<typeof ClientConfigSchema>;
1032
+
1033
+ /**
1034
+ * User Prompt Service
1035
+ * Handles user_prompt_req and user_prompt_suggestions_req messages
1036
+ */
1037
+
1038
+ /**
1039
+ * Send a user prompt request
1040
+ * @param client - SuperatomClient instance
1041
+ * @param prompt - User's prompt text
1042
+ * @param threadId - Thread ID for conversation context
1043
+ * @param uiBlockId - UI block ID for context
1044
+ * @param userId - User ID for the request
1045
+ * @param responseMode - 'component' for component response (default), 'text' for text streaming
1046
+ * @param onStream - Optional callback for streaming text chunks (only for text mode)
1047
+ * @param timeout - Request timeout in milliseconds
1048
+ * @returns Server response message
1049
+ */
1050
+ declare function sendUserPromptRequest(client: SuperatomClient, prompt: string, threadId: string, uiBlockId: string, userId?: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
1051
+ /**
1052
+ * Send a user prompt suggestions request
1053
+ * @param client - SuperatomClient instance
1054
+ * @param prompt - User's partial prompt text
1055
+ * @param userId - User ID for the request
1056
+ * @param limit - Maximum number of suggestions to return
1057
+ * @param timeout - Request timeout in milliseconds
1058
+ * @returns Server response message or null if prompt is empty
1059
+ */
1060
+ declare function sendUserPromptSuggestionsRequest(client: SuperatomClient, prompt: string, userId?: string, limit?: number, timeout?: number): Promise<Message | null>;
1061
+
1062
+ /**
1063
+ * Bundle Service
1064
+ * Handles bundle_req messages and chunked bundle delivery
1065
+ */
1066
+
1067
+ declare function injectBundleStyles(): void;
1068
+ /**
1069
+ * Request bundle from server
1070
+ * @param client - SuperatomClient instance
1071
+ * @param options - Bundle request options
1072
+ * @param options.timeout - Request timeout in milliseconds (default: 60000)
1073
+ * @param options.onProgress - Progress callback (0-100)
1074
+ * @returns Complete bundle as string
1075
+ */
1076
+ declare function requestBundle(client: SuperatomClient, options?: {
1077
+ timeout?: number;
1078
+ onProgress?: (progress: number) => void;
1079
+ devbundlereq?: boolean;
1080
+ }): Promise<string>;
1081
+
1082
+ declare function sendComponents(client: SuperatomClient, components: any[]): Promise<void>;
1083
+
1084
+ /**
1085
+ * Data Service
1086
+ * Handles data_req messages for querying collections
1087
+ */
1088
+
1089
+ /**
1090
+ * Request data from a collection
1091
+ * @param client - SuperatomClient instance
1092
+ * @param options - Data request options
1093
+ * @param options.collection - Collection name to query
1094
+ * @param options.operation - Operation to perform (e.g., 'find', 'aggregate')
1095
+ * @param options.params - Operation parameters
1096
+ * @param options.timeout - Request timeout in milliseconds
1097
+ * @returns Response with data or error
1098
+ */
1099
+ declare function requestData(client: SuperatomClient, options: {
1100
+ collection: string;
1101
+ operation: string;
1102
+ params?: Record<string, unknown>;
1103
+ SA_RUNTIME?: Record<string, unknown>;
1104
+ timeout?: number;
1105
+ }): Promise<{
1106
+ data?: unknown;
1107
+ error?: string;
1108
+ executionMs?: number;
1109
+ }>;
1110
+
1111
+ /**
1112
+ * Users Service
1113
+ * Handles USERS message for user operations
1114
+ */
1115
+
1116
+ /**
1117
+ * User interface for response data
1118
+ */
1119
+ interface User {
1120
+ username: string;
1121
+ email?: string;
1122
+ fullname?: string;
1123
+ role?: string;
1124
+ userInfo?: Record<string, unknown>;
1125
+ wsIds?: string[];
1126
+ }
1127
+ /**
1128
+ * Query users options
1129
+ */
1130
+ interface QueryUsersOptions {
1131
+ filters?: UserQueryFilters;
1132
+ limit?: number;
1133
+ sort?: 'ASC' | 'DESC';
1134
+ }
1135
+ /**
1136
+ * Query users with filters, limit, and sort
1137
+ * @param client - SuperatomClient instance
1138
+ * @param options - Query options with filters, limit, and sort
1139
+ * @param timeout - Request timeout in milliseconds
1140
+ * @returns Server response with list of users
1141
+ */
1142
+ declare function queryUsers(client: SuperatomClient, options?: QueryUsersOptions, timeout?: number): Promise<{
1143
+ success: boolean;
1144
+ error?: string;
1145
+ users?: User[];
1146
+ count?: number;
1147
+ message?: string;
1148
+ }>;
1149
+
1150
+ /**
1151
+ * Dashboards Service
1152
+ * Handles DASHBOARDS message for dashboard read operations
1153
+ */
1154
+
1155
+ /**
1156
+ * Dashboard interface for response data
1157
+ */
1158
+ interface Dashboard {
1159
+ id?: number;
1160
+ dashboardId: string;
1161
+ projectId?: string;
1162
+ name?: string;
1163
+ description?: string;
1164
+ published?: boolean;
1165
+ dashboard?: DSLRendererProps$3;
1166
+ createdBy?: string;
1167
+ updatedBy?: string;
1168
+ allowedUsers?: string[];
1169
+ createdAt?: string;
1170
+ updatedAt?: string;
1171
+ }
1172
+ /**
1173
+ * Query dashboards options
1174
+ */
1175
+ interface QueryDashboardsOptions {
1176
+ filters?: DashboardQueryFilters;
1177
+ limit?: number;
1178
+ sort?: 'ASC' | 'DESC';
1179
+ }
1180
+ /**
1181
+ * Get all dashboards
1182
+ * @param client - SuperatomClient instance
1183
+ * @param timeout - Request timeout in milliseconds
1184
+ * @returns Server response with list of dashboards
1185
+ */
1186
+ declare function getAllDashboards(client: SuperatomClient, timeout?: number): Promise<{
1187
+ success: boolean;
1188
+ error?: string;
1189
+ dashboards?: Dashboard[];
1190
+ count?: number;
1191
+ message?: string;
1192
+ }>;
1193
+ /**
1194
+ * Get a specific dashboard by ID
1195
+ * @param client - SuperatomClient instance
1196
+ * @param id - Dashboard ID (numeric) to retrieve
1197
+ * @param timeout - Request timeout in milliseconds
1198
+ * @returns Server response with dashboard data
1199
+ */
1200
+ declare function getDashboard(client: SuperatomClient, id: number, timeout?: number): Promise<{
1201
+ success: boolean;
1202
+ error?: string;
1203
+ id?: number;
1204
+ dashboardId?: string;
1205
+ dashboard?: DSLRendererProps$3;
1206
+ message?: string;
1207
+ }>;
1208
+ /**
1209
+ * Query dashboards with filters, limit, and sort
1210
+ * @param client - SuperatomClient instance
1211
+ * @param options - Query options with filters, limit, and sort
1212
+ * @param timeout - Request timeout in milliseconds
1213
+ * @returns Server response with list of dashboards
1214
+ */
1215
+ declare function queryDashboards(client: SuperatomClient, options?: QueryDashboardsOptions, timeout?: number): Promise<{
1216
+ success: boolean;
1217
+ error?: string;
1218
+ dashboards?: Dashboard[];
1219
+ count?: number;
1220
+ message?: string;
1221
+ }>;
1222
+
1223
+ /**
1224
+ * Reports Service
1225
+ * Handles REPORTS message for report read operations
1226
+ */
1227
+
1228
+ /**
1229
+ * Report interface for response data
1230
+ */
1231
+ interface Report {
1232
+ id?: number;
1233
+ reportId: string;
1234
+ projectId?: string;
1235
+ name?: string;
1236
+ description?: string;
1237
+ published?: boolean;
1238
+ report?: DSLRendererProps$2;
1239
+ createdBy?: string;
1240
+ updatedBy?: string;
1241
+ createdAt?: string;
1242
+ updatedAt?: string;
1243
+ }
1244
+ /**
1245
+ * Query reports options
1246
+ */
1247
+ interface QueryReportsOptions {
1248
+ filters?: ReportQueryFilters;
1249
+ limit?: number;
1250
+ sort?: 'ASC' | 'DESC';
1251
+ }
1252
+ /**
1253
+ * Get all reports
1254
+ * @param client - SuperatomClient instance
1255
+ * @param timeout - Request timeout in milliseconds
1256
+ * @returns Server response with list of reports
1257
+ */
1258
+ declare function getAllReports(client: SuperatomClient, timeout?: number): Promise<{
1259
+ success: boolean;
1260
+ error?: string;
1261
+ reports?: Report[];
1262
+ count?: number;
1263
+ message?: string;
1264
+ }>;
1265
+ /**
1266
+ * Get a specific report by ID
1267
+ * @param client - SuperatomClient instance
1268
+ * @param id - Report ID (numeric) to retrieve
1269
+ * @param timeout - Request timeout in milliseconds
1270
+ * @returns Server response with report data
1271
+ */
1272
+ declare function getReport(client: SuperatomClient, id: number, timeout?: number): Promise<{
1273
+ success: boolean;
1274
+ error?: string;
1275
+ id?: number;
1276
+ reportId?: string;
1277
+ report?: DSLRendererProps$2;
1278
+ message?: string;
1279
+ }>;
1280
+ /**
1281
+ * Query reports with filters, limit, and sort
1282
+ * @param client - SuperatomClient instance
1283
+ * @param options - Query options with filters, limit, and sort
1284
+ * @param timeout - Request timeout in milliseconds
1285
+ * @returns Server response with list of reports
1286
+ */
1287
+ declare function queryReports(client: SuperatomClient, options?: QueryReportsOptions, timeout?: number): Promise<{
1288
+ success: boolean;
1289
+ error?: string;
1290
+ reports?: Report[];
1291
+ count?: number;
1292
+ message?: string;
1293
+ }>;
1294
+
1295
+ /**
1296
+ * Bookmarks Service
1297
+ * Handles BOOKMARKS message for bookmark CRUD operations
1298
+ */
1299
+
1300
+ /**
1301
+ * Bookmark interface for response data
1302
+ */
1303
+ interface Bookmark {
1304
+ id?: number;
1305
+ userId?: string;
1306
+ threadId?: string;
1307
+ name?: string;
1308
+ description?: string;
1309
+ uiblock: DBUIBlock;
1310
+ created_at?: string;
1311
+ updated_at?: string;
1312
+ }
1313
+ /**
1314
+ * Create bookmark options
1315
+ */
1316
+ interface CreateBookmarkOptions {
1317
+ userId: string;
1318
+ uiblock: DBUIBlock;
1319
+ threadId?: string;
1320
+ name?: string;
1321
+ description?: string;
1322
+ }
1323
+ /**
1324
+ * Create a new bookmark
1325
+ * @param client - SuperatomClient instance
1326
+ * @param options - Bookmark creation options
1327
+ * @param timeout - Request timeout in milliseconds
1328
+ * @returns Server response with success status
1329
+ */
1330
+ declare function createBookmark(client: SuperatomClient, options: CreateBookmarkOptions, timeout?: number): Promise<{
1331
+ success: boolean;
1332
+ error?: string;
1333
+ message?: string;
1334
+ data?: BookmarkData;
1335
+ }>;
1336
+ /**
1337
+ * Update bookmark options
1338
+ */
1339
+ interface UpdateBookmarkOptions {
1340
+ id: number;
1341
+ uiblock?: DBUIBlock;
1342
+ threadId?: string;
1343
+ name?: string;
1344
+ description?: string;
1345
+ }
1346
+ /**
1347
+ * Update an existing bookmark
1348
+ * @param client - SuperatomClient instance
1349
+ * @param options - Bookmark update options
1350
+ * @param timeout - Request timeout in milliseconds
1351
+ * @returns Server response with success status
1352
+ */
1353
+ declare function updateBookmark(client: SuperatomClient, options: UpdateBookmarkOptions, timeout?: number): Promise<{
1354
+ success: boolean;
1355
+ error?: string;
1356
+ message?: string;
1357
+ data?: BookmarkData;
1358
+ }>;
1359
+ /**
1360
+ * Delete a bookmark
1361
+ * @param client - SuperatomClient instance
1362
+ * @param id - Bookmark ID to delete
1363
+ * @param timeout - Request timeout in milliseconds
1364
+ * @returns Server response with success status
1365
+ */
1366
+ declare function deleteBookmark(client: SuperatomClient, id: number, timeout?: number): Promise<{
1367
+ success: boolean;
1368
+ error?: string;
1369
+ message?: string;
1370
+ data?: BookmarkData;
1371
+ }>;
1372
+ /**
1373
+ * Get all bookmarks
1374
+ * @param client - SuperatomClient instance
1375
+ * @param timeout - Request timeout in milliseconds
1376
+ * @returns Server response with list of bookmarks
1377
+ */
1378
+ declare function getAllBookmarks(client: SuperatomClient, timeout?: number): Promise<{
1379
+ success: boolean;
1380
+ error?: string;
1381
+ data?: BookmarkData[];
1382
+ count?: number;
1383
+ message?: string;
1384
+ }>;
1385
+ /**
1386
+ * Get a specific bookmark by ID
1387
+ * @param client - SuperatomClient instance
1388
+ * @param id - Bookmark ID to retrieve
1389
+ * @param timeout - Request timeout in milliseconds
1390
+ * @returns Server response with bookmark data
1391
+ */
1392
+ declare function getBookmark(client: SuperatomClient, id: number, timeout?: number): Promise<{
1393
+ success: boolean;
1394
+ error?: string;
1395
+ data?: BookmarkData;
1396
+ message?: string;
1397
+ }>;
1398
+ /**
1399
+ * Query bookmarks options
1400
+ */
1401
+ interface QueryBookmarksOptions {
1402
+ filters?: BookmarkQueryFilters;
1403
+ limit?: number;
1404
+ sort?: 'ASC' | 'DESC';
1405
+ }
1406
+ /**
1407
+ * Query bookmarks with filters, limit, and sort
1408
+ * @param client - SuperatomClient instance
1409
+ * @param options - Query options with filters, limit, and sort
1410
+ * @param timeout - Request timeout in milliseconds
1411
+ * @returns Server response with list of bookmarks
1412
+ */
1413
+ declare function queryBookmarks(client: SuperatomClient, options?: QueryBookmarksOptions, timeout?: number): Promise<{
1414
+ success: boolean;
1415
+ error?: string;
1416
+ data?: BookmarkData[];
1417
+ count?: number;
1418
+ message?: string;
1419
+ }>;
1420
+
1421
+ /**
1422
+ * Artifacts Service
1423
+ * Handles ARTIFACTS message for artifact read operations
1424
+ */
1425
+
1426
+ /**
1427
+ * Artifact interface for response data
1428
+ */
1429
+ interface Artifact {
1430
+ id?: number;
1431
+ name: string;
1432
+ createdBy?: string | null;
1433
+ dsl?: Record<string, any> | null;
1434
+ status?: string | null;
1435
+ deleted?: boolean;
1436
+ createdAt?: string;
1437
+ updatedAt?: string;
1438
+ }
1439
+ /**
1440
+ * Delete an artifact (soft delete)
1441
+ * @param client - SuperatomClient instance
1442
+ * @param id - Artifact ID to delete
1443
+ * @param timeout - Request timeout in milliseconds
1444
+ * @returns Server response with success status
1445
+ */
1446
+ declare function deleteArtifact(client: SuperatomClient, id: number, timeout?: number): Promise<{
1447
+ success: boolean;
1448
+ error?: string;
1449
+ message?: string;
1450
+ data?: ArtifactData;
1451
+ }>;
1452
+ /**
1453
+ * Get all artifacts
1454
+ * @param client - SuperatomClient instance
1455
+ * @param limit - Optional limit for number of results
1456
+ * @param timeout - Request timeout in milliseconds
1457
+ * @returns Server response with list of artifacts
1458
+ */
1459
+ declare function getAllArtifacts(client: SuperatomClient, limit?: number, timeout?: number): Promise<{
1460
+ success: boolean;
1461
+ error?: string;
1462
+ data?: ArtifactData[];
1463
+ count?: number;
1464
+ message?: string;
1465
+ }>;
1466
+ /**
1467
+ * Get a specific artifact by ID
1468
+ * @param client - SuperatomClient instance
1469
+ * @param id - Artifact ID to retrieve
1470
+ * @param timeout - Request timeout in milliseconds
1471
+ * @returns Server response with artifact data
1472
+ */
1473
+ declare function getArtifact(client: SuperatomClient, id: number, timeout?: number): Promise<{
1474
+ success: boolean;
1475
+ error?: string;
1476
+ data?: ArtifactData;
1477
+ message?: string;
1478
+ }>;
1479
+ /**
1480
+ * Query artifacts filters
1481
+ */
1482
+ interface QueryArtifactsFilters {
1483
+ createdBy?: string;
1484
+ type?: string;
1485
+ status?: string;
1486
+ name?: string;
1487
+ deleted?: boolean;
1488
+ createdAt?: string;
1489
+ }
1490
+ /**
1491
+ * Query artifacts options
1492
+ */
1493
+ interface QueryArtifactsOptions {
1494
+ filters?: QueryArtifactsFilters;
1495
+ limit?: number;
1496
+ offset?: number;
1497
+ sort?: 'ASC' | 'DESC';
1498
+ }
1499
+ /**
1500
+ * Query artifacts with filters
1501
+ * @param client - SuperatomClient instance
1502
+ * @param options - Query options with filters, limit, and sort
1503
+ * @param timeout - Request timeout in milliseconds
1504
+ * @returns Server response with list of matching artifacts
1505
+ */
1506
+ declare function queryArtifacts(client: SuperatomClient, options?: QueryArtifactsOptions, timeout?: number): Promise<{
1507
+ success: boolean;
1508
+ error?: string;
1509
+ data?: ArtifactData[];
1510
+ count?: number;
1511
+ message?: string;
1512
+ }>;
1513
+
1514
+ declare function getActions(client: SuperatomClient, options: {
1515
+ userId?: string;
1516
+ SA_RUNTIME?: Record<string, unknown>;
1517
+ timeout?: number;
1518
+ }): Promise<{
1519
+ success: boolean;
1520
+ data?: unknown;
1521
+ error?: string;
1522
+ }>;
1523
+
1524
+ declare const DSLRendererPropsSchema$1: z.ZodObject<{
1525
+ dsl: z.ZodObject<{
1526
+ id: z.ZodString;
1527
+ name: z.ZodOptional<z.ZodString>;
1528
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1529
+ states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1530
+ methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1531
+ fn: z.ZodString;
1532
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1533
+ }, z.core.$strip>>>;
1534
+ effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
1535
+ fn: z.ZodString;
1536
+ deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
1537
+ }, z.core.$strip>>>;
1538
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1539
+ render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
1540
+ query: z.ZodOptional<z.ZodObject<{
1541
+ graphql: z.ZodOptional<z.ZodString>;
1542
+ sql: z.ZodOptional<z.ZodString>;
1543
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1544
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1545
+ key: z.ZodOptional<z.ZodString>;
1546
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
1547
+ "cache-first": "cache-first";
1548
+ "network-only": "network-only";
1549
+ "cache-and-network": "cache-and-network";
1550
+ }>>;
1551
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
1552
+ }, z.core.$strip>>;
1553
+ }, z.core.$strip>;
1554
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1555
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1556
+ }, z.core.$strip>;
1557
+ type DSLRendererProps$1 = z.infer<typeof DSLRendererPropsSchema$1>;
1558
+
1559
+ /**
1560
+ * UIs Service
1561
+ * Handles UIS message for UI read operations
1562
+ */
1563
+
1564
+ /**
1565
+ * UI interface for response data
1566
+ */
1567
+ interface UI {
1568
+ id?: number;
1569
+ uiId: string;
1570
+ projectId?: string;
1571
+ name?: string;
1572
+ description?: string;
1573
+ ui?: DSLRendererProps$1;
1574
+ createdBy?: string;
1575
+ updatedBy?: string;
1576
+ createdAt?: string;
1577
+ updatedAt?: string;
1578
+ }
1579
+ /**
1580
+ * Query UIs options
1581
+ */
1582
+ interface QueryUIsOptions {
1583
+ filters?: UIQueryFilters;
1584
+ limit?: number;
1585
+ sort?: 'ASC' | 'DESC';
1586
+ }
1587
+ /**
1588
+ * Get all UIs
1589
+ * @param client - SuperatomClient instance
1590
+ * @param timeout - Request timeout in milliseconds
1591
+ * @returns Server response with list of UIs
1592
+ */
1593
+ declare function getAllUIs(client: SuperatomClient, timeout?: number): Promise<{
1594
+ success: boolean;
1595
+ error?: string;
1596
+ uis?: UI[];
1597
+ count?: number;
1598
+ message?: string;
1599
+ }>;
1600
+ /**
1601
+ * Get a specific UI by ID
1602
+ * @param client - SuperatomClient instance
1603
+ * @param id - UI ID (numeric) to retrieve
1604
+ * @param timeout - Request timeout in milliseconds
1605
+ * @returns Server response with UI data
1606
+ */
1607
+ declare function getUI(client: SuperatomClient, id: number, timeout?: number): Promise<{
1608
+ success: boolean;
1609
+ error?: string;
1610
+ id?: number;
1611
+ uiId?: string;
1612
+ ui?: DSLRendererProps$1;
1613
+ message?: string;
1614
+ }>;
1615
+ /**
1616
+ * Query UIs with filters, limit, and sort
1617
+ * @param client - SuperatomClient instance
1618
+ * @param options - Query options with filters, limit, and sort
1619
+ * @param timeout - Request timeout in milliseconds
1620
+ * @returns Server response with list of UIs
1621
+ */
1622
+ declare function queryUIs(client: SuperatomClient, options?: QueryUIsOptions, timeout?: number): Promise<{
1623
+ success: boolean;
1624
+ error?: string;
1625
+ uis?: UI[];
1626
+ count?: number;
1627
+ message?: string;
1628
+ }>;
1629
+
1630
+ /**
1631
+ * Menus Service
1632
+ * Handles MENUS message for menu read operations
1633
+ */
1634
+
1635
+ /**
1636
+ * Menu interface for response data
1637
+ */
1638
+ interface Menu {
1639
+ id: number;
1640
+ name: string;
1641
+ componentName: string;
1642
+ icon?: string | null;
1643
+ userMessage?: string | null;
1644
+ parentId?: number | null;
1645
+ sortOrder?: number;
1646
+ props?: Record<string, unknown> | null;
1647
+ isActive?: boolean;
1648
+ createdAt?: string;
1649
+ updatedAt?: string;
1650
+ children?: Menu[];
1651
+ menuJson?: Record<string, unknown> | null;
1652
+ version?: number;
1653
+ }
1654
+ /**
1655
+ * Query menus options
1656
+ */
1657
+ interface QueryMenusOptions {
1658
+ filters?: MenuQueryFilters;
1659
+ limit?: number;
1660
+ sort?: 'ASC' | 'DESC';
1661
+ }
1662
+ /**
1663
+ * Get all menus
1664
+ * @param client - SuperatomClient instance
1665
+ * @param timeout - Request timeout in milliseconds
1666
+ * @returns Server response with list of menus
1667
+ */
1668
+ declare function getAllMenus(client: SuperatomClient, timeout?: number): Promise<{
1669
+ success: boolean;
1670
+ error?: string;
1671
+ menus?: Menu[];
1672
+ count?: number;
1673
+ message?: string;
1674
+ }>;
1675
+ /**
1676
+ * Get a specific menu by ID
1677
+ * @param client - SuperatomClient instance
1678
+ * @param id - Menu ID to retrieve
1679
+ * @param timeout - Request timeout in milliseconds
1680
+ * @returns Server response with menu data
1681
+ */
1682
+ declare function getMenu(client: SuperatomClient, id: number, timeout?: number): Promise<{
1683
+ success: boolean;
1684
+ error?: string;
1685
+ menu?: Menu;
1686
+ message?: string;
1687
+ }>;
1688
+ /**
1689
+ * Get root menus (top-level sidebar items)
1690
+ * @param client - SuperatomClient instance
1691
+ * @param timeout - Request timeout in milliseconds
1692
+ * @returns Server response with list of root menus
1693
+ */
1694
+ declare function getRootMenus(client: SuperatomClient, timeout?: number): Promise<{
1695
+ success: boolean;
1696
+ error?: string;
1697
+ menus?: Menu[];
1698
+ count?: number;
1699
+ message?: string;
1700
+ }>;
1701
+ /**
1702
+ * Get child menus by parent ID
1703
+ * @param client - SuperatomClient instance
1704
+ * @param parentId - Parent menu ID
1705
+ * @param timeout - Request timeout in milliseconds
1706
+ * @returns Server response with list of child menus
1707
+ */
1708
+ declare function getChildMenus(client: SuperatomClient, parentId: number, timeout?: number): Promise<{
1709
+ success: boolean;
1710
+ error?: string;
1711
+ menus?: Menu[];
1712
+ count?: number;
1713
+ message?: string;
1714
+ }>;
1715
+ /**
1716
+ * Get menus with hierarchy (nested structure)
1717
+ * @param client - SuperatomClient instance
1718
+ * @param timeout - Request timeout in milliseconds
1719
+ * @returns Server response with hierarchical menus
1720
+ */
1721
+ declare function getMenusHierarchy(client: SuperatomClient, timeout?: number): Promise<{
1722
+ success: boolean;
1723
+ error?: string;
1724
+ menus?: Menu[];
1725
+ count?: number;
1726
+ message?: string;
1727
+ }>;
1728
+ /**
1729
+ * Query menus with filters, limit, and sort
1730
+ * @param client - SuperatomClient instance
1731
+ * @param options - Query options with filters, limit, and sort
1732
+ * @param timeout - Request timeout in milliseconds
1733
+ * @returns Server response with list of menus
1734
+ */
1735
+ declare function queryMenus(client: SuperatomClient, options?: QueryMenusOptions, timeout?: number): Promise<{
1736
+ success: boolean;
1737
+ error?: string;
1738
+ menus?: Menu[];
1739
+ count?: number;
1740
+ message?: string;
1741
+ }>;
1742
+
1743
+ /**
1744
+ * Services Index
1745
+ * Re-exports all service functions for easy importing
1746
+ */
1747
+
1748
+ type index_Artifact = Artifact;
1749
+ type index_Bookmark = Bookmark;
1750
+ type index_CreateBookmarkOptions = CreateBookmarkOptions;
1751
+ type index_Dashboard = Dashboard;
1752
+ type index_Menu = Menu;
1753
+ type index_Page = Page;
1754
+ declare const index_PageSchema: typeof PageSchema;
1755
+ type index_QueryArtifactsFilters = QueryArtifactsFilters;
1756
+ type index_QueryArtifactsOptions = QueryArtifactsOptions;
1757
+ type index_QueryBookmarksOptions = QueryBookmarksOptions;
1758
+ type index_QueryDashboardsOptions = QueryDashboardsOptions;
1759
+ type index_QueryMenusOptions = QueryMenusOptions;
1760
+ type index_QueryReportsOptions = QueryReportsOptions;
1761
+ type index_QueryUIsOptions = QueryUIsOptions;
1762
+ type index_QueryUsersOptions = QueryUsersOptions;
1763
+ type index_Report = Report;
1764
+ type index_UI = UI;
1765
+ type index_UpdateBookmarkOptions = UpdateBookmarkOptions;
1766
+ type index_User = User;
1767
+ declare const index_createBookmark: typeof createBookmark;
1768
+ declare const index_deleteArtifact: typeof deleteArtifact;
1769
+ declare const index_deleteBookmark: typeof deleteBookmark;
1770
+ declare const index_getActions: typeof getActions;
1771
+ declare const index_getAllArtifacts: typeof getAllArtifacts;
1772
+ declare const index_getAllBookmarks: typeof getAllBookmarks;
1773
+ declare const index_getAllDashboards: typeof getAllDashboards;
1774
+ declare const index_getAllMenus: typeof getAllMenus;
1775
+ declare const index_getAllReports: typeof getAllReports;
1776
+ declare const index_getAllUIs: typeof getAllUIs;
1777
+ declare const index_getArtifact: typeof getArtifact;
1778
+ declare const index_getBookmark: typeof getBookmark;
1779
+ declare const index_getChildMenus: typeof getChildMenus;
1780
+ declare const index_getDashboard: typeof getDashboard;
1781
+ declare const index_getMenu: typeof getMenu;
1782
+ declare const index_getMenusHierarchy: typeof getMenusHierarchy;
1783
+ declare const index_getReport: typeof getReport;
1784
+ declare const index_getRootMenus: typeof getRootMenus;
1785
+ declare const index_getUI: typeof getUI;
1786
+ declare const index_injectBundleStyles: typeof injectBundleStyles;
1787
+ declare const index_queryArtifacts: typeof queryArtifacts;
1788
+ declare const index_queryBookmarks: typeof queryBookmarks;
1789
+ declare const index_queryDashboards: typeof queryDashboards;
1790
+ declare const index_queryMenus: typeof queryMenus;
1791
+ declare const index_queryReports: typeof queryReports;
1792
+ declare const index_queryUIs: typeof queryUIs;
1793
+ declare const index_queryUsers: typeof queryUsers;
1794
+ declare const index_requestBundle: typeof requestBundle;
1795
+ declare const index_requestData: typeof requestData;
1796
+ declare const index_sendComponents: typeof sendComponents;
1797
+ declare const index_sendUserPromptRequest: typeof sendUserPromptRequest;
1798
+ declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSuggestionsRequest;
1799
+ declare const index_updateBookmark: typeof updateBookmark;
1800
+ declare namespace index {
1801
+ export { type index_Artifact as Artifact, type Binding$1 as Binding, BindingSchema$1 as BindingSchema, type index_Bookmark as Bookmark, type index_CreateBookmarkOptions as CreateBookmarkOptions, type DSLRendererProps$3 as DSLRendererProps, DSLRendererPropsSchema$3 as DSLRendererPropsSchema, type index_Dashboard as Dashboard, type Expression$1 as Expression, ExpressionSchema$1 as ExpressionSchema, type ForDirective$1 as ForDirective, ForDirectiveSchema$1 as ForDirectiveSchema, 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 QuerySpec$1 as QuerySpec, QuerySpecSchema$1 as QuerySpecSchema, type index_QueryUIsOptions as QueryUIsOptions, type index_QueryUsersOptions as QueryUsersOptions, type index_Report as Report, type DSLRendererProps$2 as ReportDSLRendererProps, type index_UI as UI, type UIComponent$1 as UIComponent, UIComponentSchema$1 as UIComponentSchema, type DSLRendererProps$1 as UIDSLRendererProps, type UIElement$1 as UIElement, UIElementSchema$1 as UIElementSchema, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_User as User, index_createBookmark as createBookmark, index_deleteArtifact as deleteArtifact, index_deleteBookmark as deleteBookmark, index_getActions as getActions, index_getAllArtifacts as getAllArtifacts, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllMenus as getAllMenus, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getArtifact as getArtifact, index_getBookmark as getBookmark, index_getChildMenus as getChildMenus, index_getDashboard as getDashboard, index_getMenu as getMenu, index_getMenusHierarchy as getMenusHierarchy, index_getReport as getReport, index_getRootMenus as getRootMenus, index_getUI as getUI, index_injectBundleStyles as injectBundleStyles, 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_requestBundle as requestBundle, index_requestData as requestData, index_sendComponents as sendComponents, index_sendUserPromptRequest as sendUserPromptRequest, index_sendUserPromptSuggestionsRequest as sendUserPromptSuggestionsRequest, index_updateBookmark as updateBookmark };
1802
+ }
1803
+
1804
+ type MessageHandler = (message: Message) => void;
1805
+ type ConnectionHandler = () => void;
1806
+ type ErrorHandler = (error: Event | Error) => void;
1807
+ /**
1808
+ * SuperatomClient - WebSocket client for SuperAtom platform
1809
+ *
1810
+ * Core WebSocket client handling connection management, messaging, and event handling.
1811
+ * Domain-specific functionality (auth, user prompts, bundles) is delegated to service functions.
1812
+ */
1813
+ declare class SuperatomClient {
1814
+ private socket;
1815
+ private reconnectAttempts;
1816
+ private reconnectTimer;
1817
+ private shouldReconnect;
1818
+ private messageHandlers;
1819
+ private connectionHandlers;
1820
+ private disconnectionHandlers;
1821
+ private reconnectingHandlers;
1822
+ private errorHandlers;
1823
+ private config;
1824
+ private connectPromise;
1825
+ private connectResolve;
1826
+ private heartbeatInterval;
1827
+ private pongDeadline;
1828
+ private readonly HEARTBEAT_INTERVAL_MS;
1829
+ private readonly PONG_DEADLINE_MS;
1830
+ private pendingRequests;
1831
+ private windowListenersAttached;
1832
+ private boundHandleOnline;
1833
+ private boundHandleOffline;
1834
+ private boundHandleVisibilityChange;
1835
+ private boundHandlePageShow;
1836
+ constructor(config: ClientConfig);
1837
+ private registerGlobals;
1838
+ /**
1839
+ * Get WebSocket URL with query parameters
1840
+ */
1841
+ private getWebSocketUrl;
1842
+ /**
1843
+ * Calculate reconnection delay with exponential backoff
1844
+ */
1845
+ private calculateReconnectDelay;
1846
+ /**
1847
+ * Schedule reconnection attempt
1848
+ */
1849
+ private scheduleReconnect;
1850
+ /**
1851
+ * Cancel any pending reconnect timer.
1852
+ */
1853
+ private cancelReconnectTimer;
1854
+ /**
1855
+ * Start the heartbeat loop. Called on socket open.
1856
+ * Sends PING every HEARTBEAT_INTERVAL_MS; if no PONG comes back within
1857
+ * PONG_DEADLINE_MS, the socket is treated as dead and force-closed so the
1858
+ * normal reconnect path runs. This is the only way to catch a TCP that's
1859
+ * silently been dropped (NAT timeout, wifi cut, tab suspended).
1860
+ */
1861
+ private startHeartbeat;
1862
+ /**
1863
+ * Stop the heartbeat loop and clear any armed pong deadline.
1864
+ */
1865
+ private stopHeartbeat;
1866
+ /**
1867
+ * Reject all currently-pending sendWithResponse calls. Called on socket close
1868
+ * so the UI can immediately surface a "connection lost" error instead of
1869
+ * waiting for the 30s request timeout.
1870
+ */
1871
+ private failPendingRequests;
1872
+ /**
1873
+ * Synchronously declare the current socket dead. Used when we know the
1874
+ * connection is gone (offline event, heartbeat miss) but onclose hasn't
1875
+ * fired yet — on Linux/Chrome a socket.close() against a dropped network
1876
+ * can stay in CLOSING for 30-60s before onclose runs, which would delay
1877
+ * the UI's "Reconnecting" state by the same amount. We bypass that wait
1878
+ * by firing disconnect handlers ourselves and stubbing the dying socket's
1879
+ * callbacks so the eventual real close doesn't double-fire everything.
1880
+ */
1881
+ private markAsDead;
1882
+ /**
1883
+ * Force a fresh socket. Cancels any backoff timer, resets attempt count,
1884
+ * and opens a new connection. Used by the UI's "Retry" button and by the
1885
+ * window 'online' / 'visibilitychange' handlers.
1886
+ */
1887
+ forceReconnect(): Promise<void>;
1888
+ /**
1889
+ * Attach window-level listeners that catch network changes faster than
1890
+ * the socket's own onclose. The browser's onclose for a half-open TCP can
1891
+ * take minutes; 'offline' and 'visibilitychange' fire within a second.
1892
+ */
1893
+ private attachWindowListeners;
1894
+ private detachWindowListeners;
1895
+ /**
1896
+ * Send a one-off PING and arm the pong deadline. Triggered by visibility
1897
+ * changes when we want to verify the socket is alive quickly without
1898
+ * waiting for the next scheduled heartbeat.
1899
+ */
1900
+ private sendHeartbeatProbe;
1901
+ /**
1902
+ * Setup WebSocket event handlers
1903
+ */
1904
+ private setupSocketHandlers;
1905
+ /**
1906
+ * Connect to SuperAtom WebSocket server
1907
+ * Returns a Promise that resolves when the connection is established
1908
+ * The Promise never rejects - failures are logged silently and auto-reconnect is triggered
1909
+ */
1910
+ connect(): Promise<void>;
1911
+ /**
1912
+ * Disconnect from WebSocket server
1913
+ */
1914
+ disconnect(): void;
1915
+ /**
1916
+ * Update client configuration
1917
+ */
1918
+ private updateConfig;
1919
+ /**
1920
+ * Reconnect with new configuration
1921
+ * Disconnects from existing connection and reconnects with updated config
1922
+ * Returns a Promise that resolves when the new connection is established
1923
+ */
1924
+ reconnectWithConfig(config: Partial<ClientConfig>): Promise<void>;
1925
+ /**
1926
+ * Send a message to the server
1927
+ */
1928
+ send(message: Omit<Message, 'from'> & {
1929
+ from?: {
1930
+ type?: string;
1931
+ id?: string;
1932
+ };
1933
+ }): void;
1934
+ /**
1935
+ * Send a message and wait for a response with the same ID
1936
+ * Uses closure-based approach - no global state management needed
1937
+ */
1938
+ sendWithResponse(message: Omit<Message, 'from'> & {
1939
+ from?: {
1940
+ type?: string;
1941
+ id?: string;
1942
+ };
1943
+ }, timeout?: number): Promise<Message>;
1944
+ /**
1945
+ * Register message handler
1946
+ */
1947
+ onMessage(handler: MessageHandler): () => void;
1948
+ /**
1949
+ * Register connection handler
1950
+ */
1951
+ onConnect(handler: ConnectionHandler): () => void;
1952
+ /**
1953
+ * Register disconnection handler
1954
+ */
1955
+ onDisconnect(handler: ConnectionHandler): () => void;
1956
+ /**
1957
+ * Register error handler
1958
+ */
1959
+ onError(handler: ErrorHandler): () => void;
1960
+ /**
1961
+ * Register reconnecting handler — fires every time the SDK schedules a
1962
+ * reconnect attempt (after a disconnect / failed connect). UI uses this to
1963
+ * flip to the 'reconnecting' state without waiting on a debounce.
1964
+ */
1965
+ onReconnecting(handler: ConnectionHandler): () => void;
1966
+ /**
1967
+ * Check if client is connected
1968
+ */
1969
+ isConnected(): boolean;
1970
+ /**
1971
+ * Get current reconnection attempts
1972
+ */
1973
+ getReconnectAttempts(): number;
1974
+ /**
1975
+ * Get client type
1976
+ */
1977
+ get type(): string;
1978
+ /**
1979
+ * Send a message and wait for response with timeout (alias for sendWithResponse)
1980
+ */
1981
+ ask(message: Omit<Message, 'from'> & {
1982
+ from?: {
1983
+ type?: string;
1984
+ id?: string;
1985
+ };
1986
+ }, options?: {
1987
+ timeout?: number;
1988
+ }): Promise<Message>;
1989
+ /**
1990
+ * Send a user prompt request
1991
+ * Delegates to user prompt service
1992
+ * @param userId - User ID for the request
1993
+ * @param responseMode - 'component' for component response (default), 'text' for text streaming
1994
+ * @param onStream - Optional callback for streaming text chunks (only for text mode)
1995
+ */
1996
+ sendUserPromptRequest(prompt: string, threadId: string, uiBlockId: string, userId?: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
1997
+ /**
1998
+ * Send a user prompt suggestions request
1999
+ * Delegates to user prompt service
2000
+ * @param userId - User ID for the request
2001
+ */
2002
+ sendUserPromptSuggestionsRequest(prompt: string, userId?: string, limit?: number, timeout?: number): Promise<Message | null>;
2003
+ /**
2004
+ * Request bundle from server
2005
+ * Delegates to bundle service
2006
+ */
2007
+ requestBundle(options?: {
2008
+ timeout?: number;
2009
+ onProgress?: (progress: number) => void;
2010
+ devbundle?: boolean;
2011
+ }): Promise<string>;
2012
+ /**
2013
+ * Send component metadata to the data agent for AI indexing
2014
+ * Delegates to component service
2015
+ */
2016
+ sendComponents(components: any[]): Promise<void>;
2017
+ /**
2018
+ * Request data from a collection
2019
+ * Delegates to data service
2020
+ */
2021
+ requestData(options: {
2022
+ collection: string;
2023
+ operation: string;
2024
+ params?: Record<string, unknown>;
2025
+ SA_RUNTIME?: Record<string, unknown>;
2026
+ timeout?: number;
2027
+ }): Promise<{
2028
+ data?: unknown;
2029
+ error?: string;
2030
+ }>;
2031
+ /**
2032
+ * Get AI-powered component suggestions based on a query
2033
+ * Delegates to component service
2034
+ * @param userId - User ID for the request
2035
+ */
2036
+ getActions(options: {
2037
+ userId?: string;
2038
+ SA_RUNTIME?: Record<string, unknown>;
2039
+ timeout?: number;
2040
+ }): Promise<{
2041
+ success: boolean;
2042
+ data?: unknown;
2043
+ error?: string;
2044
+ }>;
2045
+ /**
2046
+ * Query users with filters, limit, and sort
2047
+ * Delegates to users service
2048
+ */
2049
+ queryUsers(options?: QueryUsersOptions, timeout?: number): Promise<{
2050
+ success: boolean;
2051
+ error?: string;
2052
+ users?: User[];
2053
+ count?: number;
2054
+ message?: string;
2055
+ }>;
2056
+ /**
2057
+ * Get all dashboards
2058
+ * Delegates to dashboards service
2059
+ */
2060
+ getAllDashboards(timeout?: number): Promise<{
2061
+ success: boolean;
2062
+ error?: string;
2063
+ dashboards?: Dashboard[];
2064
+ count?: number;
2065
+ message?: string;
2066
+ }>;
2067
+ /**
2068
+ * Get a specific dashboard by ID
2069
+ * Delegates to dashboards service
2070
+ */
2071
+ getDashboard(id: number, timeout?: number): Promise<{
2072
+ success: boolean;
2073
+ error?: string;
2074
+ id?: number;
2075
+ dashboardId?: string;
2076
+ dashboard?: DSLRendererProps$3;
2077
+ message?: string;
2078
+ }>;
2079
+ /**
2080
+ * Query dashboards with filters
2081
+ * Delegates to dashboards service
2082
+ */
2083
+ queryDashboards(options?: QueryDashboardsOptions, timeout?: number): Promise<{
2084
+ success: boolean;
2085
+ error?: string;
2086
+ dashboards?: Dashboard[];
2087
+ count?: number;
2088
+ message?: string;
2089
+ }>;
2090
+ /**
2091
+ * Create a new bookmark
2092
+ * Delegates to bookmarks service
2093
+ */
2094
+ createBookmark(options: CreateBookmarkOptions, timeout?: number): Promise<{
2095
+ success: boolean;
2096
+ error?: string;
2097
+ message?: string;
2098
+ data?: Bookmark;
2099
+ }>;
2100
+ /**
2101
+ * Update an existing bookmark
2102
+ * Delegates to bookmarks service
2103
+ */
2104
+ updateBookmark(options: UpdateBookmarkOptions, timeout?: number): Promise<{
2105
+ success: boolean;
2106
+ error?: string;
2107
+ message?: string;
2108
+ data?: Bookmark;
2109
+ }>;
2110
+ /**
2111
+ * Delete a bookmark
2112
+ * Delegates to bookmarks service
2113
+ */
2114
+ deleteBookmark(id: number, timeout?: number): Promise<{
2115
+ success: boolean;
2116
+ error?: string;
2117
+ message?: string;
2118
+ data?: Bookmark;
2119
+ }>;
2120
+ /**
2121
+ * Get all bookmarks
2122
+ * Delegates to bookmarks service
2123
+ */
2124
+ getAllBookmarks(timeout?: number): Promise<{
2125
+ success: boolean;
2126
+ error?: string;
2127
+ data?: Bookmark[];
2128
+ count?: number;
2129
+ message?: string;
2130
+ }>;
2131
+ /**
2132
+ * Get a specific bookmark by ID
2133
+ * Delegates to bookmarks service
2134
+ */
2135
+ getBookmark(id: number, timeout?: number): Promise<{
2136
+ success: boolean;
2137
+ error?: string;
2138
+ data?: Bookmark;
2139
+ message?: string;
2140
+ }>;
2141
+ /**
2142
+ * Query bookmarks with filters, limit, and sort
2143
+ * Delegates to bookmarks service
2144
+ */
2145
+ queryBookmarks(options?: QueryBookmarksOptions, timeout?: number): Promise<{
2146
+ success: boolean;
2147
+ error?: string;
2148
+ data?: Bookmark[];
2149
+ count?: number;
2150
+ message?: string;
2151
+ }>;
2152
+ /**
2153
+ * Delete an artifact (soft delete)
2154
+ * Delegates to artifacts service
2155
+ */
2156
+ deleteArtifact(id: number, timeout?: number): Promise<{
2157
+ success: boolean;
2158
+ error?: string;
2159
+ message?: string;
2160
+ data?: Artifact;
2161
+ }>;
2162
+ /**
2163
+ * Get all artifacts
2164
+ * Delegates to artifacts service
2165
+ */
2166
+ getAllArtifacts(limit?: number, timeout?: number): Promise<{
2167
+ success: boolean;
2168
+ error?: string;
2169
+ data?: Artifact[];
2170
+ count?: number;
2171
+ message?: string;
2172
+ }>;
2173
+ /**
2174
+ * Get a specific artifact by ID
2175
+ * Delegates to artifacts service
2176
+ */
2177
+ getArtifact(id: number, timeout?: number): Promise<{
2178
+ success: boolean;
2179
+ error?: string;
2180
+ data?: Artifact;
2181
+ message?: string;
2182
+ }>;
2183
+ /**
2184
+ * Query artifacts with filters
2185
+ * Delegates to artifacts service
2186
+ */
2187
+ queryArtifacts(options?: QueryArtifactsOptions, timeout?: number): Promise<{
2188
+ success: boolean;
2189
+ error?: string;
2190
+ data?: Artifact[];
2191
+ count?: number;
2192
+ message?: string;
2193
+ }>;
2194
+ /**
2195
+ * Get all reports
2196
+ * Delegates to reports service
2197
+ */
2198
+ getAllReports(timeout?: number): Promise<{
2199
+ success: boolean;
2200
+ error?: string;
2201
+ reports?: Report[];
2202
+ count?: number;
2203
+ message?: string;
2204
+ }>;
2205
+ /**
2206
+ * Get a specific report by ID
2207
+ * Delegates to reports service
2208
+ */
2209
+ getReport(id: number, timeout?: number): Promise<{
2210
+ success: boolean;
2211
+ error?: string;
2212
+ id?: number;
2213
+ reportId?: string;
2214
+ report?: DSLRendererProps$2;
2215
+ message?: string;
2216
+ }>;
2217
+ /**
2218
+ * Query reports with filters
2219
+ * Delegates to reports service
2220
+ */
2221
+ queryReports(options?: QueryReportsOptions, timeout?: number): Promise<{
2222
+ success: boolean;
2223
+ error?: string;
2224
+ reports?: Report[];
2225
+ count?: number;
2226
+ message?: string;
2227
+ }>;
2228
+ /**
2229
+ * Get all UIs
2230
+ * Delegates to uis service
2231
+ */
2232
+ getAllUIs(timeout?: number): Promise<{
2233
+ success: boolean;
2234
+ error?: string;
2235
+ uis?: UI[];
2236
+ count?: number;
2237
+ message?: string;
2238
+ }>;
2239
+ /**
2240
+ * Get a specific UI by ID
2241
+ * Delegates to uis service
2242
+ */
2243
+ getUI(id: number, timeout?: number): Promise<{
2244
+ success: boolean;
2245
+ error?: string;
2246
+ id?: number;
2247
+ uiId?: string;
2248
+ ui?: DSLRendererProps$3;
2249
+ message?: string;
2250
+ }>;
2251
+ /**
2252
+ * Query UIs with filters
2253
+ * Delegates to uis service
2254
+ */
2255
+ queryUIs(options?: QueryUIsOptions, timeout?: number): Promise<{
2256
+ success: boolean;
2257
+ error?: string;
2258
+ uis?: UI[];
2259
+ count?: number;
2260
+ message?: string;
2261
+ }>;
2262
+ /**
2263
+ * Get all menus
2264
+ * Delegates to menus service
2265
+ */
2266
+ getAllMenus(timeout?: number): Promise<{
2267
+ success: boolean;
2268
+ error?: string;
2269
+ menus?: Menu[];
2270
+ count?: number;
2271
+ message?: string;
2272
+ }>;
2273
+ /**
2274
+ * Get a specific menu by ID
2275
+ * Delegates to menus service
2276
+ */
2277
+ getMenu(id: number, timeout?: number): Promise<{
2278
+ success: boolean;
2279
+ error?: string;
2280
+ menu?: Menu;
2281
+ message?: string;
2282
+ }>;
2283
+ /**
2284
+ * Get root menus (top-level sidebar items)
2285
+ * Delegates to menus service
2286
+ */
2287
+ getRootMenus(timeout?: number): Promise<{
2288
+ success: boolean;
2289
+ error?: string;
2290
+ menus?: Menu[];
2291
+ count?: number;
2292
+ message?: string;
2293
+ }>;
2294
+ /**
2295
+ * Get child menus by parent ID
2296
+ * Delegates to menus service
2297
+ */
2298
+ getChildMenus(parentId: number, timeout?: number): Promise<{
2299
+ success: boolean;
2300
+ error?: string;
2301
+ menus?: Menu[];
2302
+ count?: number;
2303
+ message?: string;
2304
+ }>;
2305
+ /**
2306
+ * Get menus with hierarchy (nested structure)
2307
+ * Delegates to menus service
2308
+ */
2309
+ getMenusHierarchy(timeout?: number): Promise<{
2310
+ success: boolean;
2311
+ error?: string;
2312
+ menus?: Menu[];
2313
+ count?: number;
2314
+ message?: string;
2315
+ }>;
2316
+ /**
2317
+ * Query menus with filters
2318
+ * Delegates to menus service
2319
+ */
2320
+ queryMenus(options?: QueryMenusOptions, timeout?: number): Promise<{
2321
+ success: boolean;
2322
+ error?: string;
2323
+ menus?: Menu[];
2324
+ count?: number;
2325
+ message?: string;
2326
+ }>;
2327
+ /**
2328
+ * Internal logging
2329
+ */
2330
+ private log;
2331
+ }
2332
+
2333
+ /**
2334
+ * Component mount function type
2335
+ */
2336
+ type MountFunction = (Component: any, container: HTMLElement, props?: Record<string, any>) => {
2337
+ unmount: () => void;
2338
+ };
2339
+ /**
2340
+ * Components registry interface
2341
+ */
2342
+ interface ComponentsRegistry {
2343
+ [key: string]: any;
2344
+ mount: MountFunction;
2345
+ }
2346
+ /**
2347
+ * SuperAtom global interface
2348
+ */
2349
+ interface SuperAtomGlobal {
2350
+ COMPONENTS?: ComponentsRegistry;
2351
+ wsClient?: any;
2352
+ runtime?: {
2353
+ componentsLoaded?: () => void;
2354
+ };
2355
+ }
2356
+ declare global {
2357
+ interface Window {
2358
+ SUPERATOM?: SuperAtomGlobal;
2359
+ SA?: SuperAtomGlobal;
2360
+ }
2361
+ }
2362
+ /**
2363
+ * Setup function to register components with SuperAtom
2364
+ * This makes components available to the runtime for dynamic rendering
2365
+ */
2366
+ declare function setup(components: ComponentsRegistry): void;
2367
+ /**
2368
+ * Get registered components
2369
+ */
2370
+ declare function getComponents(): ComponentsRegistry | undefined;
2371
+ /**
2372
+ * Get a specific component by name
2373
+ */
2374
+ declare function getComponent(name: string): any;
2375
+ /**
2376
+ * Check if components are registered
2377
+ */
2378
+ declare function hasComponents(): boolean;
2379
+
2380
+ declare const ExpressionSchema: z.ZodObject<{
2381
+ $exp: z.ZodString;
2382
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2383
+ }, z.core.$strip>;
2384
+ declare const BindingSchema: z.ZodObject<{
2385
+ $bind: z.ZodString;
2386
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2387
+ name: z.ZodString;
2388
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2389
+ }, z.core.$strip>>>;
2390
+ }, z.core.$strip>;
2391
+ declare const ForDirectiveSchema: z.ZodObject<{
2392
+ in: z.ZodUnion<readonly [z.ZodObject<{
2393
+ $exp: z.ZodString;
2394
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2395
+ }, z.core.$strip>, z.ZodObject<{
2396
+ $bind: z.ZodString;
2397
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2398
+ name: z.ZodString;
2399
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2400
+ }, z.core.$strip>>>;
2401
+ }, z.core.$strip>, z.ZodString]>;
2402
+ as: z.ZodString;
2403
+ key: z.ZodOptional<z.ZodString>;
2404
+ index: z.ZodOptional<z.ZodString>;
2405
+ }, z.core.$strip>;
2406
+ declare const QuerySpecSchema: z.ZodObject<{
2407
+ graphql: z.ZodOptional<z.ZodString>;
2408
+ sql: z.ZodOptional<z.ZodString>;
2409
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2410
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2411
+ key: z.ZodOptional<z.ZodString>;
2412
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
2413
+ "cache-first": "cache-first";
2414
+ "network-only": "network-only";
2415
+ "cache-and-network": "cache-and-network";
2416
+ }>>;
2417
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
2418
+ }, z.core.$strip>;
2419
+ declare const UIElementSchema: z.ZodObject<{
2420
+ id: z.ZodString;
2421
+ type: z.ZodString;
2422
+ key: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2423
+ $exp: z.ZodString;
2424
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2425
+ }, z.core.$strip>]>>;
2426
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2427
+ query: z.ZodOptional<z.ZodObject<{
2428
+ graphql: z.ZodOptional<z.ZodString>;
2429
+ sql: z.ZodOptional<z.ZodString>;
2430
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2431
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2432
+ key: z.ZodOptional<z.ZodString>;
2433
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
2434
+ "cache-first": "cache-first";
2435
+ "network-only": "network-only";
2436
+ "cache-and-network": "cache-and-network";
2437
+ }>>;
2438
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
2439
+ }, z.core.$strip>>;
2440
+ if: z.ZodOptional<z.ZodObject<{
2441
+ $exp: z.ZodString;
2442
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2443
+ }, z.core.$strip>>;
2444
+ elseIf: z.ZodOptional<z.ZodObject<{
2445
+ $exp: z.ZodString;
2446
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2447
+ }, z.core.$strip>>;
2448
+ for: z.ZodOptional<z.ZodObject<{
2449
+ in: z.ZodUnion<readonly [z.ZodObject<{
2450
+ $exp: z.ZodString;
2451
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2452
+ }, z.core.$strip>, z.ZodObject<{
2453
+ $bind: z.ZodString;
2454
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2455
+ name: z.ZodString;
2456
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2457
+ }, z.core.$strip>>>;
2458
+ }, z.core.$strip>, z.ZodString]>;
2459
+ as: z.ZodString;
2460
+ key: z.ZodOptional<z.ZodString>;
2461
+ index: z.ZodOptional<z.ZodString>;
2462
+ }, z.core.$strip>>;
2463
+ "link-to": z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2464
+ $exp: z.ZodString;
2465
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2466
+ }, z.core.$strip>, z.ZodObject<{
2467
+ $bind: z.ZodString;
2468
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2469
+ name: z.ZodString;
2470
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2471
+ }, z.core.$strip>>>;
2472
+ }, z.core.$strip>, z.ZodObject<{
2473
+ ui: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2474
+ $exp: z.ZodString;
2475
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2476
+ }, z.core.$strip>, z.ZodObject<{
2477
+ $bind: z.ZodString;
2478
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2479
+ name: z.ZodString;
2480
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2481
+ }, z.core.$strip>>>;
2482
+ }, z.core.$strip>]>;
2483
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2484
+ }, z.core.$strip>]>>;
2485
+ _meta: z.ZodOptional<z.ZodObject<{
2486
+ id: z.ZodOptional<z.ZodString>;
2487
+ version: z.ZodOptional<z.ZodString>;
2488
+ created: z.ZodOptional<z.ZodString>;
2489
+ lastModified: z.ZodOptional<z.ZodString>;
2490
+ }, z.core.$strip>>;
2491
+ children: z.ZodOptional<z.ZodAny>;
2492
+ else: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>;
2493
+ slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>]>>>;
2494
+ platform: z.ZodOptional<z.ZodObject<{
2495
+ web: z.ZodOptional<z.ZodObject<{
2496
+ id: z.ZodOptional<z.ZodString>;
2497
+ type: z.ZodOptional<z.ZodString>;
2498
+ key: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2499
+ $exp: z.ZodString;
2500
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2501
+ }, z.core.$strip>]>>>;
2502
+ props: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2503
+ query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2504
+ graphql: z.ZodOptional<z.ZodString>;
2505
+ sql: z.ZodOptional<z.ZodString>;
2506
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2507
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2508
+ key: z.ZodOptional<z.ZodString>;
2509
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
2510
+ "cache-first": "cache-first";
2511
+ "network-only": "network-only";
2512
+ "cache-and-network": "cache-and-network";
2513
+ }>>;
2514
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
2515
+ }, z.core.$strip>>>;
2516
+ if: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2517
+ $exp: z.ZodString;
2518
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2519
+ }, z.core.$strip>>>;
2520
+ elseIf: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2521
+ $exp: z.ZodString;
2522
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2523
+ }, z.core.$strip>>>;
2524
+ for: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2525
+ in: z.ZodUnion<readonly [z.ZodObject<{
2526
+ $exp: z.ZodString;
2527
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2528
+ }, z.core.$strip>, z.ZodObject<{
2529
+ $bind: z.ZodString;
2530
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2531
+ name: z.ZodString;
2532
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2533
+ }, z.core.$strip>>>;
2534
+ }, z.core.$strip>, z.ZodString]>;
2535
+ as: z.ZodString;
2536
+ key: z.ZodOptional<z.ZodString>;
2537
+ index: z.ZodOptional<z.ZodString>;
2538
+ }, z.core.$strip>>>;
2539
+ "link-to": z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2540
+ $exp: z.ZodString;
2541
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2542
+ }, z.core.$strip>, z.ZodObject<{
2543
+ $bind: z.ZodString;
2544
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2545
+ name: z.ZodString;
2546
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2547
+ }, z.core.$strip>>>;
2548
+ }, z.core.$strip>, z.ZodObject<{
2549
+ ui: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2550
+ $exp: z.ZodString;
2551
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2552
+ }, z.core.$strip>, z.ZodObject<{
2553
+ $bind: z.ZodString;
2554
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2555
+ name: z.ZodString;
2556
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2557
+ }, z.core.$strip>>>;
2558
+ }, z.core.$strip>]>;
2559
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2560
+ }, z.core.$strip>]>>>;
2561
+ _meta: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2562
+ id: z.ZodOptional<z.ZodString>;
2563
+ version: z.ZodOptional<z.ZodString>;
2564
+ created: z.ZodOptional<z.ZodString>;
2565
+ lastModified: z.ZodOptional<z.ZodString>;
2566
+ }, z.core.$strip>>>;
2567
+ children: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
2568
+ else: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
2569
+ slots: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>]>>>>;
2570
+ platform: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
2571
+ }, z.core.$strip>>;
2572
+ ios: z.ZodOptional<z.ZodObject<{
2573
+ id: z.ZodOptional<z.ZodString>;
2574
+ type: z.ZodOptional<z.ZodString>;
2575
+ key: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2576
+ $exp: z.ZodString;
2577
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2578
+ }, z.core.$strip>]>>>;
2579
+ props: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2580
+ query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2581
+ graphql: z.ZodOptional<z.ZodString>;
2582
+ sql: z.ZodOptional<z.ZodString>;
2583
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2584
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2585
+ key: z.ZodOptional<z.ZodString>;
2586
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
2587
+ "cache-first": "cache-first";
2588
+ "network-only": "network-only";
2589
+ "cache-and-network": "cache-and-network";
2590
+ }>>;
2591
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
2592
+ }, z.core.$strip>>>;
2593
+ if: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2594
+ $exp: z.ZodString;
2595
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2596
+ }, z.core.$strip>>>;
2597
+ elseIf: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2598
+ $exp: z.ZodString;
2599
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2600
+ }, z.core.$strip>>>;
2601
+ for: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2602
+ in: z.ZodUnion<readonly [z.ZodObject<{
2603
+ $exp: z.ZodString;
2604
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2605
+ }, z.core.$strip>, z.ZodObject<{
2606
+ $bind: z.ZodString;
2607
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2608
+ name: z.ZodString;
2609
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2610
+ }, z.core.$strip>>>;
2611
+ }, z.core.$strip>, z.ZodString]>;
2612
+ as: z.ZodString;
2613
+ key: z.ZodOptional<z.ZodString>;
2614
+ index: z.ZodOptional<z.ZodString>;
2615
+ }, z.core.$strip>>>;
2616
+ "link-to": z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2617
+ $exp: z.ZodString;
2618
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2619
+ }, z.core.$strip>, z.ZodObject<{
2620
+ $bind: z.ZodString;
2621
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2622
+ name: z.ZodString;
2623
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2624
+ }, z.core.$strip>>>;
2625
+ }, z.core.$strip>, z.ZodObject<{
2626
+ ui: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2627
+ $exp: z.ZodString;
2628
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2629
+ }, z.core.$strip>, z.ZodObject<{
2630
+ $bind: z.ZodString;
2631
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2632
+ name: z.ZodString;
2633
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2634
+ }, z.core.$strip>>>;
2635
+ }, z.core.$strip>]>;
2636
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2637
+ }, z.core.$strip>]>>>;
2638
+ _meta: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2639
+ id: z.ZodOptional<z.ZodString>;
2640
+ version: z.ZodOptional<z.ZodString>;
2641
+ created: z.ZodOptional<z.ZodString>;
2642
+ lastModified: z.ZodOptional<z.ZodString>;
2643
+ }, z.core.$strip>>>;
2644
+ children: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
2645
+ else: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
2646
+ slots: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>]>>>>;
2647
+ platform: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
2648
+ }, z.core.$strip>>;
2649
+ android: z.ZodOptional<z.ZodObject<{
2650
+ id: z.ZodOptional<z.ZodString>;
2651
+ type: z.ZodOptional<z.ZodString>;
2652
+ key: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2653
+ $exp: z.ZodString;
2654
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2655
+ }, z.core.$strip>]>>>;
2656
+ props: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2657
+ query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2658
+ graphql: z.ZodOptional<z.ZodString>;
2659
+ sql: z.ZodOptional<z.ZodString>;
2660
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2661
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2662
+ key: z.ZodOptional<z.ZodString>;
2663
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
2664
+ "cache-first": "cache-first";
2665
+ "network-only": "network-only";
2666
+ "cache-and-network": "cache-and-network";
2667
+ }>>;
2668
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
2669
+ }, z.core.$strip>>>;
2670
+ if: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2671
+ $exp: z.ZodString;
2672
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2673
+ }, z.core.$strip>>>;
2674
+ elseIf: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2675
+ $exp: z.ZodString;
2676
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2677
+ }, z.core.$strip>>>;
2678
+ for: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2679
+ in: z.ZodUnion<readonly [z.ZodObject<{
2680
+ $exp: z.ZodString;
2681
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2682
+ }, z.core.$strip>, z.ZodObject<{
2683
+ $bind: z.ZodString;
2684
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2685
+ name: z.ZodString;
2686
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2687
+ }, z.core.$strip>>>;
2688
+ }, z.core.$strip>, z.ZodString]>;
2689
+ as: z.ZodString;
2690
+ key: z.ZodOptional<z.ZodString>;
2691
+ index: z.ZodOptional<z.ZodString>;
2692
+ }, z.core.$strip>>>;
2693
+ "link-to": z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2694
+ $exp: z.ZodString;
2695
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2696
+ }, z.core.$strip>, z.ZodObject<{
2697
+ $bind: z.ZodString;
2698
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2699
+ name: z.ZodString;
2700
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2701
+ }, z.core.$strip>>>;
2702
+ }, z.core.$strip>, z.ZodObject<{
2703
+ ui: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2704
+ $exp: z.ZodString;
2705
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2706
+ }, z.core.$strip>, z.ZodObject<{
2707
+ $bind: z.ZodString;
2708
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2709
+ name: z.ZodString;
2710
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2711
+ }, z.core.$strip>>>;
2712
+ }, z.core.$strip>]>;
2713
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2714
+ }, z.core.$strip>]>>>;
2715
+ _meta: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2716
+ id: z.ZodOptional<z.ZodString>;
2717
+ version: z.ZodOptional<z.ZodString>;
2718
+ created: z.ZodOptional<z.ZodString>;
2719
+ lastModified: z.ZodOptional<z.ZodString>;
2720
+ }, z.core.$strip>>>;
2721
+ children: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
2722
+ else: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
2723
+ slots: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>]>>>>;
2724
+ platform: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
2725
+ }, z.core.$strip>>;
2726
+ }, z.core.$strip>>;
2727
+ }, z.core.$strip>;
2728
+ declare const UIComponentSchema: z.ZodObject<{
2729
+ id: z.ZodString;
2730
+ name: z.ZodOptional<z.ZodString>;
2731
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2732
+ states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2733
+ methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2734
+ fn: z.ZodString;
2735
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2736
+ }, z.core.$strip>>>;
2737
+ effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
2738
+ fn: z.ZodString;
2739
+ deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2740
+ }, z.core.$strip>>>;
2741
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2742
+ render: z.ZodObject<{
2743
+ id: z.ZodString;
2744
+ type: z.ZodString;
2745
+ key: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2746
+ $exp: z.ZodString;
2747
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2748
+ }, z.core.$strip>]>>;
2749
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2750
+ query: z.ZodOptional<z.ZodObject<{
2751
+ graphql: z.ZodOptional<z.ZodString>;
2752
+ sql: z.ZodOptional<z.ZodString>;
2753
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2754
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2755
+ key: z.ZodOptional<z.ZodString>;
2756
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
2757
+ "cache-first": "cache-first";
2758
+ "network-only": "network-only";
2759
+ "cache-and-network": "cache-and-network";
2760
+ }>>;
2761
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
2762
+ }, z.core.$strip>>;
2763
+ if: z.ZodOptional<z.ZodObject<{
2764
+ $exp: z.ZodString;
2765
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2766
+ }, z.core.$strip>>;
2767
+ elseIf: z.ZodOptional<z.ZodObject<{
2768
+ $exp: z.ZodString;
2769
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2770
+ }, z.core.$strip>>;
2771
+ for: z.ZodOptional<z.ZodObject<{
2772
+ in: z.ZodUnion<readonly [z.ZodObject<{
2773
+ $exp: z.ZodString;
2774
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2775
+ }, z.core.$strip>, z.ZodObject<{
2776
+ $bind: z.ZodString;
2777
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2778
+ name: z.ZodString;
2779
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2780
+ }, z.core.$strip>>>;
2781
+ }, z.core.$strip>, z.ZodString]>;
2782
+ as: z.ZodString;
2783
+ key: z.ZodOptional<z.ZodString>;
2784
+ index: z.ZodOptional<z.ZodString>;
2785
+ }, z.core.$strip>>;
2786
+ "link-to": z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2787
+ $exp: z.ZodString;
2788
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2789
+ }, z.core.$strip>, z.ZodObject<{
2790
+ $bind: z.ZodString;
2791
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2792
+ name: z.ZodString;
2793
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2794
+ }, z.core.$strip>>>;
2795
+ }, z.core.$strip>, z.ZodObject<{
2796
+ ui: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2797
+ $exp: z.ZodString;
2798
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2799
+ }, z.core.$strip>, z.ZodObject<{
2800
+ $bind: z.ZodString;
2801
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2802
+ name: z.ZodString;
2803
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2804
+ }, z.core.$strip>>>;
2805
+ }, z.core.$strip>]>;
2806
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2807
+ }, z.core.$strip>]>>;
2808
+ _meta: z.ZodOptional<z.ZodObject<{
2809
+ id: z.ZodOptional<z.ZodString>;
2810
+ version: z.ZodOptional<z.ZodString>;
2811
+ created: z.ZodOptional<z.ZodString>;
2812
+ lastModified: z.ZodOptional<z.ZodString>;
2813
+ }, z.core.$strip>>;
2814
+ children: z.ZodOptional<z.ZodAny>;
2815
+ else: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>;
2816
+ slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>]>>>;
2817
+ platform: z.ZodOptional<z.ZodObject<{
2818
+ web: z.ZodOptional<z.ZodObject<{
2819
+ id: z.ZodOptional<z.ZodString>;
2820
+ type: z.ZodOptional<z.ZodString>;
2821
+ key: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2822
+ $exp: z.ZodString;
2823
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2824
+ }, z.core.$strip>]>>>;
2825
+ props: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2826
+ query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2827
+ graphql: z.ZodOptional<z.ZodString>;
2828
+ sql: z.ZodOptional<z.ZodString>;
2829
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2830
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2831
+ key: z.ZodOptional<z.ZodString>;
2832
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
2833
+ "cache-first": "cache-first";
2834
+ "network-only": "network-only";
2835
+ "cache-and-network": "cache-and-network";
2836
+ }>>;
2837
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
2838
+ }, z.core.$strip>>>;
2839
+ if: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2840
+ $exp: z.ZodString;
2841
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2842
+ }, z.core.$strip>>>;
2843
+ elseIf: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2844
+ $exp: z.ZodString;
2845
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2846
+ }, z.core.$strip>>>;
2847
+ for: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2848
+ in: z.ZodUnion<readonly [z.ZodObject<{
2849
+ $exp: z.ZodString;
2850
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2851
+ }, z.core.$strip>, z.ZodObject<{
2852
+ $bind: z.ZodString;
2853
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2854
+ name: z.ZodString;
2855
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2856
+ }, z.core.$strip>>>;
2857
+ }, z.core.$strip>, z.ZodString]>;
2858
+ as: z.ZodString;
2859
+ key: z.ZodOptional<z.ZodString>;
2860
+ index: z.ZodOptional<z.ZodString>;
2861
+ }, z.core.$strip>>>;
2862
+ "link-to": z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2863
+ $exp: z.ZodString;
2864
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2865
+ }, z.core.$strip>, z.ZodObject<{
2866
+ $bind: z.ZodString;
2867
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2868
+ name: z.ZodString;
2869
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2870
+ }, z.core.$strip>>>;
2871
+ }, z.core.$strip>, z.ZodObject<{
2872
+ ui: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2873
+ $exp: z.ZodString;
2874
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2875
+ }, z.core.$strip>, z.ZodObject<{
2876
+ $bind: z.ZodString;
2877
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2878
+ name: z.ZodString;
2879
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2880
+ }, z.core.$strip>>>;
2881
+ }, z.core.$strip>]>;
2882
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2883
+ }, z.core.$strip>]>>>;
2884
+ _meta: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2885
+ id: z.ZodOptional<z.ZodString>;
2886
+ version: z.ZodOptional<z.ZodString>;
2887
+ created: z.ZodOptional<z.ZodString>;
2888
+ lastModified: z.ZodOptional<z.ZodString>;
2889
+ }, z.core.$strip>>>;
2890
+ children: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
2891
+ else: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
2892
+ slots: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>]>>>>;
2893
+ platform: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
2894
+ }, z.core.$strip>>;
2895
+ ios: z.ZodOptional<z.ZodObject<{
2896
+ id: z.ZodOptional<z.ZodString>;
2897
+ type: z.ZodOptional<z.ZodString>;
2898
+ key: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2899
+ $exp: z.ZodString;
2900
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2901
+ }, z.core.$strip>]>>>;
2902
+ props: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2903
+ query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2904
+ graphql: z.ZodOptional<z.ZodString>;
2905
+ sql: z.ZodOptional<z.ZodString>;
2906
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2907
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2908
+ key: z.ZodOptional<z.ZodString>;
2909
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
2910
+ "cache-first": "cache-first";
2911
+ "network-only": "network-only";
2912
+ "cache-and-network": "cache-and-network";
2913
+ }>>;
2914
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
2915
+ }, z.core.$strip>>>;
2916
+ if: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2917
+ $exp: z.ZodString;
2918
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2919
+ }, z.core.$strip>>>;
2920
+ elseIf: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2921
+ $exp: z.ZodString;
2922
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2923
+ }, z.core.$strip>>>;
2924
+ for: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2925
+ in: z.ZodUnion<readonly [z.ZodObject<{
2926
+ $exp: z.ZodString;
2927
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2928
+ }, z.core.$strip>, z.ZodObject<{
2929
+ $bind: z.ZodString;
2930
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2931
+ name: z.ZodString;
2932
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2933
+ }, z.core.$strip>>>;
2934
+ }, z.core.$strip>, z.ZodString]>;
2935
+ as: z.ZodString;
2936
+ key: z.ZodOptional<z.ZodString>;
2937
+ index: z.ZodOptional<z.ZodString>;
2938
+ }, z.core.$strip>>>;
2939
+ "link-to": z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2940
+ $exp: z.ZodString;
2941
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2942
+ }, z.core.$strip>, z.ZodObject<{
2943
+ $bind: z.ZodString;
2944
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2945
+ name: z.ZodString;
2946
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2947
+ }, z.core.$strip>>>;
2948
+ }, z.core.$strip>, z.ZodObject<{
2949
+ ui: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2950
+ $exp: z.ZodString;
2951
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2952
+ }, z.core.$strip>, z.ZodObject<{
2953
+ $bind: z.ZodString;
2954
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
2955
+ name: z.ZodString;
2956
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
2957
+ }, z.core.$strip>>>;
2958
+ }, z.core.$strip>]>;
2959
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2960
+ }, z.core.$strip>]>>>;
2961
+ _meta: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2962
+ id: z.ZodOptional<z.ZodString>;
2963
+ version: z.ZodOptional<z.ZodString>;
2964
+ created: z.ZodOptional<z.ZodString>;
2965
+ lastModified: z.ZodOptional<z.ZodString>;
2966
+ }, z.core.$strip>>>;
2967
+ children: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
2968
+ else: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
2969
+ slots: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>]>>>>;
2970
+ platform: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
2971
+ }, z.core.$strip>>;
2972
+ android: z.ZodOptional<z.ZodObject<{
2973
+ id: z.ZodOptional<z.ZodString>;
2974
+ type: z.ZodOptional<z.ZodString>;
2975
+ key: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2976
+ $exp: z.ZodString;
2977
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2978
+ }, z.core.$strip>]>>>;
2979
+ props: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2980
+ query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2981
+ graphql: z.ZodOptional<z.ZodString>;
2982
+ sql: z.ZodOptional<z.ZodString>;
2983
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2984
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2985
+ key: z.ZodOptional<z.ZodString>;
2986
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
2987
+ "cache-first": "cache-first";
2988
+ "network-only": "network-only";
2989
+ "cache-and-network": "cache-and-network";
2990
+ }>>;
2991
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
2992
+ }, z.core.$strip>>>;
2993
+ if: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2994
+ $exp: z.ZodString;
2995
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
2996
+ }, z.core.$strip>>>;
2997
+ elseIf: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2998
+ $exp: z.ZodString;
2999
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3000
+ }, z.core.$strip>>>;
3001
+ for: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3002
+ in: z.ZodUnion<readonly [z.ZodObject<{
3003
+ $exp: z.ZodString;
3004
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3005
+ }, z.core.$strip>, z.ZodObject<{
3006
+ $bind: z.ZodString;
3007
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3008
+ name: z.ZodString;
3009
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3010
+ }, z.core.$strip>>>;
3011
+ }, z.core.$strip>, z.ZodString]>;
3012
+ as: z.ZodString;
3013
+ key: z.ZodOptional<z.ZodString>;
3014
+ index: z.ZodOptional<z.ZodString>;
3015
+ }, z.core.$strip>>>;
3016
+ "link-to": z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3017
+ $exp: z.ZodString;
3018
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3019
+ }, z.core.$strip>, z.ZodObject<{
3020
+ $bind: z.ZodString;
3021
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3022
+ name: z.ZodString;
3023
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3024
+ }, z.core.$strip>>>;
3025
+ }, z.core.$strip>, z.ZodObject<{
3026
+ ui: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3027
+ $exp: z.ZodString;
3028
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3029
+ }, z.core.$strip>, z.ZodObject<{
3030
+ $bind: z.ZodString;
3031
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3032
+ name: z.ZodString;
3033
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3034
+ }, z.core.$strip>>>;
3035
+ }, z.core.$strip>]>;
3036
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3037
+ }, z.core.$strip>]>>>;
3038
+ _meta: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3039
+ id: z.ZodOptional<z.ZodString>;
3040
+ version: z.ZodOptional<z.ZodString>;
3041
+ created: z.ZodOptional<z.ZodString>;
3042
+ lastModified: z.ZodOptional<z.ZodString>;
3043
+ }, z.core.$strip>>>;
3044
+ children: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
3045
+ else: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
3046
+ slots: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>]>>>>;
3047
+ platform: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
3048
+ }, z.core.$strip>>;
3049
+ }, z.core.$strip>>;
3050
+ }, z.core.$strip>;
3051
+ query: z.ZodOptional<z.ZodObject<{
3052
+ graphql: z.ZodOptional<z.ZodString>;
3053
+ sql: z.ZodOptional<z.ZodString>;
3054
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3055
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3056
+ key: z.ZodOptional<z.ZodString>;
3057
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
3058
+ "cache-first": "cache-first";
3059
+ "network-only": "network-only";
3060
+ "cache-and-network": "cache-and-network";
3061
+ }>>;
3062
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
3063
+ }, z.core.$strip>>;
3064
+ }, z.core.$strip>;
3065
+ type Expression = z.infer<typeof ExpressionSchema>;
3066
+ type Binding = z.infer<typeof BindingSchema>;
3067
+ type ForDirective = z.infer<typeof ForDirectiveSchema>;
3068
+ type QuerySpec = z.infer<typeof QuerySpecSchema>;
3069
+ type UIElement = z.infer<typeof UIElementSchema>;
3070
+ type UIComponent = z.infer<typeof UIComponentSchema>;
3071
+ declare const DSLRendererPropsSchema: z.ZodObject<{
3072
+ dsl: z.ZodObject<{
3073
+ id: z.ZodString;
3074
+ name: z.ZodOptional<z.ZodString>;
3075
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3076
+ states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3077
+ methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3078
+ fn: z.ZodString;
3079
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3080
+ }, z.core.$strip>>>;
3081
+ effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
3082
+ fn: z.ZodString;
3083
+ deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3084
+ }, z.core.$strip>>>;
3085
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3086
+ render: z.ZodObject<{
3087
+ id: z.ZodString;
3088
+ type: z.ZodString;
3089
+ key: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3090
+ $exp: z.ZodString;
3091
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3092
+ }, z.core.$strip>]>>;
3093
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3094
+ query: z.ZodOptional<z.ZodObject<{
3095
+ graphql: z.ZodOptional<z.ZodString>;
3096
+ sql: z.ZodOptional<z.ZodString>;
3097
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3098
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3099
+ key: z.ZodOptional<z.ZodString>;
3100
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
3101
+ "cache-first": "cache-first";
3102
+ "network-only": "network-only";
3103
+ "cache-and-network": "cache-and-network";
3104
+ }>>;
3105
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
3106
+ }, z.core.$strip>>;
3107
+ if: z.ZodOptional<z.ZodObject<{
3108
+ $exp: z.ZodString;
3109
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3110
+ }, z.core.$strip>>;
3111
+ elseIf: z.ZodOptional<z.ZodObject<{
3112
+ $exp: z.ZodString;
3113
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3114
+ }, z.core.$strip>>;
3115
+ for: z.ZodOptional<z.ZodObject<{
3116
+ in: z.ZodUnion<readonly [z.ZodObject<{
3117
+ $exp: z.ZodString;
3118
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3119
+ }, z.core.$strip>, z.ZodObject<{
3120
+ $bind: z.ZodString;
3121
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3122
+ name: z.ZodString;
3123
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3124
+ }, z.core.$strip>>>;
3125
+ }, z.core.$strip>, z.ZodString]>;
3126
+ as: z.ZodString;
3127
+ key: z.ZodOptional<z.ZodString>;
3128
+ index: z.ZodOptional<z.ZodString>;
3129
+ }, z.core.$strip>>;
3130
+ "link-to": z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3131
+ $exp: z.ZodString;
3132
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3133
+ }, z.core.$strip>, z.ZodObject<{
3134
+ $bind: z.ZodString;
3135
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3136
+ name: z.ZodString;
3137
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3138
+ }, z.core.$strip>>>;
3139
+ }, z.core.$strip>, z.ZodObject<{
3140
+ ui: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3141
+ $exp: z.ZodString;
3142
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3143
+ }, z.core.$strip>, z.ZodObject<{
3144
+ $bind: z.ZodString;
3145
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3146
+ name: z.ZodString;
3147
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3148
+ }, z.core.$strip>>>;
3149
+ }, z.core.$strip>]>;
3150
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3151
+ }, z.core.$strip>]>>;
3152
+ _meta: z.ZodOptional<z.ZodObject<{
3153
+ id: z.ZodOptional<z.ZodString>;
3154
+ version: z.ZodOptional<z.ZodString>;
3155
+ created: z.ZodOptional<z.ZodString>;
3156
+ lastModified: z.ZodOptional<z.ZodString>;
3157
+ }, z.core.$strip>>;
3158
+ children: z.ZodOptional<z.ZodAny>;
3159
+ else: z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>;
3160
+ slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>]>>>;
3161
+ platform: z.ZodOptional<z.ZodObject<{
3162
+ web: z.ZodOptional<z.ZodObject<{
3163
+ id: z.ZodOptional<z.ZodString>;
3164
+ type: z.ZodOptional<z.ZodString>;
3165
+ key: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3166
+ $exp: z.ZodString;
3167
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3168
+ }, z.core.$strip>]>>>;
3169
+ props: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3170
+ query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3171
+ graphql: z.ZodOptional<z.ZodString>;
3172
+ sql: z.ZodOptional<z.ZodString>;
3173
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3174
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3175
+ key: z.ZodOptional<z.ZodString>;
3176
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
3177
+ "cache-first": "cache-first";
3178
+ "network-only": "network-only";
3179
+ "cache-and-network": "cache-and-network";
3180
+ }>>;
3181
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
3182
+ }, z.core.$strip>>>;
3183
+ if: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3184
+ $exp: z.ZodString;
3185
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3186
+ }, z.core.$strip>>>;
3187
+ elseIf: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3188
+ $exp: z.ZodString;
3189
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3190
+ }, z.core.$strip>>>;
3191
+ for: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3192
+ in: z.ZodUnion<readonly [z.ZodObject<{
3193
+ $exp: z.ZodString;
3194
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3195
+ }, z.core.$strip>, z.ZodObject<{
3196
+ $bind: z.ZodString;
3197
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3198
+ name: z.ZodString;
3199
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3200
+ }, z.core.$strip>>>;
3201
+ }, z.core.$strip>, z.ZodString]>;
3202
+ as: z.ZodString;
3203
+ key: z.ZodOptional<z.ZodString>;
3204
+ index: z.ZodOptional<z.ZodString>;
3205
+ }, z.core.$strip>>>;
3206
+ "link-to": z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3207
+ $exp: z.ZodString;
3208
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3209
+ }, z.core.$strip>, z.ZodObject<{
3210
+ $bind: z.ZodString;
3211
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3212
+ name: z.ZodString;
3213
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3214
+ }, z.core.$strip>>>;
3215
+ }, z.core.$strip>, z.ZodObject<{
3216
+ ui: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3217
+ $exp: z.ZodString;
3218
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3219
+ }, z.core.$strip>, z.ZodObject<{
3220
+ $bind: z.ZodString;
3221
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3222
+ name: z.ZodString;
3223
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3224
+ }, z.core.$strip>>>;
3225
+ }, z.core.$strip>]>;
3226
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3227
+ }, z.core.$strip>]>>>;
3228
+ _meta: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3229
+ id: z.ZodOptional<z.ZodString>;
3230
+ version: z.ZodOptional<z.ZodString>;
3231
+ created: z.ZodOptional<z.ZodString>;
3232
+ lastModified: z.ZodOptional<z.ZodString>;
3233
+ }, z.core.$strip>>>;
3234
+ children: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
3235
+ else: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
3236
+ slots: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>]>>>>;
3237
+ platform: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
3238
+ }, z.core.$strip>>;
3239
+ ios: z.ZodOptional<z.ZodObject<{
3240
+ id: z.ZodOptional<z.ZodString>;
3241
+ type: z.ZodOptional<z.ZodString>;
3242
+ key: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3243
+ $exp: z.ZodString;
3244
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3245
+ }, z.core.$strip>]>>>;
3246
+ props: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3247
+ query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3248
+ graphql: z.ZodOptional<z.ZodString>;
3249
+ sql: z.ZodOptional<z.ZodString>;
3250
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3251
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3252
+ key: z.ZodOptional<z.ZodString>;
3253
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
3254
+ "cache-first": "cache-first";
3255
+ "network-only": "network-only";
3256
+ "cache-and-network": "cache-and-network";
3257
+ }>>;
3258
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
3259
+ }, z.core.$strip>>>;
3260
+ if: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3261
+ $exp: z.ZodString;
3262
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3263
+ }, z.core.$strip>>>;
3264
+ elseIf: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3265
+ $exp: z.ZodString;
3266
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3267
+ }, z.core.$strip>>>;
3268
+ for: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3269
+ in: z.ZodUnion<readonly [z.ZodObject<{
3270
+ $exp: z.ZodString;
3271
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3272
+ }, z.core.$strip>, z.ZodObject<{
3273
+ $bind: z.ZodString;
3274
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3275
+ name: z.ZodString;
3276
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3277
+ }, z.core.$strip>>>;
3278
+ }, z.core.$strip>, z.ZodString]>;
3279
+ as: z.ZodString;
3280
+ key: z.ZodOptional<z.ZodString>;
3281
+ index: z.ZodOptional<z.ZodString>;
3282
+ }, z.core.$strip>>>;
3283
+ "link-to": z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3284
+ $exp: z.ZodString;
3285
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3286
+ }, z.core.$strip>, z.ZodObject<{
3287
+ $bind: z.ZodString;
3288
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3289
+ name: z.ZodString;
3290
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3291
+ }, z.core.$strip>>>;
3292
+ }, z.core.$strip>, z.ZodObject<{
3293
+ ui: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3294
+ $exp: z.ZodString;
3295
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3296
+ }, z.core.$strip>, z.ZodObject<{
3297
+ $bind: z.ZodString;
3298
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3299
+ name: z.ZodString;
3300
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3301
+ }, z.core.$strip>>>;
3302
+ }, z.core.$strip>]>;
3303
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3304
+ }, z.core.$strip>]>>>;
3305
+ _meta: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3306
+ id: z.ZodOptional<z.ZodString>;
3307
+ version: z.ZodOptional<z.ZodString>;
3308
+ created: z.ZodOptional<z.ZodString>;
3309
+ lastModified: z.ZodOptional<z.ZodString>;
3310
+ }, z.core.$strip>>>;
3311
+ children: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
3312
+ else: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
3313
+ slots: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>]>>>>;
3314
+ platform: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
3315
+ }, z.core.$strip>>;
3316
+ android: z.ZodOptional<z.ZodObject<{
3317
+ id: z.ZodOptional<z.ZodString>;
3318
+ type: z.ZodOptional<z.ZodString>;
3319
+ key: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3320
+ $exp: z.ZodString;
3321
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3322
+ }, z.core.$strip>]>>>;
3323
+ props: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3324
+ query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3325
+ graphql: z.ZodOptional<z.ZodString>;
3326
+ sql: z.ZodOptional<z.ZodString>;
3327
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3328
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3329
+ key: z.ZodOptional<z.ZodString>;
3330
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
3331
+ "cache-first": "cache-first";
3332
+ "network-only": "network-only";
3333
+ "cache-and-network": "cache-and-network";
3334
+ }>>;
3335
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
3336
+ }, z.core.$strip>>>;
3337
+ if: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3338
+ $exp: z.ZodString;
3339
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3340
+ }, z.core.$strip>>>;
3341
+ elseIf: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3342
+ $exp: z.ZodString;
3343
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3344
+ }, z.core.$strip>>>;
3345
+ for: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3346
+ in: z.ZodUnion<readonly [z.ZodObject<{
3347
+ $exp: z.ZodString;
3348
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3349
+ }, z.core.$strip>, z.ZodObject<{
3350
+ $bind: z.ZodString;
3351
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3352
+ name: z.ZodString;
3353
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3354
+ }, z.core.$strip>>>;
3355
+ }, z.core.$strip>, z.ZodString]>;
3356
+ as: z.ZodString;
3357
+ key: z.ZodOptional<z.ZodString>;
3358
+ index: z.ZodOptional<z.ZodString>;
3359
+ }, z.core.$strip>>>;
3360
+ "link-to": z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3361
+ $exp: z.ZodString;
3362
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3363
+ }, z.core.$strip>, z.ZodObject<{
3364
+ $bind: z.ZodString;
3365
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3366
+ name: z.ZodString;
3367
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3368
+ }, z.core.$strip>>>;
3369
+ }, z.core.$strip>, z.ZodObject<{
3370
+ ui: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
3371
+ $exp: z.ZodString;
3372
+ $deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
3373
+ }, z.core.$strip>, z.ZodObject<{
3374
+ $bind: z.ZodString;
3375
+ $transform: z.ZodOptional<z.ZodArray<z.ZodObject<{
3376
+ name: z.ZodString;
3377
+ args: z.ZodOptional<z.ZodArray<z.ZodAny>>;
3378
+ }, z.core.$strip>>>;
3379
+ }, z.core.$strip>]>;
3380
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3381
+ }, z.core.$strip>]>>>;
3382
+ _meta: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3383
+ id: z.ZodOptional<z.ZodString>;
3384
+ version: z.ZodOptional<z.ZodString>;
3385
+ created: z.ZodOptional<z.ZodString>;
3386
+ lastModified: z.ZodOptional<z.ZodString>;
3387
+ }, z.core.$strip>>>;
3388
+ children: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
3389
+ else: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
3390
+ slots: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodArray<z.ZodObject</*elided*/ any, z.core.$strip>>]>>>>;
3391
+ platform: z.ZodOptional<z.ZodOptional<z.ZodObject</*elided*/ any, z.core.$strip>>>;
3392
+ }, z.core.$strip>>;
3393
+ }, z.core.$strip>>;
3394
+ }, z.core.$strip>;
3395
+ query: z.ZodOptional<z.ZodObject<{
3396
+ graphql: z.ZodOptional<z.ZodString>;
3397
+ sql: z.ZodOptional<z.ZodString>;
3398
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3399
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3400
+ key: z.ZodOptional<z.ZodString>;
3401
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
3402
+ "cache-first": "cache-first";
3403
+ "network-only": "network-only";
3404
+ "cache-and-network": "cache-and-network";
3405
+ }>>;
3406
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
3407
+ }, z.core.$strip>>;
3408
+ }, z.core.$strip>;
3409
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3410
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3411
+ }, z.core.$strip>;
3412
+ type DSLRendererProps = z.infer<typeof DSLRendererPropsSchema>;
3413
+ declare const validateDSL: (dsl: unknown) => UIComponent;
3414
+ declare const validateUIComponent: (component: unknown) => UIComponent;
3415
+ declare const validateUIElement: (element: unknown) => UIElement;
3416
+
3417
+ /**
3418
+ * Sanitizes DSL data by ensuring all nodes have required id and type fields
3419
+ */
3420
+ declare function sanitizeDSL(data: any): any;
3421
+ type NavigationHandler = (uiid: string, params?: Record<string, any>) => void;
3422
+ interface ExtendedDSLRendererProps extends DSLRendererProps {
3423
+ onNavigate?: NavigationHandler;
3424
+ handlers?: Record<string, Function>;
3425
+ }
3426
+ declare const DSLRenderer: React.FC<ExtendedDSLRendererProps>;
3427
+
3428
+ interface ComponentDefinition {
3429
+ id: string;
3430
+ name: string;
3431
+ head: string;
3432
+ COMP: React.ComponentType<any>;
3433
+ dependencies?: string[];
3434
+ version?: string;
3435
+ }
3436
+ interface ComponentRegistryType {
3437
+ [key: string]: ComponentDefinition;
3438
+ }
3439
+ declare const getComponentStates: () => {
3440
+ loaded: string[];
3441
+ loading: string[];
3442
+ failed: string[];
3443
+ };
3444
+ declare const resetFailedComponent: (componentId: string) => void;
3445
+ declare const resetAllFailedComponents: () => number;
3446
+ declare const COMP_REGISTRY: ComponentRegistryType;
3447
+ declare const useDynamicComponent: (componentType: string) => {
3448
+ isLoading: boolean;
3449
+ isLoaded: boolean;
3450
+ error: string | null;
3451
+ };
3452
+ declare const DynamicComponent: React.FC<{
3453
+ type: string;
3454
+ props?: any;
3455
+ children?: React.ReactNode;
3456
+ }>;
3457
+
3458
+ interface DSLErrorBoundaryProps {
3459
+ children: ReactNode;
3460
+ fallback?: ReactNode;
3461
+ elementType?: string;
3462
+ elementKey?: string | number;
3463
+ onError?: (error: Error, errorInfo: React.ErrorInfo) => void;
3464
+ skipBoundary?: boolean;
3465
+ }
3466
+ interface DSLErrorBoundaryState {
3467
+ hasError: boolean;
3468
+ error?: Error;
3469
+ errorId?: string;
3470
+ }
3471
+ declare class DSLErrorBoundary extends Component$1<DSLErrorBoundaryProps, DSLErrorBoundaryState> {
3472
+ constructor(props: DSLErrorBoundaryProps);
3473
+ static getDerivedStateFromError(error: Error): DSLErrorBoundaryState;
3474
+ componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
3475
+ render(): string | number | boolean | Iterable<React.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
3476
+ }
3477
+ declare const withConditionalErrorBoundary: (component: ReactNode, elementType: string, elementKey?: string | number, forceWrap?: boolean) => ReactNode;
3478
+
3479
+ declare function registerBundleComponents(): number;
3480
+ declare function resetRegistration(): void;
3481
+
3482
+ interface ChatMessage {
3483
+ id: string;
3484
+ role: 'user' | 'assistant';
3485
+ text?: string;
3486
+ parts?: {
3487
+ text: string;
3488
+ }[];
3489
+ schema?: any;
3490
+ fullDashboardComponent?: any;
3491
+ isLoading?: boolean;
3492
+ isStreaming?: boolean;
3493
+ isTextOnlyResponse?: boolean;
3494
+ }
3495
+
3496
+ interface UseSuperAtomOptions {
3497
+ token?: string;
3498
+ userId?: string;
3499
+ projectId: string;
3500
+ debug?: boolean;
3501
+ streaming?: boolean;
3502
+ }
3503
+ interface UseSuperAtomReturn {
3504
+ bundleReady: boolean;
3505
+ messages: ChatMessage[];
3506
+ input: string;
3507
+ setInput: (value: string) => void;
3508
+ sendMessage: () => void;
3509
+ isSending: boolean;
3510
+ }
3511
+ declare function useSuperAtom({ token, userId, projectId, debug, streaming }: UseSuperAtomOptions): UseSuperAtomReturn;
3512
+
3513
+ interface ChatInputProps {
3514
+ input: string;
3515
+ setInput: (value: string) => void;
3516
+ onSend: () => void;
3517
+ disabled?: boolean;
3518
+ placeholder?: string;
3519
+ primaryColor?: string;
3520
+ className?: string;
3521
+ }
3522
+ declare function ChatInput({ input, setInput, onSend, disabled, placeholder, primaryColor, className, }: ChatInputProps): react_jsx_runtime.JSX.Element;
3523
+
3524
+ interface MessageListProps {
3525
+ messages: ChatMessage[];
3526
+ bundleReady: boolean;
3527
+ connectingText?: string;
3528
+ emptyText?: string;
3529
+ className?: string;
3530
+ }
3531
+ declare function MessageList({ messages, bundleReady, connectingText, emptyText, className, }: MessageListProps): react_jsx_runtime.JSX.Element;
3532
+
3533
+ interface MessageBubbleProps {
3534
+ message: ChatMessage;
3535
+ }
3536
+ declare function MessageBubble({ message }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
3537
+
3538
+ interface MenuV1Item {
3539
+ id: string;
3540
+ name: string;
3541
+ icon?: string;
3542
+ type: string;
3543
+ sortOrder?: number;
3544
+ userMessage?: string;
3545
+ componentName?: string;
3546
+ children?: MenuV1Item[];
3547
+ createdAt?: string;
3548
+ dsl?: {
3549
+ componentName: string;
3550
+ props?: Record<string, any>;
3551
+ data?: Record<string, any>;
3552
+ };
3553
+ table?: string;
3554
+ filters?: Record<string, any>;
3555
+ }
3556
+ interface MenuV1Root {
3557
+ name: string;
3558
+ menuId: string;
3559
+ version: 1;
3560
+ children: MenuV1Item[];
3561
+ }
3562
+
3563
+ interface SidebarProps {
3564
+ children?: React.ReactNode;
3565
+ className?: string;
3566
+ onItemClick?: (item: MenuV1Item) => void;
3567
+ }
3568
+ declare function Sidebar({ children, className, onItemClick }: SidebarProps): react_jsx_runtime.JSX.Element;
3569
+
3570
+ interface MenuV1RendererProps {
3571
+ items: MenuV1Item[];
3572
+ onItemClick: (item: MenuV1Item) => void;
3573
+ isCollapsed: boolean;
3574
+ }
3575
+ declare const MenuV1Renderer: React.FC<MenuV1RendererProps>;
3576
+
3577
+ interface MenuV1RendererCollapsedProps {
3578
+ items: MenuV1Item[];
3579
+ onItemClick: (item: MenuV1Item) => void;
3580
+ }
3581
+ declare const MenuV1RendererCollapsed: React.FC<MenuV1RendererCollapsedProps>;
3582
+
3583
+ /**
3584
+ * @superatomai/application-sdk
3585
+ * SuperAtom Application SDK - WebSocket client, DSL renderer, and pre-built chat UI
3586
+ */
3587
+ declare const SDK_VERSION = "0.0.1";
3588
+
3589
+ export { type ActionsRequestMessage, ActionsRequestMessageSchema, type ActionsRequestPayload, ActionsRequestPayloadSchema, type ActionsResponseMessage, ActionsResponseMessageSchema, type ActionsResponsePayload, ActionsResponsePayloadSchema, type Binding, BindingSchema, type BundleChunkMessage, BundleChunkMessageSchema, type BundleChunkPayload, BundleChunkPayloadSchema, type BundleErrorMessage, BundleErrorMessageSchema, type BundleErrorPayload, BundleErrorPayloadSchema, type BundleRequestMessage, BundleRequestMessageSchema, type BundleRequestPayload, BundleRequestPayloadSchema, COMP_REGISTRY, ChatInput, type ChatInputProps, type ChatMessage, type ClientConfig, ClientConfigSchema, type Component, type ComponentDefinition, type ComponentRegistryType, ComponentSchema, type ComponentsRegistry, type ComponentsSendMessage, ComponentsSendMessageSchema, type ComponentsSendPayload, ComponentsSendPayloadSchema, DSLErrorBoundary, DSLRenderer, type DSLRendererProps, DSLRendererPropsSchema, type DataRequestMessage, DataRequestMessageSchema, type DataRequestPayload, DataRequestPayloadSchema, type DataResponseMessage, DataResponseMessageSchema, type DataResponsePayload, DataResponsePayloadSchema, DynamicComponent, type Expression, ExpressionSchema, type ForDirective, ForDirectiveSchema, type MenuData, MenuDataSchema, type MenuQueryFilters, MenuQueryFiltersSchema, type MenuV1Item, MenuV1Renderer, MenuV1RendererCollapsed, type MenuV1Root, type MenusRequestMessage, MenusRequestMessageSchema, type MenusRequestPayload, MenusRequestPayloadSchema, type MenusResponseMessage, MenusResponseMessageSchema, type MenusResponsePayload, MenusResponsePayloadSchema, type Message, MessageBubble, type MessageBubbleProps, MessageList, type MessageListProps, type MessageParticipant, MessageParticipantSchema, MessageSchema, type MountFunction, type QuerySpec, QuerySpecSchema, type ResolvedClientConfig, SDK_VERSION, Sidebar, type SidebarProps, type SuperAtomGlobal, SuperatomClient, type UIComponent, UIComponentSchema, type UIElement, UIElementSchema, type UILogEntry, UILogEntrySchema, type UILogsMessage, UILogsMessageSchema, type UILogsPayload, UILogsPayloadSchema, type UseSuperAtomOptions, type UseSuperAtomReturn, 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, getComponentStates, getComponents, hasComponents, registerBundleComponents, resetAllFailedComponents, resetFailedComponent, resetRegistration, sanitizeDSL, index as services, setup, useDynamicComponent, useSuperAtom, validateDSL, validateUIComponent, validateUIElement, withConditionalErrorBoundary };