// runtime/subsystems/events/generated/schemas.ts
import { z } from "zod";
var contactCreatedPayloadSchema = z.object({
  accountId: z.string().uuid().nullable(),
  contactId: z.string().uuid(),
  createdBy: z.string().uuid()
}).strict();
var contactMarkedChampionPayloadSchema = z.object({
  contactId: z.string().uuid(),
  opportunityId: z.string().uuid()
}).strict();
var contactMergedPayloadSchema = z.object({
  mergedBy: z.string().uuid(),
  sourceId: z.string().uuid(),
  targetId: z.string().uuid()
}).strict();
var crmSyncStartedPayloadSchema = z.object({
  runId: z.string().uuid(),
  source: z.string()
}).strict();
var dealCreatedPayloadSchema = z.object({
  accountId: z.string().uuid(),
  dealId: z.string().uuid(),
  ownerId: z.string().uuid()
}).strict();
var dealStageChangedPayloadSchema = z.object({
  dealId: z.string().uuid(),
  newStage: z.string(),
  oldStage: z.string()
}).strict();
var stripePaymentReceivedPayloadSchema = z.object({
  amountCents: z.number(),
  currency: z.string(),
  customerId: z.string(),
  eventId: z.string(),
  receivedAt: z.coerce.date()
}).strict();
var webhookOutboundContactSyncPayloadSchema = z.object({
  contactId: z.string().uuid(),
  occurredAt: z.coerce.date(),
  operation: z.string()
}).strict();
var eventPayloadSchemas = {
  "contact_created": contactCreatedPayloadSchema,
  "contact_marked_champion": contactMarkedChampionPayloadSchema,
  "contact_merged": contactMergedPayloadSchema,
  "crm_sync_started": crmSyncStartedPayloadSchema,
  "deal_created": dealCreatedPayloadSchema,
  "deal_stage_changed": dealStageChangedPayloadSchema,
  "stripe_payment_received": stripePaymentReceivedPayloadSchema,
  "webhook_outbound_contact_sync": webhookOutboundContactSyncPayloadSchema
};

export {
  contactCreatedPayloadSchema,
  contactMarkedChampionPayloadSchema,
  contactMergedPayloadSchema,
  crmSyncStartedPayloadSchema,
  dealCreatedPayloadSchema,
  dealStageChangedPayloadSchema,
  stripePaymentReceivedPayloadSchema,
  webhookOutboundContactSyncPayloadSchema,
  eventPayloadSchemas
};
//# sourceMappingURL=chunk-JRQO2IOF.js.map