@smithy/experimental-identity-and-auth 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist-cjs/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./HttpAuthScheme"), exports);
5
+ tslib_1.__exportStar(require("./HttpAuthSchemeProvider"), exports);
5
6
  tslib_1.__exportStar(require("./HttpSigner"), exports);
6
7
  tslib_1.__exportStar(require("./IdentityProviderConfig"), exports);
7
8
  tslib_1.__exportStar(require("./SigV4Signer"), exports);
@@ -0,0 +1 @@
1
+ export {};
package/dist-es/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./HttpAuthScheme";
2
+ export * from "./HttpAuthSchemeProvider";
2
3
  export * from "./HttpSigner";
3
4
  export * from "./IdentityProviderConfig";
4
5
  export * from "./SigV4Signer";
@@ -34,3 +34,11 @@ export interface HttpAuthOption {
34
34
  identityProperties?: Record<string, unknown>;
35
35
  signingProperties?: Record<string, unknown>;
36
36
  }
37
+ /**
38
+ * @internal
39
+ */
40
+ export interface SelectedHttpAuthScheme {
41
+ httpAuthOption: HttpAuthOption;
42
+ identity: Identity;
43
+ signer: HttpSigner;
44
+ }
@@ -0,0 +1,20 @@
1
+ import { HandlerExecutionContext } from "@smithy/types";
2
+ import { HttpAuthOption } from "./HttpAuthScheme";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthSchemeParameters {
7
+ operation?: string;
8
+ }
9
+ /**
10
+ * @internal
11
+ */
12
+ export interface HttpAuthSchemeProvider<TParameters extends HttpAuthSchemeParameters = HttpAuthSchemeParameters> {
13
+ (authParameters: TParameters): HttpAuthOption[];
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export interface HttpAuthSchemeParametersProvider<C extends object = object, T extends HttpAuthSchemeParameters = HttpAuthSchemeParameters> {
19
+ (config: C, context: HandlerExecutionContext): Promise<T>;
20
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./HttpAuthScheme";
2
+ export * from "./HttpAuthSchemeProvider";
2
3
  export * from "./HttpSigner";
3
4
  export * from "./IdentityProviderConfig";
4
5
  export * from "./SigV4Signer";
@@ -34,3 +34,11 @@ export interface HttpAuthOption {
34
34
  identityProperties?: Record<string, unknown>;
35
35
  signingProperties?: Record<string, unknown>;
36
36
  }
37
+ /**
38
+ * @internal
39
+ */
40
+ export interface SelectedHttpAuthScheme {
41
+ httpAuthOption: HttpAuthOption;
42
+ identity: Identity;
43
+ signer: HttpSigner;
44
+ }
@@ -0,0 +1,20 @@
1
+ import { HandlerExecutionContext } from "@smithy/types";
2
+ import { HttpAuthOption } from "./HttpAuthScheme";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthSchemeParameters {
7
+ operation?: string;
8
+ }
9
+ /**
10
+ * @internal
11
+ */
12
+ export interface HttpAuthSchemeProvider<TParameters extends HttpAuthSchemeParameters = HttpAuthSchemeParameters> {
13
+ (authParameters: TParameters): HttpAuthOption[];
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export interface HttpAuthSchemeParametersProvider<C extends object = object, T extends HttpAuthSchemeParameters = HttpAuthSchemeParameters> {
19
+ (config: C, context: HandlerExecutionContext): Promise<T>;
20
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./HttpAuthScheme";
2
+ export * from "./HttpAuthSchemeProvider";
2
3
  export * from "./HttpSigner";
3
4
  export * from "./IdentityProviderConfig";
4
5
  export * from "./SigV4Signer";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/experimental-identity-and-auth",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -23,9 +23,9 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@smithy/protocol-http": "^3.0.2",
27
- "@smithy/signature-v4": "^2.0.6",
28
- "@smithy/types": "^2.3.0",
26
+ "@smithy/protocol-http": "^3.0.4",
27
+ "@smithy/signature-v4": "^2.0.8",
28
+ "@smithy/types": "^2.3.2",
29
29
  "tslib": "^2.5.0"
30
30
  },
31
31
  "engines": {