@aws-sdk/types 3.186.0 → 3.188.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,17 @@
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.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** support util functions to consume response streams ([#3977](https://github.com/aws/aws-sdk-js-v3/issues/3977)) ([ad99b66](https://github.com/aws/aws-sdk-js-v3/commit/ad99b66944b6fe1ce83082c1a33193dff033cfaf))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/types
@@ -75,3 +75,26 @@ export interface SdkStreamMixin {
75
75
  * utility functions.
76
76
  */
77
77
  export declare type SdkStream<BaseStream> = BaseStream & SdkStreamMixin;
78
+ /**
79
+ * Indicates that any members of type T
80
+ * that were of type T[StreamKey] have been extended
81
+ * with the SdkStreamMixin helper methods.
82
+ */
83
+ export declare type WithSdkStreamMixin<T, StreamKey extends keyof T> = {
84
+ [key in keyof T]: T[key] extends T[StreamKey] ? SdkStream<T[StreamKey]> : T[key];
85
+ };
86
+ /**
87
+ * Interface for internal function to inject stream utility functions
88
+ * implementation
89
+ *
90
+ * @internal
91
+ */
92
+ export interface SdkStreamMixinInjector {
93
+ (stream: unknown): SdkStreamMixin;
94
+ }
95
+ /**
96
+ * @internal
97
+ */
98
+ export interface SdkStreamSerdeContext {
99
+ sdkStreamMixin: SdkStreamMixinInjector;
100
+ }
@@ -38,3 +38,14 @@ export interface SdkStreamMixin {
38
38
  transformToWebStream: () => ReadableStream;
39
39
  }
40
40
  export declare type SdkStream<BaseStream> = BaseStream & SdkStreamMixin;
41
+ export declare type WithSdkStreamMixin<T, StreamKey extends keyof T> = {
42
+ [key in keyof T]: T[key] extends T[StreamKey]
43
+ ? SdkStream<T[StreamKey]>
44
+ : T[key];
45
+ };
46
+ export interface SdkStreamMixinInjector {
47
+ (stream: unknown): SdkStreamMixin;
48
+ }
49
+ export interface SdkStreamSerdeContext {
50
+ sdkStreamMixin: SdkStreamMixinInjector;
51
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.186.0",
3
+ "version": "3.188.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",