@aws-sdk/client-apigatewayv2 3.354.0 → 3.358.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.
@@ -2277,7 +2277,7 @@ const de_DeleteAccessLogSettingsCommand = async (output, context) => {
2277
2277
  const contents = (0, smithy_client_1.map)({
2278
2278
  $metadata: deserializeMetadata(output),
2279
2279
  });
2280
- await collectBody(output.body, context);
2280
+ await (0, smithy_client_1.collectBody)(output.body, context);
2281
2281
  return contents;
2282
2282
  };
2283
2283
  exports.de_DeleteAccessLogSettingsCommand = de_DeleteAccessLogSettingsCommand;
@@ -2310,7 +2310,7 @@ const de_DeleteApiCommand = async (output, context) => {
2310
2310
  const contents = (0, smithy_client_1.map)({
2311
2311
  $metadata: deserializeMetadata(output),
2312
2312
  });
2313
- await collectBody(output.body, context);
2313
+ await (0, smithy_client_1.collectBody)(output.body, context);
2314
2314
  return contents;
2315
2315
  };
2316
2316
  exports.de_DeleteApiCommand = de_DeleteApiCommand;
@@ -2343,7 +2343,7 @@ const de_DeleteApiMappingCommand = async (output, context) => {
2343
2343
  const contents = (0, smithy_client_1.map)({
2344
2344
  $metadata: deserializeMetadata(output),
2345
2345
  });
2346
- await collectBody(output.body, context);
2346
+ await (0, smithy_client_1.collectBody)(output.body, context);
2347
2347
  return contents;
2348
2348
  };
2349
2349
  exports.de_DeleteApiMappingCommand = de_DeleteApiMappingCommand;
@@ -2379,7 +2379,7 @@ const de_DeleteAuthorizerCommand = async (output, context) => {
2379
2379
  const contents = (0, smithy_client_1.map)({
2380
2380
  $metadata: deserializeMetadata(output),
2381
2381
  });
2382
- await collectBody(output.body, context);
2382
+ await (0, smithy_client_1.collectBody)(output.body, context);
2383
2383
  return contents;
2384
2384
  };
2385
2385
  exports.de_DeleteAuthorizerCommand = de_DeleteAuthorizerCommand;
@@ -2412,7 +2412,7 @@ const de_DeleteCorsConfigurationCommand = async (output, context) => {
2412
2412
  const contents = (0, smithy_client_1.map)({
2413
2413
  $metadata: deserializeMetadata(output),
2414
2414
  });
2415
- await collectBody(output.body, context);
2415
+ await (0, smithy_client_1.collectBody)(output.body, context);
2416
2416
  return contents;
2417
2417
  };
2418
2418
  exports.de_DeleteCorsConfigurationCommand = de_DeleteCorsConfigurationCommand;
@@ -2445,7 +2445,7 @@ const de_DeleteDeploymentCommand = async (output, context) => {
2445
2445
  const contents = (0, smithy_client_1.map)({
2446
2446
  $metadata: deserializeMetadata(output),
2447
2447
  });
2448
- await collectBody(output.body, context);
2448
+ await (0, smithy_client_1.collectBody)(output.body, context);
2449
2449
  return contents;
2450
2450
  };
2451
2451
  exports.de_DeleteDeploymentCommand = de_DeleteDeploymentCommand;
@@ -2478,7 +2478,7 @@ const de_DeleteDomainNameCommand = async (output, context) => {
2478
2478
  const contents = (0, smithy_client_1.map)({
2479
2479
  $metadata: deserializeMetadata(output),
2480
2480
  });
2481
- await collectBody(output.body, context);
2481
+ await (0, smithy_client_1.collectBody)(output.body, context);
2482
2482
  return contents;
2483
2483
  };
2484
2484
  exports.de_DeleteDomainNameCommand = de_DeleteDomainNameCommand;
@@ -2511,7 +2511,7 @@ const de_DeleteIntegrationCommand = async (output, context) => {
2511
2511
  const contents = (0, smithy_client_1.map)({
2512
2512
  $metadata: deserializeMetadata(output),
2513
2513
  });
2514
- await collectBody(output.body, context);
2514
+ await (0, smithy_client_1.collectBody)(output.body, context);
2515
2515
  return contents;
2516
2516
  };
2517
2517
  exports.de_DeleteIntegrationCommand = de_DeleteIntegrationCommand;
