@remnawave/backend-contract 2.8.10 → 2.8.12

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.
Files changed (36) hide show
  1. package/build/backend/api/controllers/hosts.d.ts +1 -4
  2. package/build/backend/api/controllers/hosts.d.ts.map +1 -1
  3. package/build/backend/api/controllers/hosts.js +1 -4
  4. package/build/backend/api/routes.d.ts +1 -4
  5. package/build/backend/api/routes.d.ts.map +1 -1
  6. package/build/backend/api/routes.js +1 -4
  7. package/build/backend/commands/hosts/bulk/index.d.ts +1 -4
  8. package/build/backend/commands/hosts/bulk/index.d.ts.map +1 -1
  9. package/build/backend/commands/hosts/bulk/index.js +1 -4
  10. package/build/backend/commands/hosts/bulk/{disable-many-hosts.command.d.ts → update-many-hosts.command.d.ts} +134 -4
  11. package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts.map +1 -0
  12. package/build/backend/commands/hosts/bulk/update-many-hosts.command.js +22 -0
  13. package/build/backend/constants/errors/errors.d.ts +5 -20
  14. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  15. package/build/backend/constants/errors/errors.js +5 -20
  16. package/build/frontend/api/controllers/hosts.js +1 -4
  17. package/build/frontend/api/routes.js +1 -4
  18. package/build/frontend/commands/hosts/bulk/index.js +1 -4
  19. package/build/frontend/commands/hosts/bulk/update-many-hosts.command.js +22 -0
  20. package/build/frontend/constants/errors/errors.js +5 -20
  21. package/package.json +1 -1
  22. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +0 -1
  23. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.js +0 -19
  24. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +0 -226
  25. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +0 -1
  26. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.js +0 -19
  27. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +0 -232
  28. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +0 -1
  29. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.js +0 -21
  30. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +0 -229
  31. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +0 -1
  32. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.js +0 -20
  33. package/build/frontend/commands/hosts/bulk/disable-many-hosts.command.js +0 -19
  34. package/build/frontend/commands/hosts/bulk/enable-many-hosts.command.js +0 -19
  35. package/build/frontend/commands/hosts/bulk/set-inbound-to-many-hosts.command.js +0 -21
  36. package/build/frontend/commands/hosts/bulk/set-port-to-many-hosts.command.js +0 -20
