@highstate/backend 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +93 -47
- package/dist/index.mjs +907 -393
- package/dist/library/worker/main.mjs +3 -8
- package/dist/shared/index.d.ts +80 -16
- package/dist/shared/index.mjs +52 -2
- package/dist/terminal-C1HuyJ6e.mjs +512 -0
- package/dist/terminal-_gg6j6_K.d.ts +1417 -0
- package/package.json +6 -5
- package/dist/input-hash-C8HEDMjz.mjs +0 -292
- package/dist/operation-8k4Tv4dw.d.ts +0 -841
@@ -1,841 +0,0 @@
|
|
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
|
-
type: z.ZodString;
|
15
|
-
instanceId: z.ZodString;
|
16
|
-
output: z.ZodString;
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
18
|
-
type: string;
|
19
|
-
instanceId: string;
|
20
|
-
output: string;
|
21
|
-
}, {
|
22
|
-
type: string;
|
23
|
-
instanceId: string;
|
24
|
-
output: string;
|
25
|
-
}>;
|
26
|
-
declare const instanceInputMapSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
27
|
-
type: z.ZodString;
|
28
|
-
instanceId: z.ZodString;
|
29
|
-
output: z.ZodString;
|
30
|
-
}, "strip", z.ZodTypeAny, {
|
31
|
-
type: string;
|
32
|
-
instanceId: string;
|
33
|
-
output: string;
|
34
|
-
}, {
|
35
|
-
type: string;
|
36
|
-
instanceId: string;
|
37
|
-
output: string;
|
38
|
-
}>, z.ZodArray<z.ZodObject<{
|
39
|
-
type: z.ZodString;
|
40
|
-
instanceId: z.ZodString;
|
41
|
-
output: z.ZodString;
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
43
|
-
type: string;
|
44
|
-
instanceId: string;
|
45
|
-
output: string;
|
46
|
-
}, {
|
47
|
-
type: string;
|
48
|
-
instanceId: string;
|
49
|
-
output: string;
|
50
|
-
}>, "many">]>>;
|
51
|
-
declare const instanceModelSchema: z.ZodObject<{
|
52
|
-
id: z.ZodString;
|
53
|
-
parentId: z.ZodOptional<z.ZodString>;
|
54
|
-
type: z.ZodString;
|
55
|
-
name: z.ZodString;
|
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
|
-
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
67
|
-
inputs: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
68
|
-
type: z.ZodString;
|
69
|
-
instanceId: z.ZodString;
|
70
|
-
output: z.ZodString;
|
71
|
-
}, "strip", z.ZodTypeAny, {
|
72
|
-
type: string;
|
73
|
-
instanceId: string;
|
74
|
-
output: string;
|
75
|
-
}, {
|
76
|
-
type: string;
|
77
|
-
instanceId: string;
|
78
|
-
output: string;
|
79
|
-
}>, z.ZodArray<z.ZodObject<{
|
80
|
-
type: z.ZodString;
|
81
|
-
instanceId: z.ZodString;
|
82
|
-
output: z.ZodString;
|
83
|
-
}, "strip", z.ZodTypeAny, {
|
84
|
-
type: string;
|
85
|
-
instanceId: string;
|
86
|
-
output: string;
|
87
|
-
}, {
|
88
|
-
type: string;
|
89
|
-
instanceId: string;
|
90
|
-
output: string;
|
91
|
-
}>, "many">]>>;
|
92
|
-
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
93
|
-
type: z.ZodString;
|
94
|
-
instanceId: z.ZodString;
|
95
|
-
output: z.ZodString;
|
96
|
-
}, "strip", z.ZodTypeAny, {
|
97
|
-
type: string;
|
98
|
-
instanceId: string;
|
99
|
-
output: string;
|
100
|
-
}, {
|
101
|
-
type: string;
|
102
|
-
instanceId: string;
|
103
|
-
output: string;
|
104
|
-
}>, z.ZodArray<z.ZodObject<{
|
105
|
-
type: z.ZodString;
|
106
|
-
instanceId: z.ZodString;
|
107
|
-
output: z.ZodString;
|
108
|
-
}, "strip", z.ZodTypeAny, {
|
109
|
-
type: string;
|
110
|
-
instanceId: string;
|
111
|
-
output: string;
|
112
|
-
}, {
|
113
|
-
type: string;
|
114
|
-
instanceId: string;
|
115
|
-
output: string;
|
116
|
-
}>, "many">]>>>;
|
117
|
-
}, "strip", z.ZodTypeAny, {
|
118
|
-
name: string;
|
119
|
-
type: string;
|
120
|
-
id: string;
|
121
|
-
args: Record<string, unknown>;
|
122
|
-
inputs: Record<string, {
|
123
|
-
type: string;
|
124
|
-
instanceId: string;
|
125
|
-
output: string;
|
126
|
-
} | {
|
127
|
-
type: string;
|
128
|
-
instanceId: string;
|
129
|
-
output: string;
|
130
|
-
}[]>;
|
131
|
-
parentId?: string | undefined;
|
132
|
-
position?: {
|
133
|
-
x: number;
|
134
|
-
y: number;
|
135
|
-
} | undefined;
|
136
|
-
outputs?: Record<string, {
|
137
|
-
type: string;
|
138
|
-
instanceId: string;
|
139
|
-
output: string;
|
140
|
-
} | {
|
141
|
-
type: string;
|
142
|
-
instanceId: string;
|
143
|
-
output: string;
|
144
|
-
}[]> | undefined;
|
145
|
-
}, {
|
146
|
-
name: string;
|
147
|
-
type: string;
|
148
|
-
id: string;
|
149
|
-
args: Record<string, unknown>;
|
150
|
-
inputs: Record<string, {
|
151
|
-
type: string;
|
152
|
-
instanceId: string;
|
153
|
-
output: string;
|
154
|
-
} | {
|
155
|
-
type: string;
|
156
|
-
instanceId: string;
|
157
|
-
output: string;
|
158
|
-
}[]>;
|
159
|
-
parentId?: string | undefined;
|
160
|
-
position?: {
|
161
|
-
x: number;
|
162
|
-
y: number;
|
163
|
-
} | undefined;
|
164
|
-
outputs?: Record<string, {
|
165
|
-
type: string;
|
166
|
-
instanceId: string;
|
167
|
-
output: string;
|
168
|
-
} | {
|
169
|
-
type: string;
|
170
|
-
instanceId: string;
|
171
|
-
output: string;
|
172
|
-
}[]> | undefined;
|
173
|
-
}>;
|
174
|
-
declare const compositeInstanceSchema: z.ZodObject<{
|
175
|
-
instance: z.ZodObject<{
|
176
|
-
id: z.ZodString;
|
177
|
-
parentId: z.ZodOptional<z.ZodString>;
|
178
|
-
type: z.ZodString;
|
179
|
-
name: z.ZodString;
|
180
|
-
position: z.ZodOptional<z.ZodObject<{
|
181
|
-
x: z.ZodNumber;
|
182
|
-
y: z.ZodNumber;
|
183
|
-
}, "strip", z.ZodTypeAny, {
|
184
|
-
x: number;
|
185
|
-
y: number;
|
186
|
-
}, {
|
187
|
-
x: number;
|
188
|
-
y: number;
|
189
|
-
}>>;
|
190
|
-
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
191
|
-
inputs: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
192
|
-
type: z.ZodString;
|
193
|
-
instanceId: z.ZodString;
|
194
|
-
output: z.ZodString;
|
195
|
-
}, "strip", z.ZodTypeAny, {
|
196
|
-
type: string;
|
197
|
-
instanceId: string;
|
198
|
-
output: string;
|
199
|
-
}, {
|
200
|
-
type: string;
|
201
|
-
instanceId: string;
|
202
|
-
output: string;
|
203
|
-
}>, z.ZodArray<z.ZodObject<{
|
204
|
-
type: z.ZodString;
|
205
|
-
instanceId: z.ZodString;
|
206
|
-
output: z.ZodString;
|
207
|
-
}, "strip", z.ZodTypeAny, {
|
208
|
-
type: string;
|
209
|
-
instanceId: string;
|
210
|
-
output: string;
|
211
|
-
}, {
|
212
|
-
type: string;
|
213
|
-
instanceId: string;
|
214
|
-
output: string;
|
215
|
-
}>, "many">]>>;
|
216
|
-
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
217
|
-
type: z.ZodString;
|
218
|
-
instanceId: z.ZodString;
|
219
|
-
output: z.ZodString;
|
220
|
-
}, "strip", z.ZodTypeAny, {
|
221
|
-
type: string;
|
222
|
-
instanceId: string;
|
223
|
-
output: string;
|
224
|
-
}, {
|
225
|
-
type: string;
|
226
|
-
instanceId: string;
|
227
|
-
output: string;
|
228
|
-
}>, z.ZodArray<z.ZodObject<{
|
229
|
-
type: z.ZodString;
|
230
|
-
instanceId: z.ZodString;
|
231
|
-
output: z.ZodString;
|
232
|
-
}, "strip", z.ZodTypeAny, {
|
233
|
-
type: string;
|
234
|
-
instanceId: string;
|
235
|
-
output: string;
|
236
|
-
}, {
|
237
|
-
type: string;
|
238
|
-
instanceId: string;
|
239
|
-
output: string;
|
240
|
-
}>, "many">]>>>;
|
241
|
-
}, "strip", z.ZodTypeAny, {
|
242
|
-
name: string;
|
243
|
-
type: string;
|
244
|
-
id: string;
|
245
|
-
args: Record<string, unknown>;
|
246
|
-
inputs: Record<string, {
|
247
|
-
type: string;
|
248
|
-
instanceId: string;
|
249
|
-
output: string;
|
250
|
-
} | {
|
251
|
-
type: string;
|
252
|
-
instanceId: string;
|
253
|
-
output: string;
|
254
|
-
}[]>;
|
255
|
-
parentId?: string | undefined;
|
256
|
-
position?: {
|
257
|
-
x: number;
|
258
|
-
y: number;
|
259
|
-
} | undefined;
|
260
|
-
outputs?: Record<string, {
|
261
|
-
type: string;
|
262
|
-
instanceId: string;
|
263
|
-
output: string;
|
264
|
-
} | {
|
265
|
-
type: string;
|
266
|
-
instanceId: string;
|
267
|
-
output: string;
|
268
|
-
}[]> | undefined;
|
269
|
-
}, {
|
270
|
-
name: string;
|
271
|
-
type: string;
|
272
|
-
id: string;
|
273
|
-
args: Record<string, unknown>;
|
274
|
-
inputs: Record<string, {
|
275
|
-
type: string;
|
276
|
-
instanceId: string;
|
277
|
-
output: string;
|
278
|
-
} | {
|
279
|
-
type: string;
|
280
|
-
instanceId: string;
|
281
|
-
output: string;
|
282
|
-
}[]>;
|
283
|
-
parentId?: string | undefined;
|
284
|
-
position?: {
|
285
|
-
x: number;
|
286
|
-
y: number;
|
287
|
-
} | undefined;
|
288
|
-
outputs?: Record<string, {
|
289
|
-
type: string;
|
290
|
-
instanceId: string;
|
291
|
-
output: string;
|
292
|
-
} | {
|
293
|
-
type: string;
|
294
|
-
instanceId: string;
|
295
|
-
output: string;
|
296
|
-
}[]> | undefined;
|
297
|
-
}>;
|
298
|
-
children: z.ZodArray<z.ZodObject<{
|
299
|
-
id: z.ZodString;
|
300
|
-
parentId: z.ZodOptional<z.ZodString>;
|
301
|
-
type: z.ZodString;
|
302
|
-
name: z.ZodString;
|
303
|
-
position: z.ZodOptional<z.ZodObject<{
|
304
|
-
x: z.ZodNumber;
|
305
|
-
y: z.ZodNumber;
|
306
|
-
}, "strip", z.ZodTypeAny, {
|
307
|
-
x: number;
|
308
|
-
y: number;
|
309
|
-
}, {
|
310
|
-
x: number;
|
311
|
-
y: number;
|
312
|
-
}>>;
|
313
|
-
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
314
|
-
inputs: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
315
|
-
type: z.ZodString;
|
316
|
-
instanceId: z.ZodString;
|
317
|
-
output: z.ZodString;
|
318
|
-
}, "strip", z.ZodTypeAny, {
|
319
|
-
type: string;
|
320
|
-
instanceId: string;
|
321
|
-
output: string;
|
322
|
-
}, {
|
323
|
-
type: string;
|
324
|
-
instanceId: string;
|
325
|
-
output: string;
|
326
|
-
}>, z.ZodArray<z.ZodObject<{
|
327
|
-
type: z.ZodString;
|
328
|
-
instanceId: z.ZodString;
|
329
|
-
output: z.ZodString;
|
330
|
-
}, "strip", z.ZodTypeAny, {
|
331
|
-
type: string;
|
332
|
-
instanceId: string;
|
333
|
-
output: string;
|
334
|
-
}, {
|
335
|
-
type: string;
|
336
|
-
instanceId: string;
|
337
|
-
output: string;
|
338
|
-
}>, "many">]>>;
|
339
|
-
outputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
340
|
-
type: z.ZodString;
|
341
|
-
instanceId: z.ZodString;
|
342
|
-
output: z.ZodString;
|
343
|
-
}, "strip", z.ZodTypeAny, {
|
344
|
-
type: string;
|
345
|
-
instanceId: string;
|
346
|
-
output: string;
|
347
|
-
}, {
|
348
|
-
type: string;
|
349
|
-
instanceId: string;
|
350
|
-
output: string;
|
351
|
-
}>, z.ZodArray<z.ZodObject<{
|
352
|
-
type: z.ZodString;
|
353
|
-
instanceId: z.ZodString;
|
354
|
-
output: z.ZodString;
|
355
|
-
}, "strip", z.ZodTypeAny, {
|
356
|
-
type: string;
|
357
|
-
instanceId: string;
|
358
|
-
output: string;
|
359
|
-
}, {
|
360
|
-
type: string;
|
361
|
-
instanceId: string;
|
362
|
-
output: string;
|
363
|
-
}>, "many">]>>>;
|
364
|
-
}, "strip", z.ZodTypeAny, {
|
365
|
-
name: string;
|
366
|
-
type: string;
|
367
|
-
id: string;
|
368
|
-
args: Record<string, unknown>;
|
369
|
-
inputs: Record<string, {
|
370
|
-
type: string;
|
371
|
-
instanceId: string;
|
372
|
-
output: string;
|
373
|
-
} | {
|
374
|
-
type: string;
|
375
|
-
instanceId: string;
|
376
|
-
output: string;
|
377
|
-
}[]>;
|
378
|
-
parentId?: string | undefined;
|
379
|
-
position?: {
|
380
|
-
x: number;
|
381
|
-
y: number;
|
382
|
-
} | undefined;
|
383
|
-
outputs?: Record<string, {
|
384
|
-
type: string;
|
385
|
-
instanceId: string;
|
386
|
-
output: string;
|
387
|
-
} | {
|
388
|
-
type: string;
|
389
|
-
instanceId: string;
|
390
|
-
output: string;
|
391
|
-
}[]> | undefined;
|
392
|
-
}, {
|
393
|
-
name: string;
|
394
|
-
type: string;
|
395
|
-
id: string;
|
396
|
-
args: Record<string, unknown>;
|
397
|
-
inputs: Record<string, {
|
398
|
-
type: string;
|
399
|
-
instanceId: string;
|
400
|
-
output: string;
|
401
|
-
} | {
|
402
|
-
type: string;
|
403
|
-
instanceId: string;
|
404
|
-
output: string;
|
405
|
-
}[]>;
|
406
|
-
parentId?: string | undefined;
|
407
|
-
position?: {
|
408
|
-
x: number;
|
409
|
-
y: number;
|
410
|
-
} | undefined;
|
411
|
-
outputs?: Record<string, {
|
412
|
-
type: string;
|
413
|
-
instanceId: string;
|
414
|
-
output: string;
|
415
|
-
} | {
|
416
|
-
type: string;
|
417
|
-
instanceId: string;
|
418
|
-
output: string;
|
419
|
-
}[]> | undefined;
|
420
|
-
}>, "many">;
|
421
|
-
}, "strip", z.ZodTypeAny, {
|
422
|
-
instance: {
|
423
|
-
name: string;
|
424
|
-
type: string;
|
425
|
-
id: string;
|
426
|
-
args: Record<string, unknown>;
|
427
|
-
inputs: Record<string, {
|
428
|
-
type: string;
|
429
|
-
instanceId: string;
|
430
|
-
output: string;
|
431
|
-
} | {
|
432
|
-
type: string;
|
433
|
-
instanceId: string;
|
434
|
-
output: string;
|
435
|
-
}[]>;
|
436
|
-
parentId?: string | undefined;
|
437
|
-
position?: {
|
438
|
-
x: number;
|
439
|
-
y: number;
|
440
|
-
} | undefined;
|
441
|
-
outputs?: Record<string, {
|
442
|
-
type: string;
|
443
|
-
instanceId: string;
|
444
|
-
output: string;
|
445
|
-
} | {
|
446
|
-
type: string;
|
447
|
-
instanceId: string;
|
448
|
-
output: string;
|
449
|
-
}[]> | undefined;
|
450
|
-
};
|
451
|
-
children: {
|
452
|
-
name: string;
|
453
|
-
type: string;
|
454
|
-
id: string;
|
455
|
-
args: Record<string, unknown>;
|
456
|
-
inputs: Record<string, {
|
457
|
-
type: string;
|
458
|
-
instanceId: string;
|
459
|
-
output: string;
|
460
|
-
} | {
|
461
|
-
type: string;
|
462
|
-
instanceId: string;
|
463
|
-
output: string;
|
464
|
-
}[]>;
|
465
|
-
parentId?: string | undefined;
|
466
|
-
position?: {
|
467
|
-
x: number;
|
468
|
-
y: number;
|
469
|
-
} | undefined;
|
470
|
-
outputs?: Record<string, {
|
471
|
-
type: string;
|
472
|
-
instanceId: string;
|
473
|
-
output: string;
|
474
|
-
} | {
|
475
|
-
type: string;
|
476
|
-
instanceId: string;
|
477
|
-
output: string;
|
478
|
-
}[]> | undefined;
|
479
|
-
}[];
|
480
|
-
}, {
|
481
|
-
instance: {
|
482
|
-
name: string;
|
483
|
-
type: string;
|
484
|
-
id: string;
|
485
|
-
args: Record<string, unknown>;
|
486
|
-
inputs: Record<string, {
|
487
|
-
type: string;
|
488
|
-
instanceId: string;
|
489
|
-
output: string;
|
490
|
-
} | {
|
491
|
-
type: string;
|
492
|
-
instanceId: string;
|
493
|
-
output: string;
|
494
|
-
}[]>;
|
495
|
-
parentId?: string | undefined;
|
496
|
-
position?: {
|
497
|
-
x: number;
|
498
|
-
y: number;
|
499
|
-
} | undefined;
|
500
|
-
outputs?: Record<string, {
|
501
|
-
type: string;
|
502
|
-
instanceId: string;
|
503
|
-
output: string;
|
504
|
-
} | {
|
505
|
-
type: string;
|
506
|
-
instanceId: string;
|
507
|
-
output: string;
|
508
|
-
}[]> | undefined;
|
509
|
-
};
|
510
|
-
children: {
|
511
|
-
name: string;
|
512
|
-
type: string;
|
513
|
-
id: string;
|
514
|
-
args: Record<string, unknown>;
|
515
|
-
inputs: Record<string, {
|
516
|
-
type: string;
|
517
|
-
instanceId: string;
|
518
|
-
output: string;
|
519
|
-
} | {
|
520
|
-
type: string;
|
521
|
-
instanceId: string;
|
522
|
-
output: string;
|
523
|
-
}[]>;
|
524
|
-
parentId?: string | undefined;
|
525
|
-
position?: {
|
526
|
-
x: number;
|
527
|
-
y: number;
|
528
|
-
} | undefined;
|
529
|
-
outputs?: Record<string, {
|
530
|
-
type: string;
|
531
|
-
instanceId: string;
|
532
|
-
output: string;
|
533
|
-
} | {
|
534
|
-
type: string;
|
535
|
-
instanceId: string;
|
536
|
-
output: string;
|
537
|
-
}[]> | undefined;
|
538
|
-
}[];
|
539
|
-
}>;
|
540
|
-
type Position = z.infer<typeof positionSchema>;
|
541
|
-
type InstanceModel = z.infer<typeof instanceModelSchema>;
|
542
|
-
|
543
|
-
declare const instanceStatusSchema: z.ZodEnum<["not_created", "updating", "destroying", "refreshing", "created", "error", "pending", "unknown"]>;
|
544
|
-
declare const instanceStatusFieldSchema: z.ZodObject<{
|
545
|
-
value: z.ZodOptional<z.ZodString>;
|
546
|
-
sensitive: z.ZodOptional<z.ZodBoolean>;
|
547
|
-
displayName: z.ZodOptional<z.ZodString>;
|
548
|
-
}, "strip", z.ZodTypeAny, {
|
549
|
-
value?: string | undefined;
|
550
|
-
sensitive?: boolean | undefined;
|
551
|
-
displayName?: string | undefined;
|
552
|
-
}, {
|
553
|
-
value?: string | undefined;
|
554
|
-
sensitive?: boolean | undefined;
|
555
|
-
displayName?: string | undefined;
|
556
|
-
}>;
|
557
|
-
declare const instanceStatusFieldMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
558
|
-
value: z.ZodOptional<z.ZodString>;
|
559
|
-
sensitive: z.ZodOptional<z.ZodBoolean>;
|
560
|
-
displayName: z.ZodOptional<z.ZodString>;
|
561
|
-
}, "strip", z.ZodTypeAny, {
|
562
|
-
value?: string | undefined;
|
563
|
-
sensitive?: boolean | undefined;
|
564
|
-
displayName?: string | undefined;
|
565
|
-
}, {
|
566
|
-
value?: string | undefined;
|
567
|
-
sensitive?: boolean | undefined;
|
568
|
-
displayName?: string | undefined;
|
569
|
-
}>>;
|
570
|
-
declare const instanceRepresentationMetaSchema: z.ZodObject<{
|
571
|
-
showQRCode: z.ZodOptional<z.ZodBoolean>;
|
572
|
-
contentType: z.ZodOptional<z.ZodString>;
|
573
|
-
fileName: z.ZodOptional<z.ZodString>;
|
574
|
-
}, "strip", z.ZodTypeAny, {
|
575
|
-
showQRCode?: boolean | undefined;
|
576
|
-
contentType?: string | undefined;
|
577
|
-
fileName?: string | undefined;
|
578
|
-
}, {
|
579
|
-
showQRCode?: boolean | undefined;
|
580
|
-
contentType?: string | undefined;
|
581
|
-
fileName?: string | undefined;
|
582
|
-
}>;
|
583
|
-
declare const instanceRepresentationSchema: z.ZodObject<{
|
584
|
-
content: z.ZodString;
|
585
|
-
showQRCode: z.ZodOptional<z.ZodBoolean>;
|
586
|
-
contentType: z.ZodOptional<z.ZodString>;
|
587
|
-
fileName: z.ZodOptional<z.ZodString>;
|
588
|
-
}, "strip", z.ZodTypeAny, {
|
589
|
-
content: string;
|
590
|
-
showQRCode?: boolean | undefined;
|
591
|
-
contentType?: string | undefined;
|
592
|
-
fileName?: string | undefined;
|
593
|
-
}, {
|
594
|
-
content: string;
|
595
|
-
showQRCode?: boolean | undefined;
|
596
|
-
contentType?: string | undefined;
|
597
|
-
fileName?: string | undefined;
|
598
|
-
}>;
|
599
|
-
declare const terminalFactorySchema: z.ZodObject<{
|
600
|
-
image: z.ZodString;
|
601
|
-
command: z.ZodArray<z.ZodString, "many">;
|
602
|
-
cwd: z.ZodOptional<z.ZodString>;
|
603
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
604
|
-
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
605
|
-
}, "strip", z.ZodTypeAny, {
|
606
|
-
image: string;
|
607
|
-
command: string[];
|
608
|
-
cwd?: string | undefined;
|
609
|
-
env?: Record<string, string> | undefined;
|
610
|
-
files?: Record<string, string> | undefined;
|
611
|
-
}, {
|
612
|
-
image: string;
|
613
|
-
command: string[];
|
614
|
-
cwd?: string | undefined;
|
615
|
-
env?: Record<string, string> | undefined;
|
616
|
-
files?: Record<string, string> | undefined;
|
617
|
-
}>;
|
618
|
-
declare const instanceStatePatchSchema: z.ZodObject<{
|
619
|
-
id: z.ZodString;
|
620
|
-
status: z.ZodOptional<z.ZodEnum<["not_created", "updating", "destroying", "refreshing", "created", "error", "pending", "unknown"]>>;
|
621
|
-
latestOperationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
622
|
-
currentResourceCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
623
|
-
totalResourceCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
624
|
-
dependentKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
625
|
-
inputHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
626
|
-
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
627
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
628
|
-
secrets: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
629
|
-
statusFields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
630
|
-
value: z.ZodOptional<z.ZodString>;
|
631
|
-
sensitive: z.ZodOptional<z.ZodBoolean>;
|
632
|
-
displayName: z.ZodOptional<z.ZodString>;
|
633
|
-
}, "strip", z.ZodTypeAny, {
|
634
|
-
value?: string | undefined;
|
635
|
-
sensitive?: boolean | undefined;
|
636
|
-
displayName?: string | undefined;
|
637
|
-
}, {
|
638
|
-
value?: string | undefined;
|
639
|
-
sensitive?: boolean | undefined;
|
640
|
-
displayName?: string | undefined;
|
641
|
-
}>>>>;
|
642
|
-
representationMeta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
643
|
-
showQRCode: z.ZodOptional<z.ZodBoolean>;
|
644
|
-
contentType: z.ZodOptional<z.ZodString>;
|
645
|
-
fileName: z.ZodOptional<z.ZodString>;
|
646
|
-
}, "strip", z.ZodTypeAny, {
|
647
|
-
showQRCode?: boolean | undefined;
|
648
|
-
contentType?: string | undefined;
|
649
|
-
fileName?: string | undefined;
|
650
|
-
}, {
|
651
|
-
showQRCode?: boolean | undefined;
|
652
|
-
contentType?: string | undefined;
|
653
|
-
fileName?: string | undefined;
|
654
|
-
}>>>;
|
655
|
-
hasTerminal: z.ZodOptional<z.ZodBoolean>;
|
656
|
-
}, "strip", z.ZodTypeAny, {
|
657
|
-
id: string;
|
658
|
-
error?: string | null | undefined;
|
659
|
-
message?: string | null | undefined;
|
660
|
-
status?: "error" | "unknown" | "not_created" | "updating" | "destroying" | "refreshing" | "created" | "pending" | undefined;
|
661
|
-
latestOperationId?: string | null | undefined;
|
662
|
-
currentResourceCount?: number | null | undefined;
|
663
|
-
totalResourceCount?: number | null | undefined;
|
664
|
-
dependentKeys?: string[] | null | undefined;
|
665
|
-
inputHash?: string | null | undefined;
|
666
|
-
secrets?: Record<string, string> | null | undefined;
|
667
|
-
statusFields?: Record<string, {
|
668
|
-
value?: string | undefined;
|
669
|
-
sensitive?: boolean | undefined;
|
670
|
-
displayName?: string | undefined;
|
671
|
-
}> | null | undefined;
|
672
|
-
representationMeta?: {
|
673
|
-
showQRCode?: boolean | undefined;
|
674
|
-
contentType?: string | undefined;
|
675
|
-
fileName?: string | undefined;
|
676
|
-
} | null | undefined;
|
677
|
-
hasTerminal?: boolean | undefined;
|
678
|
-
}, {
|
679
|
-
id: string;
|
680
|
-
error?: string | null | undefined;
|
681
|
-
message?: string | null | undefined;
|
682
|
-
status?: "error" | "unknown" | "not_created" | "updating" | "destroying" | "refreshing" | "created" | "pending" | undefined;
|
683
|
-
latestOperationId?: string | null | undefined;
|
684
|
-
currentResourceCount?: number | null | undefined;
|
685
|
-
totalResourceCount?: number | null | undefined;
|
686
|
-
dependentKeys?: string[] | null | undefined;
|
687
|
-
inputHash?: string | null | undefined;
|
688
|
-
secrets?: Record<string, string> | null | undefined;
|
689
|
-
statusFields?: Record<string, {
|
690
|
-
value?: string | undefined;
|
691
|
-
sensitive?: boolean | undefined;
|
692
|
-
displayName?: string | undefined;
|
693
|
-
}> | null | undefined;
|
694
|
-
representationMeta?: {
|
695
|
-
showQRCode?: boolean | undefined;
|
696
|
-
contentType?: string | undefined;
|
697
|
-
fileName?: string | undefined;
|
698
|
-
} | null | undefined;
|
699
|
-
hasTerminal?: boolean | undefined;
|
700
|
-
}>;
|
701
|
-
declare const instanceStateSchema: z.ZodObject<{
|
702
|
-
id: z.ZodString;
|
703
|
-
parentId: z.ZodNullable<z.ZodString>;
|
704
|
-
status: z.ZodEnum<["not_created", "updating", "destroying", "refreshing", "created", "error", "pending", "unknown"]>;
|
705
|
-
latestOperationId: z.ZodNullable<z.ZodString>;
|
706
|
-
currentResourceCount: z.ZodNullable<z.ZodNumber>;
|
707
|
-
totalResourceCount: z.ZodNullable<z.ZodNumber>;
|
708
|
-
dependentKeys: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
709
|
-
inputHash: z.ZodNullable<z.ZodString>;
|
710
|
-
error: z.ZodNullable<z.ZodString>;
|
711
|
-
statusFields: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
712
|
-
value: z.ZodOptional<z.ZodString>;
|
713
|
-
sensitive: z.ZodOptional<z.ZodBoolean>;
|
714
|
-
displayName: z.ZodOptional<z.ZodString>;
|
715
|
-
}, "strip", z.ZodTypeAny, {
|
716
|
-
value?: string | undefined;
|
717
|
-
sensitive?: boolean | undefined;
|
718
|
-
displayName?: string | undefined;
|
719
|
-
}, {
|
720
|
-
value?: string | undefined;
|
721
|
-
sensitive?: boolean | undefined;
|
722
|
-
displayName?: string | undefined;
|
723
|
-
}>>>;
|
724
|
-
representationMeta: z.ZodNullable<z.ZodObject<{
|
725
|
-
showQRCode: z.ZodOptional<z.ZodBoolean>;
|
726
|
-
contentType: z.ZodOptional<z.ZodString>;
|
727
|
-
fileName: z.ZodOptional<z.ZodString>;
|
728
|
-
}, "strip", z.ZodTypeAny, {
|
729
|
-
showQRCode?: boolean | undefined;
|
730
|
-
contentType?: string | undefined;
|
731
|
-
fileName?: string | undefined;
|
732
|
-
}, {
|
733
|
-
showQRCode?: boolean | undefined;
|
734
|
-
contentType?: string | undefined;
|
735
|
-
fileName?: string | undefined;
|
736
|
-
}>>;
|
737
|
-
hasTerminal: z.ZodBoolean;
|
738
|
-
}, "strip", z.ZodTypeAny, {
|
739
|
-
error: string | null;
|
740
|
-
status: "error" | "unknown" | "not_created" | "updating" | "destroying" | "refreshing" | "created" | "pending";
|
741
|
-
id: string;
|
742
|
-
parentId: string | null;
|
743
|
-
latestOperationId: string | null;
|
744
|
-
currentResourceCount: number | null;
|
745
|
-
totalResourceCount: number | null;
|
746
|
-
dependentKeys: string[] | null;
|
747
|
-
inputHash: string | null;
|
748
|
-
statusFields: Record<string, {
|
749
|
-
value?: string | undefined;
|
750
|
-
sensitive?: boolean | undefined;
|
751
|
-
displayName?: string | undefined;
|
752
|
-
}> | null;
|
753
|
-
representationMeta: {
|
754
|
-
showQRCode?: boolean | undefined;
|
755
|
-
contentType?: string | undefined;
|
756
|
-
fileName?: string | undefined;
|
757
|
-
} | null;
|
758
|
-
hasTerminal: boolean;
|
759
|
-
}, {
|
760
|
-
error: string | null;
|
761
|
-
status: "error" | "unknown" | "not_created" | "updating" | "destroying" | "refreshing" | "created" | "pending";
|
762
|
-
id: string;
|
763
|
-
parentId: string | null;
|
764
|
-
latestOperationId: string | null;
|
765
|
-
currentResourceCount: number | null;
|
766
|
-
totalResourceCount: number | null;
|
767
|
-
dependentKeys: string[] | null;
|
768
|
-
inputHash: string | null;
|
769
|
-
statusFields: Record<string, {
|
770
|
-
value?: string | undefined;
|
771
|
-
sensitive?: boolean | undefined;
|
772
|
-
displayName?: string | undefined;
|
773
|
-
}> | null;
|
774
|
-
representationMeta: {
|
775
|
-
showQRCode?: boolean | undefined;
|
776
|
-
contentType?: string | undefined;
|
777
|
-
fileName?: string | undefined;
|
778
|
-
} | null;
|
779
|
-
hasTerminal: boolean;
|
780
|
-
}>;
|
781
|
-
type InstanceStatusField = z.infer<typeof instanceStatusFieldSchema>;
|
782
|
-
type InstanceStatusFieldMap = z.infer<typeof instanceStatusFieldMapSchema>;
|
783
|
-
type InstanceRepresentationMeta = z.infer<typeof instanceRepresentationMetaSchema>;
|
784
|
-
type TerminalFactory = z.infer<typeof terminalFactorySchema>;
|
785
|
-
type InstanceStatus = z.infer<typeof instanceStatusSchema>;
|
786
|
-
type InstanceState = z.infer<typeof instanceStateSchema>;
|
787
|
-
type InstanceStatePatch = z.infer<typeof instanceStatePatchSchema>;
|
788
|
-
declare function createInstanceState(id: string, status?: InstanceStatus, fields?: Partial<InstanceState>): InstanceState;
|
789
|
-
declare function applyInstanceStatePatch(states: Map<string, InstanceState>, patch: InstanceStatePatch): InstanceState;
|
790
|
-
declare function applyInstanceStateFrontendPatch(states: Map<string, InstanceState>, patch: Partial<InstanceState>): InstanceState;
|
791
|
-
declare function createInstanceStateFrontendPatch(patch: InstanceStatePatch): Partial<InstanceState>;
|
792
|
-
|
793
|
-
declare const operationTypeSchema: z.ZodEnum<["update", "destroy", "recreate", "refresh", "evaluate"]>;
|
794
|
-
declare const operationStatusSchema: z.ZodEnum<["pending", "evaluating", "running", "completed", "failed", "cancelled"]>;
|
795
|
-
declare const projectOperationSchema: z.ZodObject<{
|
796
|
-
id: z.ZodString;
|
797
|
-
projectId: z.ZodString;
|
798
|
-
type: z.ZodEnum<["update", "destroy", "recreate", "refresh", "evaluate"]>;
|
799
|
-
status: z.ZodEnum<["pending", "evaluating", "running", "completed", "failed", "cancelled"]>;
|
800
|
-
instanceIds: z.ZodArray<z.ZodString, "many">;
|
801
|
-
error: z.ZodNullable<z.ZodString>;
|
802
|
-
startedAt: z.ZodNumber;
|
803
|
-
completedAt: z.ZodNullable<z.ZodNumber>;
|
804
|
-
}, "strip", z.ZodTypeAny, {
|
805
|
-
error: string | null;
|
806
|
-
type: "update" | "refresh" | "destroy" | "recreate" | "evaluate";
|
807
|
-
status: "pending" | "evaluating" | "running" | "completed" | "failed" | "cancelled";
|
808
|
-
projectId: string;
|
809
|
-
instanceIds: string[];
|
810
|
-
id: string;
|
811
|
-
startedAt: number;
|
812
|
-
completedAt: number | null;
|
813
|
-
}, {
|
814
|
-
error: string | null;
|
815
|
-
type: "update" | "refresh" | "destroy" | "recreate" | "evaluate";
|
816
|
-
status: "pending" | "evaluating" | "running" | "completed" | "failed" | "cancelled";
|
817
|
-
projectId: string;
|
818
|
-
instanceIds: string[];
|
819
|
-
id: string;
|
820
|
-
startedAt: number;
|
821
|
-
completedAt: number | null;
|
822
|
-
}>;
|
823
|
-
declare const projectOperationRequestSchema: z.ZodObject<{
|
824
|
-
projectId: z.ZodString;
|
825
|
-
type: z.ZodEnum<["update", "destroy", "recreate", "refresh", "evaluate"]>;
|
826
|
-
instanceIds: z.ZodArray<z.ZodString, "many">;
|
827
|
-
}, "strip", z.ZodTypeAny, {
|
828
|
-
type: "update" | "refresh" | "destroy" | "recreate" | "evaluate";
|
829
|
-
projectId: string;
|
830
|
-
instanceIds: string[];
|
831
|
-
}, {
|
832
|
-
type: "update" | "refresh" | "destroy" | "recreate" | "evaluate";
|
833
|
-
projectId: string;
|
834
|
-
instanceIds: string[];
|
835
|
-
}>;
|
836
|
-
type OperationType = z.infer<typeof operationTypeSchema>;
|
837
|
-
type OperationStatus = z.infer<typeof operationStatusSchema>;
|
838
|
-
type ProjectOperation = z.infer<typeof projectOperationSchema>;
|
839
|
-
type ProjectOperationRequest = z.infer<typeof projectOperationRequestSchema>;
|
840
|
-
|
841
|
-
export { operationStatusSchema as A, projectOperationSchema as B, projectOperationRequestSchema as C, type OperationStatus as D, type InstanceModel as I, type OperationType as O, type Position as P, type TerminalFactory as T, type ProjectOperation as a, type InstanceState as b, type InstanceStatePatch as c, type InstanceStatus as d, type ProjectOperationRequest as e, instanceInputMapSchema as f, instanceModelSchema as g, compositeInstanceSchema as h, instanceInputSchema as i, instanceStatusSchema as j, instanceStatusFieldSchema as k, instanceStatusFieldMapSchema as l, instanceRepresentationMetaSchema as m, instanceRepresentationSchema as n, instanceStatePatchSchema as o, positionSchema as p, instanceStateSchema as q, type InstanceStatusField as r, type InstanceStatusFieldMap as s, terminalFactorySchema as t, type InstanceRepresentationMeta as u, createInstanceState as v, applyInstanceStatePatch as w, applyInstanceStateFrontendPatch as x, createInstanceStateFrontendPatch as y, operationTypeSchema as z };
|