Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@remnawave/node-contract

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remnawave/node-contract - npm Package Compare versions

Comparing version
2.6.10
to
2.6.11
+48
build/models/host-info.schema.d.ts
import { z } from 'zod';
export declare const HostInfoSchema: z.ZodObject<{
arch: z.ZodString;
cpus: z.ZodNumber;
cpuModel: z.ZodString;
memoryTotal: z.ZodNumber;
hostname: z.ZodString;
platform: z.ZodString;
release: z.ZodString;
type: z.ZodString;
version: z.ZodString;
networkInterfaces: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
type: string;
arch: string;
cpus: number;
cpuModel: string;
memoryTotal: number;
hostname: string;
platform: string;
release: string;
version: string;
networkInterfaces: string[];
}, {
type: string;
arch: string;
cpus: number;
cpuModel: string;
memoryTotal: number;
hostname: string;
platform: string;
release: string;
version: string;
networkInterfaces: string[];
}>;
export type THostInfo = z.infer<typeof HostInfoSchema>;
export declare const HotHostInfoSchema: z.ZodObject<{
memoryFree: z.ZodNumber;
uptime: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
memoryFree: number;
uptime: number;
}, {
memoryFree: number;
uptime: number;
}>;
export type THotHostInfo = z.infer<typeof HotHostInfoSchema>;
//# sourceMappingURL=host-info.schema.d.ts.map
{"version":3,"file":"host-info.schema.d.ts","sourceRoot":"","sources":["../../models/host-info.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWzB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;;;;;;;EAG5B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HotHostInfoSchema = exports.HostInfoSchema = void 0;
const zod_1 = require("zod");
exports.HostInfoSchema = zod_1.z.object({
arch: zod_1.z.string(),
cpus: zod_1.z.number().int(),
cpuModel: zod_1.z.string(),
memoryTotal: zod_1.z.number(),
hostname: zod_1.z.string(),
platform: zod_1.z.string(),
release: zod_1.z.string(),
type: zod_1.z.string(),
version: zod_1.z.string(),
networkInterfaces: zod_1.z.array(zod_1.z.string()),
});
exports.HotHostInfoSchema = zod_1.z.object({
memoryFree: zod_1.z.number(),
uptime: zod_1.z.number(),
});
+0
-1

@@ -6,3 +6,2 @@ export declare const ROOT: "/node";

readonly STOP: "/node/xray/stop";
readonly STATUS: "/node/xray/status";
readonly NODE_HEALTH_CHECK: "/node/xray/healthcheck";

@@ -9,0 +8,0 @@ };

@@ -1,1 +0,1 @@

{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,OAAgB,CAAC;AAErC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CX,CAAC"}
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,OAAgB,CAAC;AAErC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CX,CAAC"}

@@ -43,3 +43,2 @@ "use strict";

STOP: `${exports.ROOT}/${CONTROLLERS.XRAY_CONTROLLER}/${CONTROLLERS.XRAY_ROUTES.STOP}`,
STATUS: `${exports.ROOT}/${CONTROLLERS.XRAY_CONTROLLER}/${CONTROLLERS.XRAY_ROUTES.STATUS}`,
NODE_HEALTH_CHECK: `${exports.ROOT}/${CONTROLLERS.XRAY_CONTROLLER}/${CONTROLLERS.XRAY_ROUTES.NODE_HEALTH_CHECK}`,

@@ -46,0 +45,0 @@ },

@@ -6,65 +6,155 @@ import { z } from 'zod';

response: z.ZodObject<{
numGoroutine: z.ZodNumber;
numGC: z.ZodNumber;
alloc: z.ZodNumber;
totalAlloc: z.ZodNumber;
sys: z.ZodNumber;
mallocs: z.ZodNumber;
frees: z.ZodNumber;
liveObjects: z.ZodNumber;
pauseTotalNs: z.ZodNumber;
uptime: z.ZodNumber;
reportsCount: z.ZodOptional<z.ZodNumber>;
xrayInfo: z.ZodNullable<z.ZodObject<{
numGoroutine: z.ZodNumber;
numGC: z.ZodNumber;
alloc: z.ZodNumber;
totalAlloc: z.ZodNumber;
sys: z.ZodNumber;
mallocs: z.ZodNumber;
frees: z.ZodNumber;
liveObjects: z.ZodNumber;
pauseTotalNs: z.ZodNumber;
uptime: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
uptime: number;
numGoroutine: number;
numGC: number;
alloc: number;
totalAlloc: number;
sys: number;
mallocs: number;
frees: number;
liveObjects: number;
pauseTotalNs: number;
}, {
uptime: number;
numGoroutine: number;
numGC: number;
alloc: number;
totalAlloc: number;
sys: number;
mallocs: number;
frees: number;
liveObjects: number;
pauseTotalNs: number;
}>>;
plugins: z.ZodObject<{
torrentBlocker: z.ZodObject<{
reportsCount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
reportsCount: number;
}, {
reportsCount: number;
}>;
}, "strip", z.ZodTypeAny, {
torrentBlocker: {
reportsCount: number;
};
}, {
torrentBlocker: {
reportsCount: number;
};
}>;
hotHostInfo: z.ZodObject<{
memoryFree: z.ZodNumber;
uptime: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
memoryFree: number;
uptime: number;
}, {
memoryFree: number;
uptime: number;
}>;
}, "strip", z.ZodTypeAny, {
numGoroutine: number;
numGC: number;
alloc: number;
totalAlloc: number;
sys: number;
mallocs: number;
frees: number;
liveObjects: number;
pauseTotalNs: number;
uptime: number;
reportsCount?: number | undefined;
xrayInfo: {
uptime: number;
numGoroutine: number;
numGC: number;
alloc: number;
totalAlloc: number;
sys: number;
mallocs: number;
frees: number;
liveObjects: number;
pauseTotalNs: number;
} | null;
plugins: {
torrentBlocker: {
reportsCount: number;
};
};
hotHostInfo: {
memoryFree: number;
uptime: number;
};
}, {
numGoroutine: number;
numGC: number;
alloc: number;
totalAlloc: number;
sys: number;
mallocs: number;
frees: number;
liveObjects: number;
pauseTotalNs: number;
uptime: number;
reportsCount?: number | undefined;
xrayInfo: {
uptime: number;
numGoroutine: number;
numGC: number;
alloc: number;
totalAlloc: number;
sys: number;
mallocs: number;
frees: number;
liveObjects: number;
pauseTotalNs: number;
} | null;
plugins: {
torrentBlocker: {
reportsCount: number;
};
};
hotHostInfo: {
memoryFree: number;
uptime: number;
};
}>;
}, "strip", z.ZodTypeAny, {
response: {
numGoroutine: number;
numGC: number;
alloc: number;
totalAlloc: number;
sys: number;
mallocs: number;
frees: number;
liveObjects: number;
pauseTotalNs: number;
uptime: number;
reportsCount?: number | undefined;
xrayInfo: {
uptime: number;
numGoroutine: number;
numGC: number;
alloc: number;
totalAlloc: number;
sys: number;
mallocs: number;
frees: number;
liveObjects: number;
pauseTotalNs: number;
} | null;
plugins: {
torrentBlocker: {
reportsCount: number;
};
};
hotHostInfo: {
memoryFree: number;
uptime: number;
};
};
}, {
response: {
numGoroutine: number;
numGC: number;
alloc: number;
totalAlloc: number;
sys: number;
mallocs: number;
frees: number;
liveObjects: number;
pauseTotalNs: number;
uptime: number;
reportsCount?: number | undefined;
xrayInfo: {
uptime: number;
numGoroutine: number;
numGC: number;
alloc: number;
totalAlloc: number;
sys: number;
mallocs: number;
frees: number;
liveObjects: number;
pauseTotalNs: number;
} | null;
plugins: {
torrentBlocker: {
reportsCount: number;
};
};
hotHostInfo: {
memoryFree: number;
uptime: number;
};
};

@@ -71,0 +161,0 @@ }>;

