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>
61 lines
2.1 KiB
Text
61 lines
2.1 KiB
Text
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, Logger, RequestHandler } from "@smithy/types";
|
|
import type { AwsSdkCredentialsFeatures } from "../feature-ids";
|
|
export { AwsCredentialIdentity, AwsCredentialIdentityProvider, IdentityProvider } from "@smithy/types";
|
|
/**
|
|
* @public
|
|
*/
|
|
export interface AwsIdentityProperties {
|
|
/**
|
|
* These are resolved client config values, and may be async providers.
|
|
*/
|
|
callerClientConfig?: {
|
|
/**
|
|
* It is likely a programming error if you use
|
|
* the caller client config credentials in a credential provider, since
|
|
* it will recurse.
|
|
*
|
|
* @deprecated do not use.
|
|
*/
|
|
credentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
/**
|
|
* @internal
|
|
* @deprecated minimize use.
|
|
*/
|
|
credentialDefaultProvider?: (input?: any) => AwsCredentialIdentityProvider;
|
|
logger?: Logger;
|
|
profile?: string;
|
|
region(): Promise<string>;
|
|
requestHandler?: RequestHandler<any, any>;
|
|
userAgentAppId?(): Promise<string | undefined>;
|
|
};
|
|
}
|
|
/**
|
|
* @public
|
|
*
|
|
* Variation of {@link IdentityProvider} which accepts a contextual
|
|
* client configuration that includes an AWS region and potentially other
|
|
* configurable fields.
|
|
*
|
|
* Used to link a credential provider to a client if it is being called
|
|
* in the context of a client.
|
|
*/
|
|
export type RuntimeConfigIdentityProvider<T> = (awsIdentityProperties?: AwsIdentityProperties) => Promise<T>;
|
|
/**
|
|
* @public
|
|
*
|
|
* Variation of {@link AwsCredentialIdentityProvider} which accepts a contextual
|
|
* client configuration that includes an AWS region and potentially other
|
|
* configurable fields.
|
|
*
|
|
* Used to link a credential provider to a client if it is being called
|
|
* in the context of a client.
|
|
*/
|
|
export type RuntimeConfigAwsCredentialIdentityProvider = RuntimeConfigIdentityProvider<AwsCredentialIdentity>;
|
|
/**
|
|
* @public
|
|
*
|
|
* AwsCredentialIdentity with source attribution metadata.
|
|
*/
|
|
export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
|
|
$source?: AwsSdkCredentialsFeatures;
|
|
};
|