@aws-sdk/client-schemas 3.54.1 → 3.58.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/SchemasClient.js +13 -13
  3. package/dist-cjs/commands/CreateDiscovererCommand.js +3 -3
  4. package/dist-cjs/commands/CreateRegistryCommand.js +3 -3
  5. package/dist-cjs/commands/CreateSchemaCommand.js +3 -3
  6. package/dist-cjs/commands/DeleteDiscovererCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteRegistryCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +3 -3
  9. package/dist-cjs/commands/DeleteSchemaCommand.js +3 -3
  10. package/dist-cjs/commands/DeleteSchemaVersionCommand.js +3 -3
  11. package/dist-cjs/commands/DescribeCodeBindingCommand.js +3 -3
  12. package/dist-cjs/commands/DescribeDiscovererCommand.js +3 -3
  13. package/dist-cjs/commands/DescribeRegistryCommand.js +3 -3
  14. package/dist-cjs/commands/DescribeSchemaCommand.js +3 -3
  15. package/dist-cjs/commands/ExportSchemaCommand.js +3 -3
  16. package/dist-cjs/commands/GetCodeBindingSourceCommand.js +3 -3
  17. package/dist-cjs/commands/GetDiscoveredSchemaCommand.js +3 -3
  18. package/dist-cjs/commands/GetResourcePolicyCommand.js +3 -3
  19. package/dist-cjs/commands/ListDiscoverersCommand.js +3 -3
  20. package/dist-cjs/commands/ListRegistriesCommand.js +3 -3
  21. package/dist-cjs/commands/ListSchemaVersionsCommand.js +3 -3
  22. package/dist-cjs/commands/ListSchemasCommand.js +3 -3
  23. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  24. package/dist-cjs/commands/PutCodeBindingCommand.js +3 -3
  25. package/dist-cjs/commands/PutResourcePolicyCommand.js +3 -3
  26. package/dist-cjs/commands/SearchSchemasCommand.js +3 -3
  27. package/dist-cjs/commands/StartDiscovererCommand.js +3 -3
  28. package/dist-cjs/commands/StopDiscovererCommand.js +3 -3
  29. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  30. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  31. package/dist-cjs/commands/UpdateDiscovererCommand.js +3 -3
  32. package/dist-cjs/commands/UpdateRegistryCommand.js +3 -3
  33. package/dist-cjs/commands/UpdateSchemaCommand.js +3 -3
  34. package/dist-cjs/endpoints.js +1 -1
  35. package/dist-cjs/protocols/Aws_restJson1.js +219 -219
  36. package/dist-cjs/runtimeConfig.browser.js +4 -4
  37. package/dist-cjs/runtimeConfig.js +9 -9
  38. package/dist-cjs/runtimeConfig.native.js +1 -1
  39. package/dist-cjs/waiters/waitForCodeBindingExists.js +3 -3
  40. package/dist-es/Schemas.js +31 -31
  41. package/dist-es/pagination/ListDiscoverersPaginator.js +4 -4
  42. package/dist-es/pagination/ListRegistriesPaginator.js +4 -4
  43. package/dist-es/pagination/ListSchemaVersionsPaginator.js +4 -4
  44. package/dist-es/pagination/ListSchemasPaginator.js +4 -4
  45. package/dist-es/pagination/SearchSchemasPaginator.js +4 -4
  46. package/dist-es/protocols/Aws_restJson1.js +31 -31
  47. package/dist-types/runtimeConfig.native.d.ts +2 -2
  48. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  49. package/package.json +35 -35
