@aws-sdk/types
Advanced tools
Comparing version 3.254.0 to 3.257.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HttpAuthLocation = void 0; | ||
var HttpAuthLocation; | ||
(function (HttpAuthLocation) { | ||
HttpAuthLocation["HEADER"] = "header"; | ||
HttpAuthLocation["QUERY"] = "query"; | ||
})(HttpAuthLocation = exports.HttpAuthLocation || (exports.HttpAuthLocation = {})); |
@@ -1,1 +0,5 @@ | ||
export {}; | ||
export var HttpAuthLocation; | ||
(function (HttpAuthLocation) { | ||
HttpAuthLocation["HEADER"] = "header"; | ||
HttpAuthLocation["QUERY"] = "query"; | ||
})(HttpAuthLocation || (HttpAuthLocation = {})); |
@@ -28,1 +28,21 @@ /** | ||
} | ||
export interface HttpAuthDefinition { | ||
/** | ||
* Defines the location of where the Auth is serialized. | ||
*/ | ||
in: HttpAuthLocation; | ||
/** | ||
* Defines the name of the HTTP header or query string parameter | ||
* that contains the Auth. | ||
*/ | ||
name: string; | ||
/** | ||
* Defines the security scheme to use on the `Authorization` header value. | ||
* This can only be set if the "in" property is set to {@link HttpAuthLocation.HEADER}. | ||
*/ | ||
scheme?: string; | ||
} | ||
export declare enum HttpAuthLocation { | ||
HEADER = "header", | ||
QUERY = "query" | ||
} |
@@ -1,2 +0,2 @@ | ||
import { AuthScheme } from "./auth"; | ||
import { AuthScheme, HttpAuthDefinition } from "./auth"; | ||
import { EndpointV2 } from "./endpoint"; | ||
@@ -347,2 +347,7 @@ import { Logger } from "./logger"; | ||
/** | ||
* The current auth configuration that has been set by any auth middleware and | ||
* that will prevent from being set more than once. | ||
*/ | ||
currentAuthConfig?: HttpAuthDefinition; | ||
/** | ||
* Used by DynamoDbDocumentClient. | ||
@@ -349,0 +354,0 @@ */ |
@@ -9,1 +9,10 @@ export interface AuthScheme { | ||
} | ||
export interface HttpAuthDefinition { | ||
in: HttpAuthLocation; | ||
name: string; | ||
scheme?: string; | ||
} | ||
export declare enum HttpAuthLocation { | ||
HEADER = "header", | ||
QUERY = "query", | ||
} |
@@ -1,2 +0,2 @@ | ||
import { AuthScheme } from "./auth"; | ||
import { AuthScheme, HttpAuthDefinition } from "./auth"; | ||
import { EndpointV2 } from "./endpoint"; | ||
@@ -205,2 +205,3 @@ import { Logger } from "./logger"; | ||
authSchemes?: AuthScheme[]; | ||
currentAuthConfig?: HttpAuthDefinition; | ||
dynamoDbDocumentClientOptions?: Partial<{ | ||
@@ -207,0 +208,0 @@ overrideInputFilterSensitiveLog(...args: any[]): string | void; |
{ | ||
"name": "@aws-sdk/types", | ||
"version": "3.254.0", | ||
"version": "3.257.0", | ||
"main": "./dist-cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist-es/index.js", |
103087
2648