@rstreamlabs/tunnels 3.9.0 → 3.10.2

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,8 +1,9 @@
1
- import { RstreamCredentials, TURNCredentials as TURNCredentials$1, ControlPlaneHeaders, ClientCredentials, TunnelsProject } from '@rstreamlabs/rstream';
1
+ import { ControlPlaneHeaders, RstreamCredentials, TURNCredentials as TURNCredentials$1, 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';
5
5
  import { TURNCredentials } from '@rstreamlabs/rstream/turn';
6
+ import { ConnectionOptions } from 'node:tls';
6
7
  export { engineOpenApiDocument, engineOpenApiJson } from './openapi.mjs';
7
8
 
8
9
  declare const clientSchema: z.ZodObject<{
@@ -27,15 +28,15 @@ declare const clientSchema: z.ZodObject<{
27
28
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
28
29
  }, z.core.$strip>;
29
30
  declare const clientFilterSchema: z.ZodObject<{
30
- id: z.ZodOptional<z.ZodString>;
31
31
  status: z.ZodOptional<z.ZodEnum<{
32
32
  online: "online";
33
33
  offline: "offline";
34
34
  }>>;
35
+ id: z.ZodOptional<z.ZodString>;
36
+ version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
35
37
  user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
36
38
  agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
37
39
  channel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
38
- version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
39
40
  os: z.ZodOptional<z.ZodOptional<z.ZodString>>;
40
41
  arch: z.ZodOptional<z.ZodOptional<z.ZodString>>;
41
42
  protocol_version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -44,15 +45,15 @@ declare const clientFilterSchema: z.ZodObject<{
44
45
  declare const listClientsParamsSchema: z.ZodObject<{
45
46
  limit: z.ZodOptional<z.ZodNumber>;
46
47
  filters: z.ZodOptional<z.ZodObject<{
47
- id: z.ZodOptional<z.ZodString>;
48
48
  status: z.ZodOptional<z.ZodEnum<{
49
49
  online: "online";
50
50
  offline: "offline";
51
51
  }>>;
52
+ id: z.ZodOptional<z.ZodString>;
53
+ version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
52
54
  user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
53
55
  agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
54
56
  channel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
55
- version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
56
57
  os: z.ZodOptional<z.ZodOptional<z.ZodString>>;
57
58
  arch: z.ZodOptional<z.ZodOptional<z.ZodString>>;
58
59
  protocol_version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -93,18 +94,18 @@ declare class RstreamClientsResource {
93
94
  }
94
95
 
95
96
  declare const tunnelFilterSchema: z.ZodObject<{
96
- id: z.ZodOptional<z.ZodString>;
97
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
98
97
  status: z.ZodOptional<z.ZodEnum<{
99
98
  online: "online";
100
99
  offline: "offline";
101
100
  }>>;
102
- user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
103
- labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
101
+ id: z.ZodOptional<z.ZodString>;
102
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
104
103
  type: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
105
104
  bytestream: "bytestream";
106
105
  datagram: "datagram";
107
106
  }>>>;
107
+ user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
108
+ labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
108
109
  client_id: z.ZodOptional<z.ZodString>;
109
110
  publish: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
110
111
  protocol: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
@@ -126,18 +127,18 @@ declare const tunnelFilterSchema: z.ZodObject<{
126
127
  declare const listTunnelsParamsSchema: z.ZodObject<{
127
128
  limit: z.ZodOptional<z.ZodNumber>;
128
129
  filters: z.ZodOptional<z.ZodObject<{
129
- id: z.ZodOptional<z.ZodString>;
130
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
131
130
  status: z.ZodOptional<z.ZodEnum<{
132
131
  online: "online";
133
132
  offline: "offline";
134
133
  }>>;
135
- user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
136
- labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
134
+ id: z.ZodOptional<z.ZodString>;
135
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
137
136
  type: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
138
137
  bytestream: "bytestream";
139
138
  datagram: "datagram";
140
139
  }>>>;
140
+ user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
141
+ labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
141
142
  client_id: z.ZodOptional<z.ZodString>;
142
143
  publish: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
143
144
  protocol: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
@@ -200,6 +201,14 @@ declare const listTunnelsResponseSchema: z.ZodArray<z.ZodObject<{
200
201
  tls_min_version: z.ZodOptional<z.ZodString>;
201
202
  tls_ciphers: z.ZodOptional<z.ZodArray<z.ZodString>>;
202
203
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
204
+ http_cors: z.ZodOptional<z.ZodObject<{
205
+ allowed_origins: z.ZodArray<z.ZodString>;
206
+ allowed_methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
207
+ allowed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
208
+ exposed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
209
+ allow_credentials: z.ZodOptional<z.ZodBoolean>;
210
+ max_age: z.ZodOptional<z.ZodNumber>;
211
+ }, z.core.$strip>>;
203
212
  http_version: z.ZodOptional<z.ZodEnum<{
204
213
  "http/1.1": "http/1.1";
205
214
  h2: "h2";
@@ -225,13 +234,19 @@ declare class RstreamTunnelsResource {
225
234
  get(id: string): Promise<Tunnel>;
226
235
  }
227
236
 
237
+ type EngineTLSOptions = Pick<ConnectionOptions, "ca" | "cert" | "key" | "checkServerIdentity" | "rejectUnauthorized" | "servername">;
238
+
228
239
  declare const turnCredentialModeSchema: z.ZodEnum<{
240
+ auto: "auto";
229
241
  app: "app";
230
242
  pat: "pat";
231
243
  api: "api";
244
+ engine: "engine";
232
245
  }>;
233
246
  type TURNCredentialMode = z.infer<typeof turnCredentialModeSchema>;
234
247
  interface CreateAPITURNCredentialsOptions {
248
+ controlPlaneHeaders?: ControlPlaneHeaders;
249
+ signal?: AbortSignal;
235
250
  apiUrl?: string;
236
251
  credentials: RstreamCredentials;
237
252
  fetch?: typeof globalThis.fetch;
@@ -253,6 +268,8 @@ interface CreatePATTURNCredentialsOptions {
253
268
  turnsPort?: number;
254
269
  }
255
270
  interface CreateAPPTURNCredentialsOptions {
271
+ signal?: AbortSignal;
272
+ requestTimeoutMilliseconds?: number;
256
273
  apiUrl?: string;
257
274
  clientId: string;
258
275
  clientSecret: string;
@@ -268,6 +285,11 @@ interface CreateAPPTURNCredentialsOptions {
268
285
  turnsPort?: number;
269
286
  }
270
287
  interface CreateTURNCredentialsOptions {
288
+ controlPlaneHeaders?: ControlPlaneHeaders;
289
+ client?: RstreamTunnelsClient;
290
+ tls?: EngineTLSOptions;
291
+ mtlsApiUrl?: string;
292
+ signal?: AbortSignal;
271
293
  apiUrl?: string;
272
294
  clusterDomain?: string;
273
295
  controlPlaneCredentials?: RstreamCredentials;
@@ -291,12 +313,14 @@ interface CreateTURNCredentialsOptions {
291
313
  declare function createAPITURNCredentials(options: CreateAPITURNCredentialsOptions): Promise<TURNCredentials>;
292
314
  declare function createPATTURNCredentials(options: CreatePATTURNCredentialsOptions): TURNCredentials;
293
315
  declare function createAPPTURNCredentials(options: CreateAPPTURNCredentialsOptions): Promise<TURNCredentials>;
316
+ declare function validateTURNCredentialsRequest(options: CreateTURNCredentialsOptions): number;
294
317
  declare function createTURNCredentials(options: CreateTURNCredentialsOptions): Promise<TURNCredentials>;
295
318
 
296
319
  declare class RstreamTURNResource {
297
320
  private readonly client;
298
321
  constructor(client: RstreamTunnelsClient);
299
322
  createCredentials(options?: CreateTURNCredentialsOptions): Promise<TURNCredentials$1>;
323
+ private createForLifetime;
300
324
  }
301
325
 
302
326
  declare const initialStateSchema: z.ZodObject<{
@@ -365,6 +389,14 @@ declare const initialStateSchema: z.ZodObject<{
365
389
  tls_min_version: z.ZodOptional<z.ZodString>;
366
390
  tls_ciphers: z.ZodOptional<z.ZodArray<z.ZodString>>;
367
391
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
392
+ http_cors: z.ZodOptional<z.ZodObject<{
393
+ allowed_origins: z.ZodArray<z.ZodString>;
394
+ allowed_methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
395
+ allowed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
396
+ exposed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
397
+ allow_credentials: z.ZodOptional<z.ZodBoolean>;
398
+ max_age: z.ZodOptional<z.ZodNumber>;
399
+ }, z.core.$strip>>;
368
400
  http_version: z.ZodOptional<z.ZodEnum<{
369
401
  "http/1.1": "http/1.1";
370
402
  h2: "h2";
@@ -457,8 +489,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
457
489
  kind: z.ZodLiteral<"token">;
458
490
  source: z.ZodOptional<z.ZodEnum<{
459
491
  unknown: "unknown";
460
- query: "query";
461
492
  authorization: "authorization";
493
+ query: "query";
462
494
  client: "client";
463
495
  }>>;
464
496
  tokenType: z.ZodOptional<z.ZodEnum<{
@@ -484,8 +516,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
484
516
  kind: z.ZodLiteral<"token">;
485
517
  source: z.ZodOptional<z.ZodEnum<{
486
518
  unknown: "unknown";
487
- query: "query";
488
519
  authorization: "authorization";
520
+ query: "query";
489
521
  client: "client";
490
522
  }>>;
491
523
  tokenType: z.ZodOptional<z.ZodEnum<{
@@ -505,48 +537,48 @@ declare const streamSummaryEventSchema: z.ZodObject<{
505
537
  reason: z.ZodLiteral<"missing_token">;
506
538
  source: z.ZodEnum<{
507
539
  unknown: "unknown";
508
- query: "query";
509
540
  authorization: "authorization";
541
+ query: "query";
510
542
  client: "client";
511
543
  }>;
512
544
  }, z.core.$strip>, z.ZodObject<{
513
545
  reason: z.ZodLiteral<"invalid_token">;
514
546
  source: z.ZodEnum<{
515
547
  unknown: "unknown";
516
- query: "query";
517
548
  authorization: "authorization";
549
+ query: "query";
518
550
  client: "client";
519
551
  }>;
520
552
  }, z.core.$strip>, z.ZodObject<{
521
553
  reason: z.ZodLiteral<"expired_token">;
522
554
  source: z.ZodEnum<{
523
555
  unknown: "unknown";
524
- query: "query";
525
556
  authorization: "authorization";
557
+ query: "query";
526
558
  client: "client";
527
559
  }>;
528
560
  }, z.core.$strip>, z.ZodObject<{
529
561
  reason: z.ZodLiteral<"invalid_secret">;
530
562
  source: z.ZodEnum<{
531
563
  unknown: "unknown";
532
- query: "query";
533
564
  authorization: "authorization";
565
+ query: "query";
534
566
  client: "client";
535
567
  }>;
536
568
  }, z.core.$strip>, z.ZodObject<{
537
569
  reason: z.ZodLiteral<"user_mismatch">;
538
570
  source: z.ZodEnum<{
539
571
  unknown: "unknown";
540
- query: "query";
541
572
  authorization: "authorization";
573
+ query: "query";
542
574
  client: "client";
543
575
  }>;
544
576
  }, z.core.$strip>, z.ZodObject<{
545
577
  reason: z.ZodLiteral<"insufficient_scope">;
546
578
  source: z.ZodEnum<{
547
579
  unknown: "unknown";
548
- query: "query";
549
580
  authorization: "authorization";
581
+ query: "query";
550
582
  client: "client";
551
583
  }>;
552
584
  }, z.core.$strip>, z.ZodObject<{
@@ -561,8 +593,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
561
593
  value: z.ZodOptional<z.ZodString>;
562
594
  source: z.ZodEnum<{
563
595
  unknown: "unknown";
564
- query: "query";
565
596
  authorization: "authorization";
597
+ query: "query";
566
598
  client: "client";
567
599
  }>;
568
600
  }, z.core.$strip>], "reason">;
@@ -642,48 +674,48 @@ declare const streamSummaryEventSchema: z.ZodObject<{
642
674
  reason: z.ZodLiteral<"missing_token">;
643
675
  source: z.ZodEnum<{
644
676
  unknown: "unknown";
645
- query: "query";
646
677
  authorization: "authorization";
678
+ query: "query";
647
679
  client: "client";
648
680
  }>;
649
681
  }, z.core.$strip>, z.ZodObject<{
650
682
  reason: z.ZodLiteral<"invalid_token">;
651
683
  source: z.ZodEnum<{
652
684
  unknown: "unknown";
653
- query: "query";
654
685
  authorization: "authorization";
686
+ query: "query";
655
687
  client: "client";
656
688
  }>;
657
689
  }, z.core.$strip>, z.ZodObject<{
658
690
  reason: z.ZodLiteral<"expired_token">;
659
691
  source: z.ZodEnum<{
660
692
  unknown: "unknown";
661
- query: "query";
662
693
  authorization: "authorization";
694
+ query: "query";
663
695
  client: "client";
664
696
  }>;
665
697
  }, z.core.$strip>, z.ZodObject<{
666
698
  reason: z.ZodLiteral<"invalid_secret">;
667
699
  source: z.ZodEnum<{
668
700
  unknown: "unknown";
669
- query: "query";
670
701
  authorization: "authorization";
702
+ query: "query";
671
703
  client: "client";
672
704
  }>;
673
705
  }, z.core.$strip>, z.ZodObject<{
674
706
  reason: z.ZodLiteral<"user_mismatch">;
675
707
  source: z.ZodEnum<{
676
708
  unknown: "unknown";
677
- query: "query";
678
709
  authorization: "authorization";
710
+ query: "query";
679
711
  client: "client";
680
712
  }>;
681
713
  }, z.core.$strip>, z.ZodObject<{
682
714
  reason: z.ZodLiteral<"insufficient_scope">;
683
715
  source: z.ZodEnum<{
684
716
  unknown: "unknown";
685
- query: "query";
686
717
  authorization: "authorization";
718
+ query: "query";
687
719
  client: "client";
688
720
  }>;
689
721
  }, z.core.$strip>, z.ZodObject<{
@@ -698,8 +730,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
698
730
  value: z.ZodOptional<z.ZodString>;
699
731
  source: z.ZodEnum<{
700
732
  unknown: "unknown";
701
- query: "query";
702
733
  authorization: "authorization";
734
+ query: "query";
703
735
  client: "client";
704
736
  }>;
705
737
  }, z.core.$strip>], "reason">;
@@ -821,8 +853,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
821
853
  }>;
822
854
  reason: z.ZodEnum<{
823
855
  error: "error";
824
- unknown: "unknown";
825
856
  timeout: "timeout";
857
+ unknown: "unknown";
826
858
  closed: "closed";
827
859
  reset: "reset";
828
860
  }>;
@@ -852,48 +884,48 @@ declare const streamSummaryEventSchema: z.ZodObject<{
852
884
  reason: z.ZodLiteral<"missing_token">;
853
885
  source: z.ZodEnum<{
854
886
  unknown: "unknown";
855
- query: "query";
856
887
  authorization: "authorization";
888
+ query: "query";
857
889
  client: "client";
858
890
  }>;
859
891
  }, z.core.$strip>, z.ZodObject<{
860
892
  reason: z.ZodLiteral<"invalid_token">;
861
893
  source: z.ZodEnum<{
862
894
  unknown: "unknown";
863
- query: "query";
864
895
  authorization: "authorization";
896
+ query: "query";
865
897
  client: "client";
866
898
  }>;
867
899
  }, z.core.$strip>, z.ZodObject<{
868
900
  reason: z.ZodLiteral<"expired_token">;
869
901
  source: z.ZodEnum<{
870
902
  unknown: "unknown";
871
- query: "query";
872
903
  authorization: "authorization";
904
+ query: "query";
873
905
  client: "client";
874
906
  }>;
875
907
  }, z.core.$strip>, z.ZodObject<{
876
908
  reason: z.ZodLiteral<"invalid_secret">;
877
909
  source: z.ZodEnum<{
878
910
  unknown: "unknown";
879
- query: "query";
880
911
  authorization: "authorization";
912
+ query: "query";
881
913
  client: "client";
882
914
  }>;
883
915
  }, z.core.$strip>, z.ZodObject<{
884
916
  reason: z.ZodLiteral<"user_mismatch">;
885
917
  source: z.ZodEnum<{
886
918
  unknown: "unknown";
887
- query: "query";
888
919
  authorization: "authorization";
920
+ query: "query";
889
921
  client: "client";
890
922
  }>;
891
923
  }, z.core.$strip>, z.ZodObject<{
892
924
  reason: z.ZodLiteral<"insufficient_scope">;
893
925
  source: z.ZodEnum<{
894
926
  unknown: "unknown";
895
- query: "query";
896
927
  authorization: "authorization";
928
+ query: "query";
897
929
  client: "client";
898
930
  }>;
899
931
  }, z.core.$strip>, z.ZodObject<{
@@ -908,8 +940,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
908
940
  value: z.ZodOptional<z.ZodString>;
909
941
  source: z.ZodEnum<{
910
942
  unknown: "unknown";
911
- query: "query";
912
943
  authorization: "authorization";
944
+ query: "query";
913
945
  client: "client";
914
946
  }>;
915
947
  }, z.core.$strip>], "reason">;
@@ -965,8 +997,8 @@ declare const streamSummaryEventSchema: z.ZodObject<{
965
997
  }>;
966
998
  reason: z.ZodEnum<{
967
999
  error: "error";
968
- unknown: "unknown";
969
1000
  timeout: "timeout";
1001
+ unknown: "unknown";
970
1002
  closed: "closed";
971
1003
  reset: "reset";
972
1004
  }>;
@@ -1061,6 +1093,14 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1061
1093
  tls_min_version: z.ZodOptional<z.ZodString>;
1062
1094
  tls_ciphers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1063
1095
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
1096
+ http_cors: z.ZodOptional<z.ZodObject<{
1097
+ allowed_origins: z.ZodArray<z.ZodString>;
1098
+ allowed_methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
1099
+ allowed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1100
+ exposed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1101
+ allow_credentials: z.ZodOptional<z.ZodBoolean>;
1102
+ max_age: z.ZodOptional<z.ZodNumber>;
1103
+ }, z.core.$strip>>;
1064
1104
  http_version: z.ZodOptional<z.ZodEnum<{
1065
1105
  "http/1.1": "http/1.1";
1066
1106
  h2: "h2";
@@ -1213,6 +1253,14 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1213
1253
  tls_min_version: z.ZodOptional<z.ZodString>;
1214
1254
  tls_ciphers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1215
1255
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
1256
+ http_cors: z.ZodOptional<z.ZodObject<{
1257
+ allowed_origins: z.ZodArray<z.ZodString>;
1258
+ allowed_methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
1259
+ allowed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1260
+ exposed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1261
+ allow_credentials: z.ZodOptional<z.ZodBoolean>;
1262
+ max_age: z.ZodOptional<z.ZodNumber>;
1263
+ }, z.core.$strip>>;
1216
1264
  http_version: z.ZodOptional<z.ZodEnum<{
1217
1265
  "http/1.1": "http/1.1";
1218
1266
  h2: "h2";
@@ -1277,6 +1325,14 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1277
1325
  tls_min_version: z.ZodOptional<z.ZodString>;
1278
1326
  tls_ciphers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1279
1327
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
1328
+ http_cors: z.ZodOptional<z.ZodObject<{
1329
+ allowed_origins: z.ZodArray<z.ZodString>;
1330
+ allowed_methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
1331
+ allowed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1332
+ exposed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1333
+ allow_credentials: z.ZodOptional<z.ZodBoolean>;
1334
+ max_age: z.ZodOptional<z.ZodNumber>;
1335
+ }, z.core.$strip>>;
1280
1336
  http_version: z.ZodOptional<z.ZodEnum<{
1281
1337
  "http/1.1": "http/1.1";
1282
1338
  h2: "h2";
@@ -1341,6 +1397,14 @@ declare const wsEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1341
1397
  tls_min_version: z.ZodOptional<z.ZodString>;
1342
1398
  tls_ciphers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1343
1399
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
1400
+ http_cors: z.ZodOptional<z.ZodObject<{
1401
+ allowed_origins: z.ZodArray<z.ZodString>;
1402
+ allowed_methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
1403
+ allowed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1404
+ exposed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1405
+ allow_credentials: z.ZodOptional<z.ZodBoolean>;
1406
+ max_age: z.ZodOptional<z.ZodNumber>;
1407
+ }, z.core.$strip>>;
1344
1408
  http_version: z.ZodOptional<z.ZodEnum<{
1345
1409
  "http/1.1": "http/1.1";
1346
1410
  h2: "h2";
@@ -1946,6 +2010,14 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
1946
2010
  tls_min_version: z.ZodOptional<z.ZodString>;
1947
2011
  tls_ciphers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1948
2012
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
2013
+ http_cors: z.ZodOptional<z.ZodObject<{
2014
+ allowed_origins: z.ZodArray<z.ZodString>;
2015
+ allowed_methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
2016
+ allowed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
2017
+ exposed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
2018
+ allow_credentials: z.ZodOptional<z.ZodBoolean>;
2019
+ max_age: z.ZodOptional<z.ZodNumber>;
2020
+ }, z.core.$strip>>;
1949
2021
  http_version: z.ZodOptional<z.ZodEnum<{
1950
2022
  "http/1.1": "http/1.1";
1951
2023
  h2: "h2";
@@ -2010,6 +2082,14 @@ declare const webhookEventsSchema: z.ZodUnion<readonly [z.ZodObject<{
2010
2082
  tls_min_version: z.ZodOptional<z.ZodString>;
2011
2083
  tls_ciphers: z.ZodOptional<z.ZodArray<z.ZodString>>;
2012
2084
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
2085
+ http_cors: z.ZodOptional<z.ZodObject<{
2086
+ allowed_origins: z.ZodArray<z.ZodString>;
2087
+ allowed_methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
2088
+ allowed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
2089
+ exposed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
2090
+ allow_credentials: z.ZodOptional<z.ZodBoolean>;
2091
+ max_age: z.ZodOptional<z.ZodNumber>;
2092
+ }, z.core.$strip>>;
2013
2093
  http_version: z.ZodOptional<z.ZodEnum<{
2014
2094
  "http/1.1": "http/1.1";
2015
2095
  h2: "h2";
@@ -2590,8 +2670,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2590
2670
  kind: z.ZodLiteral<"token">;
2591
2671
  source: z.ZodOptional<z.ZodEnum<{
2592
2672
  unknown: "unknown";
2593
- query: "query";
2594
2673
  authorization: "authorization";
2674
+ query: "query";
2595
2675
  client: "client";
2596
2676
  }>>;
2597
2677
  tokenType: z.ZodOptional<z.ZodEnum<{
@@ -2617,8 +2697,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2617
2697
  kind: z.ZodLiteral<"token">;
2618
2698
  source: z.ZodOptional<z.ZodEnum<{
2619
2699
  unknown: "unknown";
2620
- query: "query";
2621
2700
  authorization: "authorization";
2701
+ query: "query";
2622
2702
  client: "client";
2623
2703
  }>>;
2624
2704
  tokenType: z.ZodOptional<z.ZodEnum<{
@@ -2638,48 +2718,48 @@ declare const projectLogEventsSchema: z.ZodObject<{
2638
2718
  reason: z.ZodLiteral<"missing_token">;
2639
2719
  source: z.ZodEnum<{
2640
2720
  unknown: "unknown";
2641
- query: "query";
2642
2721
  authorization: "authorization";
2722
+ query: "query";
2643
2723
  client: "client";
2644
2724
  }>;
2645
2725
  }, z.core.$strip>, z.ZodObject<{
2646
2726
  reason: z.ZodLiteral<"invalid_token">;
2647
2727
  source: z.ZodEnum<{
2648
2728
  unknown: "unknown";
2649
- query: "query";
2650
2729
  authorization: "authorization";
2730
+ query: "query";
2651
2731
  client: "client";
2652
2732
  }>;
2653
2733
  }, z.core.$strip>, z.ZodObject<{
2654
2734
  reason: z.ZodLiteral<"expired_token">;
2655
2735
  source: z.ZodEnum<{
2656
2736
  unknown: "unknown";
2657
- query: "query";
2658
2737
  authorization: "authorization";
2738
+ query: "query";
2659
2739
  client: "client";
2660
2740
  }>;
2661
2741
  }, z.core.$strip>, z.ZodObject<{
2662
2742
  reason: z.ZodLiteral<"invalid_secret">;
2663
2743
  source: z.ZodEnum<{
2664
2744
  unknown: "unknown";
2665
- query: "query";
2666
2745
  authorization: "authorization";
2746
+ query: "query";
2667
2747
  client: "client";
2668
2748
  }>;
2669
2749
  }, z.core.$strip>, z.ZodObject<{
2670
2750
  reason: z.ZodLiteral<"user_mismatch">;
2671
2751
  source: z.ZodEnum<{
2672
2752
  unknown: "unknown";
2673
- query: "query";
2674
2753
  authorization: "authorization";
2754
+ query: "query";
2675
2755
  client: "client";
2676
2756
  }>;
2677
2757
  }, z.core.$strip>, z.ZodObject<{
2678
2758
  reason: z.ZodLiteral<"insufficient_scope">;
2679
2759
  source: z.ZodEnum<{
2680
2760
  unknown: "unknown";
2681
- query: "query";
2682
2761
  authorization: "authorization";
2762
+ query: "query";
2683
2763
  client: "client";
2684
2764
  }>;
2685
2765
  }, z.core.$strip>, z.ZodObject<{
@@ -2694,8 +2774,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2694
2774
  value: z.ZodOptional<z.ZodString>;
2695
2775
  source: z.ZodEnum<{
2696
2776
  unknown: "unknown";
2697
- query: "query";
2698
2777
  authorization: "authorization";
2778
+ query: "query";
2699
2779
  client: "client";
2700
2780
  }>;
2701
2781
  }, z.core.$strip>], "reason">;
@@ -2775,48 +2855,48 @@ declare const projectLogEventsSchema: z.ZodObject<{
2775
2855
  reason: z.ZodLiteral<"missing_token">;
2776
2856
  source: z.ZodEnum<{
2777
2857
  unknown: "unknown";
2778
- query: "query";
2779
2858
  authorization: "authorization";
2859
+ query: "query";
2780
2860
  client: "client";
2781
2861
  }>;
2782
2862
  }, z.core.$strip>, z.ZodObject<{
2783
2863
  reason: z.ZodLiteral<"invalid_token">;
2784
2864
  source: z.ZodEnum<{
2785
2865
  unknown: "unknown";
2786
- query: "query";
2787
2866
  authorization: "authorization";
2867
+ query: "query";
2788
2868
  client: "client";
2789
2869
  }>;
2790
2870
  }, z.core.$strip>, z.ZodObject<{
2791
2871
  reason: z.ZodLiteral<"expired_token">;
2792
2872
  source: z.ZodEnum<{
2793
2873
  unknown: "unknown";
2794
- query: "query";
2795
2874
  authorization: "authorization";
2875
+ query: "query";
2796
2876
  client: "client";
2797
2877
  }>;
2798
2878
  }, z.core.$strip>, z.ZodObject<{
2799
2879
  reason: z.ZodLiteral<"invalid_secret">;
2800
2880
  source: z.ZodEnum<{
2801
2881
  unknown: "unknown";
2802
- query: "query";
2803
2882
  authorization: "authorization";
2883
+ query: "query";
2804
2884
  client: "client";
2805
2885
  }>;
2806
2886
  }, z.core.$strip>, z.ZodObject<{
2807
2887
  reason: z.ZodLiteral<"user_mismatch">;
2808
2888
  source: z.ZodEnum<{
2809
2889
  unknown: "unknown";
2810
- query: "query";
2811
2890
  authorization: "authorization";
2891
+ query: "query";
2812
2892
  client: "client";
2813
2893
  }>;
2814
2894
  }, z.core.$strip>, z.ZodObject<{
2815
2895
  reason: z.ZodLiteral<"insufficient_scope">;
2816
2896
  source: z.ZodEnum<{
2817
2897
  unknown: "unknown";
2818
- query: "query";
2819
2898
  authorization: "authorization";
2899
+ query: "query";
2820
2900
  client: "client";
2821
2901
  }>;
2822
2902
  }, z.core.$strip>, z.ZodObject<{
@@ -2831,8 +2911,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2831
2911
  value: z.ZodOptional<z.ZodString>;
2832
2912
  source: z.ZodEnum<{
2833
2913
  unknown: "unknown";
2834
- query: "query";
2835
2914
  authorization: "authorization";
2915
+ query: "query";
2836
2916
  client: "client";
2837
2917
  }>;
2838
2918
  }, z.core.$strip>], "reason">;
@@ -2954,8 +3034,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
2954
3034
  }>;
2955
3035
  reason: z.ZodEnum<{
2956
3036
  error: "error";
2957
- unknown: "unknown";
2958
3037
  timeout: "timeout";
3038
+ unknown: "unknown";
2959
3039
  closed: "closed";
2960
3040
  reset: "reset";
2961
3041
  }>;
@@ -2985,48 +3065,48 @@ declare const projectLogEventsSchema: z.ZodObject<{
2985
3065
  reason: z.ZodLiteral<"missing_token">;
2986
3066
  source: z.ZodEnum<{
2987
3067
  unknown: "unknown";
2988
- query: "query";
2989
3068
  authorization: "authorization";
3069
+ query: "query";
2990
3070
  client: "client";
2991
3071
  }>;
2992
3072
  }, z.core.$strip>, z.ZodObject<{
2993
3073
  reason: z.ZodLiteral<"invalid_token">;
2994
3074
  source: z.ZodEnum<{
2995
3075
  unknown: "unknown";
2996
- query: "query";
2997
3076
  authorization: "authorization";
3077
+ query: "query";
2998
3078
  client: "client";
2999
3079
  }>;
3000
3080
  }, z.core.$strip>, z.ZodObject<{
3001
3081
  reason: z.ZodLiteral<"expired_token">;
3002
3082
  source: z.ZodEnum<{
3003
3083
  unknown: "unknown";
3004
- query: "query";
3005
3084
  authorization: "authorization";
3085
+ query: "query";
3006
3086
  client: "client";
3007
3087
  }>;
3008
3088
  }, z.core.$strip>, z.ZodObject<{
3009
3089
  reason: z.ZodLiteral<"invalid_secret">;
3010
3090
  source: z.ZodEnum<{
3011
3091
  unknown: "unknown";
3012
- query: "query";
3013
3092
  authorization: "authorization";
3093
+ query: "query";
3014
3094
  client: "client";
3015
3095
  }>;
3016
3096
  }, z.core.$strip>, z.ZodObject<{
3017
3097
  reason: z.ZodLiteral<"user_mismatch">;
3018
3098
  source: z.ZodEnum<{
3019
3099
  unknown: "unknown";
3020
- query: "query";
3021
3100
  authorization: "authorization";
3101
+ query: "query";
3022
3102
  client: "client";
3023
3103
  }>;
3024
3104
  }, z.core.$strip>, z.ZodObject<{
3025
3105
  reason: z.ZodLiteral<"insufficient_scope">;
3026
3106
  source: z.ZodEnum<{
3027
3107
  unknown: "unknown";
3028
- query: "query";
3029
3108
  authorization: "authorization";
3109
+ query: "query";
3030
3110
  client: "client";
3031
3111
  }>;
3032
3112
  }, z.core.$strip>, z.ZodObject<{
@@ -3041,8 +3121,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
3041
3121
  value: z.ZodOptional<z.ZodString>;
3042
3122
  source: z.ZodEnum<{
3043
3123
  unknown: "unknown";
3044
- query: "query";
3045
3124
  authorization: "authorization";
3125
+ query: "query";
3046
3126
  client: "client";
3047
3127
  }>;
3048
3128
  }, z.core.$strip>], "reason">;
@@ -3098,8 +3178,8 @@ declare const projectLogEventsSchema: z.ZodObject<{
3098
3178
  }>;
3099
3179
  reason: z.ZodEnum<{
3100
3180
  error: "error";
3101
- unknown: "unknown";
3102
3181
  timeout: "timeout";
3182
+ unknown: "unknown";
3103
3183
  closed: "closed";
3104
3184
  reset: "reset";
3105
3185
  }>;
@@ -3194,6 +3274,14 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3194
3274
  tls_min_version: z.ZodOptional<z.ZodString>;
3195
3275
  tls_ciphers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3196
3276
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
3277
+ http_cors: z.ZodOptional<z.ZodObject<{
3278
+ allowed_origins: z.ZodArray<z.ZodString>;
3279
+ allowed_methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
3280
+ allowed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3281
+ exposed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3282
+ allow_credentials: z.ZodOptional<z.ZodBoolean>;
3283
+ max_age: z.ZodOptional<z.ZodNumber>;
3284
+ }, z.core.$strip>>;
3197
3285
  http_version: z.ZodOptional<z.ZodEnum<{
3198
3286
  "http/1.1": "http/1.1";
3199
3287
  h2: "h2";
@@ -3346,6 +3434,14 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3346
3434
  tls_min_version: z.ZodOptional<z.ZodString>;
3347
3435
  tls_ciphers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3348
3436
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
3437
+ http_cors: z.ZodOptional<z.ZodObject<{
3438
+ allowed_origins: z.ZodArray<z.ZodString>;
3439
+ allowed_methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
3440
+ allowed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3441
+ exposed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3442
+ allow_credentials: z.ZodOptional<z.ZodBoolean>;
3443
+ max_age: z.ZodOptional<z.ZodNumber>;
3444
+ }, z.core.$strip>>;
3349
3445
  http_version: z.ZodOptional<z.ZodEnum<{
3350
3446
  "http/1.1": "http/1.1";
3351
3447
  h2: "h2";
@@ -3410,6 +3506,14 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3410
3506
  tls_min_version: z.ZodOptional<z.ZodString>;
3411
3507
  tls_ciphers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3412
3508
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
3509
+ http_cors: z.ZodOptional<z.ZodObject<{
3510
+ allowed_origins: z.ZodArray<z.ZodString>;
3511
+ allowed_methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
3512
+ allowed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3513
+ exposed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3514
+ allow_credentials: z.ZodOptional<z.ZodBoolean>;
3515
+ max_age: z.ZodOptional<z.ZodNumber>;
3516
+ }, z.core.$strip>>;
3413
3517
  http_version: z.ZodOptional<z.ZodEnum<{
3414
3518
  "http/1.1": "http/1.1";
3415
3519
  h2: "h2";
@@ -3474,6 +3578,14 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
3474
3578
  tls_min_version: z.ZodOptional<z.ZodString>;
3475
3579
  tls_ciphers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3476
3580
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
3581
+ http_cors: z.ZodOptional<z.ZodObject<{
3582
+ allowed_origins: z.ZodArray<z.ZodString>;
3583
+ allowed_methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
3584
+ allowed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3585
+ exposed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
3586
+ allow_credentials: z.ZodOptional<z.ZodBoolean>;
3587
+ max_age: z.ZodOptional<z.ZodNumber>;
3588
+ }, z.core.$strip>>;
3477
3589
  http_version: z.ZodOptional<z.ZodEnum<{
3478
3590
  "http/1.1": "http/1.1";
3479
3591
  h2: "h2";
@@ -4078,6 +4190,14 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4078
4190
  tls_min_version: z.ZodOptional<z.ZodString>;
4079
4191
  tls_ciphers: z.ZodOptional<z.ZodArray<z.ZodString>>;
4080
4192
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
4193
+ http_cors: z.ZodOptional<z.ZodObject<{
4194
+ allowed_origins: z.ZodArray<z.ZodString>;
4195
+ allowed_methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
4196
+ allowed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
4197
+ exposed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
4198
+ allow_credentials: z.ZodOptional<z.ZodBoolean>;
4199
+ max_age: z.ZodOptional<z.ZodNumber>;
4200
+ }, z.core.$strip>>;
4081
4201
  http_version: z.ZodOptional<z.ZodEnum<{
4082
4202
  "http/1.1": "http/1.1";
4083
4203
  h2: "h2";
@@ -4142,6 +4262,14 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4142
4262
  tls_min_version: z.ZodOptional<z.ZodString>;
4143
4263
  tls_ciphers: z.ZodOptional<z.ZodArray<z.ZodString>>;
4144
4264
  mtls_auth: z.ZodOptional<z.ZodBoolean>;
4265
+ http_cors: z.ZodOptional<z.ZodObject<{
4266
+ allowed_origins: z.ZodArray<z.ZodString>;
4267
+ allowed_methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
4268
+ allowed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
4269
+ exposed_headers: z.ZodOptional<z.ZodArray<z.ZodString>>;
4270
+ allow_credentials: z.ZodOptional<z.ZodBoolean>;
4271
+ max_age: z.ZodOptional<z.ZodNumber>;
4272
+ }, z.core.$strip>>;
4145
4273
  http_version: z.ZodOptional<z.ZodEnum<{
4146
4274
  "http/1.1": "http/1.1";
4147
4275
  h2: "h2";
@@ -4721,8 +4849,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4721
4849
  kind: z.ZodLiteral<"token">;
4722
4850
  source: z.ZodOptional<z.ZodEnum<{
4723
4851
  unknown: "unknown";
4724
- query: "query";
4725
4852
  authorization: "authorization";
4853
+ query: "query";
4726
4854
  client: "client";
4727
4855
  }>>;
4728
4856
  tokenType: z.ZodOptional<z.ZodEnum<{
@@ -4748,8 +4876,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4748
4876
  kind: z.ZodLiteral<"token">;
4749
4877
  source: z.ZodOptional<z.ZodEnum<{
4750
4878
  unknown: "unknown";
4751
- query: "query";
4752
4879
  authorization: "authorization";
4880
+ query: "query";
4753
4881
  client: "client";
4754
4882
  }>>;
4755
4883
  tokenType: z.ZodOptional<z.ZodEnum<{
@@ -4769,48 +4897,48 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4769
4897
  reason: z.ZodLiteral<"missing_token">;
4770
4898
  source: z.ZodEnum<{
4771
4899
  unknown: "unknown";
4772
- query: "query";
4773
4900
  authorization: "authorization";
4901
+ query: "query";
4774
4902
  client: "client";
4775
4903
  }>;
4776
4904
  }, z.core.$strip>, z.ZodObject<{
4777
4905
  reason: z.ZodLiteral<"invalid_token">;
4778
4906
  source: z.ZodEnum<{
4779
4907
  unknown: "unknown";
4780
- query: "query";
4781
4908
  authorization: "authorization";
4909
+ query: "query";
4782
4910
  client: "client";
4783
4911
  }>;
4784
4912
  }, z.core.$strip>, z.ZodObject<{
4785
4913
  reason: z.ZodLiteral<"expired_token">;
4786
4914
  source: z.ZodEnum<{
4787
4915
  unknown: "unknown";
4788
- query: "query";
4789
4916
  authorization: "authorization";
4917
+ query: "query";
4790
4918
  client: "client";
4791
4919
  }>;
4792
4920
  }, z.core.$strip>, z.ZodObject<{
4793
4921
  reason: z.ZodLiteral<"invalid_secret">;
4794
4922
  source: z.ZodEnum<{
4795
4923
  unknown: "unknown";
4796
- query: "query";
4797
4924
  authorization: "authorization";
4925
+ query: "query";
4798
4926
  client: "client";
4799
4927
  }>;
4800
4928
  }, z.core.$strip>, z.ZodObject<{
4801
4929
  reason: z.ZodLiteral<"user_mismatch">;
4802
4930
  source: z.ZodEnum<{
4803
4931
  unknown: "unknown";
4804
- query: "query";
4805
4932
  authorization: "authorization";
4933
+ query: "query";
4806
4934
  client: "client";
4807
4935
  }>;
4808
4936
  }, z.core.$strip>, z.ZodObject<{
4809
4937
  reason: z.ZodLiteral<"insufficient_scope">;
4810
4938
  source: z.ZodEnum<{
4811
4939
  unknown: "unknown";
4812
- query: "query";
4813
4940
  authorization: "authorization";
4941
+ query: "query";
4814
4942
  client: "client";
4815
4943
  }>;
4816
4944
  }, z.core.$strip>, z.ZodObject<{
@@ -4825,8 +4953,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4825
4953
  value: z.ZodOptional<z.ZodString>;
4826
4954
  source: z.ZodEnum<{
4827
4955
  unknown: "unknown";
4828
- query: "query";
4829
4956
  authorization: "authorization";
4957
+ query: "query";
4830
4958
  client: "client";
4831
4959
  }>;
4832
4960
  }, z.core.$strip>], "reason">;
@@ -4906,48 +5034,48 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4906
5034
  reason: z.ZodLiteral<"missing_token">;
4907
5035
  source: z.ZodEnum<{
4908
5036
  unknown: "unknown";
4909
- query: "query";
4910
5037
  authorization: "authorization";
5038
+ query: "query";
4911
5039
  client: "client";
4912
5040
  }>;
4913
5041
  }, z.core.$strip>, z.ZodObject<{
4914
5042
  reason: z.ZodLiteral<"invalid_token">;
4915
5043
  source: z.ZodEnum<{
4916
5044
  unknown: "unknown";
4917
- query: "query";
4918
5045
  authorization: "authorization";
5046
+ query: "query";
4919
5047
  client: "client";
4920
5048
  }>;
4921
5049
  }, z.core.$strip>, z.ZodObject<{
4922
5050
  reason: z.ZodLiteral<"expired_token">;
4923
5051
  source: z.ZodEnum<{
4924
5052
  unknown: "unknown";
4925
- query: "query";
4926
5053
  authorization: "authorization";
5054
+ query: "query";
4927
5055
  client: "client";
4928
5056
  }>;
4929
5057
  }, z.core.$strip>, z.ZodObject<{
4930
5058
  reason: z.ZodLiteral<"invalid_secret">;
4931
5059
  source: z.ZodEnum<{
4932
5060
  unknown: "unknown";
4933
- query: "query";
4934
5061
  authorization: "authorization";
5062
+ query: "query";
4935
5063
  client: "client";
4936
5064
  }>;
4937
5065
  }, z.core.$strip>, z.ZodObject<{
4938
5066
  reason: z.ZodLiteral<"user_mismatch">;
4939
5067
  source: z.ZodEnum<{
4940
5068
  unknown: "unknown";
4941
- query: "query";
4942
5069
  authorization: "authorization";
5070
+ query: "query";
4943
5071
  client: "client";
4944
5072
  }>;
4945
5073
  }, z.core.$strip>, z.ZodObject<{
4946
5074
  reason: z.ZodLiteral<"insufficient_scope">;
4947
5075
  source: z.ZodEnum<{
4948
5076
  unknown: "unknown";
4949
- query: "query";
4950
5077
  authorization: "authorization";
5078
+ query: "query";
4951
5079
  client: "client";
4952
5080
  }>;
4953
5081
  }, z.core.$strip>, z.ZodObject<{
@@ -4962,8 +5090,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
4962
5090
  value: z.ZodOptional<z.ZodString>;
4963
5091
  source: z.ZodEnum<{
4964
5092
  unknown: "unknown";
4965
- query: "query";
4966
5093
  authorization: "authorization";
5094
+ query: "query";
4967
5095
  client: "client";
4968
5096
  }>;
4969
5097
  }, z.core.$strip>], "reason">;
@@ -5085,8 +5213,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
5085
5213
  }>;
5086
5214
  reason: z.ZodEnum<{
5087
5215
  error: "error";
5088
- unknown: "unknown";
5089
5216
  timeout: "timeout";
5217
+ unknown: "unknown";
5090
5218
  closed: "closed";
5091
5219
  reset: "reset";
5092
5220
  }>;
@@ -5116,48 +5244,48 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
5116
5244
  reason: z.ZodLiteral<"missing_token">;
5117
5245
  source: z.ZodEnum<{
5118
5246
  unknown: "unknown";
5119
- query: "query";
5120
5247
  authorization: "authorization";
5248
+ query: "query";
5121
5249
  client: "client";
5122
5250
  }>;
5123
5251
  }, z.core.$strip>, z.ZodObject<{
5124
5252
  reason: z.ZodLiteral<"invalid_token">;
5125
5253
  source: z.ZodEnum<{
5126
5254
  unknown: "unknown";
5127
- query: "query";
5128
5255
  authorization: "authorization";
5256
+ query: "query";
5129
5257
  client: "client";
5130
5258
  }>;
5131
5259
  }, z.core.$strip>, z.ZodObject<{
5132
5260
  reason: z.ZodLiteral<"expired_token">;
5133
5261
  source: z.ZodEnum<{
5134
5262
  unknown: "unknown";
5135
- query: "query";
5136
5263
  authorization: "authorization";
5264
+ query: "query";
5137
5265
  client: "client";
5138
5266
  }>;
5139
5267
  }, z.core.$strip>, z.ZodObject<{
5140
5268
  reason: z.ZodLiteral<"invalid_secret">;
5141
5269
  source: z.ZodEnum<{
5142
5270
  unknown: "unknown";
5143
- query: "query";
5144
5271
  authorization: "authorization";
5272
+ query: "query";
5145
5273
  client: "client";
5146
5274
  }>;
5147
5275
  }, z.core.$strip>, z.ZodObject<{
5148
5276
  reason: z.ZodLiteral<"user_mismatch">;
5149
5277
  source: z.ZodEnum<{
5150
5278
  unknown: "unknown";
5151
- query: "query";
5152
5279
  authorization: "authorization";
5280
+ query: "query";
5153
5281
  client: "client";
5154
5282
  }>;
5155
5283
  }, z.core.$strip>, z.ZodObject<{
5156
5284
  reason: z.ZodLiteral<"insufficient_scope">;
5157
5285
  source: z.ZodEnum<{
5158
5286
  unknown: "unknown";
5159
- query: "query";
5160
5287
  authorization: "authorization";
5288
+ query: "query";
5161
5289
  client: "client";
5162
5290
  }>;
5163
5291
  }, z.core.$strip>, z.ZodObject<{
@@ -5172,8 +5300,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
5172
5300
  value: z.ZodOptional<z.ZodString>;
5173
5301
  source: z.ZodEnum<{
5174
5302
  unknown: "unknown";
5175
- query: "query";
5176
5303
  authorization: "authorization";
5304
+ query: "query";
5177
5305
  client: "client";
5178
5306
  }>;
5179
5307
  }, z.core.$strip>], "reason">;
@@ -5229,8 +5357,8 @@ declare const eventSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject
5229
5357
  }>;
5230
5358
  reason: z.ZodEnum<{
5231
5359
  error: "error";
5232
- unknown: "unknown";
5233
5360
  timeout: "timeout";
5361
+ unknown: "unknown";
5234
5362
  closed: "closed";
5235
5363
  reset: "reset";
5236
5364
  }>;
@@ -5516,9 +5644,9 @@ declare const webTTYSessionEventSchema: z.ZodObject<{
5516
5644
  type: z.ZodEnum<{
5517
5645
  error: "error";
5518
5646
  close: "close";
5647
+ data: "data";
5519
5648
  open: "open";
5520
5649
  ack: "ack";
5521
- data: "data";
5522
5650
  resize: "resize";
5523
5651
  participant: "participant";
5524
5652
  control: "control";
@@ -5742,6 +5870,12 @@ declare class RstreamWebTTYResource {
5742
5870
  }
5743
5871
 
5744
5872
  interface RstreamTunnelsConfig {
5873
+ /** Node.js TLS identity and trust configuration. Treat as immutable after construction. */
5874
+ tls?: EngineTLSOptions;
5875
+ /** Explicit mTLS API override; otherwise discover once per client cache lifetime. */
5876
+ mtlsApiUrl?: string;
5877
+ /** Optional Engine-only fetch implementation. */
5878
+ fetch?: typeof globalThis.fetch;
5745
5879
  /**
5746
5880
  * Data-plane credentials used against the engine.
5747
5881
  */
@@ -5786,11 +5920,17 @@ interface RstreamTunnelsConfig {
5786
5920
  declare class RstreamTunnelsClient {
5787
5921
  private readonly config?;
5788
5922
  private managedProject?;
5923
+ private readonly http;
5789
5924
  constructor(config?: RstreamTunnelsConfig);
5790
5925
  get apiUrl(): string;
5791
5926
  get credentials(): RstreamCredentials | undefined;
5792
5927
  get controlPlaneCredentials(): RstreamCredentials | undefined;
5928
+ get controlPlaneHeaders(): ControlPlaneHeaders | undefined;
5793
5929
  get projectEndpoint(): string | undefined;
5930
+ get configuredEngine(): string | undefined;
5931
+ get usesMTLS(): boolean;
5932
+ close(): Promise<void>;
5933
+ getEngineAPIURL(signal?: AbortSignal): Promise<string>;
5794
5934
  getEngine(): Promise<string>;
5795
5935
  getTURNTarget(): Promise<{
5796
5936
  turnDomain: string;
@@ -5811,7 +5951,11 @@ declare class RstreamTunnelsClient {
5811
5951
  get webtty(): RstreamWebTTYResource;
5812
5952
  get turn(): RstreamTURNResource;
5813
5953
  getToken(engine?: string): Promise<string | undefined>;
5814
- request<T>(path: string, options?: RequestInit): Promise<T>;
5954
+ openEventStream(signal?: AbortSignal): Promise<{
5955
+ response: Response;
5956
+ close(): void;
5957
+ }>;
5958
+ request<T>(path: string, options?: RequestInit, maxResponseBytes?: number): Promise<T>;
5815
5959
  }
5816
5960
 
5817
5961
  interface CreateAuthTokenFromClientCredentialsOptions {
@@ -6023,8 +6167,8 @@ declare const streamSummarySchema: z.ZodObject<{
6023
6167
  kind: z.ZodLiteral<"token">;
6024
6168
  source: z.ZodOptional<z.ZodEnum<{
6025
6169
  unknown: "unknown";
6026
- query: "query";
6027
6170
  authorization: "authorization";
6171
+ query: "query";
6028
6172
  client: "client";
6029
6173
  }>>;
6030
6174
  tokenType: z.ZodOptional<z.ZodEnum<{
@@ -6050,8 +6194,8 @@ declare const streamSummarySchema: z.ZodObject<{
6050
6194
  kind: z.ZodLiteral<"token">;
6051
6195
  source: z.ZodOptional<z.ZodEnum<{
6052
6196
  unknown: "unknown";
6053
- query: "query";
6054
6197
  authorization: "authorization";
6198
+ query: "query";
6055
6199
  client: "client";
6056
6200
  }>>;
6057
6201
  tokenType: z.ZodOptional<z.ZodEnum<{
@@ -6071,48 +6215,48 @@ declare const streamSummarySchema: z.ZodObject<{
6071
6215
  reason: z.ZodLiteral<"missing_token">;
6072
6216
  source: z.ZodEnum<{
6073
6217
  unknown: "unknown";
6074
- query: "query";
6075
6218
  authorization: "authorization";
6219
+ query: "query";
6076
6220
  client: "client";
6077
6221
  }>;
6078
6222
  }, z.core.$strip>, z.ZodObject<{
6079
6223
  reason: z.ZodLiteral<"invalid_token">;
6080
6224
  source: z.ZodEnum<{
6081
6225
  unknown: "unknown";
6082
- query: "query";
6083
6226
  authorization: "authorization";
6227
+ query: "query";
6084
6228
  client: "client";
6085
6229
  }>;
6086
6230
  }, z.core.$strip>, z.ZodObject<{
6087
6231
  reason: z.ZodLiteral<"expired_token">;
6088
6232
  source: z.ZodEnum<{
6089
6233
  unknown: "unknown";
6090
- query: "query";
6091
6234
  authorization: "authorization";
6235
+ query: "query";
6092
6236
  client: "client";
6093
6237
  }>;
6094
6238
  }, z.core.$strip>, z.ZodObject<{
6095
6239
  reason: z.ZodLiteral<"invalid_secret">;
6096
6240
  source: z.ZodEnum<{
6097
6241
  unknown: "unknown";
6098
- query: "query";
6099
6242
  authorization: "authorization";
6243
+ query: "query";
6100
6244
  client: "client";
6101
6245
  }>;
6102
6246
  }, z.core.$strip>, z.ZodObject<{
6103
6247
  reason: z.ZodLiteral<"user_mismatch">;
6104
6248
  source: z.ZodEnum<{
6105
6249
  unknown: "unknown";
6106
- query: "query";
6107
6250
  authorization: "authorization";
6251
+ query: "query";
6108
6252
  client: "client";
6109
6253
  }>;
6110
6254
  }, z.core.$strip>, z.ZodObject<{
6111
6255
  reason: z.ZodLiteral<"insufficient_scope">;
6112
6256
  source: z.ZodEnum<{
6113
6257
  unknown: "unknown";
6114
- query: "query";
6115
6258
  authorization: "authorization";
6259
+ query: "query";
6116
6260
  client: "client";
6117
6261
  }>;
6118
6262
  }, z.core.$strip>, z.ZodObject<{
@@ -6127,8 +6271,8 @@ declare const streamSummarySchema: z.ZodObject<{
6127
6271
  value: z.ZodOptional<z.ZodString>;
6128
6272
  source: z.ZodEnum<{
6129
6273
  unknown: "unknown";
6130
- query: "query";
6131
6274
  authorization: "authorization";
6275
+ query: "query";
6132
6276
  client: "client";
6133
6277
  }>;
6134
6278
  }, z.core.$strip>], "reason">;
@@ -6208,48 +6352,48 @@ declare const streamSummarySchema: z.ZodObject<{
6208
6352
  reason: z.ZodLiteral<"missing_token">;
6209
6353
  source: z.ZodEnum<{
6210
6354
  unknown: "unknown";
6211
- query: "query";
6212
6355
  authorization: "authorization";
6356
+ query: "query";
6213
6357
  client: "client";
6214
6358
  }>;
6215
6359
  }, z.core.$strip>, z.ZodObject<{
6216
6360
  reason: z.ZodLiteral<"invalid_token">;
6217
6361
  source: z.ZodEnum<{
6218
6362
  unknown: "unknown";
6219
- query: "query";
6220
6363
  authorization: "authorization";
6364
+ query: "query";
6221
6365
  client: "client";
6222
6366
  }>;
6223
6367
  }, z.core.$strip>, z.ZodObject<{
6224
6368
  reason: z.ZodLiteral<"expired_token">;
6225
6369
  source: z.ZodEnum<{
6226
6370
  unknown: "unknown";
6227
- query: "query";
6228
6371
  authorization: "authorization";
6372
+ query: "query";
6229
6373
  client: "client";
6230
6374
  }>;
6231
6375
  }, z.core.$strip>, z.ZodObject<{
6232
6376
  reason: z.ZodLiteral<"invalid_secret">;
6233
6377
  source: z.ZodEnum<{
6234
6378
  unknown: "unknown";
6235
- query: "query";
6236
6379
  authorization: "authorization";
6380
+ query: "query";
6237
6381
  client: "client";
6238
6382
  }>;
6239
6383
  }, z.core.$strip>, z.ZodObject<{
6240
6384
  reason: z.ZodLiteral<"user_mismatch">;
6241
6385
  source: z.ZodEnum<{
6242
6386
  unknown: "unknown";
6243
- query: "query";
6244
6387
  authorization: "authorization";
6388
+ query: "query";
6245
6389
  client: "client";
6246
6390
  }>;
6247
6391
  }, z.core.$strip>, z.ZodObject<{
6248
6392
  reason: z.ZodLiteral<"insufficient_scope">;
6249
6393
  source: z.ZodEnum<{
6250
6394
  unknown: "unknown";
6251
- query: "query";
6252
6395
  authorization: "authorization";
6396
+ query: "query";
6253
6397
  client: "client";
6254
6398
  }>;
6255
6399
  }, z.core.$strip>, z.ZodObject<{
@@ -6264,8 +6408,8 @@ declare const streamSummarySchema: z.ZodObject<{
6264
6408
  value: z.ZodOptional<z.ZodString>;
6265
6409
  source: z.ZodEnum<{
6266
6410
  unknown: "unknown";
6267
- query: "query";
6268
6411
  authorization: "authorization";
6412
+ query: "query";
6269
6413
  client: "client";
6270
6414
  }>;
6271
6415
  }, z.core.$strip>], "reason">;
@@ -6387,8 +6531,8 @@ declare const streamSummarySchema: z.ZodObject<{
6387
6531
  }>;
6388
6532
  reason: z.ZodEnum<{
6389
6533
  error: "error";
6390
- unknown: "unknown";
6391
6534
  timeout: "timeout";
6535
+ unknown: "unknown";
6392
6536
  closed: "closed";
6393
6537
  reset: "reset";
6394
6538
  }>;
@@ -6418,48 +6562,48 @@ declare const streamSummarySchema: z.ZodObject<{
6418
6562
  reason: z.ZodLiteral<"missing_token">;
6419
6563
  source: z.ZodEnum<{
6420
6564
  unknown: "unknown";
6421
- query: "query";
6422
6565
  authorization: "authorization";
6566
+ query: "query";
6423
6567
  client: "client";
6424
6568
  }>;
6425
6569
  }, z.core.$strip>, z.ZodObject<{
6426
6570
  reason: z.ZodLiteral<"invalid_token">;
6427
6571
  source: z.ZodEnum<{
6428
6572
  unknown: "unknown";
6429
- query: "query";
6430
6573
  authorization: "authorization";
6574
+ query: "query";
6431
6575
  client: "client";
6432
6576
  }>;
6433
6577
  }, z.core.$strip>, z.ZodObject<{
6434
6578
  reason: z.ZodLiteral<"expired_token">;
6435
6579
  source: z.ZodEnum<{
6436
6580
  unknown: "unknown";
6437
- query: "query";
6438
6581
  authorization: "authorization";
6582
+ query: "query";
6439
6583
  client: "client";
6440
6584
  }>;
6441
6585
  }, z.core.$strip>, z.ZodObject<{
6442
6586
  reason: z.ZodLiteral<"invalid_secret">;
6443
6587
  source: z.ZodEnum<{
6444
6588
  unknown: "unknown";
6445
- query: "query";
6446
6589
  authorization: "authorization";
6590
+ query: "query";
6447
6591
  client: "client";
6448
6592
  }>;
6449
6593
  }, z.core.$strip>, z.ZodObject<{
6450
6594
  reason: z.ZodLiteral<"user_mismatch">;
6451
6595
  source: z.ZodEnum<{
6452
6596
  unknown: "unknown";
6453
- query: "query";
6454
6597
  authorization: "authorization";
6598
+ query: "query";
6455
6599
  client: "client";
6456
6600
  }>;
6457
6601
  }, z.core.$strip>, z.ZodObject<{
6458
6602
  reason: z.ZodLiteral<"insufficient_scope">;
6459
6603
  source: z.ZodEnum<{
6460
6604
  unknown: "unknown";
6461
- query: "query";
6462
6605
  authorization: "authorization";
6606
+ query: "query";
6463
6607
  client: "client";
6464
6608
  }>;
6465
6609
  }, z.core.$strip>, z.ZodObject<{
@@ -6474,8 +6618,8 @@ declare const streamSummarySchema: z.ZodObject<{
6474
6618
  value: z.ZodOptional<z.ZodString>;
6475
6619
  source: z.ZodEnum<{
6476
6620
  unknown: "unknown";
6477
- query: "query";
6478
6621
  authorization: "authorization";
6622
+ query: "query";
6479
6623
  client: "client";
6480
6624
  }>;
6481
6625
  }, z.core.$strip>], "reason">;
@@ -6531,8 +6675,8 @@ declare const streamSummarySchema: z.ZodObject<{
6531
6675
  }>;
6532
6676
  reason: z.ZodEnum<{
6533
6677
  error: "error";
6534
- unknown: "unknown";
6535
6678
  timeout: "timeout";
6679
+ unknown: "unknown";
6536
6680
  closed: "closed";
6537
6681
  reset: "reset";
6538
6682
  }>;
@@ -6565,7 +6709,9 @@ interface WatchConfig {
6565
6709
  /**
6566
6710
  * Short-term authentication token provider.
6567
6711
  */
6568
- auth: RstreamAuth;
6712
+ auth?: RstreamAuth;
6713
+ /** Reuses the Node.js client's certificate, HTTP pool and discovery cache for SSE. */
6714
+ client?: RstreamTunnelsClient;
6569
6715
  /**
6570
6716
  * Engine URL to connect to. (e.g. "project-endpoint.cluster.example.rstream.test:443").
6571
6717
  */
@@ -6609,12 +6755,15 @@ interface WatchWsEvents {
6609
6755
  onClose?: () => void;
6610
6756
  }
6611
6757
  declare class Watch {
6758
+ private readonly abort;
6759
+ private closeStream?;
6612
6760
  private connection;
6613
6761
  private connectionState;
6614
6762
  private readonly config;
6615
6763
  private readonly events;
6616
6764
  constructor(config: WatchConfig, events: WatchWsEvents);
6617
6765
  connect(): Promise<void>;
6766
+ private readCertificateEvents;
6618
6767
  private handleMessage;
6619
6768
  disconnect(): void;
6620
6769
  }
@@ -6709,4 +6858,4 @@ declare function resolveWebTTYBrowserEndpoint(server: WebTTYServer): {
6709
6858
  transport: "websocket" | "webtransport";
6710
6859
  };
6711
6860
 
6712
- 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 WebTTYTransport, 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, resolveWebTTYBrowserEndpoint, resolveWebTTYControlRequestParamsSchema, resolveWebTTYServerTransport, 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, webttyTransportSchema, wsEventsSchema };
6861
+ export { type AttachWebTTYParticipantParams, type BuildWebhookHeadersOptions, type Client, type ClientFilter, type CreateAPITURNCredentialsOptions, type CreateAPPTURNCredentialsOptions, type CreateAuthTokenFromClientCredentialsOptions, type CreatePATTURNCredentialsOptions, type CreateTURNCredentialsOptions, type CreateWebTTYControlRequestParams, type DetachWebTTYParticipantParams, type EngineTLSOptions, 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 WebTTYTransport, 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, resolveWebTTYBrowserEndpoint, resolveWebTTYControlRequestParamsSchema, resolveWebTTYServerTransport, signWebhookPayload, streamEndpointSchema, streamEntrySchema, streamSummaryEventSchema, streamSummarySchema, streamTLSInfoSchema, streamWebTTYMetadataSchema, tunnelFilterSchema, turnCredentialModeSchema, validateTURNCredentialsRequest, webTTYCapabilitiesSchema, webTTYContextMetadataSchema, webTTYControlRequestSchema, webTTYCryptoMetadataSchema, webTTYEncryptionModeSchema, webTTYKeyGrantDecryptMaterialSchema, webTTYKeyGrantSchema, webTTYOriginSchema, webTTYParticipantLiveSchema, webTTYParticipantRoleSchema, webTTYParticipantSchema, webTTYRecordingModeSchema, webTTYSessionEventSchema, webTTYSessionGroupSchema, webTTYSessionLiveSchema, webTTYSessionModeSchema, webTTYSessionSchema, webTTYTransportSchema, webhookEventsSchema, webttyServerSchema, webttyTransportSchema, wsEventsSchema };