masto
Version:
Mastodon API client for JavaScript, TypeScript, Node.js, browsers
19 lines (18 loc) • 606 B
TypeScript
export interface DomainBlockSeverityRegistry {
silence: never;
suspend: never;
}
export type DomainBlockSeverity = keyof DomainBlockSeverityRegistry;
/**
* Represents a domain that is blocked by the instance.
*/
export interface DomainBlock {
/** The domain which is blocked. This may be obfuscated or partially censored. */
domain: string;
/** The SHA256 hash digest of the domain string. */
digest: string;
/** The level to which the domain is blocked. */
severity: DomainBlockSeverity;
/** An optional reason for the domain block. */
comment?: string | null;
}