stanza-extend
Version:
Modern XMPP in the browser, with a JSON API
26 lines (25 loc) • 654 B
TypeScript
import { DefinitionOptions } from '../jxt';
declare module './' {
interface IQPayload {
privacy?: PrivacyList;
}
}
export interface PrivacyList {
activeList?: string;
defaultList?: string;
lists?: Array<{
name: string;
items: Array<{
type?: 'jid' | 'group' | 'subscription';
value?: string;
action: 'allow' | 'deny';
order: number;
messages?: boolean;
incomingPresence?: boolean;
outgoingPresence?: boolean;
iq?: boolean;
}>;
}>;
}
declare const Protocol: DefinitionOptions[];
export default Protocol;