@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
@@ -10,11 +10,8 @@ export declare const HOSTS_ROUTES: {
10
10
  readonly REORDER: "actions/reorder";
11
11
  };
12
12
  readonly BULK: {
13
- readonly ENABLE_HOSTS: "bulk/enable";
14
- readonly DISABLE_HOSTS: "bulk/disable";
15
13
  readonly DELETE_HOSTS: "bulk/delete";
16
- readonly SET_INBOUND: "bulk/set-inbound";
17
- readonly SET_PORT: "bulk/set-port";
14
+ readonly UPDATE: "bulk/update";
18
15
  };
19
16
  readonly TAGS: {
20
17
  readonly GET: "tags";
@@ -1 +1 @@
1
- {"version":3,"file":"hosts.d.ts","sourceRoot":"","sources":["../../../../api/controllers/hosts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAG,SAAkB,CAAC;AAErD,eAAO,MAAM,YAAY;;;;iCAID,MAAM;4BACX,MAAM;;;;;;;;;;;;;;CAiBf,CAAC"}
1
+ {"version":3,"file":"hosts.d.ts","sourceRoot":"","sources":["../../../../api/controllers/hosts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAG,SAAkB,CAAC;AAErD,eAAO,MAAM,YAAY;;;;iCAID,MAAM;4BACX,MAAM;;;;;;;;;;;CAcf,CAAC"}
@@ -13,11 +13,8 @@ exports.HOSTS_ROUTES = {
13
13
  REORDER: `${exports.HOST_ACTIONS_ROUTE}/reorder`,
14
14
  },
15
15
  BULK: {
16
- ENABLE_HOSTS: 'bulk/enable',
17
- DISABLE_HOSTS: 'bulk/disable',
18
16
  DELETE_HOSTS: 'bulk/delete',
19
- SET_INBOUND: 'bulk/set-inbound',
20
- SET_PORT: 'bulk/set-port',
17
+ UPDATE: 'bulk/update',
21
18
  },
22
19
  TAGS: {
23
20
  GET: 'tags',
@@ -111,11 +111,8 @@ export declare const REST_API: {
111
111
  readonly REORDER: "/api/hosts/actions/reorder";
112
112
  };
113
113
  readonly BULK: {
114
- readonly ENABLE_HOSTS: "/api/hosts/bulk/enable";
115
- readonly DISABLE_HOSTS: "/api/hosts/bulk/disable";
116
114
  readonly DELETE_HOSTS: "/api/hosts/bulk/delete";
117
- readonly SET_INBOUND: "/api/hosts/bulk/set-inbound";
118
- readonly SET_PORT: "/api/hosts/bulk/set-port";
115
+ readonly UPDATE: "/api/hosts/bulk/update";
119
116
  };
120
117
  readonly TAGS: {
121
118
  readonly GET: "/api/hosts/tags";
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;gCAyBE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;;;;oCAOF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;2CAKA,MAAM;;;;;;;;;;;;;gCAiBjB,MAAM;qCAGD,MAAM;0CA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,MAAM;;;iCAIT,MAAM;oCAEH,MAAM;;;CAIvB,CAAC"}
@@ -148,11 +148,8 @@ exports.REST_API = {
148
148
  REORDER: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.ACTIONS.REORDER}`,
149
149
  },
150
150
  BULK: {
151
- ENABLE_HOSTS: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.ENABLE_HOSTS}`,
152
- DISABLE_HOSTS: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.DISABLE_HOSTS}`,
153
151
  DELETE_HOSTS: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.DELETE_HOSTS}`,
154
- SET_INBOUND: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.SET_INBOUND}`,
155
- SET_PORT: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.SET_PORT}`,
152
+ UPDATE: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.UPDATE}`,
156
153
  },
157
154
  TAGS: {
158
155
  GET: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.TAGS.GET}`,
@@ -1,6 +1,3 @@
1
1
  export * from './delete-many-hosts.command';
2
- export * from './disable-many-hosts.command';
3
- export * from './enable-many-hosts.command';
4
- export * from './set-inbound-to-many-hosts.command';
5
- export * from './set-port-to-many-hosts.command';
2
+ export * from './update-many-hosts.command';
6
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
@@ -15,7 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./delete-many-hosts.command"), exports);
18
- __exportStar(require("./disable-many-hosts.command"), exports);
19
- __exportStar(require("./enable-many-hosts.command"), exports);
20
- __exportStar(require("./set-inbound-to-many-hosts.command"), exports);
21
- __exportStar(require("./set-port-to-many-hosts.command"), exports);
18
+ __exportStar(require("./update-many-hosts.command"), exports);
@@ -1,14 +1,144 @@
1
1
  import { z } from 'zod';
2
- export declare namespace BulkDisableHostsCommand {
3
- const url: "/api/hosts/bulk/disable";
4
- const TSQ_url: "/api/hosts/bulk/disable";
2
+ export declare namespace UpdateManyHostsCommand {
3
+ const url: "/api/hosts/bulk/update";
4
+ const TSQ_url: "/api/hosts/bulk/update";
5
5
  const endpointDetails: import("../../../constants").EndpointDetails;
6
6
  const RequestSchema: z.ZodObject<{
7
+ nodes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
8
+ tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
9
+ path: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10
+ port: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
11
+ remark: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12
+ address: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13
+ sni: z.ZodOptional<z.ZodOptional<z.ZodString>>;
14
+ host: z.ZodOptional<z.ZodOptional<z.ZodString>>;
15
+ alpn: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
16
+ readonly H3: "h3";
17
+ readonly H2: "h2";
18
+ readonly HTTP_1_1: "http/1.1";
19
+ readonly H_COMBINED: "h2,http/1.1";
20
+ readonly H3_H2_H1_COMBINED: "h3,h2,http/1.1";
21
+ readonly H3_H2_COMBINED: "h3,h2";
22
+ }>>>>;
23
+ fingerprint: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
24
+ isDisabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
25
+ securityLayer: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<{
26
+ readonly DEFAULT: "DEFAULT";
27
+ readonly TLS: "TLS";
28
+ readonly NONE: "NONE";
29
+ }>>>;
30
+ xHttpExtraParams: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnknown>>>;
31
+ muxParams: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnknown>>>;
32
+ sockoptParams: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnknown>>>;
33
+ finalMask: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnknown>>>;
34
+ inbound: z.ZodOptional<z.ZodOptional<z.ZodObject<{
35
+ configProfileUuid: z.ZodString;
36
+ configProfileInboundUuid: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ configProfileUuid: string;
39
+ configProfileInboundUuid: string;
40
+ }, {
41
+ configProfileUuid: string;
42
+ configProfileInboundUuid: string;
43
+ }>>>;
44
+ serverDescription: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
45
+ isHidden: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
46
+ overrideSniFromAddress: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
47
+ keepSniBlank: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
48
+ vlessRouteId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
49
+ pinnedPeerCertSha256: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
50
+ verifyPeerCertByName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
51
+ shuffleHost: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
52
+ mihomoX25519: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
53
+ mihomoIpVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
54
+ readonly DUAL: "dual";
55
+ readonly IPV4: "ipv4";
56
+ readonly IPV6: "ipv6";
57
+ readonly IPV4_PREFER: "ipv4-prefer";
58
+ readonly IPV6_PREFER: "ipv6-prefer";
59
+ }>>>>;
60
+ xrayJsonTemplateUuid: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
61
+ excludedInternalSquads: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
62
+ excludeFromSubscriptionTypes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
63
+ readonly XRAY_JSON: "XRAY_JSON";
64
+ readonly XRAY_BASE64: "XRAY_BASE64";
65
+ readonly MIHOMO: "MIHOMO";
66
+ readonly STASH: "STASH";
67
+ readonly CLASH: "CLASH";
68
+ readonly SINGBOX: "SINGBOX";
69
+ }>, "many">>>;
70
+ } & {
7
71
  uuids: z.ZodArray<z.ZodString, "many">;
8
72
  }, "strip", z.ZodTypeAny, {
9
73
  uuids: string[];
74
+ nodes?: string[] | undefined;
75
+ tags?: string[] | undefined;
76
+ path?: string | undefined;
77
+ port?: number | undefined;
78
+ remark?: string | undefined;
79
+ address?: string | undefined;
80
+ sni?: string | undefined;
81
+ host?: string | undefined;
82
+ alpn?: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null | undefined;
83
+ fingerprint?: string | null | undefined;
84
+ isDisabled?: boolean | undefined;
85
+ securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
86
+ xHttpExtraParams?: unknown;
87
+ muxParams?: unknown;
88
+ sockoptParams?: unknown;
89
+ finalMask?: unknown;
90
+ inbound?: {
91
+ configProfileUuid: string;
92
+ configProfileInboundUuid: string;
93
+ } | undefined;
94
+ serverDescription?: string | null | undefined;
95
+ isHidden?: boolean | undefined;
96
+ overrideSniFromAddress?: boolean | undefined;
97
+ keepSniBlank?: boolean | undefined;
98
+ vlessRouteId?: number | null | undefined;
99
+ pinnedPeerCertSha256?: string | null | undefined;
100
+ verifyPeerCertByName?: string | null | undefined;
101
+ shuffleHost?: boolean | undefined;
102
+ mihomoX25519?: boolean | undefined;
103
+ mihomoIpVersion?: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null | undefined;
104
+ xrayJsonTemplateUuid?: string | null | undefined;
105
+ excludedInternalSquads?: string[] | undefined;
106
+ excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
10
107
  }, {
11
108
  uuids: string[];
109
+ nodes?: string[] | undefined;
110
+ tags?: string[] | undefined;
111
+ path?: string | undefined;
112
+ port?: number | undefined;
113
+ remark?: string | undefined;
114
+ address?: string | undefined;
115
+ sni?: string | undefined;
116
+ host?: string | undefined;
117
+ alpn?: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null | undefined;
118
+ fingerprint?: string | null | undefined;
119
+ isDisabled?: boolean | undefined;
120
+ securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
121
+ xHttpExtraParams?: unknown;
122
+ muxParams?: unknown;
123
+ sockoptParams?: unknown;
124
+ finalMask?: unknown;
125
+ inbound?: {
126
+ configProfileUuid: string;
127
+ configProfileInboundUuid: string;
128
+ } | undefined;
129
+ serverDescription?: string | null | undefined;
130
+ isHidden?: boolean | undefined;
131
+ overrideSniFromAddress?: boolean | undefined;
132
+ keepSniBlank?: boolean | undefined;
133
+ vlessRouteId?: number | null | undefined;
134
+ pinnedPeerCertSha256?: string | null | undefined;
135
+ verifyPeerCertByName?: string | null | undefined;
136
+ shuffleHost?: boolean | undefined;
137
+ mihomoX25519?: boolean | undefined;
138
+ mihomoIpVersion?: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null | undefined;
139
+ xrayJsonTemplateUuid?: string | null | undefined;
140
+ excludedInternalSquads?: string[] | undefined;
141
+ excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
12
142
  }>;
13
143
  type Request = z.infer<typeof RequestSchema>;
14
144
  const ResponseSchema: z.ZodObject<{
@@ -223,4 +353,4 @@ export declare namespace BulkDisableHostsCommand {
223
353
  }>;
224
354
  type Response = z.infer<typeof ResponseSchema>;
225
355
  }
226
- //# sourceMappingURL=disable-many-hosts.command.d.ts.map
356
+ //# sourceMappingURL=update-many-hosts.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/update-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIpB,CAAC;IACP,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"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateManyHostsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ const api_1 = require("../../../api");
7
+ const update_command_1 = require("../update.command");
8
+ const models_1 = require("../../../models");
9
+ var UpdateManyHostsCommand;
10
+ (function (UpdateManyHostsCommand) {
11
+ UpdateManyHostsCommand.url = api_1.REST_API.HOSTS.BULK.UPDATE;
12
+ UpdateManyHostsCommand.TSQ_url = UpdateManyHostsCommand.url;
13
+ UpdateManyHostsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.BULK.UPDATE, 'patch', 'Update many hosts');
14
+ UpdateManyHostsCommand.RequestSchema = update_command_1.UpdateHostCommand.RequestSchema.omit({ uuid: true })
15
+ .partial()
16
+ .extend({
17
+ uuids: zod_1.z.array(zod_1.z.string().uuid()).min(1, 'Must be at least 1 host UUID'),
18
+ });
19
+ UpdateManyHostsCommand.ResponseSchema = zod_1.z.object({
20
+ response: zod_1.z.array(models_1.HostsSchema),
21
+ });
22
+ })(UpdateManyHostsCommand || (exports.UpdateManyHostsCommand = UpdateManyHostsCommand = {}));
@@ -419,26 +419,6 @@ export declare const ERRORS: {
419
419
  readonly message: "Delete hosts error";
420
420
  readonly httpCode: 500;
421
421
  };
