Rocky_Mountain_Vending/.pnpm-store/v10/files/ff/7d0aa8edfb31532a63388c3a117b68ed11dce02243dca524c0ab2d081b65d71ce9f95908f4deac4dbfc7bd52175e9d70b016a826e7dd6a14c6b7b4546f91cd
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

41 lines
1.4 KiB
Text

import { HttpRequest, HttpResponse } from "../http";
import { Identity } from "../identity/identity";
/**
* @internal
*/
export interface ErrorHandler {
(signingProperties: Record<string, unknown>): <E extends Error>(error: E) => never;
}
/**
* @internal
*/
export interface SuccessHandler {
(httpResponse: HttpResponse | unknown, signingProperties: Record<string, unknown>): void;
}
/**
* Interface to sign identity and signing properties.
* @internal
*/
export interface HttpSigner {
/**
* Signs an HttpRequest with an identity and signing properties.
* @param httpRequest request to sign
* @param identity identity to sing the request with
* @param signingProperties property bag for signing
* @returns signed request in a promise
*/
sign(httpRequest: HttpRequest, identity: Identity, signingProperties: Record<string, unknown>): Promise<HttpRequest>;
/**
* Handler that executes after the {@link HttpSigner.sign} invocation and corresponding
* middleware throws an error.
* The error handler is expected to throw the error it receives, so the return type of the error handler is `never`.
* @internal
*/
errorHandler?: ErrorHandler;
/**
* Handler that executes after the {@link HttpSigner.sign} invocation and corresponding
* middleware succeeds.
* @internal
*/
successHandler?: SuccessHandler;
}