@agent-vm/gateway-control-contracts 0.0.110 → 0.0.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ declare const GatewayControlRpcOperationSchema: z.ZodEnum<{
9
9
  lease_create: "lease_create";
10
10
  lease_get: "lease_get";
11
11
  lease_peek: "lease_peek";
12
+ lease_reacquire: "lease_reacquire";
12
13
  lease_renew: "lease_renew";
13
14
  lease_release: "lease_release";
14
15
  lease_use_start: "lease_use_start";
@@ -206,6 +207,84 @@ declare const GatewayControlLeaseUseEndPayloadSchema: z.ZodObject<{
206
207
  }>;
207
208
  useId: z.ZodString;
208
209
  }, z.core.$strict>;
210
+ declare const GatewayControlLeaseStaleEvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
211
+ errorCode: z.ZodOptional<z.ZodString>;
212
+ kind: z.ZodLiteral<"tool-vm-ssh">;
213
+ observedAtMs: z.ZodNumber;
214
+ operation: z.ZodEnum<{
215
+ command: "command";
216
+ "file-bridge": "file-bridge";
217
+ finalize: "finalize";
218
+ probe: "probe";
219
+ }>;
220
+ }, z.core.$strict>, z.ZodObject<{
221
+ kind: z.ZodLiteral<"caller-context">;
222
+ observedAtMs: z.ZodNumber;
223
+ reason: z.ZodOptional<z.ZodEnum<{
224
+ absent: "absent";
225
+ stale: "stale";
226
+ session_mismatch: "session_mismatch";
227
+ lease_authority_absent: "lease_authority_absent";
228
+ }>>;
229
+ }, z.core.$strict>, z.ZodObject<{
230
+ kind: z.ZodLiteral<"lease-manager">;
231
+ observedAtMs: z.ZodNumber;
232
+ reason: z.ZodOptional<z.ZodEnum<{
233
+ expired: "expired";
234
+ released: "released";
235
+ force_released: "force_released";
236
+ generation_stale: "generation_stale";
237
+ }>>;
238
+ }, z.core.$strict>], "kind">;
239
+ declare const GatewayControlLeaseReacquireIntentPayloadSchema: z.ZodObject<{
240
+ callerContext: z.ZodObject<{
241
+ callerContextId: z.ZodString;
242
+ }, z.core.$strict>;
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
+ capability: z.ZodOptional<z.ZodObject<{
252
+ name: z.ZodString;
253
+ namespace: z.ZodString;
254
+ }, z.core.$strict>>;
255
+ }, z.core.$strict>>;
256
+ idleTtlHintMs: z.ZodOptional<z.ZodNumber>;
257
+ oldLeaseId: z.ZodString;
258
+ staleEvidence: z.ZodDiscriminatedUnion<[z.ZodObject<{
259
+ errorCode: z.ZodOptional<z.ZodString>;
260
+ kind: z.ZodLiteral<"tool-vm-ssh">;
261
+ observedAtMs: z.ZodNumber;
262
+ operation: z.ZodEnum<{
263
+ command: "command";
264
+ "file-bridge": "file-bridge";
265
+ finalize: "finalize";
266
+ probe: "probe";
267
+ }>;
268
+ }, z.core.$strict>, z.ZodObject<{
269
+ kind: z.ZodLiteral<"caller-context">;
270
+ observedAtMs: z.ZodNumber;
271
+ reason: z.ZodOptional<z.ZodEnum<{
272
+ absent: "absent";
273
+ stale: "stale";
274
+ session_mismatch: "session_mismatch";
275
+ lease_authority_absent: "lease_authority_absent";
276
+ }>>;
277
+ }, z.core.$strict>, z.ZodObject<{
278
+ kind: z.ZodLiteral<"lease-manager">;
279
+ observedAtMs: z.ZodNumber;
280
+ reason: z.ZodOptional<z.ZodEnum<{
281
+ expired: "expired";
282
+ released: "released";
283
+ force_released: "force_released";
284
+ generation_stale: "generation_stale";
285
+ }>>;
286
+ }, z.core.$strict>], "kind">;
287
+ }, z.core.$strict>;
209
288
  declare const GatewayControlHealthEventResultSchema: z.ZodEnum<{
210
289
  failed: "failed";
211
290
  ok: "ok";
@@ -218,6 +297,38 @@ declare const GatewayControlProviderRuntimeHealthSchema: z.ZodEnum<{
218
297
  unhealthy_recoverable: "unhealthy_recoverable";
219
298
  unhealthy_unrecoverable: "unhealthy_unrecoverable";
220
299
  }>;
300
+ declare const GatewayControlLeaseRejectionReasonSchema: z.ZodEnum<{
301
+ lease_authority_absent: "lease_authority_absent";
302
+ caller_context_absent: "caller_context_absent";
303
+ caller_context_session_mismatch: "caller_context_session_mismatch";
304
+ caller_context_stale: "caller_context_stale";
305
+ lease_absent: "lease_absent";
306
+ lease_force_released: "lease_force_released";
307
+ lease_generation_stale: "lease_generation_stale";
308
+ lease_reacquire_required: "lease_reacquire_required";
309
+ lease_releasing: "lease_releasing";
310
+ lease_retired: "lease_retired";
311
+ lease_use_tombstoned: "lease_use_tombstoned";
312
+ ownership_denied: "ownership_denied";
313
+ runtime_not_ready: "runtime_not_ready";
314
+ }>;
315
+ declare const GatewayControlToolVmLeaseLifecycleEventRoleSchema: z.ZodLiteral<"plugin_observation">;
316
+ declare const GatewayControlToolVmLeaseLifecycleTransitionSchema: z.ZodEnum<{
317
+ current_to_stale: "current_to_stale";
318
+ current_to_retired: "current_to_retired";
319
+ deprecated_to_reacquired: "deprecated_to_reacquired";
320
+ deprecated_to_retired: "deprecated_to_retired";
321
+ stale_to_reacquired: "stale_to_reacquired";
322
+ stale_to_retired: "stale_to_retired";
323
+ retired_rejected: "retired_rejected";
324
+ }>;
325
+ declare const GatewayControlToolVmLeaseCallerContextStateSchema: z.ZodEnum<{
326
+ ok: "ok";
327
+ absent: "absent";
328
+ stale: "stale";
329
+ session_mismatch: "session_mismatch";
330
+ not_applicable: "not_applicable";
331
+ }>;
221
332
  declare const GatewayControlControllerRequestHealthOperationSchema: z.ZodEnum<{
222
333
  "zone-git-push": "zone-git-push";
223
334
  "lease-create": "lease-create";
@@ -239,7 +350,7 @@ declare const GatewayControlToolVmSshHealthOperationSchema: z.ZodEnum<{
239
350
  finalize: "finalize";
240
351
  probe: "probe";
241
352
  }>;
242
- declare const GatewayControlHealthEventPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
353
+ declare const GatewayControlHealthEventPayloadSchema: z.ZodUnion<readonly [z.ZodObject<{
243
354
  correlation: z.ZodOptional<z.ZodObject<{
244
355
  causationId: z.ZodOptional<z.ZodString>;
245
356
  correlationId: z.ZodOptional<z.ZodString>;
@@ -363,15 +474,79 @@ declare const GatewayControlHealthEventPayloadSchema: z.ZodDiscriminatedUnion<[z
363
474
  agentId: z.ZodString;
364
475
  elapsedMs: z.ZodNumber;
365
476
  errorCode: z.ZodOptional<z.ZodString>;
477
+ eventKind: z.ZodLiteral<"tool-vm-ssh">;
366
478
  leaseId: z.ZodString;
479
+ operation: z.ZodEnum<{
480
+ command: "command";
481
+ "file-bridge": "file-bridge";
482
+ finalize: "finalize";
483
+ probe: "probe";
484
+ }>;
485
+ }, z.core.$strict>, z.ZodObject<{
486
+ correlation: z.ZodOptional<z.ZodObject<{
487
+ causationId: z.ZodOptional<z.ZodString>;
488
+ correlationId: z.ZodOptional<z.ZodString>;
489
+ requestId: z.ZodOptional<z.ZodString>;
490
+ runId: z.ZodOptional<z.ZodString>;
491
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
492
+ toolCallId: z.ZodOptional<z.ZodString>;
493
+ traceId: z.ZodOptional<z.ZodString>;
494
+ }, z.core.$strict>>;
495
+ observedAtMs: z.ZodNumber;
496
+ result: z.ZodEnum<{
497
+ failed: "failed";
498
+ ok: "ok";
499
+ timeout: "timeout";
500
+ degraded: "degraded";
501
+ }>;
502
+ agentId: z.ZodString;
503
+ elapsedMs: z.ZodNumber;
504
+ errorCode: z.ZodOptional<z.ZodString>;
367
505
  eventKind: z.ZodLiteral<"tool-vm-ssh">;
506
+ leaseId: z.ZodString;
368
507
  operation: z.ZodEnum<{
369
508
  command: "command";
370
509
  "file-bridge": "file-bridge";
371
510
  finalize: "finalize";
372
511
  probe: "probe";
373
512
  }>;
374
- }, z.core.$strict>], "eventKind">;
513
+ activeUseId: z.ZodOptional<z.ZodString>;
514
+ callerContextState: z.ZodOptional<z.ZodEnum<{
515
+ ok: "ok";
516
+ absent: "absent";
517
+ stale: "stale";
518
+ session_mismatch: "session_mismatch";
519
+ not_applicable: "not_applicable";
520
+ }>>;
521
+ leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
522
+ lease_authority_absent: "lease_authority_absent";
523
+ caller_context_absent: "caller_context_absent";
524
+ caller_context_session_mismatch: "caller_context_session_mismatch";
525
+ caller_context_stale: "caller_context_stale";
526
+ lease_absent: "lease_absent";
527
+ lease_force_released: "lease_force_released";
528
+ lease_generation_stale: "lease_generation_stale";
529
+ lease_reacquire_required: "lease_reacquire_required";
530
+ lease_releasing: "lease_releasing";
531
+ lease_retired: "lease_retired";
532
+ lease_use_tombstoned: "lease_use_tombstoned";
533
+ ownership_denied: "ownership_denied";
534
+ runtime_not_ready: "runtime_not_ready";
535
+ }>>;
536
+ lifecycleEventRole: z.ZodLiteral<"plugin_observation">;
537
+ lifecycleTransition: z.ZodEnum<{
538
+ current_to_stale: "current_to_stale";
539
+ current_to_retired: "current_to_retired";
540
+ deprecated_to_reacquired: "deprecated_to_reacquired";
541
+ deprecated_to_retired: "deprecated_to_retired";
542
+ stale_to_reacquired: "stale_to_reacquired";
543
+ stale_to_retired: "stale_to_retired";
544
+ retired_rejected: "retired_rejected";
545
+ }>;
546
+ oldLeaseId: z.ZodString;
547
+ replacementLeaseId: z.ZodOptional<z.ZodString>;
548
+ transitionId: z.ZodString;
549
+ }, z.core.$strict>]>;
375
550
  declare const GatewayControlRuntimeFindingSchema: z.ZodObject<{
376
551
  id: z.ZodString;
377
552
  ok: z.ZodBoolean;
@@ -619,10 +794,10 @@ declare const GatewayControlLeaseSnapshotSchema: z.ZodObject<{
619
794
  user: z.ZodString;
620
795
  }, z.core.$strict>>;
621
796
  state: z.ZodEnum<{
622
- idle: "idle";
623
- active: "active";
624
797
  expired: "expired";
625
798
  released: "released";
799
+ idle: "idle";
800
+ active: "active";
626
801
  }>;
627
802
  tcpSlot: z.ZodNumber;
628
803
  transport: z.ZodLiteral<"ssh-sandbox">;
@@ -634,20 +809,12 @@ declare const GatewayControlLeaseUseSnapshotSchema: z.ZodObject<{
634
809
  heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
635
810
  leaseId: z.ZodString;
636
811
  state: z.ZodEnum<{
637
- active: "active";
638
812
  expired: "expired";
813
+ active: "active";
639
814
  ended: "ended";
640
815
  }>;
641
816
  useId: z.ZodString;
642
817
  }, z.core.$strict>;
643
- declare const GatewayControlLeaseRejectionReasonSchema: z.ZodEnum<{
644
- absent: "absent";
645
- generation_stale: "generation_stale";
646
- force_released: "force_released";
647
- releasing: "releasing";
648
- use_tombstoned: "use_tombstoned";
649
- runtime_not_ready: "runtime_not_ready";
650
- }>;
651
818
  declare const GatewayControlRpcDomainCorrelationSchema: z.ZodObject<{
652
819
  causationId: z.ZodOptional<z.ZodString>;
653
820
  correlationId: z.ZodOptional<z.ZodString>;
@@ -766,10 +933,10 @@ declare const GatewayControlRpcLeaseResponsePayloadSchema: z.ZodDiscriminatedUni
766
933
  user: z.ZodString;
767
934
  }, z.core.$strict>>;
768
935
  state: z.ZodEnum<{
769
- idle: "idle";
770
- active: "active";
771
936
  expired: "expired";
772
937
  released: "released";
938
+ idle: "idle";
939
+ active: "active";
773
940
  }>;
774
941
  tcpSlot: z.ZodNumber;
775
942
  transport: z.ZodLiteral<"ssh-sandbox">;
@@ -792,11 +959,18 @@ declare const GatewayControlRpcLeaseResponsePayloadSchema: z.ZodDiscriminatedUni
792
959
  safeMessage: z.ZodOptional<z.ZodString>;
793
960
  }, z.core.$strict>>;
794
961
  leaseRejectionReason: z.ZodEnum<{
795
- absent: "absent";
796
- generation_stale: "generation_stale";
797
- force_released: "force_released";
798
- releasing: "releasing";
799
- use_tombstoned: "use_tombstoned";
962
+ lease_authority_absent: "lease_authority_absent";
963
+ caller_context_absent: "caller_context_absent";
964
+ caller_context_session_mismatch: "caller_context_session_mismatch";
965
+ caller_context_stale: "caller_context_stale";
966
+ lease_absent: "lease_absent";
967
+ lease_force_released: "lease_force_released";
968
+ lease_generation_stale: "lease_generation_stale";
969
+ lease_reacquire_required: "lease_reacquire_required";
970
+ lease_releasing: "lease_releasing";
971
+ lease_retired: "lease_retired";
972
+ lease_use_tombstoned: "lease_use_tombstoned";
973
+ ownership_denied: "ownership_denied";
800
974
  runtime_not_ready: "runtime_not_ready";
801
975
  }>;
802
976
  result: z.ZodLiteral<"rejected">;
@@ -814,11 +988,18 @@ declare const GatewayControlRpcLeaseResponsePayloadSchema: z.ZodDiscriminatedUni
814
988
  safeMessage: z.ZodOptional<z.ZodString>;
815
989
  }, z.core.$strict>;
