@remnawave/backend-contract 2.1.3 → 2.1.4

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 (57) hide show
  1. package/build/backend/api/controllers/hosts.d.ts +3 -0
  2. package/build/backend/api/controllers/hosts.d.ts.map +1 -1
  3. package/build/backend/api/controllers/hosts.js +3 -0
  4. package/build/backend/api/routes.d.ts +3 -0
  5. package/build/backend/api/routes.d.ts.map +1 -1
  6. package/build/backend/api/routes.js +3 -0
  7. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +10 -0
  8. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  9. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +10 -0
  10. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  11. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +10 -0
  12. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  13. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +10 -0
  14. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  15. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +10 -0
  16. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  17. package/build/backend/commands/hosts/create.command.d.ts +16 -0
  18. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  19. package/build/backend/commands/hosts/create.command.js +8 -0
  20. package/build/backend/commands/hosts/get-all.command.d.ts +10 -0
  21. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  22. package/build/backend/commands/hosts/get-one.command.d.ts +10 -0
  23. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  24. package/build/backend/commands/hosts/index.d.ts +1 -0
  25. package/build/backend/commands/hosts/index.d.ts.map +1 -1
  26. package/build/backend/commands/hosts/index.js +1 -0
  27. package/build/backend/commands/hosts/reorder.command.d.ts +2 -0
  28. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  29. package/build/backend/commands/hosts/tags/get-all-host-tags.command.d.ts +25 -0
  30. package/build/backend/commands/hosts/tags/get-all-host-tags.command.d.ts.map +1 -0
  31. package/build/backend/commands/hosts/tags/get-all-host-tags.command.js +17 -0
  32. package/build/backend/commands/hosts/tags/index.d.ts +2 -0
  33. package/build/backend/commands/hosts/tags/index.d.ts.map +1 -0
  34. package/build/backend/commands/hosts/tags/index.js +17 -0
  35. package/build/backend/commands/hosts/update.command.d.ts +18 -0
  36. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  37. package/build/backend/commands/hosts/update.command.js +8 -0
  38. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +18 -0
  39. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
  40. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +2 -0
  41. package/build/backend/constants/errors/errors.d.ts +5 -0
  42. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  43. package/build/backend/constants/errors/errors.js +5 -0
  44. package/build/backend/models/hosts.schema.d.ts +6 -0
  45. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  46. package/build/backend/models/hosts.schema.js +2 -0
  47. package/build/frontend/api/controllers/hosts.js +3 -0
  48. package/build/frontend/api/routes.js +3 -0
  49. package/build/frontend/commands/hosts/create.command.js +8 -0
  50. package/build/frontend/commands/hosts/index.js +1 -0
  51. package/build/frontend/commands/hosts/tags/get-all-host-tags.command.js +17 -0
  52. package/build/frontend/commands/hosts/tags/index.js +17 -0
  53. package/build/frontend/commands/hosts/update.command.js +8 -0
  54. package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +2 -0
  55. package/build/frontend/constants/errors/errors.js +5 -0
  56. package/build/frontend/models/hosts.schema.js +2 -0
  57. package/package.json +1 -1
@@ -43,9 +43,12 @@ export declare namespace GetOneHostCommand {
43
43
  configProfileInboundUuid: string | null;
44
44
  }>;
45
45
  serverDescription: z.ZodNullable<z.ZodString>;
