@aws-sdk/types 3.55.0 → 3.110.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,33 @@
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.110.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.109.0...v3.110.0) (2022-06-14)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/types
9
+
10
+
11
+
12
+
13
+
14
+ # [3.109.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.108.1...v3.109.0) (2022-06-13)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/types
17
+
18
+
19
+
20
+
21
+
22
+ # [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
23
+
24
+
25
+ ### Features
26
+
27
+ * **types:** add pagination stopOnSameToken option ([#3524](https://github.com/aws/aws-sdk-js-v3/issues/3524)) ([9bf73e8](https://github.com/aws/aws-sdk-js-v3/commit/9bf73e81b8d9be9f12c72cbefbe26c502d1873c6))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
7
34
 
8
35
 
@@ -10,9 +10,7 @@ export interface Message {
10
10
  headers: MessageHeaders;
11
11
  body: Uint8Array;
12
12
  }
13
- export interface MessageHeaders {
14
- [name: string]: MessageHeaderValue;
15
- }
13
+ export declare type MessageHeaders = Record<string, MessageHeaderValue>;
16
14
  export interface BooleanHeaderValue {
17
15
  type: "boolean";
18
16
  value: boolean;
@@ -62,9 +60,7 @@ export interface EventStreamSerdeContext {
62
60
  eventStreamMarshaller: EventStreamMarshaller;
63
61
  }
64
62
  export interface EventStreamMarshaller {
65
- deserialize: (body: any, deserializer: (input: {
66
- [event: string]: Message;
67
- }) => any) => AsyncIterable<any>;
63
+ deserialize: (body: any, deserializer: (input: Record<string, Message>) => any) => AsyncIterable<any>;
68
64
  serialize: (input: AsyncIterable<any>, serializer: (event: any) => Message) => any;
69
65
  }
70
66
  export interface EventStreamRequestSigner {
@@ -37,9 +37,7 @@ export interface Headers extends Map<string, string> {
37
37
  * properties in favor of the other. The headers may or may not be combined, and
38
38
  * the SDK will not deterministically select which header candidate to use.
39
39
  */
40
- export interface HeaderBag {
41
- [key: string]: string;
42
- }
40
+ export declare type HeaderBag = Record<string, string>;
43
41
  /**
44
42
  * Represents an HTTP message with headers and an optional static or streaming
45
43
  * body. bode: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream;
@@ -53,9 +51,7 @@ export interface HttpMessage {
53
51
  * second being used when a parameter contains a list of values. Value can be set
54
52
  * to null when query is not in key-value pairs shape
55
53
  */
56
- export interface QueryParameterBag {
57
- [key: string]: string | Array<string> | null;
58
- }
54
+ export declare type QueryParameterBag = Record<string, string | Array<string> | null>;
59
55
  export interface Endpoint {
60
56
  protocol: string;
61
57
  hostname: string;
@@ -11,4 +11,12 @@ export interface PaginationConfiguration {
11
11
  client: Client<any, any, any>;
12
12
  pageSize?: number;
13
13
  startingToken?: any;
14
+ /**
15
+ * For some APIs, such as CloudWatchLogs events, the next page token will always
16
+ * be present.
17
+ *
18
+ * When true, this config field will have the paginator stop when the token doesn't change
19
+ * instead of when it is not present.
20
+ */
21
+ stopOnSameToken?: boolean;
14
22
  }
@@ -1,9 +1,10 @@
1
- export interface Profile {
2
- [key: string]: string | undefined;
3
- }
4
- export interface ParsedIniData {
5
- [key: string]: Profile;
1
+ export declare type IniSection = Record<string, string | undefined>;
2
+ /**
3
+ * @deprecated: Please use IniSection
4
+ */
5
+ export interface Profile extends IniSection {
6
6
  }
7
+ export declare type ParsedIniData = Record<string, IniSection>;
7
8
  export interface SharedConfigFiles {
8
9
  credentialsFile: ParsedIniData;
9
10
  configFile: ParsedIniData;
@@ -6,9 +6,7 @@ export interface Message {
6
6
  headers: MessageHeaders;
7
7
  body: Uint8Array;
8
8
  }
9
- export interface MessageHeaders {
10
- [name: string]: MessageHeaderValue;
11
- }
9
+ export declare type MessageHeaders = Record<string, MessageHeaderValue>;
12
10
  export interface BooleanHeaderValue {
13
11
  type: "boolean";
14
12
  value: boolean;
@@ -56,9 +54,7 @@ export interface EventStreamSerdeContext {
56
54
  eventStreamMarshaller: EventStreamMarshaller;
57
55
  }
58
56
  export interface EventStreamMarshaller {
59
- deserialize: (body: any, deserializer: (input: {
60
- [event: string]: Message;
61
- }) => any) => AsyncIterable<any>;
57
+ deserialize: (body: any, deserializer: (input: Record<string, Message>) => any) => AsyncIterable<any>;
62
58
  serialize: (input: AsyncIterable<any>, serializer: (event: any) => Message) => any;
63
59
  }
64
60
  export interface EventStreamRequestSigner {
@@ -7,18 +7,14 @@ export interface Headers extends Map<string, string> {
7
7
  withoutHeader(headerName: string): Headers;
8
8
  }
9
9
 
10
- export interface HeaderBag {
11
- [key: string]: string;
12
- }
10
+ export declare type HeaderBag = Record<string, string>;
13
11
 
14
12
  export interface HttpMessage {
15
13
  headers: HeaderBag;
16
14
  body?: any;
17
15
  }
18
16
 
19
- export interface QueryParameterBag {
20
- [key: string]: string | Array<string> | null;
21
- }
17
+ export declare type QueryParameterBag = Record<string, string | Array<string> | null>;
22
18
  export interface Endpoint {
23
19
  protocol: string;
24
20
  hostname: string;
@@ -6,4 +6,6 @@ export interface PaginationConfiguration {
6
6
  client: Client<any, any, any>;
7
7
  pageSize?: number;
8
8
  startingToken?: any;
9
+
10
+ stopOnSameToken?: boolean;
9
11
  }
@@ -1,9 +1,8 @@
1
- export interface Profile {
2
- [key: string]: string | undefined;
3
- }
4
- export interface ParsedIniData {
5
- [key: string]: Profile;
1
+ export declare type IniSection = Record<string, string | undefined>;
2
+
3
+ export interface Profile extends IniSection {
6
4
  }
5
+ export declare type ParsedIniData = Record<string, IniSection>;
7
6
  export interface SharedConfigFiles {
8
7
  credentialsFile: ParsedIniData;
9
8
  configFile: ParsedIniData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.55.0",
3
+ "version": "3.110.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",