@zixt/host 0.0.4 → 0.0.5
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.js +10 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ import WebSocket from "ws";
|
|
|
22
22
|
// package.json
|
|
23
23
|
var package_default = {
|
|
24
24
|
name: "@zixt/host",
|
|
25
|
-
version: "0.0.
|
|
25
|
+
version: "0.0.5",
|
|
26
26
|
type: "module",
|
|
27
27
|
exports: {
|
|
28
28
|
".": "./src/client.ts",
|
|
@@ -15053,6 +15053,7 @@ var ConnectionAccess = external_exports.discriminatedUnion("mode", [
|
|
|
15053
15053
|
connectionIds: external_exports.array(ConnectionId).max(MAX_CUSTOM_CONNECTION_IDS).refine((items) => new Set(items).size === items.length, "duplicate Integration")
|
|
15054
15054
|
}).strict()
|
|
15055
15055
|
]);
|
|
15056
|
+
var DEFAULT_HOST_GATEWAY_URL = "wss://api.zixt.ai/gateway";
|
|
15056
15057
|
var DEFAULT_CONNECTION_ACCESS = { mode: "all" };
|
|
15057
15058
|
var MAX_CUSTOM_MACHINE_IDS = 100;
|
|
15058
15059
|
var MachineAccess = external_exports.discriminatedUnion("mode", [
|
|
@@ -15439,7 +15440,13 @@ var HostProjection = external_exports.discriminatedUnion("telemetryRedacted", [
|
|
|
15439
15440
|
]);
|
|
15440
15441
|
var CreateHostResponse = external_exports.object({
|
|
15441
15442
|
host: AdminHostProjection,
|
|
15442
|
-
token: external_exports.string()
|
|
15443
|
+
token: external_exports.string(),
|
|
15444
|
+
/**
|
|
15445
|
+
* The gateway this deployment's Machines connect to, derived from its own
|
|
15446
|
+
* configuration. The client never guesses it from the browser's address:
|
|
15447
|
+
* the cloud that will accept the connection is the one that knows.
|
|
15448
|
+
*/
|
|
15449
|
+
gatewayUrl: external_exports.string().min(1)
|
|
15443
15450
|
});
|
|
15444
15451
|
var ListHostsResponse = external_exports.object({
|
|
15445
15452
|
hosts: external_exports.array(HostProjection)
|
|
@@ -30383,7 +30390,7 @@ if (cliOptions.help) {
|
|
|
30383
30390
|
`);
|
|
30384
30391
|
process.exit(0);
|
|
30385
30392
|
}
|
|
30386
|
-
var url2 = process.env.ZIXT_CLOUD_URL ??
|
|
30393
|
+
var url2 = process.env.ZIXT_CLOUD_URL ?? DEFAULT_HOST_GATEWAY_URL;
|
|
30387
30394
|
var token = process.env.ZIXT_HOST_TOKEN;
|
|
30388
30395
|
var machine = hostname3();
|
|
30389
30396
|
if (!token) {
|