@remnawave/backend-contract 2.3.67 → 2.3.68
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/controllers/bandwidth-stats.d.ts +22 -0
- package/build/backend/api/controllers/bandwidth-stats.d.ts.map +1 -0
- package/build/backend/api/controllers/bandwidth-stats.js +34 -0
- package/build/backend/api/controllers/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers/nodes.d.ts +0 -5
- package/build/backend/api/controllers/nodes.d.ts.map +1 -1
- package/build/backend/api/controllers/nodes.js +0 -5
- package/build/backend/api/controllers/users.d.ts +0 -3
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +0 -3
- package/build/backend/api/controllers-info.d.ts +8 -12
- package/build/backend/api/controllers-info.d.ts.map +1 -1
- package/build/backend/api/controllers-info.js +8 -12
- package/build/backend/api/routes.d.ts +18 -8
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +18 -8
- package/build/backend/commands/bandwidth-stats/index.d.ts +4 -0
- package/build/backend/commands/bandwidth-stats/index.d.ts.map +1 -0
- package/build/{frontend/commands/nodes/stats → backend/commands/bandwidth-stats}/index.js +3 -3
- package/build/backend/commands/{nodes/stats/get-node-user-usage-by-range.command.d.ts → bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.d.ts} +2 -2
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js +28 -0
- package/build/backend/commands/{users/get-user-usage-by-range.command.d.ts → bandwidth-stats/legacy/get-legacy-user-usage.command.d.ts} +11 -11
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.js +29 -0
- package/build/backend/commands/bandwidth-stats/legacy/index.d.ts +3 -0
- package/build/backend/commands/bandwidth-stats/legacy/index.d.ts.map +1 -0
- package/build/backend/commands/{nodes/stats → bandwidth-stats/legacy}/index.js +2 -3
- package/build/backend/commands/{nodes/stats/get-realtime-usage.command.d.ts → bandwidth-stats/nodes/get-stats-nodes-realtime-usage.command.d.ts} +8 -8
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-realtime-usage.command.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-realtime-usage.command.js +25 -0
- package/build/backend/commands/{nodes/stats/get-nodes-usage-by-range.command.d.ts → bandwidth-stats/nodes/get-stats-nodes-usage.command.d.ts} +28 -28
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.d.ts.map +1 -0
- package/build/backend/commands/{nodes/stats/get-nodes-usage-by-range.command.js → bandwidth-stats/nodes/get-stats-nodes-usage.command.js} +10 -10
- package/build/backend/commands/bandwidth-stats/nodes/index.d.ts +3 -0
- package/build/backend/commands/bandwidth-stats/nodes/index.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/nodes/index.js +18 -0
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts +150 -0
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.js +40 -0
- package/build/backend/commands/bandwidth-stats/users/index.d.ts +2 -0
- package/build/backend/commands/bandwidth-stats/users/index.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/users/index.js +17 -0
- package/build/backend/commands/config-profiles/actions/reorder.command.d.ts +10 -10
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +6 -6
- package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts +6 -6
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +6 -6
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +8 -8
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +6 -6
- package/build/backend/commands/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +16 -16
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +12 -12
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +16 -16
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +16 -16
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +12 -12
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +16 -16
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +16 -16
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +12 -12
- package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.d.ts +6 -6
- package/build/backend/commands/nodes/actions/disable.command.d.ts +4 -4
- package/build/backend/commands/nodes/actions/enable.command.d.ts +4 -4
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +4 -4
- package/build/backend/commands/nodes/create.command.d.ts +6 -6
- package/build/backend/commands/nodes/get-all.command.d.ts +4 -4
- package/build/backend/commands/nodes/get-one.command.d.ts +4 -4
- package/build/backend/commands/nodes/index.d.ts +0 -1
- package/build/backend/commands/nodes/index.d.ts.map +1 -1
- package/build/backend/commands/nodes/index.js +0 -1
- package/build/backend/commands/nodes/update.command.d.ts +6 -6
- package/build/backend/commands/subscription-template/actions/reorder.command.d.ts +4 -4
- package/build/backend/commands/subscription-template/get-templates.command.d.ts +4 -4
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts +6 -6
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +6 -6
- package/build/backend/commands/users/index.d.ts +0 -1
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +0 -1
- package/build/backend/models/config-profile.schema.d.ts +4 -4
- package/build/backend/models/infra-billing-available-node.schema.d.ts +3 -3
- package/build/backend/models/infra-billing-node.schema.d.ts +5 -5
- package/build/backend/models/infra-provider.schema.d.ts +8 -8
- package/build/backend/models/last-connected-node.schema.d.ts +2 -2
- package/build/backend/models/nodes.schema.d.ts +2 -2
- package/build/frontend/api/controllers/bandwidth-stats.js +34 -0
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/nodes.js +0 -5
- package/build/frontend/api/controllers/users.js +0 -3
- package/build/frontend/api/controllers-info.js +8 -12
- package/build/frontend/api/routes.js +18 -8
- package/build/frontend/commands/bandwidth-stats/index.js +19 -0
- package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js +28 -0
- package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.js +29 -0
- package/build/frontend/commands/bandwidth-stats/legacy/index.js +18 -0
- package/build/frontend/commands/bandwidth-stats/nodes/get-stats-nodes-realtime-usage.command.js +25 -0
- package/build/frontend/commands/{nodes/stats/get-nodes-usage-by-range.command.js → bandwidth-stats/nodes/get-stats-nodes-usage.command.js} +10 -10
- package/build/frontend/commands/bandwidth-stats/nodes/index.js +18 -0
- package/build/frontend/commands/bandwidth-stats/users/get-stats-user-usage.command.js +40 -0
- package/build/frontend/commands/bandwidth-stats/users/index.js +17 -0
- package/build/frontend/commands/index.js +1 -0
- package/build/frontend/commands/nodes/index.js +0 -1
- package/build/frontend/commands/users/index.js +0 -1
- package/package.json +1 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts.map +0 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.js +0 -28
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts.map +0 -1
- package/build/backend/commands/nodes/stats/get-realtime-usage.command.d.ts.map +0 -1
- package/build/backend/commands/nodes/stats/get-realtime-usage.command.js +0 -25
- package/build/backend/commands/nodes/stats/index.d.ts +0 -4
- package/build/backend/commands/nodes/stats/index.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-usage-by-range.command.js +0 -29
- package/build/frontend/commands/nodes/stats/get-node-user-usage-by-range.command.js +0 -28
- package/build/frontend/commands/nodes/stats/get-realtime-usage.command.js +0 -25
- package/build/frontend/commands/users/get-user-usage-by-range.command.js +0 -29
|
@@ -131,10 +131,10 @@ export declare namespace GetOneNodeCommand {
|
|
|
131
131
|
faviconLink: string | null;
|
|
132
132
|
loginUrl: string | null;
|
|
133
133
|
} | null;
|
|
134
|
+
countryCode: string;
|
|
134
135
|
name: string;
|
|
135
136
|
port: number | null;
|
|
136
137
|
viewPosition: number;
|
|
137
|
-
countryCode: string;
|
|
138
138
|
trafficLimitBytes: number | null;
|
|
139
139
|
address: string;
|
|
140
140
|
isDisabled: boolean;
|
|
@@ -181,10 +181,10 @@ export declare namespace GetOneNodeCommand {
|
|
|
181
181
|
faviconLink: string | null;
|
|
182
182
|
loginUrl: string | null;
|
|
183
183
|
} | null;
|
|
184
|
+
countryCode: string;
|
|
184
185
|
name: string;
|
|
185
186
|
port: number | null;
|
|
186
187
|
viewPosition: number;
|
|
187
|
-
countryCode: string;
|
|
188
188
|
trafficLimitBytes: number | null;
|
|
189
189
|
address: string;
|
|
190
190
|
isDisabled: boolean;
|
|
@@ -233,10 +233,10 @@ export declare namespace GetOneNodeCommand {
|
|
|
233
233
|
faviconLink: string | null;
|
|
234
234
|
loginUrl: string | null;
|
|
235
235
|
} | null;
|
|
236
|
+
countryCode: string;
|
|
236
237
|
name: string;
|
|
237
238
|
port: number | null;
|
|
238
239
|
viewPosition: number;
|
|
239
|
-
countryCode: string;
|
|
240
240
|
trafficLimitBytes: number | null;
|
|
241
241
|
address: string;
|
|
242
242
|
isDisabled: boolean;
|
|
@@ -285,10 +285,10 @@ export declare namespace GetOneNodeCommand {
|
|
|
285
285
|
faviconLink: string | null;
|
|
286
286
|
loginUrl: string | null;
|
|
287
287
|
} | null;
|
|
288
|
+
countryCode: string;
|
|
288
289
|
name: string;
|
|
289
290
|
port: number | null;
|
|
290
291
|
viewPosition: number;
|
|
291
|
-
countryCode: string;
|
|
292
292
|
trafficLimitBytes: number | null;
|
|
293
293
|
address: string;
|
|
294
294
|
isDisabled: boolean;
|
|
@@ -4,7 +4,6 @@ export * from './create.command';
|
|
|
4
4
|
export * from './delete.command';
|
|
5
5
|
export * from './get-all.command';
|
|
6
6
|
export * from './get-one.command';
|
|
7
|
-
export * from './stats';
|
|
8
7
|
export * from './tags';
|
|
9
8
|
export * from './update.command';
|
|
10
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC"}
|
|
@@ -20,6 +20,5 @@ __exportStar(require("./create.command"), exports);
|
|
|
20
20
|
__exportStar(require("./delete.command"), exports);
|
|
21
21
|
__exportStar(require("./get-all.command"), exports);
|
|
22
22
|
__exportStar(require("./get-one.command"), exports);
|
|
23
|
-
__exportStar(require("./stats"), exports);
|
|
24
23
|
__exportStar(require("./tags"), exports);
|
|
25
24
|
__exportStar(require("./update.command"), exports);
|
|
@@ -134,9 +134,9 @@ export declare namespace UpdateNodeCommand {
|
|
|
134
134
|
}, "strip", z.ZodTypeAny, {
|
|
135
135
|
uuid: string;
|
|
136
136
|
tags?: string[] | undefined;
|
|
137
|
+
countryCode?: string | undefined;
|
|
137
138
|
name?: string | undefined;
|
|
138
139
|
port?: number | undefined;
|
|
139
|
-
countryCode?: string | undefined;
|
|
140
140
|
trafficLimitBytes?: number | undefined;
|
|
141
141
|
address?: string | undefined;
|
|
142
142
|
isTrafficTrackingActive?: boolean | undefined;
|
|
@@ -151,9 +151,9 @@ export declare namespace UpdateNodeCommand {
|
|
|
151
151
|
}, {
|
|
152
152
|
uuid: string;
|
|
153
153
|
tags?: string[] | undefined;
|
|
154
|
+
countryCode?: string | undefined;
|
|
154
155
|
name?: string | undefined;
|
|
155
156
|
port?: number | undefined;
|
|
156
|
-
countryCode?: string | undefined;
|
|
157
157
|
trafficLimitBytes?: number | undefined;
|
|
158
158
|
address?: string | undefined;
|
|
159
159
|
isTrafficTrackingActive?: boolean | undefined;
|
|
@@ -287,10 +287,10 @@ export declare namespace UpdateNodeCommand {
|
|
|
287
287
|
faviconLink: string | null;
|
|
288
288
|
loginUrl: string | null;
|
|
289
289
|
} | null;
|
|
290
|
+
countryCode: string;
|
|
290
291
|
name: string;
|
|
291
292
|
port: number | null;
|
|
292
293
|
viewPosition: number;
|
|
293
|
-
countryCode: string;
|
|
294
294
|
trafficLimitBytes: number | null;
|
|
295
295
|
address: string;
|
|
296
296
|
isDisabled: boolean;
|
|
@@ -337,10 +337,10 @@ export declare namespace UpdateNodeCommand {
|
|
|
337
337
|
faviconLink: string | null;
|
|
338
338
|
loginUrl: string | null;
|
|
339
339
|
} | null;
|
|
340
|
+
countryCode: string;
|
|
340
341
|
name: string;
|
|
341
342
|
port: number | null;
|
|
342
343
|
viewPosition: number;
|
|
343
|
-
countryCode: string;
|
|
344
344
|
trafficLimitBytes: number | null;
|
|
345
345
|
address: string;
|
|
346
346
|
isDisabled: boolean;
|
|
@@ -389,10 +389,10 @@ export declare namespace UpdateNodeCommand {
|
|
|
389
389
|
faviconLink: string | null;
|
|
390
390
|
loginUrl: string | null;
|
|
391
391
|
} | null;
|
|
392
|
+
countryCode: string;
|
|
392
393
|
name: string;
|
|
393
394
|
port: number | null;
|
|
394
395
|
viewPosition: number;
|
|
395
|
-
countryCode: string;
|
|
396
396
|
trafficLimitBytes: number | null;
|
|
397
397
|
address: string;
|
|
398
398
|
isDisabled: boolean;
|
|
@@ -441,10 +441,10 @@ export declare namespace UpdateNodeCommand {
|
|
|
441
441
|
faviconLink: string | null;
|
|
442
442
|
loginUrl: string | null;
|
|
443
443
|
} | null;
|
|
444
|
+
countryCode: string;
|
|
444
445
|
name: string;
|
|
445
446
|
port: number | null;
|
|
446
447
|
viewPosition: number;
|
|
447
|
-
countryCode: string;
|
|
448
448
|
trafficLimitBytes: number | null;
|
|
449
449
|
address: string;
|
|
450
450
|
isDisabled: boolean;
|
|
@@ -70,6 +70,7 @@ export declare namespace ReorderSubscriptionTemplateCommand {
|
|
|
70
70
|
templateJson?: unknown;
|
|
71
71
|
}>, "many">;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
total: number;
|
|
73
74
|
templates: {
|
|
74
75
|
uuid: string;
|
|
75
76
|
name: string;
|
|
@@ -78,8 +79,8 @@ export declare namespace ReorderSubscriptionTemplateCommand {
|
|
|
78
79
|
encodedTemplateYaml: string | null;
|
|
79
80
|
templateJson?: unknown;
|
|
80
81
|
}[];
|
|
81
|
-
total: number;
|
|
82
82
|
}, {
|
|
83
|
+
total: number;
|
|
83
84
|
templates: {
|
|
84
85
|
uuid: string;
|
|
85
86
|
name: string;
|
|
@@ -88,10 +89,10 @@ export declare namespace ReorderSubscriptionTemplateCommand {
|
|
|
88
89
|
encodedTemplateYaml: string | null;
|
|
89
90
|
templateJson?: unknown;
|
|
90
91
|
}[];
|
|
91
|
-
total: number;
|
|
92
92
|
}>;
|
|
93
93
|
}, "strip", z.ZodTypeAny, {
|
|
94
94
|
response: {
|
|
95
|
+
total: number;
|
|
95
96
|
templates: {
|
|
96
97
|
uuid: string;
|
|
97
98
|
name: string;
|
|
@@ -100,10 +101,10 @@ export declare namespace ReorderSubscriptionTemplateCommand {
|
|
|
100
101
|
encodedTemplateYaml: string | null;
|
|
101
102
|
templateJson?: unknown;
|
|
102
103
|
}[];
|
|
103
|
-
total: number;
|
|
104
104
|
};
|
|
105
105
|
}, {
|
|
106
106
|
response: {
|
|
107
|
+
total: number;
|
|
107
108
|
templates: {
|
|
108
109
|
uuid: string;
|
|
109
110
|
name: string;
|
|
@@ -112,7 +113,6 @@ export declare namespace ReorderSubscriptionTemplateCommand {
|
|
|
112
113
|
encodedTemplateYaml: string | null;
|
|
113
114
|
templateJson?: unknown;
|
|
114
115
|
}[];
|
|
115
|
-
total: number;
|
|
116
116
|
};
|
|
117
117
|
}>;
|
|
118
118
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -36,6 +36,7 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
36
36
|
templateJson?: unknown;
|
|
37
37
|
}>, "many">;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
total: number;
|
|
39
40
|
templates: {
|
|
40
41
|
uuid: string;
|
|
41
42
|
name: string;
|
|
@@ -44,8 +45,8 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
44
45
|
encodedTemplateYaml: string | null;
|
|
45
46
|
templateJson?: unknown;
|
|
46
47
|
}[];
|
|
47
|
-
total: number;
|
|
48
48
|
}, {
|
|
49
|
+
total: number;
|
|
49
50
|
templates: {
|
|
50
51
|
uuid: string;
|
|
51
52
|
name: string;
|
|
@@ -54,10 +55,10 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
54
55
|
encodedTemplateYaml: string | null;
|
|
55
56
|
templateJson?: unknown;
|
|
56
57
|
}[];
|
|
57
|
-
total: number;
|
|
58
58
|
}>;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
response: {
|
|
61
|
+
total: number;
|
|
61
62
|
templates: {
|
|
62
63
|
uuid: string;
|
|
63
64
|
name: string;
|
|
@@ -66,10 +67,10 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
66
67
|
encodedTemplateYaml: string | null;
|
|
67
68
|
templateJson?: unknown;
|
|
68
69
|
}[];
|
|
69
|
-
total: number;
|
|
70
70
|
};
|
|
71
71
|
}, {
|
|
72
72
|
response: {
|
|
73
|
+
total: number;
|
|
73
74
|
templates: {
|
|
74
75
|
uuid: string;
|
|
75
76
|
name: string;
|
|
@@ -78,7 +79,6 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
78
79
|
encodedTemplateYaml: string | null;
|
|
79
80
|
templateJson?: unknown;
|
|
80
81
|
}[];
|
|
81
|
-
total: number;
|
|
82
82
|
};
|
|
83
83
|
}>;
|
|
84
84
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -39,8 +39,8 @@ export declare namespace GetNodesMetricsCommand {
|
|
|
39
39
|
}>, "many">;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
41
|
nodeUuid: string;
|
|
42
|
-
usersOnline: number;
|
|
43
42
|
nodeName: string;
|
|
43
|
+
usersOnline: number;
|
|
44
44
|
countryEmoji: string;
|
|
45
45
|
providerName: string;
|
|
46
46
|
inboundsStats: {
|
|
@@ -55,8 +55,8 @@ export declare namespace GetNodesMetricsCommand {
|
|
|
55
55
|
}[];
|
|
56
56
|
}, {
|
|
57
57
|
nodeUuid: string;
|
|
58
|
-
usersOnline: number;
|
|
59
58
|
nodeName: string;
|
|
59
|
+
usersOnline: number;
|
|
60
60
|
countryEmoji: string;
|
|
61
61
|
providerName: string;
|
|
62
62
|
inboundsStats: {
|
|
@@ -73,8 +73,8 @@ export declare namespace GetNodesMetricsCommand {
|
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
74
|
nodes: {
|
|
75
75
|
nodeUuid: string;
|
|
76
|
-
usersOnline: number;
|
|
77
76
|
nodeName: string;
|
|
77
|
+
usersOnline: number;
|
|
78
78
|
countryEmoji: string;
|
|
79
79
|
providerName: string;
|
|
80
80
|
inboundsStats: {
|
|
@@ -91,8 +91,8 @@ export declare namespace GetNodesMetricsCommand {
|
|
|
91
91
|
}, {
|
|
92
92
|
nodes: {
|
|
93
93
|
nodeUuid: string;
|
|
94
|
-
usersOnline: number;
|
|
95
94
|
nodeName: string;
|
|
95
|
+
usersOnline: number;
|
|
96
96
|
countryEmoji: string;
|
|
97
97
|
providerName: string;
|
|
98
98
|
inboundsStats: {
|
|
@@ -111,8 +111,8 @@ export declare namespace GetNodesMetricsCommand {
|
|
|
111
111
|
response: {
|
|
112
112
|
nodes: {
|
|
113
113
|
nodeUuid: string;
|
|
114
|
-
usersOnline: number;
|
|
115
114
|
nodeName: string;
|
|
115
|
+
usersOnline: number;
|
|
116
116
|
countryEmoji: string;
|
|
117
117
|
providerName: string;
|
|
118
118
|
inboundsStats: {
|
|
@@ -131,8 +131,8 @@ export declare namespace GetNodesMetricsCommand {
|
|
|
131
131
|
response: {
|
|
132
132
|
nodes: {
|
|
133
133
|
nodeUuid: string;
|
|
134
|
-
usersOnline: number;
|
|
135
134
|
nodeName: string;
|
|
135
|
+
usersOnline: number;
|
|
136
136
|
countryEmoji: string;
|
|
137
137
|
providerName: string;
|
|
138
138
|
inboundsStats: {
|
|
@@ -32,9 +32,9 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
32
32
|
}>, "many">;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
uuid: string;
|
|
35
|
+
nodeName: string;
|
|
35
36
|
countryCode: string;
|
|
36
37
|
configProfileUuid: string;
|
|
37
|
-
nodeName: string;
|
|
38
38
|
activeSquads: {
|
|
39
39
|
activeInbounds: string[];
|
|
40
40
|
squadName: string;
|
|
@@ -42,9 +42,9 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
42
42
|
configProfileName: string;
|
|
43
43
|
}, {
|
|
44
44
|
uuid: string;
|
|
45
|
+
nodeName: string;
|
|
45
46
|
countryCode: string;
|
|
46
47
|
configProfileUuid: string;
|
|
47
|
-
nodeName: string;
|
|
48
48
|
activeSquads: {
|
|
49
49
|
activeInbounds: string[];
|
|
50
50
|
squadName: string;
|
|
@@ -55,9 +55,9 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
55
55
|
userUuid: string;
|
|
56
56
|
activeNodes: {
|
|
57
57
|
uuid: string;
|
|
58
|
+
nodeName: string;
|
|
58
59
|
countryCode: string;
|
|
59
60
|
configProfileUuid: string;
|
|
60
|
-
nodeName: string;
|
|
61
61
|
activeSquads: {
|
|
62
62
|
activeInbounds: string[];
|
|
63
63
|
squadName: string;
|
|
@@ -68,9 +68,9 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
68
68
|
userUuid: string;
|
|
69
69
|
activeNodes: {
|
|
70
70
|
uuid: string;
|
|
71
|
+
nodeName: string;
|
|
71
72
|
countryCode: string;
|
|
72
73
|
configProfileUuid: string;
|
|
73
|
-
nodeName: string;
|
|
74
74
|
activeSquads: {
|
|
75
75
|
activeInbounds: string[];
|
|
76
76
|
squadName: string;
|
|
@@ -83,9 +83,9 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
83
83
|
userUuid: string;
|
|
84
84
|
activeNodes: {
|
|
85
85
|
uuid: string;
|
|
86
|
+
nodeName: string;
|
|
86
87
|
countryCode: string;
|
|
87
88
|
configProfileUuid: string;
|
|
88
|
-
nodeName: string;
|
|
89
89
|
activeSquads: {
|
|
90
90
|
activeInbounds: string[];
|
|
91
91
|
squadName: string;
|
|
@@ -98,9 +98,9 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
98
98
|
userUuid: string;
|
|
99
99
|
activeNodes: {
|
|
100
100
|
uuid: string;
|
|
101
|
+
nodeName: string;
|
|
101
102
|
countryCode: string;
|
|
102
103
|
configProfileUuid: string;
|
|
103
|
-
nodeName: string;
|
|
104
104
|
activeSquads: {
|
|
105
105
|
activeInbounds: string[];
|
|
106
106
|
squadName: string;
|
|
@@ -8,7 +8,6 @@ export * from './get-by';
|
|
|
8
8
|
export * from './get-user-accessible-nodes.command';
|
|
9
9
|
export * from './get-user-by-uuid.command';
|
|
10
10
|
export * from './get-user-subscription-request-history.command';
|
|
11
|
-
export * from './get-user-usage-by-range.command';
|
|
12
11
|
export * from './tags';
|
|
13
12
|
export * from './update-user.command';
|
|
14
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AAEzB,cAAc,qCAAqC,CAAC;AAEpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iDAAiD,CAAC;AAEhE,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AAEzB,cAAc,qCAAqC,CAAC;AAEpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iDAAiD,CAAC;AAEhE,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC"}
|
|
@@ -24,6 +24,5 @@ __exportStar(require("./get-by"), exports);
|
|
|
24
24
|
__exportStar(require("./get-user-accessible-nodes.command"), exports);
|
|
25
25
|
__exportStar(require("./get-user-by-uuid.command"), exports);
|
|
26
26
|
__exportStar(require("./get-user-subscription-request-history.command"), exports);
|
|
27
|
-
__exportStar(require("./get-user-usage-by-range.command"), exports);
|
|
28
27
|
__exportStar(require("./tags"), exports);
|
|
29
28
|
__exportStar(require("./update-user.command"), exports);
|
|
@@ -38,12 +38,12 @@ export declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
38
38
|
countryCode: z.ZodString;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
40
|
uuid: string;
|
|
41
|
-
name: string;
|
|
42
41
|
countryCode: string;
|
|
42
|
+
name: string;
|
|
43
43
|
}, {
|
|
44
44
|
uuid: string;
|
|
45
|
-
name: string;
|
|
46
45
|
countryCode: string;
|
|
46
|
+
name: string;
|
|
47
47
|
}>, "many">;
|
|
48
48
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
49
49
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
@@ -60,8 +60,8 @@ export declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
60
60
|
}[];
|
|
61
61
|
nodes: {
|
|
62
62
|
uuid: string;
|
|
63
|
-
name: string;
|
|
64
63
|
countryCode: string;
|
|
64
|
+
name: string;
|
|
65
65
|
}[];
|
|
66
66
|
uuid: string;
|
|
67
67
|
createdAt: Date;
|
|
@@ -82,8 +82,8 @@ export declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
82
82
|
}[];
|
|
83
83
|
nodes: {
|
|
84
84
|
uuid: string;
|
|
85
|
-
name: string;
|
|
86
85
|
countryCode: string;
|
|
86
|
+
name: string;
|
|
87
87
|
}[];
|
|
88
88
|
uuid: string;
|
|
89
89
|
createdAt: string;
|
|
@@ -104,13 +104,13 @@ export declare const InfraBillingAvailableNodeSchema: import("zod").ZodObject<Pi
|
|
|
104
104
|
faviconLink: string | null;
|
|
105
105
|
loginUrl: string | null;
|
|
106
106
|
}>>;
|
|
107
|
-
}, "uuid" | "
|
|
107
|
+
}, "uuid" | "countryCode" | "name">, "strip", import("zod").ZodTypeAny, {
|
|
108
108
|
uuid: string;
|
|
109
|
-
name: string;
|
|
110
109
|
countryCode: string;
|
|
110
|
+
name: string;
|
|
111
111
|
}, {
|
|
112
112
|
uuid: string;
|
|
113
|
-
name: string;
|
|
114
113
|
countryCode: string;
|
|
114
|
+
name: string;
|
|
115
115
|
}>;
|
|
116
116
|
//# sourceMappingURL=infra-billing-available-node.schema.d.ts.map
|
|
@@ -127,14 +127,14 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
|
|
|
127
127
|
faviconLink: string | null;
|
|
128
128
|
loginUrl: string | null;
|
|
129
129
|
}>>;
|
|
130
|
-
}, "uuid" | "
|
|
130
|
+
}, "uuid" | "countryCode" | "name">, "strip", z.ZodTypeAny, {
|
|
131
131
|
uuid: string;
|
|
132
|
-
name: string;
|
|
133
132
|
countryCode: string;
|
|
133
|
+
name: string;
|
|
134
134
|
}, {
|
|
135
135
|
uuid: string;
|
|
136
|
-
name: string;
|
|
137
136
|
countryCode: string;
|
|
137
|
+
name: string;
|
|
138
138
|
}>;
|
|
139
139
|
nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
140
140
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
@@ -153,8 +153,8 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
|
|
|
153
153
|
providerUuid: string;
|
|
154
154
|
node: {
|
|
155
155
|
uuid: string;
|
|
156
|
-
name: string;
|
|
157
156
|
countryCode: string;
|
|
157
|
+
name: string;
|
|
158
158
|
};
|
|
159
159
|
nextBillingAt: Date;
|
|
160
160
|
}, {
|
|
@@ -171,8 +171,8 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
|
|
|
171
171
|
providerUuid: string;
|
|
172
172
|
node: {
|
|
173
173
|
uuid: string;
|
|
174
|
-
name: string;
|
|
175
174
|
countryCode: string;
|
|
175
|
+
name: string;
|
|
176
176
|
};
|
|
177
177
|
nextBillingAt: string;
|
|
178
178
|
}>;
|
|
@@ -21,13 +21,13 @@ export declare const InfraProviderSchema: z.ZodObject<{
|
|
|
21
21
|
name: z.ZodString;
|
|
22
22
|
countryCode: z.ZodString;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
name: string;
|
|
25
|
-
countryCode: string;
|
|
26
24
|
nodeUuid: string;
|
|
27
|
-
}, {
|
|
28
|
-
name: string;
|
|
29
25
|
countryCode: string;
|
|
26
|
+
name: string;
|
|
27
|
+
}, {
|
|
30
28
|
nodeUuid: string;
|
|
29
|
+
countryCode: string;
|
|
30
|
+
name: string;
|
|
31
31
|
}>, "many">;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
33
|
uuid: string;
|
|
@@ -41,9 +41,9 @@ export declare const InfraProviderSchema: z.ZodObject<{
|
|
|
41
41
|
totalBills: number;
|
|
42
42
|
};
|
|
43
43
|
billingNodes: {
|
|
44
|
-
name: string;
|
|
45
|
-
countryCode: string;
|
|
46
44
|
nodeUuid: string;
|
|
45
|
+
countryCode: string;
|
|
46
|
+
name: string;
|
|
47
47
|
}[];
|
|
48
48
|
}, {
|
|
49
49
|
uuid: string;
|
|
@@ -57,9 +57,9 @@ export declare const InfraProviderSchema: z.ZodObject<{
|
|
|
57
57
|
totalBills: number;
|
|
58
58
|
};
|
|
59
59
|
billingNodes: {
|
|
60
|
-
name: string;
|
|
61
|
-
countryCode: string;
|
|
62
60
|
nodeUuid: string;
|
|
61
|
+
countryCode: string;
|
|
62
|
+
name: string;
|
|
63
63
|
}[];
|
|
64
64
|
}>;
|
|
65
65
|
export declare const PartialInfraProviderSchema: z.ZodObject<{
|
|
@@ -4,12 +4,12 @@ export declare const LastConnectedNodeSchema: z.ZodNullable<z.ZodObject<{
|
|
|
4
4
|
nodeName: z.ZodString;
|
|
5
5
|
countryCode: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
nodeName: string;
|
|
7
8
|
countryCode: string;
|
|
8
9
|
connectedAt: Date;
|
|
9
|
-
nodeName: string;
|
|
10
10
|
}, {
|
|
11
|
+
nodeName: string;
|
|
11
12
|
countryCode: string;
|
|
12
13
|
connectedAt: string;
|
|
13
|
-
nodeName: string;
|
|
14
14
|
}>>;
|
|
15
15
|
//# sourceMappingURL=last-connected-node.schema.d.ts.map
|
|
@@ -118,10 +118,10 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
118
118
|
faviconLink: string | null;
|
|
119
119
|
loginUrl: string | null;
|
|
120
120
|
} | null;
|
|
121
|
+
countryCode: string;
|
|
121
122
|
name: string;
|
|
122
123
|
port: number | null;
|
|
123
124
|
viewPosition: number;
|
|
124
|
-
countryCode: string;
|
|
125
125
|
trafficLimitBytes: number | null;
|
|
126
126
|
address: string;
|
|
127
127
|
isDisabled: boolean;
|
|
@@ -168,10 +168,10 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
168
168
|
faviconLink: string | null;
|
|
169
169
|
loginUrl: string | null;
|
|
170
170
|
} | null;
|
|
171
|
+
countryCode: string;
|
|
171
172
|
name: string;
|
|
172
173
|
port: number | null;
|
|
173
174
|
viewPosition: number;
|
|
174
|
-
countryCode: string;
|
|
175
175
|
trafficLimitBytes: number | null;
|
|
176
176
|
address: string;
|
|
177
177
|
isDisabled: boolean;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BANDWIDTH_STATS_ROUTES = exports.BANDWIDTH_STATS_USERS_CONTROLLER = exports.BANDWIDTH_STATS_NODES_CONTROLLER = exports.BANDWIDTH_STATS_CONTROLLER = void 0;
|
|
4
|
+
exports.BANDWIDTH_STATS_CONTROLLER = 'bandwidth-stats';
|
|
5
|
+
exports.BANDWIDTH_STATS_NODES_CONTROLLER = `${exports.BANDWIDTH_STATS_CONTROLLER}/nodes`;
|
|
6
|
+
exports.BANDWIDTH_STATS_USERS_CONTROLLER = `${exports.BANDWIDTH_STATS_CONTROLLER}/users`;
|
|
7
|
+
// Variants:
|
|
8
|
+
// 1. Nodes -> Metrics
|
|
9
|
+
// 2. Nodes -> Management -> Show usage (!need legacy)
|
|
10
|
+
// 3. Users -> User -> Show Usage (!need legacy)
|
|
11
|
+
exports.BANDWIDTH_STATS_ROUTES = {
|
|
12
|
+
NODES: {
|
|
13
|
+
// GET /bandwidth-stats/nodes –– Nodes -> Metrics
|
|
14
|
+
GET: '',
|
|
15
|
+
// GET /bandwidth-stats/nodes/realtime –– Nodes -> Management -> Metric Cards
|
|
16
|
+
GET_REALTIME: 'realtime',
|
|
17
|
+
// GET /bandwidth-stats/nodes/:nodeUuid/users –– Nodes -> Management -> Show usage
|
|
18
|
+
GET_USERS: (uuid) => `${uuid}/users`,
|
|
19
|
+
},
|
|
20
|
+
USERS: {
|
|
21
|
+
// GET /bandwidth-stats/users/:userUuid –– Users -> User -> Show Usage
|
|
22
|
+
GET_BY_UUID: (uuid) => `${uuid}`,
|
|
23
|
+
},
|
|
24
|
+
LEGACY: {
|
|
25
|
+
NODES: {
|
|
26
|
+
// GET /bandwidth-stats/nodes/:nodeUuid/users/legacy –– Nodes -> Management -> Show usage (legacy)
|
|
27
|
+
GET_USERS: (uuid) => `${uuid}/users/legacy`,
|
|
28
|
+
},
|
|
29
|
+
USERS: {
|
|
30
|
+
// GET /bandwidth-stats/users/:userUuid/legacy –– Users -> User -> Show Usage (legacy)
|
|
31
|
+
GET_BY_UUID: (uuid) => `${uuid}/legacy`,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./api-tokens"), exports);
|
|
18
18
|
__exportStar(require("./auth"), exports);
|
|
19
|
+
__exportStar(require("./bandwidth-stats"), exports);
|
|
19
20
|
__exportStar(require("./config-profiles"), exports);
|
|
20
21
|
__exportStar(require("./external-squads"), exports);
|
|
21
22
|
__exportStar(require("./hosts"), exports);
|
|
@@ -21,11 +21,6 @@ exports.NODES_ROUTES = {
|
|
|
21
21
|
BULK_ACTIONS: {
|
|
22
22
|
PROFILE_MODIFICATION: `${BULK_ACTIONS_ROUTE}/profile-modification`,
|
|
23
23
|
},
|
|
24
|
-
STATS: {
|
|
25
|
-
USAGE_BY_RANGE: 'usage/range',
|
|
26
|
-
USAGE_BY_RANGE_USER: (uuid) => `usage/${uuid}/users/range`,
|
|
27
|
-
USAGE_REALTIME: 'usage/realtime',
|
|
28
|
-
},
|
|
29
24
|
TAGS: {
|
|
30
25
|
GET: 'tags',
|
|
31
26
|
},
|
|
@@ -22,10 +22,6 @@ exports.CONTROLLERS_INFO = {
|
|
|
22
22
|
tag: 'Users Bulk Actions Controller',
|
|
23
23
|
description: 'Bulk actions with users.',
|
|
24
24
|
},
|
|
25
|
-
USERS_STATS: {
|
|
26
|
-
tag: 'Users Stats Controller',
|
|
27
|
-
description: '',
|
|
28
|
-
},
|
|
29
25
|
HWID_USER_DEVICES: {
|
|
30
26
|
tag: 'HWID User Devices Controller',
|
|
31
27
|
description: '',
|
|
@@ -38,6 +34,14 @@ exports.CONTROLLERS_INFO = {
|
|
|
38
34
|
tag: '[Protected] Subscriptions Controller',
|
|
39
35
|
description: 'Methods of this controller are protected with auth, most of them is returning the same informations as public Subscription Controller.',
|
|
40
36
|
},
|
|
37
|
+
NODES: {
|
|
38
|
+
tag: 'Nodes Controller',
|
|
39
|
+
description: '',
|
|
40
|
+
},
|
|
41
|
+
BANDWIDTH_STATS: {
|
|
42
|
+
tag: 'Bandwidth Stats Controller',
|
|
43
|
+
description: '',
|
|
44
|
+
},
|
|
41
45
|
CONFIG_PROFILES: {
|
|
42
46
|
tag: 'Config Profiles Controller',
|
|
43
47
|
description: 'Management of Config Profiles.',
|
|
@@ -50,10 +54,6 @@ exports.CONTROLLERS_INFO = {
|
|
|
50
54
|
tag: 'External Squads Controller',
|
|
51
55
|
description: 'Management of External Squads.',
|
|
52
56
|
},
|
|
53
|
-
NODES: {
|
|
54
|
-
tag: 'Nodes Controller',
|
|
55
|
-
description: '',
|
|
56
|
-
},
|
|
57
57
|
HOSTS: {
|
|
58
58
|
tag: 'Hosts Controller',
|
|
59
59
|
description: '',
|
|
@@ -78,10 +78,6 @@ exports.CONTROLLERS_INFO = {
|
|
|
78
78
|
tag: 'System Controller',
|
|
79
79
|
description: '',
|
|
80
80
|
},
|
|
81
|
-
BANDWIDTH_STATS: {
|
|
82
|
-
tag: 'Bandwidth Stats Controller',
|
|
83
|
-
description: '',
|
|
84
|
-
},
|
|
85
81
|
KEYGEN: {
|
|
86
82
|
tag: 'Keygen Controller',
|
|
87
83
|
description: 'Generation of SSL_CERT for Remnawave Node.',
|