@remnawave/node-contract 0.2.0 → 0.2.2

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 (92) hide show
  1. package/build/api/controllers/handler.d.ts +8 -0
  2. package/build/api/controllers/handler.d.ts.map +1 -0
  3. package/{commands/index.ts → build/api/controllers/index.d.ts} +2 -1
  4. package/build/api/controllers/index.d.ts.map +1 -0
  5. package/build/api/controllers/stats.d.ts +9 -0
  6. package/build/api/controllers/stats.d.ts.map +1 -0
  7. package/build/api/controllers/xray.d.ts +7 -0
  8. package/build/api/controllers/xray.d.ts.map +1 -0
  9. package/{api/index.ts → build/api/index.d.ts} +1 -0
  10. package/build/api/index.d.ts.map +1 -0
  11. package/build/api/routes.d.ts +22 -0
  12. package/build/api/routes.d.ts.map +1 -0
  13. package/build/api/routes.js +6 -0
  14. package/build/commands/handler/add-user.command.d.ts +249 -0
  15. package/build/commands/handler/add-user.command.d.ts.map +1 -0
  16. package/build/commands/handler/get-inbound-users-count.command.d.ts +30 -0
  17. package/build/commands/handler/get-inbound-users-count.command.d.ts.map +1 -0
  18. package/build/commands/handler/get-inbound-users.command.d.ts +58 -0
  19. package/build/commands/handler/get-inbound-users.command.d.ts.map +1 -0
  20. package/{commands/handler/index.ts → build/commands/handler/index.d.ts} +1 -0
  21. package/build/commands/handler/index.d.ts.map +1 -0
  22. package/build/commands/handler/remove-user.command.d.ts +38 -0
  23. package/build/commands/handler/remove-user.command.d.ts.map +1 -0
  24. package/{api/controllers/index.ts → build/commands/index.d.ts} +2 -1
  25. package/build/commands/index.d.ts.map +1 -0
  26. package/build/commands/stats/get-inbound-stats.command.d.ts +43 -0
  27. package/build/commands/stats/get-inbound-stats.command.d.ts.map +1 -0
  28. package/build/commands/stats/get-outbound-stats.command.d.ts +43 -0
  29. package/build/commands/stats/get-outbound-stats.command.d.ts.map +1 -0
  30. package/build/commands/stats/get-system-stats.command.d.ts +67 -0
  31. package/build/commands/stats/get-system-stats.command.d.ts.map +1 -0
  32. package/build/commands/stats/get-user-online-status.command.d.ts +30 -0
  33. package/build/commands/stats/get-user-online-status.command.d.ts.map +1 -0
  34. package/build/commands/stats/get-users-stats.command.d.ts +58 -0
  35. package/build/commands/stats/get-users-stats.command.d.ts.map +1 -0
  36. package/{commands/stats/index.ts → build/commands/stats/index.d.ts} +1 -0
  37. package/build/commands/stats/index.d.ts.map +1 -0
  38. package/build/commands/xray/get-status-and-version.command.d.ts +28 -0
  39. package/build/commands/xray/get-status-and-version.command.d.ts.map +1 -0
  40. package/build/commands/xray/get-status-and-version.command.js +2 -0
  41. package/{commands/xray/index.ts → build/commands/xray/index.d.ts} +1 -0
  42. package/build/commands/xray/index.d.ts.map +1 -0
  43. package/build/commands/xray/start.command.d.ts +34 -0
  44. package/build/commands/xray/start.command.d.ts.map +1 -0
  45. package/build/commands/xray/stop.command.d.ts +22 -0
  46. package/build/commands/xray/stop.command.d.ts.map +1 -0
  47. package/build/constants/errors/errors.d.ts +63 -0
  48. package/build/constants/errors/errors.d.ts.map +1 -0
  49. package/build/constants/errors/index.d.ts +2 -0
  50. package/build/constants/errors/index.d.ts.map +1 -0
  51. package/{constants/index.ts → build/constants/index.d.ts} +1 -0
  52. package/build/constants/index.d.ts.map +1 -0
  53. package/build/constants/roles/index.d.ts +2 -0
  54. package/build/constants/roles/index.d.ts.map +1 -0
  55. package/build/constants/roles/role.d.ts +7 -0
  56. package/build/constants/roles/role.d.ts.map +1 -0
  57. package/build/constants/xray/index.d.ts +2 -0
  58. package/build/constants/xray/index.d.ts.map +1 -0
  59. package/build/constants/xray/stats.d.ts +28 -0
  60. package/build/constants/xray/stats.d.ts.map +1 -0
  61. package/{index.ts → build/index.d.ts} +1 -0
  62. package/build/index.d.ts.map +1 -0
  63. package/build/models/auth.schema.d.ts +9 -0
  64. package/build/models/auth.schema.d.ts.map +1 -0
  65. package/build/models/index.d.ts +2 -0
  66. package/build/models/index.d.ts.map +1 -0
  67. package/package.json +7 -3
  68. package/api/controllers/handler.ts +0 -8
  69. package/api/controllers/stats.ts +0 -10
  70. package/api/controllers/xray.ts +0 -7
  71. package/api/routes.ts +0 -18
  72. package/commands/handler/add-user.command.ts +0 -88
  73. package/commands/handler/get-inbound-users-count.command.ts +0 -17
  74. package/commands/handler/get-inbound-users.command.ts +0 -23
  75. package/commands/handler/remove-user.command.ts +0 -19
  76. package/commands/stats/get-inbound-stats.command.ts +0 -20
  77. package/commands/stats/get-outbound-stats.command.ts +0 -20
  78. package/commands/stats/get-system-stats.command.ts +0 -20
  79. package/commands/stats/get-user-online-status.command.ts +0 -17
  80. package/commands/stats/get-users-stats.command.ts +0 -23
  81. package/commands/xray/get-status-and-version.command.ts +0 -12
  82. package/commands/xray/start.command.ts +0 -17
  83. package/commands/xray/stop.command.ts +0 -11
  84. package/constants/errors/errors.ts +0 -38
  85. package/constants/errors/index.ts +0 -1
  86. package/constants/roles/index.ts +0 -1
  87. package/constants/roles/role.ts +0 -7
  88. package/constants/xray/index.ts +0 -1
  89. package/constants/xray/stats.ts +0 -45
  90. package/models/auth.schema.ts +0 -5
  91. package/models/index.ts +0 -1
  92. package/tsconfig.json +0 -95
