@rstreamlabs/tunnels 3.6.1 → 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.mts 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,21 +94,22 @@ 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";
112
+ tcp: "tcp";
112
113
  dtls: "dtls";
113
114
  quic: "quic";
114
115
  http: "http";
@@ -126,21 +127,22 @@ declare const listTunnelsParamsSchema: z.ZodObject<{
126
127
  limit: z.ZodOptional<z.ZodNumber>;
127
128
  filters: z.ZodOptional<z.ZodObject<{
128
129
  id: z.ZodOptional<z.ZodString>;
130
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
129
131
  status: z.ZodOptional<z.ZodEnum<{
130
132
  online: "online";
131
133
  offline: "offline";
132
134
  }>>;
133
135
  user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
134
136
  labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
135
- client_id: z.ZodOptional<z.ZodString>;
136
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
137
137
  type: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
138
138
  bytestream: "bytestream";
139
139
  datagram: "datagram";
140
140
  }>>>;
141
+ client_id: z.ZodOptional<z.ZodString>;
141
142
  publish: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
142
143
  protocol: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
143
144
  tls: "tls";
145
+ tcp: "tcp";
144
146
  dtls: "dtls";
145
147
  quic: "quic";
146
148
  http: "http";
@@ -178,6 +180,7 @@ declare const listTunnelsResponseSchema: z.ZodArray<z.ZodObject<{
178
180
  publish: z.ZodOptional<z.ZodBoolean>;
179
181
  protocol: z.ZodOptional<z.ZodEnum<{
180
182
  tls: "tls";
183
+ tcp: "tcp";
181
184
  dtls: "dtls";
182
185
  quic: "quic";
183
186
  http: "http";
@@ -223,9 +226,9 @@ declare class RstreamTunnelsResource {
223
226
  }
224
227
 
225
228
  declare const turnCredentialModeSchema: z.ZodEnum<{
226
- api: "api";
227
229
  app: "app";
228
230
  pat: "pat";
231
+ api: "api";
229
232
  }>;
230
233
  type TURNCredentialMode = z.infer<typeof turnCredentialModeSchema>;
231
234
  interface CreateAPITURNCredentialsOptions {
@@ -332,6 +335,7 @@ declare const initialStateSchema: z.ZodObject<{
332
335
  publish: z.ZodOptional<z.ZodBoolean>;
333
336
  protocol: z.ZodOptional<z.ZodEnum<{
334
337
  tls: "tls";
338
+ tcp: "tcp";
335
339
  dtls: "dtls";
336
340
  quic: "quic";
337
341
  http: "http";
@@ -400,12 +404,12 @@ declare const streamSummaryEventSchema: z.ZodObject<{
400
404
  internal: "internal";
401
405
  }>;
402
406
  transport: z.ZodOptional<z.ZodEnum<{
403
- http: "http";
404
- rstream: "rstream";
405
407
  tls: "tls";
408
+ tcp: "tcp";
406
409
  dtls: "dtls";
407
410
  quic: "quic";
408
- tcp: "tcp";
411
+ http: "http";
412
+ rstream: "rstream";
409
413
  }>>;
410
414
  }, z.core.$strip>>;
411
415
  http: z.ZodOptional<z.ZodObject<{
@@ -442,8 +446,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
442
446
  }, z.core.$strip>, z.ZodObject<{
443
447
  kind: z.ZodLiteral<"token">;
444
448
  source: z.ZodOptional<z.ZodEnum<{
445
- query: "query";
446
449
  unknown: "unknown";
450
+ query: "query";
447
451
  authorization: "authorization";
448
452
  client: "client";
449
453
  }>>;
@@ -469,8 +473,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
469
473
  }, z.core.$strip>, z.ZodObject<{
470
474
  kind: z.ZodLiteral<"token">;
471
475
  source: z.ZodOptional<z.ZodEnum<{
472
- query: "query";
473
476
  unknown: "unknown";
477
+ query: "query";
474
478
  authorization: "authorization";
475
479
  client: "client";
476
480
  }>>;
@@ -490,48 +494,48 @@ declare const streamSummaryEventSchema: z.ZodObject<{
490
494
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
491
495
  reason: z.ZodLiteral<"missing_token">;
492
496
  source: z.ZodEnum<{
493
- query: "query";
494
497
  unknown: "unknown";
498
+ query: "query";
495
499
  authorization: "authorization";
496
500
  client: "client";
497
501
  }>;
498
502
  }, z.core.$strip>, z.ZodObject<{
499
503
  reason: z.ZodLiteral<"invalid_token">;
500
504
  source: z.ZodEnum<{
501
- query: "query";
502
505
  unknown: "unknown";
506
+ query: "query";
503
507
  authorization: "authorization";
504
508
  client: "client";
505
509
  }>;
506
510
  }, z.core.$strip>, z.ZodObject<{
507
511
  reason: z.ZodLiteral<"expired_token">;
508
512
  source: z.ZodEnum<{
509
- query: "query";
510
513
  unknown: "unknown";
514
+ query: "query";
511
515
  authorization: "authorization";
512
516
  client: "client";
513
517
  }>;
514
518
  }, z.core.$strip>, z.ZodObject<{
515
519
  reason: z.ZodLiteral<"invalid_secret">;
516
520
  source: z.ZodEnum<{
517
- query: "query";
518
521
  unknown: "unknown";
522
+ query: "query";
519
523
  authorization: "authorization";
520
524
  client: "client";
521
525
  }>;
522
526
  }, z.core.$strip>, z.ZodObject<{
523
527
  reason: z.ZodLiteral<"user_mismatch">;
524
528
  source: z.ZodEnum<{
525
- query: "query";
526
529
  unknown: "unknown";
530
+ query: "query";
527
531
  authorization: "authorization";
528
532
  client: "client";
529
533
  }>;
530
534
  }, z.core.$strip>, z.ZodObject<{
531
535
  reason: z.ZodLiteral<"insufficient_scope">;
532
536
  source: z.ZodEnum<{
533
- query: "query";
534
537
  unknown: "unknown";
538
+ query: "query";
535
539
  authorization: "authorization";
536
540
  client: "client";
537
541
  }>;
@@ -546,8 +550,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
546
550
  }>;
547
551
  value: z.ZodOptional<z.ZodString>;
548
552
  source: z.ZodEnum<{
549
- query: "query";
550
553
  unknown: "unknown";
554
+ query: "query";
551
555
  authorization: "authorization";
552
556
  client: "client";
553
557
  }>;
@@ -594,6 +598,28 @@ declare const streamSummaryEventSchema: z.ZodObject<{
594
598
  tokenAuth: z.ZodOptional<z.ZodBoolean>;
595
599
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
596
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>>;
597
623
  }, z.core.$strip>, z.ZodObject<{
598
624
  decision: z.ZodLiteral<"not_routed">;
599
625
  failure: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -605,48 +631,48 @@ declare const streamSummaryEventSchema: z.ZodObject<{
605
631
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
606
632
  reason: z.ZodLiteral<"missing_token">;
607
633
  source: z.ZodEnum<{
608
- query: "query";
609
634
  unknown: "unknown";
635
+ query: "query";
610
636
  authorization: "authorization";
611
637
  client: "client";
612
638
  }>;
613
639
  }, z.core.$strip>, z.ZodObject<{
614
640
  reason: z.ZodLiteral<"invalid_token">;
615
641
  source: z.ZodEnum<{
616
- query: "query";
617
642
  unknown: "unknown";
643
+ query: "query";
618
644
  authorization: "authorization";
619
645
  client: "client";
620
646
  }>;
621
647
  }, z.core.$strip>, z.ZodObject<{
622
648
  reason: z.ZodLiteral<"expired_token">;
623
649
  source: z.ZodEnum<{
624
- query: "query";
625
650
  unknown: "unknown";
651
+ query: "query";
626
652
  authorization: "authorization";
627
653
  client: "client";
628
654
  }>;
629
655
  }, z.core.$strip>, z.ZodObject<{
630
656
  reason: z.ZodLiteral<"invalid_secret">;
631
657
  source: z.ZodEnum<{
632
- query: "query";
633
658
  unknown: "unknown";
659
+ query: "query";
634
660
  authorization: "authorization";
635
661
  client: "client";
636
662
  }>;
637
663
  }, z.core.$strip>, z.ZodObject<{
638
664
  reason: z.ZodLiteral<"user_mismatch">;
639
665
  source: z.ZodEnum<{
640
- query: "query";
641
666
  unknown: "unknown";
667
+ query: "query";
642
668
  authorization: "authorization";
643
669
  client: "client";
644
670
  }>;
645
671
  }, z.core.$strip>, z.ZodObject<{
646
672
  reason: z.ZodLiteral<"insufficient_scope">;
647
673
  source: z.ZodEnum<{
648
- query: "query";
649
674
  unknown: "unknown";
675
+ query: "query";
650
676
  authorization: "authorization";
651
677
  client: "client";
652
678
  }>;
@@ -661,8 +687,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
661
687
  }>;
662
688
  value: z.ZodOptional<z.ZodString>;
663
689
  source: z.ZodEnum<{
664
- query: "query";
665
690
  unknown: "unknown";
691
+ query: "query";
666
692
  authorization: "authorization";
667
693
  client: "client";
668
694
  }>;
@@ -736,9 +762,9 @@ declare const streamSummaryEventSchema: z.ZodObject<{
736
762
  webtransport: "webtransport";
737
763
  }>>;
738
764
  origin: z.ZodOptional<z.ZodEnum<{
765
+ api: "api";
739
766
  human: "human";
740
767
  codex: "codex";
741
- api: "api";
742
768
  automation: "automation";
743
769
  ci: "ci";
744
770
  "scheduled-job": "scheduled-job";
@@ -746,8 +772,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
746
772
  origin_id: z.ZodOptional<z.ZodString>;
747
773
  initiator_kind: z.ZodOptional<z.ZodEnum<{
748
774
  agent: "agent";
749
- user: "user";
750
775
  app: "app";
776
+ user: "user";
751
777
  "service-account": "service-account";
752
778
  }>>;
753
779
  device_id: z.ZodOptional<z.ZodString>;
@@ -784,10 +810,10 @@ declare const streamSummaryEventSchema: z.ZodObject<{
784
810
  server: "server";
785
811
  }>;
786
812
  reason: z.ZodEnum<{
787
- unknown: "unknown";
788
813
  error: "error";
789
- closed: "closed";
814
+ unknown: "unknown";
790
815
  timeout: "timeout";
816
+ closed: "closed";
791
817
  reset: "reset";
792
818
  }>;
793
819
  message: z.ZodOptional<z.ZodString>;
@@ -815,48 +841,48 @@ declare const streamSummaryEventSchema: z.ZodObject<{
815
841
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
816
842
  reason: z.ZodLiteral<"missing_token">;
817
843
  source: z.ZodEnum<{
818
- query: "query";
819
844
  unknown: "unknown";
845
+ query: "query";
820
846
  authorization: "authorization";
821
847
  client: "client";
822
848
  }>;
823
849
  }, z.core.$strip>, z.ZodObject<{
824
850
  reason: z.ZodLiteral<"invalid_token">;
825
851
  source: z.ZodEnum<{
826
- query: "query";
827
852
  unknown: "unknown";
853
+ query: "query";
828
854
  authorization: "authorization";
829
855
  client: "client";
830
856
  }>;
831
857
  }, z.core.$strip>, z.ZodObject<{
832
858
  reason: z.ZodLiteral<"expired_token">;
833
859
  source: z.ZodEnum<{
834
- query: "query";
835
860
  unknown: "unknown";
861
+ query: "query";
836
862
  authorization: "authorization";
837
863
  client: "client";
838
864
  }>;
839
865
  }, z.core.$strip>, z.ZodObject<{
840
866
  reason: z.ZodLiteral<"invalid_secret">;
841
867
  source: z.ZodEnum<{
842
- query: "query";
843
868
  unknown: "unknown";
869
+ query: "query";
844
870
  authorization: "authorization";
845
871
  client: "client";
846
872
  }>;
847
873
  }, z.core.$strip>, z.ZodObject<{
848
874
  reason: z.ZodLiteral<"user_mismatch">;
849
875
  source: z.ZodEnum<{
850
- query: "query";
851
876
  unknown: "unknown";
877
+ query: "query";
852
878
  authorization: "authorization";
853
879
  client: "client";
854
880
  }>;
855
881
  }, z.core.$strip>, z.ZodObject<{
856
882
  reason: z.ZodLiteral<"insufficient_scope">;
857
883
  source: z.ZodEnum<{
858
- query: "query";
859
884
  unknown: "unknown";
885
+ query: "query";
860
886
  authorization: "authorization";
861
887
  client: "client";
862
888
  }>;
@@ -871,8 +897,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
871
897
  }>;
872
898
  value: z.ZodOptional<z.ZodString>;
873
899
  source: z.ZodEnum<{
874
- query: "query";
875
900
  unknown: "unknown";
901
+ query: "query";
876
902
  authorization: "authorization";
877
903
  client: "client";
878
904
  }>;
@@ -928,10 +954,10 @@ declare const streamSummaryEventSchema: z.ZodObject<{
928
954
  server: "server";
929
955
  }>;
930
956
  reason: z.ZodEnum<{
931
- unknown: "unknown";
932
957
  error: "error";
933
- closed: "closed";
958
+ unknown: "unknown";
934
959
  timeout: "timeout";
960
+ closed: "closed";
935
961
  reset: "reset";
936
962
  }>;
937
963
  message: z.ZodOptional<z.ZodString>;
@@ -1005,6 +1031,7 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1005
1031
  publish: z.ZodOptional<z.ZodBoolean>;
1006
1032
  protocol: z.ZodOptional<z.ZodEnum<{
1007
1033
  tls: "tls";
1034
+ tcp: "tcp";
1008
1035
  dtls: "dtls";
1009
1036
  quic: "quic";
1010
1037
  http: "http";
@@ -1156,6 +1183,7 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1156
1183
  publish: z.ZodOptional<z.ZodBoolean>;
1157
1184
  protocol: z.ZodOptional<z.ZodEnum<{
1158
1185
  tls: "tls";
1186
+ tcp: "tcp";
1159
1187
  dtls: "dtls";
1160
1188
  quic: "quic";
1161
1189
  http: "http";
@@ -1219,6 +1247,7 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1219
1247
  publish: z.ZodOptional<z.ZodBoolean>;
1220
1248
  protocol: z.ZodOptional<z.ZodEnum<{
1221
1249
  tls: "tls";
1250
+ tcp: "tcp";
1222
1251
  dtls: "dtls";
1223
1252
  quic: "quic";
1224
1253
  http: "http";
@@ -1282,6 +1311,7 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1282
1311
  publish: z.ZodOptional<z.ZodBoolean>;
1283
1312
  protocol: z.ZodOptional<z.ZodEnum<{
1284
1313
  tls: "tls";
1314
+ tcp: "tcp";
1285
1315
  dtls: "dtls";
1286
1316
  quic: "quic";
1287
1317
  http: "http";
@@ -1333,10 +1363,10 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1333
1363
  initiator_user_id: z.ZodOptional<z.ZodString>;
1334
1364
  group_id: z.ZodOptional<z.ZodString>;
1335
1365
  status: z.ZodEnum<{
1336
- opening: "opening";
1337
1366
  active: "active";
1338
- closing: "closing";
1339
1367
  closed: "closed";
1368
+ opening: "opening";
1369
+ closing: "closing";
1340
1370
  errored: "errored";
1341
1371
  }>;
1342
1372
  session_mode: z.ZodEnum<{
@@ -1364,9 +1394,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1364
1394
  command_meta: z.ZodOptional<z.ZodUnknown>;
1365
1395
  context: z.ZodOptional<z.ZodObject<{
1366
1396
  origin: z.ZodOptional<z.ZodEnum<{
1397
+ api: "api";
1367
1398
  human: "human";
1368
1399
  codex: "codex";
1369
- api: "api";
1370
1400
  automation: "automation";
1371
1401
  ci: "ci";
1372
1402
  "scheduled-job": "scheduled-job";
@@ -1375,8 +1405,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1375
1405
  purpose: z.ZodOptional<z.ZodString>;
1376
1406
  initiator_kind: z.ZodOptional<z.ZodEnum<{
1377
1407
  agent: "agent";
1378
- user: "user";
1379
1408
  app: "app";
1409
+ user: "user";
1380
1410
  "service-account": "service-account";
1381
1411
  }>>;
1382
1412
  agent_name: z.ZodOptional<z.ZodString>;
@@ -1416,10 +1446,10 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1416
1446
  initiator_user_id: z.ZodOptional<z.ZodString>;
1417
1447
  group_id: z.ZodOptional<z.ZodString>;
1418
1448
  status: z.ZodEnum<{
1419
- opening: "opening";
1420
1449
  active: "active";
1421
- closing: "closing";
1422
1450
  closed: "closed";
1451
+ opening: "opening";
1452
+ closing: "closing";
1423
1453
  errored: "errored";
1424
1454
  }>;
1425
1455
  session_mode: z.ZodEnum<{
@@ -1447,9 +1477,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1447
1477
  command_meta: z.ZodOptional<z.ZodUnknown>;
1448
1478
  context: z.ZodOptional<z.ZodObject<{
1449
1479
  origin: z.ZodOptional<z.ZodEnum<{
1480
+ api: "api";
1450
1481
  human: "human";
1451
1482
  codex: "codex";
1452
- api: "api";
1453
1483
  automation: "automation";
1454
1484
  ci: "ci";
1455
1485
  "scheduled-job": "scheduled-job";
@@ -1458,8 +1488,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1458
1488
  purpose: z.ZodOptional<z.ZodString>;
1459
1489
  initiator_kind: z.ZodOptional<z.ZodEnum<{
1460
1490
  agent: "agent";
1461
- user: "user";
1462
1491
  app: "app";
1492
+ user: "user";
1463
1493
  "service-account": "service-account";
1464
1494
  }>>;
1465
1495
  agent_name: z.ZodOptional<z.ZodString>;
@@ -1486,9 +1516,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1486
1516
  initiator_user_id: z.ZodOptional<z.ZodString>;
1487
1517
  context: z.ZodOptional<z.ZodObject<{
1488
1518
  origin: z.ZodOptional<z.ZodEnum<{
1519
+ api: "api";
1489
1520
  human: "human";
1490
1521
  codex: "codex";
1491
- api: "api";
1492
1522
  automation: "automation";
1493
1523
  ci: "ci";
1494
1524
  "scheduled-job": "scheduled-job";
@@ -1497,8 +1527,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1497
1527
  purpose: z.ZodOptional<z.ZodString>;
1498
1528
  initiator_kind: z.ZodOptional<z.ZodEnum<{
1499
1529
  agent: "agent";
1500
- user: "user";
1501
1530
  app: "app";
1531
+ user: "user";
1502
1532
  "service-account": "service-account";
1503
1533
  }>>;
1504
1534
  agent_name: z.ZodOptional<z.ZodString>;
@@ -1529,10 +1559,10 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1529
1559
  initiator_user_id: z.ZodOptional<z.ZodString>;
1530
1560
  group_id: z.ZodOptional<z.ZodString>;
1531
1561
  status: z.ZodEnum<{
1532
- opening: "opening";
1533
1562
  active: "active";
1534
- closing: "closing";
1535
1563
  closed: "closed";
1564
+ opening: "opening";
1565
+ closing: "closing";
1536
1566
  errored: "errored";
1537
1567
  }>;
1538
1568
  session_mode: z.ZodEnum<{
@@ -1560,9 +1590,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1560
1590
  command_meta: z.ZodOptional<z.ZodUnknown>;
1561
1591
  context: z.ZodOptional<z.ZodObject<{
1562
1592
  origin: z.ZodOptional<z.ZodEnum<{
1593
+ api: "api";
1563
1594
  human: "human";
1564
1595
  codex: "codex";
1565
- api: "api";
1566
1596
  automation: "automation";
1567
1597
  ci: "ci";
1568
1598
  "scheduled-job": "scheduled-job";
@@ -1571,8 +1601,8 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1571
1601
  purpose: z.ZodOptional<z.ZodString>;
1572
1602
  initiator_kind: z.ZodOptional<z.ZodEnum<{
1573
1603
  agent: "agent";
1574
- user: "user";
1575
1604
  app: "app";
1605
+ user: "user";
1576
1606
  "service-account": "service-account";
1577
1607
  }>>;
1578
1608
  agent_name: z.ZodOptional<z.ZodString>;
@@ -1696,9 +1726,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1696
1726
  approver_participant_id: z.ZodOptional<z.ZodString>;
1697
1727
  approver_user_id: z.ZodOptional<z.ZodString>;
1698
1728
  status: z.ZodEnum<{
1729
+ refused: "refused";
1699
1730
  pending: "pending";
1700
1731
  granted: "granted";
1701
- refused: "refused";
1702
1732
  revoked: "revoked";
1703
1733
  expired: "expired";
1704
1734
  }>;
@@ -1725,9 +1755,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1725
1755
  approver_participant_id: z.ZodOptional<z.ZodString>;
1726
1756
  approver_user_id: z.ZodOptional<z.ZodString>;
1727
1757
  status: z.ZodEnum<{
1758
+ refused: "refused";
1728
1759
  pending: "pending";
1729
1760
  granted: "granted";
1730
- refused: "refused";
1731
1761
  revoked: "revoked";
1732
1762
  expired: "expired";
1733
1763
  }>;
@@ -1754,9 +1784,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1754
1784
  approver_participant_id: z.ZodOptional<z.ZodString>;
1755
1785
  approver_user_id: z.ZodOptional<z.ZodString>;
1756
1786
  status: z.ZodEnum<{
1787
+ refused: "refused";
1757
1788
  pending: "pending";
1758
1789
  granted: "granted";
1759
- refused: "refused";
1760
1790
  revoked: "revoked";
1761
1791
  expired: "expired";
1762
1792
  }>;
@@ -1783,9 +1813,9 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1783
1813
  approver_participant_id: z.ZodOptional<z.ZodString>;
1784
1814
  approver_user_id: z.ZodOptional<z.ZodString>;
1785
1815
  status: z.ZodEnum<{
1816
+ refused: "refused";
1786
1817
  pending: "pending";
1787
1818
  granted: "granted";
1788
- refused: "refused";
1789
1819
  revoked: "revoked";
1790
1820
  expired: "expired";
1791
1821
  }>;
@@ -1886,6 +1916,7 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1886
1916
  publish: z.ZodOptional<z.ZodBoolean>;
1887
1917
  protocol: z.ZodOptional<z.ZodEnum<{
1888
1918
  tls: "tls";
1919
+ tcp: "tcp";
1889
1920
  dtls: "dtls";
1890
1921
  quic: "quic";
1891
1922
  http: "http";
@@ -1949,6 +1980,7 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1949
1980
  publish: z.ZodOptional<z.ZodBoolean>;
1950
1981
  protocol: z.ZodOptional<z.ZodEnum<{
1951
1982
  tls: "tls";
1983
+ tcp: "tcp";
1952
1984
  dtls: "dtls";
1953
1985
  quic: "quic";
1954
1986
  http: "http";
@@ -2000,10 +2032,10 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2000
2032
  initiator_user_id: z.ZodOptional<z.ZodString>;
2001
2033
  group_id: z.ZodOptional<z.ZodString>;
2002
2034
  status: z.ZodEnum<{
2003
- opening: "opening";
2004
2035
  active: "active";
2005
- closing: "closing";
2006
2036
  closed: "closed";
2037
+ opening: "opening";
2038
+ closing: "closing";
2007
2039
  errored: "errored";
2008
2040
  }>;
2009
2041
  session_mode: z.ZodEnum<{
@@ -2031,9 +2063,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2031
2063
  command_meta: z.ZodOptional<z.ZodUnknown>;
2032
2064
  context: z.ZodOptional<z.ZodObject<{
2033
2065
  origin: z.ZodOptional<z.ZodEnum<{
2066
+ api: "api";
2034
2067
  human: "human";
2035
2068
  codex: "codex";
2036
- api: "api";
2037
2069
  automation: "automation";
2038
2070
  ci: "ci";
2039
2071
  "scheduled-job": "scheduled-job";
@@ -2042,8 +2074,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2042
2074
  purpose: z.ZodOptional<z.ZodString>;
2043
2075
  initiator_kind: z.ZodOptional<z.ZodEnum<{
2044
2076
  agent: "agent";
2045
- user: "user";
2046
2077
  app: "app";
2078
+ user: "user";
2047
2079
  "service-account": "service-account";
2048
2080
  }>>;
2049
2081
  agent_name: z.ZodOptional<z.ZodString>;
@@ -2083,10 +2115,10 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2083
2115
  initiator_user_id: z.ZodOptional<z.ZodString>;
2084
2116
  group_id: z.ZodOptional<z.ZodString>;
2085
2117
  status: z.ZodEnum<{
2086
- opening: "opening";
2087
2118
  active: "active";
2088
- closing: "closing";
2089
2119
  closed: "closed";
2120
+ opening: "opening";
2121
+ closing: "closing";
2090
2122
  errored: "errored";
2091
2123
  }>;
2092
2124
  session_mode: z.ZodEnum<{
@@ -2114,9 +2146,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2114
2146
  command_meta: z.ZodOptional<z.ZodUnknown>;
2115
2147
  context: z.ZodOptional<z.ZodObject<{
2116
2148
  origin: z.ZodOptional<z.ZodEnum<{
2149
+ api: "api";
2117
2150
  human: "human";
2118
2151
  codex: "codex";
2119
- api: "api";
2120
2152
  automation: "automation";
2121
2153
  ci: "ci";
2122
2154
  "scheduled-job": "scheduled-job";
@@ -2125,8 +2157,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2125
2157
  purpose: z.ZodOptional<z.ZodString>;
2126
2158
  initiator_kind: z.ZodOptional<z.ZodEnum<{
2127
2159
  agent: "agent";
2128
- user: "user";
2129
2160
  app: "app";
2161
+ user: "user";
2130
2162
  "service-account": "service-account";
2131
2163
  }>>;
2132
2164
  agent_name: z.ZodOptional<z.ZodString>;
@@ -2153,9 +2185,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2153
2185
  initiator_user_id: z.ZodOptional<z.ZodString>;
2154
2186
  context: z.ZodOptional<z.ZodObject<{
2155
2187
  origin: z.ZodOptional<z.ZodEnum<{
2188
+ api: "api";
2156
2189
  human: "human";
2157
2190
  codex: "codex";
2158
- api: "api";
2159
2191
  automation: "automation";
2160
2192
  ci: "ci";
2161
2193
  "scheduled-job": "scheduled-job";
@@ -2164,8 +2196,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2164
2196
  purpose: z.ZodOptional<z.ZodString>;
2165
2197
  initiator_kind: z.ZodOptional<z.ZodEnum<{
2166
2198
  agent: "agent";
2167
- user: "user";
2168
2199
  app: "app";
2200
+ user: "user";
2169
2201
  "service-account": "service-account";
2170
2202
  }>>;
2171
2203
  agent_name: z.ZodOptional<z.ZodString>;
@@ -2196,10 +2228,10 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2196
2228
  initiator_user_id: z.ZodOptional<z.ZodString>;
2197
2229
  group_id: z.ZodOptional<z.ZodString>;
2198
2230
  status: z.ZodEnum<{
2199
- opening: "opening";
2200
2231
  active: "active";
2201
- closing: "closing";
2202
2232
  closed: "closed";
2233
+ opening: "opening";
2234
+ closing: "closing";
2203
2235
  errored: "errored";
2204
2236
  }>;
2205
2237
  session_mode: z.ZodEnum<{
@@ -2227,9 +2259,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2227
2259
  command_meta: z.ZodOptional<z.ZodUnknown>;
2228
2260
  context: z.ZodOptional<z.ZodObject<{
2229
2261
  origin: z.ZodOptional<z.ZodEnum<{
2262
+ api: "api";
2230
2263
  human: "human";
2231
2264
  codex: "codex";
2232
- api: "api";
2233
2265
  automation: "automation";
2234
2266
  ci: "ci";
2235
2267
  "scheduled-job": "scheduled-job";
@@ -2238,8 +2270,8 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2238
2270
  purpose: z.ZodOptional<z.ZodString>;
2239
2271
  initiator_kind: z.ZodOptional<z.ZodEnum<{
2240
2272
  agent: "agent";
2241
- user: "user";
2242
2273
  app: "app";
2274
+ user: "user";
2243
2275
  "service-account": "service-account";
2244
2276
  }>>;
2245
2277
  agent_name: z.ZodOptional<z.ZodString>;
@@ -2363,9 +2395,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2363
2395
  approver_participant_id: z.ZodOptional<z.ZodString>;
2364
2396
  approver_user_id: z.ZodOptional<z.ZodString>;
2365
2397
  status: z.ZodEnum<{
2398
+ refused: "refused";
2366
2399
  pending: "pending";
2367
2400
  granted: "granted";
2368
- refused: "refused";
2369
2401
  revoked: "revoked";
2370
2402
  expired: "expired";
2371
2403
  }>;
@@ -2392,9 +2424,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2392
2424
  approver_participant_id: z.ZodOptional<z.ZodString>;
2393
2425
  approver_user_id: z.ZodOptional<z.ZodString>;
2394
2426
  status: z.ZodEnum<{
2427
+ refused: "refused";
2395
2428
  pending: "pending";
2396
2429
  granted: "granted";
2397
- refused: "refused";
2398
2430
  revoked: "revoked";
2399
2431
  expired: "expired";
2400
2432
  }>;
@@ -2421,9 +2453,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2421
2453
  approver_participant_id: z.ZodOptional<z.ZodString>;
2422
2454
  approver_user_id: z.ZodOptional<z.ZodString>;
2423
2455
  status: z.ZodEnum<{
2456
+ refused: "refused";
2424
2457
  pending: "pending";
2425
2458
  granted: "granted";
2426
- refused: "refused";
2427
2459
  revoked: "revoked";
2428
2460
  expired: "expired";
2429
2461
  }>;
@@ -2450,9 +2482,9 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2450
2482
  approver_participant_id: z.ZodOptional<z.ZodString>;
2451
2483
  approver_user_id: z.ZodOptional<z.ZodString>;
2452
2484
  status: z.ZodEnum<{
2485
+ refused: "refused";
2453
2486
  pending: "pending";
2454
2487
  granted: "granted";
2455
- refused: "refused";
2456
2488
  revoked: "revoked";
2457
2489
  expired: "expired";
2458
2490
  }>;
@@ -2505,12 +2537,12 @@ declare const projectLogEventsSchema: z.ZodObject<{
2505
2537
  internal: "internal";
2506
2538
  }>;
2507
2539
  transport: z.ZodOptional<z.ZodEnum<{
2508
- http: "http";
2509
- rstream: "rstream";
2510
2540
  tls: "tls";
2541
+ tcp: "tcp";
2511
2542
  dtls: "dtls";
2512
2543
  quic: "quic";
2513
- tcp: "tcp";
2544
+ http: "http";
2545
+ rstream: "rstream";
2514
2546
  }>>;
2515
2547
  }, z.core.$strip>>;
2516
2548
  http: z.ZodOptional<z.ZodObject<{
@@ -2547,8 +2579,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2547
2579
  }, z.core.$strip>, z.ZodObject<{
2548
2580
  kind: z.ZodLiteral<"token">;
2549
2581
  source: z.ZodOptional<z.ZodEnum<{
2550
- query: "query";
2551
2582
  unknown: "unknown";
2583
+ query: "query";
2552
2584
  authorization: "authorization";
2553
2585
  client: "client";
2554
2586
  }>>;
@@ -2574,8 +2606,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2574
2606
  }, z.core.$strip>, z.ZodObject<{
2575
2607
  kind: z.ZodLiteral<"token">;
2576
2608
  source: z.ZodOptional<z.ZodEnum<{
2577
- query: "query";
2578
2609
  unknown: "unknown";
2610
+ query: "query";
2579
2611
  authorization: "authorization";
2580
2612
  client: "client";
2581
2613
  }>>;
@@ -2595,48 +2627,48 @@ declare const projectLogEventsSchema: z.ZodObject<{
2595
2627
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
2596
2628
  reason: z.ZodLiteral<"missing_token">;
2597
2629
  source: z.ZodEnum<{
2598
- query: "query";
2599
2630
  unknown: "unknown";
2631
+ query: "query";
2600
2632
  authorization: "authorization";
2601
2633
  client: "client";
2602
2634
  }>;
2603
2635
  }, z.core.$strip>, z.ZodObject<{
2604
2636
  reason: z.ZodLiteral<"invalid_token">;
2605
2637
  source: z.ZodEnum<{
2606
- query: "query";
2607
2638
  unknown: "unknown";
2639
+ query: "query";
2608
2640
  authorization: "authorization";
2609
2641
  client: "client";
2610
2642
  }>;
2611
2643
  }, z.core.$strip>, z.ZodObject<{
2612
2644
  reason: z.ZodLiteral<"expired_token">;
2613
2645
  source: z.ZodEnum<{
2614
- query: "query";
2615
2646
  unknown: "unknown";
2647
+ query: "query";
2616
2648
  authorization: "authorization";
2617
2649
  client: "client";
2618
2650
  }>;
2619
2651
  }, z.core.$strip>, z.ZodObject<{
2620
2652
  reason: z.ZodLiteral<"invalid_secret">;
2621
2653
  source: z.ZodEnum<{
2622
- query: "query";
2623
2654
  unknown: "unknown";
2655
+ query: "query";
2624
2656
  authorization: "authorization";
2625
2657
  client: "client";
2626
2658
  }>;
2627
2659
  }, z.core.$strip>, z.ZodObject<{
2628
2660
  reason: z.ZodLiteral<"user_mismatch">;
2629
2661
  source: z.ZodEnum<{
2630
- query: "query";
2631
2662
  unknown: "unknown";
2663
+ query: "query";
2632
2664
  authorization: "authorization";
2633
2665
  client: "client";
2634
2666
  }>;
2635
2667
  }, z.core.$strip>, z.ZodObject<{
2636
2668
  reason: z.ZodLiteral<"insufficient_scope">;
2637
2669
  source: z.ZodEnum<{
2638
- query: "query";
2639
2670
  unknown: "unknown";
2671
+ query: "query";
2640
2672
  authorization: "authorization";
2641
2673
  client: "client";
2642
2674
  }>;
@@ -2651,8 +2683,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2651
2683
  }>;
2652
2684
  value: z.ZodOptional<z.ZodString>;
2653
2685
  source: z.ZodEnum<{
2654
- query: "query";
2655
2686
  unknown: "unknown";
2687
+ query: "query";
2656
2688
  authorization: "authorization";
2657
2689
  client: "client";
2658
2690
  }>;
@@ -2699,6 +2731,28 @@ declare const projectLogEventsSchema: z.ZodObject<{
2699
2731
  tokenAuth: z.ZodOptional<z.ZodBoolean>;
2700
2732
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
2701
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>>;
2702
2756
  }, z.core.$strip>, z.ZodObject<{
2703
2757
  decision: z.ZodLiteral<"not_routed">;
2704
2758
  failure: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2710,48 +2764,48 @@ declare const projectLogEventsSchema: z.ZodObject<{
2710
2764
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
2711
2765
  reason: z.ZodLiteral<"missing_token">;
2712
2766
  source: z.ZodEnum<{
2713
- query: "query";
2714
2767
  unknown: "unknown";
2768
+ query: "query";
2715
2769
  authorization: "authorization";
2716
2770
  client: "client";
2717
2771
  }>;
2718
2772
  }, z.core.$strip>, z.ZodObject<{
2719
2773
  reason: z.ZodLiteral<"invalid_token">;
2720
2774
  source: z.ZodEnum<{
2721
- query: "query";
2722
2775
  unknown: "unknown";
2776
+ query: "query";
2723
2777
  authorization: "authorization";
2724
2778
  client: "client";
2725
2779
  }>;
2726
2780
  }, z.core.$strip>, z.ZodObject<{
2727
2781
  reason: z.ZodLiteral<"expired_token">;
2728
2782
  source: z.ZodEnum<{
2729
- query: "query";
2730
2783
  unknown: "unknown";
2784
+ query: "query";
2731
2785
  authorization: "authorization";
2732
2786
  client: "client";
2733
2787
  }>;
2734
2788
  }, z.core.$strip>, z.ZodObject<{
2735
2789
  reason: z.ZodLiteral<"invalid_secret">;
2736
2790
  source: z.ZodEnum<{
2737
- query: "query";
2738
2791
  unknown: "unknown";
2792
+ query: "query";
2739
2793
  authorization: "authorization";
2740
2794
  client: "client";
2741
2795
  }>;
2742
2796
  }, z.core.$strip>, z.ZodObject<{
2743
2797
  reason: z.ZodLiteral<"user_mismatch">;
2744
2798
  source: z.ZodEnum<{
2745
- query: "query";
2746
2799
  unknown: "unknown";
2800
+ query: "query";
2747
2801
  authorization: "authorization";
2748
2802
  client: "client";
2749
2803
  }>;
2750
2804
  }, z.core.$strip>, z.ZodObject<{
2751
2805
  reason: z.ZodLiteral<"insufficient_scope">;
2752
2806
  source: z.ZodEnum<{
2753
- query: "query";
2754
2807
  unknown: "unknown";
2808
+ query: "query";
2755
2809
  authorization: "authorization";
2756
2810
  client: "client";
2757
2811
  }>;
@@ -2766,8 +2820,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2766
2820
  }>;
2767
2821
  value: z.ZodOptional<z.ZodString>;
2768
2822
  source: z.ZodEnum<{
2769
- query: "query";
2770
2823
  unknown: "unknown";
2824
+ query: "query";
2771
2825
  authorization: "authorization";
2772
2826
  client: "client";
2773
2827
  }>;
@@ -2841,9 +2895,9 @@ declare const projectLogEventsSchema: z.ZodObject<{
2841
2895
  webtransport: "webtransport";
2842
2896
  }>>;
2843
2897
  origin: z.ZodOptional<z.ZodEnum<{
2898
+ api: "api";
2844
2899
  human: "human";
2845
2900
  codex: "codex";
2846
- api: "api";
2847
2901
  automation: "automation";
2848
2902
  ci: "ci";
2849
2903
  "scheduled-job": "scheduled-job";
@@ -2851,8 +2905,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2851
2905
  origin_id: z.ZodOptional<z.ZodString>;
2852
2906
  initiator_kind: z.ZodOptional<z.ZodEnum<{
2853
2907
  agent: "agent";
2854
- user: "user";
2855
2908
  app: "app";
2909
+ user: "user";
2856
2910
  "service-account": "service-account";
2857
2911
  }>>;
2858
2912
  device_id: z.ZodOptional<z.ZodString>;
@@ -2889,10 +2943,10 @@ declare const projectLogEventsSchema: z.ZodObject<{
2889
2943
  server: "server";
2890
2944
  }>;
2891
2945
  reason: z.ZodEnum<{
2892
- unknown: "unknown";
2893
2946
  error: "error";
2894
- closed: "closed";
2947
+ unknown: "unknown";
2895
2948
  timeout: "timeout";
2949
+ closed: "closed";
2896
2950
  reset: "reset";
2897
2951
  }>;
2898
2952
  message: z.ZodOptional<z.ZodString>;
@@ -2920,48 +2974,48 @@ declare const projectLogEventsSchema: z.ZodObject<{
2920
2974
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
2921
2975
  reason: z.ZodLiteral<"missing_token">;
2922
2976
  source: z.ZodEnum<{
2923
- query: "query";
2924
2977
  unknown: "unknown";
2978
+ query: "query";
2925
2979
  authorization: "authorization";
2926
2980
  client: "client";
2927
2981
  }>;
2928
2982
  }, z.core.$strip>, z.ZodObject<{
2929
2983
  reason: z.ZodLiteral<"invalid_token">;
2930
2984
  source: z.ZodEnum<{
2931
- query: "query";
2932
2985
  unknown: "unknown";
2986
+ query: "query";
2933
2987
  authorization: "authorization";
2934
2988
  client: "client";
2935
2989
  }>;
2936
2990
  }, z.core.$strip>, z.ZodObject<{
2937
2991
  reason: z.ZodLiteral<"expired_token">;
2938
2992
  source: z.ZodEnum<{
2939
- query: "query";
2940
2993
  unknown: "unknown";
2994
+ query: "query";
2941
2995
  authorization: "authorization";
2942
2996
  client: "client";
2943
2997
  }>;
2944
2998
  }, z.core.$strip>, z.ZodObject<{
2945
2999
  reason: z.ZodLiteral<"invalid_secret">;
2946
3000
  source: z.ZodEnum<{
2947
- query: "query";
2948
3001
  unknown: "unknown";
3002
+ query: "query";
2949
3003
  authorization: "authorization";
2950
3004
  client: "client";
2951
3005
  }>;
2952
3006
  }, z.core.$strip>, z.ZodObject<{
2953
3007
  reason: z.ZodLiteral<"user_mismatch">;
2954
3008
  source: z.ZodEnum<{
2955
- query: "query";
2956
3009
  unknown: "unknown";
3010
+ query: "query";
2957
3011
  authorization: "authorization";
2958
3012
  client: "client";
2959
3013
  }>;
2960
3014
  }, z.core.$strip>, z.ZodObject<{
2961
3015
  reason: z.ZodLiteral<"insufficient_scope">;
2962
3016
  source: z.ZodEnum<{
2963
- query: "query";
2964
3017
  unknown: "unknown";
3018
+ query: "query";
2965
3019
  authorization: "authorization";
2966
3020
  client: "client";
2967
3021
  }>;
@@ -2976,8 +3030,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2976
3030
  }>;
2977
3031
  value: z.ZodOptional<z.ZodString>;
2978
3032
  source: z.ZodEnum<{
2979
- query: "query";
2980
3033
  unknown: "unknown";
3034
+ query: "query";
2981
3035
  authorization: "authorization";
2982
3036
  client: "client";
2983
3037
  }>;
@@ -3033,10 +3087,10 @@ declare const projectLogEventsSchema: z.ZodObject<{
3033
3087
  server: "server";
3034
3088
  }>;
3035
3089
  reason: z.ZodEnum<{
3036
- unknown: "unknown";
3037
3090
  error: "error";
3038
- closed: "closed";
3091
+ unknown: "unknown";
3039
3092
  timeout: "timeout";
3093
+ closed: "closed";
3040
3094
  reset: "reset";
3041
3095
  }>;
3042
3096
  message: z.ZodOptional<z.ZodString>;
@@ -3110,6 +3164,7 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3110
3164
  publish: z.ZodOptional<z.ZodBoolean>;
3111
3165
  protocol: z.ZodOptional<z.ZodEnum<{
3112
3166
  tls: "tls";
3167
+ tcp: "tcp";
3113
3168
  dtls: "dtls";
3114
3169
  quic: "quic";
3115
3170
  http: "http";
@@ -3261,6 +3316,7 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3261
3316
  publish: z.ZodOptional<z.ZodBoolean>;
3262
3317
  protocol: z.ZodOptional<z.ZodEnum<{
3263
3318
  tls: "tls";
3319
+ tcp: "tcp";
3264
3320
  dtls: "dtls";
3265
3321
  quic: "quic";
3266
3322
  http: "http";
@@ -3324,6 +3380,7 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3324
3380
  publish: z.ZodOptional<z.ZodBoolean>;
3325
3381
  protocol: z.ZodOptional<z.ZodEnum<{
3326
3382
  tls: "tls";
3383
+ tcp: "tcp";
3327
3384
  dtls: "dtls";
3328
3385
  quic: "quic";
3329
3386
  http: "http";
@@ -3387,6 +3444,7 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3387
3444
  publish: z.ZodOptional<z.ZodBoolean>;
3388
3445
  protocol: z.ZodOptional<z.ZodEnum<{
3389
3446
  tls: "tls";
3447
+ tcp: "tcp";
3390
3448
  dtls: "dtls";
3391
3449
  quic: "quic";
3392
3450
  http: "http";
@@ -3438,10 +3496,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3438
3496
  initiator_user_id: z.ZodOptional<z.ZodString>;
3439
3497
  group_id: z.ZodOptional<z.ZodString>;
3440
3498
  status: z.ZodEnum<{
3441
- opening: "opening";
3442
3499
  active: "active";
3443
- closing: "closing";
3444
3500
  closed: "closed";
3501
+ opening: "opening";
3502
+ closing: "closing";
3445
3503
  errored: "errored";
3446
3504
  }>;
3447
3505
  session_mode: z.ZodEnum<{
@@ -3469,9 +3527,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3469
3527
  command_meta: z.ZodOptional<z.ZodUnknown>;
3470
3528
  context: z.ZodOptional<z.ZodObject<{
3471
3529
  origin: z.ZodOptional<z.ZodEnum<{
3530
+ api: "api";
3472
3531
  human: "human";
3473
3532
  codex: "codex";
3474
- api: "api";
3475
3533
  automation: "automation";
3476
3534
  ci: "ci";
3477
3535
  "scheduled-job": "scheduled-job";
@@ -3480,8 +3538,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3480
3538
  purpose: z.ZodOptional<z.ZodString>;
3481
3539
  initiator_kind: z.ZodOptional<z.ZodEnum<{
3482
3540
  agent: "agent";
3483
- user: "user";
3484
3541
  app: "app";
3542
+ user: "user";
3485
3543
  "service-account": "service-account";
3486
3544
  }>>;
3487
3545
  agent_name: z.ZodOptional<z.ZodString>;
@@ -3521,10 +3579,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3521
3579
  initiator_user_id: z.ZodOptional<z.ZodString>;
3522
3580
  group_id: z.ZodOptional<z.ZodString>;
3523
3581
  status: z.ZodEnum<{
3524
- opening: "opening";
3525
3582
  active: "active";
3526
- closing: "closing";
3527
3583
  closed: "closed";
3584
+ opening: "opening";
3585
+ closing: "closing";
3528
3586
  errored: "errored";
3529
3587
  }>;
3530
3588
  session_mode: z.ZodEnum<{
@@ -3552,9 +3610,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3552
3610
  command_meta: z.ZodOptional<z.ZodUnknown>;
3553
3611
  context: z.ZodOptional<z.ZodObject<{
3554
3612
  origin: z.ZodOptional<z.ZodEnum<{
3613
+ api: "api";
3555
3614
  human: "human";
3556
3615
  codex: "codex";
3557
- api: "api";
3558
3616
  automation: "automation";
3559
3617
  ci: "ci";
3560
3618
  "scheduled-job": "scheduled-job";
@@ -3563,8 +3621,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3563
3621
  purpose: z.ZodOptional<z.ZodString>;
3564
3622
  initiator_kind: z.ZodOptional<z.ZodEnum<{
3565
3623
  agent: "agent";
3566
- user: "user";
3567
3624
  app: "app";
3625
+ user: "user";
3568
3626
  "service-account": "service-account";
3569
3627
  }>>;
3570
3628
  agent_name: z.ZodOptional<z.ZodString>;
@@ -3591,9 +3649,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3591
3649
  initiator_user_id: z.ZodOptional<z.ZodString>;
3592
3650
  context: z.ZodOptional<z.ZodObject<{
3593
3651
  origin: z.ZodOptional<z.ZodEnum<{
3652
+ api: "api";
3594
3653
  human: "human";
3595
3654
  codex: "codex";
3596
- api: "api";
3597
3655
  automation: "automation";
3598
3656
  ci: "ci";
3599
3657
  "scheduled-job": "scheduled-job";
@@ -3602,8 +3660,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3602
3660
  purpose: z.ZodOptional<z.ZodString>;
3603
3661
  initiator_kind: z.ZodOptional<z.ZodEnum<{
3604
3662
  agent: "agent";
3605
- user: "user";
3606
3663
  app: "app";
3664
+ user: "user";
3607
3665
  "service-account": "service-account";
3608
3666
  }>>;
3609
3667
  agent_name: z.ZodOptional<z.ZodString>;
@@ -3634,10 +3692,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3634
3692
  initiator_user_id: z.ZodOptional<z.ZodString>;
3635
3693
  group_id: z.ZodOptional<z.ZodString>;
3636
3694
  status: z.ZodEnum<{
3637
- opening: "opening";
3638
3695
  active: "active";
3639
- closing: "closing";
3640
3696
  closed: "closed";
3697
+ opening: "opening";
3698
+ closing: "closing";
3641
3699
  errored: "errored";
3642
3700
  }>;
3643
3701
  session_mode: z.ZodEnum<{
@@ -3665,9 +3723,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3665
3723
  command_meta: z.ZodOptional<z.ZodUnknown>;
3666
3724
  context: z.ZodOptional<z.ZodObject<{
3667
3725
  origin: z.ZodOptional<z.ZodEnum<{
3726
+ api: "api";
3668
3727
  human: "human";
3669
3728
  codex: "codex";
3670
- api: "api";
3671
3729
  automation: "automation";
3672
3730
  ci: "ci";
3673
3731
  "scheduled-job": "scheduled-job";
@@ -3676,8 +3734,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3676
3734
  purpose: z.ZodOptional<z.ZodString>;
3677
3735
  initiator_kind: z.ZodOptional<z.ZodEnum<{
3678
3736
  agent: "agent";
3679
- user: "user";
3680
3737
  app: "app";
3738
+ user: "user";
3681
3739
  "service-account": "service-account";
3682
3740
  }>>;
3683
3741
  agent_name: z.ZodOptional<z.ZodString>;
@@ -3801,9 +3859,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3801
3859
  approver_participant_id: z.ZodOptional<z.ZodString>;
3802
3860
  approver_user_id: z.ZodOptional<z.ZodString>;
3803
3861
  status: z.ZodEnum<{
3862
+ refused: "refused";
3804
3863
  pending: "pending";
3805
3864
  granted: "granted";
3806
- refused: "refused";
3807
3865
  revoked: "revoked";
3808
3866
  expired: "expired";
3809
3867
  }>;
@@ -3830,9 +3888,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3830
3888
  approver_participant_id: z.ZodOptional<z.ZodString>;
3831
3889
  approver_user_id: z.ZodOptional<z.ZodString>;
3832
3890
  status: z.ZodEnum<{
3891
+ refused: "refused";
3833
3892
  pending: "pending";
3834
3893
  granted: "granted";
3835
- refused: "refused";
3836
3894
  revoked: "revoked";
3837
3895
  expired: "expired";
3838
3896
  }>;
@@ -3859,9 +3917,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3859
3917
  approver_participant_id: z.ZodOptional<z.ZodString>;
3860
3918
  approver_user_id: z.ZodOptional<z.ZodString>;
3861
3919
  status: z.ZodEnum<{
3920
+ refused: "refused";
3862
3921
  pending: "pending";
3863
3922
  granted: "granted";
3864
- refused: "refused";
3865
3923
  revoked: "revoked";
3866
3924
  expired: "expired";
3867
3925
  }>;
@@ -3888,9 +3946,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3888
3946
  approver_participant_id: z.ZodOptional<z.ZodString>;
3889
3947
  approver_user_id: z.ZodOptional<z.ZodString>;
3890
3948
  status: z.ZodEnum<{
3949
+ refused: "refused";
3891
3950
  pending: "pending";
3892
3951
  granted: "granted";
3893
- refused: "refused";
3894
3952
  revoked: "revoked";
3895
3953
  expired: "expired";
3896
3954
  }>;
@@ -3990,6 +4048,7 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3990
4048
  publish: z.ZodOptional<z.ZodBoolean>;
3991
4049
  protocol: z.ZodOptional<z.ZodEnum<{
3992
4050
  tls: "tls";
4051
+ tcp: "tcp";
3993
4052
  dtls: "dtls";
3994
4053
  quic: "quic";
3995
4054
  http: "http";
@@ -4053,6 +4112,7 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4053
4112
  publish: z.ZodOptional<z.ZodBoolean>;
4054
4113
  protocol: z.ZodOptional<z.ZodEnum<{
4055
4114
  tls: "tls";
4115
+ tcp: "tcp";
4056
4116
  dtls: "dtls";
4057
4117
  quic: "quic";
4058
4118
  http: "http";
@@ -4104,10 +4164,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4104
4164
  initiator_user_id: z.ZodOptional<z.ZodString>;
4105
4165
  group_id: z.ZodOptional<z.ZodString>;
4106
4166
  status: z.ZodEnum<{
4107
- opening: "opening";
4108
4167
  active: "active";
4109
- closing: "closing";
4110
4168
  closed: "closed";
4169
+ opening: "opening";
4170
+ closing: "closing";
4111
4171
  errored: "errored";
4112
4172
  }>;
4113
4173
  session_mode: z.ZodEnum<{
@@ -4135,9 +4195,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4135
4195
  command_meta: z.ZodOptional<z.ZodUnknown>;
4136
4196
  context: z.ZodOptional<z.ZodObject<{
4137
4197
  origin: z.ZodOptional<z.ZodEnum<{
4198
+ api: "api";
4138
4199
  human: "human";
4139
4200
  codex: "codex";
4140
- api: "api";
4141
4201
  automation: "automation";
4142
4202
  ci: "ci";
4143
4203
  "scheduled-job": "scheduled-job";
@@ -4146,8 +4206,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4146
4206
  purpose: z.ZodOptional<z.ZodString>;
4147
4207
  initiator_kind: z.ZodOptional<z.ZodEnum<{
4148
4208
  agent: "agent";
4149
- user: "user";
4150
4209
  app: "app";
4210
+ user: "user";
4151
4211
  "service-account": "service-account";
4152
4212
  }>>;
4153
4213
  agent_name: z.ZodOptional<z.ZodString>;
@@ -4187,10 +4247,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4187
4247
  initiator_user_id: z.ZodOptional<z.ZodString>;
4188
4248
  group_id: z.ZodOptional<z.ZodString>;
4189
4249
  status: z.ZodEnum<{
4190
- opening: "opening";
4191
4250
  active: "active";
4192
- closing: "closing";
4193
4251
  closed: "closed";
4252
+ opening: "opening";
4253
+ closing: "closing";
4194
4254
  errored: "errored";
4195
4255
  }>;
4196
4256
  session_mode: z.ZodEnum<{
@@ -4218,9 +4278,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4218
4278
  command_meta: z.ZodOptional<z.ZodUnknown>;
4219
4279
  context: z.ZodOptional<z.ZodObject<{
4220
4280
  origin: z.ZodOptional<z.ZodEnum<{
4281
+ api: "api";
4221
4282
  human: "human";
4222
4283
  codex: "codex";
4223
- api: "api";
4224
4284
  automation: "automation";
4225
4285
  ci: "ci";
4226
4286
  "scheduled-job": "scheduled-job";
@@ -4229,8 +4289,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4229
4289
  purpose: z.ZodOptional<z.ZodString>;
4230
4290
  initiator_kind: z.ZodOptional<z.ZodEnum<{
4231
4291
  agent: "agent";
4232
- user: "user";
4233
4292
  app: "app";
4293
+ user: "user";
4234
4294
  "service-account": "service-account";
4235
4295
  }>>;
4236
4296
  agent_name: z.ZodOptional<z.ZodString>;
@@ -4257,9 +4317,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4257
4317
  initiator_user_id: z.ZodOptional<z.ZodString>;
4258
4318
  context: z.ZodOptional<z.ZodObject<{
4259
4319
  origin: z.ZodOptional<z.ZodEnum<{
4320
+ api: "api";
4260
4321
  human: "human";
4261
4322
  codex: "codex";
4262
- api: "api";
4263
4323
  automation: "automation";
4264
4324
  ci: "ci";
4265
4325
  "scheduled-job": "scheduled-job";
@@ -4268,8 +4328,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4268
4328
  purpose: z.ZodOptional<z.ZodString>;
4269
4329
  initiator_kind: z.ZodOptional<z.ZodEnum<{
4270
4330
  agent: "agent";
4271
- user: "user";
4272
4331
  app: "app";
4332
+ user: "user";
4273
4333
  "service-account": "service-account";
4274
4334
  }>>;
4275
4335
  agent_name: z.ZodOptional<z.ZodString>;
@@ -4300,10 +4360,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4300
4360
  initiator_user_id: z.ZodOptional<z.ZodString>;
4301
4361
  group_id: z.ZodOptional<z.ZodString>;
4302
4362
  status: z.ZodEnum<{
4303
- opening: "opening";
4304
4363
  active: "active";
4305
- closing: "closing";
4306
4364
  closed: "closed";
4365
+ opening: "opening";
4366
+ closing: "closing";
4307
4367
  errored: "errored";
4308
4368
  }>;
4309
4369
  session_mode: z.ZodEnum<{
@@ -4331,9 +4391,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4331
4391
  command_meta: z.ZodOptional<z.ZodUnknown>;
4332
4392
  context: z.ZodOptional<z.ZodObject<{
4333
4393
  origin: z.ZodOptional<z.ZodEnum<{
4394
+ api: "api";
4334
4395
  human: "human";
4335
4396
  codex: "codex";
4336
- api: "api";
4337
4397
  automation: "automation";
4338
4398
  ci: "ci";
4339
4399
  "scheduled-job": "scheduled-job";
@@ -4342,8 +4402,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4342
4402
  purpose: z.ZodOptional<z.ZodString>;
4343
4403
  initiator_kind: z.ZodOptional<z.ZodEnum<{
4344
4404
  agent: "agent";
4345
- user: "user";
4346
4405
  app: "app";
4406
+ user: "user";
4347
4407
  "service-account": "service-account";
4348
4408
  }>>;
4349
4409
  agent_name: z.ZodOptional<z.ZodString>;
@@ -4467,9 +4527,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4467
4527
  approver_participant_id: z.ZodOptional<z.ZodString>;
4468
4528
  approver_user_id: z.ZodOptional<z.ZodString>;
4469
4529
  status: z.ZodEnum<{
4530
+ refused: "refused";
4470
4531
  pending: "pending";
4471
4532
  granted: "granted";
4472
- refused: "refused";
4473
4533
  revoked: "revoked";
4474
4534
  expired: "expired";
4475
4535
  }>;
@@ -4496,9 +4556,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4496
4556
  approver_participant_id: z.ZodOptional<z.ZodString>;
4497
4557
  approver_user_id: z.ZodOptional<z.ZodString>;
4498
4558
  status: z.ZodEnum<{
4559
+ refused: "refused";
4499
4560
  pending: "pending";
4500
4561
  granted: "granted";
4501
- refused: "refused";
4502
4562
  revoked: "revoked";
4503
4563
  expired: "expired";
4504
4564
  }>;
@@ -4525,9 +4585,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4525
4585
  approver_participant_id: z.ZodOptional<z.ZodString>;
4526
4586
  approver_user_id: z.ZodOptional<z.ZodString>;
4527
4587
  status: z.ZodEnum<{
4588
+ refused: "refused";
4528
4589
  pending: "pending";
4529
4590
  granted: "granted";
4530
- refused: "refused";
4531
4591
  revoked: "revoked";
4532
4592
  expired: "expired";
4533
4593
  }>;
@@ -4554,9 +4614,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4554
4614
  approver_participant_id: z.ZodOptional<z.ZodString>;
4555
4615
  approver_user_id: z.ZodOptional<z.ZodString>;
4556
4616
  status: z.ZodEnum<{
4617
+ refused: "refused";
4557
4618
  pending: "pending";
4558
4619
  granted: "granted";
4559
- refused: "refused";
4560
4620
  revoked: "revoked";
4561
4621
  expired: "expired";
4562
4622
  }>;
@@ -4608,12 +4668,12 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4608
4668
  internal: "internal";
4609
4669
  }>;
4610
4670
  transport: z.ZodOptional<z.ZodEnum<{
4611
- http: "http";
4612
- rstream: "rstream";
4613
4671
  tls: "tls";
4672
+ tcp: "tcp";
4614
4673
  dtls: "dtls";
4615
4674
  quic: "quic";
4616
- tcp: "tcp";
4675
+ http: "http";
4676
+ rstream: "rstream";
4617
4677
  }>>;
4618
4678
  }, z.core.$strip>>;
4619
4679
  http: z.ZodOptional<z.ZodObject<{
@@ -4650,8 +4710,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4650
4710
  }, z.core.$strip>, z.ZodObject<{
4651
4711
  kind: z.ZodLiteral<"token">;
4652
4712
  source: z.ZodOptional<z.ZodEnum<{
4653
- query: "query";
4654
4713
  unknown: "unknown";
4714
+ query: "query";
4655
4715
  authorization: "authorization";
4656
4716
  client: "client";
4657
4717
  }>>;
@@ -4677,8 +4737,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4677
4737
  }, z.core.$strip>, z.ZodObject<{
4678
4738
  kind: z.ZodLiteral<"token">;
4679
4739
  source: z.ZodOptional<z.ZodEnum<{
4680
- query: "query";
4681
4740
  unknown: "unknown";
4741
+ query: "query";
4682
4742
  authorization: "authorization";
4683
4743
  client: "client";
4684
4744
  }>>;
@@ -4698,48 +4758,48 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4698
4758
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
4699
4759
  reason: z.ZodLiteral<"missing_token">;
4700
4760
  source: z.ZodEnum<{
4701
- query: "query";
4702
4761
  unknown: "unknown";
4762
+ query: "query";
4703
4763
  authorization: "authorization";
4704
4764
  client: "client";
4705
4765
  }>;
4706
4766
  }, z.core.$strip>, z.ZodObject<{
4707
4767
  reason: z.ZodLiteral<"invalid_token">;
4708
4768
  source: z.ZodEnum<{
4709
- query: "query";
4710
4769
  unknown: "unknown";
4770
+ query: "query";
4711
4771
  authorization: "authorization";
4712
4772
  client: "client";
4713
4773
  }>;
4714
4774
  }, z.core.$strip>, z.ZodObject<{
4715
4775
  reason: z.ZodLiteral<"expired_token">;
4716
4776
  source: z.ZodEnum<{
4717
- query: "query";
4718
4777
  unknown: "unknown";
4778
+ query: "query";
4719
4779
  authorization: "authorization";
4720
4780
  client: "client";
4721
4781
  }>;
4722
4782
  }, z.core.$strip>, z.ZodObject<{
4723
4783
  reason: z.ZodLiteral<"invalid_secret">;
4724
4784
  source: z.ZodEnum<{
4725
- query: "query";
4726
4785
  unknown: "unknown";
4786
+ query: "query";
4727
4787
  authorization: "authorization";
4728
4788
  client: "client";
4729
4789
  }>;
4730
4790
  }, z.core.$strip>, z.ZodObject<{
4731
4791
  reason: z.ZodLiteral<"user_mismatch">;
4732
4792
  source: z.ZodEnum<{
4733
- query: "query";
4734
4793
  unknown: "unknown";
4794
+ query: "query";
4735
4795
  authorization: "authorization";
4736
4796
  client: "client";
4737
4797
  }>;
4738
4798
  }, z.core.$strip>, z.ZodObject<{
4739
4799
  reason: z.ZodLiteral<"insufficient_scope">;
4740
4800
  source: z.ZodEnum<{
4741
- query: "query";
4742
4801
  unknown: "unknown";
4802
+ query: "query";
4743
4803
  authorization: "authorization";
4744
4804
  client: "client";
4745
4805
  }>;
@@ -4754,8 +4814,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4754
4814
  }>;
4755
4815
  value: z.ZodOptional<z.ZodString>;
4756
4816
  source: z.ZodEnum<{
4757
- query: "query";
4758
4817
  unknown: "unknown";
4818
+ query: "query";
4759
4819
  authorization: "authorization";
4760
4820
  client: "client";
4761
4821
  }>;
@@ -4802,6 +4862,28 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4802
4862
  tokenAuth: z.ZodOptional<z.ZodBoolean>;
4803
4863
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
4804
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>>;
4805
4887
  }, z.core.$strip>, z.ZodObject<{
4806
4888
  decision: z.ZodLiteral<"not_routed">;
4807
4889
  failure: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -4813,48 +4895,48 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4813
4895
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
4814
4896
  reason: z.ZodLiteral<"missing_token">;
4815
4897
  source: z.ZodEnum<{
4816
- query: "query";
4817
4898
  unknown: "unknown";
4899
+ query: "query";
4818
4900
  authorization: "authorization";
4819
4901
  client: "client";
4820
4902
  }>;
4821
4903
  }, z.core.$strip>, z.ZodObject<{
4822
4904
  reason: z.ZodLiteral<"invalid_token">;
4823
4905
  source: z.ZodEnum<{
4824
- query: "query";
4825
4906
  unknown: "unknown";
4907
+ query: "query";
4826
4908
  authorization: "authorization";
4827
4909
  client: "client";
4828
4910
  }>;
4829
4911
  }, z.core.$strip>, z.ZodObject<{
4830
4912
  reason: z.ZodLiteral<"expired_token">;
4831
4913
  source: z.ZodEnum<{
4832
- query: "query";
4833
4914
  unknown: "unknown";
4915
+ query: "query";
4834
4916
  authorization: "authorization";
4835
4917
  client: "client";
4836
4918
  }>;
4837
4919
  }, z.core.$strip>, z.ZodObject<{
4838
4920
  reason: z.ZodLiteral<"invalid_secret">;
4839
4921
  source: z.ZodEnum<{
4840
- query: "query";
4841
4922
  unknown: "unknown";
4923
+ query: "query";
4842
4924
  authorization: "authorization";
4843
4925
  client: "client";
4844
4926
  }>;
4845
4927
  }, z.core.$strip>, z.ZodObject<{
4846
4928
  reason: z.ZodLiteral<"user_mismatch">;
4847
4929
  source: z.ZodEnum<{
4848
- query: "query";
4849
4930
  unknown: "unknown";
4931
+ query: "query";
4850
4932
  authorization: "authorization";
4851
4933
  client: "client";
4852
4934
  }>;
4853
4935
  }, z.core.$strip>, z.ZodObject<{
4854
4936
  reason: z.ZodLiteral<"insufficient_scope">;
4855
4937
  source: z.ZodEnum<{
4856
- query: "query";
4857
4938
  unknown: "unknown";
4939
+ query: "query";
4858
4940
  authorization: "authorization";
4859
4941
  client: "client";
4860
4942
  }>;
@@ -4869,8 +4951,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4869
4951
  }>;
4870
4952
  value: z.ZodOptional<z.ZodString>;
4871
4953
  source: z.ZodEnum<{
4872
- query: "query";
4873
4954
  unknown: "unknown";
4955
+ query: "query";
4874
4956
  authorization: "authorization";
4875
4957
  client: "client";
4876
4958
  }>;
@@ -4944,9 +5026,9 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4944
5026
  webtransport: "webtransport";
4945
5027
  }>>;
4946
5028
  origin: z.ZodOptional<z.ZodEnum<{
5029
+ api: "api";
4947
5030
  human: "human";
4948
5031
  codex: "codex";
4949
- api: "api";
4950
5032
  automation: "automation";
4951
5033
  ci: "ci";
4952
5034
  "scheduled-job": "scheduled-job";
@@ -4954,8 +5036,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4954
5036
  origin_id: z.ZodOptional<z.ZodString>;
4955
5037
  initiator_kind: z.ZodOptional<z.ZodEnum<{
4956
5038
  agent: "agent";
4957
- user: "user";
4958
5039
  app: "app";
5040
+ user: "user";
4959
5041
  "service-account": "service-account";
4960
5042
  }>>;
4961
5043
  device_id: z.ZodOptional<z.ZodString>;
@@ -4992,10 +5074,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4992
5074
  server: "server";
4993
5075
  }>;
4994
5076
  reason: z.ZodEnum<{
4995
- unknown: "unknown";
4996
5077
  error: "error";
4997
- closed: "closed";
5078
+ unknown: "unknown";
4998
5079
  timeout: "timeout";
5080
+ closed: "closed";
4999
5081
  reset: "reset";
5000
5082
  }>;
5001
5083
  message: z.ZodOptional<z.ZodString>;
@@ -5023,48 +5105,48 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
5023
5105
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
5024
5106
  reason: z.ZodLiteral<"missing_token">;
5025
5107
  source: z.ZodEnum<{
5026
- query: "query";
5027
5108
  unknown: "unknown";
5109
+ query: "query";
5028
5110
  authorization: "authorization";
5029
5111
  client: "client";
5030
5112
  }>;
5031
5113
  }, z.core.$strip>, z.ZodObject<{
5032
5114
  reason: z.ZodLiteral<"invalid_token">;
5033
5115
  source: z.ZodEnum<{
5034
- query: "query";
5035
5116
  unknown: "unknown";
5117
+ query: "query";
5036
5118
  authorization: "authorization";
5037
5119
  client: "client";
5038
5120
  }>;
5039
5121
  }, z.core.$strip>, z.ZodObject<{
5040
5122
  reason: z.ZodLiteral<"expired_token">;
5041
5123
  source: z.ZodEnum<{
5042
- query: "query";
5043
5124
  unknown: "unknown";
5125
+ query: "query";
5044
5126
  authorization: "authorization";
5045
5127
  client: "client";
5046
5128
  }>;
5047
5129
  }, z.core.$strip>, z.ZodObject<{
5048
5130
  reason: z.ZodLiteral<"invalid_secret">;
5049
5131
  source: z.ZodEnum<{
5050
- query: "query";
5051
5132
  unknown: "unknown";
5133
+ query: "query";
5052
5134
  authorization: "authorization";
5053
5135
  client: "client";
5054
5136
  }>;
5055
5137
  }, z.core.$strip>, z.ZodObject<{
5056
5138
  reason: z.ZodLiteral<"user_mismatch">;
5057
5139
  source: z.ZodEnum<{
5058
- query: "query";
5059
5140
  unknown: "unknown";
5141
+ query: "query";
5060
5142
  authorization: "authorization";
5061
5143
  client: "client";
5062
5144
  }>;
5063
5145
  }, z.core.$strip>, z.ZodObject<{
5064
5146
  reason: z.ZodLiteral<"insufficient_scope">;
5065
5147
  source: z.ZodEnum<{
5066
- query: "query";
5067
5148
  unknown: "unknown";
5149
+ query: "query";
5068
5150
  authorization: "authorization";
5069
5151
  client: "client";
5070
5152
  }>;
@@ -5079,8 +5161,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
5079
5161
  }>;
5080
5162
  value: z.ZodOptional<z.ZodString>;
5081
5163
  source: z.ZodEnum<{
5082
- query: "query";
5083
5164
  unknown: "unknown";
5165
+ query: "query";
5084
5166
  authorization: "authorization";
5085
5167
  client: "client";
5086
5168
  }>;
@@ -5136,10 +5218,10 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
5136
5218
  server: "server";
5137
5219
  }>;
5138
5220
  reason: z.ZodEnum<{
5139
- unknown: "unknown";
5140
5221
  error: "error";
5141
- closed: "closed";
5222
+ unknown: "unknown";
5142
5223
  timeout: "timeout";
5224
+ closed: "closed";
5143
5225
  reset: "reset";
5144
5226
  }>;
5145
5227
  message: z.ZodOptional<z.ZodString>;
@@ -5211,9 +5293,9 @@ declare const webTTYSessionModeSchema: z.ZodEnum<{
5211
5293
  "non-interactive": "non-interactive";
5212
5294
  }>;
5213
5295
  declare const webTTYOriginSchema: z.ZodEnum<{
5296
+ api: "api";
5214
5297
  human: "human";
5215
5298
  codex: "codex";
5216
- api: "api";
5217
5299
  automation: "automation";
5218
5300
  ci: "ci";
5219
5301
  "scheduled-job": "scheduled-job";
@@ -5224,9 +5306,9 @@ declare const webTTYParticipantRoleSchema: z.ZodEnum<{
5224
5306
  }>;
5225
5307
  declare const webTTYContextMetadataSchema: z.ZodObject<{
5226
5308
  origin: z.ZodOptional<z.ZodEnum<{
5309
+ api: "api";
5227
5310
  human: "human";
5228
5311
  codex: "codex";
5229
- api: "api";
5230
5312
  automation: "automation";
5231
5313
  ci: "ci";
5232
5314
  "scheduled-job": "scheduled-job";
@@ -5235,8 +5317,8 @@ declare const webTTYContextMetadataSchema: z.ZodObject<{
5235
5317
  purpose: z.ZodOptional<z.ZodString>;
5236
5318
  initiator_kind: z.ZodOptional<z.ZodEnum<{
5237
5319
  agent: "agent";
5238
- user: "user";
5239
5320
  app: "app";
5321
+ user: "user";
5240
5322
  "service-account": "service-account";
5241
5323
  }>>;
5242
5324
  agent_name: z.ZodOptional<z.ZodString>;
@@ -5291,10 +5373,10 @@ declare const webTTYSessionSchema: z.ZodObject<{
5291
5373
  initiator_user_id: z.ZodOptional<z.ZodString>;
5292
5374
  group_id: z.ZodOptional<z.ZodString>;
5293
5375
  status: z.ZodEnum<{
5294
- opening: "opening";
5295
5376
  active: "active";
5296
- closing: "closing";
5297
5377
  closed: "closed";
5378
+ opening: "opening";
5379
+ closing: "closing";
5298
5380
  errored: "errored";
5299
5381
  }>;
5300
5382
  session_mode: z.ZodEnum<{
@@ -5322,9 +5404,9 @@ declare const webTTYSessionSchema: z.ZodObject<{
5322
5404
  command_meta: z.ZodOptional<z.ZodUnknown>;
5323
5405
  context: z.ZodOptional<z.ZodObject<{
5324
5406
  origin: z.ZodOptional<z.ZodEnum<{
5407
+ api: "api";
5325
5408
  human: "human";
5326
5409
  codex: "codex";
5327
- api: "api";
5328
5410
  automation: "automation";
5329
5411
  ci: "ci";
5330
5412
  "scheduled-job": "scheduled-job";
@@ -5333,8 +5415,8 @@ declare const webTTYSessionSchema: z.ZodObject<{
5333
5415
  purpose: z.ZodOptional<z.ZodString>;
5334
5416
  initiator_kind: z.ZodOptional<z.ZodEnum<{
5335
5417
  agent: "agent";
5336
- user: "user";
5337
5418
  app: "app";
5419
+ user: "user";
5338
5420
  "service-account": "service-account";
5339
5421
  }>>;
5340
5422
  agent_name: z.ZodOptional<z.ZodString>;
@@ -5362,9 +5444,9 @@ declare const webTTYSessionGroupSchema: z.ZodObject<{
5362
5444
  initiator_user_id: z.ZodOptional<z.ZodString>;
5363
5445
  context: z.ZodOptional<z.ZodObject<{
5364
5446
  origin: z.ZodOptional<z.ZodEnum<{
5447
+ api: "api";
5365
5448
  human: "human";
5366
5449
  codex: "codex";
5367
- api: "api";
5368
5450
  automation: "automation";
5369
5451
  ci: "ci";
5370
5452
  "scheduled-job": "scheduled-job";
@@ -5373,8 +5455,8 @@ declare const webTTYSessionGroupSchema: z.ZodObject<{
5373
5455
  purpose: z.ZodOptional<z.ZodString>;
5374
5456
  initiator_kind: z.ZodOptional<z.ZodEnum<{
5375
5457
  agent: "agent";
5376
- user: "user";
5377
5458
  app: "app";
5459
+ user: "user";
5378
5460
  "service-account": "service-account";
5379
5461
  }>>;
5380
5462
  agent_name: z.ZodOptional<z.ZodString>;
@@ -5504,9 +5586,9 @@ declare const webTTYControlRequestSchema: z.ZodObject<{
5504
5586
  approver_participant_id: z.ZodOptional<z.ZodString>;
5505
5587
  approver_user_id: z.ZodOptional<z.ZodString>;
5506
5588
  status: z.ZodEnum<{
5589
+ refused: "refused";
5507
5590
  pending: "pending";
5508
5591
  granted: "granted";
5509
- refused: "refused";
5510
5592
  revoked: "revoked";
5511
5593
  expired: "expired";
5512
5594
  }>;
@@ -5525,18 +5607,18 @@ declare const listWebTTYSessionsParamsSchema: z.ZodObject<{
5525
5607
  user_id: z.ZodOptional<z.ZodString>;
5526
5608
  group_id: z.ZodOptional<z.ZodString>;
5527
5609
  origin: z.ZodOptional<z.ZodEnum<{
5610
+ api: "api";
5528
5611
  human: "human";
5529
5612
  codex: "codex";
5530
- api: "api";
5531
5613
  automation: "automation";
5532
5614
  ci: "ci";
5533
5615
  "scheduled-job": "scheduled-job";
5534
5616
  }>>;
5535
5617
  status: z.ZodOptional<z.ZodEnum<{
5536
- opening: "opening";
5537
5618
  active: "active";
5538
- closing: "closing";
5539
5619
  closed: "closed";
5620
+ opening: "opening";
5621
+ closing: "closing";
5540
5622
  errored: "errored";
5541
5623
  }>>;
5542
5624
  started_from: z.ZodOptional<z.ZodString>;
@@ -5548,9 +5630,9 @@ declare const listWebTTYSessionGroupsParamsSchema: z.ZodObject<{
5548
5630
  filters: z.ZodOptional<z.ZodObject<{
5549
5631
  initiator_user_id: z.ZodOptional<z.ZodString>;
5550
5632
  origin: z.ZodOptional<z.ZodEnum<{
5633
+ api: "api";
5551
5634
  human: "human";
5552
5635
  codex: "codex";
5553
- api: "api";
5554
5636
  automation: "automation";
5555
5637
  ci: "ci";
5556
5638
  "scheduled-job": "scheduled-job";
@@ -5571,9 +5653,9 @@ declare const listWebTTYControlRequestsParamsSchema: z.ZodObject<{
5571
5653
  limit: z.ZodOptional<z.ZodNumber>;
5572
5654
  filters: z.ZodOptional<z.ZodObject<{
5573
5655
  status: z.ZodOptional<z.ZodEnum<{
5656
+ refused: "refused";
5574
5657
  pending: "pending";
5575
5658
  granted: "granted";
5576
- refused: "refused";
5577
5659
  revoked: "revoked";
5578
5660
  expired: "expired";
5579
5661
  }>>;
@@ -5668,6 +5750,11 @@ interface RstreamTunnelsConfig {
5668
5750
  * Used when the engine is not set explicitly.
5669
5751
  */
5670
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;
5671
5758
  /**
5672
5759
  * Project ID used to scope locally signed engine auth tokens.
5673
5760
  */
@@ -5681,6 +5768,10 @@ interface RstreamTunnelsConfig {
5681
5768
  * Defaults to the same credentials used against the engine when available.
5682
5769
  */
5683
5770
  controlPlaneCredentials?: RstreamCredentials;
5771
+ /**
5772
+ * Additional headers sent only to the configured Control plane API.
5773
+ */
5774
+ controlPlaneHeaders?: ControlPlaneHeaders;
5684
5775
  }
5685
5776
  declare class RstreamTunnelsClient {
5686
5777
  private readonly config?;
@@ -5728,13 +5819,16 @@ type RstreamAuth = (() => Promise<string>) | string;
5728
5819
  interface TunnelsResolutionConfig {
5729
5820
  apiUrl?: string;
5730
5821
  controlPlaneCredentials?: RstreamCredentials;
5822
+ controlPlaneHeaders?: ControlPlaneHeaders;
5731
5823
  credentials?: RstreamCredentials;
5732
5824
  engine?: string;
5733
5825
  projectEndpoint?: string;
5826
+ region?: string;
5734
5827
  token?: string;
5735
5828
  }
5736
5829
  declare function normalizeEngineAddress(engine: string): string;
5737
5830
  declare function resolveTunnelsAPIURL(apiUrl?: string): string;
5831
+ declare function resolveTunnelsRegion(region?: string): string | undefined;
5738
5832
  declare function resolveTunnelsCredentials(credentials?: RstreamCredentials): RstreamCredentials | undefined;
5739
5833
  declare function resolveControlPlaneCredentials(controlPlaneCredentials?: RstreamCredentials, credentials?: RstreamCredentials, authToken?: string): RstreamCredentials | undefined;
5740
5834
  declare function resolveTunnelsEngine(config: TunnelsResolutionConfig): Promise<string>;
@@ -5769,12 +5863,12 @@ declare const streamEntrySchema: z.ZodObject<{
5769
5863
  internal: "internal";
5770
5864
  }>;
5771
5865
  transport: z.ZodOptional<z.ZodEnum<{
5772
- http: "http";
5773
- rstream: "rstream";
5774
5866
  tls: "tls";
5867
+ tcp: "tcp";
5775
5868
  dtls: "dtls";
5776
5869
  quic: "quic";
5777
- tcp: "tcp";
5870
+ http: "http";
5871
+ rstream: "rstream";
5778
5872
  }>>;
5779
5873
  }, z.core.$strip>;
5780
5874
  declare const streamWebTTYMetadataSchema: z.ZodObject<{
@@ -5820,9 +5914,9 @@ declare const streamWebTTYMetadataSchema: z.ZodObject<{
5820
5914
  webtransport: "webtransport";
5821
5915
  }>>;
5822
5916
  origin: z.ZodOptional<z.ZodEnum<{
5917
+ api: "api";
5823
5918
  human: "human";
5824
5919
  codex: "codex";
5825
- api: "api";
5826
5920
  automation: "automation";
5827
5921
  ci: "ci";
5828
5922
  "scheduled-job": "scheduled-job";
@@ -5830,8 +5924,8 @@ declare const streamWebTTYMetadataSchema: z.ZodObject<{
5830
5924
  origin_id: z.ZodOptional<z.ZodString>;
5831
5925
  initiator_kind: z.ZodOptional<z.ZodEnum<{
5832
5926
  agent: "agent";
5833
- user: "user";
5834
5927
  app: "app";
5928
+ user: "user";
5835
5929
  "service-account": "service-account";
5836
5930
  }>>;
5837
5931
  device_id: z.ZodOptional<z.ZodString>;
@@ -5870,12 +5964,12 @@ declare const streamSummarySchema: z.ZodObject<{
5870
5964
  internal: "internal";
5871
5965
  }>;
5872
5966
  transport: z.ZodOptional<z.ZodEnum<{
5873
- http: "http";
5874
- rstream: "rstream";
5875
5967
  tls: "tls";
5968
+ tcp: "tcp";
5876
5969
  dtls: "dtls";
5877
5970
  quic: "quic";
5878
- tcp: "tcp";
5971
+ http: "http";
5972
+ rstream: "rstream";
5879
5973
  }>>;
5880
5974
  }, z.core.$strip>>;
5881
5975
  http: z.ZodOptional<z.ZodObject<{
@@ -5912,8 +6006,8 @@ declare const streamSummarySchema: z.ZodObject<{
5912
6006
  }, z.core.$strip>, z.ZodObject<{
5913
6007
  kind: z.ZodLiteral<"token">;
5914
6008
  source: z.ZodOptional<z.ZodEnum<{
5915
- query: "query";
5916
6009
  unknown: "unknown";
6010
+ query: "query";
5917
6011
  authorization: "authorization";
5918
6012
  client: "client";
5919
6013
  }>>;
@@ -5939,8 +6033,8 @@ declare const streamSummarySchema: z.ZodObject<{
5939
6033
  }, z.core.$strip>, z.ZodObject<{
5940
6034
  kind: z.ZodLiteral<"token">;
5941
6035
  source: z.ZodOptional<z.ZodEnum<{
5942
- query: "query";
5943
6036
  unknown: "unknown";
6037
+ query: "query";
5944
6038
  authorization: "authorization";
5945
6039
  client: "client";
5946
6040
  }>>;
@@ -5960,48 +6054,48 @@ declare const streamSummarySchema: z.ZodObject<{
5960
6054
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
5961
6055
  reason: z.ZodLiteral<"missing_token">;
5962
6056
  source: z.ZodEnum<{
5963
- query: "query";
5964
6057
  unknown: "unknown";
6058
+ query: "query";
5965
6059
  authorization: "authorization";
5966
6060
  client: "client";
5967
6061
  }>;
5968
6062
  }, z.core.$strip>, z.ZodObject<{
5969
6063
  reason: z.ZodLiteral<"invalid_token">;
5970
6064
  source: z.ZodEnum<{
5971
- query: "query";
5972
6065
  unknown: "unknown";
6066
+ query: "query";
5973
6067
  authorization: "authorization";
5974
6068
  client: "client";
5975
6069
  }>;
5976
6070
  }, z.core.$strip>, z.ZodObject<{
5977
6071
  reason: z.ZodLiteral<"expired_token">;
5978
6072
  source: z.ZodEnum<{
5979
- query: "query";
5980
6073
  unknown: "unknown";
6074
+ query: "query";
5981
6075
  authorization: "authorization";
5982
6076
  client: "client";
5983
6077
  }>;
5984
6078
  }, z.core.$strip>, z.ZodObject<{
5985
6079
  reason: z.ZodLiteral<"invalid_secret">;
5986
6080
  source: z.ZodEnum<{
5987
- query: "query";
5988
6081
  unknown: "unknown";
6082
+ query: "query";
5989
6083
  authorization: "authorization";
5990
6084
  client: "client";
5991
6085
  }>;
5992
6086
  }, z.core.$strip>, z.ZodObject<{
5993
6087
  reason: z.ZodLiteral<"user_mismatch">;
5994
6088
  source: z.ZodEnum<{
5995
- query: "query";
5996
6089
  unknown: "unknown";
6090
+ query: "query";
5997
6091
  authorization: "authorization";
5998
6092
  client: "client";
5999
6093
  }>;
6000
6094
  }, z.core.$strip>, z.ZodObject<{
6001
6095
  reason: z.ZodLiteral<"insufficient_scope">;
6002
6096
  source: z.ZodEnum<{
6003
- query: "query";
6004
6097
  unknown: "unknown";
6098
+ query: "query";
6005
6099
  authorization: "authorization";
6006
6100
  client: "client";
6007
6101
  }>;
@@ -6016,8 +6110,8 @@ declare const streamSummarySchema: z.ZodObject<{
6016
6110
  }>;
6017
6111
  value: z.ZodOptional<z.ZodString>;
6018
6112
  source: z.ZodEnum<{
6019
- query: "query";
6020
6113
  unknown: "unknown";
6114
+ query: "query";
6021
6115
  authorization: "authorization";
6022
6116
  client: "client";
6023
6117
  }>;
@@ -6064,6 +6158,28 @@ declare const streamSummarySchema: z.ZodObject<{
6064
6158
  tokenAuth: z.ZodOptional<z.ZodBoolean>;
6065
6159
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
6066
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>>;
6067
6183
  }, z.core.$strip>, z.ZodObject<{
6068
6184
  decision: z.ZodLiteral<"not_routed">;
6069
6185
  failure: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -6075,48 +6191,48 @@ declare const streamSummarySchema: z.ZodObject<{
6075
6191
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
6076
6192
  reason: z.ZodLiteral<"missing_token">;
6077
6193
  source: z.ZodEnum<{
6078
- query: "query";
6079
6194
  unknown: "unknown";
6195
+ query: "query";
6080
6196
  authorization: "authorization";
6081
6197
  client: "client";
6082
6198
  }>;
6083
6199
  }, z.core.$strip>, z.ZodObject<{
6084
6200
  reason: z.ZodLiteral<"invalid_token">;
6085
6201
  source: z.ZodEnum<{
6086
- query: "query";
6087
6202
  unknown: "unknown";
6203
+ query: "query";
6088
6204
  authorization: "authorization";
6089
6205
  client: "client";
6090
6206
  }>;
6091
6207
  }, z.core.$strip>, z.ZodObject<{
6092
6208
  reason: z.ZodLiteral<"expired_token">;
6093
6209
  source: z.ZodEnum<{
6094
- query: "query";
6095
6210
  unknown: "unknown";
6211
+ query: "query";
6096
6212
  authorization: "authorization";
6097
6213
  client: "client";
6098
6214
  }>;
6099
6215
  }, z.core.$strip>, z.ZodObject<{
6100
6216
  reason: z.ZodLiteral<"invalid_secret">;
6101
6217
  source: z.ZodEnum<{
6102
- query: "query";
6103
6218
  unknown: "unknown";
6219
+ query: "query";
6104
6220
  authorization: "authorization";
6105
6221
  client: "client";
6106
6222
  }>;
6107
6223
  }, z.core.$strip>, z.ZodObject<{
6108
6224
  reason: z.ZodLiteral<"user_mismatch">;
6109
6225
  source: z.ZodEnum<{
6110
- query: "query";
6111
6226
  unknown: "unknown";
6227
+ query: "query";
6112
6228
  authorization: "authorization";
6113
6229
  client: "client";
6114
6230
  }>;
6115
6231
  }, z.core.$strip>, z.ZodObject<{
6116
6232
  reason: z.ZodLiteral<"insufficient_scope">;
6117
6233
  source: z.ZodEnum<{
6118
- query: "query";
6119
6234
  unknown: "unknown";
6235
+ query: "query";
6120
6236
  authorization: "authorization";
6121
6237
  client: "client";
6122
6238
  }>;
@@ -6131,8 +6247,8 @@ declare const streamSummarySchema: z.ZodObject<{
6131
6247
  }>;
6132
6248
  value: z.ZodOptional<z.ZodString>;
6133
6249
  source: z.ZodEnum<{
6134
- query: "query";
6135
6250
  unknown: "unknown";
6251
+ query: "query";
6136
6252
  authorization: "authorization";
6137
6253
  client: "client";
6138
6254
  }>;
@@ -6206,9 +6322,9 @@ declare const streamSummarySchema: z.ZodObject<{
6206
6322
  webtransport: "webtransport";
6207
6323
  }>>;
6208
6324
  origin: z.ZodOptional<z.ZodEnum<{
6325
+ api: "api";
6209
6326
  human: "human";
6210
6327
  codex: "codex";
6211
- api: "api";
6212
6328
  automation: "automation";
6213
6329
  ci: "ci";
6214
6330
  "scheduled-job": "scheduled-job";
@@ -6216,8 +6332,8 @@ declare const streamSummarySchema: z.ZodObject<{
6216
6332
  origin_id: z.ZodOptional<z.ZodString>;
6217
6333
  initiator_kind: z.ZodOptional<z.ZodEnum<{
6218
6334
  agent: "agent";
6219
- user: "user";
6220
6335
  app: "app";
6336
+ user: "user";
6221
6337
  "service-account": "service-account";
6222
6338
  }>>;
6223
6339
  device_id: z.ZodOptional<z.ZodString>;
@@ -6254,10 +6370,10 @@ declare const streamSummarySchema: z.ZodObject<{
6254
6370
  server: "server";
6255
6371
  }>;
6256
6372
  reason: z.ZodEnum<{
6257
- unknown: "unknown";
6258
6373
  error: "error";
6259
- closed: "closed";
6374
+ unknown: "unknown";
6260
6375
  timeout: "timeout";
6376
+ closed: "closed";
6261
6377
  reset: "reset";
6262
6378
  }>;
6263
6379
  message: z.ZodOptional<z.ZodString>;
@@ -6285,48 +6401,48 @@ declare const streamSummarySchema: z.ZodObject<{
6285
6401
  why: z.ZodDiscriminatedUnion<[z.ZodObject<{
6286
6402
  reason: z.ZodLiteral<"missing_token">;
6287
6403
  source: z.ZodEnum<{
6288
- query: "query";
6289
6404
  unknown: "unknown";
6405
+ query: "query";
6290
6406
  authorization: "authorization";
6291
6407
  client: "client";
6292
6408
  }>;
6293
6409
  }, z.core.$strip>, z.ZodObject<{
6294
6410
  reason: z.ZodLiteral<"invalid_token">;
6295
6411
  source: z.ZodEnum<{
6296
- query: "query";
6297
6412
  unknown: "unknown";
6413
+ query: "query";
6298
6414
  authorization: "authorization";
6299
6415
  client: "client";
6300
6416
  }>;
6301
6417
  }, z.core.$strip>, z.ZodObject<{
6302
6418
  reason: z.ZodLiteral<"expired_token">;
6303
6419
  source: z.ZodEnum<{
6304
- query: "query";
6305
6420
  unknown: "unknown";
6421
+ query: "query";
6306
6422
  authorization: "authorization";
6307
6423
  client: "client";
6308
6424
  }>;
6309
6425
  }, z.core.$strip>, z.ZodObject<{
6310
6426
  reason: z.ZodLiteral<"invalid_secret">;
6311
6427
  source: z.ZodEnum<{
6312
- query: "query";
6313
6428
  unknown: "unknown";
6429
+ query: "query";
6314
6430
  authorization: "authorization";
6315
6431
  client: "client";
6316
6432
  }>;
6317
6433
  }, z.core.$strip>, z.ZodObject<{
6318
6434
  reason: z.ZodLiteral<"user_mismatch">;
6319
6435
  source: z.ZodEnum<{
6320
- query: "query";
6321
6436
  unknown: "unknown";
6437
+ query: "query";
6322
6438
  authorization: "authorization";
6323
6439
  client: "client";
6324
6440
  }>;
6325
6441
  }, z.core.$strip>, z.ZodObject<{
6326
6442
  reason: z.ZodLiteral<"insufficient_scope">;
6327
6443
  source: z.ZodEnum<{
6328
- query: "query";
6329
6444
  unknown: "unknown";
6445
+ query: "query";
6330
6446
  authorization: "authorization";
6331
6447
  client: "client";
6332
6448
  }>;
@@ -6341,8 +6457,8 @@ declare const streamSummarySchema: z.ZodObject<{
6341
6457
  }>;
6342
6458
  value: z.ZodOptional<z.ZodString>;
6343
6459
  source: z.ZodEnum<{
6344
- query: "query";
6345
6460
  unknown: "unknown";
6461
+ query: "query";
6346
6462
  authorization: "authorization";
6347
6463
  client: "client";
6348
6464
  }>;
@@ -6398,10 +6514,10 @@ declare const streamSummarySchema: z.ZodObject<{
6398
6514
  server: "server";
6399
6515
  }>;
6400
6516
  reason: z.ZodEnum<{
6401
- unknown: "unknown";
6402
6517
  error: "error";
6403
- closed: "closed";
6518
+ unknown: "unknown";
6404
6519
  timeout: "timeout";
6520
+ closed: "closed";
6405
6521
  reset: "reset";
6406
6522
  }>;
6407
6523
  message: z.ZodOptional<z.ZodString>;
@@ -6549,4 +6665,4 @@ declare const webttyServerSchema: z.ZodObject<{
6549
6665
  type WebTTYServer = z.infer<typeof webttyServerSchema>;
6550
6666
  declare function parseWebTTYServers(tunnels: Tunnel[]): WebTTYServer[];
6551
6667
 
6552
- 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 };