816
990
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
817
- absent: "absent";
818
- generation_stale: "generation_stale";
819
- force_released: "force_released";
820
- releasing: "releasing";
821
- use_tombstoned: "use_tombstoned";
991
+ lease_authority_absent: "lease_authority_absent";
992
+ caller_context_absent: "caller_context_absent";
993
+ caller_context_session_mismatch: "caller_context_session_mismatch";
994
+ caller_context_stale: "caller_context_stale";
995
+ lease_absent: "lease_absent";
996
+ lease_force_released: "lease_force_released";
997
+ lease_generation_stale: "lease_generation_stale";
998
+ lease_reacquire_required: "lease_reacquire_required";
999
+ lease_releasing: "lease_releasing";
1000
+ lease_retired: "lease_retired";
1001
+ lease_use_tombstoned: "lease_use_tombstoned";
1002
+ ownership_denied: "ownership_denied";
822
1003
  runtime_not_ready: "runtime_not_ready";
823
1004
  }>>;
824
1005
  result: z.ZodEnum<{
@@ -843,8 +1024,8 @@ declare const GatewayControlRpcLeaseUseResponsePayloadSchema: z.ZodDiscriminated
843
1024
  heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
844
1025
  leaseId: z.ZodString;
845
1026
  state: z.ZodEnum<{
846
- active: "active";
847
1027
  expired: "expired";
1028
+ active: "active";
848
1029
  ended: "ended";
849
1030
  }>;
850
1031
  useId: z.ZodString;
@@ -865,11 +1046,18 @@ declare const GatewayControlRpcLeaseUseResponsePayloadSchema: z.ZodDiscriminated
865
1046
  safeMessage: z.ZodOptional<z.ZodString>;
866
1047
  }, z.core.$strict>>;
