@rstreamlabs/tunnels 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,14 +1,15 @@
1
- import { RstreamCredentials, TURNCredentials, ClientCredentials } from '@rstreamlabs/rstream';
1
+ import { RstreamCredentials, TURNCredentials, ClientCredentials, TunnelsProject } from '@rstreamlabs/rstream';
2
2
  import * as z from 'zod';
3
3
  import { JwtPayload } from 'jsonwebtoken';
4
+ export { engineOpenApiDocument, engineOpenApiJson } from './openapi.js';
4
5
 
5
6
  declare const StringFilter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
6
7
  exact: z.ZodString;
7
- }, z.core.$strip>, z.ZodObject<{
8
+ }, z.core.$strict>, z.ZodObject<{
8
9
  oneof: z.ZodArray<z.ZodString>;
9
- }, z.core.$strip>, z.ZodObject<{
10
+ }, z.core.$strict>, z.ZodObject<{
10
11
  regex: z.ZodString;
11
- }, z.core.$strip>]>;
12
+ }, z.core.$strict>]>;
12
13
  type Schema = z.core.SomeType;
13
14
  type Shape = z.ZodRawShape;
14
15
  type RecordKey = z.core.$ZodRecordKey;
@@ -105,7 +106,7 @@ declare const authTokenTunnelsScopesSchema: z.ZodObject<{
105
106
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
106
107
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
107
108
  }>, unknown>>>;
108
- }, z.core.$strip>]>>;
109
+ }, z.core.$strict>]>>;
109
110
  connect: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
110
111
  filters: z.ZodOptional<z.ZodType<FilterNode<{
111
112
  client_id: z.ZodString;
@@ -219,7 +220,7 @@ declare const authTokenTunnelsScopesSchema: z.ZodObject<{
219
220
  }>, unknown, z.core.$ZodTypeInternals<FilterNode<{
220
221
  path: z.ZodOptional<z.ZodString>;
221
222
  }>, unknown>>>;
222
- }, z.core.$strip>]>>;
223
+ }, z.core.$strict>]>>;
223
224
  list: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
224
225
  filters: z.ZodOptional<z.ZodType<FilterNode<{
225
226
  client_id: z.ZodString;
@@ -363,8 +364,8 @@ declare const authTokenTunnelsScopesSchema: z.ZodObject<{
363
364
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
364
365
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
365
366
  }, z.core.$strip>>;
366
- }, z.core.$strip>]>>;
367
- }, z.core.$strip>;
367
+ }, z.core.$strict>]>>;
368
+ }, z.core.$strict>;
368
369
  declare const authTokenScopesSchema: z.ZodObject<{
369
370
  tunnels: z.ZodOptional<z.ZodObject<{
370
371
  create: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
@@ -447,7 +448,7 @@ declare const authTokenScopesSchema: z.ZodObject<{
447
448
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
448
449
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
449
450
  }>, unknown>>>;
450
- }, z.core.$strip>]>>;
451
+ }, z.core.$strict>]>>;
451
452
  connect: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
452
453
  filters: z.ZodOptional<z.ZodType<FilterNode<{
453
454
  client_id: z.ZodString;
@@ -561,7 +562,7 @@ declare const authTokenScopesSchema: z.ZodObject<{
561
562
  }>, unknown, z.core.$ZodTypeInternals<FilterNode<{
562
563
  path: z.ZodOptional<z.ZodString>;
563
564
  }>, unknown>>>;
564
- }, z.core.$strip>]>>;
565
+ }, z.core.$strict>]>>;
565
566
  list: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
566
567
  filters: z.ZodOptional<z.ZodType<FilterNode<{
567
568
  client_id: z.ZodString;
@@ -705,13 +706,13 @@ declare const authTokenScopesSchema: z.ZodObject<{
705
706
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
706
707
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
707
708
  }, z.core.$strip>>;
708
- }, z.core.$strip>]>>;
709
- }, z.core.$strip>>;
710
- }, z.core.$strip>;
709
+ }, z.core.$strict>]>>;
710
+ }, z.core.$strict>>;
711
+ }, z.core.$strict>;
711
712
  declare const authTokenTunnelGrantSchema: z.ZodObject<{
712
713
  workspaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
713
714
  projects: z.ZodOptional<z.ZodArray<z.ZodString>>;
714
- scopes: z.ZodOptional<z.ZodObject<{
715
+ scopes: z.ZodObject<{
715
716
  tunnels: z.ZodOptional<z.ZodObject<{
716
717
  create: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
717
718
  filters: z.ZodOptional<z.ZodType<FilterNode<{
@@ -793,7 +794,7 @@ declare const authTokenTunnelGrantSchema: z.ZodObject<{
793
794
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
794
795
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
795
796
  }>, unknown>>>;
796
- }, z.core.$strip>]>>;
797
+ }, z.core.$strict>]>>;
797
798
  connect: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
798
799
  filters: z.ZodOptional<z.ZodType<FilterNode<{
799
800
  client_id: z.ZodString;
@@ -907,7 +908,7 @@ declare const authTokenTunnelGrantSchema: z.ZodObject<{
907
908
  }>, unknown, z.core.$ZodTypeInternals<FilterNode<{
908
909
  path: z.ZodOptional<z.ZodString>;
909
910
  }>, unknown>>>;
910
- }, z.core.$strip>]>>;
911
+ }, z.core.$strict>]>>;
911
912
  list: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
