@rstreamlabs/tunnels 1.0.11 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/openapi.js CHANGED
@@ -74,44 +74,9 @@ var listClientsParamsSchema = z.object({
74
74
  var listClientsResponseSchema = z.array(clientSchema);
75
75
 
76
76
  // src/tunnel.ts
77
+ var import_tunnel = require("@rstreamlabs/rstream/tunnel");
77
78
  var z2 = __toESM(require("zod"));
78
- var tunnelSchema = z2.object({
79
- // common properties
80
- client_id: z2.string(),
81
- user_id: z2.string().optional(),
82
- workspace_id: z2.string().optional(),
83
- project_id: z2.string().optional(),
84
- cluster_id: z2.string().optional(),
85
- plan: z2.string().optional(),
86
- provider: z2.string().optional(),
87
- region: z2.string().optional(),
88
- status: z2.enum(["online", "offline"]),
89
- // tunnel properties
90
- id: z2.string(),
91
- creation_date: z2.union([z2.string().datetime(), z2.date()]).optional(),
92
- name: z2.string().optional(),
93
- type: z2.enum(["bytestream", "datagram"]).optional(),
94
- publish: z2.boolean().optional(),
95
- protocol: z2.enum(["tls", "dtls", "quic", "http"]).optional(),
96
- labels: z2.record(z2.string(), z2.string()).optional(),
97
- geo_ip: z2.array(z2.string()).optional(),
98
- trusted_ips: z2.array(z2.string()).optional(),
99
- host: z2.string().optional(),
100
- hostname: z2.string().optional(),
101
- port: z2.number().int().min(1).max(65535).optional(),
102
- tls_mode: z2.enum(["passthrough", "terminated"]).optional(),
103
- tls_alpns: z2.array(z2.string()).optional(),
104
- tls_min_version: z2.string().optional(),
105
- tls_ciphers: z2.array(z2.string()).optional(),
106
- mtls_auth: z2.boolean().optional(),
107
- http_version: z2.enum(["http/1.1", "h2", "h2c", "h3"]).optional(),
108
- http_use_tls: z2.boolean().optional(),
109
- upstream_tls: z2.boolean().optional(),
110
- token_auth: z2.boolean().optional(),
111
- rstream_auth: z2.boolean().optional(),
112
- challenge_mode: z2.boolean().optional()
113
- });
114
- var tunnelFilterSchema = tunnelSchema.pick({
79
+ var tunnelFilterSchema = import_tunnel.tunnelSchema.pick({
115
80
  id: true,
116
81
  name: true,
117
82
  type: true,
@@ -128,7 +93,10 @@ var listTunnelsParamsSchema = z2.object({
128
93
  limit: z2.number().int().min(1).optional(),
129
94
  filters: tunnelFilterSchema.optional()
130
95
  });
131
- var listTunnelsResponseSchema = z2.array(tunnelSchema);
96
+ var listTunnelsResponseSchema = z2.array(import_tunnel.tunnelSchema);
97
+
98
+ // src/openapi.ts
99
+ var import_tunnel5 = require("@rstreamlabs/rstream/tunnel");
132
100
 
133
101
  // src/stream.ts
134
102
  var z3 = __toESM(require("zod"));
@@ -334,12 +302,13 @@ var streamSummarySchema = z3.object({
334
302
  });
335
303
 
336
304
  // src/event.ts
305
+ var import_tunnel2 = require("@rstreamlabs/rstream/tunnel");
337
306
  var z4 = __toESM(require("zod"));
338
307
  var isoDateTimeSchema2 = z4.string().datetime({ offset: true });
339
308
  var initialStateSchema = z4.object({
340
309
  snapshot_at: isoDateTimeSchema2,
341
310
  clients: z4.array(clientSchema),
342
- tunnels: z4.array(tunnelSchema)
311
+ tunnels: z4.array(import_tunnel2.tunnelSchema)
343
312
  });
344
313
  var eventBaseSchema = z4.object({
345
314
  id: z4.string().optional(),
@@ -373,15 +342,15 @@ var commonEventsSchema = [
373
342
  }),
374
343
  withEventBase({
375
344
  type: z4.literal("tunnel.created"),
376
- object: tunnelSchema
345
+ object: import_tunnel2.tunnelSchema
377
346
  }),
378
347
  withEventBase({
379
348
  type: z4.literal("tunnel.updated"),
380
- object: tunnelSchema
349
+ object: import_tunnel2.tunnelSchema
381
350
  }),
382
351
  withEventBase({
383
352
  type: z4.literal("tunnel.deleted"),
384
- object: tunnelSchema
353
+ object: import_tunnel2.tunnelSchema
385
354
  })
386
355
  ];
387
356
  var wsEventsSchema = z4.union([
@@ -607,7 +576,7 @@ var engineOpenApiDocument = {
607
576
  Event: jsonSchemaFor(wsEventsSchema),
608
577
  ListClientsParams: jsonSchemaFor(listClientsParamsSchema),
609
578
  ListTunnelsParams: jsonSchemaFor(listTunnelsParamsSchema),
610
- TunnelListItem: jsonSchemaFor(tunnelSchema),
579
+ TunnelListItem: jsonSchemaFor(import_tunnel5.tunnelSchema),
611
580
  WatchParams: jsonSchemaFor(watchParamsSchema)
612
581
  }
613
582
  },
package/dist/openapi.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  engineOpenApiDocument,
3
3
  engineOpenApiJson
4
- } from "./chunk-NHUJ3FYM.mjs";
4
+ } from "./chunk-UUZYVELQ.mjs";
5
5
  export {
6
6
  engineOpenApiDocument,
7
7
  engineOpenApiJson
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rstreamlabs/tunnels",
3
- "version": "1.0.11",
3
+ "version": "3.0.0",
4
4
  "description": "JS/TS SDK for the rstream Engine API and tunnel runtime APIs.",
5
5
  "author": "@uartnet <hello@rstream.io>",
6
6
  "repository": {
@@ -47,7 +47,7 @@
47
47
  "typescript-config": "*"
48
48
  },
49
49
  "dependencies": {
50
- "@rstreamlabs/rstream": "2.1.4",
50
+ "@rstreamlabs/rstream": "3.0.0",
51
51
  "@types/jsonwebtoken": "^9.0.10",
52
52
  "jsonwebtoken": "^9.0.3",
53
53
  "zod": "^4.3.6"