@agent-vm/gateway-control-contracts 0.0.109

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,3101 @@
1
+ import { ControlDeliveryPolicy, ControlEnvelope, ControlSessionControllerToPeerEvents, ControlSessionPeerToControllerEvents } from "@agent-vm/control-protocol-contracts";
2
+ import { z } from "zod/v4";
3
+
4
+ //#region src/index.d.ts
5
+ declare const GatewayControlDomainSchema: z.ZodLiteral<"gateway_control">;
6
+ declare const GatewayControlRpcOperationSchema: z.ZodEnum<{
7
+ control_ping: "control_ping";
8
+ caller_context_register: "caller_context_register";
9
+ lease_create: "lease_create";
10
+ lease_get: "lease_get";
11
+ lease_peek: "lease_peek";
12
+ lease_renew: "lease_renew";
13
+ lease_release: "lease_release";
14
+ lease_use_start: "lease_use_start";
15
+ lease_use_heartbeat: "lease_use_heartbeat";
16
+ lease_use_end: "lease_use_end";
17
+ health_event: "health_event";
18
+ runtime_status: "runtime_status";
19
+ tool_portal_controller_host_action: "tool_portal_controller_host_action";
20
+ operation_cancel: "operation_cancel";
21
+ recovery_command: "recovery_command";
22
+ }>;
23
+ declare const GatewayControlRpcResultSchema: z.ZodEnum<{
24
+ rejected: "rejected";
25
+ failed: "failed";
26
+ ok: "ok";
27
+ timeout: "timeout";
28
+ cancelled: "cancelled";
29
+ stale_generation: "stale_generation";
30
+ approval_required: "approval_required";
31
+ approval_stale: "approval_stale";
32
+ }>;
33
+ declare const GatewayControlForbiddenPayloadFieldSchema: z.ZodEnum<{
34
+ adminToken: "adminToken";
35
+ agentId: "agentId";
36
+ approvalProof: "approvalProof";
37
+ argv: "argv";
38
+ controllerInstanceId: "controllerInstanceId";
39
+ cwd: "cwd";
40
+ credentialProfileId: "credentialProfileId";
41
+ egressPolicy: "egressPolicy";
42
+ env: "env";
43
+ executablePath: "executablePath";
44
+ hostWorkMountDir: "hostWorkMountDir";
45
+ profileId: "profileId";
46
+ rawCredentialRef: "rawCredentialRef";
47
+ retryPolicy: "retryPolicy";
48
+ routeToken: "routeToken";
49
+ sessionKey: "sessionKey";
50
+ sshIdentityPem: "sshIdentityPem";
51
+ vmGenerationOverride: "vmGenerationOverride";
52
+ workMountDir: "workMountDir";
53
+ }>;
54
+ declare const GatewayControlCapabilityRefSchema: z.ZodObject<{
55
+ name: z.ZodString;
56
+ namespace: z.ZodString;
57
+ }, z.core.$strict>;
58
+ declare const GatewayControlToolCallCorrelationSchema: z.ZodObject<{
59
+ causationId: z.ZodOptional<z.ZodString>;
60
+ correlationId: z.ZodOptional<z.ZodString>;
61
+ requestId: z.ZodOptional<z.ZodString>;
62
+ runId: z.ZodOptional<z.ZodString>;
63
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
64
+ toolCallId: z.ZodOptional<z.ZodString>;
65
+ traceId: z.ZodOptional<z.ZodString>;
66
+ capability: z.ZodOptional<z.ZodObject<{
67
+ name: z.ZodString;
68
+ namespace: z.ZodString;
69
+ }, z.core.$strict>>;
70
+ }, z.core.$strict>;
71
+ declare const GatewayControlTrustedCallerContextIdSchema: z.ZodString;
72
+ declare const GatewayControlTrustedLeaseContextSchema: z.ZodObject<{
73
+ agentId: z.ZodString;
74
+ agentWorkspaceDir: z.ZodString;
75
+ approvalScopeId: z.ZodOptional<z.ZodString>;
76
+ callerContextId: z.ZodString;
77
+ custodyScopeId: z.ZodOptional<z.ZodString>;
78
+ hostWorkMountDir: z.ZodString;
79
+ profileId: z.ZodString;
80
+ sessionKeyDigest: z.ZodString;
81
+ workMountDir: z.ZodString;
82
+ zoneId: z.ZodString;
83
+ }, z.core.$strict>;
84
+ declare const GatewayControlCallerContextRefSchema: z.ZodObject<{
85
+ callerContextId: z.ZodString;
86
+ }, z.core.$strict>;
87
+ declare const GatewayControlCallerContextProofAlgorithmSchema: z.ZodLiteral<"hmac-sha256">;
88
+ declare const GatewayControlCallerContextProofSchema: z.ZodObject<{
89
+ algorithm: z.ZodLiteral<"hmac-sha256">;
90
+ digest: z.ZodString;
91
+ }, z.core.$strict>;
92
+ declare const GatewayControlCallerContextAgentAuthoritySchema: z.ZodObject<{
93
+ algorithm: z.ZodLiteral<"hmac-sha256">;
94
+ digest: z.ZodString;
95
+ keyId: z.ZodString;
96
+ }, z.core.$strict>;
97
+ interface GatewayControlCallerContextProofPayloadInput {
98
+ readonly agentId: string;
99
+ readonly agentWorkspaceDir: string;
100
+ readonly purpose?: 'tool_vm_lease' | 'tool_portal_controller_host_action' | undefined;
101
+ readonly sessionKey: string;
102
+ readonly workMountDir: string;
103
+ readonly zoneId: string;
104
+ }
105
+ declare function buildGatewayControlCallerContextProofPayload(input: GatewayControlCallerContextProofPayloadInput): string;
106
+ declare function buildGatewayControlCallerContextAgentAuthorityPayload(input: GatewayControlCallerContextProofPayloadInput): string;
107
+ declare const GatewayControlCallerContextRegisterPayloadSchema: z.ZodObject<{
108
+ adapterEvidence: z.ZodObject<{
109
+ agentAuthority: z.ZodObject<{
110
+ algorithm: z.ZodLiteral<"hmac-sha256">;
111
+ digest: z.ZodString;
112
+ keyId: z.ZodString;
113
+ }, z.core.$strict>;
114
+ agentId: z.ZodString;
115
+ agentWorkspaceDir: z.ZodString;
116
+ proof: z.ZodObject<{
117
+ algorithm: z.ZodLiteral<"hmac-sha256">;
118
+ digest: z.ZodString;
119
+ }, z.core.$strict>;
120
+ purpose: z.ZodOptional<z.ZodEnum<{
121
+ tool_portal_controller_host_action: "tool_portal_controller_host_action";
122
+ tool_vm_lease: "tool_vm_lease";
123
+ }>>;
124
+ sessionKey: z.ZodString;
125
+ workMountDir: z.ZodString;
126
+ zoneId: z.ZodString;
127
+ }, z.core.$strict>;
128
+ correlation: z.ZodOptional<z.ZodObject<{
129
+ causationId: z.ZodOptional<z.ZodString>;
130
+ correlationId: z.ZodOptional<z.ZodString>;
131
+ requestId: z.ZodOptional<z.ZodString>;
132
+ runId: z.ZodOptional<z.ZodString>;
133
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
134
+ toolCallId: z.ZodOptional<z.ZodString>;
135
+ traceId: z.ZodOptional<z.ZodString>;
136
+ capability: z.ZodOptional<z.ZodObject<{
137
+ name: z.ZodString;
138
+ namespace: z.ZodString;
139
+ }, z.core.$strict>>;
140
+ }, z.core.$strict>>;
141
+ }, z.core.$strict>;
142
+ declare const GatewayControlLeaseCreateIntentPayloadSchema: z.ZodObject<{
143
+ callerContext: z.ZodObject<{
144
+ callerContextId: z.ZodString;
145
+ }, z.core.$strict>;
146
+ correlation: z.ZodOptional<z.ZodObject<{
147
+ causationId: z.ZodOptional<z.ZodString>;
148
+ correlationId: z.ZodOptional<z.ZodString>;
149
+ requestId: z.ZodOptional<z.ZodString>;
150
+ runId: z.ZodOptional<z.ZodString>;
151
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
152
+ toolCallId: z.ZodOptional<z.ZodString>;
153
+ traceId: z.ZodOptional<z.ZodString>;
154
+ capability: z.ZodOptional<z.ZodObject<{
155
+ name: z.ZodString;
156
+ namespace: z.ZodString;
157
+ }, z.core.$strict>>;
158
+ }, z.core.$strict>>;
159
+ gatewayWorkspaceDir: z.ZodOptional<z.ZodString>;
160
+ idleTtlHintMs: z.ZodOptional<z.ZodNumber>;
161
+ }, z.core.$strict>;
162
+ declare const GatewayControlLeaseIdPayloadSchema: z.ZodObject<{
163
+ callerContext: z.ZodObject<{
164
+ callerContextId: z.ZodString;
165
+ }, z.core.$strict>;
166
+ leaseId: z.ZodString;
167
+ }, z.core.$strict>;
168
+ declare const GatewayControlLeaseUseStartPayloadSchema: z.ZodObject<{
169
+ callerContext: z.ZodObject<{
170
+ callerContextId: z.ZodString;
171
+ }, z.core.$strict>;
172
+ correlation: z.ZodOptional<z.ZodObject<{
173
+ causationId: z.ZodOptional<z.ZodString>;
174
+ correlationId: z.ZodOptional<z.ZodString>;
175
+ requestId: z.ZodOptional<z.ZodString>;
176
+ runId: z.ZodOptional<z.ZodString>;
177
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
178
+ toolCallId: z.ZodOptional<z.ZodString>;
179
+ traceId: z.ZodOptional<z.ZodString>;
180
+ capability: z.ZodOptional<z.ZodObject<{
181
+ name: z.ZodString;
182
+ namespace: z.ZodString;
183
+ }, z.core.$strict>>;
184
+ }, z.core.$strict>>;
185
+ leaseId: z.ZodString;
186
+ useId: z.ZodString;
187
+ }, z.core.$strict>;
188
+ declare const GatewayControlLeaseUseHeartbeatPayloadSchema: z.ZodObject<{
189
+ callerContext: z.ZodObject<{
190
+ callerContextId: z.ZodString;
191
+ }, z.core.$strict>;
192
+ leaseId: z.ZodString;
193
+ observedAtMs: z.ZodOptional<z.ZodNumber>;
194
+ useId: z.ZodString;
195
+ }, z.core.$strict>;
196
+ declare const GatewayControlLeaseUseEndPayloadSchema: z.ZodObject<{
197
+ callerContext: z.ZodObject<{
198
+ callerContextId: z.ZodString;
199
+ }, z.core.$strict>;
200
+ leaseId: z.ZodString;
201
+ reason: z.ZodEnum<{
202
+ failed: "failed";
203
+ cancelled: "cancelled";
204
+ completed: "completed";
205
+ timed_out: "timed_out";
206
+ }>;
207
+ useId: z.ZodString;
208
+ }, z.core.$strict>;
209
+ declare const GatewayControlHealthEventResultSchema: z.ZodEnum<{
210
+ failed: "failed";
211
+ ok: "ok";
212
+ timeout: "timeout";
213
+ degraded: "degraded";
214
+ }>;
215
+ declare const GatewayControlProviderRuntimeHealthSchema: z.ZodEnum<{
216
+ healthy: "healthy";
217
+ transitioning: "transitioning";
218
+ unhealthy_recoverable: "unhealthy_recoverable";
219
+ unhealthy_unrecoverable: "unhealthy_unrecoverable";
220
+ }>;
221
+ declare const GatewayControlControllerRequestHealthOperationSchema: z.ZodEnum<{
222
+ "zone-git-push": "zone-git-push";
223
+ "lease-create": "lease-create";
224
+ "lease-get": "lease-get";
225
+ "lease-peek": "lease-peek";
226
+ "lease-release": "lease-release";
227
+ "lease-use-start": "lease-use-start";
228
+ "lease-use-end": "lease-use-end";
229
+ }>;
230
+ declare const GatewayControlSessionHealthOperationSchema: z.ZodEnum<{
231
+ "control-session-hello": "control-session-hello";
232
+ "control-session-heartbeat": "control-session-heartbeat";
233
+ "control-session-disconnect": "control-session-disconnect";
234
+ "control-session-reconnect": "control-session-reconnect";
235
+ }>;
236
+ declare const GatewayControlToolVmSshHealthOperationSchema: z.ZodEnum<{
237
+ command: "command";
238
+ "file-bridge": "file-bridge";
239
+ finalize: "finalize";
240
+ probe: "probe";
241
+ }>;
242
+ declare const GatewayControlHealthEventPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
243
+ correlation: z.ZodOptional<z.ZodObject<{
244
+ causationId: z.ZodOptional<z.ZodString>;
245
+ correlationId: z.ZodOptional<z.ZodString>;
246
+ requestId: z.ZodOptional<z.ZodString>;
247
+ runId: z.ZodOptional<z.ZodString>;
248
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
249
+ toolCallId: z.ZodOptional<z.ZodString>;
250
+ traceId: z.ZodOptional<z.ZodString>;
251
+ }, z.core.$strict>>;
252
+ observedAtMs: z.ZodNumber;
253
+ result: z.ZodEnum<{
254
+ failed: "failed";
255
+ ok: "ok";
256
+ timeout: "timeout";
257
+ degraded: "degraded";
258
+ }>;
259
+ channelProviderId: z.ZodString;
260
+ eventKind: z.ZodLiteral<"agent-channel-provider-health">;
261
+ providerRuntimeHealth: z.ZodEnum<{
262
+ healthy: "healthy";
263
+ transitioning: "transitioning";
264
+ unhealthy_recoverable: "unhealthy_recoverable";
265
+ unhealthy_unrecoverable: "unhealthy_unrecoverable";
266
+ }>;
267
+ safeDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
268
+ }, z.core.$strict>, z.ZodObject<{
269
+ correlation: z.ZodOptional<z.ZodObject<{
270
+ causationId: z.ZodOptional<z.ZodString>;
271
+ correlationId: z.ZodOptional<z.ZodString>;
272
+ requestId: z.ZodOptional<z.ZodString>;
273
+ runId: z.ZodOptional<z.ZodString>;
274
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
275
+ toolCallId: z.ZodOptional<z.ZodString>;
276
+ traceId: z.ZodOptional<z.ZodString>;
277
+ }, z.core.$strict>>;
278
+ observedAtMs: z.ZodNumber;
279
+ result: z.ZodEnum<{
280
+ failed: "failed";
281
+ ok: "ok";
282
+ timeout: "timeout";
283
+ degraded: "degraded";
284
+ }>;
285
+ attempt: z.ZodNumber;
286
+ elapsedMs: z.ZodNumber;
287
+ errorCode: z.ZodOptional<z.ZodString>;
288
+ eventKind: z.ZodLiteral<"controller-request">;
289
+ maxAttempts: z.ZodNumber;
290
+ operation: z.ZodEnum<{
291
+ "zone-git-push": "zone-git-push";
292
+ "lease-create": "lease-create";
293
+ "lease-get": "lease-get";
294
+ "lease-peek": "lease-peek";
295
+ "lease-release": "lease-release";
296
+ "lease-use-start": "lease-use-start";
297
+ "lease-use-end": "lease-use-end";
298
+ }>;
299
+ statusCode: z.ZodOptional<z.ZodNumber>;
300
+ }, z.core.$strict>, z.ZodObject<{
301
+ correlation: z.ZodOptional<z.ZodObject<{
302
+ causationId: z.ZodOptional<z.ZodString>;
303
+ correlationId: z.ZodOptional<z.ZodString>;
304
+ requestId: z.ZodOptional<z.ZodString>;
305
+ runId: z.ZodOptional<z.ZodString>;
306
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
307
+ toolCallId: z.ZodOptional<z.ZodString>;
308
+ traceId: z.ZodOptional<z.ZodString>;
309
+ }, z.core.$strict>>;
310
+ observedAtMs: z.ZodNumber;
311
+ result: z.ZodEnum<{
312
+ failed: "failed";
313
+ ok: "ok";
314
+ timeout: "timeout";
315
+ degraded: "degraded";
316
+ }>;
317
+ elapsedMs: z.ZodNumber;
318
+ eventKind: z.ZodLiteral<"gateway-control-session">;
319
+ operation: z.ZodEnum<{
320
+ "control-session-hello": "control-session-hello";
321
+ "control-session-heartbeat": "control-session-heartbeat";
322
+ "control-session-disconnect": "control-session-disconnect";
323
+ "control-session-reconnect": "control-session-reconnect";
324
+ }>;
325
+ safeDetails: z.ZodObject<{
326
+ peerId: z.ZodString;
327
+ }, z.core.$catchall<z.ZodString>>;
328
+ }, z.core.$strict>, z.ZodObject<{
329
+ correlation: z.ZodOptional<z.ZodObject<{
330
+ causationId: z.ZodOptional<z.ZodString>;
331
+ correlationId: z.ZodOptional<z.ZodString>;
332
+ requestId: z.ZodOptional<z.ZodString>;
333
+ runId: z.ZodOptional<z.ZodString>;
334
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
335
+ toolCallId: z.ZodOptional<z.ZodString>;
336
+ traceId: z.ZodOptional<z.ZodString>;
337
+ }, z.core.$strict>>;
338
+ observedAtMs: z.ZodNumber;
339
+ result: z.ZodEnum<{
340
+ failed: "failed";
341
+ ok: "ok";
342
+ timeout: "timeout";
343
+ degraded: "degraded";
344
+ }>;
345
+ eventKind: z.ZodLiteral<"gateway-plugin-health">;
346
+ }, z.core.$strict>, z.ZodObject<{
347
+ correlation: z.ZodOptional<z.ZodObject<{
348
+ causationId: z.ZodOptional<z.ZodString>;
349
+ correlationId: z.ZodOptional<z.ZodString>;
350
+ requestId: z.ZodOptional<z.ZodString>;
351
+ runId: z.ZodOptional<z.ZodString>;
352
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
353
+ toolCallId: z.ZodOptional<z.ZodString>;
354
+ traceId: z.ZodOptional<z.ZodString>;
355
+ }, z.core.$strict>>;
356
+ observedAtMs: z.ZodNumber;
357
+ result: z.ZodEnum<{
358
+ failed: "failed";
359
+ ok: "ok";
360
+ timeout: "timeout";
361
+ degraded: "degraded";
362
+ }>;
363
+ agentId: z.ZodString;
364
+ elapsedMs: z.ZodNumber;
365
+ errorCode: z.ZodOptional<z.ZodString>;
366
+ leaseId: z.ZodString;
367
+ eventKind: z.ZodLiteral<"tool-vm-ssh">;
368
+ operation: z.ZodEnum<{
369
+ command: "command";
370
+ "file-bridge": "file-bridge";
371
+ finalize: "finalize";
372
+ probe: "probe";
373
+ }>;
374
+ }, z.core.$strict>], "eventKind">;
375
+ declare const GatewayControlRuntimeFindingSchema: z.ZodObject<{
376
+ id: z.ZodString;
377
+ ok: z.ZodBoolean;
378
+ safeMessage: z.ZodOptional<z.ZodString>;
379
+ severity: z.ZodOptional<z.ZodEnum<{
380
+ error: "error";
381
+ info: "info";
382
+ warning: "warning";
383
+ }>>;
384
+ }, z.core.$strict>;
385
+ declare const GatewayControlRuntimeStatusPayloadSchema: z.ZodObject<{
386
+ findings: z.ZodArray<z.ZodObject<{
387
+ id: z.ZodString;
388
+ ok: z.ZodBoolean;
389
+ safeMessage: z.ZodOptional<z.ZodString>;
390
+ severity: z.ZodOptional<z.ZodEnum<{
391
+ error: "error";
392
+ info: "info";
393
+ warning: "warning";
394
+ }>>;
395
+ }, z.core.$strict>>;
396
+ observedAtMs: z.ZodNumber;
397
+ providerRuntimeHealth: z.ZodOptional<z.ZodEnum<{
398
+ healthy: "healthy";
399
+ transitioning: "transitioning";
400
+ unhealthy_recoverable: "unhealthy_recoverable";
401
+ unhealthy_unrecoverable: "unhealthy_unrecoverable";
402
+ }>>;
403
+ statusKind: z.ZodString;
404
+ }, z.core.$strict>;
405
+ declare const GatewayControlToolPortalControllerHostActionPayloadSchema: z.ZodObject<{
406
+ actionId: z.ZodLiteral<"zone_git_push">;
407
+ callerContext: z.ZodObject<{
408
+ callerContextId: z.ZodString;
409
+ }, z.core.$strict>;
410
+ correlation: z.ZodObject<{
411
+ causationId: z.ZodOptional<z.ZodString>;
412
+ correlationId: z.ZodOptional<z.ZodString>;
413
+ requestId: z.ZodOptional<z.ZodString>;
414
+ runId: z.ZodOptional<z.ZodString>;
415
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
416
+ toolCallId: z.ZodOptional<z.ZodString>;
417
+ traceId: z.ZodOptional<z.ZodString>;
418
+ capability: z.ZodOptional<z.ZodObject<{
419
+ name: z.ZodString;
420
+ namespace: z.ZodString;
421
+ }, z.core.$strict>>;
422
+ }, z.core.$strict>;
423
+ expectedHead: z.ZodString;
424
+ }, z.core.$strict>;
425
+ declare const GatewayControlZoneGitCommitSummarySchema: z.ZodObject<{
426
+ sha: z.ZodString;
427
+ subject: z.ZodString;
428
+ }, z.core.$strict>;
429
+ declare const GatewayControlZoneGitPushResultSchema: z.ZodObject<{
430
+ branch: z.ZodString;
431
+ localHead: z.ZodString;
432
+ pushedCommits: z.ZodArray<z.ZodObject<{
433
+ sha: z.ZodString;
434
+ subject: z.ZodString;
435
+ }, z.core.$strict>>;
436
+ remoteHead: z.ZodString;
437
+ }, z.core.$strict>;
438
+ declare const GatewayControlToolPortalControllerHostActionResultSchema: z.ZodObject<{
439
+ actionId: z.ZodLiteral<"zone_git_push">;
440
+ result: z.ZodObject<{
441
+ branch: z.ZodString;
442
+ localHead: z.ZodString;
443
+ pushedCommits: z.ZodArray<z.ZodObject<{
444
+ sha: z.ZodString;
445
+ subject: z.ZodString;
446
+ }, z.core.$strict>>;
447
+ remoteHead: z.ZodString;
448
+ }, z.core.$strict>;
449
+ }, z.core.$strict>;
450
+ declare const GatewayControlActiveOperationIdSchema: z.ZodString;
451
+ declare const GatewayInitiatedOperationCancelPayloadSchema: z.ZodObject<{
452
+ activeOperationId: z.ZodString;
453
+ initiatedBy: z.ZodLiteral<"gateway">;
454
+ reason: z.ZodEnum<{
455
+ caller_cancelled: "caller_cancelled";
456
+ gateway_shutdown: "gateway_shutdown";
457
+ operation_failed: "operation_failed";
458
+ }>;
459
+ }, z.core.$strict>;
460
+ declare const ControllerInitiatedGatewayOperationCancelPayloadSchema: z.ZodObject<{
461
+ activeOperationId: z.ZodString;
462
+ initiatedBy: z.ZodLiteral<"controller">;
463
+ reason: z.ZodEnum<{
464
+ timeout: "timeout";
465
+ controller_recovery: "controller_recovery";
466
+ operator_cancelled: "operator_cancelled";
467
+ }>;
468
+ }, z.core.$strict>;
469
+ declare const GatewayControlOperationCancelPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
470
+ activeOperationId: z.ZodString;
471
+ initiatedBy: z.ZodLiteral<"gateway">;
472
+ reason: z.ZodEnum<{
473
+ caller_cancelled: "caller_cancelled";
474
+ gateway_shutdown: "gateway_shutdown";
475
+ operation_failed: "operation_failed";
476
+ }>;
477
+ }, z.core.$strict>, z.ZodObject<{
478
+ activeOperationId: z.ZodString;
479
+ initiatedBy: z.ZodLiteral<"controller">;
480
+ reason: z.ZodEnum<{
481
+ timeout: "timeout";
482
+ controller_recovery: "controller_recovery";
483
+ operator_cancelled: "operator_cancelled";
484
+ }>;
485
+ }, z.core.$strict>], "initiatedBy">;
486
+ declare const GatewayControlRecoveryCommandPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
487
+ action: z.ZodLiteral<"refresh_runtime_status">;
488
+ }, z.core.$strict>, z.ZodObject<{
489
+ action: z.ZodLiteral<"restart_control_service">;
490
+ }, z.core.$strict>, z.ZodObject<{
491
+ action: z.ZodLiteral<"close_stale_session">;
492
+ targetSessionId: z.ZodString;
493
+ }, z.core.$strict>], "action">;
494
+ declare const GatewayControlPingPayloadSchema: z.ZodObject<{}, z.core.$strict>;
495
+ declare const GatewayControlHeartbeatPayloadSchema: z.ZodObject<{
496
+ elapsedMs: z.ZodOptional<z.ZodNumber>;
497
+ observedAtMs: z.ZodNumber;
498
+ }, z.core.$strict>;
499
+ declare const GatewayControlRpcErrorSchema: z.ZodObject<{
500
+ errorClass: z.ZodString;
501
+ retryable: z.ZodOptional<z.ZodBoolean>;
502
+ safeMessage: z.ZodOptional<z.ZodString>;
503
+ }, z.core.$strict>;
504
+ declare const GatewayControlSessionStateSchema: z.ZodEnum<{
505
+ generation_mismatch: "generation_mismatch";
506
+ unknown: "unknown";
507
+ connecting: "connecting";
508
+ ready: "ready";
509
+ reconnecting: "reconnecting";
510
+ stale: "stale";
511
+ rejected: "rejected";
512
+ failed: "failed";
513
+ closed: "closed";
514
+ }>;
515
+ declare const GatewayControlToolVmSshAccessSchema: z.ZodObject<{
516
+ host: z.ZodString;
517
+ identityPem: z.ZodOptional<z.ZodString>;
518
+ knownHostsLine: z.ZodOptional<z.ZodString>;
519
+ port: z.ZodNumber;
520
+ user: z.ZodString;
521
+ }, z.core.$strict>;
522
+ declare const GatewayControlLeaseSnapshotSchema: z.ZodObject<{
523
+ agentId: z.ZodString;
524
+ activeUseId: z.ZodOptional<z.ZodString>;
525
+ expiresAtMs: z.ZodOptional<z.ZodNumber>;
526
+ idleTtlMs: z.ZodNumber;
527
+ leaseId: z.ZodString;
528
+ ssh: z.ZodOptional<z.ZodObject<{
529
+ host: z.ZodString;
530
+ identityPem: z.ZodOptional<z.ZodString>;
531
+ knownHostsLine: z.ZodOptional<z.ZodString>;
532
+ port: z.ZodNumber;
533
+ user: z.ZodString;
534
+ }, z.core.$strict>>;
535
+ state: z.ZodEnum<{
536
+ idle: "idle";
537
+ active: "active";
538
+ expired: "expired";
539
+ released: "released";
540
+ }>;
541
+ tcpSlot: z.ZodNumber;
542
+ transport: z.ZodLiteral<"ssh-sandbox">;
543
+ workdir: z.ZodString;
544
+ zoneId: z.ZodString;
545
+ }, z.core.$strict>;
546
+ declare const GatewayControlLeaseUseSnapshotSchema: z.ZodObject<{
547
+ expiresAt: z.ZodOptional<z.ZodNumber>;
548
+ heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
549
+ leaseId: z.ZodString;
550
+ state: z.ZodEnum<{
551
+ active: "active";
552
+ expired: "expired";
553
+ ended: "ended";
554
+ }>;
555
+ useId: z.ZodString;
556
+ }, z.core.$strict>;
557
+ declare const GatewayControlLeaseRejectionReasonSchema: z.ZodEnum<{
558
+ absent: "absent";
559
+ generation_stale: "generation_stale";
560
+ force_released: "force_released";
561
+ releasing: "releasing";
562
+ use_tombstoned: "use_tombstoned";
563
+ runtime_not_ready: "runtime_not_ready";
564
+ }>;
565
+ declare const GatewayControlRpcDomainCorrelationSchema: z.ZodObject<{
566
+ causationId: z.ZodOptional<z.ZodString>;
567
+ correlationId: z.ZodOptional<z.ZodString>;
568
+ requestId: z.ZodOptional<z.ZodString>;
569
+ runId: z.ZodOptional<z.ZodString>;
570
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
571
+ toolCallId: z.ZodOptional<z.ZodString>;
572
+ traceId: z.ZodOptional<z.ZodString>;
573
+ }, z.core.$strict>;
574
+ declare const GatewayControlRpcResponseBasePayloadSchema: z.ZodObject<{
575
+ responseToMessageId: z.ZodString;
576
+ result: z.ZodEnum<{
577
+ rejected: "rejected";
578
+ failed: "failed";
579
+ ok: "ok";
580
+ timeout: "timeout";
581
+ cancelled: "cancelled";
582
+ stale_generation: "stale_generation";
583
+ approval_required: "approval_required";
584
+ approval_stale: "approval_stale";
585
+ }>;
586
+ activeOperationId: z.ZodOptional<z.ZodNever>;
587
+ approvalRequired: z.ZodOptional<z.ZodNever>;
588
+ callerContext: z.ZodOptional<z.ZodNever>;
589
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
590
+ error: z.ZodOptional<z.ZodNever>;
591
+ lease: z.ZodOptional<z.ZodNever>;
592
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
593
+ leaseUse: z.ZodOptional<z.ZodNever>;
594
+ }, z.core.$strip>;
595
+ declare const GatewayControlRpcBareResponsePayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
596
+ responseToMessageId: z.ZodString;
597
+ result: z.ZodLiteral<"ok">;
598
+ activeOperationId: z.ZodOptional<z.ZodNever>;
599
+ approvalRequired: z.ZodOptional<z.ZodNever>;
600
+ callerContext: z.ZodOptional<z.ZodNever>;
601
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
602
+ error: z.ZodOptional<z.ZodNever>;
603
+ lease: z.ZodOptional<z.ZodNever>;
604
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
605
+ leaseUse: z.ZodOptional<z.ZodNever>;
606
+ }, z.core.$strict>, z.ZodObject<{
607
+ responseToMessageId: z.ZodString;
608
+ error: z.ZodObject<{
609
+ errorClass: z.ZodString;
610
+ retryable: z.ZodOptional<z.ZodBoolean>;
611
+ safeMessage: z.ZodOptional<z.ZodString>;
612
+ }, z.core.$strict>;
613
+ result: z.ZodEnum<{
614
+ rejected: "rejected";
615
+ failed: "failed";
616
+ timeout: "timeout";
617
+ cancelled: "cancelled";
618
+ stale_generation: "stale_generation";
619
+ approval_required: "approval_required";
620
+ approval_stale: "approval_stale";
621
+ }>;
622
+ activeOperationId: z.ZodOptional<z.ZodNever>;
623
+ approvalRequired: z.ZodOptional<z.ZodNever>;
624
+ callerContext: z.ZodOptional<z.ZodNever>;
625
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
626
+ lease: z.ZodOptional<z.ZodNever>;
627
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
628
+ leaseUse: z.ZodOptional<z.ZodNever>;
629
+ }, z.core.$strict>], "result">;
630
+ declare const GatewayControlRpcCallerContextResponsePayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
631
+ responseToMessageId: z.ZodString;
632
+ callerContext: z.ZodObject<{
633
+ callerContextId: z.ZodString;
634
+ }, z.core.$strict>;
635
+ result: z.ZodLiteral<"ok">;
636
+ activeOperationId: z.ZodOptional<z.ZodNever>;
637
+ approvalRequired: z.ZodOptional<z.ZodNever>;
638
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
639
+ error: z.ZodOptional<z.ZodNever>;
640
+ lease: z.ZodOptional<z.ZodNever>;
641
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
642
+ leaseUse: z.ZodOptional<z.ZodNever>;
643
+ }, z.core.$strict>, z.ZodObject<{
644
+ responseToMessageId: z.ZodString;
645
+ error: z.ZodObject<{
646
+ errorClass: z.ZodString;
647
+ retryable: z.ZodOptional<z.ZodBoolean>;
648
+ safeMessage: z.ZodOptional<z.ZodString>;
649
+ }, z.core.$strict>;
650
+ result: z.ZodEnum<{
651
+ rejected: "rejected";
652
+ failed: "failed";
653
+ timeout: "timeout";
654
+ cancelled: "cancelled";
655
+ stale_generation: "stale_generation";
656
+ approval_required: "approval_required";
657
+ approval_stale: "approval_stale";
658
+ }>;
659
+ activeOperationId: z.ZodOptional<z.ZodNever>;
660
+ approvalRequired: z.ZodOptional<z.ZodNever>;
661
+ callerContext: z.ZodOptional<z.ZodNever>;
662
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
663
+ lease: z.ZodOptional<z.ZodNever>;
664
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
665
+ leaseUse: z.ZodOptional<z.ZodNever>;
666
+ }, z.core.$strict>], "result">;
667
+ declare const GatewayControlRpcLeaseResponsePayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
668
+ responseToMessageId: z.ZodString;
669
+ lease: z.ZodObject<{
670
+ agentId: z.ZodString;
671
+ activeUseId: z.ZodOptional<z.ZodString>;
672
+ expiresAtMs: z.ZodOptional<z.ZodNumber>;
673
+ idleTtlMs: z.ZodNumber;
674
+ leaseId: z.ZodString;
675
+ ssh: z.ZodOptional<z.ZodObject<{
676
+ host: z.ZodString;
677
+ identityPem: z.ZodOptional<z.ZodString>;
678
+ knownHostsLine: z.ZodOptional<z.ZodString>;
679
+ port: z.ZodNumber;
680
+ user: z.ZodString;
681
+ }, z.core.$strict>>;
682
+ state: z.ZodEnum<{
683
+ idle: "idle";
684
+ active: "active";
685
+ expired: "expired";
686
+ released: "released";
687
+ }>;
688
+ tcpSlot: z.ZodNumber;
689
+ transport: z.ZodLiteral<"ssh-sandbox">;
690
+ workdir: z.ZodString;
691
+ zoneId: z.ZodString;
692
+ }, z.core.$strict>;
693
+ result: z.ZodLiteral<"ok">;
694
+ activeOperationId: z.ZodOptional<z.ZodNever>;
695
+ approvalRequired: z.ZodOptional<z.ZodNever>;
696
+ callerContext: z.ZodOptional<z.ZodNever>;
697
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
698
+ error: z.ZodOptional<z.ZodNever>;
699
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
700
+ leaseUse: z.ZodOptional<z.ZodNever>;
701
+ }, z.core.$strict>, z.ZodObject<{
702
+ responseToMessageId: z.ZodString;
703
+ error: z.ZodOptional<z.ZodObject<{
704
+ errorClass: z.ZodString;
705
+ retryable: z.ZodOptional<z.ZodBoolean>;
706
+ safeMessage: z.ZodOptional<z.ZodString>;
707
+ }, z.core.$strict>>;
708
+ leaseRejectionReason: z.ZodEnum<{
709
+ absent: "absent";
710
+ generation_stale: "generation_stale";
711
+ force_released: "force_released";
712
+ releasing: "releasing";
713
+ use_tombstoned: "use_tombstoned";
714
+ runtime_not_ready: "runtime_not_ready";
715
+ }>;
716
+ result: z.ZodLiteral<"rejected">;
717
+ activeOperationId: z.ZodOptional<z.ZodNever>;
718
+ approvalRequired: z.ZodOptional<z.ZodNever>;
719
+ callerContext: z.ZodOptional<z.ZodNever>;
720
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
721
+ lease: z.ZodOptional<z.ZodNever>;
722
+ leaseUse: z.ZodOptional<z.ZodNever>;
723
+ }, z.core.$strict>, z.ZodObject<{
724
+ responseToMessageId: z.ZodString;
725
+ error: z.ZodObject<{
726
+ errorClass: z.ZodString;
727
+ retryable: z.ZodOptional<z.ZodBoolean>;
728
+ safeMessage: z.ZodOptional<z.ZodString>;
729
+ }, z.core.$strict>;
730
+ leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
731
+ absent: "absent";
732
+ generation_stale: "generation_stale";
733
+ force_released: "force_released";
734
+ releasing: "releasing";
735
+ use_tombstoned: "use_tombstoned";
736
+ runtime_not_ready: "runtime_not_ready";
737
+ }>>;
738
+ result: z.ZodEnum<{
739
+ failed: "failed";
740
+ timeout: "timeout";
741
+ cancelled: "cancelled";
742
+ stale_generation: "stale_generation";
743
+ approval_required: "approval_required";
744
+ approval_stale: "approval_stale";
745
+ }>;
746
+ activeOperationId: z.ZodOptional<z.ZodNever>;
747
+ approvalRequired: z.ZodOptional<z.ZodNever>;
748
+ callerContext: z.ZodOptional<z.ZodNever>;
749
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
750
+ lease: z.ZodOptional<z.ZodNever>;
751
+ leaseUse: z.ZodOptional<z.ZodNever>;
752
+ }, z.core.$strict>], "result">;
753
+ declare const GatewayControlRpcLeaseUseResponsePayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
754
+ responseToMessageId: z.ZodString;
755
+ leaseUse: z.ZodObject<{
756
+ expiresAt: z.ZodOptional<z.ZodNumber>;
757
+ heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
758
+ leaseId: z.ZodString;
759
+ state: z.ZodEnum<{
760
+ active: "active";
761
+ expired: "expired";
762
+ ended: "ended";
763
+ }>;
764
+ useId: z.ZodString;
765
+ }, z.core.$strict>;
766
+ result: z.ZodLiteral<"ok">;
767
+ activeOperationId: z.ZodOptional<z.ZodNever>;
768
+ approvalRequired: z.ZodOptional<z.ZodNever>;
769
+ callerContext: z.ZodOptional<z.ZodNever>;
770
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
771
+ error: z.ZodOptional<z.ZodNever>;
772
+ lease: z.ZodOptional<z.ZodNever>;
773
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
774
+ }, z.core.$strict>, z.ZodObject<{
775
+ responseToMessageId: z.ZodString;
776
+ error: z.ZodOptional<z.ZodObject<{
777
+ errorClass: z.ZodString;
778
+ retryable: z.ZodOptional<z.ZodBoolean>;
779
+ safeMessage: z.ZodOptional<z.ZodString>;
780
+ }, z.core.$strict>>;
781
+ leaseRejectionReason: z.ZodEnum<{
782
+ absent: "absent";
783
+ generation_stale: "generation_stale";
784
+ force_released: "force_released";
785
+ releasing: "releasing";
786
+ use_tombstoned: "use_tombstoned";
787
+ runtime_not_ready: "runtime_not_ready";
788
+ }>;
789
+ result: z.ZodLiteral<"rejected">;
790
+ activeOperationId: z.ZodOptional<z.ZodNever>;
791
+ approvalRequired: z.ZodOptional<z.ZodNever>;
792
+ callerContext: z.ZodOptional<z.ZodNever>;
793
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
794
+ lease: z.ZodOptional<z.ZodNever>;
795
+ leaseUse: z.ZodOptional<z.ZodNever>;
796
+ }, z.core.$strict>, z.ZodObject<{
797
+ responseToMessageId: z.ZodString;
798
+ error: z.ZodObject<{
799
+ errorClass: z.ZodString;
800
+ retryable: z.ZodOptional<z.ZodBoolean>;
801
+ safeMessage: z.ZodOptional<z.ZodString>;
802
+ }, z.core.$strict>;
803
+ leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
804
+ absent: "absent";
805
+ generation_stale: "generation_stale";
806
+ force_released: "force_released";
807
+ releasing: "releasing";
808
+ use_tombstoned: "use_tombstoned";
809
+ runtime_not_ready: "runtime_not_ready";
810
+ }>>;
811
+ result: z.ZodEnum<{
812
+ failed: "failed";
813
+ timeout: "timeout";
814
+ cancelled: "cancelled";
815
+ stale_generation: "stale_generation";
816
+ approval_required: "approval_required";
817
+ approval_stale: "approval_stale";
818
+ }>;
819
+ activeOperationId: z.ZodOptional<z.ZodNever>;
820
+ approvalRequired: z.ZodOptional<z.ZodNever>;
821
+ callerContext: z.ZodOptional<z.ZodNever>;
822
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
823
+ lease: z.ZodOptional<z.ZodNever>;
824
+ leaseUse: z.ZodOptional<z.ZodNever>;
825
+ }, z.core.$strict>], "result">;
826
+ declare const GatewayControlRpcControllerHostActionResponsePayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
827
+ responseToMessageId: z.ZodString;
828
+ controllerHostAction: z.ZodObject<{
829
+ actionId: z.ZodLiteral<"zone_git_push">;
830
+ result: z.ZodObject<{
831
+ branch: z.ZodString;
832
+ localHead: z.ZodString;
833
+ pushedCommits: z.ZodArray<z.ZodObject<{
834
+ sha: z.ZodString;
835
+ subject: z.ZodString;
836
+ }, z.core.$strict>>;
837
+ remoteHead: z.ZodString;
838
+ }, z.core.$strict>;
839
+ }, z.core.$strict>;
840
+ result: z.ZodLiteral<"ok">;
841
+ activeOperationId: z.ZodOptional<z.ZodNever>;
842
+ approvalRequired: z.ZodOptional<z.ZodNever>;
843
+ callerContext: z.ZodOptional<z.ZodNever>;
844
+ error: z.ZodOptional<z.ZodNever>;
845
+ lease: z.ZodOptional<z.ZodNever>;
846
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
847
+ leaseUse: z.ZodOptional<z.ZodNever>;
848
+ }, z.core.$strict>, z.ZodObject<{
849
+ responseToMessageId: z.ZodString;
850
+ error: z.ZodObject<{
851
+ errorClass: z.ZodString;
852
+ retryable: z.ZodOptional<z.ZodBoolean>;
853
+ safeMessage: z.ZodOptional<z.ZodString>;
854
+ }, z.core.$strict>;
855
+ result: z.ZodEnum<{
856
+ rejected: "rejected";
857
+ failed: "failed";
858
+ timeout: "timeout";
859
+ cancelled: "cancelled";
860
+ stale_generation: "stale_generation";
861
+ approval_required: "approval_required";
862
+ approval_stale: "approval_stale";
863
+ }>;
864
+ activeOperationId: z.ZodOptional<z.ZodNever>;
865
+ approvalRequired: z.ZodOptional<z.ZodNever>;
866
+ callerContext: z.ZodOptional<z.ZodNever>;
867
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
868
+ lease: z.ZodOptional<z.ZodNever>;
869
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
870
+ leaseUse: z.ZodOptional<z.ZodNever>;
871
+ }, z.core.$strict>], "result">;
872
+ declare const GatewayControlRpcOperationCancelResponsePayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
873
+ responseToMessageId: z.ZodString;
874
+ activeOperationId: z.ZodString;
875
+ result: z.ZodLiteral<"ok">;
876
+ approvalRequired: z.ZodOptional<z.ZodNever>;
877
+ callerContext: z.ZodOptional<z.ZodNever>;
878
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
879
+ error: z.ZodOptional<z.ZodNever>;
880
+ lease: z.ZodOptional<z.ZodNever>;
881
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
882
+ leaseUse: z.ZodOptional<z.ZodNever>;
883
+ }, z.core.$strict>, z.ZodObject<{
884
+ responseToMessageId: z.ZodString;
885
+ activeOperationId: z.ZodOptional<z.ZodString>;
886
+ error: z.ZodObject<{
887
+ errorClass: z.ZodString;
888
+ retryable: z.ZodOptional<z.ZodBoolean>;
889
+ safeMessage: z.ZodOptional<z.ZodString>;
890
+ }, z.core.$strict>;
891
+ result: z.ZodEnum<{
892
+ rejected: "rejected";
893
+ failed: "failed";
894
+ timeout: "timeout";
895
+ cancelled: "cancelled";
896
+ stale_generation: "stale_generation";
897
+ approval_required: "approval_required";
898
+ approval_stale: "approval_stale";
899
+ }>;
900
+ approvalRequired: z.ZodOptional<z.ZodNever>;
901
+ callerContext: z.ZodOptional<z.ZodNever>;
902
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
903
+ lease: z.ZodOptional<z.ZodNever>;
904
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
905
+ leaseUse: z.ZodOptional<z.ZodNever>;
906
+ }, z.core.$strict>], "result">;
907
+ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
908
+ responseToMessageId: z.ZodString;
909
+ result: z.ZodLiteral<"ok">;
910
+ activeOperationId: z.ZodOptional<z.ZodNever>;
911
+ approvalRequired: z.ZodOptional<z.ZodNever>;
912
+ callerContext: z.ZodOptional<z.ZodNever>;
913
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
914
+ error: z.ZodOptional<z.ZodNever>;
915
+ lease: z.ZodOptional<z.ZodNever>;
916
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
917
+ leaseUse: z.ZodOptional<z.ZodNever>;
918
+ }, z.core.$strict>, z.ZodObject<{
919
+ responseToMessageId: z.ZodString;
920
+ error: z.ZodObject<{
921
+ errorClass: z.ZodString;
922
+ retryable: z.ZodOptional<z.ZodBoolean>;
923
+ safeMessage: z.ZodOptional<z.ZodString>;
924
+ }, z.core.$strict>;
925
+ result: z.ZodEnum<{
926
+ rejected: "rejected";
927
+ failed: "failed";
928
+ timeout: "timeout";
929
+ cancelled: "cancelled";
930
+ stale_generation: "stale_generation";
931
+ approval_required: "approval_required";
932
+ approval_stale: "approval_stale";
933
+ }>;
934
+ activeOperationId: z.ZodOptional<z.ZodNever>;
935
+ approvalRequired: z.ZodOptional<z.ZodNever>;
936
+ callerContext: z.ZodOptional<z.ZodNever>;
937
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
938
+ lease: z.ZodOptional<z.ZodNever>;
939
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
940
+ leaseUse: z.ZodOptional<z.ZodNever>;
941
+ }, z.core.$strict>], "result">, z.ZodDiscriminatedUnion<[z.ZodObject<{
942
+ responseToMessageId: z.ZodString;
943
+ callerContext: z.ZodObject<{
944
+ callerContextId: z.ZodString;
945
+ }, z.core.$strict>;
946
+ result: z.ZodLiteral<"ok">;
947
+ activeOperationId: z.ZodOptional<z.ZodNever>;
948
+ approvalRequired: z.ZodOptional<z.ZodNever>;
949
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
950
+ error: z.ZodOptional<z.ZodNever>;
951
+ lease: z.ZodOptional<z.ZodNever>;
952
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
953
+ leaseUse: z.ZodOptional<z.ZodNever>;
954
+ }, z.core.$strict>, z.ZodObject<{
955
+ responseToMessageId: z.ZodString;
956
+ error: z.ZodObject<{
957
+ errorClass: z.ZodString;
958
+ retryable: z.ZodOptional<z.ZodBoolean>;
959
+ safeMessage: z.ZodOptional<z.ZodString>;
960
+ }, z.core.$strict>;
961
+ result: z.ZodEnum<{
962
+ rejected: "rejected";
963
+ failed: "failed";
964
+ timeout: "timeout";
965
+ cancelled: "cancelled";
966
+ stale_generation: "stale_generation";
967
+ approval_required: "approval_required";
968
+ approval_stale: "approval_stale";
969
+ }>;
970
+ activeOperationId: z.ZodOptional<z.ZodNever>;
971
+ approvalRequired: z.ZodOptional<z.ZodNever>;
972
+ callerContext: z.ZodOptional<z.ZodNever>;
973
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
974
+ lease: z.ZodOptional<z.ZodNever>;
975
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
976
+ leaseUse: z.ZodOptional<z.ZodNever>;
977
+ }, z.core.$strict>], "result">, z.ZodDiscriminatedUnion<[z.ZodObject<{
978
+ responseToMessageId: z.ZodString;
979
+ lease: z.ZodObject<{
980
+ agentId: z.ZodString;
981
+ activeUseId: z.ZodOptional<z.ZodString>;
982
+ expiresAtMs: z.ZodOptional<z.ZodNumber>;
983
+ idleTtlMs: z.ZodNumber;
984
+ leaseId: z.ZodString;
985
+ ssh: z.ZodOptional<z.ZodObject<{
986
+ host: z.ZodString;
987
+ identityPem: z.ZodOptional<z.ZodString>;
988
+ knownHostsLine: z.ZodOptional<z.ZodString>;
989
+ port: z.ZodNumber;
990
+ user: z.ZodString;
991
+ }, z.core.$strict>>;
992
+ state: z.ZodEnum<{
993
+ idle: "idle";
994
+ active: "active";
995
+ expired: "expired";
996
+ released: "released";
997
+ }>;
998
+ tcpSlot: z.ZodNumber;
999
+ transport: z.ZodLiteral<"ssh-sandbox">;
1000
+ workdir: z.ZodString;
1001
+ zoneId: z.ZodString;
1002
+ }, z.core.$strict>;
1003
+ result: z.ZodLiteral<"ok">;
1004
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1005
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1006
+ callerContext: z.ZodOptional<z.ZodNever>;
1007
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1008
+ error: z.ZodOptional<z.ZodNever>;
1009
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1010
+ leaseUse: z.ZodOptional<z.ZodNever>;
1011
+ }, z.core.$strict>, z.ZodObject<{
1012
+ responseToMessageId: z.ZodString;
1013
+ error: z.ZodOptional<z.ZodObject<{
1014
+ errorClass: z.ZodString;
1015
+ retryable: z.ZodOptional<z.ZodBoolean>;
1016
+ safeMessage: z.ZodOptional<z.ZodString>;
1017
+ }, z.core.$strict>>;
1018
+ leaseRejectionReason: z.ZodEnum<{
1019
+ absent: "absent";
1020
+ generation_stale: "generation_stale";
1021
+ force_released: "force_released";
1022
+ releasing: "releasing";
1023
+ use_tombstoned: "use_tombstoned";
1024
+ runtime_not_ready: "runtime_not_ready";
1025
+ }>;
1026
+ result: z.ZodLiteral<"rejected">;
1027
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1028
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1029
+ callerContext: z.ZodOptional<z.ZodNever>;
1030
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1031
+ lease: z.ZodOptional<z.ZodNever>;
1032
+ leaseUse: z.ZodOptional<z.ZodNever>;
1033
+ }, z.core.$strict>, z.ZodObject<{
1034
+ responseToMessageId: z.ZodString;
1035
+ error: z.ZodObject<{
1036
+ errorClass: z.ZodString;
1037
+ retryable: z.ZodOptional<z.ZodBoolean>;
1038
+ safeMessage: z.ZodOptional<z.ZodString>;
1039
+ }, z.core.$strict>;
1040
+ leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
1041
+ absent: "absent";
1042
+ generation_stale: "generation_stale";
1043
+ force_released: "force_released";
1044
+ releasing: "releasing";
1045
+ use_tombstoned: "use_tombstoned";
1046
+ runtime_not_ready: "runtime_not_ready";
1047
+ }>>;
1048
+ result: z.ZodEnum<{
1049
+ failed: "failed";
1050
+ timeout: "timeout";
1051
+ cancelled: "cancelled";
1052
+ stale_generation: "stale_generation";
1053
+ approval_required: "approval_required";
1054
+ approval_stale: "approval_stale";
1055
+ }>;
1056
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1057
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1058
+ callerContext: z.ZodOptional<z.ZodNever>;
1059
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1060
+ lease: z.ZodOptional<z.ZodNever>;
1061
+ leaseUse: z.ZodOptional<z.ZodNever>;
1062
+ }, z.core.$strict>], "result">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1063
+ responseToMessageId: z.ZodString;
1064
+ leaseUse: z.ZodObject<{
1065
+ expiresAt: z.ZodOptional<z.ZodNumber>;
1066
+ heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
1067
+ leaseId: z.ZodString;
1068
+ state: z.ZodEnum<{
1069
+ active: "active";
1070
+ expired: "expired";
1071
+ ended: "ended";
1072
+ }>;
1073
+ useId: z.ZodString;
1074
+ }, z.core.$strict>;
1075
+ result: z.ZodLiteral<"ok">;
1076
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1077
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1078
+ callerContext: z.ZodOptional<z.ZodNever>;
1079
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1080
+ error: z.ZodOptional<z.ZodNever>;
1081
+ lease: z.ZodOptional<z.ZodNever>;
1082
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1083
+ }, z.core.$strict>, z.ZodObject<{
1084
+ responseToMessageId: z.ZodString;
1085
+ error: z.ZodOptional<z.ZodObject<{
1086
+ errorClass: z.ZodString;
1087
+ retryable: z.ZodOptional<z.ZodBoolean>;
1088
+ safeMessage: z.ZodOptional<z.ZodString>;
1089
+ }, z.core.$strict>>;
1090
+ leaseRejectionReason: z.ZodEnum<{
1091
+ absent: "absent";
1092
+ generation_stale: "generation_stale";
1093
+ force_released: "force_released";
1094
+ releasing: "releasing";
1095
+ use_tombstoned: "use_tombstoned";
1096
+ runtime_not_ready: "runtime_not_ready";
1097
+ }>;
1098
+ result: z.ZodLiteral<"rejected">;
1099
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1100
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1101
+ callerContext: z.ZodOptional<z.ZodNever>;
1102
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1103
+ lease: z.ZodOptional<z.ZodNever>;
1104
+ leaseUse: z.ZodOptional<z.ZodNever>;
1105
+ }, z.core.$strict>, z.ZodObject<{
1106
+ responseToMessageId: z.ZodString;
1107
+ error: z.ZodObject<{
1108
+ errorClass: z.ZodString;
1109
+ retryable: z.ZodOptional<z.ZodBoolean>;
1110
+ safeMessage: z.ZodOptional<z.ZodString>;
1111
+ }, z.core.$strict>;
1112
+ leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
1113
+ absent: "absent";
1114
+ generation_stale: "generation_stale";
1115
+ force_released: "force_released";
1116
+ releasing: "releasing";
1117
+ use_tombstoned: "use_tombstoned";
1118
+ runtime_not_ready: "runtime_not_ready";
1119
+ }>>;
1120
+ result: z.ZodEnum<{
1121
+ failed: "failed";
1122
+ timeout: "timeout";
1123
+ cancelled: "cancelled";
1124
+ stale_generation: "stale_generation";
1125
+ approval_required: "approval_required";
1126
+ approval_stale: "approval_stale";
1127
+ }>;
1128
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1129
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1130
+ callerContext: z.ZodOptional<z.ZodNever>;
1131
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1132
+ lease: z.ZodOptional<z.ZodNever>;
1133
+ leaseUse: z.ZodOptional<z.ZodNever>;
1134
+ }, z.core.$strict>], "result">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1135
+ responseToMessageId: z.ZodString;
1136
+ controllerHostAction: z.ZodObject<{
1137
+ actionId: z.ZodLiteral<"zone_git_push">;
1138
+ result: z.ZodObject<{
1139
+ branch: z.ZodString;
1140
+ localHead: z.ZodString;
1141
+ pushedCommits: z.ZodArray<z.ZodObject<{
1142
+ sha: z.ZodString;
1143
+ subject: z.ZodString;
1144
+ }, z.core.$strict>>;
1145
+ remoteHead: z.ZodString;
1146
+ }, z.core.$strict>;
1147
+ }, z.core.$strict>;
1148
+ result: z.ZodLiteral<"ok">;
1149
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1150
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1151
+ callerContext: z.ZodOptional<z.ZodNever>;
1152
+ error: z.ZodOptional<z.ZodNever>;
1153
+ lease: z.ZodOptional<z.ZodNever>;
1154
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1155
+ leaseUse: z.ZodOptional<z.ZodNever>;
1156
+ }, z.core.$strict>, z.ZodObject<{
1157
+ responseToMessageId: z.ZodString;
1158
+ error: z.ZodObject<{
1159
+ errorClass: z.ZodString;
1160
+ retryable: z.ZodOptional<z.ZodBoolean>;
1161
+ safeMessage: z.ZodOptional<z.ZodString>;
1162
+ }, z.core.$strict>;
1163
+ result: z.ZodEnum<{
1164
+ rejected: "rejected";
1165
+ failed: "failed";
1166
+ timeout: "timeout";
1167
+ cancelled: "cancelled";
1168
+ stale_generation: "stale_generation";
1169
+ approval_required: "approval_required";
1170
+ approval_stale: "approval_stale";
1171
+ }>;
1172
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1173
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1174
+ callerContext: z.ZodOptional<z.ZodNever>;
1175
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1176
+ lease: z.ZodOptional<z.ZodNever>;
1177
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1178
+ leaseUse: z.ZodOptional<z.ZodNever>;
1179
+ }, z.core.$strict>], "result">, z.ZodDiscriminatedUnion<[z.ZodObject<{
1180
+ responseToMessageId: z.ZodString;
1181
+ activeOperationId: z.ZodString;
1182
+ result: z.ZodLiteral<"ok">;
1183
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1184
+ callerContext: z.ZodOptional<z.ZodNever>;
1185
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1186
+ error: z.ZodOptional<z.ZodNever>;
1187
+ lease: z.ZodOptional<z.ZodNever>;
1188
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1189
+ leaseUse: z.ZodOptional<z.ZodNever>;
1190
+ }, z.core.$strict>, z.ZodObject<{
1191
+ responseToMessageId: z.ZodString;
1192
+ activeOperationId: z.ZodOptional<z.ZodString>;
1193
+ error: z.ZodObject<{
1194
+ errorClass: z.ZodString;
1195
+ retryable: z.ZodOptional<z.ZodBoolean>;
1196
+ safeMessage: z.ZodOptional<z.ZodString>;
1197
+ }, z.core.$strict>;
1198
+ result: z.ZodEnum<{
1199
+ rejected: "rejected";
1200
+ failed: "failed";
1201
+ timeout: "timeout";
1202
+ cancelled: "cancelled";
1203
+ stale_generation: "stale_generation";
1204
+ approval_required: "approval_required";
1205
+ approval_stale: "approval_stale";
1206
+ }>;
1207
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1208
+ callerContext: z.ZodOptional<z.ZodNever>;
1209
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1210
+ lease: z.ZodOptional<z.ZodNever>;
1211
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1212
+ leaseUse: z.ZodOptional<z.ZodNever>;
1213
+ }, z.core.$strict>], "result">]>;
1214
+ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1215
+ causationId: z.ZodOptional<z.ZodString>;
1216
+ correlationId: z.ZodOptional<z.ZodString>;
1217
+ requestId: z.ZodOptional<z.ZodString>;
1218
+ runId: z.ZodOptional<z.ZodString>;
1219
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1220
+ toolCallId: z.ZodOptional<z.ZodString>;
1221
+ traceId: z.ZodOptional<z.ZodString>;
1222
+ kind: z.ZodLiteral<"command_result">;
1223
+ operation: z.ZodLiteral<"control_ping">;
1224
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1225
+ responseToMessageId: z.ZodString;
1226
+ result: z.ZodLiteral<"ok">;
1227
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1228
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1229
+ callerContext: z.ZodOptional<z.ZodNever>;
1230
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1231
+ error: z.ZodOptional<z.ZodNever>;
1232
+ lease: z.ZodOptional<z.ZodNever>;
1233
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1234
+ leaseUse: z.ZodOptional<z.ZodNever>;
1235
+ }, z.core.$strict>, z.ZodObject<{
1236
+ responseToMessageId: z.ZodString;
1237
+ error: z.ZodObject<{
1238
+ errorClass: z.ZodString;
1239
+ retryable: z.ZodOptional<z.ZodBoolean>;
1240
+ safeMessage: z.ZodOptional<z.ZodString>;
1241
+ }, z.core.$strict>;
1242
+ result: z.ZodEnum<{
1243
+ rejected: "rejected";
1244
+ failed: "failed";
1245
+ timeout: "timeout";
1246
+ cancelled: "cancelled";
1247
+ stale_generation: "stale_generation";
1248
+ approval_required: "approval_required";
1249
+ approval_stale: "approval_stale";
1250
+ }>;
1251
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1252
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1253
+ callerContext: z.ZodOptional<z.ZodNever>;
1254
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1255
+ lease: z.ZodOptional<z.ZodNever>;
1256
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1257
+ leaseUse: z.ZodOptional<z.ZodNever>;
1258
+ }, z.core.$strict>], "result">;
1259
+ }, z.core.$strict>, z.ZodObject<{
1260
+ causationId: z.ZodOptional<z.ZodString>;
1261
+ correlationId: z.ZodOptional<z.ZodString>;
1262
+ requestId: z.ZodOptional<z.ZodString>;
1263
+ runId: z.ZodOptional<z.ZodString>;
1264
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1265
+ toolCallId: z.ZodOptional<z.ZodString>;
1266
+ traceId: z.ZodOptional<z.ZodString>;
1267
+ kind: z.ZodLiteral<"command_result">;
1268
+ operation: z.ZodLiteral<"caller_context_register">;
1269
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1270
+ responseToMessageId: z.ZodString;
1271
+ callerContext: z.ZodObject<{
1272
+ callerContextId: z.ZodString;
1273
+ }, z.core.$strict>;
1274
+ result: z.ZodLiteral<"ok">;
1275
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1276
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1277
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1278
+ error: z.ZodOptional<z.ZodNever>;
1279
+ lease: z.ZodOptional<z.ZodNever>;
1280
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1281
+ leaseUse: z.ZodOptional<z.ZodNever>;
1282
+ }, z.core.$strict>, z.ZodObject<{
1283
+ responseToMessageId: z.ZodString;
1284
+ error: z.ZodObject<{
1285
+ errorClass: z.ZodString;
1286
+ retryable: z.ZodOptional<z.ZodBoolean>;
1287
+ safeMessage: z.ZodOptional<z.ZodString>;
1288
+ }, z.core.$strict>;
1289
+ result: z.ZodEnum<{
1290
+ rejected: "rejected";
1291
+ failed: "failed";
1292
+ timeout: "timeout";
1293
+ cancelled: "cancelled";
1294
+ stale_generation: "stale_generation";
1295
+ approval_required: "approval_required";
1296
+ approval_stale: "approval_stale";
1297
+ }>;
1298
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1299
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1300
+ callerContext: z.ZodOptional<z.ZodNever>;
1301
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1302
+ lease: z.ZodOptional<z.ZodNever>;
1303
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1304
+ leaseUse: z.ZodOptional<z.ZodNever>;
1305
+ }, z.core.$strict>], "result">;
1306
+ }, z.core.$strict>, z.ZodObject<{
1307
+ causationId: z.ZodOptional<z.ZodString>;
1308
+ correlationId: z.ZodOptional<z.ZodString>;
1309
+ requestId: z.ZodOptional<z.ZodString>;
1310
+ runId: z.ZodOptional<z.ZodString>;
1311
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1312
+ toolCallId: z.ZodOptional<z.ZodString>;
1313
+ traceId: z.ZodOptional<z.ZodString>;
1314
+ kind: z.ZodLiteral<"command_result">;
1315
+ operation: z.ZodEnum<{
1316
+ lease_create: "lease_create";
1317
+ lease_get: "lease_get";
1318
+ lease_peek: "lease_peek";
1319
+ lease_renew: "lease_renew";
1320
+ lease_release: "lease_release";
1321
+ }>;
1322
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1323
+ responseToMessageId: z.ZodString;
1324
+ lease: z.ZodObject<{
1325
+ agentId: z.ZodString;
1326
+ activeUseId: z.ZodOptional<z.ZodString>;
1327
+ expiresAtMs: z.ZodOptional<z.ZodNumber>;
1328
+ idleTtlMs: z.ZodNumber;
1329
+ leaseId: z.ZodString;
1330
+ ssh: z.ZodOptional<z.ZodObject<{
1331
+ host: z.ZodString;
1332
+ identityPem: z.ZodOptional<z.ZodString>;
1333
+ knownHostsLine: z.ZodOptional<z.ZodString>;
1334
+ port: z.ZodNumber;
1335
+ user: z.ZodString;
1336
+ }, z.core.$strict>>;
1337
+ state: z.ZodEnum<{
1338
+ idle: "idle";
1339
+ active: "active";
1340
+ expired: "expired";
1341
+ released: "released";
1342
+ }>;
1343
+ tcpSlot: z.ZodNumber;
1344
+ transport: z.ZodLiteral<"ssh-sandbox">;
1345
+ workdir: z.ZodString;
1346
+ zoneId: z.ZodString;
1347
+ }, z.core.$strict>;
1348
+ result: z.ZodLiteral<"ok">;
1349
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1350
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1351
+ callerContext: z.ZodOptional<z.ZodNever>;
1352
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1353
+ error: z.ZodOptional<z.ZodNever>;
1354
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1355
+ leaseUse: z.ZodOptional<z.ZodNever>;
1356
+ }, z.core.$strict>, z.ZodObject<{
1357
+ responseToMessageId: z.ZodString;
1358
+ error: z.ZodOptional<z.ZodObject<{
1359
+ errorClass: z.ZodString;
1360
+ retryable: z.ZodOptional<z.ZodBoolean>;
1361
+ safeMessage: z.ZodOptional<z.ZodString>;
1362
+ }, z.core.$strict>>;
1363
+ leaseRejectionReason: z.ZodEnum<{
1364
+ absent: "absent";
1365
+ generation_stale: "generation_stale";
1366
+ force_released: "force_released";
1367
+ releasing: "releasing";
1368
+ use_tombstoned: "use_tombstoned";
1369
+ runtime_not_ready: "runtime_not_ready";
1370
+ }>;
1371
+ result: z.ZodLiteral<"rejected">;
1372
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1373
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1374
+ callerContext: z.ZodOptional<z.ZodNever>;
1375
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1376
+ lease: z.ZodOptional<z.ZodNever>;
1377
+ leaseUse: z.ZodOptional<z.ZodNever>;
1378
+ }, z.core.$strict>, z.ZodObject<{
1379
+ responseToMessageId: z.ZodString;
1380
+ error: z.ZodObject<{
1381
+ errorClass: z.ZodString;
1382
+ retryable: z.ZodOptional<z.ZodBoolean>;
1383
+ safeMessage: z.ZodOptional<z.ZodString>;
1384
+ }, z.core.$strict>;
1385
+ leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
1386
+ absent: "absent";
1387
+ generation_stale: "generation_stale";
1388
+ force_released: "force_released";
1389
+ releasing: "releasing";
1390
+ use_tombstoned: "use_tombstoned";
1391
+ runtime_not_ready: "runtime_not_ready";
1392
+ }>>;
1393
+ result: z.ZodEnum<{
1394
+ failed: "failed";
1395
+ timeout: "timeout";
1396
+ cancelled: "cancelled";
1397
+ stale_generation: "stale_generation";
1398
+ approval_required: "approval_required";
1399
+ approval_stale: "approval_stale";
1400
+ }>;
1401
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1402
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1403
+ callerContext: z.ZodOptional<z.ZodNever>;
1404
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1405
+ lease: z.ZodOptional<z.ZodNever>;
1406
+ leaseUse: z.ZodOptional<z.ZodNever>;
1407
+ }, z.core.$strict>], "result">;
1408
+ }, z.core.$strict>, z.ZodObject<{
1409
+ causationId: z.ZodOptional<z.ZodString>;
1410
+ correlationId: z.ZodOptional<z.ZodString>;
1411
+ requestId: z.ZodOptional<z.ZodString>;
1412
+ runId: z.ZodOptional<z.ZodString>;
1413
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1414
+ toolCallId: z.ZodOptional<z.ZodString>;
1415
+ traceId: z.ZodOptional<z.ZodString>;
1416
+ kind: z.ZodLiteral<"command_result">;
1417
+ operation: z.ZodEnum<{
1418
+ lease_use_start: "lease_use_start";
1419
+ lease_use_heartbeat: "lease_use_heartbeat";
1420
+ lease_use_end: "lease_use_end";
1421
+ }>;
1422
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1423
+ responseToMessageId: z.ZodString;
1424
+ leaseUse: z.ZodObject<{
1425
+ expiresAt: z.ZodOptional<z.ZodNumber>;
1426
+ heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
1427
+ leaseId: z.ZodString;
1428
+ state: z.ZodEnum<{
1429
+ active: "active";
1430
+ expired: "expired";
1431
+ ended: "ended";
1432
+ }>;
1433
+ useId: z.ZodString;
1434
+ }, z.core.$strict>;
1435
+ result: z.ZodLiteral<"ok">;
1436
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1437
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1438
+ callerContext: z.ZodOptional<z.ZodNever>;
1439
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1440
+ error: z.ZodOptional<z.ZodNever>;
1441
+ lease: z.ZodOptional<z.ZodNever>;
1442
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1443
+ }, z.core.$strict>, z.ZodObject<{
1444
+ responseToMessageId: z.ZodString;
1445
+ error: z.ZodOptional<z.ZodObject<{
1446
+ errorClass: z.ZodString;
1447
+ retryable: z.ZodOptional<z.ZodBoolean>;
1448
+ safeMessage: z.ZodOptional<z.ZodString>;
1449
+ }, z.core.$strict>>;
1450
+ leaseRejectionReason: z.ZodEnum<{
1451
+ absent: "absent";
1452
+ generation_stale: "generation_stale";
1453
+ force_released: "force_released";
1454
+ releasing: "releasing";
1455
+ use_tombstoned: "use_tombstoned";
1456
+ runtime_not_ready: "runtime_not_ready";
1457
+ }>;
1458
+ result: z.ZodLiteral<"rejected">;
1459
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1460
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1461
+ callerContext: z.ZodOptional<z.ZodNever>;
1462
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1463
+ lease: z.ZodOptional<z.ZodNever>;
1464
+ leaseUse: z.ZodOptional<z.ZodNever>;
1465
+ }, z.core.$strict>, z.ZodObject<{
1466
+ responseToMessageId: z.ZodString;
1467
+ error: z.ZodObject<{
1468
+ errorClass: z.ZodString;
1469
+ retryable: z.ZodOptional<z.ZodBoolean>;
1470
+ safeMessage: z.ZodOptional<z.ZodString>;
1471
+ }, z.core.$strict>;
1472
+ leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
1473
+ absent: "absent";
1474
+ generation_stale: "generation_stale";
1475
+ force_released: "force_released";
1476
+ releasing: "releasing";
1477
+ use_tombstoned: "use_tombstoned";
1478
+ runtime_not_ready: "runtime_not_ready";
1479
+ }>>;
1480
+ result: z.ZodEnum<{
1481
+ failed: "failed";
1482
+ timeout: "timeout";
1483
+ cancelled: "cancelled";
1484
+ stale_generation: "stale_generation";
1485
+ approval_required: "approval_required";
1486
+ approval_stale: "approval_stale";
1487
+ }>;
1488
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1489
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1490
+ callerContext: z.ZodOptional<z.ZodNever>;
1491
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1492
+ lease: z.ZodOptional<z.ZodNever>;
1493
+ leaseUse: z.ZodOptional<z.ZodNever>;
1494
+ }, z.core.$strict>], "result">;
1495
+ }, z.core.$strict>, z.ZodObject<{
1496
+ causationId: z.ZodOptional<z.ZodString>;
1497
+ correlationId: z.ZodOptional<z.ZodString>;
1498
+ requestId: z.ZodOptional<z.ZodString>;
1499
+ runId: z.ZodOptional<z.ZodString>;
1500
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1501
+ toolCallId: z.ZodOptional<z.ZodString>;
1502
+ traceId: z.ZodOptional<z.ZodString>;
1503
+ kind: z.ZodLiteral<"command_result">;
1504
+ operation: z.ZodLiteral<"tool_portal_controller_host_action">;
1505
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1506
+ responseToMessageId: z.ZodString;
1507
+ controllerHostAction: z.ZodObject<{
1508
+ actionId: z.ZodLiteral<"zone_git_push">;
1509
+ result: z.ZodObject<{
1510
+ branch: z.ZodString;
1511
+ localHead: z.ZodString;
1512
+ pushedCommits: z.ZodArray<z.ZodObject<{
1513
+ sha: z.ZodString;
1514
+ subject: z.ZodString;
1515
+ }, z.core.$strict>>;
1516
+ remoteHead: z.ZodString;
1517
+ }, z.core.$strict>;
1518
+ }, z.core.$strict>;
1519
+ result: z.ZodLiteral<"ok">;
1520
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1521
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1522
+ callerContext: z.ZodOptional<z.ZodNever>;
1523
+ error: z.ZodOptional<z.ZodNever>;
1524
+ lease: z.ZodOptional<z.ZodNever>;
1525
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1526
+ leaseUse: z.ZodOptional<z.ZodNever>;
1527
+ }, z.core.$strict>, z.ZodObject<{
1528
+ responseToMessageId: z.ZodString;
1529
+ error: z.ZodObject<{
1530
+ errorClass: z.ZodString;
1531
+ retryable: z.ZodOptional<z.ZodBoolean>;
1532
+ safeMessage: z.ZodOptional<z.ZodString>;
1533
+ }, z.core.$strict>;
1534
+ result: z.ZodEnum<{
1535
+ rejected: "rejected";
1536
+ failed: "failed";
1537
+ timeout: "timeout";
1538
+ cancelled: "cancelled";
1539
+ stale_generation: "stale_generation";
1540
+ approval_required: "approval_required";
1541
+ approval_stale: "approval_stale";
1542
+ }>;
1543
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1544
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1545
+ callerContext: z.ZodOptional<z.ZodNever>;
1546
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1547
+ lease: z.ZodOptional<z.ZodNever>;
1548
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1549
+ leaseUse: z.ZodOptional<z.ZodNever>;
1550
+ }, z.core.$strict>], "result">;
1551
+ }, z.core.$strict>, z.ZodObject<{
1552
+ causationId: z.ZodOptional<z.ZodString>;
1553
+ correlationId: z.ZodOptional<z.ZodString>;
1554
+ requestId: z.ZodOptional<z.ZodString>;
1555
+ runId: z.ZodOptional<z.ZodString>;
1556
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1557
+ toolCallId: z.ZodOptional<z.ZodString>;
1558
+ traceId: z.ZodOptional<z.ZodString>;
1559
+ kind: z.ZodLiteral<"command_result">;
1560
+ operation: z.ZodLiteral<"operation_cancel">;
1561
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1562
+ responseToMessageId: z.ZodString;
1563
+ activeOperationId: z.ZodString;
1564
+ result: z.ZodLiteral<"ok">;
1565
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1566
+ callerContext: z.ZodOptional<z.ZodNever>;
1567
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1568
+ error: z.ZodOptional<z.ZodNever>;
1569
+ lease: z.ZodOptional<z.ZodNever>;
1570
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1571
+ leaseUse: z.ZodOptional<z.ZodNever>;
1572
+ }, z.core.$strict>, z.ZodObject<{
1573
+ responseToMessageId: z.ZodString;
1574
+ activeOperationId: z.ZodOptional<z.ZodString>;
1575
+ error: z.ZodObject<{
1576
+ errorClass: z.ZodString;
1577
+ retryable: z.ZodOptional<z.ZodBoolean>;
1578
+ safeMessage: z.ZodOptional<z.ZodString>;
1579
+ }, z.core.$strict>;
1580
+ result: z.ZodEnum<{
1581
+ rejected: "rejected";
1582
+ failed: "failed";
1583
+ timeout: "timeout";
1584
+ cancelled: "cancelled";
1585
+ stale_generation: "stale_generation";
1586
+ approval_required: "approval_required";
1587
+ approval_stale: "approval_stale";
1588
+ }>;
1589
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1590
+ callerContext: z.ZodOptional<z.ZodNever>;
1591
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1592
+ lease: z.ZodOptional<z.ZodNever>;
1593
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1594
+ leaseUse: z.ZodOptional<z.ZodNever>;
1595
+ }, z.core.$strict>], "result">;
1596
+ }, z.core.$strict>, z.ZodObject<{
1597
+ causationId: z.ZodOptional<z.ZodString>;
1598
+ correlationId: z.ZodOptional<z.ZodString>;
1599
+ requestId: z.ZodOptional<z.ZodString>;
1600
+ runId: z.ZodOptional<z.ZodString>;
1601
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1602
+ toolCallId: z.ZodOptional<z.ZodString>;
1603
+ traceId: z.ZodOptional<z.ZodString>;
1604
+ kind: z.ZodLiteral<"command_result">;
1605
+ operation: z.ZodLiteral<"recovery_command">;
1606
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1607
+ responseToMessageId: z.ZodString;
1608
+ result: z.ZodLiteral<"ok">;
1609
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1610
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1611
+ callerContext: z.ZodOptional<z.ZodNever>;
1612
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1613
+ error: z.ZodOptional<z.ZodNever>;
1614
+ lease: z.ZodOptional<z.ZodNever>;
1615
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1616
+ leaseUse: z.ZodOptional<z.ZodNever>;
1617
+ }, z.core.$strict>, z.ZodObject<{
1618
+ responseToMessageId: z.ZodString;
1619
+ error: z.ZodObject<{
1620
+ errorClass: z.ZodString;
1621
+ retryable: z.ZodOptional<z.ZodBoolean>;
1622
+ safeMessage: z.ZodOptional<z.ZodString>;
1623
+ }, z.core.$strict>;
1624
+ result: z.ZodEnum<{
1625
+ rejected: "rejected";
1626
+ failed: "failed";
1627
+ timeout: "timeout";
1628
+ cancelled: "cancelled";
1629
+ stale_generation: "stale_generation";
1630
+ approval_required: "approval_required";
1631
+ approval_stale: "approval_stale";
1632
+ }>;
1633
+ activeOperationId: z.ZodOptional<z.ZodNever>;
1634
+ approvalRequired: z.ZodOptional<z.ZodNever>;
1635
+ callerContext: z.ZodOptional<z.ZodNever>;
1636
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
1637
+ lease: z.ZodOptional<z.ZodNever>;
1638
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
1639
+ leaseUse: z.ZodOptional<z.ZodNever>;
1640
+ }, z.core.$strict>], "result">;
1641
+ }, z.core.$strict>], "operation">;
1642
+ declare const GatewayControlRpcCommandMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1643
+ causationId: z.ZodOptional<z.ZodString>;
1644
+ correlationId: z.ZodOptional<z.ZodString>;
1645
+ requestId: z.ZodOptional<z.ZodString>;
1646
+ runId: z.ZodOptional<z.ZodString>;
1647
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1648
+ toolCallId: z.ZodOptional<z.ZodString>;
1649
+ traceId: z.ZodOptional<z.ZodString>;
1650
+ kind: z.ZodLiteral<"command">;
1651
+ operation: z.ZodLiteral<"control_ping">;
1652
+ payload: z.ZodObject<{}, z.core.$strict>;
1653
+ }, z.core.$strict>, z.ZodObject<{
1654
+ causationId: z.ZodOptional<z.ZodString>;
1655
+ correlationId: z.ZodOptional<z.ZodString>;
1656
+ requestId: z.ZodOptional<z.ZodString>;
1657
+ runId: z.ZodOptional<z.ZodString>;
1658
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1659
+ toolCallId: z.ZodOptional<z.ZodString>;
1660
+ traceId: z.ZodOptional<z.ZodString>;
1661
+ kind: z.ZodLiteral<"command">;
1662
+ operation: z.ZodLiteral<"caller_context_register">;
1663
+ payload: z.ZodObject<{
1664
+ adapterEvidence: z.ZodObject<{
1665
+ agentAuthority: z.ZodObject<{
1666
+ algorithm: z.ZodLiteral<"hmac-sha256">;
1667
+ digest: z.ZodString;
1668
+ keyId: z.ZodString;
1669
+ }, z.core.$strict>;
1670
+ agentId: z.ZodString;
1671
+ agentWorkspaceDir: z.ZodString;
1672
+ proof: z.ZodObject<{
1673
+ algorithm: z.ZodLiteral<"hmac-sha256">;
1674
+ digest: z.ZodString;
1675
+ }, z.core.$strict>;
1676
+ purpose: z.ZodOptional<z.ZodEnum<{
1677
+ tool_portal_controller_host_action: "tool_portal_controller_host_action";
1678
+ tool_vm_lease: "tool_vm_lease";
1679
+ }>>;
1680
+ sessionKey: z.ZodString;
1681
+ workMountDir: z.ZodString;
1682
+ zoneId: z.ZodString;
1683
+ }, z.core.$strict>;
1684
+ correlation: z.ZodOptional<z.ZodObject<{
1685
+ causationId: z.ZodOptional<z.ZodString>;
1686
+ correlationId: z.ZodOptional<z.ZodString>;
1687
+ requestId: z.ZodOptional<z.ZodString>;
1688
+ runId: z.ZodOptional<z.ZodString>;
1689
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1690
+ toolCallId: z.ZodOptional<z.ZodString>;
1691
+ traceId: z.ZodOptional<z.ZodString>;
1692
+ capability: z.ZodOptional<z.ZodObject<{
1693
+ name: z.ZodString;
1694
+ namespace: z.ZodString;
1695
+ }, z.core.$strict>>;
1696
+ }, z.core.$strict>>;
1697
+ }, z.core.$strict>;
1698
+ }, z.core.$strict>, z.ZodObject<{
1699
+ causationId: z.ZodOptional<z.ZodString>;
1700
+ correlationId: z.ZodOptional<z.ZodString>;
1701
+ requestId: z.ZodOptional<z.ZodString>;
1702
+ runId: z.ZodOptional<z.ZodString>;
1703
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1704
+ toolCallId: z.ZodOptional<z.ZodString>;
1705
+ traceId: z.ZodOptional<z.ZodString>;
1706
+ kind: z.ZodLiteral<"command">;
1707
+ operation: z.ZodLiteral<"lease_create">;
1708
+ payload: z.ZodObject<{
1709
+ callerContext: z.ZodObject<{
1710
+ callerContextId: z.ZodString;
1711
+ }, z.core.$strict>;
1712
+ correlation: z.ZodOptional<z.ZodObject<{
1713
+ causationId: z.ZodOptional<z.ZodString>;
1714
+ correlationId: z.ZodOptional<z.ZodString>;
1715
+ requestId: z.ZodOptional<z.ZodString>;
1716
+ runId: z.ZodOptional<z.ZodString>;
1717
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1718
+ toolCallId: z.ZodOptional<z.ZodString>;
1719
+ traceId: z.ZodOptional<z.ZodString>;
1720
+ capability: z.ZodOptional<z.ZodObject<{
1721
+ name: z.ZodString;
1722
+ namespace: z.ZodString;
1723
+ }, z.core.$strict>>;
1724
+ }, z.core.$strict>>;
1725
+ gatewayWorkspaceDir: z.ZodOptional<z.ZodString>;
1726
+ idleTtlHintMs: z.ZodOptional<z.ZodNumber>;
1727
+ }, z.core.$strict>;
1728
+ }, z.core.$strict>, z.ZodObject<{
1729
+ causationId: z.ZodOptional<z.ZodString>;
1730
+ correlationId: z.ZodOptional<z.ZodString>;
1731
+ requestId: z.ZodOptional<z.ZodString>;
1732
+ runId: z.ZodOptional<z.ZodString>;
1733
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1734
+ toolCallId: z.ZodOptional<z.ZodString>;
1735
+ traceId: z.ZodOptional<z.ZodString>;
1736
+ kind: z.ZodLiteral<"command">;
1737
+ operation: z.ZodLiteral<"lease_get">;
1738
+ payload: z.ZodObject<{
1739
+ callerContext: z.ZodObject<{
1740
+ callerContextId: z.ZodString;
1741
+ }, z.core.$strict>;
1742
+ leaseId: z.ZodString;
1743
+ }, z.core.$strict>;
1744
+ }, z.core.$strict>, z.ZodObject<{
1745
+ causationId: z.ZodOptional<z.ZodString>;
1746
+ correlationId: z.ZodOptional<z.ZodString>;
1747
+ requestId: z.ZodOptional<z.ZodString>;
1748
+ runId: z.ZodOptional<z.ZodString>;
1749
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1750
+ toolCallId: z.ZodOptional<z.ZodString>;
1751
+ traceId: z.ZodOptional<z.ZodString>;
1752
+ kind: z.ZodLiteral<"command">;
1753
+ operation: z.ZodLiteral<"lease_peek">;
1754
+ payload: z.ZodObject<{
1755
+ callerContext: z.ZodObject<{
1756
+ callerContextId: z.ZodString;
1757
+ }, z.core.$strict>;
1758
+ leaseId: z.ZodString;
1759
+ }, z.core.$strict>;
1760
+ }, z.core.$strict>, z.ZodObject<{
1761
+ causationId: z.ZodOptional<z.ZodString>;
1762
+ correlationId: z.ZodOptional<z.ZodString>;
1763
+ requestId: z.ZodOptional<z.ZodString>;
1764
+ runId: z.ZodOptional<z.ZodString>;
1765
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1766
+ toolCallId: z.ZodOptional<z.ZodString>;
1767
+ traceId: z.ZodOptional<z.ZodString>;
1768
+ kind: z.ZodLiteral<"command">;
1769
+ operation: z.ZodLiteral<"lease_renew">;
1770
+ payload: z.ZodObject<{
1771
+ callerContext: z.ZodObject<{
1772
+ callerContextId: z.ZodString;
1773
+ }, z.core.$strict>;
1774
+ leaseId: z.ZodString;
1775
+ }, z.core.$strict>;
1776
+ }, z.core.$strict>, z.ZodObject<{
1777
+ causationId: z.ZodOptional<z.ZodString>;
1778
+ correlationId: z.ZodOptional<z.ZodString>;
1779
+ requestId: z.ZodOptional<z.ZodString>;
1780
+ runId: z.ZodOptional<z.ZodString>;
1781
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1782
+ toolCallId: z.ZodOptional<z.ZodString>;
1783
+ traceId: z.ZodOptional<z.ZodString>;
1784
+ kind: z.ZodLiteral<"command">;
1785
+ operation: z.ZodLiteral<"lease_release">;
1786
+ payload: z.ZodObject<{
1787
+ callerContext: z.ZodObject<{
1788
+ callerContextId: z.ZodString;
1789
+ }, z.core.$strict>;
1790
+ leaseId: z.ZodString;
1791
+ }, z.core.$strict>;
1792
+ }, z.core.$strict>, z.ZodObject<{
1793
+ causationId: z.ZodOptional<z.ZodString>;
1794
+ correlationId: z.ZodOptional<z.ZodString>;
1795
+ requestId: z.ZodOptional<z.ZodString>;
1796
+ runId: z.ZodOptional<z.ZodString>;
1797
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1798
+ toolCallId: z.ZodOptional<z.ZodString>;
1799
+ traceId: z.ZodOptional<z.ZodString>;
1800
+ kind: z.ZodLiteral<"command">;
1801
+ operation: z.ZodLiteral<"lease_use_start">;
1802
+ payload: z.ZodObject<{
1803
+ callerContext: z.ZodObject<{
1804
+ callerContextId: z.ZodString;
1805
+ }, z.core.$strict>;
1806
+ correlation: z.ZodOptional<z.ZodObject<{
1807
+ causationId: z.ZodOptional<z.ZodString>;
1808
+ correlationId: z.ZodOptional<z.ZodString>;
1809
+ requestId: z.ZodOptional<z.ZodString>;
1810
+ runId: z.ZodOptional<z.ZodString>;
1811
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1812
+ toolCallId: z.ZodOptional<z.ZodString>;
1813
+ traceId: z.ZodOptional<z.ZodString>;
1814
+ capability: z.ZodOptional<z.ZodObject<{
1815
+ name: z.ZodString;
1816
+ namespace: z.ZodString;
1817
+ }, z.core.$strict>>;
1818
+ }, z.core.$strict>>;
1819
+ leaseId: z.ZodString;
1820
+ useId: z.ZodString;
1821
+ }, z.core.$strict>;
1822
+ }, z.core.$strict>, z.ZodObject<{
1823
+ causationId: z.ZodOptional<z.ZodString>;
1824
+ correlationId: z.ZodOptional<z.ZodString>;
1825
+ requestId: z.ZodOptional<z.ZodString>;
1826
+ runId: z.ZodOptional<z.ZodString>;
1827
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1828
+ toolCallId: z.ZodOptional<z.ZodString>;
1829
+ traceId: z.ZodOptional<z.ZodString>;
1830
+ kind: z.ZodLiteral<"command">;
1831
+ operation: z.ZodLiteral<"lease_use_heartbeat">;
1832
+ payload: z.ZodObject<{
1833
+ callerContext: z.ZodObject<{
1834
+ callerContextId: z.ZodString;
1835
+ }, z.core.$strict>;
1836
+ leaseId: z.ZodString;
1837
+ observedAtMs: z.ZodOptional<z.ZodNumber>;
1838
+ useId: z.ZodString;
1839
+ }, z.core.$strict>;
1840
+ }, z.core.$strict>, z.ZodObject<{
1841
+ causationId: z.ZodOptional<z.ZodString>;
1842
+ correlationId: z.ZodOptional<z.ZodString>;
1843
+ requestId: z.ZodOptional<z.ZodString>;
1844
+ runId: z.ZodOptional<z.ZodString>;
1845
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1846
+ toolCallId: z.ZodOptional<z.ZodString>;
1847
+ traceId: z.ZodOptional<z.ZodString>;
1848
+ kind: z.ZodLiteral<"command">;
1849
+ operation: z.ZodLiteral<"lease_use_end">;
1850
+ payload: z.ZodObject<{
1851
+ callerContext: z.ZodObject<{
1852
+ callerContextId: z.ZodString;
1853
+ }, z.core.$strict>;
1854
+ leaseId: z.ZodString;
1855
+ reason: z.ZodEnum<{
1856
+ failed: "failed";
1857
+ cancelled: "cancelled";
1858
+ completed: "completed";
1859
+ timed_out: "timed_out";
1860
+ }>;
1861
+ useId: z.ZodString;
1862
+ }, z.core.$strict>;
1863
+ }, z.core.$strict>, z.ZodObject<{
1864
+ causationId: z.ZodOptional<z.ZodString>;
1865
+ correlationId: z.ZodOptional<z.ZodString>;
1866
+ requestId: z.ZodOptional<z.ZodString>;
1867
+ runId: z.ZodOptional<z.ZodString>;
1868
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1869
+ toolCallId: z.ZodOptional<z.ZodString>;
1870
+ traceId: z.ZodOptional<z.ZodString>;
1871
+ kind: z.ZodLiteral<"command">;
1872
+ operation: z.ZodLiteral<"tool_portal_controller_host_action">;
1873
+ payload: z.ZodObject<{
1874
+ actionId: z.ZodLiteral<"zone_git_push">;
1875
+ callerContext: z.ZodObject<{
1876
+ callerContextId: z.ZodString;
1877
+ }, z.core.$strict>;
1878
+ correlation: z.ZodObject<{
1879
+ causationId: z.ZodOptional<z.ZodString>;
1880
+ correlationId: z.ZodOptional<z.ZodString>;
1881
+ requestId: z.ZodOptional<z.ZodString>;
1882
+ runId: z.ZodOptional<z.ZodString>;
1883
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1884
+ toolCallId: z.ZodOptional<z.ZodString>;
1885
+ traceId: z.ZodOptional<z.ZodString>;
1886
+ capability: z.ZodOptional<z.ZodObject<{
1887
+ name: z.ZodString;
1888
+ namespace: z.ZodString;
1889
+ }, z.core.$strict>>;
1890
+ }, z.core.$strict>;
1891
+ expectedHead: z.ZodString;
1892
+ }, z.core.$strict>;
1893
+ }, z.core.$strict>, z.ZodObject<{
1894
+ causationId: z.ZodOptional<z.ZodString>;
1895
+ correlationId: z.ZodOptional<z.ZodString>;
1896
+ requestId: z.ZodOptional<z.ZodString>;
1897
+ runId: z.ZodOptional<z.ZodString>;
1898
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1899
+ toolCallId: z.ZodOptional<z.ZodString>;
1900
+ traceId: z.ZodOptional<z.ZodString>;
1901
+ kind: z.ZodLiteral<"command">;
1902
+ operation: z.ZodLiteral<"operation_cancel">;
1903
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1904
+ activeOperationId: z.ZodString;
1905
+ initiatedBy: z.ZodLiteral<"gateway">;
1906
+ reason: z.ZodEnum<{
1907
+ caller_cancelled: "caller_cancelled";
1908
+ gateway_shutdown: "gateway_shutdown";
1909
+ operation_failed: "operation_failed";
1910
+ }>;
1911
+ }, z.core.$strict>, z.ZodObject<{
1912
+ activeOperationId: z.ZodString;
1913
+ initiatedBy: z.ZodLiteral<"controller">;
1914
+ reason: z.ZodEnum<{
1915
+ timeout: "timeout";
1916
+ controller_recovery: "controller_recovery";
1917
+ operator_cancelled: "operator_cancelled";
1918
+ }>;
1919
+ }, z.core.$strict>], "initiatedBy">;
1920
+ }, z.core.$strict>, z.ZodObject<{
1921
+ causationId: z.ZodOptional<z.ZodString>;
1922
+ correlationId: z.ZodOptional<z.ZodString>;
1923
+ requestId: z.ZodOptional<z.ZodString>;
1924
+ runId: z.ZodOptional<z.ZodString>;
1925
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1926
+ toolCallId: z.ZodOptional<z.ZodString>;
1927
+ traceId: z.ZodOptional<z.ZodString>;
1928
+ kind: z.ZodLiteral<"command">;
1929
+ operation: z.ZodLiteral<"recovery_command">;
1930
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1931
+ action: z.ZodLiteral<"refresh_runtime_status">;
1932
+ }, z.core.$strict>, z.ZodObject<{
1933
+ action: z.ZodLiteral<"restart_control_service">;
1934
+ }, z.core.$strict>, z.ZodObject<{
1935
+ action: z.ZodLiteral<"close_stale_session">;
1936
+ targetSessionId: z.ZodString;
1937
+ }, z.core.$strict>], "action">;
1938
+ }, z.core.$strict>], "operation">;
1939
+ declare const GatewayControlRpcEventMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1940
+ causationId: z.ZodOptional<z.ZodString>;
1941
+ correlationId: z.ZodOptional<z.ZodString>;
1942
+ requestId: z.ZodOptional<z.ZodString>;
1943
+ runId: z.ZodOptional<z.ZodString>;
1944
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1945
+ toolCallId: z.ZodOptional<z.ZodString>;
1946
+ traceId: z.ZodOptional<z.ZodString>;
1947
+ kind: z.ZodLiteral<"event">;
1948
+ operation: z.ZodLiteral<"health_event">;
1949
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
1950
+ correlation: z.ZodOptional<z.ZodObject<{
1951
+ causationId: z.ZodOptional<z.ZodString>;
1952
+ correlationId: z.ZodOptional<z.ZodString>;
1953
+ requestId: z.ZodOptional<z.ZodString>;
1954
+ runId: z.ZodOptional<z.ZodString>;
1955
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1956
+ toolCallId: z.ZodOptional<z.ZodString>;
1957
+ traceId: z.ZodOptional<z.ZodString>;
1958
+ }, z.core.$strict>>;
1959
+ observedAtMs: z.ZodNumber;
1960
+ result: z.ZodEnum<{
1961
+ failed: "failed";
1962
+ ok: "ok";
1963
+ timeout: "timeout";
1964
+ degraded: "degraded";
1965
+ }>;
1966
+ channelProviderId: z.ZodString;
1967
+ eventKind: z.ZodLiteral<"agent-channel-provider-health">;
1968
+ providerRuntimeHealth: z.ZodEnum<{
1969
+ healthy: "healthy";
1970
+ transitioning: "transitioning";
1971
+ unhealthy_recoverable: "unhealthy_recoverable";
1972
+ unhealthy_unrecoverable: "unhealthy_unrecoverable";
1973
+ }>;
1974
+ safeDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1975
+ }, z.core.$strict>, z.ZodObject<{
1976
+ correlation: z.ZodOptional<z.ZodObject<{
1977
+ causationId: z.ZodOptional<z.ZodString>;
1978
+ correlationId: z.ZodOptional<z.ZodString>;
1979
+ requestId: z.ZodOptional<z.ZodString>;
1980
+ runId: z.ZodOptional<z.ZodString>;
1981
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
1982
+ toolCallId: z.ZodOptional<z.ZodString>;
1983
+ traceId: z.ZodOptional<z.ZodString>;
1984
+ }, z.core.$strict>>;
1985
+ observedAtMs: z.ZodNumber;
1986
+ result: z.ZodEnum<{
1987
+ failed: "failed";
1988
+ ok: "ok";
1989
+ timeout: "timeout";
1990
+ degraded: "degraded";
1991
+ }>;
1992
+ attempt: z.ZodNumber;
1993
+ elapsedMs: z.ZodNumber;
1994
+ errorCode: z.ZodOptional<z.ZodString>;
1995
+ eventKind: z.ZodLiteral<"controller-request">;
1996
+ maxAttempts: z.ZodNumber;
1997
+ operation: z.ZodEnum<{
1998
+ "zone-git-push": "zone-git-push";
1999
+ "lease-create": "lease-create";
2000
+ "lease-get": "lease-get";
2001
+ "lease-peek": "lease-peek";
2002
+ "lease-release": "lease-release";
2003
+ "lease-use-start": "lease-use-start";
2004
+ "lease-use-end": "lease-use-end";
2005
+ }>;
2006
+ statusCode: z.ZodOptional<z.ZodNumber>;
2007
+ }, z.core.$strict>, z.ZodObject<{
2008
+ correlation: z.ZodOptional<z.ZodObject<{
2009
+ causationId: z.ZodOptional<z.ZodString>;
2010
+ correlationId: z.ZodOptional<z.ZodString>;
2011
+ requestId: z.ZodOptional<z.ZodString>;
2012
+ runId: z.ZodOptional<z.ZodString>;
2013
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2014
+ toolCallId: z.ZodOptional<z.ZodString>;
2015
+ traceId: z.ZodOptional<z.ZodString>;
2016
+ }, z.core.$strict>>;
2017
+ observedAtMs: z.ZodNumber;
2018
+ result: z.ZodEnum<{
2019
+ failed: "failed";
2020
+ ok: "ok";
2021
+ timeout: "timeout";
2022
+ degraded: "degraded";
2023
+ }>;
2024
+ elapsedMs: z.ZodNumber;
2025
+ eventKind: z.ZodLiteral<"gateway-control-session">;
2026
+ operation: z.ZodEnum<{
2027
+ "control-session-hello": "control-session-hello";
2028
+ "control-session-heartbeat": "control-session-heartbeat";
2029
+ "control-session-disconnect": "control-session-disconnect";
2030
+ "control-session-reconnect": "control-session-reconnect";
2031
+ }>;
2032
+ safeDetails: z.ZodObject<{
2033
+ peerId: z.ZodString;
2034
+ }, z.core.$catchall<z.ZodString>>;
2035
+ }, z.core.$strict>, z.ZodObject<{
2036
+ correlation: z.ZodOptional<z.ZodObject<{
2037
+ causationId: z.ZodOptional<z.ZodString>;
2038
+ correlationId: z.ZodOptional<z.ZodString>;
2039
+ requestId: z.ZodOptional<z.ZodString>;
2040
+ runId: z.ZodOptional<z.ZodString>;
2041
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2042
+ toolCallId: z.ZodOptional<z.ZodString>;
2043
+ traceId: z.ZodOptional<z.ZodString>;
2044
+ }, z.core.$strict>>;
2045
+ observedAtMs: z.ZodNumber;
2046
+ result: z.ZodEnum<{
2047
+ failed: "failed";
2048
+ ok: "ok";
2049
+ timeout: "timeout";
2050
+ degraded: "degraded";
2051
+ }>;
2052
+ eventKind: z.ZodLiteral<"gateway-plugin-health">;
2053
+ }, z.core.$strict>, z.ZodObject<{
2054
+ correlation: z.ZodOptional<z.ZodObject<{
2055
+ causationId: z.ZodOptional<z.ZodString>;
2056
+ correlationId: z.ZodOptional<z.ZodString>;
2057
+ requestId: z.ZodOptional<z.ZodString>;
2058
+ runId: z.ZodOptional<z.ZodString>;
2059
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2060
+ toolCallId: z.ZodOptional<z.ZodString>;
2061
+ traceId: z.ZodOptional<z.ZodString>;
2062
+ }, z.core.$strict>>;
2063
+ observedAtMs: z.ZodNumber;
2064
+ result: z.ZodEnum<{
2065
+ failed: "failed";
2066
+ ok: "ok";
2067
+ timeout: "timeout";
2068
+ degraded: "degraded";
2069
+ }>;
2070
+ agentId: z.ZodString;
2071
+ elapsedMs: z.ZodNumber;
2072
+ errorCode: z.ZodOptional<z.ZodString>;
2073
+ leaseId: z.ZodString;
2074
+ eventKind: z.ZodLiteral<"tool-vm-ssh">;
2075
+ operation: z.ZodEnum<{
2076
+ command: "command";
2077
+ "file-bridge": "file-bridge";
2078
+ finalize: "finalize";
2079
+ probe: "probe";
2080
+ }>;
2081
+ }, z.core.$strict>], "eventKind">;
2082
+ }, z.core.$strict>, z.ZodObject<{
2083
+ causationId: z.ZodOptional<z.ZodString>;
2084
+ correlationId: z.ZodOptional<z.ZodString>;
2085
+ requestId: z.ZodOptional<z.ZodString>;
2086
+ runId: z.ZodOptional<z.ZodString>;
2087
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2088
+ toolCallId: z.ZodOptional<z.ZodString>;
2089
+ traceId: z.ZodOptional<z.ZodString>;
2090
+ kind: z.ZodLiteral<"event">;
2091
+ operation: z.ZodLiteral<"runtime_status">;
2092
+ payload: z.ZodObject<{
2093
+ findings: z.ZodArray<z.ZodObject<{
2094
+ id: z.ZodString;
2095
+ ok: z.ZodBoolean;
2096
+ safeMessage: z.ZodOptional<z.ZodString>;
2097
+ severity: z.ZodOptional<z.ZodEnum<{
2098
+ error: "error";
2099
+ info: "info";
2100
+ warning: "warning";
2101
+ }>>;
2102
+ }, z.core.$strict>>;
2103
+ observedAtMs: z.ZodNumber;
2104
+ providerRuntimeHealth: z.ZodOptional<z.ZodEnum<{
2105
+ healthy: "healthy";
2106
+ transitioning: "transitioning";
2107
+ unhealthy_recoverable: "unhealthy_recoverable";
2108
+ unhealthy_unrecoverable: "unhealthy_unrecoverable";
2109
+ }>>;
2110
+ statusKind: z.ZodString;
2111
+ }, z.core.$strict>;
2112
+ }, z.core.$strict>], "operation">;
2113
+ declare const GatewayControlEventOnlyOperationSchema: z.ZodEnum<{
2114
+ health_event: "health_event";
2115
+ runtime_status: "runtime_status";
2116
+ }>;
2117
+ declare const GatewayControlRpcCommandResultOperationSchema: z.ZodEnum<{
2118
+ control_ping: "control_ping";
2119
+ caller_context_register: "caller_context_register";
2120
+ lease_create: "lease_create";
2121
+ lease_get: "lease_get";
2122
+ lease_peek: "lease_peek";
2123
+ lease_renew: "lease_renew";
2124
+ lease_release: "lease_release";
2125
+ lease_use_start: "lease_use_start";
2126
+ lease_use_heartbeat: "lease_use_heartbeat";
2127
+ lease_use_end: "lease_use_end";
2128
+ tool_portal_controller_host_action: "tool_portal_controller_host_action";
2129
+ operation_cancel: "operation_cancel";
2130
+ recovery_command: "recovery_command";
2131
+ }>;
2132
+ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2133
+ kind: z.ZodLiteral<"heartbeat">;
2134
+ operation: z.ZodOptional<z.ZodNever>;
2135
+ payload: z.ZodObject<{
2136
+ elapsedMs: z.ZodOptional<z.ZodNumber>;
2137
+ observedAtMs: z.ZodNumber;
2138
+ }, z.core.$strict>;
2139
+ }, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
2140
+ causationId: z.ZodOptional<z.ZodString>;
2141
+ correlationId: z.ZodOptional<z.ZodString>;
2142
+ requestId: z.ZodOptional<z.ZodString>;
2143
+ runId: z.ZodOptional<z.ZodString>;
2144
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2145
+ toolCallId: z.ZodOptional<z.ZodString>;
2146
+ traceId: z.ZodOptional<z.ZodString>;
2147
+ kind: z.ZodLiteral<"command">;
2148
+ operation: z.ZodLiteral<"control_ping">;
2149
+ payload: z.ZodObject<{}, z.core.$strict>;
2150
+ }, z.core.$strict>, z.ZodObject<{
2151
+ causationId: z.ZodOptional<z.ZodString>;
2152
+ correlationId: z.ZodOptional<z.ZodString>;
2153
+ requestId: z.ZodOptional<z.ZodString>;
2154
+ runId: z.ZodOptional<z.ZodString>;
2155
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2156
+ toolCallId: z.ZodOptional<z.ZodString>;
2157
+ traceId: z.ZodOptional<z.ZodString>;
2158
+ kind: z.ZodLiteral<"command">;
2159
+ operation: z.ZodLiteral<"caller_context_register">;
2160
+ payload: z.ZodObject<{
2161
+ adapterEvidence: z.ZodObject<{
2162
+ agentAuthority: z.ZodObject<{
2163
+ algorithm: z.ZodLiteral<"hmac-sha256">;
2164
+ digest: z.ZodString;
2165
+ keyId: z.ZodString;
2166
+ }, z.core.$strict>;
2167
+ agentId: z.ZodString;
2168
+ agentWorkspaceDir: z.ZodString;
2169
+ proof: z.ZodObject<{
2170
+ algorithm: z.ZodLiteral<"hmac-sha256">;
2171
+ digest: z.ZodString;
2172
+ }, z.core.$strict>;
2173
+ purpose: z.ZodOptional<z.ZodEnum<{
2174
+ tool_portal_controller_host_action: "tool_portal_controller_host_action";
2175
+ tool_vm_lease: "tool_vm_lease";
2176
+ }>>;
2177
+ sessionKey: z.ZodString;
2178
+ workMountDir: z.ZodString;
2179
+ zoneId: z.ZodString;
2180
+ }, z.core.$strict>;
2181
+ correlation: z.ZodOptional<z.ZodObject<{
2182
+ causationId: z.ZodOptional<z.ZodString>;
2183
+ correlationId: z.ZodOptional<z.ZodString>;
2184
+ requestId: z.ZodOptional<z.ZodString>;
2185
+ runId: z.ZodOptional<z.ZodString>;
2186
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2187
+ toolCallId: z.ZodOptional<z.ZodString>;
2188
+ traceId: z.ZodOptional<z.ZodString>;
2189
+ capability: z.ZodOptional<z.ZodObject<{
2190
+ name: z.ZodString;
2191
+ namespace: z.ZodString;
2192
+ }, z.core.$strict>>;
2193
+ }, z.core.$strict>>;
2194
+ }, z.core.$strict>;
2195
+ }, z.core.$strict>, z.ZodObject<{
2196
+ causationId: z.ZodOptional<z.ZodString>;
2197
+ correlationId: z.ZodOptional<z.ZodString>;
2198
+ requestId: z.ZodOptional<z.ZodString>;
2199
+ runId: z.ZodOptional<z.ZodString>;
2200
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2201
+ toolCallId: z.ZodOptional<z.ZodString>;
2202
+ traceId: z.ZodOptional<z.ZodString>;
2203
+ kind: z.ZodLiteral<"command">;
2204
+ operation: z.ZodLiteral<"lease_create">;
2205
+ payload: z.ZodObject<{
2206
+ callerContext: z.ZodObject<{
2207
+ callerContextId: z.ZodString;
2208
+ }, z.core.$strict>;
2209
+ correlation: z.ZodOptional<z.ZodObject<{
2210
+ causationId: z.ZodOptional<z.ZodString>;
2211
+ correlationId: z.ZodOptional<z.ZodString>;
2212
+ requestId: z.ZodOptional<z.ZodString>;
2213
+ runId: z.ZodOptional<z.ZodString>;
2214
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2215
+ toolCallId: z.ZodOptional<z.ZodString>;
2216
+ traceId: z.ZodOptional<z.ZodString>;
2217
+ capability: z.ZodOptional<z.ZodObject<{
2218
+ name: z.ZodString;
2219
+ namespace: z.ZodString;
2220
+ }, z.core.$strict>>;
2221
+ }, z.core.$strict>>;
2222
+ gatewayWorkspaceDir: z.ZodOptional<z.ZodString>;
2223
+ idleTtlHintMs: z.ZodOptional<z.ZodNumber>;
2224
+ }, z.core.$strict>;
2225
+ }, z.core.$strict>, z.ZodObject<{
2226
+ causationId: z.ZodOptional<z.ZodString>;
2227
+ correlationId: z.ZodOptional<z.ZodString>;
2228
+ requestId: z.ZodOptional<z.ZodString>;
2229
+ runId: z.ZodOptional<z.ZodString>;
2230
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2231
+ toolCallId: z.ZodOptional<z.ZodString>;
2232
+ traceId: z.ZodOptional<z.ZodString>;
2233
+ kind: z.ZodLiteral<"command">;
2234
+ operation: z.ZodLiteral<"lease_get">;
2235
+ payload: z.ZodObject<{
2236
+ callerContext: z.ZodObject<{
2237
+ callerContextId: z.ZodString;
2238
+ }, z.core.$strict>;
2239
+ leaseId: z.ZodString;
2240
+ }, z.core.$strict>;
2241
+ }, z.core.$strict>, z.ZodObject<{
2242
+ causationId: z.ZodOptional<z.ZodString>;
2243
+ correlationId: z.ZodOptional<z.ZodString>;
2244
+ requestId: z.ZodOptional<z.ZodString>;
2245
+ runId: z.ZodOptional<z.ZodString>;
2246
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2247
+ toolCallId: z.ZodOptional<z.ZodString>;
2248
+ traceId: z.ZodOptional<z.ZodString>;
2249
+ kind: z.ZodLiteral<"command">;
2250
+ operation: z.ZodLiteral<"lease_peek">;
2251
+ payload: z.ZodObject<{
2252
+ callerContext: z.ZodObject<{
2253
+ callerContextId: z.ZodString;
2254
+ }, z.core.$strict>;
2255
+ leaseId: z.ZodString;
2256
+ }, z.core.$strict>;
2257
+ }, z.core.$strict>, z.ZodObject<{
2258
+ causationId: z.ZodOptional<z.ZodString>;
2259
+ correlationId: z.ZodOptional<z.ZodString>;
2260
+ requestId: z.ZodOptional<z.ZodString>;
2261
+ runId: z.ZodOptional<z.ZodString>;
2262
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2263
+ toolCallId: z.ZodOptional<z.ZodString>;
2264
+ traceId: z.ZodOptional<z.ZodString>;
2265
+ kind: z.ZodLiteral<"command">;
2266
+ operation: z.ZodLiteral<"lease_renew">;
2267
+ payload: z.ZodObject<{
2268
+ callerContext: z.ZodObject<{
2269
+ callerContextId: z.ZodString;
2270
+ }, z.core.$strict>;
2271
+ leaseId: z.ZodString;
2272
+ }, z.core.$strict>;
2273
+ }, z.core.$strict>, z.ZodObject<{
2274
+ causationId: z.ZodOptional<z.ZodString>;
2275
+ correlationId: z.ZodOptional<z.ZodString>;
2276
+ requestId: z.ZodOptional<z.ZodString>;
2277
+ runId: z.ZodOptional<z.ZodString>;
2278
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2279
+ toolCallId: z.ZodOptional<z.ZodString>;
2280
+ traceId: z.ZodOptional<z.ZodString>;
2281
+ kind: z.ZodLiteral<"command">;
2282
+ operation: z.ZodLiteral<"lease_release">;
2283
+ payload: z.ZodObject<{
2284
+ callerContext: z.ZodObject<{
2285
+ callerContextId: z.ZodString;
2286
+ }, z.core.$strict>;
2287
+ leaseId: z.ZodString;
2288
+ }, z.core.$strict>;
2289
+ }, z.core.$strict>, z.ZodObject<{
2290
+ causationId: z.ZodOptional<z.ZodString>;
2291
+ correlationId: z.ZodOptional<z.ZodString>;
2292
+ requestId: z.ZodOptional<z.ZodString>;
2293
+ runId: z.ZodOptional<z.ZodString>;
2294
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2295
+ toolCallId: z.ZodOptional<z.ZodString>;
2296
+ traceId: z.ZodOptional<z.ZodString>;
2297
+ kind: z.ZodLiteral<"command">;
2298
+ operation: z.ZodLiteral<"lease_use_start">;
2299
+ payload: z.ZodObject<{
2300
+ callerContext: z.ZodObject<{
2301
+ callerContextId: z.ZodString;
2302
+ }, z.core.$strict>;
2303
+ correlation: z.ZodOptional<z.ZodObject<{
2304
+ causationId: z.ZodOptional<z.ZodString>;
2305
+ correlationId: z.ZodOptional<z.ZodString>;
2306
+ requestId: z.ZodOptional<z.ZodString>;
2307
+ runId: z.ZodOptional<z.ZodString>;
2308
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2309
+ toolCallId: z.ZodOptional<z.ZodString>;
2310
+ traceId: z.ZodOptional<z.ZodString>;
2311
+ capability: z.ZodOptional<z.ZodObject<{
2312
+ name: z.ZodString;
2313
+ namespace: z.ZodString;
2314
+ }, z.core.$strict>>;
2315
+ }, z.core.$strict>>;
2316
+ leaseId: z.ZodString;
2317
+ useId: z.ZodString;
2318
+ }, z.core.$strict>;
2319
+ }, z.core.$strict>, z.ZodObject<{
2320
+ causationId: z.ZodOptional<z.ZodString>;
2321
+ correlationId: z.ZodOptional<z.ZodString>;
2322
+ requestId: z.ZodOptional<z.ZodString>;
2323
+ runId: z.ZodOptional<z.ZodString>;
2324
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2325
+ toolCallId: z.ZodOptional<z.ZodString>;
2326
+ traceId: z.ZodOptional<z.ZodString>;
2327
+ kind: z.ZodLiteral<"command">;
2328
+ operation: z.ZodLiteral<"lease_use_heartbeat">;
2329
+ payload: z.ZodObject<{
2330
+ callerContext: z.ZodObject<{
2331
+ callerContextId: z.ZodString;
2332
+ }, z.core.$strict>;
2333
+ leaseId: z.ZodString;
2334
+ observedAtMs: z.ZodOptional<z.ZodNumber>;
2335
+ useId: z.ZodString;
2336
+ }, z.core.$strict>;
2337
+ }, z.core.$strict>, z.ZodObject<{
2338
+ causationId: z.ZodOptional<z.ZodString>;
2339
+ correlationId: z.ZodOptional<z.ZodString>;
2340
+ requestId: z.ZodOptional<z.ZodString>;
2341
+ runId: z.ZodOptional<z.ZodString>;
2342
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2343
+ toolCallId: z.ZodOptional<z.ZodString>;
2344
+ traceId: z.ZodOptional<z.ZodString>;
2345
+ kind: z.ZodLiteral<"command">;
2346
+ operation: z.ZodLiteral<"lease_use_end">;
2347
+ payload: z.ZodObject<{
2348
+ callerContext: z.ZodObject<{
2349
+ callerContextId: z.ZodString;
2350
+ }, z.core.$strict>;
2351
+ leaseId: z.ZodString;
2352
+ reason: z.ZodEnum<{
2353
+ failed: "failed";
2354
+ cancelled: "cancelled";
2355
+ completed: "completed";
2356
+ timed_out: "timed_out";
2357
+ }>;
2358
+ useId: z.ZodString;
2359
+ }, z.core.$strict>;
2360
+ }, z.core.$strict>, z.ZodObject<{
2361
+ causationId: z.ZodOptional<z.ZodString>;
2362
+ correlationId: z.ZodOptional<z.ZodString>;
2363
+ requestId: z.ZodOptional<z.ZodString>;
2364
+ runId: z.ZodOptional<z.ZodString>;
2365
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2366
+ toolCallId: z.ZodOptional<z.ZodString>;
2367
+ traceId: z.ZodOptional<z.ZodString>;
2368
+ kind: z.ZodLiteral<"command">;
2369
+ operation: z.ZodLiteral<"tool_portal_controller_host_action">;
2370
+ payload: z.ZodObject<{
2371
+ actionId: z.ZodLiteral<"zone_git_push">;
2372
+ callerContext: z.ZodObject<{
2373
+ callerContextId: z.ZodString;
2374
+ }, z.core.$strict>;
2375
+ correlation: z.ZodObject<{
2376
+ causationId: z.ZodOptional<z.ZodString>;
2377
+ correlationId: z.ZodOptional<z.ZodString>;
2378
+ requestId: z.ZodOptional<z.ZodString>;
2379
+ runId: z.ZodOptional<z.ZodString>;
2380
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2381
+ toolCallId: z.ZodOptional<z.ZodString>;
2382
+ traceId: z.ZodOptional<z.ZodString>;
2383
+ capability: z.ZodOptional<z.ZodObject<{
2384
+ name: z.ZodString;
2385
+ namespace: z.ZodString;
2386
+ }, z.core.$strict>>;
2387
+ }, z.core.$strict>;
2388
+ expectedHead: z.ZodString;
2389
+ }, z.core.$strict>;
2390
+ }, z.core.$strict>, z.ZodObject<{
2391
+ causationId: z.ZodOptional<z.ZodString>;
2392
+ correlationId: z.ZodOptional<z.ZodString>;
2393
+ requestId: z.ZodOptional<z.ZodString>;
2394
+ runId: z.ZodOptional<z.ZodString>;
2395
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2396
+ toolCallId: z.ZodOptional<z.ZodString>;
2397
+ traceId: z.ZodOptional<z.ZodString>;
2398
+ kind: z.ZodLiteral<"command">;
2399
+ operation: z.ZodLiteral<"operation_cancel">;
2400
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2401
+ activeOperationId: z.ZodString;
2402
+ initiatedBy: z.ZodLiteral<"gateway">;
2403
+ reason: z.ZodEnum<{
2404
+ caller_cancelled: "caller_cancelled";
2405
+ gateway_shutdown: "gateway_shutdown";
2406
+ operation_failed: "operation_failed";
2407
+ }>;
2408
+ }, z.core.$strict>, z.ZodObject<{
2409
+ activeOperationId: z.ZodString;
2410
+ initiatedBy: z.ZodLiteral<"controller">;
2411
+ reason: z.ZodEnum<{
2412
+ timeout: "timeout";
2413
+ controller_recovery: "controller_recovery";
2414
+ operator_cancelled: "operator_cancelled";
2415
+ }>;
2416
+ }, z.core.$strict>], "initiatedBy">;
2417
+ }, z.core.$strict>, z.ZodObject<{
2418
+ causationId: z.ZodOptional<z.ZodString>;
2419
+ correlationId: z.ZodOptional<z.ZodString>;
2420
+ requestId: z.ZodOptional<z.ZodString>;
2421
+ runId: z.ZodOptional<z.ZodString>;
2422
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2423
+ toolCallId: z.ZodOptional<z.ZodString>;
2424
+ traceId: z.ZodOptional<z.ZodString>;
2425
+ kind: z.ZodLiteral<"command">;
2426
+ operation: z.ZodLiteral<"recovery_command">;
2427
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2428
+ action: z.ZodLiteral<"refresh_runtime_status">;
2429
+ }, z.core.$strict>, z.ZodObject<{
2430
+ action: z.ZodLiteral<"restart_control_service">;
2431
+ }, z.core.$strict>, z.ZodObject<{
2432
+ action: z.ZodLiteral<"close_stale_session">;
2433
+ targetSessionId: z.ZodString;
2434
+ }, z.core.$strict>], "action">;
2435
+ }, z.core.$strict>], "operation">, z.ZodDiscriminatedUnion<[z.ZodObject<{
2436
+ causationId: z.ZodOptional<z.ZodString>;
2437
+ correlationId: z.ZodOptional<z.ZodString>;
2438
+ requestId: z.ZodOptional<z.ZodString>;
2439
+ runId: z.ZodOptional<z.ZodString>;
2440
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2441
+ toolCallId: z.ZodOptional<z.ZodString>;
2442
+ traceId: z.ZodOptional<z.ZodString>;
2443
+ kind: z.ZodLiteral<"event">;
2444
+ operation: z.ZodLiteral<"health_event">;
2445
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2446
+ correlation: z.ZodOptional<z.ZodObject<{
2447
+ causationId: z.ZodOptional<z.ZodString>;
2448
+ correlationId: z.ZodOptional<z.ZodString>;
2449
+ requestId: z.ZodOptional<z.ZodString>;
2450
+ runId: z.ZodOptional<z.ZodString>;
2451
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2452
+ toolCallId: z.ZodOptional<z.ZodString>;
2453
+ traceId: z.ZodOptional<z.ZodString>;
2454
+ }, z.core.$strict>>;
2455
+ observedAtMs: z.ZodNumber;
2456
+ result: z.ZodEnum<{
2457
+ failed: "failed";
2458
+ ok: "ok";
2459
+ timeout: "timeout";
2460
+ degraded: "degraded";
2461
+ }>;
2462
+ channelProviderId: z.ZodString;
2463
+ eventKind: z.ZodLiteral<"agent-channel-provider-health">;
2464
+ providerRuntimeHealth: z.ZodEnum<{
2465
+ healthy: "healthy";
2466
+ transitioning: "transitioning";
2467
+ unhealthy_recoverable: "unhealthy_recoverable";
2468
+ unhealthy_unrecoverable: "unhealthy_unrecoverable";
2469
+ }>;
2470
+ safeDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2471
+ }, z.core.$strict>, z.ZodObject<{
2472
+ correlation: z.ZodOptional<z.ZodObject<{
2473
+ causationId: z.ZodOptional<z.ZodString>;
2474
+ correlationId: z.ZodOptional<z.ZodString>;
2475
+ requestId: z.ZodOptional<z.ZodString>;
2476
+ runId: z.ZodOptional<z.ZodString>;
2477
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2478
+ toolCallId: z.ZodOptional<z.ZodString>;
2479
+ traceId: z.ZodOptional<z.ZodString>;
2480
+ }, z.core.$strict>>;
2481
+ observedAtMs: z.ZodNumber;
2482
+ result: z.ZodEnum<{
2483
+ failed: "failed";
2484
+ ok: "ok";
2485
+ timeout: "timeout";
2486
+ degraded: "degraded";
2487
+ }>;
2488
+ attempt: z.ZodNumber;
2489
+ elapsedMs: z.ZodNumber;
2490
+ errorCode: z.ZodOptional<z.ZodString>;
2491
+ eventKind: z.ZodLiteral<"controller-request">;
2492
+ maxAttempts: z.ZodNumber;
2493
+ operation: z.ZodEnum<{
2494
+ "zone-git-push": "zone-git-push";
2495
+ "lease-create": "lease-create";
2496
+ "lease-get": "lease-get";
2497
+ "lease-peek": "lease-peek";
2498
+ "lease-release": "lease-release";
2499
+ "lease-use-start": "lease-use-start";
2500
+ "lease-use-end": "lease-use-end";
2501
+ }>;
2502
+ statusCode: z.ZodOptional<z.ZodNumber>;
2503
+ }, z.core.$strict>, z.ZodObject<{
2504
+ correlation: z.ZodOptional<z.ZodObject<{
2505
+ causationId: z.ZodOptional<z.ZodString>;
2506
+ correlationId: z.ZodOptional<z.ZodString>;
2507
+ requestId: z.ZodOptional<z.ZodString>;
2508
+ runId: z.ZodOptional<z.ZodString>;
2509
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2510
+ toolCallId: z.ZodOptional<z.ZodString>;
2511
+ traceId: z.ZodOptional<z.ZodString>;
2512
+ }, z.core.$strict>>;
2513
+ observedAtMs: z.ZodNumber;
2514
+ result: z.ZodEnum<{
2515
+ failed: "failed";
2516
+ ok: "ok";
2517
+ timeout: "timeout";
2518
+ degraded: "degraded";
2519
+ }>;
2520
+ elapsedMs: z.ZodNumber;
2521
+ eventKind: z.ZodLiteral<"gateway-control-session">;
2522
+ operation: z.ZodEnum<{
2523
+ "control-session-hello": "control-session-hello";
2524
+ "control-session-heartbeat": "control-session-heartbeat";
2525
+ "control-session-disconnect": "control-session-disconnect";
2526
+ "control-session-reconnect": "control-session-reconnect";
2527
+ }>;
2528
+ safeDetails: z.ZodObject<{
2529
+ peerId: z.ZodString;
2530
+ }, z.core.$catchall<z.ZodString>>;
2531
+ }, z.core.$strict>, z.ZodObject<{
2532
+ correlation: z.ZodOptional<z.ZodObject<{
2533
+ causationId: z.ZodOptional<z.ZodString>;
2534
+ correlationId: z.ZodOptional<z.ZodString>;
2535
+ requestId: z.ZodOptional<z.ZodString>;
2536
+ runId: z.ZodOptional<z.ZodString>;
2537
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2538
+ toolCallId: z.ZodOptional<z.ZodString>;
2539
+ traceId: z.ZodOptional<z.ZodString>;
2540
+ }, z.core.$strict>>;
2541
+ observedAtMs: z.ZodNumber;
2542
+ result: z.ZodEnum<{
2543
+ failed: "failed";
2544
+ ok: "ok";
2545
+ timeout: "timeout";
2546
+ degraded: "degraded";
2547
+ }>;
2548
+ eventKind: z.ZodLiteral<"gateway-plugin-health">;
2549
+ }, z.core.$strict>, z.ZodObject<{
2550
+ correlation: z.ZodOptional<z.ZodObject<{
2551
+ causationId: z.ZodOptional<z.ZodString>;
2552
+ correlationId: z.ZodOptional<z.ZodString>;
2553
+ requestId: z.ZodOptional<z.ZodString>;
2554
+ runId: z.ZodOptional<z.ZodString>;
2555
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2556
+ toolCallId: z.ZodOptional<z.ZodString>;
2557
+ traceId: z.ZodOptional<z.ZodString>;
2558
+ }, z.core.$strict>>;
2559
+ observedAtMs: z.ZodNumber;
2560
+ result: z.ZodEnum<{
2561
+ failed: "failed";
2562
+ ok: "ok";
2563
+ timeout: "timeout";
2564
+ degraded: "degraded";
2565
+ }>;
2566
+ agentId: z.ZodString;
2567
+ elapsedMs: z.ZodNumber;
2568
+ errorCode: z.ZodOptional<z.ZodString>;
2569
+ leaseId: z.ZodString;
2570
+ eventKind: z.ZodLiteral<"tool-vm-ssh">;
2571
+ operation: z.ZodEnum<{
2572
+ command: "command";
2573
+ "file-bridge": "file-bridge";
2574
+ finalize: "finalize";
2575
+ probe: "probe";
2576
+ }>;
2577
+ }, z.core.$strict>], "eventKind">;
2578
+ }, z.core.$strict>, z.ZodObject<{
2579
+ causationId: z.ZodOptional<z.ZodString>;
2580
+ correlationId: z.ZodOptional<z.ZodString>;
2581
+ requestId: z.ZodOptional<z.ZodString>;
2582
+ runId: z.ZodOptional<z.ZodString>;
2583
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2584
+ toolCallId: z.ZodOptional<z.ZodString>;
2585
+ traceId: z.ZodOptional<z.ZodString>;
2586
+ kind: z.ZodLiteral<"event">;
2587
+ operation: z.ZodLiteral<"runtime_status">;
2588
+ payload: z.ZodObject<{
2589
+ findings: z.ZodArray<z.ZodObject<{
2590
+ id: z.ZodString;
2591
+ ok: z.ZodBoolean;
2592
+ safeMessage: z.ZodOptional<z.ZodString>;
2593
+ severity: z.ZodOptional<z.ZodEnum<{
2594
+ error: "error";
2595
+ info: "info";
2596
+ warning: "warning";
2597
+ }>>;
2598
+ }, z.core.$strict>>;
2599
+ observedAtMs: z.ZodNumber;
2600
+ providerRuntimeHealth: z.ZodOptional<z.ZodEnum<{
2601
+ healthy: "healthy";
2602
+ transitioning: "transitioning";
2603
+ unhealthy_recoverable: "unhealthy_recoverable";
2604
+ unhealthy_unrecoverable: "unhealthy_unrecoverable";
2605
+ }>>;
2606
+ statusKind: z.ZodString;
2607
+ }, z.core.$strict>;
2608
+ }, z.core.$strict>], "operation">, z.ZodDiscriminatedUnion<[z.ZodObject<{
2609
+ causationId: z.ZodOptional<z.ZodString>;
2610
+ correlationId: z.ZodOptional<z.ZodString>;
2611
+ requestId: z.ZodOptional<z.ZodString>;
2612
+ runId: z.ZodOptional<z.ZodString>;
2613
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2614
+ toolCallId: z.ZodOptional<z.ZodString>;
2615
+ traceId: z.ZodOptional<z.ZodString>;
2616
+ kind: z.ZodLiteral<"command_result">;
2617
+ operation: z.ZodLiteral<"control_ping">;
2618
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2619
+ responseToMessageId: z.ZodString;
2620
+ result: z.ZodLiteral<"ok">;
2621
+ activeOperationId: z.ZodOptional<z.ZodNever>;
2622
+ approvalRequired: z.ZodOptional<z.ZodNever>;
2623
+ callerContext: z.ZodOptional<z.ZodNever>;
2624
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
2625
+ error: z.ZodOptional<z.ZodNever>;
2626
+ lease: z.ZodOptional<z.ZodNever>;
2627
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
2628
+ leaseUse: z.ZodOptional<z.ZodNever>;
2629
+ }, z.core.$strict>, z.ZodObject<{
2630
+ responseToMessageId: z.ZodString;
2631
+ error: z.ZodObject<{
2632
+ errorClass: z.ZodString;
2633
+ retryable: z.ZodOptional<z.ZodBoolean>;
2634
+ safeMessage: z.ZodOptional<z.ZodString>;
2635
+ }, z.core.$strict>;
2636
+ result: z.ZodEnum<{
2637
+ rejected: "rejected";
2638
+ failed: "failed";
2639
+ timeout: "timeout";
2640
+ cancelled: "cancelled";
2641
+ stale_generation: "stale_generation";
2642
+ approval_required: "approval_required";
2643
+ approval_stale: "approval_stale";
2644
+ }>;
2645
+ activeOperationId: z.ZodOptional<z.ZodNever>;
2646
+ approvalRequired: z.ZodOptional<z.ZodNever>;
2647
+ callerContext: z.ZodOptional<z.ZodNever>;
2648
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
2649
+ lease: z.ZodOptional<z.ZodNever>;
2650
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
2651
+ leaseUse: z.ZodOptional<z.ZodNever>;
2652
+ }, z.core.$strict>], "result">;
2653
+ }, z.core.$strict>, z.ZodObject<{
2654
+ causationId: z.ZodOptional<z.ZodString>;
2655
+ correlationId: z.ZodOptional<z.ZodString>;
2656
+ requestId: z.ZodOptional<z.ZodString>;
2657
+ runId: z.ZodOptional<z.ZodString>;
2658
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2659
+ toolCallId: z.ZodOptional<z.ZodString>;
2660
+ traceId: z.ZodOptional<z.ZodString>;
2661
+ kind: z.ZodLiteral<"command_result">;
2662
+ operation: z.ZodLiteral<"caller_context_register">;
2663
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2664
+ responseToMessageId: z.ZodString;
2665
+ callerContext: z.ZodObject<{
2666
+ callerContextId: z.ZodString;
2667
+ }, z.core.$strict>;
2668
+ result: z.ZodLiteral<"ok">;
2669
+ activeOperationId: z.ZodOptional<z.ZodNever>;
2670
+ approvalRequired: z.ZodOptional<z.ZodNever>;
2671
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
2672
+ error: z.ZodOptional<z.ZodNever>;
2673
+ lease: z.ZodOptional<z.ZodNever>;
2674
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
2675
+ leaseUse: z.ZodOptional<z.ZodNever>;
2676
+ }, z.core.$strict>, z.ZodObject<{
2677
+ responseToMessageId: z.ZodString;
2678
+ error: z.ZodObject<{
2679
+ errorClass: z.ZodString;
2680
+ retryable: z.ZodOptional<z.ZodBoolean>;
2681
+ safeMessage: z.ZodOptional<z.ZodString>;
2682
+ }, z.core.$strict>;
2683
+ result: z.ZodEnum<{
2684
+ rejected: "rejected";
2685
+ failed: "failed";
2686
+ timeout: "timeout";
2687
+ cancelled: "cancelled";
2688
+ stale_generation: "stale_generation";
2689
+ approval_required: "approval_required";
2690
+ approval_stale: "approval_stale";
2691
+ }>;
2692
+ activeOperationId: z.ZodOptional<z.ZodNever>;
2693
+ approvalRequired: z.ZodOptional<z.ZodNever>;
2694
+ callerContext: z.ZodOptional<z.ZodNever>;
2695
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
2696
+ lease: z.ZodOptional<z.ZodNever>;
2697
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
2698
+ leaseUse: z.ZodOptional<z.ZodNever>;
2699
+ }, z.core.$strict>], "result">;
2700
+ }, z.core.$strict>, z.ZodObject<{
2701
+ causationId: z.ZodOptional<z.ZodString>;
2702
+ correlationId: z.ZodOptional<z.ZodString>;
2703
+ requestId: z.ZodOptional<z.ZodString>;
2704
+ runId: z.ZodOptional<z.ZodString>;
2705
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2706
+ toolCallId: z.ZodOptional<z.ZodString>;
2707
+ traceId: z.ZodOptional<z.ZodString>;
2708
+ kind: z.ZodLiteral<"command_result">;
2709
+ operation: z.ZodEnum<{
2710
+ lease_create: "lease_create";
2711
+ lease_get: "lease_get";
2712
+ lease_peek: "lease_peek";
2713
+ lease_renew: "lease_renew";
2714
+ lease_release: "lease_release";
2715
+ }>;
2716
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2717
+ responseToMessageId: z.ZodString;
2718
+ lease: z.ZodObject<{
2719
+ agentId: z.ZodString;
2720
+ activeUseId: z.ZodOptional<z.ZodString>;
2721
+ expiresAtMs: z.ZodOptional<z.ZodNumber>;
2722
+ idleTtlMs: z.ZodNumber;
2723
+ leaseId: z.ZodString;
2724
+ ssh: z.ZodOptional<z.ZodObject<{
2725
+ host: z.ZodString;
2726
+ identityPem: z.ZodOptional<z.ZodString>;
2727
+ knownHostsLine: z.ZodOptional<z.ZodString>;
2728
+ port: z.ZodNumber;
2729
+ user: z.ZodString;
2730
+ }, z.core.$strict>>;
2731
+ state: z.ZodEnum<{
2732
+ idle: "idle";
2733
+ active: "active";
2734
+ expired: "expired";
2735
+ released: "released";
2736
+ }>;
2737
+ tcpSlot: z.ZodNumber;
2738
+ transport: z.ZodLiteral<"ssh-sandbox">;
2739
+ workdir: z.ZodString;
2740
+ zoneId: z.ZodString;
2741
+ }, z.core.$strict>;
2742
+ result: z.ZodLiteral<"ok">;
2743
+ activeOperationId: z.ZodOptional<z.ZodNever>;
2744
+ approvalRequired: z.ZodOptional<z.ZodNever>;
2745
+ callerContext: z.ZodOptional<z.ZodNever>;
2746
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
2747
+ error: z.ZodOptional<z.ZodNever>;
2748
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
2749
+ leaseUse: z.ZodOptional<z.ZodNever>;
2750
+ }, z.core.$strict>, z.ZodObject<{
2751
+ responseToMessageId: z.ZodString;
2752
+ error: z.ZodOptional<z.ZodObject<{
2753
+ errorClass: z.ZodString;
2754
+ retryable: z.ZodOptional<z.ZodBoolean>;
2755
+ safeMessage: z.ZodOptional<z.ZodString>;
2756
+ }, z.core.$strict>>;
2757
+ leaseRejectionReason: z.ZodEnum<{
2758
+ absent: "absent";
2759
+ generation_stale: "generation_stale";
2760
+ force_released: "force_released";
2761
+ releasing: "releasing";
2762
+ use_tombstoned: "use_tombstoned";
2763
+ runtime_not_ready: "runtime_not_ready";
2764
+ }>;
2765
+ result: z.ZodLiteral<"rejected">;
2766
+ activeOperationId: z.ZodOptional<z.ZodNever>;
2767
+ approvalRequired: z.ZodOptional<z.ZodNever>;
2768
+ callerContext: z.ZodOptional<z.ZodNever>;
2769
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
2770
+ lease: z.ZodOptional<z.ZodNever>;
2771
+ leaseUse: z.ZodOptional<z.ZodNever>;
2772
+ }, z.core.$strict>, z.ZodObject<{
2773
+ responseToMessageId: z.ZodString;
2774
+ error: z.ZodObject<{
2775
+ errorClass: z.ZodString;
2776
+ retryable: z.ZodOptional<z.ZodBoolean>;
2777
+ safeMessage: z.ZodOptional<z.ZodString>;
2778
+ }, z.core.$strict>;
2779
+ leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
2780
+ absent: "absent";
2781
+ generation_stale: "generation_stale";
2782
+ force_released: "force_released";
2783
+ releasing: "releasing";
2784
+ use_tombstoned: "use_tombstoned";
2785
+ runtime_not_ready: "runtime_not_ready";
2786
+ }>>;
2787
+ result: z.ZodEnum<{
2788
+ failed: "failed";
2789
+ timeout: "timeout";
2790
+ cancelled: "cancelled";
2791
+ stale_generation: "stale_generation";
2792
+ approval_required: "approval_required";
2793
+ approval_stale: "approval_stale";
2794
+ }>;
2795
+ activeOperationId: z.ZodOptional<z.ZodNever>;
2796
+ approvalRequired: z.ZodOptional<z.ZodNever>;
2797
+ callerContext: z.ZodOptional<z.ZodNever>;
2798
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
2799
+ lease: z.ZodOptional<z.ZodNever>;
2800
+ leaseUse: z.ZodOptional<z.ZodNever>;
2801
+ }, z.core.$strict>], "result">;
2802
+ }, z.core.$strict>, z.ZodObject<{
2803
+ causationId: z.ZodOptional<z.ZodString>;
2804
+ correlationId: z.ZodOptional<z.ZodString>;
2805
+ requestId: z.ZodOptional<z.ZodString>;
2806
+ runId: z.ZodOptional<z.ZodString>;
2807
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2808
+ toolCallId: z.ZodOptional<z.ZodString>;
2809
+ traceId: z.ZodOptional<z.ZodString>;
2810
+ kind: z.ZodLiteral<"command_result">;
2811
+ operation: z.ZodEnum<{
2812
+ lease_use_start: "lease_use_start";
2813
+ lease_use_heartbeat: "lease_use_heartbeat";
2814
+ lease_use_end: "lease_use_end";
2815
+ }>;
2816
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2817
+ responseToMessageId: z.ZodString;
2818
+ leaseUse: z.ZodObject<{
2819
+ expiresAt: z.ZodOptional<z.ZodNumber>;
2820
+ heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
2821
+ leaseId: z.ZodString;
2822
+ state: z.ZodEnum<{
2823
+ active: "active";
2824
+ expired: "expired";
2825
+ ended: "ended";
2826
+ }>;
2827
+ useId: z.ZodString;
2828
+ }, z.core.$strict>;
2829
+ result: z.ZodLiteral<"ok">;
2830
+ activeOperationId: z.ZodOptional<z.ZodNever>;
2831
+ approvalRequired: z.ZodOptional<z.ZodNever>;
2832
+ callerContext: z.ZodOptional<z.ZodNever>;
2833
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
2834
+ error: z.ZodOptional<z.ZodNever>;
2835
+ lease: z.ZodOptional<z.ZodNever>;
2836
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
2837
+ }, z.core.$strict>, z.ZodObject<{
2838
+ responseToMessageId: z.ZodString;
2839
+ error: z.ZodOptional<z.ZodObject<{
2840
+ errorClass: z.ZodString;
2841
+ retryable: z.ZodOptional<z.ZodBoolean>;
2842
+ safeMessage: z.ZodOptional<z.ZodString>;
2843
+ }, z.core.$strict>>;
2844
+ leaseRejectionReason: z.ZodEnum<{
2845
+ absent: "absent";
2846
+ generation_stale: "generation_stale";
2847
+ force_released: "force_released";
2848
+ releasing: "releasing";
2849
+ use_tombstoned: "use_tombstoned";
2850
+ runtime_not_ready: "runtime_not_ready";
2851
+ }>;
2852
+ result: z.ZodLiteral<"rejected">;
2853
+ activeOperationId: z.ZodOptional<z.ZodNever>;
2854
+ approvalRequired: z.ZodOptional<z.ZodNever>;
2855
+ callerContext: z.ZodOptional<z.ZodNever>;
2856
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
2857
+ lease: z.ZodOptional<z.ZodNever>;
2858
+ leaseUse: z.ZodOptional<z.ZodNever>;
2859
+ }, z.core.$strict>, z.ZodObject<{
2860
+ responseToMessageId: z.ZodString;
2861
+ error: z.ZodObject<{
2862
+ errorClass: z.ZodString;
2863
+ retryable: z.ZodOptional<z.ZodBoolean>;
2864
+ safeMessage: z.ZodOptional<z.ZodString>;
2865
+ }, z.core.$strict>;
2866
+ leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
2867
+ absent: "absent";
2868
+ generation_stale: "generation_stale";
2869
+ force_released: "force_released";
2870
+ releasing: "releasing";
2871
+ use_tombstoned: "use_tombstoned";
2872
+ runtime_not_ready: "runtime_not_ready";
2873
+ }>>;
2874
+ result: z.ZodEnum<{
2875
+ failed: "failed";
2876
+ timeout: "timeout";
2877
+ cancelled: "cancelled";
2878
+ stale_generation: "stale_generation";
2879
+ approval_required: "approval_required";
2880
+ approval_stale: "approval_stale";
2881
+ }>;
2882
+ activeOperationId: z.ZodOptional<z.ZodNever>;
2883
+ approvalRequired: z.ZodOptional<z.ZodNever>;
2884
+ callerContext: z.ZodOptional<z.ZodNever>;
2885
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
2886
+ lease: z.ZodOptional<z.ZodNever>;
2887
+ leaseUse: z.ZodOptional<z.ZodNever>;
2888
+ }, z.core.$strict>], "result">;
2889
+ }, z.core.$strict>, z.ZodObject<{
2890
+ causationId: z.ZodOptional<z.ZodString>;
2891
+ correlationId: z.ZodOptional<z.ZodString>;
2892
+ requestId: z.ZodOptional<z.ZodString>;
2893
+ runId: z.ZodOptional<z.ZodString>;
2894
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2895
+ toolCallId: z.ZodOptional<z.ZodString>;
2896
+ traceId: z.ZodOptional<z.ZodString>;
2897
+ kind: z.ZodLiteral<"command_result">;
2898
+ operation: z.ZodLiteral<"tool_portal_controller_host_action">;
2899
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2900
+ responseToMessageId: z.ZodString;
2901
+ controllerHostAction: z.ZodObject<{
2902
+ actionId: z.ZodLiteral<"zone_git_push">;
2903
+ result: z.ZodObject<{
2904
+ branch: z.ZodString;
2905
+ localHead: z.ZodString;
2906
+ pushedCommits: z.ZodArray<z.ZodObject<{
2907
+ sha: z.ZodString;
2908
+ subject: z.ZodString;
2909
+ }, z.core.$strict>>;
2910
+ remoteHead: z.ZodString;
2911
+ }, z.core.$strict>;
2912
+ }, z.core.$strict>;
2913
+ result: z.ZodLiteral<"ok">;
2914
+ activeOperationId: z.ZodOptional<z.ZodNever>;
2915
+ approvalRequired: z.ZodOptional<z.ZodNever>;
2916
+ callerContext: z.ZodOptional<z.ZodNever>;
2917
+ error: z.ZodOptional<z.ZodNever>;
2918
+ lease: z.ZodOptional<z.ZodNever>;
2919
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
2920
+ leaseUse: z.ZodOptional<z.ZodNever>;
2921
+ }, z.core.$strict>, z.ZodObject<{
2922
+ responseToMessageId: z.ZodString;
2923
+ error: z.ZodObject<{
2924
+ errorClass: z.ZodString;
2925
+ retryable: z.ZodOptional<z.ZodBoolean>;
2926
+ safeMessage: z.ZodOptional<z.ZodString>;
2927
+ }, z.core.$strict>;
2928
+ result: z.ZodEnum<{
2929
+ rejected: "rejected";
2930
+ failed: "failed";
2931
+ timeout: "timeout";
2932
+ cancelled: "cancelled";
2933
+ stale_generation: "stale_generation";
2934
+ approval_required: "approval_required";
2935
+ approval_stale: "approval_stale";
2936
+ }>;
2937
+ activeOperationId: z.ZodOptional<z.ZodNever>;
2938
+ approvalRequired: z.ZodOptional<z.ZodNever>;
2939
+ callerContext: z.ZodOptional<z.ZodNever>;
2940
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
2941
+ lease: z.ZodOptional<z.ZodNever>;
2942
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
2943
+ leaseUse: z.ZodOptional<z.ZodNever>;
2944
+ }, z.core.$strict>], "result">;
2945
+ }, z.core.$strict>, z.ZodObject<{
2946
+ causationId: z.ZodOptional<z.ZodString>;
2947
+ correlationId: z.ZodOptional<z.ZodString>;
2948
+ requestId: z.ZodOptional<z.ZodString>;
2949
+ runId: z.ZodOptional<z.ZodString>;
2950
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2951
+ toolCallId: z.ZodOptional<z.ZodString>;
2952
+ traceId: z.ZodOptional<z.ZodString>;
2953
+ kind: z.ZodLiteral<"command_result">;
2954
+ operation: z.ZodLiteral<"operation_cancel">;
2955
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2956
+ responseToMessageId: z.ZodString;
2957
+ activeOperationId: z.ZodString;
2958
+ result: z.ZodLiteral<"ok">;
2959
+ approvalRequired: z.ZodOptional<z.ZodNever>;
2960
+ callerContext: z.ZodOptional<z.ZodNever>;
2961
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
2962
+ error: z.ZodOptional<z.ZodNever>;
2963
+ lease: z.ZodOptional<z.ZodNever>;
2964
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
2965
+ leaseUse: z.ZodOptional<z.ZodNever>;
2966
+ }, z.core.$strict>, z.ZodObject<{
2967
+ responseToMessageId: z.ZodString;
2968
+ activeOperationId: z.ZodOptional<z.ZodString>;
2969
+ error: z.ZodObject<{
2970
+ errorClass: z.ZodString;
2971
+ retryable: z.ZodOptional<z.ZodBoolean>;
2972
+ safeMessage: z.ZodOptional<z.ZodString>;
2973
+ }, z.core.$strict>;
2974
+ result: z.ZodEnum<{
2975
+ rejected: "rejected";
2976
+ failed: "failed";
2977
+ timeout: "timeout";
2978
+ cancelled: "cancelled";
2979
+ stale_generation: "stale_generation";
2980
+ approval_required: "approval_required";
2981
+ approval_stale: "approval_stale";
2982
+ }>;
2983
+ approvalRequired: z.ZodOptional<z.ZodNever>;
2984
+ callerContext: z.ZodOptional<z.ZodNever>;
2985
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
2986
+ lease: z.ZodOptional<z.ZodNever>;
2987
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
2988
+ leaseUse: z.ZodOptional<z.ZodNever>;
2989
+ }, z.core.$strict>], "result">;
2990
+ }, z.core.$strict>, z.ZodObject<{
2991
+ causationId: z.ZodOptional<z.ZodString>;
2992
+ correlationId: z.ZodOptional<z.ZodString>;
2993
+ requestId: z.ZodOptional<z.ZodString>;
2994
+ runId: z.ZodOptional<z.ZodString>;
2995
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2996
+ toolCallId: z.ZodOptional<z.ZodString>;
2997
+ traceId: z.ZodOptional<z.ZodString>;
2998
+ kind: z.ZodLiteral<"command_result">;
2999
+ operation: z.ZodLiteral<"recovery_command">;
3000
+ payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
3001
+ responseToMessageId: z.ZodString;
3002
+ result: z.ZodLiteral<"ok">;
3003
+ activeOperationId: z.ZodOptional<z.ZodNever>;
3004
+ approvalRequired: z.ZodOptional<z.ZodNever>;
3005
+ callerContext: z.ZodOptional<z.ZodNever>;
3006
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
3007
+ error: z.ZodOptional<z.ZodNever>;
3008
+ lease: z.ZodOptional<z.ZodNever>;
3009
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
3010
+ leaseUse: z.ZodOptional<z.ZodNever>;
3011
+ }, z.core.$strict>, z.ZodObject<{
3012
+ responseToMessageId: z.ZodString;
3013
+ error: z.ZodObject<{
3014
+ errorClass: z.ZodString;
3015
+ retryable: z.ZodOptional<z.ZodBoolean>;
3016
+ safeMessage: z.ZodOptional<z.ZodString>;
3017
+ }, z.core.$strict>;
3018
+ result: z.ZodEnum<{
3019
+ rejected: "rejected";
3020
+ failed: "failed";
3021
+ timeout: "timeout";
3022
+ cancelled: "cancelled";
3023
+ stale_generation: "stale_generation";
3024
+ approval_required: "approval_required";
3025
+ approval_stale: "approval_stale";
3026
+ }>;
3027
+ activeOperationId: z.ZodOptional<z.ZodNever>;
3028
+ approvalRequired: z.ZodOptional<z.ZodNever>;
3029
+ callerContext: z.ZodOptional<z.ZodNever>;
3030
+ controllerHostAction: z.ZodOptional<z.ZodNever>;
3031
+ lease: z.ZodOptional<z.ZodNever>;
3032
+ leaseRejectionReason: z.ZodOptional<z.ZodNever>;
3033
+ leaseUse: z.ZodOptional<z.ZodNever>;
3034
+ }, z.core.$strict>], "result">;
3035
+ }, z.core.$strict>], "operation">]>;
3036
+ declare const gatewayControlDeliveryPolicyByKind: {
3037
+ readonly heartbeat: "critical_idempotent";
3038
+ };
3039
+ declare const gatewayControlDeliveryPolicyByOperation: {
3040
+ readonly caller_context_register: "critical_idempotent";
3041
+ readonly control_ping: "acked_idempotent";
3042
+ readonly health_event: "append_only_observation";
3043
+ readonly lease_create: "critical_idempotent";
3044
+ readonly lease_get: "acked_idempotent";
3045
+ readonly lease_peek: "acked_idempotent";
3046
+ readonly lease_release: "acked_idempotent";
3047
+ readonly lease_renew: "single_use_critical";
3048
+ readonly lease_use_end: "acked_idempotent";
3049
+ readonly lease_use_heartbeat: "single_use_critical";
3050
+ readonly lease_use_start: "critical_idempotent";
3051
+ readonly operation_cancel: "acked_idempotent";
3052
+ readonly recovery_command: "critical_idempotent";
3053
+ readonly runtime_status: "latest_wins";
3054
+ readonly tool_portal_controller_host_action: "single_use_critical";
3055
+ };
3056
+ declare function deriveGatewayControlDeliveryPolicy(envelope: Pick<ControlEnvelope, 'idempotencyKey' | 'kind' | 'operation'>): ControlDeliveryPolicy;
3057
+ declare function assertGatewayControlEnvelopeDeliveryPolicy(envelope: ControlEnvelope): void;
3058
+ declare const gatewayControlCommandExecutionTimeoutMsByOperation: {
3059
+ readonly caller_context_register: 5000;
3060
+ readonly control_ping: 5000;
3061
+ readonly health_event: 5000;
3062
+ readonly lease_create: 180000;
3063
+ readonly lease_get: 5000;
3064
+ readonly lease_peek: 5000;
3065
+ readonly lease_release: 5000;
3066
+ readonly lease_renew: 10000;
3067
+ readonly lease_use_end: 5000;
3068
+ readonly lease_use_heartbeat: 5000;
3069
+ readonly lease_use_start: 10000;
3070
+ readonly operation_cancel: 5000;
3071
+ readonly recovery_command: 10000;
3072
+ readonly runtime_status: 5000;
3073
+ readonly tool_portal_controller_host_action: 120000;
3074
+ };
3075
+ type GatewayControlRpcOperation = z.infer<typeof GatewayControlRpcOperationSchema>;
3076
+ type GatewayControlRpcMessage = z.infer<typeof GatewayControlRpcMessageSchema>;
3077
+ type GatewayControlControllerToGatewayEvents = ControlSessionControllerToPeerEvents<GatewayControlRpcMessage>;
3078
+ type GatewayControlGatewayToControllerEvents = ControlSessionPeerToControllerEvents<GatewayControlRpcMessage>;
3079
+ type GatewayControlCallerContextRef = z.infer<typeof GatewayControlCallerContextRefSchema>;
3080
+ type GatewayControlCallerContextProof = z.infer<typeof GatewayControlCallerContextProofSchema>;
3081
+ type GatewayControlCallerContextAgentAuthority = z.infer<typeof GatewayControlCallerContextAgentAuthoritySchema>;
3082
+ type GatewayControlCallerContextRegisterPayload = z.infer<typeof GatewayControlCallerContextRegisterPayloadSchema>;
3083
+ type GatewayControlLeaseCreateIntentPayload = z.infer<typeof GatewayControlLeaseCreateIntentPayloadSchema>;
3084
+ type GatewayControlLeaseIdPayload = z.infer<typeof GatewayControlLeaseIdPayloadSchema>;
3085
+ type GatewayControlLeaseSnapshot = z.infer<typeof GatewayControlLeaseSnapshotSchema>;
3086
+ type GatewayControlLeaseUseEndPayload = z.infer<typeof GatewayControlLeaseUseEndPayloadSchema>;
3087
+ type GatewayControlLeaseUseHeartbeatPayload = z.infer<typeof GatewayControlLeaseUseHeartbeatPayloadSchema>;
3088
+ type GatewayControlLeaseUseSnapshot = z.infer<typeof GatewayControlLeaseUseSnapshotSchema>;
3089
+ type GatewayControlLeaseUseStartPayload = z.infer<typeof GatewayControlLeaseUseStartPayloadSchema>;
3090
+ type GatewayControlProviderRuntimeHealth = z.infer<typeof GatewayControlProviderRuntimeHealthSchema>;
3091
+ type GatewayControlHeartbeatPayload = z.infer<typeof GatewayControlHeartbeatPayloadSchema>;
3092
+ type GatewayControlHealthEventPayload = z.infer<typeof GatewayControlHealthEventPayloadSchema>;
3093
+ type GatewayControlRuntimeStatusPayload = z.infer<typeof GatewayControlRuntimeStatusPayloadSchema>;
3094
+ type GatewayControlToolPortalControllerHostActionPayload = z.infer<typeof GatewayControlToolPortalControllerHostActionPayloadSchema>;
3095
+ type GatewayControlToolPortalControllerHostActionResult = z.infer<typeof GatewayControlToolPortalControllerHostActionResultSchema>;
3096
+ type GatewayControlZoneGitPushResult = z.infer<typeof GatewayControlZoneGitPushResultSchema>;
3097
+ declare function buildGatewayControlJsonSchemas(): Readonly<Record<string, unknown>>;
3098
+ declare function assertGatewayControlDomainRegistered(): 'gateway_control';
3099
+ //#endregion
3100
+ export { ControllerInitiatedGatewayOperationCancelPayloadSchema, GatewayControlActiveOperationIdSchema, GatewayControlCallerContextAgentAuthority, GatewayControlCallerContextAgentAuthoritySchema, GatewayControlCallerContextProof, GatewayControlCallerContextProofAlgorithmSchema, GatewayControlCallerContextProofPayloadInput, GatewayControlCallerContextProofSchema, GatewayControlCallerContextRef, GatewayControlCallerContextRefSchema, GatewayControlCallerContextRegisterPayload, GatewayControlCallerContextRegisterPayloadSchema, GatewayControlCapabilityRefSchema, GatewayControlControllerRequestHealthOperationSchema, GatewayControlControllerToGatewayEvents, GatewayControlDomainSchema, GatewayControlEventOnlyOperationSchema, GatewayControlForbiddenPayloadFieldSchema, GatewayControlGatewayToControllerEvents, GatewayControlHealthEventPayload, GatewayControlHealthEventPayloadSchema, GatewayControlHealthEventResultSchema, GatewayControlHeartbeatPayload, GatewayControlHeartbeatPayloadSchema, GatewayControlLeaseCreateIntentPayload, GatewayControlLeaseCreateIntentPayloadSchema, GatewayControlLeaseIdPayload, GatewayControlLeaseIdPayloadSchema, GatewayControlLeaseRejectionReasonSchema, GatewayControlLeaseSnapshot, GatewayControlLeaseSnapshotSchema, GatewayControlLeaseUseEndPayload, GatewayControlLeaseUseEndPayloadSchema, GatewayControlLeaseUseHeartbeatPayload, GatewayControlLeaseUseHeartbeatPayloadSchema, GatewayControlLeaseUseSnapshot, GatewayControlLeaseUseSnapshotSchema, GatewayControlLeaseUseStartPayload, GatewayControlLeaseUseStartPayloadSchema, GatewayControlOperationCancelPayloadSchema, GatewayControlPingPayloadSchema, GatewayControlProviderRuntimeHealth, GatewayControlProviderRuntimeHealthSchema, GatewayControlRecoveryCommandPayloadSchema, GatewayControlRpcBareResponsePayloadSchema, GatewayControlRpcCallerContextResponsePayloadSchema, GatewayControlRpcCommandMessageSchema, GatewayControlRpcCommandResultMessageSchema, GatewayControlRpcCommandResultOperationSchema, GatewayControlRpcControllerHostActionResponsePayloadSchema, GatewayControlRpcDomainCorrelationSchema, GatewayControlRpcErrorSchema, GatewayControlRpcEventMessageSchema, GatewayControlRpcLeaseResponsePayloadSchema, GatewayControlRpcLeaseUseResponsePayloadSchema, GatewayControlRpcMessage, GatewayControlRpcMessageSchema, GatewayControlRpcOperation, GatewayControlRpcOperationCancelResponsePayloadSchema, GatewayControlRpcOperationSchema, GatewayControlRpcResponseBasePayloadSchema, GatewayControlRpcResponsePayloadSchema, GatewayControlRpcResultSchema, GatewayControlRuntimeFindingSchema, GatewayControlRuntimeStatusPayload, GatewayControlRuntimeStatusPayloadSchema, GatewayControlSessionHealthOperationSchema, GatewayControlSessionStateSchema, GatewayControlToolCallCorrelationSchema, GatewayControlToolPortalControllerHostActionPayload, GatewayControlToolPortalControllerHostActionPayloadSchema, GatewayControlToolPortalControllerHostActionResult, GatewayControlToolPortalControllerHostActionResultSchema, GatewayControlToolVmSshAccessSchema, GatewayControlToolVmSshHealthOperationSchema, GatewayControlTrustedCallerContextIdSchema, GatewayControlTrustedLeaseContextSchema, GatewayControlZoneGitCommitSummarySchema, GatewayControlZoneGitPushResult, GatewayControlZoneGitPushResultSchema, GatewayInitiatedOperationCancelPayloadSchema, assertGatewayControlDomainRegistered, assertGatewayControlEnvelopeDeliveryPolicy, buildGatewayControlCallerContextAgentAuthorityPayload, buildGatewayControlCallerContextProofPayload, buildGatewayControlJsonSchemas, deriveGatewayControlDeliveryPolicy, gatewayControlCommandExecutionTimeoutMsByOperation, gatewayControlDeliveryPolicyByKind, gatewayControlDeliveryPolicyByOperation };
3101
+ //# sourceMappingURL=index.d.ts.map