867
1048
  leaseRejectionReason: z.ZodEnum<{
868
- absent: "absent";
869
- generation_stale: "generation_stale";
870
- force_released: "force_released";
871
- releasing: "releasing";
872
- use_tombstoned: "use_tombstoned";
1049
+ lease_authority_absent: "lease_authority_absent";
1050
+ caller_context_absent: "caller_context_absent";
1051
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1052
+ caller_context_stale: "caller_context_stale";
1053
+ lease_absent: "lease_absent";
1054
+ lease_force_released: "lease_force_released";
1055
+ lease_generation_stale: "lease_generation_stale";
1056
+ lease_reacquire_required: "lease_reacquire_required";
1057
+ lease_releasing: "lease_releasing";
1058
+ lease_retired: "lease_retired";
1059
+ lease_use_tombstoned: "lease_use_tombstoned";
1060
+ ownership_denied: "ownership_denied";
873
1061
  runtime_not_ready: "runtime_not_ready";
874
1062
  }>;
875
1063
  result: z.ZodLiteral<"rejected">;
@@ -887,11 +1075,18 @@ declare const GatewayControlRpcLeaseUseResponsePayloadSchema: z.ZodDiscriminated
887
1075
  safeMessage: z.ZodOptional<z.ZodString>;
888
1076
  }, z.core.$strict>;
889
1077
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
890
- absent: "absent";
891
- generation_stale: "generation_stale";
892
- force_released: "force_released";
893
- releasing: "releasing";
894
- use_tombstoned: "use_tombstoned";
1078
+ lease_authority_absent: "lease_authority_absent";
1079
+ caller_context_absent: "caller_context_absent";
1080
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1081
+ caller_context_stale: "caller_context_stale";
1082
+ lease_absent: "lease_absent";
1083
+ lease_force_released: "lease_force_released";
1084
+ lease_generation_stale: "lease_generation_stale";
1085
+ lease_reacquire_required: "lease_reacquire_required";
1086
+ lease_releasing: "lease_releasing";
1087
+ lease_retired: "lease_retired";
1088
+ lease_use_tombstoned: "lease_use_tombstoned";
1089
+ ownership_denied: "ownership_denied";
895
1090
  runtime_not_ready: "runtime_not_ready";
896
1091
  }>>;
897
1092
  result: z.ZodEnum<{
@@ -1082,10 +1277,10 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
1082
1277
  user: z.ZodString;
1083
1278
  }, z.core.$strict>>;
1084
1279
  state: z.ZodEnum<{
1085
- idle: "idle";
1086
- active: "active";
1087
1280
  expired: "expired";
1088
1281
  released: "released";
1282
+ idle: "idle";
1283
+ active: "active";
1089
1284
  }>;
1090
1285
  tcpSlot: z.ZodNumber;
1091
1286
  transport: z.ZodLiteral<"ssh-sandbox">;
@@ -1108,11 +1303,18 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
1108
1303
  safeMessage: z.ZodOptional<z.ZodString>;
1109
1304
  }, z.core.$strict>>;
1110
1305
  leaseRejectionReason: z.ZodEnum<{
1111
- absent: "absent";
1112
- generation_stale: "generation_stale";
1113
- force_released: "force_released";
1114
- releasing: "releasing";
1115
- use_tombstoned: "use_tombstoned";
1306
+ lease_authority_absent: "lease_authority_absent";
1307
+ caller_context_absent: "caller_context_absent";
1308
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1309
+ caller_context_stale: "caller_context_stale";
1310
+ lease_absent: "lease_absent";
1311
+ lease_force_released: "lease_force_released";
1312
+ lease_generation_stale: "lease_generation_stale";
1313
+ lease_reacquire_required: "lease_reacquire_required";
1314
+ lease_releasing: "lease_releasing";
1315
+ lease_retired: "lease_retired";
1316
+ lease_use_tombstoned: "lease_use_tombstoned";
1317
+ ownership_denied: "ownership_denied";
1116
1318
  runtime_not_ready: "runtime_not_ready";
1117
1319
  }>;
1118
1320
  result: z.ZodLiteral<"rejected">;
@@ -1130,11 +1332,18 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
1130
1332
  safeMessage: z.ZodOptional<z.ZodString>;
1131
1333
  }, z.core.$strict>;
1132
1334
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
1133
- absent: "absent";
1134
- generation_stale: "generation_stale";
1135
- force_released: "force_released";
1136
- releasing: "releasing";
1137
- use_tombstoned: "use_tombstoned";
1335
+ lease_authority_absent: "lease_authority_absent";
1336
+ caller_context_absent: "caller_context_absent";
1337
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1338
+ caller_context_stale: "caller_context_stale";
1339
+ lease_absent: "lease_absent";
1340
+ lease_force_released: "lease_force_released";
1341
+ lease_generation_stale: "lease_generation_stale";
1342
+ lease_reacquire_required: "lease_reacquire_required";
1343
+ lease_releasing: "lease_releasing";
1344
+ lease_retired: "lease_retired";
1345
+ lease_use_tombstoned: "lease_use_tombstoned";
1346
+ ownership_denied: "ownership_denied";
1138
1347
  runtime_not_ready: "runtime_not_ready";
1139
1348
  }>>;
1140
1349
  result: z.ZodEnum<{
@@ -1158,8 +1367,8 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
1158
1367
  heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
1159
1368
  leaseId: z.ZodString;
1160
1369
  state: z.ZodEnum<{
1161
- active: "active";
1162
1370
  expired: "expired";
1371
+ active: "active";
1163
1372
  ended: "ended";
1164
1373
  }>;
1165
1374
  useId: z.ZodString;
@@ -1180,11 +1389,18 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
1180
1389
  safeMessage: z.ZodOptional<z.ZodString>;
1181
1390
  }, z.core.$strict>>;
1182
1391
  leaseRejectionReason: z.ZodEnum<{
1183
- absent: "absent";
1184
- generation_stale: "generation_stale";
1185
- force_released: "force_released";
1186
- releasing: "releasing";
1187
- use_tombstoned: "use_tombstoned";
1392
+ lease_authority_absent: "lease_authority_absent";
1393
+ caller_context_absent: "caller_context_absent";
1394
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1395
+ caller_context_stale: "caller_context_stale";
1396
+ lease_absent: "lease_absent";
1397
+ lease_force_released: "lease_force_released";
1398
+ lease_generation_stale: "lease_generation_stale";
1399
+ lease_reacquire_required: "lease_reacquire_required";
1400
+ lease_releasing: "lease_releasing";
1401
+ lease_retired: "lease_retired";
1402
+ lease_use_tombstoned: "lease_use_tombstoned";
1403
+ ownership_denied: "ownership_denied";
1188
1404
  runtime_not_ready: "runtime_not_ready";
1189
1405
  }>;
