@remnawave/backend-contract 0.0.30 → 0.0.31
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/commands/xray/index.js +1 -0
- package/build/commands/xray/update-config.command.js +15 -0
- package/build/constants/errors/errors.js +5 -0
- package/commands/xray/index.ts +1 -0
- package/commands/xray/update-config.command.ts +18 -0
- package/constants/errors/errors.ts +5 -0
- package/package.json +1 -1
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UpdateXrayConfigCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
var UpdateXrayConfigCommand;
|
7
|
+
(function (UpdateXrayConfigCommand) {
|
8
|
+
UpdateXrayConfigCommand.url = api_1.REST_API.XRAY.UPDATE_CONFIG;
|
9
|
+
UpdateXrayConfigCommand.RequestSchema = zod_1.z.record(zod_1.z.any());
|
10
|
+
UpdateXrayConfigCommand.ResponseSchema = zod_1.z.object({
|
11
|
+
response: zod_1.z.object({
|
12
|
+
config: zod_1.z.record(zod_1.z.any()),
|
13
|
+
}),
|
14
|
+
});
|
15
|
+
})(UpdateXrayConfigCommand || (exports.UpdateXrayConfigCommand = UpdateXrayConfigCommand = {}));
|
package/commands/xray/index.ts
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { REST_API } from '../../api';
|
3
|
+
|
4
|
+
export namespace UpdateXrayConfigCommand {
|
5
|
+
export const url = REST_API.XRAY.UPDATE_CONFIG;
|
6
|
+
|
7
|
+
export const RequestSchema = z.record(z.any());
|
8
|
+
|
9
|
+
export type Request = z.infer<typeof RequestSchema>;
|
10
|
+
|
11
|
+
export const ResponseSchema = z.object({
|
12
|
+
response: z.object({
|
13
|
+
config: z.record(z.any()),
|
14
|
+
}),
|
15
|
+
});
|
16
|
+
|
17
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
18
|
+
}
|