46
+ tag: z.ZodNullable<z.ZodString>;
47
+ isHidden: z.ZodDefault<z.ZodBoolean>;
46
48
  }, "strip", z.ZodTypeAny, {
47
49
  path: string | null;
48
50
  uuid: string;
51
+ tag: string | null;
49
52
  port: number;
50
53
  viewPosition: number;
51
54
  remark: string;
@@ -61,12 +64,14 @@ export declare namespace GetOneHostCommand {
61
64
  configProfileInboundUuid: string | null;
62
65
  };
63
66
  serverDescription: string | null;
67
+ isHidden: boolean;
64
68
  xHttpExtraParams?: unknown;
65
69
  muxParams?: unknown;
66
70
  sockoptParams?: unknown;
67
71
  }, {
68
72
  path: string | null;
69
73
  uuid: string;
74
+ tag: string | null;
70
75
  port: number;
71
76
  viewPosition: number;
72
77
  remark: string;
@@ -85,11 +90,13 @@ export declare namespace GetOneHostCommand {
85
90
  xHttpExtraParams?: unknown;
86
91
  muxParams?: unknown;
87
92
  sockoptParams?: unknown;
93
+ isHidden?: boolean | undefined;
88
94
  }>;
89
95
  }, "strip", z.ZodTypeAny, {
90
96
  response: {
91
97
  path: string | null;
92
98
  uuid: string;
99
+ tag: string | null;
93
100
  port: number;
94
101
  viewPosition: number;
95
102
  remark: string;
@@ -105,6 +112,7 @@ export declare namespace GetOneHostCommand {
105
112
  configProfileInboundUuid: string | null;
106
113
  };
107
114
  serverDescription: string | null;
115
+ isHidden: boolean;
108
116
  xHttpExtraParams?: unknown;
109
117
  muxParams?: unknown;
110
118
  sockoptParams?: unknown;
@@ -113,6 +121,7 @@ export declare namespace GetOneHostCommand {
113
121
  response: {
114
122
  path: string | null;
115
123
  uuid: string;
124
+ tag: string | null;
116
125
  port: number;
117
126
  viewPosition: number;
118
127
  remark: string;
@@ -131,6 +140,7 @@ export declare namespace GetOneHostCommand {
131
140
  xHttpExtraParams?: unknown;
132
141
  muxParams?: unknown;
133
142
  sockoptParams?: unknown;
143
+ isHidden?: boolean | undefined;
134
144
  };
135
145
  }>;
136
146
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,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
+ {"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,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"}
@@ -4,5 +4,6 @@ export * from './delete.command';
4
4
  export * from './get-all.command';
5
5
  export * from './get-one.command';
6
6
  export * from './reorder.command';
7
+ export * from './tags';
7
8
  export * from './update.command';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC"}
@@ -20,4 +20,5 @@ __exportStar(require("./delete.command"), exports);
20
20
  __exportStar(require("./get-all.command"), exports);
21
21
  __exportStar(require("./get-one.command"), exports);
22
22
  __exportStar(require("./reorder.command"), exports);
23
+ __exportStar(require("./tags"), exports);
23
24
  __exportStar(require("./update.command"), exports);
@@ -35,6 +35,8 @@ export declare namespace ReorderHostCommand {
35
35
  configProfileInboundUuid: string | null;
36
36
  }>;
37
37
  serverDescription: z.ZodNullable<z.ZodString>;
38
+ tag: z.ZodNullable<z.ZodString>;
39
+ isHidden: z.ZodDefault<z.ZodBoolean>;
38
40
  }, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
39
41
  uuid: string;
40
42
  viewPosition: number;
@@ -1 +1 @@
1
- {"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetAllHostTagsCommand {
3
+ const url: "/api/hosts/tags";
4
+ const TSQ_url: "/api/hosts/tags";
5
+ const endpointDetails: import("../../../constants").EndpointDetails;
6
+ const ResponseSchema: z.ZodObject<{
7
+ response: z.ZodObject<{
8
+ tags: z.ZodArray<z.ZodString, "many">;
9
+ }, "strip", z.ZodTypeAny, {
10
+ tags: string[];
11
+ }, {
12
+ tags: string[];
13
+ }>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ response: {
16
+ tags: string[];
17
+ };
18
+ }, {
19
+ response: {
20
+ tags: string[];
21
+ };
22
+ }>;
23
+ type Response = z.infer<typeof ResponseSchema>;
24
+ }
25
+ //# sourceMappingURL=get-all-host-tags.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-all-host-tags.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/tags/get-all-host-tags.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,mBAA0B,CAAC;IACpC,MAAM,OAAO,mBAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAllHostTagsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ const api_1 = require("../../../api");
7
+ var GetAllHostTagsCommand;
8
+ (function (GetAllHostTagsCommand) {
9
+ GetAllHostTagsCommand.url = api_1.REST_API.HOSTS.TAGS.GET;
10
+ GetAllHostTagsCommand.TSQ_url = GetAllHostTagsCommand.url;
11
+ GetAllHostTagsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.TAGS.GET, 'get', 'Get all existing host tags');
12
+ GetAllHostTagsCommand.ResponseSchema = zod_1.z.object({
13
+ response: zod_1.z.object({
14
+ tags: zod_1.z.array(zod_1.z.string()),
15
+ }),
16
+ });
17
+ })(GetAllHostTagsCommand || (exports.GetAllHostTagsCommand = GetAllHostTagsCommand = {}));
@@ -0,0 +1,2 @@
1
+ export * from './get-all-host-tags.command';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/tags/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-all-host-tags.command"), exports);
@@ -34,6 +34,8 @@ export declare namespace UpdateHostCommand {
34
34
  configProfileInboundUuid: string | null;
35
35
  }>;
36
36
  serverDescription: z.ZodNullable<z.ZodString>;
37
+ tag: z.ZodNullable<z.ZodString>;
38
+ isHidden: z.ZodDefault<z.ZodBoolean>;
37
39
  }, "uuid"> & {
38
40
  inbound: z.ZodOptional<z.ZodObject<{
39
41
  configProfileUuid: z.ZodString;
@@ -80,9 +82,12 @@ export declare namespace UpdateHostCommand {
80
82
  muxParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
81
83
  sockoptParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
82
84
  serverDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ isHidden: z.ZodOptional<z.ZodBoolean>;
83
87
  }, "strip", z.ZodTypeAny, {
84
88
  uuid: string;
85
89
  path?: string | undefined;
90
+ tag?: string | null | undefined;
86
91
  port?: number | undefined;
87
92
  remark?: string | undefined;
88
93
  address?: string | undefined;
@@ -100,9 +105,11 @@ export declare namespace UpdateHostCommand {
100
105
  configProfileInboundUuid: string;
101
106
  } | undefined;
102
107
  serverDescription?: string | null | undefined;
108
+ isHidden?: boolean | undefined;
103
109
  }, {
104
110
  uuid: string;
105
111
  path?: string | undefined;
112
+ tag?: string | null | undefined;
106
113
  port?: number | undefined;
107
114
  remark?: string | undefined;
108
115
  address?: string | undefined;
@@ -120,6 +127,7 @@ export declare namespace UpdateHostCommand {
120
127
  configProfileInboundUuid: string;
121
128
  } | undefined;
122
129
  serverDescription?: string | null | undefined;
130
+ isHidden?: boolean | undefined;
123
131
  }>;
124
132
  type Request = z.infer<typeof RequestSchema>;
125
133
  const ResponseSchema: z.ZodObject<{
@@ -154,9 +162,12 @@ export declare namespace UpdateHostCommand {
154
162
  configProfileInboundUuid: string | null;
155
163
  }>;
156
164
  serverDescription: z.ZodNullable<z.ZodString>;
165
+ tag: z.ZodNullable<z.ZodString>;
166
+ isHidden: z.ZodDefault<z.ZodBoolean>;
157
167
  }, "strip", z.ZodTypeAny, {
158
168
  path: string | null;
159
169
  uuid: string;
170
+ tag: string | null;
160
171
  port: number;
161
172
  viewPosition: number;
162
173
  remark: string;
@@ -172,12 +183,14 @@ export declare namespace UpdateHostCommand {
172
183
  configProfileInboundUuid: string | null;
173
184
  };
174
185
  serverDescription: string | null;
186
+ isHidden: boolean;
175
187
  xHttpExtraParams?: unknown;
176
188
  muxParams?: unknown;
177
189
  sockoptParams?: unknown;
178
190
  }, {
179
191
  path: string | null;
180
192
  uuid: string;
193
+ tag: string | null;
181
194
  port: number;
182
195
  viewPosition: number;
183
196
  remark: string;
@@ -196,11 +209,13 @@ export declare namespace UpdateHostCommand {
196
209
  xHttpExtraParams?: unknown;
197
210
  muxParams?: unknown;
198
211
  sockoptParams?: unknown;
212
+ isHidden?: boolean | undefined;
199
213
  }>;
200
214
  }, "strip", z.ZodTypeAny, {
201
215
  response: {
202
216
  path: string | null;
203
217
  uuid: string;
218
+ tag: string | null;
204
219
  port: number;
205
220
  viewPosition: number;
206
221
  remark: string;
@@ -216,6 +231,7 @@ export declare namespace UpdateHostCommand {
216
231
  configProfileInboundUuid: string | null;
217
232
  };
218
233
  serverDescription: string | null;
234
+ isHidden: boolean;
219
235
  xHttpExtraParams?: unknown;
220
236
  muxParams?: unknown;
221
237
  sockoptParams?: unknown;
@@ -224,6 +240,7 @@ export declare namespace UpdateHostCommand {
224
240
  response: {
225
241
  path: string | null;
226
242
  uuid: string;
243
+ tag: string | null;
227
244
  port: number;
228
245
  viewPosition: number;
229
246
  remark: string;
@@ -242,6 +259,7 @@ export declare namespace UpdateHostCommand {
242
259
  xHttpExtraParams?: unknown;
243
260
  muxParams?: unknown;
244
261
  sockoptParams?: unknown;
262
+ isHidden?: boolean | undefined;
245
263
  };
246
264
  }>;
247
265
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8CxB,CAAC;IACH,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
+ {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6DxB,CAAC;IACH,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"}
@@ -54,6 +54,14 @@ var UpdateHostCommand;
54
54
  message: 'Server description must be less than 30 characters',
55
55
  })
56
56
  .nullable()),
57
+ tag: zod_1.z
58
+ .optional(zod_1.z
59
+ .string()
60
+ .regex(/^[A-Z0-9_]+$/, 'Tag can only contain uppercase letters, numbers, underscores')
61
+ .max(16, 'Tag must be less than 16 characters')
62
+ .nullable())
63
+ .describe('Optional. Host tag for categorization. Max 16 characters, uppercase letters, numbers and underscores only.'),
64
+ isHidden: zod_1.z.optional(zod_1.z.boolean()),
57
65
  });
58
66
  UpdateHostCommand.ResponseSchema = zod_1.z.object({
59
67
  response: models_1.HostsSchema,
@@ -121,24 +121,30 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
121
121
  isDisabled: z.ZodBoolean;
122
122
  viewPosition: z.ZodNumber;
123
123
  remark: z.ZodString;
124
+ isHidden: z.ZodBoolean;
125
+ host: z.ZodNullable<z.ZodString>;
124
126
  }, "strip", z.ZodTypeAny, {
125
127
  uuid: string;
126
128
  tag: string;
127
129
  rawInbound: {} | null;
128
130
  viewPosition: number;
129
131
  remark: string;
132
+ host: string | null;
130
133
  isDisabled: boolean;
131
134
  configProfileUuid: string | null;
132
135
  configProfileInboundUuid: string | null;
136
+ isHidden: boolean;
133
137
  }, {
134
138
  uuid: string;
135
139
  tag: string;
136
140
  rawInbound: {} | null;
137
141
  viewPosition: number;
138
142
  remark: string;
143
+ host: string | null;
139
144
  isDisabled: boolean;
140
145
  configProfileUuid: string | null;
141
146
  configProfileInboundUuid: string | null;
147
+ isHidden: boolean;
142
148
  }>>;
143
149
  }, "strip", z.ZodTypeAny, {
144
150
  path?: string | null | undefined;
@@ -177,9 +183,11 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
177
183
  rawInbound: {} | null;
178
184
  viewPosition: number;
179
185
  remark: string;
186
+ host: string | null;
180
187
  isDisabled: boolean;
181
188
  configProfileUuid: string | null;
182
189
  configProfileInboundUuid: string | null;
190
+ isHidden: boolean;
183
191
  } | undefined;
184
192
  }, {
185
193
  path?: string | null | undefined;
@@ -218,9 +226,11 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
218
226
  rawInbound: {} | null;
219
227
  viewPosition: number;
220
228
  remark: string;
229
+ host: string | null;
221
230
  isDisabled: boolean;
222
231
  configProfileUuid: string | null;
223
232
  configProfileInboundUuid: string | null;
233
+ isHidden: boolean;
224
234
  } | undefined;