1190
1406
  result: z.ZodLiteral<"rejected">;
@@ -1202,11 +1418,18 @@ declare const GatewayControlRpcResponsePayloadSchema: z.ZodUnion<readonly [z.Zod
1202
1418
  safeMessage: z.ZodOptional<z.ZodString>;
1203
1419
  }, z.core.$strict>;
1204
1420
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
1205
- absent: "absent";
1206
- generation_stale: "generation_stale";
1207
- force_released: "force_released";
1208
- releasing: "releasing";
1209
- use_tombstoned: "use_tombstoned";
1421
+ lease_authority_absent: "lease_authority_absent";
1422
+ caller_context_absent: "caller_context_absent";
1423
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1424
+ caller_context_stale: "caller_context_stale";
1425
+ lease_absent: "lease_absent";
1426
+ lease_force_released: "lease_force_released";
1427
+ lease_generation_stale: "lease_generation_stale";
1428
+ lease_reacquire_required: "lease_reacquire_required";
1429
+ lease_releasing: "lease_releasing";
1430
+ lease_retired: "lease_retired";
1431
+ lease_use_tombstoned: "lease_use_tombstoned";
1432
+ ownership_denied: "ownership_denied";
1210
1433
  runtime_not_ready: "runtime_not_ready";
1211
1434
  }>>;
1212
1435
  result: z.ZodEnum<{
@@ -1414,6 +1637,7 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1414
1637
  lease_create: "lease_create";
1415
1638
  lease_get: "lease_get";
1416
1639
  lease_peek: "lease_peek";
1640
+ lease_reacquire: "lease_reacquire";
1417
1641
  lease_renew: "lease_renew";
1418
1642
  lease_release: "lease_release";
1419
1643
  }>;
@@ -1433,10 +1657,10 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1433
1657
  user: z.ZodString;
1434
1658
  }, z.core.$strict>>;
1435
1659
  state: z.ZodEnum<{
1436
- idle: "idle";
1437
- active: "active";
1438
1660
  expired: "expired";
1439
1661
  released: "released";
1662
+ idle: "idle";
1663
+ active: "active";
1440
1664
  }>;
1441
1665
  tcpSlot: z.ZodNumber;
1442
1666
  transport: z.ZodLiteral<"ssh-sandbox">;
@@ -1459,11 +1683,18 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1459
1683
  safeMessage: z.ZodOptional<z.ZodString>;
1460
1684
  }, z.core.$strict>>;
1461
1685
  leaseRejectionReason: z.ZodEnum<{
1462
- absent: "absent";
1463
- generation_stale: "generation_stale";
1464
- force_released: "force_released";
1465
- releasing: "releasing";
1466
- use_tombstoned: "use_tombstoned";
1686
+ lease_authority_absent: "lease_authority_absent";
1687
+ caller_context_absent: "caller_context_absent";
1688
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1689
+ caller_context_stale: "caller_context_stale";
1690
+ lease_absent: "lease_absent";
1691
+ lease_force_released: "lease_force_released";
1692
+ lease_generation_stale: "lease_generation_stale";
1693
+ lease_reacquire_required: "lease_reacquire_required";
1694
+ lease_releasing: "lease_releasing";
1695
+ lease_retired: "lease_retired";
1696
+ lease_use_tombstoned: "lease_use_tombstoned";
1697
+ ownership_denied: "ownership_denied";
1467
1698
  runtime_not_ready: "runtime_not_ready";
1468
1699
  }>;
1469
1700
  result: z.ZodLiteral<"rejected">;
@@ -1481,11 +1712,18 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1481
1712
  safeMessage: z.ZodOptional<z.ZodString>;
1482
1713
  }, z.core.$strict>;
1483
1714
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
1484
- absent: "absent";
1485
- generation_stale: "generation_stale";
1486
- force_released: "force_released";
1487
- releasing: "releasing";
1488
- use_tombstoned: "use_tombstoned";
1715
+ lease_authority_absent: "lease_authority_absent";
1716
+ caller_context_absent: "caller_context_absent";
1717
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1718
+ caller_context_stale: "caller_context_stale";
1719
+ lease_absent: "lease_absent";
1720
+ lease_force_released: "lease_force_released";
1721
+ lease_generation_stale: "lease_generation_stale";
1722
+ lease_reacquire_required: "lease_reacquire_required";
1723
+ lease_releasing: "lease_releasing";
1724
+ lease_retired: "lease_retired";
1725
+ lease_use_tombstoned: "lease_use_tombstoned";
1726
+ ownership_denied: "ownership_denied";
1489
1727
  runtime_not_ready: "runtime_not_ready";
1490
1728
  }>>;
1491
1729
  result: z.ZodEnum<{
@@ -1524,8 +1762,8 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1524
1762
  heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
1525
1763
  leaseId: z.ZodString;
1526
1764
  state: z.ZodEnum<{
1527
- active: "active";
1528
1765
  expired: "expired";
1766
+ active: "active";
1529
1767
  ended: "ended";
1530
1768
  }>;
1531
1769
  useId: z.ZodString;
@@ -1546,11 +1784,18 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1546
1784
  safeMessage: z.ZodOptional<z.ZodString>;
1547
1785
  }, z.core.$strict>>;
1548
1786
  leaseRejectionReason: z.ZodEnum<{
1549
- absent: "absent";
1550
- generation_stale: "generation_stale";
1551
- force_released: "force_released";
1552
- releasing: "releasing";
1553
- use_tombstoned: "use_tombstoned";
1787
+ lease_authority_absent: "lease_authority_absent";
1788
+ caller_context_absent: "caller_context_absent";
1789
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1790
+ caller_context_stale: "caller_context_stale";
1791
+ lease_absent: "lease_absent";
1792
+ lease_force_released: "lease_force_released";
1793
+ lease_generation_stale: "lease_generation_stale";
1794
+ lease_reacquire_required: "lease_reacquire_required";
1795
+ lease_releasing: "lease_releasing";
1796
+ lease_retired: "lease_retired";
1797
+ lease_use_tombstoned: "lease_use_tombstoned";
1798
+ ownership_denied: "ownership_denied";
1554
1799
  runtime_not_ready: "runtime_not_ready";
1555
1800
  }>;
1556
1801
  result: z.ZodLiteral<"rejected">;
@@ -1568,11 +1813,18 @@ declare const GatewayControlRpcCommandResultMessageSchema: z.ZodDiscriminatedUni
1568
1813
  safeMessage: z.ZodOptional<z.ZodString>;
1569
1814
  }, z.core.$strict>;
1570
1815
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
1571
- absent: "absent";
1572
- generation_stale: "generation_stale";
1573
- force_released: "force_released";
1574
- releasing: "releasing";
1575
- use_tombstoned: "use_tombstoned";
1816
+ lease_authority_absent: "lease_authority_absent";
1817
+ caller_context_absent: "caller_context_absent";
1818
+ caller_context_session_mismatch: "caller_context_session_mismatch";
1819
+ caller_context_stale: "caller_context_stale";
1820
+ lease_absent: "lease_absent";
1821
+ lease_force_released: "lease_force_released";
1822
+ lease_generation_stale: "lease_generation_stale";
1823
+ lease_reacquire_required: "lease_reacquire_required";
1824
+ lease_releasing: "lease_releasing";
1825
+ lease_retired: "lease_retired";
1826
+ lease_use_tombstoned: "lease_use_tombstoned";
1827
+ ownership_denied: "ownership_denied";
1576
1828
  runtime_not_ready: "runtime_not_ready";
1577
1829
  }>>;
1578
1830
  result: z.ZodEnum<{
@@ -1861,6 +2113,65 @@ declare const GatewayControlRpcCommandMessageSchema: z.ZodDiscriminatedUnion<[z.
1861
2113
  }, z.core.$strict>;
1862
2114
  leaseId: z.ZodString;
1863
2115
  }, z.core.$strict>;
