diff --git a/clients/client-accessanalyzer/package.json b/clients/client-accessanalyzer/package.json index 997323ef91ad7..99e2ea7899f93 100644 --- a/clients/client-accessanalyzer/package.json +++ b/clients/client-accessanalyzer/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-amp/package.json b/clients/client-amp/package.json index 690ba5a65a342..d5e2412fe027e 100644 --- a/clients/client-amp/package.json +++ b/clients/client-amp/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-amplifyuibuilder/package.json b/clients/client-amplifyuibuilder/package.json index 328f027370847..049042cebcd36 100644 --- a/clients/client-amplifyuibuilder/package.json +++ b/clients/client-amplifyuibuilder/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-app-mesh/package.json b/clients/client-app-mesh/package.json index 239c2851103fd..0748cc6376af5 100644 --- a/clients/client-app-mesh/package.json +++ b/clients/client-app-mesh/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-appfabric/package.json b/clients/client-appfabric/package.json index 55c385054d6f7..3db3f1ddb5b46 100644 --- a/clients/client-appfabric/package.json +++ b/clients/client-appfabric/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-appflow/package.json b/clients/client-appflow/package.json index 29bfdb7a0ea6f..92b04384971eb 100644 --- a/clients/client-appflow/package.json +++ b/clients/client-appflow/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-appintegrations/package.json b/clients/client-appintegrations/package.json index b202d5b2ee986..b38e4d4912504 100644 --- a/clients/client-appintegrations/package.json +++ b/clients/client-appintegrations/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-application-discovery-service/package.json b/clients/client-application-discovery-service/package.json index e8a34976c40cf..29bc7d8de1388 100644 --- a/clients/client-application-discovery-service/package.json +++ b/clients/client-application-discovery-service/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-apptest/package.json b/clients/client-apptest/package.json index 1c18155e0b8e0..169ee1967d6ab 100644 --- a/clients/client-apptest/package.json +++ b/clients/client-apptest/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-athena/package.json b/clients/client-athena/package.json index 89e9921c62d7c..b011d8c62f804 100644 --- a/clients/client-athena/package.json +++ b/clients/client-athena/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-b2bi/package.json b/clients/client-b2bi/package.json index 59ffced793d8f..656b6a1a4678d 100644 --- a/clients/client-b2bi/package.json +++ b/clients/client-b2bi/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-backup/package.json b/clients/client-backup/package.json index f7e0cf9db36d9..9cc4bb9721c9a 100644 --- a/clients/client-backup/package.json +++ b/clients/client-backup/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-bedrock-agent/package.json b/clients/client-bedrock-agent/package.json index 57689a0d6b533..a22ae69a76d40 100644 --- a/clients/client-bedrock-agent/package.json +++ b/clients/client-bedrock-agent/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-bedrock/package.json b/clients/client-bedrock/package.json index 637b5dc35b7d1..d5ccfb05464d4 100644 --- a/clients/client-bedrock/package.json +++ b/clients/client-bedrock/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-billingconductor/package.json b/clients/client-billingconductor/package.json index 166a32c8bdaca..5e1028f88c433 100644 --- a/clients/client-billingconductor/package.json +++ b/clients/client-billingconductor/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-braket/package.json b/clients/client-braket/package.json index a4766a5d847c1..13b7aac7a9ef1 100644 --- a/clients/client-braket/package.json +++ b/clients/client-braket/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-chime-sdk-identity/package.json b/clients/client-chime-sdk-identity/package.json index f629bfb0fdd93..81f217c4da0d2 100644 --- a/clients/client-chime-sdk-identity/package.json +++ b/clients/client-chime-sdk-identity/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-chime-sdk-media-pipelines/package.json b/clients/client-chime-sdk-media-pipelines/package.json index 57847a2edd3f3..51072cbaaa4f9 100644 --- a/clients/client-chime-sdk-media-pipelines/package.json +++ b/clients/client-chime-sdk-media-pipelines/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-chime-sdk-meetings/package.json b/clients/client-chime-sdk-meetings/package.json index 40035e4b5c19c..6d13c5168a76a 100644 --- a/clients/client-chime-sdk-meetings/package.json +++ b/clients/client-chime-sdk-meetings/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-chime-sdk-messaging/package.json b/clients/client-chime-sdk-messaging/package.json index 9b3c52056799e..894509956f4c0 100644 --- a/clients/client-chime-sdk-messaging/package.json +++ b/clients/client-chime-sdk-messaging/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-chime/package.json b/clients/client-chime/package.json index 659f0730836f5..264afe005ed36 100644 --- a/clients/client-chime/package.json +++ b/clients/client-chime/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-cloudcontrol/package.json b/clients/client-cloudcontrol/package.json index 24a67c339a161..b4efb2fcb9cf8 100644 --- a/clients/client-cloudcontrol/package.json +++ b/clients/client-cloudcontrol/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-cloudformation/package.json b/clients/client-cloudformation/package.json index 83ba3ced5c6de..67320bd4a3e15 100644 --- a/clients/client-cloudformation/package.json +++ b/clients/client-cloudformation/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-cloudwatch-logs/package.json b/clients/client-cloudwatch-logs/package.json index b01af70665fb7..066aedaeef110 100644 --- a/clients/client-cloudwatch-logs/package.json +++ b/clients/client-cloudwatch-logs/package.json @@ -61,13 +61,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-codecatalyst/package.json b/clients/client-codecatalyst/package.json index 1309e6c1117ed..11a781f9c328f 100644 --- a/clients/client-codecatalyst/package.json +++ b/clients/client-codecatalyst/package.json @@ -56,13 +56,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-codecommit/package.json b/clients/client-codecommit/package.json index 0d6ad923674e1..170b0d0da4bff 100644 --- a/clients/client-codecommit/package.json +++ b/clients/client-codecommit/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-codeguru-reviewer/package.json b/clients/client-codeguru-reviewer/package.json index a1be1985e47e1..de6b3c08cc6d4 100644 --- a/clients/client-codeguru-reviewer/package.json +++ b/clients/client-codeguru-reviewer/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-codeguru-security/package.json b/clients/client-codeguru-security/package.json index f479d3557b3eb..812f2a105c55c 100644 --- a/clients/client-codeguru-security/package.json +++ b/clients/client-codeguru-security/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-codeguruprofiler/package.json b/clients/client-codeguruprofiler/package.json index 0f865c6ee030a..b56d206a59782 100644 --- a/clients/client-codeguruprofiler/package.json +++ b/clients/client-codeguruprofiler/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-stream": "^3.1.9", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-codepipeline/package.json b/clients/client-codepipeline/package.json index c5effee3c7546..26669c0f1e294 100644 --- a/clients/client-codepipeline/package.json +++ b/clients/client-codepipeline/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-codestar-notifications/package.json b/clients/client-codestar-notifications/package.json index 88b40128f8e22..233a5d453316e 100644 --- a/clients/client-codestar-notifications/package.json +++ b/clients/client-codestar-notifications/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-comprehend/package.json b/clients/client-comprehend/package.json index 39b1b605135c1..0535772b5b068 100644 --- a/clients/client-comprehend/package.json +++ b/clients/client-comprehend/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-comprehendmedical/package.json b/clients/client-comprehendmedical/package.json index 8a8f9b7605402..c9c134ecc1c57 100644 --- a/clients/client-comprehendmedical/package.json +++ b/clients/client-comprehendmedical/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-connect/package.json b/clients/client-connect/package.json index af2f6cece397e..ca6d5810651c6 100644 --- a/clients/client-connect/package.json +++ b/clients/client-connect/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-connectcases/package.json b/clients/client-connectcases/package.json index aae8ac4b520f3..b22e4bc03a4ec 100644 --- a/clients/client-connectcases/package.json +++ b/clients/client-connectcases/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-connectparticipant/package.json b/clients/client-connectparticipant/package.json index e31e78ea871ae..1611187c9e379 100644 --- a/clients/client-connectparticipant/package.json +++ b/clients/client-connectparticipant/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-dataexchange/package.json b/clients/client-dataexchange/package.json index b33746175dd50..df5363cae26a2 100644 --- a/clients/client-dataexchange/package.json +++ b/clients/client-dataexchange/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-datasync/package.json b/clients/client-datasync/package.json index 5ac537b7d7996..bdf2afd37a7c0 100644 --- a/clients/client-datasync/package.json +++ b/clients/client-datasync/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-datazone/package.json b/clients/client-datazone/package.json index 11fc8a4d7ca85..e154322af8116 100644 --- a/clients/client-datazone/package.json +++ b/clients/client-datazone/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-deadline/package.json b/clients/client-deadline/package.json index d5c4dc6192abd..dde97efcbe22a 100644 --- a/clients/client-deadline/package.json +++ b/clients/client-deadline/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-devops-guru/package.json b/clients/client-devops-guru/package.json index a231a666be01f..d51fe6ee309e6 100644 --- a/clients/client-devops-guru/package.json +++ b/clients/client-devops-guru/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-directory-service-data/package.json b/clients/client-directory-service-data/package.json index e56f8485ec1fd..9a6005cba2f91 100644 --- a/clients/client-directory-service-data/package.json +++ b/clients/client-directory-service-data/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-docdb-elastic/package.json b/clients/client-docdb-elastic/package.json index 36a2c644b7494..47a6ed758065e 100644 --- a/clients/client-docdb-elastic/package.json +++ b/clients/client-docdb-elastic/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-dynamodb/package.json b/clients/client-dynamodb/package.json index 1fec464bcfd33..cbfedce11bfcf 100644 --- a/clients/client-dynamodb/package.json +++ b/clients/client-dynamodb/package.json @@ -60,13 +60,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-ebs/package.json b/clients/client-ebs/package.json index 204e8b53f8804..1d9a8b809bf0e 100644 --- a/clients/client-ebs/package.json +++ b/clients/client-ebs/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-stream": "^3.1.9", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-ec2/package.json b/clients/client-ec2/package.json index 239a4b14b6b69..1cc1b0249c9c1 100644 --- a/clients/client-ec2/package.json +++ b/clients/client-ec2/package.json @@ -60,13 +60,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-ecs/package.json b/clients/client-ecs/package.json index de00c53213a3a..d3c7c36b47460 100644 --- a/clients/client-ecs/package.json +++ b/clients/client-ecs/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-efs/package.json b/clients/client-efs/package.json index e2b93938d4c2f..cec590956eb7c 100644 --- a/clients/client-efs/package.json +++ b/clients/client-efs/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-eks/package.json b/clients/client-eks/package.json index 1ce70dc2e4c5b..b74e6405a9625 100644 --- a/clients/client-eks/package.json +++ b/clients/client-eks/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-emr-containers/package.json b/clients/client-emr-containers/package.json index 5d75fec05367e..52b001d312ea3 100644 --- a/clients/client-emr-containers/package.json +++ b/clients/client-emr-containers/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-emr-serverless/package.json b/clients/client-emr-serverless/package.json index 277a5c69e134a..66dbbde45e2b6 100644 --- a/clients/client-emr-serverless/package.json +++ b/clients/client-emr-serverless/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-finspace-data/package.json b/clients/client-finspace-data/package.json index c6b0fa8bd8956..9ed58ef493cd7 100644 --- a/clients/client-finspace-data/package.json +++ b/clients/client-finspace-data/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-finspace/package.json b/clients/client-finspace/package.json index a1726f3eebd1e..420e22d74b716 100644 --- a/clients/client-finspace/package.json +++ b/clients/client-finspace/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-fis/package.json b/clients/client-fis/package.json index 74a691164032a..856bfa7e9f8d4 100644 --- a/clients/client-fis/package.json +++ b/clients/client-fis/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-fsx/package.json b/clients/client-fsx/package.json index 9b182b13ed100..73a7ee252ed7d 100644 --- a/clients/client-fsx/package.json +++ b/clients/client-fsx/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-global-accelerator/package.json b/clients/client-global-accelerator/package.json index 245c8bd23b819..bed5c811c0a06 100644 --- a/clients/client-global-accelerator/package.json +++ b/clients/client-global-accelerator/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-grafana/package.json b/clients/client-grafana/package.json index 50fbef4775b1c..21b8396403283 100644 --- a/clients/client-grafana/package.json +++ b/clients/client-grafana/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-greengrassv2/package.json b/clients/client-greengrassv2/package.json index f0e31cb172eaa..1f5ecac1c0e3f 100644 --- a/clients/client-greengrassv2/package.json +++ b/clients/client-greengrassv2/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-guardduty/package.json b/clients/client-guardduty/package.json index d51c80134876e..c1d462f5deea5 100644 --- a/clients/client-guardduty/package.json +++ b/clients/client-guardduty/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-healthlake/package.json b/clients/client-healthlake/package.json index e3c9b889ab88c..6b03e904806ed 100644 --- a/clients/client-healthlake/package.json +++ b/clients/client-healthlake/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-imagebuilder/package.json b/clients/client-imagebuilder/package.json index df41eeebbd882..1545d83eb58e5 100644 --- a/clients/client-imagebuilder/package.json +++ b/clients/client-imagebuilder/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-inspector2/package.json b/clients/client-inspector2/package.json index cbde08ecf1179..14d4713edef30 100644 --- a/clients/client-inspector2/package.json +++ b/clients/client-inspector2/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-internetmonitor/package.json b/clients/client-internetmonitor/package.json index 604cf96876256..9969c89a7d766 100644 --- a/clients/client-internetmonitor/package.json +++ b/clients/client-internetmonitor/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-iot-wireless/package.json b/clients/client-iot-wireless/package.json index 721959a867d36..72f726f9b93ac 100644 --- a/clients/client-iot-wireless/package.json +++ b/clients/client-iot-wireless/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-stream": "^3.1.9", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-iot/package.json b/clients/client-iot/package.json index 98566844d3646..e9e788d351761 100644 --- a/clients/client-iot/package.json +++ b/clients/client-iot/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-iotdeviceadvisor/package.json b/clients/client-iotdeviceadvisor/package.json index f92b64705c29f..1fd8be3b9cc07 100644 --- a/clients/client-iotdeviceadvisor/package.json +++ b/clients/client-iotdeviceadvisor/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-iotfleethub/package.json b/clients/client-iotfleethub/package.json index 9f30c9491d570..9c7181082db01 100644 --- a/clients/client-iotfleethub/package.json +++ b/clients/client-iotfleethub/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-iotsitewise/package.json b/clients/client-iotsitewise/package.json index 539977713384c..3ceb4c380545a 100644 --- a/clients/client-iotsitewise/package.json +++ b/clients/client-iotsitewise/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-ivs-realtime/package.json b/clients/client-ivs-realtime/package.json index 3de9f7da7cddf..47f31bf292011 100644 --- a/clients/client-ivs-realtime/package.json +++ b/clients/client-ivs-realtime/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-kendra-ranking/package.json b/clients/client-kendra-ranking/package.json index e81539fc28a40..223bd2b1b6ca6 100644 --- a/clients/client-kendra-ranking/package.json +++ b/clients/client-kendra-ranking/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-kendra/package.json b/clients/client-kendra/package.json index 90eb01c4a8184..147b38400fcd6 100644 --- a/clients/client-kendra/package.json +++ b/clients/client-kendra/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-lookoutequipment/package.json b/clients/client-lookoutequipment/package.json index 24984db6f62c1..703c97dd0788e 100644 --- a/clients/client-lookoutequipment/package.json +++ b/clients/client-lookoutequipment/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-lookoutvision/package.json b/clients/client-lookoutvision/package.json index 5e6b948647be3..4306e33e91822 100644 --- a/clients/client-lookoutvision/package.json +++ b/clients/client-lookoutvision/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-m2/package.json b/clients/client-m2/package.json index f9ef4cbe5960f..86efb67fa600b 100644 --- a/clients/client-m2/package.json +++ b/clients/client-m2/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-macie2/package.json b/clients/client-macie2/package.json index 91eff978ad1af..f22956670b311 100644 --- a/clients/client-macie2/package.json +++ b/clients/client-macie2/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-mailmanager/package.json b/clients/client-mailmanager/package.json index e3002c861ce26..e8d3d48c0ec83 100644 --- a/clients/client-mailmanager/package.json +++ b/clients/client-mailmanager/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-managedblockchain/package.json b/clients/client-managedblockchain/package.json index 17b4c3787131f..eb8fead8ef261 100644 --- a/clients/client-managedblockchain/package.json +++ b/clients/client-managedblockchain/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-marketplace-catalog/package.json b/clients/client-marketplace-catalog/package.json index 9928fde70c8ed..6fb24364dfcc3 100644 --- a/clients/client-marketplace-catalog/package.json +++ b/clients/client-marketplace-catalog/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-marketplace-deployment/package.json b/clients/client-marketplace-deployment/package.json index 6ecf8918d9cdc..bc4b8994d81bc 100644 --- a/clients/client-marketplace-deployment/package.json +++ b/clients/client-marketplace-deployment/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-mediaconvert/package.json b/clients/client-mediaconvert/package.json index a1d5f05c7c401..8f39ad729dfc4 100644 --- a/clients/client-mediaconvert/package.json +++ b/clients/client-mediaconvert/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-medialive/package.json b/clients/client-medialive/package.json index 3f38c7d654b6b..50df3287e81f9 100644 --- a/clients/client-medialive/package.json +++ b/clients/client-medialive/package.json @@ -60,13 +60,13 @@ "@smithy/util-stream": "^3.1.9", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-mediapackagev2/package.json b/clients/client-mediapackagev2/package.json index 320bc0527e2b0..502ece0207862 100644 --- a/clients/client-mediapackagev2/package.json +++ b/clients/client-mediapackagev2/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-medical-imaging/package.json b/clients/client-medical-imaging/package.json index 60175fa0c6438..95f05ecf9c469 100644 --- a/clients/client-medical-imaging/package.json +++ b/clients/client-medical-imaging/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-stream": "^3.1.9", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-mgn/package.json b/clients/client-mgn/package.json index 4e863fd5fbb9a..d751e4f037053 100644 --- a/clients/client-mgn/package.json +++ b/clients/client-mgn/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-migration-hub-refactor-spaces/package.json b/clients/client-migration-hub-refactor-spaces/package.json index 49a65b20ca330..df7ab63ed2619 100644 --- a/clients/client-migration-hub-refactor-spaces/package.json +++ b/clients/client-migration-hub-refactor-spaces/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-migrationhuborchestrator/package.json b/clients/client-migrationhuborchestrator/package.json index 2fccc5a8ce3b2..3241cb759b120 100644 --- a/clients/client-migrationhuborchestrator/package.json +++ b/clients/client-migrationhuborchestrator/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-mq/package.json b/clients/client-mq/package.json index 6091d623ba65f..16e31dbfa25a1 100644 --- a/clients/client-mq/package.json +++ b/clients/client-mq/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-networkmanager/package.json b/clients/client-networkmanager/package.json index 3e5ed6bd90b2a..65eb4bd9edcbc 100644 --- a/clients/client-networkmanager/package.json +++ b/clients/client-networkmanager/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-networkmonitor/package.json b/clients/client-networkmonitor/package.json index 49c85905cac41..09b063232724c 100644 --- a/clients/client-networkmonitor/package.json +++ b/clients/client-networkmonitor/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-nimble/package.json b/clients/client-nimble/package.json index 8bff3bfac5e79..cc0ebe64fd8c9 100644 --- a/clients/client-nimble/package.json +++ b/clients/client-nimble/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-omics/package.json b/clients/client-omics/package.json index d0f82b3fd8ae3..caab18a88b2c6 100644 --- a/clients/client-omics/package.json +++ b/clients/client-omics/package.json @@ -60,13 +60,13 @@ "@smithy/util-stream": "^3.1.9", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-opensearchserverless/package.json b/clients/client-opensearchserverless/package.json index 32adae907aac0..b43462b22b704 100644 --- a/clients/client-opensearchserverless/package.json +++ b/clients/client-opensearchserverless/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-pca-connector-ad/package.json b/clients/client-pca-connector-ad/package.json index 33d47be377aa4..39fdd34962c48 100644 --- a/clients/client-pca-connector-ad/package.json +++ b/clients/client-pca-connector-ad/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-pca-connector-scep/package.json b/clients/client-pca-connector-scep/package.json index ec53b7acea2cf..ef297075e62e7 100644 --- a/clients/client-pca-connector-scep/package.json +++ b/clients/client-pca-connector-scep/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-pcs/package.json b/clients/client-pcs/package.json index 9f10c1c912df9..9c54b71e896ec 100644 --- a/clients/client-pcs/package.json +++ b/clients/client-pcs/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-pinpoint-sms-voice-v2/package.json b/clients/client-pinpoint-sms-voice-v2/package.json index d9e40daf919d8..72cbfff7e2a52 100644 --- a/clients/client-pinpoint-sms-voice-v2/package.json +++ b/clients/client-pinpoint-sms-voice-v2/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-proton/package.json b/clients/client-proton/package.json index 3dda3ae6776a2..686fd38ee57ec 100644 --- a/clients/client-proton/package.json +++ b/clients/client-proton/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-qbusiness/package.json b/clients/client-qbusiness/package.json index 621d63bbcb24a..6abfbe65bf205 100644 --- a/clients/client-qbusiness/package.json +++ b/clients/client-qbusiness/package.json @@ -63,13 +63,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-qconnect/package.json b/clients/client-qconnect/package.json index 6667ab192ad06..dc781228a2f68 100644 --- a/clients/client-qconnect/package.json +++ b/clients/client-qconnect/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-redshift-data/package.json b/clients/client-redshift-data/package.json index f1c808dbc0048..7b443234ffc16 100644 --- a/clients/client-redshift-data/package.json +++ b/clients/client-redshift-data/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-rekognition/package.json b/clients/client-rekognition/package.json index e8f84ba12a288..5a1c00360be99 100644 --- a/clients/client-rekognition/package.json +++ b/clients/client-rekognition/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-resiliencehub/package.json b/clients/client-resiliencehub/package.json index 225561f4663f8..e1a32973a1535 100644 --- a/clients/client-resiliencehub/package.json +++ b/clients/client-resiliencehub/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-resource-explorer-2/package.json b/clients/client-resource-explorer-2/package.json index 8056123f6738e..ec57082af6e0f 100644 --- a/clients/client-resource-explorer-2/package.json +++ b/clients/client-resource-explorer-2/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-robomaker/package.json b/clients/client-robomaker/package.json index a2777bbcbe524..7991a5ddb84c7 100644 --- a/clients/client-robomaker/package.json +++ b/clients/client-robomaker/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-route53-recovery-control-config/package.json b/clients/client-route53-recovery-control-config/package.json index 439a7bae2af9c..d86454e80b260 100644 --- a/clients/client-route53-recovery-control-config/package.json +++ b/clients/client-route53-recovery-control-config/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-route53profiles/package.json b/clients/client-route53profiles/package.json index a39b6d55c5150..2e9dcbe401e98 100644 --- a/clients/client-route53profiles/package.json +++ b/clients/client-route53profiles/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-route53resolver/package.json b/clients/client-route53resolver/package.json index 1e83975e90b6b..effabb58b0dc1 100644 --- a/clients/client-route53resolver/package.json +++ b/clients/client-route53resolver/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-s3-control/package.json b/clients/client-s3-control/package.json index 3b8f6ec0a80d4..4f2b6dfba6327 100644 --- a/clients/client-s3-control/package.json +++ b/clients/client-s3-control/package.json @@ -66,6 +66,7 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, @@ -73,7 +74,6 @@ "@tsconfig/node16": "16.1.3", "@types/mocha": "^8.0.4", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-sagemaker-geospatial/package.json b/clients/client-sagemaker-geospatial/package.json index 79f133f44ad8e..1d56c6195dfe5 100644 --- a/clients/client-sagemaker-geospatial/package.json +++ b/clients/client-sagemaker-geospatial/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-stream": "^3.1.9", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-sagemaker/package.json b/clients/client-sagemaker/package.json index 2253abeab1ba7..d7365dfa92df6 100644 --- a/clients/client-sagemaker/package.json +++ b/clients/client-sagemaker/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-savingsplans/package.json b/clients/client-savingsplans/package.json index 8a07fb4ace5e6..3bab9eead44f4 100644 --- a/clients/client-savingsplans/package.json +++ b/clients/client-savingsplans/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-scheduler/package.json b/clients/client-scheduler/package.json index 3c1bd27ff5655..ed2bbbf7a584d 100644 --- a/clients/client-scheduler/package.json +++ b/clients/client-scheduler/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-schemas/package.json b/clients/client-schemas/package.json index b24e2cfc90f4e..8004a4215a0f2 100644 --- a/clients/client-schemas/package.json +++ b/clients/client-schemas/package.json @@ -60,13 +60,13 @@ "@smithy/util-stream": "^3.1.9", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-secrets-manager/package.json b/clients/client-secrets-manager/package.json index 94dbc83039674..bf7335ec3294f 100644 --- a/clients/client-secrets-manager/package.json +++ b/clients/client-secrets-manager/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-service-catalog-appregistry/package.json b/clients/client-service-catalog-appregistry/package.json index 383d3e3a311c5..06f3605b4b39b 100644 --- a/clients/client-service-catalog-appregistry/package.json +++ b/clients/client-service-catalog-appregistry/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-service-catalog/package.json b/clients/client-service-catalog/package.json index 881c55f976ea5..8fc8df2dd84d1 100644 --- a/clients/client-service-catalog/package.json +++ b/clients/client-service-catalog/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-servicediscovery/package.json b/clients/client-servicediscovery/package.json index 441b6ff429f55..fa14dc4e69559 100644 --- a/clients/client-servicediscovery/package.json +++ b/clients/client-servicediscovery/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-sfn/package.json b/clients/client-sfn/package.json index e75a5df3afd0c..8b8b767450530 100644 --- a/clients/client-sfn/package.json +++ b/clients/client-sfn/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-signer/package.json b/clients/client-signer/package.json index a40e0b3176252..dc3806d7aa490 100644 --- a/clients/client-signer/package.json +++ b/clients/client-signer/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-simspaceweaver/package.json b/clients/client-simspaceweaver/package.json index 66f3e8ba1dc44..66904561fa96f 100644 --- a/clients/client-simspaceweaver/package.json +++ b/clients/client-simspaceweaver/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-snow-device-management/package.json b/clients/client-snow-device-management/package.json index fa1a6634a867f..e4116f020e153 100644 --- a/clients/client-snow-device-management/package.json +++ b/clients/client-snow-device-management/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-socialmessaging/src/runtimeConfig.browser.ts b/clients/client-socialmessaging/src/runtimeConfig.browser.ts index 357b9538c2835..0160a311048f8 100644 --- a/clients/client-socialmessaging/src/runtimeConfig.browser.ts +++ b/clients/client-socialmessaging/src/runtimeConfig.browser.ts @@ -3,7 +3,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { Sha256 } from "@aws-crypto/sha256-browser"; -import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; +import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser"; import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver"; import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler"; import { invalidProvider } from "@smithy/invalid-dependency"; @@ -31,7 +31,7 @@ export const getRuntimeConfig = (config: SocialMessagingClientConfig) => { config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), + createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS, region: config?.region ?? invalidProvider("Region is missing"), requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider), diff --git a/clients/client-socialmessaging/src/runtimeConfig.ts b/clients/client-socialmessaging/src/runtimeConfig.ts index 57a13a505d8e0..6047ba3d0c14e 100644 --- a/clients/client-socialmessaging/src/runtimeConfig.ts +++ b/clients/client-socialmessaging/src/runtimeConfig.ts @@ -4,7 +4,7 @@ import packageInfo from "../package.json"; // eslint-disable-line import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; -import { NODE_APP_ID_CONFIG_OPTIONS, defaultUserAgent } from "@aws-sdk/util-user-agent-node"; +import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node"; import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, @@ -41,7 +41,7 @@ export const getRuntimeConfig = (config: SocialMessagingClientConfig) => { credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), + createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider), diff --git a/clients/client-ssm-contacts/package.json b/clients/client-ssm-contacts/package.json index e2270254eed01..c7b8b55d0841b 100644 --- a/clients/client-ssm-contacts/package.json +++ b/clients/client-ssm-contacts/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-ssm-incidents/package.json b/clients/client-ssm-incidents/package.json index 15bc2c10c84b9..5aef5ced5ae95 100644 --- a/clients/client-ssm-incidents/package.json +++ b/clients/client-ssm-incidents/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-ssm/package.json b/clients/client-ssm/package.json index 8c62f78776298..c9e708fccc8f4 100644 --- a/clients/client-ssm/package.json +++ b/clients/client-ssm/package.json @@ -59,13 +59,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", "@smithy/util-waiter": "^3.1.6", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-sso-admin/package.json b/clients/client-sso-admin/package.json index e9a8da3e8aa1e..8b60112b384f3 100644 --- a/clients/client-sso-admin/package.json +++ b/clients/client-sso-admin/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-supplychain/package.json b/clients/client-supplychain/package.json index a022a20a6be0e..fb5dd1e250548 100644 --- a/clients/client-supplychain/package.json +++ b/clients/client-supplychain/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-textract/package.json b/clients/client-textract/package.json index 99d8730b705fe..e21185427b0f8 100644 --- a/clients/client-textract/package.json +++ b/clients/client-textract/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-timestream-query/package.json b/clients/client-timestream-query/package.json index 25ca561ca75f7..020c3512aa474 100644 --- a/clients/client-timestream-query/package.json +++ b/clients/client-timestream-query/package.json @@ -59,13 +59,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-timestream-write/package.json b/clients/client-timestream-write/package.json index d7e014e004e91..ae2bef9d6f553 100644 --- a/clients/client-timestream-write/package.json +++ b/clients/client-timestream-write/package.json @@ -59,13 +59,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-translate/package.json b/clients/client-translate/package.json index dd70dbd4a8e5d..3f27a922cbf35 100644 --- a/clients/client-translate/package.json +++ b/clients/client-translate/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-verifiedpermissions/package.json b/clients/client-verifiedpermissions/package.json index 9a97e16e60055..96c841d43868c 100644 --- a/clients/client-verifiedpermissions/package.json +++ b/clients/client-verifiedpermissions/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-voice-id/package.json b/clients/client-voice-id/package.json index 0afd8ec5ddb8d..4d81010ada906 100644 --- a/clients/client-voice-id/package.json +++ b/clients/client-voice-id/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-vpc-lattice/package.json b/clients/client-vpc-lattice/package.json index 8a00e311bb525..5b5c3b12308fa 100644 --- a/clients/client-vpc-lattice/package.json +++ b/clients/client-vpc-lattice/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-wellarchitected/package.json b/clients/client-wellarchitected/package.json index 7d7c69c67762c..71e0cbfe16c98 100644 --- a/clients/client-wellarchitected/package.json +++ b/clients/client-wellarchitected/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-wisdom/package.json b/clients/client-wisdom/package.json index 25d6ba35d42c4..49c72fe93007f 100644 --- a/clients/client-wisdom/package.json +++ b/clients/client-wisdom/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-workmail/package.json b/clients/client-workmail/package.json index e2f145e13ddae..e6ae707524add 100644 --- a/clients/client-workmail/package.json +++ b/clients/client-workmail/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-workspaces-thin-client/package.json b/clients/client-workspaces-thin-client/package.json index 4217cf177cba6..07612d42ef0b5 100644 --- a/clients/client-workspaces-thin-client/package.json +++ b/clients/client-workspaces-thin-client/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/clients/client-workspaces-web/package.json b/clients/client-workspaces-web/package.json index 420cc3a3b5d13..1aab1629f607f 100644 --- a/clients/client-workspaces-web/package.json +++ b/clients/client-workspaces-web/package.json @@ -58,13 +58,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/codegen/gradle.properties b/codegen/gradle.properties index 8975397d15451..d98db7dc4acbd 100644 --- a/codegen/gradle.properties +++ b/codegen/gradle.properties @@ -1,2 +1,2 @@ -smithyVersion=1.50.0 +smithyVersion=1.51.0 smithyGradleVersion=0.6.0 diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsDependency.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsDependency.java index b3c5fd61aa14e..cbc08a4314dac 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsDependency.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsDependency.java @@ -15,7 +15,6 @@ package software.amazon.smithy.aws.typescript.codegen; -import static software.amazon.smithy.typescript.codegen.TypeScriptDependency.DEV_DEPENDENCY; import static software.amazon.smithy.typescript.codegen.TypeScriptDependency.NORMAL_DEPENDENCY; import static software.amazon.smithy.typescript.codegen.TypeScriptDependency.PEER_DEPENDENCY; @@ -59,8 +58,14 @@ public enum AwsDependency implements Dependency { BODY_CHECKSUM_GENERATOR_BROWSER(NORMAL_DEPENDENCY, "@aws-sdk/body-checksum-browser"), BODY_CHECKSUM_GENERATOR_NODE(NORMAL_DEPENDENCY, "@aws-sdk/body-checksum-node"), XML_BUILDER(NORMAL_DEPENDENCY, "@aws-sdk/xml-builder"), - UUID_GENERATOR(NORMAL_DEPENDENCY, "uuid", "^9.0.1"), - UUID_GENERATOR_TYPES(DEV_DEPENDENCY, "@types/uuid", "^9.0.4"), + /** + * @deprecated use SmithyDependency.UUID. + */ + @Deprecated UUID_GENERATOR(NORMAL_DEPENDENCY, "uuid", "^9.0.1"), + /** + * @deprecated use SmithyDependency.UUID_TYPES. + */ + @Deprecated UUID_GENERATOR_TYPES(NORMAL_DEPENDENCY, "@types/uuid", "^9.0.1"), MIDDLEWARE_EVENTSTREAM(NORMAL_DEPENDENCY, "@aws-sdk/middleware-eventstream"), AWS_SDK_EVENTSTREAM_HANDLER_NODE(NORMAL_DEPENDENCY, "@aws-sdk/eventstream-handler-node"), TRANSCRIBE_STREAMING_MIDDLEWARE(NORMAL_DEPENDENCY, "@aws-sdk/middleware-sdk-transcribe-streaming"), diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java index 9d62b08e20fa5..a4f1b7333ad3d 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java @@ -250,7 +250,7 @@ static void addItempotencyAutofillImport(GenerationContext context) { // Include the uuid package and import the v4 function as our more clearly named alias. writer.addDependency(TypeScriptDependency.UUID); - writer.addDependency(AwsDependency.UUID_GENERATOR_TYPES); + writer.addDependency(TypeScriptDependency.UUID_TYPES); writer.addImport("v4", "generateIdempotencyToken", TypeScriptDependency.UUID); }); } @@ -311,6 +311,13 @@ private static boolean filterProtocolTests( return true; } + // TODO This test has an arbitrary root XML name NestedXmlMapWithXmlNameRequest + // TODO which doesn't match the input structure. We will need to update + // TODO the test comparator stub to ignore this if that is indeed intended. + if (testCase.getId().contains("NestedXmlMapWithXmlNameSerializes")) { + return true; + } + // TODO: remove when Glacier AccountID hyphen customization is implemented: SMITHY-2614 if (testCase.getId().equals("GlacierAccountId")) { return true; diff --git a/packages/middleware-sdk-transcribe-streaming/package.json b/packages/middleware-sdk-transcribe-streaming/package.json index ec2bdf6c1e96d..5eb58d8890236 100644 --- a/packages/middleware-sdk-transcribe-streaming/package.json +++ b/packages/middleware-sdk-transcribe-streaming/package.json @@ -32,7 +32,6 @@ }, "devDependencies": { "@tsconfig/recommended": "1.0.1", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "jest-websocket-mock": "^2.0.2", diff --git a/packages/middleware-websocket/package.json b/packages/middleware-websocket/package.json index ab156a7472df7..70fea4ed7dabc 100644 --- a/packages/middleware-websocket/package.json +++ b/packages/middleware-websocket/package.json @@ -35,7 +35,6 @@ }, "devDependencies": { "@tsconfig/recommended": "1.0.1", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "jest-websocket-mock": "^2.0.2", diff --git a/private/aws-echo-service/package.json b/private/aws-echo-service/package.json index eb537038c176d..14f045cba18f1 100644 --- a/private/aws-echo-service/package.json +++ b/private/aws-echo-service/package.json @@ -50,13 +50,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/private/aws-protocoltests-ec2/README.md b/private/aws-protocoltests-ec2/README.md index accd33aac0bd5..3c07dc393b705 100644 --- a/private/aws-protocoltests-ec2/README.md +++ b/private/aws-protocoltests-ec2/README.md @@ -1709,18 +1709,18 @@ TestBodyStructure
-TestNoInputNoPayload +TestGetNoInputNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2-protocol/command/TestNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/TestNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/TestNoInputNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2-protocol/command/TestGetNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/TestGetNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/TestGetNoInputNoPayloadCommandOutput/)
-TestNoPayload +TestGetNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2-protocol/command/TestNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/TestNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/TestNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2-protocol/command/TestGetNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/TestGetNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/TestGetNoPayloadCommandOutput/)
@@ -1738,6 +1738,22 @@ TestPayloadStructure [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2-protocol/command/TestPayloadStructureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/TestPayloadStructureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/TestPayloadStructureCommandOutput/) +
+
+ +TestPostNoInputNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2-protocol/command/TestPostNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/TestPostNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/TestPostNoInputNoPayloadCommandOutput/) + +
+
+ +TestPostNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2-protocol/command/TestPostNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/TestPostNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/TestPostNoPayloadCommandOutput/) +
diff --git a/private/aws-protocoltests-ec2/package.json b/private/aws-protocoltests-ec2/package.json index 73d4b80f69188..ac8caa30b4471 100644 --- a/private/aws-protocoltests-ec2/package.json +++ b/private/aws-protocoltests-ec2/package.json @@ -55,13 +55,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/private/aws-protocoltests-json-10/README.md b/private/aws-protocoltests-json-10/README.md index e220958454a0a..55b8aa2a8bec4 100644 --- a/private/aws-protocoltests-json-10/README.md +++ b/private/aws-protocoltests-json-10/README.md @@ -1707,18 +1707,18 @@ TestBodyStructure
-TestNoInputNoPayload +TestGetNoInputNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-rpc-10/command/TestNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/TestNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/TestNoInputNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-rpc-10/command/TestGetNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/TestGetNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/TestGetNoInputNoPayloadCommandOutput/)
-TestNoPayload +TestGetNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-rpc-10/command/TestNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/TestNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/TestNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-rpc-10/command/TestGetNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/TestGetNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/TestGetNoPayloadCommandOutput/)
@@ -1736,6 +1736,22 @@ TestPayloadStructure [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-rpc-10/command/TestPayloadStructureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/TestPayloadStructureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/TestPayloadStructureCommandOutput/) +
+
+ +TestPostNoInputNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-rpc-10/command/TestPostNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/TestPostNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/TestPostNoInputNoPayloadCommandOutput/) + +
+
+ +TestPostNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-rpc-10/command/TestPostNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/TestPostNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/TestPostNoPayloadCommandOutput/) +
diff --git a/private/aws-protocoltests-json-10/package.json b/private/aws-protocoltests-json-10/package.json index 48d3ff0cc115e..97778d34aa2ab 100644 --- a/private/aws-protocoltests-json-10/package.json +++ b/private/aws-protocoltests-json-10/package.json @@ -55,13 +55,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/private/aws-protocoltests-json-machinelearning/README.md b/private/aws-protocoltests-json-machinelearning/README.md index a5c3464fb95f6..d93414ba55aae 100644 --- a/private/aws-protocoltests-json-machinelearning/README.md +++ b/private/aws-protocoltests-json-machinelearning/README.md @@ -1707,18 +1707,18 @@ TestBodyStructure
-TestNoInputNoPayload +TestGetNoInputNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/machine-learning/command/TestNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/TestNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/TestNoInputNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/machine-learning/command/TestGetNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/TestGetNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/TestGetNoInputNoPayloadCommandOutput/)
-TestNoPayload +TestGetNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/machine-learning/command/TestNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/TestNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/TestNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/machine-learning/command/TestGetNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/TestGetNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/TestGetNoPayloadCommandOutput/)
@@ -1736,6 +1736,22 @@ TestPayloadStructure [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/machine-learning/command/TestPayloadStructureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/TestPayloadStructureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/TestPayloadStructureCommandOutput/) +
+
+ +TestPostNoInputNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/machine-learning/command/TestPostNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/TestPostNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/TestPostNoInputNoPayloadCommandOutput/) + +
+
+ +TestPostNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/machine-learning/command/TestPostNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/TestPostNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/TestPostNoPayloadCommandOutput/) +
diff --git a/private/aws-protocoltests-json-machinelearning/package.json b/private/aws-protocoltests-json-machinelearning/package.json index 176d2c18b4fc5..3ffc6c1ed2d94 100644 --- a/private/aws-protocoltests-json-machinelearning/package.json +++ b/private/aws-protocoltests-json-machinelearning/package.json @@ -55,13 +55,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/private/aws-protocoltests-json/README.md b/private/aws-protocoltests-json/README.md index f306333709ceb..e368b774d5bc3 100644 --- a/private/aws-protocoltests-json/README.md +++ b/private/aws-protocoltests-json/README.md @@ -1707,18 +1707,18 @@ TestBodyStructure
-TestNoInputNoPayload +TestGetNoInputNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-protocol/command/TestNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/TestNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/TestNoInputNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-protocol/command/TestGetNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/TestGetNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/TestGetNoInputNoPayloadCommandOutput/)
-TestNoPayload +TestGetNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-protocol/command/TestNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/TestNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/TestNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-protocol/command/TestGetNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/TestGetNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/TestGetNoPayloadCommandOutput/)
@@ -1736,6 +1736,22 @@ TestPayloadStructure [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-protocol/command/TestPayloadStructureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/TestPayloadStructureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/TestPayloadStructureCommandOutput/) +
+
+ +TestPostNoInputNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-protocol/command/TestPostNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/TestPostNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/TestPostNoInputNoPayloadCommandOutput/) + +
+
+ +TestPostNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-protocol/command/TestPostNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/TestPostNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/TestPostNoPayloadCommandOutput/) +
diff --git a/private/aws-protocoltests-json/package.json b/private/aws-protocoltests-json/package.json index e3af43d12eea7..bf221e8b75956 100644 --- a/private/aws-protocoltests-json/package.json +++ b/private/aws-protocoltests-json/package.json @@ -55,13 +55,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/private/aws-protocoltests-query/README.md b/private/aws-protocoltests-query/README.md index 97e8e1dacb00b..accf4dc7a0a23 100644 --- a/private/aws-protocoltests-query/README.md +++ b/private/aws-protocoltests-query/README.md @@ -1709,18 +1709,18 @@ TestBodyStructure
-TestNoInputNoPayload +TestGetNoInputNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/query-protocol/command/TestNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/TestNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/TestNoInputNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/query-protocol/command/TestGetNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/TestGetNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/TestGetNoInputNoPayloadCommandOutput/)
-TestNoPayload +TestGetNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/query-protocol/command/TestNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/TestNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/TestNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/query-protocol/command/TestGetNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/TestGetNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/TestGetNoPayloadCommandOutput/)
@@ -1738,6 +1738,22 @@ TestPayloadStructure [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/query-protocol/command/TestPayloadStructureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/TestPayloadStructureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/TestPayloadStructureCommandOutput/) +
+
+ +TestPostNoInputNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/query-protocol/command/TestPostNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/TestPostNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/TestPostNoInputNoPayloadCommandOutput/) + +
+
+ +TestPostNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/query-protocol/command/TestPostNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/TestPostNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/TestPostNoPayloadCommandOutput/) +
diff --git a/private/aws-protocoltests-query/package.json b/private/aws-protocoltests-query/package.json index 40a8b6a964ea7..9a50acff8739d 100644 --- a/private/aws-protocoltests-query/package.json +++ b/private/aws-protocoltests-query/package.json @@ -55,13 +55,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/private/aws-protocoltests-restjson-apigateway/README.md b/private/aws-protocoltests-restjson-apigateway/README.md index f4f2d9808f224..462c44ccc49de 100644 --- a/private/aws-protocoltests-restjson-apigateway/README.md +++ b/private/aws-protocoltests-restjson-apigateway/README.md @@ -1707,18 +1707,18 @@ TestBodyStructure
-TestNoInputNoPayload +TestGetNoInputNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/api-gateway/command/TestNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-api-gateway/Interface/TestNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-api-gateway/Interface/TestNoInputNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/api-gateway/command/TestGetNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-api-gateway/Interface/TestGetNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-api-gateway/Interface/TestGetNoInputNoPayloadCommandOutput/)
-TestNoPayload +TestGetNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/api-gateway/command/TestNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-api-gateway/Interface/TestNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-api-gateway/Interface/TestNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/api-gateway/command/TestGetNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-api-gateway/Interface/TestGetNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-api-gateway/Interface/TestGetNoPayloadCommandOutput/)
@@ -1736,6 +1736,22 @@ TestPayloadStructure [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/api-gateway/command/TestPayloadStructureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-api-gateway/Interface/TestPayloadStructureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-api-gateway/Interface/TestPayloadStructureCommandOutput/) +
+
+ +TestPostNoInputNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/api-gateway/command/TestPostNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-api-gateway/Interface/TestPostNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-api-gateway/Interface/TestPostNoInputNoPayloadCommandOutput/) + +
+
+ +TestPostNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/api-gateway/command/TestPostNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-api-gateway/Interface/TestPostNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-api-gateway/Interface/TestPostNoPayloadCommandOutput/) +
diff --git a/private/aws-protocoltests-restjson-apigateway/package.json b/private/aws-protocoltests-restjson-apigateway/package.json index 73769e9cc26cd..9c3be029720bb 100644 --- a/private/aws-protocoltests-restjson-apigateway/package.json +++ b/private/aws-protocoltests-restjson-apigateway/package.json @@ -55,13 +55,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/private/aws-protocoltests-restjson-glacier/README.md b/private/aws-protocoltests-restjson-glacier/README.md index 459f4d1b1d38f..c3cffadee423a 100644 --- a/private/aws-protocoltests-restjson-glacier/README.md +++ b/private/aws-protocoltests-restjson-glacier/README.md @@ -1707,18 +1707,18 @@ TestBodyStructure
-TestNoInputNoPayload +TestGetNoInputNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glacier/command/TestNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glacier/Interface/TestNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glacier/Interface/TestNoInputNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glacier/command/TestGetNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glacier/Interface/TestGetNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glacier/Interface/TestGetNoInputNoPayloadCommandOutput/)
-TestNoPayload +TestGetNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glacier/command/TestNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glacier/Interface/TestNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glacier/Interface/TestNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glacier/command/TestGetNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glacier/Interface/TestGetNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glacier/Interface/TestGetNoPayloadCommandOutput/)
@@ -1736,6 +1736,22 @@ TestPayloadStructure [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glacier/command/TestPayloadStructureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glacier/Interface/TestPayloadStructureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glacier/Interface/TestPayloadStructureCommandOutput/) +
+
+ +TestPostNoInputNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glacier/command/TestPostNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glacier/Interface/TestPostNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glacier/Interface/TestPostNoInputNoPayloadCommandOutput/) + +
+
+ +TestPostNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/glacier/command/TestPostNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glacier/Interface/TestPostNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-glacier/Interface/TestPostNoPayloadCommandOutput/) +
diff --git a/private/aws-protocoltests-restjson-glacier/package.json b/private/aws-protocoltests-restjson-glacier/package.json index 25ba6ee034ea9..0bb1f76b57e38 100644 --- a/private/aws-protocoltests-restjson-glacier/package.json +++ b/private/aws-protocoltests-restjson-glacier/package.json @@ -57,13 +57,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/private/aws-protocoltests-restjson/README.md b/private/aws-protocoltests-restjson/README.md index b4254d33b5af6..780eafefec814 100644 --- a/private/aws-protocoltests-restjson/README.md +++ b/private/aws-protocoltests-restjson/README.md @@ -1709,18 +1709,18 @@ TestBodyStructure
-TestNoInputNoPayload +TestGetNoInputNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rest-json-protocol/command/TestNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-json-protocol/Interface/TestNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-json-protocol/Interface/TestNoInputNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rest-json-protocol/command/TestGetNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-json-protocol/Interface/TestGetNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-json-protocol/Interface/TestGetNoInputNoPayloadCommandOutput/)
-TestNoPayload +TestGetNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rest-json-protocol/command/TestNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-json-protocol/Interface/TestNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-json-protocol/Interface/TestNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rest-json-protocol/command/TestGetNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-json-protocol/Interface/TestGetNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-json-protocol/Interface/TestGetNoPayloadCommandOutput/)
@@ -1738,6 +1738,22 @@ TestPayloadStructure [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rest-json-protocol/command/TestPayloadStructureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-json-protocol/Interface/TestPayloadStructureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-json-protocol/Interface/TestPayloadStructureCommandOutput/) +
+
+ +TestPostNoInputNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rest-json-protocol/command/TestPostNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-json-protocol/Interface/TestPostNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-json-protocol/Interface/TestPostNoInputNoPayloadCommandOutput/) + +
+
+ +TestPostNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rest-json-protocol/command/TestPostNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-json-protocol/Interface/TestPostNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-json-protocol/Interface/TestPostNoPayloadCommandOutput/) +
diff --git a/private/aws-protocoltests-restjson/package.json b/private/aws-protocoltests-restjson/package.json index 567862b9663bf..d9d4ee8cf69f4 100644 --- a/private/aws-protocoltests-restjson/package.json +++ b/private/aws-protocoltests-restjson/package.json @@ -61,13 +61,13 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-stream": "^3.1.9", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/private/aws-protocoltests-restjson/src/RestJsonProtocol.ts b/private/aws-protocoltests-restjson/src/RestJsonProtocol.ts index 1be15d39aaf79..28cd1014aa820 100644 --- a/private/aws-protocoltests-restjson/src/RestJsonProtocol.ts +++ b/private/aws-protocoltests-restjson/src/RestJsonProtocol.ts @@ -448,15 +448,15 @@ import { TestBodyStructureCommandOutput, } from "./commands/TestBodyStructureCommand"; import { - TestNoInputNoPayloadCommand, - TestNoInputNoPayloadCommandInput, - TestNoInputNoPayloadCommandOutput, -} from "./commands/TestNoInputNoPayloadCommand"; + TestGetNoInputNoPayloadCommand, + TestGetNoInputNoPayloadCommandInput, + TestGetNoInputNoPayloadCommandOutput, +} from "./commands/TestGetNoInputNoPayloadCommand"; import { - TestNoPayloadCommand, - TestNoPayloadCommandInput, - TestNoPayloadCommandOutput, -} from "./commands/TestNoPayloadCommand"; + TestGetNoPayloadCommand, + TestGetNoPayloadCommandInput, + TestGetNoPayloadCommandOutput, +} from "./commands/TestGetNoPayloadCommand"; import { TestPayloadBlobCommand, TestPayloadBlobCommandInput, @@ -467,6 +467,16 @@ import { TestPayloadStructureCommandInput, TestPayloadStructureCommandOutput, } from "./commands/TestPayloadStructureCommand"; +import { + TestPostNoInputNoPayloadCommand, + TestPostNoInputNoPayloadCommandInput, + TestPostNoInputNoPayloadCommandOutput, +} from "./commands/TestPostNoInputNoPayloadCommand"; +import { + TestPostNoPayloadCommand, + TestPostNoPayloadCommandInput, + TestPostNoPayloadCommandOutput, +} from "./commands/TestPostNoPayloadCommand"; import { TimestampFormatHeadersCommand, TimestampFormatHeadersCommandInput, @@ -573,10 +583,12 @@ const commands = { StreamingTraitsRequireLengthCommand, StreamingTraitsWithMediaTypeCommand, TestBodyStructureCommand, - TestNoInputNoPayloadCommand, - TestNoPayloadCommand, + TestGetNoInputNoPayloadCommand, + TestGetNoPayloadCommand, TestPayloadBlobCommand, TestPayloadStructureCommand, + TestPostNoInputNoPayloadCommand, + TestPostNoPayloadCommand, TimestampFormatHeadersCommand, UnitInputAndOutputCommand, }; @@ -2116,33 +2128,39 @@ export interface RestJsonProtocol { ): void; /** - * @see {@link TestNoInputNoPayloadCommand} + * @see {@link TestGetNoInputNoPayloadCommand} */ - testNoInputNoPayload(): Promise; - testNoInputNoPayload( - args: TestNoInputNoPayloadCommandInput, + testGetNoInputNoPayload(): Promise; + testGetNoInputNoPayload( + args: TestGetNoInputNoPayloadCommandInput, options?: __HttpHandlerOptions - ): Promise; - testNoInputNoPayload( - args: TestNoInputNoPayloadCommandInput, - cb: (err: any, data?: TestNoInputNoPayloadCommandOutput) => void + ): Promise; + testGetNoInputNoPayload( + args: TestGetNoInputNoPayloadCommandInput, + cb: (err: any, data?: TestGetNoInputNoPayloadCommandOutput) => void ): void; - testNoInputNoPayload( - args: TestNoInputNoPayloadCommandInput, + testGetNoInputNoPayload( + args: TestGetNoInputNoPayloadCommandInput, options: __HttpHandlerOptions, - cb: (err: any, data?: TestNoInputNoPayloadCommandOutput) => void + cb: (err: any, data?: TestGetNoInputNoPayloadCommandOutput) => void ): void; /** - * @see {@link TestNoPayloadCommand} + * @see {@link TestGetNoPayloadCommand} */ - testNoPayload(): Promise; - testNoPayload(args: TestNoPayloadCommandInput, options?: __HttpHandlerOptions): Promise; - testNoPayload(args: TestNoPayloadCommandInput, cb: (err: any, data?: TestNoPayloadCommandOutput) => void): void; - testNoPayload( - args: TestNoPayloadCommandInput, + testGetNoPayload(): Promise; + testGetNoPayload( + args: TestGetNoPayloadCommandInput, + options?: __HttpHandlerOptions + ): Promise; + testGetNoPayload( + args: TestGetNoPayloadCommandInput, + cb: (err: any, data?: TestGetNoPayloadCommandOutput) => void + ): void; + testGetNoPayload( + args: TestGetNoPayloadCommandInput, options: __HttpHandlerOptions, - cb: (err: any, data?: TestNoPayloadCommandOutput) => void + cb: (err: any, data?: TestGetNoPayloadCommandOutput) => void ): void; /** @@ -2178,6 +2196,42 @@ export interface RestJsonProtocol { cb: (err: any, data?: TestPayloadStructureCommandOutput) => void ): void; + /** + * @see {@link TestPostNoInputNoPayloadCommand} + */ + testPostNoInputNoPayload(): Promise; + testPostNoInputNoPayload( + args: TestPostNoInputNoPayloadCommandInput, + options?: __HttpHandlerOptions + ): Promise; + testPostNoInputNoPayload( + args: TestPostNoInputNoPayloadCommandInput, + cb: (err: any, data?: TestPostNoInputNoPayloadCommandOutput) => void + ): void; + testPostNoInputNoPayload( + args: TestPostNoInputNoPayloadCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: TestPostNoInputNoPayloadCommandOutput) => void + ): void; + + /** + * @see {@link TestPostNoPayloadCommand} + */ + testPostNoPayload(): Promise; + testPostNoPayload( + args: TestPostNoPayloadCommandInput, + options?: __HttpHandlerOptions + ): Promise; + testPostNoPayload( + args: TestPostNoPayloadCommandInput, + cb: (err: any, data?: TestPostNoPayloadCommandOutput) => void + ): void; + testPostNoPayload( + args: TestPostNoPayloadCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: TestPostNoPayloadCommandOutput) => void + ): void; + /** * @see {@link TimestampFormatHeadersCommand} */ diff --git a/private/aws-protocoltests-restjson/src/RestJsonProtocolClient.ts b/private/aws-protocoltests-restjson/src/RestJsonProtocolClient.ts index 85ed6fbe66699..15156c4f0f023 100644 --- a/private/aws-protocoltests-restjson/src/RestJsonProtocolClient.ts +++ b/private/aws-protocoltests-restjson/src/RestJsonProtocolClient.ts @@ -320,15 +320,20 @@ import { } from "./commands/StreamingTraitsWithMediaTypeCommand"; import { TestBodyStructureCommandInput, TestBodyStructureCommandOutput } from "./commands/TestBodyStructureCommand"; import { - TestNoInputNoPayloadCommandInput, - TestNoInputNoPayloadCommandOutput, -} from "./commands/TestNoInputNoPayloadCommand"; -import { TestNoPayloadCommandInput, TestNoPayloadCommandOutput } from "./commands/TestNoPayloadCommand"; + TestGetNoInputNoPayloadCommandInput, + TestGetNoInputNoPayloadCommandOutput, +} from "./commands/TestGetNoInputNoPayloadCommand"; +import { TestGetNoPayloadCommandInput, TestGetNoPayloadCommandOutput } from "./commands/TestGetNoPayloadCommand"; import { TestPayloadBlobCommandInput, TestPayloadBlobCommandOutput } from "./commands/TestPayloadBlobCommand"; import { TestPayloadStructureCommandInput, TestPayloadStructureCommandOutput, } from "./commands/TestPayloadStructureCommand"; +import { + TestPostNoInputNoPayloadCommandInput, + TestPostNoInputNoPayloadCommandOutput, +} from "./commands/TestPostNoInputNoPayloadCommand"; +import { TestPostNoPayloadCommandInput, TestPostNoPayloadCommandOutput } from "./commands/TestPostNoPayloadCommand"; import { TimestampFormatHeadersCommandInput, TimestampFormatHeadersCommandOutput, @@ -436,10 +441,12 @@ export type ServiceInputTypes = | StreamingTraitsRequireLengthCommandInput | StreamingTraitsWithMediaTypeCommandInput | TestBodyStructureCommandInput - | TestNoInputNoPayloadCommandInput - | TestNoPayloadCommandInput + | TestGetNoInputNoPayloadCommandInput + | TestGetNoPayloadCommandInput | TestPayloadBlobCommandInput | TestPayloadStructureCommandInput + | TestPostNoInputNoPayloadCommandInput + | TestPostNoPayloadCommandInput | TimestampFormatHeadersCommandInput | UnitInputAndOutputCommandInput; @@ -540,10 +547,12 @@ export type ServiceOutputTypes = | StreamingTraitsRequireLengthCommandOutput | StreamingTraitsWithMediaTypeCommandOutput | TestBodyStructureCommandOutput - | TestNoInputNoPayloadCommandOutput - | TestNoPayloadCommandOutput + | TestGetNoInputNoPayloadCommandOutput + | TestGetNoPayloadCommandOutput | TestPayloadBlobCommandOutput | TestPayloadStructureCommandOutput + | TestPostNoInputNoPayloadCommandOutput + | TestPostNoPayloadCommandOutput | TimestampFormatHeadersCommandOutput | UnitInputAndOutputCommandOutput; diff --git a/private/aws-protocoltests-restjson/src/commands/SparseJsonListsCommand.ts b/private/aws-protocoltests-restjson/src/commands/SparseJsonListsCommand.ts index efe1d17e8968d..c574909d41d4b 100644 --- a/private/aws-protocoltests-restjson/src/commands/SparseJsonListsCommand.ts +++ b/private/aws-protocoltests-restjson/src/commands/SparseJsonListsCommand.ts @@ -38,6 +38,9 @@ export interface SparseJsonListsCommandOutput extends SparseJsonListsInputOutput * sparseStringList: [ // SparseStringList * "STRING_VALUE", * ], + * sparseShortList: [ // SparseShortList + * Number("short"), + * ], * }; * const command = new SparseJsonListsCommand(input); * const response = await client.send(command); @@ -45,6 +48,9 @@ export interface SparseJsonListsCommandOutput extends SparseJsonListsInputOutput * // sparseStringList: [ // SparseStringList * // "STRING_VALUE", * // ], + * // sparseShortList: [ // SparseShortList + * // Number("short"), + * // ], * // }; * * ``` diff --git a/private/aws-protocoltests-restjson/src/commands/TestNoInputNoPayloadCommand.ts b/private/aws-protocoltests-restjson/src/commands/TestGetNoInputNoPayloadCommand.ts similarity index 53% rename from private/aws-protocoltests-restjson/src/commands/TestNoInputNoPayloadCommand.ts rename to private/aws-protocoltests-restjson/src/commands/TestGetNoInputNoPayloadCommand.ts index 875ab08716d05..2035026b6edb2 100644 --- a/private/aws-protocoltests-restjson/src/commands/TestNoInputNoPayloadCommand.ts +++ b/private/aws-protocoltests-restjson/src/commands/TestGetNoInputNoPayloadCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { TestNoPayloadInputOutput } from "../models/models_0"; -import { de_TestNoInputNoPayloadCommand, se_TestNoInputNoPayloadCommand } from "../protocols/Aws_restJson1"; +import { de_TestGetNoInputNoPayloadCommand, se_TestGetNoInputNoPayloadCommand } from "../protocols/Aws_restJson1"; import { RestJsonProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RestJsonProtocolClient"; /** @@ -15,18 +15,18 @@ export { $Command }; /** * @public * - * The input for {@link TestNoInputNoPayloadCommand}. + * The input for {@link TestGetNoInputNoPayloadCommand}. */ -export interface TestNoInputNoPayloadCommandInput {} +export interface TestGetNoInputNoPayloadCommandInput {} /** * @public * - * The output of {@link TestNoInputNoPayloadCommand}. + * The output of {@link TestGetNoInputNoPayloadCommand}. */ -export interface TestNoInputNoPayloadCommandOutput extends TestNoPayloadInputOutput, __MetadataBearer {} +export interface TestGetNoInputNoPayloadCommandOutput extends TestNoPayloadInputOutput, __MetadataBearer {} /** - * This example operation has no input and serializes a request without an HTTP body. + * This example GET operation has no input and serializes a request without a HTTP body. * * These tests are to ensure we do not attach a body or related headers * (Content-Length, Content-Type) to operations that semantically @@ -35,11 +35,11 @@ export interface TestNoInputNoPayloadCommandOutput extends TestNoPayloadInputOut * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript - * import { RestJsonProtocolClient, TestNoInputNoPayloadCommand } from "@aws-sdk/aws-protocoltests-restjson"; // ES Modules import - * // const { RestJsonProtocolClient, TestNoInputNoPayloadCommand } = require("@aws-sdk/aws-protocoltests-restjson"); // CommonJS import + * import { RestJsonProtocolClient, TestGetNoInputNoPayloadCommand } from "@aws-sdk/aws-protocoltests-restjson"; // ES Modules import + * // const { RestJsonProtocolClient, TestGetNoInputNoPayloadCommand } = require("@aws-sdk/aws-protocoltests-restjson"); // CommonJS import * const client = new RestJsonProtocolClient(config); * const input = {}; - * const command = new TestNoInputNoPayloadCommand(input); + * const command = new TestGetNoInputNoPayloadCommand(input); * const response = await client.send(command); * // { // TestNoPayloadInputOutput * // testId: "STRING_VALUE", @@ -47,10 +47,10 @@ export interface TestNoInputNoPayloadCommandOutput extends TestNoPayloadInputOut * * ``` * - * @param TestNoInputNoPayloadCommandInput - {@link TestNoInputNoPayloadCommandInput} - * @returns {@link TestNoInputNoPayloadCommandOutput} - * @see {@link TestNoInputNoPayloadCommandInput} for command's `input` shape. - * @see {@link TestNoInputNoPayloadCommandOutput} for command's `response` shape. + * @param TestGetNoInputNoPayloadCommandInput - {@link TestGetNoInputNoPayloadCommandInput} + * @returns {@link TestGetNoInputNoPayloadCommandOutput} + * @see {@link TestGetNoInputNoPayloadCommandInput} for command's `input` shape. + * @see {@link TestGetNoInputNoPayloadCommandOutput} for command's `response` shape. * @see {@link RestJsonProtocolClientResolvedConfig | config} for RestJsonProtocolClient's `config` shape. * * @throws {@link RestJsonProtocolServiceException} @@ -58,10 +58,10 @@ export interface TestNoInputNoPayloadCommandOutput extends TestNoPayloadInputOut * * @public */ -export class TestNoInputNoPayloadCommand extends $Command +export class TestGetNoInputNoPayloadCommand extends $Command .classBuilder< - TestNoInputNoPayloadCommandInput, - TestNoInputNoPayloadCommandOutput, + TestGetNoInputNoPayloadCommandInput, + TestGetNoInputNoPayloadCommandOutput, RestJsonProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes @@ -69,11 +69,11 @@ export class TestNoInputNoPayloadCommand extends $Command .m(function (this: any, Command: any, cs: any, config: RestJsonProtocolClientResolvedConfig, o: any) { return [getSerdePlugin(config, this.serialize, this.deserialize)]; }) - .s("RestJson", "TestNoInputNoPayload", {}) - .n("RestJsonProtocolClient", "TestNoInputNoPayloadCommand") + .s("RestJson", "TestGetNoInputNoPayload", {}) + .n("RestJsonProtocolClient", "TestGetNoInputNoPayloadCommand") .f(void 0, void 0) - .ser(se_TestNoInputNoPayloadCommand) - .de(de_TestNoInputNoPayloadCommand) + .ser(se_TestGetNoInputNoPayloadCommand) + .de(de_TestGetNoInputNoPayloadCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { @@ -82,8 +82,8 @@ export class TestNoInputNoPayloadCommand extends $Command output: TestNoPayloadInputOutput; }; sdk: { - input: TestNoInputNoPayloadCommandInput; - output: TestNoInputNoPayloadCommandOutput; + input: TestGetNoInputNoPayloadCommandInput; + output: TestGetNoInputNoPayloadCommandOutput; }; }; } diff --git a/private/aws-protocoltests-restjson/src/commands/TestNoPayloadCommand.ts b/private/aws-protocoltests-restjson/src/commands/TestGetNoPayloadCommand.ts similarity index 56% rename from private/aws-protocoltests-restjson/src/commands/TestNoPayloadCommand.ts rename to private/aws-protocoltests-restjson/src/commands/TestGetNoPayloadCommand.ts index 7990e0449db42..c4be058e41692 100644 --- a/private/aws-protocoltests-restjson/src/commands/TestNoPayloadCommand.ts +++ b/private/aws-protocoltests-restjson/src/commands/TestGetNoPayloadCommand.ts @@ -4,7 +4,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { TestNoPayloadInputOutput } from "../models/models_0"; -import { de_TestNoPayloadCommand, se_TestNoPayloadCommand } from "../protocols/Aws_restJson1"; +import { de_TestGetNoPayloadCommand, se_TestGetNoPayloadCommand } from "../protocols/Aws_restJson1"; import { RestJsonProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RestJsonProtocolClient"; /** @@ -15,18 +15,18 @@ export { $Command }; /** * @public * - * The input for {@link TestNoPayloadCommand}. + * The input for {@link TestGetNoPayloadCommand}. */ -export interface TestNoPayloadCommandInput extends TestNoPayloadInputOutput {} +export interface TestGetNoPayloadCommandInput extends TestNoPayloadInputOutput {} /** * @public * - * The output of {@link TestNoPayloadCommand}. + * The output of {@link TestGetNoPayloadCommand}. */ -export interface TestNoPayloadCommandOutput extends TestNoPayloadInputOutput, __MetadataBearer {} +export interface TestGetNoPayloadCommandOutput extends TestNoPayloadInputOutput, __MetadataBearer {} /** - * This example operation serializes a request without an HTTP body. + * This example GET operation serializes a request without a modeled HTTP body. * * These tests are to ensure we do not attach a body or related headers * (Content-Length, Content-Type) to operations that semantically @@ -35,13 +35,13 @@ export interface TestNoPayloadCommandOutput extends TestNoPayloadInputOutput, __ * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript - * import { RestJsonProtocolClient, TestNoPayloadCommand } from "@aws-sdk/aws-protocoltests-restjson"; // ES Modules import - * // const { RestJsonProtocolClient, TestNoPayloadCommand } = require("@aws-sdk/aws-protocoltests-restjson"); // CommonJS import + * import { RestJsonProtocolClient, TestGetNoPayloadCommand } from "@aws-sdk/aws-protocoltests-restjson"; // ES Modules import + * // const { RestJsonProtocolClient, TestGetNoPayloadCommand } = require("@aws-sdk/aws-protocoltests-restjson"); // CommonJS import * const client = new RestJsonProtocolClient(config); * const input = { // TestNoPayloadInputOutput * testId: "STRING_VALUE", * }; - * const command = new TestNoPayloadCommand(input); + * const command = new TestGetNoPayloadCommand(input); * const response = await client.send(command); * // { // TestNoPayloadInputOutput * // testId: "STRING_VALUE", @@ -49,10 +49,10 @@ export interface TestNoPayloadCommandOutput extends TestNoPayloadInputOutput, __ * * ``` * - * @param TestNoPayloadCommandInput - {@link TestNoPayloadCommandInput} - * @returns {@link TestNoPayloadCommandOutput} - * @see {@link TestNoPayloadCommandInput} for command's `input` shape. - * @see {@link TestNoPayloadCommandOutput} for command's `response` shape. + * @param TestGetNoPayloadCommandInput - {@link TestGetNoPayloadCommandInput} + * @returns {@link TestGetNoPayloadCommandOutput} + * @see {@link TestGetNoPayloadCommandInput} for command's `input` shape. + * @see {@link TestGetNoPayloadCommandOutput} for command's `response` shape. * @see {@link RestJsonProtocolClientResolvedConfig | config} for RestJsonProtocolClient's `config` shape. * * @throws {@link RestJsonProtocolServiceException} @@ -60,10 +60,10 @@ export interface TestNoPayloadCommandOutput extends TestNoPayloadInputOutput, __ * * @public */ -export class TestNoPayloadCommand extends $Command +export class TestGetNoPayloadCommand extends $Command .classBuilder< - TestNoPayloadCommandInput, - TestNoPayloadCommandOutput, + TestGetNoPayloadCommandInput, + TestGetNoPayloadCommandOutput, RestJsonProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes @@ -71,11 +71,11 @@ export class TestNoPayloadCommand extends $Command .m(function (this: any, Command: any, cs: any, config: RestJsonProtocolClientResolvedConfig, o: any) { return [getSerdePlugin(config, this.serialize, this.deserialize)]; }) - .s("RestJson", "TestNoPayload", {}) - .n("RestJsonProtocolClient", "TestNoPayloadCommand") + .s("RestJson", "TestGetNoPayload", {}) + .n("RestJsonProtocolClient", "TestGetNoPayloadCommand") .f(void 0, void 0) - .ser(se_TestNoPayloadCommand) - .de(de_TestNoPayloadCommand) + .ser(se_TestGetNoPayloadCommand) + .de(de_TestGetNoPayloadCommand) .build() { /** @internal type navigation helper, not in runtime. */ protected declare static __types: { @@ -84,8 +84,8 @@ export class TestNoPayloadCommand extends $Command output: TestNoPayloadInputOutput; }; sdk: { - input: TestNoPayloadCommandInput; - output: TestNoPayloadCommandOutput; + input: TestGetNoPayloadCommandInput; + output: TestGetNoPayloadCommandOutput; }; }; } diff --git a/private/aws-protocoltests-restjson/src/commands/TestPostNoInputNoPayloadCommand.ts b/private/aws-protocoltests-restjson/src/commands/TestPostNoInputNoPayloadCommand.ts new file mode 100644 index 0000000000000..4150675574458 --- /dev/null +++ b/private/aws-protocoltests-restjson/src/commands/TestPostNoInputNoPayloadCommand.ts @@ -0,0 +1,88 @@ +// smithy-typescript generated code +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { TestNoPayloadInputOutput } from "../models/models_0"; +import { de_TestPostNoInputNoPayloadCommand, se_TestPostNoInputNoPayloadCommand } from "../protocols/Aws_restJson1"; +import { RestJsonProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RestJsonProtocolClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link TestPostNoInputNoPayloadCommand}. + */ +export interface TestPostNoInputNoPayloadCommandInput {} +/** + * @public + * + * The output of {@link TestPostNoInputNoPayloadCommand}. + */ +export interface TestPostNoInputNoPayloadCommandOutput extends TestNoPayloadInputOutput, __MetadataBearer {} + +/** + * This example POST operation has no input and serializes a request without a HTTP body. + * + * These tests are to ensure we do not attach a body or related headers + * (Content-Type) to a POST operation with no modeled input. + * + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { RestJsonProtocolClient, TestPostNoInputNoPayloadCommand } from "@aws-sdk/aws-protocoltests-restjson"; // ES Modules import + * // const { RestJsonProtocolClient, TestPostNoInputNoPayloadCommand } = require("@aws-sdk/aws-protocoltests-restjson"); // CommonJS import + * const client = new RestJsonProtocolClient(config); + * const input = {}; + * const command = new TestPostNoInputNoPayloadCommand(input); + * const response = await client.send(command); + * // { // TestNoPayloadInputOutput + * // testId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param TestPostNoInputNoPayloadCommandInput - {@link TestPostNoInputNoPayloadCommandInput} + * @returns {@link TestPostNoInputNoPayloadCommandOutput} + * @see {@link TestPostNoInputNoPayloadCommandInput} for command's `input` shape. + * @see {@link TestPostNoInputNoPayloadCommandOutput} for command's `response` shape. + * @see {@link RestJsonProtocolClientResolvedConfig | config} for RestJsonProtocolClient's `config` shape. + * + * @throws {@link RestJsonProtocolServiceException} + *

Base exception class for all service exceptions from RestJsonProtocol service.

+ * + * @public + */ +export class TestPostNoInputNoPayloadCommand extends $Command + .classBuilder< + TestPostNoInputNoPayloadCommandInput, + TestPostNoInputNoPayloadCommandOutput, + RestJsonProtocolClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .m(function (this: any, Command: any, cs: any, config: RestJsonProtocolClientResolvedConfig, o: any) { + return [getSerdePlugin(config, this.serialize, this.deserialize)]; + }) + .s("RestJson", "TestPostNoInputNoPayload", {}) + .n("RestJsonProtocolClient", "TestPostNoInputNoPayloadCommand") + .f(void 0, void 0) + .ser(se_TestPostNoInputNoPayloadCommand) + .de(de_TestPostNoInputNoPayloadCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: {}; + output: TestNoPayloadInputOutput; + }; + sdk: { + input: TestPostNoInputNoPayloadCommandInput; + output: TestPostNoInputNoPayloadCommandOutput; + }; + }; +} diff --git a/private/aws-protocoltests-restjson/src/commands/TestPostNoPayloadCommand.ts b/private/aws-protocoltests-restjson/src/commands/TestPostNoPayloadCommand.ts new file mode 100644 index 0000000000000..d3315690a6199 --- /dev/null +++ b/private/aws-protocoltests-restjson/src/commands/TestPostNoPayloadCommand.ts @@ -0,0 +1,90 @@ +// smithy-typescript generated code +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { TestNoPayloadInputOutput } from "../models/models_0"; +import { de_TestPostNoPayloadCommand, se_TestPostNoPayloadCommand } from "../protocols/Aws_restJson1"; +import { RestJsonProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RestJsonProtocolClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link TestPostNoPayloadCommand}. + */ +export interface TestPostNoPayloadCommandInput extends TestNoPayloadInputOutput {} +/** + * @public + * + * The output of {@link TestPostNoPayloadCommand}. + */ +export interface TestPostNoPayloadCommandOutput extends TestNoPayloadInputOutput, __MetadataBearer {} + +/** + * This example POST operation serializes a request without a modeled HTTP body. + * + * These tests are to ensure we do not attach a body or related headers + * (Content-Type) to a POST operation with no modeled payload. + * + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { RestJsonProtocolClient, TestPostNoPayloadCommand } from "@aws-sdk/aws-protocoltests-restjson"; // ES Modules import + * // const { RestJsonProtocolClient, TestPostNoPayloadCommand } = require("@aws-sdk/aws-protocoltests-restjson"); // CommonJS import + * const client = new RestJsonProtocolClient(config); + * const input = { // TestNoPayloadInputOutput + * testId: "STRING_VALUE", + * }; + * const command = new TestPostNoPayloadCommand(input); + * const response = await client.send(command); + * // { // TestNoPayloadInputOutput + * // testId: "STRING_VALUE", + * // }; + * + * ``` + * + * @param TestPostNoPayloadCommandInput - {@link TestPostNoPayloadCommandInput} + * @returns {@link TestPostNoPayloadCommandOutput} + * @see {@link TestPostNoPayloadCommandInput} for command's `input` shape. + * @see {@link TestPostNoPayloadCommandOutput} for command's `response` shape. + * @see {@link RestJsonProtocolClientResolvedConfig | config} for RestJsonProtocolClient's `config` shape. + * + * @throws {@link RestJsonProtocolServiceException} + *