225
235
  }>, "many">;
226
236
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -275,9 +285,11 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
275
285
  rawInbound: {} | null;
276
286
  viewPosition: number;
277
287
  remark: string;
288
+ host: string | null;
278
289
  isDisabled: boolean;
279
290
  configProfileUuid: string | null;
280
291
  configProfileInboundUuid: string | null;
292
+ isHidden: boolean;
281
293
  } | undefined;
282
294
  }[];
283
295
  headers: Record<string, string>;
@@ -332,9 +344,11 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
332
344
  rawInbound: {} | null;
333
345
  viewPosition: number;
334
346
  remark: string;
347
+ host: string | null;
335
348
  isDisabled: boolean;
336
349
  configProfileUuid: string | null;
337
350
  configProfileInboundUuid: string | null;
351
+ isHidden: boolean;
338
352
  } | undefined;
339
353
  }[];
340
354
  headers: Record<string, string>;
@@ -391,9 +405,11 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
391
405
  rawInbound: {} | null;
392
406
  viewPosition: number;
393
407
  remark: string;
408
+ host: string | null;
394
409
  isDisabled: boolean;
395
410
  configProfileUuid: string | null;
396
411
  configProfileInboundUuid: string | null;
412
+ isHidden: boolean;
397
413
  } | undefined;
