@rstreamlabs/tunnels 1.0.7 → 1.0.9
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/README.md +20 -16
- package/dist/{chunk-OPJKEDVS.mjs → chunk-TVDZNVSF.mjs} +7 -14
- package/dist/index.d.mts +224 -2658
- package/dist/index.d.ts +224 -2658
- package/dist/index.js +572 -171
- package/dist/index.mjs +563 -157
- package/dist/openapi.d.mts +8 -30
- package/dist/openapi.d.ts +8 -30
- package/dist/openapi.js +7 -14
- package/dist/openapi.mjs +1 -1
- package/package.json +3 -3
package/dist/openapi.d.mts
CHANGED
|
@@ -35,12 +35,6 @@ declare const engineOpenApiDocument: {
|
|
|
35
35
|
bearerFormat: string;
|
|
36
36
|
description: string;
|
|
37
37
|
};
|
|
38
|
-
queryToken: {
|
|
39
|
-
type: string;
|
|
40
|
-
in: string;
|
|
41
|
-
name: string;
|
|
42
|
-
description: string;
|
|
43
|
-
};
|
|
44
38
|
};
|
|
45
39
|
parameters: {
|
|
46
40
|
ListClientsParams: {
|
|
@@ -153,13 +147,9 @@ declare const engineOpenApiDocument: {
|
|
|
153
147
|
parameters: {
|
|
154
148
|
$ref: string;
|
|
155
149
|
}[];
|
|
156
|
-
security:
|
|
150
|
+
security: {
|
|
157
151
|
bearerAuth: never[];
|
|
158
|
-
|
|
159
|
-
} | {
|
|
160
|
-
queryToken: never[];
|
|
161
|
-
bearerAuth?: undefined;
|
|
162
|
-
})[];
|
|
152
|
+
}[];
|
|
163
153
|
responses: {
|
|
164
154
|
"200": {
|
|
165
155
|
description: string;
|
|
@@ -195,13 +185,9 @@ declare const engineOpenApiDocument: {
|
|
|
195
185
|
parameters: {
|
|
196
186
|
$ref: string;
|
|
197
187
|
}[];
|
|
198
|
-
security:
|
|
188
|
+
security: {
|
|
199
189
|
bearerAuth: never[];
|
|
200
|
-
|
|
201
|
-
} | {
|
|
202
|
-
queryToken: never[];
|
|
203
|
-
bearerAuth?: undefined;
|
|
204
|
-
})[];
|
|
190
|
+
}[];
|
|
205
191
|
responses: {
|
|
206
192
|
"200": {
|
|
207
193
|
description: string;
|
|
@@ -238,13 +224,9 @@ declare const engineOpenApiDocument: {
|
|
|
238
224
|
parameters: {
|
|
239
225
|
$ref: string;
|
|
240
226
|
}[];
|
|
241
|
-
security:
|
|
227
|
+
security: {
|
|
242
228
|
bearerAuth: never[];
|
|
243
|
-
|
|
244
|
-
} | {
|
|
245
|
-
queryToken: never[];
|
|
246
|
-
bearerAuth?: undefined;
|
|
247
|
-
})[];
|
|
229
|
+
}[];
|
|
248
230
|
responses: {
|
|
249
231
|
"200": {
|
|
250
232
|
description: string;
|
|
@@ -278,13 +260,9 @@ declare const engineOpenApiDocument: {
|
|
|
278
260
|
parameters: {
|
|
279
261
|
$ref: string;
|
|
280
262
|
}[];
|
|
281
|
-
security:
|
|
263
|
+
security: {
|
|
282
264
|
bearerAuth: never[];
|
|
283
|
-
|
|
284
|
-
} | {
|
|
285
|
-
queryToken: never[];
|
|
286
|
-
bearerAuth?: undefined;
|
|
287
|
-
})[];
|
|
265
|
+
}[];
|
|
288
266
|
responses: {
|
|
289
267
|
"101": {
|
|
290
268
|
description: string;
|
package/dist/openapi.d.ts
CHANGED
|
@@ -35,12 +35,6 @@ declare const engineOpenApiDocument: {
|
|
|
35
35
|
bearerFormat: string;
|
|
36
36
|
description: string;
|
|
37
37
|
};
|
|
38
|
-
queryToken: {
|
|
39
|
-
type: string;
|
|
40
|
-
in: string;
|
|
41
|
-
name: string;
|
|
42
|
-
description: string;
|
|
43
|
-
};
|
|
44
38
|
};
|
|
45
39
|
parameters: {
|
|
46
40
|
ListClientsParams: {
|
|
@@ -153,13 +147,9 @@ declare const engineOpenApiDocument: {
|
|
|
153
147
|
parameters: {
|
|
154
148
|
$ref: string;
|
|
155
149
|
}[];
|
|
156
|
-
security:
|
|
150
|
+
security: {
|
|
157
151
|
bearerAuth: never[];
|
|
158
|
-
|
|
159
|
-
} | {
|
|
160
|
-
queryToken: never[];
|
|
161
|
-
bearerAuth?: undefined;
|
|
162
|
-
})[];
|
|
152
|
+
}[];
|
|
163
153
|
responses: {
|
|
164
154
|
"200": {
|
|
165
155
|
description: string;
|
|
@@ -195,13 +185,9 @@ declare const engineOpenApiDocument: {
|
|
|
195
185
|
parameters: {
|
|
196
186
|
$ref: string;
|
|
197
187
|
}[];
|
|
198
|
-
security:
|
|
188
|
+
security: {
|
|
199
189
|
bearerAuth: never[];
|
|
200
|
-
|
|
201
|
-
} | {
|
|
202
|
-
queryToken: never[];
|
|
203
|
-
bearerAuth?: undefined;
|
|
204
|
-
})[];
|
|
190
|
+
}[];
|
|
205
191
|
responses: {
|
|
206
192
|
"200": {
|
|
207
193
|
description: string;
|
|
@@ -238,13 +224,9 @@ declare const engineOpenApiDocument: {
|
|
|
238
224
|
parameters: {
|
|
239
225
|
$ref: string;
|
|
240
226
|
}[];
|
|
241
|
-
security:
|
|
227
|
+
security: {
|
|
242
228
|
bearerAuth: never[];
|
|
243
|
-
|
|
244
|
-
} | {
|
|
245
|
-
queryToken: never[];
|
|
246
|
-
bearerAuth?: undefined;
|
|
247
|
-
})[];
|
|
229
|
+
}[];
|
|
248
230
|
responses: {
|
|
249
231
|
"200": {
|
|
250
232
|
description: string;
|
|
@@ -278,13 +260,9 @@ declare const engineOpenApiDocument: {
|
|
|
278
260
|
parameters: {
|
|
279
261
|
$ref: string;
|
|
280
262
|
}[];
|
|
281
|
-
security:
|
|
263
|
+
security: {
|
|
282
264
|
bearerAuth: never[];
|
|
283
|
-
|
|
284
|
-
} | {
|
|
285
|
-
queryToken: never[];
|
|
286
|
-
bearerAuth?: undefined;
|
|
287
|
-
})[];
|
|
265
|
+
}[];
|
|
288
266
|
responses: {
|
|
289
267
|
"101": {
|
|
290
268
|
description: string;
|
package/dist/openapi.js
CHANGED
|
@@ -103,8 +103,7 @@ var tunnelSchema = z2.object({
|
|
|
103
103
|
tls_alpns: z2.array(z2.string()).optional(),
|
|
104
104
|
tls_min_version: z2.string().optional(),
|
|
105
105
|
tls_ciphers: z2.array(z2.string()).optional(),
|
|
106
|
-
|
|
107
|
-
mtls_ca_cert_pem: z2.string().optional(),
|
|
106
|
+
mtls_auth: z2.boolean().optional(),
|
|
108
107
|
http_version: z2.enum(["http/1.1", "h2", "h2c", "h3"]).optional(),
|
|
109
108
|
http_use_tls: z2.boolean().optional(),
|
|
110
109
|
upstream_tls: z2.boolean().optional(),
|
|
@@ -274,7 +273,7 @@ var routedTunnelSchema = z3.object({
|
|
|
274
273
|
httpUseTls: z3.boolean().optional(),
|
|
275
274
|
upstreamTls: z3.boolean().optional(),
|
|
276
275
|
tokenAuth: z3.boolean().optional(),
|
|
277
|
-
|
|
276
|
+
mtls_auth: z3.boolean().optional()
|
|
278
277
|
});
|
|
279
278
|
var routingSchema = z3.discriminatedUnion("decision", [
|
|
280
279
|
z3.object({ decision: z3.literal("routed"), tunnel: routedTunnelSchema }),
|
|
@@ -516,7 +515,7 @@ var engineOpenApiDocument = {
|
|
|
516
515
|
info: {
|
|
517
516
|
title: "rstream Engine API",
|
|
518
517
|
version: "1.0.0",
|
|
519
|
-
description: "Operational
|
|
518
|
+
description: "Operational Engine API exposed by rstream-engine. This surface is scoped to the authenticated engine or project endpoint and covers live clients, live tunnels, and state-change streams."
|
|
520
519
|
},
|
|
521
520
|
servers: [
|
|
522
521
|
{
|
|
@@ -542,12 +541,6 @@ var engineOpenApiDocument = {
|
|
|
542
541
|
scheme: "bearer",
|
|
543
542
|
bearerFormat: "rstream token",
|
|
544
543
|
description: "Preferred authentication mechanism. Send an OAuth-issued rstream access token or compatible rstream credential in Authorization: Bearer <token>."
|
|
545
|
-
},
|
|
546
|
-
queryToken: {
|
|
547
|
-
type: "apiKey",
|
|
548
|
-
in: "query",
|
|
549
|
-
name: "rstream.token",
|
|
550
|
-
description: "Fallback authentication mechanism for transports where setting Authorization is impractical. Prefer bearerAuth whenever possible."
|
|
551
544
|
}
|
|
552
545
|
},
|
|
553
546
|
parameters: {
|
|
@@ -667,7 +660,7 @@ var engineOpenApiDocument = {
|
|
|
667
660
|
summary: "List visible engine clients.",
|
|
668
661
|
operationId: "list_engine_clients",
|
|
669
662
|
parameters: [{ $ref: "#/components/parameters/ListClientsParams" }],
|
|
670
|
-
security: [{ bearerAuth: [] }
|
|
663
|
+
security: [{ bearerAuth: [] }],
|
|
671
664
|
responses: {
|
|
672
665
|
"200": jsonArrayResponse(
|
|
673
666
|
"Visible clients.",
|
|
@@ -686,7 +679,7 @@ var engineOpenApiDocument = {
|
|
|
686
679
|
summary: "List visible engine tunnels.",
|
|
687
680
|
operationId: "list_engine_tunnels",
|
|
688
681
|
parameters: [{ $ref: "#/components/parameters/ListTunnelsParams" }],
|
|
689
|
-
security: [{ bearerAuth: [] }
|
|
682
|
+
security: [{ bearerAuth: [] }],
|
|
690
683
|
responses: {
|
|
691
684
|
"200": jsonArrayResponse(
|
|
692
685
|
"Visible tunnels. Fine-grained list scopes may filter objects and project fields.",
|
|
@@ -706,7 +699,7 @@ var engineOpenApiDocument = {
|
|
|
706
699
|
summary: "Subscribe to visible engine state through Server-Sent Events.",
|
|
707
700
|
operationId: "watch_engine_events_sse",
|
|
708
701
|
parameters: [{ $ref: "#/components/parameters/WatchParams" }],
|
|
709
|
-
security: [{ bearerAuth: [] }
|
|
702
|
+
security: [{ bearerAuth: [] }],
|
|
710
703
|
responses: {
|
|
711
704
|
"200": streamResponse(
|
|
712
705
|
"SSE stream. Each event is emitted as a data line containing a JSON Event object."
|
|
@@ -725,7 +718,7 @@ var engineOpenApiDocument = {
|
|
|
725
718
|
summary: "Subscribe to visible engine state through a WebSocket upgrade.",
|
|
726
719
|
operationId: "watch_engine_events_websocket",
|
|
727
720
|
parameters: [{ $ref: "#/components/parameters/WatchParams" }],
|
|
728
|
-
security: [{ bearerAuth: [] }
|
|
721
|
+
security: [{ bearerAuth: [] }],
|
|
729
722
|
responses: {
|
|
730
723
|
"101": {
|
|
731
724
|
description: "WebSocket connection accepted. Frames contain JSON Event objects."
|
package/dist/openapi.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rstreamlabs/tunnels",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "JS/TS SDK for the rstream
|
|
3
|
+
"version": "1.0.9",
|
|
4
|
+
"description": "JS/TS SDK for the rstream Engine API and tunnel runtime APIs.",
|
|
5
5
|
"author": "@uartnet <hello@rstream.io>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"typescript-config": "*"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@rstreamlabs/rstream": "2.1.
|
|
46
|
+
"@rstreamlabs/rstream": "2.1.2",
|
|
47
47
|
"jsonwebtoken": "^9.0.3",
|
|
48
48
|
"zod": "^4.3.6"
|
|
49
49
|
},
|