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>
31 lines
970 B
Text
31 lines
970 B
Text
import { AwsCredentialIdentity } from "@aws-sdk/types";
|
|
import { S3ExpressIdentity } from "../interfaces/S3ExpressIdentity";
|
|
import { S3ExpressIdentityProvider } from "../interfaces/S3ExpressIdentityProvider";
|
|
import { S3ExpressIdentityCache } from "./S3ExpressIdentityCache";
|
|
type Credentials = {
|
|
AccessKeyId: string | undefined;
|
|
SecretAccessKey: string | undefined;
|
|
SessionToken: string | undefined;
|
|
Expiration: Date | undefined;
|
|
};
|
|
export declare class S3ExpressIdentityProviderImpl
|
|
implements S3ExpressIdentityProvider
|
|
{
|
|
private createSessionFn;
|
|
private cache;
|
|
static REFRESH_WINDOW_MS: number;
|
|
constructor(
|
|
createSessionFn: (key: string) => Promise<{
|
|
Credentials: Credentials;
|
|
}>,
|
|
cache?: S3ExpressIdentityCache
|
|
);
|
|
getS3ExpressIdentity(
|
|
awsIdentity: AwsCredentialIdentity,
|
|
identityProperties: {
|
|
Bucket: string;
|
|
} & Record<string, string>
|
|
): Promise<S3ExpressIdentity>;
|
|
private getIdentity;
|
|
}
|
|
export {};
|