@ramme-io/shared 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1340 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * @file schema.ts
5
+ * @description The "Application Constitution".
6
+ *
7
+ * ARCHITECTURAL ROLE:
8
+ * This file uses Zod to define the strict runtime validation rules for the
9
+ * App Manifest. While `manifest-types.ts` handles compile-time TypeScript checks,
10
+ * this file handles runtime validation, ensuring that any JSON loaded into the
11
+ * engine (whether from a file, API, or user input) is structurally sound.
12
+ *
13
+ * LAYERS DEFINED:
14
+ * 1. **SaaS Layer:** Data resources, fields, and tables.
15
+ * 2. **Physical Layer:** IoT signals, sensors, and entities.
16
+ * 3. **Logic Layer:** Workflows, triggers, and automated actions.
17
+ * 4. **Presentation Layer:** Pages, sections, and UI blocks.
18
+ */
19
+ declare const FieldSchema: z.ZodObject<{
20
+ key: z.ZodString;
21
+ label: z.ZodString;
22
+ type: z.ZodEnum<["text", "number", "currency", "date", "boolean", "status", "email", "image", "textarea"]>;
23
+ required: z.ZodOptional<z.ZodBoolean>;
24
+ description: z.ZodOptional<z.ZodString>;
25
+ defaultValue: z.ZodOptional<z.ZodAny>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ key: string;
28
+ label: string;
29
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
30
+ required?: boolean | undefined;
31
+ description?: string | undefined;
32
+ defaultValue?: any;
33
+ }, {
34
+ key: string;
35
+ label: string;
36
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
37
+ required?: boolean | undefined;
38
+ description?: string | undefined;
39
+ defaultValue?: any;
40
+ }>;
41
+ type FieldDefinition = z.infer<typeof FieldSchema>;
42
+ declare const ResourceSchema: z.ZodObject<{
43
+ id: z.ZodString;
44
+ name: z.ZodString;
45
+ fields: z.ZodArray<z.ZodObject<{
46
+ key: z.ZodString;
47
+ label: z.ZodString;
48
+ type: z.ZodEnum<["text", "number", "currency", "date", "boolean", "status", "email", "image", "textarea"]>;
49
+ required: z.ZodOptional<z.ZodBoolean>;
50
+ description: z.ZodOptional<z.ZodString>;
51
+ defaultValue: z.ZodOptional<z.ZodAny>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ key: string;
54
+ label: string;
55
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
56
+ required?: boolean | undefined;
57
+ description?: string | undefined;
58
+ defaultValue?: any;
59
+ }, {
60
+ key: string;
61
+ label: string;
62
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
63
+ required?: boolean | undefined;
64
+ description?: string | undefined;
65
+ defaultValue?: any;
66
+ }>, "many">;
67
+ defaultView: z.ZodOptional<z.ZodEnum<["table", "grid", "list"]>>;
68
+ features: z.ZodOptional<z.ZodObject<{
69
+ searchable: z.ZodOptional<z.ZodBoolean>;
70
+ creatable: z.ZodOptional<z.ZodBoolean>;
71
+ editable: z.ZodOptional<z.ZodBoolean>;
72
+ deletable: z.ZodOptional<z.ZodBoolean>;
73
+ exportable: z.ZodOptional<z.ZodBoolean>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ searchable?: boolean | undefined;
76
+ creatable?: boolean | undefined;
77
+ editable?: boolean | undefined;
78
+ deletable?: boolean | undefined;
79
+ exportable?: boolean | undefined;
80
+ }, {
81
+ searchable?: boolean | undefined;
82
+ creatable?: boolean | undefined;
83
+ editable?: boolean | undefined;
84
+ deletable?: boolean | undefined;
85
+ exportable?: boolean | undefined;
86
+ }>>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ id: string;
89
+ name: string;
90
+ fields: {
91
+ key: string;
92
+ label: string;
93
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
94
+ required?: boolean | undefined;
95
+ description?: string | undefined;
96
+ defaultValue?: any;
97
+ }[];
98
+ defaultView?: "table" | "grid" | "list" | undefined;
99
+ features?: {
100
+ searchable?: boolean | undefined;
101
+ creatable?: boolean | undefined;
102
+ editable?: boolean | undefined;
103
+ deletable?: boolean | undefined;
104
+ exportable?: boolean | undefined;
105
+ } | undefined;
106
+ }, {
107
+ id: string;
108
+ name: string;
109
+ fields: {
110
+ key: string;
111
+ label: string;
112
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
113
+ required?: boolean | undefined;
114
+ description?: string | undefined;
115
+ defaultValue?: any;
116
+ }[];
117
+ defaultView?: "table" | "grid" | "list" | undefined;
118
+ features?: {
119
+ searchable?: boolean | undefined;
120
+ creatable?: boolean | undefined;
121
+ editable?: boolean | undefined;
122
+ deletable?: boolean | undefined;
123
+ exportable?: boolean | undefined;
124
+ } | undefined;
125
+ }>;
126
+ type ResourceDefinition = z.infer<typeof ResourceSchema>;
127
+ declare const SignalSchema: z.ZodObject<{
128
+ id: z.ZodString;
129
+ label: z.ZodString;
130
+ description: z.ZodOptional<z.ZodString>;
131
+ kind: z.ZodEnum<["sensor", "actuator", "setpoint", "metric", "status", "kpi"]>;
132
+ source: z.ZodEnum<["mock", "mqtt", "http", "derived", "local"]>;
133
+ topic: z.ZodOptional<z.ZodString>;
134
+ endpoint: z.ZodOptional<z.ZodString>;
135
+ jsonPath: z.ZodOptional<z.ZodString>;
136
+ refreshRate: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
137
+ defaultValue: z.ZodOptional<z.ZodAny>;
138
+ unit: z.ZodOptional<z.ZodString>;
139
+ min: z.ZodOptional<z.ZodNumber>;
140
+ max: z.ZodOptional<z.ZodNumber>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ label: string;
143
+ id: string;
144
+ kind: "status" | "sensor" | "actuator" | "setpoint" | "metric" | "kpi";
145
+ source: "mock" | "mqtt" | "http" | "derived" | "local";
146
+ refreshRate: number;
147
+ description?: string | undefined;
148
+ defaultValue?: any;
149
+ topic?: string | undefined;
150
+ endpoint?: string | undefined;
151
+ jsonPath?: string | undefined;
152
+ unit?: string | undefined;
153
+ min?: number | undefined;
154
+ max?: number | undefined;
155
+ }, {
156
+ label: string;
157
+ id: string;
158
+ kind: "status" | "sensor" | "actuator" | "setpoint" | "metric" | "kpi";
159
+ source: "mock" | "mqtt" | "http" | "derived" | "local";
160
+ description?: string | undefined;
161
+ defaultValue?: any;
162
+ topic?: string | undefined;
163
+ endpoint?: string | undefined;
164
+ jsonPath?: string | undefined;
165
+ refreshRate?: number | undefined;
166
+ unit?: string | undefined;
167
+ min?: number | undefined;
168
+ max?: number | undefined;
169
+ }>;
170
+ type SignalDefinition = z.infer<typeof SignalSchema>;
171
+ declare const EntitySchema: z.ZodObject<{
172
+ id: z.ZodString;
173
+ name: z.ZodString;
174
+ description: z.ZodOptional<z.ZodString>;
175
+ type: z.ZodString;
176
+ category: z.ZodDefault<z.ZodString>;
177
+ signals: z.ZodArray<z.ZodString, "many">;
178
+ ui: z.ZodOptional<z.ZodObject<{
179
+ icon: z.ZodOptional<z.ZodString>;
180
+ color: z.ZodOptional<z.ZodString>;
181
+ dashboardComponent: z.ZodOptional<z.ZodString>;
182
+ }, "strip", z.ZodTypeAny, {
183
+ icon?: string | undefined;
184
+ color?: string | undefined;
185
+ dashboardComponent?: string | undefined;
186
+ }, {
187
+ icon?: string | undefined;
188
+ color?: string | undefined;
189
+ dashboardComponent?: string | undefined;
190
+ }>>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ type: string;
193
+ id: string;
194
+ name: string;
195
+ category: string;
196
+ signals: string[];
197
+ description?: string | undefined;
198
+ ui?: {
199
+ icon?: string | undefined;
200
+ color?: string | undefined;
201
+ dashboardComponent?: string | undefined;
202
+ } | undefined;
203
+ }, {
204
+ type: string;
205
+ id: string;
206
+ name: string;
207
+ signals: string[];
208
+ description?: string | undefined;
209
+ category?: string | undefined;
210
+ ui?: {
211
+ icon?: string | undefined;
212
+ color?: string | undefined;
213
+ dashboardComponent?: string | undefined;
214
+ } | undefined;
215
+ }>;
216
+ type EntityDefinition = z.infer<typeof EntitySchema>;
217
+ declare const TriggerSchema: z.ZodObject<{
218
+ id: z.ZodString;
219
+ type: z.ZodEnum<["signal_change", "manual_action", "schedule", "webhook"]>;
220
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
223
+ id: string;
224
+ config: Record<string, any>;
225
+ }, {
226
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
227
+ id: string;
228
+ config: Record<string, any>;
229
+ }>;
230
+ declare const ActionSchema: z.ZodObject<{
231
+ id: z.ZodString;
232
+ type: z.ZodEnum<["update_resource", "send_notification", "mqtt_publish", "api_call", "navigate", "agent_task"]>;
233
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
236
+ id: string;
237
+ config: Record<string, any>;
238
+ }, {
239
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
240
+ id: string;
241
+ config: Record<string, any>;
242
+ }>;
243
+ declare const WorkflowSchema: z.ZodObject<{
244
+ id: z.ZodString;
245
+ name: z.ZodString;
246
+ active: z.ZodDefault<z.ZodBoolean>;
247
+ trigger: z.ZodObject<{
248
+ id: z.ZodString;
249
+ type: z.ZodEnum<["signal_change", "manual_action", "schedule", "webhook"]>;
250
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
253
+ id: string;
254
+ config: Record<string, any>;
255
+ }, {
256
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
257
+ id: string;
258
+ config: Record<string, any>;
259
+ }>;
260
+ actions: z.ZodArray<z.ZodObject<{
261
+ id: z.ZodString;
262
+ type: z.ZodEnum<["update_resource", "send_notification", "mqtt_publish", "api_call", "navigate", "agent_task"]>;
263
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
266
+ id: string;
267
+ config: Record<string, any>;
268
+ }, {
269
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
270
+ id: string;
271
+ config: Record<string, any>;
272
+ }>, "many">;
273
+ }, "strip", z.ZodTypeAny, {
274
+ id: string;
275
+ name: string;
276
+ active: boolean;
277
+ trigger: {
278
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
279
+ id: string;
280
+ config: Record<string, any>;
281
+ };
282
+ actions: {
283
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
284
+ id: string;
285
+ config: Record<string, any>;
286
+ }[];
287
+ }, {
288
+ id: string;
289
+ name: string;
290
+ trigger: {
291
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
292
+ id: string;
293
+ config: Record<string, any>;
294
+ };
295
+ actions: {
296
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
297
+ id: string;
298
+ config: Record<string, any>;
299
+ }[];
300
+ active?: boolean | undefined;
301
+ }>;
302
+ type WorkflowDefinition = z.infer<typeof WorkflowSchema>;
303
+ type ActionDefinition = z.infer<typeof ActionSchema>;
304
+ declare const BlockSchema: z.ZodObject<{
305
+ id: z.ZodString;
306
+ type: z.ZodString;
307
+ props: z.ZodRecord<z.ZodString, z.ZodAny>;
308
+ layout: z.ZodOptional<z.ZodObject<{
309
+ colSpan: z.ZodOptional<z.ZodNumber>;
310
+ rowSpan: z.ZodOptional<z.ZodNumber>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ colSpan?: number | undefined;
313
+ rowSpan?: number | undefined;
314
+ }, {
315
+ colSpan?: number | undefined;
316
+ rowSpan?: number | undefined;
317
+ }>>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ type: string;
320
+ id: string;
321
+ props: Record<string, any>;
322
+ layout?: {
323
+ colSpan?: number | undefined;
324
+ rowSpan?: number | undefined;
325
+ } | undefined;
326
+ }, {
327
+ type: string;
328
+ id: string;
329
+ props: Record<string, any>;
330
+ layout?: {
331
+ colSpan?: number | undefined;
332
+ rowSpan?: number | undefined;
333
+ } | undefined;
334
+ }>;
335
+ type Block = z.infer<typeof BlockSchema>;
336
+ declare const PageSectionSchema: z.ZodObject<{
337
+ id: z.ZodString;
338
+ title: z.ZodOptional<z.ZodString>;
339
+ description: z.ZodOptional<z.ZodString>;
340
+ layout: z.ZodOptional<z.ZodObject<{
341
+ columns: z.ZodOptional<z.ZodNumber>;
342
+ variant: z.ZodOptional<z.ZodEnum<["grid", "stack", "split"]>>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ columns?: number | undefined;
345
+ variant?: "grid" | "stack" | "split" | undefined;
346
+ }, {
347
+ columns?: number | undefined;
348
+ variant?: "grid" | "stack" | "split" | undefined;
349
+ }>>;
350
+ blocks: z.ZodArray<z.ZodObject<{
351
+ id: z.ZodString;
352
+ type: z.ZodString;
353
+ props: z.ZodRecord<z.ZodString, z.ZodAny>;
354
+ layout: z.ZodOptional<z.ZodObject<{
355
+ colSpan: z.ZodOptional<z.ZodNumber>;
356
+ rowSpan: z.ZodOptional<z.ZodNumber>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ colSpan?: number | undefined;
359
+ rowSpan?: number | undefined;
360
+ }, {
361
+ colSpan?: number | undefined;
362
+ rowSpan?: number | undefined;
363
+ }>>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ type: string;
366
+ id: string;
367
+ props: Record<string, any>;
368
+ layout?: {
369
+ colSpan?: number | undefined;
370
+ rowSpan?: number | undefined;
371
+ } | undefined;
372
+ }, {
373
+ type: string;
374
+ id: string;
375
+ props: Record<string, any>;
376
+ layout?: {
377
+ colSpan?: number | undefined;
378
+ rowSpan?: number | undefined;
379
+ } | undefined;
380
+ }>, "many">;
381
+ }, "strip", z.ZodTypeAny, {
382
+ id: string;
383
+ blocks: {
384
+ type: string;
385
+ id: string;
386
+ props: Record<string, any>;
387
+ layout?: {
388
+ colSpan?: number | undefined;
389
+ rowSpan?: number | undefined;
390
+ } | undefined;
391
+ }[];
392
+ description?: string | undefined;
393
+ layout?: {
394
+ columns?: number | undefined;
395
+ variant?: "grid" | "stack" | "split" | undefined;
396
+ } | undefined;
397
+ title?: string | undefined;
398
+ }, {
399
+ id: string;
400
+ blocks: {
401
+ type: string;
402
+ id: string;
403
+ props: Record<string, any>;
404
+ layout?: {
405
+ colSpan?: number | undefined;
406
+ rowSpan?: number | undefined;
407
+ } | undefined;
408
+ }[];
409
+ description?: string | undefined;
410
+ layout?: {
411
+ columns?: number | undefined;
412
+ variant?: "grid" | "stack" | "split" | undefined;
413
+ } | undefined;
414
+ title?: string | undefined;
415
+ }>;
416
+ type PageSection = z.infer<typeof PageSectionSchema>;
417
+ declare const PageSchema: z.ZodObject<{
418
+ id: z.ZodString;
419
+ slug: z.ZodString;
420
+ title: z.ZodString;
421
+ description: z.ZodOptional<z.ZodString>;
422
+ icon: z.ZodOptional<z.ZodString>;
423
+ sections: z.ZodArray<z.ZodObject<{
424
+ id: z.ZodString;
425
+ title: z.ZodOptional<z.ZodString>;
426
+ description: z.ZodOptional<z.ZodString>;
427
+ layout: z.ZodOptional<z.ZodObject<{
428
+ columns: z.ZodOptional<z.ZodNumber>;
429
+ variant: z.ZodOptional<z.ZodEnum<["grid", "stack", "split"]>>;
430
+ }, "strip", z.ZodTypeAny, {
431
+ columns?: number | undefined;
432
+ variant?: "grid" | "stack" | "split" | undefined;
433
+ }, {
434
+ columns?: number | undefined;
435
+ variant?: "grid" | "stack" | "split" | undefined;
436
+ }>>;
437
+ blocks: z.ZodArray<z.ZodObject<{
438
+ id: z.ZodString;
439
+ type: z.ZodString;
440
+ props: z.ZodRecord<z.ZodString, z.ZodAny>;
441
+ layout: z.ZodOptional<z.ZodObject<{
442
+ colSpan: z.ZodOptional<z.ZodNumber>;
443
+ rowSpan: z.ZodOptional<z.ZodNumber>;
444
+ }, "strip", z.ZodTypeAny, {
445
+ colSpan?: number | undefined;
446
+ rowSpan?: number | undefined;
447
+ }, {
448
+ colSpan?: number | undefined;
449
+ rowSpan?: number | undefined;
450
+ }>>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ type: string;
453
+ id: string;
454
+ props: Record<string, any>;
455
+ layout?: {
456
+ colSpan?: number | undefined;
457
+ rowSpan?: number | undefined;
458
+ } | undefined;
459
+ }, {
460
+ type: string;
461
+ id: string;
462
+ props: Record<string, any>;
463
+ layout?: {
464
+ colSpan?: number | undefined;
465
+ rowSpan?: number | undefined;
466
+ } | undefined;
467
+ }>, "many">;
468
+ }, "strip", z.ZodTypeAny, {
469
+ id: string;
470
+ blocks: {
471
+ type: string;
472
+ id: string;
473
+ props: Record<string, any>;
474
+ layout?: {
475
+ colSpan?: number | undefined;
476
+ rowSpan?: number | undefined;
477
+ } | undefined;
478
+ }[];
479
+ description?: string | undefined;
480
+ layout?: {
481
+ columns?: number | undefined;
482
+ variant?: "grid" | "stack" | "split" | undefined;
483
+ } | undefined;
484
+ title?: string | undefined;
485
+ }, {
486
+ id: string;
487
+ blocks: {
488
+ type: string;
489
+ id: string;
490
+ props: Record<string, any>;
491
+ layout?: {
492
+ colSpan?: number | undefined;
493
+ rowSpan?: number | undefined;
494
+ } | undefined;
495
+ }[];
496
+ description?: string | undefined;
497
+ layout?: {
498
+ columns?: number | undefined;
499
+ variant?: "grid" | "stack" | "split" | undefined;
500
+ } | undefined;
501
+ title?: string | undefined;
502
+ }>, "many">;
503
+ }, "strip", z.ZodTypeAny, {
504
+ id: string;
505
+ title: string;
506
+ slug: string;
507
+ sections: {
508
+ id: string;
509
+ blocks: {
510
+ type: string;
511
+ id: string;
512
+ props: Record<string, any>;
513
+ layout?: {
514
+ colSpan?: number | undefined;
515
+ rowSpan?: number | undefined;
516
+ } | undefined;
517
+ }[];
518
+ description?: string | undefined;
519
+ layout?: {
520
+ columns?: number | undefined;
521
+ variant?: "grid" | "stack" | "split" | undefined;
522
+ } | undefined;
523
+ title?: string | undefined;
524
+ }[];
525
+ description?: string | undefined;
526
+ icon?: string | undefined;
527
+ }, {
528
+ id: string;
529
+ title: string;
530
+ slug: string;
531
+ sections: {
532
+ id: string;
533
+ blocks: {
534
+ type: string;
535
+ id: string;
536
+ props: Record<string, any>;
537
+ layout?: {
538
+ colSpan?: number | undefined;
539
+ rowSpan?: number | undefined;
540
+ } | undefined;
541
+ }[];
542
+ description?: string | undefined;
543
+ layout?: {
544
+ columns?: number | undefined;
545
+ variant?: "grid" | "stack" | "split" | undefined;
546
+ } | undefined;
547
+ title?: string | undefined;
548
+ }[];
549
+ description?: string | undefined;
550
+ icon?: string | undefined;
551
+ }>;
552
+ type PageDefinition = z.infer<typeof PageSchema>;
553
+ declare const AppSpecificationSchema: z.ZodObject<{
554
+ meta: z.ZodObject<{
555
+ name: z.ZodString;
556
+ version: z.ZodString;
557
+ description: z.ZodOptional<z.ZodString>;
558
+ author: z.ZodOptional<z.ZodString>;
559
+ createdAt: z.ZodOptional<z.ZodString>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ name: string;
562
+ version: string;
563
+ description?: string | undefined;
564
+ author?: string | undefined;
565
+ createdAt?: string | undefined;
566
+ }, {
567
+ name: string;
568
+ version: string;
569
+ description?: string | undefined;
570
+ author?: string | undefined;
571
+ createdAt?: string | undefined;
572
+ }>;
573
+ config: z.ZodObject<{
574
+ theme: z.ZodDefault<z.ZodEnum<["light", "dark", "system", "corporate", "midnight", "blueprint"]>>;
575
+ mockMode: z.ZodDefault<z.ZodBoolean>;
576
+ brokerUrl: z.ZodOptional<z.ZodString>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ theme: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint";
579
+ mockMode: boolean;
580
+ brokerUrl?: string | undefined;
581
+ }, {
582
+ theme?: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint" | undefined;
583
+ mockMode?: boolean | undefined;
584
+ brokerUrl?: string | undefined;
585
+ }>;
586
+ modules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
587
+ resources: z.ZodOptional<z.ZodArray<z.ZodObject<{
588
+ id: z.ZodString;
589
+ name: z.ZodString;
590
+ fields: z.ZodArray<z.ZodObject<{
591
+ key: z.ZodString;
592
+ label: z.ZodString;
593
+ type: z.ZodEnum<["text", "number", "currency", "date", "boolean", "status", "email", "image", "textarea"]>;
594
+ required: z.ZodOptional<z.ZodBoolean>;
595
+ description: z.ZodOptional<z.ZodString>;
596
+ defaultValue: z.ZodOptional<z.ZodAny>;
597
+ }, "strip", z.ZodTypeAny, {
598
+ key: string;
599
+ label: string;
600
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
601
+ required?: boolean | undefined;
602
+ description?: string | undefined;
603
+ defaultValue?: any;
604
+ }, {
605
+ key: string;
606
+ label: string;
607
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
608
+ required?: boolean | undefined;
609
+ description?: string | undefined;
610
+ defaultValue?: any;
611
+ }>, "many">;
612
+ defaultView: z.ZodOptional<z.ZodEnum<["table", "grid", "list"]>>;
613
+ features: z.ZodOptional<z.ZodObject<{
614
+ searchable: z.ZodOptional<z.ZodBoolean>;
615
+ creatable: z.ZodOptional<z.ZodBoolean>;
616
+ editable: z.ZodOptional<z.ZodBoolean>;
617
+ deletable: z.ZodOptional<z.ZodBoolean>;
618
+ exportable: z.ZodOptional<z.ZodBoolean>;
619
+ }, "strip", z.ZodTypeAny, {
620
+ searchable?: boolean | undefined;
621
+ creatable?: boolean | undefined;
622
+ editable?: boolean | undefined;
623
+ deletable?: boolean | undefined;
624
+ exportable?: boolean | undefined;
625
+ }, {
626
+ searchable?: boolean | undefined;
627
+ creatable?: boolean | undefined;
628
+ editable?: boolean | undefined;
629
+ deletable?: boolean | undefined;
630
+ exportable?: boolean | undefined;
631
+ }>>;
632
+ }, "strip", z.ZodTypeAny, {
633
+ id: string;
634
+ name: string;
635
+ fields: {
636
+ key: string;
637
+ label: string;
638
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
639
+ required?: boolean | undefined;
640
+ description?: string | undefined;
641
+ defaultValue?: any;
642
+ }[];
643
+ defaultView?: "table" | "grid" | "list" | undefined;
644
+ features?: {
645
+ searchable?: boolean | undefined;
646
+ creatable?: boolean | undefined;
647
+ editable?: boolean | undefined;
648
+ deletable?: boolean | undefined;
649
+ exportable?: boolean | undefined;
650
+ } | undefined;
651
+ }, {
652
+ id: string;
653
+ name: string;
654
+ fields: {
655
+ key: string;
656
+ label: string;
657
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
658
+ required?: boolean | undefined;
659
+ description?: string | undefined;
660
+ defaultValue?: any;
661
+ }[];
662
+ defaultView?: "table" | "grid" | "list" | undefined;
663
+ features?: {
664
+ searchable?: boolean | undefined;
665
+ creatable?: boolean | undefined;
666
+ editable?: boolean | undefined;
667
+ deletable?: boolean | undefined;
668
+ exportable?: boolean | undefined;
669
+ } | undefined;
670
+ }>, "many">>;
671
+ domain: z.ZodObject<{
672
+ signals: z.ZodArray<z.ZodObject<{
673
+ id: z.ZodString;
674
+ label: z.ZodString;
675
+ description: z.ZodOptional<z.ZodString>;
676
+ kind: z.ZodEnum<["sensor", "actuator", "setpoint", "metric", "status", "kpi"]>;
677
+ source: z.ZodEnum<["mock", "mqtt", "http", "derived", "local"]>;
678
+ topic: z.ZodOptional<z.ZodString>;
679
+ endpoint: z.ZodOptional<z.ZodString>;
680
+ jsonPath: z.ZodOptional<z.ZodString>;
681
+ refreshRate: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
682
+ defaultValue: z.ZodOptional<z.ZodAny>;
683
+ unit: z.ZodOptional<z.ZodString>;
684
+ min: z.ZodOptional<z.ZodNumber>;
685
+ max: z.ZodOptional<z.ZodNumber>;
686
+ }, "strip", z.ZodTypeAny, {
687
+ label: string;
688
+ id: string;
689
+ kind: "status" | "sensor" | "actuator" | "setpoint" | "metric" | "kpi";
690
+ source: "mock" | "mqtt" | "http" | "derived" | "local";
691
+ refreshRate: number;
692
+ description?: string | undefined;
693
+ defaultValue?: any;
694
+ topic?: string | undefined;
695
+ endpoint?: string | undefined;
696
+ jsonPath?: string | undefined;
697
+ unit?: string | undefined;
698
+ min?: number | undefined;
699
+ max?: number | undefined;
700
+ }, {
701
+ label: string;
702
+ id: string;
703
+ kind: "status" | "sensor" | "actuator" | "setpoint" | "metric" | "kpi";
704
+ source: "mock" | "mqtt" | "http" | "derived" | "local";
705
+ description?: string | undefined;
706
+ defaultValue?: any;
707
+ topic?: string | undefined;
708
+ endpoint?: string | undefined;
709
+ jsonPath?: string | undefined;
710
+ refreshRate?: number | undefined;
711
+ unit?: string | undefined;
712
+ min?: number | undefined;
713
+ max?: number | undefined;
714
+ }>, "many">;
715
+ entities: z.ZodArray<z.ZodObject<{
716
+ id: z.ZodString;
717
+ name: z.ZodString;
718
+ description: z.ZodOptional<z.ZodString>;
719
+ type: z.ZodString;
720
+ category: z.ZodDefault<z.ZodString>;
721
+ signals: z.ZodArray<z.ZodString, "many">;
722
+ ui: z.ZodOptional<z.ZodObject<{
723
+ icon: z.ZodOptional<z.ZodString>;
724
+ color: z.ZodOptional<z.ZodString>;
725
+ dashboardComponent: z.ZodOptional<z.ZodString>;
726
+ }, "strip", z.ZodTypeAny, {
727
+ icon?: string | undefined;
728
+ color?: string | undefined;
729
+ dashboardComponent?: string | undefined;
730
+ }, {
731
+ icon?: string | undefined;
732
+ color?: string | undefined;
733
+ dashboardComponent?: string | undefined;
734
+ }>>;
735
+ }, "strip", z.ZodTypeAny, {
736
+ type: string;
737
+ id: string;
738
+ name: string;
739
+ category: string;
740
+ signals: string[];
741
+ description?: string | undefined;
742
+ ui?: {
743
+ icon?: string | undefined;
744
+ color?: string | undefined;
745
+ dashboardComponent?: string | undefined;
746
+ } | undefined;
747
+ }, {
748
+ type: string;
749
+ id: string;
750
+ name: string;
751
+ signals: string[];
752
+ description?: string | undefined;
753
+ category?: string | undefined;
754
+ ui?: {
755
+ icon?: string | undefined;
756
+ color?: string | undefined;
757
+ dashboardComponent?: string | undefined;
758
+ } | undefined;
759
+ }>, "many">;
760
+ workflows: z.ZodOptional<z.ZodArray<z.ZodObject<{
761
+ id: z.ZodString;
762
+ name: z.ZodString;
763
+ active: z.ZodDefault<z.ZodBoolean>;
764
+ trigger: z.ZodObject<{
765
+ id: z.ZodString;
766
+ type: z.ZodEnum<["signal_change", "manual_action", "schedule", "webhook"]>;
767
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
768
+ }, "strip", z.ZodTypeAny, {
769
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
770
+ id: string;
771
+ config: Record<string, any>;
772
+ }, {
773
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
774
+ id: string;
775
+ config: Record<string, any>;
776
+ }>;
777
+ actions: z.ZodArray<z.ZodObject<{
778
+ id: z.ZodString;
779
+ type: z.ZodEnum<["update_resource", "send_notification", "mqtt_publish", "api_call", "navigate", "agent_task"]>;
780
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
781
+ }, "strip", z.ZodTypeAny, {
782
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
783
+ id: string;
784
+ config: Record<string, any>;
785
+ }, {
786
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
787
+ id: string;
788
+ config: Record<string, any>;
789
+ }>, "many">;
790
+ }, "strip", z.ZodTypeAny, {
791
+ id: string;
792
+ name: string;
793
+ active: boolean;
794
+ trigger: {
795
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
796
+ id: string;
797
+ config: Record<string, any>;
798
+ };
799
+ actions: {
800
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
801
+ id: string;
802
+ config: Record<string, any>;
803
+ }[];
804
+ }, {
805
+ id: string;
806
+ name: string;
807
+ trigger: {
808
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
809
+ id: string;
810
+ config: Record<string, any>;
811
+ };
812
+ actions: {
813
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
814
+ id: string;
815
+ config: Record<string, any>;
816
+ }[];
817
+ active?: boolean | undefined;
818
+ }>, "many">>;
819
+ }, "strip", z.ZodTypeAny, {
820
+ signals: {
821
+ label: string;
822
+ id: string;
823
+ kind: "status" | "sensor" | "actuator" | "setpoint" | "metric" | "kpi";
824
+ source: "mock" | "mqtt" | "http" | "derived" | "local";
825
+ refreshRate: number;
826
+ description?: string | undefined;
827
+ defaultValue?: any;
828
+ topic?: string | undefined;
829
+ endpoint?: string | undefined;
830
+ jsonPath?: string | undefined;
831
+ unit?: string | undefined;
832
+ min?: number | undefined;
833
+ max?: number | undefined;
834
+ }[];
835
+ entities: {
836
+ type: string;
837
+ id: string;
838
+ name: string;
839
+ category: string;
840
+ signals: string[];
841
+ description?: string | undefined;
842
+ ui?: {
843
+ icon?: string | undefined;
844
+ color?: string | undefined;
845
+ dashboardComponent?: string | undefined;
846
+ } | undefined;
847
+ }[];
848
+ workflows?: {
849
+ id: string;
850
+ name: string;
851
+ active: boolean;
852
+ trigger: {
853
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
854
+ id: string;
855
+ config: Record<string, any>;
856
+ };
857
+ actions: {
858
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
859
+ id: string;
860
+ config: Record<string, any>;
861
+ }[];
862
+ }[] | undefined;
863
+ }, {
864
+ signals: {
865
+ label: string;
866
+ id: string;
867
+ kind: "status" | "sensor" | "actuator" | "setpoint" | "metric" | "kpi";
868
+ source: "mock" | "mqtt" | "http" | "derived" | "local";
869
+ description?: string | undefined;
870
+ defaultValue?: any;
871
+ topic?: string | undefined;
872
+ endpoint?: string | undefined;
873
+ jsonPath?: string | undefined;
874
+ refreshRate?: number | undefined;
875
+ unit?: string | undefined;
876
+ min?: number | undefined;
877
+ max?: number | undefined;
878
+ }[];
879
+ entities: {
880
+ type: string;
881
+ id: string;
882
+ name: string;
883
+ signals: string[];
884
+ description?: string | undefined;
885
+ category?: string | undefined;
886
+ ui?: {
887
+ icon?: string | undefined;
888
+ color?: string | undefined;
889
+ dashboardComponent?: string | undefined;
890
+ } | undefined;
891
+ }[];
892
+ workflows?: {
893
+ id: string;
894
+ name: string;
895
+ trigger: {
896
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
897
+ id: string;
898
+ config: Record<string, any>;
899
+ };
900
+ actions: {
901
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
902
+ id: string;
903
+ config: Record<string, any>;
904
+ }[];
905
+ active?: boolean | undefined;
906
+ }[] | undefined;
907
+ }>;
908
+ pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
909
+ id: z.ZodString;
910
+ slug: z.ZodString;
911
+ title: z.ZodString;
912
+ description: z.ZodOptional<z.ZodString>;
913
+ icon: z.ZodOptional<z.ZodString>;
914
+ sections: z.ZodArray<z.ZodObject<{
915
+ id: z.ZodString;
916
+ title: z.ZodOptional<z.ZodString>;
917
+ description: z.ZodOptional<z.ZodString>;
918
+ layout: z.ZodOptional<z.ZodObject<{
919
+ columns: z.ZodOptional<z.ZodNumber>;
920
+ variant: z.ZodOptional<z.ZodEnum<["grid", "stack", "split"]>>;
921
+ }, "strip", z.ZodTypeAny, {
922
+ columns?: number | undefined;
923
+ variant?: "grid" | "stack" | "split" | undefined;
924
+ }, {
925
+ columns?: number | undefined;
926
+ variant?: "grid" | "stack" | "split" | undefined;
927
+ }>>;
928
+ blocks: z.ZodArray<z.ZodObject<{
929
+ id: z.ZodString;
930
+ type: z.ZodString;
931
+ props: z.ZodRecord<z.ZodString, z.ZodAny>;
932
+ layout: z.ZodOptional<z.ZodObject<{
933
+ colSpan: z.ZodOptional<z.ZodNumber>;
934
+ rowSpan: z.ZodOptional<z.ZodNumber>;
935
+ }, "strip", z.ZodTypeAny, {
936
+ colSpan?: number | undefined;
937
+ rowSpan?: number | undefined;
938
+ }, {
939
+ colSpan?: number | undefined;
940
+ rowSpan?: number | undefined;
941
+ }>>;
942
+ }, "strip", z.ZodTypeAny, {
943
+ type: string;
944
+ id: string;
945
+ props: Record<string, any>;
946
+ layout?: {
947
+ colSpan?: number | undefined;
948
+ rowSpan?: number | undefined;
949
+ } | undefined;
950
+ }, {
951
+ type: string;
952
+ id: string;
953
+ props: Record<string, any>;
954
+ layout?: {
955
+ colSpan?: number | undefined;
956
+ rowSpan?: number | undefined;
957
+ } | undefined;
958
+ }>, "many">;
959
+ }, "strip", z.ZodTypeAny, {
960
+ id: string;
961
+ blocks: {
962
+ type: string;
963
+ id: string;
964
+ props: Record<string, any>;
965
+ layout?: {
966
+ colSpan?: number | undefined;
967
+ rowSpan?: number | undefined;
968
+ } | undefined;
969
+ }[];
970
+ description?: string | undefined;
971
+ layout?: {
972
+ columns?: number | undefined;
973
+ variant?: "grid" | "stack" | "split" | undefined;
974
+ } | undefined;
975
+ title?: string | undefined;
976
+ }, {
977
+ id: string;
978
+ blocks: {
979
+ type: string;
980
+ id: string;
981
+ props: Record<string, any>;
982
+ layout?: {
983
+ colSpan?: number | undefined;
984
+ rowSpan?: number | undefined;
985
+ } | undefined;
986
+ }[];
987
+ description?: string | undefined;
988
+ layout?: {
989
+ columns?: number | undefined;
990
+ variant?: "grid" | "stack" | "split" | undefined;
991
+ } | undefined;
992
+ title?: string | undefined;
993
+ }>, "many">;
994
+ }, "strip", z.ZodTypeAny, {
995
+ id: string;
996
+ title: string;
997
+ slug: string;
998
+ sections: {
999
+ id: string;
1000
+ blocks: {
1001
+ type: string;
1002
+ id: string;
1003
+ props: Record<string, any>;
1004
+ layout?: {
1005
+ colSpan?: number | undefined;
1006
+ rowSpan?: number | undefined;
1007
+ } | undefined;
1008
+ }[];
1009
+ description?: string | undefined;
1010
+ layout?: {
1011
+ columns?: number | undefined;
1012
+ variant?: "grid" | "stack" | "split" | undefined;
1013
+ } | undefined;
1014
+ title?: string | undefined;
1015
+ }[];
1016
+ description?: string | undefined;
1017
+ icon?: string | undefined;
1018
+ }, {
1019
+ id: string;
1020
+ title: string;
1021
+ slug: string;
1022
+ sections: {
1023
+ id: string;
1024
+ blocks: {
1025
+ type: string;
1026
+ id: string;
1027
+ props: Record<string, any>;
1028
+ layout?: {
1029
+ colSpan?: number | undefined;
1030
+ rowSpan?: number | undefined;
1031
+ } | undefined;
1032
+ }[];
1033
+ description?: string | undefined;
1034
+ layout?: {
1035
+ columns?: number | undefined;
1036
+ variant?: "grid" | "stack" | "split" | undefined;
1037
+ } | undefined;
1038
+ title?: string | undefined;
1039
+ }[];
1040
+ description?: string | undefined;
1041
+ icon?: string | undefined;
1042
+ }>, "many">>;
1043
+ }, "strip", z.ZodTypeAny, {
1044
+ config: {
1045
+ theme: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint";
1046
+ mockMode: boolean;
1047
+ brokerUrl?: string | undefined;
1048
+ };
1049
+ meta: {
1050
+ name: string;
1051
+ version: string;
1052
+ description?: string | undefined;
1053
+ author?: string | undefined;
1054
+ createdAt?: string | undefined;
1055
+ };
1056
+ domain: {
1057
+ signals: {
1058
+ label: string;
1059
+ id: string;
1060
+ kind: "status" | "sensor" | "actuator" | "setpoint" | "metric" | "kpi";
1061
+ source: "mock" | "mqtt" | "http" | "derived" | "local";
1062
+ refreshRate: number;
1063
+ description?: string | undefined;
1064
+ defaultValue?: any;
1065
+ topic?: string | undefined;
1066
+ endpoint?: string | undefined;
1067
+ jsonPath?: string | undefined;
1068
+ unit?: string | undefined;
1069
+ min?: number | undefined;
1070
+ max?: number | undefined;
1071
+ }[];
1072
+ entities: {
1073
+ type: string;
1074
+ id: string;
1075
+ name: string;
1076
+ category: string;
1077
+ signals: string[];
1078
+ description?: string | undefined;
1079
+ ui?: {
1080
+ icon?: string | undefined;
1081
+ color?: string | undefined;
1082
+ dashboardComponent?: string | undefined;
1083
+ } | undefined;
1084
+ }[];
1085
+ workflows?: {
1086
+ id: string;
1087
+ name: string;
1088
+ active: boolean;
1089
+ trigger: {
1090
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
1091
+ id: string;
1092
+ config: Record<string, any>;
1093
+ };
1094
+ actions: {
1095
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
1096
+ id: string;
1097
+ config: Record<string, any>;
1098
+ }[];
1099
+ }[] | undefined;
1100
+ };
1101
+ modules?: string[] | undefined;
1102
+ resources?: {
1103
+ id: string;
1104
+ name: string;
1105
+ fields: {
1106
+ key: string;
1107
+ label: string;
1108
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
1109
+ required?: boolean | undefined;
1110
+ description?: string | undefined;
1111
+ defaultValue?: any;
1112
+ }[];
1113
+ defaultView?: "table" | "grid" | "list" | undefined;
1114
+ features?: {
1115
+ searchable?: boolean | undefined;
1116
+ creatable?: boolean | undefined;
1117
+ editable?: boolean | undefined;
1118
+ deletable?: boolean | undefined;
1119
+ exportable?: boolean | undefined;
1120
+ } | undefined;
1121
+ }[] | undefined;
1122
+ pages?: {
1123
+ id: string;
1124
+ title: string;
1125
+ slug: string;
1126
+ sections: {
1127
+ id: string;
1128
+ blocks: {
1129
+ type: string;
1130
+ id: string;
1131
+ props: Record<string, any>;
1132
+ layout?: {
1133
+ colSpan?: number | undefined;
1134
+ rowSpan?: number | undefined;
1135
+ } | undefined;
1136
+ }[];
1137
+ description?: string | undefined;
1138
+ layout?: {
1139
+ columns?: number | undefined;
1140
+ variant?: "grid" | "stack" | "split" | undefined;
1141
+ } | undefined;
1142
+ title?: string | undefined;
1143
+ }[];
1144
+ description?: string | undefined;
1145
+ icon?: string | undefined;
1146
+ }[] | undefined;
1147
+ }, {
1148
+ config: {
1149
+ theme?: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint" | undefined;
1150
+ mockMode?: boolean | undefined;
1151
+ brokerUrl?: string | undefined;
1152
+ };
1153
+ meta: {
1154
+ name: string;
1155
+ version: string;
1156
+ description?: string | undefined;
1157
+ author?: string | undefined;
1158
+ createdAt?: string | undefined;
1159
+ };
1160
+ domain: {
1161
+ signals: {
1162
+ label: string;
1163
+ id: string;
1164
+ kind: "status" | "sensor" | "actuator" | "setpoint" | "metric" | "kpi";
1165
+ source: "mock" | "mqtt" | "http" | "derived" | "local";
1166
+ description?: string | undefined;
1167
+ defaultValue?: any;
1168
+ topic?: string | undefined;
1169
+ endpoint?: string | undefined;
1170
+ jsonPath?: string | undefined;
1171
+ refreshRate?: number | undefined;
1172
+ unit?: string | undefined;
1173
+ min?: number | undefined;
1174
+ max?: number | undefined;
1175
+ }[];
1176
+ entities: {
1177
+ type: string;
1178
+ id: string;
1179
+ name: string;
1180
+ signals: string[];
1181
+ description?: string | undefined;
1182
+ category?: string | undefined;
1183
+ ui?: {
1184
+ icon?: string | undefined;
1185
+ color?: string | undefined;
1186
+ dashboardComponent?: string | undefined;
1187
+ } | undefined;
1188
+ }[];
1189
+ workflows?: {
1190
+ id: string;
1191
+ name: string;
1192
+ trigger: {
1193
+ type: "signal_change" | "manual_action" | "schedule" | "webhook";
1194
+ id: string;
1195
+ config: Record<string, any>;
1196
+ };
1197
+ actions: {
1198
+ type: "update_resource" | "send_notification" | "mqtt_publish" | "api_call" | "navigate" | "agent_task";
1199
+ id: string;
1200
+ config: Record<string, any>;
1201
+ }[];
1202
+ active?: boolean | undefined;
1203
+ }[] | undefined;
1204
+ };
1205
+ modules?: string[] | undefined;
1206
+ resources?: {
1207
+ id: string;
1208
+ name: string;
1209
+ fields: {
1210
+ key: string;
1211
+ label: string;
1212
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
1213
+ required?: boolean | undefined;
1214
+ description?: string | undefined;
1215
+ defaultValue?: any;
1216
+ }[];
1217
+ defaultView?: "table" | "grid" | "list" | undefined;
1218
+ features?: {
1219
+ searchable?: boolean | undefined;
1220
+ creatable?: boolean | undefined;
1221
+ editable?: boolean | undefined;
1222
+ deletable?: boolean | undefined;
1223
+ exportable?: boolean | undefined;
1224
+ } | undefined;
1225
+ }[] | undefined;
1226
+ pages?: {
1227
+ id: string;
1228
+ title: string;
1229
+ slug: string;
1230
+ sections: {
1231
+ id: string;
1232
+ blocks: {
1233
+ type: string;
1234
+ id: string;
1235
+ props: Record<string, any>;
1236
+ layout?: {
1237
+ colSpan?: number | undefined;
1238
+ rowSpan?: number | undefined;
1239
+ } | undefined;
1240
+ }[];
1241
+ description?: string | undefined;
1242
+ layout?: {
1243
+ columns?: number | undefined;
1244
+ variant?: "grid" | "stack" | "split" | undefined;
1245
+ } | undefined;
1246
+ title?: string | undefined;
1247
+ }[];
1248
+ description?: string | undefined;
1249
+ icon?: string | undefined;
1250
+ }[] | undefined;
1251
+ }>;
1252
+ type AppSpecification = z.infer<typeof AppSpecificationSchema>;
1253
+ declare const FloraTelemetrySchema: z.ZodObject<{
1254
+ timestamp: z.ZodNumber;
1255
+ soilMoisture: z.ZodNumber;
1256
+ ambientLight: z.ZodNumber;
1257
+ temperature: z.ZodNumber;
1258
+ }, "strip", z.ZodTypeAny, {
1259
+ timestamp: number;
1260
+ soilMoisture: number;
1261
+ ambientLight: number;
1262
+ temperature: number;
1263
+ }, {
1264
+ timestamp: number;
1265
+ soilMoisture: number;
1266
+ ambientLight: number;
1267
+ temperature: number;
1268
+ }>;
1269
+ type FloraTelemetry = z.infer<typeof FloraTelemetrySchema>;
1270
+
1271
+ declare const BodewellDeviceID: z.ZodEnum<["STK-V1-001", "STK-V1-002", "STK-V1-003", "STK-PRO-001", "STK-VIS-001"]>;
1272
+ declare const BodewellTelemetrySchema: z.ZodObject<{
1273
+ device_id: z.ZodEnum<["STK-V1-001", "STK-V1-002", "STK-V1-003", "STK-PRO-001", "STK-VIS-001"]>;
1274
+ stick_id: z.ZodOptional<z.ZodString>;
1275
+ timestamp: z.ZodOptional<z.ZodNumber>;
1276
+ air_temp: z.ZodOptional<z.ZodNumber>;
1277
+ air_humid: z.ZodOptional<z.ZodNumber>;
1278
+ humidity: z.ZodOptional<z.ZodNumber>;
1279
+ air_pressure: z.ZodOptional<z.ZodNumber>;
1280
+ pressure: z.ZodOptional<z.ZodNumber>;
1281
+ light_lux: z.ZodOptional<z.ZodNumber>;
1282
+ soil_temp_stemma: z.ZodOptional<z.ZodNumber>;
1283
+ soil_vwc: z.ZodNumber;
1284
+ soil_moisture: z.ZodOptional<z.ZodNumber>;
1285
+ soil_moisture_raw: z.ZodOptional<z.ZodNumber>;
1286
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1287
+ device_id: z.ZodEnum<["STK-V1-001", "STK-V1-002", "STK-V1-003", "STK-PRO-001", "STK-VIS-001"]>;
1288
+ stick_id: z.ZodOptional<z.ZodString>;
1289
+ timestamp: z.ZodOptional<z.ZodNumber>;
1290
+ air_temp: z.ZodOptional<z.ZodNumber>;
1291
+ air_humid: z.ZodOptional<z.ZodNumber>;
1292
+ humidity: z.ZodOptional<z.ZodNumber>;
1293
+ air_pressure: z.ZodOptional<z.ZodNumber>;
1294
+ pressure: z.ZodOptional<z.ZodNumber>;
1295
+ light_lux: z.ZodOptional<z.ZodNumber>;
1296
+ soil_temp_stemma: z.ZodOptional<z.ZodNumber>;
1297
+ soil_vwc: z.ZodNumber;
1298
+ soil_moisture: z.ZodOptional<z.ZodNumber>;
1299
+ soil_moisture_raw: z.ZodOptional<z.ZodNumber>;
1300
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1301
+ device_id: z.ZodEnum<["STK-V1-001", "STK-V1-002", "STK-V1-003", "STK-PRO-001", "STK-VIS-001"]>;
1302
+ stick_id: z.ZodOptional<z.ZodString>;
1303
+ timestamp: z.ZodOptional<z.ZodNumber>;
1304
+ air_temp: z.ZodOptional<z.ZodNumber>;
1305
+ air_humid: z.ZodOptional<z.ZodNumber>;
1306
+ humidity: z.ZodOptional<z.ZodNumber>;
1307
+ air_pressure: z.ZodOptional<z.ZodNumber>;
1308
+ pressure: z.ZodOptional<z.ZodNumber>;
1309
+ light_lux: z.ZodOptional<z.ZodNumber>;
1310
+ soil_temp_stemma: z.ZodOptional<z.ZodNumber>;
1311
+ soil_vwc: z.ZodNumber;
1312
+ soil_moisture: z.ZodOptional<z.ZodNumber>;
1313
+ soil_moisture_raw: z.ZodOptional<z.ZodNumber>;
1314
+ }, z.ZodTypeAny, "passthrough">>;
1315
+ declare const BodewellCommandSchema: z.ZodObject<{
1316
+ stick_id: z.ZodEnum<["STK-V1-001", "STK-V1-002", "STK-V1-003", "STK-PRO-001", "STK-VIS-001"]>;
1317
+ type: z.ZodEnum<["dry", "wet"]>;
1318
+ value: z.ZodNumber;
1319
+ }, "strip", z.ZodTypeAny, {
1320
+ type: "dry" | "wet";
1321
+ value: number;
1322
+ stick_id: "STK-V1-001" | "STK-V1-002" | "STK-V1-003" | "STK-PRO-001" | "STK-VIS-001";
1323
+ }, {
1324
+ type: "dry" | "wet";
1325
+ value: number;
1326
+ stick_id: "STK-V1-001" | "STK-V1-002" | "STK-V1-003" | "STK-PRO-001" | "STK-VIS-001";
1327
+ }>;
1328
+ type BodewellTelemetry = z.infer<typeof BodewellTelemetrySchema>;
1329
+ type BodewellCommand = z.infer<typeof BodewellCommandSchema>;
1330
+
1331
+ type schema_BodewellCommand = BodewellCommand;
1332
+ declare const schema_BodewellCommandSchema: typeof BodewellCommandSchema;
1333
+ declare const schema_BodewellDeviceID: typeof BodewellDeviceID;
1334
+ type schema_BodewellTelemetry = BodewellTelemetry;
1335
+ declare const schema_BodewellTelemetrySchema: typeof BodewellTelemetrySchema;
1336
+ declare namespace schema {
1337
+ export { type schema_BodewellCommand as BodewellCommand, schema_BodewellCommandSchema as BodewellCommandSchema, schema_BodewellDeviceID as BodewellDeviceID, type schema_BodewellTelemetry as BodewellTelemetry, schema_BodewellTelemetrySchema as BodewellTelemetrySchema };
1338
+ }
1339
+
1340
+ export { type ActionDefinition, ActionSchema, type AppSpecification, AppSpecificationSchema, type Block, BlockSchema, schema as Bodewell, type EntityDefinition, EntitySchema, type FieldDefinition, FieldSchema, type FloraTelemetry, FloraTelemetrySchema, type PageDefinition, PageSchema, type PageSection, PageSectionSchema, type ResourceDefinition, ResourceSchema, type SignalDefinition, SignalSchema, TriggerSchema, type WorkflowDefinition, WorkflowSchema };