@rstreamlabs/tunnels 3.6.2 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/dist/{chunk-6OUCIT5G.mjs → chunk-K6TZT3PB.mjs} +17 -1
- package/dist/index.d.mts +322 -222
- package/dist/index.d.ts +322 -222
- package/dist/index.js +73 -5
- package/dist/index.mjs +56 -5
- package/dist/openapi.js +17 -1
- package/dist/openapi.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -319,11 +319,13 @@ console.log(engineOpenApiDocument.info.title);
|
|
|
319
319
|
|
|
320
320
|
## Environment Variables
|
|
321
321
|
|
|
322
|
-
| Variable
|
|
323
|
-
|
|
|
324
|
-
| `RSTREAM_API_URL`
|
|
325
|
-
| `RSTREAM_ENGINE`
|
|
326
|
-
| `RSTREAM_AUTHENTICATION_TOKEN`
|
|
322
|
+
| Variable | Purpose |
|
|
323
|
+
| ------------------------------- | --------------------------------------------------------------- |
|
|
324
|
+
| `RSTREAM_API_URL` | Control plane API URL used for managed project resolution. |
|
|
325
|
+
| `RSTREAM_ENGINE` | Engine endpoint used when no engine is provided explicitly. |
|
|
326
|
+
| `RSTREAM_AUTHENTICATION_TOKEN` | Bearer token used when credentials are not provided explicitly. |
|
|
327
|
+
| `RSTREAM_REGION` | Authorized region to select for a managed project. |
|
|
328
|
+
| `RSTREAM_CONTROL_PLANE_HEADERS` | Additional Control plane request headers as a JSON object. |
|
|
327
329
|
|
|
328
330
|
## Development
|
|
329
331
|
|
|
@@ -233,8 +233,24 @@ var routedTunnelSchema = z3.object({
|
|
|
233
233
|
tokenAuth: z3.boolean().optional(),
|
|
234
234
|
mtls_auth: z3.boolean().optional()
|
|
235
235
|
});
|
|
236
|
+
var routingNodeSchema = z3.object({
|
|
237
|
+
engineId: nonEmptyStringSchema,
|
|
238
|
+
region: nonEmptyStringSchema,
|
|
239
|
+
generation: nonEmptyStringSchema.optional()
|
|
240
|
+
});
|
|
241
|
+
var routingPathSchema = z3.object({
|
|
242
|
+
mode: z3.enum(["direct", "cross_region"]),
|
|
243
|
+
crossRegionRoutingAllowed: z3.boolean(),
|
|
244
|
+
ingress: routingNodeSchema,
|
|
245
|
+
owner: routingNodeSchema,
|
|
246
|
+
agentTarget: routingNodeSchema
|
|
247
|
+
});
|
|
236
248
|
var routingSchema = z3.discriminatedUnion("decision", [
|
|
237
|
-
z3.object({
|
|
249
|
+
z3.object({
|
|
250
|
+
decision: z3.literal("routed"),
|
|
251
|
+
tunnel: routedTunnelSchema,
|
|
252
|
+
path: routingPathSchema.optional()
|
|
253
|
+
}),
|
|
238
254
|
z3.object({ decision: z3.literal("not_routed"), failure: failureSchema })
|
|
239
255
|
]);
|
|
240
256
|
var streamConnectedMetricsSchema = z3.object({
|