@aws-sdk/client-schemas 3.353.0 → 3.357.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.
@@ -846,7 +846,7 @@ const de_DeleteDiscovererCommand = async (output, context) => {
846
846
  const contents = (0, smithy_client_1.map)({
847
847
  $metadata: deserializeMetadata(output),
848
848
  });
849
- await collectBody(output.body, context);
849
+ await (0, smithy_client_1.collectBody)(output.body, context);
850
850
  return contents;
851
851
  };
852
852
  exports.de_DeleteDiscovererCommand = de_DeleteDiscovererCommand;
@@ -891,7 +891,7 @@ const de_DeleteRegistryCommand = async (output, context) => {
891
891
  const contents = (0, smithy_client_1.map)({
892
892
  $metadata: deserializeMetadata(output),
893
893
  });
894
- await collectBody(output.body, context);
894
+ await (0, smithy_client_1.collectBody)(output.body, context);
895
895
  return contents;
896
896
  };
897
897
  exports.de_DeleteRegistryCommand = de_DeleteRegistryCommand;
@@ -936,7 +936,7 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
936
936
  const contents = (0, smithy_client_1.map)({
937
937
  $metadata: deserializeMetadata(output),
938
938
  });
939
- await collectBody(output.body, context);
939
+ await (0, smithy_client_1.collectBody)(output.body, context);
940
940
  return contents;
941
941
  };
942
942
  exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
@@ -981,7 +981,7 @@ const de_DeleteSchemaCommand = async (output, context) => {
981
981
  const contents = (0, smithy_client_1.map)({
982
982
  $metadata: deserializeMetadata(output),
983
983
  });
984
- await collectBody(output.body, context);
984
+ await (0, smithy_client_1.collectBody)(output.body, context);
985
985
  return contents;
986
986
  };
987
987
  exports.de_DeleteSchemaCommand = de_DeleteSchemaCommand;
@@ -1026,7 +1026,7 @@ const de_DeleteSchemaVersionCommand = async (output, context) => {
1026
1026
  const contents = (0, smithy_client_1.map)({
1027
1027
  $metadata: deserializeMetadata(output),
1028
1028
  });
1029
- await collectBody(output.body, context);
1029
+ await (0, smithy_client_1.collectBody)(output.body, context);
1030
1030
  return contents;
1031
1031
  };
1032
1032
  exports.de_DeleteSchemaVersionCommand = de_DeleteSchemaVersionCommand;
@@ -1343,7 +1343,7 @@ const de_GetCodeBindingSourceCommand = async (output, context) => {
1343
1343
  const contents = (0, smithy_client_1.map)({
1344
1344
  $metadata: deserializeMetadata(output),
1345
1345
  });
1346
- const data = await collectBody(output.body, context);
1346
+ const data = await (0, smithy_client_1.collectBody)(output.body, context);
1347
1347
  contents.Body = data;
1348
1348
  return contents;
1349
1349
  };
@@ -1974,7 +1974,7 @@ const de_TagResourceCommand = async (output, context) => {
1974
1974
  const contents = (0, smithy_client_1.map)({
1975
1975
  $metadata: deserializeMetadata(output),
1976
1976
  });
1977
- await collectBody(output.body, context);
1977
+ await (0, smithy_client_1.collectBody)(output.body, context);
1978
1978
  return contents;
1979
1979
  };
1980
1980
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -2013,7 +2013,7 @@ const de_UntagResourceCommand = async (output, context) => {
2013
2013
  const contents = (0, smithy_client_1.map)({
2014
2014
  $metadata: deserializeMetadata(output),
2015
2015
  });
2016
- await collectBody(output.body, context);
2016
+ await (0, smithy_client_1.collectBody)(output.body, context);
2017
2017
  return contents;
2018
2018
  };
2019
2019
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -2433,13 +2433,7 @@ const deserializeMetadata = (output) => ({
2433
2433
  extendedRequestId: output.headers["x-amz-id-2"],
2434
2434
  cfId: output.headers["x-amz-cf-id"],
2435
2435
  });
2436
- const collectBody = (streamBody = new Uint8Array(), context) => {
2437
- if (streamBody instanceof Uint8Array) {
2438
- return Promise.resolve(streamBody);
2439
- }
2440
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2441
- };
2442
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2436
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2443
2437
  const isSerializableHeaderValue = (value) => value !== undefined &&
