@remnawave/backend-contract 2.1.2 → 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 (75) 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/nodes/create.command.js +1 -1
  39. package/build/backend/commands/nodes/update.command.js +1 -1
  40. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +27 -0
  41. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
  42. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +3 -0
  43. package/build/backend/commands/users/create-user.command.js +2 -2
  44. package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +4 -0
  45. package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -0
  46. package/build/backend/constants/cache-keys/cache-keys.constants.js +6 -0
  47. package/build/backend/constants/cache-keys/index.d.ts +2 -0
  48. package/build/backend/constants/cache-keys/index.d.ts.map +1 -0
  49. package/build/backend/constants/cache-keys/index.js +17 -0
  50. package/build/backend/constants/errors/errors.d.ts +5 -0
  51. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  52. package/build/backend/constants/errors/errors.js +5 -0
  53. package/build/backend/constants/index.d.ts +1 -0
  54. package/build/backend/constants/index.d.ts.map +1 -1
  55. package/build/backend/constants/index.js +1 -0
  56. package/build/backend/models/hosts.schema.d.ts +6 -0
  57. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  58. package/build/backend/models/hosts.schema.js +2 -0
  59. package/build/frontend/api/controllers/hosts.js +3 -0
  60. package/build/frontend/api/routes.js +3 -0
  61. package/build/frontend/commands/hosts/create.command.js +8 -0
  62. package/build/frontend/commands/hosts/index.js +1 -0
  63. package/build/frontend/commands/hosts/tags/get-all-host-tags.command.js +17 -0
  64. package/build/frontend/commands/hosts/tags/index.js +17 -0
  65. package/build/frontend/commands/hosts/update.command.js +8 -0
  66. package/build/frontend/commands/nodes/create.command.js +1 -1
  67. package/build/frontend/commands/nodes/update.command.js +1 -1
  68. package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +3 -0
  69. package/build/frontend/commands/users/create-user.command.js +2 -2
  70. package/build/frontend/constants/cache-keys/cache-keys.constants.js +6 -0
  71. package/build/frontend/constants/cache-keys/index.js +17 -0
  72. package/build/frontend/constants/errors/errors.js +5 -0
  73. package/build/frontend/constants/index.js +1 -0
  74. package/build/frontend/models/hosts.schema.js +2 -0
  75. 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,
@@ -11,7 +11,7 @@ var CreateNodeCommand;
11
11
  CreateNodeCommand.TSQ_url = CreateNodeCommand.url;
12
12
  CreateNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODES_ROUTES.CREATE, 'post', 'Create a new node');
13
13
  CreateNodeCommand.RequestSchema = zod_1.z.object({
14
- name: zod_1.z.string().min(5, 'Minimum 5 characters!'),
14
+ name: zod_1.z.string().min(3, 'Minimum 3 characters!'),
15
15
  address: zod_1.z.string().min(2, 'Minimum 2 characters!'),
16
16
  port: zod_1.z.number().int().min(1, 'Port is required').optional(),
17
17
  isTrafficTrackingActive: zod_1.z.boolean().optional().default(false),
@@ -13,7 +13,7 @@ var UpdateNodeCommand;
13
13
  UpdateNodeCommand.RequestSchema = models_1.NodesSchema.pick({
14
14
  uuid: true,
15
15
  }).extend({
16
- name: zod_1.z.optional(zod_1.z.string().min(5, 'Min. 5 characters')),
16
+ name: zod_1.z.optional(zod_1.z.string().min(3, 'Min. 3 characters')),
17
17
  address: zod_1.z.optional(zod_1.z.string().min(2, 'Min. 2 characters')),
18
18
  port: zod_1.z.optional(zod_1.z.number()),
19
19
  isTrafficTrackingActive: zod_1.z.optional(zod_1.z.boolean()),
@@ -120,22 +120,31 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
120
120
  configProfileInboundUuid: z.ZodNullable<z.ZodString>;
121
121
  isDisabled: z.ZodBoolean;
122
122
  viewPosition: z.ZodNumber;
123
+ remark: z.ZodString;
124
+ isHidden: z.ZodBoolean;
125
+ host: z.ZodNullable<z.ZodString>;
123
126
  }, "strip", z.ZodTypeAny, {
124
127
  uuid: string;
125
128
  tag: string;
126
129
  rawInbound: {} | null;
127
130
  viewPosition: number;
131
+ remark: string;
132
+ host: string | null;
128
133
  isDisabled: boolean;
129
134
  configProfileUuid: string | null;
130
135
  configProfileInboundUuid: string | null;
136
+ isHidden: boolean;
131
137
  }, {
132
138
  uuid: string;
133
139
  tag: string;
134
140
  rawInbound: {} | null;
135
141
  viewPosition: number;
142
+ remark: string;
143
+ host: string | null;
136
144
  isDisabled: boolean;
137
145
  configProfileUuid: string | null;
138
146
  configProfileInboundUuid: string | null;
147
+ isHidden: boolean;
139
148
  }>>;
140
149
  }, "strip", z.ZodTypeAny, {
141
150
  path?: string | null | undefined;
@@ -173,9 +182,12 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
173
182
  tag: string;
174
183
  rawInbound: {} | null;
175
184
  viewPosition: number;
185
+ remark: string;
186
+ host: string | null;
176
187
  isDisabled: boolean;
177
188
  configProfileUuid: string | null;
178
189
  configProfileInboundUuid: string | null;
190
+ isHidden: boolean;
179
191
  } | undefined;
180
192
  }, {
181
193
  path?: string | null | undefined;
@@ -213,9 +225,12 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
213
225
  tag: string;
214
226
  rawInbound: {} | null;
215
227
  viewPosition: number;
228
+ remark: string;
229
+ host: string | null;
216
230
  isDisabled: boolean;
217
231
  configProfileUuid: string | null;
218
232
  configProfileInboundUuid: string | null;
233
+ isHidden: boolean;
219
234
  } | undefined;
220
235
  }>, "many">;
