Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@remnawave/node-contract

Package Overview
Dependencies
Maintainers
0
Versions
16
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 0.2.2 to 0.2.3

8

build/api/controllers/handler.d.ts
export declare const HANDLER_CONTROLLER: "handler";
export declare const HANDLER_ROUTES: {
readonly REMOVE_USER: "/remove-user";
readonly ADD_USER: "/add-user";
readonly GET_INBOUND_USERS_COUNT: "/get-inbound-users-count";
readonly GET_INBOUND_USERS: "/get-inbound-users";
readonly REMOVE_USER: "remove-user";
readonly ADD_USER: "add-user";
readonly GET_INBOUND_USERS_COUNT: "get-inbound-users-count";
readonly GET_INBOUND_USERS: "get-inbound-users";
};
//# sourceMappingURL=handler.d.ts.map

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

exports.HANDLER_ROUTES = {
REMOVE_USER: '/remove-user',
ADD_USER: '/add-user',
GET_INBOUND_USERS_COUNT: '/get-inbound-users-count',
GET_INBOUND_USERS: '/get-inbound-users',
REMOVE_USER: 'remove-user',
ADD_USER: 'add-user',
GET_INBOUND_USERS_COUNT: 'get-inbound-users-count',
GET_INBOUND_USERS: 'get-inbound-users',
};

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

export declare const ROOT: "/api/v1";
export declare const ROOT: "/node";
export declare const REST_API: {
readonly XRAY: {
readonly START: "/api/v1/xray/start";
readonly STOP: "/api/v1/xray/stop";
readonly STATUS: "/api/v1/xray/status";
readonly START: "/node/xray/start";
readonly STOP: "/node/xray/stop";
readonly STATUS: "/node/xray/status";
};
readonly STATS: {
readonly GET_USER_ONLINE_STATUS: "/api/v1/stats/get-user-online-status";
readonly GET_USERS_STATS: "/api/v1/stats/get-users-stats";
readonly GET_SYSTEM_STATS: "/api/v1/stats/get-system-stats";
readonly GET_INBOUND_STATS: "/api/v1/stats/get-inbound-stats";
readonly GET_OUTBOUND_STATS: "/api/v1/stats/get-outbound-stats";
readonly GET_USER_ONLINE_STATUS: "/node/stats/get-user-online-status";
readonly GET_USERS_STATS: "/node/stats/get-users-stats";
readonly GET_SYSTEM_STATS: "/node/stats/get-system-stats";
readonly GET_INBOUND_STATS: "/node/stats/get-inbound-stats";
readonly GET_OUTBOUND_STATS: "/node/stats/get-outbound-stats";
};
readonly HANDLER: {
readonly ADD_USER: "/api/v1/handler//add-user";
readonly REMOVE_USER: "/api/v1/handler//remove-user";
readonly GET_INBOUND_USERS_COUNT: "/api/v1/handler//get-inbound-users-count";
readonly GET_INBOUND_USERS: "/api/v1/handler//get-inbound-users";
readonly ADD_USER: "/node/handler/add-user";
readonly REMOVE_USER: "/node/handler/remove-user";
readonly GET_INBOUND_USERS_COUNT: "/node/handler/get-inbound-users-count";
readonly GET_INBOUND_USERS: "/node/handler/get-inbound-users";
};
};
//# sourceMappingURL=routes.d.ts.map

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