2116
+ }, z.core.$strict>, z.ZodObject<{
2117
+ causationId: z.ZodOptional<z.ZodString>;
2118
+ correlationId: z.ZodOptional<z.ZodString>;
2119
+ requestId: z.ZodOptional<z.ZodString>;
2120
+ runId: z.ZodOptional<z.ZodString>;
2121
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2122
+ toolCallId: z.ZodOptional<z.ZodString>;
2123
+ traceId: z.ZodOptional<z.ZodString>;
2124
+ kind: z.ZodLiteral<"command">;
2125
+ operation: z.ZodLiteral<"lease_reacquire">;
2126
+ payload: z.ZodObject<{
2127
+ callerContext: z.ZodObject<{
2128
+ callerContextId: z.ZodString;
2129
+ }, z.core.$strict>;
2130
+ correlation: z.ZodOptional<z.ZodObject<{
2131
+ causationId: z.ZodOptional<z.ZodString>;
2132
+ correlationId: z.ZodOptional<z.ZodString>;
2133
+ requestId: z.ZodOptional<z.ZodString>;
2134
+ runId: z.ZodOptional<z.ZodString>;
2135
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2136
+ toolCallId: z.ZodOptional<z.ZodString>;
2137
+ traceId: z.ZodOptional<z.ZodString>;
2138
+ capability: z.ZodOptional<z.ZodObject<{
2139
+ name: z.ZodString;
2140
+ namespace: z.ZodString;
2141
+ }, z.core.$strict>>;
2142
+ }, z.core.$strict>>;
2143
+ idleTtlHintMs: z.ZodOptional<z.ZodNumber>;
2144
+ oldLeaseId: z.ZodString;
2145
+ staleEvidence: z.ZodDiscriminatedUnion<[z.ZodObject<{
2146
+ errorCode: z.ZodOptional<z.ZodString>;
2147
+ kind: z.ZodLiteral<"tool-vm-ssh">;
2148
+ observedAtMs: z.ZodNumber;
2149
+ operation: z.ZodEnum<{
2150
+ command: "command";
2151
+ "file-bridge": "file-bridge";
2152
+ finalize: "finalize";
2153
+ probe: "probe";
2154
+ }>;
2155
+ }, z.core.$strict>, z.ZodObject<{
2156
+ kind: z.ZodLiteral<"caller-context">;
2157
+ observedAtMs: z.ZodNumber;
2158
+ reason: z.ZodOptional<z.ZodEnum<{
2159
+ absent: "absent";
2160
+ stale: "stale";
2161
+ session_mismatch: "session_mismatch";
2162
+ lease_authority_absent: "lease_authority_absent";
2163
+ }>>;
2164
+ }, z.core.$strict>, z.ZodObject<{
2165
+ kind: z.ZodLiteral<"lease-manager">;
2166
+ observedAtMs: z.ZodNumber;
2167
+ reason: z.ZodOptional<z.ZodEnum<{
2168
+ expired: "expired";
2169
+ released: "released";
2170
+ force_released: "force_released";
2171
+ generation_stale: "generation_stale";
2172
+ }>>;
2173
+ }, z.core.$strict>], "kind">;
2174
+ }, z.core.$strict>;
1864
2175
  }, z.core.$strict>, z.ZodObject<{
1865
2176
  causationId: z.ZodOptional<z.ZodString>;
1866
2177
  correlationId: z.ZodOptional<z.ZodString>;
@@ -2068,7 +2379,7 @@ declare const GatewayControlRpcEventMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
2068
2379
  traceId: z.ZodOptional<z.ZodString>;
2069
2380
  kind: z.ZodLiteral<"event">;
2070
2381
  operation: z.ZodLiteral<"health_event">;
2071
- payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
2382
+ payload: z.ZodUnion<readonly [z.ZodObject<{
2072
2383
  correlation: z.ZodOptional<z.ZodObject<{
2073
2384
  causationId: z.ZodOptional<z.ZodString>;
2074
2385
  correlationId: z.ZodOptional<z.ZodString>;
@@ -2192,15 +2503,79 @@ declare const GatewayControlRpcEventMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
2192
2503
  agentId: z.ZodString;
2193
2504
  elapsedMs: z.ZodNumber;
2194
2505
  errorCode: z.ZodOptional<z.ZodString>;
2506
+ eventKind: z.ZodLiteral<"tool-vm-ssh">;
2195
2507
  leaseId: z.ZodString;
2508
+ operation: z.ZodEnum<{
2509
+ command: "command";
2510
+ "file-bridge": "file-bridge";
2511
+ finalize: "finalize";
2512
+ probe: "probe";
2513
+ }>;
2514
+ }, z.core.$strict>, z.ZodObject<{
2515
+ correlation: z.ZodOptional<z.ZodObject<{
2516
+ causationId: z.ZodOptional<z.ZodString>;
2517
+ correlationId: z.ZodOptional<z.ZodString>;
2518
+ requestId: z.ZodOptional<z.ZodString>;
2519
+ runId: z.ZodOptional<z.ZodString>;
2520
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2521
+ toolCallId: z.ZodOptional<z.ZodString>;
2522
+ traceId: z.ZodOptional<z.ZodString>;
2523
+ }, z.core.$strict>>;
2524
+ observedAtMs: z.ZodNumber;
2525
+ result: z.ZodEnum<{
2526
+ failed: "failed";
2527
+ ok: "ok";
2528
+ timeout: "timeout";
2529
+ degraded: "degraded";
2530
+ }>;
2531
+ agentId: z.ZodString;
2532
+ elapsedMs: z.ZodNumber;
2533
+ errorCode: z.ZodOptional<z.ZodString>;
2196
2534
  eventKind: z.ZodLiteral<"tool-vm-ssh">;
2535
+ leaseId: z.ZodString;
2197
2536
  operation: z.ZodEnum<{
2198
2537
  command: "command";
2199
2538
  "file-bridge": "file-bridge";
2200
2539
  finalize: "finalize";
2201
2540
  probe: "probe";
2202
2541
  }>;
2203
- }, z.core.$strict>], "eventKind">;
2542
+ activeUseId: z.ZodOptional<z.ZodString>;
2543
+ callerContextState: z.ZodOptional<z.ZodEnum<{
2544
+ ok: "ok";
2545
+ absent: "absent";
2546
+ stale: "stale";
2547
+ session_mismatch: "session_mismatch";
2548
+ not_applicable: "not_applicable";
2549
+ }>>;
2550
+ leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
2551
+ lease_authority_absent: "lease_authority_absent";
2552
+ caller_context_absent: "caller_context_absent";
2553
+ caller_context_session_mismatch: "caller_context_session_mismatch";
2554
+ caller_context_stale: "caller_context_stale";
2555
+ lease_absent: "lease_absent";
2556
+ lease_force_released: "lease_force_released";
2557
+ lease_generation_stale: "lease_generation_stale";
2558
+ lease_reacquire_required: "lease_reacquire_required";
2559
+ lease_releasing: "lease_releasing";
2560
+ lease_retired: "lease_retired";
2561
+ lease_use_tombstoned: "lease_use_tombstoned";
2562
+ ownership_denied: "ownership_denied";
2563
+ runtime_not_ready: "runtime_not_ready";
2564
+ }>>;
2565
+ lifecycleEventRole: z.ZodLiteral<"plugin_observation">;
2566
+ lifecycleTransition: z.ZodEnum<{
2567
+ current_to_stale: "current_to_stale";
2568
+ current_to_retired: "current_to_retired";
2569
+ deprecated_to_reacquired: "deprecated_to_reacquired";
2570
+ deprecated_to_retired: "deprecated_to_retired";
2571
+ stale_to_reacquired: "stale_to_reacquired";
2572
+ stale_to_retired: "stale_to_retired";
2573
+ retired_rejected: "retired_rejected";
2574
+ }>;
2575
+ oldLeaseId: z.ZodString;
2576
+ replacementLeaseId: z.ZodOptional<z.ZodString>;
2577
+ transitionId: z.ZodString;
2578
+ }, z.core.$strict>]>;
2204
2579
  }, z.core.$strict>, z.ZodObject<{
2205
2580
  causationId: z.ZodOptional<z.ZodString>;
2206
2581
  correlationId: z.ZodOptional<z.ZodString>;
@@ -2242,6 +2617,7 @@ declare const GatewayControlRpcCommandResultOperationSchema: z.ZodEnum<{
2242
2617
  lease_create: "lease_create";
2243
2618
  lease_get: "lease_get";
2244
2619
  lease_peek: "lease_peek";
2620
+ lease_reacquire: "lease_reacquire";
2245
2621
  lease_renew: "lease_renew";
2246
2622
  lease_release: "lease_release";
2247
2623
  lease_use_start: "lease_use_start";
@@ -2376,6 +2752,65 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2376
2752
  }, z.core.$strict>;
2377
2753
  leaseId: z.ZodString;
2378
2754
  }, z.core.$strict>;
