@remnawave/backend-contract 0.0.80 → 0.0.82
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/nodes/create.command.d.ts +8 -0
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +5 -0
- package/build/backend/commands/nodes/disable.command.d.ts +5 -0
- package/build/backend/commands/nodes/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/enable.command.d.ts +5 -0
- package/build/backend/commands/nodes/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-all.command.d.ts +5 -0
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +5 -0
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/reorder.command.d.ts +6 -0
- package/build/backend/commands/nodes/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.d.ts +9 -0
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +1 -0
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +7 -7
- package/build/backend/commands/users/create-user.command.d.ts +16 -8
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +1 -0
- package/build/backend/commands/users/disable-user.command.ts.d.ts +10 -5
- package/build/backend/commands/users/disable-user.command.ts.d.ts.map +1 -1
- package/build/backend/commands/users/enable-user.command.d.ts +10 -5
- package/build/backend/commands/users/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-all-users-v2.command.d.ts +14 -7
- package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts +10 -5
- package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts +10 -5
- package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-username.command.d.ts +10 -5
- package/build/backend/commands/users/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +10 -5
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/reset-user-traffic.command.d.ts +10 -5
- package/build/backend/commands/users/reset-user-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/users/revoke-user-subscription.command.d.ts +10 -5
- package/build/backend/commands/users/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.d.ts +18 -9
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +1 -0
- package/build/backend/constants/events/events.d.ts +25 -21
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +2 -0
- package/build/backend/constants/nodes/status/status.constant.d.ts +1 -1
- package/build/backend/constants/users/status/status.constant.d.ts +1 -1
- package/build/backend/models/nodes.schema.d.ts +3 -0
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +1 -0
- package/build/backend/models/users.schema.d.ts +6 -3
- package/build/backend/models/users.schema.d.ts.map +1 -1
- package/build/backend/models/users.schema.js +1 -0
- package/build/frontend/commands/nodes/create.command.js +5 -0
- package/build/frontend/commands/nodes/update.command.js +1 -0
- package/build/frontend/commands/users/create-user.command.js +1 -0
- package/build/frontend/commands/users/update-user.command.js +1 -0
- package/build/frontend/constants/events/events.js +2 -0
- package/build/frontend/models/nodes.schema.js +1 -0
- package/build/frontend/models/users.schema.js +1 -0
- package/package.json +1 -1
@@ -16,7 +16,7 @@ export declare namespace GetUserByUuidCommand {
|
|
16
16
|
subscriptionUuid: z.ZodString;
|
17
17
|
shortUuid: z.ZodString;
|
18
18
|
username: z.ZodString;
|
19
|
-
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "
|
19
|
+
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
|
20
20
|
usedTrafficBytes: z.ZodNumber;
|
21
21
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
22
22
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
@@ -30,6 +30,7 @@ export declare namespace GetUserByUuidCommand {
|
|
30
30
|
trojanPassword: z.ZodString;
|
31
31
|
vlessUuid: z.ZodString;
|
32
32
|
ssPassword: z.ZodString;
|
33
|
+
description: z.ZodNullable<z.ZodString>;
|
33
34
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
34
35
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
35
36
|
activeUserInbounds: z.ZodArray<z.ZodObject<{
|
@@ -50,7 +51,7 @@ export declare namespace GetUserByUuidCommand {
|
|
50
51
|
}>, "strip", z.ZodTypeAny, {
|
51
52
|
uuid: string;
|
52
53
|
username: string;
|
53
|
-
status: "DISABLED" | "
|
54
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
54
55
|
createdAt: Date;
|
55
56
|
updatedAt: Date;
|
56
57
|
trafficLimitBytes: number;
|
@@ -58,6 +59,7 @@ export declare namespace GetUserByUuidCommand {
|
|
58
59
|
shortUuid: string;
|
59
60
|
usedTrafficBytes: number;
|
60
61
|
lifetimeUsedTrafficBytes: number;
|
62
|
+
description: string | null;
|
61
63
|
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH";
|
62
64
|
subLastUserAgent: string | null;
|
63
65
|
subLastOpenedAt: Date | null;
|
@@ -83,6 +85,7 @@ export declare namespace GetUserByUuidCommand {
|
|
83
85
|
shortUuid: string;
|
84
86
|
usedTrafficBytes: number;
|
85
87
|
lifetimeUsedTrafficBytes: number;
|
88
|
+
description: string | null;
|
86
89
|
subLastUserAgent: string | null;
|
87
90
|
subLastOpenedAt: string | null;
|
88
91
|
expireAt: string | null;
|
@@ -98,7 +101,7 @@ export declare namespace GetUserByUuidCommand {
|
|
98
101
|
tag: string;
|
99
102
|
}[];
|
100
103
|
subscriptionUrl: string;
|
101
|
-
status?: "DISABLED" | "
|
104
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
102
105
|
trafficLimitBytes?: number | undefined;
|
103
106
|
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
|
104
107
|
}>;
|
@@ -106,7 +109,7 @@ export declare namespace GetUserByUuidCommand {
|
|
106
109
|
response: {
|
107
110
|
uuid: string;
|
108
111
|
username: string;
|
109
|
-
status: "DISABLED" | "
|
112
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
110
113
|
createdAt: Date;
|
111
114
|
updatedAt: Date;
|
112
115
|
trafficLimitBytes: number;
|
@@ -114,6 +117,7 @@ export declare namespace GetUserByUuidCommand {
|
|
114
117
|
shortUuid: string;
|
115
118
|
usedTrafficBytes: number;
|
116
119
|
lifetimeUsedTrafficBytes: number;
|
120
|
+
description: string | null;
|
117
121
|
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH";
|
118
122
|
subLastUserAgent: string | null;
|
119
123
|
subLastOpenedAt: Date | null;
|
@@ -141,6 +145,7 @@ export declare namespace GetUserByUuidCommand {
|
|
141
145
|
shortUuid: string;
|
142
146
|
usedTrafficBytes: number;
|
143
147
|
lifetimeUsedTrafficBytes: number;
|
148
|
+
description: string | null;
|
144
149
|
subLastUserAgent: string | null;
|
145
150
|
subLastOpenedAt: string | null;
|
146
151
|
expireAt: string | null;
|
@@ -156,7 +161,7 @@ export declare namespace GetUserByUuidCommand {
|
|
156
161
|
tag: string;
|
157
162
|
}[];
|
158
163
|
subscriptionUrl: string;
|
159
|
-
status?: "DISABLED" | "
|
164
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
160
165
|
trafficLimitBytes?: number | undefined;
|
161
166
|
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
|
162
167
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -16,7 +16,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
16
16
|
subscriptionUuid: z.ZodString;
|
17
17
|
shortUuid: z.ZodString;
|
18
18
|
username: z.ZodString;
|
19
|
-
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "
|
19
|
+
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
|
20
20
|
usedTrafficBytes: z.ZodNumber;
|
21
21
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
22
22
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
@@ -30,6 +30,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
30
30
|
trojanPassword: z.ZodString;
|
31
31
|
vlessUuid: z.ZodString;
|
32
32
|
ssPassword: z.ZodString;
|
33
|
+
description: z.ZodNullable<z.ZodString>;
|
33
34
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
34
35
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
35
36
|
activeUserInbounds: z.ZodArray<z.ZodObject<{
|
@@ -48,7 +49,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
48
49
|
}, "strip", z.ZodTypeAny, {
|
49
50
|
uuid: string;
|
50
51
|
username: string;
|
51
|
-
status: "DISABLED" | "
|
52
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
52
53
|
createdAt: Date;
|
53
54
|
updatedAt: Date;
|
54
55
|
trafficLimitBytes: number;
|
@@ -56,6 +57,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
56
57
|
shortUuid: string;
|
57
58
|
usedTrafficBytes: number;
|
58
59
|
lifetimeUsedTrafficBytes: number;
|
60
|
+
description: string | null;
|
59
61
|
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH";
|
60
62
|
subLastUserAgent: string | null;
|
61
63
|
subLastOpenedAt: Date | null;
|
@@ -80,6 +82,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
80
82
|
shortUuid: string;
|
81
83
|
usedTrafficBytes: number;
|
82
84
|
lifetimeUsedTrafficBytes: number;
|
85
|
+
description: string | null;
|
83
86
|
subLastUserAgent: string | null;
|
84
87
|
subLastOpenedAt: string | null;
|
85
88
|
expireAt: string | null;
|
@@ -94,7 +97,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
94
97
|
type: string;
|
95
98
|
tag: string;
|
96
99
|
}[];
|
97
|
-
status?: "DISABLED" | "
|
100
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
98
101
|
trafficLimitBytes?: number | undefined;
|
99
102
|
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
|
100
103
|
}>;
|
@@ -102,7 +105,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
102
105
|
response: {
|
103
106
|
uuid: string;
|
104
107
|
username: string;
|
105
|
-
status: "DISABLED" | "
|
108
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
106
109
|
createdAt: Date;
|
107
110
|
updatedAt: Date;
|
108
111
|
trafficLimitBytes: number;
|
@@ -110,6 +113,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
110
113
|
shortUuid: string;
|
111
114
|
usedTrafficBytes: number;
|
112
115
|
lifetimeUsedTrafficBytes: number;
|
116
|
+
description: string | null;
|
113
117
|
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH";
|
114
118
|
subLastUserAgent: string | null;
|
115
119
|
subLastOpenedAt: Date | null;
|
@@ -136,6 +140,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
136
140
|
shortUuid: string;
|
137
141
|
usedTrafficBytes: number;
|
138
142
|
lifetimeUsedTrafficBytes: number;
|
143
|
+
description: string | null;
|
139
144
|
subLastUserAgent: string | null;
|
140
145
|
subLastOpenedAt: string | null;
|
141
146
|
expireAt: string | null;
|
@@ -150,7 +155,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
150
155
|
type: string;
|
151
156
|
tag: string;
|
152
157
|
}[];
|
153
|
-
status?: "DISABLED" | "
|
158
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
154
159
|
trafficLimitBytes?: number | undefined;
|
155
160
|
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
|
156
161
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reset-user-traffic.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/reset-user-traffic.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,0BAAoC,CAAC;IAC9C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"reset-user-traffic.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/reset-user-traffic.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,0BAAoC,CAAC;IAC9C,MAAM,OAAO,QAAe,CAAC;IAE7B,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"}
|
@@ -16,7 +16,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
16
16
|
subscriptionUuid: z.ZodString;
|
17
17
|
shortUuid: z.ZodString;
|
18
18
|
username: z.ZodString;
|
19
|
-
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "
|
19
|
+
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
|
20
20
|
usedTrafficBytes: z.ZodNumber;
|
21
21
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
22
22
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
@@ -30,6 +30,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
30
30
|
trojanPassword: z.ZodString;
|
31
31
|
vlessUuid: z.ZodString;
|
32
32
|
ssPassword: z.ZodString;
|
33
|
+
description: z.ZodNullable<z.ZodString>;
|
33
34
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
34
35
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
35
36
|
activeUserInbounds: z.ZodArray<z.ZodObject<{
|
@@ -50,7 +51,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
50
51
|
}>, "strip", z.ZodTypeAny, {
|
51
52
|
uuid: string;
|
52
53
|
username: string;
|
53
|
-
status: "DISABLED" | "
|
54
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
54
55
|
createdAt: Date;
|
55
56
|
updatedAt: Date;
|
56
57
|
trafficLimitBytes: number;
|
@@ -58,6 +59,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
58
59
|
shortUuid: string;
|
59
60
|
usedTrafficBytes: number;
|
60
61
|
lifetimeUsedTrafficBytes: number;
|
62
|
+
description: string | null;
|
61
63
|
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH";
|
62
64
|
subLastUserAgent: string | null;
|
63
65
|
subLastOpenedAt: Date | null;
|
@@ -83,6 +85,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
83
85
|
shortUuid: string;
|
84
86
|
usedTrafficBytes: number;
|
85
87
|
lifetimeUsedTrafficBytes: number;
|
88
|
+
description: string | null;
|
86
89
|
subLastUserAgent: string | null;
|
87
90
|
subLastOpenedAt: string | null;
|
88
91
|
expireAt: string | null;
|
@@ -98,7 +101,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
98
101
|
tag: string;
|
99
102
|
}[];
|
100
103
|
subscriptionUrl: string;
|
101
|
-
status?: "DISABLED" | "
|
104
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
102
105
|
trafficLimitBytes?: number | undefined;
|
103
106
|
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
|
104
107
|
}>;
|
@@ -106,7 +109,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
106
109
|
response: {
|
107
110
|
uuid: string;
|
108
111
|
username: string;
|
109
|
-
status: "DISABLED" | "
|
112
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
110
113
|
createdAt: Date;
|
111
114
|
updatedAt: Date;
|
112
115
|
trafficLimitBytes: number;
|
@@ -114,6 +117,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
114
117
|
shortUuid: string;
|
115
118
|
usedTrafficBytes: number;
|
116
119
|
lifetimeUsedTrafficBytes: number;
|
120
|
+
description: string | null;
|
117
121
|
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH";
|
118
122
|
subLastUserAgent: string | null;
|
119
123
|
subLastOpenedAt: Date | null;
|
@@ -141,6 +145,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
141
145
|
shortUuid: string;
|
142
146
|
usedTrafficBytes: number;
|
143
147
|
lifetimeUsedTrafficBytes: number;
|
148
|
+
description: string | null;
|
144
149
|
subLastUserAgent: string | null;
|
145
150
|
subLastOpenedAt: string | null;
|
146
151
|
expireAt: string | null;
|
@@ -156,7 +161,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
156
161
|
tag: string;
|
157
162
|
}[];
|
158
163
|
subscriptionUrl: string;
|
159
|
-
status?: "DISABLED" | "
|
164
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
160
165
|
trafficLimitBytes?: number | undefined;
|
161
166
|
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
|
162
167
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAqC,CAAC;IAC/C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAqC,CAAC;IAC/C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -7,7 +7,7 @@ export declare namespace UpdateUserCommand {
|
|
7
7
|
subscriptionUuid: z.ZodString;
|
8
8
|
shortUuid: z.ZodString;
|
9
9
|
username: z.ZodString;
|
10
|
-
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "
|
10
|
+
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
|
11
11
|
usedTrafficBytes: z.ZodNumber;
|
12
12
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
13
13
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
@@ -21,6 +21,7 @@ export declare namespace UpdateUserCommand {
|
|
21
21
|
trojanPassword: z.ZodString;
|
22
22
|
vlessUuid: z.ZodString;
|
23
23
|
ssPassword: z.ZodString;
|
24
|
+
description: z.ZodNullable<z.ZodString>;
|
24
25
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
25
26
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
26
27
|
activeUserInbounds: z.ZodArray<z.ZodObject<{
|
@@ -37,22 +38,25 @@ export declare namespace UpdateUserCommand {
|
|
37
38
|
tag: string;
|
38
39
|
}>, "many">;
|
39
40
|
}, "uuid">, {
|
40
|
-
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["DISABLED" | "
|
41
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>>;
|
41
42
|
trafficLimitBytes: z.ZodOptional<z.ZodNumber>;
|
42
43
|
trafficLimitStrategy: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>>>, "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined>;
|
43
44
|
activeUserInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
44
45
|
expireAt: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, Date>>;
|
46
|
+
description: z.ZodOptional<z.ZodString>;
|
45
47
|
}>, "strip", z.ZodTypeAny, {
|
46
48
|
uuid: string;
|
47
49
|
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH";
|
48
|
-
status?: "DISABLED" | "
|
50
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
49
51
|
trafficLimitBytes?: number | undefined;
|
52
|
+
description?: string | undefined;
|
50
53
|
expireAt?: Date | undefined;
|
51
54
|
activeUserInbounds?: string[] | undefined;
|
52
55
|
}, {
|
53
56
|
uuid: string;
|
54
|
-
status?: "DISABLED" | "
|
57
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
55
58
|
trafficLimitBytes?: number | undefined;
|
59
|
+
description?: string | undefined;
|
56
60
|
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
|
57
61
|
expireAt?: Date | undefined;
|
58
62
|
activeUserInbounds?: string[] | undefined;
|
@@ -64,7 +68,7 @@ export declare namespace UpdateUserCommand {
|
|
64
68
|
subscriptionUuid: z.ZodString;
|
65
69
|
shortUuid: z.ZodString;
|
66
70
|
username: z.ZodString;
|
67
|
-
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "
|
71
|
+
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
|
68
72
|
usedTrafficBytes: z.ZodNumber;
|
69
73
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
70
74
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
@@ -78,6 +82,7 @@ export declare namespace UpdateUserCommand {
|
|
78
82
|
trojanPassword: z.ZodString;
|
79
83
|
vlessUuid: z.ZodString;
|
80
84
|
ssPassword: z.ZodString;
|
85
|
+
description: z.ZodNullable<z.ZodString>;
|
81
86
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
82
87
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
83
88
|
activeUserInbounds: z.ZodArray<z.ZodObject<{
|
@@ -98,7 +103,7 @@ export declare namespace UpdateUserCommand {
|
|
98
103
|
}>, "strip", z.ZodTypeAny, {
|
99
104
|
uuid: string;
|
100
105
|
username: string;
|
101
|
-
status: "DISABLED" | "
|
106
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
102
107
|
createdAt: Date;
|
103
108
|
updatedAt: Date;
|
104
109
|
trafficLimitBytes: number;
|
@@ -106,6 +111,7 @@ export declare namespace UpdateUserCommand {
|
|
106
111
|
shortUuid: string;
|
107
112
|
usedTrafficBytes: number;
|
108
113
|
lifetimeUsedTrafficBytes: number;
|
114
|
+
description: string | null;
|
109
115
|
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH";
|
110
116
|
subLastUserAgent: string | null;
|
111
117
|
subLastOpenedAt: Date | null;
|
@@ -131,6 +137,7 @@ export declare namespace UpdateUserCommand {
|
|
131
137
|
shortUuid: string;
|
132
138
|
usedTrafficBytes: number;
|
133
139
|
lifetimeUsedTrafficBytes: number;
|
140
|
+
description: string | null;
|
134
141
|
subLastUserAgent: string | null;
|
135
142
|
subLastOpenedAt: string | null;
|
136
143
|
expireAt: string | null;
|
@@ -146,7 +153,7 @@ export declare namespace UpdateUserCommand {
|
|
146
153
|
tag: string;
|
147
154
|
}[];
|
148
155
|
subscriptionUrl: string;
|
149
|
-
status?: "DISABLED" | "
|
156
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
150
157
|
trafficLimitBytes?: number | undefined;
|
151
158
|
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
|
152
159
|
}>;
|
@@ -154,7 +161,7 @@ export declare namespace UpdateUserCommand {
|
|
154
161
|
response: {
|
155
162
|
uuid: string;
|
156
163
|
username: string;
|
157
|
-
status: "DISABLED" | "
|
164
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
158
165
|
createdAt: Date;
|
159
166
|
updatedAt: Date;
|
160
167
|
trafficLimitBytes: number;
|
@@ -162,6 +169,7 @@ export declare namespace UpdateUserCommand {
|
|
162
169
|
shortUuid: string;
|
163
170
|
usedTrafficBytes: number;
|
164
171
|
lifetimeUsedTrafficBytes: number;
|
172
|
+
description: string | null;
|
165
173
|
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH";
|
166
174
|
subLastUserAgent: string | null;
|
167
175
|
subLastOpenedAt: Date | null;
|
@@ -189,6 +197,7 @@ export declare namespace UpdateUserCommand {
|
|
189
197
|
shortUuid: string;
|
190
198
|
usedTrafficBytes: number;
|
191
199
|
lifetimeUsedTrafficBytes: number;
|
200
|
+
description: string | null;
|
192
201
|
subLastUserAgent: string | null;
|
193
202
|
subLastOpenedAt: string | null;
|
194
203
|
expireAt: string | null;
|
@@ -204,7 +213,7 @@ export declare namespace UpdateUserCommand {
|
|
204
213
|
tag: string;
|
205
214
|
}[];
|
206
215
|
subscriptionUrl: string;
|
207
|
-
status?: "DISABLED" | "
|
216
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
208
217
|
trafficLimitBytes?: number | undefined;
|
209
218
|
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
|
210
219
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa
|
1
|
+
{"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0CxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -1,26 +1,30 @@
|
|
1
1
|
export declare const EVENTS: {
|
2
|
-
USER: {
|
3
|
-
CREATED:
|
4
|
-
MODIFIED:
|
5
|
-
DELETED:
|
6
|
-
REVOKED:
|
7
|
-
DISABLED:
|
8
|
-
ENABLED:
|
9
|
-
LIMITED:
|
10
|
-
EXPIRED:
|
11
|
-
TRAFFIC_RESET:
|
12
|
-
TRAFFIC_REACHED:
|
2
|
+
readonly USER: {
|
3
|
+
readonly CREATED: "user.created";
|
4
|
+
readonly MODIFIED: "user.modified";
|
5
|
+
readonly DELETED: "user.deleted";
|
6
|
+
readonly REVOKED: "user.revoked";
|
7
|
+
readonly DISABLED: "user.disabled";
|
8
|
+
readonly ENABLED: "user.enabled";
|
9
|
+
readonly LIMITED: "user.limited";
|
10
|
+
readonly EXPIRED: "user.expired";
|
11
|
+
readonly TRAFFIC_RESET: "user.traffic_reset";
|
12
|
+
readonly TRAFFIC_REACHED: "user.traffic_reached";
|
13
13
|
};
|
14
|
-
NODE: {
|
15
|
-
CREATED:
|
16
|
-
MODIFIED:
|
17
|
-
DISABLED:
|
18
|
-
ENABLED:
|
19
|
-
DELETED:
|
20
|
-
CONNECTION_LOST:
|
21
|
-
CONNECTION_RESTORED:
|
22
|
-
RESTARTED:
|
23
|
-
TRAFFIC_NOTIFY:
|
14
|
+
readonly NODE: {
|
15
|
+
readonly CREATED: "node.created";
|
16
|
+
readonly MODIFIED: "node.modified";
|
17
|
+
readonly DISABLED: "node.disabled";
|
18
|
+
readonly ENABLED: "node.enabled";
|
19
|
+
readonly DELETED: "node.deleted";
|
20
|
+
readonly CONNECTION_LOST: "node.connection_lost";
|
21
|
+
readonly CONNECTION_RESTORED: "node.connection_restored";
|
22
|
+
readonly RESTARTED: "node.restarted";
|
23
|
+
readonly TRAFFIC_NOTIFY: "node.traffic_notify";
|
24
24
|
};
|
25
|
+
readonly CATCH_ALL_USER_EVENTS: "user.*";
|
26
|
+
readonly CATCH_ALL_NODE_EVENTS: "node.*";
|
25
27
|
};
|
28
|
+
export type TNodeEvents = (typeof EVENTS.NODE)[keyof typeof EVENTS.NODE];
|
29
|
+
export type TUserEvents = (typeof EVENTS.USER)[keyof typeof EVENTS.USER];
|
26
30
|
//# sourceMappingURL=events.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BT,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC"}
|
@@ -4,5 +4,5 @@ export declare const NODES_STATUS: {
|
|
4
4
|
readonly DISABLED: "DISABLED";
|
5
5
|
};
|
6
6
|
export type TNodesStatus = [keyof typeof NODES_STATUS][number];
|
7
|
-
export declare const NODES_STATUS_VALUES: ("
|
7
|
+
export declare const NODES_STATUS_VALUES: ("DISABLED" | "CONNECTED" | "DISCONNECTED")[];
|
8
8
|
//# sourceMappingURL=status.constant.d.ts.map
|
@@ -5,5 +5,5 @@ export declare const USERS_STATUS: {
|
|
5
5
|
readonly EXPIRED: "EXPIRED";
|
6
6
|
};
|
7
7
|
export type TUsersStatus = [keyof typeof USERS_STATUS][number];
|
8
|
-
export declare const USERS_STATUS_VALUES: ("DISABLED" | "
|
8
|
+
export declare const USERS_STATUS_VALUES: ("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[];
|
9
9
|
//# sourceMappingURL=status.constant.d.ts.map
|
@@ -19,6 +19,7 @@ export declare const NodesSchema: z.ZodObject<{
|
|
19
19
|
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
20
20
|
usersOnline: z.ZodNullable<z.ZodNumber>;
|
21
21
|
viewPosition: z.ZodNumber;
|
22
|
+
countryCode: z.ZodString;
|
22
23
|
cpuCount: z.ZodNullable<z.ZodNumber>;
|
23
24
|
cpuModel: z.ZodNullable<z.ZodString>;
|
24
25
|
totalRam: z.ZodNullable<z.ZodString>;
|
@@ -59,6 +60,7 @@ export declare const NodesSchema: z.ZodObject<{
|
|
59
60
|
trafficUsedBytes: number | null;
|
60
61
|
notifyPercent: number | null;
|
61
62
|
usersOnline: number | null;
|
63
|
+
countryCode: string;
|
62
64
|
cpuCount: number | null;
|
63
65
|
cpuModel: string | null;
|
64
66
|
totalRam: string | null;
|
@@ -89,6 +91,7 @@ export declare const NodesSchema: z.ZodObject<{
|
|
89
91
|
trafficUsedBytes: number | null;
|
90
92
|
notifyPercent: number | null;
|
91
93
|
usersOnline: number | null;
|
94
|
+
countryCode: string;
|
92
95
|
cpuCount: number | null;
|
93
96
|
cpuModel: string | null;
|
94
97
|
totalRam: string | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW
|
1
|
+
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BtB,CAAC"}
|
@@ -23,6 +23,7 @@ exports.NodesSchema = zod_1.z.object({
|
|
23
23
|
notifyPercent: zod_1.z.nullable(zod_1.z.number().int()),
|
24
24
|
usersOnline: zod_1.z.nullable(zod_1.z.number().int()),
|
25
25
|
viewPosition: zod_1.z.number().int(),
|
26
|
+
countryCode: zod_1.z.string(),
|
26
27
|
cpuCount: zod_1.z.nullable(zod_1.z.number().int()),
|
27
28
|
cpuModel: zod_1.z.nullable(zod_1.z.string()),
|
28
29
|
totalRam: zod_1.z.nullable(zod_1.z.string()),
|
@@ -4,7 +4,7 @@ export declare const UsersSchema: z.ZodObject<{
|
|
4
4
|
subscriptionUuid: z.ZodString;
|
5
5
|
shortUuid: z.ZodString;
|
6
6
|
username: z.ZodString;
|
7
|
-
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "
|
7
|
+
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
|
8
8
|
usedTrafficBytes: z.ZodNumber;
|
9
9
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
10
10
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
@@ -18,6 +18,7 @@ export declare const UsersSchema: z.ZodObject<{
|
|
18
18
|
trojanPassword: z.ZodString;
|
19
19
|
vlessUuid: z.ZodString;
|
20
20
|
ssPassword: z.ZodString;
|
21
|
+
description: z.ZodNullable<z.ZodString>;
|
21
22
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
22
23
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
23
24
|
activeUserInbounds: z.ZodArray<z.ZodObject<{
|
@@ -36,7 +37,7 @@ export declare const UsersSchema: z.ZodObject<{
|
|
36
37
|
}, "strip", z.ZodTypeAny, {
|
37
38
|
uuid: string;
|
38
39
|
username: string;
|
39
|
-
status: "DISABLED" | "
|
40
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
40
41
|
createdAt: Date;
|
41
42
|
updatedAt: Date;
|
42
43
|
trafficLimitBytes: number;
|
@@ -44,6 +45,7 @@ export declare const UsersSchema: z.ZodObject<{
|
|
44
45
|
shortUuid: string;
|
45
46
|
usedTrafficBytes: number;
|
46
47
|
lifetimeUsedTrafficBytes: number;
|
48
|
+
description: string | null;
|
47
49
|
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH";
|
48
50
|
subLastUserAgent: string | null;
|
49
51
|
subLastOpenedAt: Date | null;
|
@@ -68,6 +70,7 @@ export declare const UsersSchema: z.ZodObject<{
|
|
68
70
|
shortUuid: string;
|
69
71
|
usedTrafficBytes: number;
|
70
72
|
lifetimeUsedTrafficBytes: number;
|
73
|
+
description: string | null;
|
71
74
|
subLastUserAgent: string | null;
|
72
75
|
subLastOpenedAt: string | null;
|
73
76
|
expireAt: string | null;
|
@@ -82,7 +85,7 @@ export declare const UsersSchema: z.ZodObject<{
|
|
82
85
|
type: string;
|
83
86
|
tag: string;
|
84
87
|
}[];
|
85
|
-
status?: "DISABLED" | "
|
88
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
86
89
|
trafficLimitBytes?: number | undefined;
|
87
90
|
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
|
88
91
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"users.schema.d.ts","sourceRoot":"","sources":["../../../models/users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW
|
1
|
+
{"version":3,"file":"users.schema.d.ts","sourceRoot":"","sources":["../../../models/users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCtB,CAAC"}
|
@@ -29,6 +29,7 @@ exports.UsersSchema = zod_1.z.object({
|
|
29
29
|
trojanPassword: zod_1.z.string(),
|
30
30
|
vlessUuid: zod_1.z.string().uuid(),
|
31
31
|
ssPassword: zod_1.z.string(),
|
32
|
+
description: zod_1.z.nullable(zod_1.z.string()),
|
32
33
|
createdAt: zod_1.z.string().transform((str) => new Date(str)),
|
33
34
|
updatedAt: zod_1.z.string().transform((str) => new Date(str)),
|
34
35
|
activeUserInbounds: zod_1.z.array(inbounds_schema_1.InboundsSchema),
|
@@ -27,6 +27,11 @@ var CreateNodeCommand;
|
|
27
27
|
excludedInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
|
28
28
|
invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
|
29
29
|
})),
|
30
|
+
countryCode: zod_1.z
|
31
|
+
.string()
|
32
|
+
.max(2, 'Country code must be 2 characters')
|
33
|
+
.toUpperCase()
|
34
|
+
.default('XX'),
|
30
35
|
});
|
31
36
|
CreateNodeCommand.ResponseSchema = zod_1.z.object({
|
32
37
|
response: models_1.NodesSchema,
|
@@ -27,6 +27,7 @@ var UpdateNodeCommand;
|
|
27
27
|
excludedInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
|
28
28
|
invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
|
29
29
|
})),
|
30
|
+
countryCode: zod_1.z.optional(zod_1.z.string().max(2, 'Country code must be 2 characters').toUpperCase()),
|
30
31
|
});
|
31
32
|
UpdateNodeCommand.ResponseSchema = zod_1.z.object({
|
32
33
|
response: models_1.NodesSchema,
|