// runtime/subsystems/events/generated/registry.ts
var eventRegistry = {
  "contact_created": {
    type: "contact_created",
    tier: "domain",
    direction: "change",
    pool: "events_change",
    aggregate: "contact",
    version: 1,
    retry: { attempts: 3, backoff: "exponential" }
  },
  "contact_marked_champion": {
    type: "contact_marked_champion",
    tier: "domain",
    direction: "change",
    pool: "events_change",
    aggregate: "contact",
    version: 1,
    retry: { attempts: 3, backoff: "exponential" }
  },
  "contact_merged": {
    type: "contact_merged",
    tier: "domain",
    direction: "change",
    pool: "events_change",
    aggregate: "contact",
    version: 1,
    retry: { attempts: 3, backoff: "exponential" }
  },
  "crm_sync_started": {
    type: "crm_sync_started",
    tier: "audit",
    direction: null,
    pool: null,
    version: 1,
    retry: { attempts: 3, backoff: "exponential" }
  },
  "deal_created": {
    type: "deal_created",
    tier: "domain",
    direction: "change",
    pool: "events_change",
    aggregate: "deal",
    version: 1,
    retry: { attempts: 3, backoff: "exponential" }
  },
  "deal_stage_changed": {
    type: "deal_stage_changed",
    tier: "domain",
    direction: "change",
    pool: "events_change",
    aggregate: "deal",
    version: 1,
    retry: { attempts: 3, backoff: "exponential" }
  },
  "stripe_payment_received": {
    type: "stripe_payment_received",
    tier: "domain",
    direction: "inbound",
    pool: "events_inbound",
    source: "stripe",
    version: 1,
    retry: { attempts: 5, backoff: "exponential" }
  },
  "webhook_outbound_contact_sync": {
    type: "webhook_outbound_contact_sync",
    tier: "domain",
    direction: "outbound",
    pool: "events_outbound",
    aggregate: "contact",
    destination: "crm",
    version: 1,
    retry: { attempts: 3, backoff: "exponential" }
  }
};
function getEventMetadata(type) {
  const meta = eventRegistry[type];
  if (!meta) {
    throw new Error(`No registry entry for event type '${String(type)}' \u2014 declare events under events/*.yaml and re-run \`codegen entity new --all\`.`);
  }
  return meta;
}

export {
  eventRegistry,
  getEventMetadata
};
//# sourceMappingURL=chunk-BGULBWKJ.js.map