mirror of
https://github.com/remnawave/node.git
synced 2026-10-21 10:20:51 +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
29 lines
903 B
TypeScript
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>;
|
|
}
|