@@ -2544,7 +2544,7 @@ const de_DeleteIntegrationResponseCommand = async (output, context) => {
2544
2544
  const contents = (0, smithy_client_1.map)({
2545
2545
  $metadata: deserializeMetadata(output),
2546
2546
  });
2547
- await collectBody(output.body, context);
2547
+ await (0, smithy_client_1.collectBody)(output.body, context);
2548
2548
  return contents;
2549
2549
  };
2550
2550
  exports.de_DeleteIntegrationResponseCommand = de_DeleteIntegrationResponseCommand;
@@ -2577,7 +2577,7 @@ const de_DeleteModelCommand = async (output, context) => {
2577
2577
  const contents = (0, smithy_client_1.map)({
2578
2578
  $metadata: deserializeMetadata(output),
2579
2579
  });
2580
- await collectBody(output.body, context);
2580
+ await (0, smithy_client_1.collectBody)(output.body, context);
2581
2581
  return contents;
2582
2582
  };
2583
2583
  exports.de_DeleteModelCommand = de_DeleteModelCommand;
@@ -2610,7 +2610,7 @@ const de_DeleteRouteCommand = async (output, context) => {
2610
2610
  const contents = (0, smithy_client_1.map)({
2611
2611
  $metadata: deserializeMetadata(output),
2612
2612
  });
2613
- await collectBody(output.body, context);
2613
+ await (0, smithy_client_1.collectBody)(output.body, context);
2614
2614
  return contents;
2615
2615
  };
2616
2616
  exports.de_DeleteRouteCommand = de_DeleteRouteCommand;
@@ -2643,7 +2643,7 @@ const de_DeleteRouteRequestParameterCommand = async (output, context) => {
2643
2643
  const contents = (0, smithy_client_1.map)({
2644
2644
  $metadata: deserializeMetadata(output),
2645
2645
  });
2646
- await collectBody(output.body, context);
2646
+ await (0, smithy_client_1.collectBody)(output.body, context);
2647
2647
  return contents;
2648
2648
  };
2649
2649
  exports.de_DeleteRouteRequestParameterCommand = de_DeleteRouteRequestParameterCommand;
@@ -2676,7 +2676,7 @@ const de_DeleteRouteResponseCommand = async (output, context) => {
2676
2676
  const contents = (0, smithy_client_1.map)({
2677
2677
  $metadata: deserializeMetadata(output),
2678
2678
  });
2679
- await collectBody(output.body, context);
2679
+ await (0, smithy_client_1.collectBody)(output.body, context);
2680
2680
  return contents;
2681
2681
  };
2682
2682
  exports.de_DeleteRouteResponseCommand = de_DeleteRouteResponseCommand;
@@ -2709,7 +2709,7 @@ const de_DeleteRouteSettingsCommand = async (output, context) => {
2709
2709
  const contents = (0, smithy_client_1.map)({
2710
2710
  $metadata: deserializeMetadata(output),
2711
2711
  });
2712
- await collectBody(output.body, context);
2712
+ await (0, smithy_client_1.collectBody)(output.body, context);
2713
2713
  return contents;
2714
2714
  };
2715
2715
  exports.de_DeleteRouteSettingsCommand = de_DeleteRouteSettingsCommand;
@@ -2742,7 +2742,7 @@ const de_DeleteStageCommand = async (output, context) => {
2742
2742
  const contents = (0, smithy_client_1.map)({
2743
2743
  $metadata: deserializeMetadata(output),
2744
2744
  });
2745
- await collectBody(output.body, context);
2745
+ await (0, smithy_client_1.collectBody)(output.body, context);
2746
2746
  return contents;
2747
2747
  };
2748
2748
  exports.de_DeleteStageCommand = de_DeleteStageCommand;
@@ -2775,7 +2775,7 @@ const de_DeleteVpcLinkCommand = async (output, context) => {
2775
2775
  const contents = (0, smithy_client_1.map)({
2776
2776
  $metadata: deserializeMetadata(output),
2777
2777
  });
2778
- await collectBody(output.body, context);
2778
+ await (0, smithy_client_1.collectBody)(output.body, context);
2779
2779
  return contents;
2780
2780
  };
2781
2781
  exports.de_DeleteVpcLinkCommand = de_DeleteVpcLinkCommand;
@@ -2808,7 +2808,7 @@ const de_ExportApiCommand = async (output, context) => {
2808
2808
  const contents = (0, smithy_client_1.map)({
2809
2809
  $metadata: deserializeMetadata(output),
2810
2810
  });
2811
- const data = await collectBody(output.body, context);
2811
+ const data = await (0, smithy_client_1.collectBody)(output.body, context);
2812
2812
  contents.body = data;
2813
2813
  return contents;
2814
2814
  };
