@remnawave/backend-contract 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/build/backend/commands/nodes/actions/disable.command.d.ts +15 -0
  2. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  3. package/build/backend/commands/nodes/actions/enable.command.d.ts +15 -0
  4. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  5. package/build/backend/commands/nodes/actions/reorder.command.d.ts +15 -0
  6. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  7. package/build/backend/commands/nodes/create.command.d.ts +30 -0
  8. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  9. package/build/backend/commands/nodes/create.command.js +2 -0
  10. package/build/backend/commands/nodes/get-node.command.d.ts +15 -0
  11. package/build/backend/commands/nodes/get-node.command.d.ts.map +1 -1
  12. package/build/backend/commands/nodes/get-nodes.command.d.ts +15 -0
  13. package/build/backend/commands/nodes/get-nodes.command.d.ts.map +1 -1
  14. package/build/backend/commands/nodes/node.response.d.ts +15 -0
  15. package/build/backend/commands/nodes/node.response.d.ts.map +1 -1
  16. package/build/backend/commands/nodes/update.command.d.ts +30 -0
  17. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  18. package/build/backend/commands/nodes/update.command.js +1 -0
  19. package/build/backend/constants/nodes/index.d.ts +1 -0
  20. package/build/backend/constants/nodes/index.d.ts.map +1 -1
  21. package/build/backend/constants/nodes/index.js +1 -0
  22. package/build/backend/constants/nodes/ip-statuses/index.d.ts +2 -0
  23. package/build/backend/constants/nodes/ip-statuses/index.d.ts.map +1 -0
  24. package/build/backend/constants/nodes/ip-statuses/index.js +17 -0
  25. package/build/backend/constants/nodes/ip-statuses/node-ip-statuses.constant.d.ts +16 -0
  26. package/build/backend/constants/nodes/ip-statuses/node-ip-statuses.constant.d.ts.map +1 -0
  27. package/build/backend/constants/nodes/ip-statuses/node-ip-statuses.constant.js +17 -0
  28. package/build/backend/models/index.d.ts +1 -0
  29. package/build/backend/models/index.d.ts.map +1 -1
  30. package/build/backend/models/index.js +1 -0
  31. package/build/backend/models/node-ips.schema.d.ts +34 -0
  32. package/build/backend/models/node-ips.schema.d.ts.map +1 -0
  33. package/build/backend/models/node-ips.schema.js +10 -0
  34. package/build/backend/models/nodes.schema.d.ts +15 -0
  35. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  36. package/build/backend/models/nodes.schema.js +2 -0
  37. package/build/backend/models/webhook/webhook.schema.d.ts +60 -0
  38. package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
  39. package/build/frontend/commands/nodes/create.command.js +2 -0
  40. package/build/frontend/commands/nodes/update.command.js +1 -0
  41. package/build/frontend/constants/nodes/index.js +1 -0
  42. package/build/frontend/constants/nodes/ip-statuses/index.js +17 -0
  43. package/build/frontend/constants/nodes/ip-statuses/node-ip-statuses.constant.js +17 -0
  44. package/build/frontend/models/index.js +1 -0
  45. package/build/frontend/models/node-ips.schema.js +10 -0
  46. package/build/frontend/models/nodes.schema.js +2 -0
  47. 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;qBAoD5B,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"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE7B,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;qBAuD5B,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"}
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 = {}));
@@ -1,4 +1,5 @@
1
1
  export * from './actions';
2
2
  export * from './cycle';
3
+ export * from './ip-statuses';
3
4
  export * from './status';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export * from './node-ip-statuses.constant';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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);
@@ -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;AACr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AAmB,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;AAMxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4CtB,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({
@@ -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<{
@@ -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<{
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAO,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 = {}));
@@ -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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/remnawave",