Remnawave_Node/libs/contract/commands/stats/get-user-ip-list.command.ts
kastov 9cd01fce62
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
chore: upgrade zod
2026-07-04 17:38:39 +03:00

27 lines
741 B
TypeScript

import { z } from 'zod';
import { REST_API } from '../../api';
export namespace GetUserIpListCommand {
export const url = REST_API.STATS.GET_USER_IP_LIST;
export const RequestSchema = z.object({
userId: z.string(),
});
export type Request = z.infer<typeof RequestSchema>;
export const ResponseSchema = z.object({
response: z.object({
ips: z.array(
z.object({
ip: z.string(),
lastSeen: z.iso
.datetime({ local: true, offset: true })
.transform((str) => new Date(str)),
}),
),
}),
});
export type Response = z.infer<typeof ResponseSchema>;
}