@remnawave/backend-contract 3.2.0 → 3.2.2
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/actions/disable.command.d.ts +15 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +15 -0
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +15 -0
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +30 -0
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +2 -0
- package/build/backend/commands/nodes/get-node.command.d.ts +15 -0
- package/build/backend/commands/nodes/get-node.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-nodes.command.d.ts +15 -0
- package/build/backend/commands/nodes/get-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/node.response.d.ts +15 -0
- package/build/backend/commands/nodes/node.response.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.d.ts +30 -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/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +1 -1
- package/build/backend/commands/users/actions/disable-user.command.d.ts +1 -1
- package/build/backend/commands/users/actions/enable-user.command.d.ts +1 -1
- package/build/backend/commands/users/actions/extend-user.command.d.ts +1 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +1 -1
- package/build/backend/commands/users/create-user.command.d.ts +2 -2
- package/build/backend/commands/users/create-user.command.js +1 -1
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +1 -1
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +1 -1
- package/build/backend/commands/users/get-user-by-id.command.d.ts +1 -1
- package/build/backend/commands/users/get-users-stream.command.d.ts +1 -1
- package/build/backend/commands/users/get-users.command.d.ts +1 -1
- package/build/backend/commands/users/update-user.command.d.ts +1 -1
- package/build/backend/commands/users/user.response.d.ts +1 -1
- package/build/backend/constants/nodes/index.d.ts +1 -0
- package/build/backend/constants/nodes/index.d.ts.map +1 -1
- package/build/backend/constants/nodes/index.js +1 -0
- package/build/backend/constants/nodes/ip-statuses/index.d.ts +2 -0
- package/build/backend/constants/nodes/ip-statuses/index.d.ts.map +1 -0
- package/build/backend/constants/nodes/ip-statuses/index.js +17 -0
- package/build/backend/constants/nodes/ip-statuses/node-ip-statuses.constant.d.ts +16 -0
- package/build/backend/constants/nodes/ip-statuses/node-ip-statuses.constant.d.ts.map +1 -0
- package/build/backend/constants/nodes/ip-statuses/node-ip-statuses.constant.js +17 -0
- package/build/backend/models/extended-users.schema.d.ts +1 -1
- 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/node-ips.schema.d.ts +34 -0
- package/build/backend/models/node-ips.schema.d.ts.map +1 -0
- package/build/backend/models/node-ips.schema.js +10 -0
- package/build/backend/models/nodes.schema.d.ts +15 -0
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +2 -0
- package/build/backend/models/users.schema.d.ts +1 -1
- package/build/backend/models/users.schema.js +1 -1
- package/build/backend/models/webhook/webhook.schema.d.ts +66 -6
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/frontend/commands/nodes/create.command.js +2 -0
- package/build/frontend/commands/nodes/update.command.js +1 -0
- package/build/frontend/commands/users/create-user.command.js +1 -1
- package/build/frontend/constants/nodes/index.js +1 -0
- package/build/frontend/constants/nodes/ip-statuses/index.js +17 -0
- package/build/frontend/constants/nodes/ip-statuses/node-ip-statuses.constant.js +17 -0
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/node-ips.schema.js +10 -0
- package/build/frontend/models/nodes.schema.js +2 -0
- package/build/frontend/models/users.schema.js +1 -1
- package/package.json +1 -1
|
@@ -29,6 +29,21 @@ export declare namespace DisableNodeCommand {
|
|
|
29
29
|
consumptionMultiplier: z.ZodNumber;
|
|
30
30
|
nodeConsumptionMultiplier: z.ZodNumber;
|
|
31
31
|
tags: z.ZodArray<z.ZodString>;
|
|
32
|
+
ips: z.ZodArray<z.ZodObject<{
|
|
33
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
34
|
+
status: z.ZodEnum<{
|
|
35
|
+
readonly INBOUND: "INBOUND";
|
|
36
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
37
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
38
|
+
readonly TRANSIT: "TRANSIT";
|
|
39
|
+
readonly MONITORING: "MONITORING";
|
|
40
|
+
readonly RESERVE: "RESERVE";
|
|
41
|
+
readonly BLOCKED: "BLOCKED";
|
|
42
|
+
readonly FLAGGED: "FLAGGED";
|
|
43
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
44
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
45
|
+
}>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
32
47
|
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
33
48
|
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
34
49
|
configProfile: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable.command.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/disable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"disable.command.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/disable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -29,6 +29,21 @@ export declare namespace EnableNodeCommand {
|
|
|
29
29
|
consumptionMultiplier: z.ZodNumber;
|
|
30
30
|
nodeConsumptionMultiplier: z.ZodNumber;
|
|
31
31
|
tags: z.ZodArray<z.ZodString>;
|
|
32
|
+
ips: z.ZodArray<z.ZodObject<{
|
|
33
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
34
|
+
status: z.ZodEnum<{
|
|
35
|
+
readonly INBOUND: "INBOUND";
|
|
36
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
37
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
38
|
+
readonly TRANSIT: "TRANSIT";
|
|
39
|
+
readonly MONITORING: "MONITORING";
|
|
40
|
+
readonly RESERVE: "RESERVE";
|
|
41
|
+
readonly BLOCKED: "BLOCKED";
|
|
42
|
+
readonly FLAGGED: "FLAGGED";
|
|
43
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
44
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
45
|
+
}>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
32
47
|
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
33
48
|
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
34
49
|
configProfile: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.command.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/enable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"enable.command.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/enable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -32,6 +32,21 @@ export declare namespace ReorderNodesCommand {
|
|
|
32
32
|
consumptionMultiplier: z.ZodNumber;
|
|
33
33
|
nodeConsumptionMultiplier: z.ZodNumber;
|
|
34
34
|
tags: z.ZodArray<z.ZodString>;
|
|
35
|
+
ips: z.ZodArray<z.ZodObject<{
|
|
36
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
37
|
+
status: z.ZodEnum<{
|
|
38
|
+
readonly INBOUND: "INBOUND";
|
|
39
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
40
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
41
|
+
readonly TRANSIT: "TRANSIT";
|
|
42
|
+
readonly MONITORING: "MONITORING";
|
|
43
|
+
readonly RESERVE: "RESERVE";
|
|
44
|
+
readonly BLOCKED: "BLOCKED";
|
|
45
|
+
readonly FLAGGED: "FLAGGED";
|
|
46
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
47
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
48
|
+
}>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
35
50
|
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
36
51
|
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
37
52
|
configProfile: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,mBAAmB,CAAC;IAC1B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;qBAO5B,CAAC;IAEI,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,mBAAmB,CAAC;IAC1B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;qBAO5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -23,6 +23,21 @@ export declare namespace CreateNodeCommand {
|
|
|
23
23
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
24
|
activePluginUuid: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
25
25
|
note: z.ZodOptional<z.ZodString>;
|
|
26
|
+
ips: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
28
|
+
status: z.ZodEnum<{
|
|
29
|
+
readonly INBOUND: "INBOUND";
|
|
30
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
31
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
32
|
+
readonly TRANSIT: "TRANSIT";
|
|
33
|
+
readonly MONITORING: "MONITORING";
|
|
34
|
+
readonly RESERVE: "RESERVE";
|
|
35
|
+
readonly BLOCKED: "BLOCKED";
|
|
36
|
+
readonly FLAGGED: "FLAGGED";
|
|
37
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
38
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
39
|
+
}>;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
26
41
|
}, z.core.$strip>;
|
|
27
42
|
const ResponseSchema: z.ZodObject<{
|
|
28
43
|
response: z.ZodObject<{
|
|
@@ -47,6 +62,21 @@ export declare namespace CreateNodeCommand {
|
|
|
47
62
|
consumptionMultiplier: z.ZodNumber;
|
|
48
63
|
nodeConsumptionMultiplier: z.ZodNumber;
|
|
49
64
|
tags: z.ZodArray<z.ZodString>;
|
|
65
|
+
ips: z.ZodArray<z.ZodObject<{
|
|
66
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
67
|
+
status: z.ZodEnum<{
|
|
68
|
+
readonly INBOUND: "INBOUND";
|
|
69
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
70
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
71
|
+
readonly TRANSIT: "TRANSIT";
|
|
72
|
+
readonly MONITORING: "MONITORING";
|
|
73
|
+
readonly RESERVE: "RESERVE";
|
|
74
|
+
readonly BLOCKED: "BLOCKED";
|
|
75
|
+
readonly FLAGGED: "FLAGGED";
|
|
76
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
77
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
78
|
+
}>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
50
80
|
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
51
81
|
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
52
82
|
configProfile: z.ZodObject<{
|
|
@@ -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;
|
|
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;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAqD5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -4,6 +4,7 @@ exports.CreateNodeCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
+
const models_1 = require("../../models");
|
|
7
8
|
const node_response_1 = require("./node.response");
|
|
8
9
|
var CreateNodeCommand;
|
|
9
10
|
(function (CreateNodeCommand) {
|
|
@@ -46,6 +47,7 @@ var CreateNodeCommand;
|
|
|
46
47
|
.max(10, 'Maximum 10 tags')),
|
|
47
48
|
activePluginUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.uuid())),
|
|
48
49
|
note: zod_1.z.optional(zod_1.z.string().max(255, 'Note must be less than 255 characters')),
|
|
50
|
+
ips: zod_1.z.optional(models_1.NodeIpsSchema),
|
|
49
51
|
});
|
|
50
52
|
CreateNodeCommand.ResponseSchema = node_response_1.NodeResponseSchema;
|
|
51
53
|
})(CreateNodeCommand || (exports.CreateNodeCommand = CreateNodeCommand = {}));
|
|
@@ -29,6 +29,21 @@ export declare namespace GetNodeCommand {
|
|
|
29
29
|
consumptionMultiplier: z.ZodNumber;
|
|
30
30
|
nodeConsumptionMultiplier: z.ZodNumber;
|
|
31
31
|
tags: z.ZodArray<z.ZodString>;
|
|
32
|
+
ips: z.ZodArray<z.ZodObject<{
|
|
33
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
34
|
+
status: z.ZodEnum<{
|
|
35
|
+
readonly INBOUND: "INBOUND";
|
|
36
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
37
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
38
|
+
readonly TRANSIT: "TRANSIT";
|
|
39
|
+
readonly MONITORING: "MONITORING";
|
|
40
|
+
readonly RESERVE: "RESERVE";
|
|
41
|
+
readonly BLOCKED: "BLOCKED";
|
|
42
|
+
readonly FLAGGED: "FLAGGED";
|
|
43
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
44
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
45
|
+
}>;
|
|
46
|
+
}, z.core.$strip>>;
|
|
32
47
|
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
33
48
|
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
34
49
|
configProfile: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-node.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-node.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-node.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-node.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -26,6 +26,21 @@ export declare namespace GetNodesCommand {
|
|
|
26
26
|
consumptionMultiplier: z.ZodNumber;
|
|
27
27
|
nodeConsumptionMultiplier: z.ZodNumber;
|
|
28
28
|
tags: z.ZodArray<z.ZodString>;
|
|
29
|
+
ips: z.ZodArray<z.ZodObject<{
|
|
30
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
31
|
+
status: z.ZodEnum<{
|
|
32
|
+
readonly INBOUND: "INBOUND";
|
|
33
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
34
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
35
|
+
readonly TRANSIT: "TRANSIT";
|
|
36
|
+
readonly MONITORING: "MONITORING";
|
|
37
|
+
readonly RESERVE: "RESERVE";
|
|
38
|
+
readonly BLOCKED: "BLOCKED";
|
|
39
|
+
readonly FLAGGED: "FLAGGED";
|
|
40
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
41
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
42
|
+
}>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
29
44
|
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
30
45
|
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
31
46
|
configProfile: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAG1B,CAAC;IAEI,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAG1B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -22,6 +22,21 @@ export declare const NodeResponseSchema: z.ZodObject<{
|
|
|
22
22
|
consumptionMultiplier: z.ZodNumber;
|
|
23
23
|
nodeConsumptionMultiplier: z.ZodNumber;
|
|
24
24
|
tags: z.ZodArray<z.ZodString>;
|
|
25
|
+
ips: z.ZodArray<z.ZodObject<{
|
|
26
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
27
|
+
status: z.ZodEnum<{
|
|
28
|
+
readonly INBOUND: "INBOUND";
|
|
29
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
30
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
31
|
+
readonly TRANSIT: "TRANSIT";
|
|
32
|
+
readonly MONITORING: "MONITORING";
|
|
33
|
+
readonly RESERVE: "RESERVE";
|
|
34
|
+
readonly BLOCKED: "BLOCKED";
|
|
35
|
+
readonly FLAGGED: "FLAGGED";
|
|
36
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
37
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
38
|
+
}>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
25
40
|
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
26
41
|
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
27
42
|
configProfile: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.response.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/node.response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"node.response.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/node.response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE7B,CAAC"}
|
|
@@ -24,6 +24,21 @@ export declare namespace UpdateNodeCommand {
|
|
|
24
24
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
25
|
activePluginUuid: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
26
26
|
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
ips: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
29
|
+
status: z.ZodEnum<{
|
|
30
|
+
readonly INBOUND: "INBOUND";
|
|
31
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
32
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
33
|
+
readonly TRANSIT: "TRANSIT";
|
|
34
|
+
readonly MONITORING: "MONITORING";
|
|
35
|
+
readonly RESERVE: "RESERVE";
|
|
36
|
+
readonly BLOCKED: "BLOCKED";
|
|
37
|
+
readonly FLAGGED: "FLAGGED";
|
|
38
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
39
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
40
|
+
}>;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
27
42
|
}, z.core.$strip>;
|
|
28
43
|
const ResponseSchema: z.ZodObject<{
|
|
29
44
|
response: z.ZodObject<{
|
|
@@ -48,6 +63,21 @@ export declare namespace UpdateNodeCommand {
|
|
|
48
63
|
consumptionMultiplier: z.ZodNumber;
|
|
49
64
|
nodeConsumptionMultiplier: z.ZodNumber;
|
|
50
65
|
tags: z.ZodArray<z.ZodString>;
|
|
66
|
+
ips: z.ZodArray<z.ZodObject<{
|
|
67
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
68
|
+
status: z.ZodEnum<{
|
|
69
|
+
readonly INBOUND: "INBOUND";
|
|
70
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
71
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
72
|
+
readonly TRANSIT: "TRANSIT";
|
|
73
|
+
readonly MONITORING: "MONITORING";
|
|
74
|
+
readonly RESERVE: "RESERVE";
|
|
75
|
+
readonly BLOCKED: "BLOCKED";
|
|
76
|
+
readonly FLAGGED: "FLAGGED";
|
|
77
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
78
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
79
|
+
}>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
51
81
|
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
52
82
|
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
53
83
|
configProfile: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAG1B,CAAC;IAEI,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAG1B,CAAC;IAEI,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAwD5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAqB,CAAC;IAEjD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -54,6 +54,7 @@ var UpdateNodeCommand;
|
|
|
54
54
|
.max(10, 'Maximum 10 tags')),
|
|
55
55
|
activePluginUuid: zod_1.z.uuid().nullish(),
|
|
56
56
|
note: zod_1.z.optional(zod_1.z.string().max(255).nullable()),
|
|
57
|
+
ips: zod_1.z.optional(models_1.NodeIpsSchema),
|
|
57
58
|
});
|
|
58
59
|
UpdateNodeCommand.ResponseSchema = node_response_1.NodeResponseSchema;
|
|
59
60
|
})(UpdateNodeCommand || (exports.UpdateNodeCommand = UpdateNodeCommand = {}));
|
package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
|
37
37
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
38
38
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
39
39
|
trojanPassword: z.ZodString;
|
|
40
|
-
vlessUuid: z.
|
|
40
|
+
vlessUuid: z.ZodGUID;
|
|
41
41
|
ssPassword: z.ZodString;
|
|
42
42
|
lastTriggeredThreshold: z.ZodInt;
|
|
43
43
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -33,7 +33,7 @@ export declare namespace DisableUserCommand {
|
|
|
33
33
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
34
34
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
35
35
|
trojanPassword: z.ZodString;
|
|
36
|
-
vlessUuid: z.
|
|
36
|
+
vlessUuid: z.ZodGUID;
|
|
37
37
|
ssPassword: z.ZodString;
|
|
38
38
|
lastTriggeredThreshold: z.ZodInt;
|
|
39
39
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -33,7 +33,7 @@ export declare namespace EnableUserCommand {
|
|
|
33
33
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
34
34
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
35
35
|
trojanPassword: z.ZodString;
|
|
36
|
-
vlessUuid: z.
|
|
36
|
+
vlessUuid: z.ZodGUID;
|
|
37
37
|
ssPassword: z.ZodString;
|
|
38
38
|
lastTriggeredThreshold: z.ZodInt;
|
|
39
39
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -36,7 +36,7 @@ export declare namespace ExtendUserCommand {
|
|
|
36
36
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
37
37
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
38
38
|
trojanPassword: z.ZodString;
|
|
39
|
-
vlessUuid: z.
|
|
39
|
+
vlessUuid: z.ZodGUID;
|
|
40
40
|
ssPassword: z.ZodString;
|
|
41
41
|
lastTriggeredThreshold: z.ZodInt;
|
|
42
42
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -33,7 +33,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
|
33
33
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
34
34
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
35
35
|
trojanPassword: z.ZodString;
|
|
36
|
-
vlessUuid: z.
|
|
36
|
+
vlessUuid: z.ZodGUID;
|
|
37
37
|
ssPassword: z.ZodString;
|
|
38
38
|
lastTriggeredThreshold: z.ZodInt;
|
|
39
39
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -37,7 +37,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
|
37
37
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
38
38
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
39
39
|
trojanPassword: z.ZodString;
|
|
40
|
-
vlessUuid: z.
|
|
40
|
+
vlessUuid: z.ZodGUID;
|
|
41
41
|
ssPassword: z.ZodString;
|
|
42
42
|
lastTriggeredThreshold: z.ZodInt;
|
|
43
43
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -13,7 +13,7 @@ export declare namespace CreateUserCommand {
|
|
|
13
13
|
}>>>;
|
|
14
14
|
shortUuid: z.ZodOptional<z.ZodString>;
|
|
15
15
|
trojanPassword: z.ZodOptional<z.ZodString>;
|
|
16
|
-
vlessUuid: z.ZodOptional<z.
|
|
16
|
+
vlessUuid: z.ZodOptional<z.ZodGUID>;
|
|
17
17
|
ssPassword: z.ZodOptional<z.ZodString>;
|
|
18
18
|
trafficLimitBytes: z.ZodOptional<z.ZodNumber>;
|
|
19
19
|
trafficLimitStrategy: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
@@ -61,7 +61,7 @@ export declare namespace CreateUserCommand {
|
|
|
61
61
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
62
62
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
63
63
|
trojanPassword: z.ZodString;
|
|
64
|
-
vlessUuid: z.
|
|
64
|
+
vlessUuid: z.ZodGUID;
|
|
65
65
|
ssPassword: z.ZodString;
|
|
66
66
|
lastTriggeredThreshold: z.ZodInt;
|
|
67
67
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -30,7 +30,7 @@ var CreateUserCommand;
|
|
|
30
30
|
.optional()
|
|
31
31
|
.describe('Optional. Password for Trojan protocol. Must be 8-32 characters.'),
|
|
32
32
|
vlessUuid: zod_1.z
|
|
33
|
-
.
|
|
33
|
+
.guid('Invalid Vless UUID format')
|
|
34
34
|
.optional()
|
|
35
35
|
.describe('Optional. UUID for VLESS protocol. Must be a valid UUID format.'),
|
|
36
36
|
ssPassword: zod_1.z
|
|
@@ -33,7 +33,7 @@ export declare namespace GetUserByShortUuidCommand {
|
|
|
33
33
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
34
34
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
35
35
|
trojanPassword: z.ZodString;
|
|
36
|
-
vlessUuid: z.
|
|
36
|
+
vlessUuid: z.ZodGUID;
|
|
37
37
|
ssPassword: z.ZodString;
|
|
38
38
|
lastTriggeredThreshold: z.ZodInt;
|
|
39
39
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -33,7 +33,7 @@ export declare namespace GetUserByUsernameCommand {
|
|
|
33
33
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
34
34
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
35
35
|
trojanPassword: z.ZodString;
|
|
36
|
-
vlessUuid: z.
|
|
36
|
+
vlessUuid: z.ZodGUID;
|
|
37
37
|
ssPassword: z.ZodString;
|
|
38
38
|
lastTriggeredThreshold: z.ZodInt;
|
|
39
39
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -33,7 +33,7 @@ export declare namespace GetUserByIdCommand {
|
|
|
33
33
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
34
34
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
35
35
|
trojanPassword: z.ZodString;
|
|
36
|
-
vlessUuid: z.
|
|
36
|
+
vlessUuid: z.ZodGUID;
|
|
37
37
|
ssPassword: z.ZodString;
|
|
38
38
|
lastTriggeredThreshold: z.ZodInt;
|
|
39
39
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -52,7 +52,7 @@ export declare namespace GetUsersStreamCommand {
|
|
|
52
52
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
53
53
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
54
54
|
trojanPassword: z.ZodString;
|
|
55
|
-
vlessUuid: z.
|
|
55
|
+
vlessUuid: z.ZodGUID;
|
|
56
56
|
ssPassword: z.ZodString;
|
|
57
57
|
lastTriggeredThreshold: z.ZodInt;
|
|
58
58
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -45,7 +45,7 @@ export declare namespace GetUsersCommand {
|
|
|
45
45
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
46
46
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
47
47
|
trojanPassword: z.ZodString;
|
|
48
|
-
vlessUuid: z.
|
|
48
|
+
vlessUuid: z.ZodGUID;
|
|
49
49
|
ssPassword: z.ZodString;
|
|
50
50
|
lastTriggeredThreshold: z.ZodInt;
|
|
51
51
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -54,7 +54,7 @@ export declare namespace UpdateUserCommand {
|
|
|
54
54
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
55
55
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
56
56
|
trojanPassword: z.ZodString;
|
|
57
|
-
vlessUuid: z.
|
|
57
|
+
vlessUuid: z.ZodGUID;
|
|
58
58
|
ssPassword: z.ZodString;
|
|
59
59
|
lastTriggeredThreshold: z.ZodInt;
|
|
60
60
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -26,7 +26,7 @@ export declare const UserResponseSchema: z.ZodObject<{
|
|
|
26
26
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
27
27
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
28
28
|
trojanPassword: z.ZodString;
|
|
29
|
-
vlessUuid: z.
|
|
29
|
+
vlessUuid: z.ZodGUID;
|
|
30
30
|
ssPassword: z.ZodString;
|
|
31
31
|
lastTriggeredThreshold: z.ZodInt;
|
|
32
32
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./actions"), exports);
|
|
18
18
|
__exportStar(require("./cycle"), exports);
|
|
19
|
+
__exportStar(require("./ip-statuses"), exports);
|
|
19
20
|
__exportStar(require("./status"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../constants/nodes/ip-statuses/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./node-ip-statuses.constant"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const NODE_IP_STATUSES: {
|
|
2
|
+
readonly INBOUND: "INBOUND";
|
|
3
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
4
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
5
|
+
readonly TRANSIT: "TRANSIT";
|
|
6
|
+
readonly MONITORING: "MONITORING";
|
|
7
|
+
readonly RESERVE: "RESERVE";
|
|
8
|
+
readonly BLOCKED: "BLOCKED";
|
|
9
|
+
readonly FLAGGED: "FLAGGED";
|
|
10
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
11
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
12
|
+
};
|
|
13
|
+
export type TNodeIpStatus = [keyof typeof NODE_IP_STATUSES][number];
|
|
14
|
+
export declare const NODE_IP_STATUSES_VALUES: ("INBOUND" | "OUTBOUND" | "MANAGEMENT" | "TRANSIT" | "MONITORING" | "RESERVE" | "BLOCKED" | "FLAGGED" | "DEPRECATED" | "UNKNOWN")[];
|
|
15
|
+
export declare const NODE_IP_STATUSES_KEYS: TNodeIpStatus[];
|
|
16
|
+
//# sourceMappingURL=node-ip-statuses.constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-ip-statuses.constant.d.ts","sourceRoot":"","sources":["../../../../../constants/nodes/ip-statuses/node-ip-statuses.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;CAWnB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AACpE,eAAO,MAAM,uBAAuB,qIAAkC,CAAC;AACvE,eAAO,MAAM,qBAAqB,EAAoC,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NODE_IP_STATUSES_KEYS = exports.NODE_IP_STATUSES_VALUES = exports.NODE_IP_STATUSES = void 0;
|
|
4
|
+
exports.NODE_IP_STATUSES = {
|
|
5
|
+
INBOUND: 'INBOUND',
|
|
6
|
+
OUTBOUND: 'OUTBOUND',
|
|
7
|
+
MANAGEMENT: 'MANAGEMENT',
|
|
8
|
+
TRANSIT: 'TRANSIT',
|
|
9
|
+
MONITORING: 'MONITORING',
|
|
10
|
+
RESERVE: 'RESERVE',
|
|
11
|
+
BLOCKED: 'BLOCKED',
|
|
12
|
+
FLAGGED: 'FLAGGED',
|
|
13
|
+
DEPRECATED: 'DEPRECATED',
|
|
14
|
+
UNKNOWN: 'UNKNOWN',
|
|
15
|
+
};
|
|
16
|
+
exports.NODE_IP_STATUSES_VALUES = Object.values(exports.NODE_IP_STATUSES);
|
|
17
|
+
exports.NODE_IP_STATUSES_KEYS = Object.keys(exports.NODE_IP_STATUSES);
|
|
@@ -25,7 +25,7 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
|
25
25
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
26
26
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
27
27
|
trojanPassword: z.ZodString;
|
|
28
|
-
vlessUuid: z.
|
|
28
|
+
vlessUuid: z.ZodGUID;
|
|
29
29
|
ssPassword: z.ZodString;
|
|
30
30
|
lastTriggeredThreshold: z.ZodInt;
|
|
31
31
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -17,6 +17,7 @@ export * from './infra-provider.schema';
|
|
|
17
17
|
export * from './internal-squad.schema';
|
|
18
18
|
export * from './last-connected-node.schema';
|
|
19
19
|
export * from './node-plugin.schema';
|
|
20
|
+
export * from './node-ips.schema';
|
|
20
21
|
export * from './node-system.schema';
|
|
21
22
|
export * from './nodes.schema';
|
|
22
23
|
export * from './remnawave-settings';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
|
|
@@ -33,6 +33,7 @@ __exportStar(require("./infra-provider.schema"), exports);
|
|
|
33
33
|
__exportStar(require("./internal-squad.schema"), exports);
|
|
34
34
|
__exportStar(require("./last-connected-node.schema"), exports);
|
|
35
35
|
__exportStar(require("./node-plugin.schema"), exports);
|
|
36
|
+
__exportStar(require("./node-ips.schema"), exports);
|
|
36
37
|
__exportStar(require("./node-system.schema"), exports);
|
|
37
38
|
__exportStar(require("./nodes.schema"), exports);
|
|
38
39
|
__exportStar(require("./remnawave-settings"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const NodeIpSchema: z.ZodObject<{
|
|
3
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
4
|
+
status: z.ZodEnum<{
|
|
5
|
+
readonly INBOUND: "INBOUND";
|
|
6
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
7
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
8
|
+
readonly TRANSIT: "TRANSIT";
|
|
9
|
+
readonly MONITORING: "MONITORING";
|
|
10
|
+
readonly RESERVE: "RESERVE";
|
|
11
|
+
readonly BLOCKED: "BLOCKED";
|
|
12
|
+
readonly FLAGGED: "FLAGGED";
|
|
13
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
14
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
15
|
+
}>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const NodeIpsSchema: z.ZodArray<z.ZodObject<{
|
|
18
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
19
|
+
status: z.ZodEnum<{
|
|
20
|
+
readonly INBOUND: "INBOUND";
|
|
21
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
22
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
23
|
+
readonly TRANSIT: "TRANSIT";
|
|
24
|
+
readonly MONITORING: "MONITORING";
|
|
25
|
+
readonly RESERVE: "RESERVE";
|
|
26
|
+
readonly BLOCKED: "BLOCKED";
|
|
27
|
+
readonly FLAGGED: "FLAGGED";
|
|
28
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
29
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
30
|
+
}>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
export type TNodeIp = z.infer<typeof NodeIpSchema>;
|
|
33
|
+
export type TNodeIps = z.infer<typeof NodeIpsSchema>;
|
|
34
|
+
//# sourceMappingURL=node-ips.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-ips.schema.d.ts","sourceRoot":"","sources":["../../../models/node-ips.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;iBAGvB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;kBAAgC,CAAC;AAE3D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NodeIpsSchema = exports.NodeIpSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ip_statuses_1 = require("../constants/nodes/ip-statuses");
|
|
6
|
+
exports.NodeIpSchema = zod_1.z.object({
|
|
7
|
+
ip: zod_1.z.union([zod_1.z.ipv4(), zod_1.z.ipv6()]),
|
|
8
|
+
status: zod_1.z.enum(ip_statuses_1.NODE_IP_STATUSES),
|
|
9
|
+
});
|
|
10
|
+
exports.NodeIpsSchema = zod_1.z.array(exports.NodeIpSchema).max(64);
|
|
@@ -21,6 +21,21 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
21
21
|
consumptionMultiplier: z.ZodNumber;
|
|
22
22
|
nodeConsumptionMultiplier: z.ZodNumber;
|
|
23
23
|
tags: z.ZodArray<z.ZodString>;
|
|
24
|
+
ips: z.ZodArray<z.ZodObject<{
|
|
25
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
26
|
+
status: z.ZodEnum<{
|
|
27
|
+
readonly INBOUND: "INBOUND";
|
|
28
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
29
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
30
|
+
readonly TRANSIT: "TRANSIT";
|
|
31
|
+
readonly MONITORING: "MONITORING";
|
|
32
|
+
readonly RESERVE: "RESERVE";
|
|
33
|
+
readonly BLOCKED: "BLOCKED";
|
|
34
|
+
readonly FLAGGED: "FLAGGED";
|
|
35
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
36
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
37
|
+
}>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
24
39
|
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
25
40
|
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
26
41
|
configProfile: z.ZodObject<{
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6CtB,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports.NodesSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
|
6
6
|
const infra_provider_schema_1 = require("./infra-provider.schema");
|
|
7
|
+
const node_ips_schema_1 = require("./node-ips.schema");
|
|
7
8
|
const node_system_schema_1 = require("./node-system.schema");
|
|
8
9
|
exports.NodesSchema = zod_1.z.object({
|
|
9
10
|
uuid: zod_1.z.uuid(),
|
|
@@ -27,6 +28,7 @@ exports.NodesSchema = zod_1.z.object({
|
|
|
27
28
|
consumptionMultiplier: zod_1.z.number(),
|
|
28
29
|
nodeConsumptionMultiplier: zod_1.z.number(),
|
|
29
30
|
tags: zod_1.z.array(zod_1.z.string()),
|
|
31
|
+
ips: node_ips_schema_1.NodeIpsSchema,
|
|
30
32
|
createdAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
|
31
33
|
updatedAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
|
32
34
|
configProfile: zod_1.z.object({
|
|
@@ -25,7 +25,7 @@ export declare const UsersSchema: z.ZodObject<{
|
|
|
25
25
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
26
26
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
27
27
|
trojanPassword: z.ZodString;
|
|
28
|
-
vlessUuid: z.
|
|
28
|
+
vlessUuid: z.ZodGUID;
|
|
29
29
|
ssPassword: z.ZodString;
|
|
30
30
|
lastTriggeredThreshold: z.ZodInt;
|
|
31
31
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -18,7 +18,7 @@ exports.UsersSchema = zod_1.z.object({
|
|
|
18
18
|
hwidDeviceLimit: zod_1.z.nullable(zod_1.z.int()),
|
|
19
19
|
externalSquadUuid: zod_1.z.nullable(zod_1.z.uuid()),
|
|
20
20
|
trojanPassword: zod_1.z.string(),
|
|
21
|
-
vlessUuid: zod_1.z.
|
|
21
|
+
vlessUuid: zod_1.z.guid(),
|
|
22
22
|
ssPassword: zod_1.z.string(),
|
|
23
23
|
lastTriggeredThreshold: zod_1.z.int(),
|
|
24
24
|
subRevokedAt: zod_1.z.nullable(zod_1.z.iso.datetime().transform((str) => new Date(str))),
|
|
@@ -43,7 +43,7 @@ export declare const RemnawaveWebhookUserEvents: z.ZodObject<{
|
|
|
43
43
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
44
44
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
45
45
|
trojanPassword: z.ZodString;
|
|
46
|
-
vlessUuid: z.
|
|
46
|
+
vlessUuid: z.ZodGUID;
|
|
47
47
|
ssPassword: z.ZodString;
|
|
48
48
|
lastTriggeredThreshold: z.ZodInt;
|
|
49
49
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -102,7 +102,7 @@ export declare const RemnawaveWebhookUserHwidDevicesEvents: z.ZodObject<{
|
|
|
102
102
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
103
103
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
104
104
|
trojanPassword: z.ZodString;
|
|
105
|
-
vlessUuid: z.
|
|
105
|
+
vlessUuid: z.ZodGUID;
|
|
106
106
|
ssPassword: z.ZodString;
|
|
107
107
|
lastTriggeredThreshold: z.ZodInt;
|
|
108
108
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -170,6 +170,21 @@ export declare const RemnawaveWebhookNodeEvents: z.ZodObject<{
|
|
|
170
170
|
consumptionMultiplier: z.ZodNumber;
|
|
171
171
|
nodeConsumptionMultiplier: z.ZodNumber;
|
|
172
172
|
tags: z.ZodArray<z.ZodString>;
|
|
173
|
+
ips: z.ZodArray<z.ZodObject<{
|
|
174
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
175
|
+
status: z.ZodEnum<{
|
|
176
|
+
readonly INBOUND: "INBOUND";
|
|
177
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
178
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
179
|
+
readonly TRANSIT: "TRANSIT";
|
|
180
|
+
readonly MONITORING: "MONITORING";
|
|
181
|
+
readonly RESERVE: "RESERVE";
|
|
182
|
+
readonly BLOCKED: "BLOCKED";
|
|
183
|
+
readonly FLAGGED: "FLAGGED";
|
|
184
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
185
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
186
|
+
}>;
|
|
187
|
+
}, z.core.$strip>>;
|
|
173
188
|
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
174
189
|
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
175
190
|
configProfile: z.ZodObject<{
|
|
@@ -325,6 +340,21 @@ export declare const RemnawaveWebhookTorrentBlockerEvents: z.ZodObject<{
|
|
|
325
340
|
consumptionMultiplier: z.ZodNumber;
|
|
326
341
|
nodeConsumptionMultiplier: z.ZodNumber;
|
|
327
342
|
tags: z.ZodArray<z.ZodString>;
|
|
343
|
+
ips: z.ZodArray<z.ZodObject<{
|
|
344
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
345
|
+
status: z.ZodEnum<{
|
|
346
|
+
readonly INBOUND: "INBOUND";
|
|
347
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
348
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
349
|
+
readonly TRANSIT: "TRANSIT";
|
|
350
|
+
readonly MONITORING: "MONITORING";
|
|
351
|
+
readonly RESERVE: "RESERVE";
|
|
352
|
+
readonly BLOCKED: "BLOCKED";
|
|
353
|
+
readonly FLAGGED: "FLAGGED";
|
|
354
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
355
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
356
|
+
}>;
|
|
357
|
+
}, z.core.$strip>>;
|
|
328
358
|
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
329
359
|
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
330
360
|
configProfile: z.ZodObject<{
|
|
@@ -411,7 +441,7 @@ export declare const RemnawaveWebhookTorrentBlockerEvents: z.ZodObject<{
|
|
|
411
441
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
412
442
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
413
443
|
trojanPassword: z.ZodString;
|
|
414
|
-
vlessUuid: z.
|
|
444
|
+
vlessUuid: z.ZodGUID;
|
|
415
445
|
ssPassword: z.ZodString;
|
|
416
446
|
lastTriggeredThreshold: z.ZodInt;
|
|
417
447
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -502,7 +532,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
502
532
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
503
533
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
504
534
|
trojanPassword: z.ZodString;
|
|
505
|
-
vlessUuid: z.
|
|
535
|
+
vlessUuid: z.ZodGUID;
|
|
506
536
|
ssPassword: z.ZodString;
|
|
507
537
|
lastTriggeredThreshold: z.ZodInt;
|
|
508
538
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -560,7 +590,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
560
590
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
561
591
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
562
592
|
trojanPassword: z.ZodString;
|
|
563
|
-
vlessUuid: z.
|
|
593
|
+
vlessUuid: z.ZodGUID;
|
|
564
594
|
ssPassword: z.ZodString;
|
|
565
595
|
lastTriggeredThreshold: z.ZodInt;
|
|
566
596
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -627,6 +657,21 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
627
657
|
consumptionMultiplier: z.ZodNumber;
|
|
628
658
|
nodeConsumptionMultiplier: z.ZodNumber;
|
|
629
659
|
tags: z.ZodArray<z.ZodString>;
|
|
660
|
+
ips: z.ZodArray<z.ZodObject<{
|
|
661
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
662
|
+
status: z.ZodEnum<{
|
|
663
|
+
readonly INBOUND: "INBOUND";
|
|
664
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
665
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
666
|
+
readonly TRANSIT: "TRANSIT";
|
|
667
|
+
readonly MONITORING: "MONITORING";
|
|
668
|
+
readonly RESERVE: "RESERVE";
|
|
669
|
+
readonly BLOCKED: "BLOCKED";
|
|
670
|
+
readonly FLAGGED: "FLAGGED";
|
|
671
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
672
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
673
|
+
}>;
|
|
674
|
+
}, z.core.$strip>>;
|
|
630
675
|
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
631
676
|
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
632
677
|
configProfile: z.ZodObject<{
|
|
@@ -778,6 +823,21 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
778
823
|
consumptionMultiplier: z.ZodNumber;
|
|
779
824
|
nodeConsumptionMultiplier: z.ZodNumber;
|
|
780
825
|
tags: z.ZodArray<z.ZodString>;
|
|
826
|
+
ips: z.ZodArray<z.ZodObject<{
|
|
827
|
+
ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
|
|
828
|
+
status: z.ZodEnum<{
|
|
829
|
+
readonly INBOUND: "INBOUND";
|
|
830
|
+
readonly OUTBOUND: "OUTBOUND";
|
|
831
|
+
readonly MANAGEMENT: "MANAGEMENT";
|
|
832
|
+
readonly TRANSIT: "TRANSIT";
|
|
833
|
+
readonly MONITORING: "MONITORING";
|
|
834
|
+
readonly RESERVE: "RESERVE";
|
|
835
|
+
readonly BLOCKED: "BLOCKED";
|
|
836
|
+
readonly FLAGGED: "FLAGGED";
|
|
837
|
+
readonly DEPRECATED: "DEPRECATED";
|
|
838
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
839
|
+
}>;
|
|
840
|
+
}, z.core.$strip>>;
|
|
781
841
|
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
782
842
|
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
783
843
|
configProfile: z.ZodObject<{
|
|
@@ -864,7 +924,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
864
924
|
hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
|
|
865
925
|
externalSquadUuid: z.ZodNullable<z.ZodUUID>;
|
|
866
926
|
trojanPassword: z.ZodString;
|
|
867
|
-
vlessUuid: z.
|
|
927
|
+
vlessUuid: z.ZodGUID;
|
|
868
928
|
ssPassword: z.ZodString;
|
|
869
929
|
lastTriggeredThreshold: z.ZodInt;
|
|
870
930
|
subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAcrC,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWhD,CAAC;AAEH,eAAO,MAAM,0BAA0B
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAcrC,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWhD,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQrC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqCxC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;iBAUvC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;iBAgBpC,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0C/C,CAAC;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAQtC,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"}
|
|
@@ -4,6 +4,7 @@ exports.CreateNodeCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
+
const models_1 = require("../../models");
|
|
7
8
|
const node_response_1 = require("./node.response");
|
|
8
9
|
var CreateNodeCommand;
|
|
9
10
|
(function (CreateNodeCommand) {
|
|
@@ -46,6 +47,7 @@ var CreateNodeCommand;
|
|
|
46
47
|
.max(10, 'Maximum 10 tags')),
|
|
47
48
|
activePluginUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.uuid())),
|
|
48
49
|
note: zod_1.z.optional(zod_1.z.string().max(255, 'Note must be less than 255 characters')),
|
|
50
|
+
ips: zod_1.z.optional(models_1.NodeIpsSchema),
|
|
49
51
|
});
|
|
50
52
|
CreateNodeCommand.ResponseSchema = node_response_1.NodeResponseSchema;
|
|
51
53
|
})(CreateNodeCommand || (exports.CreateNodeCommand = CreateNodeCommand = {}));
|
|
@@ -54,6 +54,7 @@ var UpdateNodeCommand;
|
|
|
54
54
|
.max(10, 'Maximum 10 tags')),
|
|
55
55
|
activePluginUuid: zod_1.z.uuid().nullish(),
|
|
56
56
|
note: zod_1.z.optional(zod_1.z.string().max(255).nullable()),
|
|
57
|
+
ips: zod_1.z.optional(models_1.NodeIpsSchema),
|
|
57
58
|
});
|
|
58
59
|
UpdateNodeCommand.ResponseSchema = node_response_1.NodeResponseSchema;
|
|
59
60
|
})(UpdateNodeCommand || (exports.UpdateNodeCommand = UpdateNodeCommand = {}));
|
|
@@ -30,7 +30,7 @@ var CreateUserCommand;
|
|
|
30
30
|
.optional()
|
|
31
31
|
.describe('Optional. Password for Trojan protocol. Must be 8-32 characters.'),
|
|
32
32
|
vlessUuid: zod_1.z
|
|
33
|
-
.
|
|
33
|
+
.guid('Invalid Vless UUID format')
|
|
34
34
|
.optional()
|
|
35
35
|
.describe('Optional. UUID for VLESS protocol. Must be a valid UUID format.'),
|
|
36
36
|
ssPassword: zod_1.z
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./actions"), exports);
|
|
18
18
|
__exportStar(require("./cycle"), exports);
|
|
19
|
+
__exportStar(require("./ip-statuses"), exports);
|
|
19
20
|
__exportStar(require("./status"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./node-ip-statuses.constant"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NODE_IP_STATUSES_KEYS = exports.NODE_IP_STATUSES_VALUES = exports.NODE_IP_STATUSES = void 0;
|
|
4
|
+
exports.NODE_IP_STATUSES = {
|
|
5
|
+
INBOUND: 'INBOUND',
|
|
6
|
+
OUTBOUND: 'OUTBOUND',
|
|
7
|
+
MANAGEMENT: 'MANAGEMENT',
|
|
8
|
+
TRANSIT: 'TRANSIT',
|
|
9
|
+
MONITORING: 'MONITORING',
|
|
10
|
+
RESERVE: 'RESERVE',
|
|
11
|
+
BLOCKED: 'BLOCKED',
|
|
12
|
+
FLAGGED: 'FLAGGED',
|
|
13
|
+
DEPRECATED: 'DEPRECATED',
|
|
14
|
+
UNKNOWN: 'UNKNOWN',
|
|
15
|
+
};
|
|
16
|
+
exports.NODE_IP_STATUSES_VALUES = Object.values(exports.NODE_IP_STATUSES);
|
|
17
|
+
exports.NODE_IP_STATUSES_KEYS = Object.keys(exports.NODE_IP_STATUSES);
|
|
@@ -33,6 +33,7 @@ __exportStar(require("./infra-provider.schema"), exports);
|
|
|
33
33
|
__exportStar(require("./internal-squad.schema"), exports);
|
|
34
34
|
__exportStar(require("./last-connected-node.schema"), exports);
|
|
35
35
|
__exportStar(require("./node-plugin.schema"), exports);
|
|
36
|
+
__exportStar(require("./node-ips.schema"), exports);
|
|
36
37
|
__exportStar(require("./node-system.schema"), exports);
|
|
37
38
|
__exportStar(require("./nodes.schema"), exports);
|
|
38
39
|
__exportStar(require("./remnawave-settings"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NodeIpsSchema = exports.NodeIpSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ip_statuses_1 = require("../constants/nodes/ip-statuses");
|
|
6
|
+
exports.NodeIpSchema = zod_1.z.object({
|
|
7
|
+
ip: zod_1.z.union([zod_1.z.ipv4(), zod_1.z.ipv6()]),
|
|
8
|
+
status: zod_1.z.enum(ip_statuses_1.NODE_IP_STATUSES),
|
|
9
|
+
});
|
|
10
|
+
exports.NodeIpsSchema = zod_1.z.array(exports.NodeIpSchema).max(64);
|
|
@@ -4,6 +4,7 @@ exports.NodesSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
|
6
6
|
const infra_provider_schema_1 = require("./infra-provider.schema");
|
|
7
|
+
const node_ips_schema_1 = require("./node-ips.schema");
|
|
7
8
|
const node_system_schema_1 = require("./node-system.schema");
|
|
8
9
|
exports.NodesSchema = zod_1.z.object({
|
|
9
10
|
uuid: zod_1.z.uuid(),
|
|
@@ -27,6 +28,7 @@ exports.NodesSchema = zod_1.z.object({
|
|
|
27
28
|
consumptionMultiplier: zod_1.z.number(),
|
|
28
29
|
nodeConsumptionMultiplier: zod_1.z.number(),
|
|
29
30
|
tags: zod_1.z.array(zod_1.z.string()),
|
|
31
|
+
ips: node_ips_schema_1.NodeIpsSchema,
|
|
30
32
|
createdAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
|
31
33
|
updatedAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
|
|
32
34
|
configProfile: zod_1.z.object({
|
|
@@ -18,7 +18,7 @@ exports.UsersSchema = zod_1.z.object({
|
|
|
18
18
|
hwidDeviceLimit: zod_1.z.nullable(zod_1.z.int()),
|
|
19
19
|
externalSquadUuid: zod_1.z.nullable(zod_1.z.uuid()),
|
|
20
20
|
trojanPassword: zod_1.z.string(),
|
|
21
|
-
vlessUuid: zod_1.z.
|
|
21
|
+
vlessUuid: zod_1.z.guid(),
|
|
22
22
|
ssPassword: zod_1.z.string(),
|
|
23
23
|
lastTriggeredThreshold: zod_1.z.int(),
|
|
24
24
|
subRevokedAt: zod_1.z.nullable(zod_1.z.iso.datetime().transform((str) => new Date(str))),
|
package/package.json
CHANGED