masto
Version:
Mastodon API client for JavaScript, TypeScript, Node.js, browsers
21 lines (20 loc) • 663 B
TypeScript
export interface IpBlockSeverityRegistry {
sign_up_requires_approval: never;
sign_up_block: never;
no_access: never;
}
export type IpBlockSeverity = keyof IpBlockSeverityRegistry;
export interface IpBlock {
/** The ID of the domain allow in the database. */
id: string;
/** The IP address and prefix to block. */
ip: string;
/** The policy to apply to this IP range. */
severity: IpBlockSeverity;
/** The reason for this IP block. */
comment: string;
/** The create date of the ip block. */
createdAt: string;
/** The number of seconds in which this IP block will expire. */
expiresAt: number | null;
}