@remnawave/node-contract 0.5.9 → 0.6.0

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 (51) hide show
  1. package/build/api/controllers/stats.d.ts +1 -0
  2. package/build/api/controllers/stats.d.ts.map +1 -1
  3. package/build/api/controllers/stats.js +1 -0
  4. package/build/api/routes.d.ts +1 -0
  5. package/build/api/routes.d.ts.map +1 -1
  6. package/build/api/routes.js +1 -0
  7. package/build/commands/handler/add-user.command.d.ts +0 -90
  8. package/build/commands/handler/add-user.command.d.ts.map +1 -1
  9. package/build/commands/handler/add-user.command.js +0 -22
  10. package/build/commands/handler/get-inbound-users.command.d.ts +6 -6
  11. package/build/commands/stats/get-combined-stats.command.d.ts +92 -0
  12. package/build/commands/stats/get-combined-stats.command.d.ts.map +1 -0
  13. package/build/commands/stats/get-combined-stats.command.js +26 -0
  14. package/build/commands/stats/index.d.ts +1 -0
  15. package/build/commands/stats/index.d.ts.map +1 -1
  16. package/build/commands/stats/index.js +1 -0
  17. package/build/commands/xray/start.command.d.ts +82 -1
  18. package/build/commands/xray/start.command.d.ts.map +1 -1
  19. package/build/commands/xray/start.command.js +14 -1
  20. package/build/constants/errors/errors.d.ts +5 -0
  21. package/build/constants/errors/errors.d.ts.map +1 -1
  22. package/build/constants/errors/errors.js +5 -0
  23. package/build/constants/errors/known-errors.js +1 -1
  24. package/build/constants/index.d.ts +0 -2
  25. package/build/constants/index.d.ts.map +1 -1
  26. package/build/constants/index.js +0 -2
  27. package/build/constants/xray/stats.d.ts +1 -0
  28. package/build/constants/xray/stats.d.ts.map +1 -1
  29. package/build/constants/xray/stats.js +1 -0
  30. package/build/index.d.ts +0 -1
  31. package/build/index.d.ts.map +1 -1
  32. package/build/index.js +0 -1
  33. package/package.json +2 -2
  34. package/build/constants/hashes/hash-payload.d.ts +0 -9
  35. package/build/constants/hashes/hash-payload.d.ts.map +0 -1
  36. package/build/constants/hashes/hash-payload.js +0 -2
  37. package/build/constants/hashes/index.d.ts +0 -2
  38. package/build/constants/hashes/index.d.ts.map +0 -1
  39. package/build/constants/hashes/index.js +0 -17
  40. package/build/constants/headers/headers.contants.d.ts +0 -3
  41. package/build/constants/headers/headers.contants.d.ts.map +0 -1
  42. package/build/constants/headers/headers.contants.js +0 -5
  43. package/build/constants/headers/index.d.ts +0 -2
  44. package/build/constants/headers/index.d.ts.map +0 -1
  45. package/build/constants/headers/index.js +0 -17
  46. package/build/models/auth.schema.d.ts +0 -9
  47. package/build/models/auth.schema.d.ts.map +0 -1
  48. package/build/models/auth.schema.js +0 -7
  49. package/build/models/index.d.ts +0 -2
  50. package/build/models/index.d.ts.map +0 -1
  51. package/build/models/index.js +0 -17
@@ -7,5 +7,6 @@ export declare const STATS_ROUTES: {
7
7
  readonly GET_OUTBOUND_STATS: "get-outbound-stats";
8
8
  readonly GET_ALL_OUTBOUNDS_STATS: "get-all-outbounds-stats";
9
9
  readonly GET_ALL_INBOUNDS_STATS: "get-all-inbounds-stats";
10
+ readonly GET_COMBINED_STATS: "get-combined-stats";
10
11
  };
11
12
  //# sourceMappingURL=stats.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../api/controllers/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;;;;CAUf,CAAC"}
