@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
|
@@ -86,8 +86,6 @@ export declare namespace CreateUserCommand {
|
|
|
86
86
|
readonly LIMITED: "LIMITED";
|
|
87
87
|
readonly EXPIRED: "EXPIRED";
|
|
88
88
|
}>>;
|
|
89
|
-
usedTrafficBytes: z.ZodNumber;
|
|
90
|
-
lifetimeUsedTrafficBytes: z.ZodNumber;
|
|
91
89
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
|
92
90
|
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
|
93
91
|
readonly NO_RESET: "NO_RESET";
|
|
@@ -98,7 +96,6 @@ export declare namespace CreateUserCommand {
|
|
|
98
96
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
|
99
97
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
100
98
|
expireAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
101
|
-
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
102
99
|
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
103
100
|
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
104
101
|
trojanPassword: z.ZodString;
|
|
@@ -109,7 +106,6 @@ export declare namespace CreateUserCommand {
|
|
|
109
106
|
telegramId: z.ZodNullable<z.ZodNumber>;
|
|
110
107
|
email: z.ZodNullable<z.ZodString>;
|
|
111
108
|
hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
112
|
-
firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
113
109
|
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
|
114
110
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
115
111
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
@@ -126,19 +122,6 @@ export declare namespace CreateUserCommand {
|
|
|
126
122
|
externalSquadUuid: z.ZodNullable<z.ZodString>;
|
|
127
123
|
} & {
|
|
128
124
|
subscriptionUrl: z.ZodString;
|
|
129
|
-
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
|
130
|
-
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
131
|
-
nodeName: z.ZodString;
|
|
132
|
-
countryCode: z.ZodString;
|
|
133
|
-
}, "strip", z.ZodTypeAny, {
|
|
134
|
-
countryCode: string;
|
|
135
|
-
connectedAt: Date;
|
|
136
|
-
nodeName: string;
|
|
137
|
-
}, {
|
|
138
|
-
countryCode: string;
|
|
139
|
-
connectedAt: string;
|
|
140
|
-
nodeName: string;
|
|
141
|
-
}>>;
|
|
142
125
|
happ: z.ZodObject<{
|
|
143
126
|
cryptoLink: z.ZodString;
|
|
144
127
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -146,6 +129,22 @@ export declare namespace CreateUserCommand {
|
|
|
146
129
|
}, {
|
|
147
130
|
cryptoLink: string;
|
|
148
131
|
}>;
|
|
132
|
+
userTraffic: z.ZodObject<{
|
|
133
|
+
usedTrafficBytes: z.ZodNumber;
|
|
134
|
+
lifetimeUsedTrafficBytes: z.ZodNumber;
|
|
135
|
+
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
136
|
+
firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
usedTrafficBytes: number;
|
|
139
|
+
lifetimeUsedTrafficBytes: number;
|
|
140
|
+
onlineAt: Date | null;
|
|
141
|
+
firstConnectedAt: Date | null;
|
|
142
|
+
}, {
|
|
143
|
+
usedTrafficBytes: number;
|
|
144
|
+
lifetimeUsedTrafficBytes: number;
|
|
145
|
+
onlineAt: string | null;
|
|
146
|
+
firstConnectedAt: string | null;
|
|
147
|
+
}>;
|
|
149
148
|
}, "strip", z.ZodTypeAny, {
|
|
150
149
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
|
151
150
|
uuid: string;
|
|
@@ -154,15 +153,12 @@ export declare namespace CreateUserCommand {
|
|
|
154
153
|
username: string;
|
|
155
154
|
tag: string | null;
|
|
156
155
|
shortUuid: string;
|
|
157
|
-
usedTrafficBytes: number;
|
|
158
|
-
lifetimeUsedTrafficBytes: number;
|
|
159
156
|
trafficLimitBytes: number;
|
|
160
157
|
description: string | null;
|
|
161
158
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
162
159
|
subLastUserAgent: string | null;
|
|
163
160
|
subLastOpenedAt: Date | null;
|
|
164
161
|
expireAt: Date;
|
|
165
|
-
onlineAt: Date | null;
|
|
166
162
|
subRevokedAt: Date | null;
|
|
167
163
|
lastTrafficResetAt: Date | null;
|
|
168
164
|
trojanPassword: string;
|
|
@@ -171,7 +167,6 @@ export declare namespace CreateUserCommand {
|
|
|
171
167
|
telegramId: number | null;
|
|
172
168
|
email: string | null;
|
|
173
169
|
hwidDeviceLimit: number | null;
|
|
174
|
-
firstConnectedAt: Date | null;
|
|
175
170
|
lastTriggeredThreshold: number;
|
|
176
171
|
activeInternalSquads: {
|
|
177
172
|
uuid: string;
|
|
@@ -179,14 +174,15 @@ export declare namespace CreateUserCommand {
|
|
|
179
174
|
}[];
|
|
180
175
|
externalSquadUuid: string | null;
|
|
181
176
|
subscriptionUrl: string;
|
|
182
|
-
lastConnectedNode: {
|
|
183
|
-
countryCode: string;
|
|
184
|
-
connectedAt: Date;
|
|
185
|
-
nodeName: string;
|
|
186
|
-
} | null;
|
|
187
177
|
happ: {
|
|
188
178
|
cryptoLink: string;
|
|
189
179
|
};
|
|
180
|
+
userTraffic: {
|
|
181
|
+
usedTrafficBytes: number;
|
|
182
|
+
lifetimeUsedTrafficBytes: number;
|
|
183
|
+
onlineAt: Date | null;
|
|
184
|
+
firstConnectedAt: Date | null;
|
|
185
|
+
};
|
|
190
186
|
}, {
|
|
191
187
|
uuid: string;
|
|
192
188
|
createdAt: string;
|
|
@@ -194,13 +190,10 @@ export declare namespace CreateUserCommand {
|
|
|
194
190
|
username: string;
|
|
195
191
|
tag: string | null;
|
|
196
192
|
shortUuid: string;
|
|
197
|
-
usedTrafficBytes: number;
|
|
198
|
-
lifetimeUsedTrafficBytes: number;
|
|
199
193
|
description: string | null;
|
|
200
194
|
subLastUserAgent: string | null;
|
|
201
195
|
subLastOpenedAt: string | null;
|
|
202
196
|
expireAt: string;
|
|
203
|
-
onlineAt: string | null;
|
|
204
197
|
subRevokedAt: string | null;
|
|
205
198
|
lastTrafficResetAt: string | null;
|
|
206
199
|
trojanPassword: string;
|
|
@@ -209,21 +202,21 @@ export declare namespace CreateUserCommand {
|
|
|
209
202
|
telegramId: number | null;
|
|
210
203
|
email: string | null;
|
|
211
204
|
hwidDeviceLimit: number | null;
|
|
212
|
-
firstConnectedAt: string | null;
|
|
213
205
|
activeInternalSquads: {
|
|
214
206
|
uuid: string;
|
|
215
207
|
name: string;
|
|
216
208
|
}[];
|
|
217
209
|
externalSquadUuid: string | null;
|
|
218
210
|
subscriptionUrl: string;
|
|
219
|
-
lastConnectedNode: {
|
|
220
|
-
countryCode: string;
|
|
221
|
-
connectedAt: string;
|
|
222
|
-
nodeName: string;
|
|
223
|
-
} | null;
|
|
224
211
|
happ: {
|
|
225
212
|
cryptoLink: string;
|
|
226
213
|
};
|
|
214
|
+
userTraffic: {
|
|
215
|
+
usedTrafficBytes: number;
|
|
216
|
+
lifetimeUsedTrafficBytes: number;
|
|
217
|
+
onlineAt: string | null;
|
|
218
|
+
firstConnectedAt: string | null;
|
|
219
|
+
};
|
|
227
220
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
228
221
|
trafficLimitBytes?: number | undefined;
|
|
229
222
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
@@ -238,15 +231,12 @@ export declare namespace CreateUserCommand {
|
|
|
238
231
|
username: string;
|
|
239
232
|
tag: string | null;
|
|
240
233
|
shortUuid: string;
|
|
241
|
-
usedTrafficBytes: number;
|
|
242
|
-
lifetimeUsedTrafficBytes: number;
|
|
243
234
|
trafficLimitBytes: number;
|
|
244
235
|
description: string | null;
|
|
245
236
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
246
237
|
subLastUserAgent: string | null;
|
|
247
238
|
subLastOpenedAt: Date | null;
|
|
248
239
|
expireAt: Date;
|
|
249
|
-
onlineAt: Date | null;
|
|
250
240
|
subRevokedAt: Date | null;
|
|
251
241
|
lastTrafficResetAt: Date | null;
|
|
252
242
|
trojanPassword: string;
|
|
@@ -255,7 +245,6 @@ export declare namespace CreateUserCommand {
|
|
|
255
245
|
telegramId: number | null;
|
|
256
246
|
email: string | null;
|
|
257
247
|
hwidDeviceLimit: number | null;
|
|
258
|
-
firstConnectedAt: Date | null;
|
|
259
248
|
lastTriggeredThreshold: number;
|
|
260
249
|
activeInternalSquads: {
|
|
261
250
|
uuid: string;
|
|
@@ -263,14 +252,15 @@ export declare namespace CreateUserCommand {
|
|
|
263
252
|
}[];
|
|
264
253
|
externalSquadUuid: string | null;
|
|
265
254
|
subscriptionUrl: string;
|
|
266
|
-
lastConnectedNode: {
|
|
267
|
-
countryCode: string;
|
|
268
|
-
connectedAt: Date;
|
|
269
|
-
nodeName: string;
|
|
270
|
-
} | null;
|
|
271
255
|
happ: {
|
|
272
256
|
cryptoLink: string;
|
|
273
257
|
};
|
|
258
|
+
userTraffic: {
|
|
259
|
+
usedTrafficBytes: number;
|
|
260
|
+
lifetimeUsedTrafficBytes: number;
|
|
261
|
+
onlineAt: Date | null;
|
|
262
|
+
firstConnectedAt: Date | null;
|
|
263
|
+
};
|
|
274
264
|
};
|
|
275
265
|
}, {
|
|
276
266
|
response: {
|
|
@@ -280,13 +270,10 @@ export declare namespace CreateUserCommand {
|
|
|
280
270
|
username: string;
|
|
281
271
|
tag: string | null;
|
|
282
272
|
shortUuid: string;
|
|
283
|
-
usedTrafficBytes: number;
|
|
284
|
-
lifetimeUsedTrafficBytes: number;
|
|
285
273
|
description: string | null;
|
|
286
274
|
subLastUserAgent: string | null;
|
|
287
275
|
subLastOpenedAt: string | null;
|
|
288
276
|
expireAt: string;
|
|
289
|
-
onlineAt: string | null;
|
|
290
277
|
subRevokedAt: string | null;
|
|
291
278
|
lastTrafficResetAt: string | null;
|
|
292
279
|
trojanPassword: string;
|
|
@@ -295,21 +282,21 @@ export declare namespace CreateUserCommand {
|
|
|
295
282
|
telegramId: number | null;
|
|
296
283
|
email: string | null;
|
|
297
284
|
hwidDeviceLimit: number | null;
|
|
298
|
-
firstConnectedAt: string | null;
|
|
299
285
|
activeInternalSquads: {
|
|
300
286
|
uuid: string;
|
|
301
287
|
name: string;
|
|
302
288
|
}[];
|
|
303
289
|
externalSquadUuid: string | null;
|
|
304
290
|
subscriptionUrl: string;
|
|
305
|
-
lastConnectedNode: {
|
|
306
|
-
countryCode: string;
|
|
307
|
-
connectedAt: string;
|
|
308
|
-
nodeName: string;
|
|
309
|
-
} | null;
|
|
310
291
|
happ: {
|
|
311
292
|
cryptoLink: string;
|
|
312
293
|
};
|
|
294
|
+
userTraffic: {
|
|
295
|
+
usedTrafficBytes: number;
|
|
296
|
+
lifetimeUsedTrafficBytes: number;
|
|
297
|
+
onlineAt: string | null;
|
|
298
|
+
firstConnectedAt: string | null;
|
|
299
|
+
};
|
|
313
300
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
314
301
|
trafficLimitBytes?: number | undefined;
|
|
315
302
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/create-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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmJxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"create-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/create-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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmJxB,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"}
|
|
@@ -68,8 +68,6 @@ export declare namespace GetAllUsersCommand {
|
|
|
68
68
|
readonly LIMITED: "LIMITED";
|
|
69
69
|
readonly EXPIRED: "EXPIRED";
|
|
70
70
|
}>>;
|
|
71
|
-
usedTrafficBytes: z.ZodNumber;
|
|
72
|
-
lifetimeUsedTrafficBytes: z.ZodNumber;
|
|
73
71
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
|
74
72
|
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
|
75
73
|
readonly NO_RESET: "NO_RESET";
|
|
@@ -80,7 +78,6 @@ export declare namespace GetAllUsersCommand {
|
|
|
80
78
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
|
81
79
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
82
80
|
expireAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
83
|
-
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
84
81
|
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
85
82
|
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
86
83
|
trojanPassword: z.ZodString;
|
|
@@ -91,7 +88,6 @@ export declare namespace GetAllUsersCommand {
|
|
|
91
88
|
telegramId: z.ZodNullable<z.ZodNumber>;
|
|
92
89
|
email: z.ZodNullable<z.ZodString>;
|
|
93
90
|
hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
94
|
-
firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
95
91
|
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
|
96
92
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
97
93
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
@@ -108,19 +104,6 @@ export declare namespace GetAllUsersCommand {
|
|
|
108
104
|
externalSquadUuid: z.ZodNullable<z.ZodString>;
|
|
109
105
|
} & {
|
|
110
106
|
subscriptionUrl: z.ZodString;
|
|
111
|
-
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
|
112
|
-
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
113
|
-
nodeName: z.ZodString;
|
|
114
|
-
countryCode: z.ZodString;
|
|
115
|
-
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
countryCode: string;
|
|
117
|
-
connectedAt: Date;
|
|
118
|
-
nodeName: string;
|
|
119
|
-
}, {
|
|
120
|
-
countryCode: string;
|
|
121
|
-
connectedAt: string;
|
|
122
|
-
nodeName: string;
|
|
123
|
-
}>>;
|
|
124
107
|
happ: z.ZodObject<{
|
|
125
108
|
cryptoLink: z.ZodString;
|
|
126
109
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -128,6 +111,22 @@ export declare namespace GetAllUsersCommand {
|
|
|
128
111
|
}, {
|
|
129
112
|
cryptoLink: string;
|
|
130
113
|
}>;
|
|
114
|
+
userTraffic: z.ZodObject<{
|
|
115
|
+
usedTrafficBytes: z.ZodNumber;
|
|
116
|
+
lifetimeUsedTrafficBytes: z.ZodNumber;
|
|
117
|
+
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
118
|
+
firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
usedTrafficBytes: number;
|
|
121
|
+
lifetimeUsedTrafficBytes: number;
|
|
122
|
+
onlineAt: Date | null;
|
|
123
|
+
firstConnectedAt: Date | null;
|
|
124
|
+
}, {
|
|
125
|
+
usedTrafficBytes: number;
|
|
126
|
+
lifetimeUsedTrafficBytes: number;
|
|
127
|
+
onlineAt: string | null;
|
|
128
|
+
firstConnectedAt: string | null;
|
|
129
|
+
}>;
|
|
131
130
|
}, "strip", z.ZodTypeAny, {
|
|
132
131
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
|
133
132
|
uuid: string;
|
|
@@ -136,15 +135,12 @@ export declare namespace GetAllUsersCommand {
|
|
|
136
135
|
username: string;
|
|
137
136
|
tag: string | null;
|
|
138
137
|
shortUuid: string;
|
|
139
|
-
usedTrafficBytes: number;
|
|
140
|
-
lifetimeUsedTrafficBytes: number;
|
|
141
138
|
trafficLimitBytes: number;
|
|
142
139
|
description: string | null;
|
|
143
140
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
144
141
|
subLastUserAgent: string | null;
|
|
145
142
|
subLastOpenedAt: Date | null;
|
|
146
143
|
expireAt: Date;
|
|
147
|
-
onlineAt: Date | null;
|
|
148
144
|
subRevokedAt: Date | null;
|
|
149
145
|
lastTrafficResetAt: Date | null;
|
|
150
146
|
trojanPassword: string;
|
|
@@ -153,7 +149,6 @@ export declare namespace GetAllUsersCommand {
|
|
|
153
149
|
telegramId: number | null;
|
|
154
150
|
email: string | null;
|
|
155
151
|
hwidDeviceLimit: number | null;
|
|
156
|
-
firstConnectedAt: Date | null;
|
|
157
152
|
lastTriggeredThreshold: number;
|
|
158
153
|
activeInternalSquads: {
|
|
159
154
|
uuid: string;
|
|
@@ -161,14 +156,15 @@ export declare namespace GetAllUsersCommand {
|
|
|
161
156
|
}[];
|
|
162
157
|
externalSquadUuid: string | null;
|
|
163
158
|
subscriptionUrl: string;
|
|
164
|
-
lastConnectedNode: {
|
|
165
|
-
countryCode: string;
|
|
166
|
-
connectedAt: Date;
|
|
167
|
-
nodeName: string;
|
|
168
|
-
} | null;
|
|
169
159
|
happ: {
|
|
170
160
|
cryptoLink: string;
|
|
171
161
|
};
|
|
162
|
+
userTraffic: {
|
|
163
|
+
usedTrafficBytes: number;
|
|
164
|
+
lifetimeUsedTrafficBytes: number;
|
|
165
|
+
onlineAt: Date | null;
|
|
166
|
+
firstConnectedAt: Date | null;
|
|
167
|
+
};
|
|
172
168
|
}, {
|
|
173
169
|
uuid: string;
|
|
174
170
|
createdAt: string;
|
|
@@ -176,13 +172,10 @@ export declare namespace GetAllUsersCommand {
|
|
|
176
172
|
username: string;
|
|
177
173
|
tag: string | null;
|
|
178
174
|
shortUuid: string;
|
|
179
|
-
usedTrafficBytes: number;
|
|
180
|
-
lifetimeUsedTrafficBytes: number;
|
|
181
175
|
description: string | null;
|
|
182
176
|
subLastUserAgent: string | null;
|
|
183
177
|
subLastOpenedAt: string | null;
|
|
184
178
|
expireAt: string;
|
|
185
|
-
onlineAt: string | null;
|
|
186
179
|
subRevokedAt: string | null;
|
|
187
180
|
lastTrafficResetAt: string | null;
|
|
188
181
|
trojanPassword: string;
|
|
@@ -191,21 +184,21 @@ export declare namespace GetAllUsersCommand {
|
|
|
191
184
|
telegramId: number | null;
|
|
192
185
|
email: string | null;
|
|
193
186
|
hwidDeviceLimit: number | null;
|
|
194
|
-
firstConnectedAt: string | null;
|
|
195
187
|
activeInternalSquads: {
|
|
196
188
|
uuid: string;
|
|
197
189
|
name: string;
|
|
198
190
|
}[];
|
|
199
191
|
externalSquadUuid: string | null;
|
|
200
192
|
subscriptionUrl: string;
|
|
201
|
-
lastConnectedNode: {
|
|
202
|
-
countryCode: string;
|
|
203
|
-
connectedAt: string;
|
|
204
|
-
nodeName: string;
|
|
205
|
-
} | null;
|
|
206
193
|
happ: {
|
|
207
194
|
cryptoLink: string;
|
|
208
195
|
};
|
|
196
|
+
userTraffic: {
|
|
197
|
+
usedTrafficBytes: number;
|
|
198
|
+
lifetimeUsedTrafficBytes: number;
|
|
199
|
+
onlineAt: string | null;
|
|
200
|
+
firstConnectedAt: string | null;
|
|
201
|
+
};
|
|
209
202
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
210
203
|
trafficLimitBytes?: number | undefined;
|
|
211
204
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
@@ -221,15 +214,12 @@ export declare namespace GetAllUsersCommand {
|
|
|
221
214
|
username: string;
|
|
222
215
|
tag: string | null;
|
|
223
216
|
shortUuid: string;
|
|
224
|
-
usedTrafficBytes: number;
|
|
225
|
-
lifetimeUsedTrafficBytes: number;
|
|
226
217
|
trafficLimitBytes: number;
|
|
227
218
|
description: string | null;
|
|
228
219
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
229
220
|
subLastUserAgent: string | null;
|
|
230
221
|
subLastOpenedAt: Date | null;
|
|
231
222
|
expireAt: Date;
|
|
232
|
-
onlineAt: Date | null;
|
|
233
223
|
subRevokedAt: Date | null;
|
|
234
224
|
lastTrafficResetAt: Date | null;
|
|
235
225
|
trojanPassword: string;
|
|
@@ -238,7 +228,6 @@ export declare namespace GetAllUsersCommand {
|
|
|
238
228
|
telegramId: number | null;
|
|
239
229
|
email: string | null;
|
|
240
230
|
hwidDeviceLimit: number | null;
|
|
241
|
-
firstConnectedAt: Date | null;
|
|
242
231
|
lastTriggeredThreshold: number;
|
|
243
232
|
activeInternalSquads: {
|
|
244
233
|
uuid: string;
|
|
@@ -246,14 +235,15 @@ export declare namespace GetAllUsersCommand {
|
|
|
246
235
|
}[];
|
|
247
236
|
externalSquadUuid: string | null;
|
|
248
237
|
subscriptionUrl: string;
|
|
249
|
-
lastConnectedNode: {
|
|
250
|
-
countryCode: string;
|
|
251
|
-
connectedAt: Date;
|
|
252
|
-
nodeName: string;
|
|
253
|
-
} | null;
|
|
254
238
|
happ: {
|
|
255
239
|
cryptoLink: string;
|
|
256
240
|
};
|
|
241
|
+
userTraffic: {
|
|
242
|
+
usedTrafficBytes: number;
|
|
243
|
+
lifetimeUsedTrafficBytes: number;
|
|
244
|
+
onlineAt: Date | null;
|
|
245
|
+
firstConnectedAt: Date | null;
|
|
246
|
+
};
|
|
257
247
|
}[];
|
|
258
248
|
total: number;
|
|
259
249
|
}, {
|
|
@@ -264,13 +254,10 @@ export declare namespace GetAllUsersCommand {
|
|
|
264
254
|
username: string;
|
|
265
255
|
tag: string | null;
|
|
266
256
|
shortUuid: string;
|
|
267
|
-
usedTrafficBytes: number;
|
|
268
|
-
lifetimeUsedTrafficBytes: number;
|
|
269
257
|
description: string | null;
|
|
270
258
|
subLastUserAgent: string | null;
|
|
271
259
|
subLastOpenedAt: string | null;
|
|
272
260
|
expireAt: string;
|
|
273
|
-
onlineAt: string | null;
|
|
274
261
|
subRevokedAt: string | null;
|
|
275
262
|
lastTrafficResetAt: string | null;
|
|
276
263
|
trojanPassword: string;
|
|
@@ -279,21 +266,21 @@ export declare namespace GetAllUsersCommand {
|
|
|
279
266
|
telegramId: number | null;
|
|
280
267
|
email: string | null;
|
|
281
268
|
hwidDeviceLimit: number | null;
|
|
282
|
-
firstConnectedAt: string | null;
|
|
283
269
|
activeInternalSquads: {
|
|
284
270
|
uuid: string;
|
|
285
271
|
name: string;
|
|
286
272
|
}[];
|
|
287
273
|
externalSquadUuid: string | null;
|
|
288
274
|
subscriptionUrl: string;
|
|
289
|
-
lastConnectedNode: {
|
|
290
|
-
countryCode: string;
|
|
291
|
-
connectedAt: string;
|
|
292
|
-
nodeName: string;
|
|
293
|
-
} | null;
|
|
294
275
|
happ: {
|
|
295
276
|
cryptoLink: string;
|
|
296
277
|
};
|
|
278
|
+
userTraffic: {
|
|
279
|
+
usedTrafficBytes: number;
|
|
280
|
+
lifetimeUsedTrafficBytes: number;
|
|
281
|
+
onlineAt: string | null;
|
|
282
|
+
firstConnectedAt: string | null;
|
|
283
|
+
};
|
|
297
284
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
298
285
|
trafficLimitBytes?: number | undefined;
|
|
299
286
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
@@ -311,15 +298,12 @@ export declare namespace GetAllUsersCommand {
|
|
|
311
298
|
username: string;
|
|
312
299
|
tag: string | null;
|
|
313
300
|
shortUuid: string;
|
|
314
|
-
usedTrafficBytes: number;
|
|
315
|
-
lifetimeUsedTrafficBytes: number;
|
|
316
301
|
trafficLimitBytes: number;
|
|
317
302
|
description: string | null;
|
|
318
303
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
319
304
|
subLastUserAgent: string | null;
|
|
320
305
|
subLastOpenedAt: Date | null;
|
|
321
306
|
expireAt: Date;
|
|
322
|
-
onlineAt: Date | null;
|
|
323
307
|
subRevokedAt: Date | null;
|
|
324
308
|
lastTrafficResetAt: Date | null;
|
|
325
309
|
trojanPassword: string;
|
|
@@ -328,7 +312,6 @@ export declare namespace GetAllUsersCommand {
|
|
|
328
312
|
telegramId: number | null;
|
|
329
313
|
email: string | null;
|
|
330
314
|
hwidDeviceLimit: number | null;
|
|
331
|
-
firstConnectedAt: Date | null;
|
|
332
315
|
lastTriggeredThreshold: number;
|
|
333
316
|
activeInternalSquads: {
|
|
334
317
|
uuid: string;
|
|
@@ -336,14 +319,15 @@ export declare namespace GetAllUsersCommand {
|
|
|
336
319
|
}[];
|
|
337
320
|
externalSquadUuid: string | null;
|
|
338
321
|
subscriptionUrl: string;
|
|
339
|
-
lastConnectedNode: {
|
|
340
|
-
countryCode: string;
|
|
341
|
-
connectedAt: Date;
|
|
342
|
-
nodeName: string;
|
|
343
|
-
} | null;
|
|
344
322
|
happ: {
|
|
345
323
|
cryptoLink: string;
|
|
346
324
|
};
|
|
325
|
+
userTraffic: {
|
|
326
|
+
usedTrafficBytes: number;
|
|
327
|
+
lifetimeUsedTrafficBytes: number;
|
|
328
|
+
onlineAt: Date | null;
|
|
329
|
+
firstConnectedAt: Date | null;
|
|
330
|
+
};
|
|
347
331
|
}[];
|
|
348
332
|
total: number;
|
|
349
333
|
};
|
|
@@ -356,13 +340,10 @@ export declare namespace GetAllUsersCommand {
|
|
|
356
340
|
username: string;
|
|
357
341
|
tag: string | null;
|
|
358
342
|
shortUuid: string;
|
|
359
|
-
usedTrafficBytes: number;
|
|
360
|
-
lifetimeUsedTrafficBytes: number;
|
|
361
343
|
description: string | null;
|
|
362
344
|
subLastUserAgent: string | null;
|
|
363
345
|
subLastOpenedAt: string | null;
|
|
364
346
|
expireAt: string;
|
|
365
|
-
onlineAt: string | null;
|
|
366
347
|
subRevokedAt: string | null;
|
|
367
348
|
lastTrafficResetAt: string | null;
|
|
368
349
|
trojanPassword: string;
|
|
@@ -371,21 +352,21 @@ export declare namespace GetAllUsersCommand {
|
|
|
371
352
|
telegramId: number | null;
|
|
372
353
|
email: string | null;
|
|
373
354
|
hwidDeviceLimit: number | null;
|
|
374
|
-
firstConnectedAt: string | null;
|
|
375
355
|
activeInternalSquads: {
|
|
376
356
|
uuid: string;
|
|
377
357
|
name: string;
|
|
378
358
|
}[];
|
|
379
359
|
externalSquadUuid: string | null;
|
|
380
360
|
subscriptionUrl: string;
|
|
381
|
-
lastConnectedNode: {
|
|
382
|
-
countryCode: string;
|
|
383
|
-
connectedAt: string;
|
|
384
|
-
nodeName: string;
|
|
385
|
-
} | null;
|
|
386
361
|
happ: {
|
|
387
362
|
cryptoLink: string;
|
|
388
363
|
};
|
|
364
|
+
userTraffic: {
|
|
365
|
+
usedTrafficBytes: number;
|
|
366
|
+
lifetimeUsedTrafficBytes: number;
|
|
367
|
+
onlineAt: string | null;
|
|
368
|
+
firstConnectedAt: string | null;
|
|
369
|
+
};
|
|
389
370
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
390
371
|
trafficLimitBytes?: number | undefined;
|
|
391
372
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-users.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAA+D,CAAC;IAErF,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkC,CAAC;IAElE,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-all-users.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAA+D,CAAC;IAErF,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkC,CAAC;IAElE,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|