398
414
  }[];
399
415
  headers: Record<string, string>;
@@ -450,9 +466,11 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
450
466
  rawInbound: {} | null;
451
467
  viewPosition: number;
452
468
  remark: string;
469
+ host: string | null;
453
470
  isDisabled: boolean;
454
471
  configProfileUuid: string | null;
455
472
  configProfileInboundUuid: string | null;
473
+ isHidden: boolean;
456
474
  } | undefined;
457
475
  }[];
458
476
  headers: Record<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;;;;;MAM7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8EzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;;;;;MAM7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgFzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -77,6 +77,8 @@ var GetRawSubscriptionByShortUuidCommand;
77
77
  isDisabled: zod_1.z.boolean(),
78
78
  viewPosition: zod_1.z.number(),
79
79
  remark: zod_1.z.string(),
80
+ isHidden: zod_1.z.boolean(),
81
+ host: zod_1.z.nullable(zod_1.z.string()),
80
82
  })),
81
83
  })),
82
84
  headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
@@ -779,5 +779,10 @@ export declare const ERRORS: {
779
779
  readonly message: "Sync active profile error";
780
780
  readonly httpCode: 500;
781
781
  };
782
+ readonly GET_ALL_HOST_TAGS_ERROR: {
783
+ readonly code: "A151";
784
+ readonly message: "Get all host tags error";
785
+ readonly httpCode: 500;
786
+ };
782
787
  };
