mirror of
https://github.com/remnawave/node.git
synced 2026-08-28 12:41:25 +00:00
Some checks failed
Build & Push Docker Image / Send TG message (push) Has been cancelled
Build & Push Docker Image / Build linux/amd64 (push) Has been cancelled
Build & Push Docker Image / Build linux/arm64 (push) Has been cancelled
Deploy lib / Send Telegram message (push) Has been cancelled
Deploy lib / build (push) Has been cancelled
Build & Push Docker Image / Merge & push manifest (push) Has been cancelled
Build & Push Docker Image / Send TG message-1 (push) Has been cancelled
Build & Push Docker Image / notify-on-error (push) Has been cancelled
Deploy lib / Send Telegram message-1 (push) Has been cancelled
Deploy lib / notify-on-error (push) Has been cancelled
26 lines
648 B
TypeScript
26 lines
648 B
TypeScript
import { z } from 'zod';
|
|
|
|
import { REST_API } from '../../api';
|
|
|
|
export namespace SyncCommand {
|
|
export const url = REST_API.PLUGIN.SYNC;
|
|
export const RequestSchema = z.object({
|
|
plugin: z
|
|
.object({
|
|
config: z.record(z.string(), z.unknown()),
|
|
uuid: z.uuid(),
|
|
name: z.string(),
|
|
})
|
|
.nullable(),
|
|
});
|
|
|
|
export type Request = z.infer<typeof RequestSchema>;
|
|
|
|
export const ResponseSchema = z.object({
|
|
response: z.object({
|
|
accepted: z.boolean(),
|
|
}),
|
|
});
|
|
|
|
export type Response = z.infer<typeof ResponseSchema>;
|
|
}
|