@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
16 lines (15 loc) • 642 B
TypeScript
export type AllowlistMatchSource = "wildcard" | "id" | "name" | "tag" | "username" | "prefixed-id" | "prefixed-user" | "prefixed-name" | "slug" | "localpart";
export type AllowlistMatch<TSource extends string = AllowlistMatchSource> = {
allowed: boolean;
matchKey?: string;
matchSource?: TSource;
};
export declare function formatAllowlistMatchMeta(match?: {
matchKey?: string;
matchSource?: string;
} | null): string;
export declare function resolveAllowlistMatchSimple(params: {
allowFrom: Array<string | number>;
senderId: string;
senderName?: string | null;
}): AllowlistMatch<"wildcard" | "id" | "name">;