@remnawave/backend-contract 2.0.0-alpha.21 → 2.0.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +106 -54
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +106 -54
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +106 -54
- package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +106 -54
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/disable.command.d.ts +105 -71
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +105 -71
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +158 -98
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +123 -77
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +6 -4
- package/build/backend/commands/nodes/get-all.command.d.ts +105 -71
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +105 -71
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.d.ts +176 -104
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +8 -4
- package/build/backend/models/infra-billing-available-node.schema.d.ts +53 -27
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -1
- package/build/backend/models/infra-billing-node.schema.d.ts +53 -27
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.d.ts +79 -49
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +4 -2
- package/build/frontend/commands/nodes/create.command.js +6 -4
- package/build/frontend/commands/nodes/update.command.js +8 -4
- package/build/frontend/models/nodes.schema.js +4 -2
- package/package.json +1 -1
@@ -27,35 +27,61 @@ export declare const NodesSchema: z.ZodObject<{
|
|
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
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
30
|
+
configProfile: z.ZodObject<{
|
31
|
+
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
32
|
+
activeInbounds: z.ZodArray<z.ZodObject<{
|
33
|
+
uuid: z.ZodString;
|
34
|
+
profileUuid: z.ZodString;
|
35
|
+
tag: z.ZodString;
|
36
|
+
type: z.ZodString;
|
37
|
+
network: z.ZodNullable<z.ZodString>;
|
38
|
+
security: z.ZodNullable<z.ZodString>;
|
39
|
+
port: z.ZodNullable<z.ZodNumber>;
|
40
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
42
|
+
type: string;
|
43
|
+
uuid: string;
|
44
|
+
profileUuid: string;
|
45
|
+
tag: string;
|
46
|
+
network: string | null;
|
47
|
+
security: string | null;
|
48
|
+
port: number | null;
|
49
|
+
rawInbound?: unknown;
|
50
|
+
}, {
|
51
|
+
type: string;
|
52
|
+
uuid: string;
|
53
|
+
profileUuid: string;
|
54
|
+
tag: string;
|
55
|
+
network: string | null;
|
56
|
+
security: string | null;
|
57
|
+
port: number | null;
|
58
|
+
rawInbound?: unknown;
|
59
|
+
}>, "many">;
|
40
60
|
}, "strip", z.ZodTypeAny, {
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
61
|
+
activeConfigProfileUuid: string | null;
|
62
|
+
activeInbounds: {
|
63
|
+
type: string;
|
64
|
+
uuid: string;
|
65
|
+
profileUuid: string;
|
66
|
+
tag: string;
|
67
|
+
network: string | null;
|
68
|
+
security: string | null;
|
69
|
+
port: number | null;
|
70
|
+
rawInbound?: unknown;
|
71
|
+
}[];
|
49
72
|
}, {
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
73
|
+
activeConfigProfileUuid: string | null;
|
74
|
+
activeInbounds: {
|
75
|
+
type: string;
|
76
|
+
uuid: string;
|
77
|
+
profileUuid: string;
|
78
|
+
tag: string;
|
79
|
+
network: string | null;
|
80
|
+
security: string | null;
|
81
|
+
port: number | null;
|
82
|
+
rawInbound?: unknown;
|
83
|
+
}[];
|
84
|
+
}>;
|
59
85
|
providerUuid: z.ZodNullable<z.ZodString>;
|
60
86
|
provider: z.ZodNullable<z.ZodObject<{
|
61
87
|
uuid: z.ZodString;
|
@@ -107,17 +133,19 @@ export declare const NodesSchema: z.ZodObject<{
|
|
107
133
|
cpuCount: number | null;
|
108
134
|
cpuModel: string | null;
|
109
135
|
totalRam: string | null;
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
136
|
+
configProfile: {
|
137
|
+
activeConfigProfileUuid: string | null;
|
138
|
+
activeInbounds: {
|
139
|
+
type: string;
|
140
|
+
uuid: string;
|
141
|
+
profileUuid: string;
|
142
|
+
tag: string;
|
143
|
+
network: string | null;
|
144
|
+
security: string | null;
|
145
|
+
port: number | null;
|
146
|
+
rawInbound?: unknown;
|
147
|
+
}[];
|
148
|
+
};
|
121
149
|
providerUuid: string | null;
|
122
150
|
provider: {
|
123
151
|
uuid: string;
|
@@ -155,17 +183,19 @@ export declare const NodesSchema: z.ZodObject<{
|
|
155
183
|
cpuCount: number | null;
|
156
184
|
cpuModel: string | null;
|
157
185
|
totalRam: string | null;
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
186
|
+
configProfile: {
|
187
|
+
activeConfigProfileUuid: string | null;
|
188
|
+
activeInbounds: {
|
189
|
+
type: string;
|
190
|
+
uuid: string;
|
191
|
+
profileUuid: string;
|
192
|
+
tag: string;
|
193
|
+
network: string | null;
|
194
|
+
security: string | null;
|
195
|
+
port: number | null;
|
196
|
+
rawInbound?: unknown;
|
197
|
+
}[];
|
198
|
+
};
|
169
199
|
providerUuid: string | null;
|
170
200
|
provider: {
|
171
201
|
uuid: string;
|
@@ -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;AAKxB,eAAO,MAAM,WAAW
|
1
|
+
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkDtB,CAAC"}
|
@@ -41,8 +41,10 @@ exports.NodesSchema = zod_1.z.object({
|
|
41
41
|
.string()
|
42
42
|
.datetime()
|
43
43
|
.transform((str) => new Date(str)),
|
44
|
-
|
45
|
-
|
44
|
+
configProfile: zod_1.z.object({
|
45
|
+
activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
46
|
+
activeInbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
|
47
|
+
}),
|
46
48
|
providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
47
49
|
provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
|
48
50
|
});
|
@@ -35,10 +35,12 @@ var CreateNodeCommand;
|
|
35
35
|
.number()
|
36
36
|
.min(0.1, 'Consumption multiplier must be greater than 0')
|
37
37
|
.transform((n) => Number(n.toFixed(1)))),
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
38
|
+
configProfile: zod_1.z.object({
|
39
|
+
activeConfigProfileUuid: zod_1.z.string().uuid(),
|
40
|
+
activeInbounds: zod_1.z.array(zod_1.z.string().uuid(), {
|
41
|
+
invalid_type_error: 'Config profile inbound UUID must be an array of UUIDs',
|
42
|
+
}),
|
43
|
+
}),
|
42
44
|
providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
|
43
45
|
});
|
44
46
|
CreateNodeCommand.ResponseSchema = zod_1.z.object({
|
@@ -31,10 +31,14 @@ var UpdateNodeCommand;
|
|
31
31
|
.number()
|
32
32
|
.min(0.1, 'Consumption multiplier must be greater than 0')
|
33
33
|
.transform((n) => Number(n.toFixed(1)))),
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
34
|
+
configProfile: zod_1.z
|
35
|
+
.object({
|
36
|
+
activeConfigProfileUuid: zod_1.z.string().uuid(),
|
37
|
+
activeInbounds: zod_1.z.array(zod_1.z.string().uuid(), {
|
38
|
+
invalid_type_error: 'Must be an array of UUIDs',
|
39
|
+
}),
|
40
|
+
})
|
41
|
+
.optional(),
|
38
42
|
providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
|
39
43
|
});
|
40
44
|
UpdateNodeCommand.ResponseSchema = zod_1.z.object({
|
@@ -41,8 +41,10 @@ exports.NodesSchema = zod_1.z.object({
|
|
41
41
|
.string()
|
42
42
|
.datetime()
|
43
43
|
.transform((str) => new Date(str)),
|
44
|
-
|
45
|
-
|
44
|
+
configProfile: zod_1.z.object({
|
45
|
+
activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
46
|
+
activeInbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
|
47
|
+
}),
|
46
48
|
providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
47
49
|
provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
|
48
50
|
});
|
package/package.json
CHANGED