@remnawave/backend-contract
Advanced tools
Comparing version 0.1.14 to 0.1.15
@@ -91,3 +91,2 @@ "use strict"; | ||
.string({ | ||
required_error: 'Expiration date is required', | ||
invalid_type_error: 'Invalid date format', | ||
@@ -101,3 +100,2 @@ }) | ||
.string({ | ||
required_error: 'Expiration date is required', | ||
invalid_type_error: 'Invalid date format', | ||
@@ -104,0 +102,0 @@ }) |
@@ -7,15 +7,15 @@ import { z } from 'zod'; | ||
response: z.ZodObject<{ | ||
config: z.ZodRecord<z.ZodString, z.ZodAny>; | ||
config: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; | ||
}, "strip", z.ZodTypeAny, { | ||
config: Record<string, any>; | ||
config: {}; | ||
}, { | ||
config: Record<string, any>; | ||
config: {}; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
response: { | ||
config: Record<string, any>; | ||
config: {}; | ||
}; | ||
}, { | ||
response: { | ||
config: Record<string, any>; | ||
config: {}; | ||
}; | ||
@@ -22,0 +22,0 @@ }>; |
@@ -12,5 +12,5 @@ "use strict"; | ||
response: zod_1.z.object({ | ||
config: zod_1.z.record(zod_1.z.any()), | ||
config: zod_1.z.object({}), | ||
}), | ||
}); | ||
})(GetXrayConfigCommand || (exports.GetXrayConfigCommand = GetXrayConfigCommand = {})); |
@@ -5,19 +5,19 @@ import { z } from 'zod'; | ||
const TSQ_url: "/api/xray/update-config"; | ||
const RequestSchema: z.ZodRecord<z.ZodString, z.ZodAny>; | ||
const RequestSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; | ||
type Request = z.infer<typeof RequestSchema>; | ||
const ResponseSchema: z.ZodObject<{ | ||
response: z.ZodObject<{ | ||
config: z.ZodRecord<z.ZodString, z.ZodAny>; | ||
config: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; | ||
}, "strip", z.ZodTypeAny, { | ||
config: Record<string, any>; | ||
config: {}; | ||
}, { | ||
config: Record<string, any>; | ||
config: {}; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
response: { | ||
config: Record<string, any>; | ||
config: {}; | ||
}; | ||
}, { | ||
response: { | ||
config: Record<string, any>; | ||
config: {}; | ||
}; | ||
@@ -24,0 +24,0 @@ }>; |
@@ -10,8 +10,8 @@ "use strict"; | ||
UpdateXrayConfigCommand.TSQ_url = UpdateXrayConfigCommand.url; | ||
UpdateXrayConfigCommand.RequestSchema = zod_1.z.record(zod_1.z.any()); | ||
UpdateXrayConfigCommand.RequestSchema = zod_1.z.object({}); | ||
UpdateXrayConfigCommand.ResponseSchema = zod_1.z.object({ | ||
response: zod_1.z.object({ | ||
config: zod_1.z.record(zod_1.z.any()), | ||
config: zod_1.z.object({}), | ||
}), | ||
}); | ||
})(UpdateXrayConfigCommand || (exports.UpdateXrayConfigCommand = UpdateXrayConfigCommand = {})); |
@@ -91,3 +91,2 @@ "use strict"; | ||
.string({ | ||
required_error: 'Expiration date is required', | ||
invalid_type_error: 'Invalid date format', | ||
@@ -101,3 +100,2 @@ }) | ||
.string({ | ||
required_error: 'Expiration date is required', | ||
invalid_type_error: 'Invalid date format', | ||
@@ -104,0 +102,0 @@ }) |
@@ -12,5 +12,5 @@ "use strict"; | ||
response: zod_1.z.object({ | ||
config: zod_1.z.record(zod_1.z.any()), | ||
config: zod_1.z.object({}), | ||
}), | ||
}); | ||
})(GetXrayConfigCommand || (exports.GetXrayConfigCommand = GetXrayConfigCommand = {})); |
@@ -10,8 +10,8 @@ "use strict"; | ||
UpdateXrayConfigCommand.TSQ_url = UpdateXrayConfigCommand.url; | ||
UpdateXrayConfigCommand.RequestSchema = zod_1.z.record(zod_1.z.any()); | ||
UpdateXrayConfigCommand.RequestSchema = zod_1.z.object({}); | ||
UpdateXrayConfigCommand.ResponseSchema = zod_1.z.object({ | ||
response: zod_1.z.object({ | ||
config: zod_1.z.record(zod_1.z.any()), | ||
config: zod_1.z.object({}), | ||
}), | ||
}); | ||
})(UpdateXrayConfigCommand || (exports.UpdateXrayConfigCommand = UpdateXrayConfigCommand = {})); |
{ | ||
"name": "@remnawave/backend-contract", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"public": true, | ||
@@ -5,0 +5,0 @@ "license": "AGPL-3.0-only", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
480001
11504