@@ -0,0 +1,8 @@
1
+ export declare const HANDLER_CONTROLLER: "handler";
2
+ export declare const HANDLER_ROUTES: {
3
+ readonly REMOVE_USER: "/remove-user";
4
+ readonly ADD_USER: "/add-user";
5
+ readonly GET_INBOUND_USERS_COUNT: "/get-inbound-users-count";
6
+ readonly GET_INBOUND_USERS: "/get-inbound-users";
7
+ };
8
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../api/controllers/handler.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,WAAqB,CAAC;AAErD,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC"}
@@ -1,3 +1,4 @@
1
- export * from './xray';
2
1
  export * from './stats';
2
+ export * from './xray';
3
3
  export * from './handler';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const STATS_CONTROLLER: "stats";
2
+ export declare const STATS_ROUTES: {
3
+ readonly GET_USER_ONLINE_STATUS: "get-user-online-status";
4
+ readonly GET_USERS_STATS: "get-users-stats";
5
+ readonly GET_SYSTEM_STATS: "get-system-stats";
6
+ readonly GET_INBOUND_STATS: "get-inbound-stats";
7
+ readonly GET_OUTBOUND_STATS: "get-outbound-stats";
8
+ };
9
+ //# sourceMappingURL=stats.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../api/controllers/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,SAAmB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;;CAOf,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const XRAY_CONTROLLER: "xray";
2
+ export declare const XRAY_ROUTES: {
3
+ readonly START: "start";
4
+ readonly STOP: "stop";
5
+ readonly STATUS: "status";
6
+ };
7
+ //# sourceMappingURL=xray.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xray.d.ts","sourceRoot":"","sources":["../../../api/controllers/xray.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,QAAkB,CAAC;AAE/C,eAAO,MAAM,WAAW;;;;CAId,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './routes';
2
2
  export * from './controllers';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../api/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