221
236
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -269,9 +284,12 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
269
284
  tag: string;
270
285
  rawInbound: {} | null;
271
286
  viewPosition: number;
287
+ remark: string;
288
+ host: string | null;
272
289
  isDisabled: boolean;
273
290
  configProfileUuid: string | null;
274
291
  configProfileInboundUuid: string | null;
292
+ isHidden: boolean;
275
293
  } | undefined;
276
294
  }[];
277
295
  headers: Record<string, string>;
@@ -325,9 +343,12 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
325
343
  tag: string;
326
344
  rawInbound: {} | null;
327
345
  viewPosition: number;
346
+ remark: string;
347
+ host: string | null;
328
348
  isDisabled: boolean;
329
349
  configProfileUuid: string | null;
330
350
  configProfileInboundUuid: string | null;
351
+ isHidden: boolean;
331
352
  } | undefined;
332
353
  }[];
333
354
  headers: Record<string, string>;
@@ -383,9 +404,12 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
383
404
  tag: string;
384
405
  rawInbound: {} | null;
385
406
  viewPosition: number;
407
+ remark: string;
408
+ host: string | null;
386
409
  isDisabled: boolean;
387
410
  configProfileUuid: string | null;
388
411
  configProfileInboundUuid: string | null;
412
+ isHidden: boolean;
389
413
  } | undefined;
390
414
  }[];
391
415
  headers: Record<string, string>;
@@ -441,9 +465,12 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
441
465
  tag: string;
442
466
  rawInbound: {} | null;
443
467
  viewPosition: number;
468
+ remark: string;
469
+ host: string | null;
444
470
  isDisabled: boolean;
445
471
  configProfileUuid: string | null;
446
472
  configProfileInboundUuid: string | null;
473
+ isHidden: boolean;
447
474
  } | undefined;
448
475
  }[];
449
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6EzB,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"}
@@ -76,6 +76,9 @@ var GetRawSubscriptionByShortUuidCommand;
76
76
  configProfileInboundUuid: zod_1.z.nullable(zod_1.z.string()),
77
77
  isDisabled: zod_1.z.boolean(),
78
78
  viewPosition: zod_1.z.number(),
79
+ remark: zod_1.z.string(),
80
+ isHidden: zod_1.z.boolean(),
81
+ host: zod_1.z.nullable(zod_1.z.string()),
79
82
  })),
80
83
  })),
81
84
  headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
@@ -18,8 +18,8 @@ var CreateUserCommand;
18
18
  })
19
19
  .regex(/^[a-zA-Z0-9_-]+$/, 'Username can only contain letters, numbers, underscores and dashes')
20
20
  .max(36, 'Username must be less than 36 characters')
21
- .min(6, 'Username must be at least 6 characters')
22
- .describe('Unique username for the user. Required. Must be 6-36 characters long and contain only letters, numbers, underscores and dashes.'),
21
+ .min(3, 'Username must be at least 3 characters')
22
+ .describe('Unique username for the user. Required. Must be 3-36 characters long and contain only letters, numbers, underscores and dashes.'),
23
23
  status: models_1.UsersSchema.shape.status
24
24
  .optional()
25
25
  .default(constants_1.USERS_STATUS.ACTIVE)
@@ -0,0 +1,4 @@
1
+ export declare const CACHE_KEYS: {
2
+ readonly SUBSCRIPTION_SETTINGS: "subscription_settings";
3
+ };
4
+ //# sourceMappingURL=cache-keys.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-keys.constants.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/cache-keys.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;CAEb,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CACHE_KEYS = void 0;
4
+ exports.CACHE_KEYS = {
5
+ SUBSCRIPTION_SETTINGS: 'subscription_settings',
6
+ };
@@ -0,0 +1,2 @@
1
+ export * from './cache-keys.constants';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,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("./cache-keys.constants"), exports);
@@ -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
  };
@@ -1,3 +1,4 @@
1
+ export * from './cache-keys';
1
2
  export * from './endpoint-details';
2
3
  export * from './errors';
3
4
  export * from './events';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./cache-keys"), exports);
17
18
  __exportStar(require("./endpoint-details"), exports);
18
19
  __exportStar(require("./errors"), exports);
19
20
  __exportStar(require("./events"), exports);
@@ -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}`,