/** * #pushnotif_msg.ts * * Code generated by ts-proto. DO NOT EDIT. * @packageDocumentation */ /** Request to queue a push notification for a user */ export type EnqueueRequest = { /** The title of the push notification (mustache template supported) */ title: string; /** The body text of the push notification (mustache template supported) */ body: string; /** List of recipients to send the notification to */ recipients: Recipient[]; }; /** Response from queuing multiple push notifications */ export type EnqueueResponse = { /** Number of notifications successfully queued */ successCount: number; /** Number of notifications that failed to queue */ failureCount: number; /** Array of errors for notifications that failed to queue */ errors: EnqueueError[]; /** Unix timestamp when the bulk operation was performed */ timestamp: number; }; export type Recipient = { /** The Reddit user ID to send the notification to (e.g. "t2_abc123") */ userId: string; /** The fullname of a comment (e.g., "t1_abc123") */ comment?: string | undefined; /** The fullname of a post (e.g., "t3_abc123") */ post?: string | undefined; /** Additional data to include with the notification's mustache template */ data?: { [key: string]: any; } | undefined; }; export type EnqueueError = { /** The Reddit user ID for which the notification failed to queue (e.g. "t2_abc123") */ userId: string; /** Error message describing why the notification failed to queue */ message: string; }; //# sourceMappingURL=pushnotif_msg.d.ts.map