@@ -1,229 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace SetPortToManyHostsCommand {
3
- const url: "/api/hosts/bulk/set-port";
4
- const TSQ_url: "/api/hosts/bulk/set-port";
5
- const endpointDetails: import("../../../constants").EndpointDetails;
6
- const RequestSchema: z.ZodObject<{
7
- uuids: z.ZodArray<z.ZodString, "many">;
8
- port: z.ZodNumber;
9
- }, "strip", z.ZodTypeAny, {
10
- port: number;
11
- uuids: string[];
12
- }, {
13
- port: number;
14
- uuids: string[];
15
- }>;
16
- type Request = z.infer<typeof RequestSchema>;
17
- const ResponseSchema: z.ZodObject<{
18
- response: z.ZodArray<z.ZodObject<{
19
- uuid: z.ZodString;
20
- viewPosition: z.ZodNumber;
21
- remark: z.ZodString;
22
- address: z.ZodString;
23
- port: z.ZodNumber;
24
- path: z.ZodNullable<z.ZodString>;
25
- sni: z.ZodNullable<z.ZodString>;
26
- host: z.ZodNullable<z.ZodString>;
27
- alpn: z.ZodNullable<z.ZodString>;
28
- fingerprint: z.ZodNullable<z.ZodString>;
29
- isDisabled: z.ZodDefault<z.ZodBoolean>;
30
- securityLayer: z.ZodDefault<z.ZodNativeEnum<{
31
- readonly DEFAULT: "DEFAULT";
32
- readonly TLS: "TLS";
33
- readonly NONE: "NONE";
34
- }>>;
35
- xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
36
- muxParams: z.ZodNullable<z.ZodUnknown>;
37
- sockoptParams: z.ZodNullable<z.ZodUnknown>;
38
- finalMask: z.ZodNullable<z.ZodUnknown>;
39
- inbound: z.ZodObject<{
40
- configProfileUuid: z.ZodNullable<z.ZodString>;
41
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
42
- }, "strip", z.ZodTypeAny, {
43
- configProfileUuid: string | null;
44
- configProfileInboundUuid: string | null;
45
- }, {
46
- configProfileUuid: string | null;
47
- configProfileInboundUuid: string | null;
48
- }>;
49
- serverDescription: z.ZodNullable<z.ZodString>;
50
- tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
51
- isHidden: z.ZodDefault<z.ZodBoolean>;
52
- overrideSniFromAddress: z.ZodDefault<z.ZodBoolean>;
53
- keepSniBlank: z.ZodDefault<z.ZodBoolean>;
54
- vlessRouteId: z.ZodNullable<z.ZodNumber>;
55
- pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
56
- verifyPeerCertByName: z.ZodNullable<z.ZodString>;
57
- shuffleHost: z.ZodBoolean;
58
- mihomoX25519: z.ZodBoolean;
59
- mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
60
- readonly DUAL: "dual";
61
- readonly IPV4: "ipv4";
62
- readonly IPV6: "ipv6";
63
- readonly IPV4_PREFER: "ipv4-prefer";
64
- readonly IPV6_PREFER: "ipv6-prefer";
65
- }>>;
66
- nodes: z.ZodArray<z.ZodString, "many">;
67
- xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
68
- excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
69
- excludeFromSubscriptionTypes: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
70
- readonly XRAY_JSON: "XRAY_JSON";
71
- readonly XRAY_BASE64: "XRAY_BASE64";
72
- readonly MIHOMO: "MIHOMO";
73
- readonly STASH: "STASH";
74
- readonly CLASH: "CLASH";
75
- readonly SINGBOX: "SINGBOX";
76
- }>, "many">>;
77
- }, "strip", z.ZodTypeAny, {
78
- nodes: string[];
79
- tags: string[];
80
- path: string | null;
81
- uuid: string;
82
- port: number;
83
- viewPosition: number;
84
- remark: string;
85
- address: string;
86
- sni: string | null;
87
- host: string | null;
88
- alpn: string | null;
89
- fingerprint: string | null;
90
- isDisabled: boolean;
91
- securityLayer: "DEFAULT" | "TLS" | "NONE";
92
- inbound: {
93
- configProfileUuid: string | null;
94
- configProfileInboundUuid: string | null;
95
- };
96
- serverDescription: string | null;
97
- isHidden: boolean;
98
- overrideSniFromAddress: boolean;
99
- keepSniBlank: boolean;
100
- vlessRouteId: number | null;
101
- pinnedPeerCertSha256: string | null;
102
- verifyPeerCertByName: string | null;
103
- shuffleHost: boolean;
104
- mihomoX25519: boolean;
105
- mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
106
- xrayJsonTemplateUuid: string | null;
107
- excludedInternalSquads: string[];
108
- xHttpExtraParams?: unknown;
109
- muxParams?: unknown;
110
- sockoptParams?: unknown;
111
- finalMask?: unknown;
112
- excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
113
- }, {
114
- nodes: string[];
115
- path: string | null;
116
- uuid: string;
117
- port: number;
118
- viewPosition: number;
119
- remark: string;
120
- address: string;
121
- sni: string | null;
122
- host: string | null;
123
- alpn: string | null;
124
- fingerprint: string | null;
125
- inbound: {
126
- configProfileUuid: string | null;
127
- configProfileInboundUuid: string | null;
128
- };
129
- serverDescription: string | null;
130
- vlessRouteId: number | null;
131
- pinnedPeerCertSha256: string | null;
132
- verifyPeerCertByName: string | null;
133
- shuffleHost: boolean;
134
- mihomoX25519: boolean;
135
- mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
136
- xrayJsonTemplateUuid: string | null;
137
- excludedInternalSquads: string[];
138
- tags?: string[] | undefined;
139
- isDisabled?: boolean | undefined;
140
- securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
141
- xHttpExtraParams?: unknown;
142
- muxParams?: unknown;
143
- sockoptParams?: unknown;
144
- finalMask?: unknown;
145
- isHidden?: boolean | undefined;
146
- overrideSniFromAddress?: boolean | undefined;
147
- keepSniBlank?: boolean | undefined;
148
- excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
149
- }>, "many">;
150
- }, "strip", z.ZodTypeAny, {
151
- response: {
152
- nodes: string[];
153
- tags: string[];
154
- path: string | null;
155
- uuid: string;
156
- port: number;
157
- viewPosition: number;
158
- remark: string;
159
- address: string;
160
- sni: string | null;
161
- host: string | null;
162
- alpn: string | null;
163
- fingerprint: string | null;
164
- isDisabled: boolean;
165
- securityLayer: "DEFAULT" | "TLS" | "NONE";
166
- inbound: {
167
- configProfileUuid: string | null;
168
- configProfileInboundUuid: string | null;
169
- };
170
- serverDescription: string | null;
171
- isHidden: boolean;
172
- overrideSniFromAddress: boolean;
173
- keepSniBlank: boolean;
174
- vlessRouteId: number | null;
175
- pinnedPeerCertSha256: string | null;
176
- verifyPeerCertByName: string | null;
177
- shuffleHost: boolean;
178
- mihomoX25519: boolean;
179
- mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
180
- xrayJsonTemplateUuid: string | null;
181
- excludedInternalSquads: string[];
182
- xHttpExtraParams?: unknown;
183
- muxParams?: unknown;
184
- sockoptParams?: unknown;
185
- finalMask?: unknown;
186
- excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
187
- }[];
188
- }, {
189
- response: {
190
- nodes: string[];
191
- path: string | null;
192
- uuid: string;
193
- port: number;
194
- viewPosition: number;
195
- remark: string;
196
- address: string;
197
- sni: string | null;
198
- host: string | null;
199
- alpn: string | null;
200
- fingerprint: string | null;
201
- inbound: {
202
- configProfileUuid: string | null;
203
- configProfileInboundUuid: string | null;
204
- };
205
- serverDescription: string | null;
206
- vlessRouteId: number | null;
207
- pinnedPeerCertSha256: string | null;
208
- verifyPeerCertByName: string | null;
209
- shuffleHost: boolean;
210
- mihomoX25519: boolean;
211
- mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
212
- xrayJsonTemplateUuid: string | null;
213
- excludedInternalSquads: string[];
214
- tags?: string[] | undefined;
215
- isDisabled?: boolean | undefined;
216
- securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
217
- xHttpExtraParams?: unknown;
218
- muxParams?: unknown;
219
- sockoptParams?: unknown;
220
- finalMask?: unknown;
221
- isHidden?: boolean | undefined;
222
- overrideSniFromAddress?: boolean | undefined;
223
- keepSniBlank?: boolean | undefined;
224
- excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
225
- }[];
226
- }>;
227
- type Response = z.infer<typeof ResponseSchema>;
228
- }
229
- //# sourceMappingURL=set-port-to-many-hosts.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"set-port-to-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/set-port-to-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,4BAA+B,CAAC;IACzC,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SetPortToManyHostsCommand = void 0;
4
- const zod_1 = require("zod");
5
- const constants_1 = require("../../../constants");
6
- const api_1 = require("../../../api");
7
- const models_1 = require("../../../models");
8
- var SetPortToManyHostsCommand;
9
- (function (SetPortToManyHostsCommand) {
10
- SetPortToManyHostsCommand.url = api_1.REST_API.HOSTS.BULK.SET_PORT;
11
- SetPortToManyHostsCommand.TSQ_url = SetPortToManyHostsCommand.url;
12
- SetPortToManyHostsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.BULK.SET_PORT, 'post', 'Set port to hosts by UUIDs');
13
- SetPortToManyHostsCommand.RequestSchema = zod_1.z.object({
14
- uuids: zod_1.z.array(zod_1.z.string().uuid()),
15
- port: zod_1.z.number().int().min(1).max(65535),
16
- });
17
- SetPortToManyHostsCommand.ResponseSchema = zod_1.z.object({
18
- response: zod_1.z.array(models_1.HostsSchema),
19
- });
20
- })(SetPortToManyHostsCommand || (exports.SetPortToManyHostsCommand = SetPortToManyHostsCommand = {}));
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BulkDisableHostsCommand = void 0;
4
- const zod_1 = require("zod");
5
- const constants_1 = require("../../../constants");
6
- const api_1 = require("../../../api");
7
- const models_1 = require("../../../models");
8
- var BulkDisableHostsCommand;
9
- (function (BulkDisableHostsCommand) {
10
- BulkDisableHostsCommand.url = api_1.REST_API.HOSTS.BULK.DISABLE_HOSTS;
11
- BulkDisableHostsCommand.TSQ_url = BulkDisableHostsCommand.url;
12
- BulkDisableHostsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.BULK.DISABLE_HOSTS, 'post', 'Disable hosts by UUIDs');
13
- BulkDisableHostsCommand.RequestSchema = zod_1.z.object({
14
- uuids: zod_1.z.array(zod_1.z.string().uuid()),
15
- });
16
- BulkDisableHostsCommand.ResponseSchema = zod_1.z.object({
17
- response: zod_1.z.array(models_1.HostsSchema),
18
- });
19
- })(BulkDisableHostsCommand || (exports.BulkDisableHostsCommand = BulkDisableHostsCommand = {}));
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BulkEnableHostsCommand = void 0;
4
- const zod_1 = require("zod");
5
- const constants_1 = require("../../../constants");
6
- const api_1 = require("../../../api");
7
- const models_1 = require("../../../models");
8
- var BulkEnableHostsCommand;
9
- (function (BulkEnableHostsCommand) {
10
- BulkEnableHostsCommand.url = api_1.REST_API.HOSTS.BULK.ENABLE_HOSTS;
11
- BulkEnableHostsCommand.TSQ_url = BulkEnableHostsCommand.url;
12
- BulkEnableHostsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.BULK.ENABLE_HOSTS, 'post', 'Enable hosts by UUIDs');
13
- BulkEnableHostsCommand.RequestSchema = zod_1.z.object({
14
- uuids: zod_1.z.array(zod_1.z.string().uuid()),
15
- });
16
- BulkEnableHostsCommand.ResponseSchema = zod_1.z.object({
17
- response: zod_1.z.array(models_1.HostsSchema),
18
- });
19
- })(BulkEnableHostsCommand || (exports.BulkEnableHostsCommand = BulkEnableHostsCommand = {}));
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SetInboundToManyHostsCommand = void 0;
4
- const zod_1 = require("zod");
5
- const constants_1 = require("../../../constants");
6
- const api_1 = require("../../../api");
7
- const models_1 = require("../../../models");
8
- var SetInboundToManyHostsCommand;
9
- (function (SetInboundToManyHostsCommand) {
10
- SetInboundToManyHostsCommand.url = api_1.REST_API.HOSTS.BULK.SET_INBOUND;
11
- SetInboundToManyHostsCommand.TSQ_url = SetInboundToManyHostsCommand.url;
12
- SetInboundToManyHostsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.BULK.SET_INBOUND, 'post', 'Set inbound to hosts by UUIDs');
13
- SetInboundToManyHostsCommand.RequestSchema = zod_1.z.object({
14
- uuids: zod_1.z.array(zod_1.z.string().uuid()),
15
- configProfileUuid: zod_1.z.string().uuid(),
16
- configProfileInboundUuid: zod_1.z.string().uuid(),
17
- });
18
- SetInboundToManyHostsCommand.ResponseSchema = zod_1.z.object({
19
- response: zod_1.z.array(models_1.HostsSchema),
20
- });
21
- })(SetInboundToManyHostsCommand || (exports.SetInboundToManyHostsCommand = SetInboundToManyHostsCommand = {}));
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SetPortToManyHostsCommand = void 0;
4
- const zod_1 = require("zod");
5
- const constants_1 = require("../../../constants");
6
- const api_1 = require("../../../api");
7
- const models_1 = require("../../../models");
8
- var SetPortToManyHostsCommand;
9
- (function (SetPortToManyHostsCommand) {
10
- SetPortToManyHostsCommand.url = api_1.REST_API.HOSTS.BULK.SET_PORT;
11
- SetPortToManyHostsCommand.TSQ_url = SetPortToManyHostsCommand.url;
12
- SetPortToManyHostsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.BULK.SET_PORT, 'post', 'Set port to hosts by UUIDs');
13
- SetPortToManyHostsCommand.RequestSchema = zod_1.z.object({
14
- uuids: zod_1.z.array(zod_1.z.string().uuid()),
15
- port: zod_1.z.number().int().min(1).max(65535),
16
- });
17
- SetPortToManyHostsCommand.ResponseSchema = zod_1.z.object({
18
- response: zod_1.z.array(models_1.HostsSchema),
19
- });
20
- })(SetPortToManyHostsCommand || (exports.SetPortToManyHostsCommand = SetPortToManyHostsCommand = {}));