422
- readonly BULK_ENABLE_HOSTS_ERROR: {
423
- readonly code: "A080";
424
- readonly message: "Bulk enable hosts error";
425
- readonly httpCode: 500;
426
- };
427
- readonly BULK_DISABLE_HOSTS_ERROR: {
428
- readonly code: "A081";
429
- readonly message: "Bulk disable hosts error";
430
- readonly httpCode: 500;
431
- };
432
- readonly SET_INBOUND_TO_HOSTS_ERROR: {
433
- readonly code: "A082";
434
- readonly message: "Set inbound to hosts error";
435
- readonly httpCode: 500;
436
- };
437
- readonly SET_PORT_TO_HOSTS_ERROR: {
438
- readonly code: "A083";
439
- readonly message: "Set port to hosts error";
440
- readonly httpCode: 500;
441
- };
442
422
  readonly BULK_DELETE_USERS_BY_UUID_ERROR: {
443
423
  readonly code: "A084";
444
424
  readonly message: "Bulk delete users by UUID error";
@@ -1174,5 +1154,10 @@ export declare const ERRORS: {
1174
1154
  readonly message: "Get torrent blocker reports error";
1175
1155
  readonly httpCode: 500;
1176
1156
  };
1157
+ readonly UPDATE_HOSTS_ERROR: {
1158
+ readonly code: "A228";
1159
+ readonly message: "Update hosts error";
1160
+ readonly httpCode: 500;
1161
+ };
1177
1162
  };
