import { z } from 'zod';
import type { OutboxHandler } from '../types.js';

const payloadSchema = z.object({
  userId: z.string().optional(),
});

type Payload = z.infer<typeof payloadSchema>;

export const buyerUnsubscribed: OutboxHandler<Payload> = {
  type: 'buyer.unsubscribed',
  payloadSchema,
  async handle(_ctx, _payload, _event) {},
};
