@remnawave/backend-contract 2.3.4 → 2.3.6
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/subscription/get-subscription-info-by-short-uuid.command.d.ts +0 -19
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +66 -91
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-short-uuid-protected.command.d.ts +0 -19
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-short-uuid-protected.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +0 -19
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.d.ts +0 -19
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-stats.command.d.ts +7 -0
- package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-stats.command.js +1 -0
- package/build/backend/commands/users/actions/disable-user.command.d.ts +48 -67
- 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 +48 -67
- 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 +48 -67
- 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 +48 -67
- 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 +58 -77
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-all-users.command.d.ts +66 -91
- 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 +48 -67
- 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 +48 -67
- 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 +48 -67
- 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 +48 -67
- 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 +48 -67
- 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 +48 -67
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.d.ts +52 -71
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/models/extended-users.schema.d.ts +30 -43
- package/build/backend/models/extended-users.schema.d.ts.map +1 -1
- package/build/backend/models/extended-users.schema.js +4 -15
- package/build/backend/models/index.d.ts +0 -1
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +0 -1
- package/build/backend/models/subscription-info.schema.d.ts +0 -13
- package/build/backend/models/subscription-info.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-info.schema.js +0 -2
- package/build/backend/models/user-traffic.schema.d.ts +21 -0
- package/build/backend/models/user-traffic.schema.d.ts.map +1 -0
- package/build/backend/models/user-traffic.schema.js +17 -0
- package/build/backend/models/users.schema.d.ts +25 -43
- package/build/backend/models/users.schema.d.ts.map +1 -1
- package/build/backend/models/users.schema.js +15 -17
- package/build/frontend/commands/system/get-stats.command.js +1 -0
- package/build/frontend/models/extended-users.schema.js +4 -15
- package/build/frontend/models/index.js +0 -1
- package/build/frontend/models/subscription-info.schema.js +0 -2
- package/build/frontend/models/user-traffic.schema.js +17 -0
- package/build/frontend/models/users.schema.js +15 -17
- package/package.json +1 -1
- package/build/backend/models/happ.schema.d.ts +0 -9
- package/build/backend/models/happ.schema.d.ts.map +0 -1
- package/build/backend/models/happ.schema.js +0 -7
- package/build/frontend/models/happ.schema.js +0 -7
|
@@ -39,22 +39,25 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
|
39
39
|
readonly WEEK: "WEEK";
|
|
40
40
|
readonly MONTH: "MONTH";
|
|
41
41
|
}>>;
|
|
42
|
-
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
|
43
|
-
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
44
42
|
expireAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
45
|
-
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
46
|
-
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
47
|
-
trojanPassword: z.ZodString;
|
|
48
|
-
vlessUuid: z.ZodString;
|
|
49
|
-
ssPassword: z.ZodString;
|
|
50
|
-
description: z.ZodNullable<z.ZodString>;
|
|
51
|
-
tag: z.ZodNullable<z.ZodString>;
|
|
52
43
|
telegramId: z.ZodNullable<z.ZodNumber>;
|
|
53
44
|
email: z.ZodNullable<z.ZodString>;
|
|
45
|
+
description: z.ZodNullable<z.ZodString>;
|
|
46
|
+
tag: z.ZodNullable<z.ZodString>;
|
|
54
47
|
hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
48
|
+
externalSquadUuid: z.ZodNullable<z.ZodString>;
|
|
49
|
+
trojanPassword: z.ZodString;
|
|
50
|
+
vlessUuid: z.ZodString;
|
|
51
|
+
ssPassword: z.ZodString;
|
|
55
52
|
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
|
53
|
+
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
54
|
+
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
|
55
|
+
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
56
|
+
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
56
57
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
57
58
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
59
|
+
} & {
|
|
60
|
+
subscriptionUrl: z.ZodString;
|
|
58
61
|
activeInternalSquads: z.ZodArray<z.ZodObject<{
|
|
59
62
|
uuid: z.ZodString;
|
|
60
63
|
name: z.ZodString;
|
|
@@ -65,16 +68,6 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
|
65
68
|
uuid: string;
|
|
66
69
|
name: string;
|
|
67
70
|
}>, "many">;
|
|
68
|
-
externalSquadUuid: z.ZodNullable<z.ZodString>;
|
|
69
|
-
} & {
|
|
70
|
-
subscriptionUrl: z.ZodString;
|
|
71
|
-
happ: z.ZodObject<{
|
|
72
|
-
cryptoLink: z.ZodString;
|
|
73
|
-
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
cryptoLink: string;
|
|
75
|
-
}, {
|
|
76
|
-
cryptoLink: string;
|
|
77
|
-
}>;
|
|
78
71
|
userTraffic: z.ZodObject<{
|
|
79
72
|
usedTrafficBytes: z.ZodNumber;
|
|
80
73
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
|
@@ -105,27 +98,24 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
|
105
98
|
trafficLimitBytes: number;
|
|
106
99
|
description: string | null;
|
|
107
100
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
108
|
-
subLastUserAgent: string | null;
|
|
109
|
-
subLastOpenedAt: Date | null;
|
|
110
101
|
expireAt: Date;
|
|
111
|
-
subRevokedAt: Date | null;
|
|
112
|
-
lastTrafficResetAt: Date | null;
|
|
113
|
-
trojanPassword: string;
|
|
114
|
-
vlessUuid: string;
|
|
115
|
-
ssPassword: string;
|
|
116
102
|
telegramId: number | null;
|
|
117
103
|
email: string | null;
|
|
118
104
|
hwidDeviceLimit: number | null;
|
|
105
|
+
externalSquadUuid: string | null;
|
|
106
|
+
trojanPassword: string;
|
|
107
|
+
vlessUuid: string;
|
|
108
|
+
ssPassword: string;
|
|
119
109
|
lastTriggeredThreshold: number;
|
|
110
|
+
subRevokedAt: Date | null;
|
|
111
|
+
subLastUserAgent: string | null;
|
|
112
|
+
subLastOpenedAt: Date | null;
|
|
113
|
+
lastTrafficResetAt: Date | null;
|
|
114
|
+
subscriptionUrl: string;
|
|
120
115
|
activeInternalSquads: {
|
|
121
116
|
uuid: string;
|
|
122
117
|
name: string;
|
|
123
118
|
}[];
|
|
124
|
-
externalSquadUuid: string | null;
|
|
125
|
-
subscriptionUrl: string;
|
|
126
|
-
happ: {
|
|
127
|
-
cryptoLink: string;
|
|
128
|
-
};
|
|
129
119
|
userTraffic: {
|
|
130
120
|
usedTrafficBytes: number;
|
|
131
121
|
lifetimeUsedTrafficBytes: number;
|
|
@@ -141,26 +131,23 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
|
141
131
|
tag: string | null;
|
|
142
132
|
shortUuid: string;
|
|
143
133
|
description: string | null;
|
|
144
|
-
subLastUserAgent: string | null;
|
|
145
|
-
subLastOpenedAt: string | null;
|
|
146
134
|
expireAt: string;
|
|
147
|
-
subRevokedAt: string | null;
|
|
148
|
-
lastTrafficResetAt: string | null;
|
|
149
|
-
trojanPassword: string;
|
|
150
|
-
vlessUuid: string;
|
|
151
|
-
ssPassword: string;
|
|
152
135
|
telegramId: number | null;
|
|
153
136
|
email: string | null;
|
|
154
137
|
hwidDeviceLimit: number | null;
|
|
138
|
+
externalSquadUuid: string | null;
|
|
139
|
+
trojanPassword: string;
|
|
140
|
+
vlessUuid: string;
|
|
141
|
+
ssPassword: string;
|
|
142
|
+
subRevokedAt: string | null;
|
|
143
|
+
subLastUserAgent: string | null;
|
|
144
|
+
subLastOpenedAt: string | null;
|
|
145
|
+
lastTrafficResetAt: string | null;
|
|
146
|
+
subscriptionUrl: string;
|
|
155
147
|
activeInternalSquads: {
|
|
156
148
|
uuid: string;
|
|
157
149
|
name: string;
|
|
158
150
|
}[];
|
|
159
|
-
externalSquadUuid: string | null;
|
|
160
|
-
subscriptionUrl: string;
|
|
161
|
-
happ: {
|
|
162
|
-
cryptoLink: string;
|
|
163
|
-
};
|
|
164
151
|
userTraffic: {
|
|
165
152
|
usedTrafficBytes: number;
|
|
166
153
|
lifetimeUsedTrafficBytes: number;
|
|
@@ -185,27 +172,24 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
|
185
172
|
trafficLimitBytes: number;
|
|
186
173
|
description: string | null;
|
|
187
174
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
188
|
-
subLastUserAgent: string | null;
|
|
189
|
-
subLastOpenedAt: Date | null;
|
|
190
175
|
expireAt: Date;
|
|
191
|
-
subRevokedAt: Date | null;
|
|
192
|
-
lastTrafficResetAt: Date | null;
|
|
193
|
-
trojanPassword: string;
|
|
194
|
-
vlessUuid: string;
|
|
195
|
-
ssPassword: string;
|
|
196
176
|
telegramId: number | null;
|
|
197
177
|
email: string | null;
|
|
198
178
|
hwidDeviceLimit: number | null;
|
|
179
|
+
externalSquadUuid: string | null;
|
|
180
|
+
trojanPassword: string;
|
|
181
|
+
vlessUuid: string;
|
|
182
|
+
ssPassword: string;
|
|
199
183
|
lastTriggeredThreshold: number;
|
|
184
|
+
subRevokedAt: Date | null;
|
|
185
|
+
subLastUserAgent: string | null;
|
|
186
|
+
subLastOpenedAt: Date | null;
|
|
187
|
+
lastTrafficResetAt: Date | null;
|
|
188
|
+
subscriptionUrl: string;
|
|
200
189
|
activeInternalSquads: {
|
|
201
190
|
uuid: string;
|
|
202
191
|
name: string;
|
|
203
192
|
}[];
|
|
204
|
-
externalSquadUuid: string | null;
|
|
205
|
-
subscriptionUrl: string;
|
|
206
|
-
happ: {
|
|
207
|
-
cryptoLink: string;
|
|
208
|
-
};
|
|
209
193
|
userTraffic: {
|
|
210
194
|
usedTrafficBytes: number;
|
|
211
195
|
lifetimeUsedTrafficBytes: number;
|
|
@@ -223,26 +207,23 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
|
223
207
|
tag: string | null;
|
|
224
208
|
shortUuid: string;
|
|
225
209
|
description: string | null;
|
|
226
|
-
subLastUserAgent: string | null;
|
|
227
|
-
subLastOpenedAt: string | null;
|
|
228
210
|
expireAt: string;
|
|
229
|
-
subRevokedAt: string | null;
|
|
230
|
-
lastTrafficResetAt: string | null;
|
|
231
|
-
trojanPassword: string;
|
|
232
|
-
vlessUuid: string;
|
|
233
|
-
ssPassword: string;
|
|
234
211
|
telegramId: number | null;
|
|
235
212
|
email: string | null;
|
|
236
213
|
hwidDeviceLimit: number | null;
|
|
214
|
+
externalSquadUuid: string | null;
|
|
215
|
+
trojanPassword: string;
|
|
216
|
+
vlessUuid: string;
|
|
217
|
+
ssPassword: string;
|
|
218
|
+
subRevokedAt: string | null;
|
|
219
|
+
subLastUserAgent: string | null;
|
|
220
|
+
subLastOpenedAt: string | null;
|
|
221
|
+
lastTrafficResetAt: string | null;
|
|
222
|
+
subscriptionUrl: string;
|
|
237
223
|
activeInternalSquads: {
|
|
238
224
|
uuid: string;
|
|
239
225
|
name: string;
|
|
240
226
|
}[];
|
|
241
|
-
externalSquadUuid: string | null;
|
|
242
|
-
subscriptionUrl: string;
|
|
243
|
-
happ: {
|
|
244
|
-
cryptoLink: string;
|
|
245
|
-
};
|
|
246
227
|
userTraffic: {
|
|
247
228
|
usedTrafficBytes: number;
|
|
248
229
|
lifetimeUsedTrafficBytes: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAA6C,CAAC;IACvD,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,iBAAiB;;;;;;;;eAa7B,CAAC;IAEF,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAErD,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAA6C,CAAC;IACvD,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,iBAAiB;;;;;;;;eAa7B,CAAC;IAEF,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAErD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -44,15 +44,15 @@ export declare namespace CreateUserCommand {
|
|
|
44
44
|
trafficLimitBytes?: number | undefined;
|
|
45
45
|
description?: string | undefined;
|
|
46
46
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
47
|
-
lastTrafficResetAt?: Date | undefined;
|
|
48
|
-
trojanPassword?: string | undefined;
|
|
49
|
-
vlessUuid?: string | undefined;
|
|
50
|
-
ssPassword?: string | undefined;
|
|
51
47
|
telegramId?: number | null | undefined;
|
|
52
48
|
email?: string | null | undefined;
|
|
53
49
|
hwidDeviceLimit?: number | undefined;
|
|
54
|
-
activeInternalSquads?: string[] | undefined;
|
|
55
50
|
externalSquadUuid?: string | null | undefined;
|
|
51
|
+
trojanPassword?: string | undefined;
|
|
52
|
+
vlessUuid?: string | undefined;
|
|
53
|
+
ssPassword?: string | undefined;
|
|
54
|
+
lastTrafficResetAt?: Date | undefined;
|
|
55
|
+
activeInternalSquads?: string[] | undefined;
|
|
56
56
|
}, {
|
|
57
57
|
username: string;
|
|
58
58
|
expireAt: string;
|
|
@@ -64,15 +64,15 @@ export declare namespace CreateUserCommand {
|
|
|
64
64
|
trafficLimitBytes?: number | undefined;
|
|
65
65
|
description?: string | undefined;
|
|
66
66
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
67
|
-
lastTrafficResetAt?: string | undefined;
|
|
68
|
-
trojanPassword?: string | undefined;
|
|
69
|
-
vlessUuid?: string | undefined;
|
|
70
|
-
ssPassword?: string | undefined;
|
|
71
67
|
telegramId?: number | null | undefined;
|
|
72
68
|
email?: string | null | undefined;
|
|
73
69
|
hwidDeviceLimit?: number | undefined;
|
|
74
|
-
activeInternalSquads?: string[] | undefined;
|
|
75
70
|
externalSquadUuid?: string | null | undefined;
|
|
71
|
+
trojanPassword?: string | undefined;
|
|
72
|
+
vlessUuid?: string | undefined;
|
|
73
|
+
ssPassword?: string | undefined;
|
|
74
|
+
lastTrafficResetAt?: string | undefined;
|
|
75
|
+
activeInternalSquads?: string[] | undefined;
|
|
76
76
|
}>;
|
|
77
77
|
type Request = z.infer<typeof RequestSchema>;
|
|
78
78
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -93,22 +93,25 @@ export declare namespace CreateUserCommand {
|
|
|
93
93
|
readonly WEEK: "WEEK";
|
|
94
94
|
readonly MONTH: "MONTH";
|
|
95
95
|
}>>;
|
|
96
|
-
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
|
97
|
-
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
98
96
|
expireAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
99
|
-
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
100
|
-
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
101
|
-
trojanPassword: z.ZodString;
|
|
102
|
-
vlessUuid: z.ZodString;
|
|
103
|
-
ssPassword: z.ZodString;
|
|
104
|
-
description: z.ZodNullable<z.ZodString>;
|
|
105
|
-
tag: z.ZodNullable<z.ZodString>;
|
|
106
97
|
telegramId: z.ZodNullable<z.ZodNumber>;
|
|
107
98
|
email: z.ZodNullable<z.ZodString>;
|
|
99
|
+
description: z.ZodNullable<z.ZodString>;
|
|
100
|
+
tag: z.ZodNullable<z.ZodString>;
|
|
108
101
|
hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
externalSquadUuid: z.ZodNullable<z.ZodString>;
|
|
103
|
+
trojanPassword: z.ZodString;
|
|
104
|
+
vlessUuid: z.ZodString;
|
|
105
|
+
ssPassword: z.ZodString;
|
|
109
106
|
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
|
107
|
+
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
108
|
+
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
|
109
|
+
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
110
|
+
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
110
111
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
111
112
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
113
|
+
} & {
|
|
114
|
+
subscriptionUrl: z.ZodString;
|
|
112
115
|
activeInternalSquads: z.ZodArray<z.ZodObject<{
|
|
113
116
|
uuid: z.ZodString;
|
|
114
117
|
name: z.ZodString;
|
|
@@ -119,16 +122,6 @@ export declare namespace CreateUserCommand {
|
|
|
119
122
|
uuid: string;
|
|
120
123
|
name: string;
|
|
121
124
|
}>, "many">;
|
|
122
|
-
externalSquadUuid: z.ZodNullable<z.ZodString>;
|
|
123
|
-
} & {
|
|
124
|
-
subscriptionUrl: z.ZodString;
|
|
125
|
-
happ: z.ZodObject<{
|
|
126
|
-
cryptoLink: z.ZodString;
|
|
127
|
-
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
cryptoLink: string;
|
|
129
|
-
}, {
|
|
130
|
-
cryptoLink: string;
|
|
131
|
-
}>;
|
|
132
125
|
userTraffic: z.ZodObject<{
|
|
133
126
|
usedTrafficBytes: z.ZodNumber;
|
|
134
127
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
|
@@ -159,27 +152,24 @@ export declare namespace CreateUserCommand {
|
|
|
159
152
|
trafficLimitBytes: number;
|
|
160
153
|
description: string | null;
|
|
161
154
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
162
|
-
subLastUserAgent: string | null;
|
|
163
|
-
subLastOpenedAt: Date | null;
|
|
164
155
|
expireAt: Date;
|
|
165
|
-
subRevokedAt: Date | null;
|
|
166
|
-
lastTrafficResetAt: Date | null;
|
|
167
|
-
trojanPassword: string;
|
|
168
|
-
vlessUuid: string;
|
|
169
|
-
ssPassword: string;
|
|
170
156
|
telegramId: number | null;
|
|
171
157
|
email: string | null;
|
|
172
158
|
hwidDeviceLimit: number | null;
|
|
159
|
+
externalSquadUuid: string | null;
|
|
160
|
+
trojanPassword: string;
|
|
161
|
+
vlessUuid: string;
|
|
162
|
+
ssPassword: string;
|
|
173
163
|
lastTriggeredThreshold: number;
|
|
164
|
+
subRevokedAt: Date | null;
|
|
165
|
+
subLastUserAgent: string | null;
|
|
166
|
+
subLastOpenedAt: Date | null;
|
|
167
|
+
lastTrafficResetAt: Date | null;
|
|
168
|
+
subscriptionUrl: string;
|
|
174
169
|
activeInternalSquads: {
|
|
175
170
|
uuid: string;
|
|
176
171
|
name: string;
|
|
177
172
|
}[];
|
|
178
|
-
externalSquadUuid: string | null;
|
|
179
|
-
subscriptionUrl: string;
|
|
180
|
-
happ: {
|
|
181
|
-
cryptoLink: string;
|
|
182
|
-
};
|
|
183
173
|
userTraffic: {
|
|
184
174
|
usedTrafficBytes: number;
|
|
185
175
|
lifetimeUsedTrafficBytes: number;
|
|
@@ -195,26 +185,23 @@ export declare namespace CreateUserCommand {
|
|
|
195
185
|
tag: string | null;
|
|
196
186
|
shortUuid: string;
|
|
197
187
|
description: string | null;
|
|
198
|
-
subLastUserAgent: string | null;
|
|
199
|
-
subLastOpenedAt: string | null;
|
|
200
188
|
expireAt: string;
|
|
201
|
-
subRevokedAt: string | null;
|
|
202
|
-
lastTrafficResetAt: string | null;
|
|
203
|
-
trojanPassword: string;
|
|
204
|
-
vlessUuid: string;
|
|
205
|
-
ssPassword: string;
|
|
206
189
|
telegramId: number | null;
|
|
207
190
|
email: string | null;
|
|
208
191
|
hwidDeviceLimit: number | null;
|
|
192
|
+
externalSquadUuid: string | null;
|
|
193
|
+
trojanPassword: string;
|
|
194
|
+
vlessUuid: string;
|
|
195
|
+
ssPassword: string;
|
|
196
|
+
subRevokedAt: string | null;
|
|
197
|
+
subLastUserAgent: string | null;
|
|
198
|
+
subLastOpenedAt: string | null;
|
|
199
|
+
lastTrafficResetAt: string | null;
|
|
200
|
+
subscriptionUrl: string;
|
|
209
201
|
activeInternalSquads: {
|
|
210
202
|
uuid: string;
|
|
211
203
|
name: string;
|
|
212
204
|
}[];
|
|
213
|
-
externalSquadUuid: string | null;
|
|
214
|
-
subscriptionUrl: string;
|
|
215
|
-
happ: {
|
|
216
|
-
cryptoLink: string;
|
|
217
|
-
};
|
|
218
205
|
userTraffic: {
|
|
219
206
|
usedTrafficBytes: number;
|
|
220
207
|
lifetimeUsedTrafficBytes: number;
|
|
@@ -239,27 +226,24 @@ export declare namespace CreateUserCommand {
|
|
|
239
226
|
trafficLimitBytes: number;
|
|
240
227
|
description: string | null;
|
|
241
228
|
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
242
|
-
subLastUserAgent: string | null;
|
|
243
|
-
subLastOpenedAt: Date | null;
|
|
244
229
|
expireAt: Date;
|
|
245
|
-
subRevokedAt: Date | null;
|
|
246
|
-
lastTrafficResetAt: Date | null;
|
|
247
|
-
trojanPassword: string;
|
|
248
|
-
vlessUuid: string;
|
|
249
|
-
ssPassword: string;
|
|
250
230
|
telegramId: number | null;
|
|
251
231
|
email: string | null;
|
|
252
232
|
hwidDeviceLimit: number | null;
|
|
233
|
+
externalSquadUuid: string | null;
|
|
234
|
+
trojanPassword: string;
|
|
235
|
+
vlessUuid: string;
|
|
236
|
+
ssPassword: string;
|
|
253
237
|
lastTriggeredThreshold: number;
|
|
238
|
+
subRevokedAt: Date | null;
|
|
239
|
+
subLastUserAgent: string | null;
|
|
240
|
+
subLastOpenedAt: Date | null;
|
|
241
|
+
lastTrafficResetAt: Date | null;
|
|
242
|
+
subscriptionUrl: string;
|
|
254
243
|
activeInternalSquads: {
|
|
255
244
|
uuid: string;
|
|
256
245
|
name: string;
|
|
257
246
|
}[];
|
|
258
|
-
externalSquadUuid: string | null;
|
|
259
|
-
subscriptionUrl: string;
|
|
260
|
-
happ: {
|
|
261
|
-
cryptoLink: string;
|
|
262
|
-
};
|
|
263
247
|
userTraffic: {
|
|
264
248
|
usedTrafficBytes: number;
|
|
265
249
|
lifetimeUsedTrafficBytes: number;
|
|
@@ -277,26 +261,23 @@ export declare namespace CreateUserCommand {
|
|
|
277
261
|
tag: string | null;
|
|
278
262
|
shortUuid: string;
|
|
279
263
|
description: string | null;
|
|
280
|
-
subLastUserAgent: string | null;
|
|
281
|
-
subLastOpenedAt: string | null;
|
|
282
264
|
expireAt: string;
|
|
283
|
-
subRevokedAt: string | null;
|
|
284
|
-
lastTrafficResetAt: string | null;
|
|
285
|
-
trojanPassword: string;
|
|
286
|
-
vlessUuid: string;
|
|
287
|
-
ssPassword: string;
|
|
288
265
|
telegramId: number | null;
|
|
289
266
|
email: string | null;
|
|
290
267
|
hwidDeviceLimit: number | null;
|
|
268
|
+
externalSquadUuid: string | null;
|
|
269
|
+
trojanPassword: string;
|
|
270
|
+
vlessUuid: string;
|
|
271
|
+
ssPassword: string;
|
|
272
|
+
subRevokedAt: string | null;
|
|
273
|
+
subLastUserAgent: string | null;
|
|
274
|
+
subLastOpenedAt: string | null;
|
|
275
|
+
lastTrafficResetAt: string | null;
|
|
276
|
+
subscriptionUrl: string;
|
|
291
277
|
activeInternalSquads: {
|
|
292
278
|
uuid: string;
|
|
293
279
|
name: string;
|
|
294
280
|
}[];
|
|
295
|
-
externalSquadUuid: string | null;
|
|
296
|
-
subscriptionUrl: string;
|
|
297
|
-
happ: {
|
|
298
|
-
cryptoLink: string;
|
|
299
|
-
};
|
|
300
281
|
userTraffic: {
|
|
301
282
|
usedTrafficBytes: number;
|
|
302
283
|
lifetimeUsedTrafficBytes: number;
|
|
@@ -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"}
|