mirror of
https://github.com/remnawave/node.git
synced 2026-10-22 02:41:19 +00:00
21 lines
523 B
TypeScript
21 lines
523 B
TypeScript
import { z } from 'zod';
|
|
|
|
import { REST_API } from '../../api';
|
|
|
|
export namespace DropUsersConnectionsCommand {
|
|
export const url = REST_API.HANDLER.DROP_USERS_CONNECTIONS;
|
|
|
|
export const RequestSchema = z.object({
|
|
userIds: z.array(z.string()).min(1),
|
|
});
|
|
|
|
export type Request = z.infer<typeof RequestSchema>;
|
|
|
|
export const ResponseSchema = z.object({
|
|
response: z.object({
|
|
success: z.boolean(),
|
|
}),
|
|
});
|
|
|
|
export type Response = z.infer<typeof ResponseSchema>;
|
|
}
|