2755
+ }, z.core.$strict>, z.ZodObject<{
2756
+ causationId: z.ZodOptional<z.ZodString>;
2757
+ correlationId: z.ZodOptional<z.ZodString>;
2758
+ requestId: z.ZodOptional<z.ZodString>;
2759
+ runId: z.ZodOptional<z.ZodString>;
2760
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2761
+ toolCallId: z.ZodOptional<z.ZodString>;
2762
+ traceId: z.ZodOptional<z.ZodString>;
2763
+ kind: z.ZodLiteral<"command">;
2764
+ operation: z.ZodLiteral<"lease_reacquire">;
2765
+ payload: z.ZodObject<{
2766
+ callerContext: z.ZodObject<{
2767
+ callerContextId: z.ZodString;
2768
+ }, z.core.$strict>;
2769
+ correlation: z.ZodOptional<z.ZodObject<{
2770
+ causationId: z.ZodOptional<z.ZodString>;
2771
+ correlationId: z.ZodOptional<z.ZodString>;
2772
+ requestId: z.ZodOptional<z.ZodString>;
2773
+ runId: z.ZodOptional<z.ZodString>;
2774
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
2775
+ toolCallId: z.ZodOptional<z.ZodString>;
2776
+ traceId: z.ZodOptional<z.ZodString>;
2777
+ capability: z.ZodOptional<z.ZodObject<{
2778
+ name: z.ZodString;
2779
+ namespace: z.ZodString;
2780
+ }, z.core.$strict>>;
2781
+ }, z.core.$strict>>;
2782
+ idleTtlHintMs: z.ZodOptional<z.ZodNumber>;
2783
+ oldLeaseId: z.ZodString;
2784
+ staleEvidence: z.ZodDiscriminatedUnion<[z.ZodObject<{
2785
+ errorCode: z.ZodOptional<z.ZodString>;
2786
+ kind: z.ZodLiteral<"tool-vm-ssh">;
2787
+ observedAtMs: z.ZodNumber;
2788
+ operation: z.ZodEnum<{
2789
+ command: "command";
2790
+ "file-bridge": "file-bridge";
2791
+ finalize: "finalize";
2792
+ probe: "probe";
2793
+ }>;
2794
+ }, z.core.$strict>, z.ZodObject<{
2795
+ kind: z.ZodLiteral<"caller-context">;
2796
+ observedAtMs: z.ZodNumber;
2797
+ reason: z.ZodOptional<z.ZodEnum<{
2798
+ absent: "absent";
2799
+ stale: "stale";
2800
+ session_mismatch: "session_mismatch";
2801
+ lease_authority_absent: "lease_authority_absent";
2802
+ }>>;
2803
+ }, z.core.$strict>, z.ZodObject<{
2804
+ kind: z.ZodLiteral<"lease-manager">;
2805
+ observedAtMs: z.ZodNumber;
2806
+ reason: z.ZodOptional<z.ZodEnum<{
2807
+ expired: "expired";
2808
+ released: "released";
2809
+ force_released: "force_released";
2810
+ generation_stale: "generation_stale";
2811
+ }>>;
2812
+ }, z.core.$strict>], "kind">;
2813
+ }, z.core.$strict>;
2379
2814
  }, z.core.$strict>, z.ZodObject<{
2380
2815
  causationId: z.ZodOptional<z.ZodString>;
2381
2816
  correlationId: z.ZodOptional<z.ZodString>;
@@ -2582,7 +3017,7 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2582
3017
  traceId: z.ZodOptional<z.ZodString>;
2583
3018
  kind: z.ZodLiteral<"event">;
2584
3019
  operation: z.ZodLiteral<"health_event">;
2585
- payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
3020
+ payload: z.ZodUnion<readonly [z.ZodObject<{
2586
3021
  correlation: z.ZodOptional<z.ZodObject<{
2587
3022
  causationId: z.ZodOptional<z.ZodString>;
2588
3023
  correlationId: z.ZodOptional<z.ZodString>;
@@ -2706,15 +3141,79 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2706
3141
  agentId: z.ZodString;
2707
3142
  elapsedMs: z.ZodNumber;
2708
3143
  errorCode: z.ZodOptional<z.ZodString>;
3144
+ eventKind: z.ZodLiteral<"tool-vm-ssh">;
2709
3145
  leaseId: z.ZodString;
3146
+ operation: z.ZodEnum<{
3147
+ command: "command";
3148
+ "file-bridge": "file-bridge";
3149
+ finalize: "finalize";
3150
+ probe: "probe";
3151
+ }>;
3152
+ }, z.core.$strict>, z.ZodObject<{
3153
+ correlation: z.ZodOptional<z.ZodObject<{
3154
+ causationId: z.ZodOptional<z.ZodString>;
3155
+ correlationId: z.ZodOptional<z.ZodString>;
3156
+ requestId: z.ZodOptional<z.ZodString>;
3157
+ runId: z.ZodOptional<z.ZodString>;
3158
+ sessionKeyDigest: z.ZodOptional<z.ZodString>;
3159
+ toolCallId: z.ZodOptional<z.ZodString>;
3160
+ traceId: z.ZodOptional<z.ZodString>;
3161
+ }, z.core.$strict>>;
3162
+ observedAtMs: z.ZodNumber;
3163
+ result: z.ZodEnum<{
3164
+ failed: "failed";
3165
+ ok: "ok";
3166
+ timeout: "timeout";
3167
+ degraded: "degraded";
3168
+ }>;
3169
+ agentId: z.ZodString;
3170
+ elapsedMs: z.ZodNumber;
3171
+ errorCode: z.ZodOptional<z.ZodString>;
2710
3172
  eventKind: z.ZodLiteral<"tool-vm-ssh">;
3173
+ leaseId: z.ZodString;
2711
3174
  operation: z.ZodEnum<{
2712
3175
  command: "command";
2713
3176
  "file-bridge": "file-bridge";
2714
3177
  finalize: "finalize";
2715
3178
  probe: "probe";
2716
3179
  }>;
2717
- }, z.core.$strict>], "eventKind">;
3180
+ activeUseId: z.ZodOptional<z.ZodString>;
3181
+ callerContextState: z.ZodOptional<z.ZodEnum<{
3182
+ ok: "ok";
3183
+ absent: "absent";
3184
+ stale: "stale";
3185
+ session_mismatch: "session_mismatch";
3186
+ not_applicable: "not_applicable";
3187
+ }>>;
3188
+ leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
3189
+ lease_authority_absent: "lease_authority_absent";
3190
+ caller_context_absent: "caller_context_absent";
3191
+ caller_context_session_mismatch: "caller_context_session_mismatch";
3192
+ caller_context_stale: "caller_context_stale";
3193
+ lease_absent: "lease_absent";
3194
+ lease_force_released: "lease_force_released";
3195
+ lease_generation_stale: "lease_generation_stale";
3196
+ lease_reacquire_required: "lease_reacquire_required";
3197
+ lease_releasing: "lease_releasing";
3198
+ lease_retired: "lease_retired";
3199
+ lease_use_tombstoned: "lease_use_tombstoned";
3200
+ ownership_denied: "ownership_denied";
3201
+ runtime_not_ready: "runtime_not_ready";
3202
+ }>>;
3203
+ lifecycleEventRole: z.ZodLiteral<"plugin_observation">;
3204
+ lifecycleTransition: z.ZodEnum<{
3205
+ current_to_stale: "current_to_stale";
3206
+ current_to_retired: "current_to_retired";
3207
+ deprecated_to_reacquired: "deprecated_to_reacquired";
3208
+ deprecated_to_retired: "deprecated_to_retired";
3209
+ stale_to_reacquired: "stale_to_reacquired";
3210
+ stale_to_retired: "stale_to_retired";
3211
+ retired_rejected: "retired_rejected";
3212
+ }>;
3213
+ oldLeaseId: z.ZodString;
3214
+ replacementLeaseId: z.ZodOptional<z.ZodString>;
3215
+ transitionId: z.ZodString;
3216
+ }, z.core.$strict>]>;
2718
3217
  }, z.core.$strict>, z.ZodObject<{
2719
3218
  causationId: z.ZodOptional<z.ZodString>;
2720
3219
  correlationId: z.ZodOptional<z.ZodString>;
@@ -2850,6 +3349,7 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2850
3349
  lease_create: "lease_create";
2851
3350
  lease_get: "lease_get";
2852
3351
  lease_peek: "lease_peek";
3352
+ lease_reacquire: "lease_reacquire";
2853
3353
  lease_renew: "lease_renew";
2854
3354
  lease_release: "lease_release";
2855
3355
  }>;
