import { ApiKeyScope, LevrService } from "@prisma/client"; import type { User as PrivyUser } from "@privy-io/node"; import "axios"; import type { Address } from "viem"; declare module "axios" { interface AxiosRequestConfig { sign?: boolean; } interface InternalAxiosRequestConfig { sign?: boolean; } } declare module "express-serve-static-core" { interface Request { /** * Authenticated Privy user (set by PRIVY_USER or PRIVY_ADMIN auth) */ privyUser?: PrivyUser; /** * Authenticated API key user (set by HMAC or SERVICE_HMAC auth) */ apiUser?: { id: string; service?: LevrService | null; scopes?: ApiKeyScope[]; }; /** * Ethereum address associated with the authenticated user */ ethAddress?: Address | null; /** * The authentication method used for this request */ authMethod?: string; } }