@@ -4079,7 +4079,7 @@ const de_ResetAuthorizersCacheCommand = async (output, context) => {
4079
4079
  const contents = (0, smithy_client_1.map)({
4080
4080
  $metadata: deserializeMetadata(output),
4081
4081
  });
4082
- await collectBody(output.body, context);
4082
+ await (0, smithy_client_1.collectBody)(output.body, context);
4083
4083
  return contents;
4084
4084
  };
4085
4085
  exports.de_ResetAuthorizersCacheCommand = de_ResetAuthorizersCacheCommand;
@@ -4112,7 +4112,7 @@ const de_TagResourceCommand = async (output, context) => {
4112
4112
  const contents = (0, smithy_client_1.map)({
4113
4113
  $metadata: deserializeMetadata(output),
4114
4114
  });
4115
- await collectBody(output.body, context);
4115
+ await (0, smithy_client_1.collectBody)(output.body, context);
4116
4116
  return contents;
4117
4117
  };
4118
4118
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -4151,7 +4151,7 @@ const de_UntagResourceCommand = async (output, context) => {
4151
4151
  const contents = (0, smithy_client_1.map)({
4152
4152
  $metadata: deserializeMetadata(output),
4153
4153
  });
4154
- await collectBody(output.body, context);
4154
+ await (0, smithy_client_1.collectBody)(output.body, context);
4155
4155
  return contents;
4156
4156
  };
4157
4157
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -5308,13 +5308,7 @@ const deserializeMetadata = (output) => ({
5308
5308
  extendedRequestId: output.headers["x-amz-id-2"],
5309
5309
  cfId: output.headers["x-amz-cf-id"],
5310
5310
  });
5311
- const collectBody = (streamBody = new Uint8Array(), context) => {
5312
- if (streamBody instanceof Uint8Array) {
5313
- return Promise.resolve(streamBody);
5314
- }
5315
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5316
- };
5317
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
5311
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
5318
5312
  const isSerializableHeaderValue = (value) => value !== undefined &&
5319
5313
  value !== null &&
5320
5314
  value !== "" &&
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { ApiGatewayV2ServiceException as __BaseException } from "../models/ApiGatewayV2ServiceException";
4
4
  import { AccessDeniedException, BadRequestException, ConflictException, NotFoundException, TooManyRequestsException, } from "../models/models_0";
@@ -5159,12 +5159,6 @@ const deserializeMetadata = (output) => ({
5159
5159
  extendedRequestId: output.headers["x-amz-id-2"],
5160
5160
  cfId: output.headers["x-amz-cf-id"],
5161
5161
  });
5162
- const collectBody = (streamBody = new Uint8Array(), context) => {
5163
- if (streamBody instanceof Uint8Array) {
5164
- return Promise.resolve(streamBody);
5165
- }
5166
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5167
- };
5168
5162
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
5169
5163
  const isSerializableHeaderValue = (value) => value !== undefined &&
5170
5164
  value !== null &&
@@ -145,7 +145,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
145
145
  */
146
146
  runtime?: string;
147
147
  /**
148
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
148
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
149
149
  * trait of an operation.
150
150
  */
151
151
  disableHostPrefix?: boolean;
@@ -1,6 +1,7 @@
1
1
  import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { Uint8ArrayBlobAdapter } from "@aws-sdk/util-stream";
