Rocky_Mountain_Vending/.pnpm-store/v10/files/6e/3ddc2162e15129c6981189fcebf7a2d3c8308b84cc9c480de0372f3beb22f8b98cc28b4eb6940d7e0c54f0ec78055ccb920ac4473c6f33d3cbdd34fc55bbbc
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

76 lines
4.2 KiB
Text

import type { EventStreamSerde } from "@smithy/core/event-streams";
import { NormalizedSchema } from "@smithy/core/schema";
import type { ClientProtocol, Codec, Endpoint, EndpointBearer, EndpointV2, EventStreamMarshaller, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, Schema, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
import { SerdeContext } from "./SerdeContext";
/**
* Abstract base for HTTP-based client protocols.
*
* @public
*/
export declare abstract class HttpProtocol extends SerdeContext implements ClientProtocol<IHttpRequest, IHttpResponse> {
readonly options: {
defaultNamespace: string;
};
protected abstract serializer: ShapeSerializer<string | Uint8Array>;
protected abstract deserializer: ShapeDeserializer<string | Uint8Array>;
protected constructor(options: {
defaultNamespace: string;
});
abstract getShapeId(): string;
abstract getPayloadCodec(): Codec<any, any>;
getRequestType(): new (...args: any[]) => IHttpRequest;
getResponseType(): new (...args: any[]) => IHttpResponse;
/**
* @override
*/
setSerdeContext(serdeContext: SerdeFunctions): void;
abstract serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<IHttpRequest>;
updateServiceEndpoint(request: IHttpRequest, endpoint: EndpointV2 | Endpoint): IHttpRequest;
abstract deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise<Output>;
protected setHostPrefix<Input extends object>(request: IHttpRequest, operationSchema: OperationSchema, input: Input): void;
protected abstract handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>;
protected deserializeMetadata(output: IHttpResponse): ResponseMetadata;
/**
* @param eventStream - the iterable provided by the caller.
* @param requestSchema - the schema of the event stream container (struct).
* @param [initialRequest] - only provided if the initial-request is part of the event stream (RPC).
*
* @returns a stream suitable for the HTTP body of a request.
*/
protected serializeEventStream({ eventStream, requestSchema, initialRequest, }: {
eventStream: AsyncIterable<any>;
requestSchema: NormalizedSchema;
initialRequest?: any;
}): Promise<IHttpRequest["body"]>;
/**
* @param response - http response from which to read the event stream.
* @param unionSchema - schema of the event stream container (struct).
* @param [initialResponseContainer] - provided and written to only if the initial response is part of the event stream (RPC).
*
* @returns the asyncIterable of the event stream.
*/
protected deserializeEventStream({ response, responseSchema, initialResponseContainer, }: {
response: IHttpResponse;
responseSchema: NormalizedSchema;
initialResponseContainer?: any;
}): Promise<AsyncIterable<{
[key: string]: any;
$unknown?: unknown;
}>>;
/**
* Loads eventStream capability async (for chunking).
*/
protected loadEventStreamCapability(): Promise<EventStreamSerde>;
/**
* @returns content-type default header value for event stream events and other documents.
*/
protected getDefaultContentType(): string;
/**
* For HTTP binding protocols, this method is overridden in {@link HttpBindingProtocol}.
*
* @deprecated only use this for HTTP binding protocols.
*/
protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, headerBindings: Set<string>, dataObject: any): Promise<string[]>;
protected deserializeHttpMessage(schema: Schema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any): Promise<string[]>;
protected getEventStreamMarshaller(): EventStreamMarshaller;
}