@aws-sdk/types 3.127.0 → 3.159.0

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.159.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.158.0...v3.159.0) (2022-08-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * **token-providers:** add token based authentication ([#3883](https://github.com/aws/aws-sdk-js-v3/issues/3883)) ([9f31345](https://github.com/aws/aws-sdk-js-v3/commit/9f313451a31b9bc317c277d6ab86e1d328066ad8))
12
+ * **util-endpoints:** add ruleSet standard library ([#3880](https://github.com/aws/aws-sdk-js-v3/issues/3880)) ([4ffc67b](https://github.com/aws/aws-sdk-js-v3/commit/4ffc67b6f9c8349f93ccf91b9b3aa17d6a22b06e))
13
+
14
+
15
+
16
+
17
+
6
18
  # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
7
19
 
8
20
 
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EndpointURLScheme = void 0;
4
+ var EndpointURLScheme;
5
+ (function (EndpointURLScheme) {
6
+ EndpointURLScheme["HTTP"] = "http";
7
+ EndpointURLScheme["HTTPS"] = "https";
8
+ })(EndpointURLScheme = exports.EndpointURLScheme || (exports.EndpointURLScheme = {}));
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ tslib_1.__exportStar(require("./client"), exports);
6
6
  tslib_1.__exportStar(require("./command"), exports);
7
7
  tslib_1.__exportStar(require("./credentials"), exports);
8
8
  tslib_1.__exportStar(require("./crypto"), exports);
9
+ tslib_1.__exportStar(require("./endpoint"), exports);
9
10
  tslib_1.__exportStar(require("./eventStream"), exports);
10
11
  tslib_1.__exportStar(require("./http"), exports);
11
12
  tslib_1.__exportStar(require("./logger"), exports);
@@ -17,6 +18,7 @@ tslib_1.__exportStar(require("./serde"), exports);
17
18
  tslib_1.__exportStar(require("./shapes"), exports);
18
19
  tslib_1.__exportStar(require("./signature"), exports);
19
20
  tslib_1.__exportStar(require("./stream"), exports);
21
+ tslib_1.__exportStar(require("./token"), exports);
20
22
  tslib_1.__exportStar(require("./transfer"), exports);
21
23
  tslib_1.__exportStar(require("./util"), exports);
22
24
  tslib_1.__exportStar(require("./waiter"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export var EndpointURLScheme;
2
+ (function (EndpointURLScheme) {
3
+ EndpointURLScheme["HTTP"] = "http";
4
+ EndpointURLScheme["HTTPS"] = "https";
5
+ })(EndpointURLScheme || (EndpointURLScheme = {}));
package/dist-es/index.js CHANGED
@@ -3,6 +3,7 @@ export * from "./client";
3
3
  export * from "./command";
4
4
  export * from "./credentials";
5
5
  export * from "./crypto";
6
+ export * from "./endpoint";
6
7
  export * from "./eventStream";
7
8
  export * from "./http";
8
9
  export * from "./logger";
@@ -14,6 +15,7 @@ export * from "./serde";
14
15
  export * from "./shapes";
15
16
  export * from "./signature";
16
17
  export * from "./stream";
18
+ export * from "./token";
17
19
  export * from "./transfer";
18
20
  export * from "./util";
19
21
  export * from "./waiter";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ export declare enum EndpointURLScheme {
2
+ HTTP = "http",
3
+ HTTPS = "https"
4
+ }
5
+ export interface EndpointURL {
6
+ /**
7
+ * The URL scheme such as http or https.
8
+ */
9
+ scheme: EndpointURLScheme;
10
+ /**
11
+ * The authority is the host and optional port component of the URL.
12
+ */
13
+ authority: string;
14
+ /**
15
+ * The parsed path segment of the URL.
16
+ * This value is as-is as provided by the user.
17
+ */
18
+ path: string;
19
+ /**
20
+ * A boolean indicating whether the authority is an IP address.
21
+ */
22
+ isIp: boolean;
23
+ }
@@ -3,6 +3,7 @@ export * from "./client";
3
3
  export * from "./command";
4
4
  export * from "./credentials";
5
5
  export * from "./crypto";
6
+ export * from "./endpoint";
6
7
  export * from "./eventStream";
7
8
  export * from "./http";
8
9
  export * from "./logger";
@@ -14,6 +15,7 @@ export * from "./serde";
14
15
  export * from "./shapes";
15
16
  export * from "./signature";
16
17
  export * from "./stream";
18
+ export * from "./token";
17
19
  export * from "./transfer";
18
20
  export * from "./util";
19
21
  export * from "./waiter";
@@ -0,0 +1,16 @@
1
+ import { Provider } from "./util";
2
+ /**
3
+ * An object representing temporary or permanent AWS token.
4
+ */
5
+ export interface Token {
6
+ /**
7
+ *The literal token string
8
+ */
9
+ readonly token: string;
10
+ /**
11
+ * A {Date} when these token will no longer be accepted.
12
+ * When expiration is not defined, the token is assumed to be permanent.
13
+ */
14
+ readonly expiration?: Date;
15
+ }
16
+ export declare type TokenProvider = Provider<Token>;
@@ -0,0 +1,14 @@
1
+ export declare enum EndpointURLScheme {
2
+ HTTP = "http",
3
+ HTTPS = "https"
4
+ }
5
+ export interface EndpointURL {
6
+
7
+ scheme: EndpointURLScheme;
8
+
9
+ authority: string;
10
+
11
+ path: string;
12
+
13
+ isIp: boolean;
14
+ }
@@ -3,6 +3,7 @@ export * from "./client";
3
3
  export * from "./command";
4
4
  export * from "./credentials";
5
5
  export * from "./crypto";
6
+ export * from "./endpoint";
6
7
  export * from "./eventStream";
7
8
  export * from "./http";
8
9
  export * from "./logger";
@@ -14,6 +15,7 @@ export * from "./serde";
14
15
  export * from "./shapes";
15
16
  export * from "./signature";
16
17
  export * from "./stream";
18
+ export * from "./token";
17
19
  export * from "./transfer";
18
20
  export * from "./util";
19
21
  export * from "./waiter";
@@ -0,0 +1,9 @@
1
+ import { Provider } from "./util";
2
+
3
+ export interface Token {
4
+
5
+ readonly token: string;
6
+
7
+ readonly expiration?: Date;
8
+ }
9
+ export declare type TokenProvider = Provider<Token>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.127.0",
3
+ "version": "3.159.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",