@@ -2869,10 +3369,10 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2869
3369
  user: z.ZodString;
2870
3370
  }, z.core.$strict>>;
2871
3371
  state: z.ZodEnum<{
2872
- idle: "idle";
2873
- active: "active";
2874
3372
  expired: "expired";
2875
3373
  released: "released";
3374
+ idle: "idle";
3375
+ active: "active";
2876
3376
  }>;
2877
3377
  tcpSlot: z.ZodNumber;
2878
3378
  transport: z.ZodLiteral<"ssh-sandbox">;
@@ -2895,11 +3395,18 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2895
3395
  safeMessage: z.ZodOptional<z.ZodString>;
2896
3396
  }, z.core.$strict>>;
2897
3397
  leaseRejectionReason: z.ZodEnum<{
2898
- absent: "absent";
2899
- generation_stale: "generation_stale";
2900
- force_released: "force_released";
2901
- releasing: "releasing";
2902
- use_tombstoned: "use_tombstoned";
3398
+ lease_authority_absent: "lease_authority_absent";
3399
+ caller_context_absent: "caller_context_absent";
3400
+ caller_context_session_mismatch: "caller_context_session_mismatch";
3401
+ caller_context_stale: "caller_context_stale";
3402
+ lease_absent: "lease_absent";
3403
+ lease_force_released: "lease_force_released";
3404
+ lease_generation_stale: "lease_generation_stale";
3405
+ lease_reacquire_required: "lease_reacquire_required";
3406
+ lease_releasing: "lease_releasing";
3407
+ lease_retired: "lease_retired";
3408
+ lease_use_tombstoned: "lease_use_tombstoned";
3409
+ ownership_denied: "ownership_denied";
2903
3410
  runtime_not_ready: "runtime_not_ready";
2904
3411
  }>;
2905
3412
  result: z.ZodLiteral<"rejected">;
@@ -2917,11 +3424,18 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2917
3424
  safeMessage: z.ZodOptional<z.ZodString>;
2918
3425
  }, z.core.$strict>;
2919
3426
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
2920
- absent: "absent";
2921
- generation_stale: "generation_stale";
2922
- force_released: "force_released";
2923
- releasing: "releasing";
2924
- use_tombstoned: "use_tombstoned";
3427
+ lease_authority_absent: "lease_authority_absent";
3428
+ caller_context_absent: "caller_context_absent";
3429
+ caller_context_session_mismatch: "caller_context_session_mismatch";
3430
+ caller_context_stale: "caller_context_stale";
3431
+ lease_absent: "lease_absent";
3432
+ lease_force_released: "lease_force_released";
3433
+ lease_generation_stale: "lease_generation_stale";
3434
+ lease_reacquire_required: "lease_reacquire_required";
3435
+ lease_releasing: "lease_releasing";
3436
+ lease_retired: "lease_retired";
3437
+ lease_use_tombstoned: "lease_use_tombstoned";
3438
+ ownership_denied: "ownership_denied";
2925
3439
  runtime_not_ready: "runtime_not_ready";
2926
3440
  }>>;
2927
3441
  result: z.ZodEnum<{
@@ -2960,8 +3474,8 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2960
3474
  heartbeatAfterMs: z.ZodOptional<z.ZodNumber>;
2961
3475
  leaseId: z.ZodString;
2962
3476
  state: z.ZodEnum<{
2963
- active: "active";
2964
3477
  expired: "expired";
3478
+ active: "active";
2965
3479
  ended: "ended";
2966
3480
  }>;
2967
3481
  useId: z.ZodString;
@@ -2982,11 +3496,18 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
2982
3496
  safeMessage: z.ZodOptional<z.ZodString>;
2983
3497
  }, z.core.$strict>>;
2984
3498
  leaseRejectionReason: z.ZodEnum<{
2985
- absent: "absent";
2986
- generation_stale: "generation_stale";
2987
- force_released: "force_released";
2988
- releasing: "releasing";
2989
- use_tombstoned: "use_tombstoned";
3499
+ lease_authority_absent: "lease_authority_absent";
3500
+ caller_context_absent: "caller_context_absent";
3501
+ caller_context_session_mismatch: "caller_context_session_mismatch";
3502
+ caller_context_stale: "caller_context_stale";
3503
+ lease_absent: "lease_absent";
3504
+ lease_force_released: "lease_force_released";
3505
+ lease_generation_stale: "lease_generation_stale";
3506
+ lease_reacquire_required: "lease_reacquire_required";
3507
+ lease_releasing: "lease_releasing";
3508
+ lease_retired: "lease_retired";
3509
+ lease_use_tombstoned: "lease_use_tombstoned";
3510
+ ownership_denied: "ownership_denied";
2990
3511
  runtime_not_ready: "runtime_not_ready";
2991
3512
  }>;
2992
3513
  result: z.ZodLiteral<"rejected">;
@@ -3004,11 +3525,18 @@ declare const GatewayControlRpcMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
3004
3525
  safeMessage: z.ZodOptional<z.ZodString>;
3005
3526
  }, z.core.$strict>;
3006
3527
  leaseRejectionReason: z.ZodOptional<z.ZodEnum<{
3007
- absent: "absent";
3008
- generation_stale: "generation_stale";
3009
- force_released: "force_released";
3010
- releasing: "releasing";
3011
- use_tombstoned: "use_tombstoned";
3528
+ lease_authority_absent: "lease_authority_absent";
3529
+ caller_context_absent: "caller_context_absent";
3530
+ caller_context_session_mismatch: "caller_context_session_mismatch";
3531
+ caller_context_stale: "caller_context_stale";
3532
+ lease_absent: "lease_absent";
3533
+ lease_force_released: "lease_force_released";
3534
+ lease_generation_stale: "lease_generation_stale";
3535
+ lease_reacquire_required: "lease_reacquire_required";
3536
+ lease_releasing: "lease_releasing";
3537
+ lease_retired: "lease_retired";
3538
+ lease_use_tombstoned: "lease_use_tombstoned";
3539
+ ownership_denied: "ownership_denied";
3012
3540
  runtime_not_ready: "runtime_not_ready";
3013
3541
  }>>;