Base exception class for all service exceptions from RestJsonProtocol service.

+ * + * @public + */ +export class TestPostNoPayloadCommand extends $Command + .classBuilder< + TestPostNoPayloadCommandInput, + TestPostNoPayloadCommandOutput, + RestJsonProtocolClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .m(function (this: any, Command: any, cs: any, config: RestJsonProtocolClientResolvedConfig, o: any) { + return [getSerdePlugin(config, this.serialize, this.deserialize)]; + }) + .s("RestJson", "TestPostNoPayload", {}) + .n("RestJsonProtocolClient", "TestPostNoPayloadCommand") + .f(void 0, void 0) + .ser(se_TestPostNoPayloadCommand) + .de(de_TestPostNoPayloadCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: TestNoPayloadInputOutput; + output: TestNoPayloadInputOutput; + }; + sdk: { + input: TestPostNoPayloadCommandInput; + output: TestPostNoPayloadCommandOutput; + }; + }; +} diff --git a/private/aws-protocoltests-restjson/src/commands/index.ts b/private/aws-protocoltests-restjson/src/commands/index.ts index e75203cd33117..f433279c386ab 100644 --- a/private/aws-protocoltests-restjson/src/commands/index.ts +++ b/private/aws-protocoltests-restjson/src/commands/index.ts @@ -92,9 +92,11 @@ export * from "./StreamingTraitsCommand"; export * from "./StreamingTraitsRequireLengthCommand"; export * from "./StreamingTraitsWithMediaTypeCommand"; export * from "./TestBodyStructureCommand"; -export * from "./TestNoInputNoPayloadCommand"; -export * from "./TestNoPayloadCommand"; +export * from "./TestGetNoInputNoPayloadCommand"; +export * from "./TestGetNoPayloadCommand"; export * from "./TestPayloadBlobCommand"; export * from "./TestPayloadStructureCommand"; +export * from "./TestPostNoInputNoPayloadCommand"; +export * from "./TestPostNoPayloadCommand"; export * from "./TimestampFormatHeadersCommand"; export * from "./UnitInputAndOutputCommand"; diff --git a/private/aws-protocoltests-restjson/src/models/models_0.ts b/private/aws-protocoltests-restjson/src/models/models_0.ts index 83894c0aa7e46..a579ed5a01866 100644 --- a/private/aws-protocoltests-restjson/src/models/models_0.ts +++ b/private/aws-protocoltests-restjson/src/models/models_0.ts @@ -1414,6 +1414,7 @@ export interface SimpleScalarPropertiesInputOutput { */ export interface SparseJsonListsInputOutput { sparseStringList?: string[]; + sparseShortList?: number[]; } /** diff --git a/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts b/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts index 62433667fff72..8f75204fa3f02 100644 --- a/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts +++ b/private/aws-protocoltests-restjson/src/protocols/Aws_restJson1.ts @@ -316,15 +316,20 @@ import { } from "../commands/StreamingTraitsWithMediaTypeCommand"; import { TestBodyStructureCommandInput, TestBodyStructureCommandOutput } from "../commands/TestBodyStructureCommand"; import { - TestNoInputNoPayloadCommandInput, - TestNoInputNoPayloadCommandOutput, -} from "../commands/TestNoInputNoPayloadCommand"; -import { TestNoPayloadCommandInput, TestNoPayloadCommandOutput } from "../commands/TestNoPayloadCommand"; + TestGetNoInputNoPayloadCommandInput, + TestGetNoInputNoPayloadCommandOutput, +} from "../commands/TestGetNoInputNoPayloadCommand"; +import { TestGetNoPayloadCommandInput, TestGetNoPayloadCommandOutput } from "../commands/TestGetNoPayloadCommand"; import { TestPayloadBlobCommandInput, TestPayloadBlobCommandOutput } from "../commands/TestPayloadBlobCommand"; import { TestPayloadStructureCommandInput, TestPayloadStructureCommandOutput, } from "../commands/TestPayloadStructureCommand"; +import { + TestPostNoInputNoPayloadCommandInput, + TestPostNoInputNoPayloadCommandOutput, +} from "../commands/TestPostNoInputNoPayloadCommand"; +import { TestPostNoPayloadCommandInput, TestPostNoPayloadCommandOutput } from "../commands/TestPostNoPayloadCommand"; import { TimestampFormatHeadersCommandInput, TimestampFormatHeadersCommandOutput, @@ -2312,6 +2317,7 @@ export const se_SparseJsonListsCommand = async ( let body: any; body = JSON.stringify( take(input, { + sparseShortList: (_) => se_SparseShortList(_, context), sparseStringList: (_) => se_SparseStringList(_, context), }) ); @@ -2432,10 +2438,10 @@ export const se_TestBodyStructureCommand = async ( }; /** - * serializeAws_restJson1TestNoInputNoPayloadCommand + * serializeAws_restJson1TestGetNoInputNoPayloadCommand */ -export const se_TestNoInputNoPayloadCommand = async ( - input: TestNoInputNoPayloadCommandInput, +export const se_TestGetNoInputNoPayloadCommand = async ( + input: TestGetNoInputNoPayloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); @@ -2447,10 +2453,10 @@ export const se_TestNoInputNoPayloadCommand = async ( }; /** - * serializeAws_restJson1TestNoPayloadCommand + * serializeAws_restJson1TestGetNoPayloadCommand */ -export const se_TestNoPayloadCommand = async ( - input: TestNoPayloadCommandInput, +export const se_TestGetNoPayloadCommand = async ( + input: TestGetNoPayloadCommandInput, context: __SerdeContext ): Promise<__HttpRequest> => { const b = rb(input, context); @@ -2508,6 +2514,38 @@ export const se_TestPayloadStructureCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1TestPostNoInputNoPayloadCommand + */ +export const se_TestPostNoInputNoPayloadCommand = async ( + input: TestPostNoInputNoPayloadCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/no_input_no_payload"); + let body: any; + b.m("POST").h(headers).b(body); + return b.build(); +}; + +/** + * serializeAws_restJson1TestPostNoPayloadCommand + */ +export const se_TestPostNoPayloadCommand = async ( + input: TestPostNoPayloadCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = map({}, isSerializableHeaderValue, { + [_xati]: input[_tI]!, + }); + b.bp("/no_payload"); + let body: any; + b.m("POST").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1TimestampFormatHeadersCommand */ @@ -4282,6 +4320,7 @@ export const de_SparseJsonListsCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + sparseShortList: (_) => de_SparseShortList(_, context), sparseStringList: (_) => de_SparseStringList(_, context), }); Object.assign(contents, doc); @@ -4393,12 +4432,12 @@ export const de_TestBodyStructureCommand = async ( }; /** - * deserializeAws_restJson1TestNoInputNoPayloadCommand + * deserializeAws_restJson1TestGetNoInputNoPayloadCommand */ -export const de_TestNoInputNoPayloadCommand = async ( +export const de_TestGetNoInputNoPayloadCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } @@ -4411,12 +4450,12 @@ export const de_TestNoInputNoPayloadCommand = async ( }; /** - * deserializeAws_restJson1TestNoPayloadCommand + * deserializeAws_restJson1TestGetNoPayloadCommand */ -export const de_TestNoPayloadCommand = async ( +export const de_TestGetNoPayloadCommand = async ( output: __HttpResponse, context: __SerdeContext -): Promise => { +): Promise => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } @@ -4466,6 +4505,42 @@ export const de_TestPayloadStructureCommand = async ( return contents; }; +/** + * deserializeAws_restJson1TestPostNoInputNoPayloadCommand + */ +export const de_TestPostNoInputNoPayloadCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_tI]: [, output.headers[_xati]], + }); + await collectBody(output.body, context); + return contents; +}; + +/** + * deserializeAws_restJson1TestPostNoPayloadCommand + */ +export const de_TestPostNoPayloadCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + [_tI]: [, output.headers[_xati]], + }); + await collectBody(output.body, context); + return contents; +}; + /** * deserializeAws_restJson1TimestampFormatHeadersCommand */ @@ -4855,6 +4930,13 @@ const se_UnionWithJsonName = (input: UnionWithJsonName, context: __SerdeContext) // se_NestedStringList omitted. +/** + * serializeAws_restJson1SparseShortList + */ +const se_SparseShortList = (input: number[], context: __SerdeContext): any => { + return input; +}; + /** * serializeAws_restJson1SparseStringList */ @@ -5147,6 +5229,19 @@ const de_UnionWithJsonName = (output: any, context: __SerdeContext): UnionWithJs // de_NestedStringList omitted. +/** + * deserializeAws_restJson1SparseShortList + */ +const de_SparseShortList = (output: any, context: __SerdeContext): number[] => { + const retVal = (output || []).map((entry: any) => { + if (entry === null) { + return null as any; + } + return __expectShort(entry) as any; + }); + return retVal; +}; + /** * deserializeAws_restJson1SparseStringList */ diff --git a/private/aws-protocoltests-restjson/test/functional/restjson1.spec.ts b/private/aws-protocoltests-restjson/test/functional/restjson1.spec.ts index c00123f13e9e0..5deab5de6b28d 100644 --- a/private/aws-protocoltests-restjson/test/functional/restjson1.spec.ts +++ b/private/aws-protocoltests-restjson/test/functional/restjson1.spec.ts @@ -64,10 +64,12 @@ import { StreamingTraitsCommand } from "../../src/commands/StreamingTraitsComman import { StreamingTraitsRequireLengthCommand } from "../../src/commands/StreamingTraitsRequireLengthCommand"; import { StreamingTraitsWithMediaTypeCommand } from "../../src/commands/StreamingTraitsWithMediaTypeCommand"; import { TestBodyStructureCommand } from "../../src/commands/TestBodyStructureCommand"; -import { TestNoInputNoPayloadCommand } from "../../src/commands/TestNoInputNoPayloadCommand"; -import { TestNoPayloadCommand } from "../../src/commands/TestNoPayloadCommand"; +import { TestGetNoInputNoPayloadCommand } from "../../src/commands/TestGetNoInputNoPayloadCommand"; +import { TestGetNoPayloadCommand } from "../../src/commands/TestGetNoPayloadCommand"; import { TestPayloadBlobCommand } from "../../src/commands/TestPayloadBlobCommand"; import { TestPayloadStructureCommand } from "../../src/commands/TestPayloadStructureCommand"; +import { TestPostNoInputNoPayloadCommand } from "../../src/commands/TestPostNoInputNoPayloadCommand"; +import { TestPostNoPayloadCommand } from "../../src/commands/TestPostNoPayloadCommand"; import { TimestampFormatHeadersCommand } from "../../src/commands/TimestampFormatHeadersCommand"; import { UnitInputAndOutputCommand } from "../../src/commands/UnitInputAndOutputCommand"; import { RestJsonProtocolClient } from "../../src/RestJsonProtocolClient"; @@ -6717,7 +6719,7 @@ it("RestJsonNoInputAndOutputNoPayload:Response", async () => { }); /** - * Do not send null values, empty strings, or empty lists over the wire in headers + * Do not send null values, but do send empty strings and empty lists over the wire in headers */ it.skip("RestJsonNullAndEmptyHeaders:Request", async () => { const client = new RestJsonProtocolClient({ @@ -6744,8 +6746,11 @@ it.skip("RestJsonNullAndEmptyHeaders:Request", async () => { expect(r.path).toBe("/NullAndEmptyHeadersClient"); expect(r.headers["x-a"]).toBeUndefined(); - expect(r.headers["x-b"]).toBeUndefined(); - expect(r.headers["x-c"]).toBeUndefined(); + + expect(r.headers["x-b"]).toBeDefined(); + expect(r.headers["x-b"]).toBe(""); + expect(r.headers["x-c"]).toBeDefined(); + expect(r.headers["x-c"]).toBe(""); expect(!r.body || r.body === `{}`).toBeTruthy(); } @@ -7258,7 +7263,7 @@ it.skip("RestJsonClientIgnoresDefaultValuesIfMemberValuesArePresentInResponse:Re defaultDocumentBoolean: false, defaultDocumentList: ["b"], defaultNullDocument: "notNull", - defaultTimestamp: new Date(1 * 1000), + defaultTimestamp: new Date(2 * 1000), defaultBlob: Uint8Array.from("hi", (c) => c.charCodeAt(0)), defaultByte: 2, defaultShort: 2, @@ -8613,6 +8618,7 @@ it("RestJsonSparseListsSerializeNull:Request", async () => { const command = new SparseJsonListsCommand({ sparseStringList: [null, "hi"], + sparseShortList: [null, 2], } as any); try { await client.send(command); @@ -8636,6 +8642,10 @@ it("RestJsonSparseListsSerializeNull:Request", async () => { \"sparseStringList\": [ null, \"hi\" + ], + \"sparseShortList\": [ + null, + 2 ] }`; const unequalParts: any = compareEquivalentJsonBodies(bodyString, r.body.toString()); @@ -8659,6 +8669,10 @@ it("RestJsonSparseListsSerializeNull:Response", async () => { "sparseStringList": [ null, "hi" + ], + "sparseShortList": [ + null, + 2 ] }` ), @@ -8678,6 +8692,7 @@ it("RestJsonSparseListsSerializeNull:Response", async () => { const paramsToValidate: any = [ { sparseStringList: [null, "hi"], + sparseShortList: [null, 2], }, ][0]; Object.keys(paramsToValidate).forEach((param) => { @@ -9590,13 +9605,13 @@ it("RestJsonHttpWithEmptyBody:Request", async () => { /** * Serializes a GET request for an operation with no input, and therefore no modeled body */ -it("RestJsonHttpWithNoInput:Request", async () => { +it("RestJsonHttpGetWithNoInput:Request", async () => { const client = new RestJsonProtocolClient({ ...clientParams, requestHandler: new RequestSerializationTestHandler(), }); - const command = new TestNoInputNoPayloadCommand({}); + const command = new TestGetNoInputNoPayloadCommand({}); try { await client.send(command); fail("Expected an EXPECTED_REQUEST_SERIALIZATION_ERROR to be thrown"); @@ -9610,8 +9625,8 @@ it("RestJsonHttpWithNoInput:Request", async () => { expect(r.method).toBe("GET"); expect(r.path).toBe("/no_input_no_payload"); - expect(r.headers["content-length"]).toBeUndefined(); expect(r.headers["content-type"]).toBeUndefined(); + expect(r.headers["content-length"]).toBeUndefined(); expect(!r.body || r.body === `{}`).toBeTruthy(); } @@ -9620,13 +9635,13 @@ it("RestJsonHttpWithNoInput:Request", async () => { /** * Serializes a GET request with no modeled body */ -it("RestJsonHttpWithNoModeledBody:Request", async () => { +it("RestJsonHttpGetWithNoModeledBody:Request", async () => { const client = new RestJsonProtocolClient({ ...clientParams, requestHandler: new RequestSerializationTestHandler(), }); - const command = new TestNoPayloadCommand({} as any); + const command = new TestGetNoPayloadCommand({} as any); try { await client.send(command); fail("Expected an EXPECTED_REQUEST_SERIALIZATION_ERROR to be thrown"); @@ -9650,13 +9665,13 @@ it("RestJsonHttpWithNoModeledBody:Request", async () => { /** * Serializes a GET request with header member but no modeled body */ -it("RestJsonHttpWithHeaderMemberNoModeledBody:Request", async () => { +it("RestJsonHttpGetWithHeaderMemberNoModeledBody:Request", async () => { const client = new RestJsonProtocolClient({ ...clientParams, requestHandler: new RequestSerializationTestHandler(), }); - const command = new TestNoPayloadCommand({ + const command = new TestGetNoPayloadCommand({ testId: "t-12345", } as any); try { @@ -9705,9 +9720,6 @@ it("RestJsonHttpWithEmptyBlobPayload:Request", async () => { expect(r.method).toBe("POST"); expect(r.path).toBe("/blob_payload"); - expect(r.headers["content-type"]).toBeDefined(); - expect(r.headers["content-type"]).toBe("application/octet-stream"); - expect(!r.body || r.body === `{}`).toBeTruthy(); } }); @@ -9864,6 +9876,98 @@ it("RestJsonHttpWithHeadersButNoPayload:Request", async () => { } }); +/** + * Serializes a POST request for an operation with no input, and therefore no modeled body + */ +it("RestJsonHttpPostWithNoInput:Request", async () => { + const client = new RestJsonProtocolClient({ + ...clientParams, + requestHandler: new RequestSerializationTestHandler(), + }); + + const command = new TestPostNoInputNoPayloadCommand({}); + try { + await client.send(command); + fail("Expected an EXPECTED_REQUEST_SERIALIZATION_ERROR to be thrown"); + return; + } catch (err) { + if (!(err instanceof EXPECTED_REQUEST_SERIALIZATION_ERROR)) { + fail(err); + return; + } + const r = err.request; + expect(r.method).toBe("POST"); + expect(r.path).toBe("/no_input_no_payload"); + + expect(r.headers["content-type"]).toBeUndefined(); + + expect(!r.body || r.body === `{}`).toBeTruthy(); + } +}); + +/** + * Serializes a POST request with no modeled body + */ +it("RestJsonHttpPostWithNoModeledBody:Request", async () => { + const client = new RestJsonProtocolClient({ + ...clientParams, + requestHandler: new RequestSerializationTestHandler(), + }); + + const command = new TestPostNoPayloadCommand({} as any); + try { + await client.send(command); + fail("Expected an EXPECTED_REQUEST_SERIALIZATION_ERROR to be thrown"); + return; + } catch (err) { + if (!(err instanceof EXPECTED_REQUEST_SERIALIZATION_ERROR)) { + fail(err); + return; + } + const r = err.request; + expect(r.method).toBe("POST"); + expect(r.path).toBe("/no_payload"); + + expect(r.headers["content-type"]).toBeUndefined(); + + expect(!r.body || r.body === `{}`).toBeTruthy(); + } +}); + +/** + * Serializes a POST request with header member but no modeled body + */ +it("RestJsonHttpWithPostHeaderMemberNoModeledBody:Request", async () => { + const client = new RestJsonProtocolClient({ + ...clientParams, + requestHandler: new RequestSerializationTestHandler(), + }); + + const command = new TestPostNoPayloadCommand({ + testId: "t-12345", + } as any); + try { + await client.send(command); + fail("Expected an EXPECTED_REQUEST_SERIALIZATION_ERROR to be thrown"); + return; + } catch (err) { + if (!(err instanceof EXPECTED_REQUEST_SERIALIZATION_ERROR)) { + fail(err); + return; + } + const r = err.request; + expect(r.method).toBe("POST"); + expect(r.path).toBe("/no_payload"); + + expect(r.headers["content-type"]).toBeUndefined(); + + expect(r.headers["x-amz-test-id"]).toBeDefined(); + expect(r.headers["x-amz-test-id"]).toBe("t-12345"); + + expect(!r.body || r.body === `{}`).toBeTruthy(); + } +}); + /** * Tests how timestamp request headers are serialized */ diff --git a/private/aws-protocoltests-restxml/README.md b/private/aws-protocoltests-restxml/README.md index c72a51ce7389a..897b4eec89a6e 100644 --- a/private/aws-protocoltests-restxml/README.md +++ b/private/aws-protocoltests-restxml/README.md @@ -1709,18 +1709,18 @@ TestBodyStructure
-TestNoInputNoPayload +TestGetNoInputNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rest-xml-protocol/command/TestNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-xml-protocol/Interface/TestNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-xml-protocol/Interface/TestNoInputNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rest-xml-protocol/command/TestGetNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-xml-protocol/Interface/TestGetNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-xml-protocol/Interface/TestGetNoInputNoPayloadCommandOutput/)
-TestNoPayload +TestGetNoPayload -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rest-xml-protocol/command/TestNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-xml-protocol/Interface/TestNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-xml-protocol/Interface/TestNoPayloadCommandOutput/) +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rest-xml-protocol/command/TestGetNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-xml-protocol/Interface/TestGetNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-xml-protocol/Interface/TestGetNoPayloadCommandOutput/)
@@ -1738,6 +1738,22 @@ TestPayloadStructure [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rest-xml-protocol/command/TestPayloadStructureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-xml-protocol/Interface/TestPayloadStructureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-xml-protocol/Interface/TestPayloadStructureCommandOutput/) +
+
+ +TestPostNoInputNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rest-xml-protocol/command/TestPostNoInputNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-xml-protocol/Interface/TestPostNoInputNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-xml-protocol/Interface/TestPostNoInputNoPayloadCommandOutput/) + +
+
+ +TestPostNoPayload + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rest-xml-protocol/command/TestPostNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-xml-protocol/Interface/TestPostNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rest-xml-protocol/Interface/TestPostNoPayloadCommandOutput/) +
diff --git a/private/aws-protocoltests-restxml/package.json b/private/aws-protocoltests-restxml/package.json index 728e8e810c6b1..d0042678f8705 100644 --- a/private/aws-protocoltests-restxml/package.json +++ b/private/aws-protocoltests-restxml/package.json @@ -58,6 +58,7 @@ "@smithy/util-retry": "^3.0.7", "@smithy/util-stream": "^3.1.9", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "entities": "2.2.0", "fast-xml-parser": "4.4.1", "tslib": "^2.6.2", @@ -66,7 +67,6 @@ "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/private/aws-protocoltests-restxml/src/RestXmlProtocol.ts b/private/aws-protocoltests-restxml/src/RestXmlProtocol.ts index 8e436685f107a..c4e6be67e019f 100644 --- a/private/aws-protocoltests-restxml/src/RestXmlProtocol.ts +++ b/private/aws-protocoltests-restxml/src/RestXmlProtocol.ts @@ -172,6 +172,11 @@ import { NestedXmlMapsCommandInput, NestedXmlMapsCommandOutput, } from "./commands/NestedXmlMapsCommand"; +import { + NestedXmlMapWithXmlNameCommand, + NestedXmlMapWithXmlNameCommandInput, + NestedXmlMapWithXmlNameCommandOutput, +} from "./commands/NestedXmlMapWithXmlNameCommand"; import { NoInputAndNoOutputCommand, NoInputAndNoOutputCommandInput, @@ -325,6 +330,7 @@ const commands = { IgnoreQueryParamsInResponseCommand, InputAndOutputWithHeadersCommand, NestedXmlMapsCommand, + NestedXmlMapWithXmlNameCommand, NoInputAndNoOutputCommand, NoInputAndOutputCommand, NullAndEmptyHeadersClientCommand, @@ -943,6 +949,24 @@ export interface RestXmlProtocol { cb: (err: any, data?: NestedXmlMapsCommandOutput) => void ): void; + /** + * @see {@link NestedXmlMapWithXmlNameCommand} + */ + nestedXmlMapWithXmlName(): Promise; + nestedXmlMapWithXmlName( + args: NestedXmlMapWithXmlNameCommandInput, + options?: __HttpHandlerOptions + ): Promise; + nestedXmlMapWithXmlName( + args: NestedXmlMapWithXmlNameCommandInput, + cb: (err: any, data?: NestedXmlMapWithXmlNameCommandOutput) => void + ): void; + nestedXmlMapWithXmlName( + args: NestedXmlMapWithXmlNameCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: NestedXmlMapWithXmlNameCommandOutput) => void + ): void; + /** * @see {@link NoInputAndNoOutputCommand} */ diff --git a/private/aws-protocoltests-restxml/src/RestXmlProtocolClient.ts b/private/aws-protocoltests-restxml/src/RestXmlProtocolClient.ts index d016e6fa83e62..b56ef81906c0e 100644 --- a/private/aws-protocoltests-restxml/src/RestXmlProtocolClient.ts +++ b/private/aws-protocoltests-restxml/src/RestXmlProtocolClient.ts @@ -160,6 +160,10 @@ import { InputAndOutputWithHeadersCommandOutput, } from "./commands/InputAndOutputWithHeadersCommand"; import { NestedXmlMapsCommandInput, NestedXmlMapsCommandOutput } from "./commands/NestedXmlMapsCommand"; +import { + NestedXmlMapWithXmlNameCommandInput, + NestedXmlMapWithXmlNameCommandOutput, +} from "./commands/NestedXmlMapWithXmlNameCommand"; import { NoInputAndNoOutputCommandInput, NoInputAndNoOutputCommandOutput } from "./commands/NoInputAndNoOutputCommand"; import { NoInputAndOutputCommandInput, NoInputAndOutputCommandOutput } from "./commands/NoInputAndOutputCommand"; import { @@ -260,6 +264,7 @@ export type ServiceInputTypes = | HttpStringPayloadCommandInput | IgnoreQueryParamsInResponseCommandInput | InputAndOutputWithHeadersCommandInput + | NestedXmlMapWithXmlNameCommandInput | NestedXmlMapsCommandInput | NoInputAndNoOutputCommandInput | NoInputAndOutputCommandInput @@ -327,6 +332,7 @@ export type ServiceOutputTypes = | HttpStringPayloadCommandOutput | IgnoreQueryParamsInResponseCommandOutput | InputAndOutputWithHeadersCommandOutput + | NestedXmlMapWithXmlNameCommandOutput | NestedXmlMapsCommandOutput | NoInputAndNoOutputCommandOutput | NoInputAndOutputCommandOutput diff --git a/private/aws-protocoltests-restxml/src/commands/NestedXmlMapWithXmlNameCommand.ts b/private/aws-protocoltests-restxml/src/commands/NestedXmlMapWithXmlNameCommand.ts new file mode 100644 index 0000000000000..9b4332636b5c2 --- /dev/null +++ b/private/aws-protocoltests-restxml/src/commands/NestedXmlMapWithXmlNameCommand.ts @@ -0,0 +1,94 @@ +// smithy-typescript generated code +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { NestedXmlMapWithXmlNameInputOutput } from "../models/models_0"; +import { de_NestedXmlMapWithXmlNameCommand, se_NestedXmlMapWithXmlNameCommand } from "../protocols/Aws_restXml"; +import { RestXmlProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RestXmlProtocolClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link NestedXmlMapWithXmlNameCommand}. + */ +export interface NestedXmlMapWithXmlNameCommandInput extends NestedXmlMapWithXmlNameInputOutput {} +/** + * @public + * + * The output of {@link NestedXmlMapWithXmlNameCommand}. + */ +export interface NestedXmlMapWithXmlNameCommandOutput extends NestedXmlMapWithXmlNameInputOutput, __MetadataBearer {} + +/** + * Nested Xml Maps with key/values with @xmlName + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { RestXmlProtocolClient, NestedXmlMapWithXmlNameCommand } from "@aws-sdk/aws-protocoltests-restxml"; // ES Modules import + * // const { RestXmlProtocolClient, NestedXmlMapWithXmlNameCommand } = require("@aws-sdk/aws-protocoltests-restxml"); // CommonJS import + * const client = new RestXmlProtocolClient(config); + * const input = { // NestedXmlMapWithXmlNameInputOutput + * nestedXmlMapWithXmlNameMap: { // NestedXmlMapWithXmlNameMap + * "": { // NestedXmlMapWithXmlNameInnerMap + * "": "STRING_VALUE", + * }, + * }, + * }; + * const command = new NestedXmlMapWithXmlNameCommand(input); + * const response = await client.send(command); + * // { // NestedXmlMapWithXmlNameInputOutput + * // nestedXmlMapWithXmlNameMap: { // NestedXmlMapWithXmlNameMap + * // "": { // NestedXmlMapWithXmlNameInnerMap + * // "": "STRING_VALUE", + * // }, + * // }, + * // }; + * + * ``` + * + * @param NestedXmlMapWithXmlNameCommandInput - {@link NestedXmlMapWithXmlNameCommandInput} + * @returns {@link NestedXmlMapWithXmlNameCommandOutput} + * @see {@link NestedXmlMapWithXmlNameCommandInput} for command's `input` shape. + * @see {@link NestedXmlMapWithXmlNameCommandOutput} for command's `response` shape. + * @see {@link RestXmlProtocolClientResolvedConfig | config} for RestXmlProtocolClient's `config` shape. + * + * @throws {@link RestXmlProtocolServiceException} + *

Base exception class for all service exceptions from RestXmlProtocol service.

+ * + * @public + */ +export class NestedXmlMapWithXmlNameCommand extends $Command + .classBuilder< + NestedXmlMapWithXmlNameCommandInput, + NestedXmlMapWithXmlNameCommandOutput, + RestXmlProtocolClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .m(function (this: any, Command: any, cs: any, config: RestXmlProtocolClientResolvedConfig, o: any) { + return [getSerdePlugin(config, this.serialize, this.deserialize)]; + }) + .s("RestXml", "NestedXmlMapWithXmlName", {}) + .n("RestXmlProtocolClient", "NestedXmlMapWithXmlNameCommand") + .f(void 0, void 0) + .ser(se_NestedXmlMapWithXmlNameCommand) + .de(de_NestedXmlMapWithXmlNameCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: NestedXmlMapWithXmlNameInputOutput; + output: NestedXmlMapWithXmlNameInputOutput; + }; + sdk: { + input: NestedXmlMapWithXmlNameCommandInput; + output: NestedXmlMapWithXmlNameCommandOutput; + }; + }; +} diff --git a/private/aws-protocoltests-restxml/src/commands/index.ts b/private/aws-protocoltests-restxml/src/commands/index.ts index a8393aaf5f388..d4f6576e3c5be 100644 --- a/private/aws-protocoltests-restxml/src/commands/index.ts +++ b/private/aws-protocoltests-restxml/src/commands/index.ts @@ -32,6 +32,7 @@ export * from "./HttpResponseCodeCommand"; export * from "./HttpStringPayloadCommand"; export * from "./IgnoreQueryParamsInResponseCommand"; export * from "./InputAndOutputWithHeadersCommand"; +export * from "./NestedXmlMapWithXmlNameCommand"; export * from "./NestedXmlMapsCommand"; export * from "./NoInputAndNoOutputCommand"; export * from "./NoInputAndOutputCommand"; diff --git a/private/aws-protocoltests-restxml/src/models/models_0.ts b/private/aws-protocoltests-restxml/src/models/models_0.ts index 276714c08d189..95bbbbd783741 100644 --- a/private/aws-protocoltests-restxml/src/models/models_0.ts +++ b/private/aws-protocoltests-restxml/src/models/models_0.ts @@ -486,6 +486,13 @@ export interface NestedXmlMapsResponse { flatNestedMap?: Record>; } +/** + * @public + */ +export interface NestedXmlMapWithXmlNameInputOutput { + nestedXmlMapWithXmlNameMap?: Record>; +} + /** * @public */ diff --git a/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts b/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts index 0073f657dd377..0ab8be2c4b5a2 100644 --- a/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts +++ b/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts @@ -144,6 +144,10 @@ import { InputAndOutputWithHeadersCommandOutput, } from "../commands/InputAndOutputWithHeadersCommand"; import { NestedXmlMapsCommandInput, NestedXmlMapsCommandOutput } from "../commands/NestedXmlMapsCommand"; +import { + NestedXmlMapWithXmlNameCommandInput, + NestedXmlMapWithXmlNameCommandOutput, +} from "../commands/NestedXmlMapWithXmlNameCommand"; import { NoInputAndNoOutputCommandInput, NoInputAndNoOutputCommandOutput } from "../commands/NoInputAndNoOutputCommand"; import { NoInputAndOutputCommandInput, NoInputAndOutputCommandOutput } from "../commands/NoInputAndOutputCommand"; import { @@ -1020,6 +1024,29 @@ export const se_NestedXmlMapsCommand = async ( return b.build(); }; +/** + * serializeAws_restXmlNestedXmlMapWithXmlNameCommand + */ +export const se_NestedXmlMapWithXmlNameCommand = async ( + input: NestedXmlMapWithXmlNameCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = { + "content-type": "application/xml", + }; + b.bp("/NestedXmlMapWithXmlName"); + let body: any; + body = _ve; + const bn = new __XmlNode(_NXMWXNIO); + bn.lc(input, "nestedXmlMapWithXmlNameMap", "nestedXmlMapWithXmlNameMap", () => + se_NestedXmlMapWithXmlNameMap(input[_nXMWXNM]!, context) + ); + body += bn.toString(); + b.m("POST").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restXmlNoInputAndNoOutputCommand */ @@ -2399,6 +2426,28 @@ export const de_NestedXmlMapsCommand = async ( return contents; }; +/** + * deserializeAws_restXmlNestedXmlMapWithXmlNameCommand + */ +export const de_NestedXmlMapWithXmlNameCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + if (data.nestedXmlMapWithXmlNameMap === "") { + contents[_nXMWXNM] = {}; + } else if (data[_nXMWXNM] != null && data[_nXMWXNM][_en] != null) { + contents[_nXMWXNM] = de_NestedXmlMapWithXmlNameMap(__getArrayIfSingleItem(data[_nXMWXNM][_en]), context); + } + return contents; +}; + /** * deserializeAws_restXmlNoInputAndNoOutputCommand */ @@ -3341,6 +3390,44 @@ const se_NestedPayload = (input: NestedPayload, context: __SerdeContext): any => return bn; }; +/** + * serializeAws_restXmlNestedXmlMapWithXmlNameInnerMap + */ +const se_NestedXmlMapWithXmlNameInnerMap = (input: Record, context: __SerdeContext): any => { + return Object.keys(input) + .filter((key) => input[key as keyof typeof input] != null) + .map((key) => { + const entryNode = new __XmlNode("entry"); + const keyNode = __XmlNode.of(_S, key).n("InnerKey"); + entryNode.c(keyNode); + let n; + n = __XmlNode.of(_S, input[key as keyof typeof input]!); + entryNode.c(n.n(_IV)); + return entryNode; + }); +}; + +/** + * serializeAws_restXmlNestedXmlMapWithXmlNameMap + */ +const se_NestedXmlMapWithXmlNameMap = (input: Record>, context: __SerdeContext): any => { + return Object.keys(input) + .filter((key) => input[key as keyof typeof input] != null) + .map((key) => { + const entryNode = new __XmlNode("entry"); + const keyNode = __XmlNode.of(_S, key).n("OuterKey"); + entryNode.c(keyNode); + let n; + n = se_NestedXmlMapWithXmlNameInnerMap(input[key as keyof typeof input]!, context); + entryNode.c( + n.reduce((acc: __XmlNode, workingNode: any) => { + return acc.c(workingNode); + }, new __XmlNode(_v)) + ); + return entryNode; + }); +}; + /** * serializeAws_restXmlPayloadWithXmlName */ @@ -3918,6 +4005,35 @@ const de_NestedPayload = (output: any, context: __SerdeContext): NestedPayload = return contents; }; +/** + * deserializeAws_restXmlNestedXmlMapWithXmlNameInnerMap + */ +const de_NestedXmlMapWithXmlNameInnerMap = (output: any, context: __SerdeContext): Record => { + return output.reduce((acc: any, pair: any) => { + if (pair["InnerValue"] === null) { + return acc; + } + acc[pair["InnerKey"]] = __expectString(pair["InnerValue"]) as any; + return acc; + }, {}); +}; + +/** + * deserializeAws_restXmlNestedXmlMapWithXmlNameMap + */ +const de_NestedXmlMapWithXmlNameMap = ( + output: any, + context: __SerdeContext +): Record> => { + return output.reduce((acc: any, pair: any) => { + if (__getArrayIfSingleItem(pair["value"]["entry"]) === null) { + return acc; + } + acc[pair["OuterKey"]] = de_NestedXmlMapWithXmlNameInnerMap(__getArrayIfSingleItem(pair["value"]["entry"]), context); + return acc; + }, {}); +}; + /** * deserializeAws_restXmlPayloadWithXmlName */ @@ -4395,12 +4511,14 @@ const _IE = "IntegerEnum"; const _IEL = "IntegerEnumList"; const _IL = "IntegerList"; const _IS = "IntegerSet"; +const _IV = "InnerValue"; const _KVP = "KVP"; const _L = "Long"; const _M = "Message"; const _N = "Null"; const _NP = "NestedPayload"; const _NXMR = "NestedXmlMapsRequest"; +const _NXMWXNIO = "NestedXmlMapWithXmlNameInputOutput"; const _Ne = "Nested"; const _PWCEI = "PutWithContentEncodingInput"; const _PWXN = "PayloadWithXmlNamespace"; @@ -4522,6 +4640,7 @@ const _n = "nested"; const _nM = "nestedMap"; const _nSL = "nestedStringList"; const _nV = "nullValue"; +const _nXMWXNM = "nestedXmlMapWithXmlNameMap"; const _na = "name"; const _no = "normal"; const _o = "other"; diff --git a/private/aws-protocoltests-restxml/test/functional/restxml.spec.ts b/private/aws-protocoltests-restxml/test/functional/restxml.spec.ts index fb7121f1950bb..1af7f8751c6da 100644 --- a/private/aws-protocoltests-restxml/test/functional/restxml.spec.ts +++ b/private/aws-protocoltests-restxml/test/functional/restxml.spec.ts @@ -40,6 +40,7 @@ import { HttpStringPayloadCommand } from "../../src/commands/HttpStringPayloadCo import { IgnoreQueryParamsInResponseCommand } from "../../src/commands/IgnoreQueryParamsInResponseCommand"; import { InputAndOutputWithHeadersCommand } from "../../src/commands/InputAndOutputWithHeadersCommand"; import { NestedXmlMapsCommand } from "../../src/commands/NestedXmlMapsCommand"; +import { NestedXmlMapWithXmlNameCommand } from "../../src/commands/NestedXmlMapWithXmlNameCommand"; import { NoInputAndNoOutputCommand } from "../../src/commands/NoInputAndNoOutputCommand"; import { NoInputAndOutputCommand } from "../../src/commands/NoInputAndOutputCommand"; import { NullAndEmptyHeadersClientCommand } from "../../src/commands/NullAndEmptyHeadersClientCommand"; @@ -3634,6 +3635,158 @@ it("FlatNestedXmlMapResponse:Response", async () => { }); }); +/** + * Serializes nested XML Maps in requests that have xmlName on members + */ +it.skip("NestedXmlMapWithXmlNameSerializes:Request", async () => { + const client = new RestXmlProtocolClient({ + ...clientParams, + requestHandler: new RequestSerializationTestHandler(), + }); + + const command = new NestedXmlMapWithXmlNameCommand({ + nestedXmlMapWithXmlNameMap: { + foo: { + bar: "Baz", + fizz: "Buzz", + } as any, + qux: { + foobar: "Bar", + fizzbuzz: "Buzz", + } as any, + } as any, + } as any); + try { + await client.send(command); + fail("Expected an EXPECTED_REQUEST_SERIALIZATION_ERROR to be thrown"); + return; + } catch (err) { + if (!(err instanceof EXPECTED_REQUEST_SERIALIZATION_ERROR)) { + fail(err); + return; + } + const r = err.request; + expect(r.method).toBe("POST"); + expect(r.path).toBe("/NestedXmlMapWithXmlName"); + + expect(r.headers["content-type"]).toBeDefined(); + expect(r.headers["content-type"]).toBe("application/xml"); + + expect(r.body).toBeDefined(); + const utf8Encoder = client.config.utf8Encoder; + const bodyString = ` + + + foo + + + bar + Baz + + + fizz + Buzz + + + + + qux + + + foobar + Bar + + + fizzbuzz + Buzz + + + + + + `; + const unequalParts: any = compareEquivalentXmlBodies(bodyString, r.body.toString()); + expect(unequalParts).toBeUndefined(); + } +}); + +/** + * Serializes nested XML maps in responses that have xmlName on members + */ +it("NestedXmlMapWithXmlNameDeserializes:Response", async () => { + const client = new RestXmlProtocolClient({ + ...clientParams, + requestHandler: new ResponseDeserializationTestHandler( + true, + 200, + { + "content-type": "application/xml", + }, + ` + + + foo + + + bar + Baz + + + fizz + Buzz + + + + + qux + + + foobar + Bar + + + fizzbuzz + Buzz + + + + + + ` + ), + }); + + const params: any = {}; + const command = new NestedXmlMapWithXmlNameCommand(params); + + let r: any; + try { + r = await client.send(command); + } catch (err) { + fail("Expected a valid response to be returned, got " + err); + return; + } + expect(r["$metadata"].httpStatusCode).toBe(200); + const paramsToValidate: any = [ + { + nestedXmlMapWithXmlNameMap: { + foo: { + bar: "Baz", + fizz: "Buzz", + }, + qux: { + foobar: "Bar", + fizzbuzz: "Buzz", + }, + }, + }, + ][0]; + Object.keys(paramsToValidate).forEach((param) => { + expect(r[param]).toBeDefined(); + expect(equivalentContents(paramsToValidate[param], r[param])).toBe(true); + }); +}); + /** * No input serializes no payload */ @@ -3733,7 +3886,7 @@ it("NoInputAndOutput:Response", async () => { }); /** - * Do not send null values, empty strings, or empty lists over the wire in headers + * Do not send null values, but do send empty strings and empty lists over the wire in headers */ it.skip("NullAndEmptyHeaders:Request", async () => { const client = new RestXmlProtocolClient({ @@ -3760,8 +3913,11 @@ it.skip("NullAndEmptyHeaders:Request", async () => { expect(r.path).toBe("/NullAndEmptyHeadersClient"); expect(r.headers["x-a"]).toBeUndefined(); - expect(r.headers["x-b"]).toBeUndefined(); - expect(r.headers["x-c"]).toBeUndefined(); + + expect(r.headers["x-b"]).toBeDefined(); + expect(r.headers["x-b"]).toBe(""); + expect(r.headers["x-c"]).toBeDefined(); + expect(r.headers["x-c"]).toBe(""); expect(!r.body || r.body === `{}`).toBeTruthy(); } diff --git a/private/aws-restjson-server/src/models/models_0.ts b/private/aws-restjson-server/src/models/models_0.ts index c058c9517d2ca..e7ee58a6697a7 100644 --- a/private/aws-restjson-server/src/models/models_0.ts +++ b/private/aws-restjson-server/src/models/models_0.ts @@ -5648,11 +5648,13 @@ export namespace SimpleScalarPropertiesInputOutput { */ export interface SparseJsonListsInputOutput { sparseStringList?: string[]; + sparseShortList?: number[]; } export namespace SparseJsonListsInputOutput { const memberValidators: { sparseStringList?: __MultiConstraintValidator>; + sparseShortList?: __MultiConstraintValidator>; } = {}; /** * @internal @@ -5670,11 +5672,21 @@ export namespace SparseJsonListsInputOutput { ); break; } + case "sparseShortList": { + memberValidators["sparseShortList"] = new __CompositeCollectionValidator( + new __NoOpValidator(), + new __NoOpValidator() + ); + break; + } } } return memberValidators[member]!; } - return [...getMemberValidator("sparseStringList").validate(obj.sparseStringList, `${path}/sparseStringList`)]; + return [ + ...getMemberValidator("sparseStringList").validate(obj.sparseStringList, `${path}/sparseStringList`), + ...getMemberValidator("sparseShortList").validate(obj.sparseShortList, `${path}/sparseShortList`), + ]; }; } diff --git a/private/aws-restjson-server/src/protocols/Aws_restJson1.ts b/private/aws-restjson-server/src/protocols/Aws_restJson1.ts index a793df8532755..ca48cf3f88171 100644 --- a/private/aws-restjson-server/src/protocols/Aws_restJson1.ts +++ b/private/aws-restjson-server/src/protocols/Aws_restJson1.ts @@ -341,15 +341,20 @@ import { } from "../server/operations/StreamingTraitsWithMediaType"; import { TestBodyStructureServerInput, TestBodyStructureServerOutput } from "../server/operations/TestBodyStructure"; import { - TestNoInputNoPayloadServerInput, - TestNoInputNoPayloadServerOutput, -} from "../server/operations/TestNoInputNoPayload"; -import { TestNoPayloadServerInput, TestNoPayloadServerOutput } from "../server/operations/TestNoPayload"; + TestGetNoInputNoPayloadServerInput, + TestGetNoInputNoPayloadServerOutput, +} from "../server/operations/TestGetNoInputNoPayload"; +import { TestGetNoPayloadServerInput, TestGetNoPayloadServerOutput } from "../server/operations/TestGetNoPayload"; import { TestPayloadBlobServerInput, TestPayloadBlobServerOutput } from "../server/operations/TestPayloadBlob"; import { TestPayloadStructureServerInput, TestPayloadStructureServerOutput, } from "../server/operations/TestPayloadStructure"; +import { + TestPostNoInputNoPayloadServerInput, + TestPostNoInputNoPayloadServerOutput, +} from "../server/operations/TestPostNoInputNoPayload"; +import { TestPostNoPayloadServerInput, TestPostNoPayloadServerOutput } from "../server/operations/TestPostNoPayload"; import { TimestampFormatHeadersServerInput, TimestampFormatHeadersServerOutput, @@ -3495,6 +3500,7 @@ export const deserializeSparseJsonListsRequest = async ( const contents: any = map({}); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); const doc = take(data, { + sparseShortList: (_) => de_SparseShortList(_, context), sparseStringList: (_) => de_SparseStringList(_, context), }); Object.assign(contents, doc); @@ -3624,10 +3630,10 @@ export const deserializeTestBodyStructureRequest = async ( return contents; }; -export const deserializeTestNoInputNoPayloadRequest = async ( +export const deserializeTestGetNoInputNoPayloadRequest = async ( output: __HttpRequest, context: __SerdeContext -): Promise => { +): Promise => { const contentTypeHeaderKey: string | undefined = Object.keys(output.headers).find( (key) => key.toLowerCase() === "content-type" ); @@ -3649,10 +3655,10 @@ export const deserializeTestNoInputNoPayloadRequest = async ( return contents; }; -export const deserializeTestNoPayloadRequest = async ( +export const deserializeTestGetNoPayloadRequest = async ( output: __HttpRequest, context: __SerdeContext -): Promise => { +): Promise => { const contentTypeHeaderKey: string | undefined = Object.keys(output.headers).find( (key) => key.toLowerCase() === "content-type" ); @@ -3716,6 +3722,58 @@ export const deserializeTestPayloadStructureRequest = async ( return contents; }; +export const deserializeTestPostNoInputNoPayloadRequest = async ( + output: __HttpRequest, + context: __SerdeContext +): Promise => { + const contentTypeHeaderKey: string | undefined = Object.keys(output.headers).find( + (key) => key.toLowerCase() === "content-type" + ); + if (contentTypeHeaderKey != null) { + const contentType = output.headers[contentTypeHeaderKey]; + if (contentType !== undefined) { + throw new __UnsupportedMediaTypeException(); + } + } + const acceptHeaderKey: string | undefined = Object.keys(output.headers).find((key) => key.toLowerCase() === "accept"); + if (acceptHeaderKey != null) { + const accept = output.headers[acceptHeaderKey]; + if (!__acceptMatches(accept, "application/json")) { + throw new __NotAcceptableException(); + } + } + const contents: any = map({}); + await collectBody(output.body, context); + return contents; +}; + +export const deserializeTestPostNoPayloadRequest = async ( + output: __HttpRequest, + context: __SerdeContext +): Promise => { + const contentTypeHeaderKey: string | undefined = Object.keys(output.headers).find( + (key) => key.toLowerCase() === "content-type" + ); + if (contentTypeHeaderKey != null) { + const contentType = output.headers[contentTypeHeaderKey]; + if (contentType !== undefined && contentType !== "application/json") { + throw new __UnsupportedMediaTypeException(); + } + } + const acceptHeaderKey: string | undefined = Object.keys(output.headers).find((key) => key.toLowerCase() === "accept"); + if (acceptHeaderKey != null) { + const accept = output.headers[acceptHeaderKey]; + if (!__acceptMatches(accept, "application/json")) { + throw new __NotAcceptableException(); + } + } + const contents: any = map({ + [_tI]: [, output.headers[_xati]], + }); + await collectBody(output.body, context); + return contents; +}; + export const deserializeTimestampFormatHeadersRequest = async ( output: __HttpRequest, context: __SerdeContext @@ -7125,6 +7183,7 @@ export const serializeSparseJsonListsResponse = async ( let body: any; body = JSON.stringify( take(input, { + sparseShortList: (_) => se_SparseShortList(_, context), sparseStringList: (_) => se_SparseStringList(_, context), }) ); @@ -7347,8 +7406,8 @@ export const serializeTestBodyStructureResponse = async ( }); }; -export const serializeTestNoInputNoPayloadResponse = async ( - input: TestNoInputNoPayloadServerOutput, +export const serializeTestGetNoInputNoPayloadResponse = async ( + input: TestGetNoInputNoPayloadServerOutput, ctx: ServerSerdeContext ): Promise<__HttpResponse> => { const context: __SerdeContext = { @@ -7385,8 +7444,8 @@ export const serializeTestNoInputNoPayloadResponse = async ( }); }; -export const serializeTestNoPayloadResponse = async ( - input: TestNoPayloadServerOutput, +export const serializeTestGetNoPayloadResponse = async ( + input: TestGetNoPayloadServerOutput, ctx: ServerSerdeContext ): Promise<__HttpResponse> => { const context: __SerdeContext = { @@ -7506,6 +7565,82 @@ export const serializeTestPayloadStructureResponse = async ( }); }; +export const serializeTestPostNoInputNoPayloadResponse = async ( + input: TestPostNoInputNoPayloadServerOutput, + ctx: ServerSerdeContext +): Promise<__HttpResponse> => { + const context: __SerdeContext = { + ...ctx, + endpoint: () => + Promise.resolve({ + protocol: "", + hostname: "", + path: "", + }), + }; + const statusCode = 200; + let headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/json", + [_xati]: input[_tI]!, + }); + let body: any; + body = "{}"; + if ( + body && + Object.keys(headers) + .map((str) => str.toLowerCase()) + .indexOf("content-length") === -1 + ) { + const length = calculateBodyLength(body); + if (length !== undefined) { + headers = { ...headers, "content-length": String(length) }; + } + } + return new __HttpResponse({ + headers, + body, + statusCode, + }); +}; + +export const serializeTestPostNoPayloadResponse = async ( + input: TestPostNoPayloadServerOutput, + ctx: ServerSerdeContext +): Promise<__HttpResponse> => { + const context: __SerdeContext = { + ...ctx, + endpoint: () => + Promise.resolve({ + protocol: "", + hostname: "", + path: "", + }), + }; + const statusCode = 200; + let headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/json", + [_xati]: input[_tI]!, + }); + let body: any; + body = "{}"; + if ( + body && + Object.keys(headers) + .map((str) => str.toLowerCase()) + .indexOf("content-length") === -1 + ) { + const length = calculateBodyLength(body); + if (length !== undefined) { + headers = { ...headers, "content-length": String(length) }; + } + } + return new __HttpResponse({ + headers, + body, + statusCode, + }); +}; + export const serializeTimestampFormatHeadersResponse = async ( input: TimestampFormatHeadersServerOutput, ctx: ServerSerdeContext @@ -8196,6 +8331,13 @@ const se_NestedStringList = (input: string[][], context: __SerdeContext): any => }); }; +/** + * serializeAws_restJson1SparseShortList + */ +const se_SparseShortList = (input: number[], context: __SerdeContext): any => { + return input; +}; + /** * serializeAws_restJson1SparseStringList */ @@ -8891,6 +9033,19 @@ const de_NestedStringList = (output: any, context: __SerdeContext): string[][] = return retVal; }; +/** + * deserializeAws_restJson1SparseShortList + */ +const de_SparseShortList = (output: any, context: __SerdeContext): number[] => { + const retVal = (output || []).map((entry: any) => { + if (entry === null) { + return null as any; + } + return __expectShort(entry) as any; + }); + return retVal; +}; + /** * deserializeAws_restJson1SparseStringList */ diff --git a/private/aws-restjson-server/src/server/RestJsonService.ts b/private/aws-restjson-server/src/server/RestJsonService.ts index 2a5d96fa1227a..508bb86027b1c 100644 --- a/private/aws-restjson-server/src/server/RestJsonService.ts +++ b/private/aws-restjson-server/src/server/RestJsonService.ts @@ -385,17 +385,31 @@ import { TestBodyStructureServerInput, } from "./operations/TestBodyStructure"; import { - TestNoInputNoPayload, - TestNoInputNoPayloadSerializer, - TestNoInputNoPayloadServerInput, -} from "./operations/TestNoInputNoPayload"; -import { TestNoPayload, TestNoPayloadSerializer, TestNoPayloadServerInput } from "./operations/TestNoPayload"; + TestGetNoInputNoPayload, + TestGetNoInputNoPayloadSerializer, + TestGetNoInputNoPayloadServerInput, +} from "./operations/TestGetNoInputNoPayload"; +import { + TestGetNoPayload, + TestGetNoPayloadSerializer, + TestGetNoPayloadServerInput, +} from "./operations/TestGetNoPayload"; import { TestPayloadBlob, TestPayloadBlobSerializer, TestPayloadBlobServerInput } from "./operations/TestPayloadBlob"; import { TestPayloadStructure, TestPayloadStructureSerializer, TestPayloadStructureServerInput, } from "./operations/TestPayloadStructure"; +import { + TestPostNoInputNoPayload, + TestPostNoInputNoPayloadSerializer, + TestPostNoInputNoPayloadServerInput, +} from "./operations/TestPostNoInputNoPayload"; +import { + TestPostNoPayload, + TestPostNoPayloadSerializer, + TestPostNoPayloadServerInput, +} from "./operations/TestPostNoPayload"; import { TimestampFormatHeaders, TimestampFormatHeadersSerializer, @@ -501,10 +515,12 @@ export type RestJsonServiceOperations = | "StreamingTraitsRequireLength" | "StreamingTraitsWithMediaType" | "TestBodyStructure" - | "TestNoInputNoPayload" - | "TestNoPayload" + | "TestGetNoInputNoPayload" + | "TestGetNoPayload" | "TestPayloadBlob" | "TestPayloadStructure" + | "TestPostNoInputNoPayload" + | "TestPostNoPayload" | "TimestampFormatHeaders" | "UnitInputAndOutput"; export interface RestJsonService { @@ -601,10 +617,12 @@ export interface RestJsonService { StreamingTraitsRequireLength: StreamingTraitsRequireLength; StreamingTraitsWithMediaType: StreamingTraitsWithMediaType; TestBodyStructure: TestBodyStructure; - TestNoInputNoPayload: TestNoInputNoPayload; - TestNoPayload: TestNoPayload; + TestGetNoInputNoPayload: TestGetNoInputNoPayload; + TestGetNoPayload: TestGetNoPayload; TestPayloadBlob: TestPayloadBlob; TestPayloadStructure: TestPayloadStructure; + TestPostNoInputNoPayload: TestPostNoInputNoPayload; + TestPostNoPayload: TestPostNoPayload; TimestampFormatHeaders: TimestampFormatHeaders; UnitInputAndOutput: UnitInputAndOutput; } @@ -1814,27 +1832,27 @@ export class RestJsonServiceHandler implements __ServiceHandler implements __ServiceHandler( service: "RestJson", operation: "TestBodyStructure", }), - new httpbinding.UriSpec<"RestJson", "TestNoInputNoPayload">( + new httpbinding.UriSpec<"RestJson", "TestGetNoInputNoPayload">( "GET", [{ type: "path_literal", value: "no_input_no_payload" }], [], - { service: "RestJson", operation: "TestNoInputNoPayload" } + { service: "RestJson", operation: "TestGetNoInputNoPayload" } + ), + new httpbinding.UriSpec<"RestJson", "TestGetNoPayload">( + "GET", + [{ type: "path_literal", value: "no_payload" }], + [], + { service: "RestJson", operation: "TestGetNoPayload" } ), - new httpbinding.UriSpec<"RestJson", "TestNoPayload">("GET", [{ type: "path_literal", value: "no_payload" }], [], { - service: "RestJson", - operation: "TestNoPayload", - }), new httpbinding.UriSpec<"RestJson", "TestPayloadBlob">( "POST", [{ type: "path_literal", value: "blob_payload" }], @@ -2488,6 +2532,18 @@ export const getRestJsonServiceHandler = ( [], { service: "RestJson", operation: "TestPayloadStructure" } ), + new httpbinding.UriSpec<"RestJson", "TestPostNoInputNoPayload">( + "POST", + [{ type: "path_literal", value: "no_input_no_payload" }], + [], + { service: "RestJson", operation: "TestPostNoInputNoPayload" } + ), + new httpbinding.UriSpec<"RestJson", "TestPostNoPayload">( + "POST", + [{ type: "path_literal", value: "no_payload" }], + [], + { service: "RestJson", operation: "TestPostNoPayload" } + ), new httpbinding.UriSpec<"RestJson", "TimestampFormatHeaders">( "POST", [{ type: "path_literal", value: "TimestampFormatHeaders" }], @@ -2691,14 +2747,18 @@ export const getRestJsonServiceHandler = ( return new StreamingTraitsWithMediaTypeSerializer(); case "TestBodyStructure": return new TestBodyStructureSerializer(); - case "TestNoInputNoPayload": - return new TestNoInputNoPayloadSerializer(); - case "TestNoPayload": - return new TestNoPayloadSerializer(); + case "TestGetNoInputNoPayload": + return new TestGetNoInputNoPayloadSerializer(); + case "TestGetNoPayload": + return new TestGetNoPayloadSerializer(); case "TestPayloadBlob": return new TestPayloadBlobSerializer(); case "TestPayloadStructure": return new TestPayloadStructureSerializer(); + case "TestPostNoInputNoPayload": + return new TestPostNoInputNoPayloadSerializer(); + case "TestPostNoPayload": + return new TestPostNoPayloadSerializer(); case "TimestampFormatHeaders": return new TimestampFormatHeadersSerializer(); case "UnitInputAndOutput": diff --git a/private/aws-restjson-server/src/server/operations/TestGetNoInputNoPayload.ts b/private/aws-restjson-server/src/server/operations/TestGetNoInputNoPayload.ts new file mode 100644 index 0000000000000..d541ab3b33d1b --- /dev/null +++ b/private/aws-restjson-server/src/server/operations/TestGetNoInputNoPayload.ts @@ -0,0 +1,197 @@ +// smithy-typescript generated code +import { + httpbinding, + InternalFailureException as __InternalFailureException, + isFrameworkException as __isFrameworkException, + Mux as __Mux, + Operation as __Operation, + OperationInput as __OperationInput, + OperationOutput as __OperationOutput, + OperationSerializer as __OperationSerializer, + SerializationException as __SerializationException, + ServerSerdeContext as __ServerSerdeContext, + ServerSerdeContext, + ServiceException as __ServiceException, + ServiceHandler as __ServiceHandler, + SmithyFrameworkException as __SmithyFrameworkException, + ValidationCustomizer as __ValidationCustomizer, + ValidationFailure as __ValidationFailure, +} from "@aws-smithy/server-common"; +import { NodeHttpHandler, streamCollector } from "@smithy/node-http-handler"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { fromBase64, toBase64 } from "@smithy/util-base64"; +import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; + +import { TestNoPayloadInputOutput } from "../../models/models_0"; +import { + deserializeTestGetNoInputNoPayloadRequest, + serializeFrameworkException, + serializeTestGetNoInputNoPayloadResponse, +} from "../../protocols/Aws_restJson1"; +import { RestJsonService } from "../RestJsonService"; + +export type TestGetNoInputNoPayload = __Operation< + TestGetNoInputNoPayloadServerInput, + TestGetNoInputNoPayloadServerOutput, + Context +>; + +export interface TestGetNoInputNoPayloadServerInput {} +export namespace TestGetNoInputNoPayloadServerInput { + /** + * @internal + */ + export const validate: () => __ValidationFailure[] = () => []; +} +export interface TestGetNoInputNoPayloadServerOutput extends TestNoPayloadInputOutput {} + +export type TestGetNoInputNoPayloadErrors = never; + +export class TestGetNoInputNoPayloadSerializer + implements __OperationSerializer, "TestGetNoInputNoPayload", TestGetNoInputNoPayloadErrors> +{ + serialize = serializeTestGetNoInputNoPayloadResponse; + deserialize = deserializeTestGetNoInputNoPayloadRequest; + + isOperationError(error: any): error is TestGetNoInputNoPayloadErrors { + return false; + } + + serializeError(error: TestGetNoInputNoPayloadErrors, ctx: ServerSerdeContext): Promise<__HttpResponse> { + throw error; + } +} + +export const getTestGetNoInputNoPayloadHandler = ( + operation: __Operation, + customizer: __ValidationCustomizer<"TestGetNoInputNoPayload"> +): __ServiceHandler => { + const mux = new httpbinding.HttpBindingMux<"RestJson", "TestGetNoInputNoPayload">([ + new httpbinding.UriSpec<"RestJson", "TestGetNoInputNoPayload">( + "GET", + [{ type: "path_literal", value: "no_input_no_payload" }], + [], + { service: "RestJson", operation: "TestGetNoInputNoPayload" } + ), + ]); + return new TestGetNoInputNoPayloadHandler( + operation, + mux, + new TestGetNoInputNoPayloadSerializer(), + serializeFrameworkException, + customizer + ); +}; + +const serdeContextBase = { + base64Encoder: toBase64, + base64Decoder: fromBase64, + utf8Encoder: toUtf8, + utf8Decoder: fromUtf8, + streamCollector: streamCollector, + requestHandler: new NodeHttpHandler(), + disableHostPrefix: true, +}; +async function handle( + request: __HttpRequest, + context: Context, + operationName: O, + serializer: __OperationSerializer, + operation: __Operation<__OperationInput, __OperationOutput, Context>, + serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, + validationFn: (input: __OperationInput) => __ValidationFailure[], + validationCustomizer: __ValidationCustomizer +): Promise<__HttpResponse> { + let input; + try { + input = await serializer.deserialize(request, { + endpoint: () => Promise.resolve(request), + ...serdeContextBase, + }); + } catch (error: unknown) { + if (__isFrameworkException(error)) { + return serializeFrameworkException(error, serdeContextBase); + } + return serializeFrameworkException(new __SerializationException(), serdeContextBase); + } + try { + const validationFailures = validationFn(input); + if (validationFailures && validationFailures.length > 0) { + const validationException = validationCustomizer({ operation: operationName }, validationFailures); + if (validationException) { + return serializer.serializeError(validationException, serdeContextBase); + } + } + const output = await operation(input, context); + return serializer.serialize(output, serdeContextBase); + } catch (error: unknown) { + if (serializer.isOperationError(error)) { + return serializer.serializeError(error, serdeContextBase); + } + console.log("Received an unexpected error", error); + return serializeFrameworkException(new __InternalFailureException(), serdeContextBase); + } +} +export class TestGetNoInputNoPayloadHandler implements __ServiceHandler { + private readonly operation: __Operation< + TestGetNoInputNoPayloadServerInput, + TestGetNoInputNoPayloadServerOutput, + Context + >; + private readonly mux: __Mux<"RestJson", "TestGetNoInputNoPayload">; + private readonly serializer: __OperationSerializer< + RestJsonService, + "TestGetNoInputNoPayload", + TestGetNoInputNoPayloadErrors + >; + private readonly serializeFrameworkException: ( + e: __SmithyFrameworkException, + ctx: __ServerSerdeContext + ) => Promise<__HttpResponse>; + private readonly validationCustomizer: __ValidationCustomizer<"TestGetNoInputNoPayload">; + /** + * Construct a TestGetNoInputNoPayload handler. + * @param operation The {@link __Operation} implementation that supplies the business logic for TestGetNoInputNoPayload + * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest} + * @param serializer An {@link __OperationSerializer} for TestGetNoInputNoPayload that + * handles deserialization of requests and serialization of responses + * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s + * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s + */ + constructor( + operation: __Operation, + mux: __Mux<"RestJson", "TestGetNoInputNoPayload">, + serializer: __OperationSerializer< + RestJsonService, + "TestGetNoInputNoPayload", + TestGetNoInputNoPayloadErrors + >, + serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, + validationCustomizer: __ValidationCustomizer<"TestGetNoInputNoPayload"> + ) { + this.operation = operation; + this.mux = mux; + this.serializer = serializer; + this.serializeFrameworkException = serializeFrameworkException; + this.validationCustomizer = validationCustomizer; + } + async handle(request: __HttpRequest, context: Context): Promise<__HttpResponse> { + const target = this.mux.match(request); + if (target === undefined) { + console.log( + "Received a request that did not match aws.protocoltests.restjson#RestJson.TestGetNoInputNoPayload. This indicates a misconfiguration." + ); + return this.serializeFrameworkException(new __InternalFailureException(), serdeContextBase); + } + return handle( + request, + context, + "TestGetNoInputNoPayload", + this.serializer, + this.operation, + this.serializeFrameworkException, + TestGetNoInputNoPayloadServerInput.validate, + this.validationCustomizer + ); + } +} diff --git a/private/aws-restjson-server/src/server/operations/TestNoPayload.ts b/private/aws-restjson-server/src/server/operations/TestGetNoPayload.ts similarity index 69% rename from private/aws-restjson-server/src/server/operations/TestNoPayload.ts rename to private/aws-restjson-server/src/server/operations/TestGetNoPayload.ts index 8dcb63d08d680..4d91c1cf1d8c0 100644 --- a/private/aws-restjson-server/src/server/operations/TestNoPayload.ts +++ b/private/aws-restjson-server/src/server/operations/TestGetNoPayload.ts @@ -24,55 +24,57 @@ import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; import { TestNoPayloadInputOutput } from "../../models/models_0"; import { - deserializeTestNoPayloadRequest, + deserializeTestGetNoPayloadRequest, serializeFrameworkException, - serializeTestNoPayloadResponse, + serializeTestGetNoPayloadResponse, } from "../../protocols/Aws_restJson1"; import { RestJsonService } from "../RestJsonService"; -export type TestNoPayload = __Operation; +export type TestGetNoPayload = __Operation; -export interface TestNoPayloadServerInput extends TestNoPayloadInputOutput {} -export namespace TestNoPayloadServerInput { +export interface TestGetNoPayloadServerInput extends TestNoPayloadInputOutput {} +export namespace TestGetNoPayloadServerInput { /** * @internal */ export const validate: (obj: Parameters[0]) => __ValidationFailure[] = TestNoPayloadInputOutput.validate; } -export interface TestNoPayloadServerOutput extends TestNoPayloadInputOutput {} +export interface TestGetNoPayloadServerOutput extends TestNoPayloadInputOutput {} -export type TestNoPayloadErrors = never; +export type TestGetNoPayloadErrors = never; -export class TestNoPayloadSerializer - implements __OperationSerializer, "TestNoPayload", TestNoPayloadErrors> +export class TestGetNoPayloadSerializer + implements __OperationSerializer, "TestGetNoPayload", TestGetNoPayloadErrors> { - serialize = serializeTestNoPayloadResponse; - deserialize = deserializeTestNoPayloadRequest; + serialize = serializeTestGetNoPayloadResponse; + deserialize = deserializeTestGetNoPayloadRequest; - isOperationError(error: any): error is TestNoPayloadErrors { + isOperationError(error: any): error is TestGetNoPayloadErrors { return false; } - serializeError(error: TestNoPayloadErrors, ctx: ServerSerdeContext): Promise<__HttpResponse> { + serializeError(error: TestGetNoPayloadErrors, ctx: ServerSerdeContext): Promise<__HttpResponse> { throw error; } } -export const getTestNoPayloadHandler = ( - operation: __Operation, - customizer: __ValidationCustomizer<"TestNoPayload"> +export const getTestGetNoPayloadHandler = ( + operation: __Operation, + customizer: __ValidationCustomizer<"TestGetNoPayload"> ): __ServiceHandler => { - const mux = new httpbinding.HttpBindingMux<"RestJson", "TestNoPayload">([ - new httpbinding.UriSpec<"RestJson", "TestNoPayload">("GET", [{ type: "path_literal", value: "no_payload" }], [], { - service: "RestJson", - operation: "TestNoPayload", - }), + const mux = new httpbinding.HttpBindingMux<"RestJson", "TestGetNoPayload">([ + new httpbinding.UriSpec<"RestJson", "TestGetNoPayload">( + "GET", + [{ type: "path_literal", value: "no_payload" }], + [], + { service: "RestJson", operation: "TestGetNoPayload" } + ), ]); - return new TestNoPayloadHandler( + return new TestGetNoPayloadHandler( operation, mux, - new TestNoPayloadSerializer(), + new TestGetNoPayloadSerializer(), serializeFrameworkException, customizer ); @@ -127,30 +129,34 @@ async function handle( return serializeFrameworkException(new __InternalFailureException(), serdeContextBase); } } -export class TestNoPayloadHandler implements __ServiceHandler { - private readonly operation: __Operation; - private readonly mux: __Mux<"RestJson", "TestNoPayload">; - private readonly serializer: __OperationSerializer, "TestNoPayload", TestNoPayloadErrors>; +export class TestGetNoPayloadHandler implements __ServiceHandler { + private readonly operation: __Operation; + private readonly mux: __Mux<"RestJson", "TestGetNoPayload">; + private readonly serializer: __OperationSerializer< + RestJsonService, + "TestGetNoPayload", + TestGetNoPayloadErrors + >; private readonly serializeFrameworkException: ( e: __SmithyFrameworkException, ctx: __ServerSerdeContext ) => Promise<__HttpResponse>; - private readonly validationCustomizer: __ValidationCustomizer<"TestNoPayload">; + private readonly validationCustomizer: __ValidationCustomizer<"TestGetNoPayload">; /** - * Construct a TestNoPayload handler. - * @param operation The {@link __Operation} implementation that supplies the business logic for TestNoPayload + * Construct a TestGetNoPayload handler. + * @param operation The {@link __Operation} implementation that supplies the business logic for TestGetNoPayload * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest} - * @param serializer An {@link __OperationSerializer} for TestNoPayload that + * @param serializer An {@link __OperationSerializer} for TestGetNoPayload that * handles deserialization of requests and serialization of responses * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s */ constructor( - operation: __Operation, - mux: __Mux<"RestJson", "TestNoPayload">, - serializer: __OperationSerializer, "TestNoPayload", TestNoPayloadErrors>, + operation: __Operation, + mux: __Mux<"RestJson", "TestGetNoPayload">, + serializer: __OperationSerializer, "TestGetNoPayload", TestGetNoPayloadErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, - validationCustomizer: __ValidationCustomizer<"TestNoPayload"> + validationCustomizer: __ValidationCustomizer<"TestGetNoPayload"> ) { this.operation = operation; this.mux = mux; @@ -162,18 +168,18 @@ export class TestNoPayloadHandler implements __ServiceHandler const target = this.mux.match(request); if (target === undefined) { console.log( - "Received a request that did not match aws.protocoltests.restjson#RestJson.TestNoPayload. This indicates a misconfiguration." + "Received a request that did not match aws.protocoltests.restjson#RestJson.TestGetNoPayload. This indicates a misconfiguration." ); return this.serializeFrameworkException(new __InternalFailureException(), serdeContextBase); } return handle( request, context, - "TestNoPayload", + "TestGetNoPayload", this.serializer, this.operation, this.serializeFrameworkException, - TestNoPayloadServerInput.validate, + TestGetNoPayloadServerInput.validate, this.validationCustomizer ); } diff --git a/private/aws-restjson-server/src/server/operations/TestPostNoInputNoPayload.ts b/private/aws-restjson-server/src/server/operations/TestPostNoInputNoPayload.ts new file mode 100644 index 0000000000000..7abb85c40feb7 --- /dev/null +++ b/private/aws-restjson-server/src/server/operations/TestPostNoInputNoPayload.ts @@ -0,0 +1,197 @@ +// smithy-typescript generated code +import { + httpbinding, + InternalFailureException as __InternalFailureException, + isFrameworkException as __isFrameworkException, + Mux as __Mux, + Operation as __Operation, + OperationInput as __OperationInput, + OperationOutput as __OperationOutput, + OperationSerializer as __OperationSerializer, + SerializationException as __SerializationException, + ServerSerdeContext as __ServerSerdeContext, + ServerSerdeContext, + ServiceException as __ServiceException, + ServiceHandler as __ServiceHandler, + SmithyFrameworkException as __SmithyFrameworkException, + ValidationCustomizer as __ValidationCustomizer, + ValidationFailure as __ValidationFailure, +} from "@aws-smithy/server-common"; +import { NodeHttpHandler, streamCollector } from "@smithy/node-http-handler"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { fromBase64, toBase64 } from "@smithy/util-base64"; +import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; + +import { TestNoPayloadInputOutput } from "../../models/models_0"; +import { + deserializeTestPostNoInputNoPayloadRequest, + serializeFrameworkException, + serializeTestPostNoInputNoPayloadResponse, +} from "../../protocols/Aws_restJson1"; +import { RestJsonService } from "../RestJsonService"; + +export type TestPostNoInputNoPayload = __Operation< + TestPostNoInputNoPayloadServerInput, + TestPostNoInputNoPayloadServerOutput, + Context +>; + +export interface TestPostNoInputNoPayloadServerInput {} +export namespace TestPostNoInputNoPayloadServerInput { + /** + * @internal + */ + export const validate: () => __ValidationFailure[] = () => []; +} +export interface TestPostNoInputNoPayloadServerOutput extends TestNoPayloadInputOutput {} + +export type TestPostNoInputNoPayloadErrors = never; + +export class TestPostNoInputNoPayloadSerializer + implements __OperationSerializer, "TestPostNoInputNoPayload", TestPostNoInputNoPayloadErrors> +{ + serialize = serializeTestPostNoInputNoPayloadResponse; + deserialize = deserializeTestPostNoInputNoPayloadRequest; + + isOperationError(error: any): error is TestPostNoInputNoPayloadErrors { + return false; + } + + serializeError(error: TestPostNoInputNoPayloadErrors, ctx: ServerSerdeContext): Promise<__HttpResponse> { + throw error; + } +} + +export const getTestPostNoInputNoPayloadHandler = ( + operation: __Operation, + customizer: __ValidationCustomizer<"TestPostNoInputNoPayload"> +): __ServiceHandler => { + const mux = new httpbinding.HttpBindingMux<"RestJson", "TestPostNoInputNoPayload">([ + new httpbinding.UriSpec<"RestJson", "TestPostNoInputNoPayload">( + "POST", + [{ type: "path_literal", value: "no_input_no_payload" }], + [], + { service: "RestJson", operation: "TestPostNoInputNoPayload" } + ), + ]); + return new TestPostNoInputNoPayloadHandler( + operation, + mux, + new TestPostNoInputNoPayloadSerializer(), + serializeFrameworkException, + customizer + ); +}; + +const serdeContextBase = { + base64Encoder: toBase64, + base64Decoder: fromBase64, + utf8Encoder: toUtf8, + utf8Decoder: fromUtf8, + streamCollector: streamCollector, + requestHandler: new NodeHttpHandler(), + disableHostPrefix: true, +}; +async function handle( + request: __HttpRequest, + context: Context, + operationName: O, + serializer: __OperationSerializer, + operation: __Operation<__OperationInput, __OperationOutput, Context>, + serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, + validationFn: (input: __OperationInput) => __ValidationFailure[], + validationCustomizer: __ValidationCustomizer +): Promise<__HttpResponse> { + let input; + try { + input = await serializer.deserialize(request, { + endpoint: () => Promise.resolve(request), + ...serdeContextBase, + }); + } catch (error: unknown) { + if (__isFrameworkException(error)) { + return serializeFrameworkException(error, serdeContextBase); + } + return serializeFrameworkException(new __SerializationException(), serdeContextBase); + } + try { + const validationFailures = validationFn(input); + if (validationFailures && validationFailures.length > 0) { + const validationException = validationCustomizer({ operation: operationName }, validationFailures); + if (validationException) { + return serializer.serializeError(validationException, serdeContextBase); + } + } + const output = await operation(input, context); + return serializer.serialize(output, serdeContextBase); + } catch (error: unknown) { + if (serializer.isOperationError(error)) { + return serializer.serializeError(error, serdeContextBase); + } + console.log("Received an unexpected error", error); + return serializeFrameworkException(new __InternalFailureException(), serdeContextBase); + } +} +export class TestPostNoInputNoPayloadHandler implements __ServiceHandler { + private readonly operation: __Operation< + TestPostNoInputNoPayloadServerInput, + TestPostNoInputNoPayloadServerOutput, + Context + >; + private readonly mux: __Mux<"RestJson", "TestPostNoInputNoPayload">; + private readonly serializer: __OperationSerializer< + RestJsonService, + "TestPostNoInputNoPayload", + TestPostNoInputNoPayloadErrors + >; + private readonly serializeFrameworkException: ( + e: __SmithyFrameworkException, + ctx: __ServerSerdeContext + ) => Promise<__HttpResponse>; + private readonly validationCustomizer: __ValidationCustomizer<"TestPostNoInputNoPayload">; + /** + * Construct a TestPostNoInputNoPayload handler. + * @param operation The {@link __Operation} implementation that supplies the business logic for TestPostNoInputNoPayload + * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest} + * @param serializer An {@link __OperationSerializer} for TestPostNoInputNoPayload that + * handles deserialization of requests and serialization of responses + * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s + * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s + */ + constructor( + operation: __Operation, + mux: __Mux<"RestJson", "TestPostNoInputNoPayload">, + serializer: __OperationSerializer< + RestJsonService, + "TestPostNoInputNoPayload", + TestPostNoInputNoPayloadErrors + >, + serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, + validationCustomizer: __ValidationCustomizer<"TestPostNoInputNoPayload"> + ) { + this.operation = operation; + this.mux = mux; + this.serializer = serializer; + this.serializeFrameworkException = serializeFrameworkException; + this.validationCustomizer = validationCustomizer; + } + async handle(request: __HttpRequest, context: Context): Promise<__HttpResponse> { + const target = this.mux.match(request); + if (target === undefined) { + console.log( + "Received a request that did not match aws.protocoltests.restjson#RestJson.TestPostNoInputNoPayload. This indicates a misconfiguration." + ); + return this.serializeFrameworkException(new __InternalFailureException(), serdeContextBase); + } + return handle( + request, + context, + "TestPostNoInputNoPayload", + this.serializer, + this.operation, + this.serializeFrameworkException, + TestPostNoInputNoPayloadServerInput.validate, + this.validationCustomizer + ); + } +} diff --git a/private/aws-restjson-server/src/server/operations/TestNoInputNoPayload.ts b/private/aws-restjson-server/src/server/operations/TestPostNoPayload.ts similarity index 68% rename from private/aws-restjson-server/src/server/operations/TestNoInputNoPayload.ts rename to private/aws-restjson-server/src/server/operations/TestPostNoPayload.ts index 0ecbc9d3515a3..f0f8922c92b02 100644 --- a/private/aws-restjson-server/src/server/operations/TestNoInputNoPayload.ts +++ b/private/aws-restjson-server/src/server/operations/TestPostNoPayload.ts @@ -24,60 +24,61 @@ import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; import { TestNoPayloadInputOutput } from "../../models/models_0"; import { - deserializeTestNoInputNoPayloadRequest, + deserializeTestPostNoPayloadRequest, serializeFrameworkException, - serializeTestNoInputNoPayloadResponse, + serializeTestPostNoPayloadResponse, } from "../../protocols/Aws_restJson1"; import { RestJsonService } from "../RestJsonService"; -export type TestNoInputNoPayload = __Operation< - TestNoInputNoPayloadServerInput, - TestNoInputNoPayloadServerOutput, +export type TestPostNoPayload = __Operation< + TestPostNoPayloadServerInput, + TestPostNoPayloadServerOutput, Context >; -export interface TestNoInputNoPayloadServerInput {} -export namespace TestNoInputNoPayloadServerInput { +export interface TestPostNoPayloadServerInput extends TestNoPayloadInputOutput {} +export namespace TestPostNoPayloadServerInput { /** * @internal */ - export const validate: () => __ValidationFailure[] = () => []; + export const validate: (obj: Parameters[0]) => __ValidationFailure[] = + TestNoPayloadInputOutput.validate; } -export interface TestNoInputNoPayloadServerOutput extends TestNoPayloadInputOutput {} +export interface TestPostNoPayloadServerOutput extends TestNoPayloadInputOutput {} -export type TestNoInputNoPayloadErrors = never; +export type TestPostNoPayloadErrors = never; -export class TestNoInputNoPayloadSerializer - implements __OperationSerializer, "TestNoInputNoPayload", TestNoInputNoPayloadErrors> +export class TestPostNoPayloadSerializer + implements __OperationSerializer, "TestPostNoPayload", TestPostNoPayloadErrors> { - serialize = serializeTestNoInputNoPayloadResponse; - deserialize = deserializeTestNoInputNoPayloadRequest; + serialize = serializeTestPostNoPayloadResponse; + deserialize = deserializeTestPostNoPayloadRequest; - isOperationError(error: any): error is TestNoInputNoPayloadErrors { + isOperationError(error: any): error is TestPostNoPayloadErrors { return false; } - serializeError(error: TestNoInputNoPayloadErrors, ctx: ServerSerdeContext): Promise<__HttpResponse> { + serializeError(error: TestPostNoPayloadErrors, ctx: ServerSerdeContext): Promise<__HttpResponse> { throw error; } } -export const getTestNoInputNoPayloadHandler = ( - operation: __Operation, - customizer: __ValidationCustomizer<"TestNoInputNoPayload"> +export const getTestPostNoPayloadHandler = ( + operation: __Operation, + customizer: __ValidationCustomizer<"TestPostNoPayload"> ): __ServiceHandler => { - const mux = new httpbinding.HttpBindingMux<"RestJson", "TestNoInputNoPayload">([ - new httpbinding.UriSpec<"RestJson", "TestNoInputNoPayload">( - "GET", - [{ type: "path_literal", value: "no_input_no_payload" }], + const mux = new httpbinding.HttpBindingMux<"RestJson", "TestPostNoPayload">([ + new httpbinding.UriSpec<"RestJson", "TestPostNoPayload">( + "POST", + [{ type: "path_literal", value: "no_payload" }], [], - { service: "RestJson", operation: "TestNoInputNoPayload" } + { service: "RestJson", operation: "TestPostNoPayload" } ), ]); - return new TestNoInputNoPayloadHandler( + return new TestPostNoPayloadHandler( operation, mux, - new TestNoInputNoPayloadSerializer(), + new TestPostNoPayloadSerializer(), serializeFrameworkException, customizer ); @@ -132,34 +133,34 @@ async function handle( return serializeFrameworkException(new __InternalFailureException(), serdeContextBase); } } -export class TestNoInputNoPayloadHandler implements __ServiceHandler { - private readonly operation: __Operation; - private readonly mux: __Mux<"RestJson", "TestNoInputNoPayload">; +export class TestPostNoPayloadHandler implements __ServiceHandler { + private readonly operation: __Operation; + private readonly mux: __Mux<"RestJson", "TestPostNoPayload">; private readonly serializer: __OperationSerializer< RestJsonService, - "TestNoInputNoPayload", - TestNoInputNoPayloadErrors + "TestPostNoPayload", + TestPostNoPayloadErrors >; private readonly serializeFrameworkException: ( e: __SmithyFrameworkException, ctx: __ServerSerdeContext ) => Promise<__HttpResponse>; - private readonly validationCustomizer: __ValidationCustomizer<"TestNoInputNoPayload">; + private readonly validationCustomizer: __ValidationCustomizer<"TestPostNoPayload">; /** - * Construct a TestNoInputNoPayload handler. - * @param operation The {@link __Operation} implementation that supplies the business logic for TestNoInputNoPayload + * Construct a TestPostNoPayload handler. + * @param operation The {@link __Operation} implementation that supplies the business logic for TestPostNoPayload * @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest} - * @param serializer An {@link __OperationSerializer} for TestNoInputNoPayload that + * @param serializer An {@link __OperationSerializer} for TestPostNoPayload that * handles deserialization of requests and serialization of responses * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s */ constructor( - operation: __Operation, - mux: __Mux<"RestJson", "TestNoInputNoPayload">, - serializer: __OperationSerializer, "TestNoInputNoPayload", TestNoInputNoPayloadErrors>, + operation: __Operation, + mux: __Mux<"RestJson", "TestPostNoPayload">, + serializer: __OperationSerializer, "TestPostNoPayload", TestPostNoPayloadErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, - validationCustomizer: __ValidationCustomizer<"TestNoInputNoPayload"> + validationCustomizer: __ValidationCustomizer<"TestPostNoPayload"> ) { this.operation = operation; this.mux = mux; @@ -171,18 +172,18 @@ export class TestNoInputNoPayloadHandler implements __ServiceHandler { headers: { "content-type": "application/json", }, - body: Readable.from(['{\n "sparseStringList": [\n null,\n "hi"\n ]\n}']), + body: Readable.from([ + '{\n "sparseStringList": [\n null,\n "hi"\n ],\n "sparseShortList": [\n null,\n 2\n ]\n}', + ]), }); await handler.handle(request, {}); @@ -29694,6 +29698,7 @@ it("RestJsonSparseListsSerializeNull:ServerRequest", async () => { const paramsToValidate: any = [ { sparseStringList: [null, "hi"], + sparseShortList: [null, 2], }, ][0]; Object.keys(paramsToValidate).forEach((param) => { @@ -29710,6 +29715,7 @@ it("RestJsonSparseListsSerializeNull:ServerResponse", async () => { SparseJsonLists(input: any, ctx: {}): Promise { const response = { sparseStringList: [null, "hi"], + sparseShortList: [null, 2], } as any; return Promise.resolve({ ...response, $metadata: {} }); } @@ -29757,6 +29763,10 @@ it("RestJsonSparseListsSerializeNull:ServerResponse", async () => { \"sparseStringList\": [ null, \"hi\" + ], + \"sparseShortList\": [ + null, + 2 ] }`; const unequalParts: any = compareEquivalentJsonBodies(bodyString, r.body.toString()); @@ -30875,11 +30885,11 @@ it("RestJsonHttpWithEmptyBody:ServerRequest", async () => { /** * Serializes a GET request for an operation with no input, and therefore no modeled body */ -it("RestJsonHttpWithNoInput:ServerRequest", async () => { +it("RestJsonHttpGetWithNoInput:ServerRequest", async () => { const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { - TestNoInputNoPayload: testFunction as TestNoInputNoPayload<{}>, + TestGetNoInputNoPayload: testFunction as TestGetNoInputNoPayload<{}>, }; const handler = getRestJsonServiceHandler( testService as RestJsonService<{}>, @@ -30907,11 +30917,11 @@ it("RestJsonHttpWithNoInput:ServerRequest", async () => { /** * Serializes a GET request with no modeled body */ -it("RestJsonHttpWithNoModeledBody:ServerRequest", async () => { +it("RestJsonHttpGetWithNoModeledBody:ServerRequest", async () => { const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { - TestNoPayload: testFunction as TestNoPayload<{}>, + TestGetNoPayload: testFunction as TestGetNoPayload<{}>, }; const handler = getRestJsonServiceHandler( testService as RestJsonService<{}>, @@ -30939,11 +30949,11 @@ it("RestJsonHttpWithNoModeledBody:ServerRequest", async () => { /** * Serializes a GET request with header member but no modeled body */ -it("RestJsonHttpWithHeaderMemberNoModeledBody:ServerRequest", async () => { +it("RestJsonHttpGetWithHeaderMemberNoModeledBody:ServerRequest", async () => { const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { - TestNoPayload: testFunction as TestNoPayload<{}>, + TestGetNoPayload: testFunction as TestGetNoPayload<{}>, }; const handler = getRestJsonServiceHandler( testService as RestJsonService<{}>, @@ -31003,9 +31013,7 @@ it("RestJsonHttpWithEmptyBlobPayload:ServerRequest", async () => { hostname: "foo.example.com", path: "/blob_payload", query: {}, - headers: { - "content-type": "application/octet-stream", - }, + headers: {}, body: Readable.from([""]), }); await handler.handle(request, {}); @@ -31184,6 +31192,114 @@ it("RestJsonHttpWithHeadersButNoPayload:ServerRequest", async () => { }); }); +/** + * Serializes a POST request for an operation with no input, and therefore no modeled body + */ +it("RestJsonHttpPostWithNoInput:ServerRequest", async () => { + const testFunction = jest.fn(); + testFunction.mockReturnValue(Promise.resolve({})); + const testService: Partial> = { + TestPostNoInputNoPayload: testFunction as TestPostNoInputNoPayload<{}>, + }; + const handler = getRestJsonServiceHandler( + testService as RestJsonService<{}>, + (ctx: {}, failures: __ValidationFailure[]) => { + if (failures) { + throw failures; + } + return undefined; + } + ); + const request = new HttpRequest({ + method: "POST", + hostname: "foo.example.com", + path: "/no_input_no_payload", + query: {}, + headers: {}, + body: Readable.from([""]), + }); + await handler.handle(request, {}); + + expect(testFunction.mock.calls.length).toBe(1); + const r: any = testFunction.mock.calls[0][0]; +}); + +/** + * Serializes a POST request with no modeled body + */ +it("RestJsonHttpPostWithNoModeledBody:ServerRequest", async () => { + const testFunction = jest.fn(); + testFunction.mockReturnValue(Promise.resolve({})); + const testService: Partial> = { + TestPostNoPayload: testFunction as TestPostNoPayload<{}>, + }; + const handler = getRestJsonServiceHandler( + testService as RestJsonService<{}>, + (ctx: {}, failures: __ValidationFailure[]) => { + if (failures) { + throw failures; + } + return undefined; + } + ); + const request = new HttpRequest({ + method: "POST", + hostname: "foo.example.com", + path: "/no_payload", + query: {}, + headers: {}, + body: Readable.from([""]), + }); + await handler.handle(request, {}); + + expect(testFunction.mock.calls.length).toBe(1); + const r: any = testFunction.mock.calls[0][0]; +}); + +/** + * Serializes a POST request with header member but no modeled body + */ +it("RestJsonHttpWithPostHeaderMemberNoModeledBody:ServerRequest", async () => { + const testFunction = jest.fn(); + testFunction.mockReturnValue(Promise.resolve({})); + const testService: Partial> = { + TestPostNoPayload: testFunction as TestPostNoPayload<{}>, + }; + const handler = getRestJsonServiceHandler( + testService as RestJsonService<{}>, + (ctx: {}, failures: __ValidationFailure[]) => { + if (failures) { + throw failures; + } + return undefined; + } + ); + const request = new HttpRequest({ + method: "POST", + hostname: "foo.example.com", + path: "/no_payload", + query: {}, + headers: { + "x-amz-test-id": "t-12345", + }, + body: Readable.from([""]), + }); + await handler.handle(request, {}); + + expect(testFunction.mock.calls.length).toBe(1); + const r: any = testFunction.mock.calls[0][0]; + + const paramsToValidate: any = [ + { + testId: "t-12345", + }, + ][0]; + Object.keys(paramsToValidate).forEach((param) => { + expect(r[param]).toBeDefined(); + expect(equivalentContents(paramsToValidate[param], r[param])).toBe(true); + }); +}); + /** * Tests how timestamp request headers are serialized */ diff --git a/private/aws-restjson-validation-server/test/functional/restjson1.spec.ts b/private/aws-restjson-validation-server/test/functional/restjson1.spec.ts index 351e118cf1428..ccaa1d25c3cbd 100644 --- a/private/aws-restjson-validation-server/test/functional/restjson1.spec.ts +++ b/private/aws-restjson-validation-server/test/functional/restjson1.spec.ts @@ -1908,8 +1908,8 @@ it.skip("RestJsonMalformedPatternReDOSString:MalformedRequest", async () => { expect(r.body).toBeDefined(); const utf8Encoder = __utf8Encoder; - const bodyString = `{ \"message\" : \"1 validation error detected. Value 000000000000000000000000000000000000000000000000000000000000000000000000000000000000! at '/evilString' failed to satisfy constraint: Member must satisfy regular expression pattern: ^([0-9]+)+$$\", - \"fieldList\" : [{\"message\": \"Value 000000000000000000000000000000000000000000000000000000000000000000000000000000000000! at '/evilString' failed to satisfy constraint: Member must satisfy regular expression pattern: ^([0-9]+)+$$\", \"path\": \"/evilString\"}]}`; + const bodyString = `{ \"message\" : \"1 validation error detected. Value at '/evilString' failed to satisfy constraint: Member must satisfy regular expression pattern: ^([0-9]+)+$$\", + \"fieldList\" : [{\"message\": \"Value at '/evilString' failed to satisfy constraint: Member must satisfy regular expression pattern: ^([0-9]+)+$$\", \"path\": \"/evilString\"}]}`; const unequalParts: any = compareEquivalentJsonBodies(bodyString, r.body.toString()); expect(unequalParts).toBeUndefined(); }); diff --git a/private/weather-legacy-auth/package.json b/private/weather-legacy-auth/package.json index e0c6e5530620b..fc175290acc53 100644 --- a/private/weather-legacy-auth/package.json +++ b/private/weather-legacy-auth/package.json @@ -55,13 +55,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/private/weather/package.json b/private/weather/package.json index 988577df5c314..ab4376ba05a12 100644 --- a/private/weather/package.json +++ b/private/weather/package.json @@ -55,13 +55,13 @@ "@smithy/util-middleware": "^3.0.7", "@smithy/util-retry": "^3.0.7", "@smithy/util-utf8": "^3.0.0", + "@types/uuid": "^9.0.1", "tslib": "^2.6.2", "uuid": "^9.0.1" }, "devDependencies": { "@tsconfig/node16": "16.1.3", "@types/node": "^16.18.96", - "@types/uuid": "^9.0.4", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/scripts/generate-clients/config.js b/scripts/generate-clients/config.js index afeeb2929bf80..bb27491a11a69 100644 --- a/scripts/generate-clients/config.js +++ b/scripts/generate-clients/config.js @@ -1,7 +1,7 @@ // Update this commit when taking up new changes from smithy-typescript. module.exports = { // Use full commit hash as we explicitly fetch it. - SMITHY_TS_COMMIT: "5c4370ae7df25b219c1facb6203ead15b9334d12", + SMITHY_TS_COMMIT: "98d74245c48bc5cf0153112d1dbaa1fcde4139df", }; if (module.exports.SMITHY_TS_COMMIT.length < 40) { diff --git a/yarn.lock b/yarn.lock index 25a55deab4078..59939a8c30aab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3576,10 +3576,10 @@ resolved "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.4.tgz" integrity sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw== -"@types/uuid@^9.0.4": - version "9.0.4" - resolved "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.4.tgz" - integrity sha512-zAuJWQflfx6dYJM62vna+Sn5aeSWhh3OB+wfUEACNcqUSc0AGc5JKl+ycL1vrH7frGTXhJchYjE1Hak8L819dA== +"@types/uuid@^9.0.1": + version "9.0.8" + resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-9.0.8.tgz#7545ba4fc3c003d6c756f651f3bf163d8f0f29ba" + integrity sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA== "@types/ws@*": version "8.5.5"