783
788
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAic3B,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsc3B,CAAC"}
@@ -750,4 +750,9 @@ exports.ERRORS = {
750
750
  message: 'Sync active profile error',
751
751
  httpCode: 500,
752
752
  },
753
+ GET_ALL_HOST_TAGS_ERROR: {
754
+ code: 'A151',
755
+ message: 'Get all host tags error',
756
+ httpCode: 500,
757
+ },
753
758
  };
@@ -30,9 +30,12 @@ export declare const HostsSchema: z.ZodObject<{
30
30
  configProfileInboundUuid: string | null;
31
31
  }>;
32
32
  serverDescription: z.ZodNullable<z.ZodString>;
33
+ tag: z.ZodNullable<z.ZodString>;
34
+ isHidden: z.ZodDefault<z.ZodBoolean>;
33
35
  }, "strip", z.ZodTypeAny, {
34
36
  path: string | null;
35
37
  uuid: string;
38
+ tag: string | null;
36
39
  port: number;
37
40
  viewPosition: number;
38
41
  remark: string;
@@ -48,12 +51,14 @@ export declare const HostsSchema: z.ZodObject<{
48
51
  configProfileInboundUuid: string | null;
49
52
  };
50
53
  serverDescription: string | null;
54
+ isHidden: boolean;
51
55
  xHttpExtraParams?: unknown;
52
56
  muxParams?: unknown;
53
57
  sockoptParams?: unknown;
54
58
  }, {
55
59
  path: string | null;
56
60
  uuid: string;
61
+ tag: string | null;
57
62
  port: number;
58
63
  viewPosition: number;
59
64
  remark: string;
@@ -72,5 +77,6 @@ export declare const HostsSchema: z.ZodObject<{
72
77
  xHttpExtraParams?: unknown;
73
78
  muxParams?: unknown;
74
79
  sockoptParams?: unknown;
80
+ isHidden?: boolean | undefined;
75
81
  }>;
76
82
  //# sourceMappingURL=hosts.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBtB,CAAC"}
1
+ {"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBtB,CAAC"}
@@ -24,4 +24,6 @@ exports.HostsSchema = zod_1.z.object({
24
24
  configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
25
25
  }),
26
26
  serverDescription: zod_1.z.string().nullable(),
27
+ tag: zod_1.z.string().nullable(),
28
+ isHidden: zod_1.z.boolean().default(false),
27
29
  });
@@ -19,4 +19,7 @@ exports.HOSTS_ROUTES = {
19
19
  SET_INBOUND: 'bulk/set-inbound',
20
20
  SET_PORT: 'bulk/set-port',
21
21
  },
22
+ TAGS: {
23
+ GET: 'tags',
24
+ },
22
25
  };
@@ -139,6 +139,9 @@ exports.REST_API = {
139
139
  SET_INBOUND: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.SET_INBOUND}`,
140
140
  SET_PORT: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.SET_PORT}`,
