@aws-sdk/client-api-gateway 3.658.0 → 3.662.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/dist-cjs/index.js +5 -9
- package/dist-es/protocols/Aws_restJson1.js +5 -13
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -1269,7 +1269,7 @@ var se_GetDeploymentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1269
1269
|
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1270
1270
|
b.p("deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
1271
1271
|
const query = (0, import_smithy_client.map)({
|
|
1272
|
-
[_e]: [() => input.embed !== void 0, () =>
|
|
1272
|
+
[_e]: [() => input.embed !== void 0, () => input[_e] || []]
|
|
1273
1273
|
});
|
|
1274
1274
|
let body;
|
|
1275
1275
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -1361,7 +1361,7 @@ var se_GetDomainNamesCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1361
1361
|
}, "se_GetDomainNamesCommand");
|
|
1362
1362
|
var se_GetExportCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1363
1363
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1364
|
-
const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
|
|
1364
|
+
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
1365
1365
|
[_ac]: input[_a]
|
|
1366
1366
|
});
|
|
1367
1367
|
b.bp("/restapis/{restApiId}/stages/{stageName}/exports/{exportType}");
|
|
@@ -1510,7 +1510,7 @@ var se_GetResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1510
1510
|
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
1511
1511
|
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
1512
1512
|
const query = (0, import_smithy_client.map)({
|
|
1513
|
-
[_e]: [() => input.embed !== void 0, () =>
|
|
1513
|
+
[_e]: [() => input.embed !== void 0, () => input[_e] || []]
|
|
1514
1514
|
});
|
|
1515
1515
|
let body;
|
|
1516
1516
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -1524,7 +1524,7 @@ var se_GetResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1524
1524
|
const query = (0, import_smithy_client.map)({
|
|
1525
1525
|
[_p]: [, input[_p]],
|
|
1526
1526
|
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
1527
|
-
[_e]: [() => input.embed !== void 0, () =>
|
|
1527
|
+
[_e]: [() => input.embed !== void 0, () => input[_e] || []]
|
|
1528
1528
|
});
|
|
1529
1529
|
let body;
|
|
1530
1530
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -1961,10 +1961,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1961
1961
|
b.bp("/tags/{resourceArn}");
|
|
1962
1962
|
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1963
1963
|
const query = (0, import_smithy_client.map)({
|
|
1964
|
-
[_tK]: [
|
|
1965
|
-
(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
1966
|
-
() => (input[_tK] || []).map((_entry) => _entry)
|
|
1967
|
-
]
|
|
1964
|
+
[_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
|
|
1968
1965
|
});
|
|
1969
1966
|
let body;
|
|
1970
1967
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
@@ -4805,7 +4802,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
4805
4802
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4806
4803
|
cfId: output.headers["x-amz-cf-id"]
|
|
4807
4804
|
}), "deserializeMetadata");
|
|
4808
|
-
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
4809
4805
|
var _a = "accepts";
|
|
4810
4806
|
var _ac = "accept";
|
|
4811
4807
|
var _cD = "contentDisposition";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, convertMap, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, convertMap, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { APIGatewayServiceException as __BaseException } from "../models/APIGatewayServiceException";
|
|
5
5
|
import { BadRequestException, ConflictException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
6
6
|
export const se_CreateApiKeyCommand = async (input, context) => {
|
|
@@ -634,7 +634,7 @@ export const se_GetDeploymentCommand = async (input, context) => {
|
|
|
634
634
|
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
635
635
|
b.p("deploymentId", () => input.deploymentId, "{deploymentId}", false);
|
|
636
636
|
const query = map({
|
|
637
|
-
[_e]: [() => input.embed !== void 0, () =>
|
|
637
|
+
[_e]: [() => input.embed !== void 0, () => input[_e] || []],
|
|
638
638
|
});
|
|
639
639
|
let body;
|
|
640
640
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -875,7 +875,7 @@ export const se_GetResourceCommand = async (input, context) => {
|
|
|
875
875
|
b.p("restApiId", () => input.restApiId, "{restApiId}", false);
|
|
876
876
|
b.p("resourceId", () => input.resourceId, "{resourceId}", false);
|
|
877
877
|
const query = map({
|
|
878
|
-
[_e]: [() => input.embed !== void 0, () =>
|
|
878
|
+
[_e]: [() => input.embed !== void 0, () => input[_e] || []],
|
|
879
879
|
});
|
|
880
880
|
let body;
|
|
881
881
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -889,7 +889,7 @@ export const se_GetResourcesCommand = async (input, context) => {
|
|
|
889
889
|
const query = map({
|
|
890
890
|
[_p]: [, input[_p]],
|
|
891
891
|
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
892
|
-
[_e]: [() => input.embed !== void 0, () =>
|
|
892
|
+
[_e]: [() => input.embed !== void 0, () => input[_e] || []],
|
|
893
893
|
});
|
|
894
894
|
let body;
|
|
895
895
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -1310,10 +1310,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
1310
1310
|
b.bp("/tags/{resourceArn}");
|
|
1311
1311
|
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1312
1312
|
const query = map({
|
|
1313
|
-
[_tK]: [
|
|
1314
|
-
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
1315
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
1316
|
-
],
|
|
1313
|
+
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
1317
1314
|
});
|
|
1318
1315
|
let body;
|
|
1319
1316
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
@@ -4131,11 +4128,6 @@ const deserializeMetadata = (output) => ({
|
|
|
4131
4128
|
cfId: output.headers["x-amz-cf-id"],
|
|
4132
4129
|
});
|
|
4133
4130
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4134
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
4135
|
-
value !== null &&
|
|
4136
|
-
value !== "" &&
|
|
4137
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
4138
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
4139
4131
|
const _a = "accepts";
|
|
4140
4132
|
const _ac = "accept";
|
|
4141
4133
|
const _cD = "contentDisposition";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-api-gateway",
|
|
3
3
|
"description": "AWS SDK for JavaScript Api Gateway Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.662.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-api-gateway",
|
|
@@ -20,45 +20,45 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-sdk-api-gateway": "3.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
33
|
-
"@aws-sdk/types": "3.
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
37
|
-
"@smithy/config-resolver": "^3.0.
|
|
38
|
-
"@smithy/core": "^2.4.
|
|
39
|
-
"@smithy/fetch-http-handler": "^3.2.
|
|
40
|
-
"@smithy/hash-node": "^3.0.
|
|
41
|
-
"@smithy/invalid-dependency": "^3.0.
|
|
42
|
-
"@smithy/middleware-content-length": "^3.0.
|
|
43
|
-
"@smithy/middleware-endpoint": "^3.1.
|
|
44
|
-
"@smithy/middleware-retry": "^3.0.
|
|
45
|
-
"@smithy/middleware-serde": "^3.0.
|
|
46
|
-
"@smithy/middleware-stack": "^3.0.
|
|
47
|
-
"@smithy/node-config-provider": "^3.1.
|
|
48
|
-
"@smithy/node-http-handler": "^3.2.
|
|
49
|
-
"@smithy/protocol-http": "^4.1.
|
|
50
|
-
"@smithy/smithy-client": "^3.3.
|
|
51
|
-
"@smithy/types": "^3.
|
|
52
|
-
"@smithy/url-parser": "^3.0.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.662.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.662.0",
|
|
25
|
+
"@aws-sdk/core": "3.662.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.662.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.662.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.662.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.662.0",
|
|
30
|
+
"@aws-sdk/middleware-sdk-api-gateway": "3.662.0",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.662.0",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "3.662.0",
|
|
33
|
+
"@aws-sdk/types": "3.662.0",
|
|
34
|
+
"@aws-sdk/util-endpoints": "3.662.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-browser": "3.662.0",
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.662.0",
|
|
37
|
+
"@smithy/config-resolver": "^3.0.9",
|
|
38
|
+
"@smithy/core": "^2.4.7",
|
|
39
|
+
"@smithy/fetch-http-handler": "^3.2.9",
|
|
40
|
+
"@smithy/hash-node": "^3.0.7",
|
|
41
|
+
"@smithy/invalid-dependency": "^3.0.7",
|
|
42
|
+
"@smithy/middleware-content-length": "^3.0.9",
|
|
43
|
+
"@smithy/middleware-endpoint": "^3.1.4",
|
|
44
|
+
"@smithy/middleware-retry": "^3.0.22",
|
|
45
|
+
"@smithy/middleware-serde": "^3.0.7",
|
|
46
|
+
"@smithy/middleware-stack": "^3.0.7",
|
|
47
|
+
"@smithy/node-config-provider": "^3.1.8",
|
|
48
|
+
"@smithy/node-http-handler": "^3.2.4",
|
|
49
|
+
"@smithy/protocol-http": "^4.1.4",
|
|
50
|
+
"@smithy/smithy-client": "^3.3.6",
|
|
51
|
+
"@smithy/types": "^3.5.0",
|
|
52
|
+
"@smithy/url-parser": "^3.0.7",
|
|
53
53
|
"@smithy/util-base64": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
55
55
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
58
|
-
"@smithy/util-endpoints": "^2.1.
|
|
59
|
-
"@smithy/util-middleware": "^3.0.
|
|
60
|
-
"@smithy/util-retry": "^3.0.
|
|
61
|
-
"@smithy/util-stream": "^3.1.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^3.0.22",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^3.0.22",
|
|
58
|
+
"@smithy/util-endpoints": "^2.1.3",
|
|
59
|
+
"@smithy/util-middleware": "^3.0.7",
|
|
60
|
+
"@smithy/util-retry": "^3.0.7",
|
|
61
|
+
"@smithy/util-stream": "^3.1.9",
|
|
62
62
|
"@smithy/util-utf8": "^3.0.0",
|
|
63
63
|
"tslib": "^2.6.2"
|
|
64
64
|
},
|