2444
2438
  value !== null &&
2445
2439
  value !== "" &&
@@ -1,4 +1,4 @@
1
- import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { BadRequestException, ConflictException, ForbiddenException, GoneException, InternalServerErrorException, NotFoundException, PreconditionFailedException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
@@ -2367,12 +2367,6 @@ const deserializeMetadata = (output) => ({
2367
2367
  extendedRequestId: output.headers["x-amz-id-2"],
2368
2368
  cfId: output.headers["x-amz-cf-id"],
2369
2369
  });
2370
- const collectBody = (streamBody = new Uint8Array(), context) => {
2371
- if (streamBody instanceof Uint8Array) {
2372
- return Promise.resolve(streamBody);
2373
- }
2374
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
2375
- };
2376
2370
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2377
2371
  const isSerializableHeaderValue = (value) => value !== undefined &&
2378
2372
  value !== null &&
@@ -104,7 +104,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
104
104
  */
105
105
  runtime?: string;
106
106
  /**
107
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
107
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
108
108
  * trait of an operation.
109
109
  */
110
110
  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 { GetCodeBindingSourceRequest, GetCodeBindingSourceResponse } from "../models/models_0";
5
6
  import { SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchemasClient";
6
7
  /**
@@ -14,12 +15,18 @@ export { __MetadataBearer, $Command };
14
15
  */
15
16
  export interface GetCodeBindingSourceCommandInput extends GetCodeBindingSourceRequest {
16
17
  }
18
+ /**
19
+ * @public
20
+ */
21
+ export type GetCodeBindingSourceCommandOutputType = Omit<GetCodeBindingSourceResponse, "Body"> & {
22
+ Body?: Uint8ArrayBlobAdapter;
23
+ };
17
24
  /**
18
25
  * @public
19
26
  *
20
27
  * The output of {@link GetCodeBindingSourceCommand}.
21
28
  */
22
- export interface GetCodeBindingSourceCommandOutput extends GetCodeBindingSourceResponse, __MetadataBearer {
29
+ export interface GetCodeBindingSourceCommandOutput extends GetCodeBindingSourceCommandOutputType, __MetadataBearer {
23
30
  }
24
31
  /**
25
32
  * @public
@@ -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
  GetCodeBindingSourceRequest,
11
12
  GetCodeBindingSourceResponse,
@@ -18,8 +19,14 @@ import {
18
19
  export { __MetadataBearer, $Command };
19
20
  export interface GetCodeBindingSourceCommandInput
20
21
  extends GetCodeBindingSourceRequest {}
22
+ export type GetCodeBindingSourceCommandOutputType = Pick<
23
+ GetCodeBindingSourceResponse,
24
+ Exclude<keyof GetCodeBindingSourceResponse, "Body">
25
+ > & {
26
+ Body?: Uint8ArrayBlobAdapter;
27
+ };
21
28
  export interface GetCodeBindingSourceCommandOutput
22
- extends GetCodeBindingSourceResponse,
29
+ extends GetCodeBindingSourceCommandOutputType,
23
30
  __MetadataBearer {}
24
31
  export declare class GetCodeBindingSourceCommand extends $Command<
25
32
  GetCodeBindingSourceCommandInput,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-schemas",
3
3
  "description": "AWS SDK for JavaScript Schemas Client for Node.js, Browser and React Native",
4
- "version": "3.353.0",
4
+ "version": "3.357.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,38 +21,39 @@
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.353.0",
25
- "@aws-sdk/config-resolver": "3.353.0",
26
- "@aws-sdk/credential-provider-node": "3.353.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.353.0",
36
- "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.353.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.353.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.357.0",
25
+ "@aws-sdk/config-resolver": "3.357.0",
26
+ "@aws-sdk/credential-provider-node": "3.357.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.357.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.353.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.353.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.357.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.357.0",
50
+ "@aws-sdk/util-endpoints": "3.357.0",
51
+ "@aws-sdk/util-retry": "3.357.0",
52
+ "@aws-sdk/util-stream": "3.357.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
- "@aws-sdk/util-waiter": "3.347.0",
56
+ "@aws-sdk/util-waiter": "3.357.0",
56
57
  "@smithy/protocol-http": "^1.0.1",
57
58
  "@smithy/types": "^1.0.0",
58
59
  "tslib": "^2.5.0",