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.11
to
2.6.12
+129
build/models/node-system.schema.d.ts
import { z } from 'zod';
export declare const NodeSystemInfoSchema: 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 TNodeSystemInfo = z.infer<typeof NodeSystemInfoSchema>;
export declare const NodeSystemStatsSchema: z.ZodObject<{
memoryFree: z.ZodNumber;
uptime: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
memoryFree: number;
uptime: number;
}, {
memoryFree: number;
uptime: number;
}>;
export type TNodeSystemStats = z.infer<typeof NodeSystemStatsSchema>;
export declare const NodeSystemSchema: z.ZodObject<{
info: 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[];
}>;
stats: z.ZodObject<{
memoryFree: z.ZodNumber;
uptime: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
memoryFree: number;
uptime: number;
}, {
memoryFree: number;
uptime: number;
}>;
}, "strip", z.ZodTypeAny, {
stats: {
memoryFree: number;
uptime: number;
};
info: {
type: string;
arch: string;
cpus: number;
cpuModel: string;
memoryTotal: number;
hostname: string;
platform: string;
release: string;
version: string;
networkInterfaces: string[];
};
}, {
stats: {
memoryFree: number;
uptime: number;
};
info: {
type: string;
arch: string;
cpus: number;
cpuModel: string;
memoryTotal: number;
hostname: string;
platform: string;
release: string;
version: string;
networkInterfaces: string[];
};
}>;
export type TNodeSystem = z.infer<typeof NodeSystemSchema>;
//# sourceMappingURL=node-system.schema.d.ts.map
{"version":3,"file":"node-system.schema.d.ts","sourceRoot":"","sources":["../../models/node-system.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEnE,eAAO,MAAM,qBAAqB;;;;;;;;;EAGhC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG3B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NodeSystemSchema = exports.NodeSystemStatsSchema = exports.NodeSystemInfoSchema = void 0;
const zod_1 = require("zod");
exports.NodeSystemInfoSchema = 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.NodeSystemStatsSchema = zod_1.z.object({
memoryFree: zod_1.z.number(),
uptime: zod_1.z.number(),
});
exports.NodeSystemSchema = zod_1.z.object({
info: exports.NodeSystemInfoSchema,
stats: exports.NodeSystemStatsSchema,
});
+39
-19

@@ -57,11 +57,23 @@ import { z } from 'zod';

}>;
hotHostInfo: z.ZodObject<{
memoryFree: z.ZodNumber;
uptime: z.ZodNumber;
system: z.ZodObject<{
stats: z.ZodObject<{
memoryFree: z.ZodNumber;
uptime: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
memoryFree: number;
uptime: number;
}, {
memoryFree: number;
uptime: number;
}>;
}, "strip", z.ZodTypeAny, {
memoryFree: number;
uptime: number;
stats: {
memoryFree: number;
uptime: number;
};
}, {
memoryFree: number;
uptime: number;
stats: {
memoryFree: number;
uptime: number;
};
}>;

@@ -86,5 +98,7 @@ }, "strip", z.ZodTypeAny, {

};
hotHostInfo: {
memoryFree: number;
uptime: number;
system: {
stats: {
memoryFree: number;
uptime: number;
};
};

@@ -109,5 +123,7 @@ }, {

};
hotHostInfo: {
memoryFree: number;
uptime: number;
system: {
stats: {
memoryFree: number;
uptime: number;
};
};

@@ -134,5 +150,7 @@ }>;

};
hotHostInfo: {
memoryFree: number;
uptime: number;
system: {
stats: {
memoryFree: number;
uptime: number;
};
};

@@ -159,5 +177,7 @@ };

};
hotHostInfo: {
memoryFree: number;
uptime: number;
system: {
stats: {
memoryFree: number;
uptime: number;
};
};

@@ -164,0 +184,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;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"}
{"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}

@@ -31,5 +31,7 @@ "use strict";

}),
hotHostInfo: models_1.HotHostInfoSchema,
system: zod_1.z.object({
stats: models_1.NodeSystemStatsSchema,
}),
}),
});
})(GetSystemStatsCommand || (exports.GetSystemStatsCommand = GetSystemStatsCommand = {}));

@@ -94,3 +94,9 @@ import { z } from 'zod';

version: z.ZodNullable<z.ZodString>;
hostInfo: z.ZodObject<{
}, "strip", z.ZodTypeAny, {
version: string | null;
}, {
version: string | null;
}>;
system: z.ZodObject<{
info: z.ZodObject<{
arch: z.ZodString;

@@ -129,3 +135,3 @@ cpus: z.ZodNumber;

}>;
hotHostInfo: z.ZodObject<{
stats: z.ZodObject<{
memoryFree: z.ZodNumber;

@@ -141,8 +147,7 @@ uptime: z.ZodNumber;

}, "strip", z.ZodTypeAny, {
version: string | null;
hotHostInfo: {
stats: {
memoryFree: number;
uptime: number;
};
hostInfo: {
info: {
type: string;

@@ -160,8 +165,7 @@ arch: string;

}, {
version: string | null;
hotHostInfo: {
stats: {
memoryFree: number;
uptime: number;
};
hostInfo: {
info: {
type: string;

@@ -182,10 +186,8 @@ arch: string;

version: string | null;
isStarted: boolean;
nodeInformation: {
version: string | null;
hotHostInfo: {
system: {
stats: {
memoryFree: number;
uptime: number;
};
hostInfo: {
info: {
type: string;

@@ -203,13 +205,15 @@ arch: string;

};
isStarted: boolean;
nodeInformation: {
version: string | null;
};
}, {
error: string | null;
version: string | null;
isStarted: boolean;
nodeInformation: {
version: string | null;
hotHostInfo: {
system: {
stats: {
memoryFree: number;
uptime: number;
};
hostInfo: {
info: {
type: string;

@@ -227,2 +231,6 @@ arch: string;

};
isStarted: boolean;
nodeInformation: {
version: string | null;
};
}>;

@@ -233,10 +241,8 @@ }, "strip", z.ZodTypeAny, {

version: string | null;
isStarted: boolean;
nodeInformation: {
version: string | null;
hotHostInfo: {
system: {
stats: {
memoryFree: number;
uptime: number;
};
hostInfo: {
info: {
type: string;

@@ -254,2 +260,6 @@ arch: string;

};
isStarted: boolean;
nodeInformation: {
version: string | null;
};
};

@@ -260,10 +270,8 @@ }, {

version: string | null;
isStarted: boolean;
nodeInformation: {
version: string | null;
hotHostInfo: {
system: {
stats: {
memoryFree: number;
uptime: number;
};
hostInfo: {
info: {
type: string;

@@ -281,2 +289,6 @@ arch: string;

};
isStarted: boolean;
nodeInformation: {
version: string | null;
};
};

@@ -283,0 +295,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;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"}
{"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}

@@ -31,7 +31,6 @@ "use strict";

version: zod_1.z.string().nullable(),
hostInfo: models_1.HostInfoSchema,
hotHostInfo: models_1.HotHostInfoSchema,
}),
system: models_1.NodeSystemSchema,
}),
});
})(StartXrayCommand || (exports.StartXrayCommand = StartXrayCommand = {}));

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

export * from './host-info.schema';
export * from './node-system.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,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC"}
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC"}

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

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

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

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(),
});