import type { components } from '@/lib/gen';

export type CheckoutSource = components['schemas']['CheckoutSource'];

/**
 * Type-safe constants for CheckoutSource values.
 * These match the values defined in the backend API.
 */
export const CHECKOUT_SOURCE = {
  ACCOUNT_PAGE: 'accountPage',
  UPSELL_MODAL: 'upsellModal',
  PRICING_PAGE: 'pricingPage',
  SPLASH_PAGE: 'splashPage',
  COMMERCIAL_RIGHTS_MODAL: 'commercialRightsModal',
} as const satisfies Record<string, CheckoutSource>;
