@remnawave/backend-contract 0.0.64 → 0.0.65

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,7 @@ export declare namespace CreateNodeCommand {
10
10
  trafficLimitBytes: z.ZodOptional<z.ZodNumber>;
11
11
  notifyPercent: z.ZodOptional<z.ZodNumber>;
12
12
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
13
+ excludedInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13
14
  }, "strip", z.ZodTypeAny, {
14
15
  address: string;
15
16
  name: string;
@@ -18,6 +19,7 @@ export declare namespace CreateNodeCommand {
18
19
  trafficResetDay?: number | undefined;
19
20
  trafficLimitBytes?: number | undefined;
20
21
  notifyPercent?: number | undefined;
22
+ excludedInbounds?: string[] | undefined;
21
23
  }, {
22
24
  address: string;
23
25
  name: string;
@@ -26,6 +28,7 @@ export declare namespace CreateNodeCommand {
26
28
  trafficResetDay?: number | undefined;
27
29
  trafficLimitBytes?: number | undefined;
28
30
  notifyPercent?: number | undefined;
31
+ excludedInbounds?: string[] | undefined;
29
32
  }>;
30
33
  type Request = z.infer<typeof RequestSchema>;
31
34
  const ResponseSchema: z.ZodObject<{
@@ -53,6 +56,19 @@ export declare namespace CreateNodeCommand {
53
56
  totalRam: z.ZodNullable<z.ZodString>;
54
57
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
55
58
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
59
+ excludedInbounds: z.ZodArray<z.ZodObject<{
60
+ uuid: z.ZodString;
61
+ tag: z.ZodString;
62
+ type: z.ZodString;
63
+ }, "strip", z.ZodTypeAny, {
64
+ uuid: string;
65
+ type: string;
66
+ tag: string;
67
+ }, {
68
+ uuid: string;
69
+ type: string;
70
+ tag: string;
71
+ }>, "many">;
56
72
  }, "strip", z.ZodTypeAny, {
57
73
  uuid: string;
58
74
  createdAt: Date;
@@ -77,6 +93,11 @@ export declare namespace CreateNodeCommand {
77
93
  cpuCount: number | null;
78
94
  cpuModel: string | null;
79
95
  totalRam: string | null;
96
+ excludedInbounds: {
97
+ uuid: string;
98
+ type: string;
99
+ tag: string;
100
+ }[];
80
101
  }, {
81
102
  uuid: string;
82
103
  createdAt: string;
@@ -101,6 +122,11 @@ export declare namespace CreateNodeCommand {
101
122
  cpuCount: number | null;
102
123
  cpuModel: string | null;
103
124
  totalRam: string | null;
125
+ excludedInbounds: {
126
+ uuid: string;
127
+ type: string;
128
+ tag: string;
129
+ }[];
104
130
  }>;
105
131
  }, "strip", z.ZodTypeAny, {
106
132
  response: {
@@ -127,6 +153,11 @@ export declare namespace CreateNodeCommand {
127
153
  cpuCount: number | null;
128
154
  cpuModel: string | null;
129
155
  totalRam: string | null;
156
+ excludedInbounds: {
157
+ uuid: string;
158
+ type: string;
159
+ tag: string;
160
+ }[];
130
161
  };
131
162
  }, {
132
163
  response: {
@@ -153,6 +184,11 @@ export declare namespace CreateNodeCommand {
153
184
  cpuCount: number | null;
154
185
  cpuModel: string | null;
155
186
  totalRam: string | null;
187
+ excludedInbounds: {
188
+ uuid: string;
189
+ type: string;
190
+ tag: string;
191
+ }[];
156
192
  };
157
193
  }>;
158
194
  type Response = z.infer<typeof ResponseSchema>;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;MAsBxB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BxB,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,9 @@ var CreateNodeCommand;
24
24
  .int()
25
25
  .min(1, 'Traffic reset day must be greater than 0')
26
26
  .max(31, 'Traffic reset day must be less than 31')),
27
+ excludedInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
28
+ invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
29
+ })),
27
30
  });