141
141
  },
142
+ TAGS: {
143
+ GET: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.TAGS.GET}`,
144
+ },
142
145
  },
143
146
  SYSTEM: {
144
147
  HEALTH: `${exports.ROOT}/${CONTROLLERS.SYSTEM_CONTROLLER}/${CONTROLLERS.SYSTEM_ROUTES.HEALTH}`,
@@ -49,6 +49,14 @@ var CreateHostCommand;
49
49
  message: 'Server description must be less than 30 characters',
50
50
  })
51
51
  .nullable()),
52
+ tag: zod_1.z
53
+ .optional(zod_1.z
54
+ .string()
55
+ .regex(/^[A-Z0-9_]+$/, 'Tag can only contain uppercase letters, numbers, underscores')
56
+ .max(16, 'Tag must be less than 16 characters')
57
+ .nullable())
58
+ .describe('Optional. Host tag for categorization. Max 16 characters, uppercase letters, numbers and underscores only.'),
59
+ isHidden: zod_1.z.optional(zod_1.z.boolean().default(false)),
52
60
  });
53
61
  CreateHostCommand.ResponseSchema = zod_1.z.object({
54
62
  response: models_1.HostsSchema,
@@ -20,4 +20,5 @@ __exportStar(require("./delete.command"), exports);
20
20
  __exportStar(require("./get-all.command"), exports);
21
21
  __exportStar(require("./get-one.command"), exports);
22
22
  __exportStar(require("./reorder.command"), exports);
23
+ __exportStar(require("./tags"), exports);
23
24
  __exportStar(require("./update.command"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAllHostTagsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ const api_1 = require("../../../api");
7
+ var GetAllHostTagsCommand;
8
+ (function (GetAllHostTagsCommand) {
9
+ GetAllHostTagsCommand.url = api_1.REST_API.HOSTS.TAGS.GET;
10
+ GetAllHostTagsCommand.TSQ_url = GetAllHostTagsCommand.url;
11
+ GetAllHostTagsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.TAGS.GET, 'get', 'Get all existing host tags');
12
+ GetAllHostTagsCommand.ResponseSchema = zod_1.z.object({
13
+ response: zod_1.z.object({
14
+ tags: zod_1.z.array(zod_1.z.string()),
15
+ }),
16
+ });
17
+ })(GetAllHostTagsCommand || (exports.GetAllHostTagsCommand = GetAllHostTagsCommand = {}));
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-all-host-tags.command"), exports);
@@ -54,6 +54,14 @@ var UpdateHostCommand;
54
54
  message: 'Server description must be less than 30 characters',
55
55
  })
56
56
  .nullable()),
57
+ tag: zod_1.z
58
+ .optional(zod_1.z
59
+ .string()
60
+ .regex(/^[A-Z0-9_]+$/, 'Tag can only contain uppercase letters, numbers, underscores')
61
+ .max(16, 'Tag must be less than 16 characters')
62
+ .nullable())
63
+ .describe('Optional. Host tag for categorization. Max 16 characters, uppercase letters, numbers and underscores only.'),
64
+ isHidden: zod_1.z.optional(zod_1.z.boolean()),
57
65
  });
58
66
  UpdateHostCommand.ResponseSchema = zod_1.z.object({
59
67
  response: models_1.HostsSchema,
@@ -77,6 +77,8 @@ var GetRawSubscriptionByShortUuidCommand;
77
77
  isDisabled: zod_1.z.boolean(),
78
78
  viewPosition: zod_1.z.number(),
79
79
  remark: zod_1.z.string(),
80
+ isHidden: zod_1.z.boolean(),
81
+ host: zod_1.z.nullable(zod_1.z.string()),
80
82
  })),
81
83
  })),
82
84
  headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
@@ -750,4 +750,9 @@ exports.ERRORS = {
750
750
  message: 'Sync active profile error',
751
751
  httpCode: 500,
752
752
  },
753
+ GET_ALL_HOST_TAGS_ERROR: {
754
+ code: 'A151',
755
+ message: 'Get all host tags error',
756
+ httpCode: 500,
757
+ },
753
758
  };
@@ -24,4 +24,6 @@ exports.HostsSchema = zod_1.z.object({
24
24
  configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
25
25
  }),
26
26
  serverDescription: zod_1.z.string().nullable(),
27
+ tag: zod_1.z.string().nullable(),
28
+ isHidden: zod_1.z.boolean().default(false),
27
29
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
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.",