4
5
  import { ApiGatewayV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApiGatewayV2Client";
5
6
  import { ExportApiRequest, ExportApiResponse } from "../models/models_0";
6
7
  /**
@@ -14,12 +15,18 @@ export { __MetadataBearer, $Command };
14
15
  */
15
16
  export interface ExportApiCommandInput extends ExportApiRequest {
16
17
  }
18
+ /**
19
+ * @public
20
+ */
21
+ export type ExportApiCommandOutputType = Omit<ExportApiResponse, "body"> & {
22
+ body?: Uint8ArrayBlobAdapter;
23
+ };
17
24
  /**
18
25
  * @public
19
26
  *
20
27
  * The output of {@link ExportApiCommand}.
21
28
  */
22
- export interface ExportApiCommandOutput extends ExportApiResponse, __MetadataBearer {
29
+ export interface ExportApiCommandOutput extends ExportApiCommandOutputType, __MetadataBearer {
23
30
  }
24
31
  export declare class ExportApiCommand extends $Command<ExportApiCommandInput, ExportApiCommandOutput, ApiGatewayV2ClientResolvedConfig> {
25
32
  readonly input: ExportApiCommandInput;
@@ -6,6 +6,7 @@ import {
6
6
  MetadataBearer as __MetadataBearer,
7
7
  MiddlewareStack,
8
8
  } from "@aws-sdk/types";
9
+ import { Uint8ArrayBlobAdapter } from "@aws-sdk/util-stream";
9
10
  import {
10
11
  ApiGatewayV2ClientResolvedConfig,
11
12
  ServiceInputTypes,
@@ -14,8 +15,14 @@ import {
14
15
  import { ExportApiRequest, ExportApiResponse } from "../models/models_0";
15
16
  export { __MetadataBearer, $Command };
16
17
  export interface ExportApiCommandInput extends ExportApiRequest {}
18
+ export type ExportApiCommandOutputType = Pick<
19
+ ExportApiResponse,
20
+ Exclude<keyof ExportApiResponse, "body">
21
+ > & {
22
+ body?: Uint8ArrayBlobAdapter;
23
+ };
17
24
  export interface ExportApiCommandOutput
18
- extends ExportApiResponse,
25
+ extends ExportApiCommandOutputType,
19
26
  __MetadataBearer {}
20
27
  export declare class ExportApiCommand extends $Command<
21
28
  ExportApiCommandInput,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-apigatewayv2",
3
3
  "description": "AWS SDK for JavaScript Apigatewayv2 Client for Node.js, Browser and React Native",
4
- "version": "3.354.0",
4
+ "version": "3.358.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,36 +21,37 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.354.0",
25
- "@aws-sdk/config-resolver": "3.354.0",
26
- "@aws-sdk/credential-provider-node": "3.354.0",
27
- "@aws-sdk/fetch-http-handler": "3.353.0",
28
- "@aws-sdk/hash-node": "3.347.0",
29
- "@aws-sdk/invalid-dependency": "3.347.0",
30
- "@aws-sdk/middleware-content-length": "3.347.0",
31
- "@aws-sdk/middleware-endpoint": "3.347.0",
32
- "@aws-sdk/middleware-host-header": "3.347.0",
33
- "@aws-sdk/middleware-logger": "3.347.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.354.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.354.0",
38
- "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.352.0",
40
- "@aws-sdk/node-config-provider": "3.354.0",
41
- "@aws-sdk/node-http-handler": "3.350.0",
42
- "@aws-sdk/smithy-client": "3.347.0",
43
- "@aws-sdk/types": "3.347.0",
44
- "@aws-sdk/url-parser": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.358.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.358.0",
27
+ "@aws-sdk/fetch-http-handler": "3.357.0",
28
+ "@aws-sdk/hash-node": "3.357.0",
29
+ "@aws-sdk/invalid-dependency": "3.357.0",
30
+ "@aws-sdk/middleware-content-length": "3.357.0",
31
+ "@aws-sdk/middleware-endpoint": "3.357.0",
32
+ "@aws-sdk/middleware-host-header": "3.357.0",
33
+ "@aws-sdk/middleware-logger": "3.357.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.357.0",
35
+ "@aws-sdk/middleware-retry": "3.357.0",
36
+ "@aws-sdk/middleware-serde": "3.357.0",
37
+ "@aws-sdk/middleware-signing": "3.357.0",
38
+ "@aws-sdk/middleware-stack": "3.357.0",
39
+ "@aws-sdk/middleware-user-agent": "3.357.0",
40
+ "@aws-sdk/node-config-provider": "3.357.0",
41
+ "@aws-sdk/node-http-handler": "3.357.0",
42
+ "@aws-sdk/smithy-client": "3.358.0",
43
+ "@aws-sdk/types": "3.357.0",
44
+ "@aws-sdk/url-parser": "3.357.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.354.0",
50
- "@aws-sdk/util-endpoints": "3.352.0",
51
- "@aws-sdk/util-retry": "3.347.0",
52
- "@aws-sdk/util-user-agent-browser": "3.347.0",
53
- "@aws-sdk/util-user-agent-node": "3.354.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.358.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.358.0",
50
+ "@aws-sdk/util-endpoints": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.357.0",
52
+ "@aws-sdk/util-stream": "3.358.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.357.0",
54
+ "@aws-sdk/util-user-agent-node": "3.357.0",
54
55
  "@aws-sdk/util-utf8": "3.310.0",
55
56
  "@smithy/protocol-http": "^1.0.1",
56
57
  "@smithy/types": "^1.0.0",