UNPKG

@smithy/types

Version:

[![NPM version](https://img.shields.io/npm/v/@smithy/types/latest.svg)](https://www.npmjs.com/package/@smithy/types) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/types.svg)](https://www.npmjs.com/package/@smithy/types)

21 lines (20 loc) 652 B
import { HandlerExecutionContext } from "../middleware"; import { 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>; }