@aws-sdk/client-schemas 3.928.0 → 3.930.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 (52) hide show
  1. package/dist-cjs/index.js +1443 -1401
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/SchemasClient.js +2 -0
  4. package/dist-es/commands/CreateDiscovererCommand.js +3 -9
  5. package/dist-es/commands/CreateRegistryCommand.js +3 -9
  6. package/dist-es/commands/CreateSchemaCommand.js +3 -9
  7. package/dist-es/commands/DeleteDiscovererCommand.js +3 -9
  8. package/dist-es/commands/DeleteRegistryCommand.js +3 -9
  9. package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
  10. package/dist-es/commands/DeleteSchemaCommand.js +3 -9
  11. package/dist-es/commands/DeleteSchemaVersionCommand.js +3 -9
  12. package/dist-es/commands/DescribeCodeBindingCommand.js +3 -9
  13. package/dist-es/commands/DescribeDiscovererCommand.js +3 -9
  14. package/dist-es/commands/DescribeRegistryCommand.js +3 -9
  15. package/dist-es/commands/DescribeSchemaCommand.js +3 -9
  16. package/dist-es/commands/ExportSchemaCommand.js +3 -9
  17. package/dist-es/commands/GetCodeBindingSourceCommand.js +3 -9
  18. package/dist-es/commands/GetDiscoveredSchemaCommand.js +3 -9
  19. package/dist-es/commands/GetResourcePolicyCommand.js +3 -9
  20. package/dist-es/commands/ListDiscoverersCommand.js +3 -9
  21. package/dist-es/commands/ListRegistriesCommand.js +3 -9
  22. package/dist-es/commands/ListSchemaVersionsCommand.js +3 -9
  23. package/dist-es/commands/ListSchemasCommand.js +3 -9
  24. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  25. package/dist-es/commands/PutCodeBindingCommand.js +3 -9
  26. package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
  27. package/dist-es/commands/SearchSchemasCommand.js +3 -9
  28. package/dist-es/commands/StartDiscovererCommand.js +3 -9
  29. package/dist-es/commands/StopDiscovererCommand.js +3 -9
  30. package/dist-es/commands/TagResourceCommand.js +3 -9
  31. package/dist-es/commands/UntagResourceCommand.js +3 -9
  32. package/dist-es/commands/UpdateDiscovererCommand.js +3 -9
  33. package/dist-es/commands/UpdateRegistryCommand.js +3 -9
  34. package/dist-es/commands/UpdateSchemaCommand.js +3 -9
  35. package/dist-es/runtimeConfig.shared.js +2 -0
  36. package/dist-es/schemas/schemas_0.js +1371 -0
  37. package/dist-types/SchemasClient.d.ts +10 -1
  38. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  39. package/dist-types/runtimeConfig.d.ts +1 -0
  40. package/dist-types/runtimeConfig.native.d.ts +1 -0
  41. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  42. package/dist-types/schemas/schemas_0.d.ts +115 -0
  43. package/dist-types/ts3.4/SchemasClient.d.ts +4 -0
  44. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  45. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  46. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  47. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  48. package/dist-types/ts3.4/schemas/schemas_0.d.ts +121 -0
  49. package/package.json +35 -36
  50. package/dist-es/protocols/Aws_restJson1.js +0 -1174
  51. package/dist-types/protocols/Aws_restJson1.d.ts +0 -281
  52. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -377
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutResourcePolicyCommand, se_PutResourcePolicyCommand } from "../protocols/Aws_restJson1";
4
+ import { PutResourcePolicy } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutResourcePolicyCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("schemas", "PutResourcePolicy", {})
17
13
  .n("SchemasClient", "PutResourcePolicyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutResourcePolicyCommand)
20
- .de(de_PutResourcePolicyCommand)
14
+ .sc(PutResourcePolicy)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_SearchSchemasCommand, se_SearchSchemasCommand } from "../protocols/Aws_restJson1";
4
+ import { SearchSchemas } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class SearchSchemasCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("schemas", "SearchSchemas", {})
17
13
  .n("SchemasClient", "SearchSchemasCommand")
18
- .f(void 0, void 0)
19
- .ser(se_SearchSchemasCommand)
20
- .de(de_SearchSchemasCommand)
14
+ .sc(SearchSchemas)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartDiscovererCommand, se_StartDiscovererCommand } from "../protocols/Aws_restJson1";
4
+ import { StartDiscoverer } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartDiscovererCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("schemas", "StartDiscoverer", {})
17
13
  .n("SchemasClient", "StartDiscovererCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartDiscovererCommand)
20
- .de(de_StartDiscovererCommand)
14
+ .sc(StartDiscoverer)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StopDiscovererCommand, se_StopDiscovererCommand } from "../protocols/Aws_restJson1";
4
+ import { StopDiscoverer } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StopDiscovererCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("schemas", "StopDiscoverer", {})
17
13
  .n("SchemasClient", "StopDiscovererCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StopDiscovererCommand)
20
- .de(de_StopDiscovererCommand)
14
+ .sc(StopDiscoverer)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("schemas", "TagResource", {})
17
13
  .n("SchemasClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("schemas", "UntagResource", {})
17
13
  .n("SchemasClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateDiscovererCommand, se_UpdateDiscovererCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateDiscoverer } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateDiscovererCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("schemas", "UpdateDiscoverer", {})
17
13
  .n("SchemasClient", "UpdateDiscovererCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateDiscovererCommand)
20
- .de(de_UpdateDiscovererCommand)
14
+ .sc(UpdateDiscoverer)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateRegistryCommand, se_UpdateRegistryCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateRegistry } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateRegistryCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("schemas", "UpdateRegistry", {})
17
13
  .n("SchemasClient", "UpdateRegistryCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateRegistryCommand)
20
- .de(de_UpdateRegistryCommand)
14
+ .sc(UpdateRegistry)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateSchemaCommand, se_UpdateSchemaCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateSchema } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateSchemaCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("schemas", "UpdateSchema", {})
17
13
  .n("SchemasClient", "UpdateSchemaCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateSchemaCommand)
20
- .de(de_UpdateSchemaCommand)
14
+ .sc(UpdateSchema)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.schemas" }),
25
27
  serviceId: config?.serviceId ?? "schemas",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,