@rstreamlabs/tunnels 3.6.2 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { RstreamCredentials, TURNCredentials as TURNCredentials$1, ClientCredentials, TunnelsProject } from '@rstreamlabs/rstream';
1
+ import { RstreamCredentials, TURNCredentials as TURNCredentials$1, ControlPlaneHeaders, ClientCredentials, TunnelsProject } from '@rstreamlabs/rstream';
2
2
  import { CreateAuthTokenParams, CreateAuthTokenResponse } from '@rstreamlabs/rstream/auth-token';
3
3
  import * as z from 'zod';
4
4
  import { Tunnel } from '@rstreamlabs/rstream/tunnel';
@@ -94,18 +94,18 @@ declare class RstreamClientsResource {
94
94
 
95
95
  declare const tunnelFilterSchema: z.ZodObject<{
96
96
  id: z.ZodOptional<z.ZodString>;
97
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
97
98
  status: z.ZodOptional<z.ZodEnum<{
98
99
  online: "online";
99
100
  offline: "offline";
100
101
  }>>;
101
102
  user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
102
103
  labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
103
- client_id: z.ZodOptional<z.ZodString>;
104
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
105
104
  type: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
106
105
  bytestream: "bytestream";
107
106
  datagram: "datagram";
108
107
  }>>>;
108
+ client_id: z.ZodOptional<z.ZodString>;
109
109
  publish: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
110
110
  protocol: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
111
111
  tls: "tls";
@@ -127,18 +127,18 @@ declare const listTunnelsParamsSchema: z.ZodObject<{
127
127
  limit: z.ZodOptional<z.ZodNumber>;
128
128
  filters: z.ZodOptional<z.ZodObject<{
129
129
  id: z.ZodOptional<z.ZodString>;
130
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
130
131
  status: z.ZodOptional<z.ZodEnum<{
131
132
  online: "online";
132
133
  offline: "offline";
133
134
  }>>;
134
135
  user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
135
136
  labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
136
- client_id: z.ZodOptional<z.ZodString>;
137
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
138
137
  type: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
139
138
  bytestream: "bytestream";
140
139
  datagram: "datagram";
141
140
  }>>>;
141
+ client_id: z.ZodOptional<z.ZodString>;
142
142
  publish: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
143
143
  protocol: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
144
144
  tls: "tls";
@@ -226,9 +226,9 @@ declare class RstreamTunnelsResource {
226
226
  }
227
227
 
228
228
  declare const turnCredentialModeSchema: z.ZodEnum<{
229
- api: "api";
230
229
  app: "app";
231
230
  pat: "pat";
231
+ api: "api";
232
232
  }>;
233
233
  type TURNCredentialMode = z.infer<typeof turnCredentialModeSchema>;
234
234
  interface CreateAPITURNCredentialsOptions {
@@ -404,12 +404,12 @@ declare const streamSummaryEventSchema: z.ZodObject<{
404
404
  internal: "internal";
405
405
  }>;
406
406
  transport: z.ZodOptional<z.ZodEnum<{
407
- http: "http";
408
- rstream: "rstream";
409
407
  tls: "tls";
410
408
  tcp: "tcp";
411
409
  dtls: "dtls";
412
410
  quic: "quic";
411
+ http: "http";
412
+ rstream: "rstream";
413
413
  }>>;
414
414
  }, z.core.$strip>>;
415
415
  http: z.ZodOptional<z.ZodObject<{
@@ -446,8 +446,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
446
446
  }, z.core.$strip>, z.ZodObject<{
447
447
  kind: z.ZodLiteral<"token">;
448
448
  source: z.ZodOptional<z.ZodEnum<{
449
- query: "query";
450
449
  unknown: "unknown";
450
+ query: "query";
451
451
  authorization: "authorization";
452
452
  client: "client";
453
453
  }>>;
@@ -473,8 +473,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
473
473
  }, z.core.$strip>, z.ZodObject<{
474
474
  kind: z.ZodLiteral<"token">;
475
475
  source: z.ZodOptional<z.ZodEnum<{
476
- query: "query";
477
476
  unknown: "unknown";
477
+ query: "query";
478
478
  authorization: "authorization";
479
479
  client: "client";
480
480
  }>>;
@@ -494,48 +494,48 @@ declare const streamSummaryEventSchema: z.ZodObject<{
494
494
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
495
495
  reason: z.ZodLiteral<"missing_token">;
496
496
  source: z.ZodEnum<{
497
- query: "query";
498
497
  unknown: "unknown";
498
+ query: "query";
499
499
  authorization: "authorization";
500
500
  client: "client";
501
501
  }>;
502
502
  }, z.core.$strip>, z.ZodObject<{
503
503
  reason: z.ZodLiteral<"invalid_token">;
504
504
  source: z.ZodEnum<{
505
- query: "query";
506
505
  unknown: "unknown";
506
+ query: "query";
507
507
  authorization: "authorization";
508
508
  client: "client";
509
509
  }>;
510
510
  }, z.core.$strip>, z.ZodObject<{
511
511
  reason: z.ZodLiteral<"expired_token">;
512
512
  source: z.ZodEnum<{
513
- query: "query";
514
513
  unknown: "unknown";
514
+ query: "query";
515
515
  authorization: "authorization";
516
516
  client: "client";
517
517
  }>;
518
518
  }, z.core.$strip>, z.ZodObject<{
519
519
  reason: z.ZodLiteral<"invalid_secret">;
520
520
  source: z.ZodEnum<{
521
- query: "query";
522
521
  unknown: "unknown";
522
+ query: "query";
523
523
  authorization: "authorization";
524
524
  client: "client";
525
525
  }>;
526
526
  }, z.core.$strip>, z.ZodObject<{
527
527
  reason: z.ZodLiteral<"user_mismatch">;
528
528
  source: z.ZodEnum<{
529
- query: "query";
530
529
  unknown: "unknown";
530
+ query: "query";
531
531
  authorization: "authorization";
532
532
  client: "client";
533
533
  }>;
534
534
  }, z.core.$strip>, z.ZodObject<{
535
535
  reason: z.ZodLiteral<"insufficient_scope">;
536
536
  source: z.ZodEnum<{
537
- query: "query";
538
537
  unknown: "unknown";
538
+ query: "query";
539
539
  authorization: "authorization";
540
540
  client: "client";
541
541
  }>;
@@ -550,8 +550,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
550
550
  }>;
551
551
  value: z.ZodOptional<z.ZodString>;
552
552
  source: z.ZodEnum<{
553
- query: "query";
554
553
  unknown: "unknown";
554
+ query: "query";
555
555
  authorization: "authorization";
556
556
  client: "client";
557
557
  }>;
@@ -598,6 +598,28 @@ declare const streamSummaryEventSchema: z.ZodObject<{
598
598
  tokenAuth: z.ZodOptional<z.ZodBoolean>;
599
599
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
600
600
  }, z.core.$strip>;
601
+ path: z.ZodOptional<z.ZodObject<{
602
+ mode: z.ZodEnum<{
603
+ direct: "direct";
604
+ cross_region: "cross_region";
605
+ }>;
606
+ crossRegionRoutingAllowed: z.ZodBoolean;
607
+ ingress: z.ZodObject<{
608
+ engineId: z.ZodString;
609
+ region: z.ZodString;
610
+ generation: z.ZodOptional<z.ZodString>;
611
+ }, z.core.$strip>;
612
+ owner: z.ZodObject<{
613
+ engineId: z.ZodString;
614
+ region: z.ZodString;
615
+ generation: z.ZodOptional<z.ZodString>;
616
+ }, z.core.$strip>;
617
+ agentTarget: z.ZodObject<{
618
+ engineId: z.ZodString;
619
+ region: z.ZodString;
620
+ generation: z.ZodOptional<z.ZodString>;
621
+ }, z.core.$strip>;
622
+ }, z.core.$strip>>;
601
623
  }, z.core.$strip>, z.ZodObject<{
602
624
  decision: z.ZodLiteral<"not_routed">;
603
625
  failure: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -609,48 +631,48 @@ declare const streamSummaryEventSchema: z.ZodObject<{
609
631
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
610
632
  reason: z.ZodLiteral<"missing_token">;
611
633
  source: z.ZodEnum<{
612
- query: "query";
613
634
  unknown: "unknown";
635
+ query: "query";
614
636
  authorization: "authorization";
615
637
  client: "client";
616
638
  }>;
617
639
  }, z.core.$strip>, z.ZodObject<{
618
640
  reason: z.ZodLiteral<"invalid_token">;
619
641
  source: z.ZodEnum<{
620
- query: "query";
621
642
  unknown: "unknown";
643
+ query: "query";
622
644
  authorization: "authorization";
623
645
  client: "client";
624
646
  }>;
625
647
  }, z.core.$strip>, z.ZodObject<{
626
648
  reason: z.ZodLiteral<"expired_token">;
627
649
  source: z.ZodEnum<{
628
- query: "query";
629
650
  unknown: "unknown";
651
+ query: "query";
630
652
  authorization: "authorization";
631
653
  client: "client";
632
654
  }>;
633
655
  }, z.core.$strip>, z.ZodObject<{
634
656
  reason: z.ZodLiteral<"invalid_secret">;
635
657
  source: z.ZodEnum<{
636
- query: "query";
637
658
  unknown: "unknown";
659
+ query: "query";
638
660
  authorization: "authorization";
639
661
  client: "client";
640
662
  }>;
641
663
  }, z.core.$strip>, z.ZodObject<{
642
664
  reason: z.ZodLiteral<"user_mismatch">;
643
665
  source: z.ZodEnum<{
644
- query: "query";
645
666
  unknown: "unknown";
667
+ query: "query";
646
668
  authorization: "authorization";
647
669
  client: "client";
648
670
  }>;
649
671
  }, z.core.$strip>, z.ZodObject<{
650
672
  reason: z.ZodLiteral<"insufficient_scope">;
651
673
  source: z.ZodEnum<{
652
- query: "query";
653
674
  unknown: "unknown";
675
+ query: "query";
654
676
  authorization: "authorization";
655
677
  client: "client";
656
678
  }>;
@@ -665,8 +687,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
665
687
  }>;
666
688
  value: z.ZodOptional<z.ZodString>;
667
689
  source: z.ZodEnum<{
668
- query: "query";
669
690
  unknown: "unknown";
691
+ query: "query";
670
692
  authorization: "authorization";
671
693
  client: "client";
672
694
  }>;
@@ -740,9 +762,9 @@ declare const streamSummaryEventSchema: z.ZodObject<{
740
762
  webtransport: "webtransport";
741
763
  }>>;
742
764
  origin: z.ZodOptional<z.ZodEnum<{
765
+ api: "api";
743
766
  human: "human";
744
767
  codex: "codex";
745
- api: "api";
746
768
  automation: "automation";
747
769
  ci: "ci";
748
770
  "scheduled-job": "scheduled-job";
@@ -750,8 +772,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
750
772
  origin_id: z.ZodOptional<z.ZodString>;
751
773
  initiator_kind: z.ZodOptional<z.ZodEnum<{
752
774
  agent: "agent";
753
- user: "user";
754
775
  app: "app";
776
+ user: "user";
755
777
  "service-account": "service-account";
756
778
  }>>;
757
779
  device_id: z.ZodOptional<z.ZodString>;
@@ -788,10 +810,10 @@ declare const streamSummaryEventSchema: z.ZodObject<{
788
810
  server: "server";
789
811
  }>;
790
812
  reason: z.ZodEnum<{
791
- unknown: "unknown";
792
813
  error: "error";
793
- closed: "closed";
814
+ unknown: "unknown";
794
815
  timeout: "timeout";
816
+ closed: "closed";
795
817
  reset: "reset";
796
818
  }>;
797
819
  message: z.ZodOptional<z.ZodString>;
@@ -819,48 +841,48 @@ declare const streamSummaryEventSchema: z.ZodObject<{
819
841
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
820
842
  reason: z.ZodLiteral<"missing_token">;
821
843
  source: z.ZodEnum<{
822
- query: "query";
823
844
  unknown: "unknown";
845
+ query: "query";
824
846
  authorization: "authorization";
825
847
  client: "client";
826
848
  }>;
827
849
  }, z.core.$strip>, z.ZodObject<{
828
850
  reason: z.ZodLiteral<"invalid_token">;
829
851
  source: z.ZodEnum<{
830
- query: "query";
831
852
  unknown: "unknown";
853
+ query: "query";
832
854
  authorization: "authorization";
833
855
  client: "client";
834
856
  }>;
835
857
  }, z.core.$strip>, z.ZodObject<{
836
858
  reason: z.ZodLiteral<"expired_token">;
837
859
  source: z.ZodEnum<{
838
- query: "query";
839
860
  unknown: "unknown";
861
+ query: "query";
840
862
  authorization: "authorization";
841
863
  client: "client";
842
864
  }>;
843
865
  }, z.core.$strip>, z.ZodObject<{
844
866
  reason: z.ZodLiteral<"invalid_secret">;
845
867
  source: z.ZodEnum<{
846
- query: "query";
847
868
  unknown: "unknown";
869
+ query: "query";
848
870
  authorization: "authorization";
849
871
  client: "client";
850
872
  }>;
851
873
  }, z.core.$strip>, z.ZodObject<{
852
874
  reason: z.ZodLiteral<"user_mismatch">;
853
875
  source: z.ZodEnum<{
854
- query: "query";
855
876
  unknown: "unknown";
877
+ query: "query";
856
878
  authorization: "authorization";
857
879
  client: "client";
858
880
  }>;
859
881
  }, z.core.$strip>, z.ZodObject<{
860
882
  reason: z.ZodLiteral<"insufficient_scope">;
861
883
  source: z.ZodEnum<{
862
- query: "query";
863
884
  unknown: "unknown";
885
+ query: "query";
864
886
  authorization: "authorization";
865
887
  client: "client";
866
888
  }>;
@@ -875,8 +897,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
875
897
  }>;
876
898
  value: z.ZodOptional<z.ZodString>;
877
899
  source: z.ZodEnum<{
878
- query: "query";
879
900
  unknown: "unknown";
901
+ query: "query";
880
902
  authorization: "authorization";
881
903
  client: "client";
882
904
  }>;
@@ -932,10 +954,10 @@ declare const streamSummaryEventSchema: z.ZodObject<{
932
954
  server: "server";
933
955
  }>;
934
956
  reason: z.ZodEnum<{
935
- unknown: "unknown";
936
957
  error: "error";
937
- closed: "closed";
958
+ unknown: "unknown";
938
959
  timeout: "timeout";
960
+ closed: "closed";
939
961
  reset: "reset";
940
962
  }>;
941
963
  message: z.ZodOptional<z.ZodString>;
@@ -1341,10 +1363,10 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1341
1363
  initiator_user_id: z.ZodOptional<z.ZodString>;
1342
1364
  group_id: z.ZodOptional<z.ZodString>;
1343
1365
  status: z.ZodEnum<{
1344
- opening: "opening";
1345
1366
  active: "active";
1346
- closing: "closing";
1347
1367
  closed: "closed";
1368
+ opening: "opening";
1369
+ closing: "closing";
1348
1370
  errored: "errored";
1349
1371
  }>;
1350
1372
  session_mode: z.ZodEnum<{
@@ -1372,9 +1394,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1372
1394
  command_meta: z.ZodOptional<z.ZodUnknown>;
1373
1395
  context: z.ZodOptional<z.ZodObject<{
1374
1396
  origin: z.ZodOptional<z.ZodEnum<{
1397
+ api: "api";
1375
1398
  human: "human";
1376
1399
  codex: "codex";
1377
- api: "api";
1378
1400
  automation: "automation";
1379
1401
  ci: "ci";
1380
1402
  "scheduled-job": "scheduled-job";
@@ -1383,8 +1405,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1383
1405
  purpose: z.ZodOptional<z.ZodString>;
1384
1406
  initiator_kind: z.ZodOptional<z.ZodEnum<{
1385
1407
  agent: "agent";
1386
- user: "user";
1387
1408
  app: "app";
1409
+ user: "user";
1388
1410
  "service-account": "service-account";
1389
1411
  }>>;
1390
1412
  agent_name: z.ZodOptional<z.ZodString>;
@@ -1424,10 +1446,10 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1424
1446
  initiator_user_id: z.ZodOptional<z.ZodString>;
1425
1447
  group_id: z.ZodOptional<z.ZodString>;
1426
1448
  status: z.ZodEnum<{
1427
- opening: "opening";
1428
1449
  active: "active";
1429
- closing: "closing";
1430
1450
  closed: "closed";
1451
+ opening: "opening";
1452
+ closing: "closing";
1431
1453
  errored: "errored";
1432
1454
  }>;
1433
1455
  session_mode: z.ZodEnum<{
@@ -1455,9 +1477,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1455
1477
  command_meta: z.ZodOptional<z.ZodUnknown>;
1456
1478
  context: z.ZodOptional<z.ZodObject<{
1457
1479
  origin: z.ZodOptional<z.ZodEnum<{
1480
+ api: "api";
1458
1481
  human: "human";
1459
1482
  codex: "codex";
1460
- api: "api";
1461
1483
  automation: "automation";
1462
1484
  ci: "ci";
1463
1485
  "scheduled-job": "scheduled-job";
@@ -1466,8 +1488,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1466
1488
  purpose: z.ZodOptional<z.ZodString>;
1467
1489
  initiator_kind: z.ZodOptional<z.ZodEnum<{
1468
1490
  agent: "agent";
1469
- user: "user";
1470
1491
  app: "app";
1492
+ user: "user";
1471
1493
  "service-account": "service-account";
1472
1494
  }>>;
1473
1495
  agent_name: z.ZodOptional<z.ZodString>;
@@ -1494,9 +1516,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1494
1516
  initiator_user_id: z.ZodOptional<z.ZodString>;
1495
1517
  context: z.ZodOptional<z.ZodObject<{
1496
1518
  origin: z.ZodOptional<z.ZodEnum<{
1519
+ api: "api";
1497
1520
  human: "human";
1498
1521
  codex: "codex";
1499
- api: "api";
1500
1522
  automation: "automation";
1501
1523
  ci: "ci";
1502
1524
  "scheduled-job": "scheduled-job";
@@ -1505,8 +1527,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1505
1527
  purpose: z.ZodOptional<z.ZodString>;
1506
1528
  initiator_kind: z.ZodOptional<z.ZodEnum<{
1507
1529
  agent: "agent";
1508
- user: "user";
1509
1530
  app: "app";
1531
+ user: "user";
1510
1532
  "service-account": "service-account";
1511
1533
  }>>;
1512
1534
  agent_name: z.ZodOptional<z.ZodString>;
@@ -1537,10 +1559,10 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1537
1559
  initiator_user_id: z.ZodOptional<z.ZodString>;
1538
1560
  group_id: z.ZodOptional<z.ZodString>;
1539
1561
  status: z.ZodEnum<{
1540
- opening: "opening";
1541
1562
  active: "active";
1542
- closing: "closing";
1543
1563
  closed: "closed";
1564
+ opening: "opening";
1565
+ closing: "closing";
1544
1566
  errored: "errored";
1545
1567
  }>;
1546
1568
  session_mode: z.ZodEnum<{
@@ -1568,9 +1590,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1568
1590
  command_meta: z.ZodOptional<z.ZodUnknown>;
1569
1591
  context: z.ZodOptional<z.ZodObject<{
1570
1592
  origin: z.ZodOptional<z.ZodEnum<{
1593
+ api: "api";
1571
1594
  human: "human";
1572
1595
  codex: "codex";
1573
- api: "api";
1574
1596
  automation: "automation";
1575
1597
  ci: "ci";
1576
1598
  "scheduled-job": "scheduled-job";
@@ -1579,8 +1601,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1579
1601
  purpose: z.ZodOptional<z.ZodString>;
1580
1602
  initiator_kind: z.ZodOptional<z.ZodEnum<{
1581
1603
  agent: "agent";
1582
- user: "user";
1583
1604
  app: "app";
1605
+ user: "user";
1584
1606
  "service-account": "service-account";
1585
1607
  }>>;
1586
1608
  agent_name: z.ZodOptional<z.ZodString>;
@@ -1704,9 +1726,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1704
1726
  approver_participant_id: z.ZodOptional<z.ZodString>;
1705
1727
  approver_user_id: z.ZodOptional<z.ZodString>;
1706
1728
  status: z.ZodEnum<{
1729
+ refused: "refused";
1707
1730
  pending: "pending";
1708
1731
  granted: "granted";
1709
- refused: "refused";
1710
1732
  revoked: "revoked";
1711
1733
  expired: "expired";
1712
1734
  }>;
@@ -1733,9 +1755,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1733
1755
  approver_participant_id: z.ZodOptional<z.ZodString>;
1734
1756
  approver_user_id: z.ZodOptional<z.ZodString>;
1735
1757
  status: z.ZodEnum<{
1758
+ refused: "refused";
1736
1759
  pending: "pending";
1737
1760
  granted: "granted";
1738
- refused: "refused";
1739
1761
  revoked: "revoked";
1740
1762
  expired: "expired";
1741
1763
  }>;
@@ -1762,9 +1784,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1762
1784
  approver_participant_id: z.ZodOptional<z.ZodString>;
1763
1785
  approver_user_id: z.ZodOptional<z.ZodString>;
1764
1786
  status: z.ZodEnum<{
1787
+ refused: "refused";
1765
1788
  pending: "pending";
1766
1789
  granted: "granted";
1767
- refused: "refused";
1768
1790
  revoked: "revoked";
1769
1791
  expired: "expired";
1770
1792
  }>;
@@ -1791,9 +1813,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1791
1813
  approver_participant_id: z.ZodOptional<z.ZodString>;
1792
1814
  approver_user_id: z.ZodOptional<z.ZodString>;
1793
1815
  status: z.ZodEnum<{
1816
+ refused: "refused";
1794
1817
  pending: "pending";
1795
1818
  granted: "granted";
1796
- refused: "refused";
1797
1819
  revoked: "revoked";
1798
1820
  expired: "expired";
1799
1821
  }>;
@@ -2010,10 +2032,10 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2010
2032
  initiator_user_id: z.ZodOptional<z.ZodString>;
2011
2033
  group_id: z.ZodOptional<z.ZodString>;
2012
2034
  status: z.ZodEnum<{
2013
- opening: "opening";
2014
2035
  active: "active";
2015
- closing: "closing";
2016
2036
  closed: "closed";
2037
+ opening: "opening";
2038
+ closing: "closing";
2017
2039
  errored: "errored";
2018
2040
  }>;
2019
2041
  session_mode: z.ZodEnum<{
@@ -2041,9 +2063,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2041
2063
  command_meta: z.ZodOptional<z.ZodUnknown>;
2042
2064
  context: z.ZodOptional<z.ZodObject<{
2043
2065
  origin: z.ZodOptional<z.ZodEnum<{
2066
+ api: "api";
2044
2067
  human: "human";
2045
2068
  codex: "codex";
2046
- api: "api";
2047
2069
  automation: "automation";
2048
2070
  ci: "ci";
2049
2071
  "scheduled-job": "scheduled-job";
@@ -2052,8 +2074,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2052
2074
  purpose: z.ZodOptional<z.ZodString>;
2053
2075
  initiator_kind: z.ZodOptional<z.ZodEnum<{
2054
2076
  agent: "agent";
2055
- user: "user";
2056
2077
  app: "app";
2078
+ user: "user";
2057
2079
  "service-account": "service-account";
2058
2080
  }>>;
2059
2081
  agent_name: z.ZodOptional<z.ZodString>;
@@ -2093,10 +2115,10 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2093
2115
  initiator_user_id: z.ZodOptional<z.ZodString>;
2094
2116
  group_id: z.ZodOptional<z.ZodString>;
2095
2117
  status: z.ZodEnum<{
2096
- opening: "opening";
2097
2118
  active: "active";
2098
- closing: "closing";
2099
2119
  closed: "closed";
2120
+ opening: "opening";
2121
+ closing: "closing";
2100
2122
  errored: "errored";
2101
2123
  }>;
2102
2124
  session_mode: z.ZodEnum<{
@@ -2124,9 +2146,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2124
2146
  command_meta: z.ZodOptional<z.ZodUnknown>;
2125
2147
  context: z.ZodOptional<z.ZodObject<{
2126
2148
  origin: z.ZodOptional<z.ZodEnum<{
2149
+ api: "api";
2127
2150
  human: "human";
2128
2151
  codex: "codex";
2129
- api: "api";
2130
2152
  automation: "automation";
2131
2153
  ci: "ci";
2132
2154
  "scheduled-job": "scheduled-job";
@@ -2135,8 +2157,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2135
2157
  purpose: z.ZodOptional<z.ZodString>;
2136
2158
  initiator_kind: z.ZodOptional<z.ZodEnum<{
2137
2159
  agent: "agent";
2138
- user: "user";
2139
2160
  app: "app";
2161
+ user: "user";
2140
2162
  "service-account": "service-account";
2141
2163
  }>>;
2142
2164
  agent_name: z.ZodOptional<z.ZodString>;
@@ -2163,9 +2185,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2163
2185
  initiator_user_id: z.ZodOptional<z.ZodString>;
2164
2186
  context: z.ZodOptional<z.ZodObject<{
2165
2187
  origin: z.ZodOptional<z.ZodEnum<{
2188
+ api: "api";
2166
2189
  human: "human";
2167
2190
  codex: "codex";
2168
- api: "api";
2169
2191
  automation: "automation";
2170
2192
  ci: "ci";
2171
2193
  "scheduled-job": "scheduled-job";
@@ -2174,8 +2196,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2174
2196
  purpose: z.ZodOptional<z.ZodString>;
2175
2197
  initiator_kind: z.ZodOptional<z.ZodEnum<{
2176
2198
  agent: "agent";
2177
- user: "user";
2178
2199
  app: "app";
2200
+ user: "user";
2179
2201
  "service-account": "service-account";
2180
2202
  }>>;
2181
2203
  agent_name: z.ZodOptional<z.ZodString>;
@@ -2206,10 +2228,10 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2206
2228
  initiator_user_id: z.ZodOptional<z.ZodString>;
2207
2229
  group_id: z.ZodOptional<z.ZodString>;
2208
2230
  status: z.ZodEnum<{
2209
- opening: "opening";
2210
2231
  active: "active";
2211
- closing: "closing";
2212
2232
  closed: "closed";
2233
+ opening: "opening";
2234
+ closing: "closing";
2213
2235
  errored: "errored";
2214
2236
  }>;
2215
2237
  session_mode: z.ZodEnum<{
@@ -2237,9 +2259,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2237
2259
  command_meta: z.ZodOptional<z.ZodUnknown>;
2238
2260
  context: z.ZodOptional<z.ZodObject<{
2239
2261
  origin: z.ZodOptional<z.ZodEnum<{
2262
+ api: "api";
2240
2263
  human: "human";
2241
2264
  codex: "codex";
2242
- api: "api";
2243
2265
  automation: "automation";
2244
2266
  ci: "ci";
2245
2267
  "scheduled-job": "scheduled-job";
@@ -2248,8 +2270,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2248
2270
  purpose: z.ZodOptional<z.ZodString>;
2249
2271
  initiator_kind: z.ZodOptional<z.ZodEnum<{
2250
2272
  agent: "agent";
2251
- user: "user";
2252
2273
  app: "app";
2274
+ user: "user";
2253
2275
  "service-account": "service-account";
2254
2276
  }>>;
2255
2277
  agent_name: z.ZodOptional<z.ZodString>;
@@ -2373,9 +2395,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2373
2395
  approver_participant_id: z.ZodOptional<z.ZodString>;
2374
2396
  approver_user_id: z.ZodOptional<z.ZodString>;
2375
2397
  status: z.ZodEnum<{
2398
+ refused: "refused";
2376
2399
  pending: "pending";
2377
2400
  granted: "granted";
2378
- refused: "refused";
2379
2401
  revoked: "revoked";
2380
2402
  expired: "expired";
2381
2403
  }>;
@@ -2402,9 +2424,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2402
2424
  approver_participant_id: z.ZodOptional<z.ZodString>;
2403
2425
  approver_user_id: z.ZodOptional<z.ZodString>;
2404
2426
  status: z.ZodEnum<{
2427
+ refused: "refused";
2405
2428
  pending: "pending";
2406
2429
  granted: "granted";
2407
- refused: "refused";
2408
2430
  revoked: "revoked";
2409
2431
  expired: "expired";
2410
2432
  }>;
@@ -2431,9 +2453,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2431
2453
  approver_participant_id: z.ZodOptional<z.ZodString>;
2432
2454
  approver_user_id: z.ZodOptional<z.ZodString>;
2433
2455
  status: z.ZodEnum<{
2456
+ refused: "refused";
2434
2457
  pending: "pending";
2435
2458
  granted: "granted";
2436
- refused: "refused";
2437
2459
  revoked: "revoked";
2438
2460
  expired: "expired";
2439
2461
  }>;
@@ -2460,9 +2482,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2460
2482
  approver_participant_id: z.ZodOptional<z.ZodString>;
2461
2483
  approver_user_id: z.ZodOptional<z.ZodString>;
2462
2484
  status: z.ZodEnum<{
2485
+ refused: "refused";
2463
2486
  pending: "pending";
2464
2487
  granted: "granted";
2465
- refused: "refused";
2466
2488
  revoked: "revoked";
2467
2489
  expired: "expired";
2468
2490
  }>;
@@ -2515,12 +2537,12 @@ declare const projectLogEventsSchema: z.ZodObject<{
2515
2537
  internal: "internal";
2516
2538
  }>;
2517
2539
  transport: z.ZodOptional<z.ZodEnum<{
2518
- http: "http";
2519
- rstream: "rstream";
2520
2540
  tls: "tls";
2521
2541
  tcp: "tcp";
2522
2542
  dtls: "dtls";
2523
2543
  quic: "quic";
2544
+ http: "http";
2545
+ rstream: "rstream";
2524
2546
  }>>;
2525
2547
  }, z.core.$strip>>;
2526
2548
  http: z.ZodOptional<z.ZodObject<{
@@ -2557,8 +2579,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2557
2579
  }, z.core.$strip>, z.ZodObject<{
2558
2580
  kind: z.ZodLiteral<"token">;
2559
2581
  source: z.ZodOptional<z.ZodEnum<{
2560
- query: "query";
2561
2582
  unknown: "unknown";
2583
+ query: "query";
2562
2584
  authorization: "authorization";
2563
2585
  client: "client";
2564
2586
  }>>;
@@ -2584,8 +2606,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2584
2606
  }, z.core.$strip>, z.ZodObject<{
2585
2607
  kind: z.ZodLiteral<"token">;
2586
2608
  source: z.ZodOptional<z.ZodEnum<{
2587
- query: "query";
2588
2609
  unknown: "unknown";
2610
+ query: "query";
2589
2611
  authorization: "authorization";
2590
2612
  client: "client";
2591
2613
  }>>;
@@ -2605,48 +2627,48 @@ declare const projectLogEventsSchema: z.ZodObject<{
2605
2627
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
2606
2628
  reason: z.ZodLiteral<"missing_token">;
2607
2629
  source: z.ZodEnum<{
2608
- query: "query";
2609
2630
  unknown: "unknown";
2631
+ query: "query";
2610
2632
  authorization: "authorization";
2611
2633
  client: "client";
2612
2634
  }>;
2613
2635
  }, z.core.$strip>, z.ZodObject<{
2614
2636
  reason: z.ZodLiteral<"invalid_token">;
2615
2637
  source: z.ZodEnum<{
2616
- query: "query";
2617
2638
  unknown: "unknown";
2639
+ query: "query";
2618
2640
  authorization: "authorization";
2619
2641
  client: "client";
2620
2642
  }>;
2621
2643
  }, z.core.$strip>, z.ZodObject<{
2622
2644
  reason: z.ZodLiteral<"expired_token">;
2623
2645
  source: z.ZodEnum<{
2624
- query: "query";
2625
2646
  unknown: "unknown";
2647
+ query: "query";
2626
2648
  authorization: "authorization";
2627
2649
  client: "client";
2628
2650
  }>;
2629
2651
  }, z.core.$strip>, z.ZodObject<{
2630
2652
  reason: z.ZodLiteral<"invalid_secret">;
2631
2653
  source: z.ZodEnum<{
2632
- query: "query";
2633
2654
  unknown: "unknown";
2655
+ query: "query";
2634
2656
  authorization: "authorization";
2635
2657
  client: "client";
2636
2658
  }>;
2637
2659
  }, z.core.$strip>, z.ZodObject<{
2638
2660
  reason: z.ZodLiteral<"user_mismatch">;
2639
2661
  source: z.ZodEnum<{
2640
- query: "query";
2641
2662
  unknown: "unknown";
2663
+ query: "query";
2642
2664
  authorization: "authorization";
2643
2665
  client: "client";
2644
2666
  }>;
2645
2667
  }, z.core.$strip>, z.ZodObject<{
2646
2668
  reason: z.ZodLiteral<"insufficient_scope">;
2647
2669
  source: z.ZodEnum<{
2648
- query: "query";
2649
2670
  unknown: "unknown";
2671
+ query: "query";
2650
2672
  authorization: "authorization";
2651
2673
  client: "client";
2652
2674
  }>;
@@ -2661,8 +2683,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2661
2683
  }>;
2662
2684
  value: z.ZodOptional<z.ZodString>;
2663
2685
  source: z.ZodEnum<{
2664
- query: "query";
2665
2686
  unknown: "unknown";
2687
+ query: "query";
2666
2688
  authorization: "authorization";
2667
2689
  client: "client";
2668
2690
  }>;
@@ -2709,6 +2731,28 @@ declare const projectLogEventsSchema: z.ZodObject<{
2709
2731
  tokenAuth: z.ZodOptional<z.ZodBoolean>;
2710
2732
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
2711
2733
  }, z.core.$strip>;
2734
+ path: z.ZodOptional<z.ZodObject<{
2735
+ mode: z.ZodEnum<{
2736
+ direct: "direct";
2737
+ cross_region: "cross_region";
2738
+ }>;
2739
+ crossRegionRoutingAllowed: z.ZodBoolean;
2740
+ ingress: z.ZodObject<{
2741
+ engineId: z.ZodString;
2742
+ region: z.ZodString;
2743
+ generation: z.ZodOptional<z.ZodString>;
2744
+ }, z.core.$strip>;
2745
+ owner: z.ZodObject<{
2746
+ engineId: z.ZodString;
2747
+ region: z.ZodString;
2748
+ generation: z.ZodOptional<z.ZodString>;
2749
+ }, z.core.$strip>;
2750
+ agentTarget: z.ZodObject<{
2751
+ engineId: z.ZodString;
2752
+ region: z.ZodString;
2753
+ generation: z.ZodOptional<z.ZodString>;
2754
+ }, z.core.$strip>;
2755
+ }, z.core.$strip>>;
2712
2756
  }, z.core.$strip>, z.ZodObject<{
2713
2757
  decision: z.ZodLiteral<"not_routed">;
2714
2758
  failure: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2720,48 +2764,48 @@ declare const projectLogEventsSchema: z.ZodObject<{
2720
2764
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
2721
2765
  reason: z.ZodLiteral<"missing_token">;
2722
2766
  source: z.ZodEnum<{
2723
- query: "query";
2724
2767
  unknown: "unknown";
2768
+ query: "query";
2725
2769
  authorization: "authorization";
2726
2770
  client: "client";
2727
2771
  }>;
2728
2772
  }, z.core.$strip>, z.ZodObject<{
2729
2773
  reason: z.ZodLiteral<"invalid_token">;
2730
2774
  source: z.ZodEnum<{
2731
- query: "query";
2732
2775
  unknown: "unknown";
2776
+ query: "query";
2733
2777
  authorization: "authorization";
2734
2778
  client: "client";
2735
2779
  }>;
2736
2780
  }, z.core.$strip>, z.ZodObject<{
2737
2781
  reason: z.ZodLiteral<"expired_token">;
2738
2782
  source: z.ZodEnum<{
2739
- query: "query";
2740
2783
  unknown: "unknown";
2784
+ query: "query";
2741
2785
  authorization: "authorization";
2742
2786
  client: "client";
2743
2787
  }>;
2744
2788
  }, z.core.$strip>, z.ZodObject<{
2745
2789
  reason: z.ZodLiteral<"invalid_secret">;
2746
2790
  source: z.ZodEnum<{
2747
- query: "query";
2748
2791
  unknown: "unknown";
2792
+ query: "query";
2749
2793
  authorization: "authorization";
2750
2794
  client: "client";
2751
2795
  }>;
2752
2796
  }, z.core.$strip>, z.ZodObject<{
2753
2797
  reason: z.ZodLiteral<"user_mismatch">;
2754
2798
  source: z.ZodEnum<{
2755
- query: "query";
2756
2799
  unknown: "unknown";
2800
+ query: "query";
2757
2801
  authorization: "authorization";
2758
2802
  client: "client";
2759
2803
  }>;
2760
2804
  }, z.core.$strip>, z.ZodObject<{
2761
2805
  reason: z.ZodLiteral<"insufficient_scope">;
2762
2806
  source: z.ZodEnum<{
2763
- query: "query";
2764
2807
  unknown: "unknown";
2808
+ query: "query";
2765
2809
  authorization: "authorization";
2766
2810
  client: "client";
2767
2811
  }>;
@@ -2776,8 +2820,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2776
2820
  }>;
2777
2821
  value: z.ZodOptional<z.ZodString>;
2778
2822
  source: z.ZodEnum<{
2779
- query: "query";
2780
2823
  unknown: "unknown";
2824
+ query: "query";
2781
2825
  authorization: "authorization";
2782
2826
  client: "client";
2783
2827
  }>;
@@ -2851,9 +2895,9 @@ declare const projectLogEventsSchema: z.ZodObject<{
2851
2895
  webtransport: "webtransport";
2852
2896
  }>>;
2853
2897
  origin: z.ZodOptional<z.ZodEnum<{
2898
+ api: "api";
2854
2899
  human: "human";
2855
2900
  codex: "codex";
2856
- api: "api";
2857
2901
  automation: "automation";
2858
2902
  ci: "ci";
2859
2903
  "scheduled-job": "scheduled-job";
@@ -2861,8 +2905,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2861
2905
  origin_id: z.ZodOptional<z.ZodString>;
2862
2906
  initiator_kind: z.ZodOptional<z.ZodEnum<{
2863
2907
  agent: "agent";
2864
- user: "user";
2865
2908
  app: "app";
2909
+ user: "user";
2866
2910
  "service-account": "service-account";
2867
2911
  }>>;
2868
2912
  device_id: z.ZodOptional<z.ZodString>;
@@ -2899,10 +2943,10 @@ declare const projectLogEventsSchema: z.ZodObject<{
2899
2943
  server: "server";
2900
2944
  }>;
2901
2945
  reason: z.ZodEnum<{
2902
- unknown: "unknown";
2903
2946
  error: "error";
2904
- closed: "closed";
2947
+ unknown: "unknown";
2905
2948
  timeout: "timeout";
2949
+ closed: "closed";
2906
2950
  reset: "reset";
2907
2951
  }>;
2908
2952
  message: z.ZodOptional<z.ZodString>;
@@ -2930,48 +2974,48 @@ declare const projectLogEventsSchema: z.ZodObject<{
2930
2974
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
2931
2975
  reason: z.ZodLiteral<"missing_token">;
2932
2976
  source: z.ZodEnum<{
2933
- query: "query";
2934
2977
  unknown: "unknown";
2978
+ query: "query";
2935
2979
  authorization: "authorization";
2936
2980
  client: "client";
2937
2981
  }>;
2938
2982
  }, z.core.$strip>, z.ZodObject<{
2939
2983
  reason: z.ZodLiteral<"invalid_token">;
2940
2984
  source: z.ZodEnum<{
2941
- query: "query";
2942
2985
  unknown: "unknown";
2986
+ query: "query";
2943
2987
  authorization: "authorization";
2944
2988
  client: "client";
2945
2989
  }>;
2946
2990
  }, z.core.$strip>, z.ZodObject<{
2947
2991
  reason: z.ZodLiteral<"expired_token">;
2948
2992
  source: z.ZodEnum<{
2949
- query: "query";
2950
2993
  unknown: "unknown";
2994
+ query: "query";
2951
2995
  authorization: "authorization";
2952
2996
  client: "client";
2953
2997
  }>;
2954
2998
  }, z.core.$strip>, z.ZodObject<{
2955
2999
  reason: z.ZodLiteral<"invalid_secret">;
2956
3000
  source: z.ZodEnum<{
2957
- query: "query";
2958
3001
  unknown: "unknown";
3002
+ query: "query";
2959
3003
  authorization: "authorization";
2960
3004
  client: "client";
2961
3005
  }>;
2962
3006
  }, z.core.$strip>, z.ZodObject<{
2963
3007
  reason: z.ZodLiteral<"user_mismatch">;
2964
3008
  source: z.ZodEnum<{
2965
- query: "query";
2966
3009
  unknown: "unknown";
3010
+ query: "query";
2967
3011
  authorization: "authorization";
2968
3012
  client: "client";
2969
3013
  }>;
2970
3014
  }, z.core.$strip>, z.ZodObject<{
2971
3015
  reason: z.ZodLiteral<"insufficient_scope">;
2972
3016
  source: z.ZodEnum<{
2973
- query: "query";
2974
3017
  unknown: "unknown";
3018
+ query: "query";
2975
3019
  authorization: "authorization";
2976
3020
  client: "client";
2977
3021
  }>;
@@ -2986,8 +3030,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2986
3030
  }>;
2987
3031
  value: z.ZodOptional<z.ZodString>;
2988
3032
  source: z.ZodEnum<{
2989
- query: "query";
2990
3033
  unknown: "unknown";
3034
+ query: "query";
2991
3035
  authorization: "authorization";
2992
3036
  client: "client";
2993
3037
  }>;
@@ -3043,10 +3087,10 @@ declare const projectLogEventsSchema: z.ZodObject<{
3043
3087
  server: "server";
3044
3088
  }>;
3045
3089
  reason: z.ZodEnum<{
3046
- unknown: "unknown";
3047
3090
  error: "error";
3048
- closed: "closed";
3091
+ unknown: "unknown";
3049
3092
  timeout: "timeout";
3093
+ closed: "closed";
3050
3094
  reset: "reset";
3051
3095
  }>;
3052
3096
  message: z.ZodOptional<z.ZodString>;
@@ -3452,10 +3496,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3452
3496
  initiator_user_id: z.ZodOptional<z.ZodString>;
3453
3497
  group_id: z.ZodOptional<z.ZodString>;
3454
3498
  status: z.ZodEnum<{
3455
- opening: "opening";
3456
3499
  active: "active";
3457
- closing: "closing";
3458
3500
  closed: "closed";
3501
+ opening: "opening";
3502
+ closing: "closing";
3459
3503
  errored: "errored";
3460
3504
  }>;
3461
3505
  session_mode: z.ZodEnum<{
@@ -3483,9 +3527,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3483
3527
  command_meta: z.ZodOptional<z.ZodUnknown>;
3484
3528
  context: z.ZodOptional<z.ZodObject<{
3485
3529
  origin: z.ZodOptional<z.ZodEnum<{
3530
+ api: "api";
3486
3531
  human: "human";
3487
3532
  codex: "codex";
3488
- api: "api";
3489
3533
  automation: "automation";
3490
3534
  ci: "ci";
3491
3535
  "scheduled-job": "scheduled-job";
@@ -3494,8 +3538,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3494
3538
  purpose: z.ZodOptional<z.ZodString>;
3495
3539
  initiator_kind: z.ZodOptional<z.ZodEnum<{
3496
3540
  agent: "agent";
3497
- user: "user";
3498
3541
  app: "app";
3542
+ user: "user";
3499
3543
  "service-account": "service-account";
3500
3544
  }>>;
3501
3545
  agent_name: z.ZodOptional<z.ZodString>;
@@ -3535,10 +3579,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3535
3579
  initiator_user_id: z.ZodOptional<z.ZodString>;
3536
3580
  group_id: z.ZodOptional<z.ZodString>;
3537
3581
  status: z.ZodEnum<{
3538
- opening: "opening";
3539
3582
  active: "active";
3540
- closing: "closing";
3541
3583
  closed: "closed";
3584
+ opening: "opening";
3585
+ closing: "closing";
3542
3586
  errored: "errored";
3543
3587
  }>;
3544
3588
  session_mode: z.ZodEnum<{
@@ -3566,9 +3610,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3566
3610
  command_meta: z.ZodOptional<z.ZodUnknown>;
3567
3611
  context: z.ZodOptional<z.ZodObject<{
3568
3612
  origin: z.ZodOptional<z.ZodEnum<{
3613
+ api: "api";
3569
3614
  human: "human";
3570
3615
  codex: "codex";
3571
- api: "api";
3572
3616
  automation: "automation";
3573
3617
  ci: "ci";
3574
3618
  "scheduled-job": "scheduled-job";
@@ -3577,8 +3621,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3577
3621
  purpose: z.ZodOptional<z.ZodString>;
3578
3622
  initiator_kind: z.ZodOptional<z.ZodEnum<{
3579
3623
  agent: "agent";
3580
- user: "user";
3581
3624
  app: "app";
3625
+ user: "user";
3582
3626
  "service-account": "service-account";
3583
3627
  }>>;
3584
3628
  agent_name: z.ZodOptional<z.ZodString>;
@@ -3605,9 +3649,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3605
3649
  initiator_user_id: z.ZodOptional<z.ZodString>;
3606
3650
  context: z.ZodOptional<z.ZodObject<{
3607
3651
  origin: z.ZodOptional<z.ZodEnum<{
3652
+ api: "api";
3608
3653
  human: "human";
3609
3654
  codex: "codex";
3610
- api: "api";
3611
3655
  automation: "automation";
3612
3656
  ci: "ci";
3613
3657
  "scheduled-job": "scheduled-job";
@@ -3616,8 +3660,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3616
3660
  purpose: z.ZodOptional<z.ZodString>;
3617
3661
  initiator_kind: z.ZodOptional<z.ZodEnum<{
3618
3662
  agent: "agent";
3619
- user: "user";
3620
3663
  app: "app";
3664
+ user: "user";
3621
3665
  "service-account": "service-account";
3622
3666
  }>>;
3623
3667
  agent_name: z.ZodOptional<z.ZodString>;
@@ -3648,10 +3692,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3648
3692
  initiator_user_id: z.ZodOptional<z.ZodString>;
3649
3693
  group_id: z.ZodOptional<z.ZodString>;
3650
3694
  status: z.ZodEnum<{
3651
- opening: "opening";
3652
3695
  active: "active";
3653
- closing: "closing";
3654
3696
  closed: "closed";
3697
+ opening: "opening";
3698
+ closing: "closing";
3655
3699
  errored: "errored";
3656
3700
  }>;
3657
3701
  session_mode: z.ZodEnum<{
@@ -3679,9 +3723,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3679
3723
  command_meta: z.ZodOptional<z.ZodUnknown>;
3680
3724
  context: z.ZodOptional<z.ZodObject<{
3681
3725
  origin: z.ZodOptional<z.ZodEnum<{
3726
+ api: "api";
3682
3727
  human: "human";
3683
3728
  codex: "codex";
3684
- api: "api";
3685
3729
  automation: "automation";
3686
3730
  ci: "ci";
3687
3731
  "scheduled-job": "scheduled-job";
@@ -3690,8 +3734,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3690
3734
  purpose: z.ZodOptional<z.ZodString>;
3691
3735
  initiator_kind: z.ZodOptional<z.ZodEnum<{
3692
3736
  agent: "agent";
3693
- user: "user";
3694
3737
  app: "app";
3738
+ user: "user";
3695
3739
  "service-account": "service-account";
3696
3740
  }>>;
3697
3741
  agent_name: z.ZodOptional<z.ZodString>;
@@ -3815,9 +3859,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3815
3859
  approver_participant_id: z.ZodOptional<z.ZodString>;
3816
3860
  approver_user_id: z.ZodOptional<z.ZodString>;
3817
3861
  status: z.ZodEnum<{
3862
+ refused: "refused";
3818
3863
  pending: "pending";
3819
3864
  granted: "granted";
3820
- refused: "refused";
3821
3865
  revoked: "revoked";
3822
3866
  expired: "expired";
3823
3867
  }>;
@@ -3844,9 +3888,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3844
3888
  approver_participant_id: z.ZodOptional<z.ZodString>;
3845
3889
  approver_user_id: z.ZodOptional<z.ZodString>;
3846
3890
  status: z.ZodEnum<{
3891
+ refused: "refused";
3847
3892
  pending: "pending";
3848
3893
  granted: "granted";
3849
- refused: "refused";
3850
3894
  revoked: "revoked";
3851
3895
  expired: "expired";
3852
3896
  }>;
@@ -3873,9 +3917,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3873
3917
  approver_participant_id: z.ZodOptional<z.ZodString>;
3874
3918
  approver_user_id: z.ZodOptional<z.ZodString>;
3875
3919
  status: z.ZodEnum<{
3920
+ refused: "refused";
3876
3921
  pending: "pending";
3877
3922
  granted: "granted";
3878
- refused: "refused";
3879
3923
  revoked: "revoked";
3880
3924
  expired: "expired";
3881
3925
  }>;
@@ -3902,9 +3946,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3902
3946
  approver_participant_id: z.ZodOptional<z.ZodString>;
3903
3947
  approver_user_id: z.ZodOptional<z.ZodString>;
3904
3948
  status: z.ZodEnum<{
3949
+ refused: "refused";
3905
3950
  pending: "pending";
3906
3951
  granted: "granted";
3907
- refused: "refused";
3908
3952
  revoked: "revoked";
3909
3953
  expired: "expired";
3910
3954
  }>;
@@ -4120,10 +4164,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4120
4164
  initiator_user_id: z.ZodOptional<z.ZodString>;
4121
4165
  group_id: z.ZodOptional<z.ZodString>;
4122
4166
  status: z.ZodEnum<{
4123
- opening: "opening";
4124
4167
  active: "active";
4125
- closing: "closing";
4126
4168
  closed: "closed";
4169
+ opening: "opening";
4170
+ closing: "closing";
4127
4171
  errored: "errored";
4128
4172
  }>;
4129
4173
  session_mode: z.ZodEnum<{
@@ -4151,9 +4195,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4151
4195
  command_meta: z.ZodOptional<z.ZodUnknown>;
4152
4196
  context: z.ZodOptional<z.ZodObject<{
4153
4197
  origin: z.ZodOptional<z.ZodEnum<{
4198
+ api: "api";
4154
4199
  human: "human";
4155
4200
  codex: "codex";
4156
- api: "api";
4157
4201
  automation: "automation";
4158
4202
  ci: "ci";
4159
4203
  "scheduled-job": "scheduled-job";
@@ -4162,8 +4206,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4162
4206
  purpose: z.ZodOptional<z.ZodString>;
4163
4207
  initiator_kind: z.ZodOptional<z.ZodEnum<{
4164
4208
  agent: "agent";
4165
- user: "user";
4166
4209
  app: "app";
4210
+ user: "user";
4167
4211
  "service-account": "service-account";
4168
4212
  }>>;
4169
4213
  agent_name: z.ZodOptional<z.ZodString>;
@@ -4203,10 +4247,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4203
4247
  initiator_user_id: z.ZodOptional<z.ZodString>;
4204
4248
  group_id: z.ZodOptional<z.ZodString>;
4205
4249
  status: z.ZodEnum<{
4206
- opening: "opening";
4207
4250
  active: "active";
4208
- closing: "closing";
4209
4251
  closed: "closed";
4252
+ opening: "opening";
4253
+ closing: "closing";
4210
4254
  errored: "errored";
4211
4255
  }>;
4212
4256
  session_mode: z.ZodEnum<{
@@ -4234,9 +4278,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4234
4278
  command_meta: z.ZodOptional<z.ZodUnknown>;
4235
4279
  context: z.ZodOptional<z.ZodObject<{
4236
4280
  origin: z.ZodOptional<z.ZodEnum<{
4281
+ api: "api";
4237
4282
  human: "human";
4238
4283
  codex: "codex";
4239
- api: "api";
4240
4284
  automation: "automation";
4241
4285
  ci: "ci";
4242
4286
  "scheduled-job": "scheduled-job";
@@ -4245,8 +4289,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4245
4289
  purpose: z.ZodOptional<z.ZodString>;
4246
4290
  initiator_kind: z.ZodOptional<z.ZodEnum<{
4247
4291
  agent: "agent";
4248
- user: "user";
4249
4292
  app: "app";
4293
+ user: "user";
4250
4294
  "service-account": "service-account";
4251
4295
  }>>;
4252
4296
  agent_name: z.ZodOptional<z.ZodString>;
@@ -4273,9 +4317,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4273
4317
  initiator_user_id: z.ZodOptional<z.ZodString>;
4274
4318
  context: z.ZodOptional<z.ZodObject<{
4275
4319
  origin: z.ZodOptional<z.ZodEnum<{
4320
+ api: "api";
4276
4321
  human: "human";
4277
4322
  codex: "codex";
4278
- api: "api";
4279
4323
  automation: "automation";
4280
4324
  ci: "ci";
4281
4325
  "scheduled-job": "scheduled-job";
@@ -4284,8 +4328,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4284
4328
  purpose: z.ZodOptional<z.ZodString>;
4285
4329
  initiator_kind: z.ZodOptional<z.ZodEnum<{
4286
4330
  agent: "agent";
4287
- user: "user";
4288
4331
  app: "app";
4332
+ user: "user";
4289
4333
  "service-account": "service-account";
4290
4334
  }>>;
4291
4335
  agent_name: z.ZodOptional<z.ZodString>;
@@ -4316,10 +4360,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4316
4360
  initiator_user_id: z.ZodOptional<z.ZodString>;
4317
4361
  group_id: z.ZodOptional<z.ZodString>;
4318
4362
  status: z.ZodEnum<{
4319
- opening: "opening";
4320
4363
  active: "active";
4321
- closing: "closing";
4322
4364
  closed: "closed";
4365
+ opening: "opening";
4366
+ closing: "closing";
4323
4367
  errored: "errored";
4324
4368
  }>;
4325
4369
  session_mode: z.ZodEnum<{
@@ -4347,9 +4391,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4347
4391
  command_meta: z.ZodOptional<z.ZodUnknown>;
4348
4392
  context: z.ZodOptional<z.ZodObject<{
4349
4393
  origin: z.ZodOptional<z.ZodEnum<{
4394
+ api: "api";
4350
4395
  human: "human";
4351
4396
  codex: "codex";
4352
- api: "api";
4353
4397
  automation: "automation";
4354
4398
  ci: "ci";
4355
4399
  "scheduled-job": "scheduled-job";
@@ -4358,8 +4402,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4358
4402
  purpose: z.ZodOptional<z.ZodString>;
4359
4403
  initiator_kind: z.ZodOptional<z.ZodEnum<{
4360
4404
  agent: "agent";
4361
- user: "user";
4362
4405
  app: "app";
4406
+ user: "user";
4363
4407
  "service-account": "service-account";
4364
4408
  }>>;
4365
4409
  agent_name: z.ZodOptional<z.ZodString>;
@@ -4483,9 +4527,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4483
4527
  approver_participant_id: z.ZodOptional<z.ZodString>;
4484
4528
  approver_user_id: z.ZodOptional<z.ZodString>;
4485
4529
  status: z.ZodEnum<{
4530
+ refused: "refused";
4486
4531
  pending: "pending";
4487
4532
  granted: "granted";
4488
- refused: "refused";
4489
4533
  revoked: "revoked";
4490
4534
  expired: "expired";
4491
4535
  }>;
@@ -4512,9 +4556,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4512
4556
  approver_participant_id: z.ZodOptional<z.ZodString>;
4513
4557
  approver_user_id: z.ZodOptional<z.ZodString>;
4514
4558
  status: z.ZodEnum<{
4559
+ refused: "refused";
4515
4560
  pending: "pending";
4516
4561
  granted: "granted";
4517
- refused: "refused";
4518
4562
  revoked: "revoked";
4519
4563
  expired: "expired";
4520
4564
  }>;
@@ -4541,9 +4585,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4541
4585
  approver_participant_id: z.ZodOptional<z.ZodString>;
4542
4586
  approver_user_id: z.ZodOptional<z.ZodString>;
4543
4587
  status: z.ZodEnum<{
4588
+ refused: "refused";
4544
4589
  pending: "pending";
4545
4590
  granted: "granted";
4546
- refused: "refused";
4547
4591
  revoked: "revoked";
4548
4592
  expired: "expired";
4549
4593
  }>;
@@ -4570,9 +4614,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4570
4614
  approver_participant_id: z.ZodOptional<z.ZodString>;
4571
4615
  approver_user_id: z.ZodOptional<z.ZodString>;
4572
4616
  status: z.ZodEnum<{
4617
+ refused: "refused";
4573
4618
  pending: "pending";
4574
4619
  granted: "granted";
4575
- refused: "refused";
4576
4620
  revoked: "revoked";
4577
4621
  expired: "expired";
4578
4622
  }>;
@@ -4624,12 +4668,12 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4624
4668
  internal: "internal";
4625
4669
  }>;
4626
4670
  transport: z.ZodOptional<z.ZodEnum<{
4627
- http: "http";
4628
- rstream: "rstream";
4629
4671
  tls: "tls";
4630
4672
  tcp: "tcp";
4631
4673
  dtls: "dtls";
4632
4674
  quic: "quic";
4675
+ http: "http";
4676
+ rstream: "rstream";
4633
4677
  }>>;
4634
4678
  }, z.core.$strip>>;
4635
4679
  http: z.ZodOptional<z.ZodObject<{
@@ -4666,8 +4710,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4666
4710
  }, z.core.$strip>, z.ZodObject<{
4667
4711
  kind: z.ZodLiteral<"token">;
4668
4712
  source: z.ZodOptional<z.ZodEnum<{
4669
- query: "query";
4670
4713
  unknown: "unknown";
4714
+ query: "query";
4671
4715
  authorization: "authorization";
4672
4716
  client: "client";
4673
4717
  }>>;
@@ -4693,8 +4737,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4693
4737
  }, z.core.$strip>, z.ZodObject<{
4694
4738
  kind: z.ZodLiteral<"token">;
4695
4739
  source: z.ZodOptional<z.ZodEnum<{
4696
- query: "query";
4697
4740
  unknown: "unknown";
4741
+ query: "query";
4698
4742
  authorization: "authorization";
4699
4743
  client: "client";
4700
4744
  }>>;
@@ -4714,48 +4758,48 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4714
4758
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
4715
4759
  reason: z.ZodLiteral<"missing_token">;
4716
4760
  source: z.ZodEnum<{
4717
- query: "query";
4718
4761
  unknown: "unknown";
4762
+ query: "query";
4719
4763
  authorization: "authorization";
4720
4764
  client: "client";
4721
4765
  }>;
4722
4766
  }, z.core.$strip>, z.ZodObject<{
4723
4767
  reason: z.ZodLiteral<"invalid_token">;
4724
4768
  source: z.ZodEnum<{
4725
- query: "query";
4726
4769
  unknown: "unknown";
4770
+ query: "query";
4727
4771
  authorization: "authorization";
4728
4772
  client: "client";
4729
4773
  }>;
4730
4774
  }, z.core.$strip>, z.ZodObject<{
4731
4775
  reason: z.ZodLiteral<"expired_token">;
4732
4776
  source: z.ZodEnum<{
4733
- query: "query";
4734
4777
  unknown: "unknown";
4778
+ query: "query";
4735
4779
  authorization: "authorization";
4736
4780
  client: "client";
4737
4781
  }>;
4738
4782
  }, z.core.$strip>, z.ZodObject<{
4739
4783
  reason: z.ZodLiteral<"invalid_secret">;
4740
4784
  source: z.ZodEnum<{
4741
- query: "query";
4742
4785
  unknown: "unknown";
4786
+ query: "query";
4743
4787
  authorization: "authorization";
4744
4788
  client: "client";
4745
4789
  }>;
4746
4790
  }, z.core.$strip>, z.ZodObject<{
4747
4791
  reason: z.ZodLiteral<"user_mismatch">;
4748
4792
  source: z.ZodEnum<{
4749
- query: "query";
4750
4793
  unknown: "unknown";
4794
+ query: "query";
4751
4795
  authorization: "authorization";
4752
4796
  client: "client";
4753
4797
  }>;
4754
4798
  }, z.core.$strip>, z.ZodObject<{
4755
4799
  reason: z.ZodLiteral<"insufficient_scope">;
4756
4800
  source: z.ZodEnum<{
4757
- query: "query";
4758
4801
  unknown: "unknown";
4802
+ query: "query";
4759
4803
  authorization: "authorization";
4760
4804
  client: "client";
4761
4805
  }>;
@@ -4770,8 +4814,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4770
4814
  }>;
4771
4815
  value: z.ZodOptional<z.ZodString>;
4772
4816
  source: z.ZodEnum<{
4773
- query: "query";
4774
4817
  unknown: "unknown";
4818
+ query: "query";
4775
4819
  authorization: "authorization";
4776
4820
  client: "client";
4777
4821
  }>;
@@ -4818,6 +4862,28 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4818
4862
  tokenAuth: z.ZodOptional<z.ZodBoolean>;
4819
4863
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
4820
4864
  }, z.core.$strip>;
4865
+ path: z.ZodOptional<z.ZodObject<{
4866
+ mode: z.ZodEnum<{
4867
+ direct: "direct";
4868
+ cross_region: "cross_region";
4869
+ }>;
4870
+ crossRegionRoutingAllowed: z.ZodBoolean;
4871
+ ingress: z.ZodObject<{
4872
+ engineId: z.ZodString;
4873
+ region: z.ZodString;
4874
+ generation: z.ZodOptional<z.ZodString>;
4875
+ }, z.core.$strip>;
4876
+ owner: z.ZodObject<{
4877
+ engineId: z.ZodString;
4878
+ region: z.ZodString;
4879
+ generation: z.ZodOptional<z.ZodString>;
4880
+ }, z.core.$strip>;
4881
+ agentTarget: z.ZodObject<{
4882
+ engineId: z.ZodString;
4883
+ region: z.ZodString;
4884
+ generation: z.ZodOptional<z.ZodString>;
4885
+ }, z.core.$strip>;
4886
+ }, z.core.$strip>>;
4821
4887
  }, z.core.$strip>, z.ZodObject<{
4822
4888
  decision: z.ZodLiteral<"not_routed">;
4823
4889
  failure: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -4829,48 +4895,48 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4829
4895
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
4830
4896
  reason: z.ZodLiteral<"missing_token">;
4831
4897
  source: z.ZodEnum<{
4832
- query: "query";
4833
4898
  unknown: "unknown";
4899
+ query: "query";
4834
4900
  authorization: "authorization";
4835
4901
  client: "client";
4836
4902
  }>;
4837
4903
  }, z.core.$strip>, z.ZodObject<{
4838
4904
  reason: z.ZodLiteral<"invalid_token">;
4839
4905
  source: z.ZodEnum<{
4840
- query: "query";
4841
4906
  unknown: "unknown";
4907
+ query: "query";
4842
4908
  authorization: "authorization";
4843
4909
  client: "client";
4844
4910
  }>;
4845
4911
  }, z.core.$strip>, z.ZodObject<{
4846
4912
  reason: z.ZodLiteral<"expired_token">;
4847
4913
  source: z.ZodEnum<{
4848
- query: "query";
4849
4914
  unknown: "unknown";
4915
+ query: "query";
4850
4916
  authorization: "authorization";
4851
4917
  client: "client";
4852
4918
  }>;
4853
4919
  }, z.core.$strip>, z.ZodObject<{
4854
4920
  reason: z.ZodLiteral<"invalid_secret">;
4855
4921
  source: z.ZodEnum<{
4856
- query: "query";
4857
4922
  unknown: "unknown";
4923
+ query: "query";
4858
4924
  authorization: "authorization";
4859
4925
  client: "client";
4860
4926
  }>;
4861
4927
  }, z.core.$strip>, z.ZodObject<{
4862
4928
  reason: z.ZodLiteral<"user_mismatch">;
4863
4929
  source: z.ZodEnum<{
4864
- query: "query";
4865
4930
  unknown: "unknown";
4931
+ query: "query";
4866
4932
  authorization: "authorization";
4867
4933
  client: "client";
4868
4934
  }>;
4869
4935
  }, z.core.$strip>, z.ZodObject<{
4870
4936
  reason: z.ZodLiteral<"insufficient_scope">;
4871
4937
  source: z.ZodEnum<{
4872
- query: "query";
4873
4938
  unknown: "unknown";
4939
+ query: "query";
4874
4940
  authorization: "authorization";
4875
4941
  client: "client";
4876
4942
  }>;
@@ -4885,8 +4951,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4885
4951
  }>;
4886
4952
  value: z.ZodOptional<z.ZodString>;
4887
4953
  source: z.ZodEnum<{
4888
- query: "query";
4889
4954
  unknown: "unknown";
4955
+ query: "query";
4890
4956
  authorization: "authorization";
4891
4957
  client: "client";
4892
4958
  }>;
@@ -4960,9 +5026,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4960
5026
  webtransport: "webtransport";
4961
5027
  }>>;
4962
5028
  origin: z.ZodOptional<z.ZodEnum<{
5029
+ api: "api";
4963
5030
  human: "human";
4964
5031
  codex: "codex";
4965
- api: "api";
4966
5032
  automation: "automation";
4967
5033
  ci: "ci";
4968
5034
  "scheduled-job": "scheduled-job";
@@ -4970,8 +5036,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4970
5036
  origin_id: z.ZodOptional<z.ZodString>;
4971
5037
  initiator_kind: z.ZodOptional<z.ZodEnum<{
4972
5038
  agent: "agent";
4973
- user: "user";
4974
5039
  app: "app";
5040
+ user: "user";
4975
5041
  "service-account": "service-account";
4976
5042
  }>>;
4977
5043
  device_id: z.ZodOptional<z.ZodString>;
@@ -5008,10 +5074,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
5008
5074
  server: "server";
5009
5075
  }>;
5010
5076
  reason: z.ZodEnum<{
5011
- unknown: "unknown";
5012
5077
  error: "error";
5013
- closed: "closed";
5078
+ unknown: "unknown";
5014
5079
  timeout: "timeout";
5080
+ closed: "closed";
5015
5081
  reset: "reset";
5016
5082
  }>;
5017
5083
  message: z.ZodOptional<z.ZodString>;
@@ -5039,48 +5105,48 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
5039
5105
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
5040
5106
  reason: z.ZodLiteral<"missing_token">;
5041
5107
  source: z.ZodEnum<{
5042
- query: "query";
5043
5108
  unknown: "unknown";
5109
+ query: "query";
5044
5110
  authorization: "authorization";
5045
5111
  client: "client";
5046
5112
  }>;
5047
5113
  }, z.core.$strip>, z.ZodObject<{
5048
5114
  reason: z.ZodLiteral<"invalid_token">;
5049
5115
  source: z.ZodEnum<{
5050
- query: "query";
5051
5116
  unknown: "unknown";
5117
+ query: "query";
5052
5118
  authorization: "authorization";
5053
5119
  client: "client";
5054
5120
  }>;
5055
5121
  }, z.core.$strip>, z.ZodObject<{
5056
5122
  reason: z.ZodLiteral<"expired_token">;
5057
5123
  source: z.ZodEnum<{
5058
- query: "query";
5059
5124
  unknown: "unknown";
5125
+ query: "query";
5060
5126
  authorization: "authorization";
5061
5127
  client: "client";
5062
5128
  }>;
5063
5129
  }, z.core.$strip>, z.ZodObject<{
5064
5130
  reason: z.ZodLiteral<"invalid_secret">;
5065
5131
  source: z.ZodEnum<{
5066
- query: "query";
5067
5132
  unknown: "unknown";
5133
+ query: "query";
5068
5134
  authorization: "authorization";
5069
5135
  client: "client";
5070
5136
  }>;
5071
5137
  }, z.core.$strip>, z.ZodObject<{
5072
5138
  reason: z.ZodLiteral<"user_mismatch">;
5073
5139
  source: z.ZodEnum<{
5074
- query: "query";
5075
5140
  unknown: "unknown";
5141
+ query: "query";
5076
5142
  authorization: "authorization";
5077
5143
  client: "client";
5078
5144
  }>;
5079
5145
  }, z.core.$strip>, z.ZodObject<{
5080
5146
  reason: z.ZodLiteral<"insufficient_scope">;
5081
5147
  source: z.ZodEnum<{
5082
- query: "query";
5083
5148
  unknown: "unknown";
5149
+ query: "query";
5084
5150
  authorization: "authorization";
5085
5151
  client: "client";
5086
5152
  }>;
@@ -5095,8 +5161,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
5095
5161
  }>;
5096
5162
  value: z.ZodOptional<z.ZodString>;
5097
5163
  source: z.ZodEnum<{
5098
- query: "query";
5099
5164
  unknown: "unknown";
5165
+ query: "query";
5100
5166
  authorization: "authorization";
5101
5167
  client: "client";
5102
5168
  }>;
@@ -5152,10 +5218,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
5152
5218
  server: "server";
5153
5219
  }>;
5154
5220
  reason: z.ZodEnum<{
5155
- unknown: "unknown";
5156
5221
  error: "error";
5157
- closed: "closed";
5222
+ unknown: "unknown";
5158
5223
  timeout: "timeout";
5224
+ closed: "closed";
5159
5225
  reset: "reset";
5160
5226
  }>;
5161
5227
  message: z.ZodOptional<z.ZodString>;
@@ -5227,9 +5293,9 @@ declare const webTTYSessionModeSchema: z.ZodEnum<{
5227
5293
  "non-interactive": "non-interactive";
5228
5294
  }>;
5229
5295
  declare const webTTYOriginSchema: z.ZodEnum<{
5296
+ api: "api";
5230
5297
  human: "human";
5231
5298
  codex: "codex";
5232
- api: "api";
5233
5299
  automation: "automation";
5234
5300
  ci: "ci";
5235
5301
  "scheduled-job": "scheduled-job";
@@ -5240,9 +5306,9 @@ declare const webTTYParticipantRoleSchema: z.ZodEnum<{
5240
5306
  }>;
5241
5307
  declare const webTTYContextMetadataSchema: z.ZodObject<{
5242
5308
  origin: z.ZodOptional<z.ZodEnum<{
5309
+ api: "api";
5243
5310
  human: "human";
5244
5311
  codex: "codex";
5245
- api: "api";
5246
5312
  automation: "automation";
5247
5313
  ci: "ci";
5248
5314
  "scheduled-job": "scheduled-job";
@@ -5251,8 +5317,8 @@ declare const webTTYContextMetadataSchema: z.ZodObject<{
5251
5317
  purpose: z.ZodOptional<z.ZodString>;
5252
5318
  initiator_kind: z.ZodOptional<z.ZodEnum<{
5253
5319
  agent: "agent";
5254
- user: "user";
5255
5320
  app: "app";
5321
+ user: "user";
5256
5322
  "service-account": "service-account";
5257
5323
  }>>;
5258
5324
  agent_name: z.ZodOptional<z.ZodString>;
@@ -5307,10 +5373,10 @@ declare const webTTYSessionSchema: z.ZodObject<{
5307
5373
  initiator_user_id: z.ZodOptional<z.ZodString>;
5308
5374
  group_id: z.ZodOptional<z.ZodString>;
5309
5375
  status: z.ZodEnum<{
5310
- opening: "opening";
5311
5376
  active: "active";
5312
- closing: "closing";
5313
5377
  closed: "closed";
5378
+ opening: "opening";
5379
+ closing: "closing";
5314
5380
  errored: "errored";
5315
5381
  }>;
5316
5382
  session_mode: z.ZodEnum<{
@@ -5338,9 +5404,9 @@ declare const webTTYSessionSchema: z.ZodObject<{
5338
5404
  command_meta: z.ZodOptional<z.ZodUnknown>;
5339
5405
  context: z.ZodOptional<z.ZodObject<{
5340
5406
  origin: z.ZodOptional<z.ZodEnum<{
5407
+ api: "api";
5341
5408
  human: "human";
5342
5409
  codex: "codex";
5343
- api: "api";
5344
5410
  automation: "automation";
5345
5411
  ci: "ci";
5346
5412
  "scheduled-job": "scheduled-job";
@@ -5349,8 +5415,8 @@ declare const webTTYSessionSchema: z.ZodObject<{
5349
5415
  purpose: z.ZodOptional<z.ZodString>;
5350
5416
  initiator_kind: z.ZodOptional<z.ZodEnum<{
5351
5417
  agent: "agent";
5352
- user: "user";
5353
5418
  app: "app";
5419
+ user: "user";
5354
5420
  "service-account": "service-account";
5355
5421
  }>>;
5356
5422
  agent_name: z.ZodOptional<z.ZodString>;
@@ -5378,9 +5444,9 @@ declare const webTTYSessionGroupSchema: z.ZodObject<{
5378
5444
  initiator_user_id: z.ZodOptional<z.ZodString>;
5379
5445
  context: z.ZodOptional<z.ZodObject<{
5380
5446
  origin: z.ZodOptional<z.ZodEnum<{
5447
+ api: "api";
5381
5448
  human: "human";
5382
5449
  codex: "codex";
5383
- api: "api";
5384
5450
  automation: "automation";
5385
5451
  ci: "ci";
5386
5452
  "scheduled-job": "scheduled-job";
@@ -5389,8 +5455,8 @@ declare const webTTYSessionGroupSchema: z.ZodObject<{
5389
5455
  purpose: z.ZodOptional<z.ZodString>;
5390
5456
  initiator_kind: z.ZodOptional<z.ZodEnum<{
5391
5457
  agent: "agent";
5392
- user: "user";
5393
5458
  app: "app";
5459
+ user: "user";
5394
5460
  "service-account": "service-account";
5395
5461
  }>>;
5396
5462
  agent_name: z.ZodOptional<z.ZodString>;
@@ -5520,9 +5586,9 @@ declare const webTTYControlRequestSchema: z.ZodObject<{
5520
5586
  approver_participant_id: z.ZodOptional<z.ZodString>;
5521
5587
  approver_user_id: z.ZodOptional<z.ZodString>;
5522
5588
  status: z.ZodEnum<{
5589
+ refused: "refused";
5523
5590
  pending: "pending";
5524
5591
  granted: "granted";
5525
- refused: "refused";
5526
5592
  revoked: "revoked";
5527
5593
  expired: "expired";
5528
5594
  }>;
@@ -5541,18 +5607,18 @@ declare const listWebTTYSessionsParamsSchema: z.ZodObject<{
5541
5607
  user_id: z.ZodOptional<z.ZodString>;
5542
5608
  group_id: z.ZodOptional<z.ZodString>;
5543
5609
  origin: z.ZodOptional<z.ZodEnum<{
5610
+ api: "api";
5544
5611
  human: "human";
5545
5612
  codex: "codex";
5546
- api: "api";
5547
5613
  automation: "automation";
5548
5614
  ci: "ci";
5549
5615
  "scheduled-job": "scheduled-job";
5550
5616
  }>>;
5551
5617
  status: z.ZodOptional<z.ZodEnum<{
5552
- opening: "opening";
5553
5618
  active: "active";
5554
- closing: "closing";
5555
5619
  closed: "closed";
5620
+ opening: "opening";
5621
+ closing: "closing";
5556
5622
  errored: "errored";
5557
5623
  }>>;
5558
5624
  started_from: z.ZodOptional<z.ZodString>;
@@ -5564,9 +5630,9 @@ declare const listWebTTYSessionGroupsParamsSchema: z.ZodObject<{
5564
5630
  filters: z.ZodOptional<z.ZodObject<{
5565
5631
  initiator_user_id: z.ZodOptional<z.ZodString>;
5566
5632
  origin: z.ZodOptional<z.ZodEnum<{
5633
+ api: "api";
5567
5634
  human: "human";
5568
5635
  codex: "codex";
5569
- api: "api";
5570
5636
  automation: "automation";
5571
5637
  ci: "ci";
5572
5638
  "scheduled-job": "scheduled-job";
@@ -5587,9 +5653,9 @@ declare const listWebTTYControlRequestsParamsSchema: z.ZodObject<{
5587
5653
  limit: z.ZodOptional<z.ZodNumber>;
5588
5654
  filters: z.ZodOptional<z.ZodObject<{
5589
5655
  status: z.ZodOptional<z.ZodEnum<{
5656
+ refused: "refused";
5590
5657
  pending: "pending";
5591
5658
  granted: "granted";
5592
- refused: "refused";
5593
5659
  revoked: "revoked";
5594
5660
  expired: "expired";
5595
5661
  }>>;
@@ -5684,6 +5750,11 @@ interface RstreamTunnelsConfig {
5684
5750
  * Used when the engine is not set explicitly.
5685
5751
  */
5686
5752
  projectEndpoint?: string;
5753
+ /**
5754
+ * Region selected from the endpoints authorized for the managed project.
5755
+ * Defaults to automatic project routing.
5756
+ */
5757
+ region?: string;
5687
5758
  /**
5688
5759
  * Project ID used to scope locally signed engine auth tokens.
5689
5760
  */
@@ -5697,6 +5768,10 @@ interface RstreamTunnelsConfig {
5697
5768
  * Defaults to the same credentials used against the engine when available.
5698
5769
  */
5699
5770
  controlPlaneCredentials?: RstreamCredentials;
5771
+ /**
5772
+ * Additional headers sent only to the configured Control plane API.
5773
+ */
5774
+ controlPlaneHeaders?: ControlPlaneHeaders;
5700
5775
  }
5701
5776
  declare class RstreamTunnelsClient {
5702
5777
  private readonly config?;
@@ -5744,13 +5819,16 @@ type RstreamAuth = (() => Promise<string>) | string;
5744
5819
  interface TunnelsResolutionConfig {
5745
5820
  apiUrl?: string;
5746
5821
  controlPlaneCredentials?: RstreamCredentials;
5822
+ controlPlaneHeaders?: ControlPlaneHeaders;
5747
5823
  credentials?: RstreamCredentials;
5748
5824
  engine?: string;
5749
5825
  projectEndpoint?: string;
5826
+ region?: string;
5750
5827
  token?: string;
5751
5828
  }
5752
5829
  declare function normalizeEngineAddress(engine: string): string;
5753
5830
  declare function resolveTunnelsAPIURL(apiUrl?: string): string;
5831
+ declare function resolveTunnelsRegion(region?: string): string | undefined;
5754
5832
  declare function resolveTunnelsCredentials(credentials?: RstreamCredentials): RstreamCredentials | undefined;
5755
5833
  declare function resolveControlPlaneCredentials(controlPlaneCredentials?: RstreamCredentials, credentials?: RstreamCredentials, authToken?: string): RstreamCredentials | undefined;
5756
5834
  declare function resolveTunnelsEngine(config: TunnelsResolutionConfig): Promise<string>;
@@ -5785,12 +5863,12 @@ declare const streamEntrySchema: z.ZodObject<{
5785
5863
  internal: "internal";
5786
5864
  }>;
5787
5865
  transport: z.ZodOptional<z.ZodEnum<{
5788
- http: "http";
5789
- rstream: "rstream";
5790
5866
  tls: "tls";
5791
5867
  tcp: "tcp";
5792
5868
  dtls: "dtls";
5793
5869
  quic: "quic";
5870
+ http: "http";
5871
+ rstream: "rstream";
5794
5872
  }>>;
5795
5873
  }, z.core.$strip>;
5796
5874
  declare const streamWebTTYMetadataSchema: z.ZodObject<{
@@ -5836,9 +5914,9 @@ declare const streamWebTTYMetadataSchema: z.ZodObject<{
5836
5914
  webtransport: "webtransport";
5837
5915
  }>>;
5838
5916
  origin: z.ZodOptional<z.ZodEnum<{
5917
+ api: "api";
5839
5918
  human: "human";
5840
5919
  codex: "codex";
5841
- api: "api";
5842
5920
  automation: "automation";
5843
5921
  ci: "ci";
5844
5922
  "scheduled-job": "scheduled-job";
@@ -5846,8 +5924,8 @@ declare const streamWebTTYMetadataSchema: z.ZodObject<{
5846
5924
  origin_id: z.ZodOptional<z.ZodString>;
5847
5925
  initiator_kind: z.ZodOptional<z.ZodEnum<{
5848
5926
  agent: "agent";
5849
- user: "user";
5850
5927
  app: "app";
5928
+ user: "user";
5851
5929
  "service-account": "service-account";
5852
5930
  }>>;
5853
5931
  device_id: z.ZodOptional<z.ZodString>;
@@ -5886,12 +5964,12 @@ declare const streamSummarySchema: z.ZodObject<{
5886
5964
  internal: "internal";
5887
5965
  }>;
5888
5966
  transport: z.ZodOptional<z.ZodEnum<{
5889
- http: "http";
5890
- rstream: "rstream";
5891
5967
  tls: "tls";
5892
5968
  tcp: "tcp";
5893
5969
  dtls: "dtls";
5894
5970
  quic: "quic";
5971
+ http: "http";
5972
+ rstream: "rstream";
5895
5973
  }>>;
5896
5974
  }, z.core.$strip>>;
5897
5975
  http: z.ZodOptional<z.ZodObject<{
@@ -5928,8 +6006,8 @@ declare const streamSummarySchema: z.ZodObject<{
5928
6006
  }, z.core.$strip>, z.ZodObject<{
5929
6007
  kind: z.ZodLiteral<"token">;
5930
6008
  source: z.ZodOptional<z.ZodEnum<{
5931
- query: "query";
5932
6009
  unknown: "unknown";
6010
+ query: "query";
5933
6011
  authorization: "authorization";
5934
6012
  client: "client";
5935
6013
  }>>;
@@ -5955,8 +6033,8 @@ declare const streamSummarySchema: z.ZodObject<{
5955
6033
  }, z.core.$strip>, z.ZodObject<{
5956
6034
  kind: z.ZodLiteral<"token">;
5957
6035
  source: z.ZodOptional<z.ZodEnum<{
5958
- query: "query";
5959
6036
  unknown: "unknown";
6037
+ query: "query";
5960
6038
  authorization: "authorization";
5961
6039
  client: "client";
5962
6040
  }>>;
@@ -5976,48 +6054,48 @@ declare const streamSummarySchema: z.ZodObject<{
5976
6054
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
5977
6055
  reason: z.ZodLiteral<"missing_token">;
5978
6056
  source: z.ZodEnum<{
5979
- query: "query";
5980
6057
  unknown: "unknown";
6058
+ query: "query";
5981
6059
  authorization: "authorization";
5982
6060
  client: "client";
5983
6061
  }>;
5984
6062
  }, z.core.$strip>, z.ZodObject<{
5985
6063
  reason: z.ZodLiteral<"invalid_token">;
5986
6064
  source: z.ZodEnum<{
5987
- query: "query";
5988
6065
  unknown: "unknown";
6066
+ query: "query";
5989
6067
  authorization: "authorization";
5990
6068
  client: "client";
5991
6069
  }>;
5992
6070
  }, z.core.$strip>, z.ZodObject<{
5993
6071
  reason: z.ZodLiteral<"expired_token">;
5994
6072
  source: z.ZodEnum<{
5995
- query: "query";
5996
6073
  unknown: "unknown";
6074
+ query: "query";
5997
6075
  authorization: "authorization";
5998
6076
  client: "client";
5999
6077
  }>;
6000
6078
  }, z.core.$strip>, z.ZodObject<{
6001
6079
  reason: z.ZodLiteral<"invalid_secret">;
6002
6080
  source: z.ZodEnum<{
6003
- query: "query";
6004
6081
  unknown: "unknown";
6082
+ query: "query";
6005
6083
  authorization: "authorization";
6006
6084
  client: "client";
6007
6085
  }>;
6008
6086
  }, z.core.$strip>, z.ZodObject<{
6009
6087
  reason: z.ZodLiteral<"user_mismatch">;
6010
6088
  source: z.ZodEnum<{
6011
- query: "query";
6012
6089
  unknown: "unknown";
6090
+ query: "query";
6013
6091
  authorization: "authorization";
6014
6092
  client: "client";
6015
6093
  }>;
6016
6094
  }, z.core.$strip>, z.ZodObject<{
6017
6095
  reason: z.ZodLiteral<"insufficient_scope">;
6018
6096
  source: z.ZodEnum<{
6019
- query: "query";
6020
6097
  unknown: "unknown";
6098
+ query: "query";
6021
6099
  authorization: "authorization";
6022
6100
  client: "client";
6023
6101
  }>;
@@ -6032,8 +6110,8 @@ declare const streamSummarySchema: z.ZodObject<{
6032
6110
  }>;
6033
6111
  value: z.ZodOptional<z.ZodString>;
6034
6112
  source: z.ZodEnum<{
6035
- query: "query";
6036
6113
  unknown: "unknown";
6114
+ query: "query";
6037
6115
  authorization: "authorization";
6038
6116
  client: "client";
6039
6117
  }>;
@@ -6080,6 +6158,28 @@ declare const streamSummarySchema: z.ZodObject<{
6080
6158
  tokenAuth: z.ZodOptional<z.ZodBoolean>;
6081
6159
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
6082
6160
  }, z.core.$strip>;
6161
+ path: z.ZodOptional<z.ZodObject<{
6162
+ mode: z.ZodEnum<{
6163
+ direct: "direct";
6164
+ cross_region: "cross_region";
6165
+ }>;
6166
+ crossRegionRoutingAllowed: z.ZodBoolean;
6167
+ ingress: z.ZodObject<{
6168
+ engineId: z.ZodString;
6169
+ region: z.ZodString;
6170
+ generation: z.ZodOptional<z.ZodString>;
6171
+ }, z.core.$strip>;
6172
+ owner: z.ZodObject<{
6173
+ engineId: z.ZodString;
6174
+ region: z.ZodString;
6175
+ generation: z.ZodOptional<z.ZodString>;
6176
+ }, z.core.$strip>;
6177
+ agentTarget: z.ZodObject<{
6178
+ engineId: z.ZodString;
6179
+ region: z.ZodString;
6180
+ generation: z.ZodOptional<z.ZodString>;
6181
+ }, z.core.$strip>;
6182
+ }, z.core.$strip>>;
6083
6183
  }, z.core.$strip>, z.ZodObject<{
6084
6184
  decision: z.ZodLiteral<"not_routed">;
6085
6185
  failure: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -6091,48 +6191,48 @@ declare const streamSummarySchema: z.ZodObject<{
6091
6191
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
6092
6192
  reason: z.ZodLiteral<"missing_token">;
6093
6193
  source: z.ZodEnum<{
6094
- query: "query";
6095
6194
  unknown: "unknown";
6195
+ query: "query";
6096
6196
  authorization: "authorization";
6097
6197
  client: "client";
6098
6198
  }>;
6099
6199
  }, z.core.$strip>, z.ZodObject<{
6100
6200
  reason: z.ZodLiteral<"invalid_token">;
6101
6201
  source: z.ZodEnum<{
6102
- query: "query";
6103
6202
  unknown: "unknown";
6203
+ query: "query";
6104
6204
  authorization: "authorization";
6105
6205
  client: "client";
6106
6206
  }>;
6107
6207
  }, z.core.$strip>, z.ZodObject<{
6108
6208
  reason: z.ZodLiteral<"expired_token">;
6109
6209
  source: z.ZodEnum<{
6110
- query: "query";
6111
6210
  unknown: "unknown";
6211
+ query: "query";
6112
6212
  authorization: "authorization";
6113
6213
  client: "client";
6114
6214
  }>;
6115
6215
  }, z.core.$strip>, z.ZodObject<{
6116
6216
  reason: z.ZodLiteral<"invalid_secret">;
6117
6217
  source: z.ZodEnum<{
6118
- query: "query";
6119
6218
  unknown: "unknown";
6219
+ query: "query";
6120
6220
  authorization: "authorization";
6121
6221
  client: "client";
6122
6222
  }>;
6123
6223
  }, z.core.$strip>, z.ZodObject<{
6124
6224
  reason: z.ZodLiteral<"user_mismatch">;
6125
6225
  source: z.ZodEnum<{
6126
- query: "query";
6127
6226
  unknown: "unknown";
6227
+ query: "query";
6128
6228
  authorization: "authorization";
6129
6229
  client: "client";
6130
6230
  }>;
6131
6231
  }, z.core.$strip>, z.ZodObject<{
6132
6232
  reason: z.ZodLiteral<"insufficient_scope">;
6133
6233
  source: z.ZodEnum<{
6134
- query: "query";
6135
6234
  unknown: "unknown";
6235
+ query: "query";
6136
6236
  authorization: "authorization";
6137
6237
  client: "client";
6138
6238
  }>;
@@ -6147,8 +6247,8 @@ declare const streamSummarySchema: z.ZodObject<{
6147
6247
  }>;
6148
6248
  value: z.ZodOptional<z.ZodString>;
6149
6249
  source: z.ZodEnum<{
6150
- query: "query";
6151
6250
  unknown: "unknown";
6251
+ query: "query";
6152
6252
  authorization: "authorization";
6153
6253
  client: "client";
6154
6254
  }>;
@@ -6222,9 +6322,9 @@ declare const streamSummarySchema: z.ZodObject<{
6222
6322
  webtransport: "webtransport";
6223
6323
  }>>;
6224
6324
  origin: z.ZodOptional<z.ZodEnum<{
6325
+ api: "api";
6225
6326
  human: "human";
6226
6327
  codex: "codex";
6227
- api: "api";
6228
6328
  automation: "automation";
6229
6329
  ci: "ci";
6230
6330
  "scheduled-job": "scheduled-job";
@@ -6232,8 +6332,8 @@ declare const streamSummarySchema: z.ZodObject<{
6232
6332
  origin_id: z.ZodOptional<z.ZodString>;
6233
6333
  initiator_kind: z.ZodOptional<z.ZodEnum<{
6234
6334
  agent: "agent";
6235
- user: "user";
6236
6335
  app: "app";
6336
+ user: "user";
6237
6337
  "service-account": "service-account";
6238
6338
  }>>;
6239
6339
  device_id: z.ZodOptional<z.ZodString>;
@@ -6270,10 +6370,10 @@ declare const streamSummarySchema: z.ZodObject<{
6270
6370
  server: "server";
6271
6371
  }>;
6272
6372
  reason: z.ZodEnum<{
6273
- unknown: "unknown";
6274
6373
  error: "error";
6275
- closed: "closed";
6374
+ unknown: "unknown";
6276
6375
  timeout: "timeout";
6376
+ closed: "closed";
6277
6377
  reset: "reset";
6278
6378
  }>;
6279
6379
  message: z.ZodOptional<z.ZodString>;
@@ -6301,48 +6401,48 @@ declare const streamSummarySchema: z.ZodObject<{
6301
6401
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
6302
6402
  reason: z.ZodLiteral<"missing_token">;
6303
6403
  source: z.ZodEnum<{
6304
- query: "query";
6305
6404
  unknown: "unknown";
6405
+ query: "query";
6306
6406
  authorization: "authorization";
6307
6407
  client: "client";
6308
6408
  }>;
6309
6409
  }, z.core.$strip>, z.ZodObject<{
6310
6410
  reason: z.ZodLiteral<"invalid_token">;
6311
6411
  source: z.ZodEnum<{
6312
- query: "query";
6313
6412
  unknown: "unknown";
6413
+ query: "query";
6314
6414
  authorization: "authorization";
6315
6415
  client: "client";
6316
6416
  }>;
6317
6417
  }, z.core.$strip>, z.ZodObject<{
6318
6418
  reason: z.ZodLiteral<"expired_token">;
6319
6419
  source: z.ZodEnum<{
6320
- query: "query";
6321
6420
  unknown: "unknown";
6421
+ query: "query";
6322
6422
  authorization: "authorization";
6323
6423
  client: "client";
6324
6424
  }>;
6325
6425
  }, z.core.$strip>, z.ZodObject<{
6326
6426
  reason: z.ZodLiteral<"invalid_secret">;
6327
6427
  source: z.ZodEnum<{
6328
- query: "query";
6329
6428
  unknown: "unknown";
6429
+ query: "query";
6330
6430
  authorization: "authorization";
6331
6431
  client: "client";
6332
6432
  }>;
6333
6433
  }, z.core.$strip>, z.ZodObject<{
6334
6434
  reason: z.ZodLiteral<"user_mismatch">;
6335
6435
  source: z.ZodEnum<{
6336
- query: "query";
6337
6436
  unknown: "unknown";
6437
+ query: "query";
6338
6438
  authorization: "authorization";
6339
6439
  client: "client";
6340
6440
  }>;
6341
6441
  }, z.core.$strip>, z.ZodObject<{
6342
6442
  reason: z.ZodLiteral<"insufficient_scope">;
6343
6443
  source: z.ZodEnum<{
6344
- query: "query";
6345
6444
  unknown: "unknown";
6445
+ query: "query";
6346
6446
  authorization: "authorization";
6347
6447
  client: "client";
6348
6448
  }>;
@@ -6357,8 +6457,8 @@ declare const streamSummarySchema: z.ZodObject<{
6357
6457
  }>;
6358
6458
  value: z.ZodOptional<z.ZodString>;
6359
6459
  source: z.ZodEnum<{
6360
- query: "query";
6361
6460
  unknown: "unknown";
6461
+ query: "query";
6362
6462
  authorization: "authorization";
6363
6463
  client: "client";
6364
6464
  }>;
@@ -6414,10 +6514,10 @@ declare const streamSummarySchema: z.ZodObject<{
6414
6514
  server: "server";
6415
6515
  }>;
6416
6516
  reason: z.ZodEnum<{
6417
- unknown: "unknown";
6418
6517
  error: "error";
6419
- closed: "closed";
6518
+ unknown: "unknown";
6420
6519
  timeout: "timeout";
6520
+ closed: "closed";
6421
6521
  reset: "reset";
6422
6522
  }>;
6423
6523
  message: z.ZodOptional<z.ZodString>;
@@ -6565,4 +6665,4 @@ declare const webttyServerSchema: z.ZodObject<{
6565
6665
  type WebTTYServer = z.infer<typeof webttyServerSchema>;
6566
6666
  declare function parseWebTTYServers(tunnels: Tunnel[]): WebTTYServer[];
6567
6667
 
6568
- export { type AttachWebTTYParticipantParams, type BuildWebhookHeadersOptions, type Client, type ClientFilter, type CreateAPITURNCredentialsOptions, type CreateAPPTURNCredentialsOptions, type CreateAuthTokenFromClientCredentialsOptions, type CreatePATTURNCredentialsOptions, type CreateTURNCredentialsOptions, type CreateWebTTYControlRequestParams, type DetachWebTTYParticipantParams, type Event, type InitialState, type ListClientsParams, type ListClientsResponse, type ListTunnelsParams, type ListTunnelsResponse, type ListWebTTYControlRequestsParams, type ListWebTTYKeyGrantDecryptMaterialParams, type ListWebTTYSessionGroupsParams, type ListWebTTYSessionsParams, type ProjectLogEvent, type ReadWebTTYSessionEventsParams, type ResolveWebTTYControlRequestParams, type RstreamAuth, RstreamAuthResource, RstreamAuthResource as RstreamAuthRessource, RstreamTunnelsClient as RstreamClient, RstreamClientsResource, RstreamClientsResource as RstreamClientsRessource, RstreamTURNResource, RstreamTunnelsClient, type RstreamTunnelsConfig, RstreamTunnelsResource, RstreamTunnelsResource as RstreamTunnelsRessource, RstreamWebTTYResource, RstreamWebhookResource, RstreamWebhookResource as RstreamWebhookRessource, type StreamEndpoint, type StreamEntry, type StreamSummary, type StreamTLSInfo, type TURNCredentialMode, type TunnelFilter, RstreamTunnelsClient as Tunnels, type TunnelsResolutionConfig, WEBHOOK_DELIVERY_ID_HEADER, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPE_HEADER, WEBHOOK_ID_HEADER, WEBHOOK_SIGNATURE_HEADER, Watch, type WatchConfig, type WatchWsEvents, type WebTTYCapabilities, type WebTTYControlRequest, type WebTTYKeyGrant, type WebTTYKeyGrantDecryptMaterial, type WebTTYParticipant, type WebTTYParticipantLive, type WebTTYServer, type WebTTYSession, type WebTTYSessionEvent, type WebTTYSessionGroup, type WebTTYSessionLive, type WebhookEvent, type WebhookHeaders, type WebhookPayload, type WsEvent, attachWebTTYParticipantParamsSchema, buildWebhookHeaders, clientFilterSchema, clientSchema, createAPITURNCredentials, createAPPTURNCredentials, createAuthTokenFromClientCredentials, createPATTURNCredentials, createTURNCredentials, createWebTTYControlRequestParamsSchema, detachWebTTYParticipantParamsSchema, eventSchema, formatStreamAccessPath, formatTunnelHost, generateWebhookSigningSecret, listClientsParamsSchema, listClientsResponseSchema, listTunnelsParamsSchema, listTunnelsResponseSchema, listWebTTYControlRequestsParamsSchema, listWebTTYKeyGrantDecryptMaterialParamsSchema, listWebTTYSessionGroupsParamsSchema, listWebTTYSessionsParamsSchema, normalizeEngineAddress, parseWebTTYServers, projectLogEventsSchema, readWebTTYSessionEventsParamsSchema, resolveControlPlaneCredentials, resolveManagedTunnelsProject, resolveTunnelsAPIURL, resolveTunnelsCredentials, resolveTunnelsEngine, resolveWebTTYControlRequestParamsSchema, signWebhookPayload, streamEndpointSchema, streamEntrySchema, streamSummaryEventSchema, streamSummarySchema, streamTLSInfoSchema, streamWebTTYMetadataSchema, tunnelFilterSchema, turnCredentialModeSchema, webTTYCapabilitiesSchema, webTTYContextMetadataSchema, webTTYControlRequestSchema, webTTYCryptoMetadataSchema, webTTYEncryptionModeSchema, webTTYKeyGrantDecryptMaterialSchema, webTTYKeyGrantSchema, webTTYOriginSchema, webTTYParticipantLiveSchema, webTTYParticipantRoleSchema, webTTYParticipantSchema, webTTYRecordingModeSchema, webTTYSessionEventSchema, webTTYSessionGroupSchema, webTTYSessionLiveSchema, webTTYSessionModeSchema, webTTYSessionSchema, webTTYTransportSchema, webhookEventsSchema, webttyServerSchema, wsEventsSchema };
6668
+ export { type AttachWebTTYParticipantParams, type BuildWebhookHeadersOptions, type Client, type ClientFilter, type CreateAPITURNCredentialsOptions, type CreateAPPTURNCredentialsOptions, type CreateAuthTokenFromClientCredentialsOptions, type CreatePATTURNCredentialsOptions, type CreateTURNCredentialsOptions, type CreateWebTTYControlRequestParams, type DetachWebTTYParticipantParams, type Event, type InitialState, type ListClientsParams, type ListClientsResponse, type ListTunnelsParams, type ListTunnelsResponse, type ListWebTTYControlRequestsParams, type ListWebTTYKeyGrantDecryptMaterialParams, type ListWebTTYSessionGroupsParams, type ListWebTTYSessionsParams, type ProjectLogEvent, type ReadWebTTYSessionEventsParams, type ResolveWebTTYControlRequestParams, type RstreamAuth, RstreamAuthResource, RstreamAuthResource as RstreamAuthRessource, RstreamTunnelsClient as RstreamClient, RstreamClientsResource, RstreamClientsResource as RstreamClientsRessource, RstreamTURNResource, RstreamTunnelsClient, type RstreamTunnelsConfig, RstreamTunnelsResource, RstreamTunnelsResource as RstreamTunnelsRessource, RstreamWebTTYResource, RstreamWebhookResource, RstreamWebhookResource as RstreamWebhookRessource, type StreamEndpoint, type StreamEntry, type StreamSummary, type StreamTLSInfo, type TURNCredentialMode, type TunnelFilter, RstreamTunnelsClient as Tunnels, type TunnelsResolutionConfig, WEBHOOK_DELIVERY_ID_HEADER, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPE_HEADER, WEBHOOK_ID_HEADER, WEBHOOK_SIGNATURE_HEADER, Watch, type WatchConfig, type WatchWsEvents, type WebTTYCapabilities, type WebTTYControlRequest, type WebTTYKeyGrant, type WebTTYKeyGrantDecryptMaterial, type WebTTYParticipant, type WebTTYParticipantLive, type WebTTYServer, type WebTTYSession, type WebTTYSessionEvent, type WebTTYSessionGroup, type WebTTYSessionLive, type WebhookEvent, type WebhookHeaders, type WebhookPayload, type WsEvent, attachWebTTYParticipantParamsSchema, buildWebhookHeaders, clientFilterSchema, clientSchema, createAPITURNCredentials, createAPPTURNCredentials, createAuthTokenFromClientCredentials, createPATTURNCredentials, createTURNCredentials, createWebTTYControlRequestParamsSchema, detachWebTTYParticipantParamsSchema, eventSchema, formatStreamAccessPath, formatTunnelHost, generateWebhookSigningSecret, listClientsParamsSchema, listClientsResponseSchema, listTunnelsParamsSchema, listTunnelsResponseSchema, listWebTTYControlRequestsParamsSchema, listWebTTYKeyGrantDecryptMaterialParamsSchema, listWebTTYSessionGroupsParamsSchema, listWebTTYSessionsParamsSchema, normalizeEngineAddress, parseWebTTYServers, projectLogEventsSchema, readWebTTYSessionEventsParamsSchema, resolveControlPlaneCredentials, resolveManagedTunnelsProject, resolveTunnelsAPIURL, resolveTunnelsCredentials, resolveTunnelsEngine, resolveTunnelsRegion, resolveWebTTYControlRequestParamsSchema, signWebhookPayload, streamEndpointSchema, streamEntrySchema, streamSummaryEventSchema, streamSummarySchema, streamTLSInfoSchema, streamWebTTYMetadataSchema, tunnelFilterSchema, turnCredentialModeSchema, webTTYCapabilitiesSchema, webTTYContextMetadataSchema, webTTYControlRequestSchema, webTTYCryptoMetadataSchema, webTTYEncryptionModeSchema, webTTYKeyGrantDecryptMaterialSchema, webTTYKeyGrantSchema, webTTYOriginSchema, webTTYParticipantLiveSchema, webTTYParticipantRoleSchema, webTTYParticipantSchema, webTTYRecordingModeSchema, webTTYSessionEventSchema, webTTYSessionGroupSchema, webTTYSessionLiveSchema, webTTYSessionModeSchema, webTTYSessionSchema, webTTYTransportSchema, webhookEventsSchema, webttyServerSchema, wsEventsSchema };