912
913
  filters: z.ZodOptional<z.ZodType<FilterNode<{
913
914
  client_id: z.ZodString;
@@ -1051,9 +1052,9 @@ declare const authTokenTunnelGrantSchema: z.ZodObject<{
1051
1052
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
1052
1053
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
1053
1054
  }, z.core.$strip>>;
1054
- }, z.core.$strip>]>>;
1055
- }, z.core.$strip>>;
1056
- }, z.core.$strip>>;
1055
+ }, z.core.$strict>]>>;
1056
+ }, z.core.$strict>>;
1057
+ }, z.core.$strict>;
1057
1058
  }, z.core.$strict>;
1058
1059
  declare const authTokenSchema: z.ZodUnion<readonly [z.ZodObject<{
1059
1060
  aud: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
@@ -1061,7 +1062,7 @@ declare const authTokenSchema: z.ZodUnion<readonly [z.ZodObject<{
1061
1062
  tunnelsGrants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1062
1063
  workspaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
1063
1064
  projects: z.ZodOptional<z.ZodArray<z.ZodString>>;
1064
- scopes: z.ZodOptional<z.ZodObject<{
1065
+ scopes: z.ZodObject<{
1065
1066
  tunnels: z.ZodOptional<z.ZodObject<{
1066
1067
  create: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
1067
1068
  filters: z.ZodOptional<z.ZodType<FilterNode<{
@@ -1143,7 +1144,7 @@ declare const authTokenSchema: z.ZodUnion<readonly [z.ZodObject<{
1143
1144
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
1144
1145
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
1145
1146
  }>, unknown>>>;
1146
- }, z.core.$strip>]>>;
1147
+ }, z.core.$strict>]>>;
1147
1148
  connect: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
1148
1149
  filters: z.ZodOptional<z.ZodType<FilterNode<{
1149
1150
  client_id: z.ZodString;
@@ -1257,7 +1258,7 @@ declare const authTokenSchema: z.ZodUnion<readonly [z.ZodObject<{
1257
1258
  }>, unknown, z.core.$ZodTypeInternals<FilterNode<{
1258
1259
  path: z.ZodOptional<z.ZodString>;
1259
1260
  }>, unknown>>>;
1260
- }, z.core.$strip>]>>;
1261
+ }, z.core.$strict>]>>;
1261
1262
  list: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
1262
1263
  filters: z.ZodOptional<z.ZodType<FilterNode<{
1263
1264
  client_id: z.ZodString;
@@ -1401,9 +1402,9 @@ declare const authTokenSchema: z.ZodUnion<readonly [z.ZodObject<{
1401
1402
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
1402
1403
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
1403
1404
  }, z.core.$strip>>;
1404
- }, z.core.$strip>]>>;
1405
- }, z.core.$strip>>;
1406
- }, z.core.$strip>>;
1405
+ }, z.core.$strict>]>>;
1406
+ }, z.core.$strict>>;
1407
+ }, z.core.$strict>;
1407
1408
  }, z.core.$strict>>>;
1408
1409
  iat: z.ZodOptional<z.ZodNumber>;
1409
1410
  iss: z.ZodOptional<z.ZodString>;
@@ -1422,7 +1423,7 @@ declare const authTokenSchema: z.ZodUnion<readonly [z.ZodObject<{
1422
1423
  tunnelsGrants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1423
1424
  workspaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
1424
1425
  projects: z.ZodOptional<z.ZodArray<z.ZodString>>;
1425
- scopes: z.ZodOptional<z.ZodObject<{
1426
+ scopes: z.ZodObject<{
1426
1427
  tunnels: z.ZodOptional<z.ZodObject<{
1427
1428
  create: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
1428
1429
  filters: z.ZodOptional<z.ZodType<FilterNode<{
@@ -1504,7 +1505,7 @@ declare const authTokenSchema: z.ZodUnion<readonly [z.ZodObject<{
1504
1505
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
1505
1506
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
1506
1507
  }>, unknown>>>;
1507
- }, z.core.$strip>]>>;
1508
+ }, z.core.$strict>]>>;
1508
1509
  connect: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
1509
1510
  filters: z.ZodOptional<z.ZodType<FilterNode<{
1510
1511
  client_id: z.ZodString;
@@ -1618,7 +1619,7 @@ declare const authTokenSchema: z.ZodUnion<readonly [z.ZodObject<{
1618
1619
  }>, unknown, z.core.$ZodTypeInternals<FilterNode<{
1619
1620
  path: z.ZodOptional<z.ZodString>;
1620
1621
  }>, unknown>>>;
1621
- }, z.core.$strip>]>>;
1622
+ }, z.core.$strict>]>>;
1622
1623
  list: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
1623
1624
  filters: z.ZodOptional<z.ZodType<FilterNode<{
1624
1625
  client_id: z.ZodString;
@@ -1762,9 +1763,9 @@ declare const authTokenSchema: z.ZodUnion<readonly [z.ZodObject<{
1762
1763
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
1763
1764
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
1764
1765
  }, z.core.$strip>>;
1765
- }, z.core.$strip>]>>;
1766
- }, z.core.$strip>>;
1767
- }, z.core.$strip>>;
1766
+ }, z.core.$strict>]>>;
1767
+ }, z.core.$strict>>;
1768
+ }, z.core.$strict>;
1768
1769
  }, z.core.$strict>>>;
