New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@remnawave/backend-contract

Package Overview
Dependencies
Maintainers
0
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remnawave/backend-contract - npm Package Compare versions

Comparing version 0.0.45 to 0.0.46

1

build/commands/api-tokens/create.command.js

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

CreateApiTokenCommand.url = api_1.REST_API.API_TOKENS.CREATE;
CreateApiTokenCommand.TSQ_url = CreateApiTokenCommand.url;
CreateApiTokenCommand.RequestSchema = zod_1.z.object({

@@ -11,0 +12,0 @@ tokenName: zod_1.z.string(),

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

DeleteApiTokenCommand.url = api_1.REST_API.API_TOKENS.DELETE;
DeleteApiTokenCommand.TSQ_url = DeleteApiTokenCommand.url(':uuid');
DeleteApiTokenCommand.RequestSchema = zod_1.z.object({

@@ -11,0 +12,0 @@ uuid: zod_1.z.string().uuid(),

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

FindAllApiTokensCommand.url = api_1.REST_API.API_TOKENS.GET_ALL;
FindAllApiTokensCommand.TSQ_url = FindAllApiTokensCommand.url;
FindAllApiTokensCommand.ResponseSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ response: zod_1.z.array(api_tokens_schema_1.ApiTokensSchema),

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

LoginCommand.url = api_1.REST_API.AUTH.LOGIN;
LoginCommand.TSQ_url = LoginCommand.url;
LoginCommand.RequestSchema = zod_1.z.object({

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

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

CreateHostCommand.url = api_1.REST_API.HOSTS.CREATE;
CreateHostCommand.TSQ_url = CreateHostCommand.url;
CreateHostCommand.RequestSchema = zod_1.z.object({

@@ -14,0 +15,0 @@ inboundUuid: zod_1.z

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

DeleteHostCommand.url = api_1.REST_API.HOSTS.DELETE;
DeleteHostCommand.TSQ_url = DeleteHostCommand.url(':uuid');
DeleteHostCommand.RequestSchema = zod_1.z.object({

@@ -11,0 +12,0 @@ uuid: zod_1.z.string().uuid(),

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

GetAllHostsCommand.url = api_1.REST_API.HOSTS.GET_ALL;
GetAllHostsCommand.TSQ_url = GetAllHostsCommand.url;
GetAllHostsCommand.ResponseSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ response: zod_1.z.array(models_1.HostsSchema),

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

ReorderHostCommand.url = api_1.REST_API.HOSTS.REORDER;
ReorderHostCommand.TSQ_url = ReorderHostCommand.url;
ReorderHostCommand.RequestSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ hosts: zod_1.z.array(models_1.HostsSchema.pick({

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

UpdateHostCommand.url = api_1.REST_API.HOSTS.UPDATE;
UpdateHostCommand.TSQ_url = UpdateHostCommand.url;
UpdateHostCommand.RequestSchema = models_1.HostsSchema.pick({

@@ -14,0 +15,0 @@ uuid: true,

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

GetInboundsCommand.url = api_1.REST_API.INBOUNDS.GET_INBOUNDS;
GetInboundsCommand.TSQ_url = GetInboundsCommand.url;
GetInboundsCommand.ResponseSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ response: zod_1.z.array(inbounds_schema_1.InboundsSchema),

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

GetPubKeyCommand.url = api_1.REST_API.KEYGEN.GET;
GetPubKeyCommand.TSQ_url = GetPubKeyCommand.url;
GetPubKeyCommand.ResponseSchema = zod_1.z.object({

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

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

CreateNodeCommand.url = api_1.REST_API.NODES.CREATE;
CreateNodeCommand.TSQ_url = CreateNodeCommand.url;
CreateNodeCommand.RequestSchema = models_1.NodesSchema.pick({}).extend({

@@ -12,0 +13,0 @@ name: zod_1.z.string().min(5, 'Name is required'),

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

DeleteNodeCommand.url = api_1.REST_API.NODES.DELETE;
DeleteNodeCommand.TSQ_url = DeleteNodeCommand.url(':uuid');
DeleteNodeCommand.RequestSchema = zod_1.z.object({

@@ -11,0 +12,0 @@ uuid: zod_1.z.string().uuid(),

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

DisableNodeCommand.url = api_1.REST_API.NODES.DISABLE;
DisableNodeCommand.TSQ_url = DisableNodeCommand.url(':uuid');
DisableNodeCommand.RequestSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ uuid: zod_1.z.string().uuid(),

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

EnableNodeCommand.url = api_1.REST_API.NODES.ENABLE;
EnableNodeCommand.TSQ_url = EnableNodeCommand.url(':uuid');
EnableNodeCommand.RequestSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ uuid: zod_1.z.string().uuid(),

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

GetAllNodesCommand.url = api_1.REST_API.NODES.GET_ALL;
GetAllNodesCommand.TSQ_url = GetAllNodesCommand.url;
GetAllNodesCommand.ResponseSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ response: zod_1.z.array(models_1.NodesSchema),

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

RestartAllNodesCommand.url = api_1.REST_API.NODES.RESTART_ALL;
RestartAllNodesCommand.TSQ_url = RestartAllNodesCommand.url;
RestartAllNodesCommand.ResponseSchema = zod_1.z.object({

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

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

RestartNodeCommand.url = api_1.REST_API.NODES.RESTART;
RestartNodeCommand.TSQ_url = RestartNodeCommand.url(':uuid');
RestartNodeCommand.RequestSchema = zod_1.z.object({

@@ -11,0 +12,0 @@ uuid: zod_1.z.string().uuid(),

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

UpdateNodeCommand.url = api_1.REST_API.NODES.UPDATE;
UpdateNodeCommand.TSQ_url = UpdateNodeCommand.url;
UpdateNodeCommand.RequestSchema = models_1.NodesSchema.pick({

@@ -12,0 +13,0 @@ uuid: true,

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

GetSubscriptionByShortUuidCommand.url = api_1.REST_API.SUBSCRIPTION.GET;
GetSubscriptionByShortUuidCommand.TSQ_url = GetSubscriptionByShortUuidCommand.url(':shortUuid');
GetSubscriptionByShortUuidCommand.RequestSchema = zod_1.z.object({

@@ -11,0 +12,0 @@ shortUuid: zod_1.z.string(),

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

GetSubscriptionInfoByShortUuidCommand.url = api_1.REST_API.SUBSCRIPTION.GET_INFO;
GetSubscriptionInfoByShortUuidCommand.TSQ_url = GetSubscriptionInfoByShortUuidCommand.url(':shortUuid');
GetSubscriptionInfoByShortUuidCommand.RequestSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ shortUuid: zod_1.z.string(),

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

GetBandwidthStatsCommand.url = api_1.REST_API.SYSTEM.BANDWIDTH;
GetBandwidthStatsCommand.TSQ_url = GetBandwidthStatsCommand.url;
GetBandwidthStatsCommand.RequestQuerySchema = zod_1.z.object({

@@ -12,0 +13,0 @@ tz: zod_1.z.string().optional(),

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

GetNodesStatisticsCommand.url = api_1.REST_API.SYSTEM.NODES_STATISTIC;
GetNodesStatisticsCommand.TSQ_url = GetNodesStatisticsCommand.url;
GetNodesStatisticsCommand.RequestQuerySchema = zod_1.z.object({

@@ -11,0 +12,0 @@ tz: zod_1.z.string().optional(),

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

GetStatsCommand.url = api_1.REST_API.SYSTEM.STATS;
GetStatsCommand.TSQ_url = GetStatsCommand.url;
GetStatsCommand.RequestQuerySchema = zod_1.z.object({

@@ -12,0 +13,0 @@ tz: zod_1.z.string().optional(),

3

build/commands/users/create-user.command.js

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

CreateUserCommand.url = api_1.REST_API.USERS.CREATE;
CreateUserCommand.RequestSchema = models_1.UsersSchema.pick({}).extend({
CreateUserCommand.TSQ_url = CreateUserCommand.url;
CreateUserCommand.RequestSchema = zod_1.z.object({
username: zod_1.z

@@ -14,0 +15,0 @@ .string({

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

DeleteUserCommand.url = api_1.REST_API.USERS.DELETE_USER;
DeleteUserCommand.TSQ_url = DeleteUserCommand.url(':uuid');
DeleteUserCommand.RequestSchema = zod_1.z.object({

@@ -11,0 +12,0 @@ uuid: zod_1.z.string().uuid(),

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

DisableUserCommand.url = api_1.REST_API.USERS.DISABLE_USER;
DisableUserCommand.TSQ_url = DisableUserCommand.url(':uuid');
DisableUserCommand.RequestSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ uuid: zod_1.z.string().uuid(),

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

EnableUserCommand.url = api_1.REST_API.USERS.ENABLE_USER;
EnableUserCommand.TSQ_url = EnableUserCommand.url(':uuid');
EnableUserCommand.RequestSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ uuid: zod_1.z.string().uuid(),

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

GetAllUsersV2Command.url = api_1.REST_API.USERS.GET_ALL_V2;
GetAllUsersV2Command.TSQ_url = GetAllUsersV2Command.url;
const FilterSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ id: zod_1.z.string(),

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

GetAllUsersCommand.url = api_1.REST_API.USERS.GET_ALL;
GetAllUsersCommand.TSQ_url = GetAllUsersCommand.url;
GetAllUsersCommand.SortableFields = [

@@ -12,0 +13,0 @@ 'username',

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

GetUserByShortUuidCommand.url = api_1.REST_API.USERS.GET_BY_SHORT_UUID;
GetUserByShortUuidCommand.TSQ_url = GetUserByShortUuidCommand.url(':shortUuid');
GetUserByShortUuidCommand.RequestSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ shortUuid: zod_1.z.string(),

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

GetUserBySubscriptionUuidCommand.url = api_1.REST_API.USERS.GET_BY_SUBSCRIPTION_UUID;
GetUserBySubscriptionUuidCommand.TSQ_url = GetUserBySubscriptionUuidCommand.url(':subscriptionUuid');
GetUserBySubscriptionUuidCommand.RequestSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ subscriptionUuid: zod_1.z.string(),

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

GetUserByUuidCommand.url = api_1.REST_API.USERS.GET_BY_UUID;
GetUserByUuidCommand.TSQ_url = GetUserByUuidCommand.url(':uuid');
GetUserByUuidCommand.RequestSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ uuid: zod_1.z.string().uuid(),

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

RevokeUserSubscriptionCommand.url = api_1.REST_API.USERS.REVOKE_SUBSCRIPTION;
RevokeUserSubscriptionCommand.TSQ_url = RevokeUserSubscriptionCommand.url(':uuid');
RevokeUserSubscriptionCommand.RequestSchema = zod_1.z.object({

@@ -12,0 +13,0 @@ uuid: zod_1.z.string().uuid(),

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

UpdateUserCommand.url = api_1.REST_API.USERS.UPDATE;
UpdateUserCommand.TSQ_url = UpdateUserCommand.url;
UpdateUserCommand.RequestSchema = models_1.UsersSchema.pick({

@@ -13,0 +14,0 @@ uuid: true,

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

GetXrayConfigCommand.url = api_1.REST_API.XRAY.GET_CONFIG;
GetXrayConfigCommand.TSQ_url = GetXrayConfigCommand.url;
GetXrayConfigCommand.ResponseSchema = zod_1.z.object({

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

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

UpdateXrayConfigCommand.url = api_1.REST_API.XRAY.UPDATE_CONFIG;
UpdateXrayConfigCommand.TSQ_url = UpdateXrayConfigCommand.url;
UpdateXrayConfigCommand.RequestSchema = zod_1.z.record(zod_1.z.any());

@@ -11,0 +12,0 @@ UpdateXrayConfigCommand.ResponseSchema = zod_1.z.object({

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

export const url = REST_API.API_TOKENS.CREATE;
export const TSQ_url = url;

@@ -8,0 +9,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.API_TOKENS.DELETE;
export const TSQ_url = url(':uuid');

@@ -8,0 +9,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.API_TOKENS.GET_ALL;
export const TSQ_url = url;

@@ -9,0 +10,0 @@ export const ResponseSchema = z.object({

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

export const url = REST_API.AUTH.LOGIN;
export const TSQ_url = url;

@@ -7,0 +8,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.HOSTS.CREATE;
export const TSQ_url = url;

@@ -11,0 +12,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.HOSTS.DELETE;
export const TSQ_url = url(':uuid');

@@ -8,0 +9,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.HOSTS.GET_ALL;
export const TSQ_url = url;

@@ -9,0 +10,0 @@ export const ResponseSchema = z.object({

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

export const url = REST_API.HOSTS.REORDER;
export const TSQ_url = url;

@@ -9,0 +10,0 @@ export const RequestSchema = z.object({

import { z } from 'zod';
import { REST_API } from '../../api';
import { ALPN, ALPN_VALUES } from '../../constants/hosts/alpn';
import { FINGERPRINTS, FINGERPRINTS_VALUES } from '../../constants/hosts/fingerprints';
import { ALPN_VALUES } from '../../constants/hosts/alpn';
import { FINGERPRINTS_VALUES } from '../../constants/hosts/fingerprints';
import { HostsSchema } from '../../models';

@@ -9,2 +9,3 @@

export const url = REST_API.HOSTS.UPDATE;
export const TSQ_url = url;

@@ -11,0 +12,0 @@ export const RequestSchema = HostsSchema.pick({

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

export const url = REST_API.INBOUNDS.GET_INBOUNDS;
export const TSQ_url = url;

@@ -9,0 +10,0 @@ export const ResponseSchema = z.object({

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

export const url = REST_API.KEYGEN.GET;
export const TSQ_url = url;

@@ -8,0 +9,0 @@ export const ResponseSchema = z.object({

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

export const url = REST_API.NODES.CREATE;
export const TSQ_url = url;

@@ -9,0 +10,0 @@ export const RequestSchema = NodesSchema.pick({}).extend({

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

export const url = REST_API.NODES.DELETE;
export const TSQ_url = url(':uuid');

@@ -8,0 +9,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.NODES.DISABLE;
export const TSQ_url = url(':uuid');

@@ -9,0 +10,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.NODES.ENABLE;
export const TSQ_url = url(':uuid');

@@ -9,0 +10,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.NODES.GET_ALL;
export const TSQ_url = url;

@@ -9,0 +10,0 @@ export const ResponseSchema = z.object({

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

export const url = REST_API.NODES.RESTART_ALL;
export const TSQ_url = url;

@@ -7,0 +8,0 @@ export const ResponseSchema = z.object({

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

export const url = REST_API.NODES.RESTART;
export const TSQ_url = url(':uuid');

@@ -8,0 +9,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.NODES.UPDATE;
export const TSQ_url = url;

@@ -9,0 +10,0 @@ export const RequestSchema = NodesSchema.pick({

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

export const url = REST_API.SUBSCRIPTION.GET;
export const TSQ_url = url(':shortUuid');

@@ -8,0 +9,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.SUBSCRIPTION.GET_INFO;
export const TSQ_url = url(':shortUuid');

@@ -9,0 +10,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.SYSTEM.BANDWIDTH;
export const TSQ_url = url;

@@ -9,0 +10,0 @@ export const RequestQuerySchema = z.object({

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

export const url = REST_API.SYSTEM.NODES_STATISTIC;
export const TSQ_url = url;

@@ -8,0 +9,0 @@ export const RequestQuerySchema = z.object({

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

export const url = REST_API.SYSTEM.STATS;
export const TSQ_url = url;

@@ -9,0 +10,0 @@ export const RequestQuerySchema = z.object({

import { z } from 'zod';
import { REST_API } from '../../api';
import { RESET_PERIODS, USERS_STATUS } from '../../constants';
import { InboundsSchema, UsersSchema } from '../../models';
import { UsersSchema } from '../../models';
export namespace CreateUserCommand {
export const url = REST_API.USERS.CREATE;
export const TSQ_url = url;
export const RequestSchema = UsersSchema.pick({}).extend({
export const RequestSchema = z.object({
username: z

@@ -11,0 +12,0 @@ .string({

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

export const url = REST_API.USERS.DELETE_USER;
export const TSQ_url = url(':uuid');

@@ -7,0 +8,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.USERS.DISABLE_USER;
export const TSQ_url = url(':uuid');

@@ -8,0 +9,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.USERS.ENABLE_USER;
export const TSQ_url = url(':uuid');

@@ -9,0 +10,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.USERS.GET_ALL_V2;
export const TSQ_url = url;

@@ -9,0 +10,0 @@ const FilterSchema = z.object({

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

export const url = REST_API.USERS.GET_ALL;
export const TSQ_url = url;

@@ -9,0 +10,0 @@ export const SortableFields = [

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

export const url = REST_API.USERS.GET_BY_SHORT_UUID;
export const TSQ_url = url(':shortUuid');

@@ -9,0 +10,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.USERS.GET_BY_SUBSCRIPTION_UUID;
export const TSQ_url = url(':subscriptionUuid');

@@ -9,0 +10,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.USERS.GET_BY_UUID;
export const TSQ_url = url(':uuid');

@@ -9,0 +10,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.USERS.REVOKE_SUBSCRIPTION;
export const TSQ_url = url(':uuid');

@@ -9,0 +10,0 @@ export const RequestSchema = z.object({

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

export const url = REST_API.USERS.UPDATE;
export const TSQ_url = url;

@@ -10,0 +11,0 @@ export const RequestSchema = UsersSchema.pick({

@@ -5,2 +5,4 @@ import { z } from 'zod';

export const url = REST_API.XRAY.GET_CONFIG;
export const TSQ_url = url;
export const ResponseSchema = z.object({

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

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

export const url = REST_API.XRAY.UPDATE_CONFIG;
export const TSQ_url = url;

@@ -8,0 +9,0 @@ export const RequestSchema = z.record(z.any());

{
"name": "@remnawave/backend-contract",
"version": "0.0.45",
"version": "0.0.46",
"description": "A contract library for Remnawave",

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

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