@@ -1,1 +0,1 @@

{"version":3,"file":"get-system-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-system-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,gCAAkC,CAAC;IAE5C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAczB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
{"version":3,"file":"get-system-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-system-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,gCAAkC,CAAC;IAE5C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}

@@ -5,2 +5,3 @@ "use strict";

const zod_1 = require("zod");
const models_1 = require("../../models");
const api_1 = require("../../api");

@@ -12,15 +13,24 @@ var GetSystemStatsCommand;

response: zod_1.z.object({
numGoroutine: zod_1.z.number(),
numGC: zod_1.z.number(),
alloc: zod_1.z.number(),
totalAlloc: zod_1.z.number(),
sys: zod_1.z.number(),
mallocs: zod_1.z.number(),
frees: zod_1.z.number(),
liveObjects: zod_1.z.number(),
pauseTotalNs: zod_1.z.number(),
uptime: zod_1.z.number(),
reportsCount: zod_1.z.number().optional(),
xrayInfo: zod_1.z
.object({
numGoroutine: zod_1.z.number(),
numGC: zod_1.z.number(),
alloc: zod_1.z.number(),
totalAlloc: zod_1.z.number(),
sys: zod_1.z.number(),
mallocs: zod_1.z.number(),
frees: zod_1.z.number(),
liveObjects: zod_1.z.number(),
pauseTotalNs: zod_1.z.number(),
uptime: zod_1.z.number(),
})
.nullable(),
plugins: zod_1.z.object({
torrentBlocker: zod_1.z.object({
reportsCount: zod_1.z.number(),
}),
}),
hotHostInfo: models_1.HotHostInfoSchema,
}),
});
})(GetSystemStatsCommand || (exports.GetSystemStatsCommand = GetSystemStatsCommand = {}));
export * from './get-node-health-check.command';
export * from './get-status-and-version.command';
export * from './start.command';
export * from './stop.command';
//# sourceMappingURL=index.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/xray/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/xray/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}

