import type { ExecutionContext } from '@nestjs/common'; import type { Profile } from '../interfaces/profile.interface.js'; export interface IContextAdapter { readonly contextType: string; recoverProfile(ctx: ExecutionContext): Profile | null; enrichProfile(profile: Profile, ctx: ExecutionContext): void; enrichHttpResponse?(profile: Profile, req: object, responseBody: unknown): void; getRequest?(ctx: ExecutionContext): object | undefined; }