@tealbrick/avm 0.1.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,1125 @@
1
+ import { z } from "zod";
2
+ export declare const id: z.ZodString;
3
+ export declare const administrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
+ weight: z.ZodOptional<z.ZodNumber>;
5
+ concurrentHeavyWork: z.ZodOptional<z.ZodNumber>;
6
+ queuePolicy: z.ZodOptional<z.ZodEnum<{
7
+ fair: "fair";
8
+ fifo: "fifo";
9
+ reject: "reject";
10
+ }>>;
11
+ operation: z.ZodLiteral<"tenantSync">;
12
+ workspace: z.ZodString;
13
+ displayName: z.ZodOptional<z.ZodString>;
14
+ principalId: z.ZodOptional<z.ZodString>;
15
+ issuer: z.ZodOptional<z.ZodURL>;
16
+ subject: z.ZodOptional<z.ZodString>;
17
+ role: z.ZodDefault<z.ZodEnum<{
18
+ member: "member";
19
+ admin: "admin";
20
+ operator: "operator";
21
+ }>>;
22
+ }, z.core.$strict>, z.ZodObject<{
23
+ operation: z.ZodLiteral<"ingressPut">;
24
+ provider: z.ZodString;
25
+ externalIdentity: z.ZodString;
26
+ worker: z.ZodString;
27
+ channelScope: z.ZodOptional<z.ZodString>;
28
+ metadataFile: z.ZodOptional<z.ZodString>;
29
+ }, z.core.$strict>, z.ZodObject<{
30
+ operation: z.ZodLiteral<"ingressRevoke">;
31
+ identityId: z.ZodString;
32
+ }, z.core.$strict>, z.ZodObject<{
33
+ operation: z.ZodLiteral<"ingressWake">;
34
+ provider: z.ZodString;
35
+ externalIdentity: z.ZodString;
36
+ eventId: z.ZodString;
37
+ channelScope: z.ZodOptional<z.ZodString>;
38
+ payloadFile: z.ZodOptional<z.ZodString>;
39
+ correlationId: z.ZodOptional<z.ZodString>;
40
+ }, z.core.$strict>, z.ZodObject<{
41
+ operation: z.ZodLiteral<"ingressComplete">;
42
+ wakeId: z.ZodString;
43
+ error: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strict>, z.ZodObject<{
45
+ operation: z.ZodLiteral<"resize">;
46
+ worker: z.ZodString;
47
+ memoryTargetMiB: z.ZodNumber;
48
+ }, z.core.$strict>, z.ZodObject<{
49
+ weight: z.ZodOptional<z.ZodNumber>;
50
+ concurrentHeavyWork: z.ZodOptional<z.ZodNumber>;
51
+ queuePolicy: z.ZodOptional<z.ZodEnum<{
52
+ fair: "fair";
53
+ fifo: "fifo";
54
+ reject: "reject";
55
+ }>>;
56
+ operation: z.ZodLiteral<"workspacePut">;
57
+ workspace: z.ZodString;
58
+ displayName: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strict>, z.ZodObject<{
60
+ operation: z.ZodLiteral<"workspaceDisable">;
61
+ workspace: z.ZodString;
62
+ }, z.core.$strict>, z.ZodObject<{
63
+ operation: z.ZodLiteral<"userPut">;
64
+ user: z.ZodString;
65
+ workspace: z.ZodString;
66
+ role: z.ZodEnum<{
67
+ member: "member";
68
+ admin: "admin";
69
+ operator: "operator";
70
+ }>;
71
+ }, z.core.$strict>, z.ZodObject<{
72
+ operation: z.ZodLiteral<"ownerSet">;
73
+ worker: z.ZodString;
74
+ workspace: z.ZodString;
75
+ user: z.ZodOptional<z.ZodString>;
76
+ }, z.core.$strict>, z.ZodObject<{
77
+ operation: z.ZodLiteral<"shareGrant">;
78
+ worker: z.ZodString;
79
+ grantee: z.ZodDiscriminatedUnion<[z.ZodObject<{
80
+ kind: z.ZodLiteral<"workspace">;
81
+ id: z.ZodString;
82
+ }, z.core.$strict>, z.ZodObject<{
83
+ kind: z.ZodLiteral<"user">;
84
+ id: z.ZodString;
85
+ }, z.core.$strict>], "kind">;
86
+ allow: z.ZodArray<z.ZodEnum<{
87
+ status: "status";
88
+ exec: "exec";
89
+ start: "start";
90
+ stop: "stop";
91
+ ssh: "ssh";
92
+ logs: "logs";
93
+ events: "events";
94
+ runs: "runs";
95
+ assignments: "assignments";
96
+ schedule: "schedule";
97
+ capabilities: "capabilities";
98
+ auth: "auth";
99
+ leases: "leases";
100
+ resident: "resident";
101
+ wake: "wake";
102
+ cool: "cool";
103
+ list: "list";
104
+ inventory: "inventory";
105
+ monitor: "monitor";
106
+ roles: "roles";
107
+ ingress: "ingress";
108
+ }>>;
109
+ }, z.core.$strict>, z.ZodObject<{
110
+ operation: z.ZodLiteral<"shareRevoke">;
111
+ worker: z.ZodString;
112
+ shareId: z.ZodString;
113
+ }, z.core.$strict>, z.ZodObject<{
114
+ operation: z.ZodLiteral<"residentSet">;
115
+ worker: z.ZodString;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ operation: z.ZodLiteral<"wake">;
118
+ worker: z.ZodString;
119
+ reason: z.ZodOptional<z.ZodString>;
120
+ source: z.ZodDefault<z.ZodEnum<{
121
+ schedule: "schedule";
122
+ cli: "cli";
123
+ "control-plane": "control-plane";
124
+ delegation: "delegation";
125
+ }>>;
126
+ externalEventId: z.ZodOptional<z.ZodString>;
127
+ idempotencyKey: z.ZodString;
128
+ }, z.core.$strict>, z.ZodObject<{
129
+ operation: z.ZodLiteral<"cool">;
130
+ worker: z.ZodString;
131
+ }, z.core.$strict>, z.ZodObject<{
132
+ operation: z.ZodLiteral<"poolPolicySet">;
133
+ cpuPercent: z.ZodOptional<z.ZodNumber>;
134
+ memoryMaxBytes: z.ZodOptional<z.ZodNumber>;
135
+ memoryHighBytes: z.ZodOptional<z.ZodNumber>;
136
+ hostMemoryReserveBytes: z.ZodOptional<z.ZodNumber>;
137
+ launchReserveBytes: z.ZodOptional<z.ZodNumber>;
138
+ }, z.core.$strict>], "operation">;
139
+ export type AdministrationRequest = z.input<typeof administrationSchema>;
140
+ export declare const policySchema: z.ZodObject<{
141
+ lifecycle: z.ZodDefault<z.ZodArray<z.ZodObject<{
142
+ worker: z.ZodString;
143
+ operations: z.ZodArray<z.ZodEnum<{
144
+ start: "start";
145
+ stop: "stop";
146
+ promote: "promote";
147
+ destroy: "destroy";
148
+ }>>;
149
+ }, z.core.$strict>>>;
150
+ spawns: z.ZodDefault<z.ZodArray<z.ZodObject<{
151
+ worker: z.ZodString;
152
+ profile: z.ZodEnum<{
153
+ light: "light";
154
+ small: "small";
155
+ standard: "standard";
156
+ browser: "browser";
157
+ }>;
158
+ mode: z.ZodEnum<{
159
+ ephemeral: "ephemeral";
160
+ durable: "durable";
161
+ }>;
162
+ harnesses: z.ZodOptional<z.ZodArray<z.ZodString>>;
163
+ bundles: z.ZodOptional<z.ZodArray<z.ZodString>>;
164
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
165
+ mcps: z.ZodOptional<z.ZodArray<z.ZodString>>;
166
+ plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
167
+ auth: z.ZodOptional<z.ZodArray<z.ZodString>>;
168
+ }, z.core.$strict>>>;
169
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
170
+ worker: z.ZodString;
171
+ command: z.ZodString;
172
+ argv: z.ZodArray<z.ZodString>;
173
+ }, z.core.$strict>>>;
174
+ administration: z.ZodDefault<z.ZodArray<z.ZodObject<{
175
+ name: z.ZodString;
176
+ request: z.ZodDiscriminatedUnion<[z.ZodObject<{
177
+ weight: z.ZodOptional<z.ZodNumber>;
178
+ concurrentHeavyWork: z.ZodOptional<z.ZodNumber>;
179
+ queuePolicy: z.ZodOptional<z.ZodEnum<{
180
+ fair: "fair";
181
+ fifo: "fifo";
182
+ reject: "reject";
183
+ }>>;
184
+ operation: z.ZodLiteral<"tenantSync">;
185
+ workspace: z.ZodString;
186
+ displayName: z.ZodOptional<z.ZodString>;
187
+ principalId: z.ZodOptional<z.ZodString>;
188
+ issuer: z.ZodOptional<z.ZodURL>;
189
+ subject: z.ZodOptional<z.ZodString>;
190
+ role: z.ZodDefault<z.ZodEnum<{
191
+ member: "member";
192
+ admin: "admin";
193
+ operator: "operator";
194
+ }>>;
195
+ }, z.core.$strict>, z.ZodObject<{
196
+ operation: z.ZodLiteral<"ingressPut">;
197
+ provider: z.ZodString;
198
+ externalIdentity: z.ZodString;
199
+ worker: z.ZodString;
200
+ channelScope: z.ZodOptional<z.ZodString>;
201
+ metadataFile: z.ZodOptional<z.ZodString>;
202
+ }, z.core.$strict>, z.ZodObject<{
203
+ operation: z.ZodLiteral<"ingressRevoke">;
204
+ identityId: z.ZodString;
205
+ }, z.core.$strict>, z.ZodObject<{
206
+ operation: z.ZodLiteral<"ingressWake">;
207
+ provider: z.ZodString;
208
+ externalIdentity: z.ZodString;
209
+ eventId: z.ZodString;
210
+ channelScope: z.ZodOptional<z.ZodString>;
211
+ payloadFile: z.ZodOptional<z.ZodString>;
212
+ correlationId: z.ZodOptional<z.ZodString>;
213
+ }, z.core.$strict>, z.ZodObject<{
214
+ operation: z.ZodLiteral<"ingressComplete">;
215
+ wakeId: z.ZodString;
216
+ error: z.ZodOptional<z.ZodString>;
217
+ }, z.core.$strict>, z.ZodObject<{
218
+ operation: z.ZodLiteral<"resize">;
219
+ worker: z.ZodString;
220
+ memoryTargetMiB: z.ZodNumber;
221
+ }, z.core.$strict>, z.ZodObject<{
222
+ weight: z.ZodOptional<z.ZodNumber>;
223
+ concurrentHeavyWork: z.ZodOptional<z.ZodNumber>;
224
+ queuePolicy: z.ZodOptional<z.ZodEnum<{
225
+ fair: "fair";
226
+ fifo: "fifo";
227
+ reject: "reject";
228
+ }>>;
229
+ operation: z.ZodLiteral<"workspacePut">;
230
+ workspace: z.ZodString;
231
+ displayName: z.ZodOptional<z.ZodString>;
232
+ }, z.core.$strict>, z.ZodObject<{
233
+ operation: z.ZodLiteral<"workspaceDisable">;
234
+ workspace: z.ZodString;
235
+ }, z.core.$strict>, z.ZodObject<{
236
+ operation: z.ZodLiteral<"userPut">;
237
+ user: z.ZodString;
238
+ workspace: z.ZodString;
239
+ role: z.ZodEnum<{
240
+ member: "member";
241
+ admin: "admin";
242
+ operator: "operator";
243
+ }>;
244
+ }, z.core.$strict>, z.ZodObject<{
245
+ operation: z.ZodLiteral<"ownerSet">;
246
+ worker: z.ZodString;
247
+ workspace: z.ZodString;
248
+ user: z.ZodOptional<z.ZodString>;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ operation: z.ZodLiteral<"shareGrant">;
251
+ worker: z.ZodString;
252
+ grantee: z.ZodDiscriminatedUnion<[z.ZodObject<{
253
+ kind: z.ZodLiteral<"workspace">;
254
+ id: z.ZodString;
255
+ }, z.core.$strict>, z.ZodObject<{
256
+ kind: z.ZodLiteral<"user">;
257
+ id: z.ZodString;
258
+ }, z.core.$strict>], "kind">;
259
+ allow: z.ZodArray<z.ZodEnum<{
260
+ status: "status";
261
+ exec: "exec";
262
+ start: "start";
263
+ stop: "stop";
264
+ ssh: "ssh";
265
+ logs: "logs";
266
+ events: "events";
267
+ runs: "runs";
268
+ assignments: "assignments";
269
+ schedule: "schedule";
270
+ capabilities: "capabilities";
271
+ auth: "auth";
272
+ leases: "leases";
273
+ resident: "resident";
274
+ wake: "wake";
275
+ cool: "cool";
276
+ list: "list";
277
+ inventory: "inventory";
278
+ monitor: "monitor";
279
+ roles: "roles";
280
+ ingress: "ingress";
281
+ }>>;
282
+ }, z.core.$strict>, z.ZodObject<{
283
+ operation: z.ZodLiteral<"shareRevoke">;
284
+ worker: z.ZodString;
285
+ shareId: z.ZodString;
286
+ }, z.core.$strict>, z.ZodObject<{
287
+ operation: z.ZodLiteral<"residentSet">;
288
+ worker: z.ZodString;
289
+ }, z.core.$strict>, z.ZodObject<{
290
+ operation: z.ZodLiteral<"wake">;
291
+ worker: z.ZodString;
292
+ reason: z.ZodOptional<z.ZodString>;
293
+ source: z.ZodDefault<z.ZodEnum<{
294
+ schedule: "schedule";
295
+ cli: "cli";
296
+ "control-plane": "control-plane";
297
+ delegation: "delegation";
298
+ }>>;
299
+ externalEventId: z.ZodOptional<z.ZodString>;
300
+ idempotencyKey: z.ZodString;
301
+ }, z.core.$strict>, z.ZodObject<{
302
+ operation: z.ZodLiteral<"cool">;
303
+ worker: z.ZodString;
304
+ }, z.core.$strict>, z.ZodObject<{
305
+ operation: z.ZodLiteral<"poolPolicySet">;
306
+ cpuPercent: z.ZodOptional<z.ZodNumber>;
307
+ memoryMaxBytes: z.ZodOptional<z.ZodNumber>;
308
+ memoryHighBytes: z.ZodOptional<z.ZodNumber>;
309
+ hostMemoryReserveBytes: z.ZodOptional<z.ZodNumber>;
310
+ launchReserveBytes: z.ZodOptional<z.ZodNumber>;
311
+ }, z.core.$strict>], "operation">;
312
+ }, z.core.$strict>>>;
313
+ }, z.core.$strict>;
314
+ export declare const connectionSchema: z.ZodObject<{
315
+ target: z.ZodString;
316
+ mode: z.ZodDefault<z.ZodEnum<{
317
+ operator: "operator";
318
+ paired: "paired";
319
+ }>>;
320
+ sudo: z.ZodDefault<z.ZodBoolean>;
321
+ identityFile: z.ZodOptional<z.ZodString>;
322
+ identityTokenFile: z.ZodOptional<z.ZodString>;
323
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
324
+ policy: z.ZodDefault<z.ZodObject<{
325
+ lifecycle: z.ZodDefault<z.ZodArray<z.ZodObject<{
326
+ worker: z.ZodString;
327
+ operations: z.ZodArray<z.ZodEnum<{
328
+ start: "start";
329
+ stop: "stop";
330
+ promote: "promote";
331
+ destroy: "destroy";
332
+ }>>;
333
+ }, z.core.$strict>>>;
334
+ spawns: z.ZodDefault<z.ZodArray<z.ZodObject<{
335
+ worker: z.ZodString;
336
+ profile: z.ZodEnum<{
337
+ light: "light";
338
+ small: "small";
339
+ standard: "standard";
340
+ browser: "browser";
341
+ }>;
342
+ mode: z.ZodEnum<{
343
+ ephemeral: "ephemeral";
344
+ durable: "durable";
345
+ }>;
346
+ harnesses: z.ZodOptional<z.ZodArray<z.ZodString>>;
347
+ bundles: z.ZodOptional<z.ZodArray<z.ZodString>>;
348
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
349
+ mcps: z.ZodOptional<z.ZodArray<z.ZodString>>;
350
+ plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
351
+ auth: z.ZodOptional<z.ZodArray<z.ZodString>>;
352
+ }, z.core.$strict>>>;
353
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
354
+ worker: z.ZodString;
355
+ command: z.ZodString;
356
+ argv: z.ZodArray<z.ZodString>;
357
+ }, z.core.$strict>>>;
358
+ administration: z.ZodDefault<z.ZodArray<z.ZodObject<{
359
+ name: z.ZodString;
360
+ request: z.ZodDiscriminatedUnion<[z.ZodObject<{
361
+ weight: z.ZodOptional<z.ZodNumber>;
362
+ concurrentHeavyWork: z.ZodOptional<z.ZodNumber>;
363
+ queuePolicy: z.ZodOptional<z.ZodEnum<{
364
+ fair: "fair";
365
+ fifo: "fifo";
366
+ reject: "reject";
367
+ }>>;
368
+ operation: z.ZodLiteral<"tenantSync">;
369
+ workspace: z.ZodString;
370
+ displayName: z.ZodOptional<z.ZodString>;
371
+ principalId: z.ZodOptional<z.ZodString>;
372
+ issuer: z.ZodOptional<z.ZodURL>;
373
+ subject: z.ZodOptional<z.ZodString>;
374
+ role: z.ZodDefault<z.ZodEnum<{
375
+ member: "member";
376
+ admin: "admin";
377
+ operator: "operator";
378
+ }>>;
379
+ }, z.core.$strict>, z.ZodObject<{
380
+ operation: z.ZodLiteral<"ingressPut">;
381
+ provider: z.ZodString;
382
+ externalIdentity: z.ZodString;
383
+ worker: z.ZodString;
384
+ channelScope: z.ZodOptional<z.ZodString>;
385
+ metadataFile: z.ZodOptional<z.ZodString>;
386
+ }, z.core.$strict>, z.ZodObject<{
387
+ operation: z.ZodLiteral<"ingressRevoke">;
388
+ identityId: z.ZodString;
389
+ }, z.core.$strict>, z.ZodObject<{
390
+ operation: z.ZodLiteral<"ingressWake">;
391
+ provider: z.ZodString;
392
+ externalIdentity: z.ZodString;
393
+ eventId: z.ZodString;
394
+ channelScope: z.ZodOptional<z.ZodString>;
395
+ payloadFile: z.ZodOptional<z.ZodString>;
396
+ correlationId: z.ZodOptional<z.ZodString>;
397
+ }, z.core.$strict>, z.ZodObject<{
398
+ operation: z.ZodLiteral<"ingressComplete">;
399
+ wakeId: z.ZodString;
400
+ error: z.ZodOptional<z.ZodString>;
401
+ }, z.core.$strict>, z.ZodObject<{
402
+ operation: z.ZodLiteral<"resize">;
403
+ worker: z.ZodString;
404
+ memoryTargetMiB: z.ZodNumber;
405
+ }, z.core.$strict>, z.ZodObject<{
406
+ weight: z.ZodOptional<z.ZodNumber>;
407
+ concurrentHeavyWork: z.ZodOptional<z.ZodNumber>;
408
+ queuePolicy: z.ZodOptional<z.ZodEnum<{
409
+ fair: "fair";
410
+ fifo: "fifo";
411
+ reject: "reject";
412
+ }>>;
413
+ operation: z.ZodLiteral<"workspacePut">;
414
+ workspace: z.ZodString;
415
+ displayName: z.ZodOptional<z.ZodString>;
416
+ }, z.core.$strict>, z.ZodObject<{
417
+ operation: z.ZodLiteral<"workspaceDisable">;
418
+ workspace: z.ZodString;
419
+ }, z.core.$strict>, z.ZodObject<{
420
+ operation: z.ZodLiteral<"userPut">;
421
+ user: z.ZodString;
422
+ workspace: z.ZodString;
423
+ role: z.ZodEnum<{
424
+ member: "member";
425
+ admin: "admin";
426
+ operator: "operator";
427
+ }>;
428
+ }, z.core.$strict>, z.ZodObject<{
429
+ operation: z.ZodLiteral<"ownerSet">;
430
+ worker: z.ZodString;
431
+ workspace: z.ZodString;
432
+ user: z.ZodOptional<z.ZodString>;
433
+ }, z.core.$strict>, z.ZodObject<{
434
+ operation: z.ZodLiteral<"shareGrant">;
435
+ worker: z.ZodString;
436
+ grantee: z.ZodDiscriminatedUnion<[z.ZodObject<{
437
+ kind: z.ZodLiteral<"workspace">;
438
+ id: z.ZodString;
439
+ }, z.core.$strict>, z.ZodObject<{
440
+ kind: z.ZodLiteral<"user">;
441
+ id: z.ZodString;
442
+ }, z.core.$strict>], "kind">;
443
+ allow: z.ZodArray<z.ZodEnum<{
444
+ status: "status";
445
+ exec: "exec";
446
+ start: "start";
447
+ stop: "stop";
448
+ ssh: "ssh";
449
+ logs: "logs";
450
+ events: "events";
451
+ runs: "runs";
452
+ assignments: "assignments";
453
+ schedule: "schedule";
454
+ capabilities: "capabilities";
455
+ auth: "auth";
456
+ leases: "leases";
457
+ resident: "resident";
458
+ wake: "wake";
459
+ cool: "cool";
460
+ list: "list";
461
+ inventory: "inventory";
462
+ monitor: "monitor";
463
+ roles: "roles";
464
+ ingress: "ingress";
465
+ }>>;
466
+ }, z.core.$strict>, z.ZodObject<{
467
+ operation: z.ZodLiteral<"shareRevoke">;
468
+ worker: z.ZodString;
469
+ shareId: z.ZodString;
470
+ }, z.core.$strict>, z.ZodObject<{
471
+ operation: z.ZodLiteral<"residentSet">;
472
+ worker: z.ZodString;
473
+ }, z.core.$strict>, z.ZodObject<{
474
+ operation: z.ZodLiteral<"wake">;
475
+ worker: z.ZodString;
476
+ reason: z.ZodOptional<z.ZodString>;
477
+ source: z.ZodDefault<z.ZodEnum<{
478
+ schedule: "schedule";
479
+ cli: "cli";
480
+ "control-plane": "control-plane";
481
+ delegation: "delegation";
482
+ }>>;
483
+ externalEventId: z.ZodOptional<z.ZodString>;
484
+ idempotencyKey: z.ZodString;
485
+ }, z.core.$strict>, z.ZodObject<{
486
+ operation: z.ZodLiteral<"cool">;
487
+ worker: z.ZodString;
488
+ }, z.core.$strict>, z.ZodObject<{
489
+ operation: z.ZodLiteral<"poolPolicySet">;
490
+ cpuPercent: z.ZodOptional<z.ZodNumber>;
491
+ memoryMaxBytes: z.ZodOptional<z.ZodNumber>;
492
+ memoryHighBytes: z.ZodOptional<z.ZodNumber>;
493
+ hostMemoryReserveBytes: z.ZodOptional<z.ZodNumber>;
494
+ launchReserveBytes: z.ZodOptional<z.ZodNumber>;
495
+ }, z.core.$strict>], "operation">;
496
+ }, z.core.$strict>>>;
497
+ }, z.core.$strict>>;
498
+ }, z.core.$strict>;
499
+ /** The operator selects one connection; tools cannot choose another identity or policy. */
500
+ export declare const avmConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
501
+ target: z.ZodString;
502
+ mode: z.ZodDefault<z.ZodEnum<{
503
+ operator: "operator";
504
+ paired: "paired";
505
+ }>>;
506
+ sudo: z.ZodDefault<z.ZodBoolean>;
507
+ identityFile: z.ZodOptional<z.ZodString>;
508
+ identityTokenFile: z.ZodOptional<z.ZodString>;
509
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
510
+ policy: z.ZodDefault<z.ZodObject<{
511
+ lifecycle: z.ZodDefault<z.ZodArray<z.ZodObject<{
512
+ worker: z.ZodString;
513
+ operations: z.ZodArray<z.ZodEnum<{
514
+ start: "start";
515
+ stop: "stop";
516
+ promote: "promote";
517
+ destroy: "destroy";
518
+ }>>;
519
+ }, z.core.$strict>>>;
520
+ spawns: z.ZodDefault<z.ZodArray<z.ZodObject<{
521
+ worker: z.ZodString;
522
+ profile: z.ZodEnum<{
523
+ light: "light";
524
+ small: "small";
525
+ standard: "standard";
526
+ browser: "browser";
527
+ }>;
528
+ mode: z.ZodEnum<{
529
+ ephemeral: "ephemeral";
530
+ durable: "durable";
531
+ }>;
532
+ harnesses: z.ZodOptional<z.ZodArray<z.ZodString>>;
533
+ bundles: z.ZodOptional<z.ZodArray<z.ZodString>>;
534
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
535
+ mcps: z.ZodOptional<z.ZodArray<z.ZodString>>;
536
+ plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
537
+ auth: z.ZodOptional<z.ZodArray<z.ZodString>>;
538
+ }, z.core.$strict>>>;
539
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
540
+ worker: z.ZodString;
541
+ command: z.ZodString;
542
+ argv: z.ZodArray<z.ZodString>;
543
+ }, z.core.$strict>>>;
544
+ administration: z.ZodDefault<z.ZodArray<z.ZodObject<{
545
+ name: z.ZodString;
546
+ request: z.ZodDiscriminatedUnion<[z.ZodObject<{
547
+ weight: z.ZodOptional<z.ZodNumber>;
548
+ concurrentHeavyWork: z.ZodOptional<z.ZodNumber>;
549
+ queuePolicy: z.ZodOptional<z.ZodEnum<{
550
+ fair: "fair";
551
+ fifo: "fifo";
552
+ reject: "reject";
553
+ }>>;
554
+ operation: z.ZodLiteral<"tenantSync">;
555
+ workspace: z.ZodString;
556
+ displayName: z.ZodOptional<z.ZodString>;
557
+ principalId: z.ZodOptional<z.ZodString>;
558
+ issuer: z.ZodOptional<z.ZodURL>;
559
+ subject: z.ZodOptional<z.ZodString>;
560
+ role: z.ZodDefault<z.ZodEnum<{
561
+ member: "member";
562
+ admin: "admin";
563
+ operator: "operator";
564
+ }>>;
565
+ }, z.core.$strict>, z.ZodObject<{
566
+ operation: z.ZodLiteral<"ingressPut">;
567
+ provider: z.ZodString;
568
+ externalIdentity: z.ZodString;
569
+ worker: z.ZodString;
570
+ channelScope: z.ZodOptional<z.ZodString>;
571
+ metadataFile: z.ZodOptional<z.ZodString>;
572
+ }, z.core.$strict>, z.ZodObject<{
573
+ operation: z.ZodLiteral<"ingressRevoke">;
574
+ identityId: z.ZodString;
575
+ }, z.core.$strict>, z.ZodObject<{
576
+ operation: z.ZodLiteral<"ingressWake">;
577
+ provider: z.ZodString;
578
+ externalIdentity: z.ZodString;
579
+ eventId: z.ZodString;
580
+ channelScope: z.ZodOptional<z.ZodString>;
581
+ payloadFile: z.ZodOptional<z.ZodString>;
582
+ correlationId: z.ZodOptional<z.ZodString>;
583
+ }, z.core.$strict>, z.ZodObject<{
584
+ operation: z.ZodLiteral<"ingressComplete">;
585
+ wakeId: z.ZodString;
586
+ error: z.ZodOptional<z.ZodString>;
587
+ }, z.core.$strict>, z.ZodObject<{
588
+ operation: z.ZodLiteral<"resize">;
589
+ worker: z.ZodString;
590
+ memoryTargetMiB: z.ZodNumber;
591
+ }, z.core.$strict>, z.ZodObject<{
592
+ weight: z.ZodOptional<z.ZodNumber>;
593
+ concurrentHeavyWork: z.ZodOptional<z.ZodNumber>;
594
+ queuePolicy: z.ZodOptional<z.ZodEnum<{
595
+ fair: "fair";
596
+ fifo: "fifo";
597
+ reject: "reject";
598
+ }>>;
599
+ operation: z.ZodLiteral<"workspacePut">;
600
+ workspace: z.ZodString;
601
+ displayName: z.ZodOptional<z.ZodString>;
602
+ }, z.core.$strict>, z.ZodObject<{
603
+ operation: z.ZodLiteral<"workspaceDisable">;
604
+ workspace: z.ZodString;
605
+ }, z.core.$strict>, z.ZodObject<{
606
+ operation: z.ZodLiteral<"userPut">;
607
+ user: z.ZodString;
608
+ workspace: z.ZodString;
609
+ role: z.ZodEnum<{
610
+ member: "member";
611
+ admin: "admin";
612
+ operator: "operator";
613
+ }>;
614
+ }, z.core.$strict>, z.ZodObject<{
615
+ operation: z.ZodLiteral<"ownerSet">;
616
+ worker: z.ZodString;
617
+ workspace: z.ZodString;
618
+ user: z.ZodOptional<z.ZodString>;
619
+ }, z.core.$strict>, z.ZodObject<{
620
+ operation: z.ZodLiteral<"shareGrant">;
621
+ worker: z.ZodString;
622
+ grantee: z.ZodDiscriminatedUnion<[z.ZodObject<{
623
+ kind: z.ZodLiteral<"workspace">;
624
+ id: z.ZodString;
625
+ }, z.core.$strict>, z.ZodObject<{
626
+ kind: z.ZodLiteral<"user">;
627
+ id: z.ZodString;
628
+ }, z.core.$strict>], "kind">;
629
+ allow: z.ZodArray<z.ZodEnum<{
630
+ status: "status";
631
+ exec: "exec";
632
+ start: "start";
633
+ stop: "stop";
634
+ ssh: "ssh";
635
+ logs: "logs";
636
+ events: "events";
637
+ runs: "runs";
638
+ assignments: "assignments";
639
+ schedule: "schedule";
640
+ capabilities: "capabilities";
641
+ auth: "auth";
642
+ leases: "leases";
643
+ resident: "resident";
644
+ wake: "wake";
645
+ cool: "cool";
646
+ list: "list";
647
+ inventory: "inventory";
648
+ monitor: "monitor";
649
+ roles: "roles";
650
+ ingress: "ingress";
651
+ }>>;
652
+ }, z.core.$strict>, z.ZodObject<{
653
+ operation: z.ZodLiteral<"shareRevoke">;
654
+ worker: z.ZodString;
655
+ shareId: z.ZodString;
656
+ }, z.core.$strict>, z.ZodObject<{
657
+ operation: z.ZodLiteral<"residentSet">;
658
+ worker: z.ZodString;
659
+ }, z.core.$strict>, z.ZodObject<{
660
+ operation: z.ZodLiteral<"wake">;
661
+ worker: z.ZodString;
662
+ reason: z.ZodOptional<z.ZodString>;
663
+ source: z.ZodDefault<z.ZodEnum<{
664
+ schedule: "schedule";
665
+ cli: "cli";
666
+ "control-plane": "control-plane";
667
+ delegation: "delegation";
668
+ }>>;
669
+ externalEventId: z.ZodOptional<z.ZodString>;
670
+ idempotencyKey: z.ZodString;
671
+ }, z.core.$strict>, z.ZodObject<{
672
+ operation: z.ZodLiteral<"cool">;
673
+ worker: z.ZodString;
674
+ }, z.core.$strict>, z.ZodObject<{
675
+ operation: z.ZodLiteral<"poolPolicySet">;
676
+ cpuPercent: z.ZodOptional<z.ZodNumber>;
677
+ memoryMaxBytes: z.ZodOptional<z.ZodNumber>;
678
+ memoryHighBytes: z.ZodOptional<z.ZodNumber>;
679
+ hostMemoryReserveBytes: z.ZodOptional<z.ZodNumber>;
680
+ launchReserveBytes: z.ZodOptional<z.ZodNumber>;
681
+ }, z.core.$strict>], "operation">;
682
+ }, z.core.$strict>>>;
683
+ }, z.core.$strict>>;
684
+ }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
685
+ selectedProfile: z.ZodString;
686
+ profiles: z.ZodRecord<z.ZodString, z.ZodObject<{
687
+ target: z.ZodString;
688
+ mode: z.ZodDefault<z.ZodEnum<{
689
+ operator: "operator";
690
+ paired: "paired";
691
+ }>>;
692
+ sudo: z.ZodDefault<z.ZodBoolean>;
693
+ identityFile: z.ZodOptional<z.ZodString>;
694
+ identityTokenFile: z.ZodOptional<z.ZodString>;
695
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
696
+ policy: z.ZodDefault<z.ZodObject<{
697
+ lifecycle: z.ZodDefault<z.ZodArray<z.ZodObject<{
698
+ worker: z.ZodString;
699
+ operations: z.ZodArray<z.ZodEnum<{
700
+ start: "start";
701
+ stop: "stop";
702
+ promote: "promote";
703
+ destroy: "destroy";
704
+ }>>;
705
+ }, z.core.$strict>>>;
706
+ spawns: z.ZodDefault<z.ZodArray<z.ZodObject<{
707
+ worker: z.ZodString;
708
+ profile: z.ZodEnum<{
709
+ light: "light";
710
+ small: "small";
711
+ standard: "standard";
712
+ browser: "browser";
713
+ }>;
714
+ mode: z.ZodEnum<{
715
+ ephemeral: "ephemeral";
716
+ durable: "durable";
717
+ }>;
718
+ harnesses: z.ZodOptional<z.ZodArray<z.ZodString>>;
719
+ bundles: z.ZodOptional<z.ZodArray<z.ZodString>>;
720
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
721
+ mcps: z.ZodOptional<z.ZodArray<z.ZodString>>;
722
+ plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
723
+ auth: z.ZodOptional<z.ZodArray<z.ZodString>>;
724
+ }, z.core.$strict>>>;
725
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
726
+ worker: z.ZodString;
727
+ command: z.ZodString;
728
+ argv: z.ZodArray<z.ZodString>;
729
+ }, z.core.$strict>>>;
730
+ administration: z.ZodDefault<z.ZodArray<z.ZodObject<{
731
+ name: z.ZodString;
732
+ request: z.ZodDiscriminatedUnion<[z.ZodObject<{
733
+ weight: z.ZodOptional<z.ZodNumber>;
734
+ concurrentHeavyWork: z.ZodOptional<z.ZodNumber>;
735
+ queuePolicy: z.ZodOptional<z.ZodEnum<{
736
+ fair: "fair";
737
+ fifo: "fifo";
738
+ reject: "reject";
739
+ }>>;
740
+ operation: z.ZodLiteral<"tenantSync">;
741
+ workspace: z.ZodString;
742
+ displayName: z.ZodOptional<z.ZodString>;
743
+ principalId: z.ZodOptional<z.ZodString>;
744
+ issuer: z.ZodOptional<z.ZodURL>;
745
+ subject: z.ZodOptional<z.ZodString>;
746
+ role: z.ZodDefault<z.ZodEnum<{
747
+ member: "member";
748
+ admin: "admin";
749
+ operator: "operator";
750
+ }>>;
751
+ }, z.core.$strict>, z.ZodObject<{
752
+ operation: z.ZodLiteral<"ingressPut">;
753
+ provider: z.ZodString;
754
+ externalIdentity: z.ZodString;
755
+ worker: z.ZodString;
756
+ channelScope: z.ZodOptional<z.ZodString>;
757
+ metadataFile: z.ZodOptional<z.ZodString>;
758
+ }, z.core.$strict>, z.ZodObject<{
759
+ operation: z.ZodLiteral<"ingressRevoke">;
760
+ identityId: z.ZodString;
761
+ }, z.core.$strict>, z.ZodObject<{
762
+ operation: z.ZodLiteral<"ingressWake">;
763
+ provider: z.ZodString;
764
+ externalIdentity: z.ZodString;
765
+ eventId: z.ZodString;
766
+ channelScope: z.ZodOptional<z.ZodString>;
767
+ payloadFile: z.ZodOptional<z.ZodString>;
768
+ correlationId: z.ZodOptional<z.ZodString>;
769
+ }, z.core.$strict>, z.ZodObject<{
770
+ operation: z.ZodLiteral<"ingressComplete">;
771
+ wakeId: z.ZodString;
772
+ error: z.ZodOptional<z.ZodString>;
773
+ }, z.core.$strict>, z.ZodObject<{
774
+ operation: z.ZodLiteral<"resize">;
775
+ worker: z.ZodString;
776
+ memoryTargetMiB: z.ZodNumber;
777
+ }, z.core.$strict>, z.ZodObject<{
778
+ weight: z.ZodOptional<z.ZodNumber>;
779
+ concurrentHeavyWork: z.ZodOptional<z.ZodNumber>;
780
+ queuePolicy: z.ZodOptional<z.ZodEnum<{
781
+ fair: "fair";
782
+ fifo: "fifo";
783
+ reject: "reject";
784
+ }>>;
785
+ operation: z.ZodLiteral<"workspacePut">;
786
+ workspace: z.ZodString;
787
+ displayName: z.ZodOptional<z.ZodString>;
788
+ }, z.core.$strict>, z.ZodObject<{
789
+ operation: z.ZodLiteral<"workspaceDisable">;
790
+ workspace: z.ZodString;
791
+ }, z.core.$strict>, z.ZodObject<{
792
+ operation: z.ZodLiteral<"userPut">;
793
+ user: z.ZodString;
794
+ workspace: z.ZodString;
795
+ role: z.ZodEnum<{
796
+ member: "member";
797
+ admin: "admin";
798
+ operator: "operator";
799
+ }>;
800
+ }, z.core.$strict>, z.ZodObject<{
801
+ operation: z.ZodLiteral<"ownerSet">;
802
+ worker: z.ZodString;
803
+ workspace: z.ZodString;
804
+ user: z.ZodOptional<z.ZodString>;
805
+ }, z.core.$strict>, z.ZodObject<{
806
+ operation: z.ZodLiteral<"shareGrant">;
807
+ worker: z.ZodString;
808
+ grantee: z.ZodDiscriminatedUnion<[z.ZodObject<{
809
+ kind: z.ZodLiteral<"workspace">;
810
+ id: z.ZodString;
811
+ }, z.core.$strict>, z.ZodObject<{
812
+ kind: z.ZodLiteral<"user">;
813
+ id: z.ZodString;
814
+ }, z.core.$strict>], "kind">;
815
+ allow: z.ZodArray<z.ZodEnum<{
816
+ status: "status";
817
+ exec: "exec";
818
+ start: "start";
819
+ stop: "stop";
820
+ ssh: "ssh";
821
+ logs: "logs";
822
+ events: "events";
823
+ runs: "runs";
824
+ assignments: "assignments";
825
+ schedule: "schedule";
826
+ capabilities: "capabilities";
827
+ auth: "auth";
828
+ leases: "leases";
829
+ resident: "resident";
830
+ wake: "wake";
831
+ cool: "cool";
832
+ list: "list";
833
+ inventory: "inventory";
834
+ monitor: "monitor";
835
+ roles: "roles";
836
+ ingress: "ingress";
837
+ }>>;
838
+ }, z.core.$strict>, z.ZodObject<{
839
+ operation: z.ZodLiteral<"shareRevoke">;
840
+ worker: z.ZodString;
841
+ shareId: z.ZodString;
842
+ }, z.core.$strict>, z.ZodObject<{
843
+ operation: z.ZodLiteral<"residentSet">;
844
+ worker: z.ZodString;
845
+ }, z.core.$strict>, z.ZodObject<{
846
+ operation: z.ZodLiteral<"wake">;
847
+ worker: z.ZodString;
848
+ reason: z.ZodOptional<z.ZodString>;
849
+ source: z.ZodDefault<z.ZodEnum<{
850
+ schedule: "schedule";
851
+ cli: "cli";
852
+ "control-plane": "control-plane";
853
+ delegation: "delegation";
854
+ }>>;
855
+ externalEventId: z.ZodOptional<z.ZodString>;
856
+ idempotencyKey: z.ZodString;
857
+ }, z.core.$strict>, z.ZodObject<{
858
+ operation: z.ZodLiteral<"cool">;
859
+ worker: z.ZodString;
860
+ }, z.core.$strict>, z.ZodObject<{
861
+ operation: z.ZodLiteral<"poolPolicySet">;
862
+ cpuPercent: z.ZodOptional<z.ZodNumber>;
863
+ memoryMaxBytes: z.ZodOptional<z.ZodNumber>;
864
+ memoryHighBytes: z.ZodOptional<z.ZodNumber>;
865
+ hostMemoryReserveBytes: z.ZodOptional<z.ZodNumber>;
866
+ launchReserveBytes: z.ZodOptional<z.ZodNumber>;
867
+ }, z.core.$strict>], "operation">;
868
+ }, z.core.$strict>>>;
869
+ }, z.core.$strict>>;
870
+ }, z.core.$strict>>;
871
+ }, z.core.$strict>, z.ZodTransform<{
872
+ target: string;
873
+ mode: "operator" | "paired";
874
+ sudo: boolean;
875
+ timeoutMs: number;
876
+ policy: {
877
+ lifecycle: {
878
+ worker: string;
879
+ operations: ("start" | "stop" | "promote" | "destroy")[];
880
+ }[];
881
+ spawns: {
882
+ worker: string;
883
+ profile: "light" | "small" | "standard" | "browser";
884
+ mode: "ephemeral" | "durable";
885
+ harnesses?: string[] | undefined;
886
+ bundles?: string[] | undefined;
887
+ capabilities?: string[] | undefined;
888
+ mcps?: string[] | undefined;
889
+ plugins?: string[] | undefined;
890
+ auth?: string[] | undefined;
891
+ }[];
892
+ commands: {
893
+ worker: string;
894
+ command: string;
895
+ argv: string[];
896
+ }[];
897
+ administration: {
898
+ name: string;
899
+ request: {
900
+ operation: "tenantSync";
901
+ workspace: string;
902
+ role: "member" | "admin" | "operator";
903
+ weight?: number | undefined;
904
+ concurrentHeavyWork?: number | undefined;
905
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
906
+ displayName?: string | undefined;
907
+ principalId?: string | undefined;
908
+ issuer?: string | undefined;
909
+ subject?: string | undefined;
910
+ } | {
911
+ operation: "ingressPut";
912
+ provider: string;
913
+ externalIdentity: string;
914
+ worker: string;
915
+ channelScope?: string | undefined;
916
+ metadataFile?: string | undefined;
917
+ } | {
918
+ operation: "ingressRevoke";
919
+ identityId: string;
920
+ } | {
921
+ operation: "ingressWake";
922
+ provider: string;
923
+ externalIdentity: string;
924
+ eventId: string;
925
+ channelScope?: string | undefined;
926
+ payloadFile?: string | undefined;
927
+ correlationId?: string | undefined;
928
+ } | {
929
+ operation: "ingressComplete";
930
+ wakeId: string;
931
+ error?: string | undefined;
932
+ } | {
933
+ operation: "resize";
934
+ worker: string;
935
+ memoryTargetMiB: number;
936
+ } | {
937
+ operation: "workspacePut";
938
+ workspace: string;
939
+ weight?: number | undefined;
940
+ concurrentHeavyWork?: number | undefined;
941
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
942
+ displayName?: string | undefined;
943
+ } | {
944
+ operation: "workspaceDisable";
945
+ workspace: string;
946
+ } | {
947
+ operation: "userPut";
948
+ user: string;
949
+ workspace: string;
950
+ role: "member" | "admin" | "operator";
951
+ } | {
952
+ operation: "ownerSet";
953
+ worker: string;
954
+ workspace: string;
955
+ user?: string | undefined;
956
+ } | {
957
+ operation: "shareGrant";
958
+ worker: string;
959
+ grantee: {
960
+ kind: "workspace";
961
+ id: string;
962
+ } | {
963
+ kind: "user";
964
+ id: string;
965
+ };
966
+ allow: ("status" | "exec" | "start" | "stop" | "ssh" | "logs" | "events" | "runs" | "assignments" | "schedule" | "capabilities" | "auth" | "leases" | "resident" | "wake" | "cool" | "list" | "inventory" | "monitor" | "roles" | "ingress")[];
967
+ } | {
968
+ operation: "shareRevoke";
969
+ worker: string;
970
+ shareId: string;
971
+ } | {
972
+ operation: "residentSet";
973
+ worker: string;
974
+ } | {
975
+ operation: "wake";
976
+ worker: string;
977
+ source: "schedule" | "cli" | "control-plane" | "delegation";
978
+ idempotencyKey: string;
979
+ reason?: string | undefined;
980
+ externalEventId?: string | undefined;
981
+ } | {
982
+ operation: "cool";
983
+ worker: string;
984
+ } | {
985
+ operation: "poolPolicySet";
986
+ cpuPercent?: number | undefined;
987
+ memoryMaxBytes?: number | undefined;
988
+ memoryHighBytes?: number | undefined;
989
+ hostMemoryReserveBytes?: number | undefined;
990
+ launchReserveBytes?: number | undefined;
991
+ };
992
+ }[];
993
+ };
994
+ identityFile?: string | undefined;
995
+ identityTokenFile?: string | undefined;
996
+ }, {
997
+ selectedProfile: string;
998
+ profiles: Record<string, {
999
+ target: string;
1000
+ mode: "operator" | "paired";
1001
+ sudo: boolean;
1002
+ timeoutMs: number;
1003
+ policy: {
1004
+ lifecycle: {
1005
+ worker: string;
1006
+ operations: ("start" | "stop" | "promote" | "destroy")[];
1007
+ }[];
1008
+ spawns: {
1009
+ worker: string;
1010
+ profile: "light" | "small" | "standard" | "browser";
1011
+ mode: "ephemeral" | "durable";
1012
+ harnesses?: string[] | undefined;
1013
+ bundles?: string[] | undefined;
1014
+ capabilities?: string[] | undefined;
1015
+ mcps?: string[] | undefined;
1016
+ plugins?: string[] | undefined;
1017
+ auth?: string[] | undefined;
1018
+ }[];
1019
+ commands: {
1020
+ worker: string;
1021
+ command: string;
1022
+ argv: string[];
1023
+ }[];
1024
+ administration: {
1025
+ name: string;
1026
+ request: {
1027
+ operation: "tenantSync";
1028
+ workspace: string;
1029
+ role: "member" | "admin" | "operator";
1030
+ weight?: number | undefined;
1031
+ concurrentHeavyWork?: number | undefined;
1032
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
1033
+ displayName?: string | undefined;
1034
+ principalId?: string | undefined;
1035
+ issuer?: string | undefined;
1036
+ subject?: string | undefined;
1037
+ } | {
1038
+ operation: "ingressPut";
1039
+ provider: string;
1040
+ externalIdentity: string;
1041
+ worker: string;
1042
+ channelScope?: string | undefined;
1043
+ metadataFile?: string | undefined;
1044
+ } | {
1045
+ operation: "ingressRevoke";
1046
+ identityId: string;
1047
+ } | {
1048
+ operation: "ingressWake";
1049
+ provider: string;
1050
+ externalIdentity: string;
1051
+ eventId: string;
1052
+ channelScope?: string | undefined;
1053
+ payloadFile?: string | undefined;
1054
+ correlationId?: string | undefined;
1055
+ } | {
1056
+ operation: "ingressComplete";
1057
+ wakeId: string;
1058
+ error?: string | undefined;
1059
+ } | {
1060
+ operation: "resize";
1061
+ worker: string;
1062
+ memoryTargetMiB: number;
1063
+ } | {
1064
+ operation: "workspacePut";
1065
+ workspace: string;
1066
+ weight?: number | undefined;
1067
+ concurrentHeavyWork?: number | undefined;
1068
+ queuePolicy?: "fair" | "fifo" | "reject" | undefined;
1069
+ displayName?: string | undefined;
1070
+ } | {
1071
+ operation: "workspaceDisable";
1072
+ workspace: string;
1073
+ } | {
1074
+ operation: "userPut";
1075
+ user: string;
1076
+ workspace: string;
1077
+ role: "member" | "admin" | "operator";
1078
+ } | {
1079
+ operation: "ownerSet";
1080
+ worker: string;
1081
+ workspace: string;
1082
+ user?: string | undefined;
1083
+ } | {
1084
+ operation: "shareGrant";
1085
+ worker: string;
1086
+ grantee: {
1087
+ kind: "workspace";
1088
+ id: string;
1089
+ } | {
1090
+ kind: "user";
1091
+ id: string;
1092
+ };
1093
+ allow: ("status" | "exec" | "start" | "stop" | "ssh" | "logs" | "events" | "runs" | "assignments" | "schedule" | "capabilities" | "auth" | "leases" | "resident" | "wake" | "cool" | "list" | "inventory" | "monitor" | "roles" | "ingress")[];
1094
+ } | {
1095
+ operation: "shareRevoke";
1096
+ worker: string;
1097
+ shareId: string;
1098
+ } | {
1099
+ operation: "residentSet";
1100
+ worker: string;
1101
+ } | {
1102
+ operation: "wake";
1103
+ worker: string;
1104
+ source: "schedule" | "cli" | "control-plane" | "delegation";
1105
+ idempotencyKey: string;
1106
+ reason?: string | undefined;
1107
+ externalEventId?: string | undefined;
1108
+ } | {
1109
+ operation: "cool";
1110
+ worker: string;
1111
+ } | {
1112
+ operation: "poolPolicySet";
1113
+ cpuPercent?: number | undefined;
1114
+ memoryMaxBytes?: number | undefined;
1115
+ memoryHighBytes?: number | undefined;
1116
+ hostMemoryReserveBytes?: number | undefined;
1117
+ launchReserveBytes?: number | undefined;
1118
+ };
1119
+ }[];
1120
+ };
1121
+ identityFile?: string | undefined;
1122
+ identityTokenFile?: string | undefined;
1123
+ }>;
1124
+ }>>]>;
1125
+ export type AvmConfig = z.input<typeof avmConfigSchema>;