Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
1.7 KiB
Text
33 lines
1.7 KiB
Text
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, IdentityProviderConfig, Provider, SelectedHttpAuthScheme, SerializeMiddleware, SMITHY_CONTEXT_KEY } from "@smithy/types";
|
|
/**
|
|
* @internal
|
|
*/
|
|
export interface PreviouslyResolved<TParameters extends HttpAuthSchemeParameters> {
|
|
authSchemePreference?: Provider<string[]>;
|
|
httpAuthSchemes: HttpAuthScheme[];
|
|
httpAuthSchemeProvider: HttpAuthSchemeProvider<TParameters>;
|
|
}
|
|
/**
|
|
* @internal
|
|
*/
|
|
interface HttpAuthSchemeMiddlewareOptions<TConfig extends object, TContext extends HandlerExecutionContext, TParameters extends HttpAuthSchemeParameters, TInput extends object> {
|
|
httpAuthSchemeParametersProvider: HttpAuthSchemeParametersProvider<TConfig, TContext, TParameters, TInput>;
|
|
identityProviderConfigProvider: (config: TConfig) => Promise<IdentityProviderConfig>;
|
|
}
|
|
/**
|
|
* @internal
|
|
*/
|
|
interface HttpAuthSchemeMiddlewareSmithyContext extends Record<string, unknown> {
|
|
selectedHttpAuthScheme?: SelectedHttpAuthScheme;
|
|
}
|
|
/**
|
|
* @internal
|
|
*/
|
|
interface HttpAuthSchemeMiddlewareHandlerExecutionContext extends HandlerExecutionContext {
|
|
[SMITHY_CONTEXT_KEY]?: HttpAuthSchemeMiddlewareSmithyContext;
|
|
}
|
|
/**
|
|
* @internal
|
|
*/
|
|
export declare const httpAuthSchemeMiddleware: <TInput extends object, Output extends object, TConfig extends object, TContext extends HttpAuthSchemeMiddlewareHandlerExecutionContext, TParameters extends HttpAuthSchemeParameters>(config: TConfig & PreviouslyResolved<TParameters>, mwOptions: HttpAuthSchemeMiddlewareOptions<TConfig, TContext, TParameters, TInput>) => SerializeMiddleware<TInput, Output>;
|
|
export {};
|