1178
1163
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4J3B,CAAC"}
@@ -390,26 +390,6 @@ exports.ERRORS = {
390
390
  message: 'Delete hosts error',
391
391
  httpCode: 500,
392
392
  },
393
- BULK_ENABLE_HOSTS_ERROR: {
394
- code: 'A080',
395
- message: 'Bulk enable hosts error',
396
- httpCode: 500,
397
- },
398
- BULK_DISABLE_HOSTS_ERROR: {
399
- code: 'A081',
400
- message: 'Bulk disable hosts error',
401
- httpCode: 500,
402
- },
403
- SET_INBOUND_TO_HOSTS_ERROR: {
404
- code: 'A082',
405
- message: 'Set inbound to hosts error',
406
- httpCode: 500,
407
- },
408
- SET_PORT_TO_HOSTS_ERROR: {
409
- code: 'A083',
410
- message: 'Set port to hosts error',
411
- httpCode: 500,
412
- },
413
393
  BULK_DELETE_USERS_BY_UUID_ERROR: {
414
394
  code: 'A084',
415
395
  message: 'Bulk delete users by UUID error',
@@ -1145,4 +1125,9 @@ exports.ERRORS = {
1145
1125
  message: 'Get torrent blocker reports error',
1146
1126
  httpCode: 500,
1147
1127
  },
1128
+ UPDATE_HOSTS_ERROR: {
1129
+ code: 'A228',
1130
+ message: 'Update hosts error',
1131
+ httpCode: 500,
1132
+ },
1148
1133
  };
