@remnawave/backend-contract 2.3.2 → 2.3.3
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/commands/internal-squads/get-internal-squad-accessible-nodes.command.d.ts +6 -6
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/stats/get-realtime-usage.command.d.ts +4 -4
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +52 -71
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts +6 -6
- package/build/backend/commands/users/actions/disable-user.command.d.ts +40 -53
- 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 +40 -53
- 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 +40 -53
- 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 +40 -53
- 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 +40 -53
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-all-users.command.d.ts +52 -71
- 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 +40 -53
- 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 +40 -53
- 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 +40 -53
- 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 +40 -53
- 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 +40 -53
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +6 -6
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +40 -53
- 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 +4 -4
- package/build/backend/commands/users/update-user.command.d.ts +40 -53
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/models/extended-users.schema.d.ts +28 -35
- package/build/backend/models/extended-users.schema.d.ts.map +1 -1
- package/build/backend/models/extended-users.schema.js +12 -2
- package/build/backend/models/users.schema.d.ts +0 -12
- package/build/backend/models/users.schema.d.ts.map +1 -1
- package/build/backend/models/users.schema.js +0 -10
- package/build/frontend/models/extended-users.schema.js +12 -2
- package/build/frontend/models/users.schema.js +0 -10
- package/package.json +1 -1
|
@@ -22,8 +22,6 @@ export declare namespace DisableUserCommand {
|
|
|
22
22
|
readonly LIMITED: "LIMITED";
|
|
23
23
|
readonly EXPIRED: "EXPIRED";
|
|
24
24
|
}>>;
|
|
25
|
-
usedTrafficBytes: z.ZodNumber;
|
|
26
|
-
lifetimeUsedTrafficBytes: z.ZodNumber;
|
|
27
25
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
|
28
26
|
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
|
29
27
|
readonly NO_RESET: "NO_RESET";
|
|
@@ -34,7 +32,6 @@ export declare namespace DisableUserCommand {
|
|
|
34
32
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
|
35
33
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
36
34
|
expireAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
37
|
-
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
38
35
|
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
39
36
|
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
40
37
|
trojanPassword: z.ZodString;
|
|
@@ -45,7 +42,6 @@ export declare namespace DisableUserCommand {
|
|
|
45
42
|
telegramId: z.ZodNullable<z.ZodNumber>;
|
|
46
43
|
email: z.ZodNullable<z.ZodString>;
|
|
47
44
|
hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
48
|
-
firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
49
45
|
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
|
50
46
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
51
47
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
@@ -62,19 +58,6 @@ export declare namespace DisableUserCommand {
|
|
|
62
58
|
externalSquadUuid: z.ZodNullable<z.ZodString>;
|
|
63
59
|
} & {
|
|
64
60
|
subscriptionUrl: z.ZodString;
|
|
65
|
-
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
|
66
|
-
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
67
|
-
nodeName: z.ZodString;
|
|
68
|
-
countryCode: z.ZodString;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
countryCode: string;
|
|
71
|
-
connectedAt: Date;
|
|
72
|
-
nodeName: string;
|
|
73
|
-
}, {
|
|
74
|
-
countryCode: string;
|
|
75
|
-
connectedAt: string;
|
|
76
|
-
nodeName: string;
|
|
77
|
-
}>>;
|
|
78
61
|
happ: z.ZodObject<{
|
|
79
62
|
cryptoLink: z.ZodString;
|
|
80
63
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -82,6 +65,22 @@ export declare namespace DisableUserCommand {
|
|
|
82
65
|
}, {
|
|
83
66
|
cryptoLink: string;
|
|
84
67
|
}>;
|
|
68
|
+
userTraffic: z.ZodObject<{
|
|
69
|
+
usedTrafficBytes: z.ZodNumber;
|
|
70
|
+
lifetimeUsedTrafficBytes: z.ZodNumber;
|
|
71
|
+
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
72
|
+
firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
usedTrafficBytes: number;
|
|
75
|
+
lifetimeUsedTrafficBytes: number;
|
|
76
|
+
onlineAt: Date | null;
|
|
77
|
+
firstConnectedAt: Date | null;
|
|
78
|
+
}, {
|
|
79
|
+
usedTrafficBytes: number;
|
|
80
|
+
lifetimeUsedTrafficBytes: number;
|
|
81
|
+
onlineAt: string | null;
|
|
82
|
+
firstConnectedAt: string | null;
|
|
83
|
+
}>;
|
|
85
84
|
}, "strip", z.ZodTypeAny, {
|
|
86
85
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
|
87
86
|
uuid: string;
|
|
@@ -90,15 +89,12 @@ export declare namespace DisableUserCommand {
|
|
|
90
89
|
username: string;
|
|
91
90
|
tag: string | null;
|
|
92
91
|
shortUuid: string;
|
|
93
|
-
usedTrafficBytes: number;
|
|
94
|
-
lifetimeUsedTrafficBytes: number;
|
|
95
92
|
trafficLimitBytes: number;
|
|
96
93
|
description: string | null;
|
|
97
94
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
98
95
|
subLastUserAgent: string | null;
|
|
99
96
|
subLastOpenedAt: Date | null;
|
|
100
97
|
expireAt: Date;
|
|
101
|
-
onlineAt: Date | null;
|
|
102
98
|
subRevokedAt: Date | null;
|
|
103
99
|
lastTrafficResetAt: Date | null;
|
|
104
100
|
trojanPassword: string;
|
|
@@ -107,7 +103,6 @@ export declare namespace DisableUserCommand {
|
|
|
107
103
|
telegramId: number | null;
|
|
108
104
|
email: string | null;
|
|
109
105
|
hwidDeviceLimit: number | null;
|
|
110
|
-
firstConnectedAt: Date | null;
|
|
111
106
|
lastTriggeredThreshold: number;
|
|
112
107
|
activeInternalSquads: {
|
|
113
108
|
uuid: string;
|
|
@@ -115,14 +110,15 @@ export declare namespace DisableUserCommand {
|
|
|
115
110
|
}[];
|
|
116
111
|
externalSquadUuid: string | null;
|
|
117
112
|
subscriptionUrl: string;
|
|
118
|
-
lastConnectedNode: {
|
|
119
|
-
countryCode: string;
|
|
120
|
-
connectedAt: Date;
|
|
121
|
-
nodeName: string;
|
|
122
|
-
} | null;
|
|
123
113
|
happ: {
|
|
124
114
|
cryptoLink: string;
|
|
125
115
|
};
|
|
116
|
+
userTraffic: {
|
|
117
|
+
usedTrafficBytes: number;
|
|
118
|
+
lifetimeUsedTrafficBytes: number;
|
|
119
|
+
onlineAt: Date | null;
|
|
120
|
+
firstConnectedAt: Date | null;
|
|
121
|
+
};
|
|
126
122
|
}, {
|
|
127
123
|
uuid: string;
|
|
128
124
|
createdAt: string;
|
|
@@ -130,13 +126,10 @@ export declare namespace DisableUserCommand {
|
|
|
130
126
|
username: string;
|
|
131
127
|
tag: string | null;
|
|
132
128
|
shortUuid: string;
|
|
133
|
-
usedTrafficBytes: number;
|
|
134
|
-
lifetimeUsedTrafficBytes: number;
|
|
135
129
|
description: string | null;
|
|
136
130
|
subLastUserAgent: string | null;
|
|
137
131
|
subLastOpenedAt: string | null;
|
|
138
132
|
expireAt: string;
|
|
139
|
-
onlineAt: string | null;
|
|
140
133
|
subRevokedAt: string | null;
|
|
141
134
|
lastTrafficResetAt: string | null;
|
|
142
135
|
trojanPassword: string;
|
|
@@ -145,21 +138,21 @@ export declare namespace DisableUserCommand {
|
|
|
145
138
|
telegramId: number | null;
|
|
146
139
|
email: string | null;
|
|
147
140
|
hwidDeviceLimit: number | null;
|
|
148
|
-
firstConnectedAt: string | null;
|
|
149
141
|
activeInternalSquads: {
|
|
150
142
|
uuid: string;
|
|
151
143
|
name: string;
|
|
152
144
|
}[];
|
|
153
145
|
externalSquadUuid: string | null;
|
|
154
146
|
subscriptionUrl: string;
|
|
155
|
-
lastConnectedNode: {
|
|
156
|
-
countryCode: string;
|
|
157
|
-
connectedAt: string;
|
|
158
|
-
nodeName: string;
|
|
159
|
-
} | null;
|
|
160
147
|
happ: {
|
|
161
148
|
cryptoLink: string;
|
|
162
149
|
};
|
|
150
|
+
userTraffic: {
|
|
151
|
+
usedTrafficBytes: number;
|
|
152
|
+
lifetimeUsedTrafficBytes: number;
|
|
153
|
+
onlineAt: string | null;
|
|
154
|
+
firstConnectedAt: string | null;
|
|
155
|
+
};
|
|
163
156
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
164
157
|
trafficLimitBytes?: number | undefined;
|
|
165
158
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
@@ -174,15 +167,12 @@ export declare namespace DisableUserCommand {
|
|
|
174
167
|
username: string;
|
|
175
168
|
tag: string | null;
|
|
176
169
|
shortUuid: string;
|
|
177
|
-
usedTrafficBytes: number;
|
|
178
|
-
lifetimeUsedTrafficBytes: number;
|
|
179
170
|
trafficLimitBytes: number;
|
|
180
171
|
description: string | null;
|
|
181
172
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
182
173
|
subLastUserAgent: string | null;
|
|
183
174
|
subLastOpenedAt: Date | null;
|
|
184
175
|
expireAt: Date;
|
|
185
|
-
onlineAt: Date | null;
|
|
186
176
|
subRevokedAt: Date | null;
|
|
187
177
|
lastTrafficResetAt: Date | null;
|
|
188
178
|
trojanPassword: string;
|
|
@@ -191,7 +181,6 @@ export declare namespace DisableUserCommand {
|
|
|
191
181
|
telegramId: number | null;
|
|
192
182
|
email: string | null;
|
|
193
183
|
hwidDeviceLimit: number | null;
|
|
194
|
-
firstConnectedAt: Date | null;
|
|
195
184
|
lastTriggeredThreshold: number;
|
|
196
185
|
activeInternalSquads: {
|
|
197
186
|
uuid: string;
|
|
@@ -199,14 +188,15 @@ export declare namespace DisableUserCommand {
|
|
|
199
188
|
}[];
|
|
200
189
|
externalSquadUuid: string | null;
|
|
201
190
|
subscriptionUrl: string;
|
|
202
|
-
lastConnectedNode: {
|
|
203
|
-
countryCode: string;
|
|
204
|
-
connectedAt: Date;
|
|
205
|
-
nodeName: string;
|
|
206
|
-
} | null;
|
|
207
191
|
happ: {
|
|
208
192
|
cryptoLink: string;
|
|
209
193
|
};
|
|
194
|
+
userTraffic: {
|
|
195
|
+
usedTrafficBytes: number;
|
|
196
|
+
lifetimeUsedTrafficBytes: number;
|
|
197
|
+
onlineAt: Date | null;
|
|
198
|
+
firstConnectedAt: Date | null;
|
|
199
|
+
};
|
|
210
200
|
};
|
|
211
201
|
}, {
|
|
212
202
|
response: {
|
|
@@ -216,13 +206,10 @@ export declare namespace DisableUserCommand {
|
|
|
216
206
|
username: string;
|
|
217
207
|
tag: string | null;
|
|
218
208
|
shortUuid: string;
|
|
219
|
-
usedTrafficBytes: number;
|
|
220
|
-
lifetimeUsedTrafficBytes: number;
|
|
221
209
|
description: string | null;
|
|
222
210
|
subLastUserAgent: string | null;
|
|
223
211
|
subLastOpenedAt: string | null;
|
|
224
212
|
expireAt: string;
|
|
225
|
-
onlineAt: string | null;
|
|
226
213
|
subRevokedAt: string | null;
|
|
227
214
|
lastTrafficResetAt: string | null;
|
|
228
215
|
trojanPassword: string;
|
|
@@ -231,21 +218,21 @@ export declare namespace DisableUserCommand {
|
|
|
231
218
|
telegramId: number | null;
|
|
232
219
|
email: string | null;
|
|
233
220
|
hwidDeviceLimit: number | null;
|
|
234
|
-
firstConnectedAt: string | null;
|
|
235
221
|
activeInternalSquads: {
|
|
236
222
|
uuid: string;
|
|
237
223
|
name: string;
|
|
238
224
|
}[];
|
|
239
225
|
externalSquadUuid: string | null;
|
|
240
226
|
subscriptionUrl: string;
|
|
241
|
-
lastConnectedNode: {
|
|
242
|
-
countryCode: string;
|
|
243
|
-
connectedAt: string;
|
|
244
|
-
nodeName: string;
|
|
245
|
-
} | null;
|
|
246
227
|
happ: {
|
|
247
228
|
cryptoLink: string;
|
|
248
229
|
};
|
|
230
|
+
userTraffic: {
|
|
231
|
+
usedTrafficBytes: number;
|
|
232
|
+
lifetimeUsedTrafficBytes: number;
|
|
233
|
+
onlineAt: string | null;
|
|
234
|
+
firstConnectedAt: string | null;
|
|
235
|
+
};
|
|
249
236
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
250
237
|
trafficLimitBytes?: number | undefined;
|
|
251
238
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable-user.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/disable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAI3B,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":"disable-user.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/disable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAI3B,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"}
|
|
@@ -22,8 +22,6 @@ export declare namespace EnableUserCommand {
|
|
|
22
22
|
readonly LIMITED: "LIMITED";
|
|
23
23
|
readonly EXPIRED: "EXPIRED";
|
|
24
24
|
}>>;
|
|
25
|
-
usedTrafficBytes: z.ZodNumber;
|
|
26
|
-
lifetimeUsedTrafficBytes: z.ZodNumber;
|
|
27
25
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
|
28
26
|
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
|
29
27
|
readonly NO_RESET: "NO_RESET";
|
|
@@ -34,7 +32,6 @@ export declare namespace EnableUserCommand {
|
|
|
34
32
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
|
35
33
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
36
34
|
expireAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
37
|
-
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
38
35
|
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
39
36
|
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
40
37
|
trojanPassword: z.ZodString;
|
|
@@ -45,7 +42,6 @@ export declare namespace EnableUserCommand {
|
|
|
45
42
|
telegramId: z.ZodNullable<z.ZodNumber>;
|
|
46
43
|
email: z.ZodNullable<z.ZodString>;
|
|
47
44
|
hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
48
|
-
firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
49
45
|
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
|
50
46
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
51
47
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
@@ -62,19 +58,6 @@ export declare namespace EnableUserCommand {
|
|
|
62
58
|
externalSquadUuid: z.ZodNullable<z.ZodString>;
|
|
63
59
|
} & {
|
|
64
60
|
subscriptionUrl: z.ZodString;
|
|
65
|
-
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
|
66
|
-
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
67
|
-
nodeName: z.ZodString;
|
|
68
|
-
countryCode: z.ZodString;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
countryCode: string;
|
|
71
|
-
connectedAt: Date;
|
|
72
|
-
nodeName: string;
|
|
73
|
-
}, {
|
|
74
|
-
countryCode: string;
|
|
75
|
-
connectedAt: string;
|
|
76
|
-
nodeName: string;
|
|
77
|
-
}>>;
|
|
78
61
|
happ: z.ZodObject<{
|
|
79
62
|
cryptoLink: z.ZodString;
|
|
80
63
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -82,6 +65,22 @@ export declare namespace EnableUserCommand {
|
|
|
82
65
|
}, {
|
|
83
66
|
cryptoLink: string;
|
|
84
67
|
}>;
|
|
68
|
+
userTraffic: z.ZodObject<{
|
|
69
|
+
usedTrafficBytes: z.ZodNumber;
|
|
70
|
+
lifetimeUsedTrafficBytes: z.ZodNumber;
|
|
71
|
+
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
72
|
+
firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
usedTrafficBytes: number;
|
|
75
|
+
lifetimeUsedTrafficBytes: number;
|
|
76
|
+
onlineAt: Date | null;
|
|
77
|
+
firstConnectedAt: Date | null;
|
|
78
|
+
}, {
|
|
79
|
+
usedTrafficBytes: number;
|
|
80
|
+
lifetimeUsedTrafficBytes: number;
|
|
81
|
+
onlineAt: string | null;
|
|
82
|
+
firstConnectedAt: string | null;
|
|
83
|
+
}>;
|
|
85
84
|
}, "strip", z.ZodTypeAny, {
|
|
86
85
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
|
87
86
|
uuid: string;
|
|
@@ -90,15 +89,12 @@ export declare namespace EnableUserCommand {
|
|
|
90
89
|
username: string;
|
|
91
90
|
tag: string | null;
|
|
92
91
|
shortUuid: string;
|
|
93
|
-
usedTrafficBytes: number;
|
|
94
|
-
lifetimeUsedTrafficBytes: number;
|
|
95
92
|
trafficLimitBytes: number;
|
|
96
93
|
description: string | null;
|
|
97
94
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
98
95
|
subLastUserAgent: string | null;
|
|
99
96
|
subLastOpenedAt: Date | null;
|
|
100
97
|
expireAt: Date;
|
|
101
|
-
onlineAt: Date | null;
|
|
102
98
|
subRevokedAt: Date | null;
|
|
103
99
|
lastTrafficResetAt: Date | null;
|
|
104
100
|
trojanPassword: string;
|
|
@@ -107,7 +103,6 @@ export declare namespace EnableUserCommand {
|
|
|
107
103
|
telegramId: number | null;
|
|
108
104
|
email: string | null;
|
|
109
105
|
hwidDeviceLimit: number | null;
|
|
110
|
-
firstConnectedAt: Date | null;
|
|
111
106
|
lastTriggeredThreshold: number;
|
|
112
107
|
activeInternalSquads: {
|
|
113
108
|
uuid: string;
|
|
@@ -115,14 +110,15 @@ export declare namespace EnableUserCommand {
|
|
|
115
110
|
}[];
|
|
116
111
|
externalSquadUuid: string | null;
|
|
117
112
|
subscriptionUrl: string;
|
|
118
|
-
lastConnectedNode: {
|
|
119
|
-
countryCode: string;
|
|
120
|
-
connectedAt: Date;
|
|
121
|
-
nodeName: string;
|
|
122
|
-
} | null;
|
|
123
113
|
happ: {
|
|
124
114
|
cryptoLink: string;
|
|
125
115
|
};
|
|
116
|
+
userTraffic: {
|
|
117
|
+
usedTrafficBytes: number;
|
|
118
|
+
lifetimeUsedTrafficBytes: number;
|
|
119
|
+
onlineAt: Date | null;
|
|
120
|
+
firstConnectedAt: Date | null;
|
|
121
|
+
};
|
|
126
122
|
}, {
|
|
127
123
|
uuid: string;
|
|
128
124
|
createdAt: string;
|
|
@@ -130,13 +126,10 @@ export declare namespace EnableUserCommand {
|
|
|
130
126
|
username: string;
|
|
131
127
|
tag: string | null;
|
|
132
128
|
shortUuid: string;
|
|
133
|
-
usedTrafficBytes: number;
|
|
134
|
-
lifetimeUsedTrafficBytes: number;
|
|
135
129
|
description: string | null;
|
|
136
130
|
subLastUserAgent: string | null;
|
|
137
131
|
subLastOpenedAt: string | null;
|
|
138
132
|
expireAt: string;
|
|
139
|
-
onlineAt: string | null;
|
|
140
133
|
subRevokedAt: string | null;
|
|
141
134
|
lastTrafficResetAt: string | null;
|
|
142
135
|
trojanPassword: string;
|
|
@@ -145,21 +138,21 @@ export declare namespace EnableUserCommand {
|
|
|
145
138
|
telegramId: number | null;
|
|
146
139
|
email: string | null;
|
|
147
140
|
hwidDeviceLimit: number | null;
|
|
148
|
-
firstConnectedAt: string | null;
|
|
149
141
|
activeInternalSquads: {
|
|
150
142
|
uuid: string;
|
|
151
143
|
name: string;
|
|
152
144
|
}[];
|
|
153
145
|
externalSquadUuid: string | null;
|
|
154
146
|
subscriptionUrl: string;
|
|
155
|
-
lastConnectedNode: {
|
|
156
|
-
countryCode: string;
|
|
157
|
-
connectedAt: string;
|
|
158
|
-
nodeName: string;
|
|
159
|
-
} | null;
|
|
160
147
|
happ: {
|
|
161
148
|
cryptoLink: string;
|
|
162
149
|
};
|
|
150
|
+
userTraffic: {
|
|
151
|
+
usedTrafficBytes: number;
|
|
152
|
+
lifetimeUsedTrafficBytes: number;
|
|
153
|
+
onlineAt: string | null;
|
|
154
|
+
firstConnectedAt: string | null;
|
|
155
|
+
};
|
|
163
156
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
164
157
|
trafficLimitBytes?: number | undefined;
|
|
165
158
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
@@ -174,15 +167,12 @@ export declare namespace EnableUserCommand {
|
|
|
174
167
|
username: string;
|
|
175
168
|
tag: string | null;
|
|
176
169
|
shortUuid: string;
|
|
177
|
-
usedTrafficBytes: number;
|
|
178
|
-
lifetimeUsedTrafficBytes: number;
|
|
179
170
|
trafficLimitBytes: number;
|
|
180
171
|
description: string | null;
|
|
181
172
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
182
173
|
subLastUserAgent: string | null;
|
|
183
174
|
subLastOpenedAt: Date | null;
|
|
184
175
|
expireAt: Date;
|
|
185
|
-
onlineAt: Date | null;
|
|
186
176
|
subRevokedAt: Date | null;
|
|
187
177
|
lastTrafficResetAt: Date | null;
|
|
188
178
|
trojanPassword: string;
|
|
@@ -191,7 +181,6 @@ export declare namespace EnableUserCommand {
|
|
|
191
181
|
telegramId: number | null;
|
|
192
182
|
email: string | null;
|
|
193
183
|
hwidDeviceLimit: number | null;
|
|
194
|
-
firstConnectedAt: Date | null;
|
|
195
184
|
lastTriggeredThreshold: number;
|
|
196
185
|
activeInternalSquads: {
|
|
197
186
|
uuid: string;
|
|
@@ -199,14 +188,15 @@ export declare namespace EnableUserCommand {
|
|
|
199
188
|
}[];
|
|
200
189
|
externalSquadUuid: string | null;
|
|
201
190
|
subscriptionUrl: string;
|
|
202
|
-
lastConnectedNode: {
|
|
203
|
-
countryCode: string;
|
|
204
|
-
connectedAt: Date;
|
|
205
|
-
nodeName: string;
|
|
206
|
-
} | null;
|
|
207
191
|
happ: {
|
|
208
192
|
cryptoLink: string;
|
|
209
193
|
};
|
|
194
|
+
userTraffic: {
|
|
195
|
+
usedTrafficBytes: number;
|
|
196
|
+
lifetimeUsedTrafficBytes: number;
|
|
197
|
+
onlineAt: Date | null;
|
|
198
|
+
firstConnectedAt: Date | null;
|
|
199
|
+
};
|
|
210
200
|
};
|
|
211
201
|
}, {
|
|
212
202
|
response: {
|
|
@@ -216,13 +206,10 @@ export declare namespace EnableUserCommand {
|
|
|
216
206
|
username: string;
|
|
217
207
|
tag: string | null;
|
|
218
208
|
shortUuid: string;
|
|
219
|
-
usedTrafficBytes: number;
|
|
220
|
-
lifetimeUsedTrafficBytes: number;
|
|
221
209
|
description: string | null;
|
|
222
210
|
subLastUserAgent: string | null;
|
|
223
211
|
subLastOpenedAt: string | null;
|
|
224
212
|
expireAt: string;
|
|
225
|
-
onlineAt: string | null;
|
|
226
213
|
subRevokedAt: string | null;
|
|
227
214
|
lastTrafficResetAt: string | null;
|
|
228
215
|
trojanPassword: string;
|
|
@@ -231,21 +218,21 @@ export declare namespace EnableUserCommand {
|
|
|
231
218
|
telegramId: number | null;
|
|
232
219
|
email: string | null;
|
|
233
220
|
hwidDeviceLimit: number | null;
|
|
234
|
-
firstConnectedAt: string | null;
|
|
235
221
|
activeInternalSquads: {
|
|
236
222
|
uuid: string;
|
|
237
223
|
name: string;
|
|
238
224
|
}[];
|
|
239
225
|
externalSquadUuid: string | null;
|
|
240
226
|
subscriptionUrl: string;
|
|
241
|
-
lastConnectedNode: {
|
|
242
|
-
countryCode: string;
|
|
243
|
-
connectedAt: string;
|
|
244
|
-
nodeName: string;
|
|
245
|
-
} | null;
|
|
246
227
|
happ: {
|
|
247
228
|
cryptoLink: string;
|
|
248
229
|
};
|
|
230
|
+
userTraffic: {
|
|
231
|
+
usedTrafficBytes: number;
|
|
232
|
+
lifetimeUsedTrafficBytes: number;
|
|
233
|
+
onlineAt: string | null;
|
|
234
|
+
firstConnectedAt: string | null;
|
|
235
|
+
};
|
|
249
236
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
250
237
|
trafficLimitBytes?: number | undefined;
|
|
251
238
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-user.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/enable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAI3B,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":"enable-user.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/enable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAI3B,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"}
|