1769
1770
  iat: z.ZodOptional<z.ZodNumber>;
1770
1771
  iss: z.ZodOptional<z.ZodString>;
@@ -1782,7 +1783,7 @@ declare const authTokenSchema: z.ZodUnion<readonly [z.ZodObject<{
1782
1783
  tunnelsGrants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1783
1784
  workspaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
1784
1785
  projects: z.ZodOptional<z.ZodArray<z.ZodString>>;
1785
- scopes: z.ZodOptional<z.ZodObject<{
1786
+ scopes: z.ZodObject<{
1786
1787
  tunnels: z.ZodOptional<z.ZodObject<{
1787
1788
  create: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
1788
1789
  filters: z.ZodOptional<z.ZodType<FilterNode<{
@@ -1864,7 +1865,7 @@ declare const authTokenSchema: z.ZodUnion<readonly [z.ZodObject<{
1864
1865
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
1865
1866
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
1866
1867
  }>, unknown>>>;
1867
- }, z.core.$strip>]>>;
1868
+ }, z.core.$strict>]>>;
1868
1869
  connect: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
1869
1870
  filters: z.ZodOptional<z.ZodType<FilterNode<{
1870
1871
  client_id: z.ZodString;
@@ -1978,7 +1979,7 @@ declare const authTokenSchema: z.ZodUnion<readonly [z.ZodObject<{
1978
1979
  }>, unknown, z.core.$ZodTypeInternals<FilterNode<{
1979
1980
  path: z.ZodOptional<z.ZodString>;
1980
1981
  }>, unknown>>>;
1981
- }, z.core.$strip>]>>;
1982
+ }, z.core.$strict>]>>;
1982
1983
  list: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
1983
1984
  filters: z.ZodOptional<z.ZodType<FilterNode<{
1984
1985
  client_id: z.ZodString;
@@ -2122,9 +2123,9 @@ declare const authTokenSchema: z.ZodUnion<readonly [z.ZodObject<{
2122
2123
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
2123
2124
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
2124
2125
  }, z.core.$strip>>;
2125
- }, z.core.$strip>]>>;
2126
- }, z.core.$strip>>;
2127
- }, z.core.$strip>>;
2126
+ }, z.core.$strict>]>>;
2127
+ }, z.core.$strict>>;
2128
+ }, z.core.$strict>;
2128
2129
  }, z.core.$strict>>>;
2129
2130
  iat: z.ZodOptional<z.ZodNumber>;
2130
2131
  iss: z.ZodOptional<z.ZodString>;
@@ -2144,7 +2145,7 @@ declare const tokenSchema: z.ZodUnion<readonly [z.ZodObject<{
2144
2145
  tunnelsGrants: z.ZodOptional<z.ZodArray<z.ZodObject<{
2145
2146
  workspaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
2146
2147
  projects: z.ZodOptional<z.ZodArray<z.ZodString>>;
2147
- scopes: z.ZodOptional<z.ZodObject<{
2148
+ scopes: z.ZodObject<{
2148
2149
  tunnels: z.ZodOptional<z.ZodObject<{
2149
2150
  create: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
2150
2151
  filters: z.ZodOptional<z.ZodType<FilterNode<{
@@ -2226,7 +2227,7 @@ declare const tokenSchema: z.ZodUnion<readonly [z.ZodObject<{
2226
2227
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
2227
2228
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
2228
2229
  }>, unknown>>>;
2229
- }, z.core.$strip>]>>;
2230
+ }, z.core.$strict>]>>;
2230
2231
  connect: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
2231
2232
  filters: z.ZodOptional<z.ZodType<FilterNode<{
2232
2233
  client_id: z.ZodString;
@@ -2340,7 +2341,7 @@ declare const tokenSchema: z.ZodUnion<readonly [z.ZodObject<{
2340
2341
  }>, unknown, z.core.$ZodTypeInternals<FilterNode<{
2341
2342
  path: z.ZodOptional<z.ZodString>;
2342
2343
  }>, unknown>>>;
2343
- }, z.core.$strip>]>>;
2344
+ }, z.core.$strict>]>>;
2344
2345
  list: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
2345
2346
  filters: z.ZodOptional<z.ZodType<FilterNode<{
2346
2347
  client_id: z.ZodString;
@@ -2484,9 +2485,9 @@ declare const tokenSchema: z.ZodUnion<readonly [z.ZodObject<{
2484
2485
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
2485
2486
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
2486
2487
  }, z.core.$strip>>;
2487
- }, z.core.$strip>]>>;
2488
- }, z.core.$strip>>;
2489
- }, z.core.$strip>>;
2488
+ }, z.core.$strict>]>>;
2489
+ }, z.core.$strict>>;
2490
+ }, z.core.$strict>;
2490
2491
  }, z.core.$strict>>>;