28
31
  CreateNodeCommand.ResponseSchema = zod_1.z.object({
29
32
  response: models_1.NodesSchema,
@@ -35,6 +35,19 @@ export declare namespace DisableNodeCommand {
35
35
  totalRam: z.ZodNullable<z.ZodString>;
36
36
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
37
37
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
38
+ excludedInbounds: z.ZodArray<z.ZodObject<{
39
+ uuid: z.ZodString;
40
+ tag: z.ZodString;
41
+ type: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ uuid: string;
44
+ type: string;
45
+ tag: string;
46
+ }, {
47
+ uuid: string;
48
+ type: string;
49
+ tag: string;
50
+ }>, "many">;
38
51
  }, "strip", z.ZodTypeAny, {
39
52
  uuid: string;
40
53
  createdAt: Date;
@@ -59,6 +72,11 @@ export declare namespace DisableNodeCommand {
59
72
  cpuCount: number | null;
60
73
  cpuModel: string | null;
61
74
  totalRam: string | null;
75
+ excludedInbounds: {
76
+ uuid: string;
77
+ type: string;
78
+ tag: string;
79
+ }[];
62
80
  }, {
63
81
  uuid: string;
64
82
  createdAt: string;
@@ -83,6 +101,11 @@ export declare namespace DisableNodeCommand {
83
101
  cpuCount: number | null;
84
102
  cpuModel: string | null;
85
103
  totalRam: string | null;
104
+ excludedInbounds: {
105
+ uuid: string;
106
+ type: string;
107
+ tag: string;
108
+ }[];
86
109
  }>;
87
110
  }, "strip", z.ZodTypeAny, {
88
111
  response: {
@@ -109,6 +132,11 @@ export declare namespace DisableNodeCommand {
109
132
  cpuCount: number | null;
110
133
  cpuModel: string | null;
111
134
  totalRam: string | null;
135
+ excludedInbounds: {
136
+ uuid: string;
137
+ type: string;
138
+ tag: string;
139
+ }[];
112
140
  };
113
141
  }, {
114
142
  response: {
@@ -135,6 +163,11 @@ export declare namespace DisableNodeCommand {
135
163
  cpuCount: number | null;
136
164
  cpuModel: string | null;
137
165
  totalRam: string | null;
166
+ excludedInbounds: {
167
+ uuid: string;
168
+ type: string;
169
+ tag: string;
170
+ }[];
138
171
  };
139
172
  }>;
140
173
  type Response = z.infer<typeof ResponseSchema>;
@@ -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"}
@@ -35,6 +35,19 @@ export declare namespace EnableNodeCommand {
35
35
  totalRam: z.ZodNullable<z.ZodString>;
36
36
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
37
37
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
38
+ excludedInbounds: z.ZodArray<z.ZodObject<{
39
+ uuid: z.ZodString;
40
+ tag: z.ZodString;
41
+ type: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ uuid: string;
44
+ type: string;
45
+ tag: string;
46
+ }, {
47
+ uuid: string;
48
+ type: string;
49
+ tag: string;
50
+ }>, "many">;
38
51
  }, "strip", z.ZodTypeAny, {
39
52
  uuid: string;
40
53
  createdAt: Date;
@@ -59,6 +72,11 @@ export declare namespace EnableNodeCommand {
59
72
  cpuCount: number | null;
60
73
  cpuModel: string | null;
61
74
  totalRam: string | null;
75
+ excludedInbounds: {
76
+ uuid: string;
77
+ type: string;
78
+ tag: string;
79
+ }[];
62
80
  }, {
63
81
  uuid: string;
64
82
  createdAt: string;
@@ -83,6 +101,11 @@ export declare namespace EnableNodeCommand {
83
101
  cpuCount: number | null;
84
102
  cpuModel: string | null;
85
103
  totalRam: string | null;
104
+ excludedInbounds: {
105
+ uuid: string;
106
+ type: string;
107
+ tag: string;
108
+ }[];
86
109
  }>;
87
110
  }, "strip", z.ZodTypeAny, {
88
111
  response: {
@@ -109,6 +132,11 @@ export declare namespace EnableNodeCommand {
109
132
  cpuCount: number | null;
110
133
  cpuModel: string | null;
111
134
  totalRam: string | null;
135
+ excludedInbounds: {
136
+ uuid: string;
137
+ type: string;
138
+ tag: string;
139
+ }[];
112
140
  };
113
141
  }, {
114
142
  response: {
@@ -135,6 +163,11 @@ export declare namespace EnableNodeCommand {
135
163
  cpuCount: number | null;
136
164
  cpuModel: string | null;
137
165
  totalRam: string | null;
166
+ excludedInbounds: {
167
+ uuid: string;
168
+ type: string;
169
+ tag: string;
170
+ }[];
138
171
  };
139
172
  }>;
140
173
  type Response = z.infer<typeof ResponseSchema>;
@@ -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"}
@@ -27,6 +27,19 @@ export declare namespace GetAllNodesCommand {
27
27
  totalRam: z.ZodNullable<z.ZodString>;
28
28
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
29
29
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
30
+ excludedInbounds: z.ZodArray<z.ZodObject<{
31
+ uuid: z.ZodString;
32
+ tag: z.ZodString;
33
+ type: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ uuid: string;
36
+ type: string;
37
+ tag: string;
38
+ }, {
39
+ uuid: string;
40
+ type: string;
41
+ tag: string;
42
+ }>, "many">;
30
43
  }, "strip", z.ZodTypeAny, {
31
44
  uuid: string;
32
45
  createdAt: Date;
@@ -51,6 +64,11 @@ export declare namespace GetAllNodesCommand {
51
64
  cpuCount: number | null;
52
65
  cpuModel: string | null;
53
66
  totalRam: string | null;
67
+ excludedInbounds: {
68
+ uuid: string;
69
+ type: string;
70
+ tag: string;
71
+ }[];
54
72
  }, {
55
73
  uuid: string;
56
74
  createdAt: string;
@@ -75,6 +93,11 @@ export declare namespace GetAllNodesCommand {
75
93
  cpuCount: number | null;
76
94
  cpuModel: string | null;
77
95
  totalRam: string | null;
96
+ excludedInbounds: {
97
+ uuid: string;
98
+ type: string;
99
+ tag: string;
100
+ }[];
78
101
  }>, "many">;
79
102
  }, "strip", z.ZodTypeAny, {
80
103
  response: {
@@ -101,6 +124,11 @@ export declare namespace GetAllNodesCommand {
101
124
  cpuCount: number | null;
102
125
  cpuModel: string | null;
103
126
  totalRam: string | null;
127
+ excludedInbounds: {
128
+ uuid: string;
129
+ type: string;
130
+ tag: string;
131
+ }[];
104
132
  }[];
105
133
  }, {
106
134
  response: {
@@ -127,6 +155,11 @@ export declare namespace GetAllNodesCommand {
127
155
  cpuCount: number | null;
128
156
  cpuModel: string | null;
129
157
  totalRam: string | null;
158
+ excludedInbounds: {
159
+ uuid: string;
160
+ type: string;
161
+ tag: string;
162
+ }[];
130
163
  }[];
131
164
  }>;
132
165
  type Response = z.infer<typeof ResponseSchema>;
@@ -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"}
@@ -35,6 +35,19 @@ export declare namespace GetOneNodeCommand {
35
35
  totalRam: z.ZodNullable<z.ZodString>;
36
36
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
37
37
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
38
+ excludedInbounds: z.ZodArray<z.ZodObject<{
39
+ uuid: z.ZodString;
40
+ tag: z.ZodString;
41
+ type: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ uuid: string;
44
+ type: string;
45
+ tag: string;
46
+ }, {
47
+ uuid: string;
48
+ type: string;
49
+ tag: string;
50
+ }>, "many">;
38
51
  }, "strip", z.ZodTypeAny, {
39
52
  uuid: string;
40
53
  createdAt: Date;
@@ -59,6 +72,11 @@ export declare namespace GetOneNodeCommand {
59
72
  cpuCount: number | null;
60
73
  cpuModel: string | null;
61
74
  totalRam: string | null;
75
+ excludedInbounds: {
76
+ uuid: string;
77
+ type: string;
78
+ tag: string;
79
+ }[];
62
80
  }, {
63
81
  uuid: string;
64
82
  createdAt: string;
@@ -83,6 +101,11 @@ export declare namespace GetOneNodeCommand {
83
101
  cpuCount: number | null;
84
102
  cpuModel: string | null;
85
103
  totalRam: string | null;
104
+ excludedInbounds: {
105
+ uuid: string;
106
+ type: string;
107
+ tag: string;
108
+ }[];
86
109
  }>;
87
110
  }, "strip", z.ZodTypeAny, {
88
111
  response: {
@@ -109,6 +132,11 @@ export declare namespace GetOneNodeCommand {
109
132
  cpuCount: number | null;
110
133
  cpuModel: string | null;
111
134
  totalRam: string | null;
135
+ excludedInbounds: {
136
+ uuid: string;
137
+ type: string;
138
+ tag: string;
139
+ }[];
112
140
  };
113
141
  }, {
114
142
  response: {
@@ -135,6 +163,11 @@ export declare namespace GetOneNodeCommand {
135
163
  cpuCount: number | null;
136
164
  cpuModel: string | null;
137
165
  totalRam: string | null;
166
+ excludedInbounds: {
167
+ uuid: string;
168
+ type: string;
169
+ tag: string;
170
+ }[];
138
171
  };
139
172
  }>;
140
173
  type Response = z.infer<typeof ResponseSchema>;
@@ -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"}
@@ -26,6 +26,19 @@ export declare namespace UpdateNodeCommand {
26
26
  totalRam: z.ZodNullable<z.ZodString>;
27
27
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
28
28
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
29
+ excludedInbounds: z.ZodArray<z.ZodObject<{
30
+ uuid: z.ZodString;
31
+ tag: z.ZodString;
32
+ type: z.ZodString;
33
+ }, "strip", z.ZodTypeAny, {
34
+ uuid: string;
35
+ type: string;
36
+ tag: string;
37
+ }, {
38
+ uuid: string;
39
+ type: string;
40
+ tag: string;
41
+ }>, "many">;
29
42
  }, "uuid">, {
30
43
  name: z.ZodOptional<z.ZodString>;
31
44
  address: z.ZodOptional<z.ZodString>;
@@ -34,6 +47,7 @@ export declare namespace UpdateNodeCommand {
34
47
  trafficLimitBytes: z.ZodOptional<z.ZodNumber>;
35
48
  notifyPercent: z.ZodOptional<z.ZodNumber>;
36
49
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
50
+ excludedInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
37
51
  }>, "strip", z.ZodTypeAny, {
38
52
  uuid: string;
39
53
  address?: string | undefined;
@@ -43,6 +57,7 @@ export declare namespace UpdateNodeCommand {
43
57
  trafficResetDay?: number | undefined;
44
58
  trafficLimitBytes?: number | undefined;
45
59
  notifyPercent?: number | undefined;
60
+ excludedInbounds?: string[] | undefined;
46
61
  }, {
47
62
  uuid: string;
48
63
  address?: string | undefined;
@@ -52,6 +67,7 @@ export declare namespace UpdateNodeCommand {
52
67
  trafficResetDay?: number | undefined;
53
68
  trafficLimitBytes?: number | undefined;
54
69
  notifyPercent?: number | undefined;
70
+ excludedInbounds?: string[] | undefined;
55
71
  }>;
56
72
  type Request = z.infer<typeof RequestSchema>;
57
73
  const ResponseSchema: z.ZodObject<{
@@ -79,6 +95,19 @@ export declare namespace UpdateNodeCommand {
79
95
  totalRam: z.ZodNullable<z.ZodString>;
80
96
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
81
97
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
98
+ excludedInbounds: z.ZodArray<z.ZodObject<{
99
+ uuid: z.ZodString;
100
+ tag: z.ZodString;
101
+ type: z.ZodString;
102
+ }, "strip", z.ZodTypeAny, {
103
+ uuid: string;
104
+ type: string;
105
+ tag: string;
106
+ }, {
107
+ uuid: string;
108
+ type: string;
109
+ tag: string;
110
+ }>, "many">;
82
111
  }, "strip", z.ZodTypeAny, {
83
112
  uuid: string;
84
113
  createdAt: Date;
@@ -103,6 +132,11 @@ export declare namespace UpdateNodeCommand {
103
132
  cpuCount: number | null;
104
133
  cpuModel: string | null;
105
134
  totalRam: string | null;
135
+ excludedInbounds: {
136
+ uuid: string;
137
+ type: string;
138
+ tag: string;
139
+ }[];
106
140
  }, {
107
141
  uuid: string;
108
142
  createdAt: string;
@@ -127,6 +161,11 @@ export declare namespace UpdateNodeCommand {
127
161
  cpuCount: number | null;
128
162
  cpuModel: string | null;
129
163
  totalRam: string | null;
164
+ excludedInbounds: {
165
+ uuid: string;
166
+ type: string;
167
+ tag: string;
168
+ }[];
130
169
  }>;
131
170
  }, "strip", z.ZodTypeAny, {
132
171
  response: {
@@ -153,6 +192,11 @@ export declare namespace UpdateNodeCommand {
153
192
  cpuCount: number | null;
154
193
  cpuModel: string | null;
155
194
  totalRam: string | null;
195
+ excludedInbounds: {
196
+ uuid: string;
197
+ type: string;
198
+ tag: string;
199
+ }[];
156
200
  };
157
201
  }, {
158
202
  response: {
@@ -179,6 +223,11 @@ export declare namespace UpdateNodeCommand {
179
223
  cpuCount: number | null;
180
224
  cpuModel: string | null;
181
225
  totalRam: string | null;
226
+ excludedInbounds: {
227
+ uuid: string;
228
+ type: string;
229
+ tag: string;
230
+ }[];
182
231
  };
183
232
  }>;
184
233
  type Response = z.infer<typeof ResponseSchema>;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoBxB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBxB,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,9 @@ var UpdateNodeCommand;
24
24
  .number()
25
25
  .min(1, 'Traffic reset day must be greater than 0')
26
26
  .max(31, 'Traffic reset day must be less than 31')),
27
+ excludedInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
28
+ invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
29
+ })),
27
30
  });
28
31
  UpdateNodeCommand.ResponseSchema = zod_1.z.object({
29
32
  response: models_1.NodesSchema,
@@ -23,6 +23,19 @@ export declare const NodesSchema: z.ZodObject<{
23
23
  totalRam: z.ZodNullable<z.ZodString>;
24
24
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
25
25
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
26
+ excludedInbounds: z.ZodArray<z.ZodObject<{
27
+ uuid: z.ZodString;
28
+ tag: z.ZodString;
29
+ type: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ uuid: string;
32
+ type: string;
33
+ tag: string;
34
+ }, {
35
+ uuid: string;
36
+ type: string;
37
+ tag: string;
38
+ }>, "many">;
26
39
  }, "strip", z.ZodTypeAny, {
27
40
  uuid: string;
28
41
  createdAt: Date;
@@ -47,6 +60,11 @@ export declare const NodesSchema: z.ZodObject<{
47
60
  cpuCount: number | null;
48
61
  cpuModel: string | null;
49
62
  totalRam: string | null;
63
+ excludedInbounds: {
64
+ uuid: string;
65
+ type: string;
66
+ tag: string;
67
+ }[];
50
68
  }, {
51
69
  uuid: string;
52
70
  createdAt: string;
@@ -71,5 +89,10 @@ export declare const NodesSchema: z.ZodObject<{
71
89
  cpuCount: number | null;
72
90
  cpuModel: string | null;
73
91
  totalRam: string | null;
92
+ excludedInbounds: {
93
+ uuid: string;
94
+ type: string;
95
+ tag: string;
96
+ }[];
74
97
  }>;
75
98
  //# sourceMappingURL=nodes.schema.d.ts.map
@@ -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;AAExB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BtB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BtB,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NodesSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const inbounds_schema_1 = require("./inbounds.schema");
5
6
  exports.NodesSchema = zod_1.z.object({
6
7
  uuid: zod_1.z.string().uuid(),
7
8
  name: zod_1.z.string(),
@@ -26,4 +27,5 @@ exports.NodesSchema = zod_1.z.object({
26
27
  totalRam: zod_1.z.nullable(zod_1.z.string()),
27
28
  createdAt: zod_1.z.string().transform((str) => new Date(str)),
28
29
  updatedAt: zod_1.z.string().transform((str) => new Date(str)),
30
+ excludedInbounds: zod_1.z.array(inbounds_schema_1.InboundsSchema),
29
31
  });
@@ -24,6 +24,9 @@ var CreateNodeCommand;
24
24
  .int()
25
25
  .min(1, 'Traffic reset day must be greater than 0')
26
26
  .max(31, 'Traffic reset day must be less than 31')),
27
+ excludedInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
28
+ invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
29
+ })),
27
30
  });
28
31
  CreateNodeCommand.ResponseSchema = zod_1.z.object({
29
32
  response: models_1.NodesSchema,
@@ -24,6 +24,9 @@ var UpdateNodeCommand;
24
24
  .number()
25
25
  .min(1, 'Traffic reset day must be greater than 0')
26
26
  .max(31, 'Traffic reset day must be less than 31')),
27
+ excludedInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
28
+ invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
29
+ })),
27
30
  });
28
31
  UpdateNodeCommand.ResponseSchema = zod_1.z.object({
29
32
  response: models_1.NodesSchema,
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NodesSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const inbounds_schema_1 = require("./inbounds.schema");
5
6
  exports.NodesSchema = zod_1.z.object({
6
7
  uuid: zod_1.z.string().uuid(),
7
8
  name: zod_1.z.string(),
@@ -26,4 +27,5 @@ exports.NodesSchema = zod_1.z.object({
26
27
  totalRam: zod_1.z.nullable(zod_1.z.string()),
27
28
  createdAt: zod_1.z.string().transform((str) => new Date(str)),
28
29
  updatedAt: zod_1.z.string().transform((str) => new Date(str)),
30
+ excludedInbounds: zod_1.z.array(inbounds_schema_1.InboundsSchema),
29
31
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "description": "A contract library for Remnawave",
5
5
  "main": "build/backend/index.js",
6
6
  "browser": "build/frontend/index.js",