import { checkAuthRateLimit, resetAuthRateLimit } from "@open-mercato/core/modules/auth/lib/rateLimitCheck";
import { readEndpointRateLimitConfig } from "@open-mercato/shared/lib/ratelimit/config";
const customerLoginRateLimitConfig = readEndpointRateLimitConfig("CUSTOMER_LOGIN", {
  points: 5,
  duration: 60,
  blockDuration: 60,
  keyPrefix: "customer-login"
});
const customerLoginIpRateLimitConfig = readEndpointRateLimitConfig("CUSTOMER_LOGIN_IP", {
  points: 20,
  duration: 60,
  blockDuration: 60,
  keyPrefix: "customer-login-ip"
});
const customerSignupRateLimitConfig = readEndpointRateLimitConfig("CUSTOMER_SIGNUP", {
  points: 3,
  duration: 60,
  blockDuration: 120,
  keyPrefix: "customer-signup"
});
const customerSignupIpRateLimitConfig = readEndpointRateLimitConfig("CUSTOMER_SIGNUP_IP", {
  points: 10,
  duration: 60,
  blockDuration: 120,
  keyPrefix: "customer-signup-ip"
});
const customerPasswordResetRateLimitConfig = readEndpointRateLimitConfig("CUSTOMER_PASSWORD_RESET", {
  points: 3,
  duration: 60,
  blockDuration: 120,
  keyPrefix: "customer-password-reset"
});
const customerPasswordResetIpRateLimitConfig = readEndpointRateLimitConfig("CUSTOMER_PASSWORD_RESET_IP", {
  points: 10,
  duration: 60,
  blockDuration: 120,
  keyPrefix: "customer-password-reset-ip"
});
const customerMagicLinkRateLimitConfig = readEndpointRateLimitConfig("CUSTOMER_MAGIC_LINK", {
  points: 3,
  duration: 60,
  blockDuration: 120,
  keyPrefix: "customer-magic-link"
});
const customerMagicLinkIpRateLimitConfig = readEndpointRateLimitConfig("CUSTOMER_MAGIC_LINK_IP", {
  points: 10,
  duration: 60,
  blockDuration: 120,
  keyPrefix: "customer-magic-link-ip"
});
const customerInviteRateLimitConfig = readEndpointRateLimitConfig("CUSTOMER_INVITE", {
  points: 5,
  duration: 60,
  blockDuration: 120,
  keyPrefix: "customer-invite"
});
const customerInviteIpRateLimitConfig = readEndpointRateLimitConfig("CUSTOMER_INVITE_IP", {
  points: 20,
  duration: 60,
  blockDuration: 120,
  keyPrefix: "customer-invite-ip"
});
const domainResolveAllIpRateLimitConfig = readEndpointRateLimitConfig("DOMAIN_RESOLVE_ALL_IP", {
  points: 30,
  duration: 60,
  blockDuration: 60,
  keyPrefix: "domain-resolve-all"
});
export {
  checkAuthRateLimit,
  customerInviteIpRateLimitConfig,
  customerInviteRateLimitConfig,
  customerLoginIpRateLimitConfig,
  customerLoginRateLimitConfig,
  customerMagicLinkIpRateLimitConfig,
  customerMagicLinkRateLimitConfig,
  customerPasswordResetIpRateLimitConfig,
  customerPasswordResetRateLimitConfig,
  customerSignupIpRateLimitConfig,
  customerSignupRateLimitConfig,
  domainResolveAllIpRateLimitConfig,
  resetAuthRateLimit
};
//# sourceMappingURL=rateLimiter.js.map