2491
2492
  iat: z.ZodOptional<z.ZodNumber>;
2492
2493
  iss: z.ZodOptional<z.ZodString>;
@@ -2505,7 +2506,7 @@ declare const tokenSchema: z.ZodUnion<readonly [z.ZodObject<{
2505
2506
  tunnelsGrants: z.ZodOptional<z.ZodArray<z.ZodObject<{
2506
2507
  workspaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
2507
2508
  projects: z.ZodOptional<z.ZodArray<z.ZodString>>;
2508
- scopes: z.ZodOptional<z.ZodObject<{
2509
+ scopes: z.ZodObject<{
2509
2510
  tunnels: z.ZodOptional<z.ZodObject<{
2510
2511
  create: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
2511
2512
  filters: z.ZodOptional<z.ZodType<FilterNode<{
@@ -2587,7 +2588,7 @@ declare const tokenSchema: z.ZodUnion<readonly [z.ZodObject<{
2587
2588
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
2588
2589
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
2589
2590
  }>, unknown>>>;
2590
- }, z.core.$strip>]>>;
2591
+ }, z.core.$strict>]>>;
2591
2592
  connect: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
2592
2593
  filters: z.ZodOptional<z.ZodType<FilterNode<{
2593
2594
  client_id: z.ZodString;
@@ -2701,7 +2702,7 @@ declare const tokenSchema: z.ZodUnion<readonly [z.ZodObject<{
2701
2702
  }>, unknown, z.core.$ZodTypeInternals<FilterNode<{
2702
2703
  path: z.ZodOptional<z.ZodString>;
2703
2704
  }>, unknown>>>;
2704
- }, z.core.$strip>]>>;
2705
+ }, z.core.$strict>]>>;
2705
2706
  list: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
2706
2707
  filters: z.ZodOptional<z.ZodType<FilterNode<{
2707
2708
  client_id: z.ZodString;
@@ -2845,9 +2846,9 @@ declare const tokenSchema: z.ZodUnion<readonly [z.ZodObject<{
2845
2846
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
2846
2847
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
2847
2848
  }, z.core.$strip>>;
2848
- }, z.core.$strip>]>>;
2849
- }, z.core.$strip>>;
2850
- }, z.core.$strip>>;
2849
+ }, z.core.$strict>]>>;
2850
+ }, z.core.$strict>>;
2851
+ }, z.core.$strict>;
2851
2852
  }, z.core.$strict>>>;
2852
2853
  iat: z.ZodOptional<z.ZodNumber>;
2853
2854
  iss: z.ZodOptional<z.ZodString>;
@@ -2865,7 +2866,7 @@ declare const tokenSchema: z.ZodUnion<readonly [z.ZodObject<{
2865
2866
  tunnelsGrants: z.ZodOptional<z.ZodArray<z.ZodObject<{
2866
2867
  workspaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
2867
2868
  projects: z.ZodOptional<z.ZodArray<z.ZodString>>;
2868
- scopes: z.ZodOptional<z.ZodObject<{
2869
+ scopes: z.ZodObject<{
2869
2870
  tunnels: z.ZodOptional<z.ZodObject<{
2870
2871
  create: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
2871
2872
  filters: z.ZodOptional<z.ZodType<FilterNode<{
@@ -2947,7 +2948,7 @@ declare const tokenSchema: z.ZodUnion<readonly [z.ZodObject<{
2947
2948
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
2948
2949
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
2949
2950
  }>, unknown>>>;
2950
- }, z.core.$strip>]>>;
2951
+ }, z.core.$strict>]>>;
2951
2952
  connect: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
2952
2953
  filters: z.ZodOptional<z.ZodType<FilterNode<{
2953
2954
  client_id: z.ZodString;
@@ -3061,7 +3062,7 @@ declare const tokenSchema: z.ZodUnion<readonly [z.ZodObject<{
3061
3062
  }>, unknown, z.core.$ZodTypeInternals<FilterNode<{
3062
3063
  path: z.ZodOptional<z.ZodString>;
3063
3064
  }>, unknown>>>;
3064
- }, z.core.$strip>]>>;
3065
+ }, z.core.$strict>]>>;
3065
3066
  list: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
3066
3067
  filters: z.ZodOptional<z.ZodType<FilterNode<{
3067
3068
  client_id: z.ZodString;
@@ -3205,9 +3206,9 @@ declare const tokenSchema: z.ZodUnion<readonly [z.ZodObject<{
3205
3206
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
3206
3207
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
3207
3208
  }, z.core.$strip>>;
3208
- }, z.core.$strip>]>>;
3209
- }, z.core.$strip>>;
3210
- }, z.core.$strip>>;
3209
+ }, z.core.$strict>]>>;
3210
+ }, z.core.$strict>>;
3211
+ }, z.core.$strict>;
3211
3212
  }, z.core.$strict>>>;
3212
3213
  iat: z.ZodOptional<z.ZodNumber>;
3213
3214
  iss: z.ZodOptional<z.ZodString>;
@@ -3305,7 +3306,7 @@ declare const createAuthTokenParamsSchema: z.ZodObject<{
3305
3306
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
3306
3307
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
3307
3308
  }>, unknown>>>;