@@ -13,11 +13,8 @@ exports.HOSTS_ROUTES = {
13
13
  REORDER: `${exports.HOST_ACTIONS_ROUTE}/reorder`,
14
14
  },
15
15
  BULK: {
16
- ENABLE_HOSTS: 'bulk/enable',
17
- DISABLE_HOSTS: 'bulk/disable',
18
16
  DELETE_HOSTS: 'bulk/delete',
19
- SET_INBOUND: 'bulk/set-inbound',
20
- SET_PORT: 'bulk/set-port',
17
+ UPDATE: 'bulk/update',
21
18
  },
22
19
  TAGS: {
23
20
  GET: 'tags',
@@ -148,11 +148,8 @@ exports.REST_API = {
148
148
  REORDER: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.ACTIONS.REORDER}`,
149
149
  },
150
150
  BULK: {
151
- ENABLE_HOSTS: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.ENABLE_HOSTS}`,
152
- DISABLE_HOSTS: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.DISABLE_HOSTS}`,
153
151
  DELETE_HOSTS: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.DELETE_HOSTS}`,
154
- SET_INBOUND: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.SET_INBOUND}`,
155
- SET_PORT: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.SET_PORT}`,
152
+ UPDATE: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.UPDATE}`,
156
153
  },
157
154
  TAGS: {
158
155
  GET: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.TAGS.GET}`,