1
+ {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../api/controllers/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;;;;;CAYf,CAAC"}
@@ -10,4 +10,5 @@ exports.STATS_ROUTES = {
10
10
  GET_OUTBOUND_STATS: 'get-outbound-stats',
11
11
  GET_ALL_OUTBOUNDS_STATS: 'get-all-outbounds-stats',
12
12
  GET_ALL_INBOUNDS_STATS: 'get-all-inbounds-stats',
13
+ GET_COMBINED_STATS: 'get-combined-stats',
13
14
  };
@@ -14,6 +14,7 @@ export declare const REST_API: {
14
14
  readonly GET_OUTBOUND_STATS: "/node/stats/get-outbound-stats";
15
15
  readonly GET_ALL_OUTBOUNDS_STATS: "/node/stats/get-all-outbounds-stats";
16
16
  readonly GET_ALL_INBOUNDS_STATS: "/node/stats/get-all-inbounds-stats";
17
+ readonly GET_COMBINED_STATS: "/node/stats/get-combined-stats";
17
18
  };
18
19
  readonly HANDLER: {
19
20
  readonly ADD_USER: "/node/handler/add-user";
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,OAAgB,CAAC;AAErC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BX,CAAC"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,OAAgB,CAAC;AAErC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BX,CAAC"}
@@ -51,6 +51,7 @@ exports.REST_API = {
51
51
  GET_OUTBOUND_STATS: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_OUTBOUND_STATS}`,
52
52
  GET_ALL_OUTBOUNDS_STATS: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_ALL_OUTBOUNDS_STATS}`,
53
53
  GET_ALL_INBOUNDS_STATS: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_ALL_INBOUNDS_STATS}`,
54
+ GET_COMBINED_STATS: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_COMBINED_STATS}`,
54
55
  },