@@ -14,7 +14,7 @@ export var serializeAws_restJson1CreateDiscovererCommand = function (input, cont
14
14
  headers = {
15
15
  "content-type": "application/json",
16
16
  };
17
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers";
17
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers";
18
18
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.CrossAccount !== undefined && input.CrossAccount !== null && { CrossAccount: input.CrossAccount })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn })), (input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) })));
19
19
  return [2, new __HttpRequest({
20
20
  protocol: protocol,
@@ -38,7 +38,7 @@ export var serializeAws_restJson1CreateRegistryCommand = function (input, contex
38
38
  headers = {
39
39
  "content-type": "application/json",
40
40
  };
41
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/registries/name/{RegistryName}";
41
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/registries/name/{RegistryName}";
42
42
  if (input.RegistryName !== undefined) {
43
43
  labelValue = input.RegistryName;
44
44
  if (labelValue.length <= 0) {
@@ -72,7 +72,7 @@ export var serializeAws_restJson1CreateSchemaCommand = function (input, context)
72
72
  headers = {
73
73
  "content-type": "application/json",
74
74
  };
75
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
75
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
76
76
  "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}";
77
77
  if (input.RegistryName !== undefined) {
78
78
  labelValue = input.RegistryName;
@@ -115,7 +115,7 @@ export var serializeAws_restJson1DeleteDiscovererCommand = function (input, cont
115
115
  case 1:
116
116
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
117
117
  headers = {};
118
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers/id/{DiscovererId}";
118
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers/id/{DiscovererId}";
119
119
  if (input.DiscovererId !== undefined) {
120
120
  labelValue = input.DiscovererId;
121
121
  if (labelValue.length <= 0) {
@@ -146,7 +146,7 @@ export var serializeAws_restJson1DeleteRegistryCommand = function (input, contex
146
146
  case 1:
147
147
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
148
148
  headers = {};
149
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/registries/name/{RegistryName}";
149
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/registries/name/{RegistryName}";
150
150
  if (input.RegistryName !== undefined) {
151
151
  labelValue = input.RegistryName;
152
152
  if (labelValue.length <= 0) {
@@ -177,7 +177,7 @@ export var serializeAws_restJson1DeleteResourcePolicyCommand = function (input,
177
177
  case 1:
178
178
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
179
179
  headers = {};
180
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/policy";
180
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/policy";
181
181
  query = __assign({}, (input.RegistryName !== undefined && { registryName: input.RegistryName }));
182
182
  return [2, new __HttpRequest({
183
183
  protocol: protocol,
@@ -200,7 +200,7 @@ export var serializeAws_restJson1DeleteSchemaCommand = function (input, context)
200
200
  case 1:
201
201
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
202
202
  headers = {};
203
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
203
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
204
204
  "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}";
205
205
  if (input.RegistryName !== undefined) {
206
206
  labelValue = input.RegistryName;
@@ -242,7 +242,7 @@ export var serializeAws_restJson1DeleteSchemaVersionCommand = function (input, c
242
242
  case 1:
243
243
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
244
244
  headers = {};
245
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
245
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
246
246
  "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/version/{SchemaVersion}";
247
247
  if (input.RegistryName !== undefined) {
248
248
  labelValue = input.RegistryName;
@@ -294,7 +294,7 @@ export var serializeAws_restJson1DescribeCodeBindingCommand = function (input, c
294
294
  case 1:
295
295
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
296
296
  headers = {};
297
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
297
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
298
298
  "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}";
299
299
  if (input.Language !== undefined) {
300
300
  labelValue = input.Language;
@@ -348,7 +348,7 @@ export var serializeAws_restJson1DescribeDiscovererCommand = function (input, co
348
348
  case 1:
349
349
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
350
350
  headers = {};
351
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers/id/{DiscovererId}";
351
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers/id/{DiscovererId}";
352
352
  if (input.DiscovererId !== undefined) {
353
353
  labelValue = input.DiscovererId;
354
354
  if (labelValue.length <= 0) {
@@ -379,7 +379,7 @@ export var serializeAws_restJson1DescribeRegistryCommand = function (input, cont
379
379
  case 1:
380
380
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
381
381
  headers = {};
382
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/registries/name/{RegistryName}";
382
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/registries/name/{RegistryName}";
383
383
  if (input.RegistryName !== undefined) {
384
384
  labelValue = input.RegistryName;
385
385
  if (labelValue.length <= 0) {
@@ -410,7 +410,7 @@ export var serializeAws_restJson1DescribeSchemaCommand = function (input, contex
410
410
  case 1:
411
411
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
412
412
  headers = {};
413
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
413
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
414
414
  "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}";
415
415
  if (input.RegistryName !== undefined) {
416
416
  labelValue = input.RegistryName;
@@ -454,7 +454,7 @@ export var serializeAws_restJson1ExportSchemaCommand = function (input, context)
454
454
  case 1:
455
455
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
456
456
  headers = {};
457
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
457
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
458
458
  "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/export";
459
459
  if (input.RegistryName !== undefined) {
460
460
  labelValue = input.RegistryName;
@@ -498,7 +498,7 @@ export var serializeAws_restJson1GetCodeBindingSourceCommand = function (input,
498
498
  case 1:
499
499
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
500
500
  headers = {};
501
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
501
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
502
502
  "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}/source";
503
503
  if (input.Language !== undefined) {
504
504
  labelValue = input.Language;
@@ -554,7 +554,7 @@ export var serializeAws_restJson1GetDiscoveredSchemaCommand = function (input, c
554
554
  headers = {
555
555
  "content-type": "application/json",
556
556
  };
557
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discover";
557
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discover";
558
558
  body = JSON.stringify(__assign(__assign({}, (input.Events !== undefined &&
559
559
  input.Events !== null && {
560
560
  Events: serializeAws_restJson1__listOfGetDiscoveredSchemaVersionItemInput(input.Events, context),
@@ -579,7 +579,7 @@ export var serializeAws_restJson1GetResourcePolicyCommand = function (input, con
579
579
  case 1:
580
580
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
581
581
  headers = {};
582
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/policy";
582
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/policy";
583
583
  query = __assign({}, (input.RegistryName !== undefined && { registryName: input.RegistryName }));
584
584
  return [2, new __HttpRequest({
585
585
  protocol: protocol,
@@ -602,7 +602,7 @@ export var serializeAws_restJson1ListDiscoverersCommand = function (input, conte
602
602
  case 1:
603
603
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
604
604
  headers = {};
605
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers";
605
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers";
606
606
  query = __assign(__assign(__assign(__assign({}, (input.DiscovererIdPrefix !== undefined && { discovererIdPrefix: input.DiscovererIdPrefix })), (input.Limit !== undefined && { limit: input.Limit.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.SourceArnPrefix !== undefined && { sourceArnPrefix: input.SourceArnPrefix }));
607
607
  return [2, new __HttpRequest({
608
608
  protocol: protocol,
@@ -625,7 +625,7 @@ export var serializeAws_restJson1ListRegistriesCommand = function (input, contex
625
625
  case 1:
626
626
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
627
627
  headers = {};
628
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/registries";
628
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/registries";
629
629
  query = __assign(__assign(__assign(__assign({}, (input.Limit !== undefined && { limit: input.Limit.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.RegistryNamePrefix !== undefined && { registryNamePrefix: input.RegistryNamePrefix })), (input.Scope !== undefined && { scope: input.Scope }));
630
630
  return [2, new __HttpRequest({
631
631
  protocol: protocol,
@@ -648,7 +648,7 @@ export var serializeAws_restJson1ListSchemasCommand = function (input, context)
648
648
  case 1:
649
649
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
650
650
  headers = {};
651
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
651
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
652
652
  "/v1/registries/name/{RegistryName}/schemas";
653
653
  if (input.RegistryName !== undefined) {
654
654
  labelValue = input.RegistryName;
@@ -682,7 +682,7 @@ export var serializeAws_restJson1ListSchemaVersionsCommand = function (input, co
682
682
  case 1:
683
683
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
684
684
  headers = {};
685
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
685
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
686
686
  "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/versions";
687
687
  if (input.RegistryName !== undefined) {
688
688
  labelValue = input.RegistryName;
@@ -726,7 +726,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
726
726
  case 1:
727
727
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
728
728
  headers = {};
729
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
729
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
730
730
  if (input.ResourceArn !== undefined) {
731
731
  labelValue = input.ResourceArn;
732
732
  if (labelValue.length <= 0) {
@@ -757,7 +757,7 @@ export var serializeAws_restJson1PutCodeBindingCommand = function (input, contex
757
757
  case 1:
758
758
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
759
759
  headers = {};
760
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
760
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
761
761
  "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}/language/{Language}";
762
762
  if (input.Language !== undefined) {
763
763
  labelValue = input.Language;
@@ -813,7 +813,7 @@ export var serializeAws_restJson1PutResourcePolicyCommand = function (input, con
813
813
  headers = {
814
814
  "content-type": "application/json",
815
815
  };
816
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/policy";
816
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/policy";
817
817
  query = __assign({}, (input.RegistryName !== undefined && { registryName: input.RegistryName }));
818
818
  body = JSON.stringify(__assign(__assign({}, (input.Policy !== undefined && input.Policy !== null && { Policy: __LazyJsonString.fromObject(input.Policy) })), (input.RevisionId !== undefined && input.RevisionId !== null && { RevisionId: input.RevisionId })));
819
819
  return [2, new __HttpRequest({
@@ -837,7 +837,7 @@ export var serializeAws_restJson1SearchSchemasCommand = function (input, context
837
837
  case 1:
838
838
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
839
839
  headers = {};
840
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
840
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
841
841
  "/v1/registries/name/{RegistryName}/schemas/search";
842
842
  if (input.RegistryName !== undefined) {
843
843
  labelValue = input.RegistryName;
@@ -871,7 +871,7 @@ export var serializeAws_restJson1StartDiscovererCommand = function (input, conte
871
871
  case 1:
872
872
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
873
873
  headers = {};
874
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers/id/{DiscovererId}/start";
874
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers/id/{DiscovererId}/start";
875
875
  if (input.DiscovererId !== undefined) {
876
876
  labelValue = input.DiscovererId;
877
877
  if (labelValue.length <= 0) {
@@ -902,7 +902,7 @@ export var serializeAws_restJson1StopDiscovererCommand = function (input, contex
902
902
  case 1:
903
903
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
904
904
  headers = {};
905
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers/id/{DiscovererId}/stop";
905
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers/id/{DiscovererId}/stop";
906
906
  if (input.DiscovererId !== undefined) {
907
907
  labelValue = input.DiscovererId;
908
908
  if (labelValue.length <= 0) {
@@ -935,7 +935,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
935
935
  headers = {
936
936
  "content-type": "application/json",
937
937
  };
938
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
938
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
939
939
  if (input.ResourceArn !== undefined) {
940
940
  labelValue = input.ResourceArn;
941
941
  if (labelValue.length <= 0) {
@@ -967,7 +967,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
967
967
  case 1:
968
968
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
969
969
  headers = {};
970
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
970
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
971
971
  if (input.ResourceArn !== undefined) {
972
972
  labelValue = input.ResourceArn;
973
973
  if (labelValue.length <= 0) {
@@ -1002,7 +1002,7 @@ export var serializeAws_restJson1UpdateDiscovererCommand = function (input, cont
1002
1002
  headers = {
1003
1003
  "content-type": "application/json",
1004
1004
  };
1005
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers/id/{DiscovererId}";
1005
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/discoverers/id/{DiscovererId}";
1006
1006
  if (input.DiscovererId !== undefined) {
1007
1007
  labelValue = input.DiscovererId;
1008
1008
  if (labelValue.length <= 0) {
@@ -1036,7 +1036,7 @@ export var serializeAws_restJson1UpdateRegistryCommand = function (input, contex
1036
1036
  headers = {
1037
1037
  "content-type": "application/json",
1038
1038
  };
1039
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/registries/name/{RegistryName}";
1039
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/registries/name/{RegistryName}";
1040
1040
  if (input.RegistryName !== undefined) {
1041
1041
  labelValue = input.RegistryName;
1042
1042
  if (labelValue.length <= 0) {
@@ -1071,7 +1071,7 @@ export var serializeAws_restJson1UpdateSchemaCommand = function (input, context)
1071
1071
  headers = {
1072
1072
  "content-type": "application/json",
1073
1073
  };
1074
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1074
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1075
1075
  "/v1/registries/name/{RegistryName}/schemas/name/{SchemaName}";
1076
1076
  if (input.RegistryName !== undefined) {
1077
1077
  labelValue = input.RegistryName;
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: SchemasClientConfig) => {
21
21
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  serviceId: string;
24
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
30
  tls?: boolean | undefined;
31
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: SchemasClientConfig) => {
19
19
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
21
  serviceId: string;
22
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
22
+ region: string | import("@aws-sdk/types").Provider<any>;
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
27
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
28
  tls?: boolean | undefined;
29
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
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.54.1",
4
+ "version": "3.58.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,42 +18,42 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.54.1",
22
- "@aws-sdk/config-resolver": "3.54.1",
23
- "@aws-sdk/credential-provider-node": "3.54.1",
24
- "@aws-sdk/fetch-http-handler": "3.54.1",
25
- "@aws-sdk/hash-node": "3.54.1",
26
- "@aws-sdk/invalid-dependency": "3.54.1",
27
- "@aws-sdk/middleware-content-length": "3.54.1",
28
- "@aws-sdk/middleware-host-header": "3.54.1",
29
- "@aws-sdk/middleware-logger": "3.54.1",
30
- "@aws-sdk/middleware-retry": "3.54.1",
31
- "@aws-sdk/middleware-serde": "3.54.1",
32
- "@aws-sdk/middleware-signing": "3.54.1",
33
- "@aws-sdk/middleware-stack": "3.54.1",
34
- "@aws-sdk/middleware-user-agent": "3.54.1",
35
- "@aws-sdk/node-config-provider": "3.54.1",
36
- "@aws-sdk/node-http-handler": "3.54.1",
37
- "@aws-sdk/protocol-http": "3.54.1",
38
- "@aws-sdk/smithy-client": "3.54.1",
39
- "@aws-sdk/types": "3.54.1",
40
- "@aws-sdk/url-parser": "3.54.1",
41
- "@aws-sdk/util-base64-browser": "3.52.0",
42
- "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.54.0",
44
- "@aws-sdk/util-body-length-node": "3.54.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.54.1",
46
- "@aws-sdk/util-defaults-mode-node": "3.54.1",
47
- "@aws-sdk/util-user-agent-browser": "3.54.1",
48
- "@aws-sdk/util-user-agent-node": "3.54.1",
49
- "@aws-sdk/util-utf8-browser": "3.52.0",
50
- "@aws-sdk/util-utf8-node": "3.52.0",
51
- "@aws-sdk/util-waiter": "3.54.1",
52
- "tslib": "^2.3.0",
21
+ "@aws-sdk/client-sts": "3.58.0",
22
+ "@aws-sdk/config-resolver": "3.58.0",
23
+ "@aws-sdk/credential-provider-node": "3.58.0",
24
+ "@aws-sdk/fetch-http-handler": "3.58.0",
25
+ "@aws-sdk/hash-node": "3.55.0",
26
+ "@aws-sdk/invalid-dependency": "3.55.0",
27
+ "@aws-sdk/middleware-content-length": "3.58.0",
28
+ "@aws-sdk/middleware-host-header": "3.58.0",
29
+ "@aws-sdk/middleware-logger": "3.55.0",
30
+ "@aws-sdk/middleware-retry": "3.58.0",
31
+ "@aws-sdk/middleware-serde": "3.55.0",
32
+ "@aws-sdk/middleware-signing": "3.58.0",
33
+ "@aws-sdk/middleware-stack": "3.55.0",
34
+ "@aws-sdk/middleware-user-agent": "3.58.0",
35
+ "@aws-sdk/node-config-provider": "3.58.0",
36
+ "@aws-sdk/node-http-handler": "3.58.0",
37
+ "@aws-sdk/protocol-http": "3.58.0",
38
+ "@aws-sdk/smithy-client": "3.55.0",
39
+ "@aws-sdk/types": "3.55.0",
40
+ "@aws-sdk/url-parser": "3.55.0",
41
+ "@aws-sdk/util-base64-browser": "3.58.0",
42
+ "@aws-sdk/util-base64-node": "3.55.0",
43
+ "@aws-sdk/util-body-length-browser": "3.55.0",
44
+ "@aws-sdk/util-body-length-node": "3.55.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.58.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.58.0",
48
+ "@aws-sdk/util-user-agent-node": "3.58.0",
49
+ "@aws-sdk/util-utf8-browser": "3.55.0",
50
+ "@aws-sdk/util-utf8-node": "3.55.0",
51
+ "@aws-sdk/util-waiter": "3.55.0",
52
+ "tslib": "^2.3.1",
53
53
  "uuid": "^8.3.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@aws-sdk/service-client-documentation-generator": "3.52.0",
56
+ "@aws-sdk/service-client-documentation-generator": "3.58.0",
57
57
  "@tsconfig/recommended": "1.0.1",
58
58
  "@types/node": "^12.7.5",
59
59
  "@types/uuid": "^8.3.0",
@@ -61,7 +61,7 @@
61
61
  "downlevel-dts": "0.7.0",
62
62
  "rimraf": "3.0.2",
63
63
  "typedoc": "0.19.2",
64
- "typescript": "~4.3.5"
64
+ "typescript": "~4.6.2"
65
65
  },
66
66
  "engines": {
67
67
  "node": ">=12.0.0"