@remnawave/backend-contract 2.7.2 → 2.8.0
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/hwid/create-user-hwid-device.command.d.ts +17 -7
- package/build/backend/commands/hwid/create-user-hwid-device.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/create-user-hwid-device.command.js +1 -0
- package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.d.ts +14 -7
- package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts +14 -7
- package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/get-all-hwid-devices.command.d.ts +14 -7
- package/build/backend/commands/hwid/get-all-hwid-devices.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/get-user-hwid-devices.command.d.ts +14 -7
- package/build/backend/commands/hwid/get-user-hwid-devices.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +1 -1
- package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts +7 -7
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users.command.js +0 -1
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.js +0 -1
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +0 -1
- package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts +7 -7
- package/build/backend/commands/users/get-user-subscription-request-history.command.js +1 -1
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +0 -1
- package/build/backend/constants/metrics/metric-names.constant.d.ts +3 -0
- package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
- package/build/backend/constants/metrics/metric-names.constant.js +3 -0
- package/build/backend/models/hwid-user-device.schema.d.ts +6 -3
- package/build/backend/models/hwid-user-device.schema.d.ts.map +1 -1
- package/build/backend/models/hwid-user-device.schema.js +2 -1
- package/build/backend/models/subscription-request-history.schema.d.ts +3 -3
- package/build/backend/models/subscription-request-history.schema.js +1 -1
- package/build/backend/models/users.schema.js +1 -1
- package/build/backend/models/webhook/webhook.schema.d.ts +28 -14
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/frontend/commands/hwid/create-user-hwid-device.command.js +1 -0
- package/build/frontend/commands/nodes/create.command.js +1 -1
- package/build/frontend/commands/users/bulk/bulk-update-users.command.js +0 -1
- package/build/frontend/commands/users/bulk-all/bulk-all-update-users.command.js +0 -1
- package/build/frontend/commands/users/create-user.command.js +0 -1
- package/build/frontend/commands/users/get-user-subscription-request-history.command.js +1 -1
- package/build/frontend/commands/users/update-user.command.js +0 -1
- package/build/frontend/constants/metrics/metric-names.constant.js +3 -0
- package/build/frontend/models/hwid-user-device.schema.js +2 -1
- package/build/frontend/models/subscription-request-history.schema.js +1 -1
- package/build/frontend/models/users.schema.js +1 -1
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export declare namespace CreateUserHwidDeviceCommand {
|
|
|
10
10
|
osVersion: z.ZodOptional<z.ZodString>;
|
|
11
11
|
deviceModel: z.ZodOptional<z.ZodString>;
|
|
12
12
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
13
|
+
requestIp: z.ZodOptional<z.ZodString>;
|
|
13
14
|
}, "strip", z.ZodTypeAny, {
|
|
14
15
|
hwid: string;
|
|
15
16
|
userUuid: string;
|
|
@@ -17,6 +18,7 @@ export declare namespace CreateUserHwidDeviceCommand {
|
|
|
17
18
|
osVersion?: string | undefined;
|
|
18
19
|
deviceModel?: string | undefined;
|
|
19
20
|
userAgent?: string | undefined;
|
|
21
|
+
requestIp?: string | undefined;
|
|
20
22
|
}, {
|
|
21
23
|
hwid: string;
|
|
22
24
|
userUuid: string;
|
|
@@ -24,6 +26,7 @@ export declare namespace CreateUserHwidDeviceCommand {
|
|
|
24
26
|
osVersion?: string | undefined;
|
|
25
27
|
deviceModel?: string | undefined;
|
|
26
28
|
userAgent?: string | undefined;
|
|
29
|
+
requestIp?: string | undefined;
|
|
27
30
|
}>;
|
|
28
31
|
type Request = z.infer<typeof RequestSchema>;
|
|
29
32
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -31,42 +34,46 @@ export declare namespace CreateUserHwidDeviceCommand {
|
|
|
31
34
|
total: z.ZodNumber;
|
|
32
35
|
devices: z.ZodArray<z.ZodObject<{
|
|
33
36
|
hwid: z.ZodString;
|
|
34
|
-
|
|
37
|
+
userId: z.ZodNumber;
|
|
35
38
|
platform: z.ZodNullable<z.ZodString>;
|
|
36
39
|
osVersion: z.ZodNullable<z.ZodString>;
|
|
37
40
|
deviceModel: z.ZodNullable<z.ZodString>;
|
|
38
41
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
42
|
+
requestIp: z.ZodNullable<z.ZodString>;
|
|
39
43
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
40
44
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
41
45
|
}, "strip", z.ZodTypeAny, {
|
|
42
46
|
hwid: string;
|
|
43
47
|
createdAt: Date;
|
|
44
48
|
updatedAt: Date;
|
|
45
|
-
|
|
49
|
+
userId: number;
|
|
46
50
|
platform: string | null;
|
|
47
51
|
osVersion: string | null;
|
|
48
52
|
deviceModel: string | null;
|
|
49
53
|
userAgent: string | null;
|
|
54
|
+
requestIp: string | null;
|
|
50
55
|
}, {
|
|
51
56
|
hwid: string;
|
|
52
57
|
createdAt: string;
|
|
53
58
|
updatedAt: string;
|
|
54
|
-
|
|
59
|
+
userId: number;
|
|
55
60
|
platform: string | null;
|
|
56
61
|
osVersion: string | null;
|
|
57
62
|
deviceModel: string | null;
|
|
58
63
|
userAgent: string | null;
|
|
64
|
+
requestIp: string | null;
|
|
59
65
|
}>, "many">;
|
|
60
66
|
}, "strip", z.ZodTypeAny, {
|
|
61
67
|
devices: {
|
|
62
68
|
hwid: string;
|
|
63
69
|
createdAt: Date;
|
|
64
70
|
updatedAt: Date;
|
|
65
|
-
|
|
71
|
+
userId: number;
|
|
66
72
|
platform: string | null;
|
|
67
73
|
osVersion: string | null;
|
|
68
74
|
deviceModel: string | null;
|
|
69
75
|
userAgent: string | null;
|
|
76
|
+
requestIp: string | null;
|
|
70
77
|
}[];
|
|
71
78
|
total: number;
|
|
72
79
|
}, {
|
|
@@ -74,11 +81,12 @@ export declare namespace CreateUserHwidDeviceCommand {
|
|
|
74
81
|
hwid: string;
|
|
75
82
|
createdAt: string;
|
|
76
83
|
updatedAt: string;
|
|
77
|
-
|
|
84
|
+
userId: number;
|
|
78
85
|
platform: string | null;
|
|
79
86
|
osVersion: string | null;
|
|
80
87
|
deviceModel: string | null;
|
|
81
88
|
userAgent: string | null;
|
|
89
|
+
requestIp: string | null;
|
|
82
90
|
}[];
|
|
83
91
|
total: number;
|
|
84
92
|
}>;
|
|
@@ -88,11 +96,12 @@ export declare namespace CreateUserHwidDeviceCommand {
|
|
|
88
96
|
hwid: string;
|
|
89
97
|
createdAt: Date;
|
|
90
98
|
updatedAt: Date;
|
|
91
|
-
|
|
99
|
+
userId: number;
|
|
92
100
|
platform: string | null;
|
|
93
101
|
osVersion: string | null;
|
|
94
102
|
deviceModel: string | null;
|
|
95
103
|
userAgent: string | null;
|
|
104
|
+
requestIp: string | null;
|
|
96
105
|
}[];
|
|
97
106
|
total: number;
|
|
98
107
|
};
|
|
@@ -102,11 +111,12 @@ export declare namespace CreateUserHwidDeviceCommand {
|
|
|
102
111
|
hwid: string;
|
|
103
112
|
createdAt: string;
|
|
104
113
|
updatedAt: string;
|
|
105
|
-
|
|
114
|
+
userId: number;
|
|
106
115
|
platform: string | null;
|
|
107
116
|
osVersion: string | null;
|
|
108
117
|
deviceModel: string | null;
|
|
109
118
|
userAgent: string | null;
|
|
119
|
+
requestIp: string | null;
|
|
110
120
|
}[];
|
|
111
121
|
total: number;
|
|
112
122
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user-hwid-device.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/create-user-hwid-device.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,qBAAwC,CAAC;IAClD,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"create-user-hwid-device.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/create-user-hwid-device.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,qBAAwC,CAAC;IAClD,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;MAQxB,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"}
|
|
@@ -17,6 +17,7 @@ var CreateUserHwidDeviceCommand;
|
|
|
17
17
|
osVersion: zod_1.z.optional(zod_1.z.string()),
|
|
18
18
|
deviceModel: zod_1.z.optional(zod_1.z.string()),
|
|
19
19
|
userAgent: zod_1.z.optional(zod_1.z.string()),
|
|
20
|
+
requestIp: zod_1.z.optional(zod_1.z.string()),
|
|
20
21
|
});
|
|
21
22
|
CreateUserHwidDeviceCommand.ResponseSchema = zod_1.z.object({
|
|
22
23
|
response: zod_1.z.object({
|
|
@@ -16,42 +16,46 @@ export declare namespace DeleteAllUserHwidDevicesCommand {
|
|
|
16
16
|
total: z.ZodNumber;
|
|
17
17
|
devices: z.ZodArray<z.ZodObject<{
|
|
18
18
|
hwid: z.ZodString;
|
|
19
|
-
|
|
19
|
+
userId: z.ZodNumber;
|
|
20
20
|
platform: z.ZodNullable<z.ZodString>;
|
|
21
21
|
osVersion: z.ZodNullable<z.ZodString>;
|
|
22
22
|
deviceModel: z.ZodNullable<z.ZodString>;
|
|
23
23
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
24
|
+
requestIp: z.ZodNullable<z.ZodString>;
|
|
24
25
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
25
26
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
26
27
|
}, "strip", z.ZodTypeAny, {
|
|
27
28
|
hwid: string;
|
|
28
29
|
createdAt: Date;
|
|
29
30
|
updatedAt: Date;
|
|
30
|
-
|
|
31
|
+
userId: number;
|
|
31
32
|
platform: string | null;
|
|
32
33
|
osVersion: string | null;
|
|
33
34
|
deviceModel: string | null;
|
|
34
35
|
userAgent: string | null;
|
|
36
|
+
requestIp: string | null;
|
|
35
37
|
}, {
|
|
36
38
|
hwid: string;
|
|
37
39
|
createdAt: string;
|
|
38
40
|
updatedAt: string;
|
|
39
|
-
|
|
41
|
+
userId: number;
|
|
40
42
|
platform: string | null;
|
|
41
43
|
osVersion: string | null;
|
|
42
44
|
deviceModel: string | null;
|
|
43
45
|
userAgent: string | null;
|
|
46
|
+
requestIp: string | null;
|
|
44
47
|
}>, "many">;
|
|
45
48
|
}, "strip", z.ZodTypeAny, {
|
|
46
49
|
devices: {
|
|
47
50
|
hwid: string;
|
|
48
51
|
createdAt: Date;
|
|
49
52
|
updatedAt: Date;
|
|
50
|
-
|
|
53
|
+
userId: number;
|
|
51
54
|
platform: string | null;
|
|
52
55
|
osVersion: string | null;
|
|
53
56
|
deviceModel: string | null;
|
|
54
57
|
userAgent: string | null;
|
|
58
|
+
requestIp: string | null;
|
|
55
59
|
}[];
|
|
56
60
|
total: number;
|
|
57
61
|
}, {
|
|
@@ -59,11 +63,12 @@ export declare namespace DeleteAllUserHwidDevicesCommand {
|
|
|
59
63
|
hwid: string;
|
|
60
64
|
createdAt: string;
|
|
61
65
|
updatedAt: string;
|
|
62
|
-
|
|
66
|
+
userId: number;
|
|
63
67
|
platform: string | null;
|
|
64
68
|
osVersion: string | null;
|
|
65
69
|
deviceModel: string | null;
|
|
66
70
|
userAgent: string | null;
|
|
71
|
+
requestIp: string | null;
|
|
67
72
|
}[];
|
|
68
73
|
total: number;
|
|
69
74
|
}>;
|
|
@@ -73,11 +78,12 @@ export declare namespace DeleteAllUserHwidDevicesCommand {
|
|
|
73
78
|
hwid: string;
|
|
74
79
|
createdAt: Date;
|
|
75
80
|
updatedAt: Date;
|
|
76
|
-
|
|
81
|
+
userId: number;
|
|
77
82
|
platform: string | null;
|
|
78
83
|
osVersion: string | null;
|
|
79
84
|
deviceModel: string | null;
|
|
80
85
|
userAgent: string | null;
|
|
86
|
+
requestIp: string | null;
|
|
81
87
|
}[];
|
|
82
88
|
total: number;
|
|
83
89
|
};
|
|
@@ -87,11 +93,12 @@ export declare namespace DeleteAllUserHwidDevicesCommand {
|
|
|
87
93
|
hwid: string;
|
|
88
94
|
createdAt: string;
|
|
89
95
|
updatedAt: string;
|
|
90
|
-
|
|
96
|
+
userId: number;
|
|
91
97
|
platform: string | null;
|
|
92
98
|
osVersion: string | null;
|
|
93
99
|
deviceModel: string | null;
|
|
94
100
|
userAgent: string | null;
|
|
101
|
+
requestIp: string | null;
|
|
95
102
|
}[];
|
|
96
103
|
total: number;
|
|
97
104
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-all-user-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/delete-all-user-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,gCAA6C,CAAC;IACvD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"delete-all-user-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/delete-all-user-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,gCAA6C,CAAC;IACvD,MAAM,OAAO,gCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,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"}
|
|
@@ -19,42 +19,46 @@ export declare namespace DeleteUserHwidDeviceCommand {
|
|
|
19
19
|
total: z.ZodNumber;
|
|
20
20
|
devices: z.ZodArray<z.ZodObject<{
|
|
21
21
|
hwid: z.ZodString;
|
|
22
|
-
|
|
22
|
+
userId: z.ZodNumber;
|
|
23
23
|
platform: z.ZodNullable<z.ZodString>;
|
|
24
24
|
osVersion: z.ZodNullable<z.ZodString>;
|
|
25
25
|
deviceModel: z.ZodNullable<z.ZodString>;
|
|
26
26
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
27
|
+
requestIp: z.ZodNullable<z.ZodString>;
|
|
27
28
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
28
29
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
29
30
|
}, "strip", z.ZodTypeAny, {
|
|
30
31
|
hwid: string;
|
|
31
32
|
createdAt: Date;
|
|
32
33
|
updatedAt: Date;
|
|
33
|
-
|
|
34
|
+
userId: number;
|
|
34
35
|
platform: string | null;
|
|
35
36
|
osVersion: string | null;
|
|
36
37
|
deviceModel: string | null;
|
|
37
38
|
userAgent: string | null;
|
|
39
|
+
requestIp: string | null;
|
|
38
40
|
}, {
|
|
39
41
|
hwid: string;
|
|
40
42
|
createdAt: string;
|
|
41
43
|
updatedAt: string;
|
|
42
|
-
|
|
44
|
+
userId: number;
|
|
43
45
|
platform: string | null;
|
|
44
46
|
osVersion: string | null;
|
|
45
47
|
deviceModel: string | null;
|
|
46
48
|
userAgent: string | null;
|
|
49
|
+
requestIp: string | null;
|
|
47
50
|
}>, "many">;
|
|
48
51
|
}, "strip", z.ZodTypeAny, {
|
|
49
52
|
devices: {
|
|
50
53
|
hwid: string;
|
|
51
54
|
createdAt: Date;
|
|
52
55
|
updatedAt: Date;
|
|
53
|
-
|
|
56
|
+
userId: number;
|
|
54
57
|
platform: string | null;
|
|
55
58
|
osVersion: string | null;
|
|
56
59
|
deviceModel: string | null;
|
|
57
60
|
userAgent: string | null;
|
|
61
|
+
requestIp: string | null;
|
|
58
62
|
}[];
|
|
59
63
|
total: number;
|
|
60
64
|
}, {
|
|
@@ -62,11 +66,12 @@ export declare namespace DeleteUserHwidDeviceCommand {
|
|
|
62
66
|
hwid: string;
|
|
63
67
|
createdAt: string;
|
|
64
68
|
updatedAt: string;
|
|
65
|
-
|
|
69
|
+
userId: number;
|
|
66
70
|
platform: string | null;
|
|
67
71
|
osVersion: string | null;
|
|
68
72
|
deviceModel: string | null;
|
|
69
73
|
userAgent: string | null;
|
|
74
|
+
requestIp: string | null;
|
|
70
75
|
}[];
|
|
71
76
|
total: number;
|
|
72
77
|
}>;
|
|
@@ -76,11 +81,12 @@ export declare namespace DeleteUserHwidDeviceCommand {
|
|
|
76
81
|
hwid: string;
|
|
77
82
|
createdAt: Date;
|
|
78
83
|
updatedAt: Date;
|
|
79
|
-
|
|
84
|
+
userId: number;
|
|
80
85
|
platform: string | null;
|
|
81
86
|
osVersion: string | null;
|
|
82
87
|
deviceModel: string | null;
|
|
83
88
|
userAgent: string | null;
|
|
89
|
+
requestIp: string | null;
|
|
84
90
|
}[];
|
|
85
91
|
total: number;
|
|
86
92
|
};
|
|
@@ -90,11 +96,12 @@ export declare namespace DeleteUserHwidDeviceCommand {
|
|
|
90
96
|
hwid: string;
|
|
91
97
|
createdAt: string;
|
|
92
98
|
updatedAt: string;
|
|
93
|
-
|
|
99
|
+
userId: number;
|
|
94
100
|
platform: string | null;
|
|
95
101
|
osVersion: string | null;
|
|
96
102
|
deviceModel: string | null;
|
|
97
103
|
userAgent: string | null;
|
|
104
|
+
requestIp: string | null;
|
|
98
105
|
}[];
|
|
99
106
|
total: number;
|
|
100
107
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-user-hwid-device.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/delete-user-hwid-device.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,4BAAwC,CAAC;IAClD,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"delete-user-hwid-device.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/delete-user-hwid-device.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,4BAAwC,CAAC;IAClD,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;MAGxB,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"}
|
|
@@ -60,31 +60,34 @@ export declare namespace GetAllHwidDevicesCommand {
|
|
|
60
60
|
response: z.ZodObject<{
|
|
61
61
|
devices: z.ZodArray<z.ZodObject<{
|
|
62
62
|
hwid: z.ZodString;
|
|
63
|
-
|
|
63
|
+
userId: z.ZodNumber;
|
|
64
64
|
platform: z.ZodNullable<z.ZodString>;
|
|
65
65
|
osVersion: z.ZodNullable<z.ZodString>;
|
|
66
66
|
deviceModel: z.ZodNullable<z.ZodString>;
|
|
67
67
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
68
|
+
requestIp: z.ZodNullable<z.ZodString>;
|
|
68
69
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
69
70
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
70
71
|
}, "strip", z.ZodTypeAny, {
|
|
71
72
|
hwid: string;
|
|
72
73
|
createdAt: Date;
|
|
73
74
|
updatedAt: Date;
|
|
74
|
-
|
|
75
|
+
userId: number;
|
|
75
76
|
platform: string | null;
|
|
76
77
|
osVersion: string | null;
|
|
77
78
|
deviceModel: string | null;
|
|
78
79
|
userAgent: string | null;
|
|
80
|
+
requestIp: string | null;
|
|
79
81
|
}, {
|
|
80
82
|
hwid: string;
|
|
81
83
|
createdAt: string;
|
|
82
84
|
updatedAt: string;
|
|
83
|
-
|
|
85
|
+
userId: number;
|
|
84
86
|
platform: string | null;
|
|
85
87
|
osVersion: string | null;
|
|
86
88
|
deviceModel: string | null;
|
|
87
89
|
userAgent: string | null;
|
|
90
|
+
requestIp: string | null;
|
|
88
91
|
}>, "many">;
|
|
89
92
|
total: z.ZodNumber;
|
|
90
93
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -92,11 +95,12 @@ export declare namespace GetAllHwidDevicesCommand {
|
|
|
92
95
|
hwid: string;
|
|
93
96
|
createdAt: Date;
|
|
94
97
|
updatedAt: Date;
|
|
95
|
-
|
|
98
|
+
userId: number;
|
|
96
99
|
platform: string | null;
|
|
97
100
|
osVersion: string | null;
|
|
98
101
|
deviceModel: string | null;
|
|
99
102
|
userAgent: string | null;
|
|
103
|
+
requestIp: string | null;
|
|
100
104
|
}[];
|
|
101
105
|
total: number;
|
|
102
106
|
}, {
|
|
@@ -104,11 +108,12 @@ export declare namespace GetAllHwidDevicesCommand {
|
|
|
104
108
|
hwid: string;
|
|
105
109
|
createdAt: string;
|
|
106
110
|
updatedAt: string;
|
|
107
|
-
|
|
111
|
+
userId: number;
|
|
108
112
|
platform: string | null;
|
|
109
113
|
osVersion: string | null;
|
|
110
114
|
deviceModel: string | null;
|
|
111
115
|
userAgent: string | null;
|
|
116
|
+
requestIp: string | null;
|
|
112
117
|
}[];
|
|
113
118
|
total: number;
|
|
114
119
|
}>;
|
|
@@ -118,11 +123,12 @@ export declare namespace GetAllHwidDevicesCommand {
|
|
|
118
123
|
hwid: string;
|
|
119
124
|
createdAt: Date;
|
|
120
125
|
updatedAt: Date;
|
|
121
|
-
|
|
126
|
+
userId: number;
|
|
122
127
|
platform: string | null;
|
|
123
128
|
osVersion: string | null;
|
|
124
129
|
deviceModel: string | null;
|
|
125
130
|
userAgent: string | null;
|
|
131
|
+
requestIp: string | null;
|
|
126
132
|
}[];
|
|
127
133
|
total: number;
|
|
128
134
|
};
|
|
@@ -132,11 +138,12 @@ export declare namespace GetAllHwidDevicesCommand {
|
|
|
132
138
|
hwid: string;
|
|
133
139
|
createdAt: string;
|
|
134
140
|
updatedAt: string;
|
|
135
|
-
|
|
141
|
+
userId: number;
|
|
136
142
|
platform: string | null;
|
|
137
143
|
osVersion: string | null;
|
|
138
144
|
deviceModel: string | null;
|
|
139
145
|
userAgent: string | null;
|
|
146
|
+
requestIp: string | null;
|
|
140
147
|
}[];
|
|
141
148
|
total: number;
|
|
142
149
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/get-all-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,qBAAqC,CAAC;IAC/C,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkC,CAAC;IAClE,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-all-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/get-all-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,qBAAqC,CAAC;IAC/C,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkC,CAAC;IAClE,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -16,42 +16,46 @@ export declare namespace GetUserHwidDevicesCommand {
|
|
|
16
16
|
total: z.ZodNumber;
|
|
17
17
|
devices: z.ZodArray<z.ZodObject<{
|
|
18
18
|
hwid: z.ZodString;
|
|
19
|
-
|
|
19
|
+
userId: z.ZodNumber;
|
|
20
20
|
platform: z.ZodNullable<z.ZodString>;
|
|
21
21
|
osVersion: z.ZodNullable<z.ZodString>;
|
|
22
22
|
deviceModel: z.ZodNullable<z.ZodString>;
|
|
23
23
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
24
|
+
requestIp: z.ZodNullable<z.ZodString>;
|
|
24
25
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
25
26
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
26
27
|
}, "strip", z.ZodTypeAny, {
|
|
27
28
|
hwid: string;
|
|
28
29
|
createdAt: Date;
|
|
29
30
|
updatedAt: Date;
|
|
30
|
-
|
|
31
|
+
userId: number;
|
|
31
32
|
platform: string | null;
|
|
32
33
|
osVersion: string | null;
|
|
33
34
|
deviceModel: string | null;
|
|
34
35
|
userAgent: string | null;
|
|
36
|
+
requestIp: string | null;
|
|
35
37
|
}, {
|
|
36
38
|
hwid: string;
|
|
37
39
|
createdAt: string;
|
|
38
40
|
updatedAt: string;
|
|
39
|
-
|
|
41
|
+
userId: number;
|
|
40
42
|
platform: string | null;
|
|
41
43
|
osVersion: string | null;
|
|
42
44
|
deviceModel: string | null;
|
|
43
45
|
userAgent: string | null;
|
|
46
|
+
requestIp: string | null;
|
|
44
47
|
}>, "many">;
|
|
45
48
|
}, "strip", z.ZodTypeAny, {
|
|
46
49
|
devices: {
|
|
47
50
|
hwid: string;
|
|
48
51
|
createdAt: Date;
|
|
49
52
|
updatedAt: Date;
|
|
50
|
-
|
|
53
|
+
userId: number;
|
|
51
54
|
platform: string | null;
|
|
52
55
|
osVersion: string | null;
|
|
53
56
|
deviceModel: string | null;
|
|
54
57
|
userAgent: string | null;
|
|
58
|
+
requestIp: string | null;
|
|
55
59
|
}[];
|
|
56
60
|
total: number;
|
|
57
61
|
}, {
|
|
@@ -59,11 +63,12 @@ export declare namespace GetUserHwidDevicesCommand {
|
|
|
59
63
|
hwid: string;
|
|
60
64
|
createdAt: string;
|
|
61
65
|
updatedAt: string;
|
|
62
|
-
|
|
66
|
+
userId: number;
|
|
63
67
|
platform: string | null;
|
|
64
68
|
osVersion: string | null;
|
|
65
69
|
deviceModel: string | null;
|
|
66
70
|
userAgent: string | null;
|
|
71
|
+
requestIp: string | null;
|
|
67
72
|
}[];
|
|
68
73
|
total: number;
|
|
69
74
|
}>;
|
|
@@ -73,11 +78,12 @@ export declare namespace GetUserHwidDevicesCommand {
|
|
|
73
78
|
hwid: string;
|
|
74
79
|
createdAt: Date;
|
|
75
80
|
updatedAt: Date;
|
|
76
|
-
|
|
81
|
+
userId: number;
|
|
77
82
|
platform: string | null;
|
|
78
83
|
osVersion: string | null;
|
|
79
84
|
deviceModel: string | null;
|
|
80
85
|
userAgent: string | null;
|
|
86
|
+
requestIp: string | null;
|
|
81
87
|
}[];
|
|
82
88
|
total: number;
|
|
83
89
|
};
|
|
@@ -87,11 +93,12 @@ export declare namespace GetUserHwidDevicesCommand {
|
|
|
87
93
|
hwid: string;
|
|
88
94
|
createdAt: string;
|
|
89
95
|
updatedAt: string;
|
|
90
|
-
|
|
96
|
+
userId: number;
|
|
91
97
|
platform: string | null;
|
|
92
98
|
osVersion: string | null;
|
|
93
99
|
deviceModel: string | null;
|
|
94
100
|
userAgent: string | null;
|
|
101
|
+
requestIp: string | null;
|
|
95
102
|
}[];
|
|
96
103
|
total: number;
|
|
97
104
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/get-user-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,8BAAsC,CAAC;IAChD,MAAM,OAAO,QAAmB,CAAC;IAEjC,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-user-hwid-devices.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/get-user-hwid-devices.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,8BAAsC,CAAC;IAChD,MAAM,OAAO,QAAmB,CAAC;IAEjC,MAAM,eAAe,2CAI3B,CAAC;IAEK,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4DxB,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"}
|
|
@@ -20,7 +20,7 @@ var CreateNodeCommand;
|
|
|
20
20
|
.max(65535, 'Port must be less than 65535')
|
|
21
21
|
.optional(),
|
|
22
22
|
isTrafficTrackingActive: zod_1.z.boolean().optional().default(false),
|
|
23
|
-
trafficLimitBytes: zod_1.z.optional(zod_1.z.number().
|
|
23
|
+
trafficLimitBytes: zod_1.z.optional(zod_1.z.number().min(0, 'Traffic limit must be greater than 0')),
|
|
24
24
|
notifyPercent: zod_1.z.optional(zod_1.z
|
|
25
25
|
.number()
|
|
26
26
|
.int()
|
|
@@ -60,19 +60,19 @@ export declare namespace GetSubscriptionRequestHistoryCommand {
|
|
|
60
60
|
response: z.ZodObject<{
|
|
61
61
|
records: z.ZodArray<z.ZodObject<{
|
|
62
62
|
id: z.ZodNumber;
|
|
63
|
-
|
|
63
|
+
userId: z.ZodNumber;
|
|
64
64
|
requestIp: z.ZodNullable<z.ZodString>;
|
|
65
65
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
66
66
|
requestAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
userUuid: string;
|
|
69
68
|
id: number;
|
|
69
|
+
userId: number;
|
|
70
70
|
userAgent: string | null;
|
|
71
71
|
requestIp: string | null;
|
|
72
72
|
requestAt: Date;
|
|
73
73
|
}, {
|
|
74
|
-
userUuid: string;
|
|
75
74
|
id: number;
|
|
75
|
+
userId: number;
|
|
76
76
|
userAgent: string | null;
|
|
77
77
|
requestIp: string | null;
|
|
78
78
|
requestAt: string;
|
|
@@ -81,8 +81,8 @@ export declare namespace GetSubscriptionRequestHistoryCommand {
|
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
82
|
total: number;
|
|
83
83
|
records: {
|
|
84
|
-
userUuid: string;
|
|
85
84
|
id: number;
|
|
85
|
+
userId: number;
|
|
86
86
|
userAgent: string | null;
|
|
87
87
|
requestIp: string | null;
|
|
88
88
|
requestAt: Date;
|
|
@@ -90,8 +90,8 @@ export declare namespace GetSubscriptionRequestHistoryCommand {
|
|
|
90
90
|
}, {
|
|
91
91
|
total: number;
|
|
92
92
|
records: {
|
|
93
|
-
userUuid: string;
|
|
94
93
|
id: number;
|
|
94
|
+
userId: number;
|
|
95
95
|
userAgent: string | null;
|
|
96
96
|
requestIp: string | null;
|
|
97
97
|
requestAt: string;
|
|
@@ -101,8 +101,8 @@ export declare namespace GetSubscriptionRequestHistoryCommand {
|
|
|
101
101
|
response: {
|
|
102
102
|
total: number;
|
|
103
103
|
records: {
|
|
104
|
-
userUuid: string;
|
|
105
104
|
id: number;
|
|
105
|
+
userId: number;
|
|
106
106
|
userAgent: string | null;
|
|
107
107
|
requestIp: string | null;
|
|
108
108
|
requestAt: Date;
|
|
@@ -112,8 +112,8 @@ export declare namespace GetSubscriptionRequestHistoryCommand {
|
|
|
112
112
|
response: {
|
|
113
113
|
total: number;
|
|
114
114
|
records: {
|
|
115
|
-
userUuid: string;
|
|
116
115
|
id: number;
|
|
116
|
+
userId: number;
|
|
117
117
|
userAgent: string | null;
|
|
118
118
|
requestIp: string | null;
|
|
119
119
|
requestAt: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-update-users.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/bulk/bulk-update-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"bulk-update-users.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/bulk/bulk-update-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoDxB,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"}
|
|
@@ -22,7 +22,6 @@ var BulkUpdateUsersCommand;
|
|
|
22
22
|
.number({
|
|
23
23
|
invalid_type_error: 'Traffic limit must be a number',
|
|
24
24
|
})
|
|
25
|
-
.int('Traffic limit must be an integer')
|
|
26
25
|
.min(0, 'Traffic limit must be greater than 0')
|
|
27
26
|
.describe('Traffic limit in bytes. 0 - unlimited')),
|
|
28
27
|
trafficLimitStrategy: zod_1.z.optional(zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-all-update-users.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/bulk-all/bulk-all-update-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"bulk-all-update-users.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/bulk-all/bulk-all-update-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2CxB,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"}
|
|
@@ -17,7 +17,6 @@ var BulkAllUpdateUsersCommand;
|
|
|
17
17
|
.number({
|
|
18
18
|
invalid_type_error: 'Traffic limit must be a number',
|
|
19
19
|
})
|
|
20
|
-
.int('Traffic limit must be an integer')
|
|
21
20
|
.min(0, 'Traffic limit must be 0 or greater')
|
|
22
21
|
.describe('Traffic limit in bytes. 0 - unlimited')),
|
|
23
22
|
trafficLimitStrategy: zod_1.z.optional(zod_1.z
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkJxB,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"}
|
|
@@ -57,7 +57,6 @@ var CreateUserCommand;
|
|
|
57
57
|
.number({
|
|
58
58
|
invalid_type_error: 'Traffic limit must be a number',
|
|
59
59
|
})
|
|
60
|
-
.int('Traffic limit must be an integer')
|
|
61
60
|
.min(0, 'Traffic limit must be greater than 0')
|
|
62
61
|
.optional()
|
|
63
62
|
.describe('Optional. Traffic limit in bytes. Set to 0 for unlimited traffic.'),
|
|
@@ -16,19 +16,19 @@ export declare namespace GetUserSubscriptionRequestHistoryCommand {
|
|
|
16
16
|
total: z.ZodNumber;
|
|
17
17
|
records: z.ZodArray<z.ZodObject<{
|
|
18
18
|
id: z.ZodNumber;
|
|
19
|
-
|
|
19
|
+
userId: z.ZodNumber;
|
|
20
20
|
requestAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
21
21
|
requestIp: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22
22
|
userAgent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
userUuid: string;
|
|
25
24
|
id: number;
|
|
25
|
+
userId: number;
|
|
26
26
|
requestAt: Date;
|
|
27
27
|
userAgent?: string | null | undefined;
|
|
28
28
|
requestIp?: string | null | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
userUuid: string;
|
|
31
30
|
id: number;
|
|
31
|
+
userId: number;
|
|
32
32
|
requestAt: string;
|
|
33
33
|
userAgent?: string | null | undefined;
|
|
34
34
|
requestIp?: string | null | undefined;
|
|
@@ -36,8 +36,8 @@ export declare namespace GetUserSubscriptionRequestHistoryCommand {
|
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
total: number;
|
|
38
38
|
records: {
|
|
39
|
-
userUuid: string;
|
|
40
39
|
id: number;
|
|
40
|
+
userId: number;
|
|
41
41
|
requestAt: Date;
|
|
42
42
|
userAgent?: string | null | undefined;
|
|
43
43
|
requestIp?: string | null | undefined;
|
|
@@ -45,8 +45,8 @@ export declare namespace GetUserSubscriptionRequestHistoryCommand {
|
|
|
45
45
|
}, {
|
|
46
46
|
total: number;
|
|
47
47
|
records: {
|
|
48
|
-
userUuid: string;
|
|
49
48
|
id: number;
|
|
49
|
+
userId: number;
|
|
50
50
|
requestAt: string;
|
|
51
51
|
userAgent?: string | null | undefined;
|
|
52
52
|
requestIp?: string | null | undefined;
|
|
@@ -56,8 +56,8 @@ export declare namespace GetUserSubscriptionRequestHistoryCommand {
|
|
|
56
56
|
response: {
|
|
57
57
|
total: number;
|
|
58
58
|
records: {
|
|
59
|
-
userUuid: string;
|
|
60
59
|
id: number;
|
|
60
|
+
userId: number;
|
|
61
61
|
requestAt: Date;
|
|
62
62
|
userAgent?: string | null | undefined;
|
|
63
63
|
requestIp?: string | null | undefined;
|
|
@@ -67,8 +67,8 @@ export declare namespace GetUserSubscriptionRequestHistoryCommand {
|
|
|
67
67
|
response: {
|
|
68
68
|
total: number;
|
|
69
69
|
records: {
|
|
70
|
-
userUuid: string;
|
|
71
70
|
id: number;
|
|
71
|
+
userId: number;
|
|
72
72
|
requestAt: string;
|
|
73
73
|
userAgent?: string | null | undefined;
|
|
74
74
|
requestIp?: string | null | undefined;
|
|
@@ -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,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,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,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6EpB,CAAC;IAEP,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"}
|
|
@@ -28,7 +28,6 @@ var UpdateUserCommand;
|
|
|
28
28
|
.number({
|
|
29
29
|
invalid_type_error: 'Traffic limit must be a number',
|
|
30
30
|
})
|
|
31
|
-
.int('Traffic limit must be an integer')
|
|
32
31
|
.min(0, 'Traffic limit must be greater than 0')
|
|
33
32
|
.describe('Traffic limit in bytes. 0 - unlimited')
|
|
34
33
|
.optional(),
|
|
@@ -25,6 +25,9 @@ export declare const METRIC_NAMES: {
|
|
|
25
25
|
readonly NODE_MEMORY_FREE_BYTES: "node_memory_free_bytes";
|
|
26
26
|
readonly NODE_UPTIME_SECONDS: "node_uptime_seconds";
|
|
27
27
|
readonly NODE_CPU_COUNT: "node_cpu_count";
|
|
28
|
+
readonly NODE_CPU_LOAD_AVG_1M: "node_cpu_load_avg_1m";
|
|
29
|
+
readonly NODE_CPU_LOAD_AVG_5M: "node_cpu_load_avg_5m";
|
|
30
|
+
readonly NODE_CPU_LOAD_AVG_15M: "node_cpu_load_avg_15m";
|
|
28
31
|
readonly NODE_BASIC_INFO: "node_basic_info";
|
|
29
32
|
readonly NODE_SYSTEM_INFO: "node_system_info";
|
|
30
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metric-names.constant.d.ts","sourceRoot":"","sources":["../../../../constants/metrics/metric-names.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"metric-names.constant.d.ts","sourceRoot":"","sources":["../../../../constants/metrics/metric-names.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Cf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC;AAC/C,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -33,6 +33,9 @@ exports.METRIC_NAMES = {
|
|
|
33
33
|
NODE_MEMORY_FREE_BYTES: 'node_memory_free_bytes',
|
|
34
34
|
NODE_UPTIME_SECONDS: 'node_uptime_seconds',
|
|
35
35
|
NODE_CPU_COUNT: 'node_cpu_count',
|
|
36
|
+
NODE_CPU_LOAD_AVG_1M: 'node_cpu_load_avg_1m',
|
|
37
|
+
NODE_CPU_LOAD_AVG_5M: 'node_cpu_load_avg_5m',
|
|
38
|
+
NODE_CPU_LOAD_AVG_15M: 'node_cpu_load_avg_15m',
|
|
36
39
|
NODE_BASIC_INFO: 'node_basic_info',
|
|
37
40
|
NODE_SYSTEM_INFO: 'node_system_info',
|
|
38
41
|
};
|
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const HwidUserDeviceSchema: z.ZodObject<{
|
|
3
3
|
hwid: z.ZodString;
|
|
4
|
-
|
|
4
|
+
userId: z.ZodNumber;
|
|
5
5
|
platform: z.ZodNullable<z.ZodString>;
|
|
6
6
|
osVersion: z.ZodNullable<z.ZodString>;
|
|
7
7
|
deviceModel: z.ZodNullable<z.ZodString>;
|
|
8
8
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
9
|
+
requestIp: z.ZodNullable<z.ZodString>;
|
|
9
10
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
10
11
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
11
12
|
}, "strip", z.ZodTypeAny, {
|
|
12
13
|
hwid: string;
|
|
13
14
|
createdAt: Date;
|
|
14
15
|
updatedAt: Date;
|
|
15
|
-
|
|
16
|
+
userId: number;
|
|
16
17
|
platform: string | null;
|
|
17
18
|
osVersion: string | null;
|
|
18
19
|
deviceModel: string | null;
|
|
19
20
|
userAgent: string | null;
|
|
21
|
+
requestIp: string | null;
|
|
20
22
|
}, {
|
|
21
23
|
hwid: string;
|
|
22
24
|
createdAt: string;
|
|
23
25
|
updatedAt: string;
|
|
24
|
-
|
|
26
|
+
userId: number;
|
|
25
27
|
platform: string | null;
|
|
26
28
|
osVersion: string | null;
|
|
27
29
|
deviceModel: string | null;
|
|
28
30
|
userAgent: string | null;
|
|
31
|
+
requestIp: string | null;
|
|
29
32
|
}>;
|
|
30
33
|
//# sourceMappingURL=hwid-user-device.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hwid-user-device.schema.d.ts","sourceRoot":"","sources":["../../../models/hwid-user-device.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"hwid-user-device.schema.d.ts","sourceRoot":"","sources":["../../../models/hwid-user-device.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB/B,CAAC"}
|
|
@@ -4,11 +4,12 @@ exports.HwidUserDeviceSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.HwidUserDeviceSchema = zod_1.z.object({
|
|
6
6
|
hwid: zod_1.z.string(),
|
|
7
|
-
|
|
7
|
+
userId: zod_1.z.number(),
|
|
8
8
|
platform: zod_1.z.nullable(zod_1.z.string()),
|
|
9
9
|
osVersion: zod_1.z.nullable(zod_1.z.string()),
|
|
10
10
|
deviceModel: zod_1.z.nullable(zod_1.z.string()),
|
|
11
11
|
userAgent: zod_1.z.nullable(zod_1.z.string()),
|
|
12
|
+
requestIp: zod_1.z.nullable(zod_1.z.string()),
|
|
12
13
|
createdAt: zod_1.z
|
|
13
14
|
.string()
|
|
14
15
|
.datetime()
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const SubscriptionRequestHistorySchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodNumber;
|
|
4
|
-
|
|
4
|
+
userId: z.ZodNumber;
|
|
5
5
|
requestIp: z.ZodNullable<z.ZodString>;
|
|
6
6
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
7
7
|
requestAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
userUuid: string;
|
|
10
9
|
id: number;
|
|
10
|
+
userId: number;
|
|
11
11
|
userAgent: string | null;
|
|
12
12
|
requestIp: string | null;
|
|
13
13
|
requestAt: Date;
|
|
14
14
|
}, {
|
|
15
|
-
userUuid: string;
|
|
16
15
|
id: number;
|
|
16
|
+
userId: number;
|
|
17
17
|
userAgent: string | null;
|
|
18
18
|
requestIp: string | null;
|
|
19
19
|
requestAt: string;
|
|
@@ -4,7 +4,7 @@ exports.SubscriptionRequestHistorySchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.SubscriptionRequestHistorySchema = zod_1.z.object({
|
|
6
6
|
id: zod_1.z.number(),
|
|
7
|
-
|
|
7
|
+
userId: zod_1.z.number(),
|
|
8
8
|
requestIp: zod_1.z.nullable(zod_1.z.string()),
|
|
9
9
|
userAgent: zod_1.z.nullable(zod_1.z.string()),
|
|
10
10
|
requestAt: zod_1.z
|
|
@@ -9,7 +9,7 @@ exports.UsersSchema = zod_1.z.object({
|
|
|
9
9
|
shortUuid: zod_1.z.string(),
|
|
10
10
|
username: zod_1.z.string(),
|
|
11
11
|
status: zod_1.z.nativeEnum(constants_1.USERS_STATUS).default(constants_1.USERS_STATUS.ACTIVE),
|
|
12
|
-
trafficLimitBytes: zod_1.z.number().
|
|
12
|
+
trafficLimitBytes: zod_1.z.number().default(0),
|
|
13
13
|
trafficLimitStrategy: zod_1.z
|
|
14
14
|
.nativeEnum(constants_1.RESET_PERIODS, {
|
|
15
15
|
description: 'Available reset periods',
|
|
@@ -376,31 +376,34 @@ export declare const RemnawaveWebhookUserHwidDevicesEvents: z.ZodObject<{
|
|
|
376
376
|
}>;
|
|
377
377
|
hwidUserDevice: z.ZodObject<{
|
|
378
378
|
hwid: z.ZodString;
|
|
379
|
-
|
|
379
|
+
userId: z.ZodNumber;
|
|
380
380
|
platform: z.ZodNullable<z.ZodString>;
|
|
381
381
|
osVersion: z.ZodNullable<z.ZodString>;
|
|
382
382
|
deviceModel: z.ZodNullable<z.ZodString>;
|
|
383
383
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
384
|
+
requestIp: z.ZodNullable<z.ZodString>;
|
|
384
385
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
385
386
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
386
387
|
}, "strip", z.ZodTypeAny, {
|
|
387
388
|
hwid: string;
|
|
388
389
|
createdAt: Date;
|
|
389
390
|
updatedAt: Date;
|
|
390
|
-
|
|
391
|
+
userId: number;
|
|
391
392
|
platform: string | null;
|
|
392
393
|
osVersion: string | null;
|
|
393
394
|
deviceModel: string | null;
|
|
394
395
|
userAgent: string | null;
|
|
396
|
+
requestIp: string | null;
|
|
395
397
|
}, {
|
|
396
398
|
hwid: string;
|
|
397
399
|
createdAt: string;
|
|
398
400
|
updatedAt: string;
|
|
399
|
-
|
|
401
|
+
userId: number;
|
|
400
402
|
platform: string | null;
|
|
401
403
|
osVersion: string | null;
|
|
402
404
|
deviceModel: string | null;
|
|
403
405
|
userAgent: string | null;
|
|
406
|
+
requestIp: string | null;
|
|
404
407
|
}>;
|
|
405
408
|
}, "strip", z.ZodTypeAny, {
|
|
406
409
|
user: {
|
|
@@ -443,11 +446,12 @@ export declare const RemnawaveWebhookUserHwidDevicesEvents: z.ZodObject<{
|
|
|
443
446
|
hwid: string;
|
|
444
447
|
createdAt: Date;
|
|
445
448
|
updatedAt: Date;
|
|
446
|
-
|
|
449
|
+
userId: number;
|
|
447
450
|
platform: string | null;
|
|
448
451
|
osVersion: string | null;
|
|
449
452
|
deviceModel: string | null;
|
|
450
453
|
userAgent: string | null;
|
|
454
|
+
requestIp: string | null;
|
|
451
455
|
};
|
|
452
456
|
}, {
|
|
453
457
|
user: {
|
|
@@ -490,11 +494,12 @@ export declare const RemnawaveWebhookUserHwidDevicesEvents: z.ZodObject<{
|
|
|
490
494
|
hwid: string;
|
|
491
495
|
createdAt: string;
|
|
492
496
|
updatedAt: string;
|
|
493
|
-
|
|
497
|
+
userId: number;
|
|
494
498
|
platform: string | null;
|
|
495
499
|
osVersion: string | null;
|
|
496
500
|
deviceModel: string | null;
|
|
497
501
|
userAgent: string | null;
|
|
502
|
+
requestIp: string | null;
|
|
498
503
|
};
|
|
499
504
|
}>;
|
|
500
505
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -539,11 +544,12 @@ export declare const RemnawaveWebhookUserHwidDevicesEvents: z.ZodObject<{
|
|
|
539
544
|
hwid: string;
|
|
540
545
|
createdAt: Date;
|
|
541
546
|
updatedAt: Date;
|
|
542
|
-
|
|
547
|
+
userId: number;
|
|
543
548
|
platform: string | null;
|
|
544
549
|
osVersion: string | null;
|
|
545
550
|
deviceModel: string | null;
|
|
546
551
|
userAgent: string | null;
|
|
552
|
+
requestIp: string | null;
|
|
547
553
|
};
|
|
548
554
|
};
|
|
549
555
|
scope: "user_hwid_devices";
|
|
@@ -591,11 +597,12 @@ export declare const RemnawaveWebhookUserHwidDevicesEvents: z.ZodObject<{
|
|
|
591
597
|
hwid: string;
|
|
592
598
|
createdAt: string;
|
|
593
599
|
updatedAt: string;
|
|
594
|
-
|
|
600
|
+
userId: number;
|
|
595
601
|
platform: string | null;
|
|
596
602
|
osVersion: string | null;
|
|
597
603
|
deviceModel: string | null;
|
|
598
604
|
userAgent: string | null;
|
|
605
|
+
requestIp: string | null;
|
|
599
606
|
};
|
|
600
607
|
};
|
|
601
608
|
scope: "user_hwid_devices";
|
|
@@ -2949,31 +2956,34 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2949
2956
|
}>;
|
|
2950
2957
|
hwidUserDevice: z.ZodObject<{
|
|
2951
2958
|
hwid: z.ZodString;
|
|
2952
|
-
|
|
2959
|
+
userId: z.ZodNumber;
|
|
2953
2960
|
platform: z.ZodNullable<z.ZodString>;
|
|
2954
2961
|
osVersion: z.ZodNullable<z.ZodString>;
|
|
2955
2962
|
deviceModel: z.ZodNullable<z.ZodString>;
|
|
2956
2963
|
userAgent: z.ZodNullable<z.ZodString>;
|
|
2964
|
+
requestIp: z.ZodNullable<z.ZodString>;
|
|
2957
2965
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
2958
2966
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
2959
2967
|
}, "strip", z.ZodTypeAny, {
|
|
2960
2968
|
hwid: string;
|
|
2961
2969
|
createdAt: Date;
|
|
2962
2970
|
updatedAt: Date;
|
|
2963
|
-
|
|
2971
|
+
userId: number;
|
|
2964
2972
|
platform: string | null;
|
|
2965
2973
|
osVersion: string | null;
|
|
2966
2974
|
deviceModel: string | null;
|
|
2967
2975
|
userAgent: string | null;
|
|
2976
|
+
requestIp: string | null;
|
|
2968
2977
|
}, {
|
|
2969
2978
|
hwid: string;
|
|
2970
2979
|
createdAt: string;
|
|
2971
2980
|
updatedAt: string;
|
|
2972
|
-
|
|
2981
|
+
userId: number;
|
|
2973
2982
|
platform: string | null;
|
|
2974
2983
|
osVersion: string | null;
|
|
2975
2984
|
deviceModel: string | null;
|
|
2976
2985
|
userAgent: string | null;
|
|
2986
|
+
requestIp: string | null;
|
|
2977
2987
|
}>;
|
|
2978
2988
|
}, "strip", z.ZodTypeAny, {
|
|
2979
2989
|
user: {
|
|
@@ -3016,11 +3026,12 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
3016
3026
|
hwid: string;
|
|
3017
3027
|
createdAt: Date;
|
|
3018
3028
|
updatedAt: Date;
|
|
3019
|
-
|
|
3029
|
+
userId: number;
|
|
3020
3030
|
platform: string | null;
|
|
3021
3031
|
osVersion: string | null;
|
|
3022
3032
|
deviceModel: string | null;
|
|
3023
3033
|
userAgent: string | null;
|
|
3034
|
+
requestIp: string | null;
|
|
3024
3035
|
};
|
|
3025
3036
|
}, {
|
|
3026
3037
|
user: {
|
|
@@ -3063,11 +3074,12 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
3063
3074
|
hwid: string;
|
|
3064
3075
|
createdAt: string;
|
|
3065
3076
|
updatedAt: string;
|
|
3066
|
-
|
|
3077
|
+
userId: number;
|
|
3067
3078
|
platform: string | null;
|
|
3068
3079
|
osVersion: string | null;
|
|
3069
3080
|
deviceModel: string | null;
|
|
3070
3081
|
userAgent: string | null;
|
|
3082
|
+
requestIp: string | null;
|
|
3071
3083
|
};
|
|
3072
3084
|
}>;
|
|
3073
3085
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3112,11 +3124,12 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
3112
3124
|
hwid: string;
|
|
3113
3125
|
createdAt: Date;
|
|
3114
3126
|
updatedAt: Date;
|
|
3115
|
-
|
|
3127
|
+
userId: number;
|
|
3116
3128
|
platform: string | null;
|
|
3117
3129
|
osVersion: string | null;
|
|
3118
3130
|
deviceModel: string | null;
|
|
3119
3131
|
userAgent: string | null;
|
|
3132
|
+
requestIp: string | null;
|
|
3120
3133
|
};
|
|
3121
3134
|
};
|
|
3122
3135
|
scope: "user_hwid_devices";
|
|
@@ -3164,11 +3177,12 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
3164
3177
|
hwid: string;
|
|
3165
3178
|
createdAt: string;
|
|
3166
3179
|
updatedAt: string;
|
|
3167
|
-
|
|
3180
|
+
userId: number;
|
|
3168
3181
|
platform: string | null;
|
|
3169
3182
|
osVersion: string | null;
|
|
3170
3183
|
deviceModel: string | null;
|
|
3171
3184
|
userAgent: string | null;
|
|
3185
|
+
requestIp: string | null;
|
|
3172
3186
|
};
|
|
3173
3187
|
};
|
|
3174
3188
|
scope: "user_hwid_devices";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.schema.d.ts","sourceRoot":"","sources":["../../../../models/webhook/webhook.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAarC,CAAC;AAEH,eAAO,MAAM,qCAAqC
|
|
1
|
+
{"version":3,"file":"webhook.schema.d.ts","sourceRoot":"","sources":["../../../../models/webhook/webhook.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,eAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQtC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEjF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACpF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACpF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC1F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAClF,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,qCAAqC,CAC/C,CAAC;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,oCAAoC,CAC9C,CAAC"}
|
|
@@ -17,6 +17,7 @@ var CreateUserHwidDeviceCommand;
|
|
|
17
17
|
osVersion: zod_1.z.optional(zod_1.z.string()),
|
|
18
18
|
deviceModel: zod_1.z.optional(zod_1.z.string()),
|
|
19
19
|
userAgent: zod_1.z.optional(zod_1.z.string()),
|
|
20
|
+
requestIp: zod_1.z.optional(zod_1.z.string()),
|
|
20
21
|
});
|
|
21
22
|
CreateUserHwidDeviceCommand.ResponseSchema = zod_1.z.object({
|
|
22
23
|
response: zod_1.z.object({
|
|
@@ -20,7 +20,7 @@ var CreateNodeCommand;
|
|
|
20
20
|
.max(65535, 'Port must be less than 65535')
|
|
21
21
|
.optional(),
|
|
22
22
|
isTrafficTrackingActive: zod_1.z.boolean().optional().default(false),
|
|
23
|
-
trafficLimitBytes: zod_1.z.optional(zod_1.z.number().
|
|
23
|
+
trafficLimitBytes: zod_1.z.optional(zod_1.z.number().min(0, 'Traffic limit must be greater than 0')),
|
|
24
24
|
notifyPercent: zod_1.z.optional(zod_1.z
|
|
25
25
|
.number()
|
|
26
26
|
.int()
|
|
@@ -22,7 +22,6 @@ var BulkUpdateUsersCommand;
|
|
|
22
22
|
.number({
|
|
23
23
|
invalid_type_error: 'Traffic limit must be a number',
|
|
24
24
|
})
|
|
25
|
-
.int('Traffic limit must be an integer')
|
|
26
25
|
.min(0, 'Traffic limit must be greater than 0')
|
|
27
26
|
.describe('Traffic limit in bytes. 0 - unlimited')),
|
|
28
27
|
trafficLimitStrategy: zod_1.z.optional(zod_1.z
|
|
@@ -17,7 +17,6 @@ var BulkAllUpdateUsersCommand;
|
|
|
17
17
|
.number({
|
|
18
18
|
invalid_type_error: 'Traffic limit must be a number',
|
|
19
19
|
})
|
|
20
|
-
.int('Traffic limit must be an integer')
|
|
21
20
|
.min(0, 'Traffic limit must be 0 or greater')
|
|
22
21
|
.describe('Traffic limit in bytes. 0 - unlimited')),
|
|
23
22
|
trafficLimitStrategy: zod_1.z.optional(zod_1.z
|
|
@@ -57,7 +57,6 @@ var CreateUserCommand;
|
|
|
57
57
|
.number({
|
|
58
58
|
invalid_type_error: 'Traffic limit must be a number',
|
|
59
59
|
})
|
|
60
|
-
.int('Traffic limit must be an integer')
|
|
61
60
|
.min(0, 'Traffic limit must be greater than 0')
|
|
62
61
|
.optional()
|
|
63
62
|
.describe('Optional. Traffic limit in bytes. Set to 0 for unlimited traffic.'),
|
|
@@ -28,7 +28,6 @@ var UpdateUserCommand;
|
|
|
28
28
|
.number({
|
|
29
29
|
invalid_type_error: 'Traffic limit must be a number',
|
|
30
30
|
})
|
|
31
|
-
.int('Traffic limit must be an integer')
|
|
32
31
|
.min(0, 'Traffic limit must be greater than 0')
|
|
33
32
|
.describe('Traffic limit in bytes. 0 - unlimited')
|
|
34
33
|
.optional(),
|
|
@@ -33,6 +33,9 @@ exports.METRIC_NAMES = {
|
|
|
33
33
|
NODE_MEMORY_FREE_BYTES: 'node_memory_free_bytes',
|
|
34
34
|
NODE_UPTIME_SECONDS: 'node_uptime_seconds',
|
|
35
35
|
NODE_CPU_COUNT: 'node_cpu_count',
|
|
36
|
+
NODE_CPU_LOAD_AVG_1M: 'node_cpu_load_avg_1m',
|
|
37
|
+
NODE_CPU_LOAD_AVG_5M: 'node_cpu_load_avg_5m',
|
|
38
|
+
NODE_CPU_LOAD_AVG_15M: 'node_cpu_load_avg_15m',
|
|
36
39
|
NODE_BASIC_INFO: 'node_basic_info',
|
|
37
40
|
NODE_SYSTEM_INFO: 'node_system_info',
|
|
38
41
|
};
|
|
@@ -4,11 +4,12 @@ exports.HwidUserDeviceSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.HwidUserDeviceSchema = zod_1.z.object({
|
|
6
6
|
hwid: zod_1.z.string(),
|
|
7
|
-
|
|
7
|
+
userId: zod_1.z.number(),
|
|
8
8
|
platform: zod_1.z.nullable(zod_1.z.string()),
|
|
9
9
|
osVersion: zod_1.z.nullable(zod_1.z.string()),
|
|
10
10
|
deviceModel: zod_1.z.nullable(zod_1.z.string()),
|
|
11
11
|
userAgent: zod_1.z.nullable(zod_1.z.string()),
|
|
12
|
+
requestIp: zod_1.z.nullable(zod_1.z.string()),
|
|
12
13
|
createdAt: zod_1.z
|
|
13
14
|
.string()
|
|
14
15
|
.datetime()
|
|
@@ -4,7 +4,7 @@ exports.SubscriptionRequestHistorySchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.SubscriptionRequestHistorySchema = zod_1.z.object({
|
|
6
6
|
id: zod_1.z.number(),
|
|
7
|
-
|
|
7
|
+
userId: zod_1.z.number(),
|
|
8
8
|
requestIp: zod_1.z.nullable(zod_1.z.string()),
|
|
9
9
|
userAgent: zod_1.z.nullable(zod_1.z.string()),
|
|
10
10
|
requestAt: zod_1.z
|
|
@@ -9,7 +9,7 @@ exports.UsersSchema = zod_1.z.object({
|
|
|
9
9
|
shortUuid: zod_1.z.string(),
|
|
10
10
|
username: zod_1.z.string(),
|
|
11
11
|
status: zod_1.z.nativeEnum(constants_1.USERS_STATUS).default(constants_1.USERS_STATUS.ACTIVE),
|
|
12
|
-
trafficLimitBytes: zod_1.z.number().
|
|
12
|
+
trafficLimitBytes: zod_1.z.number().default(0),
|
|
13
13
|
trafficLimitStrategy: zod_1.z
|
|
14
14
|
.nativeEnum(constants_1.RESET_PERIODS, {
|
|
15
15
|
description: 'Available reset periods',
|