UNPKG

@smithy/types

Version:
21 lines (20 loc) • 662 B
import type { HandlerExecutionContext } from "../middleware"; import type { HttpAuthOption } from "./HttpAuthScheme"; /** * @internal */ export interface HttpAuthSchemeParameters { operation?: string; } /** * @internal */ export interface HttpAuthSchemeProvider<TParameters extends HttpAuthSchemeParameters> { (authParameters: TParameters): HttpAuthOption[]; } /** * @internal */ export interface HttpAuthSchemeParametersProvider<TConfig extends object, TContext extends HandlerExecutionContext, TParameters extends HttpAuthSchemeParameters, TInput extends object> { (config: TConfig, context: TContext, input: TInput): Promise<TParameters>; }