@@ -18,4 +18,3 @@ "use strict";

__exportStar(require("./get-node-health-check.command"), exports);
__exportStar(require("./get-status-and-version.command"), exports);
__exportStar(require("./start.command"), exports);
__exportStar(require("./stop.command"), exports);

@@ -92,21 +92,84 @@ import { z } from 'zod';

error: z.ZodNullable<z.ZodString>;
systemInformation: z.ZodNullable<z.ZodObject<{
cpuCores: z.ZodNumber;
cpuModel: z.ZodString;
memoryTotal: z.ZodString;
}, "strip", z.ZodTypeAny, {
cpuCores: number;
cpuModel: string;
memoryTotal: string;
}, {
cpuCores: number;
cpuModel: string;
memoryTotal: string;
}>>;
nodeInformation: z.ZodObject<{
version: z.ZodNullable<z.ZodString>;
hostInfo: z.ZodObject<{
arch: z.ZodString;
cpus: z.ZodNumber;
cpuModel: z.ZodString;
memoryTotal: z.ZodNumber;
hostname: z.ZodString;
platform: z.ZodString;
release: z.ZodString;
type: z.ZodString;
version: z.ZodString;
networkInterfaces: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
type: string;
arch: string;
cpus: number;
cpuModel: string;
memoryTotal: number;
hostname: string;
platform: string;
release: string;
version: string;
networkInterfaces: string[];
}, {
type: string;
arch: string;
cpus: number;
cpuModel: string;
memoryTotal: number;
hostname: string;
platform: string;
release: string;
version: string;
networkInterfaces: string[];
}>;
hotHostInfo: z.ZodObject<{
memoryFree: z.ZodNumber;
uptime: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
memoryFree: number;
uptime: number;
}, {
memoryFree: number;
uptime: number;
}>;
}, "strip", z.ZodTypeAny, {
version: string | null;
hotHostInfo: {
memoryFree: number;
uptime: number;
};
hostInfo: {
type: string;
arch: string;
cpus: number;
cpuModel: string;
memoryTotal: number;
hostname: string;
platform: string;
release: string;
version: string;
networkInterfaces: string[];
};
}, {
version: string | null;
hotHostInfo: {
memoryFree: number;
uptime: number;
};
hostInfo: {
type: string;
arch: string;
cpus: number;
cpuModel: string;
memoryTotal: number;
hostname: string;
platform: string;
release: string;
version: string;
networkInterfaces: string[];
};
}>;

@@ -117,9 +180,20 @@ }, "strip", z.ZodTypeAny, {

isStarted: boolean;
systemInformation: {
cpuCores: number;
cpuModel: string;
memoryTotal: string;
} | null;
nodeInformation: {
version: string | null;
hotHostInfo: {
memoryFree: number;
uptime: number;
};
hostInfo: {
type: string;
arch: string;
cpus: number;
cpuModel: string;
memoryTotal: number;
hostname: string;
platform: string;
release: string;
version: string;
networkInterfaces: string[];
};
};

@@ -130,9 +204,20 @@ }, {

isStarted: boolean;
systemInformation: {
cpuCores: number;
cpuModel: string;
memoryTotal: string;
} | null;
nodeInformation: {
version: string | null;
hotHostInfo: {
memoryFree: number;
uptime: number;
};
hostInfo: {
type: string;
arch: string;
cpus: number;
cpuModel: string;
memoryTotal: number;
hostname: string;
platform: string;
release: string;
version: string;
networkInterfaces: string[];
};
};

@@ -145,9 +230,20 @@ }>;

isStarted: boolean;
systemInformation: {
cpuCores: number;
cpuModel: string;
memoryTotal: string;
} | null;
nodeInformation: {
version: string | null;
hotHostInfo: {
memoryFree: number;
uptime: number;
};
hostInfo: {
type: string;
arch: string;
cpus: number;
cpuModel: string;
memoryTotal: number;
hostname: string;
platform: string;
release: string;
version: string;
networkInterfaces: string[];
};
};

