@remnawave/backend-contract 2.0.1 → 2.1.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.
- package/build/backend/api/routes.d.ts +1 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +2 -1
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +5 -0
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +5 -0
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +5 -0
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +5 -0
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +5 -0
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +8 -0
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +1 -0
- package/build/backend/commands/hosts/get-all.command.d.ts +5 -0
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +5 -0
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +1 -0
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +9 -0
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +1 -0
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +5 -0
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.js +1 -0
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +7 -0
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +1 -0
- package/build/backend/commands/users/actions/disable-user.command.d.ts +7 -0
- package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/enable-user.command.d.ts +7 -0
- package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +7 -0
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +7 -0
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.d.ts +7 -0
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-all-users.command.d.ts +9 -0
- package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +7 -0
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +7 -0
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts +7 -0
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +7 -0
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +7 -0
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +7 -0
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +5 -0
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-usage-by-range.command.js +1 -0
- package/build/backend/commands/users/update-user.command.d.ts +7 -0
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.d.ts +10 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +10 -0
- package/build/backend/models/extended-users.schema.d.ts +5 -0
- package/build/backend/models/extended-users.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.d.ts +3 -0
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +1 -0
- package/build/backend/models/last-connected-node.schema.d.ts +3 -0
- package/build/backend/models/last-connected-node.schema.d.ts.map +1 -1
- package/build/backend/models/last-connected-node.schema.js +1 -0
- package/build/frontend/api/routes.js +2 -1
- package/build/frontend/commands/hosts/create.command.js +1 -0
- package/build/frontend/commands/hosts/update.command.js +1 -0
- package/build/frontend/commands/nodes/stats/get-nodes-usage-by-range.command.js +1 -0
- package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +1 -0
- package/build/frontend/commands/users/get-user-usage-by-range.command.js +1 -0
- package/build/frontend/constants/errors/errors.js +10 -0
- package/build/frontend/models/hosts.schema.js +1 -0
- package/build/frontend/models/last-connected-node.schema.js +1 -0
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,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
|
1
|
+
{"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,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"}
|
@@ -27,16 +27,19 @@ export declare namespace GetUserUsageByRangeCommand {
|
|
27
27
|
userUuid: z.ZodString;
|
28
28
|
nodeUuid: z.ZodString;
|
29
29
|
nodeName: z.ZodString;
|
30
|
+
countryCode: z.ZodString;
|
30
31
|
total: z.ZodNumber;
|
31
32
|
date: z.ZodEffects<z.ZodString, Date, string>;
|
32
33
|
}, "strip", z.ZodTypeAny, {
|
33
34
|
date: Date;
|
35
|
+
countryCode: string;
|
34
36
|
nodeName: string;
|
35
37
|
userUuid: string;
|
36
38
|
nodeUuid: string;
|
37
39
|
total: number;
|
38
40
|
}, {
|
39
41
|
date: string;
|
42
|
+
countryCode: string;
|
40
43
|
nodeName: string;
|
41
44
|
userUuid: string;
|
42
45
|
nodeUuid: string;
|
@@ -45,6 +48,7 @@ export declare namespace GetUserUsageByRangeCommand {
|
|
45
48
|
}, "strip", z.ZodTypeAny, {
|
46
49
|
response: {
|
47
50
|
date: Date;
|
51
|
+
countryCode: string;
|
48
52
|
nodeName: string;
|
49
53
|
userUuid: string;
|
50
54
|
nodeUuid: string;
|
@@ -53,6 +57,7 @@ export declare namespace GetUserUsageByRangeCommand {
|
|
53
57
|
}, {
|
54
58
|
response: {
|
55
59
|
date: string;
|
60
|
+
countryCode: string;
|
56
61
|
nodeName: string;
|
57
62
|
userUuid: string;
|
58
63
|
nodeUuid: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-user-usage-by-range.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-usage-by-range.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,0BAA0C,CAAC;IACpD,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,kBAAkB;;;;;;;;;MAG7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-user-usage-by-range.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-usage-by-range.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,0BAA0C,CAAC;IACpD,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,kBAAkB;;;;;;;;;MAG7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -21,6 +21,7 @@ var GetUserUsageByRangeCommand;
|
|
21
21
|
userUuid: zod_1.z.string().uuid(),
|
22
22
|
nodeUuid: zod_1.z.string().uuid(),
|
23
23
|
nodeName: zod_1.z.string(),
|
24
|
+
countryCode: zod_1.z.string(),
|
24
25
|
total: zod_1.z.number(),
|
25
26
|
date: zod_1.z.string().transform((str) => new Date(str)),
|
26
27
|
})),
|
@@ -150,10 +150,13 @@ export declare namespace UpdateUserCommand {
|
|
150
150
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
151
151
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
152
152
|
nodeName: z.ZodString;
|
153
|
+
countryCode: z.ZodString;
|
153
154
|
}, "strip", z.ZodTypeAny, {
|
155
|
+
countryCode: string;
|
154
156
|
connectedAt: Date;
|
155
157
|
nodeName: string;
|
156
158
|
}, {
|
159
|
+
countryCode: string;
|
157
160
|
connectedAt: string;
|
158
161
|
nodeName: string;
|
159
162
|
}>>;
|
@@ -197,6 +200,7 @@ export declare namespace UpdateUserCommand {
|
|
197
200
|
}[];
|
198
201
|
subscriptionUrl: string;
|
199
202
|
lastConnectedNode: {
|
203
|
+
countryCode: string;
|
200
204
|
connectedAt: Date;
|
201
205
|
nodeName: string;
|
202
206
|
} | null;
|
@@ -232,6 +236,7 @@ export declare namespace UpdateUserCommand {
|
|
232
236
|
}[];
|
233
237
|
subscriptionUrl: string;
|
234
238
|
lastConnectedNode: {
|
239
|
+
countryCode: string;
|
235
240
|
connectedAt: string;
|
236
241
|
nodeName: string;
|
237
242
|
} | null;
|
@@ -277,6 +282,7 @@ export declare namespace UpdateUserCommand {
|
|
277
282
|
}[];
|
278
283
|
subscriptionUrl: string;
|
279
284
|
lastConnectedNode: {
|
285
|
+
countryCode: string;
|
280
286
|
connectedAt: Date;
|
281
287
|
nodeName: string;
|
282
288
|
} | null;
|
@@ -314,6 +320,7 @@ export declare namespace UpdateUserCommand {
|
|
314
320
|
}[];
|
315
321
|
subscriptionUrl: string;
|
316
322
|
lastConnectedNode: {
|
323
|
+
countryCode: string;
|
317
324
|
connectedAt: string;
|
318
325
|
nodeName: string;
|
319
326
|
} | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwDxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwDxB,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"}
|
@@ -769,5 +769,15 @@ export declare const ERRORS: {
|
|
769
769
|
readonly message: "OAuth2 authorize error";
|
770
770
|
readonly httpCode: 500;
|
771
771
|
};
|
772
|
+
readonly NODE_IS_DISABLED: {
|
773
|
+
readonly code: "A149";
|
774
|
+
readonly message: "Node is disabled";
|
775
|
+
readonly httpCode: 400;
|
776
|
+
};
|
777
|
+
readonly SYNC_ACTIVE_PROFILE_ERROR: {
|
778
|
+
readonly code: "A150";
|
779
|
+
readonly message: "Sync active profile error";
|
780
|
+
readonly httpCode: 500;
|
781
|
+
};
|
772
782
|
};
|
773
783
|
//# 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
|
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"}
|
@@ -740,4 +740,14 @@ exports.ERRORS = {
|
|
740
740
|
message: 'OAuth2 authorize error',
|
741
741
|
httpCode: 500,
|
742
742
|
},
|
743
|
+
NODE_IS_DISABLED: {
|
744
|
+
code: 'A149',
|
745
|
+
message: 'Node is disabled',
|
746
|
+
httpCode: 400,
|
747
|
+
},
|
748
|
+
SYNC_ACTIVE_PROFILE_ERROR: {
|
749
|
+
code: 'A150',
|
750
|
+
message: 'Sync active profile error',
|
751
|
+
httpCode: 500,
|
752
|
+
},
|
743
753
|
};
|
@@ -51,10 +51,13 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
51
51
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
52
52
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
53
53
|
nodeName: z.ZodString;
|
54
|
+
countryCode: z.ZodString;
|
54
55
|
}, "strip", z.ZodTypeAny, {
|
56
|
+
countryCode: string;
|
55
57
|
connectedAt: Date;
|
56
58
|
nodeName: string;
|
57
59
|
}, {
|
60
|
+
countryCode: string;
|
58
61
|
connectedAt: string;
|
59
62
|
nodeName: string;
|
60
63
|
}>>;
|
@@ -98,6 +101,7 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
98
101
|
}[];
|
99
102
|
subscriptionUrl: string;
|
100
103
|
lastConnectedNode: {
|
104
|
+
countryCode: string;
|
101
105
|
connectedAt: Date;
|
102
106
|
nodeName: string;
|
103
107
|
} | null;
|
@@ -133,6 +137,7 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
133
137
|
}[];
|
134
138
|
subscriptionUrl: string;
|
135
139
|
lastConnectedNode: {
|
140
|
+
countryCode: string;
|
136
141
|
connectedAt: string;
|
137
142
|
nodeName: string;
|
138
143
|
} | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"extended-users.schema.d.ts","sourceRoot":"","sources":["../../../models/extended-users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB
|
1
|
+
{"version":3,"file":"extended-users.schema.d.ts","sourceRoot":"","sources":["../../../models/extended-users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC"}
|
@@ -18,6 +18,7 @@ export declare const HostsSchema: z.ZodObject<{
|
|
18
18
|
}>>;
|
19
19
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
20
20
|
muxParams: z.ZodNullable<z.ZodUnknown>;
|
21
|
+
sockoptParams: z.ZodNullable<z.ZodUnknown>;
|
21
22
|
inbound: z.ZodObject<{
|
22
23
|
configProfileUuid: z.ZodNullable<z.ZodString>;
|
23
24
|
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
@@ -49,6 +50,7 @@ export declare const HostsSchema: z.ZodObject<{
|
|
49
50
|
serverDescription: string | null;
|
50
51
|
xHttpExtraParams?: unknown;
|
51
52
|
muxParams?: unknown;
|
53
|
+
sockoptParams?: unknown;
|
52
54
|
}, {
|
53
55
|
path: string | null;
|
54
56
|
uuid: string;
|
@@ -69,5 +71,6 @@ export declare const HostsSchema: z.ZodObject<{
|
|
69
71
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
70
72
|
xHttpExtraParams?: unknown;
|
71
73
|
muxParams?: unknown;
|
74
|
+
sockoptParams?: unknown;
|
72
75
|
}>;
|
73
76
|
//# 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
|
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"}
|
@@ -18,6 +18,7 @@ exports.HostsSchema = zod_1.z.object({
|
|
18
18
|
securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
|
19
19
|
xHttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
|
20
20
|
muxParams: zod_1.z.nullable(zod_1.z.unknown()),
|
21
|
+
sockoptParams: zod_1.z.nullable(zod_1.z.unknown()),
|
21
22
|
inbound: zod_1.z.object({
|
22
23
|
configProfileUuid: zod_1.z.string().uuid().nullable(),
|
23
24
|
configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
|
@@ -2,10 +2,13 @@ import { z } from 'zod';
|
|
2
2
|
export declare const LastConnectedNodeSchema: z.ZodNullable<z.ZodObject<{
|
3
3
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
4
4
|
nodeName: z.ZodString;
|
5
|
+
countryCode: z.ZodString;
|
5
6
|
}, "strip", z.ZodTypeAny, {
|
7
|
+
countryCode: string;
|
6
8
|
connectedAt: Date;
|
7
9
|
nodeName: string;
|
8
10
|
}, {
|
11
|
+
countryCode: string;
|
9
12
|
connectedAt: string;
|
10
13
|
nodeName: string;
|
11
14
|
}>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"last-connected-node.schema.d.ts","sourceRoot":"","sources":["../../../models/last-connected-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB
|
1
|
+
{"version":3,"file":"last-connected-node.schema.d.ts","sourceRoot":"","sources":["../../../models/last-connected-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;GASrB,CAAC"}
|
@@ -33,10 +33,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
33
33
|
};
|
34
34
|
})();
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
36
|
-
exports.REST_API = exports.BULLBOARD_ROOT = exports.METRICS_ROOT = exports.ROOT = void 0;
|
36
|
+
exports.REST_API = exports.BULLBOARD_ROOT = exports.HEALTH_ROOT = exports.METRICS_ROOT = exports.ROOT = void 0;
|
37
37
|
const CONTROLLERS = __importStar(require("./controllers"));
|
38
38
|
exports.ROOT = '/api';
|
39
39
|
exports.METRICS_ROOT = '/metrics';
|
40
|
+
exports.HEALTH_ROOT = '/health';
|
40
41
|
exports.BULLBOARD_ROOT = '/queues';
|
41
42
|
exports.REST_API = {
|
42
43
|
AUTH: {
|
@@ -42,6 +42,7 @@ var CreateHostCommand;
|
|
42
42
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS).default(constants_1.SECURITY_LAYERS.DEFAULT)),
|
43
43
|
xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
44
44
|
muxParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
45
|
+
sockoptParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
45
46
|
serverDescription: zod_1.z.optional(zod_1.z
|
46
47
|
.string()
|
47
48
|
.max(30, {
|
@@ -47,6 +47,7 @@ var UpdateHostCommand;
|
|
47
47
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS)),
|
48
48
|
xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
49
49
|
muxParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
50
|
+
sockoptParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
50
51
|
serverDescription: zod_1.z.optional(zod_1.z
|
51
52
|
.string()
|
52
53
|
.max(30, {
|
@@ -17,6 +17,7 @@ var GetNodesUsageByRangeCommand;
|
|
17
17
|
response: zod_1.z.array(zod_1.z.object({
|
18
18
|
nodeUuid: zod_1.z.string().uuid(),
|
19
19
|
nodeName: zod_1.z.string(),
|
20
|
+
nodeCountryCode: zod_1.z.string(),
|
20
21
|
total: zod_1.z.number(),
|
21
22
|
totalDownload: zod_1.z.number(),
|
22
23
|
totalUpload: zod_1.z.number(),
|
@@ -53,6 +53,7 @@ var GetRawSubscriptionByShortUuidCommand;
|
|
53
53
|
}))),
|
54
54
|
xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.object({}))),
|
55
55
|
muxParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.object({}))),
|
56
|
+
sockoptParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.object({}))),
|
56
57
|
serverDescription: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string())),
|
57
58
|
flow: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string())),
|
58
59
|
protocolOptions: zod_1.z.optional(zod_1.z.nullable(zod_1.z.object({
|
@@ -21,6 +21,7 @@ var GetUserUsageByRangeCommand;
|
|
21
21
|
userUuid: zod_1.z.string().uuid(),
|
22
22
|
nodeUuid: zod_1.z.string().uuid(),
|
23
23
|
nodeName: zod_1.z.string(),
|
24
|
+
countryCode: zod_1.z.string(),
|
24
25
|
total: zod_1.z.number(),
|
25
26
|
date: zod_1.z.string().transform((str) => new Date(str)),
|
26
27
|
})),
|
@@ -740,4 +740,14 @@ exports.ERRORS = {
|
|
740
740
|
message: 'OAuth2 authorize error',
|
741
741
|
httpCode: 500,
|
742
742
|
},
|
743
|
+
NODE_IS_DISABLED: {
|
744
|
+
code: 'A149',
|
745
|
+
message: 'Node is disabled',
|
746
|
+
httpCode: 400,
|
747
|
+
},
|
748
|
+
SYNC_ACTIVE_PROFILE_ERROR: {
|
749
|
+
code: 'A150',
|
750
|
+
message: 'Sync active profile error',
|
751
|
+
httpCode: 500,
|
752
|
+
},
|
743
753
|
};
|
@@ -18,6 +18,7 @@ exports.HostsSchema = zod_1.z.object({
|
|
18
18
|
securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
|
19
19
|
xHttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
|
20
20
|
muxParams: zod_1.z.nullable(zod_1.z.unknown()),
|
21
|
+
sockoptParams: zod_1.z.nullable(zod_1.z.unknown()),
|
21
22
|
inbound: zod_1.z.object({
|
22
23
|
configProfileUuid: zod_1.z.string().uuid().nullable(),
|
23
24
|
configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
|