@aws-sdk/client-schemas 3.523.0 → 3.529.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +26 -66
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/Schemas.js +0 -1
- package/dist-cjs/SchemasClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/CreateDiscovererCommand.js +0 -1
- package/dist-cjs/commands/CreateRegistryCommand.js +0 -1
- package/dist-cjs/commands/CreateSchemaCommand.js +0 -1
- package/dist-cjs/commands/DeleteDiscovererCommand.js +0 -1
- package/dist-cjs/commands/DeleteRegistryCommand.js +0 -1
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteSchemaCommand.js +0 -1
- package/dist-cjs/commands/DeleteSchemaVersionCommand.js +0 -1
- package/dist-cjs/commands/DescribeCodeBindingCommand.js +0 -1
- package/dist-cjs/commands/DescribeDiscovererCommand.js +0 -1
- package/dist-cjs/commands/DescribeRegistryCommand.js +0 -1
- package/dist-cjs/commands/DescribeSchemaCommand.js +0 -1
- package/dist-cjs/commands/ExportSchemaCommand.js +0 -1
- package/dist-cjs/commands/GetCodeBindingSourceCommand.js +0 -1
- package/dist-cjs/commands/GetDiscoveredSchemaCommand.js +0 -1
- package/dist-cjs/commands/GetResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/ListDiscoverersCommand.js +0 -1
- package/dist-cjs/commands/ListRegistriesCommand.js +0 -1
- package/dist-cjs/commands/ListSchemaVersionsCommand.js +0 -1
- package/dist-cjs/commands/ListSchemasCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/PutCodeBindingCommand.js +0 -1
- package/dist-cjs/commands/PutResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/SearchSchemasCommand.js +0 -1
- package/dist-cjs/commands/StartDiscovererCommand.js +0 -1
- package/dist-cjs/commands/StopDiscovererCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateDiscovererCommand.js +0 -1
- package/dist-cjs/commands/UpdateRegistryCommand.js +0 -1
- package/dist-cjs/commands/UpdateSchemaCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/SchemasServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListDiscoverersPaginator.js +0 -1
- package/dist-cjs/pagination/ListRegistriesPaginator.js +0 -1
- package/dist-cjs/pagination/ListSchemaVersionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListSchemasPaginator.js +0 -1
- package/dist-cjs/pagination/SearchSchemasPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
- package/dist-cjs/waiters/index.js +0 -1
- package/dist-cjs/waiters/waitForCodeBindingExists.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -232,6 +232,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
232
232
|
var import_types = require("@smithy/types");
|
|
233
233
|
|
|
234
234
|
// src/protocols/Aws_restJson1.ts
|
|
235
|
+
var import_core2 = require("@aws-sdk/core");
|
|
235
236
|
|
|
236
237
|
|
|
237
238
|
var import_uuid = require("uuid");
|
|
@@ -882,7 +883,7 @@ var de_CreateDiscovererCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
882
883
|
const contents = (0, import_smithy_client.map)({
|
|
883
884
|
$metadata: deserializeMetadata(output)
|
|
884
885
|
});
|
|
885
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
886
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
886
887
|
const doc = (0, import_smithy_client.take)(data, {
|
|
887
888
|
CrossAccount: import_smithy_client.expectBoolean,
|
|
888
889
|
Description: import_smithy_client.expectString,
|
|
@@ -902,7 +903,7 @@ var de_CreateRegistryCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
902
903
|
const contents = (0, import_smithy_client.map)({
|
|
903
904
|
$metadata: deserializeMetadata(output)
|
|
904
905
|
});
|
|
905
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
906
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
906
907
|
const doc = (0, import_smithy_client.take)(data, {
|
|
907
908
|
Description: import_smithy_client.expectString,
|
|
908
909
|
RegistryArn: import_smithy_client.expectString,
|
|
@@ -919,7 +920,7 @@ var de_CreateSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
919
920
|
const contents = (0, import_smithy_client.map)({
|
|
920
921
|
$metadata: deserializeMetadata(output)
|
|
921
922
|
});
|
|
922
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
923
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
923
924
|
const doc = (0, import_smithy_client.take)(data, {
|
|
924
925
|
Description: import_smithy_client.expectString,
|
|
925
926
|
LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
@@ -990,7 +991,7 @@ var de_DescribeCodeBindingCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
990
991
|
const contents = (0, import_smithy_client.map)({
|
|
991
992
|
$metadata: deserializeMetadata(output)
|
|
992
993
|
});
|
|
993
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
994
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
994
995
|
const doc = (0, import_smithy_client.take)(data, {
|
|
995
996
|
CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
996
997
|
LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
@@ -1007,7 +1008,7 @@ var de_DescribeDiscovererCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1007
1008
|
const contents = (0, import_smithy_client.map)({
|
|
1008
1009
|
$metadata: deserializeMetadata(output)
|
|
1009
1010
|
});
|
|
1010
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1011
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1011
1012
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1012
1013
|
CrossAccount: import_smithy_client.expectBoolean,
|
|
1013
1014
|
Description: import_smithy_client.expectString,
|
|
@@ -1027,7 +1028,7 @@ var de_DescribeRegistryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1027
1028
|
const contents = (0, import_smithy_client.map)({
|
|
1028
1029
|
$metadata: deserializeMetadata(output)
|
|
1029
1030
|
});
|
|
1030
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1031
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1031
1032
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1032
1033
|
Description: import_smithy_client.expectString,
|
|
1033
1034
|
RegistryArn: import_smithy_client.expectString,
|
|
@@ -1044,7 +1045,7 @@ var de_DescribeSchemaCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1044
1045
|
const contents = (0, import_smithy_client.map)({
|
|
1045
1046
|
$metadata: deserializeMetadata(output)
|
|
1046
1047
|
});
|
|
1047
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1048
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1048
1049
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1049
1050
|
Content: import_smithy_client.expectString,
|
|
1050
1051
|
Description: import_smithy_client.expectString,
|
|
@@ -1066,7 +1067,7 @@ var de_ExportSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1066
1067
|
const contents = (0, import_smithy_client.map)({
|
|
1067
1068
|
$metadata: deserializeMetadata(output)
|
|
1068
1069
|
});
|
|
1069
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1070
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1070
1071
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1071
1072
|
Content: import_smithy_client.expectString,
|
|
1072
1073
|
SchemaArn: import_smithy_client.expectString,
|
|
@@ -1095,7 +1096,7 @@ var de_GetDiscoveredSchemaCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1095
1096
|
const contents = (0, import_smithy_client.map)({
|
|
1096
1097
|
$metadata: deserializeMetadata(output)
|
|
1097
1098
|
});
|
|
1098
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1099
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1099
1100
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1100
1101
|
Content: import_smithy_client.expectString
|
|
1101
1102
|
});
|
|
@@ -1109,7 +1110,7 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1109
1110
|
const contents = (0, import_smithy_client.map)({
|
|
1110
1111
|
$metadata: deserializeMetadata(output)
|
|
1111
1112
|
});
|
|
1112
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1113
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1113
1114
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1114
1115
|
Policy: (_) => new import_smithy_client.LazyJsonString(_),
|
|
1115
1116
|
RevisionId: import_smithy_client.expectString
|
|
@@ -1124,7 +1125,7 @@ var de_ListDiscoverersCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1124
1125
|
const contents = (0, import_smithy_client.map)({
|
|
1125
1126
|
$metadata: deserializeMetadata(output)
|
|
1126
1127
|
});
|
|
1127
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1128
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1128
1129
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1129
1130
|
Discoverers: (_) => de___listOfDiscovererSummary(_, context),
|
|
1130
1131
|
NextToken: import_smithy_client.expectString
|
|
@@ -1139,7 +1140,7 @@ var de_ListRegistriesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1139
1140
|
const contents = (0, import_smithy_client.map)({
|
|
1140
1141
|
$metadata: deserializeMetadata(output)
|
|
1141
1142
|
});
|
|
1142
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1143
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1143
1144
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1144
1145
|
NextToken: import_smithy_client.expectString,
|
|
1145
1146
|
Registries: (_) => de___listOfRegistrySummary(_, context)
|
|
@@ -1154,7 +1155,7 @@ var de_ListSchemasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1154
1155
|
const contents = (0, import_smithy_client.map)({
|
|
1155
1156
|
$metadata: deserializeMetadata(output)
|
|
1156
1157
|
});
|
|
1157
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1158
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1158
1159
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1159
1160
|
NextToken: import_smithy_client.expectString,
|
|
1160
1161
|
Schemas: (_) => de___listOfSchemaSummary(_, context)
|
|
@@ -1169,7 +1170,7 @@ var de_ListSchemaVersionsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1169
1170
|
const contents = (0, import_smithy_client.map)({
|
|
1170
1171
|
$metadata: deserializeMetadata(output)
|
|
1171
1172
|
});
|
|
1172
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1173
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1173
1174
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1174
1175
|
NextToken: import_smithy_client.expectString,
|
|
1175
1176
|
SchemaVersions: import_smithy_client._json
|
|
@@ -1184,7 +1185,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1184
1185
|
const contents = (0, import_smithy_client.map)({
|
|
1185
1186
|
$metadata: deserializeMetadata(output)
|
|
1186
1187
|
});
|
|
1187
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1188
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1188
1189
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1189
1190
|
Tags: [, import_smithy_client._json, `tags`]
|
|
1190
1191
|
});
|
|
@@ -1198,7 +1199,7 @@ var de_PutCodeBindingCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1198
1199
|
const contents = (0, import_smithy_client.map)({
|
|
1199
1200
|
$metadata: deserializeMetadata(output)
|
|
1200
1201
|
});
|
|
1201
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1202
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1202
1203
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1203
1204
|
CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1204
1205
|
LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
@@ -1215,7 +1216,7 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1215
1216
|
const contents = (0, import_smithy_client.map)({
|
|
1216
1217
|
$metadata: deserializeMetadata(output)
|
|
1217
1218
|
});
|
|
1218
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1219
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1219
1220
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1220
1221
|
Policy: (_) => new import_smithy_client.LazyJsonString(_),
|
|
1221
1222
|
RevisionId: import_smithy_client.expectString
|
|
@@ -1230,7 +1231,7 @@ var de_SearchSchemasCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1230
1231
|
const contents = (0, import_smithy_client.map)({
|
|
1231
1232
|
$metadata: deserializeMetadata(output)
|
|
1232
1233
|
});
|
|
1233
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1234
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1234
1235
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1235
1236
|
NextToken: import_smithy_client.expectString,
|
|
1236
1237
|
Schemas: (_) => de___listOfSearchSchemaSummary(_, context)
|
|
@@ -1245,7 +1246,7 @@ var de_StartDiscovererCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1245
1246
|
const contents = (0, import_smithy_client.map)({
|
|
1246
1247
|
$metadata: deserializeMetadata(output)
|
|
1247
1248
|
});
|
|
1248
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1249
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1249
1250
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1250
1251
|
DiscovererId: import_smithy_client.expectString,
|
|
1251
1252
|
State: import_smithy_client.expectString
|
|
@@ -1260,7 +1261,7 @@ var de_StopDiscovererCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1260
1261
|
const contents = (0, import_smithy_client.map)({
|
|
1261
1262
|
$metadata: deserializeMetadata(output)
|
|
1262
1263
|
});
|
|
1263
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1264
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1264
1265
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1265
1266
|
DiscovererId: import_smithy_client.expectString,
|
|
1266
1267
|
State: import_smithy_client.expectString
|
|
@@ -1295,7 +1296,7 @@ var de_UpdateDiscovererCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1295
1296
|
const contents = (0, import_smithy_client.map)({
|
|
1296
1297
|
$metadata: deserializeMetadata(output)
|
|
1297
1298
|
});
|
|
1298
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1299
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1299
1300
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1300
1301
|
CrossAccount: import_smithy_client.expectBoolean,
|
|
1301
1302
|
Description: import_smithy_client.expectString,
|
|
@@ -1315,7 +1316,7 @@ var de_UpdateRegistryCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1315
1316
|
const contents = (0, import_smithy_client.map)({
|
|
1316
1317
|
$metadata: deserializeMetadata(output)
|
|
1317
1318
|
});
|
|
1318
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1319
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1319
1320
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1320
1321
|
Description: import_smithy_client.expectString,
|
|
1321
1322
|
RegistryArn: import_smithy_client.expectString,
|
|
@@ -1332,7 +1333,7 @@ var de_UpdateSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1332
1333
|
const contents = (0, import_smithy_client.map)({
|
|
1333
1334
|
$metadata: deserializeMetadata(output)
|
|
1334
1335
|
});
|
|
1335
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1336
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1336
1337
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1337
1338
|
Description: import_smithy_client.expectString,
|
|
1338
1339
|
LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
@@ -1349,9 +1350,9 @@ var de_UpdateSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1349
1350
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1350
1351
|
const parsedOutput = {
|
|
1351
1352
|
...output,
|
|
1352
|
-
body: await
|
|
1353
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1353
1354
|
};
|
|
1354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1355
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1355
1356
|
switch (errorCode) {
|
|
1356
1357
|
case "BadRequestException":
|
|
1357
1358
|
case "com.amazonaws.schemas#BadRequestException":
|
|
@@ -1610,7 +1611,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1610
1611
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1611
1612
|
cfId: output.headers["x-amz-cf-id"]
|
|
1612
1613
|
}), "deserializeMetadata");
|
|
1613
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1614
1614
|
var _DIP = "DiscovererIdPrefix";
|
|
1615
1615
|
var _K = "Keywords";
|
|
1616
1616
|
var _L = "Limit";
|
|
@@ -1635,46 +1635,6 @@ var _sNP = "schemaNamePrefix";
|
|
|
1635
1635
|
var _sV = "schemaVersion";
|
|
1636
1636
|
var _t = "type";
|
|
1637
1637
|
var _tK = "tagKeys";
|
|
1638
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1639
|
-
if (encoded.length) {
|
|
1640
|
-
return JSON.parse(encoded);
|
|
1641
|
-
}
|
|
1642
|
-
return {};
|
|
1643
|
-
}), "parseBody");
|
|
1644
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1645
|
-
const value = await parseBody(errorBody, context);
|
|
1646
|
-
value.message = value.message ?? value.Message;
|
|
1647
|
-
return value;
|
|
1648
|
-
}, "parseErrorBody");
|
|
1649
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1650
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1651
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1652
|
-
let cleanValue = rawValue;
|
|
1653
|
-
if (typeof cleanValue === "number") {
|
|
1654
|
-
cleanValue = cleanValue.toString();
|
|
1655
|
-
}
|
|
1656
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1657
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1658
|
-
}
|
|
1659
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1660
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1661
|
-
}
|
|
1662
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1663
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1664
|
-
}
|
|
1665
|
-
return cleanValue;
|
|
1666
|
-
}, "sanitizeErrorCode");
|
|
1667
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1668
|
-
if (headerKey !== void 0) {
|
|
1669
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1670
|
-
}
|
|
1671
|
-
if (data.code !== void 0) {
|
|
1672
|
-
return sanitizeErrorCode(data.code);
|
|
1673
|
-
}
|
|
1674
|
-
if (data["__type"] !== void 0) {
|
|
1675
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1676
|
-
}
|
|
1677
|
-
}, "loadRestJsonErrorCode");
|
|
1678
1638
|
|
|
1679
1639
|
// src/commands/CreateDiscovererCommand.ts
|
|
1680
1640
|
var _CreateDiscovererCommand = class _CreateDiscovererCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1179,43 +1180,3 @@ const _sNP = "schemaNamePrefix";
|
|
|
1179
1180
|
const _sV = "schemaVersion";
|
|
1180
1181
|
const _t = "type";
|
|
1181
1182
|
const _tK = "tagKeys";
|
|
1182
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1183
|
-
if (encoded.length) {
|
|
1184
|
-
return JSON.parse(encoded);
|
|
1185
|
-
}
|
|
1186
|
-
return {};
|
|
1187
|
-
});
|
|
1188
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1189
|
-
const value = await parseBody(errorBody, context);
|
|
1190
|
-
value.message = value.message ?? value.Message;
|
|
1191
|
-
return value;
|
|
1192
|
-
};
|
|
1193
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1194
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1195
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1196
|
-
let cleanValue = rawValue;
|
|
1197
|
-
if (typeof cleanValue === "number") {
|
|
1198
|
-
cleanValue = cleanValue.toString();
|
|
1199
|
-
}
|
|
1200
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1201
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1202
|
-
}
|
|
1203
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1204
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1205
|
-
}
|
|
1206
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1207
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1208
|
-
}
|
|
1209
|
-
return cleanValue;
|
|
1210
|
-
};
|
|
1211
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1212
|
-
if (headerKey !== undefined) {
|
|
1213
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1214
|
-
}
|
|
1215
|
-
if (data.code !== undefined) {
|
|
1216
|
-
return sanitizeErrorCode(data.code);
|
|
1217
|
-
}
|
|
1218
|
-
if (data["__type"] !== undefined) {
|
|
1219
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1220
|
-
}
|
|
1221
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-schemas",
|
|
3
3
|
"description": "AWS SDK for JavaScript Schemas Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-schemas",
|
|
@@ -20,40 +20,40 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-stream": "^2.1.3",
|
package/dist-cjs/Schemas.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|