@remnawave/backend-contract 0.0.87 → 0.1.1
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/hosts/create.command.d.ts +16 -2
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +2 -2
- package/build/backend/commands/hosts/update.command.d.ts +16 -2
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +2 -2
- package/build/backend/commands/nodes/get-nodes-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +6 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
- package/build/backend/commands/users/create-user.command.d.ts +50 -22
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +7 -10
- package/build/backend/commands/users/delete-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/disable-user.command.ts.d.ts +34 -10
- package/build/backend/commands/users/disable-user.command.ts.d.ts.map +1 -1
- package/build/backend/commands/users/disable-user.command.ts.js +3 -2
- package/build/backend/commands/users/enable-user.command.d.ts +34 -10
- package/build/backend/commands/users/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/enable-user.command.js +2 -0
- package/build/backend/commands/users/get-all-users-v2.command.d.ts +27 -29
- package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-all-users-v2.command.js +2 -6
- package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts +42 -12
- package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-short-uuid.command.js +5 -1
- package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts +42 -12
- package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-subscription-uuid.command.js +5 -1
- package/build/backend/commands/users/get-user-by-username.command.d.ts +42 -12
- package/build/backend/commands/users/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-username.command.js +5 -2
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +34 -10
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.js +2 -0
- package/build/backend/commands/users/reset-user-traffic.command.d.ts +42 -12
- package/build/backend/commands/users/reset-user-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/users/reset-user-traffic.command.js +5 -2
- package/build/backend/commands/users/revoke-user-subscription.command.d.ts +34 -10
- package/build/backend/commands/users/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/revoke-user-subscription.command.js +2 -0
- package/build/backend/commands/users/update-user.command.d.ts +41 -21
- 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/users/reset-periods/reset-periods.constant.d.ts +1 -3
- package/build/backend/constants/users/reset-periods/reset-periods.constant.d.ts.map +1 -1
- package/build/backend/constants/users/reset-periods/reset-periods.constant.js +0 -2
- package/build/backend/models/index.d.ts +1 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -0
- package/build/backend/models/last-connected-node.schema.d.ts +12 -0
- package/build/backend/models/last-connected-node.schema.d.ts.map +1 -0
- package/build/backend/models/last-connected-node.schema.js +10 -0
- package/build/backend/models/users.schema.d.ts +5 -7
- package/build/backend/models/users.schema.d.ts.map +1 -1
- package/build/backend/models/users.schema.js +2 -2
- package/build/frontend/commands/hosts/create.command.js +2 -2
- package/build/frontend/commands/hosts/update.command.js +2 -2
- package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
- package/build/frontend/commands/users/create-user.command.js +7 -10
- package/build/frontend/commands/users/disable-user.command.ts.js +3 -2
- package/build/frontend/commands/users/enable-user.command.js +2 -0
- package/build/frontend/commands/users/get-all-users-v2.command.js +2 -6
- package/build/frontend/commands/users/get-user-by-short-uuid.command.js +5 -1
- package/build/frontend/commands/users/get-user-by-subscription-uuid.command.js +5 -1
- package/build/frontend/commands/users/get-user-by-username.command.js +5 -2
- package/build/frontend/commands/users/get-user-by-uuid.command.js +2 -0
- package/build/frontend/commands/users/reset-user-traffic.command.js +5 -2
- package/build/frontend/commands/users/revoke-user-subscription.command.js +2 -0
- package/build/frontend/commands/users/update-user.command.js +1 -0
- package/build/frontend/constants/users/reset-periods/reset-periods.constant.js +0 -2
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/last-connected-node.schema.js +10 -0
- package/build/frontend/models/users.schema.js +2 -2
- package/package.json +1 -1
@@ -10,8 +10,22 @@ export declare namespace CreateHostCommand {
|
|
10
10
|
path: z.ZodOptional<z.ZodString>;
|
11
11
|
sni: z.ZodOptional<z.ZodString>;
|
12
12
|
host: z.ZodOptional<z.ZodString>;
|
13
|
-
alpn: z.ZodOptional<z.ZodNullable<z.
|
14
|
-
|
13
|
+
alpn: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
|
14
|
+
readonly HTTP_1_1: "http/1.1";
|
15
|
+
readonly H2: "h2";
|
16
|
+
readonly H_COMBINED: "h2,http/1.1";
|
17
|
+
}>>>;
|
18
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
|
19
|
+
readonly CHROME: "chrome";
|
20
|
+
readonly FIREFOX: "firefox";
|
21
|
+
readonly SAFARI: "safari";
|
22
|
+
readonly IOS: "ios";
|
23
|
+
readonly ANDROID: "android";
|
24
|
+
readonly EDGE: "edge";
|
25
|
+
readonly QQ: "qq";
|
26
|
+
readonly RANDOM: "random";
|
27
|
+
readonly RANDOMIZED: "randomized";
|
28
|
+
}>>>;
|
15
29
|
allowInsecure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
16
30
|
isDisabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
17
31
|
}, "strip", z.ZodTypeAny, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa
|
1
|
+
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4BxB,CAAC;IACH,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"}
|
@@ -34,8 +34,8 @@ var CreateHostCommand;
|
|
34
34
|
path: zod_1.z.string().optional(),
|
35
35
|
sni: zod_1.z.string().optional(),
|
36
36
|
host: zod_1.z.string().optional(),
|
37
|
-
alpn: zod_1.z.optional(zod_1.z.
|
38
|
-
fingerprint: zod_1.z.optional(zod_1.z.
|
37
|
+
alpn: zod_1.z.optional(zod_1.z.nativeEnum(alpn_1.ALPN).nullable()),
|
38
|
+
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(fingerprints_1.FINGERPRINTS).nullable()),
|
39
39
|
allowInsecure: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
40
40
|
isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
41
41
|
});
|
@@ -24,8 +24,22 @@ export declare namespace UpdateHostCommand {
|
|
24
24
|
path: z.ZodOptional<z.ZodString>;
|
25
25
|
sni: z.ZodOptional<z.ZodString>;
|
26
26
|
host: z.ZodOptional<z.ZodString>;
|
27
|
-
alpn: z.ZodOptional<z.ZodNullable<z.
|
28
|
-
|
27
|
+
alpn: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
|
28
|
+
readonly HTTP_1_1: "http/1.1";
|
29
|
+
readonly H2: "h2";
|
30
|
+
readonly H_COMBINED: "h2,http/1.1";
|
31
|
+
}>>>;
|
32
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
|
33
|
+
readonly CHROME: "chrome";
|
34
|
+
readonly FIREFOX: "firefox";
|
35
|
+
readonly SAFARI: "safari";
|
36
|
+
readonly IOS: "ios";
|
37
|
+
readonly ANDROID: "android";
|
38
|
+
readonly EDGE: "edge";
|
39
|
+
readonly QQ: "qq";
|
40
|
+
readonly RANDOM: "random";
|
41
|
+
readonly RANDOMIZED: "randomized";
|
42
|
+
}>>>;
|
29
43
|
allowInsecure: z.ZodOptional<z.ZodBoolean>;
|
30
44
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
31
45
|
}>, "strip", z.ZodTypeAny, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa
|
1
|
+
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmCxB,CAAC;IACH,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"}
|
@@ -41,8 +41,8 @@ var UpdateHostCommand;
|
|
41
41
|
path: zod_1.z.optional(zod_1.z.string()),
|
42
42
|
sni: zod_1.z.optional(zod_1.z.string()),
|
43
43
|
host: zod_1.z.optional(zod_1.z.string()),
|
44
|
-
alpn: zod_1.z.optional(zod_1.z.
|
45
|
-
fingerprint: zod_1.z.optional(zod_1.z.
|
44
|
+
alpn: zod_1.z.optional(zod_1.z.nativeEnum(alpn_1.ALPN).nullable()),
|
45
|
+
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(fingerprints_1.FINGERPRINTS).nullable()),
|
46
46
|
allowInsecure: zod_1.z.optional(zod_1.z.boolean()),
|
47
47
|
isDisabled: zod_1.z.optional(zod_1.z.boolean()),
|
48
48
|
});
|
@@ -24,8 +24,8 @@ export declare namespace GetNodesUsageByRangeCommand {
|
|
24
24
|
humanReadableTotalDownload: z.ZodString;
|
25
25
|
humanReadableTotalUpload: z.ZodString;
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
27
|
-
nodeUuid: string;
|
28
27
|
nodeName: string;
|
28
|
+
nodeUuid: string;
|
29
29
|
total: number;
|
30
30
|
totalDownload: number;
|
31
31
|
totalUpload: number;
|
@@ -33,8 +33,8 @@ export declare namespace GetNodesUsageByRangeCommand {
|
|
33
33
|
humanReadableTotalDownload: string;
|
34
34
|
humanReadableTotalUpload: string;
|
35
35
|
}, {
|
36
|
-
nodeUuid: string;
|
37
36
|
nodeName: string;
|
37
|
+
nodeUuid: string;
|
38
38
|
total: number;
|
39
39
|
totalDownload: number;
|
40
40
|
totalUpload: number;
|
@@ -44,8 +44,8 @@ export declare namespace GetNodesUsageByRangeCommand {
|
|
44
44
|
}>, "many">;
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
46
46
|
response: {
|
47
|
-
nodeUuid: string;
|
48
47
|
nodeName: string;
|
48
|
+
nodeUuid: string;
|
49
49
|
total: number;
|
50
50
|
totalDownload: number;
|
51
51
|
totalUpload: number;
|
@@ -55,8 +55,8 @@ export declare namespace GetNodesUsageByRangeCommand {
|
|
55
55
|
}[];
|
56
56
|
}, {
|
57
57
|
response: {
|
58
|
-
nodeUuid: string;
|
59
58
|
nodeName: string;
|
59
|
+
nodeUuid: string;
|
60
60
|
total: number;
|
61
61
|
totalDownload: number;
|
62
62
|
totalUpload: number;
|
package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts
CHANGED
@@ -21,7 +21,12 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
21
21
|
username: z.ZodString;
|
22
22
|
expiresAt: z.ZodEffects<z.ZodString, Date, string>;
|
23
23
|
isActive: z.ZodBoolean;
|
24
|
-
userStatus: z.
|
24
|
+
userStatus: z.ZodNativeEnum<{
|
25
|
+
readonly ACTIVE: "ACTIVE";
|
26
|
+
readonly DISABLED: "DISABLED";
|
27
|
+
readonly LIMITED: "LIMITED";
|
28
|
+
readonly EXPIRED: "EXPIRED";
|
29
|
+
}>;
|
25
30
|
}, "strip", z.ZodTypeAny, {
|
26
31
|
username: string;
|
27
32
|
shortUuid: string;
|
package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-subscription-info-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-subscription-info-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qCAAqC,CAAC;IAC5C,MAAM,GAAG,+BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-subscription-info-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-subscription-info-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qCAAqC,CAAC;IAC5C,MAAM,GAAG,+BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAczB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -22,7 +22,7 @@ var GetSubscriptionInfoByShortUuidCommand;
|
|
22
22
|
username: zod_1.z.string(),
|
23
23
|
expiresAt: zod_1.z.string().transform((str) => new Date(str)),
|
24
24
|
isActive: zod_1.z.boolean(),
|
25
|
-
userStatus: zod_1.z.
|
25
|
+
userStatus: zod_1.z.nativeEnum(constants_1.USERS_STATUS),
|
26
26
|
}),
|
27
27
|
}),
|
28
28
|
});
|
@@ -4,12 +4,12 @@ export declare namespace CreateUserCommand {
|
|
4
4
|
const TSQ_url: "/api/users/";
|
5
5
|
const RequestSchema: z.ZodObject<{
|
6
6
|
username: z.ZodString;
|
7
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
7
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
|
8
8
|
readonly ACTIVE: "ACTIVE";
|
9
9
|
readonly DISABLED: "DISABLED";
|
10
10
|
readonly LIMITED: "LIMITED";
|
11
11
|
readonly EXPIRED: "EXPIRED";
|
12
|
-
}
|
12
|
+
}>>>>;
|
13
13
|
subscriptionUuid: z.ZodOptional<z.ZodString>;
|
14
14
|
shortUuid: z.ZodOptional<z.ZodString>;
|
15
15
|
trojanPassword: z.ZodOptional<z.ZodString>;
|
@@ -21,19 +21,17 @@ export declare namespace CreateUserCommand {
|
|
21
21
|
readonly DAY: "DAY";
|
22
22
|
readonly WEEK: "WEEK";
|
23
23
|
readonly MONTH: "MONTH";
|
24
|
-
|
25
|
-
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
26
|
-
}>>>>, "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined>;
|
24
|
+
}>>>>, "MONTH" | "NO_RESET" | "DAY" | "WEEK", "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined>;
|
27
25
|
activeUserInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
28
|
-
expireAt: z.
|
29
|
-
createdAt: z.ZodOptional<z.
|
30
|
-
lastTrafficResetAt: z.ZodOptional<z.
|
26
|
+
expireAt: z.ZodDate;
|
27
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
28
|
+
lastTrafficResetAt: z.ZodOptional<z.ZodDate>;
|
31
29
|
description: z.ZodOptional<z.ZodString>;
|
32
30
|
activateAllInbounds: z.ZodOptional<z.ZodBoolean>;
|
33
31
|
}, "strip", z.ZodTypeAny, {
|
34
32
|
username: string;
|
35
33
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
36
|
-
trafficLimitStrategy: "MONTH" | "
|
34
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
37
35
|
expireAt: Date;
|
38
36
|
createdAt?: Date | undefined;
|
39
37
|
trafficLimitBytes?: number | undefined;
|
@@ -55,7 +53,7 @@ export declare namespace CreateUserCommand {
|
|
55
53
|
subscriptionUuid?: string | undefined;
|
56
54
|
shortUuid?: string | undefined;
|
57
55
|
description?: string | undefined;
|
58
|
-
trafficLimitStrategy?: "MONTH" | "
|
56
|
+
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
59
57
|
lastTrafficResetAt?: Date | undefined;
|
60
58
|
trojanPassword?: string | undefined;
|
61
59
|
vlessUuid?: string | undefined;
|
@@ -65,17 +63,17 @@ export declare namespace CreateUserCommand {
|
|
65
63
|
}>;
|
66
64
|
type Request = z.infer<typeof RequestSchema>;
|
67
65
|
const ResponseSchema: z.ZodObject<{
|
68
|
-
response: z.ZodObject<{
|
66
|
+
response: z.ZodObject<z.objectUtil.extendShape<{
|
69
67
|
uuid: z.ZodString;
|
70
68
|
subscriptionUuid: z.ZodString;
|
71
69
|
shortUuid: z.ZodString;
|
72
70
|
username: z.ZodString;
|
73
|
-
status: z.ZodNativeEnum<{
|
71
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
74
72
|
readonly ACTIVE: "ACTIVE";
|
75
73
|
readonly DISABLED: "DISABLED";
|
76
74
|
readonly LIMITED: "LIMITED";
|
77
75
|
readonly EXPIRED: "EXPIRED";
|
78
|
-
}
|
76
|
+
}>>;
|
79
77
|
usedTrafficBytes: z.ZodNumber;
|
80
78
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
81
79
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
@@ -84,8 +82,6 @@ export declare namespace CreateUserCommand {
|
|
84
82
|
readonly DAY: "DAY";
|
85
83
|
readonly WEEK: "WEEK";
|
86
84
|
readonly MONTH: "MONTH";
|
87
|
-
readonly YEAR: "YEAR";
|
88
|
-
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
89
85
|
}>>;
|
90
86
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
91
87
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -112,7 +108,19 @@ export declare namespace CreateUserCommand {
|
|
112
108
|
type: string;
|
113
109
|
tag: string;
|
114
110
|
}>, "many">;
|
115
|
-
},
|
111
|
+
}, {
|
112
|
+
subscriptionUrl: z.ZodString;
|
113
|
+
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
114
|
+
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
115
|
+
nodeName: z.ZodString;
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
117
|
+
connectedAt: Date;
|
118
|
+
nodeName: string;
|
119
|
+
}, {
|
120
|
+
connectedAt: string;
|
121
|
+
nodeName: string;
|
122
|
+
}>>;
|
123
|
+
}>, "strip", z.ZodTypeAny, {
|
116
124
|
uuid: string;
|
117
125
|
username: string;
|
118
126
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
@@ -124,7 +132,7 @@ export declare namespace CreateUserCommand {
|
|
124
132
|
usedTrafficBytes: number;
|
125
133
|
lifetimeUsedTrafficBytes: number;
|
126
134
|
description: string | null;
|
127
|
-
trafficLimitStrategy: "MONTH" | "
|
135
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
128
136
|
subLastUserAgent: string | null;
|
129
137
|
subLastOpenedAt: Date | null;
|
130
138
|
expireAt: Date | null;
|
@@ -139,10 +147,14 @@ export declare namespace CreateUserCommand {
|
|
139
147
|
type: string;
|
140
148
|
tag: string;
|
141
149
|
}[];
|
150
|
+
subscriptionUrl: string;
|
151
|
+
lastConnectedNode: {
|
152
|
+
connectedAt: Date;
|
153
|
+
nodeName: string;
|
154
|
+
} | null;
|
142
155
|
}, {
|
143
156
|
uuid: string;
|
144
157
|
username: string;
|
145
|
-
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
146
158
|
createdAt: string;
|
147
159
|
updatedAt: string;
|
148
160
|
subscriptionUuid: string;
|
@@ -164,8 +176,14 @@ export declare namespace CreateUserCommand {
|
|
164
176
|
type: string;
|
165
177
|
tag: string;
|
166
178
|
}[];
|
179
|
+
subscriptionUrl: string;
|
180
|
+
lastConnectedNode: {
|
181
|
+
connectedAt: string;
|
182
|
+
nodeName: string;
|
183
|
+
} | null;
|
184
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
167
185
|
trafficLimitBytes?: number | undefined;
|
168
|
-
trafficLimitStrategy?: "MONTH" | "
|
186
|
+
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
169
187
|
}>;
|
170
188
|
}, "strip", z.ZodTypeAny, {
|
171
189
|
response: {
|
@@ -180,7 +198,7 @@ export declare namespace CreateUserCommand {
|
|
180
198
|
usedTrafficBytes: number;
|
181
199
|
lifetimeUsedTrafficBytes: number;
|
182
200
|
description: string | null;
|
183
|
-
trafficLimitStrategy: "MONTH" | "
|
201
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
184
202
|
subLastUserAgent: string | null;
|
185
203
|
subLastOpenedAt: Date | null;
|
186
204
|
expireAt: Date | null;
|
@@ -195,12 +213,16 @@ export declare namespace CreateUserCommand {
|
|
195
213
|
type: string;
|
196
214
|
tag: string;
|
197
215
|
}[];
|
216
|
+
subscriptionUrl: string;
|
217
|
+
lastConnectedNode: {
|
218
|
+
connectedAt: Date;
|
219
|
+
nodeName: string;
|
220
|
+
} | null;
|
198
221
|
};
|
199
222
|
}, {
|
200
223
|
response: {
|
201
224
|
uuid: string;
|
202
225
|
username: string;
|
203
|
-
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
204
226
|
createdAt: string;
|
205
227
|
updatedAt: string;
|
206
228
|
subscriptionUuid: string;
|
@@ -222,8 +244,14 @@ export declare namespace CreateUserCommand {
|
|
222
244
|
type: string;
|
223
245
|
tag: string;
|
224
246
|
}[];
|
247
|
+
subscriptionUrl: string;
|
248
|
+
lastConnectedNode: {
|
249
|
+
connectedAt: string;
|
250
|
+
nodeName: string;
|
251
|
+
} | null;
|
252
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
225
253
|
trafficLimitBytes?: number | undefined;
|
226
|
-
trafficLimitStrategy?: "MONTH" | "
|
254
|
+
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
227
255
|
};
|
228
256
|
}>;
|
229
257
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -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,aAAa
|
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,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8FxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -83,31 +83,28 @@ var CreateUserCommand;
|
|
83
83
|
required_error: 'Expiration date is required',
|
84
84
|
invalid_type_error: 'Invalid expiration date format',
|
85
85
|
})
|
86
|
-
.
|
87
|
-
message: 'Expiration date cannot be in the past',
|
88
|
-
}),
|
86
|
+
.describe('Date format: 2025-01-17T15:38:45.065Z'),
|
89
87
|
createdAt: zod_1.z.coerce
|
90
88
|
.date({
|
91
89
|
required_error: 'Expiration date is required',
|
92
90
|
invalid_type_error: 'Invalid expiration date format',
|
93
91
|
})
|
94
|
-
.
|
95
|
-
message: 'Expiration date cannot be in the past',
|
96
|
-
})
|
92
|
+
.describe('Date format: 2025-01-17T15:38:45.065Z')
|
97
93
|
.optional(),
|
98
94
|
lastTrafficResetAt: zod_1.z.coerce
|
99
95
|
.date({
|
100
96
|
required_error: 'Expiration date is required',
|
101
97
|
invalid_type_error: 'Invalid expiration date format',
|
102
98
|
})
|
103
|
-
.
|
104
|
-
message: 'Expiration date cannot be in the past',
|
105
|
-
})
|
99
|
+
.describe('Date format: 2025-01-17T15:38:45.065Z')
|
106
100
|
.optional(),
|
107
101
|
description: zod_1.z.string().optional(),
|
108
102
|
activateAllInbounds: zod_1.z.boolean().optional(),
|
109
103
|
});
|
110
104
|
CreateUserCommand.ResponseSchema = zod_1.z.object({
|
111
|
-
response: models_1.UsersSchema
|
105
|
+
response: models_1.UsersSchema.extend({
|
106
|
+
subscriptionUrl: zod_1.z.string(),
|
107
|
+
lastConnectedNode: models_1.LastConnectedNodeSchema,
|
108
|
+
}),
|
112
109
|
});
|
113
110
|
})(CreateUserCommand || (exports.CreateUserCommand = CreateUserCommand = {}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"delete-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/delete-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
1
|
+
{"version":3,"file":"delete-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/delete-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,iBAAiB,CAAC;IACxB,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,12 +16,12 @@ export declare namespace DisableUserCommand {
|
|
16
16
|
subscriptionUuid: z.ZodString;
|
17
17
|
shortUuid: z.ZodString;
|
18
18
|
username: z.ZodString;
|
19
|
-
status: z.ZodNativeEnum<{
|
19
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
20
20
|
readonly ACTIVE: "ACTIVE";
|
21
21
|
readonly DISABLED: "DISABLED";
|
22
22
|
readonly LIMITED: "LIMITED";
|
23
23
|
readonly EXPIRED: "EXPIRED";
|
24
|
-
}
|
24
|
+
}>>;
|
25
25
|
usedTrafficBytes: z.ZodNumber;
|
26
26
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
27
27
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
@@ -30,8 +30,6 @@ export declare namespace DisableUserCommand {
|
|
30
30
|
readonly DAY: "DAY";
|
31
31
|
readonly WEEK: "WEEK";
|
32
32
|
readonly MONTH: "MONTH";
|
33
|
-
readonly YEAR: "YEAR";
|
34
|
-
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
35
33
|
}>>;
|
36
34
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
37
35
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -60,6 +58,16 @@ export declare namespace DisableUserCommand {
|
|
60
58
|
}>, "many">;
|
61
59
|
}, {
|
62
60
|
subscriptionUrl: z.ZodString;
|
61
|
+
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
62
|
+
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
63
|
+
nodeName: z.ZodString;
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
65
|
+
connectedAt: Date;
|
66
|
+
nodeName: string;
|
67
|
+
}, {
|
68
|
+
connectedAt: string;
|
69
|
+
nodeName: string;
|
70
|
+
}>>;
|
63
71
|
}>, "strip", z.ZodTypeAny, {
|
64
72
|
uuid: string;
|
65
73
|
username: string;
|
@@ -72,7 +80,7 @@ export declare namespace DisableUserCommand {
|
|
72
80
|
usedTrafficBytes: number;
|
73
81
|
lifetimeUsedTrafficBytes: number;
|
74
82
|
description: string | null;
|
75
|
-
trafficLimitStrategy: "MONTH" | "
|
83
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
76
84
|
subLastUserAgent: string | null;
|
77
85
|
subLastOpenedAt: Date | null;
|
78
86
|
expireAt: Date | null;
|
@@ -88,10 +96,13 @@ export declare namespace DisableUserCommand {
|
|
88
96
|
tag: string;
|
89
97
|
}[];
|
90
98
|
subscriptionUrl: string;
|
99
|
+
lastConnectedNode: {
|
100
|
+
connectedAt: Date;
|
101
|
+
nodeName: string;
|
102
|
+
} | null;
|
91
103
|
}, {
|
92
104
|
uuid: string;
|
93
105
|
username: string;
|
94
|
-
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
95
106
|
createdAt: string;
|
96
107
|
updatedAt: string;
|
97
108
|
subscriptionUuid: string;
|
@@ -114,8 +125,13 @@ export declare namespace DisableUserCommand {
|
|
114
125
|
tag: string;
|
115
126
|
}[];
|
116
127
|
subscriptionUrl: string;
|
128
|
+
lastConnectedNode: {
|
129
|
+
connectedAt: string;
|
130
|
+
nodeName: string;
|
131
|
+
} | null;
|
132
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
117
133
|
trafficLimitBytes?: number | undefined;
|
118
|
-
trafficLimitStrategy?: "MONTH" | "
|
134
|
+
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
119
135
|
}>;
|
120
136
|
}, "strip", z.ZodTypeAny, {
|
121
137
|
response: {
|
@@ -130,7 +146,7 @@ export declare namespace DisableUserCommand {
|
|
130
146
|
usedTrafficBytes: number;
|
131
147
|
lifetimeUsedTrafficBytes: number;
|
132
148
|
description: string | null;
|
133
|
-
trafficLimitStrategy: "MONTH" | "
|
149
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
134
150
|
subLastUserAgent: string | null;
|
135
151
|
subLastOpenedAt: Date | null;
|
136
152
|
expireAt: Date | null;
|
@@ -146,12 +162,15 @@ export declare namespace DisableUserCommand {
|
|
146
162
|
tag: string;
|
147
163
|
}[];
|
148
164
|
subscriptionUrl: string;
|
165
|
+
lastConnectedNode: {
|
166
|
+
connectedAt: Date;
|
167
|
+
nodeName: string;
|
168
|
+
} | null;
|
149
169
|
};
|
150
170
|
}, {
|
151
171
|
response: {
|
152
172
|
uuid: string;
|
153
173
|
username: string;
|
154
|
-
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
155
174
|
createdAt: string;
|
156
175
|
updatedAt: string;
|
157
176
|
subscriptionUuid: string;
|
@@ -174,8 +193,13 @@ export declare namespace DisableUserCommand {
|
|
174
193
|
tag: string;
|
175
194
|
}[];
|
176
195
|
subscriptionUrl: string;
|
196
|
+
lastConnectedNode: {
|
197
|
+
connectedAt: string;
|
198
|
+
nodeName: string;
|
199
|
+
} | null;
|
200
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
177
201
|
trafficLimitBytes?: number | undefined;
|
178
|
-
trafficLimitStrategy?: "MONTH" | "
|
202
|
+
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
179
203
|
};
|
180
204
|
}>;
|
181
205
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"disable-user.command.ts.d.ts","sourceRoot":"","sources":["../../../../commands/users/disable-user.command.ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAA8B,CAAC;IACxC,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":"disable-user.command.ts.d.ts","sourceRoot":"","sources":["../../../../commands/users/disable-user.command.ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAA8B,CAAC;IACxC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.DisableUserCommand = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const
|
5
|
+
const models_1 = require("../../models");
|
6
6
|
const api_1 = require("../../api");
|
7
7
|
var DisableUserCommand;
|
8
8
|
(function (DisableUserCommand) {
|
@@ -12,8 +12,9 @@ var DisableUserCommand;
|
|
12
12
|
uuid: zod_1.z.string().uuid(),
|
13
13
|
});
|
14
14
|
DisableUserCommand.ResponseSchema = zod_1.z.object({
|
15
|
-
response:
|
15
|
+
response: models_1.UsersSchema.extend({
|
16
16
|
subscriptionUrl: zod_1.z.string(),
|
17
|
+
lastConnectedNode: models_1.LastConnectedNodeSchema,
|
17
18
|
}),
|
18
19
|
});
|
19
20
|
})(DisableUserCommand || (exports.DisableUserCommand = DisableUserCommand = {}));
|