UNPKG

@oneclick.dev/sdk

Version:

The OneClick Studio SDK

21 lines (20 loc) 586 B
import type { NotifyOptions } from '../types'; declare class NotifyClient { private endpoint; private key; private project; constructor(config: { endpoint: string; key: string; project: string; }); /** * Sends a notification to a user. * * @param title The title of the notification * @param message The message of the notification * @param userId The ID of the user to receive the notification (optional) */ send({ title, message, userId }: NotifyOptions): Promise<void>; } export default NotifyClient;