@aws-sdk/client-managedblockchain-query 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 (30) hide show
  1. package/dist-cjs/index.js +593 -654
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/ManagedBlockchainQueryClient.js +2 -0
  4. package/dist-es/commands/BatchGetTokenBalanceCommand.js +3 -9
  5. package/dist-es/commands/GetAssetContractCommand.js +3 -9
  6. package/dist-es/commands/GetTokenBalanceCommand.js +3 -9
  7. package/dist-es/commands/GetTransactionCommand.js +3 -9
  8. package/dist-es/commands/ListAssetContractsCommand.js +3 -9
  9. package/dist-es/commands/ListFilteredTransactionEventsCommand.js +3 -9
  10. package/dist-es/commands/ListTokenBalancesCommand.js +3 -9
  11. package/dist-es/commands/ListTransactionEventsCommand.js +3 -9
  12. package/dist-es/commands/ListTransactionsCommand.js +3 -9
  13. package/dist-es/runtimeConfig.shared.js +2 -0
  14. package/dist-es/schemas/schemas_0.js +558 -0
  15. package/dist-types/ManagedBlockchainQueryClient.d.ts +10 -1
  16. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  17. package/dist-types/runtimeConfig.d.ts +1 -0
  18. package/dist-types/runtimeConfig.native.d.ts +1 -0
  19. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  20. package/dist-types/schemas/schemas_0.d.ts +68 -0
  21. package/dist-types/ts3.4/ManagedBlockchainQueryClient.d.ts +4 -0
  22. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  23. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  25. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  26. package/dist-types/ts3.4/schemas/schemas_0.d.ts +73 -0
  27. package/package.json +33 -33
  28. package/dist-es/protocols/Aws_restJson1.js +0 -575
  29. package/dist-types/protocols/Aws_restJson1.d.ts +0 -83
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -113
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.managedblockchainquery" }),
28
30
  serviceId: config?.serviceId ?? "ManagedBlockchain Query",
29
31
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
32
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class ManagedBlockchainQueryClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -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_BatchGetTokenBalanceCommand, se_BatchGetTokenBalanceCommand } from "../protocols/Aws_restJson1";
4
+ import { BatchGetTokenBalance } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class BatchGetTokenBalanceCommand 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("TietonChainQueryService", "BatchGetTokenBalance", {})
17
13
  .n("ManagedBlockchainQueryClient", "BatchGetTokenBalanceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_BatchGetTokenBalanceCommand)
20
- .de(de_BatchGetTokenBalanceCommand)
14
+ .sc(BatchGetTokenBalance)
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_GetAssetContractCommand, se_GetAssetContractCommand } from "../protocols/Aws_restJson1";
4
+ import { GetAssetContract } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetAssetContractCommand 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("TietonChainQueryService", "GetAssetContract", {})
17
13
  .n("ManagedBlockchainQueryClient", "GetAssetContractCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetAssetContractCommand)
20
- .de(de_GetAssetContractCommand)
14
+ .sc(GetAssetContract)
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_GetTokenBalanceCommand, se_GetTokenBalanceCommand } from "../protocols/Aws_restJson1";
4
+ import { GetTokenBalance } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetTokenBalanceCommand 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("TietonChainQueryService", "GetTokenBalance", {})
17
13
  .n("ManagedBlockchainQueryClient", "GetTokenBalanceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetTokenBalanceCommand)
20
- .de(de_GetTokenBalanceCommand)
14
+ .sc(GetTokenBalance)
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_GetTransactionCommand, se_GetTransactionCommand } from "../protocols/Aws_restJson1";
4
+ import { GetTransaction } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetTransactionCommand 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("TietonChainQueryService", "GetTransaction", {})
17
13
  .n("ManagedBlockchainQueryClient", "GetTransactionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetTransactionCommand)
20
- .de(de_GetTransactionCommand)
14
+ .sc(GetTransaction)
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_ListAssetContractsCommand, se_ListAssetContractsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListAssetContracts } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListAssetContractsCommand 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("TietonChainQueryService", "ListAssetContracts", {})
17
13
  .n("ManagedBlockchainQueryClient", "ListAssetContractsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListAssetContractsCommand)
20
- .de(de_ListAssetContractsCommand)
14
+ .sc(ListAssetContracts)
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_ListFilteredTransactionEventsCommand, se_ListFilteredTransactionEventsCommand, } from "../protocols/Aws_restJson1";
4
+ import { ListFilteredTransactionEvents } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListFilteredTransactionEventsCommand 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("TietonChainQueryService", "ListFilteredTransactionEvents", {})
17
13
  .n("ManagedBlockchainQueryClient", "ListFilteredTransactionEventsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListFilteredTransactionEventsCommand)
20
- .de(de_ListFilteredTransactionEventsCommand)
14
+ .sc(ListFilteredTransactionEvents)
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_ListTokenBalancesCommand, se_ListTokenBalancesCommand } from "../protocols/Aws_restJson1";
4
+ import { ListTokenBalances } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTokenBalancesCommand 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("TietonChainQueryService", "ListTokenBalances", {})
17
13
  .n("ManagedBlockchainQueryClient", "ListTokenBalancesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTokenBalancesCommand)
20
- .de(de_ListTokenBalancesCommand)
14
+ .sc(ListTokenBalances)
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_ListTransactionEventsCommand, se_ListTransactionEventsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListTransactionEvents } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTransactionEventsCommand 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("TietonChainQueryService", "ListTransactionEvents", {})
17
13
  .n("ManagedBlockchainQueryClient", "ListTransactionEventsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTransactionEventsCommand)
20
- .de(de_ListTransactionEventsCommand)
14
+ .sc(ListTransactionEvents)
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_ListTransactionsCommand, se_ListTransactionsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListTransactions } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTransactionsCommand 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("TietonChainQueryService", "ListTransactions", {})
17
13
  .n("ManagedBlockchainQueryClient", "ListTransactionsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTransactionsCommand)
20
- .de(de_ListTransactionsCommand)
14
+ .sc(ListTransactions)
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.managedblockchainquery" }),
25
27
  serviceId: config?.serviceId ?? "ManagedBlockchain Query",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,