const CONTROLLERS = __importStar(require("./controllers"));
exports.ROOT = '/api/v1';
exports.ROOT = '/node';
exports.REST_API = {

@@ -31,0 +31,0 @@ XRAY: {

@@ -12,2 +12,3 @@ import { z } from 'zod';

export declare namespace AddUserCommand {
const url: "/node/handler/add-user";
const RequestSchema: z.ZodObject<{

@@ -14,0 +15,0 @@ data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{

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

const zod_1 = require("zod");
const api_1 = require("../../api");
var CipherType;

@@ -18,2 +19,3 @@ (function (CipherType) {

(function (AddUserCommand) {
AddUserCommand.url = api_1.REST_API.HANDLER.ADD_USER;
const BaseTrojanUser = zod_1.z.object({

@@ -20,0 +22,0 @@ type: zod_1.z.literal('trojan'),

import { z } from 'zod';
export declare namespace GetInboundUsersCountCommand {
const url: "/node/handler/get-inbound-users-count";
const RequestSchema: z.ZodObject<{

@@ -4,0 +5,0 @@ tag: z.ZodString;

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

const zod_1 = require("zod");
const api_1 = require("../../api");
var GetInboundUsersCountCommand;
(function (GetInboundUsersCountCommand) {
GetInboundUsersCountCommand.url = api_1.REST_API.HANDLER.GET_INBOUND_USERS_COUNT;
GetInboundUsersCountCommand.RequestSchema = zod_1.z.object({

@@ -9,0 +11,0 @@ tag: zod_1.z.string(),

import { z } from 'zod';
export declare namespace GetInboundUsersCommand {
const url: "/node/handler/get-inbound-users";
const RequestSchema: z.ZodObject<{

@@ -4,0 +5,0 @@ tag: z.ZodString;

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

const zod_1 = require("zod");
const api_1 = require("../../api");
var GetInboundUsersCommand;
(function (GetInboundUsersCommand) {
GetInboundUsersCommand.url = api_1.REST_API.HANDLER.GET_INBOUND_USERS;
GetInboundUsersCommand.RequestSchema = zod_1.z.object({

@@ -9,0 +11,0 @@ tag: zod_1.z.string(),

import { z } from 'zod';
export declare namespace RemoveUserCommand {
const url: "/node/handler/remove-user";
const RequestSchema: z.ZodObject<{

@@ -4,0 +5,0 @@ tag: z.ZodString;

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

const zod_1 = require("zod");
const api_1 = require("../../api");
var RemoveUserCommand;
(function (RemoveUserCommand) {
RemoveUserCommand.url = api_1.REST_API.HANDLER.REMOVE_USER;
RemoveUserCommand.RequestSchema = zod_1.z.object({

@@ -9,0 +11,0 @@ tag: zod_1.z.string(),

import { z } from 'zod';
export declare namespace GetInboundStatsCommand {
const url: "/node/stats/get-inbound-stats";
const RequestSchema: z.ZodObject<{

@@ -4,0 +5,0 @@ tag: z.ZodString;

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

const zod_1 = require("zod");
const api_1 = require("../../api");
var GetInboundStatsCommand;
(function (GetInboundStatsCommand) {
GetInboundStatsCommand.url = api_1.REST_API.STATS.GET_INBOUND_STATS;
GetInboundStatsCommand.RequestSchema = zod_1.z.object({

@@ -9,0 +11,0 @@ tag: zod_1.z.string(),

import { z } from 'zod';
export declare namespace GetOutboundStatsCommand {
const url: "/node/stats/get-outbound-stats";
const RequestSchema: z.ZodObject<{

@@ -4,0 +5,0 @@ tag: z.ZodString;

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

const zod_1 = require("zod");
const api_1 = require("../../api");
var GetOutboundStatsCommand;
(function (GetOutboundStatsCommand) {
GetOutboundStatsCommand.url = api_1.REST_API.STATS.GET_OUTBOUND_STATS;
GetOutboundStatsCommand.RequestSchema = zod_1.z.object({

@@ -9,0 +11,0 @@ tag: zod_1.z.string(),

import { z } from 'zod';
export declare namespace GetSystemStatsCommand {
const url: "/node/stats/get-system-stats";
const ResponseSchema: z.ZodObject<{

@@ -4,0 +5,0 @@ response: z.ZodObject<{

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

const zod_1 = require("zod");
const api_1 = require("../../api");
var GetSystemStatsCommand;
(function (GetSystemStatsCommand) {
GetSystemStatsCommand.url = api_1.REST_API.STATS.GET_SYSTEM_STATS;
GetSystemStatsCommand.ResponseSchema = zod_1.z.object({

@@ -9,0 +11,0 @@ response: zod_1.z.object({

import { z } from 'zod';
export declare namespace GetUserOnlineStatusCommand {
const url: "/node/stats/get-user-online-status";
const RequestSchema: z.ZodObject<{

@@ -4,0 +5,0 @@ username: z.ZodString;

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

const zod_1 = require("zod");
const api_1 = require("../../api");
var GetUserOnlineStatusCommand;
(function (GetUserOnlineStatusCommand) {
GetUserOnlineStatusCommand.url = api_1.REST_API.STATS.GET_USER_ONLINE_STATUS;
GetUserOnlineStatusCommand.RequestSchema = zod_1.z.object({

@@ -9,0 +11,0 @@ username: zod_1.z.string(),

import { z } from 'zod';
export declare namespace GetUsersStatsCommand {
const url: "/node/stats/get-users-stats";
const RequestSchema: z.ZodObject<{

@@ -4,0 +5,0 @@ reset: z.ZodBoolean;

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

const zod_1 = require("zod");
const api_1 = require("../../api");
var GetUsersStatsCommand;
(function (GetUsersStatsCommand) {
GetUsersStatsCommand.url = api_1.REST_API.STATS.GET_USERS_STATS;
GetUsersStatsCommand.RequestSchema = zod_1.z.object({

@@ -9,0 +11,0 @@ reset: zod_1.z.boolean(),

import { z } from 'zod';
export declare namespace GetStatusAndVersionCommand {
const url: "/node/xray/status";
const ResponseSchema: z.ZodObject<{

@@ -26,4 +27,3 @@ response: z.ZodObject<{

type Response = z.infer<typeof ResponseSchema>;
const url: "/api/v1/xray/status";
}
//# sourceMappingURL=get-status-and-version.command.d.ts.map

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

(function (GetStatusAndVersionCommand) {
GetStatusAndVersionCommand.url = api_1.REST_API.XRAY.STATUS;
GetStatusAndVersionCommand.ResponseSchema = zod_1.z.object({

@@ -15,3 +16,2 @@ response: zod_1.z.object({

});
GetStatusAndVersionCommand.url = api_1.REST_API.XRAY.STATUS;
})(GetStatusAndVersionCommand || (exports.GetStatusAndVersionCommand = GetStatusAndVersionCommand = {}));
import { z } from 'zod';
export declare namespace StartXrayCommand {
const url: "/node/xray/start";
const RequestSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;

@@ -4,0 +5,0 @@ type Request = z.infer<typeof RequestSchema>;

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

const zod_1 = require("zod");
const api_1 = require("../../api");
var StartXrayCommand;
(function (StartXrayCommand) {
StartXrayCommand.url = api_1.REST_API.XRAY.START;
StartXrayCommand.RequestSchema = zod_1.z.record(zod_1.z.unknown());

@@ -9,0 +11,0 @@ StartXrayCommand.ResponseSchema = zod_1.z.object({

import { z } from 'zod';
export declare namespace StopXrayCommand {
const url: "/node/xray/stop";
const ResponseSchema: z.ZodObject<{

@@ -4,0 +5,0 @@ response: z.ZodObject<{

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

const zod_1 = require("zod");
const api_1 = require("../../api");
var StopXrayCommand;
(function (StopXrayCommand) {
StopXrayCommand.url = api_1.REST_API.XRAY.STOP;
StopXrayCommand.ResponseSchema = zod_1.z.object({

@@ -9,0 +11,0 @@ response: zod_1.z.object({

{
"name": "@remnawave/node-contract",
"version": "0.2.2",
"version": "0.2.3",
"description": "A node-contract library for Remnawave Panel",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc