import { z } from "zod";

/**
 * Schema for the runtime proxy config. Shared between server
 * (src/proxy/config.ts) and client (src/lib/useStripConfig.ts) so that
 * the wire format is validated end-to-end with a single source of truth.
 *
 * Keep this file free of side effects and Node-only imports so it is
 * safe to bundle into the client.
 */
export const RuntimeConfigSchema = z.object({
  stripClaudeCodeBillingHeader: z.boolean(),
  hasSeenOnboarding: z.boolean().default(false),
});

export type RuntimeConfig = z.infer<typeof RuntimeConfigSchema>;
