@aws-sdk/client-schemas 3.1076.0 → 3.1078.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 (113) hide show
  1. package/dist-cjs/index.js +42 -315
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateDiscovererCommand.js +2 -14
  4. package/dist-es/commands/CreateRegistryCommand.js +2 -14
  5. package/dist-es/commands/CreateSchemaCommand.js +2 -14
  6. package/dist-es/commands/DeleteDiscovererCommand.js +2 -14
  7. package/dist-es/commands/DeleteRegistryCommand.js +2 -14
  8. package/dist-es/commands/DeleteResourcePolicyCommand.js +2 -14
  9. package/dist-es/commands/DeleteSchemaCommand.js +2 -14
  10. package/dist-es/commands/DeleteSchemaVersionCommand.js +2 -14
  11. package/dist-es/commands/DescribeCodeBindingCommand.js +2 -14
  12. package/dist-es/commands/DescribeDiscovererCommand.js +2 -14
  13. package/dist-es/commands/DescribeRegistryCommand.js +2 -14
  14. package/dist-es/commands/DescribeSchemaCommand.js +2 -14
  15. package/dist-es/commands/ExportSchemaCommand.js +2 -14
  16. package/dist-es/commands/GetCodeBindingSourceCommand.js +2 -14
  17. package/dist-es/commands/GetDiscoveredSchemaCommand.js +2 -14
  18. package/dist-es/commands/GetResourcePolicyCommand.js +2 -14
  19. package/dist-es/commands/ListDiscoverersCommand.js +2 -14
  20. package/dist-es/commands/ListRegistriesCommand.js +2 -14
  21. package/dist-es/commands/ListSchemaVersionsCommand.js +2 -14
  22. package/dist-es/commands/ListSchemasCommand.js +2 -14
  23. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  24. package/dist-es/commands/PutCodeBindingCommand.js +2 -14
  25. package/dist-es/commands/PutResourcePolicyCommand.js +2 -14
  26. package/dist-es/commands/SearchSchemasCommand.js +2 -14
  27. package/dist-es/commands/StartDiscovererCommand.js +2 -14
  28. package/dist-es/commands/StopDiscovererCommand.js +2 -14
  29. package/dist-es/commands/TagResourceCommand.js +2 -14
  30. package/dist-es/commands/UntagResourceCommand.js +2 -14
  31. package/dist-es/commands/UpdateDiscovererCommand.js +2 -14
  32. package/dist-es/commands/UpdateRegistryCommand.js +2 -14
  33. package/dist-es/commands/UpdateSchemaCommand.js +2 -14
  34. package/dist-es/index.js +1 -0
  35. package/dist-es/runtimeConfig.browser.js +0 -2
  36. package/dist-es/runtimeConfig.js +1 -2
  37. package/dist-es/runtimeConfig.native.js +0 -2
  38. package/dist-es/runtimeConfig.shared.js +2 -0
  39. package/dist-types/commandBuilder.d.ts +18 -0
  40. package/dist-types/commands/CreateDiscovererCommand.d.ts +3 -8
  41. package/dist-types/commands/CreateRegistryCommand.d.ts +3 -8
  42. package/dist-types/commands/CreateSchemaCommand.d.ts +3 -8
  43. package/dist-types/commands/DeleteDiscovererCommand.d.ts +3 -8
  44. package/dist-types/commands/DeleteRegistryCommand.d.ts +3 -8
  45. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +3 -8
  46. package/dist-types/commands/DeleteSchemaCommand.d.ts +3 -8
  47. package/dist-types/commands/DeleteSchemaVersionCommand.d.ts +3 -8
  48. package/dist-types/commands/DescribeCodeBindingCommand.d.ts +3 -8
  49. package/dist-types/commands/DescribeDiscovererCommand.d.ts +3 -8
  50. package/dist-types/commands/DescribeRegistryCommand.d.ts +3 -8
  51. package/dist-types/commands/DescribeSchemaCommand.d.ts +3 -8
  52. package/dist-types/commands/ExportSchemaCommand.d.ts +3 -8
  53. package/dist-types/commands/GetCodeBindingSourceCommand.d.ts +3 -8
  54. package/dist-types/commands/GetDiscoveredSchemaCommand.d.ts +3 -8
  55. package/dist-types/commands/GetResourcePolicyCommand.d.ts +3 -8
  56. package/dist-types/commands/ListDiscoverersCommand.d.ts +3 -8
  57. package/dist-types/commands/ListRegistriesCommand.d.ts +3 -8
  58. package/dist-types/commands/ListSchemaVersionsCommand.d.ts +3 -8
  59. package/dist-types/commands/ListSchemasCommand.d.ts +3 -8
  60. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  61. package/dist-types/commands/PutCodeBindingCommand.d.ts +3 -8
  62. package/dist-types/commands/PutResourcePolicyCommand.d.ts +3 -8
  63. package/dist-types/commands/SearchSchemasCommand.d.ts +3 -8
  64. package/dist-types/commands/StartDiscovererCommand.d.ts +3 -8
  65. package/dist-types/commands/StopDiscovererCommand.d.ts +3 -8
  66. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  67. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  68. package/dist-types/commands/UpdateDiscovererCommand.d.ts +3 -8
  69. package/dist-types/commands/UpdateRegistryCommand.d.ts +3 -8
  70. package/dist-types/commands/UpdateSchemaCommand.d.ts +3 -8
  71. package/dist-types/index.d.ts +1 -0
  72. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  73. package/dist-types/runtimeConfig.d.ts +1 -1
  74. package/dist-types/runtimeConfig.native.d.ts +1 -1
  75. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  76. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  77. package/dist-types/ts3.4/commands/CreateDiscovererCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/commands/CreateRegistryCommand.d.ts +7 -16
  79. package/dist-types/ts3.4/commands/CreateSchemaCommand.d.ts +7 -16
  80. package/dist-types/ts3.4/commands/DeleteDiscovererCommand.d.ts +7 -16
  81. package/dist-types/ts3.4/commands/DeleteRegistryCommand.d.ts +7 -16
  82. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +7 -16
  83. package/dist-types/ts3.4/commands/DeleteSchemaCommand.d.ts +7 -16
  84. package/dist-types/ts3.4/commands/DeleteSchemaVersionCommand.d.ts +7 -16
  85. package/dist-types/ts3.4/commands/DescribeCodeBindingCommand.d.ts +7 -16
  86. package/dist-types/ts3.4/commands/DescribeDiscovererCommand.d.ts +7 -16
  87. package/dist-types/ts3.4/commands/DescribeRegistryCommand.d.ts +7 -16
  88. package/dist-types/ts3.4/commands/DescribeSchemaCommand.d.ts +7 -16
  89. package/dist-types/ts3.4/commands/ExportSchemaCommand.d.ts +7 -16
  90. package/dist-types/ts3.4/commands/GetCodeBindingSourceCommand.d.ts +7 -16
  91. package/dist-types/ts3.4/commands/GetDiscoveredSchemaCommand.d.ts +7 -16
  92. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +7 -16
  93. package/dist-types/ts3.4/commands/ListDiscoverersCommand.d.ts +7 -16
  94. package/dist-types/ts3.4/commands/ListRegistriesCommand.d.ts +7 -16
  95. package/dist-types/ts3.4/commands/ListSchemaVersionsCommand.d.ts +7 -16
  96. package/dist-types/ts3.4/commands/ListSchemasCommand.d.ts +7 -16
  97. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  98. package/dist-types/ts3.4/commands/PutCodeBindingCommand.d.ts +7 -16
  99. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +7 -16
  100. package/dist-types/ts3.4/commands/SearchSchemasCommand.d.ts +7 -16
  101. package/dist-types/ts3.4/commands/StartDiscovererCommand.d.ts +7 -16
  102. package/dist-types/ts3.4/commands/StopDiscovererCommand.d.ts +7 -16
  103. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  104. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  105. package/dist-types/ts3.4/commands/UpdateDiscovererCommand.d.ts +7 -16
  106. package/dist-types/ts3.4/commands/UpdateRegistryCommand.d.ts +7 -16
  107. package/dist-types/ts3.4/commands/UpdateSchemaCommand.d.ts +7 -16
  108. package/dist-types/ts3.4/index.d.ts +1 -0
  109. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  110. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  111. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  112. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  113. package/package.json +8 -10
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeRegistry$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeRegistryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "DescribeRegistry", {})
13
- .n("SchemasClient", "DescribeRegistryCommand")
14
- .sc(DescribeRegistry$)
15
- .build() {
3
+ export class DescribeRegistryCommand extends command(_ep0, _mw0, "DescribeRegistry", DescribeRegistry$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeSchema$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeSchemaCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "DescribeSchema", {})
13
- .n("SchemasClient", "DescribeSchemaCommand")
14
- .sc(DescribeSchema$)
15
- .build() {
3
+ export class DescribeSchemaCommand extends command(_ep0, _mw0, "DescribeSchema", DescribeSchema$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ExportSchema$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ExportSchemaCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "ExportSchema", {})
13
- .n("SchemasClient", "ExportSchemaCommand")
14
- .sc(ExportSchema$)
15
- .build() {
3
+ export class ExportSchemaCommand extends command(_ep0, _mw0, "ExportSchema", ExportSchema$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetCodeBindingSource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetCodeBindingSourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "GetCodeBindingSource", {})
13
- .n("SchemasClient", "GetCodeBindingSourceCommand")
14
- .sc(GetCodeBindingSource$)
15
- .build() {
3
+ export class GetCodeBindingSourceCommand extends command(_ep0, _mw0, "GetCodeBindingSource", GetCodeBindingSource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetDiscoveredSchema$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetDiscoveredSchemaCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "GetDiscoveredSchema", {})
13
- .n("SchemasClient", "GetDiscoveredSchemaCommand")
14
- .sc(GetDiscoveredSchema$)
15
- .build() {
3
+ export class GetDiscoveredSchemaCommand extends command(_ep0, _mw0, "GetDiscoveredSchema", GetDiscoveredSchema$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetResourcePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetResourcePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "GetResourcePolicy", {})
13
- .n("SchemasClient", "GetResourcePolicyCommand")
14
- .sc(GetResourcePolicy$)
15
- .build() {
3
+ export class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListDiscoverers$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListDiscoverersCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "ListDiscoverers", {})
13
- .n("SchemasClient", "ListDiscoverersCommand")
14
- .sc(ListDiscoverers$)
15
- .build() {
3
+ export class ListDiscoverersCommand extends command(_ep0, _mw0, "ListDiscoverers", ListDiscoverers$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListRegistries$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListRegistriesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "ListRegistries", {})
13
- .n("SchemasClient", "ListRegistriesCommand")
14
- .sc(ListRegistries$)
15
- .build() {
3
+ export class ListRegistriesCommand extends command(_ep0, _mw0, "ListRegistries", ListRegistries$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListSchemaVersions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSchemaVersionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "ListSchemaVersions", {})
13
- .n("SchemasClient", "ListSchemaVersionsCommand")
14
- .sc(ListSchemaVersions$)
15
- .build() {
3
+ export class ListSchemaVersionsCommand extends command(_ep0, _mw0, "ListSchemaVersions", ListSchemaVersions$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListSchemas$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSchemasCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "ListSchemas", {})
13
- .n("SchemasClient", "ListSchemasCommand")
14
- .sc(ListSchemas$)
15
- .build() {
3
+ export class ListSchemasCommand extends command(_ep0, _mw0, "ListSchemas", ListSchemas$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "ListTagsForResource", {})
13
- .n("SchemasClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PutCodeBinding$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutCodeBindingCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "PutCodeBinding", {})
13
- .n("SchemasClient", "PutCodeBindingCommand")
14
- .sc(PutCodeBinding$)
15
- .build() {
3
+ export class PutCodeBindingCommand extends command(_ep0, _mw0, "PutCodeBinding", PutCodeBinding$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PutResourcePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutResourcePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "PutResourcePolicy", {})
13
- .n("SchemasClient", "PutResourcePolicyCommand")
14
- .sc(PutResourcePolicy$)
15
- .build() {
3
+ export class PutResourcePolicyCommand extends command(_ep0, _mw0, "PutResourcePolicy", PutResourcePolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { SearchSchemas$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class SearchSchemasCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "SearchSchemas", {})
13
- .n("SchemasClient", "SearchSchemasCommand")
14
- .sc(SearchSchemas$)
15
- .build() {
3
+ export class SearchSchemasCommand extends command(_ep0, _mw0, "SearchSchemas", SearchSchemas$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { StartDiscoverer$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StartDiscovererCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "StartDiscoverer", {})
13
- .n("SchemasClient", "StartDiscovererCommand")
14
- .sc(StartDiscoverer$)
15
- .build() {
3
+ export class StartDiscovererCommand extends command(_ep0, _mw0, "StartDiscoverer", StartDiscoverer$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { StopDiscoverer$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StopDiscovererCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "StopDiscoverer", {})
13
- .n("SchemasClient", "StopDiscovererCommand")
14
- .sc(StopDiscoverer$)
15
- .build() {
3
+ export class StopDiscovererCommand extends command(_ep0, _mw0, "StopDiscoverer", StopDiscoverer$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "TagResource", {})
13
- .n("SchemasClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "UntagResource", {})
13
- .n("SchemasClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateDiscoverer$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateDiscovererCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "UpdateDiscoverer", {})
13
- .n("SchemasClient", "UpdateDiscovererCommand")
14
- .sc(UpdateDiscoverer$)
15
- .build() {
3
+ export class UpdateDiscovererCommand extends command(_ep0, _mw0, "UpdateDiscoverer", UpdateDiscoverer$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateRegistry$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateRegistryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "UpdateRegistry", {})
13
- .n("SchemasClient", "UpdateRegistryCommand")
14
- .sc(UpdateRegistry$)
15
- .build() {
3
+ export class UpdateRegistryCommand extends command(_ep0, _mw0, "UpdateRegistry", UpdateRegistry$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateSchema$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateSchemaCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("schemas", "UpdateSchema", {})
13
- .n("SchemasClient", "UpdateSchemaCommand")
14
- .sc(UpdateSchema$)
15
- .build() {
3
+ export class UpdateSchemaCommand extends command(_ep0, _mw0, "UpdateSchema", UpdateSchema$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./SchemasClient";
2
2
  export * from "./Schemas";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./waiters";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "schemas",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "schemas",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./SchemasClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreateDiscovererRequest, CreateDiscovererResponse } from "../models/models_0";
4
- import type { SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchemasClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateDiscovererCommandInput extends CreateDiscovererRequest {
22
19
  export interface CreateDiscovererCommandOutput extends CreateDiscovererResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateDiscovererCommand_base: {
25
- new (input: CreateDiscovererCommandInput): import("@smithy/core/client").CommandImpl<CreateDiscovererCommandInput, CreateDiscovererCommandOutput, SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateDiscovererCommandInput): import("@smithy/core/client").CommandImpl<CreateDiscovererCommandInput, CreateDiscovererCommandOutput, SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateDiscovererCommandInput): import("@smithy/core/client").CommandImpl<CreateDiscovererCommandInput, CreateDiscovererCommandOutput, import("..").SchemasClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateDiscovererCommandInput): import("@smithy/core/client").CommandImpl<CreateDiscovererCommandInput, CreateDiscovererCommandOutput, import("..").SchemasClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a discoverer.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreateRegistryRequest, CreateRegistryResponse } from "../models/models_0";
4
- import type { SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchemasClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateRegistryCommandInput extends CreateRegistryRequest {
22
19
  export interface CreateRegistryCommandOutput extends CreateRegistryResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateRegistryCommand_base: {
25
- new (input: CreateRegistryCommandInput): import("@smithy/core/client").CommandImpl<CreateRegistryCommandInput, CreateRegistryCommandOutput, SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateRegistryCommandInput): import("@smithy/core/client").CommandImpl<CreateRegistryCommandInput, CreateRegistryCommandOutput, SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateRegistryCommandInput): import("@smithy/core/client").CommandImpl<CreateRegistryCommandInput, CreateRegistryCommandOutput, import("..").SchemasClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateRegistryCommandInput): import("@smithy/core/client").CommandImpl<CreateRegistryCommandInput, CreateRegistryCommandOutput, import("..").SchemasClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a registry.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreateSchemaRequest, CreateSchemaResponse } from "../models/models_0";
4
- import type { SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchemasClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateSchemaCommandInput extends CreateSchemaRequest {
22
19
  export interface CreateSchemaCommandOutput extends CreateSchemaResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateSchemaCommand_base: {
25
- new (input: CreateSchemaCommandInput): import("@smithy/core/client").CommandImpl<CreateSchemaCommandInput, CreateSchemaCommandOutput, SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateSchemaCommandInput): import("@smithy/core/client").CommandImpl<CreateSchemaCommandInput, CreateSchemaCommandOutput, SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateSchemaCommandInput): import("@smithy/core/client").CommandImpl<CreateSchemaCommandInput, CreateSchemaCommandOutput, import("..").SchemasClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateSchemaCommandInput): import("@smithy/core/client").CommandImpl<CreateSchemaCommandInput, CreateSchemaCommandOutput, import("..").SchemasClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a schema definition.</p> <note><p>Inactive schemas will be deleted after two years.</p></note>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DeleteDiscovererRequest } from "../models/models_0";
4
- import type { SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchemasClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteDiscovererCommandInput extends DeleteDiscovererRequest {
22
19
  export interface DeleteDiscovererCommandOutput extends __MetadataBearer {
23
20
  }
24
21
  declare const DeleteDiscovererCommand_base: {
25
- new (input: DeleteDiscovererCommandInput): import("@smithy/core/client").CommandImpl<DeleteDiscovererCommandInput, DeleteDiscovererCommandOutput, SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteDiscovererCommandInput): import("@smithy/core/client").CommandImpl<DeleteDiscovererCommandInput, DeleteDiscovererCommandOutput, SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteDiscovererCommandInput): import("@smithy/core/client").CommandImpl<DeleteDiscovererCommandInput, DeleteDiscovererCommandOutput, import("..").SchemasClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteDiscovererCommandInput): import("@smithy/core/client").CommandImpl<DeleteDiscovererCommandInput, DeleteDiscovererCommandOutput, import("..").SchemasClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes a discoverer.</p>