3308
- }, z.core.$strip>]>>;
3309
+ }, z.core.$strict>]>>;
3309
3310
  connect: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
3310
3311
  filters: z.ZodOptional<z.ZodType<FilterNode<{
3311
3312
  client_id: z.ZodString;
@@ -3419,7 +3420,7 @@ declare const createAuthTokenParamsSchema: z.ZodObject<{
3419
3420
  }>, unknown, z.core.$ZodTypeInternals<FilterNode<{
3420
3421
  path: z.ZodOptional<z.ZodString>;
3421
3422
  }>, unknown>>>;
3422
- }, z.core.$strip>]>>;
3423
+ }, z.core.$strict>]>>;
3423
3424
  list: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
3424
3425
  filters: z.ZodOptional<z.ZodType<FilterNode<{
3425
3426
  client_id: z.ZodString;
@@ -3563,13 +3564,13 @@ declare const createAuthTokenParamsSchema: z.ZodObject<{
3563
3564
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
3564
3565
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
3565
3566
  }, z.core.$strip>>;
3566
- }, z.core.$strip>]>>;
3567
- }, z.core.$strip>>;
3568
- }, z.core.$strip>>;
3567
+ }, z.core.$strict>]>>;
3568
+ }, z.core.$strict>>;
3569
+ }, z.core.$strict>>;
3569
3570
  tunnelsGrants: z.ZodOptional<z.ZodArray<z.ZodObject<{
3570
3571
  workspaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
3571
3572
  projects: z.ZodOptional<z.ZodArray<z.ZodString>>;
3572
- scopes: z.ZodOptional<z.ZodObject<{
3573
+ scopes: z.ZodObject<{
3573
3574
  tunnels: z.ZodOptional<z.ZodObject<{
3574
3575
  create: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
3575
3576
  filters: z.ZodOptional<z.ZodType<FilterNode<{
@@ -3651,7 +3652,7 @@ declare const createAuthTokenParamsSchema: z.ZodObject<{
3651
3652
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
3652
3653
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
3653
3654
  }>, unknown>>>;
3654
- }, z.core.$strip>]>>;
3655
+ }, z.core.$strict>]>>;
3655
3656
  connect: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
3656
3657
  filters: z.ZodOptional<z.ZodType<FilterNode<{
3657
3658
  client_id: z.ZodString;
@@ -3765,7 +3766,7 @@ declare const createAuthTokenParamsSchema: z.ZodObject<{
3765
3766
  }>, unknown, z.core.$ZodTypeInternals<FilterNode<{
3766
3767
  path: z.ZodOptional<z.ZodString>;
3767
3768
  }>, unknown>>>;
3768
- }, z.core.$strip>]>>;
3769
+ }, z.core.$strict>]>>;
3769
3770
  list: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
3770
3771
  filters: z.ZodOptional<z.ZodType<FilterNode<{
3771
3772
  client_id: z.ZodString;
@@ -3909,9 +3910,9 @@ declare const createAuthTokenParamsSchema: z.ZodObject<{
3909
3910
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
3910
3911
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
3911
3912
  }, z.core.$strip>>;
3912
- }, z.core.$strip>]>>;
3913
- }, z.core.$strip>>;
3914
- }, z.core.$strip>>;
3913
+ }, z.core.$strict>]>>;
3914
+ }, z.core.$strict>>;
3915
+ }, z.core.$strict>;
3915
3916
  }, z.core.$strict>>>;
3916
3917
  metadata: z.ZodOptional<z.ZodUnknown>;
3917
3918
  }, z.core.$strict>;
@@ -3923,7 +3924,8 @@ type RstreamAuthTokenTunnelGrant = z.infer<typeof authTokenTunnelGrantSchema>;
3923
3924
  type RstreamAuthTokenScopes = z.infer<typeof authTokenTunnelsScopesSchema>;
3924
3925
  type RstreamAuthToken = z.infer<typeof authTokenSchema>;
3925
3926
  type Token = z.infer<typeof tokenSchema>;
3926
- type CreateAuthTokenParams = z.infer<typeof createAuthTokenParamsSchema>;
3927
+ type CreateAuthTokenParams = z.input<typeof createAuthTokenParamsSchema>;
3928
+ type ParsedCreateAuthTokenParams = z.infer<typeof createAuthTokenParamsSchema>;
3927
3929
  type CreateAuthTokenResponse = z.infer<typeof createAuthTokenResponseSchema>;
3928
3930
  type RstreamAuth = (() => Promise<string>) | string;
3929
3931
  type RstreamAuthJwtPayload = JwtPayload & RstreamAuthToken;
@@ -3949,10 +3951,37 @@ declare const clientSchema: z.ZodObject<{
3949
3951
  protocol_version: z.ZodOptional<z.ZodString>;
3950
3952
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3951
3953
  }, z.core.$strip>;