@@ -160,9 +256,20 @@ };

isStarted: boolean;
systemInformation: {
cpuCores: number;
cpuModel: string;
memoryTotal: string;
} | null;
nodeInformation: {
version: string | null;
hotHostInfo: {
memoryFree: number;
uptime: number;
};
hostInfo: {
type: string;
arch: string;
cpus: number;
cpuModel: string;
memoryTotal: number;
hostname: string;
platform: string;
release: string;
version: string;
networkInterfaces: string[];
};
};

@@ -169,0 +276,0 @@ };

@@ -1,1 +0,1 @@

{"version":3,"file":"start.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/start.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAAsB,CAAC;IAChC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0BxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
{"version":3,"file":"start.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/start.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAAsB,CAAC;IAChC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAexB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}

@@ -5,6 +5,4 @@ "use strict";

const zod_1 = require("zod");
const models_1 = require("../../models");
const api_1 = require("../../api");
const UNSUPPORTED_REMNAWAVE_VERSION_MESSAGE = {
message: 'Unsupported Remnawave version. Please, upgrade Remnawave to version v2.3.x or higher. Or downgrade Remnawave Node version to v2.2.3 (change :latest to :2.2.3 in docker-compose.yml, most likely in /opt/remnanode)',
};
var StartXrayCommand;

@@ -24,12 +22,4 @@ (function (StartXrayCommand) {

}),
}, {
errorMap: () => ({
...UNSUPPORTED_REMNAWAVE_VERSION_MESSAGE,
}),
}),
xrayConfig: zod_1.z.record(zod_1.z.unknown(), {
errorMap: () => ({
...UNSUPPORTED_REMNAWAVE_VERSION_MESSAGE,
}),
}),
xrayConfig: zod_1.z.record(zod_1.z.unknown()),
});

@@ -41,9 +31,6 @@ StartXrayCommand.ResponseSchema = zod_1.z.object({

error: zod_1.z.string().nullable(),
systemInformation: zod_1.z.nullable(zod_1.z.object({
cpuCores: zod_1.z.number(),
cpuModel: zod_1.z.string(),
memoryTotal: zod_1.z.string(),
})),
nodeInformation: zod_1.z.object({
version: zod_1.z.string().nullable(),
hostInfo: models_1.HostInfoSchema,
hotHostInfo: models_1.HotHostInfoSchema,
}),

@@ -50,0 +37,0 @@ }),

@@ -77,3 +77,3 @@ "use strict";

url: webhookUrl,
deduplication: 30,
deduplication: 5,
},

@@ -80,0 +80,0 @@ });

@@ -0,3 +1,4 @@

export * from './host-info.schema';
export * from './torrent-blocker.report.schema';
export * from './xray-webhook.schema';
//# sourceMappingURL=index.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC"}
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC"}

@@ -17,3 +17,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./host-info.schema"), exports);
__exportStar(require("./torrent-blocker.report.schema"), exports);
__exportStar(require("./xray-webhook.schema"), exports);
{
"name": "@remnawave/node-contract",
"version": "2.6.10",
"version": "2.6.11",
"description": "A node-contract library for Remnawave Panel",

@@ -5,0 +5,0 @@ "main": "build/index.js",

import { z } from 'zod';
export declare namespace GetStatusAndVersionCommand {
const url: "/node/xray/status";
const ResponseSchema: z.ZodObject<{
response: z.ZodObject<{
isRunning: z.ZodBoolean;
version: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
isRunning: boolean;
version: string | null;
}, {
isRunning: boolean;
version: string | null;
}>;
}, "strip", z.ZodTypeAny, {
response: {
isRunning: boolean;
version: string | null;
};
}, {
response: {
isRunning: boolean;
version: string | null;
};
}>;
type Response = z.infer<typeof ResponseSchema>;
}
//# sourceMappingURL=get-status-and-version.command.d.ts.map
{"version":3,"file":"get-status-and-version.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/get-status-and-version.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,qBAAuB,CAAC;IAEjC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetStatusAndVersionCommand = void 0;
const zod_1 = require("zod");
const api_1 = require("../../api");
var GetStatusAndVersionCommand;
(function (GetStatusAndVersionCommand) {
GetStatusAndVersionCommand.url = api_1.REST_API.XRAY.STATUS;
GetStatusAndVersionCommand.ResponseSchema = zod_1.z.object({
response: zod_1.z.object({
isRunning: zod_1.z.boolean(),
version: zod_1.z.string().nullable(),
}),
});
})(GetStatusAndVersionCommand || (exports.GetStatusAndVersionCommand = GetStatusAndVersionCommand = {}));