@gguf/claw
Version:
Multi-channel AI gateway with extensible messaging integrations
33 lines (32 loc) • 1.23 kB
TypeScript
/**
* Signal reactions via signal-cli JSON-RPC API
*/
export type SignalReactionOpts = {
baseUrl?: string;
account?: string;
accountId?: string;
timeoutMs?: number;
targetAuthor?: string;
targetAuthorUuid?: string;
groupId?: string;
};
export type SignalReactionResult = {
ok: boolean;
timestamp?: number;
};
/**
* Send a Signal reaction to a message
* @param recipient - UUID or E.164 phone number of the message author
* @param targetTimestamp - Message ID (timestamp) to react to
* @param emoji - Emoji to react with
* @param opts - Optional account/connection overrides
*/
export declare function sendReactionSignal(recipient: string, targetTimestamp: number, emoji: string, opts?: SignalReactionOpts): Promise<SignalReactionResult>;
/**
* Remove a Signal reaction from a message
* @param recipient - UUID or E.164 phone number of the message author
* @param targetTimestamp - Message ID (timestamp) to remove reaction from
* @param emoji - Emoji to remove
* @param opts - Optional account/connection overrides
*/
export declare function removeReactionSignal(recipient: string, targetTimestamp: number, emoji: string, opts?: SignalReactionOpts): Promise<SignalReactionResult>;