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>
117 lines
4 KiB
Text
117 lines
4 KiB
Text
import type { MergeFunctions } from "@aws-sdk/types";
|
|
import { SignatureV4CryptoInit, SignatureV4Init } from "@smithy/signature-v4";
|
|
import type { AuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider, ChecksumConstructor, HashConstructor, MemoizedProvider, Provider, RegionInfoProvider, RequestSigner } from "@smithy/types";
|
|
/**
|
|
* @public
|
|
*/
|
|
export interface AwsSdkSigV4AuthInputConfig {
|
|
/**
|
|
* The credentials used to sign requests.
|
|
*/
|
|
credentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
/**
|
|
* The signer to use when signing requests.
|
|
*/
|
|
signer?: RequestSigner | ((authScheme?: AuthScheme) => Promise<RequestSigner>);
|
|
/**
|
|
* Whether to escape request path when signing the request.
|
|
*/
|
|
signingEscapePath?: boolean;
|
|
/**
|
|
* An offset value in milliseconds to apply to all signing times.
|
|
*/
|
|
systemClockOffset?: number;
|
|
/**
|
|
* The region where you want to sign your request against. This
|
|
* can be different to the region in the endpoint.
|
|
*/
|
|
signingRegion?: string;
|
|
/**
|
|
* The injectable SigV4-compatible signer class constructor. If not supplied,
|
|
* regular SignatureV4 constructor will be used.
|
|
*
|
|
* @internal
|
|
*/
|
|
signerConstructor?: new (options: SignatureV4Init & SignatureV4CryptoInit) => RequestSigner;
|
|
}
|
|
/**
|
|
* Used to indicate whether a credential provider function was memoized by this resolver.
|
|
* @public
|
|
*/
|
|
export type AwsSdkSigV4Memoized = {
|
|
/**
|
|
* The credential provider has been memoized by the AWS SDK SigV4 config resolver.
|
|
*/
|
|
memoized?: boolean;
|
|
/**
|
|
* The credential provider has the caller client config object bound to its arguments.
|
|
*/
|
|
configBound?: boolean;
|
|
/**
|
|
* Function is wrapped with attribution transform.
|
|
*/
|
|
attributed?: boolean;
|
|
};
|
|
/**
|
|
* @internal
|
|
*/
|
|
export interface AwsSdkSigV4PreviouslyResolved {
|
|
credentialDefaultProvider?: (input: any) => MemoizedProvider<AwsCredentialIdentity>;
|
|
region: string | Provider<string>;
|
|
sha256: ChecksumConstructor | HashConstructor;
|
|
signingName?: string;
|
|
regionInfoProvider?: RegionInfoProvider;
|
|
defaultSigningName?: string;
|
|
serviceId: string;
|
|
useFipsEndpoint: Provider<boolean>;
|
|
useDualstackEndpoint: Provider<boolean>;
|
|
}
|
|
/**
|
|
* @internal
|
|
*/
|
|
export interface AwsSdkSigV4AuthResolvedConfig {
|
|
/**
|
|
* Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.credentials}
|
|
* This provider MAY memoize the loaded credentials for certain period.
|
|
*/
|
|
credentials: MergeFunctions<AwsCredentialIdentityProvider, MemoizedProvider<AwsCredentialIdentity>> & AwsSdkSigV4Memoized;
|
|
/**
|
|
* Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.signer}
|
|
*/
|
|
signer: (authScheme?: AuthScheme) => Promise<RequestSigner>;
|
|
/**
|
|
* Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.signingEscapePath}
|
|
*/
|
|
signingEscapePath: boolean;
|
|
/**
|
|
* Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.systemClockOffset}
|
|
*/
|
|
systemClockOffset: number;
|
|
}
|
|
/**
|
|
* @internal
|
|
*/
|
|
export declare const resolveAwsSdkSigV4Config: <T>(config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved) => T & AwsSdkSigV4AuthResolvedConfig;
|
|
/**
|
|
* @internal
|
|
* @deprecated renamed to {@link AwsSdkSigV4AuthInputConfig}
|
|
*/
|
|
export interface AWSSDKSigV4AuthInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
}
|
|
/**
|
|
* @internal
|
|
* @deprecated renamed to {@link AwsSdkSigV4PreviouslyResolved}
|
|
*/
|
|
export interface AWSSDKSigV4PreviouslyResolved extends AwsSdkSigV4PreviouslyResolved {
|
|
}
|
|
/**
|
|
* @internal
|
|
* @deprecated renamed to {@link AwsSdkSigV4AuthResolvedConfig}
|
|
*/
|
|
export interface AWSSDKSigV4AuthResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
}
|
|
/**
|
|
* @internal
|
|
* @deprecated renamed to {@link resolveAwsSdkSigV4Config}
|
|
*/
|
|
export declare const resolveAWSSDKSigV4Config: <T>(config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved) => T & AwsSdkSigV4AuthResolvedConfig;
|