@@ -0,0 +1,22 @@
1
+ export declare const ROOT: "/api/v1";
2
+ export declare const REST_API: {
3
+ readonly XRAY: {
4
+ readonly START: "/api/v1/xray/start";
5
+ readonly STOP: "/api/v1/xray/stop";
6
+ readonly STATUS: "/api/v1/xray/status";
7
+ };
8
+ readonly STATS: {
9
+ readonly GET_USER_ONLINE_STATUS: "/api/v1/stats/get-user-online-status";
10
+ readonly GET_USERS_STATS: "/api/v1/stats/get-users-stats";
11
+ readonly GET_SYSTEM_STATS: "/api/v1/stats/get-system-stats";
12
+ readonly GET_INBOUND_STATS: "/api/v1/stats/get-inbound-stats";
13
+ readonly GET_OUTBOUND_STATS: "/api/v1/stats/get-outbound-stats";
14
+ };
15
+ readonly HANDLER: {
16
+ readonly ADD_USER: "/api/v1/handler//add-user";
17
+ readonly REMOVE_USER: "/api/v1/handler//remove-user";
18
+ readonly GET_INBOUND_USERS_COUNT: "/api/v1/handler//get-inbound-users-count";
19
+ readonly GET_INBOUND_USERS: "/api/v1/handler//get-inbound-users";
20
+ };
21
+ };
22
+ //# sourceMappingURL=routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,WAAqB,CAAC;AAEvC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;CAmBX,CAAC"}
@@ -39,4 +39,10 @@ exports.REST_API = {
39
39
  GET_INBOUND_STATS: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_INBOUND_STATS}`,
40
40
  GET_OUTBOUND_STATS: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_OUTBOUND_STATS}`,
41
41
  },
42
+ HANDLER: {
43
+ ADD_USER: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.ADD_USER}`,
44
+ REMOVE_USER: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.REMOVE_USER}`,
45
+ GET_INBOUND_USERS_COUNT: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.GET_INBOUND_USERS_COUNT}`,
46
+ GET_INBOUND_USERS: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.GET_INBOUND_USERS}`,
47
+ },
42
48
  };
