@remnawave/backend-contract 0.0.85 → 0.0.86

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.
@@ -12,6 +12,7 @@ export declare namespace CreateNodeCommand {
12
12
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
13
13
  excludedInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
14
  countryCode: z.ZodDefault<z.ZodString>;
15
+ consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
15
16
  }, "strip", z.ZodTypeAny, {
16
17
  address: string;
17
18
  name: string;
@@ -21,6 +22,7 @@ export declare namespace CreateNodeCommand {
21
22
  trafficResetDay?: number | undefined;
22
23
  trafficLimitBytes?: number | undefined;
23
24
  notifyPercent?: number | undefined;
25
+ consumptionMultiplier?: number | undefined;
24
26
  excludedInbounds?: string[] | undefined;
25
27
  }, {
26
28
  address: string;
@@ -31,6 +33,7 @@ export declare namespace CreateNodeCommand {
31
33
  trafficLimitBytes?: number | undefined;
32
34
  notifyPercent?: number | undefined;
33
35
  countryCode?: string | undefined;
36
+ consumptionMultiplier?: number | undefined;
34
37
  excludedInbounds?: string[] | undefined;
35
38
  }>;
36
39
  type Request = z.infer<typeof RequestSchema>;
@@ -56,6 +59,7 @@ export declare namespace CreateNodeCommand {
56
59
  usersOnline: z.ZodNullable<z.ZodNumber>;
57
60
  viewPosition: z.ZodNumber;
58
61
  countryCode: z.ZodString;
62
+ consumptionMultiplier: z.ZodNumber;
59
63
  cpuCount: z.ZodNullable<z.ZodNumber>;
60
64
  cpuModel: z.ZodNullable<z.ZodString>;
61
65
  totalRam: z.ZodNullable<z.ZodString>;
@@ -97,6 +101,7 @@ export declare namespace CreateNodeCommand {
97
101
  notifyPercent: number | null;
98
102
  usersOnline: number | null;
99
103
  countryCode: string;
104
+ consumptionMultiplier: number;
100
105
  cpuCount: number | null;
101
106
  cpuModel: string | null;
102
107
  totalRam: string | null;
@@ -128,6 +133,7 @@ export declare namespace CreateNodeCommand {
128
133
  notifyPercent: number | null;
129
134
  usersOnline: number | null;
130
135
  countryCode: string;
136
+ consumptionMultiplier: number;
131
137
  cpuCount: number | null;
132
138
  cpuModel: string | null;
133
139
  totalRam: string | null;
@@ -161,6 +167,7 @@ export declare namespace CreateNodeCommand {
161
167
  notifyPercent: number | null;
162
168
  usersOnline: number | null;
163
169
  countryCode: string;
170
+ consumptionMultiplier: number;
164
171
  cpuCount: number | null;
165
172
  cpuModel: string | null;
166
173
  totalRam: string | null;
@@ -194,6 +201,7 @@ export declare namespace CreateNodeCommand {
194
201
  notifyPercent: number | null;
195
202
  usersOnline: number | null;
196
203
  countryCode: string;
204
+ consumptionMultiplier: number;
197
205
  cpuCount: number | null;
198
206
  cpuModel: string | null;
199
207
  totalRam: string | null;
@@ -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,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgCxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
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,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsCxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -32,6 +32,10 @@ var CreateNodeCommand;
32
32
  .max(2, 'Country code must be 2 characters')
33
33
  .toUpperCase()
34
34
  .default('XX'),
35
+ consumptionMultiplier: zod_1.z.optional(zod_1.z
36
+ .number()
37
+ .min(0.1, 'Consumption multiplier must be greater than 0')
38
+ .transform((n) => Number(n.toFixed(1)))),
35
39
  });
36
40
  CreateNodeCommand.ResponseSchema = zod_1.z.object({
37
41
  response: models_1.NodesSchema,
@@ -32,6 +32,7 @@ export declare namespace DisableNodeCommand {
32
32
  usersOnline: z.ZodNullable<z.ZodNumber>;
33
33
  viewPosition: z.ZodNumber;
34
34
  countryCode: z.ZodString;
35
+ consumptionMultiplier: z.ZodNumber;
35
36
  cpuCount: z.ZodNullable<z.ZodNumber>;
36
37
  cpuModel: z.ZodNullable<z.ZodString>;
37
38
  totalRam: z.ZodNullable<z.ZodString>;
@@ -73,6 +74,7 @@ export declare namespace DisableNodeCommand {
73
74
  notifyPercent: number | null;
74
75
  usersOnline: number | null;
75
76
  countryCode: string;
77
+ consumptionMultiplier: number;
76
78
  cpuCount: number | null;
77
79
  cpuModel: string | null;
78
80
  totalRam: string | null;
@@ -104,6 +106,7 @@ export declare namespace DisableNodeCommand {
104
106
  notifyPercent: number | null;
105
107
  usersOnline: number | null;
106
108
  countryCode: string;
109
+ consumptionMultiplier: number;
107
110
  cpuCount: number | null;
108
111
  cpuModel: string | null;
109
112
  totalRam: string | null;
@@ -137,6 +140,7 @@ export declare namespace DisableNodeCommand {
137
140
  notifyPercent: number | null;
138
141
  usersOnline: number | null;
139
142
  countryCode: string;
143
+ consumptionMultiplier: number;
140
144
  cpuCount: number | null;
141
145
  cpuModel: string | null;
142
146
  totalRam: string | null;
@@ -170,6 +174,7 @@ export declare namespace DisableNodeCommand {
170
174
  notifyPercent: number | null;
171
175
  usersOnline: number | null;
172
176
  countryCode: string;
177
+ consumptionMultiplier: number;
173
178
  cpuCount: number | null;
174
179
  cpuModel: string | null;
175
180
  totalRam: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"disable.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/disable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAyB,CAAC;IACnC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"disable.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/disable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAyB,CAAC;IACnC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -32,6 +32,7 @@ export declare namespace EnableNodeCommand {
32
32
  usersOnline: z.ZodNullable<z.ZodNumber>;
33
33
  viewPosition: z.ZodNumber;
34
34
  countryCode: z.ZodString;
35
+ consumptionMultiplier: z.ZodNumber;
35
36
  cpuCount: z.ZodNullable<z.ZodNumber>;
36
37
  cpuModel: z.ZodNullable<z.ZodString>;
37
38
  totalRam: z.ZodNullable<z.ZodString>;
@@ -73,6 +74,7 @@ export declare namespace EnableNodeCommand {
73
74
  notifyPercent: number | null;
74
75
  usersOnline: number | null;
75
76
  countryCode: string;
77
+ consumptionMultiplier: number;
76
78
  cpuCount: number | null;
77
79
  cpuModel: string | null;
78
80
  totalRam: string | null;
@@ -104,6 +106,7 @@ export declare namespace EnableNodeCommand {
104
106
  notifyPercent: number | null;
105
107
  usersOnline: number | null;
106
108
  countryCode: string;
109
+ consumptionMultiplier: number;
107
110
  cpuCount: number | null;
108
111
  cpuModel: string | null;
109
112
  totalRam: string | null;
@@ -137,6 +140,7 @@ export declare namespace EnableNodeCommand {
137
140
  notifyPercent: number | null;
138
141
  usersOnline: number | null;
139
142
  countryCode: string;
143
+ consumptionMultiplier: number;
140
144
  cpuCount: number | null;
141
145
  cpuModel: string | null;
142
146
  totalRam: string | null;
@@ -170,6 +174,7 @@ export declare namespace EnableNodeCommand {
170
174
  notifyPercent: number | null;
171
175
  usersOnline: number | null;
172
176
  countryCode: string;
177
+ consumptionMultiplier: number;
173
178
  cpuCount: number | null;
174
179
  cpuModel: string | null;
175
180
  totalRam: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"enable.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/enable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAwB,CAAC;IAClC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"enable.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/enable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAwB,CAAC;IAClC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -24,6 +24,7 @@ export declare namespace GetAllNodesCommand {
24
24
  usersOnline: z.ZodNullable<z.ZodNumber>;
25
25
  viewPosition: z.ZodNumber;
26
26
  countryCode: z.ZodString;
27
+ consumptionMultiplier: z.ZodNumber;
27
28
  cpuCount: z.ZodNullable<z.ZodNumber>;
28
29
  cpuModel: z.ZodNullable<z.ZodString>;
29
30
  totalRam: z.ZodNullable<z.ZodString>;
@@ -65,6 +66,7 @@ export declare namespace GetAllNodesCommand {
65
66
  notifyPercent: number | null;
66
67
  usersOnline: number | null;
67
68
  countryCode: string;
69
+ consumptionMultiplier: number;
68
70
  cpuCount: number | null;
69
71
  cpuModel: string | null;
70
72
  totalRam: string | null;
@@ -96,6 +98,7 @@ export declare namespace GetAllNodesCommand {
96
98
  notifyPercent: number | null;
97
99
  usersOnline: number | null;
98
100
  countryCode: string;
101
+ consumptionMultiplier: number;
99
102
  cpuCount: number | null;
100
103
  cpuModel: string | null;
101
104
  totalRam: string | null;
@@ -129,6 +132,7 @@ export declare namespace GetAllNodesCommand {
129
132
  notifyPercent: number | null;
130
133
  usersOnline: number | null;
131
134
  countryCode: string;
135
+ consumptionMultiplier: number;
132
136
  cpuCount: number | null;
133
137
  cpuModel: string | null;
134
138
  totalRam: string | null;
@@ -162,6 +166,7 @@ export declare namespace GetAllNodesCommand {
162
166
  notifyPercent: number | null;
163
167
  usersOnline: number | null;
164
168
  countryCode: string;
169
+ consumptionMultiplier: number;
165
170
  cpuCount: number | null;
166
171
  cpuModel: string | null;
167
172
  totalRam: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -32,6 +32,7 @@ export declare namespace GetOneNodeCommand {
32
32
  usersOnline: z.ZodNullable<z.ZodNumber>;
33
33
  viewPosition: z.ZodNumber;
34
34
  countryCode: z.ZodString;
35
+ consumptionMultiplier: z.ZodNumber;
35
36
  cpuCount: z.ZodNullable<z.ZodNumber>;
36
37
  cpuModel: z.ZodNullable<z.ZodString>;
37
38
  totalRam: z.ZodNullable<z.ZodString>;
@@ -73,6 +74,7 @@ export declare namespace GetOneNodeCommand {
73
74
  notifyPercent: number | null;
74
75
  usersOnline: number | null;
75
76
  countryCode: string;
77
+ consumptionMultiplier: number;
76
78
  cpuCount: number | null;
77
79
  cpuModel: string | null;
78
80
  totalRam: string | null;
@@ -104,6 +106,7 @@ export declare namespace GetOneNodeCommand {
104
106
  notifyPercent: number | null;
105
107
  usersOnline: number | null;
106
108
  countryCode: string;
109
+ consumptionMultiplier: number;
107
110
  cpuCount: number | null;
108
111
  cpuModel: string | null;
109
112
  totalRam: string | null;
@@ -137,6 +140,7 @@ export declare namespace GetOneNodeCommand {
137
140
  notifyPercent: number | null;
138
141
  usersOnline: number | null;
139
142
  countryCode: string;
143
+ consumptionMultiplier: number;
140
144
  cpuCount: number | null;
141
145
  cpuModel: string | null;
142
146
  totalRam: string | null;
@@ -170,6 +174,7 @@ export declare namespace GetOneNodeCommand {
170
174
  notifyPercent: number | null;
171
175
  usersOnline: number | null;
172
176
  countryCode: string;
177
+ consumptionMultiplier: number;
173
178
  cpuCount: number | null;
174
179
  cpuModel: string | null;
175
180
  totalRam: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAyB,CAAC;IACnC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAyB,CAAC;IACnC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -24,6 +24,7 @@ export declare namespace ReorderNodeCommand {
24
24
  usersOnline: z.ZodNullable<z.ZodNumber>;
25
25
  viewPosition: z.ZodNumber;
26
26
  countryCode: z.ZodString;
27
+ consumptionMultiplier: z.ZodNumber;
27
28
  cpuCount: z.ZodNullable<z.ZodNumber>;
28
29
  cpuModel: z.ZodNullable<z.ZodString>;
29
30
  totalRam: z.ZodNullable<z.ZodString>;
@@ -83,6 +84,7 @@ export declare namespace ReorderNodeCommand {
83
84
  usersOnline: z.ZodNullable<z.ZodNumber>;
84
85
  viewPosition: z.ZodNumber;
85
86
  countryCode: z.ZodString;
87
+ consumptionMultiplier: z.ZodNumber;
86
88
  cpuCount: z.ZodNullable<z.ZodNumber>;
87
89
  cpuModel: z.ZodNullable<z.ZodString>;
88
90
  totalRam: z.ZodNullable<z.ZodString>;
@@ -124,6 +126,7 @@ export declare namespace ReorderNodeCommand {
124
126
  notifyPercent: number | null;
125
127
  usersOnline: number | null;
126
128
  countryCode: string;
129
+ consumptionMultiplier: number;
127
130
  cpuCount: number | null;
128
131
  cpuModel: string | null;
129
132
  totalRam: string | null;
@@ -155,6 +158,7 @@ export declare namespace ReorderNodeCommand {
155
158
  notifyPercent: number | null;
156
159
  usersOnline: number | null;
157
160
  countryCode: string;
161
+ consumptionMultiplier: number;
158
162
  cpuCount: number | null;
159
163
  cpuModel: string | null;
160
164
  totalRam: string | null;
@@ -188,6 +192,7 @@ export declare namespace ReorderNodeCommand {
188
192
  notifyPercent: number | null;
189
193
  usersOnline: number | null;
190
194
  countryCode: string;
195
+ consumptionMultiplier: number;
191
196
  cpuCount: number | null;
192
197
  cpuModel: string | null;
193
198
  totalRam: string | null;
@@ -221,6 +226,7 @@ export declare namespace ReorderNodeCommand {
221
226
  notifyPercent: number | null;
222
227
  usersOnline: number | null;
223
228
  countryCode: string;
229
+ consumptionMultiplier: number;
224
230
  cpuCount: number | null;
225
231
  cpuModel: string | null;
226
232
  totalRam: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -23,6 +23,7 @@ export declare namespace UpdateNodeCommand {
23
23
  usersOnline: z.ZodNullable<z.ZodNumber>;
24
24
  viewPosition: z.ZodNumber;
25
25
  countryCode: z.ZodString;
26
+ consumptionMultiplier: z.ZodNumber;
26
27
  cpuCount: z.ZodNullable<z.ZodNumber>;
27
28
  cpuModel: z.ZodNullable<z.ZodString>;
28
29
  totalRam: z.ZodNullable<z.ZodString>;
@@ -51,6 +52,7 @@ export declare namespace UpdateNodeCommand {
51
52
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
52
53
  excludedInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
53
54
  countryCode: z.ZodOptional<z.ZodString>;
55
+ consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
54
56
  }>, "strip", z.ZodTypeAny, {
55
57
  uuid: string;
56
58
  address?: string | undefined;
@@ -61,6 +63,7 @@ export declare namespace UpdateNodeCommand {
61
63
  trafficLimitBytes?: number | undefined;
62
64
  notifyPercent?: number | undefined;
63
65
  countryCode?: string | undefined;
66
+ consumptionMultiplier?: number | undefined;
64
67
  excludedInbounds?: string[] | undefined;
65
68
  }, {
66
69
  uuid: string;
@@ -72,6 +75,7 @@ export declare namespace UpdateNodeCommand {
72
75
  trafficLimitBytes?: number | undefined;
73
76
  notifyPercent?: number | undefined;
74
77
  countryCode?: string | undefined;
78
+ consumptionMultiplier?: number | undefined;
75
79
  excludedInbounds?: string[] | undefined;
76
80
  }>;
77
81
  type Request = z.infer<typeof RequestSchema>;
@@ -97,6 +101,7 @@ export declare namespace UpdateNodeCommand {
97
101
  usersOnline: z.ZodNullable<z.ZodNumber>;
98
102
  viewPosition: z.ZodNumber;
99
103
  countryCode: z.ZodString;
104
+ consumptionMultiplier: z.ZodNumber;
100
105
  cpuCount: z.ZodNullable<z.ZodNumber>;
101
106
  cpuModel: z.ZodNullable<z.ZodString>;
102
107
  totalRam: z.ZodNullable<z.ZodString>;
@@ -138,6 +143,7 @@ export declare namespace UpdateNodeCommand {
138
143
  notifyPercent: number | null;
139
144
  usersOnline: number | null;
140
145
  countryCode: string;
146
+ consumptionMultiplier: number;
141
147
  cpuCount: number | null;
142
148
  cpuModel: string | null;
143
149
  totalRam: string | null;
@@ -169,6 +175,7 @@ export declare namespace UpdateNodeCommand {
169
175
  notifyPercent: number | null;
170
176
  usersOnline: number | null;
171
177
  countryCode: string;
178
+ consumptionMultiplier: number;
172
179
  cpuCount: number | null;
173
180
  cpuModel: string | null;
174
181
  totalRam: string | null;
@@ -202,6 +209,7 @@ export declare namespace UpdateNodeCommand {
202
209
  notifyPercent: number | null;
203
210
  usersOnline: number | null;
204
211
  countryCode: string;
212
+ consumptionMultiplier: number;
205
213
  cpuCount: number | null;
206
214
  cpuModel: string | null;
207
215
  totalRam: string | null;
@@ -235,6 +243,7 @@ export declare namespace UpdateNodeCommand {
235
243
  notifyPercent: number | null;
236
244
  usersOnline: number | null;
237
245
  countryCode: string;
246
+ consumptionMultiplier: number;
238
247
  cpuCount: number | null;
239
248
  cpuModel: string | null;
240
249
  totalRam: string | null;
@@ -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;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4BxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
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;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkCxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -28,6 +28,10 @@ var UpdateNodeCommand;
28
28
  invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
29
29
  })),
30
30
  countryCode: zod_1.z.optional(zod_1.z.string().max(2, 'Country code must be 2 characters').toUpperCase()),
31
+ consumptionMultiplier: zod_1.z.optional(zod_1.z
32
+ .number()
33
+ .min(0.1, 'Consumption multiplier must be greater than 0')
34
+ .transform((n) => Number(n.toFixed(1)))),
31
35
  });
32
36
  UpdateNodeCommand.ResponseSchema = zod_1.z.object({
33
37
  response: models_1.NodesSchema,
@@ -20,6 +20,7 @@ export declare const NodesSchema: z.ZodObject<{
20
20
  usersOnline: z.ZodNullable<z.ZodNumber>;
21
21
  viewPosition: z.ZodNumber;
22
22
  countryCode: z.ZodString;
23
+ consumptionMultiplier: z.ZodNumber;
23
24
  cpuCount: z.ZodNullable<z.ZodNumber>;
24
25
  cpuModel: z.ZodNullable<z.ZodString>;
25
26
  totalRam: z.ZodNullable<z.ZodString>;
@@ -61,6 +62,7 @@ export declare const NodesSchema: z.ZodObject<{
61
62
  notifyPercent: number | null;
62
63
  usersOnline: number | null;
63
64
  countryCode: string;
65
+ consumptionMultiplier: number;
64
66
  cpuCount: number | null;
65
67
  cpuModel: string | null;
66
68
  totalRam: string | null;
@@ -92,6 +94,7 @@ export declare const NodesSchema: z.ZodObject<{
92
94
  notifyPercent: number | null;
93
95
  usersOnline: number | null;
94
96
  countryCode: string;
97
+ consumptionMultiplier: number;
95
98
  cpuCount: number | null;
96
99
  cpuModel: string | null;
97
100
  totalRam: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BtB,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;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCtB,CAAC"}
@@ -24,6 +24,7 @@ exports.NodesSchema = zod_1.z.object({
24
24
  usersOnline: zod_1.z.nullable(zod_1.z.number().int()),
25
25
  viewPosition: zod_1.z.number().int(),
26
26
  countryCode: zod_1.z.string(),
27
+ consumptionMultiplier: zod_1.z.number(),
27
28
  cpuCount: zod_1.z.nullable(zod_1.z.number().int()),
28
29
  cpuModel: zod_1.z.nullable(zod_1.z.string()),
29
30
  totalRam: zod_1.z.nullable(zod_1.z.string()),
@@ -32,6 +32,10 @@ var CreateNodeCommand;
32
32
  .max(2, 'Country code must be 2 characters')
33
33
  .toUpperCase()
34
34
  .default('XX'),
35
+ consumptionMultiplier: zod_1.z.optional(zod_1.z
36
+ .number()
37
+ .min(0.1, 'Consumption multiplier must be greater than 0')
38
+ .transform((n) => Number(n.toFixed(1)))),
35
39
  });
36
40
  CreateNodeCommand.ResponseSchema = zod_1.z.object({
37
41
  response: models_1.NodesSchema,
@@ -28,6 +28,10 @@ var UpdateNodeCommand;
28
28
  invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
29
29
  })),
30
30
  countryCode: zod_1.z.optional(zod_1.z.string().max(2, 'Country code must be 2 characters').toUpperCase()),
31
+ consumptionMultiplier: zod_1.z.optional(zod_1.z
32
+ .number()
33
+ .min(0.1, 'Consumption multiplier must be greater than 0')
34
+ .transform((n) => Number(n.toFixed(1)))),
31
35
  });
32
36
  UpdateNodeCommand.ResponseSchema = zod_1.z.object({
33
37
  response: models_1.NodesSchema,
@@ -24,6 +24,7 @@ exports.NodesSchema = zod_1.z.object({
24
24
  usersOnline: zod_1.z.nullable(zod_1.z.number().int()),
25
25
  viewPosition: zod_1.z.number().int(),
26
26
  countryCode: zod_1.z.string(),
27
+ consumptionMultiplier: zod_1.z.number(),
27
28
  cpuCount: zod_1.z.nullable(zod_1.z.number().int()),
28
29
  cpuModel: zod_1.z.nullable(zod_1.z.string()),
29
30
  totalRam: zod_1.z.nullable(zod_1.z.string()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.85",
3
+ "version": "0.0.86",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",