3954
+ declare const clientFilterSchema: z.ZodObject<{
3955
+ id: z.ZodOptional<z.ZodString>;
3956
+ user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3957
+ status: z.ZodOptional<z.ZodEnum<{
3958
+ online: "online";
3959
+ offline: "offline";
3960
+ }>>;
3961
+ labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
3962
+ agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3963
+ channel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3964
+ version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3965
+ os: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3966
+ arch: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3967
+ protocol_version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3968
+ }, z.core.$strip>;
3952
3969
  declare const listClientsParamsSchema: z.ZodObject<{
3953
3970
  limit: z.ZodOptional<z.ZodNumber>;
3954
3971
  filters: z.ZodOptional<z.ZodObject<{
3972
+ id: z.ZodOptional<z.ZodString>;
3973
+ user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3974
+ status: z.ZodOptional<z.ZodEnum<{
3975
+ online: "online";
3976
+ offline: "offline";
3977
+ }>>;
3955
3978
  labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
3979
+ agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3980
+ channel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3981
+ version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3982
+ os: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3983
+ arch: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3984
+ protocol_version: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3956
3985
  }, z.core.$strip>>;
3957
3986
  }, z.core.$strip>;
3958
3987
  declare const listClientsResponseSchema: z.ZodArray<z.ZodObject<{
@@ -3977,6 +4006,7 @@ declare const listClientsResponseSchema: z.ZodArray<z.ZodObject<{
3977
4006
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3978
4007
  }, z.core.$strip>>;
3979
4008
  type Client = z.infer<typeof clientSchema>;
4009
+ type ClientFilter = z.infer<typeof clientFilterSchema>;
3980
4010
  type ListClientsParams = z.infer<typeof listClientsParamsSchema>;
3981
4011
  type ListClientsResponse = z.infer<typeof listClientsResponseSchema>;
3982
4012
 
@@ -4041,14 +4071,50 @@ declare const tunnelSchema: z.ZodObject<{
4041
4071
  rstream_auth: z.ZodOptional<z.ZodBoolean>;
4042
4072
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
4043
4073
  }, z.core.$strip>;
4074
+ declare const tunnelFilterSchema: z.ZodObject<{
4075
+ type: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
4076
+ bytestream: "bytestream";
4077
+ datagram: "datagram";
4078
+ }>>>;
4079
+ id: z.ZodOptional<z.ZodString>;
4080
+ client_id: z.ZodOptional<z.ZodString>;
4081
+ user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4082
+ status: z.ZodOptional<z.ZodEnum<{
4083
+ online: "online";
4084
+ offline: "offline";
4085
+ }>>;
4086
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4087
+ publish: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4088
+ protocol: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
4089
+ tls: "tls";
4090
+ dtls: "dtls";
4091
+ quic: "quic";
4092
+ http: "http";
4093
+ }>>>;
4094
+ labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
4095
+ hostname: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4096
+ http_version: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
4097
+ "http/1.1": "http/1.1";
4098
+ h2: "h2";
4099
+ h2c: "h2c";
4100
+ h3: "h3";
4101
+ }>>>;
4102
+ }, z.core.$strip>;
4044
4103
  declare const listTunnelsParamsSchema: z.ZodObject<{
4045
4104
  limit: z.ZodOptional<z.ZodNumber>;
4046
4105
  filters: z.ZodOptional<z.ZodObject<{
4106
+ type: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
4107
+ bytestream: "bytestream";
4108
+ datagram: "datagram";
4109
+ }>>>;
4110
+ id: z.ZodOptional<z.ZodString>;
4047
4111
  client_id: z.ZodOptional<z.ZodString>;
4112
+ user_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4048
4113
  status: z.ZodOptional<z.ZodEnum<{
4049
4114
  online: "online";
4050
4115
  offline: "offline";
4051
4116
  }>>;
4117
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4052
4118
  publish: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4053
4119
  protocol: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
4054
4120
  tls: "tls";
@@ -4058,6 +4124,12 @@ declare const listTunnelsParamsSchema: z.ZodObject<{
4058
4124
  }>>>;
4059
4125
  labels: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
4060
4126
  hostname: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4127
+ http_version: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
4128
+ "http/1.1": "http/1.1";
4129
+ h2: "h2";
4130
+ h2c: "h2c";
4131
+ h3: "h3";
4132
+ }>>>;
4061
4133
  }, z.core.$strip>>;
4062
4134
  }, z.core.$strip>;