@@ -15,7 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./delete-many-hosts.command"), exports);
18
- __exportStar(require("./disable-many-hosts.command"), exports);
19
- __exportStar(require("./enable-many-hosts.command"), exports);
20
- __exportStar(require("./set-inbound-to-many-hosts.command"), exports);
21
- __exportStar(require("./set-port-to-many-hosts.command"), exports);
18
+ __exportStar(require("./update-many-hosts.command"), exports);
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateManyHostsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ const api_1 = require("../../../api");
7
+ const update_command_1 = require("../update.command");
8
+ const models_1 = require("../../../models");
9
+ var UpdateManyHostsCommand;
10
+ (function (UpdateManyHostsCommand) {
11
+ UpdateManyHostsCommand.url = api_1.REST_API.HOSTS.BULK.UPDATE;
12
+ UpdateManyHostsCommand.TSQ_url = UpdateManyHostsCommand.url;
13
+ UpdateManyHostsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.BULK.UPDATE, 'patch', 'Update many hosts');
14
+ UpdateManyHostsCommand.RequestSchema = update_command_1.UpdateHostCommand.RequestSchema.omit({ uuid: true })
15
+ .partial()
16
+ .extend({
17
+ uuids: zod_1.z.array(zod_1.z.string().uuid()).min(1, 'Must be at least 1 host UUID'),
18
+ });
19
+ UpdateManyHostsCommand.ResponseSchema = zod_1.z.object({
20
+ response: zod_1.z.array(models_1.HostsSchema),
21
+ });
22
+ })(UpdateManyHostsCommand || (exports.UpdateManyHostsCommand = UpdateManyHostsCommand = {}));
@@ -390,26 +390,6 @@ exports.ERRORS = {
390
390
  message: 'Delete hosts error',
391
391
  httpCode: 500,
392
392
  },
393
- BULK_ENABLE_HOSTS_ERROR: {
394
- code: 'A080',
395
- message: 'Bulk enable hosts error',
396
- httpCode: 500,
397
- },
398
- BULK_DISABLE_HOSTS_ERROR: {
399
- code: 'A081',
400
- message: 'Bulk disable hosts error',
401
- httpCode: 500,
402
- },
403
- SET_INBOUND_TO_HOSTS_ERROR: {
404
- code: 'A082',
405
- message: 'Set inbound to hosts error',
406
- httpCode: 500,
407
- },
408
- SET_PORT_TO_HOSTS_ERROR: {
409
- code: 'A083',
410
- message: 'Set port to hosts error',
411
- httpCode: 500,
412
- },
413
393
  BULK_DELETE_USERS_BY_UUID_ERROR: {
414
394
  code: 'A084',
415
395
  message: 'Bulk delete users by UUID error',
@@ -1145,4 +1125,9 @@ exports.ERRORS = {
1145
1125
  message: 'Get torrent blocker reports error',
1146
1126
  httpCode: 500,
1147
1127
  },
1128
+ UPDATE_HOSTS_ERROR: {
1129
+ code: 'A228',
1130
+ message: 'Update hosts error',
1131
+ httpCode: 500,
1132
+ },
1148
1133
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.8.10",
3
+ "version": "2.8.12",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",
@@ -1 +0,0 @@
1
- {"version":3,"file":"disable-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/disable-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,2BAAoC,CAAC;IAC9C,MAAM,OAAO,2BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,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,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 = {}));