@@ -0,0 +1,249 @@
1
+ import { z } from 'zod';
2
+ export declare enum CipherType {
3
+ UNKNOWN = 0,
4
+ AES_128_GCM = 5,
5
+ AES_256_GCM = 6,
6
+ CHACHA20_POLY1305 = 7,
7
+ XCHACHA20_POLY1305 = 8,
8
+ NONE = 9,
9
+ UNRECOGNIZED = -1
10
+ }
11
+ export declare namespace AddUserCommand {
12
+ const RequestSchema: z.ZodObject<{
13
+ data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14
+ type: z.ZodLiteral<"trojan">;
15
+ tag: z.ZodString;
16
+ username: z.ZodString;
17
+ password: z.ZodString;
18
+ level: z.ZodDefault<z.ZodNumber>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ type: "trojan";
21
+ username: string;
22
+ tag: string;
23
+ password: string;
24
+ level: number;
25
+ }, {
26
+ type: "trojan";
27
+ username: string;
28
+ tag: string;
29
+ password: string;
30
+ level?: number | undefined;
31
+ }>, z.ZodObject<{
32
+ type: z.ZodLiteral<"vless">;
33
+ tag: z.ZodString;
34
+ username: z.ZodString;
35
+ uuid: z.ZodString;
36
+ flow: z.ZodEnum<["xtls-rprx-vision", ""]>;
37
+ level: z.ZodDefault<z.ZodNumber>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ type: "vless";
40
+ username: string;
41
+ tag: string;
42
+ level: number;
43
+ uuid: string;
44
+ flow: "" | "xtls-rprx-vision";
45
+ }, {
46
+ type: "vless";
47
+ username: string;
48
+ tag: string;
49
+ uuid: string;
50
+ flow: "" | "xtls-rprx-vision";
51
+ level?: number | undefined;
52
+ }>, z.ZodObject<{
53
+ type: z.ZodLiteral<"shadowsocks">;
54
+ tag: z.ZodString;
55
+ username: z.ZodString;
56
+ password: z.ZodString;
57
+ cipherType: z.ZodNativeEnum<typeof CipherType>;
58
+ ivCheck: z.ZodBoolean;
59
+ level: z.ZodDefault<z.ZodNumber>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ type: "shadowsocks";
62
+ username: string;
63
+ tag: string;
64
+ password: string;
65
+ level: number;
66
+ cipherType: CipherType;
67
+ ivCheck: boolean;
68
+ }, {
69
+ type: "shadowsocks";
70
+ username: string;
71
+ tag: string;
72
+ password: string;
73
+ cipherType: CipherType;
74
+ ivCheck: boolean;
75
+ level?: number | undefined;
76
+ }>, z.ZodObject<{
77
+ type: z.ZodLiteral<"shadowsocks2022">;
78
+ tag: z.ZodString;
79
+ username: z.ZodString;
80
+ key: z.ZodString;
81
+ level: z.ZodDefault<z.ZodNumber>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ type: "shadowsocks2022";
84
+ username: string;
85
+ tag: string;
86
+ level: number;
87
+ key: string;
88
+ }, {
89
+ type: "shadowsocks2022";
90
+ username: string;
91
+ tag: string;
92
+ key: string;
93
+ level?: number | undefined;
94
+ }>, z.ZodObject<{
95
+ type: z.ZodLiteral<"socks">;
96
+ tag: z.ZodString;
97
+ username: z.ZodString;
98
+ socks_username: z.ZodString;
99
+ socks_password: z.ZodString;
100
+ level: z.ZodDefault<z.ZodNumber>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ type: "socks";
103
+ username: string;
104
+ tag: string;
105
+ level: number;
106
+ socks_username: string;
107
+ socks_password: string;
108
+ }, {
109
+ type: "socks";
110
+ username: string;
111
+ tag: string;
112
+ socks_username: string;
113
+ socks_password: string;
114
+ level?: number | undefined;
115
+ }>, z.ZodObject<{
116
+ type: z.ZodLiteral<"http">;
117
+ tag: z.ZodString;
118
+ username: z.ZodString;
119
+ http_username: z.ZodString;
120
+ http_password: z.ZodString;
121
+ level: z.ZodDefault<z.ZodNumber>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ type: "http";
124
+ username: string;
125
+ tag: string;
126
+ level: number;
127
+ http_username: string;
128
+ http_password: string;
129
+ }, {
130
+ type: "http";
131
+ username: string;
132
+ tag: string;
133
+ http_username: string;
134
+ http_password: string;
135
+ level?: number | undefined;
136
+ }>]>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ data: {
139
+ type: "trojan";
140
+ username: string;
141
+ tag: string;
142
+ password: string;
143
+ level: number;
144
+ } | {
145
+ type: "vless";
146
+ username: string;
147
+ tag: string;
148
+ level: number;
149
+ uuid: string;
150
+ flow: "" | "xtls-rprx-vision";
151
+ } | {
152
+ type: "shadowsocks";
153
+ username: string;
154
+ tag: string;
155
+ password: string;
156
+ level: number;
157
+ cipherType: CipherType;
158
+ ivCheck: boolean;
159
+ } | {
160
+ type: "shadowsocks2022";
161
+ username: string;
162
+ tag: string;
163
+ level: number;
164
+ key: string;
165
+ } | {
166
+ type: "socks";
167
+ username: string;
168
+ tag: string;
169
+ level: number;
170
+ socks_username: string;
171
+ socks_password: string;
172
+ } | {
173
+ type: "http";
174
+ username: string;
175
+ tag: string;
176
+ level: number;
177
+ http_username: string;
178
+ http_password: string;
179
+ };
180
+ }, {
181
+ data: {
182
+ type: "trojan";
183
+ username: string;
184
+ tag: string;
185
+ password: string;
186
+ level?: number | undefined;
187
+ } | {
188
+ type: "vless";
189
+ username: string;
190
+ tag: string;
191
+ uuid: string;
192
+ flow: "" | "xtls-rprx-vision";
193
+ level?: number | undefined;
194
+ } | {
195
+ type: "shadowsocks";
196
+ username: string;
197
+ tag: string;
198
+ password: string;
199
+ cipherType: CipherType;
200
+ ivCheck: boolean;
201
+ level?: number | undefined;
202
+ } | {
203
+ type: "shadowsocks2022";
204
+ username: string;
205
+ tag: string;
206
+ key: string;
207
+ level?: number | undefined;
208
+ } | {
209
+ type: "socks";
210
+ username: string;
211
+ tag: string;
212
+ socks_username: string;
213
+ socks_password: string;
214
+ level?: number | undefined;
215
+ } | {
216
+ type: "http";
217
+ username: string;
218
+ tag: string;
219
+ http_username: string;
220
+ http_password: string;
221
+ level?: number | undefined;
222
+ };
223
+ }>;
224
+ type Request = z.infer<typeof RequestSchema>;
225
+ const ResponseSchema: z.ZodObject<{
226
+ response: z.ZodObject<{
227
+ success: z.ZodBoolean;
228
+ error: z.ZodNullable<z.ZodString>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ error: string | null;
231
+ success: boolean;
232
+ }, {
233
+ error: string | null;
234
+ success: boolean;
235
+ }>;
236
+ }, "strip", z.ZodTypeAny, {
237
+ response: {
238
+ error: string | null;
239
+ success: boolean;
240
+ };
241
+ }, {
242
+ response: {
243
+ error: string | null;
244
+ success: boolean;
245
+ };
246
+ }>;
247
+ type Response = z.infer<typeof ResponseSchema>;
248
+ }
249
+ //# sourceMappingURL=add-user.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-user.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/add-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,UAAU;IAClB,OAAO,IAAI;IACX,WAAW,IAAI;IACf,WAAW,IAAI;IACf,iBAAiB,IAAI;IACrB,kBAAkB,IAAI;IACtB,IAAI,IAAI;IACR,YAAY,KAAK;CACpB;AAED,yBAAiB,cAAc,CAAC;IAsDrB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetInboundUsersCountCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ tag: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ tag: string;
7
+ }, {
8
+ tag: string;
9
+ }>;
10
+ type Request = z.infer<typeof RequestSchema>;
11
+ const ResponseSchema: z.ZodObject<{
12
+ response: z.ZodObject<{
13
+ count: z.ZodNumber;
14
+ }, "strip", z.ZodTypeAny, {
15
+ count: number;
16
+ }, {
17
+ count: number;
18
+ }>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ response: {
21
+ count: number;
22
+ };
23
+ }, {
24
+ response: {
25
+ count: number;
26
+ };
27
+ }>;
28
+ type Response = z.infer<typeof ResponseSchema>;
29
+ }
30
+ //# sourceMappingURL=get-inbound-users-count.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-inbound-users-count.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/get-inbound-users-count.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,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,58 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetInboundUsersCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ tag: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ tag: string;
7
+ }, {
8
+ tag: string;
9
+ }>;
10
+ type Request = z.infer<typeof RequestSchema>;
11
+ const ResponseSchema: z.ZodObject<{
12
+ response: z.ZodObject<{
13
+ users: z.ZodArray<z.ZodObject<{
14
+ username: z.ZodString;
15
+ email: z.ZodOptional<z.ZodString>;
16
+ level: z.ZodOptional<z.ZodNumber>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ username: string;
19
+ level?: number | undefined;
20
+ email?: string | undefined;
21
+ }, {
22
+ username: string;
23
+ level?: number | undefined;
24
+ email?: string | undefined;
25
+ }>, "many">;
26
+ }, "strip", z.ZodTypeAny, {
27
+ users: {
28
+ username: string;
29
+ level?: number | undefined;
30
+ email?: string | undefined;
31
+ }[];
32
+ }, {
33
+ users: {
34
+ username: string;
35
+ level?: number | undefined;
36
+ email?: string | undefined;
37
+ }[];
38
+ }>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ response: {
41
+ users: {
42
+ username: string;
43
+ level?: number | undefined;
44
+ email?: string | undefined;
45
+ }[];
46
+ };
47
+ }, {
48
+ response: {
49
+ users: {
50
+ username: string;
51
+ level?: number | undefined;
52
+ email?: string | undefined;
53
+ }[];
54
+ };
55
+ }>;
56
+ type Response = z.infer<typeof ResponseSchema>;
57
+ }
58
+ //# sourceMappingURL=get-inbound-users.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-inbound-users.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/get-inbound-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -2,3 +2,4 @@ export * from './add-user.command';
2
2
  export * from './get-inbound-users.command';
