@remnawave/backend-contract 2.0.0-alpha.20 → 2.0.0-alpha.22
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/hosts/bulk/delete-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +26 -10
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +44 -19
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +7 -13
- package/build/backend/commands/hosts/get-all.command.d.ts +26 -10
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +26 -10
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +10 -2
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +54 -21
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +4 -11
- 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/hosts.schema.d.ts +18 -6
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +4 -2
- 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/hosts/create.command.js +7 -13
- package/build/frontend/commands/hosts/update.command.js +4 -11
- package/build/frontend/commands/nodes/create.command.js +6 -4
- package/build/frontend/commands/nodes/update.command.js +8 -4
- package/build/frontend/models/hosts.schema.js +4 -2
- package/build/frontend/models/nodes.schema.js +4 -2
- package/package.json +1 -1
@@ -26,35 +26,61 @@ export declare const InfraBillingAvailableNodeSchema: import("zod").ZodObject<Pi
|
|
26
26
|
totalRam: import("zod").ZodNullable<import("zod").ZodString>;
|
27
27
|
createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
28
28
|
updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
29
|
+
configProfile: import("zod").ZodObject<{
|
30
|
+
activeConfigProfileUuid: import("zod").ZodNullable<import("zod").ZodString>;
|
31
|
+
activeInbounds: import("zod").ZodArray<import("zod").ZodObject<{
|
32
|
+
uuid: import("zod").ZodString;
|
33
|
+
profileUuid: import("zod").ZodString;
|
34
|
+
tag: import("zod").ZodString;
|
35
|
+
type: import("zod").ZodString;
|
36
|
+
network: import("zod").ZodNullable<import("zod").ZodString>;
|
37
|
+
security: import("zod").ZodNullable<import("zod").ZodString>;
|
38
|
+
port: import("zod").ZodNullable<import("zod").ZodNumber>;
|
39
|
+
rawInbound: import("zod").ZodNullable<import("zod").ZodUnknown>;
|
40
|
+
}, "strip", import("zod").ZodTypeAny, {
|
41
|
+
type: string;
|
42
|
+
uuid: string;
|
43
|
+
profileUuid: string;
|
44
|
+
tag: string;
|
45
|
+
network: string | null;
|
46
|
+
security: string | null;
|
47
|
+
port: number | null;
|
48
|
+
rawInbound?: unknown;
|
49
|
+
}, {
|
50
|
+
type: string;
|
51
|
+
uuid: string;
|
52
|
+
profileUuid: string;
|
53
|
+
tag: string;
|
54
|
+
network: string | null;
|
55
|
+
security: string | null;
|
56
|
+
port: number | null;
|
57
|
+
rawInbound?: unknown;
|
58
|
+
}>, "many">;
|
39
59
|
}, "strip", import("zod").ZodTypeAny, {
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
60
|
+
activeConfigProfileUuid: string | null;
|
61
|
+
activeInbounds: {
|
62
|
+
type: string;
|
63
|
+
uuid: string;
|
64
|
+
profileUuid: string;
|
65
|
+
tag: string;
|
66
|
+
network: string | null;
|
67
|
+
security: string | null;
|
68
|
+
port: number | null;
|
69
|
+
rawInbound?: unknown;
|
70
|
+
}[];
|
48
71
|
}, {
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
72
|
+
activeConfigProfileUuid: string | null;
|
73
|
+
activeInbounds: {
|
74
|
+
type: string;
|
75
|
+
uuid: string;
|
76
|
+
profileUuid: string;
|
77
|
+
tag: string;
|
78
|
+
network: string | null;
|
79
|
+
security: string | null;
|
80
|
+
port: number | null;
|
81
|
+
rawInbound?: unknown;
|
82
|
+
}[];
|
83
|
+
}>;
|
58
84
|
providerUuid: import("zod").ZodNullable<import("zod").ZodString>;
|
59
85
|
provider: import("zod").ZodNullable<import("zod").ZodObject<{
|
60
86
|
uuid: import("zod").ZodString;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"infra-billing-available-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-available-node.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B
|
1
|
+
{"version":3,"file":"infra-billing-available-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-available-node.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1C,CAAC"}
|
@@ -49,35 +49,61 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
|
|
49
49
|
totalRam: z.ZodNullable<z.ZodString>;
|
50
50
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
51
51
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
52
|
+
configProfile: z.ZodObject<{
|
53
|
+
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
54
|
+
activeInbounds: z.ZodArray<z.ZodObject<{
|
55
|
+
uuid: z.ZodString;
|
56
|
+
profileUuid: z.ZodString;
|
57
|
+
tag: z.ZodString;
|
58
|
+
type: z.ZodString;
|
59
|
+
network: z.ZodNullable<z.ZodString>;
|
60
|
+
security: z.ZodNullable<z.ZodString>;
|
61
|
+
port: z.ZodNullable<z.ZodNumber>;
|
62
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
64
|
+
type: string;
|
65
|
+
uuid: string;
|
66
|
+
profileUuid: string;
|
67
|
+
tag: string;
|
68
|
+
network: string | null;
|
69
|
+
security: string | null;
|
70
|
+
port: number | null;
|
71
|
+
rawInbound?: unknown;
|
72
|
+
}, {
|
73
|
+
type: string;
|
74
|
+
uuid: string;
|
75
|
+
profileUuid: string;
|
76
|
+
tag: string;
|
77
|
+
network: string | null;
|
78
|
+
security: string | null;
|
79
|
+
port: number | null;
|
80
|
+
rawInbound?: unknown;
|
81
|
+
}>, "many">;
|
62
82
|
}, "strip", z.ZodTypeAny, {
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
83
|
+
activeConfigProfileUuid: string | null;
|
84
|
+
activeInbounds: {
|
85
|
+
type: string;
|
86
|
+
uuid: string;
|
87
|
+
profileUuid: string;
|
88
|
+
tag: string;
|
89
|
+
network: string | null;
|
90
|
+
security: string | null;
|
91
|
+
port: number | null;
|
92
|
+
rawInbound?: unknown;
|
93
|
+
}[];
|
71
94
|
}, {
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
95
|
+
activeConfigProfileUuid: string | null;
|
96
|
+
activeInbounds: {
|
97
|
+
type: string;
|
98
|
+
uuid: string;
|
99
|
+
profileUuid: string;
|
100
|
+
tag: string;
|
101
|
+
network: string | null;
|
102
|
+
security: string | null;
|
103
|
+
port: number | null;
|
104
|
+
rawInbound?: unknown;
|
105
|
+
}[];
|
106
|
+
}>;
|
81
107
|
providerUuid: z.ZodNullable<z.ZodString>;
|
82
108
|
provider: z.ZodNullable<z.ZodObject<{
|
83
109
|
uuid: z.ZodString;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"infra-billing-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB
|
1
|
+
{"version":3,"file":"infra-billing-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BjC,CAAC"}
|
@@ -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
|
});
|
@@ -11,21 +11,16 @@ var CreateHostCommand;
|
|
11
11
|
CreateHostCommand.TSQ_url = CreateHostCommand.url;
|
12
12
|
CreateHostCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.CREATE, 'post', 'Create a new host');
|
13
13
|
CreateHostCommand.RequestSchema = zod_1.z.object({
|
14
|
-
|
15
|
-
.string(
|
16
|
-
|
17
|
-
})
|
18
|
-
.uuid('Config Profile UUID must be a valid UUID')
|
19
|
-
.optional(),
|
20
|
-
configProfileInboundUuid: zod_1.z
|
21
|
-
.string({
|
22
|
-
invalid_type_error: 'Inbound UUID must be a string',
|
23
|
-
})
|
24
|
-
.uuid('Inbound UUID must be a valid UUID')
|
25
|
-
.optional(),
|
14
|
+
inbound: zod_1.z.object({
|
15
|
+
configProfileUuid: zod_1.z.string().uuid(),
|
16
|
+
configProfileInboundUuid: zod_1.z.string().uuid(),
|
17
|
+
}),
|
26
18
|
remark: zod_1.z
|
27
19
|
.string({
|
28
20
|
invalid_type_error: 'Remark must be a string',
|
21
|
+
})
|
22
|
+
.min(1, {
|
23
|
+
message: 'Remark must be at least 1 character',
|
29
24
|
})
|
30
25
|
.max(40, {
|
31
26
|
message: 'Remark must be less than 40 characters',
|
@@ -43,7 +38,6 @@ var CreateHostCommand;
|
|
43
38
|
host: zod_1.z.string().optional(),
|
44
39
|
alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
|
45
40
|
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
|
46
|
-
allowInsecure: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
47
41
|
isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
48
42
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS).default(constants_1.SECURITY_LAYERS.DEFAULT)),
|
49
43
|
xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
@@ -13,17 +13,11 @@ var UpdateHostCommand;
|
|
13
13
|
UpdateHostCommand.RequestSchema = models_1.HostsSchema.pick({
|
14
14
|
uuid: true,
|
15
15
|
}).extend({
|
16
|
-
|
17
|
-
.
|
18
|
-
|
19
|
-
|
20
|
-
.uuid('Config Profile UUID must be a valid UUID')
|
21
|
-
.optional(),
|
22
|
-
configProfileInboundUuid: zod_1.z
|
23
|
-
.string({
|
24
|
-
invalid_type_error: 'Inbound UUID must be a string',
|
16
|
+
inbound: zod_1.z
|
17
|
+
.object({
|
18
|
+
configProfileUuid: zod_1.z.string().uuid(),
|
19
|
+
configProfileInboundUuid: zod_1.z.string().uuid(),
|
25
20
|
})
|
26
|
-
.uuid('Inbound UUID must be a valid UUID')
|
27
21
|
.optional(),
|
28
22
|
remark: zod_1.z
|
29
23
|
.string({
|
@@ -49,7 +43,6 @@ var UpdateHostCommand;
|
|
49
43
|
host: zod_1.z.optional(zod_1.z.string()),
|
50
44
|
alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
|
51
45
|
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
|
52
|
-
allowInsecure: zod_1.z.optional(zod_1.z.boolean()),
|
53
46
|
isDisabled: zod_1.z.optional(zod_1.z.boolean()),
|
54
47
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS)),
|
55
48
|
xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
@@ -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({
|
@@ -17,6 +17,8 @@ exports.HostsSchema = zod_1.z.object({
|
|
17
17
|
isDisabled: zod_1.z.boolean().default(false),
|
18
18
|
securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
|
19
19
|
xHttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
|
20
|
-
|
21
|
-
|
20
|
+
inbound: zod_1.z.object({
|
21
|
+
configProfileUuid: zod_1.z.string().uuid().nullable(),
|
22
|
+
configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
|
23
|
+
}),
|
22
24
|
});
|
@@ -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