Remnawave_Node/libs/contract/commands/stats/get-users-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

29 lines
903 B
TypeScript

import { z } from 'zod';
import { REST_API } from '../../api';
export namespace GetUsersIpListCommand {
export const url = REST_API.STATS.GET_USERS_IP_LIST;
export const ResponseSchema = z.object({
response: z.object({
users: z.array(
z.object({
userId: z.string(),
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>;
}