55
56
  HANDLER: {
56
57
  ADD_USER: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.ADD_USER}`,
@@ -16,31 +16,26 @@ export declare namespace AddUserCommand {
16
16
  tag: z.ZodString;
17
17
  username: z.ZodString;
18
18
  password: z.ZodString;
19
- level: z.ZodDefault<z.ZodNumber>;
20
19
  }, "strip", z.ZodTypeAny, {
21
20
  type: "trojan";
22
21
  tag: string;
23
22
  username: string;
24
23
  password: string;
25
- level: number;
26
24
  }, {
27
25
  type: "trojan";
28
26
  tag: string;
29
27
  username: string;
30
28
  password: string;
31
- level?: number | undefined;
32
29
  }>, z.ZodObject<{
33
30
  type: z.ZodLiteral<"vless">;
34
31
  tag: z.ZodString;
35
32
  username: z.ZodString;
36
33
  uuid: z.ZodString;
37
34
  flow: z.ZodEnum<["xtls-rprx-vision", ""]>;
38
- level: z.ZodDefault<z.ZodNumber>;
39
35
  }, "strip", z.ZodTypeAny, {
40
36
  type: "vless";
41
37
  tag: string;
42
38
  username: string;
43
- level: number;
44
39
  uuid: string;
45
40
  flow: "" | "xtls-rprx-vision";
46
41
  }, {
@@ -49,7 +44,6 @@ export declare namespace AddUserCommand {
49
44
  username: string;
50
45
  uuid: string;
51
46
  flow: "" | "xtls-rprx-vision";
52
- level?: number | undefined;
53
47
  }>, z.ZodObject<{
54
48
  type: z.ZodLiteral<"shadowsocks">;
55
49
  tag: z.ZodString;
@@ -57,13 +51,11 @@ export declare namespace AddUserCommand {
57
51
  password: z.ZodString;
58
52
  cipherType: z.ZodNativeEnum<typeof CipherType>;
59
53
  ivCheck: z.ZodBoolean;
60
- level: z.ZodDefault<z.ZodNumber>;
61
54
  }, "strip", z.ZodTypeAny, {
62
55
  type: "shadowsocks";
63
56
  tag: string;
64
57
  username: string;
65
58
  password: string;
66
- level: number;
67
59
  cipherType: CipherType;
68
60
  ivCheck: boolean;
69
61
  }, {
@@ -73,67 +65,21 @@ export declare namespace AddUserCommand {
73
65
  password: string;
74
66
  cipherType: CipherType;
75
67
  ivCheck: boolean;
76
- level?: number | undefined;
77
68
  }>, z.ZodObject<{
78
69
  type: z.ZodLiteral<"shadowsocks2022">;
79
70
  tag: z.ZodString;
80
71
  username: z.ZodString;
81
72
  key: z.ZodString;
82
- level: z.ZodDefault<z.ZodNumber>;
83
73
  }, "strip", z.ZodTypeAny, {
84
74
  type: "shadowsocks2022";
85
75
  tag: string;
86
76
  username: string;
87
- level: number;
88
77
  key: string;
89
78
  }, {
90
79
  type: "shadowsocks2022";
91
80
  tag: string;
92
81
  username: string;
93
82
  key: string;
94
- level?: number | undefined;
95
- }>, z.ZodObject<{
96
- type: z.ZodLiteral<"socks">;
97
- tag: z.ZodString;
98
- username: z.ZodString;
99
- socks_username: z.ZodString;
100
- socks_password: z.ZodString;
101
- level: z.ZodDefault<z.ZodNumber>;
102
- }, "strip", z.ZodTypeAny, {
103
- type: "socks";
104
- tag: string;
105
- username: string;
106
- level: number;
107
- socks_username: string;
108
- socks_password: string;
109
- }, {
110
- type: "socks";
111
- tag: string;
112
- username: string;
113
- socks_username: string;
114
- socks_password: string;
115
- level?: number | undefined;
116
- }>, z.ZodObject<{
117
- type: z.ZodLiteral<"http">;
118
- tag: z.ZodString;
119
- username: z.ZodString;
120
- http_username: z.ZodString;
121
- http_password: z.ZodString;
122
- level: z.ZodDefault<z.ZodNumber>;
123
- }, "strip", z.ZodTypeAny, {
124
- type: "http";
125
- tag: string;
126
- username: string;
127
- level: number;
128
- http_username: string;
129
- http_password: string;
130
- }, {
131
- type: "http";
132
- tag: string;
133
- username: string;
134
- http_username: string;
135
- http_password: string;
136
- level?: number | undefined;
137
83
  }>]>, "many">;
138
84
  hashData: z.ZodObject<{
139
85
  vlessUuid: z.ZodString;
@@ -151,12 +97,10 @@ export declare namespace AddUserCommand {
151
97
  tag: string;
152
98
  username: string;
153
99
  password: string;
154
- level: number;
155
100
  } | {
156
101
  type: "vless";
157
102
  tag: string;
158
103
  username: string;
159
- level: number;
160
104
  uuid: string;
161
105
  flow: "" | "xtls-rprx-vision";
162
106
  } | {
@@ -164,29 +108,13 @@ export declare namespace AddUserCommand {
164
108
  tag: string;
165
109
  username: string;
166
110
  password: string;
167
- level: number;
168
111
  cipherType: CipherType;
169
112
  ivCheck: boolean;
170
113
  } | {
171
114
  type: "shadowsocks2022";
172
115
  tag: string;
173
116
  username: string;
174
- level: number;
175
117
  key: string;
176
- } | {
177
- type: "socks";
178
- tag: string;
179
- username: string;
180
- level: number;
181
- socks_username: string;
182
- socks_password: string;
183
- } | {
184
- type: "http";
185
- tag: string;
186
- username: string;
187
- level: number;
188
- http_username: string;
189
- http_password: string;
190
118
  })[];
191
119
  hashData: {
192
120
  vlessUuid: string;
@@ -198,14 +126,12 @@ export declare namespace AddUserCommand {
198
126
  tag: string;
199
127
  username: string;
200
128
  password: string;
201
- level?: number | undefined;
202
129
  } | {
203
130
  type: "vless";
204
131
  tag: string;
205
132
  username: string;
206
133
  uuid: string;
207
134
  flow: "" | "xtls-rprx-vision";
208
- level?: number | undefined;
209
135
  } | {
210
136
  type: "shadowsocks";
211
137
  tag: string;
@@ -213,27 +139,11 @@ export declare namespace AddUserCommand {
213
139
  password: string;
214
140
  cipherType: CipherType;
215
141
  ivCheck: boolean;
216
- level?: number | undefined;
217
142
  } | {
218
143
  type: "shadowsocks2022";
219
144
  tag: string;
220
145
  username: string;
221
146
  key: string;
222
- level?: number | undefined;
223
- } | {
224
- type: "socks";
225
- tag: string;
226
- username: string;
227
- socks_username: string;
228
- socks_password: string;
229
- level?: number | undefined;
230
- } | {
231
- type: "http";
232
- tag: string;
233
- username: string;
234
- http_username: string;
235
- http_password: string;
236
- level?: number | undefined;
237
147
  })[];
238
148
  hashData: {
239
149
  vlessUuid: string;
@@ -1 +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;AAIxB,oBAAY,UAAU;IAClB,WAAW,IAAI;IACf,WAAW,IAAI;IACf,iBAAiB,IAAI;IACrB,IAAI,IAAI;IACR,OAAO,IAAI;IACX,YAAY,KAAK;IACjB,kBAAkB,IAAI;CACzB;AAED,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,0BAA4B,CAAC;IAuDtC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAexB,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
+ {"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;AAIxB,oBAAY,UAAU;IAClB,WAAW,IAAI;IACf,WAAW,IAAI;IACf,iBAAiB,IAAI;IACrB,IAAI,IAAI;IACR,OAAO,IAAI;IACX,YAAY,KAAK;IACjB,kBAAkB,IAAI;CACzB;AAED,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,0BAA4B,CAAC;IAiCtC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAaxB,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"}
@@ -21,7 +21,6 @@ var AddUserCommand;
21
21
  tag: zod_1.z.string(),
22
22
  username: zod_1.z.string(),
23
23
  password: zod_1.z.string(),
24
- level: zod_1.z.number().default(0),
25
24
  });
26
25
  const BaseVlessUser = zod_1.z.object({
27
26
  type: zod_1.z.literal('vless'),
@@ -29,7 +28,6 @@ var AddUserCommand;
29
28
  username: zod_1.z.string(),
30
29
  uuid: zod_1.z.string(),
31
30
  flow: zod_1.z.enum(['xtls-rprx-vision', '']),
32
- level: zod_1.z.number().default(0),
33
31
  });
34
32
  const BaseShadowsocksUser = zod_1.z.object({
35
33
  type: zod_1.z.literal('shadowsocks'),
@@ -38,30 +36,12 @@ var AddUserCommand;
38
36
  password: zod_1.z.string(),
39
37
  cipherType: zod_1.z.nativeEnum(CipherType),
40
38
  ivCheck: zod_1.z.boolean(),
41
- level: zod_1.z.number().default(0),
42
39
  });
43
40
  const BaseShadowsocks2022User = zod_1.z.object({
44
41
  type: zod_1.z.literal('shadowsocks2022'),
45
42
  tag: zod_1.z.string(),
46
43
  username: zod_1.z.string(),
47
44
  key: zod_1.z.string(),
48
- level: zod_1.z.number().default(0),
49
- });
50
- const BaseSocksUser = zod_1.z.object({
51
- type: zod_1.z.literal('socks'),
52
- tag: zod_1.z.string(),
53
- username: zod_1.z.string(),
54
- socks_username: zod_1.z.string(),
55
- socks_password: zod_1.z.string(),
56
- level: zod_1.z.number().default(0),
57
- });
58
- const BaseHttpUser = zod_1.z.object({
59
- type: zod_1.z.literal('http'),
60
- tag: zod_1.z.string(),
61
- username: zod_1.z.string(),
62
- http_username: zod_1.z.string(),
63
- http_password: zod_1.z.string(),
64
- level: zod_1.z.number().default(0),
65
45
  });
66
46
  AddUserCommand.RequestSchema = zod_1.z.object({
67
47
  data: zod_1.z.array(zod_1.z.discriminatedUnion('type', [
@@ -69,8 +49,6 @@ var AddUserCommand;
69
49
  BaseVlessUser,
70
50
  BaseShadowsocksUser,
71
51
  BaseShadowsocks2022User,
72
- BaseSocksUser,
73
- BaseHttpUser,
74
52
  ])),
75
53
  hashData: zod_1.z.object({
76
54
  vlessUuid: zod_1.z.string().uuid(),
@@ -17,40 +17,40 @@ export declare namespace GetInboundUsersCommand {
17
17
  level: z.ZodOptional<z.ZodNumber>;
18
18
  }, "strip", z.ZodTypeAny, {
19
19
  username: string;
20
- level?: number | undefined;
21
20
  email?: string | undefined;
21
+ level?: number | undefined;
22
22
  }, {
23
23
  username: string;
24
- level?: number | undefined;
25
24
  email?: string | undefined;
25
+ level?: number | undefined;
26
26
  }>, "many">;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  users: {
29
29
  username: string;
30
- level?: number | undefined;
31
30
  email?: string | undefined;
31
+ level?: number | undefined;
32
32
  }[];
33
33
  }, {
34
34
  users: {
35
35
  username: string;
36
- level?: number | undefined;
37
36
  email?: string | undefined;
37
+ level?: number | undefined;
38
38
  }[];
39
39
  }>;
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  response: {
42
42
  users: {
43
43
  username: string;
44
- level?: number | undefined;
45
44
  email?: string | undefined;
45
+ level?: number | undefined;
46
46
  }[];
47
47
  };
48
48
  }, {
49
49
  response: {
50
50
  users: {
51
51
  username: string;
52
- level?: number | undefined;
53
52
  email?: string | undefined;
53
+ level?: number | undefined;
54
54
  }[];
55
55
  };
56
56
  }>;
@@ -0,0 +1,92 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetCombinedStatsCommand {
3
+ const url: "/node/stats/get-combined-stats";
4
+ const RequestSchema: z.ZodObject<{
5
+ reset: z.ZodBoolean;
6
+ }, "strip", z.ZodTypeAny, {
7
+ reset: boolean;
8
+ }, {
9
+ reset: boolean;
10
+ }>;
11
+ type Request = z.infer<typeof RequestSchema>;
12
+ const ResponseSchema: z.ZodObject<{
13
+ response: z.ZodObject<{
14
+ inbounds: z.ZodArray<z.ZodObject<{
15
+ inbound: z.ZodString;
16
+ downlink: z.ZodNumber;
17
+ uplink: z.ZodNumber;
18
+ }, "strip", z.ZodTypeAny, {
19
+ inbound: string;
20
+ downlink: number;
21
+ uplink: number;
22
+ }, {
23
+ inbound: string;
24
+ downlink: number;
25
+ uplink: number;
26
+ }>, "many">;
27
+ outbounds: z.ZodArray<z.ZodObject<{
28
+ outbound: z.ZodString;
29
+ downlink: z.ZodNumber;
30
+ uplink: z.ZodNumber;
31
+ }, "strip", z.ZodTypeAny, {
32
+ downlink: number;
33
+ uplink: number;
34
+ outbound: string;
35
+ }, {
36
+ downlink: number;
37
+ uplink: number;
38
+ outbound: string;
39
+ }>, "many">;
40
+ }, "strip", z.ZodTypeAny, {
41
+ inbounds: {
42
+ inbound: string;
43
+ downlink: number;
44
+ uplink: number;
45
+ }[];
46
+ outbounds: {
47
+ downlink: number;
48
+ uplink: number;
49
+ outbound: string;
50
+ }[];
51
+ }, {
52
+ inbounds: {
53
+ inbound: string;
54
+ downlink: number;
55
+ uplink: number;
56
+ }[];
57
+ outbounds: {
58
+ downlink: number;
59
+ uplink: number;
60
+ outbound: string;
61
+ }[];
62
+ }>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ response: {
65
+ inbounds: {
66
+ inbound: string;
67
+ downlink: number;
68
+ uplink: number;
69
+ }[];
70
+ outbounds: {
71
+ downlink: number;
72
+ uplink: number;
73
+ outbound: string;
74
+ }[];
75
+ };
76
+ }, {
77
+ response: {
78
+ inbounds: {
79
+ inbound: string;
80
+ downlink: number;
81
+ uplink: number;
82
+ }[];
83
+ outbounds: {
84
+ downlink: number;
85
+ uplink: number;
86
+ outbound: string;
87
+ }[];
88
+ };
89
+ }>;
90
+ type Response = z.infer<typeof ResponseSchema>;
91
+ }
92
+ //# sourceMappingURL=get-combined-stats.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-combined-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-combined-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,kCAAoC,CAAC;IAE9C,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetCombinedStatsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ var GetCombinedStatsCommand;
7
+ (function (GetCombinedStatsCommand) {
8
+ GetCombinedStatsCommand.url = api_1.REST_API.STATS.GET_COMBINED_STATS;
9
+ GetCombinedStatsCommand.RequestSchema = zod_1.z.object({
10
+ reset: zod_1.z.boolean(),
11
+ });
12
+ GetCombinedStatsCommand.ResponseSchema = zod_1.z.object({
13
+ response: zod_1.z.object({
14
+ inbounds: zod_1.z.array(zod_1.z.object({
15
+ inbound: zod_1.z.string(),
16
+ downlink: zod_1.z.number(),
17
+ uplink: zod_1.z.number(),
18
+ })),
19
+ outbounds: zod_1.z.array(zod_1.z.object({
20
+ outbound: zod_1.z.string(),
21
+ downlink: zod_1.z.number(),
22
+ uplink: zod_1.z.number(),
23
+ })),
24
+ }),
25
+ });
26
+ })(GetCombinedStatsCommand || (exports.GetCombinedStatsCommand = GetCombinedStatsCommand = {}));
@@ -1,5 +1,6 @@
1
1
  export * from './get-all-inbounds-stats.command';
2
2
  export * from './get-all-outbounds-stats.command';
3
+ export * from './get-combined-stats.command';
3
4
  export * from './get-inbound-stats.command';
4
5
  export * from './get-outbound-stats.command';
5
6
  export * from './get-system-stats.command';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/stats/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/stats/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC"}
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-all-inbounds-stats.command"), exports);
18
18
  __exportStar(require("./get-all-outbounds-stats.command"), exports);
19
+ __exportStar(require("./get-combined-stats.command"), exports);
19
20
  __exportStar(require("./get-inbound-stats.command"), exports);
20
21
  __exportStar(require("./get-outbound-stats.command"), exports);
21
22
  __exportStar(require("./get-system-stats.command"), exports);
@@ -1,7 +1,88 @@
1
1
  import { z } from 'zod';
2
2
  export declare namespace StartXrayCommand {
3
3
  const url: "/node/xray/start";
4
- const RequestSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4
+ const RequestSchema: z.ZodObject<{
5
+ internals: z.ZodObject<{
6
+ forceRestart: z.ZodDefault<z.ZodBoolean>;
7
+ hashes: z.ZodObject<{
8
+ emptyConfig: z.ZodString;
9
+ inbounds: z.ZodArray<z.ZodObject<{
10
+ usersCount: z.ZodNumber;
11
+ hash: z.ZodString;
12
+ tag: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ tag: string;
15
+ usersCount: number;
16
+ hash: string;
17
+ }, {
18
+ tag: string;
19
+ usersCount: number;
20
+ hash: string;
21
+ }>, "many">;
22
+ }, "strip", z.ZodTypeAny, {
23
+ inbounds: {
24
+ tag: string;
25
+ usersCount: number;
26
+ hash: string;
27
+ }[];
28
+ emptyConfig: string;
29
+ }, {
30
+ inbounds: {
31
+ tag: string;
32
+ usersCount: number;
33
+ hash: string;
34
+ }[];
35
+ emptyConfig: string;
36
+ }>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ forceRestart: boolean;
39
+ hashes: {
40
+ inbounds: {
41
+ tag: string;
42
+ usersCount: number;
43
+ hash: string;
44
+ }[];
45
+ emptyConfig: string;
46
+ };
47
+ }, {
48
+ hashes: {
49
+ inbounds: {
50
+ tag: string;
51
+ usersCount: number;
52
+ hash: string;
53
+ }[];
54
+ emptyConfig: string;
55
+ };
56
+ forceRestart?: boolean | undefined;
57
+ }>;
58
+ xrayConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ internals: {
61
+ forceRestart: boolean;
62
+ hashes: {
63
+ inbounds: {
64
+ tag: string;
65
+ usersCount: number;
66
+ hash: string;
67
+ }[];
68
+ emptyConfig: string;
69
+ };
70
+ };
71
+ xrayConfig: Record<string, unknown>;
72
+ }, {
73
+ internals: {
74
+ hashes: {
75
+ inbounds: {
76
+ tag: string;
77
+ usersCount: number;
78
+ hash: string;
79
+ }[];
80
+ emptyConfig: string;
81
+ };
82
+ forceRestart?: boolean | undefined;
83
+ };
84
+ xrayConfig: Record<string, unknown>;
85
+ }>;
5
86
  type Request = z.infer<typeof RequestSchema>;
6
87
  const ResponseSchema: z.ZodObject<{
7
88
  response: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"start.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/start.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAAsB,CAAC;IAChC,MAAM,aAAa,wCAAwB,CAAC;IAEnD,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"start.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/start.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAAsB,CAAC;IAChC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAexB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -6,7 +6,20 @@ const api_1 = require("../../api");
6
6
  var StartXrayCommand;
7
7
  (function (StartXrayCommand) {
8
8
  StartXrayCommand.url = api_1.REST_API.XRAY.START;
9
- StartXrayCommand.RequestSchema = zod_1.z.record(zod_1.z.unknown());
9
+ StartXrayCommand.RequestSchema = zod_1.z.object({
10
+ internals: zod_1.z.object({
11
+ forceRestart: zod_1.z.boolean().default(false),
12
+ hashes: zod_1.z.object({
13
+ emptyConfig: zod_1.z.string(),
14
+ inbounds: zod_1.z.array(zod_1.z.object({
15
+ usersCount: zod_1.z.number(),
16
+ hash: zod_1.z.string(),
17
+ tag: zod_1.z.string(),
18
+ })),
19
+ }),
20
+ }),
21
+ xrayConfig: zod_1.z.record(zod_1.z.unknown()),
22
+ });
10
23
  StartXrayCommand.ResponseSchema = zod_1.z.object({
11
24
  response: zod_1.z.object({
12
25
  isStarted: zod_1.z.boolean(),
@@ -69,5 +69,10 @@ export declare const ERRORS: {
69
69
  readonly message: "Failed to get outbounds stats";
70
70
  readonly httpCode: 500;
71
71
  };
72
+ readonly FAILED_TO_GET_COMBINED_STATS: {
73
+ readonly code: "A017";
74
+ readonly message: "Failed to get combined stats";
75
+ readonly httpCode: 500;
76
+ };
72
77
  };
73
78
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CT,CAAC"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDT,CAAC"}
@@ -48,4 +48,9 @@ exports.ERRORS = {
48
48
  message: 'Failed to get outbounds stats',
49
49
  httpCode: 500,
50
50
  },
51
+ FAILED_TO_GET_COMBINED_STATS: {
52
+ code: 'A017',
53
+ message: 'Failed to get combined stats',
54
+ httpCode: 500,
55
+ },
51
56
  };
@@ -6,6 +6,6 @@ exports.KNOWN_ERRORS = {
6
6
  XRAY_FAILED_TO_START: {
7
7
  code: 'RN-001',
8
8
  message: 'Xray core failed to start',
9
- documentationUrl: 'https://remna.st/docs/guides/common-errors#xml-rpc-fault-spawn-error-xray',
9
+ documentationUrl: 'https://docs.rw/docs/guides/common-errors#xml-rpc-fault-spawn-error-xray',
10
10
  },
11
11
  };
@@ -1,6 +1,4 @@
1
1
  export * from './errors';
2
- export * from './hashes';
3
- export * from './headers';
4
2
  export * from './internal';
5
3
  export * from './roles';
6
4
  export * from './xray';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
@@ -15,8 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./errors"), exports);
18
- __exportStar(require("./hashes"), exports);
19
- __exportStar(require("./headers"), exports);
20
18
  __exportStar(require("./internal"), exports);
21
19
  __exportStar(require("./roles"), exports);
22
20
  __exportStar(require("./xray"), exports);
@@ -4,6 +4,7 @@ export declare const XRAY_DEFAULT_POLICY_MODEL: {
4
4
  readonly '0': {
5
5
  readonly statsUserUplink: true;
6
6
  readonly statsUserDownlink: true;
7
+ readonly statsUserOnline: false;
7
8
  };
8
9
  };
9
10
  readonly system: {
@@ -1 +1 @@
1
- {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../constants/xray/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;CAe5B,CAAC;AAEX,eAAO,MAAM,wBAAwB;;CAE3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;CAMzB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;CAQzB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC"}
1
+ {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../constants/xray/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;CAgB5B,CAAC;AAEX,eAAO,MAAM,wBAAwB;;CAE3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;CAMzB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;CAQzB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC"}
@@ -7,6 +7,7 @@ exports.XRAY_DEFAULT_POLICY_MODEL = {
7
7
  '0': {
8
8
  statsUserUplink: true,
9
9
  statsUserDownlink: true,
10
+ statsUserOnline: false,
10
11
  },
11
12
  },
12
13
  system: {
package/build/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from './api';
2
2
  export * from './commands';
3
3
  export * from './constants';
4
- export * from './models';
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
package/build/index.js CHANGED
@@ -17,4 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./api"), exports);
18
18
  __exportStar(require("./commands"), exports);
19
19
  __exportStar(require("./constants"), exports);
20
- __exportStar(require("./models"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/node-contract",
3
- "version": "0.5.9",
3
+ "version": "0.6.0",
4
4
  "description": "A node-contract library for Remnawave Panel",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -23,6 +23,6 @@
23
23
  },
24
24
  "license": "AGPL-3.0-only",
25
25
  "dependencies": {
26
- "zod": "^3.22.4"
26
+ "zod": "^3.25.76"
27
27
  }
28
28
  }
@@ -1,9 +0,0 @@
1
- export interface IHashPayload {
2
- emptyConfig: string;
3
- inbounds: {
4
- usersCount: number;
5
- hash: string;
6
- tag: string;
7
- }[];
8
- }
9
- //# sourceMappingURL=hash-payload.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hash-payload.d.ts","sourceRoot":"","sources":["../../../constants/hashes/hash-payload.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE;QACN,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACP"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from './hash-payload';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/hashes/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -1,17 +0,0 @@
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("./hash-payload"), exports);
@@ -1,3 +0,0 @@
1
- export declare const X_HASH_PAYLOAD = "X-Hash-Payload";
2
- export declare const X_FORCE_RESTART = "X-Force-Restart";
3
- //# sourceMappingURL=headers.contants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"headers.contants.d.ts","sourceRoot":"","sources":["../../../constants/headers/headers.contants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,eAAe,oBAAoB,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.X_FORCE_RESTART = exports.X_HASH_PAYLOAD = void 0;
4
- exports.X_HASH_PAYLOAD = 'X-Hash-Payload';
5
- exports.X_FORCE_RESTART = 'X-Force-Restart';
@@ -1,2 +0,0 @@
1
- export * from './headers.contants';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/headers/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -1,17 +0,0 @@
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("./headers.contants"), exports);
@@ -1,9 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const AuthSchema: z.ZodObject<{
3
- hash: z.ZodString;
4
- }, "strip", z.ZodTypeAny, {
5
- hash: string;
6
- }, {
7
- hash: string;
8
- }>;
9
- //# sourceMappingURL=auth.schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.schema.d.ts","sourceRoot":"","sources":["../../models/auth.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;;;;;EAErB,CAAC"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.AuthSchema = zod_1.z.object({
6
- hash: zod_1.z.string(),
7
- });
@@ -1,2 +0,0 @@
1
- export * from './auth.schema';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -1,17 +0,0 @@
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("./auth.schema"), exports);