4063
4135
  declare const listTunnelsResponseSchema: z.ZodArray<z.ZodObject<{
@@ -4115,6 +4187,7 @@ declare const listTunnelsResponseSchema: z.ZodArray<z.ZodObject<{
4115
4187
  challenge_mode: z.ZodOptional<z.ZodBoolean>;
4116
4188
  }, z.core.$strip>>;
4117
4189
  type Tunnel = z.infer<typeof tunnelSchema>;
4190
+ type TunnelFilter = z.infer<typeof tunnelFilterSchema>;
4118
4191
  declare function formatTunnelHost(tunnel: Pick<Tunnel, "host" | "hostname" | "port">): string | undefined;
4119
4192
  type ListTunnelsParams = z.infer<typeof listTunnelsParamsSchema>;
4120
4193
  type ListTunnelsResponse = z.infer<typeof listTunnelsResponseSchema>;
@@ -4143,6 +4216,7 @@ interface CreatePATTURNCredentialsOptions {
4143
4216
  now?: Date | number;
4144
4217
  projectEndpoint: string;
4145
4218
  token: string;
4219
+ tokenEndpoint: string;
4146
4220
  ttlSeconds?: number;
4147
4221
  turnPort?: number;
4148
4222
  turnsPort?: number;
@@ -4172,6 +4246,7 @@ interface CreateTURNCredentialsOptions {
4172
4246
  projectEndpoint?: string;
4173
4247
  projectId?: string;
4174
4248
  serverPublicKeyHex?: string;
4249
+ tokenEndpoint?: string;
4175
4250
  ttlSeconds?: number;
4176
4251
  turnPort?: number;
4177
4252
  turnsPort?: number;
@@ -6578,6 +6653,14 @@ interface RstreamTunnelsConfig {
6578
6653
  * Used when the engine is not set explicitly.
6579
6654
  */
6580
6655
  projectEndpoint?: string;
6656
+ /**
6657
+ * Project ID used to scope locally signed engine auth tokens.
6658
+ */
6659
+ projectId?: string;
6660
+ /**
6661
+ * Workspace ID used to scope locally signed engine auth tokens.
6662
+ */
6663
+ workspaceId?: string;
6581
6664
  /**
6582
6665
  * Control-plane credentials used when resolving a managed project endpoint.
6583
6666
  * Defaults to the same credentials used against the engine when available.
@@ -6586,12 +6669,16 @@ interface RstreamTunnelsConfig {
6586
6669
  }
6587
6670
  declare class RstreamTunnelsClient {
6588
6671
  private readonly config?;
6672
+ private managedProject?;
6589
6673
  constructor(config?: RstreamTunnelsConfig);
6590
6674
  get apiUrl(): string;
6591
6675
  get credentials(): RstreamCredentials | undefined;
6592
6676
  get controlPlaneCredentials(): RstreamCredentials | undefined;
6593
6677
  get projectEndpoint(): string | undefined;
6594
6678
  getEngine(): Promise<string>;
6679
+ private getManagedProject;
6680
+ private getEngineAuthTokenParams;
6681
+ private getEngineAuthTokenTarget;
6595
6682
  get auth(): RstreamAuthResource;
6596
6683
  get clients(): RstreamClientsResource;
6597
6684
  get tunnels(): RstreamTunnelsResource;
@@ -6601,17 +6688,19 @@ declare class RstreamTunnelsClient {
6601
6688
  request<T>(path: string, options?: RequestInit): Promise<T>;
6602
6689
  }
6603
6690
 
6691
+ interface CreateAuthTokenFromClientCredentialsOptions {
6692
+ engine?: string;
6693
+ projectId?: string;
6694
+ workspaceId?: string;
6695
+ }
6604
6696
  declare class RstreamAuthResource {
6605
6697
  private readonly client;
6606
6698
  constructor(client: RstreamTunnelsClient);
6607
- createAuthToken(params?: CreateAuthTokenParams, options?: {
6699
+ createAuthToken(params: CreateAuthTokenParams, options?: CreateAuthTokenFromClientCredentialsOptions & {
6608
6700
  credentials?: ClientCredentials;
6609
- engine?: string;
6610
6701
  }): Promise<CreateAuthTokenResponse>;
6611
6702
  }
6612
- declare function createAuthTokenFromClientCredentials(credentials: ClientCredentials, params?: CreateAuthTokenParams, options?: {
6613
- engine?: string;
6614
- }): CreateAuthTokenResponse;
6703
+ declare function createAuthTokenFromClientCredentials(credentials: ClientCredentials, params: CreateAuthTokenParams, options?: CreateAuthTokenFromClientCredentialsOptions): CreateAuthTokenResponse;
6615
6704
 
6616
6705
  interface TunnelsResolutionConfig {
6617
6706
  apiUrl?: string;
@@ -6621,10 +6710,12 @@ interface TunnelsResolutionConfig {
6621
6710
  projectEndpoint?: string;
6622
6711
  token?: string;
6623
6712
  }
6713
+ declare function normalizeEngineAddress(engine: string): string;
6624
6714
  declare function resolveTunnelsAPIURL(apiUrl?: string): string;
6625
6715
  declare function resolveTunnelsCredentials(credentials?: RstreamCredentials): RstreamCredentials | undefined;
6626
6716
  declare function resolveControlPlaneCredentials(controlPlaneCredentials?: RstreamCredentials, credentials?: RstreamCredentials, authToken?: string): RstreamCredentials | undefined;
6627
6717
  declare function resolveTunnelsEngine(config: TunnelsResolutionConfig): Promise<string>;
6718
+ declare function resolveManagedTunnelsProject(config: TunnelsResolutionConfig): Promise<TunnelsProject>;
6628
6719
 
6629
6720
  declare const streamTLSInfoSchema: z.ZodObject<{
6630
6721
  version: z.ZodOptional<z.ZodString>;
@@ -7209,6 +7300,7 @@ declare class Watch {
7209
7300
  private readonly events;
7210
7301
  constructor(config: WatchConfig, events: WatchWsEvents);
7211
7302
  connect(): Promise<void>;
7303
+ private handleMessage;
7212
7304
  disconnect(): void;
7213
7305
  }
7214
7306
 
@@ -7236,4 +7328,4 @@ declare const webttyServerSchema: z.ZodObject<{
7236
7328
  type WebTTYServer = z.infer<typeof webttyServerSchema>;
7237
7329
  declare function parseWebTTYServers(tunnels: Tunnel[]): WebTTYServer[];
7238
7330
 
7239
- export { type Client, type CreateAPITURNCredentialsOptions, type CreateAPPTURNCredentialsOptions, type CreateAuthTokenParams, type CreateAuthTokenResponse, type CreatePATTURNCredentialsOptions, type CreateTURNCredentialsOptions, type Event, type InitialState, type ListClientsParams, type ListClientsResponse, type ListTunnelsParams, type ListTunnelsResponse, type RstreamAuth, type RstreamAuthJwtPayload, RstreamAuthResource, RstreamAuthResource as RstreamAuthRessource, type RstreamAuthToken, type RstreamAuthTokenPermissions, type RstreamAuthTokenScopes, type RstreamAuthTokenTunnelGrant, RstreamTunnelsClient as RstreamClient, RstreamClientsResource, RstreamClientsResource as RstreamClientsRessource, RstreamTURNResource, RstreamTunnelsClient, type RstreamTunnelsConfig, RstreamTunnelsResource, RstreamTunnelsResource as RstreamTunnelsRessource, RstreamWebhookResource, RstreamWebhookResource as RstreamWebhookRessource, type StreamEndpoint, type StreamSummary, type StreamTLSInfo, type TURNCredentialMode, type Token, type Tunnel, RstreamTunnelsClient as Tunnels, type TunnelsResolutionConfig, Watch, type WatchConfig, type WatchWsEvents, type WebTTYServer, type WebhookEvent, type WsEvent, authTokenPermissionsSchema, authTokenSchema, authTokenScopesSchema, authTokenTunnelGrantSchema, authTokenTunnelsScopesSchema, clientSchema, createAPITURNCredentials, createAPPTURNCredentials, createAuthTokenFromClientCredentials, createAuthTokenParamsSchema, createAuthTokenResponseSchema, createPATTURNCredentials, createTURNCredentials, eventSchema, formatTunnelHost, listClientsParamsSchema, listClientsResponseSchema, listTunnelsParamsSchema, listTunnelsResponseSchema, parseWebTTYServers, resolveControlPlaneCredentials, resolveTunnelsAPIURL, resolveTunnelsCredentials, resolveTunnelsEngine, streamEndpointSchema, streamSummarySchema, streamTLSInfoSchema, tokenSchema, tunnelSchema, turnCredentialModeSchema, webhookEventsSchema, webttyServerSchema, wsEventsSchema };
7331
+ export { type Client, type ClientFilter, type CreateAPITURNCredentialsOptions, type CreateAPPTURNCredentialsOptions, type CreateAuthTokenFromClientCredentialsOptions, type CreateAuthTokenParams, type CreateAuthTokenResponse, type CreatePATTURNCredentialsOptions, type CreateTURNCredentialsOptions, type Event, type InitialState, type ListClientsParams, type ListClientsResponse, type ListTunnelsParams, type ListTunnelsResponse, type ParsedCreateAuthTokenParams, type RstreamAuth, type RstreamAuthJwtPayload, RstreamAuthResource, RstreamAuthResource as RstreamAuthRessource, type RstreamAuthToken, type RstreamAuthTokenPermissions, type RstreamAuthTokenScopes, type RstreamAuthTokenTunnelGrant, RstreamTunnelsClient as RstreamClient, RstreamClientsResource, RstreamClientsResource as RstreamClientsRessource, RstreamTURNResource, RstreamTunnelsClient, type RstreamTunnelsConfig, RstreamTunnelsResource, RstreamTunnelsResource as RstreamTunnelsRessource, RstreamWebhookResource, RstreamWebhookResource as RstreamWebhookRessource, type StreamEndpoint, type StreamSummary, type StreamTLSInfo, type TURNCredentialMode, type Token, type Tunnel, type TunnelFilter, RstreamTunnelsClient as Tunnels, type TunnelsResolutionConfig, Watch, type WatchConfig, type WatchWsEvents, type WebTTYServer, type WebhookEvent, type WsEvent, authTokenPermissionsSchema, authTokenSchema, authTokenScopesSchema, authTokenTunnelGrantSchema, authTokenTunnelsScopesSchema, clientFilterSchema, clientSchema, createAPITURNCredentials, createAPPTURNCredentials, createAuthTokenFromClientCredentials, createAuthTokenParamsSchema, createAuthTokenResponseSchema, createPATTURNCredentials, createTURNCredentials, eventSchema, formatTunnelHost, listClientsParamsSchema, listClientsResponseSchema, listTunnelsParamsSchema, listTunnelsResponseSchema, normalizeEngineAddress, parseWebTTYServers, resolveControlPlaneCredentials, resolveManagedTunnelsProject, resolveTunnelsAPIURL, resolveTunnelsCredentials, resolveTunnelsEngine, streamEndpointSchema, streamSummarySchema, streamTLSInfoSchema, tokenSchema, tunnelFilterSchema, tunnelSchema, turnCredentialModeSchema, webhookEventsSchema, webttyServerSchema, wsEventsSchema };