@highstate/backend 0.4.3 → 0.4.5

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,1417 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const positionSchema: z.ZodObject<{
4
+ x: z.ZodNumber;
5
+ y: z.ZodNumber;
6
+ }, "strip", z.ZodTypeAny, {
7
+ x: number;
8
+ y: number;
9
+ }, {
10
+ x: number;
11
+ y: number;
12
+ }>;
13
+ declare const instanceInputSchema: z.ZodObject<{
14
+ instanceId: z.ZodString;
15
+ output: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ instanceId: string;
18
+ output: string;
19
+ }, {
20
+ instanceId: string;
21
+ output: string;
22
+ }>;
23
+ declare const hubInstanceInputSchema: z.ZodObject<{
24
+ hubId: z.ZodString;
25
+ }, "strip", z.ZodTypeAny, {
26
+ hubId: string;
27
+ }, {
28
+ hubId: string;
29
+ }>;
30
+ declare const instanceModelPatchSchema: z.ZodObject<{
31
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
32
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
33
+ instanceId: z.ZodString;
34
+ output: z.ZodString;
35
+ }, "strip", z.ZodTypeAny, {
36
+ instanceId: string;
37
+ output: string;
38
+ }, {
39
+ instanceId: string;
40
+ output: string;
41
+ }>, "many">>>;
42
+ hubInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
43
+ hubId: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ hubId: string;
46
+ }, {
47
+ hubId: string;
48
+ }>, "many">>>;
49
+ injectionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
50
+ hubId: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ hubId: string;
53
+ }, {
54
+ hubId: string;
55
+ }>, "many">>;
56
+ position: z.ZodOptional<z.ZodObject<{
57
+ x: z.ZodNumber;
58
+ y: z.ZodNumber;
59
+ }, "strip", z.ZodTypeAny, {
60
+ x: number;
61
+ y: number;
62
+ }, {
63
+ x: number;
64
+ y: number;
65
+ }>>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ args?: Record<string, unknown> | undefined;
68
+ inputs?: Record<string, {
69
+ instanceId: string;
70
+ output: string;
71
+ }[]> | undefined;
72
+ hubInputs?: Record<string, {
73
+ hubId: string;
74
+ }[]> | undefined;
75
+ injectionInputs?: {
76
+ hubId: string;
77
+ }[] | undefined;
78
+ position?: {
79
+ x: number;
80
+ y: number;
81
+ } | undefined;
82
+ }, {
83
+ args?: Record<string, unknown> | undefined;
84
+ inputs?: Record<string, {
85
+ instanceId: string;
86
+ output: string;
87
+ }[]> | undefined;
88
+ hubInputs?: Record<string, {
89
+ hubId: string;
90
+ }[]> | undefined;
91
+ injectionInputs?: {
92
+ hubId: string;
93
+ }[] | undefined;
94
+ position?: {
95
+ x: number;
96
+ y: number;
97
+ } | undefined;
98
+ }>;
99
+ declare const instanceModelSchema: z.ZodObject<{
100
+ parentId: z.ZodOptional<z.ZodString>;
101
+ outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
102
+ instanceId: z.ZodString;
103
+ output: z.ZodString;
104
+ }, "strip", z.ZodTypeAny, {
105
+ instanceId: string;
106
+ output: string;
107
+ }, {
108
+ instanceId: string;
109
+ output: string;
110
+ }>, "many">>>;
111
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
112
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
113
+ instanceId: z.ZodString;
114
+ output: z.ZodString;
115
+ }, "strip", z.ZodTypeAny, {
116
+ instanceId: string;
117
+ output: string;
118
+ }, {
119
+ instanceId: string;
120
+ output: string;
121
+ }>, "many">>>;
122
+ hubInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
123
+ hubId: z.ZodString;
124
+ }, "strip", z.ZodTypeAny, {
125
+ hubId: string;
126
+ }, {
127
+ hubId: string;
128
+ }>, "many">>>;
129
+ injectionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
130
+ hubId: z.ZodString;
131
+ }, "strip", z.ZodTypeAny, {
132
+ hubId: string;
133
+ }, {
134
+ hubId: string;
135
+ }>, "many">>;
136
+ position: z.ZodOptional<z.ZodObject<{
137
+ x: z.ZodNumber;
138
+ y: z.ZodNumber;
139
+ }, "strip", z.ZodTypeAny, {
140
+ x: number;
141
+ y: number;
142
+ }, {
143
+ x: number;
144
+ y: number;
145
+ }>>;
146
+ id: z.ZodString;
147
+ type: z.ZodString;
148
+ name: z.ZodString;
149
+ }, "strip", z.ZodTypeAny, {
150
+ name: string;
151
+ type: string;
152
+ id: string;
153
+ args?: Record<string, unknown> | undefined;
154
+ inputs?: Record<string, {
155
+ instanceId: string;
156
+ output: string;
157
+ }[]> | undefined;
158
+ hubInputs?: Record<string, {
159
+ hubId: string;
160
+ }[]> | undefined;
161
+ injectionInputs?: {
162
+ hubId: string;
163
+ }[] | undefined;
164
+ position?: {
165
+ x: number;
166
+ y: number;
167
+ } | undefined;
168
+ parentId?: string | undefined;
169
+ outputs?: Record<string, {
170
+ instanceId: string;
171
+ output: string;
172
+ }[]> | undefined;
173
+ }, {
174
+ name: string;
175
+ type: string;
176
+ id: string;
177
+ args?: Record<string, unknown> | undefined;
178
+ inputs?: Record<string, {
179
+ instanceId: string;
180
+ output: string;
181
+ }[]> | undefined;
182
+ hubInputs?: Record<string, {
183
+ hubId: string;
184
+ }[]> | undefined;
185
+ injectionInputs?: {
186
+ hubId: string;
187
+ }[] | undefined;
188
+ position?: {
189
+ x: number;
190
+ y: number;
191
+ } | undefined;
192
+ parentId?: string | undefined;
193
+ outputs?: Record<string, {
194
+ instanceId: string;
195
+ output: string;
196
+ }[]> | undefined;
197
+ }>;
198
+ declare const compositeInstanceSchema: z.ZodObject<{
199
+ instance: z.ZodObject<{
200
+ parentId: z.ZodOptional<z.ZodString>;
201
+ outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
202
+ instanceId: z.ZodString;
203
+ output: z.ZodString;
204
+ }, "strip", z.ZodTypeAny, {
205
+ instanceId: string;
206
+ output: string;
207
+ }, {
208
+ instanceId: string;
209
+ output: string;
210
+ }>, "many">>>;
211
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
212
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
213
+ instanceId: z.ZodString;
214
+ output: z.ZodString;
215
+ }, "strip", z.ZodTypeAny, {
216
+ instanceId: string;
217
+ output: string;
218
+ }, {
219
+ instanceId: string;
220
+ output: string;
221
+ }>, "many">>>;
222
+ hubInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
223
+ hubId: z.ZodString;
224
+ }, "strip", z.ZodTypeAny, {
225
+ hubId: string;
226
+ }, {
227
+ hubId: string;
228
+ }>, "many">>>;
229
+ injectionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
230
+ hubId: z.ZodString;
231
+ }, "strip", z.ZodTypeAny, {
232
+ hubId: string;
233
+ }, {
234
+ hubId: string;
235
+ }>, "many">>;
236
+ position: z.ZodOptional<z.ZodObject<{
237
+ x: z.ZodNumber;
238
+ y: z.ZodNumber;
239
+ }, "strip", z.ZodTypeAny, {
240
+ x: number;
241
+ y: number;
242
+ }, {
243
+ x: number;
244
+ y: number;
245
+ }>>;
246
+ id: z.ZodString;
247
+ type: z.ZodString;
248
+ name: z.ZodString;
249
+ }, "strip", z.ZodTypeAny, {
250
+ name: string;
251
+ type: string;
252
+ id: string;
253
+ args?: Record<string, unknown> | undefined;
254
+ inputs?: Record<string, {
255
+ instanceId: string;
256
+ output: string;
257
+ }[]> | undefined;
258
+ hubInputs?: Record<string, {
259
+ hubId: string;
260
+ }[]> | undefined;
261
+ injectionInputs?: {
262
+ hubId: string;
263
+ }[] | undefined;
264
+ position?: {
265
+ x: number;
266
+ y: number;
267
+ } | undefined;
268
+ parentId?: string | undefined;
269
+ outputs?: Record<string, {
270
+ instanceId: string;
271
+ output: string;
272
+ }[]> | undefined;
273
+ }, {
274
+ name: string;
275
+ type: string;
276
+ id: string;
277
+ args?: Record<string, unknown> | undefined;
278
+ inputs?: Record<string, {
279
+ instanceId: string;
280
+ output: string;
281
+ }[]> | undefined;
282
+ hubInputs?: Record<string, {
283
+ hubId: string;
284
+ }[]> | undefined;
285
+ injectionInputs?: {
286
+ hubId: string;
287
+ }[] | undefined;
288
+ position?: {
289
+ x: number;
290
+ y: number;
291
+ } | undefined;
292
+ parentId?: string | undefined;
293
+ outputs?: Record<string, {
294
+ instanceId: string;
295
+ output: string;
296
+ }[]> | undefined;
297
+ }>;
298
+ children: z.ZodArray<z.ZodObject<{
299
+ parentId: z.ZodOptional<z.ZodString>;
300
+ outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
301
+ instanceId: z.ZodString;
302
+ output: z.ZodString;
303
+ }, "strip", z.ZodTypeAny, {
304
+ instanceId: string;
305
+ output: string;
306
+ }, {
307
+ instanceId: string;
308
+ output: string;
309
+ }>, "many">>>;
310
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
311
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
312
+ instanceId: z.ZodString;
313
+ output: z.ZodString;
314
+ }, "strip", z.ZodTypeAny, {
315
+ instanceId: string;
316
+ output: string;
317
+ }, {
318
+ instanceId: string;
319
+ output: string;
320
+ }>, "many">>>;
321
+ hubInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
322
+ hubId: z.ZodString;
323
+ }, "strip", z.ZodTypeAny, {
324
+ hubId: string;
325
+ }, {
326
+ hubId: string;
327
+ }>, "many">>>;
328
+ injectionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
329
+ hubId: z.ZodString;
330
+ }, "strip", z.ZodTypeAny, {
331
+ hubId: string;
332
+ }, {
333
+ hubId: string;
334
+ }>, "many">>;
335
+ position: z.ZodOptional<z.ZodObject<{
336
+ x: z.ZodNumber;
337
+ y: z.ZodNumber;
338
+ }, "strip", z.ZodTypeAny, {
339
+ x: number;
340
+ y: number;
341
+ }, {
342
+ x: number;
343
+ y: number;
344
+ }>>;
345
+ id: z.ZodString;
346
+ type: z.ZodString;
347
+ name: z.ZodString;
348
+ }, "strip", z.ZodTypeAny, {
349
+ name: string;
350
+ type: string;
351
+ id: string;
352
+ args?: Record<string, unknown> | undefined;
353
+ inputs?: Record<string, {
354
+ instanceId: string;
355
+ output: string;
356
+ }[]> | undefined;
357
+ hubInputs?: Record<string, {
358
+ hubId: string;
359
+ }[]> | undefined;
360
+ injectionInputs?: {
361
+ hubId: string;
362
+ }[] | undefined;
363
+ position?: {
364
+ x: number;
365
+ y: number;
366
+ } | undefined;
367
+ parentId?: string | undefined;
368
+ outputs?: Record<string, {
369
+ instanceId: string;
370
+ output: string;
371
+ }[]> | undefined;
372
+ }, {
373
+ name: string;
374
+ type: string;
375
+ id: string;
376
+ args?: Record<string, unknown> | undefined;
377
+ inputs?: Record<string, {
378
+ instanceId: string;
379
+ output: string;
380
+ }[]> | undefined;
381
+ hubInputs?: Record<string, {
382
+ hubId: string;
383
+ }[]> | undefined;
384
+ injectionInputs?: {
385
+ hubId: string;
386
+ }[] | undefined;
387
+ position?: {
388
+ x: number;
389
+ y: number;
390
+ } | undefined;
391
+ parentId?: string | undefined;
392
+ outputs?: Record<string, {
393
+ instanceId: string;
394
+ output: string;
395
+ }[]> | undefined;
396
+ }>, "many">;
397
+ }, "strip", z.ZodTypeAny, {
398
+ instance: {
399
+ name: string;
400
+ type: string;
401
+ id: string;
402
+ args?: Record<string, unknown> | undefined;
403
+ inputs?: Record<string, {
404
+ instanceId: string;
405
+ output: string;
406
+ }[]> | undefined;
407
+ hubInputs?: Record<string, {
408
+ hubId: string;
409
+ }[]> | undefined;
410
+ injectionInputs?: {
411
+ hubId: string;
412
+ }[] | undefined;
413
+ position?: {
414
+ x: number;
415
+ y: number;
416
+ } | undefined;
417
+ parentId?: string | undefined;
418
+ outputs?: Record<string, {
419
+ instanceId: string;
420
+ output: string;
421
+ }[]> | undefined;
422
+ };
423
+ children: {
424
+ name: string;
425
+ type: string;
426
+ id: string;
427
+ args?: Record<string, unknown> | undefined;
428
+ inputs?: Record<string, {
429
+ instanceId: string;
430
+ output: string;
431
+ }[]> | undefined;
432
+ hubInputs?: Record<string, {
433
+ hubId: string;
434
+ }[]> | undefined;
435
+ injectionInputs?: {
436
+ hubId: string;
437
+ }[] | undefined;
438
+ position?: {
439
+ x: number;
440
+ y: number;
441
+ } | undefined;
442
+ parentId?: string | undefined;
443
+ outputs?: Record<string, {
444
+ instanceId: string;
445
+ output: string;
446
+ }[]> | undefined;
447
+ }[];
448
+ }, {
449
+ instance: {
450
+ name: string;
451
+ type: string;
452
+ id: string;
453
+ args?: Record<string, unknown> | undefined;
454
+ inputs?: Record<string, {
455
+ instanceId: string;
456
+ output: string;
457
+ }[]> | undefined;
458
+ hubInputs?: Record<string, {
459
+ hubId: string;
460
+ }[]> | undefined;
461
+ injectionInputs?: {
462
+ hubId: string;
463
+ }[] | undefined;
464
+ position?: {
465
+ x: number;
466
+ y: number;
467
+ } | undefined;
468
+ parentId?: string | undefined;
469
+ outputs?: Record<string, {
470
+ instanceId: string;
471
+ output: string;
472
+ }[]> | undefined;
473
+ };
474
+ children: {
475
+ name: string;
476
+ type: string;
477
+ id: string;
478
+ args?: Record<string, unknown> | undefined;
479
+ inputs?: Record<string, {
480
+ instanceId: string;
481
+ output: string;
482
+ }[]> | undefined;
483
+ hubInputs?: Record<string, {
484
+ hubId: string;
485
+ }[]> | undefined;
486
+ injectionInputs?: {
487
+ hubId: string;
488
+ }[] | undefined;
489
+ position?: {
490
+ x: number;
491
+ y: number;
492
+ } | undefined;
493
+ parentId?: string | undefined;
494
+ outputs?: Record<string, {
495
+ instanceId: string;
496
+ output: string;
497
+ }[]> | undefined;
498
+ }[];
499
+ }>;
500
+ declare const hubModelPatchSchema: z.ZodObject<{
501
+ position: z.ZodOptional<z.ZodObject<{
502
+ x: z.ZodNumber;
503
+ y: z.ZodNumber;
504
+ }, "strip", z.ZodTypeAny, {
505
+ x: number;
506
+ y: number;
507
+ }, {
508
+ x: number;
509
+ y: number;
510
+ }>>;
511
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
512
+ instanceId: z.ZodString;
513
+ output: z.ZodString;
514
+ }, "strip", z.ZodTypeAny, {
515
+ instanceId: string;
516
+ output: string;
517
+ }, {
518
+ instanceId: string;
519
+ output: string;
520
+ }>, "many">>;
521
+ injectionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
522
+ hubId: z.ZodString;
523
+ }, "strip", z.ZodTypeAny, {
524
+ hubId: string;
525
+ }, {
526
+ hubId: string;
527
+ }>, "many">>;
528
+ }, "strip", z.ZodTypeAny, {
529
+ inputs?: {
530
+ instanceId: string;
531
+ output: string;
532
+ }[] | undefined;
533
+ injectionInputs?: {
534
+ hubId: string;
535
+ }[] | undefined;
536
+ position?: {
537
+ x: number;
538
+ y: number;
539
+ } | undefined;
540
+ }, {
541
+ inputs?: {
542
+ instanceId: string;
543
+ output: string;
544
+ }[] | undefined;
545
+ injectionInputs?: {
546
+ hubId: string;
547
+ }[] | undefined;
548
+ position?: {
549
+ x: number;
550
+ y: number;
551
+ } | undefined;
552
+ }>;
553
+ declare const hubModelSchema: z.ZodObject<{
554
+ id: z.ZodString;
555
+ position: z.ZodObject<{
556
+ x: z.ZodNumber;
557
+ y: z.ZodNumber;
558
+ }, "strip", z.ZodTypeAny, {
559
+ x: number;
560
+ y: number;
561
+ }, {
562
+ x: number;
563
+ y: number;
564
+ }>;
565
+ inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
566
+ instanceId: z.ZodString;
567
+ output: z.ZodString;
568
+ }, "strip", z.ZodTypeAny, {
569
+ instanceId: string;
570
+ output: string;
571
+ }, {
572
+ instanceId: string;
573
+ output: string;
574
+ }>, "many">>;
575
+ injectionInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
576
+ hubId: z.ZodString;
577
+ }, "strip", z.ZodTypeAny, {
578
+ hubId: string;
579
+ }, {
580
+ hubId: string;
581
+ }>, "many">>;
582
+ }, "strip", z.ZodTypeAny, {
583
+ position: {
584
+ x: number;
585
+ y: number;
586
+ };
587
+ id: string;
588
+ inputs?: {
589
+ instanceId: string;
590
+ output: string;
591
+ }[] | undefined;
592
+ injectionInputs?: {
593
+ hubId: string;
594
+ }[] | undefined;
595
+ }, {
596
+ position: {
597
+ x: number;
598
+ y: number;
599
+ };
600
+ id: string;
601
+ inputs?: {
602
+ instanceId: string;
603
+ output: string;
604
+ }[] | undefined;
605
+ injectionInputs?: {
606
+ hubId: string;
607
+ }[] | undefined;
608
+ }>;
609
+ type InstanceModelPatch = z.infer<typeof instanceModelPatchSchema>;
610
+ type CompositeInstance = z.infer<typeof compositeInstanceSchema>;
611
+ type HubModel = z.infer<typeof hubModelSchema>;
612
+ type HubModelPatch = z.infer<typeof hubModelPatchSchema>;
613
+
614
+ declare const instanceStatusSchema: z.ZodEnum<["not_created", "updating", "destroying", "refreshing", "created", "error", "pending", "unknown"]>;
615
+ declare const instanceStatusFieldSchema: z.ZodObject<{
616
+ name: z.ZodString;
617
+ value: z.ZodOptional<z.ZodString>;
618
+ displayName: z.ZodOptional<z.ZodString>;
619
+ sensitive: z.ZodOptional<z.ZodBoolean>;
620
+ url: z.ZodOptional<z.ZodString>;
621
+ }, "strip", z.ZodTypeAny, {
622
+ name: string;
623
+ value?: string | undefined;
624
+ displayName?: string | undefined;
625
+ sensitive?: boolean | undefined;
626
+ url?: string | undefined;
627
+ }, {
628
+ name: string;
629
+ value?: string | undefined;
630
+ displayName?: string | undefined;
631
+ sensitive?: boolean | undefined;
632
+ url?: string | undefined;
633
+ }>;
634
+ declare const instanceFileMetaSchema: z.ZodObject<{
635
+ name: z.ZodString;
636
+ contentType: z.ZodString;
637
+ isBinary: z.ZodOptional<z.ZodBoolean>;
638
+ }, "strip", z.ZodTypeAny, {
639
+ name: string;
640
+ contentType: string;
641
+ isBinary?: boolean | undefined;
642
+ }, {
643
+ name: string;
644
+ contentType: string;
645
+ isBinary?: boolean | undefined;
646
+ }>;
647
+ declare const instanceFileSchema: z.ZodObject<{
648
+ content: z.ZodString;
649
+ name: z.ZodString;
650
+ contentType: z.ZodString;
651
+ isBinary: z.ZodOptional<z.ZodBoolean>;
652
+ }, "strip", z.ZodTypeAny, {
653
+ name: string;
654
+ contentType: string;
655
+ content: string;
656
+ isBinary?: boolean | undefined;
657
+ }, {
658
+ name: string;
659
+ contentType: string;
660
+ content: string;
661
+ isBinary?: boolean | undefined;
662
+ }>;
663
+ declare const instancePageBlockSchema: z.ZodUnion<[z.ZodObject<{
664
+ type: z.ZodLiteral<"markdown">;
665
+ content: z.ZodString;
666
+ }, "strip", z.ZodTypeAny, {
667
+ type: "markdown";
668
+ content: string;
669
+ }, {
670
+ type: "markdown";
671
+ content: string;
672
+ }>, z.ZodObject<{
673
+ type: z.ZodLiteral<"qr">;
674
+ content: z.ZodString;
675
+ showContent: z.ZodBoolean;
676
+ language: z.ZodOptional<z.ZodString>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ type: "qr";
679
+ content: string;
680
+ showContent: boolean;
681
+ language?: string | undefined;
682
+ }, {
683
+ type: "qr";
684
+ content: string;
685
+ showContent: boolean;
686
+ language?: string | undefined;
687
+ }>, z.ZodObject<{
688
+ type: z.ZodLiteral<"file">;
689
+ fileMeta: z.ZodObject<{
690
+ name: z.ZodString;
691
+ contentType: z.ZodString;
692
+ isBinary: z.ZodOptional<z.ZodBoolean>;
693
+ }, "strip", z.ZodTypeAny, {
694
+ name: string;
695
+ contentType: string;
696
+ isBinary?: boolean | undefined;
697
+ }, {
698
+ name: string;
699
+ contentType: string;
700
+ isBinary?: boolean | undefined;
701
+ }>;
702
+ }, "strip", z.ZodTypeAny, {
703
+ type: "file";
704
+ fileMeta: {
705
+ name: string;
706
+ contentType: string;
707
+ isBinary?: boolean | undefined;
708
+ };
709
+ }, {
710
+ type: "file";
711
+ fileMeta: {
712
+ name: string;
713
+ contentType: string;
714
+ isBinary?: boolean | undefined;
715
+ };
716
+ }>]>;
717
+ declare const instancePageMetaSchema: z.ZodObject<{
718
+ name: z.ZodString;
719
+ title: z.ZodString;
720
+ }, "strip", z.ZodTypeAny, {
721
+ name: string;
722
+ title: string;
723
+ }, {
724
+ name: string;
725
+ title: string;
726
+ }>;
727
+ declare const instancePageSchema: z.ZodObject<{
728
+ content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
729
+ type: z.ZodLiteral<"markdown">;
730
+ content: z.ZodString;
731
+ }, "strip", z.ZodTypeAny, {
732
+ type: "markdown";
733
+ content: string;
734
+ }, {
735
+ type: "markdown";
736
+ content: string;
737
+ }>, z.ZodObject<{
738
+ type: z.ZodLiteral<"qr">;
739
+ content: z.ZodString;
740
+ showContent: z.ZodBoolean;
741
+ language: z.ZodOptional<z.ZodString>;
742
+ }, "strip", z.ZodTypeAny, {
743
+ type: "qr";
744
+ content: string;
745
+ showContent: boolean;
746
+ language?: string | undefined;
747
+ }, {
748
+ type: "qr";
749
+ content: string;
750
+ showContent: boolean;
751
+ language?: string | undefined;
752
+ }>, z.ZodObject<{
753
+ type: z.ZodLiteral<"file">;
754
+ fileMeta: z.ZodObject<{
755
+ name: z.ZodString;
756
+ contentType: z.ZodString;
757
+ isBinary: z.ZodOptional<z.ZodBoolean>;
758
+ }, "strip", z.ZodTypeAny, {
759
+ name: string;
760
+ contentType: string;
761
+ isBinary?: boolean | undefined;
762
+ }, {
763
+ name: string;
764
+ contentType: string;
765
+ isBinary?: boolean | undefined;
766
+ }>;
767
+ }, "strip", z.ZodTypeAny, {
768
+ type: "file";
769
+ fileMeta: {
770
+ name: string;
771
+ contentType: string;
772
+ isBinary?: boolean | undefined;
773
+ };
774
+ }, {
775
+ type: "file";
776
+ fileMeta: {
777
+ name: string;
778
+ contentType: string;
779
+ isBinary?: boolean | undefined;
780
+ };
781
+ }>]>, "many">;
782
+ name: z.ZodString;
783
+ title: z.ZodString;
784
+ }, "strip", z.ZodTypeAny, {
785
+ name: string;
786
+ content: ({
787
+ type: "markdown";
788
+ content: string;
789
+ } | {
790
+ type: "qr";
791
+ content: string;
792
+ showContent: boolean;
793
+ language?: string | undefined;
794
+ } | {
795
+ type: "file";
796
+ fileMeta: {
797
+ name: string;
798
+ contentType: string;
799
+ isBinary?: boolean | undefined;
800
+ };
801
+ })[];
802
+ title: string;
803
+ }, {
804
+ name: string;
805
+ content: ({
806
+ type: "markdown";
807
+ content: string;
808
+ } | {
809
+ type: "qr";
810
+ content: string;
811
+ showContent: boolean;
812
+ language?: string | undefined;
813
+ } | {
814
+ type: "file";
815
+ fileMeta: {
816
+ name: string;
817
+ contentType: string;
818
+ isBinary?: boolean | undefined;
819
+ };
820
+ })[];
821
+ title: string;
822
+ }>;
823
+ declare const instanceTerminalMetaSchema: z.ZodObject<{
824
+ name: z.ZodString;
825
+ title: z.ZodString;
826
+ description: z.ZodOptional<z.ZodString>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ name: string;
829
+ title: string;
830
+ description?: string | undefined;
831
+ }, {
832
+ name: string;
833
+ title: string;
834
+ description?: string | undefined;
835
+ }>;
836
+ declare const instanceTerminalFileSchema: z.ZodObject<{
837
+ content: z.ZodOptional<z.ZodString>;
838
+ isBinary: z.ZodOptional<z.ZodBoolean>;
839
+ }, "strip", z.ZodTypeAny, {
840
+ isBinary?: boolean | undefined;
841
+ content?: string | undefined;
842
+ }, {
843
+ isBinary?: boolean | undefined;
844
+ content?: string | undefined;
845
+ }>;
846
+ declare const instanceTerminalSchema: z.ZodObject<{
847
+ image: z.ZodString;
848
+ command: z.ZodArray<z.ZodString, "many">;
849
+ cwd: z.ZodOptional<z.ZodString>;
850
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
851
+ files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
852
+ content: z.ZodOptional<z.ZodString>;
853
+ isBinary: z.ZodOptional<z.ZodBoolean>;
854
+ }, "strip", z.ZodTypeAny, {
855
+ isBinary?: boolean | undefined;
856
+ content?: string | undefined;
857
+ }, {
858
+ isBinary?: boolean | undefined;
859
+ content?: string | undefined;
860
+ }>>>;
861
+ name: z.ZodString;
862
+ title: z.ZodString;
863
+ description: z.ZodOptional<z.ZodString>;
864
+ }, "strip", z.ZodTypeAny, {
865
+ name: string;
866
+ title: string;
867
+ image: string;
868
+ command: string[];
869
+ description?: string | undefined;
870
+ cwd?: string | undefined;
871
+ env?: Record<string, string> | undefined;
872
+ files?: Record<string, {
873
+ isBinary?: boolean | undefined;
874
+ content?: string | undefined;
875
+ }> | undefined;
876
+ }, {
877
+ name: string;
878
+ title: string;
879
+ image: string;
880
+ command: string[];
881
+ description?: string | undefined;
882
+ cwd?: string | undefined;
883
+ env?: Record<string, string> | undefined;
884
+ files?: Record<string, {
885
+ isBinary?: boolean | undefined;
886
+ content?: string | undefined;
887
+ }> | undefined;
888
+ }>;
889
+ declare const instanceTriggerSpecSchema: z.ZodUnion<[z.ZodObject<{
890
+ type: z.ZodLiteral<"before-destroy">;
891
+ }, "strip", z.ZodTypeAny, {
892
+ type: "before-destroy";
893
+ }, {
894
+ type: "before-destroy";
895
+ }>, z.ZodObject<{
896
+ type: z.ZodLiteral<"schedule">;
897
+ schedule: z.ZodString;
898
+ }, "strip", z.ZodTypeAny, {
899
+ type: "schedule";
900
+ schedule: string;
901
+ }, {
902
+ type: "schedule";
903
+ schedule: string;
904
+ }>]>;
905
+ declare const instanceTriggerSchema: z.ZodObject<{
906
+ name: z.ZodString;
907
+ title: z.ZodString;
908
+ description: z.ZodOptional<z.ZodString>;
909
+ spec: z.ZodUnion<[z.ZodObject<{
910
+ type: z.ZodLiteral<"before-destroy">;
911
+ }, "strip", z.ZodTypeAny, {
912
+ type: "before-destroy";
913
+ }, {
914
+ type: "before-destroy";
915
+ }>, z.ZodObject<{
916
+ type: z.ZodLiteral<"schedule">;
917
+ schedule: z.ZodString;
918
+ }, "strip", z.ZodTypeAny, {
919
+ type: "schedule";
920
+ schedule: string;
921
+ }, {
922
+ type: "schedule";
923
+ schedule: string;
924
+ }>]>;
925
+ }, "strip", z.ZodTypeAny, {
926
+ name: string;
927
+ title: string;
928
+ spec: {
929
+ type: "before-destroy";
930
+ } | {
931
+ type: "schedule";
932
+ schedule: string;
933
+ };
934
+ description?: string | undefined;
935
+ }, {
936
+ name: string;
937
+ title: string;
938
+ spec: {
939
+ type: "before-destroy";
940
+ } | {
941
+ type: "schedule";
942
+ schedule: string;
943
+ };
944
+ description?: string | undefined;
945
+ }>;
946
+ declare const instanceTriggerInvocationSchema: z.ZodObject<{
947
+ name: z.ZodString;
948
+ }, "strip", z.ZodTypeAny, {
949
+ name: string;
950
+ }, {
951
+ name: string;
952
+ }>;
953
+ declare const instanceStateSchema: z.ZodObject<{
954
+ id: z.ZodString;
955
+ parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
956
+ status: z.ZodEnum<["not_created", "updating", "destroying", "refreshing", "created", "error", "pending", "unknown"]>;
957
+ latestOperationId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
958
+ currentResourceCount: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
959
+ totalResourceCount: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
960
+ inputHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
961
+ outputHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
962
+ error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
963
+ statusFields: z.ZodDefault<z.ZodArray<z.ZodObject<{
964
+ name: z.ZodString;
965
+ value: z.ZodOptional<z.ZodString>;
966
+ displayName: z.ZodOptional<z.ZodString>;
967
+ sensitive: z.ZodOptional<z.ZodBoolean>;
968
+ url: z.ZodOptional<z.ZodString>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ name: string;
971
+ value?: string | undefined;
972
+ displayName?: string | undefined;
973
+ sensitive?: boolean | undefined;
974
+ url?: string | undefined;
975
+ }, {
976
+ name: string;
977
+ value?: string | undefined;
978
+ displayName?: string | undefined;
979
+ sensitive?: boolean | undefined;
980
+ url?: string | undefined;
981
+ }>, "many">>;
982
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
983
+ name: z.ZodString;
984
+ contentType: z.ZodString;
985
+ isBinary: z.ZodOptional<z.ZodBoolean>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ name: string;
988
+ contentType: string;
989
+ isBinary?: boolean | undefined;
990
+ }, {
991
+ name: string;
992
+ contentType: string;
993
+ isBinary?: boolean | undefined;
994
+ }>, "many">>;
995
+ pages: z.ZodDefault<z.ZodArray<z.ZodObject<{
996
+ name: z.ZodString;
997
+ title: z.ZodString;
998
+ }, "strip", z.ZodTypeAny, {
999
+ name: string;
1000
+ title: string;
1001
+ }, {
1002
+ name: string;
1003
+ title: string;
1004
+ }>, "many">>;
1005
+ terminals: z.ZodDefault<z.ZodArray<z.ZodObject<{
1006
+ name: z.ZodString;
1007
+ title: z.ZodString;
1008
+ description: z.ZodOptional<z.ZodString>;
1009
+ }, "strip", z.ZodTypeAny, {
1010
+ name: string;
1011
+ title: string;
1012
+ description?: string | undefined;
1013
+ }, {
1014
+ name: string;
1015
+ title: string;
1016
+ description?: string | undefined;
1017
+ }>, "many">>;
1018
+ triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
1019
+ name: z.ZodString;
1020
+ title: z.ZodString;
1021
+ description: z.ZodOptional<z.ZodString>;
1022
+ spec: z.ZodUnion<[z.ZodObject<{
1023
+ type: z.ZodLiteral<"before-destroy">;
1024
+ }, "strip", z.ZodTypeAny, {
1025
+ type: "before-destroy";
1026
+ }, {
1027
+ type: "before-destroy";
1028
+ }>, z.ZodObject<{
1029
+ type: z.ZodLiteral<"schedule">;
1030
+ schedule: z.ZodString;
1031
+ }, "strip", z.ZodTypeAny, {
1032
+ type: "schedule";
1033
+ schedule: string;
1034
+ }, {
1035
+ type: "schedule";
1036
+ schedule: string;
1037
+ }>]>;
1038
+ }, "strip", z.ZodTypeAny, {
1039
+ name: string;
1040
+ title: string;
1041
+ spec: {
1042
+ type: "before-destroy";
1043
+ } | {
1044
+ type: "schedule";
1045
+ schedule: string;
1046
+ };
1047
+ description?: string | undefined;
1048
+ }, {
1049
+ name: string;
1050
+ title: string;
1051
+ spec: {
1052
+ type: "before-destroy";
1053
+ } | {
1054
+ type: "schedule";
1055
+ schedule: string;
1056
+ };
1057
+ description?: string | undefined;
1058
+ }>, "many">>;
1059
+ }, "strip", z.ZodTypeAny, {
1060
+ error: string | null;
1061
+ status: "error" | "unknown" | "not_created" | "updating" | "destroying" | "refreshing" | "created" | "pending";
1062
+ id: string;
1063
+ parentId: string | null;
1064
+ files: {
1065
+ name: string;
1066
+ contentType: string;
1067
+ isBinary?: boolean | undefined;
1068
+ }[];
1069
+ latestOperationId: string | null;
1070
+ currentResourceCount: number | null;
1071
+ totalResourceCount: number | null;
1072
+ inputHash: string | null;
1073
+ outputHash: string | null;
1074
+ statusFields: {
1075
+ name: string;
1076
+ value?: string | undefined;
1077
+ displayName?: string | undefined;
1078
+ sensitive?: boolean | undefined;
1079
+ url?: string | undefined;
1080
+ }[];
1081
+ pages: {
1082
+ name: string;
1083
+ title: string;
1084
+ }[];
1085
+ terminals: {
1086
+ name: string;
1087
+ title: string;
1088
+ description?: string | undefined;
1089
+ }[];
1090
+ triggers: {
1091
+ name: string;
1092
+ title: string;
1093
+ spec: {
1094
+ type: "before-destroy";
1095
+ } | {
1096
+ type: "schedule";
1097
+ schedule: string;
1098
+ };
1099
+ description?: string | undefined;
1100
+ }[];
1101
+ }, {
1102
+ status: "error" | "unknown" | "not_created" | "updating" | "destroying" | "refreshing" | "created" | "pending";
1103
+ id: string;
1104
+ error?: string | null | undefined;
1105
+ parentId?: string | null | undefined;
1106
+ files?: {
1107
+ name: string;
1108
+ contentType: string;
1109
+ isBinary?: boolean | undefined;
1110
+ }[] | undefined;
1111
+ latestOperationId?: string | null | undefined;
1112
+ currentResourceCount?: number | null | undefined;
1113
+ totalResourceCount?: number | null | undefined;
1114
+ inputHash?: string | null | undefined;
1115
+ outputHash?: string | null | undefined;
1116
+ statusFields?: {
1117
+ name: string;
1118
+ value?: string | undefined;
1119
+ displayName?: string | undefined;
1120
+ sensitive?: boolean | undefined;
1121
+ url?: string | undefined;
1122
+ }[] | undefined;
1123
+ pages?: {
1124
+ name: string;
1125
+ title: string;
1126
+ }[] | undefined;
1127
+ terminals?: {
1128
+ name: string;
1129
+ title: string;
1130
+ description?: string | undefined;
1131
+ }[] | undefined;
1132
+ triggers?: {
1133
+ name: string;
1134
+ title: string;
1135
+ spec: {
1136
+ type: "before-destroy";
1137
+ } | {
1138
+ type: "schedule";
1139
+ schedule: string;
1140
+ };
1141
+ description?: string | undefined;
1142
+ }[] | undefined;
1143
+ }>;
1144
+ declare const instanceStatePatchSchema: z.ZodObject<{
1145
+ secrets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1146
+ logLine: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1147
+ id: z.ZodOptional<z.ZodString>;
1148
+ parentId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1149
+ status: z.ZodOptional<z.ZodEnum<["not_created", "updating", "destroying", "refreshing", "created", "error", "pending", "unknown"]>>;
1150
+ latestOperationId: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1151
+ currentResourceCount: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
1152
+ totalResourceCount: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
1153
+ inputHash: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1154
+ outputHash: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1155
+ error: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodString>>>;
1156
+ statusFields: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
1157
+ name: z.ZodString;
1158
+ value: z.ZodOptional<z.ZodString>;
1159
+ displayName: z.ZodOptional<z.ZodString>;
1160
+ sensitive: z.ZodOptional<z.ZodBoolean>;
1161
+ url: z.ZodOptional<z.ZodString>;
1162
+ }, "strip", z.ZodTypeAny, {
1163
+ name: string;
1164
+ value?: string | undefined;
1165
+ displayName?: string | undefined;
1166
+ sensitive?: boolean | undefined;
1167
+ url?: string | undefined;
1168
+ }, {
1169
+ name: string;
1170
+ value?: string | undefined;
1171
+ displayName?: string | undefined;
1172
+ sensitive?: boolean | undefined;
1173
+ url?: string | undefined;
1174
+ }>, "many">>>;
1175
+ files: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
1176
+ name: z.ZodString;
1177
+ contentType: z.ZodString;
1178
+ isBinary: z.ZodOptional<z.ZodBoolean>;
1179
+ }, "strip", z.ZodTypeAny, {
1180
+ name: string;
1181
+ contentType: string;
1182
+ isBinary?: boolean | undefined;
1183
+ }, {
1184
+ name: string;
1185
+ contentType: string;
1186
+ isBinary?: boolean | undefined;
1187
+ }>, "many">>>;
1188
+ pages: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
1189
+ name: z.ZodString;
1190
+ title: z.ZodString;
1191
+ }, "strip", z.ZodTypeAny, {
1192
+ name: string;
1193
+ title: string;
1194
+ }, {
1195
+ name: string;
1196
+ title: string;
1197
+ }>, "many">>>;
1198
+ terminals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
1199
+ name: z.ZodString;
1200
+ title: z.ZodString;
1201
+ description: z.ZodOptional<z.ZodString>;
1202
+ }, "strip", z.ZodTypeAny, {
1203
+ name: string;
1204
+ title: string;
1205
+ description?: string | undefined;
1206
+ }, {
1207
+ name: string;
1208
+ title: string;
1209
+ description?: string | undefined;
1210
+ }>, "many">>>;
1211
+ triggers: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
1212
+ name: z.ZodString;
1213
+ title: z.ZodString;
1214
+ description: z.ZodOptional<z.ZodString>;
1215
+ spec: z.ZodUnion<[z.ZodObject<{
1216
+ type: z.ZodLiteral<"before-destroy">;
1217
+ }, "strip", z.ZodTypeAny, {
1218
+ type: "before-destroy";
1219
+ }, {
1220
+ type: "before-destroy";
1221
+ }>, z.ZodObject<{
1222
+ type: z.ZodLiteral<"schedule">;
1223
+ schedule: z.ZodString;
1224
+ }, "strip", z.ZodTypeAny, {
1225
+ type: "schedule";
1226
+ schedule: string;
1227
+ }, {
1228
+ type: "schedule";
1229
+ schedule: string;
1230
+ }>]>;
1231
+ }, "strip", z.ZodTypeAny, {
1232
+ name: string;
1233
+ title: string;
1234
+ spec: {
1235
+ type: "before-destroy";
1236
+ } | {
1237
+ type: "schedule";
1238
+ schedule: string;
1239
+ };
1240
+ description?: string | undefined;
1241
+ }, {
1242
+ name: string;
1243
+ title: string;
1244
+ spec: {
1245
+ type: "before-destroy";
1246
+ } | {
1247
+ type: "schedule";
1248
+ schedule: string;
1249
+ };
1250
+ description?: string | undefined;
1251
+ }>, "many">>>;
1252
+ }, "strip", z.ZodTypeAny, {
1253
+ error?: string | null | undefined;
1254
+ status?: "error" | "unknown" | "not_created" | "updating" | "destroying" | "refreshing" | "created" | "pending" | undefined;
1255
+ id?: string | undefined;
1256
+ parentId?: string | null | undefined;
1257
+ files?: {
1258
+ name: string;
1259
+ contentType: string;
1260
+ isBinary?: boolean | undefined;
1261
+ }[] | undefined;
1262
+ latestOperationId?: string | null | undefined;
1263
+ currentResourceCount?: number | null | undefined;
1264
+ totalResourceCount?: number | null | undefined;
1265
+ inputHash?: string | null | undefined;
1266
+ outputHash?: string | null | undefined;
1267
+ statusFields?: {
1268
+ name: string;
1269
+ value?: string | undefined;
1270
+ displayName?: string | undefined;
1271
+ sensitive?: boolean | undefined;
1272
+ url?: string | undefined;
1273
+ }[] | undefined;
1274
+ pages?: {
1275
+ name: string;
1276
+ title: string;
1277
+ }[] | undefined;
1278
+ terminals?: {
1279
+ name: string;
1280
+ title: string;
1281
+ description?: string | undefined;
1282
+ }[] | undefined;
1283
+ triggers?: {
1284
+ name: string;
1285
+ title: string;
1286
+ spec: {
1287
+ type: "before-destroy";
1288
+ } | {
1289
+ type: "schedule";
1290
+ schedule: string;
1291
+ };
1292
+ description?: string | undefined;
1293
+ }[] | undefined;
1294
+ secrets?: Record<string, string> | null | undefined;
1295
+ logLine?: string | null | undefined;
1296
+ }, {
1297
+ error?: string | null | undefined;
1298
+ status?: "error" | "unknown" | "not_created" | "updating" | "destroying" | "refreshing" | "created" | "pending" | undefined;
1299
+ id?: string | undefined;
1300
+ parentId?: string | null | undefined;
1301
+ files?: {
1302
+ name: string;
1303
+ contentType: string;
1304
+ isBinary?: boolean | undefined;
1305
+ }[] | undefined;
1306
+ latestOperationId?: string | null | undefined;
1307
+ currentResourceCount?: number | null | undefined;
1308
+ totalResourceCount?: number | null | undefined;
1309
+ inputHash?: string | null | undefined;
1310
+ outputHash?: string | null | undefined;
1311
+ statusFields?: {
1312
+ name: string;
1313
+ value?: string | undefined;
1314
+ displayName?: string | undefined;
1315
+ sensitive?: boolean | undefined;
1316
+ url?: string | undefined;
1317
+ }[] | undefined;
1318
+ pages?: {
1319
+ name: string;
1320
+ title: string;
1321
+ }[] | undefined;
1322
+ terminals?: {
1323
+ name: string;
1324
+ title: string;
1325
+ description?: string | undefined;
1326
+ }[] | undefined;
1327
+ triggers?: {
1328
+ name: string;
1329
+ title: string;
1330
+ spec: {
1331
+ type: "before-destroy";
1332
+ } | {
1333
+ type: "schedule";
1334
+ schedule: string;
1335
+ };
1336
+ description?: string | undefined;
1337
+ }[] | undefined;
1338
+ secrets?: Record<string, string> | null | undefined;
1339
+ logLine?: string | null | undefined;
1340
+ }>;
1341
+ type InstanceStatusField = z.infer<typeof instanceStatusFieldSchema>;
1342
+ type InstanceTerminal = z.infer<typeof instanceTerminalSchema>;
1343
+ type InstanceStatus = z.infer<typeof instanceStatusSchema>;
1344
+ type InstanceState = z.infer<typeof instanceStateSchema>;
1345
+ type InstanceStatePatch = z.infer<typeof instanceStatePatchSchema>;
1346
+ type InstancePageBlock = z.infer<typeof instancePageBlockSchema>;
1347
+ type InstancePageMeta = z.infer<typeof instancePageMetaSchema>;
1348
+ type InstanceFileMeta = z.infer<typeof instanceFileMetaSchema>;
1349
+ type InstanceTriggerSpec = z.infer<typeof instanceTriggerSpecSchema>;
1350
+ type InstanceTrigger = z.infer<typeof instanceTriggerSchema>;
1351
+ type InstanceTriggerInvocation = z.infer<typeof instanceTriggerInvocationSchema>;
1352
+ declare function createInstanceState(id: string, status?: InstanceStatus, fields?: Partial<InstanceState>): InstanceState;
1353
+ declare function applyPartialInstanceState(states: Map<string, InstanceState>, patch: Partial<InstanceState>): InstanceState;
1354
+ declare function createInstanceStateFrontendPatch(patch: InstanceStatePatch): Partial<InstanceState>;
1355
+
1356
+ declare const operationTypeSchema: z.ZodEnum<["update", "destroy", "recreate", "refresh", "evaluate"]>;
1357
+ declare const operationStatusSchema: z.ZodEnum<["pending", "evaluating", "running", "completed", "failed", "cancelled"]>;
1358
+ declare const projectOperationSchema: z.ZodObject<{
1359
+ id: z.ZodString;
1360
+ projectId: z.ZodString;
1361
+ type: z.ZodEnum<["update", "destroy", "recreate", "refresh", "evaluate"]>;
1362
+ status: z.ZodEnum<["pending", "evaluating", "running", "completed", "failed", "cancelled"]>;
1363
+ instanceIds: z.ZodArray<z.ZodString, "many">;
1364
+ error: z.ZodNullable<z.ZodString>;
1365
+ startedAt: z.ZodNumber;
1366
+ completedAt: z.ZodNullable<z.ZodNumber>;
1367
+ }, "strip", z.ZodTypeAny, {
1368
+ error: string | null;
1369
+ type: "update" | "refresh" | "destroy" | "recreate" | "evaluate";
1370
+ status: "pending" | "evaluating" | "running" | "completed" | "failed" | "cancelled";
1371
+ projectId: string;
1372
+ instanceIds: string[];
1373
+ id: string;
1374
+ startedAt: number;
1375
+ completedAt: number | null;
1376
+ }, {
1377
+ error: string | null;
1378
+ type: "update" | "refresh" | "destroy" | "recreate" | "evaluate";
1379
+ status: "pending" | "evaluating" | "running" | "completed" | "failed" | "cancelled";
1380
+ projectId: string;
1381
+ instanceIds: string[];
1382
+ id: string;
1383
+ startedAt: number;
1384
+ completedAt: number | null;
1385
+ }>;
1386
+ declare const projectOperationRequestSchema: z.ZodObject<{
1387
+ projectId: z.ZodString;
1388
+ type: z.ZodEnum<["update", "destroy", "recreate", "refresh", "evaluate"]>;
1389
+ instanceIds: z.ZodArray<z.ZodString, "many">;
1390
+ }, "strip", z.ZodTypeAny, {
1391
+ type: "update" | "refresh" | "destroy" | "recreate" | "evaluate";
1392
+ projectId: string;
1393
+ instanceIds: string[];
1394
+ }, {
1395
+ type: "update" | "refresh" | "destroy" | "recreate" | "evaluate";
1396
+ projectId: string;
1397
+ instanceIds: string[];
1398
+ }>;
1399
+ type OperationType = z.infer<typeof operationTypeSchema>;
1400
+ type OperationStatus = z.infer<typeof operationStatusSchema>;
1401
+ type ProjectOperation = z.infer<typeof projectOperationSchema>;
1402
+ type ProjectOperationRequest = z.infer<typeof projectOperationRequestSchema>;
1403
+ declare function isFinalOperationStatus(status: OperationStatus): boolean;
1404
+
1405
+ declare const terminalSessionSchema: z.ZodObject<{
1406
+ id: z.ZodString;
1407
+ terminalName: z.ZodString;
1408
+ }, "strip", z.ZodTypeAny, {
1409
+ id: string;
1410
+ terminalName: string;
1411
+ }, {
1412
+ id: string;
1413
+ terminalName: string;
1414
+ }>;
1415
+ type TerminalSession = z.infer<typeof terminalSessionSchema>;
1416
+
1417
+ export { instanceTriggerSchema as A, instanceTriggerInvocationSchema as B, type CompositeInstance as C, instanceStateSchema as D, instanceStatePatchSchema as E, type InstanceStatusField as F, type InstancePageMeta as G, type HubModel as H, type InstanceModelPatch as I, type InstanceFileMeta as J, type InstanceTriggerSpec as K, type InstanceTrigger as L, type InstanceTriggerInvocation as M, createInstanceState as N, applyPartialInstanceState as O, type ProjectOperation as P, createInstanceStateFrontendPatch as Q, operationTypeSchema as R, operationStatusSchema as S, type TerminalSession as T, projectOperationSchema as U, projectOperationRequestSchema as V, type OperationType as W, type OperationStatus as X, isFinalOperationStatus as Y, terminalSessionSchema as Z, type HubModelPatch as a, type InstanceState as b, type InstanceStatus as c, type InstanceStatePatch as d, type InstancePageBlock as e, type InstanceTerminal as f, type ProjectOperationRequest as g, hubInstanceInputSchema as h, instanceInputSchema as i, instanceModelPatchSchema as j, instanceModelSchema as k, compositeInstanceSchema as l, hubModelPatchSchema as m, hubModelSchema as n, instanceStatusSchema as o, positionSchema as p, instanceStatusFieldSchema as q, instanceFileMetaSchema as r, instanceFileSchema as s, instancePageBlockSchema as t, instancePageMetaSchema as u, instancePageSchema as v, instanceTerminalMetaSchema as w, instanceTerminalFileSchema as x, instanceTerminalSchema as y, instanceTriggerSpecSchema as z };