UNPKG

1.87 kBTypeScriptView Raw
1export declare const ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
2export declare const CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
3export declare const AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
4export declare const SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders";
5export declare const EXPIRES_QUERY_PARAM = "X-Amz-Expires";
6export declare const SIGNATURE_QUERY_PARAM = "X-Amz-Signature";
7export declare const TOKEN_QUERY_PARAM = "X-Amz-Security-Token";
8export declare const REGION_SET_PARAM = "X-Amz-Region-Set";
9export declare const AUTH_HEADER = "authorization";
10export declare const AMZ_DATE_HEADER: string;
11export declare const DATE_HEADER = "date";
12export declare const GENERATED_HEADERS: string[];
13export declare const SIGNATURE_HEADER: string;
14export declare const SHA256_HEADER = "x-amz-content-sha256";
15export declare const TOKEN_HEADER: string;
16export declare const HOST_HEADER = "host";
17export declare const ALWAYS_UNSIGNABLE_HEADERS: {
18 authorization: boolean;
19 "cache-control": boolean;
20 connection: boolean;
21 expect: boolean;
22 from: boolean;
23 "keep-alive": boolean;
24 "max-forwards": boolean;
25 pragma: boolean;
26 referer: boolean;
27 te: boolean;
28 trailer: boolean;
29 "transfer-encoding": boolean;
30 upgrade: boolean;
31 "user-agent": boolean;
32 "x-amzn-trace-id": boolean;
33};
34export declare const PROXY_HEADER_PATTERN: RegExp;
35export declare const SEC_HEADER_PATTERN: RegExp;
36export declare const UNSIGNABLE_PATTERNS: RegExp[];
37export declare const ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256";
38export declare const ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256";
39export declare const EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD";
40export declare const UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD";
41export declare const MAX_CACHE_SIZE = 50;
42export declare const KEY_TYPE_IDENTIFIER = "aws4_request";
43export declare const MAX_PRESIGNED_TTL: number;