bigbuffet-rw/packages/pl-api/lib/entities/admin/ip.ts
marcin mikołajczak b357261ff2 pl-api: Update docs
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-11-29 15:52:33 +01:00

22 lines
405 B
TypeScript

import * as v from 'valibot';
import { datetimeSchema } from '../utils';
/**
* @category Admin schemas
* @see {@link https://docs.joinmastodon.org/entities/Admin_Ip/}
*/
const adminIpSchema = v.object({
ip: v.pipe(v.string(), v.ip()),
used_at: datetimeSchema,
});
/**
* @category Admin types
*/
type AdminIp = v.InferOutput<typeof adminIpSchema>;
export {
adminIpSchema,
type AdminIp,
};