3
3
  export * from './get-inbound-users-count.command';
4
4
  export * from './remove-user.command';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/handler/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { z } from 'zod';
2
+ export declare namespace RemoveUserCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ tag: z.ZodString;
5
+ username: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ username: string;
8
+ tag: string;
9
+ }, {
10
+ username: string;
11
+ tag: string;
12
+ }>;
13
+ type Request = z.infer<typeof RequestSchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ response: z.ZodObject<{
16
+ success: z.ZodBoolean;
17
+ error: z.ZodNullable<z.ZodString>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ error: string | null;
20
+ success: boolean;
21
+ }, {
22
+ error: string | null;
23
+ success: boolean;
24
+ }>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ response: {
27
+ error: string | null;
28
+ success: boolean;
29
+ };
30
+ }, {
31
+ response: {
32
+ error: string | null;
33
+ success: boolean;
34
+ };
35
+ }>;
36
+ type Response = z.infer<typeof ResponseSchema>;
37
+ }
38
+ //# sourceMappingURL=remove-user.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-user.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/remove-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,3 +1,4 @@
1
- export * from './stats';
2
1
  export * from './xray';
2
+ export * from './stats';
3
3
  export * from './handler';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetInboundStatsCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ tag: z.ZodString;
5
+ reset: z.ZodBoolean;
6
+ }, "strip", z.ZodTypeAny, {
7
+ reset: boolean;
8
+ tag: string;
9
+ }, {
10
+ reset: boolean;
11
+ tag: string;
12
+ }>;
13
+ type Request = z.infer<typeof RequestSchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ response: z.ZodObject<{
16
+ inbound: z.ZodString;
17
+ downlink: z.ZodNumber;
18
+ uplink: z.ZodNumber;
19
+ }, "strip", z.ZodTypeAny, {
20
+ downlink: number;
21
+ uplink: number;
22
+ inbound: string;
23
+ }, {
24
+ downlink: number;
25
+ uplink: number;
26
+ inbound: string;
27
+ }>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ response: {
30
+ downlink: number;
31
+ uplink: number;
32
+ inbound: string;
33
+ };
34
+ }, {
35
+ response: {
36
+ downlink: number;
37
+ uplink: number;
38
+ inbound: string;
39
+ };
40
+ }>;
41
+ type Response = z.infer<typeof ResponseSchema>;
42
+ }
43
+ //# sourceMappingURL=get-inbound-stats.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-inbound-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-inbound-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;MAMzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,43 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetOutboundStatsCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ tag: z.ZodString;
5
+ reset: z.ZodBoolean;
6
+ }, "strip", z.ZodTypeAny, {
7
+ reset: boolean;
8
+ tag: string;
9
+ }, {
10
+ reset: boolean;
11
+ tag: string;
12
+ }>;
13
+ type Request = z.infer<typeof RequestSchema>;
14
+ const ResponseSchema: z.ZodObject<{
15
+ response: z.ZodObject<{
16
+ outbound: z.ZodString;
17
+ downlink: z.ZodNumber;
18
+ uplink: z.ZodNumber;
19
+ }, "strip", z.ZodTypeAny, {
20
+ downlink: number;
21
+ uplink: number;
22
+ outbound: string;
23
+ }, {
24
+ downlink: number;
25
+ uplink: number;
26
+ outbound: string;
27
+ }>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ response: {
30
+ downlink: number;
31
+ uplink: number;
32
+ outbound: string;
33
+ };
34
+ }, {
35
+ response: {
36
+ downlink: number;
37
+ uplink: number;
38
+ outbound: string;
39
+ };
40
+ }>;
41
+ type Response = z.infer<typeof ResponseSchema>;
42
+ }
43
+ //# sourceMappingURL=get-outbound-stats.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-outbound-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-outbound-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;MAMzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}