3014
3542
  result: z.ZodEnum<{
@@ -3189,6 +3717,7 @@ declare const gatewayControlDeliveryPolicyByOperation: {
3189
3717
  readonly lease_create: "critical_idempotent";
3190
3718
  readonly lease_get: "acked_idempotent";
3191
3719
  readonly lease_peek: "acked_idempotent";
3720
+ readonly lease_reacquire: "critical_idempotent";
3192
3721
  readonly lease_release: "acked_idempotent";
3193
3722
  readonly lease_renew: "single_use_critical";
3194
3723
  readonly lease_use_end: "acked_idempotent";
@@ -3208,6 +3737,7 @@ declare const gatewayControlCommandExecutionTimeoutMsByOperation: {
3208
3737
  readonly lease_create: 180000;
3209
3738
  readonly lease_get: 5000;
3210
3739
  readonly lease_peek: 5000;
3740
+ readonly lease_reacquire: 180000;
3211
3741
  readonly lease_release: 5000;
3212
3742
  readonly lease_renew: 10000;
3213
3743
  readonly lease_use_end: 5000;
@@ -3228,6 +3758,9 @@ type GatewayControlCallerContextAgentAuthority = z.infer<typeof GatewayControlCa
3228
3758
  type GatewayControlCallerContextRegisterPayload = z.infer<typeof GatewayControlCallerContextRegisterPayloadSchema>;
3229
3759
  type GatewayControlLeaseCreateIntentPayload = z.infer<typeof GatewayControlLeaseCreateIntentPayloadSchema>;
3230
3760
  type GatewayControlLeaseIdPayload = z.infer<typeof GatewayControlLeaseIdPayloadSchema>;
3761
+ type GatewayControlLeaseReacquireIntentPayload = z.infer<typeof GatewayControlLeaseReacquireIntentPayloadSchema>;
3762
+ type GatewayControlLeaseRejectionReason = z.infer<typeof GatewayControlLeaseRejectionReasonSchema>;
3763
+ type GatewayControlLeaseStaleEvidence = z.infer<typeof GatewayControlLeaseStaleEvidenceSchema>;
3231
3764
  type GatewayControlLeaseSnapshot = z.infer<typeof GatewayControlLeaseSnapshotSchema>;
3232
3765
  type GatewayControlLeaseUseEndPayload = z.infer<typeof GatewayControlLeaseUseEndPayloadSchema>;
3233
3766
  type GatewayControlLeaseUseHeartbeatPayload = z.infer<typeof GatewayControlLeaseUseHeartbeatPayloadSchema>;
@@ -3244,5 +3777,5 @@ type GatewayControlZoneGitPushResult = z.infer<typeof GatewayControlZoneGitPushR
3244
3777
  declare function buildGatewayControlJsonSchemas(): Readonly<Record<string, unknown>>;
3245
3778
  declare function assertGatewayControlDomainRegistered(): 'gateway_control';
3246
3779
  //#endregion
3247
- export { ControllerInitiatedGatewayOperationCancelPayloadSchema, GatewayControlActiveOperationIdSchema, GatewayControlCallerContextAgentAuthority, GatewayControlCallerContextAgentAuthoritySchema, GatewayControlCallerContextProof, GatewayControlCallerContextProofAlgorithmSchema, GatewayControlCallerContextProofPayloadInput, GatewayControlCallerContextProofSchema, GatewayControlCallerContextRef, GatewayControlCallerContextRefSchema, GatewayControlCallerContextRegisterPayload, GatewayControlCallerContextRegisterPayloadSchema, GatewayControlCapabilityRefSchema, GatewayControlControllerHostProbeActionResultSchema, GatewayControlControllerHostProbePayloadSchema, GatewayControlControllerHostProbeResult, GatewayControlControllerHostProbeResultSchema, 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, GatewayControlZoneGitPushControllerHostActionPayloadSchema, GatewayControlZoneGitPushControllerHostActionResultSchema, GatewayControlZoneGitPushResult, GatewayControlZoneGitPushResultSchema, GatewayInitiatedOperationCancelPayloadSchema, assertGatewayControlDomainRegistered, assertGatewayControlEnvelopeDeliveryPolicy, buildGatewayControlCallerContextAgentAuthorityPayload, buildGatewayControlCallerContextProofPayload, buildGatewayControlJsonSchemas, deriveGatewayControlDeliveryPolicy, gatewayControlCommandExecutionTimeoutMsByOperation, gatewayControlDeliveryPolicyByKind, gatewayControlDeliveryPolicyByOperation };
3780
+ export { ControllerInitiatedGatewayOperationCancelPayloadSchema, GatewayControlActiveOperationIdSchema, GatewayControlCallerContextAgentAuthority, GatewayControlCallerContextAgentAuthoritySchema, GatewayControlCallerContextProof, GatewayControlCallerContextProofAlgorithmSchema, GatewayControlCallerContextProofPayloadInput, GatewayControlCallerContextProofSchema, GatewayControlCallerContextRef, GatewayControlCallerContextRefSchema, GatewayControlCallerContextRegisterPayload, GatewayControlCallerContextRegisterPayloadSchema, GatewayControlCapabilityRefSchema, GatewayControlControllerHostProbeActionResultSchema, GatewayControlControllerHostProbePayloadSchema, GatewayControlControllerHostProbeResult, GatewayControlControllerHostProbeResultSchema, GatewayControlControllerRequestHealthOperationSchema, GatewayControlControllerToGatewayEvents, GatewayControlDomainSchema, GatewayControlEventOnlyOperationSchema, GatewayControlForbiddenPayloadFieldSchema, GatewayControlGatewayToControllerEvents, GatewayControlHealthEventPayload, GatewayControlHealthEventPayloadSchema, GatewayControlHealthEventResultSchema, GatewayControlHeartbeatPayload, GatewayControlHeartbeatPayloadSchema, GatewayControlLeaseCreateIntentPayload, GatewayControlLeaseCreateIntentPayloadSchema, GatewayControlLeaseIdPayload, GatewayControlLeaseIdPayloadSchema, GatewayControlLeaseReacquireIntentPayload, GatewayControlLeaseReacquireIntentPayloadSchema, GatewayControlLeaseRejectionReason, GatewayControlLeaseRejectionReasonSchema, GatewayControlLeaseSnapshot, GatewayControlLeaseSnapshotSchema, GatewayControlLeaseStaleEvidence, GatewayControlLeaseStaleEvidenceSchema, 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, GatewayControlToolVmLeaseCallerContextStateSchema, GatewayControlToolVmLeaseLifecycleEventRoleSchema, GatewayControlToolVmLeaseLifecycleTransitionSchema, GatewayControlToolVmSshAccessSchema, GatewayControlToolVmSshHealthOperationSchema, GatewayControlTrustedCallerContextIdSchema, GatewayControlTrustedLeaseContextSchema, GatewayControlZoneGitCommitSummarySchema, GatewayControlZoneGitPushControllerHostActionPayloadSchema, GatewayControlZoneGitPushControllerHostActionResultSchema, GatewayControlZoneGitPushResult, GatewayControlZoneGitPushResultSchema, GatewayInitiatedOperationCancelPayloadSchema, assertGatewayControlDomainRegistered, assertGatewayControlEnvelopeDeliveryPolicy, buildGatewayControlCallerContextAgentAuthorityPayload, buildGatewayControlCallerContextProofPayload, buildGatewayControlJsonSchemas, deriveGatewayControlDeliveryPolicy, gatewayControlCommandExecutionTimeoutMsByOperation, gatewayControlDeliveryPolicyByKind, gatewayControlDeliveryPolicyByOperation };
3248
3781
  //# sourceMappingURL=index.d.ts.map