@aws-sdk/client-managedblockchain 3.901.0 → 3.906.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 (2) hide show
  1. package/dist-cjs/index.js +2000 -2178
  2. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -1,2223 +1,2045 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AccessDeniedException: () => AccessDeniedException,
25
- AccessorNetworkType: () => AccessorNetworkType,
26
- AccessorStatus: () => AccessorStatus,
27
- AccessorType: () => AccessorType,
28
- CreateAccessorCommand: () => CreateAccessorCommand,
29
- CreateMemberCommand: () => CreateMemberCommand,
30
- CreateMemberInputFilterSensitiveLog: () => CreateMemberInputFilterSensitiveLog,
31
- CreateNetworkCommand: () => CreateNetworkCommand,
32
- CreateNetworkInputFilterSensitiveLog: () => CreateNetworkInputFilterSensitiveLog,
33
- CreateNodeCommand: () => CreateNodeCommand,
34
- CreateProposalCommand: () => CreateProposalCommand,
35
- DeleteAccessorCommand: () => DeleteAccessorCommand,
36
- DeleteMemberCommand: () => DeleteMemberCommand,
37
- DeleteNodeCommand: () => DeleteNodeCommand,
38
- Edition: () => Edition,
39
- Framework: () => Framework,
40
- GetAccessorCommand: () => GetAccessorCommand,
41
- GetMemberCommand: () => GetMemberCommand,
42
- GetNetworkCommand: () => GetNetworkCommand,
43
- GetNodeCommand: () => GetNodeCommand,
44
- GetProposalCommand: () => GetProposalCommand,
45
- IllegalActionException: () => IllegalActionException,
46
- InternalServiceErrorException: () => InternalServiceErrorException,
47
- InvalidRequestException: () => InvalidRequestException,
48
- InvitationStatus: () => InvitationStatus,
49
- ListAccessorsCommand: () => ListAccessorsCommand,
50
- ListInvitationsCommand: () => ListInvitationsCommand,
51
- ListMembersCommand: () => ListMembersCommand,
52
- ListNetworksCommand: () => ListNetworksCommand,
53
- ListNodesCommand: () => ListNodesCommand,
54
- ListProposalVotesCommand: () => ListProposalVotesCommand,
55
- ListProposalsCommand: () => ListProposalsCommand,
56
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
57
- ManagedBlockchain: () => ManagedBlockchain,
58
- ManagedBlockchainClient: () => ManagedBlockchainClient,
59
- ManagedBlockchainServiceException: () => ManagedBlockchainServiceException,
60
- MemberConfigurationFilterSensitiveLog: () => MemberConfigurationFilterSensitiveLog,
61
- MemberFabricConfigurationFilterSensitiveLog: () => MemberFabricConfigurationFilterSensitiveLog,
62
- MemberFrameworkConfigurationFilterSensitiveLog: () => MemberFrameworkConfigurationFilterSensitiveLog,
63
- MemberStatus: () => MemberStatus,
64
- NetworkStatus: () => NetworkStatus,
65
- NodeStatus: () => NodeStatus,
66
- ProposalStatus: () => ProposalStatus,
67
- RejectInvitationCommand: () => RejectInvitationCommand,
68
- ResourceAlreadyExistsException: () => ResourceAlreadyExistsException,
69
- ResourceLimitExceededException: () => ResourceLimitExceededException,
70
- ResourceNotFoundException: () => ResourceNotFoundException,
71
- ResourceNotReadyException: () => ResourceNotReadyException,
72
- StateDBType: () => StateDBType,
73
- TagResourceCommand: () => TagResourceCommand,
74
- ThresholdComparator: () => ThresholdComparator,
75
- ThrottlingException: () => ThrottlingException,
76
- TooManyTagsException: () => TooManyTagsException,
77
- UntagResourceCommand: () => UntagResourceCommand,
78
- UpdateMemberCommand: () => UpdateMemberCommand,
79
- UpdateNodeCommand: () => UpdateNodeCommand,
80
- VoteOnProposalCommand: () => VoteOnProposalCommand,
81
- VoteValue: () => VoteValue,
82
- __Client: () => import_smithy_client.Client,
83
- paginateListAccessors: () => paginateListAccessors,
84
- paginateListInvitations: () => paginateListInvitations,
85
- paginateListMembers: () => paginateListMembers,
86
- paginateListNetworks: () => paginateListNetworks,
87
- paginateListNodes: () => paginateListNodes,
88
- paginateListProposalVotes: () => paginateListProposalVotes,
89
- paginateListProposals: () => paginateListProposals
90
- });
91
- module.exports = __toCommonJS(index_exports);
92
-
93
- // src/ManagedBlockchainClient.ts
94
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
95
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
96
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
97
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
98
- var import_config_resolver = require("@smithy/config-resolver");
99
- var import_core = require("@smithy/core");
100
- var import_middleware_content_length = require("@smithy/middleware-content-length");
101
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
102
- var import_middleware_retry = require("@smithy/middleware-retry");
103
-
104
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
105
-
106
- // src/endpoint/EndpointParameters.ts
107
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
108
- return Object.assign(options, {
109
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
110
- useFipsEndpoint: options.useFipsEndpoint ?? false,
111
- defaultSigningName: "managedblockchain"
112
- });
113
- }, "resolveClientEndpointParameters");
114
- var commonParams = {
115
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
116
- Endpoint: { type: "builtInParams", name: "endpoint" },
117
- Region: { type: "builtInParams", name: "region" },
118
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+ var uuid = require('@smithy/uuid');
20
+
21
+ const resolveClientEndpointParameters = (options) => {
22
+ return Object.assign(options, {
23
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
24
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
25
+ defaultSigningName: "managedblockchain",
26
+ });
27
+ };
28
+ const commonParams = {
29
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
30
+ Endpoint: { type: "builtInParams", name: "endpoint" },
31
+ Region: { type: "builtInParams", name: "region" },
32
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
119
33
  };
120
34
 
121
- // src/ManagedBlockchainClient.ts
122
- var import_runtimeConfig = require("././runtimeConfig");
35
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
36
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
37
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
38
+ let _credentials = runtimeConfig.credentials;
39
+ return {
40
+ setHttpAuthScheme(httpAuthScheme) {
41
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
42
+ if (index === -1) {
43
+ _httpAuthSchemes.push(httpAuthScheme);
44
+ }
45
+ else {
46
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
47
+ }
48
+ },
49
+ httpAuthSchemes() {
50
+ return _httpAuthSchemes;
51
+ },
52
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
53
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
54
+ },
55
+ httpAuthSchemeProvider() {
56
+ return _httpAuthSchemeProvider;
57
+ },
58
+ setCredentials(credentials) {
59
+ _credentials = credentials;
60
+ },
61
+ credentials() {
62
+ return _credentials;
63
+ },
64
+ };
65
+ };
66
+ const resolveHttpAuthRuntimeConfig = (config) => {
67
+ return {
68
+ httpAuthSchemes: config.httpAuthSchemes(),
69
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
70
+ credentials: config.credentials(),
71
+ };
72
+ };
123
73
 
124
- // src/runtimeExtensions.ts
125
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
126
- var import_protocol_http = require("@smithy/protocol-http");
127
- var import_smithy_client = require("@smithy/smithy-client");
74
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
75
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
77
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
+ };
128
79
 
129
- // src/auth/httpAuthExtensionConfiguration.ts
130
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
131
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
132
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
133
- let _credentials = runtimeConfig.credentials;
134
- return {
135
- setHttpAuthScheme(httpAuthScheme) {
136
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
137
- if (index === -1) {
138
- _httpAuthSchemes.push(httpAuthScheme);
139
- } else {
140
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
141
- }
142
- },
143
- httpAuthSchemes() {
144
- return _httpAuthSchemes;
145
- },
146
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
147
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
148
- },
149
- httpAuthSchemeProvider() {
150
- return _httpAuthSchemeProvider;
151
- },
152
- setCredentials(credentials) {
153
- _credentials = credentials;
154
- },
155
- credentials() {
156
- return _credentials;
80
+ class ManagedBlockchainClient extends smithyClient.Client {
81
+ config;
82
+ constructor(...[configuration]) {
83
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
84
+ super(_config_0);
85
+ this.initConfig = _config_0;
86
+ const _config_1 = resolveClientEndpointParameters(_config_0);
87
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
88
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
89
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
90
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
91
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
92
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
+ this.config = _config_8;
95
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
98
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
99
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
100
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
101
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
102
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultManagedBlockchainHttpAuthSchemeParametersProvider,
103
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
104
+ "aws.auth#sigv4": config.credentials,
105
+ }),
106
+ }));
107
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
157
108
  }
158
- };
159
- }, "getHttpAuthExtensionConfiguration");
160
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
161
- return {
162
- httpAuthSchemes: config.httpAuthSchemes(),
163
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
164
- credentials: config.credentials()
165
- };
166
- }, "resolveHttpAuthRuntimeConfig");
167
-
168
- // src/runtimeExtensions.ts
169
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
170
- const extensionConfiguration = Object.assign(
171
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
172
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
173
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
174
- getHttpAuthExtensionConfiguration(runtimeConfig)
175
- );
176
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
177
- return Object.assign(
178
- runtimeConfig,
179
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
180
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
181
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
182
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
183
- );
184
- }, "resolveRuntimeExtensions");
109
+ destroy() {
110
+ super.destroy();
111
+ }
112
+ }
185
113
 
186
- // src/ManagedBlockchainClient.ts
187
- var ManagedBlockchainClient = class extends import_smithy_client.Client {
188
- static {
189
- __name(this, "ManagedBlockchainClient");
190
- }
191
- /**
192
- * The resolved configuration of ManagedBlockchainClient class. This is resolved and normalized from the {@link ManagedBlockchainClientConfig | constructor configuration interface}.
193
- */
194
- config;
195
- constructor(...[configuration]) {
196
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
197
- super(_config_0);
198
- this.initConfig = _config_0;
199
- const _config_1 = resolveClientEndpointParameters(_config_0);
200
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
201
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
202
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
203
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
204
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
205
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
206
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
207
- this.config = _config_8;
208
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
209
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
210
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
211
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
212
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
213
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
214
- this.middlewareStack.use(
215
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
216
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultManagedBlockchainHttpAuthSchemeParametersProvider,
217
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
218
- "aws.auth#sigv4": config.credentials
219
- }), "identityProviderConfigProvider")
220
- })
221
- );
222
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
223
- }
224
- /**
225
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
226
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
227
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
228
- */
229
- destroy() {
230
- super.destroy();
231
- }
114
+ class ManagedBlockchainServiceException extends smithyClient.ServiceException {
115
+ constructor(options) {
116
+ super(options);
117
+ Object.setPrototypeOf(this, ManagedBlockchainServiceException.prototype);
118
+ }
119
+ }
120
+
121
+ class AccessDeniedException extends ManagedBlockchainServiceException {
122
+ name = "AccessDeniedException";
123
+ $fault = "client";
124
+ Message;
125
+ constructor(opts) {
126
+ super({
127
+ name: "AccessDeniedException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
132
+ this.Message = opts.Message;
133
+ }
134
+ }
135
+ const AccessorNetworkType = {
136
+ ETHEREUM_GOERLI: "ETHEREUM_GOERLI",
137
+ ETHEREUM_MAINNET: "ETHEREUM_MAINNET",
138
+ ETHEREUM_MAINNET_AND_GOERLI: "ETHEREUM_MAINNET_AND_GOERLI",
139
+ POLYGON_MAINNET: "POLYGON_MAINNET",
140
+ POLYGON_MUMBAI: "POLYGON_MUMBAI",
232
141
  };
233
-
234
- // src/ManagedBlockchain.ts
235
-
236
-
237
- // src/commands/CreateAccessorCommand.ts
238
-
239
- var import_middleware_serde = require("@smithy/middleware-serde");
240
-
241
-
242
- // src/protocols/Aws_restJson1.ts
243
- var import_core2 = require("@aws-sdk/core");
244
-
245
-
246
- var import_uuid = require("@smithy/uuid");
247
-
248
- // src/models/ManagedBlockchainServiceException.ts
249
-
250
- var ManagedBlockchainServiceException = class _ManagedBlockchainServiceException extends import_smithy_client.ServiceException {
251
- static {
252
- __name(this, "ManagedBlockchainServiceException");
253
- }
254
- /**
255
- * @internal
256
- */
257
- constructor(options) {
258
- super(options);
259
- Object.setPrototypeOf(this, _ManagedBlockchainServiceException.prototype);
260
- }
142
+ const AccessorStatus = {
143
+ AVAILABLE: "AVAILABLE",
144
+ DELETED: "DELETED",
145
+ PENDING_DELETION: "PENDING_DELETION",
261
146
  };
262
-
263
- // src/models/models_0.ts
264
-
265
- var AccessDeniedException = class _AccessDeniedException extends ManagedBlockchainServiceException {
266
- static {
267
- __name(this, "AccessDeniedException");
268
- }
269
- name = "AccessDeniedException";
270
- $fault = "client";
271
- Message;
272
- /**
273
- * @internal
274
- */
275
- constructor(opts) {
276
- super({
277
- name: "AccessDeniedException",
278
- $fault: "client",
279
- ...opts
280
- });
281
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
282
- this.Message = opts.Message;
283
- }
284
- };
285
- var AccessorNetworkType = {
286
- ETHEREUM_GOERLI: "ETHEREUM_GOERLI",
287
- ETHEREUM_MAINNET: "ETHEREUM_MAINNET",
288
- ETHEREUM_MAINNET_AND_GOERLI: "ETHEREUM_MAINNET_AND_GOERLI",
289
- POLYGON_MAINNET: "POLYGON_MAINNET",
290
- POLYGON_MUMBAI: "POLYGON_MUMBAI"
291
- };
292
- var AccessorStatus = {
293
- AVAILABLE: "AVAILABLE",
294
- DELETED: "DELETED",
295
- PENDING_DELETION: "PENDING_DELETION"
296
- };
297
- var AccessorType = {
298
- BILLING_TOKEN: "BILLING_TOKEN"
299
- };
300
- var ThresholdComparator = {
301
- GREATER_THAN: "GREATER_THAN",
302
- GREATER_THAN_OR_EQUAL_TO: "GREATER_THAN_OR_EQUAL_TO"
303
- };
304
- var InternalServiceErrorException = class _InternalServiceErrorException extends ManagedBlockchainServiceException {
305
- static {
306
- __name(this, "InternalServiceErrorException");
307
- }
308
- name = "InternalServiceErrorException";
309
- $fault = "server";
310
- /**
311
- * @internal
312
- */
313
- constructor(opts) {
314
- super({
315
- name: "InternalServiceErrorException",
316
- $fault: "server",
317
- ...opts
318
- });
319
- Object.setPrototypeOf(this, _InternalServiceErrorException.prototype);
320
- }
321
- };
322
- var InvalidRequestException = class _InvalidRequestException extends ManagedBlockchainServiceException {
323
- static {
324
- __name(this, "InvalidRequestException");
325
- }
326
- name = "InvalidRequestException";
327
- $fault = "client";
328
- Message;
329
- /**
330
- * @internal
331
- */
332
- constructor(opts) {
333
- super({
334
- name: "InvalidRequestException",
335
- $fault: "client",
336
- ...opts
337
- });
338
- Object.setPrototypeOf(this, _InvalidRequestException.prototype);
339
- this.Message = opts.Message;
340
- }
341
- };
342
- var ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends ManagedBlockchainServiceException {
343
- static {
344
- __name(this, "ResourceAlreadyExistsException");
345
- }
346
- name = "ResourceAlreadyExistsException";
347
- $fault = "client";
348
- Message;
349
- /**
350
- * @internal
351
- */
352
- constructor(opts) {
353
- super({
354
- name: "ResourceAlreadyExistsException",
355
- $fault: "client",
356
- ...opts
357
- });
358
- Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype);
359
- this.Message = opts.Message;
360
- }
361
- };
362
- var ResourceLimitExceededException = class _ResourceLimitExceededException extends ManagedBlockchainServiceException {
363
- static {
364
- __name(this, "ResourceLimitExceededException");
365
- }
366
- name = "ResourceLimitExceededException";
367
- $fault = "client";
368
- Message;
369
- /**
370
- * @internal
371
- */
372
- constructor(opts) {
373
- super({
374
- name: "ResourceLimitExceededException",
375
- $fault: "client",
376
- ...opts
377
- });
378
- Object.setPrototypeOf(this, _ResourceLimitExceededException.prototype);
379
- this.Message = opts.Message;
380
- }
381
- };
382
- var ThrottlingException = class _ThrottlingException extends ManagedBlockchainServiceException {
383
- static {
384
- __name(this, "ThrottlingException");
385
- }
386
- name = "ThrottlingException";
387
- $fault = "client";
388
- /**
389
- * @internal
390
- */
391
- constructor(opts) {
392
- super({
393
- name: "ThrottlingException",
394
- $fault: "client",
395
- ...opts
396
- });
397
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
398
- }
399
- };
400
- var TooManyTagsException = class _TooManyTagsException extends ManagedBlockchainServiceException {
401
- static {
402
- __name(this, "TooManyTagsException");
403
- }
404
- name = "TooManyTagsException";
405
- $fault = "client";
406
- Message;
407
- /**
408
- * <p></p>
409
- * @public
410
- */
411
- ResourceName;
412
- /**
413
- * @internal
414
- */
415
- constructor(opts) {
416
- super({
417
- name: "TooManyTagsException",
418
- $fault: "client",
419
- ...opts
420
- });
421
- Object.setPrototypeOf(this, _TooManyTagsException.prototype);
422
- this.Message = opts.Message;
423
- this.ResourceName = opts.ResourceName;
424
- }
425
- };
426
- var ResourceNotFoundException = class _ResourceNotFoundException extends ManagedBlockchainServiceException {
427
- static {
428
- __name(this, "ResourceNotFoundException");
429
- }
430
- name = "ResourceNotFoundException";
431
- $fault = "client";
432
- Message;
433
- /**
434
- * <p>A requested resource doesn't exist. It may have been deleted or referenced inaccurately.</p>
435
- * @public
436
- */
437
- ResourceName;
438
- /**
439
- * @internal
440
- */
441
- constructor(opts) {
442
- super({
443
- name: "ResourceNotFoundException",
444
- $fault: "client",
445
- ...opts
446
- });
447
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
448
- this.Message = opts.Message;
449
- this.ResourceName = opts.ResourceName;
450
- }
451
- };
452
- var ResourceNotReadyException = class _ResourceNotReadyException extends ManagedBlockchainServiceException {
453
- static {
454
- __name(this, "ResourceNotReadyException");
455
- }
456
- name = "ResourceNotReadyException";
457
- $fault = "client";
458
- Message;
459
- /**
460
- * @internal
461
- */
462
- constructor(opts) {
463
- super({
464
- name: "ResourceNotReadyException",
465
- $fault: "client",
466
- ...opts
467
- });
468
- Object.setPrototypeOf(this, _ResourceNotReadyException.prototype);
469
- this.Message = opts.Message;
470
- }
471
- };
472
- var Framework = {
473
- ETHEREUM: "ETHEREUM",
474
- HYPERLEDGER_FABRIC: "HYPERLEDGER_FABRIC"
475
- };
476
- var Edition = {
477
- STANDARD: "STANDARD",
478
- STARTER: "STARTER"
479
- };
480
- var StateDBType = {
481
- CouchDB: "CouchDB",
482
- LevelDB: "LevelDB"
483
- };
484
- var MemberStatus = {
485
- AVAILABLE: "AVAILABLE",
486
- CREATE_FAILED: "CREATE_FAILED",
487
- CREATING: "CREATING",
488
- DELETED: "DELETED",
489
- DELETING: "DELETING",
490
- INACCESSIBLE_ENCRYPTION_KEY: "INACCESSIBLE_ENCRYPTION_KEY",
491
- UPDATING: "UPDATING"
492
- };
493
- var NetworkStatus = {
494
- AVAILABLE: "AVAILABLE",
495
- CREATE_FAILED: "CREATE_FAILED",
496
- CREATING: "CREATING",
497
- DELETED: "DELETED",
498
- DELETING: "DELETING"
499
- };
500
- var NodeStatus = {
501
- AVAILABLE: "AVAILABLE",
502
- CREATE_FAILED: "CREATE_FAILED",
503
- CREATING: "CREATING",
504
- DELETED: "DELETED",
505
- DELETING: "DELETING",
506
- FAILED: "FAILED",
507
- INACCESSIBLE_ENCRYPTION_KEY: "INACCESSIBLE_ENCRYPTION_KEY",
508
- UNHEALTHY: "UNHEALTHY",
509
- UPDATING: "UPDATING"
510
- };
511
- var ProposalStatus = {
512
- ACTION_FAILED: "ACTION_FAILED",
513
- APPROVED: "APPROVED",
514
- EXPIRED: "EXPIRED",
515
- IN_PROGRESS: "IN_PROGRESS",
516
- REJECTED: "REJECTED"
517
- };
518
- var IllegalActionException = class _IllegalActionException extends ManagedBlockchainServiceException {
519
- static {
520
- __name(this, "IllegalActionException");
521
- }
522
- name = "IllegalActionException";
523
- $fault = "client";
524
- Message;
525
- /**
526
- * @internal
527
- */
528
- constructor(opts) {
529
- super({
530
- name: "IllegalActionException",
531
- $fault: "client",
532
- ...opts
533
- });
534
- Object.setPrototypeOf(this, _IllegalActionException.prototype);
535
- this.Message = opts.Message;
536
- }
537
- };
538
- var InvitationStatus = {
539
- ACCEPTED: "ACCEPTED",
540
- ACCEPTING: "ACCEPTING",
541
- EXPIRED: "EXPIRED",
542
- PENDING: "PENDING",
543
- REJECTED: "REJECTED"
544
- };
545
- var VoteValue = {
546
- NO: "NO",
547
- YES: "YES"
548
- };
549
- var MemberFabricConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
550
- ...obj,
551
- ...obj.AdminPassword && { AdminPassword: import_smithy_client.SENSITIVE_STRING }
552
- }), "MemberFabricConfigurationFilterSensitiveLog");
553
- var MemberFrameworkConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
554
- ...obj,
555
- ...obj.Fabric && { Fabric: MemberFabricConfigurationFilterSensitiveLog(obj.Fabric) }
556
- }), "MemberFrameworkConfigurationFilterSensitiveLog");
557
- var MemberConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
558
- ...obj,
559
- ...obj.FrameworkConfiguration && {
560
- FrameworkConfiguration: MemberFrameworkConfigurationFilterSensitiveLog(obj.FrameworkConfiguration)
561
- }
562
- }), "MemberConfigurationFilterSensitiveLog");
563
- var CreateMemberInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
564
- ...obj,
565
- ...obj.MemberConfiguration && {
566
- MemberConfiguration: MemberConfigurationFilterSensitiveLog(obj.MemberConfiguration)
567
- }
568
- }), "CreateMemberInputFilterSensitiveLog");
569
- var CreateNetworkInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
570
- ...obj,
571
- ...obj.MemberConfiguration && {
572
- MemberConfiguration: MemberConfigurationFilterSensitiveLog(obj.MemberConfiguration)
573
- }
574
- }), "CreateNetworkInputFilterSensitiveLog");
575
-
576
- // src/protocols/Aws_restJson1.ts
577
- var se_CreateAccessorCommand = /* @__PURE__ */ __name(async (input, context) => {
578
- const b = (0, import_core.requestBuilder)(input, context);
579
- const headers = {
580
- "content-type": "application/json"
581
- };
582
- b.bp("/accessors");
583
- let body;
584
- body = JSON.stringify(
585
- (0, import_smithy_client.take)(input, {
586
- AccessorType: [],
587
- ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
588
- NetworkType: [],
589
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
590
- })
591
- );
592
- b.m("POST").h(headers).b(body);
593
- return b.build();
594
- }, "se_CreateAccessorCommand");
595
- var se_CreateMemberCommand = /* @__PURE__ */ __name(async (input, context) => {
596
- const b = (0, import_core.requestBuilder)(input, context);
597
- const headers = {
598
- "content-type": "application/json"
599
- };
600
- b.bp("/networks/{NetworkId}/members");
601
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
602
- let body;
603
- body = JSON.stringify(
604
- (0, import_smithy_client.take)(input, {
605
- ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
606
- InvitationId: [],
607
- MemberConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "MemberConfiguration")
608
- })
609
- );
610
- b.m("POST").h(headers).b(body);
611
- return b.build();
612
- }, "se_CreateMemberCommand");
613
- var se_CreateNetworkCommand = /* @__PURE__ */ __name(async (input, context) => {
614
- const b = (0, import_core.requestBuilder)(input, context);
615
- const headers = {
616
- "content-type": "application/json"
617
- };
618
- b.bp("/networks");
619
- let body;
620
- body = JSON.stringify(
621
- (0, import_smithy_client.take)(input, {
622
- ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
623
- Description: [],
624
- Framework: [],
625
- FrameworkConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "FrameworkConfiguration"),
626
- FrameworkVersion: [],
627
- MemberConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "MemberConfiguration"),
628
- Name: [],
629
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags"),
630
- VotingPolicy: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "VotingPolicy")
631
- })
632
- );
633
- b.m("POST").h(headers).b(body);
634
- return b.build();
635
- }, "se_CreateNetworkCommand");
636
- var se_CreateNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
637
- const b = (0, import_core.requestBuilder)(input, context);
638
- const headers = {
639
- "content-type": "application/json"
640
- };
641
- b.bp("/networks/{NetworkId}/nodes");
642
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
643
- let body;
644
- body = JSON.stringify(
645
- (0, import_smithy_client.take)(input, {
646
- ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
647
- MemberId: [],
648
- NodeConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "NodeConfiguration"),
649
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
650
- })
651
- );
652
- b.m("POST").h(headers).b(body);
653
- return b.build();
654
- }, "se_CreateNodeCommand");
655
- var se_CreateProposalCommand = /* @__PURE__ */ __name(async (input, context) => {
656
- const b = (0, import_core.requestBuilder)(input, context);
657
- const headers = {
658
- "content-type": "application/json"
659
- };
660
- b.bp("/networks/{NetworkId}/proposals");
661
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
662
- let body;
663
- body = JSON.stringify(
664
- (0, import_smithy_client.take)(input, {
665
- Actions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Actions"),
666
- ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
667
- Description: [],
668
- MemberId: [],
669
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
670
- })
671
- );
672
- b.m("POST").h(headers).b(body);
673
- return b.build();
674
- }, "se_CreateProposalCommand");
675
- var se_DeleteAccessorCommand = /* @__PURE__ */ __name(async (input, context) => {
676
- const b = (0, import_core.requestBuilder)(input, context);
677
- const headers = {};
678
- b.bp("/accessors/{AccessorId}");
679
- b.p("AccessorId", () => input.AccessorId, "{AccessorId}", false);
680
- let body;
681
- b.m("DELETE").h(headers).b(body);
682
- return b.build();
683
- }, "se_DeleteAccessorCommand");
684
- var se_DeleteMemberCommand = /* @__PURE__ */ __name(async (input, context) => {
685
- const b = (0, import_core.requestBuilder)(input, context);
686
- const headers = {};
687
- b.bp("/networks/{NetworkId}/members/{MemberId}");
688
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
689
- b.p("MemberId", () => input.MemberId, "{MemberId}", false);
690
- let body;
691
- b.m("DELETE").h(headers).b(body);
692
- return b.build();
693
- }, "se_DeleteMemberCommand");
694
- var se_DeleteNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
695
- const b = (0, import_core.requestBuilder)(input, context);
696
- const headers = {};
697
- b.bp("/networks/{NetworkId}/nodes/{NodeId}");
698
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
699
- b.p("NodeId", () => input.NodeId, "{NodeId}", false);
700
- const query = (0, import_smithy_client.map)({
701
- [_mI]: [, input[_MI]]
702
- });
703
- let body;
704
- b.m("DELETE").h(headers).q(query).b(body);
705
- return b.build();
706
- }, "se_DeleteNodeCommand");
707
- var se_GetAccessorCommand = /* @__PURE__ */ __name(async (input, context) => {
708
- const b = (0, import_core.requestBuilder)(input, context);
709
- const headers = {};
710
- b.bp("/accessors/{AccessorId}");
711
- b.p("AccessorId", () => input.AccessorId, "{AccessorId}", false);
712
- let body;
713
- b.m("GET").h(headers).b(body);
714
- return b.build();
715
- }, "se_GetAccessorCommand");
716
- var se_GetMemberCommand = /* @__PURE__ */ __name(async (input, context) => {
717
- const b = (0, import_core.requestBuilder)(input, context);
718
- const headers = {};
719
- b.bp("/networks/{NetworkId}/members/{MemberId}");
720
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
721
- b.p("MemberId", () => input.MemberId, "{MemberId}", false);
722
- let body;
723
- b.m("GET").h(headers).b(body);
724
- return b.build();
725
- }, "se_GetMemberCommand");
726
- var se_GetNetworkCommand = /* @__PURE__ */ __name(async (input, context) => {
727
- const b = (0, import_core.requestBuilder)(input, context);
728
- const headers = {};
729
- b.bp("/networks/{NetworkId}");
730
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
731
- let body;
732
- b.m("GET").h(headers).b(body);
733
- return b.build();
734
- }, "se_GetNetworkCommand");
735
- var se_GetNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
736
- const b = (0, import_core.requestBuilder)(input, context);
737
- const headers = {};
738
- b.bp("/networks/{NetworkId}/nodes/{NodeId}");
739
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
740
- b.p("NodeId", () => input.NodeId, "{NodeId}", false);
741
- const query = (0, import_smithy_client.map)({
742
- [_mI]: [, input[_MI]]
743
- });
744
- let body;
745
- b.m("GET").h(headers).q(query).b(body);
746
- return b.build();
747
- }, "se_GetNodeCommand");
748
- var se_GetProposalCommand = /* @__PURE__ */ __name(async (input, context) => {
749
- const b = (0, import_core.requestBuilder)(input, context);
750
- const headers = {};
751
- b.bp("/networks/{NetworkId}/proposals/{ProposalId}");
752
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
753
- b.p("ProposalId", () => input.ProposalId, "{ProposalId}", false);
754
- let body;
755
- b.m("GET").h(headers).b(body);
756
- return b.build();
757
- }, "se_GetProposalCommand");
758
- var se_ListAccessorsCommand = /* @__PURE__ */ __name(async (input, context) => {
759
- const b = (0, import_core.requestBuilder)(input, context);
760
- const headers = {};
761
- b.bp("/accessors");
762
- const query = (0, import_smithy_client.map)({
763
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
764
- [_nT]: [, input[_NT]],
765
- [_nTe]: [, input[_NTe]]
766
- });
767
- let body;
768
- b.m("GET").h(headers).q(query).b(body);
769
- return b.build();
770
- }, "se_ListAccessorsCommand");
771
- var se_ListInvitationsCommand = /* @__PURE__ */ __name(async (input, context) => {
772
- const b = (0, import_core.requestBuilder)(input, context);
773
- const headers = {};
774
- b.bp("/invitations");
775
- const query = (0, import_smithy_client.map)({
776
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
777
- [_nT]: [, input[_NT]]
778
- });
779
- let body;
780
- b.m("GET").h(headers).q(query).b(body);
781
- return b.build();
782
- }, "se_ListInvitationsCommand");
783
- var se_ListMembersCommand = /* @__PURE__ */ __name(async (input, context) => {
784
- const b = (0, import_core.requestBuilder)(input, context);
785
- const headers = {};
786
- b.bp("/networks/{NetworkId}/members");
787
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
788
- const query = (0, import_smithy_client.map)({
789
- [_n]: [, input[_N]],
790
- [_s]: [, input[_S]],
791
- [_iO]: [() => input.IsOwned !== void 0, () => input[_IO].toString()],
792
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
793
- [_nT]: [, input[_NT]]
794
- });
795
- let body;
796
- b.m("GET").h(headers).q(query).b(body);
797
- return b.build();
798
- }, "se_ListMembersCommand");
799
- var se_ListNetworksCommand = /* @__PURE__ */ __name(async (input, context) => {
800
- const b = (0, import_core.requestBuilder)(input, context);
801
- const headers = {};
802
- b.bp("/networks");
803
- const query = (0, import_smithy_client.map)({
804
- [_n]: [, input[_N]],
805
- [_f]: [, input[_F]],
806
- [_s]: [, input[_S]],
807
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
808
- [_nT]: [, input[_NT]]
809
- });
810
- let body;
811
- b.m("GET").h(headers).q(query).b(body);
812
- return b.build();
813
- }, "se_ListNetworksCommand");
814
- var se_ListNodesCommand = /* @__PURE__ */ __name(async (input, context) => {
815
- const b = (0, import_core.requestBuilder)(input, context);
816
- const headers = {};
817
- b.bp("/networks/{NetworkId}/nodes");
818
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
819
- const query = (0, import_smithy_client.map)({
820
- [_mI]: [, input[_MI]],
821
- [_s]: [, input[_S]],
822
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
823
- [_nT]: [, input[_NT]]
824
- });
825
- let body;
826
- b.m("GET").h(headers).q(query).b(body);
827
- return b.build();
828
- }, "se_ListNodesCommand");
829
- var se_ListProposalsCommand = /* @__PURE__ */ __name(async (input, context) => {
830
- const b = (0, import_core.requestBuilder)(input, context);
831
- const headers = {};
832
- b.bp("/networks/{NetworkId}/proposals");
833
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
834
- const query = (0, import_smithy_client.map)({
835
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
836
- [_nT]: [, input[_NT]]
837
- });
838
- let body;
839
- b.m("GET").h(headers).q(query).b(body);
840
- return b.build();
841
- }, "se_ListProposalsCommand");
842
- var se_ListProposalVotesCommand = /* @__PURE__ */ __name(async (input, context) => {
843
- const b = (0, import_core.requestBuilder)(input, context);
844
- const headers = {};
845
- b.bp("/networks/{NetworkId}/proposals/{ProposalId}/votes");
846
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
847
- b.p("ProposalId", () => input.ProposalId, "{ProposalId}", false);
848
- const query = (0, import_smithy_client.map)({
849
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
850
- [_nT]: [, input[_NT]]
851
- });
852
- let body;
853
- b.m("GET").h(headers).q(query).b(body);
854
- return b.build();
855
- }, "se_ListProposalVotesCommand");
856
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
857
- const b = (0, import_core.requestBuilder)(input, context);
858
- const headers = {};
859
- b.bp("/tags/{ResourceArn}");
860
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
861
- let body;
862
- b.m("GET").h(headers).b(body);
863
- return b.build();
864
- }, "se_ListTagsForResourceCommand");
865
- var se_RejectInvitationCommand = /* @__PURE__ */ __name(async (input, context) => {
866
- const b = (0, import_core.requestBuilder)(input, context);
867
- const headers = {};
868
- b.bp("/invitations/{InvitationId}");
869
- b.p("InvitationId", () => input.InvitationId, "{InvitationId}", false);
870
- let body;
871
- b.m("DELETE").h(headers).b(body);
872
- return b.build();
873
- }, "se_RejectInvitationCommand");
874
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
875
- const b = (0, import_core.requestBuilder)(input, context);
876
- const headers = {
877
- "content-type": "application/json"
878
- };
879
- b.bp("/tags/{ResourceArn}");
880
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
881
- let body;
882
- body = JSON.stringify(
883
- (0, import_smithy_client.take)(input, {
884
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
885
- })
886
- );
887
- b.m("POST").h(headers).b(body);
888
- return b.build();
889
- }, "se_TagResourceCommand");
890
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
891
- const b = (0, import_core.requestBuilder)(input, context);
892
- const headers = {};
893
- b.bp("/tags/{ResourceArn}");
894
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
895
- const query = (0, import_smithy_client.map)({
896
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
897
- });
898
- let body;
899
- b.m("DELETE").h(headers).q(query).b(body);
900
- return b.build();
901
- }, "se_UntagResourceCommand");
902
- var se_UpdateMemberCommand = /* @__PURE__ */ __name(async (input, context) => {
903
- const b = (0, import_core.requestBuilder)(input, context);
904
- const headers = {
905
- "content-type": "application/json"
906
- };
907
- b.bp("/networks/{NetworkId}/members/{MemberId}");
908
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
909
- b.p("MemberId", () => input.MemberId, "{MemberId}", false);
910
- let body;
911
- body = JSON.stringify(
912
- (0, import_smithy_client.take)(input, {
913
- LogPublishingConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "LogPublishingConfiguration")
914
- })
915
- );
916
- b.m("PATCH").h(headers).b(body);
917
- return b.build();
918
- }, "se_UpdateMemberCommand");
919
- var se_UpdateNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
920
- const b = (0, import_core.requestBuilder)(input, context);
921
- const headers = {
922
- "content-type": "application/json"
923
- };
924
- b.bp("/networks/{NetworkId}/nodes/{NodeId}");
925
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
926
- b.p("NodeId", () => input.NodeId, "{NodeId}", false);
927
- let body;
928
- body = JSON.stringify(
929
- (0, import_smithy_client.take)(input, {
930
- LogPublishingConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "LogPublishingConfiguration"),
931
- MemberId: []
932
- })
933
- );
934
- b.m("PATCH").h(headers).b(body);
935
- return b.build();
936
- }, "se_UpdateNodeCommand");
937
- var se_VoteOnProposalCommand = /* @__PURE__ */ __name(async (input, context) => {
938
- const b = (0, import_core.requestBuilder)(input, context);
939
- const headers = {
940
- "content-type": "application/json"
941
- };
942
- b.bp("/networks/{NetworkId}/proposals/{ProposalId}/votes");
943
- b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
944
- b.p("ProposalId", () => input.ProposalId, "{ProposalId}", false);
945
- let body;
946
- body = JSON.stringify(
947
- (0, import_smithy_client.take)(input, {
948
- Vote: [],
949
- VoterMemberId: []
950
- })
951
- );
952
- b.m("POST").h(headers).b(body);
953
- return b.build();
954
- }, "se_VoteOnProposalCommand");
955
- var de_CreateAccessorCommand = /* @__PURE__ */ __name(async (output, context) => {
956
- if (output.statusCode !== 200 && output.statusCode >= 300) {
957
- return de_CommandError(output, context);
958
- }
959
- const contents = (0, import_smithy_client.map)({
960
- $metadata: deserializeMetadata(output)
961
- });
962
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
963
- const doc = (0, import_smithy_client.take)(data, {
964
- AccessorId: import_smithy_client.expectString,
965
- BillingToken: import_smithy_client.expectString,
966
- NetworkType: import_smithy_client.expectString
967
- });
968
- Object.assign(contents, doc);
969
- return contents;
970
- }, "de_CreateAccessorCommand");
971
- var de_CreateMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
972
- if (output.statusCode !== 200 && output.statusCode >= 300) {
973
- return de_CommandError(output, context);
974
- }
975
- const contents = (0, import_smithy_client.map)({
976
- $metadata: deserializeMetadata(output)
977
- });
978
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
979
- const doc = (0, import_smithy_client.take)(data, {
980
- MemberId: import_smithy_client.expectString
981
- });
982
- Object.assign(contents, doc);
983
- return contents;
984
- }, "de_CreateMemberCommand");
985
- var de_CreateNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
986
- if (output.statusCode !== 200 && output.statusCode >= 300) {
987
- return de_CommandError(output, context);
988
- }
989
- const contents = (0, import_smithy_client.map)({
990
- $metadata: deserializeMetadata(output)
991
- });
992
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
993
- const doc = (0, import_smithy_client.take)(data, {
994
- MemberId: import_smithy_client.expectString,
995
- NetworkId: import_smithy_client.expectString
996
- });
997
- Object.assign(contents, doc);
998
- return contents;
999
- }, "de_CreateNetworkCommand");
1000
- var de_CreateNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1001
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1002
- return de_CommandError(output, context);
1003
- }
1004
- const contents = (0, import_smithy_client.map)({
1005
- $metadata: deserializeMetadata(output)
1006
- });
1007
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1008
- const doc = (0, import_smithy_client.take)(data, {
1009
- NodeId: import_smithy_client.expectString
1010
- });
1011
- Object.assign(contents, doc);
1012
- return contents;
1013
- }, "de_CreateNodeCommand");
1014
- var de_CreateProposalCommand = /* @__PURE__ */ __name(async (output, context) => {
1015
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1016
- return de_CommandError(output, context);
1017
- }
1018
- const contents = (0, import_smithy_client.map)({
1019
- $metadata: deserializeMetadata(output)
1020
- });
1021
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1022
- const doc = (0, import_smithy_client.take)(data, {
1023
- ProposalId: import_smithy_client.expectString
1024
- });
1025
- Object.assign(contents, doc);
1026
- return contents;
1027
- }, "de_CreateProposalCommand");
1028
- var de_DeleteAccessorCommand = /* @__PURE__ */ __name(async (output, context) => {
1029
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1030
- return de_CommandError(output, context);
1031
- }
1032
- const contents = (0, import_smithy_client.map)({
1033
- $metadata: deserializeMetadata(output)
1034
- });
1035
- await (0, import_smithy_client.collectBody)(output.body, context);
1036
- return contents;
1037
- }, "de_DeleteAccessorCommand");
1038
- var de_DeleteMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
1039
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1040
- return de_CommandError(output, context);
1041
- }
1042
- const contents = (0, import_smithy_client.map)({
1043
- $metadata: deserializeMetadata(output)
1044
- });
1045
- await (0, import_smithy_client.collectBody)(output.body, context);
1046
- return contents;
1047
- }, "de_DeleteMemberCommand");
1048
- var de_DeleteNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1049
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1050
- return de_CommandError(output, context);
1051
- }
1052
- const contents = (0, import_smithy_client.map)({
1053
- $metadata: deserializeMetadata(output)
1054
- });
1055
- await (0, import_smithy_client.collectBody)(output.body, context);
1056
- return contents;
1057
- }, "de_DeleteNodeCommand");
1058
- var de_GetAccessorCommand = /* @__PURE__ */ __name(async (output, context) => {
1059
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1060
- return de_CommandError(output, context);
1061
- }
1062
- const contents = (0, import_smithy_client.map)({
1063
- $metadata: deserializeMetadata(output)
1064
- });
1065
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1066
- const doc = (0, import_smithy_client.take)(data, {
1067
- Accessor: /* @__PURE__ */ __name((_) => de_Accessor(_, context), "Accessor")
1068
- });
1069
- Object.assign(contents, doc);
1070
- return contents;
1071
- }, "de_GetAccessorCommand");
1072
- var de_GetMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
1073
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1074
- return de_CommandError(output, context);
1075
- }
1076
- const contents = (0, import_smithy_client.map)({
1077
- $metadata: deserializeMetadata(output)
1078
- });
1079
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1080
- const doc = (0, import_smithy_client.take)(data, {
1081
- Member: /* @__PURE__ */ __name((_) => de_Member(_, context), "Member")
1082
- });
1083
- Object.assign(contents, doc);
1084
- return contents;
1085
- }, "de_GetMemberCommand");
1086
- var de_GetNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
1087
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1088
- return de_CommandError(output, context);
1089
- }
1090
- const contents = (0, import_smithy_client.map)({
1091
- $metadata: deserializeMetadata(output)
1092
- });
1093
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1094
- const doc = (0, import_smithy_client.take)(data, {
1095
- Network: /* @__PURE__ */ __name((_) => de_Network(_, context), "Network")
1096
- });
1097
- Object.assign(contents, doc);
1098
- return contents;
1099
- }, "de_GetNetworkCommand");
1100
- var de_GetNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1101
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1102
- return de_CommandError(output, context);
1103
- }
1104
- const contents = (0, import_smithy_client.map)({
1105
- $metadata: deserializeMetadata(output)
1106
- });
1107
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1108
- const doc = (0, import_smithy_client.take)(data, {
1109
- Node: /* @__PURE__ */ __name((_) => de_Node(_, context), "Node")
1110
- });
1111
- Object.assign(contents, doc);
1112
- return contents;
1113
- }, "de_GetNodeCommand");
1114
- var de_GetProposalCommand = /* @__PURE__ */ __name(async (output, context) => {
1115
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1116
- return de_CommandError(output, context);
1117
- }
1118
- const contents = (0, import_smithy_client.map)({
1119
- $metadata: deserializeMetadata(output)
1120
- });
1121
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1122
- const doc = (0, import_smithy_client.take)(data, {
1123
- Proposal: /* @__PURE__ */ __name((_) => de_Proposal(_, context), "Proposal")
1124
- });
1125
- Object.assign(contents, doc);
1126
- return contents;
1127
- }, "de_GetProposalCommand");
1128
- var de_ListAccessorsCommand = /* @__PURE__ */ __name(async (output, context) => {
1129
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1130
- return de_CommandError(output, context);
1131
- }
1132
- const contents = (0, import_smithy_client.map)({
1133
- $metadata: deserializeMetadata(output)
1134
- });
1135
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1136
- const doc = (0, import_smithy_client.take)(data, {
1137
- Accessors: /* @__PURE__ */ __name((_) => de_AccessorSummaryList(_, context), "Accessors"),
1138
- NextToken: import_smithy_client.expectString
1139
- });
1140
- Object.assign(contents, doc);
1141
- return contents;
1142
- }, "de_ListAccessorsCommand");
1143
- var de_ListInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1144
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1145
- return de_CommandError(output, context);
1146
- }
1147
- const contents = (0, import_smithy_client.map)({
1148
- $metadata: deserializeMetadata(output)
1149
- });
1150
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1151
- const doc = (0, import_smithy_client.take)(data, {
1152
- Invitations: /* @__PURE__ */ __name((_) => de_InvitationList(_, context), "Invitations"),
1153
- NextToken: import_smithy_client.expectString
1154
- });
1155
- Object.assign(contents, doc);
1156
- return contents;
1157
- }, "de_ListInvitationsCommand");
1158
- var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
1159
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1160
- return de_CommandError(output, context);
1161
- }
1162
- const contents = (0, import_smithy_client.map)({
1163
- $metadata: deserializeMetadata(output)
1164
- });
1165
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1166
- const doc = (0, import_smithy_client.take)(data, {
1167
- Members: /* @__PURE__ */ __name((_) => de_MemberSummaryList(_, context), "Members"),
1168
- NextToken: import_smithy_client.expectString
1169
- });
1170
- Object.assign(contents, doc);
1171
- return contents;
1172
- }, "de_ListMembersCommand");
1173
- var de_ListNetworksCommand = /* @__PURE__ */ __name(async (output, context) => {
1174
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1175
- return de_CommandError(output, context);
1176
- }
1177
- const contents = (0, import_smithy_client.map)({
1178
- $metadata: deserializeMetadata(output)
1179
- });
1180
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1181
- const doc = (0, import_smithy_client.take)(data, {
1182
- Networks: /* @__PURE__ */ __name((_) => de_NetworkSummaryList(_, context), "Networks"),
1183
- NextToken: import_smithy_client.expectString
1184
- });
1185
- Object.assign(contents, doc);
1186
- return contents;
1187
- }, "de_ListNetworksCommand");
1188
- var de_ListNodesCommand = /* @__PURE__ */ __name(async (output, context) => {
1189
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1190
- return de_CommandError(output, context);
1191
- }
1192
- const contents = (0, import_smithy_client.map)({
1193
- $metadata: deserializeMetadata(output)
1194
- });
1195
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1196
- const doc = (0, import_smithy_client.take)(data, {
1197
- NextToken: import_smithy_client.expectString,
1198
- Nodes: /* @__PURE__ */ __name((_) => de_NodeSummaryList(_, context), "Nodes")
1199
- });
1200
- Object.assign(contents, doc);
1201
- return contents;
1202
- }, "de_ListNodesCommand");
1203
- var de_ListProposalsCommand = /* @__PURE__ */ __name(async (output, context) => {
1204
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1205
- return de_CommandError(output, context);
1206
- }
1207
- const contents = (0, import_smithy_client.map)({
1208
- $metadata: deserializeMetadata(output)
1209
- });
1210
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1211
- const doc = (0, import_smithy_client.take)(data, {
1212
- NextToken: import_smithy_client.expectString,
1213
- Proposals: /* @__PURE__ */ __name((_) => de_ProposalSummaryList(_, context), "Proposals")
1214
- });
1215
- Object.assign(contents, doc);
1216
- return contents;
1217
- }, "de_ListProposalsCommand");
1218
- var de_ListProposalVotesCommand = /* @__PURE__ */ __name(async (output, context) => {
1219
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1220
- return de_CommandError(output, context);
1221
- }
1222
- const contents = (0, import_smithy_client.map)({
1223
- $metadata: deserializeMetadata(output)
1224
- });
1225
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1226
- const doc = (0, import_smithy_client.take)(data, {
1227
- NextToken: import_smithy_client.expectString,
1228
- ProposalVotes: import_smithy_client._json
1229
- });
1230
- Object.assign(contents, doc);
1231
- return contents;
1232
- }, "de_ListProposalVotesCommand");
1233
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1234
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1235
- return de_CommandError(output, context);
1236
- }
1237
- const contents = (0, import_smithy_client.map)({
1238
- $metadata: deserializeMetadata(output)
1239
- });
1240
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1241
- const doc = (0, import_smithy_client.take)(data, {
1242
- Tags: import_smithy_client._json
1243
- });
1244
- Object.assign(contents, doc);
1245
- return contents;
1246
- }, "de_ListTagsForResourceCommand");
1247
- var de_RejectInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
1248
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1249
- return de_CommandError(output, context);
1250
- }
1251
- const contents = (0, import_smithy_client.map)({
1252
- $metadata: deserializeMetadata(output)
1253
- });
1254
- await (0, import_smithy_client.collectBody)(output.body, context);
1255
- return contents;
1256
- }, "de_RejectInvitationCommand");
1257
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1258
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1259
- return de_CommandError(output, context);
1260
- }
1261
- const contents = (0, import_smithy_client.map)({
1262
- $metadata: deserializeMetadata(output)
1263
- });
1264
- await (0, import_smithy_client.collectBody)(output.body, context);
1265
- return contents;
1266
- }, "de_TagResourceCommand");
1267
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1268
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1269
- return de_CommandError(output, context);
1270
- }
1271
- const contents = (0, import_smithy_client.map)({
1272
- $metadata: deserializeMetadata(output)
1273
- });
1274
- await (0, import_smithy_client.collectBody)(output.body, context);
1275
- return contents;
1276
- }, "de_UntagResourceCommand");
1277
- var de_UpdateMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
1278
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1279
- return de_CommandError(output, context);
1280
- }
1281
- const contents = (0, import_smithy_client.map)({
1282
- $metadata: deserializeMetadata(output)
1283
- });
1284
- await (0, import_smithy_client.collectBody)(output.body, context);
1285
- return contents;
1286
- }, "de_UpdateMemberCommand");
1287
- var de_UpdateNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1288
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1289
- return de_CommandError(output, context);
1290
- }
1291
- const contents = (0, import_smithy_client.map)({
1292
- $metadata: deserializeMetadata(output)
1293
- });
1294
- await (0, import_smithy_client.collectBody)(output.body, context);
1295
- return contents;
1296
- }, "de_UpdateNodeCommand");
1297
- var de_VoteOnProposalCommand = /* @__PURE__ */ __name(async (output, context) => {
1298
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1299
- return de_CommandError(output, context);
1300
- }
1301
- const contents = (0, import_smithy_client.map)({
1302
- $metadata: deserializeMetadata(output)
1303
- });
1304
- await (0, import_smithy_client.collectBody)(output.body, context);
1305
- return contents;
1306
- }, "de_VoteOnProposalCommand");
1307
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1308
- const parsedOutput = {
1309
- ...output,
1310
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1311
- };
1312
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1313
- switch (errorCode) {
1314
- case "AccessDeniedException":
1315
- case "com.amazonaws.managedblockchain#AccessDeniedException":
1316
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1317
- case "InternalServiceErrorException":
1318
- case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1319
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1320
- case "InvalidRequestException":
1321
- case "com.amazonaws.managedblockchain#InvalidRequestException":
1322
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1323
- case "ResourceAlreadyExistsException":
1324
- case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
1325
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1326
- case "ResourceLimitExceededException":
1327
- case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
1328
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1329
- case "ThrottlingException":
1330
- case "com.amazonaws.managedblockchain#ThrottlingException":
1331
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1332
- case "TooManyTagsException":
1333
- case "com.amazonaws.managedblockchain#TooManyTagsException":
1334
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1335
- case "ResourceNotFoundException":
1336
- case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1337
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1338
- case "ResourceNotReadyException":
1339
- case "com.amazonaws.managedblockchain#ResourceNotReadyException":
1340
- throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
1341
- case "IllegalActionException":
1342
- case "com.amazonaws.managedblockchain#IllegalActionException":
1343
- throw await de_IllegalActionExceptionRes(parsedOutput, context);
1344
- default:
1345
- const parsedBody = parsedOutput.body;
1346
- return throwDefaultError({
1347
- output,
1348
- parsedBody,
1349
- errorCode
1350
- });
1351
- }
1352
- }, "de_CommandError");
1353
- var throwDefaultError = (0, import_smithy_client.withBaseException)(ManagedBlockchainServiceException);
1354
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1355
- const contents = (0, import_smithy_client.map)({});
1356
- const data = parsedOutput.body;
1357
- const doc = (0, import_smithy_client.take)(data, {
1358
- Message: import_smithy_client.expectString
1359
- });
1360
- Object.assign(contents, doc);
1361
- const exception = new AccessDeniedException({
1362
- $metadata: deserializeMetadata(parsedOutput),
1363
- ...contents
1364
- });
1365
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1366
- }, "de_AccessDeniedExceptionRes");
1367
- var de_IllegalActionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1368
- const contents = (0, import_smithy_client.map)({});
1369
- const data = parsedOutput.body;
1370
- const doc = (0, import_smithy_client.take)(data, {
1371
- Message: import_smithy_client.expectString
1372
- });
1373
- Object.assign(contents, doc);
1374
- const exception = new IllegalActionException({
1375
- $metadata: deserializeMetadata(parsedOutput),
1376
- ...contents
1377
- });
1378
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1379
- }, "de_IllegalActionExceptionRes");
1380
- var de_InternalServiceErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1381
- const contents = (0, import_smithy_client.map)({});
1382
- const data = parsedOutput.body;
1383
- const doc = (0, import_smithy_client.take)(data, {});
1384
- Object.assign(contents, doc);
1385
- const exception = new InternalServiceErrorException({
1386
- $metadata: deserializeMetadata(parsedOutput),
1387
- ...contents
1388
- });
1389
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1390
- }, "de_InternalServiceErrorExceptionRes");
1391
- var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1392
- const contents = (0, import_smithy_client.map)({});
1393
- const data = parsedOutput.body;
1394
- const doc = (0, import_smithy_client.take)(data, {
1395
- Message: import_smithy_client.expectString
1396
- });
1397
- Object.assign(contents, doc);
1398
- const exception = new InvalidRequestException({
1399
- $metadata: deserializeMetadata(parsedOutput),
1400
- ...contents
1401
- });
1402
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1403
- }, "de_InvalidRequestExceptionRes");
1404
- var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1405
- const contents = (0, import_smithy_client.map)({});
1406
- const data = parsedOutput.body;
1407
- const doc = (0, import_smithy_client.take)(data, {
1408
- Message: import_smithy_client.expectString
1409
- });
1410
- Object.assign(contents, doc);
1411
- const exception = new ResourceAlreadyExistsException({
1412
- $metadata: deserializeMetadata(parsedOutput),
1413
- ...contents
1414
- });
1415
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1416
- }, "de_ResourceAlreadyExistsExceptionRes");
1417
- var de_ResourceLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1418
- const contents = (0, import_smithy_client.map)({});
1419
- const data = parsedOutput.body;
1420
- const doc = (0, import_smithy_client.take)(data, {
1421
- Message: import_smithy_client.expectString
1422
- });
1423
- Object.assign(contents, doc);
1424
- const exception = new ResourceLimitExceededException({
1425
- $metadata: deserializeMetadata(parsedOutput),
1426
- ...contents
1427
- });
1428
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1429
- }, "de_ResourceLimitExceededExceptionRes");
1430
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1431
- const contents = (0, import_smithy_client.map)({});
1432
- const data = parsedOutput.body;
1433
- const doc = (0, import_smithy_client.take)(data, {
1434
- Message: import_smithy_client.expectString,
1435
- ResourceName: import_smithy_client.expectString
1436
- });
1437
- Object.assign(contents, doc);
1438
- const exception = new ResourceNotFoundException({
1439
- $metadata: deserializeMetadata(parsedOutput),
1440
- ...contents
1441
- });
1442
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1443
- }, "de_ResourceNotFoundExceptionRes");
1444
- var de_ResourceNotReadyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1445
- const contents = (0, import_smithy_client.map)({});
1446
- const data = parsedOutput.body;
1447
- const doc = (0, import_smithy_client.take)(data, {
1448
- Message: import_smithy_client.expectString
1449
- });
1450
- Object.assign(contents, doc);
1451
- const exception = new ResourceNotReadyException({
1452
- $metadata: deserializeMetadata(parsedOutput),
1453
- ...contents
1454
- });
1455
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1456
- }, "de_ResourceNotReadyExceptionRes");
1457
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1458
- const contents = (0, import_smithy_client.map)({});
1459
- const data = parsedOutput.body;
1460
- const doc = (0, import_smithy_client.take)(data, {});
1461
- Object.assign(contents, doc);
1462
- const exception = new ThrottlingException({
1463
- $metadata: deserializeMetadata(parsedOutput),
1464
- ...contents
1465
- });
1466
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1467
- }, "de_ThrottlingExceptionRes");
1468
- var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1469
- const contents = (0, import_smithy_client.map)({});
1470
- const data = parsedOutput.body;
1471
- const doc = (0, import_smithy_client.take)(data, {
1472
- Message: import_smithy_client.expectString,
1473
- ResourceName: import_smithy_client.expectString
1474
- });
1475
- Object.assign(contents, doc);
1476
- const exception = new TooManyTagsException({
1477
- $metadata: deserializeMetadata(parsedOutput),
1478
- ...contents
1479
- });
1480
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1481
- }, "de_TooManyTagsExceptionRes");
1482
- var de_Accessor = /* @__PURE__ */ __name((output, context) => {
1483
- return (0, import_smithy_client.take)(output, {
1484
- Arn: import_smithy_client.expectString,
1485
- BillingToken: import_smithy_client.expectString,
1486
- CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreationDate"),
1487
- Id: import_smithy_client.expectString,
1488
- NetworkType: import_smithy_client.expectString,
1489
- Status: import_smithy_client.expectString,
1490
- Tags: import_smithy_client._json,
1491
- Type: import_smithy_client.expectString
1492
- });
1493
- }, "de_Accessor");
1494
- var de_AccessorSummary = /* @__PURE__ */ __name((output, context) => {
1495
- return (0, import_smithy_client.take)(output, {
1496
- Arn: import_smithy_client.expectString,
1497
- CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreationDate"),
1498
- Id: import_smithy_client.expectString,
1499
- NetworkType: import_smithy_client.expectString,
1500
- Status: import_smithy_client.expectString,
1501
- Type: import_smithy_client.expectString
1502
- });
1503
- }, "de_AccessorSummary");
1504
- var de_AccessorSummaryList = /* @__PURE__ */ __name((output, context) => {
1505
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1506
- return de_AccessorSummary(entry, context);
1507
- });
1508
- return retVal;
1509
- }, "de_AccessorSummaryList");
1510
- var de_Invitation = /* @__PURE__ */ __name((output, context) => {
1511
- return (0, import_smithy_client.take)(output, {
1512
- Arn: import_smithy_client.expectString,
1513
- CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreationDate"),
1514
- ExpirationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "ExpirationDate"),
1515
- InvitationId: import_smithy_client.expectString,
1516
- NetworkSummary: /* @__PURE__ */ __name((_) => de_NetworkSummary(_, context), "NetworkSummary"),
1517
- Status: import_smithy_client.expectString
1518
- });
1519
- }, "de_Invitation");
1520
- var de_InvitationList = /* @__PURE__ */ __name((output, context) => {
1521
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1522
- return de_Invitation(entry, context);
1523
- });
1524
- return retVal;
1525
- }, "de_InvitationList");
1526
- var de_Member = /* @__PURE__ */ __name((output, context) => {
1527
- return (0, import_smithy_client.take)(output, {
1528
- Arn: import_smithy_client.expectString,
1529
- CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreationDate"),
1530
- Description: import_smithy_client.expectString,
1531
- FrameworkAttributes: import_smithy_client._json,
1532
- Id: import_smithy_client.expectString,
1533
- KmsKeyArn: import_smithy_client.expectString,
1534
- LogPublishingConfiguration: import_smithy_client._json,
1535
- Name: import_smithy_client.expectString,
1536
- NetworkId: import_smithy_client.expectString,
1537
- Status: import_smithy_client.expectString,
1538
- Tags: import_smithy_client._json
1539
- });
1540
- }, "de_Member");
1541
- var de_MemberSummary = /* @__PURE__ */ __name((output, context) => {
1542
- return (0, import_smithy_client.take)(output, {
1543
- Arn: import_smithy_client.expectString,
1544
- CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreationDate"),
1545
- Description: import_smithy_client.expectString,
1546
- Id: import_smithy_client.expectString,
1547
- IsOwned: import_smithy_client.expectBoolean,
1548
- Name: import_smithy_client.expectString,
1549
- Status: import_smithy_client.expectString
1550
- });
1551
- }, "de_MemberSummary");
1552
- var de_MemberSummaryList = /* @__PURE__ */ __name((output, context) => {
1553
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1554
- return de_MemberSummary(entry, context);
1555
- });
1556
- return retVal;
1557
- }, "de_MemberSummaryList");
1558
- var de_Network = /* @__PURE__ */ __name((output, context) => {
1559
- return (0, import_smithy_client.take)(output, {
1560
- Arn: import_smithy_client.expectString,
1561
- CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreationDate"),
1562
- Description: import_smithy_client.expectString,
1563
- Framework: import_smithy_client.expectString,
1564
- FrameworkAttributes: import_smithy_client._json,
1565
- FrameworkVersion: import_smithy_client.expectString,
1566
- Id: import_smithy_client.expectString,
1567
- Name: import_smithy_client.expectString,
1568
- Status: import_smithy_client.expectString,
1569
- Tags: import_smithy_client._json,
1570
- VotingPolicy: import_smithy_client._json,
1571
- VpcEndpointServiceName: import_smithy_client.expectString
1572
- });
1573
- }, "de_Network");
1574
- var de_NetworkSummary = /* @__PURE__ */ __name((output, context) => {
1575
- return (0, import_smithy_client.take)(output, {
1576
- Arn: import_smithy_client.expectString,
1577
- CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreationDate"),
1578
- Description: import_smithy_client.expectString,
1579
- Framework: import_smithy_client.expectString,
1580
- FrameworkVersion: import_smithy_client.expectString,
1581
- Id: import_smithy_client.expectString,
1582
- Name: import_smithy_client.expectString,
1583
- Status: import_smithy_client.expectString
1584
- });
1585
- }, "de_NetworkSummary");
1586
- var de_NetworkSummaryList = /* @__PURE__ */ __name((output, context) => {
1587
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1588
- return de_NetworkSummary(entry, context);
1589
- });
1590
- return retVal;
1591
- }, "de_NetworkSummaryList");
1592
- var de_Node = /* @__PURE__ */ __name((output, context) => {
1593
- return (0, import_smithy_client.take)(output, {
1594
- Arn: import_smithy_client.expectString,
1595
- AvailabilityZone: import_smithy_client.expectString,
1596
- CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreationDate"),
1597
- FrameworkAttributes: import_smithy_client._json,
1598
- Id: import_smithy_client.expectString,
1599
- InstanceType: import_smithy_client.expectString,
1600
- KmsKeyArn: import_smithy_client.expectString,
1601
- LogPublishingConfiguration: import_smithy_client._json,
1602
- MemberId: import_smithy_client.expectString,
1603
- NetworkId: import_smithy_client.expectString,
1604
- StateDB: import_smithy_client.expectString,
1605
- Status: import_smithy_client.expectString,
1606
- Tags: import_smithy_client._json
1607
- });
1608
- }, "de_Node");
1609
- var de_NodeSummary = /* @__PURE__ */ __name((output, context) => {
1610
- return (0, import_smithy_client.take)(output, {
1611
- Arn: import_smithy_client.expectString,
1612
- AvailabilityZone: import_smithy_client.expectString,
1613
- CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreationDate"),
1614
- Id: import_smithy_client.expectString,
1615
- InstanceType: import_smithy_client.expectString,
1616
- Status: import_smithy_client.expectString
1617
- });
1618
- }, "de_NodeSummary");
1619
- var de_NodeSummaryList = /* @__PURE__ */ __name((output, context) => {
1620
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1621
- return de_NodeSummary(entry, context);
1622
- });
1623
- return retVal;
1624
- }, "de_NodeSummaryList");
1625
- var de_Proposal = /* @__PURE__ */ __name((output, context) => {
1626
- return (0, import_smithy_client.take)(output, {
1627
- Actions: import_smithy_client._json,
1628
- Arn: import_smithy_client.expectString,
1629
- CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreationDate"),
1630
- Description: import_smithy_client.expectString,
1631
- ExpirationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "ExpirationDate"),
1632
- NetworkId: import_smithy_client.expectString,
1633
- NoVoteCount: import_smithy_client.expectInt32,
1634
- OutstandingVoteCount: import_smithy_client.expectInt32,
1635
- ProposalId: import_smithy_client.expectString,
1636
- ProposedByMemberId: import_smithy_client.expectString,
1637
- ProposedByMemberName: import_smithy_client.expectString,
1638
- Status: import_smithy_client.expectString,
1639
- Tags: import_smithy_client._json,
1640
- YesVoteCount: import_smithy_client.expectInt32
1641
- });
1642
- }, "de_Proposal");
1643
- var de_ProposalSummary = /* @__PURE__ */ __name((output, context) => {
1644
- return (0, import_smithy_client.take)(output, {
1645
- Arn: import_smithy_client.expectString,
1646
- CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreationDate"),
1647
- Description: import_smithy_client.expectString,
1648
- ExpirationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "ExpirationDate"),
1649
- ProposalId: import_smithy_client.expectString,
1650
- ProposedByMemberId: import_smithy_client.expectString,
1651
- ProposedByMemberName: import_smithy_client.expectString,
1652
- Status: import_smithy_client.expectString
1653
- });
1654
- }, "de_ProposalSummary");
1655
- var de_ProposalSummaryList = /* @__PURE__ */ __name((output, context) => {
1656
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1657
- return de_ProposalSummary(entry, context);
1658
- });
1659
- return retVal;
1660
- }, "de_ProposalSummaryList");
1661
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1662
- httpStatusCode: output.statusCode,
1663
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1664
- extendedRequestId: output.headers["x-amz-id-2"],
1665
- cfId: output.headers["x-amz-cf-id"]
1666
- }), "deserializeMetadata");
1667
- var _F = "Framework";
1668
- var _IO = "IsOwned";
1669
- var _MI = "MemberId";
1670
- var _MR = "MaxResults";
1671
- var _N = "Name";
1672
- var _NT = "NextToken";
1673
- var _NTe = "NetworkType";
1674
- var _S = "Status";
1675
- var _TK = "TagKeys";
1676
- var _f = "framework";
1677
- var _iO = "isOwned";
1678
- var _mI = "memberId";
1679
- var _mR = "maxResults";
1680
- var _n = "name";
1681
- var _nT = "nextToken";
1682
- var _nTe = "networkType";
1683
- var _s = "status";
1684
- var _tK = "tagKeys";
1685
-
1686
- // src/commands/CreateAccessorCommand.ts
1687
- var CreateAccessorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1688
- return [
1689
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1690
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1691
- ];
1692
- }).s("TaigaWebService", "CreateAccessor", {}).n("ManagedBlockchainClient", "CreateAccessorCommand").f(void 0, void 0).ser(se_CreateAccessorCommand).de(de_CreateAccessorCommand).build() {
1693
- static {
1694
- __name(this, "CreateAccessorCommand");
1695
- }
147
+ const AccessorType = {
148
+ BILLING_TOKEN: "BILLING_TOKEN",
1696
149
  };
1697
-
1698
- // src/commands/CreateMemberCommand.ts
1699
-
1700
-
1701
-
1702
- var CreateMemberCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1703
- return [
1704
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1705
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1706
- ];
1707
- }).s("TaigaWebService", "CreateMember", {}).n("ManagedBlockchainClient", "CreateMemberCommand").f(CreateMemberInputFilterSensitiveLog, void 0).ser(se_CreateMemberCommand).de(de_CreateMemberCommand).build() {
1708
- static {
1709
- __name(this, "CreateMemberCommand");
1710
- }
150
+ const ThresholdComparator = {
151
+ GREATER_THAN: "GREATER_THAN",
152
+ GREATER_THAN_OR_EQUAL_TO: "GREATER_THAN_OR_EQUAL_TO",
1711
153
  };
1712
-
1713
- // src/commands/CreateNetworkCommand.ts
1714
-
1715
-
1716
-
1717
- var CreateNetworkCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1718
- return [
1719
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1720
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1721
- ];
1722
- }).s("TaigaWebService", "CreateNetwork", {}).n("ManagedBlockchainClient", "CreateNetworkCommand").f(CreateNetworkInputFilterSensitiveLog, void 0).ser(se_CreateNetworkCommand).de(de_CreateNetworkCommand).build() {
1723
- static {
1724
- __name(this, "CreateNetworkCommand");
1725
- }
154
+ class InternalServiceErrorException extends ManagedBlockchainServiceException {
155
+ name = "InternalServiceErrorException";
156
+ $fault = "server";
157
+ constructor(opts) {
158
+ super({
159
+ name: "InternalServiceErrorException",
160
+ $fault: "server",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
164
+ }
165
+ }
166
+ class InvalidRequestException extends ManagedBlockchainServiceException {
167
+ name = "InvalidRequestException";
168
+ $fault = "client";
169
+ Message;
170
+ constructor(opts) {
171
+ super({
172
+ name: "InvalidRequestException",
173
+ $fault: "client",
174
+ ...opts,
175
+ });
176
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
177
+ this.Message = opts.Message;
178
+ }
179
+ }
180
+ class ResourceAlreadyExistsException extends ManagedBlockchainServiceException {
181
+ name = "ResourceAlreadyExistsException";
182
+ $fault = "client";
183
+ Message;
184
+ constructor(opts) {
185
+ super({
186
+ name: "ResourceAlreadyExistsException",
187
+ $fault: "client",
188
+ ...opts,
189
+ });
190
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
191
+ this.Message = opts.Message;
192
+ }
193
+ }
194
+ class ResourceLimitExceededException extends ManagedBlockchainServiceException {
195
+ name = "ResourceLimitExceededException";
196
+ $fault = "client";
197
+ Message;
198
+ constructor(opts) {
199
+ super({
200
+ name: "ResourceLimitExceededException",
201
+ $fault: "client",
202
+ ...opts,
203
+ });
204
+ Object.setPrototypeOf(this, ResourceLimitExceededException.prototype);
205
+ this.Message = opts.Message;
206
+ }
207
+ }
208
+ class ThrottlingException extends ManagedBlockchainServiceException {
209
+ name = "ThrottlingException";
210
+ $fault = "client";
211
+ constructor(opts) {
212
+ super({
213
+ name: "ThrottlingException",
214
+ $fault: "client",
215
+ ...opts,
216
+ });
217
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
218
+ }
219
+ }
220
+ class TooManyTagsException extends ManagedBlockchainServiceException {
221
+ name = "TooManyTagsException";
222
+ $fault = "client";
223
+ Message;
224
+ ResourceName;
225
+ constructor(opts) {
226
+ super({
227
+ name: "TooManyTagsException",
228
+ $fault: "client",
229
+ ...opts,
230
+ });
231
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
232
+ this.Message = opts.Message;
233
+ this.ResourceName = opts.ResourceName;
234
+ }
235
+ }
236
+ class ResourceNotFoundException extends ManagedBlockchainServiceException {
237
+ name = "ResourceNotFoundException";
238
+ $fault = "client";
239
+ Message;
240
+ ResourceName;
241
+ constructor(opts) {
242
+ super({
243
+ name: "ResourceNotFoundException",
244
+ $fault: "client",
245
+ ...opts,
246
+ });
247
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
248
+ this.Message = opts.Message;
249
+ this.ResourceName = opts.ResourceName;
250
+ }
251
+ }
252
+ class ResourceNotReadyException extends ManagedBlockchainServiceException {
253
+ name = "ResourceNotReadyException";
254
+ $fault = "client";
255
+ Message;
256
+ constructor(opts) {
257
+ super({
258
+ name: "ResourceNotReadyException",
259
+ $fault: "client",
260
+ ...opts,
261
+ });
262
+ Object.setPrototypeOf(this, ResourceNotReadyException.prototype);
263
+ this.Message = opts.Message;
264
+ }
265
+ }
266
+ const Framework = {
267
+ ETHEREUM: "ETHEREUM",
268
+ HYPERLEDGER_FABRIC: "HYPERLEDGER_FABRIC",
1726
269
  };
1727
-
1728
- // src/commands/CreateNodeCommand.ts
1729
-
1730
-
1731
-
1732
- var CreateNodeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1733
- return [
1734
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1735
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1736
- ];
1737
- }).s("TaigaWebService", "CreateNode", {}).n("ManagedBlockchainClient", "CreateNodeCommand").f(void 0, void 0).ser(se_CreateNodeCommand).de(de_CreateNodeCommand).build() {
1738
- static {
1739
- __name(this, "CreateNodeCommand");
1740
- }
270
+ const Edition = {
271
+ STANDARD: "STANDARD",
272
+ STARTER: "STARTER",
1741
273
  };
1742
-
1743
- // src/commands/CreateProposalCommand.ts
1744
-
1745
-
1746
-
1747
- var CreateProposalCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1748
- return [
1749
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1750
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1751
- ];
1752
- }).s("TaigaWebService", "CreateProposal", {}).n("ManagedBlockchainClient", "CreateProposalCommand").f(void 0, void 0).ser(se_CreateProposalCommand).de(de_CreateProposalCommand).build() {
1753
- static {
1754
- __name(this, "CreateProposalCommand");
1755
- }
274
+ const StateDBType = {
275
+ CouchDB: "CouchDB",
276
+ LevelDB: "LevelDB",
1756
277
  };
1757
-
1758
- // src/commands/DeleteAccessorCommand.ts
1759
-
1760
-
1761
-
1762
- var DeleteAccessorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1763
- return [
1764
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1765
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1766
- ];
1767
- }).s("TaigaWebService", "DeleteAccessor", {}).n("ManagedBlockchainClient", "DeleteAccessorCommand").f(void 0, void 0).ser(se_DeleteAccessorCommand).de(de_DeleteAccessorCommand).build() {
1768
- static {
1769
- __name(this, "DeleteAccessorCommand");
1770
- }
278
+ const MemberStatus = {
279
+ AVAILABLE: "AVAILABLE",
280
+ CREATE_FAILED: "CREATE_FAILED",
281
+ CREATING: "CREATING",
282
+ DELETED: "DELETED",
283
+ DELETING: "DELETING",
284
+ INACCESSIBLE_ENCRYPTION_KEY: "INACCESSIBLE_ENCRYPTION_KEY",
285
+ UPDATING: "UPDATING",
1771
286
  };
1772
-
1773
- // src/commands/DeleteMemberCommand.ts
1774
-
1775
-
1776
-
1777
- var DeleteMemberCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1778
- return [
1779
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1780
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1781
- ];
1782
- }).s("TaigaWebService", "DeleteMember", {}).n("ManagedBlockchainClient", "DeleteMemberCommand").f(void 0, void 0).ser(se_DeleteMemberCommand).de(de_DeleteMemberCommand).build() {
1783
- static {
1784
- __name(this, "DeleteMemberCommand");
1785
- }
287
+ const NetworkStatus = {
288
+ AVAILABLE: "AVAILABLE",
289
+ CREATE_FAILED: "CREATE_FAILED",
290
+ CREATING: "CREATING",
291
+ DELETED: "DELETED",
292
+ DELETING: "DELETING",
1786
293
  };
1787
-
1788
- // src/commands/DeleteNodeCommand.ts
1789
-
1790
-
1791
-
1792
- var DeleteNodeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1793
- return [
1794
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1795
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1796
- ];
1797
- }).s("TaigaWebService", "DeleteNode", {}).n("ManagedBlockchainClient", "DeleteNodeCommand").f(void 0, void 0).ser(se_DeleteNodeCommand).de(de_DeleteNodeCommand).build() {
1798
- static {
1799
- __name(this, "DeleteNodeCommand");
1800
- }
294
+ const NodeStatus = {
295
+ AVAILABLE: "AVAILABLE",
296
+ CREATE_FAILED: "CREATE_FAILED",
297
+ CREATING: "CREATING",
298
+ DELETED: "DELETED",
299
+ DELETING: "DELETING",
300
+ FAILED: "FAILED",
301
+ INACCESSIBLE_ENCRYPTION_KEY: "INACCESSIBLE_ENCRYPTION_KEY",
302
+ UNHEALTHY: "UNHEALTHY",
303
+ UPDATING: "UPDATING",
1801
304
  };
1802
-
1803
- // src/commands/GetAccessorCommand.ts
1804
-
1805
-
1806
-
1807
- var GetAccessorCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1808
- return [
1809
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1810
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1811
- ];
1812
- }).s("TaigaWebService", "GetAccessor", {}).n("ManagedBlockchainClient", "GetAccessorCommand").f(void 0, void 0).ser(se_GetAccessorCommand).de(de_GetAccessorCommand).build() {
1813
- static {
1814
- __name(this, "GetAccessorCommand");
1815
- }
305
+ const ProposalStatus = {
306
+ ACTION_FAILED: "ACTION_FAILED",
307
+ APPROVED: "APPROVED",
308
+ EXPIRED: "EXPIRED",
309
+ IN_PROGRESS: "IN_PROGRESS",
310
+ REJECTED: "REJECTED",
1816
311
  };
1817
-
1818
- // src/commands/GetMemberCommand.ts
1819
-
1820
-
1821
-
1822
- var GetMemberCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1823
- return [
1824
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1825
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1826
- ];
1827
- }).s("TaigaWebService", "GetMember", {}).n("ManagedBlockchainClient", "GetMemberCommand").f(void 0, void 0).ser(se_GetMemberCommand).de(de_GetMemberCommand).build() {
1828
- static {
1829
- __name(this, "GetMemberCommand");
1830
- }
312
+ class IllegalActionException extends ManagedBlockchainServiceException {
313
+ name = "IllegalActionException";
314
+ $fault = "client";
315
+ Message;
316
+ constructor(opts) {
317
+ super({
318
+ name: "IllegalActionException",
319
+ $fault: "client",
320
+ ...opts,
321
+ });
322
+ Object.setPrototypeOf(this, IllegalActionException.prototype);
323
+ this.Message = opts.Message;
324
+ }
325
+ }
326
+ const InvitationStatus = {
327
+ ACCEPTED: "ACCEPTED",
328
+ ACCEPTING: "ACCEPTING",
329
+ EXPIRED: "EXPIRED",
330
+ PENDING: "PENDING",
331
+ REJECTED: "REJECTED",
1831
332
  };
1832
-
1833
- // src/commands/GetNetworkCommand.ts
1834
-
1835
-
1836
-
1837
- var GetNetworkCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1838
- return [
1839
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1840
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1841
- ];
1842
- }).s("TaigaWebService", "GetNetwork", {}).n("ManagedBlockchainClient", "GetNetworkCommand").f(void 0, void 0).ser(se_GetNetworkCommand).de(de_GetNetworkCommand).build() {
1843
- static {
1844
- __name(this, "GetNetworkCommand");
1845
- }
333
+ const VoteValue = {
334
+ NO: "NO",
335
+ YES: "YES",
1846
336
  };
337
+ const MemberFabricConfigurationFilterSensitiveLog = (obj) => ({
338
+ ...obj,
339
+ ...(obj.AdminPassword && { AdminPassword: smithyClient.SENSITIVE_STRING }),
340
+ });
341
+ const MemberFrameworkConfigurationFilterSensitiveLog = (obj) => ({
342
+ ...obj,
343
+ ...(obj.Fabric && { Fabric: MemberFabricConfigurationFilterSensitiveLog(obj.Fabric) }),
344
+ });
345
+ const MemberConfigurationFilterSensitiveLog = (obj) => ({
346
+ ...obj,
347
+ ...(obj.FrameworkConfiguration && {
348
+ FrameworkConfiguration: MemberFrameworkConfigurationFilterSensitiveLog(obj.FrameworkConfiguration),
349
+ }),
350
+ });
351
+ const CreateMemberInputFilterSensitiveLog = (obj) => ({
352
+ ...obj,
353
+ ...(obj.MemberConfiguration && {
354
+ MemberConfiguration: MemberConfigurationFilterSensitiveLog(obj.MemberConfiguration),
355
+ }),
356
+ });
357
+ const CreateNetworkInputFilterSensitiveLog = (obj) => ({
358
+ ...obj,
359
+ ...(obj.MemberConfiguration && {
360
+ MemberConfiguration: MemberConfigurationFilterSensitiveLog(obj.MemberConfiguration),
361
+ }),
362
+ });
1847
363
 
1848
- // src/commands/GetNodeCommand.ts
1849
-
1850
-
1851
-
1852
- var GetNodeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1853
- return [
1854
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1855
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1856
- ];
1857
- }).s("TaigaWebService", "GetNode", {}).n("ManagedBlockchainClient", "GetNodeCommand").f(void 0, void 0).ser(se_GetNodeCommand).de(de_GetNodeCommand).build() {
1858
- static {
1859
- __name(this, "GetNodeCommand");
1860
- }
364
+ const se_CreateAccessorCommand = async (input, context) => {
365
+ const b = core.requestBuilder(input, context);
366
+ const headers = {
367
+ "content-type": "application/json",
368
+ };
369
+ b.bp("/accessors");
370
+ let body;
371
+ body = JSON.stringify(smithyClient.take(input, {
372
+ AccessorType: [],
373
+ ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
374
+ NetworkType: [],
375
+ Tags: (_) => smithyClient._json(_),
376
+ }));
377
+ b.m("POST").h(headers).b(body);
378
+ return b.build();
1861
379
  };
1862
-
1863
- // src/commands/GetProposalCommand.ts
1864
-
1865
-
1866
-
1867
- var GetProposalCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1868
- return [
1869
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1870
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1871
- ];
1872
- }).s("TaigaWebService", "GetProposal", {}).n("ManagedBlockchainClient", "GetProposalCommand").f(void 0, void 0).ser(se_GetProposalCommand).de(de_GetProposalCommand).build() {
1873
- static {
1874
- __name(this, "GetProposalCommand");
1875
- }
380
+ const se_CreateMemberCommand = async (input, context) => {
381
+ const b = core.requestBuilder(input, context);
382
+ const headers = {
383
+ "content-type": "application/json",
384
+ };
385
+ b.bp("/networks/{NetworkId}/members");
386
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
387
+ let body;
388
+ body = JSON.stringify(smithyClient.take(input, {
389
+ ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
390
+ InvitationId: [],
391
+ MemberConfiguration: (_) => smithyClient._json(_),
392
+ }));
393
+ b.m("POST").h(headers).b(body);
394
+ return b.build();
1876
395
  };
1877
-
1878
- // src/commands/ListAccessorsCommand.ts
1879
-
1880
-
1881
-
1882
- var ListAccessorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1883
- return [
1884
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1885
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1886
- ];
1887
- }).s("TaigaWebService", "ListAccessors", {}).n("ManagedBlockchainClient", "ListAccessorsCommand").f(void 0, void 0).ser(se_ListAccessorsCommand).de(de_ListAccessorsCommand).build() {
1888
- static {
1889
- __name(this, "ListAccessorsCommand");
1890
- }
396
+ const se_CreateNetworkCommand = async (input, context) => {
397
+ const b = core.requestBuilder(input, context);
398
+ const headers = {
399
+ "content-type": "application/json",
400
+ };
401
+ b.bp("/networks");
402
+ let body;
403
+ body = JSON.stringify(smithyClient.take(input, {
404
+ ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
405
+ Description: [],
406
+ Framework: [],
407
+ FrameworkConfiguration: (_) => smithyClient._json(_),
408
+ FrameworkVersion: [],
409
+ MemberConfiguration: (_) => smithyClient._json(_),
410
+ Name: [],
411
+ Tags: (_) => smithyClient._json(_),
412
+ VotingPolicy: (_) => smithyClient._json(_),
413
+ }));
414
+ b.m("POST").h(headers).b(body);
415
+ return b.build();
1891
416
  };
1892
-
1893
- // src/commands/ListInvitationsCommand.ts
1894
-
1895
-
1896
-
1897
- var ListInvitationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1898
- return [
1899
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1900
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1901
- ];
1902
- }).s("TaigaWebService", "ListInvitations", {}).n("ManagedBlockchainClient", "ListInvitationsCommand").f(void 0, void 0).ser(se_ListInvitationsCommand).de(de_ListInvitationsCommand).build() {
1903
- static {
1904
- __name(this, "ListInvitationsCommand");
1905
- }
417
+ const se_CreateNodeCommand = async (input, context) => {
418
+ const b = core.requestBuilder(input, context);
419
+ const headers = {
420
+ "content-type": "application/json",
421
+ };
422
+ b.bp("/networks/{NetworkId}/nodes");
423
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
424
+ let body;
425
+ body = JSON.stringify(smithyClient.take(input, {
426
+ ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
427
+ MemberId: [],
428
+ NodeConfiguration: (_) => smithyClient._json(_),
429
+ Tags: (_) => smithyClient._json(_),
430
+ }));
431
+ b.m("POST").h(headers).b(body);
432
+ return b.build();
1906
433
  };
1907
-
1908
- // src/commands/ListMembersCommand.ts
1909
-
1910
-
1911
-
1912
- var ListMembersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1913
- return [
1914
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1915
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1916
- ];
1917
- }).s("TaigaWebService", "ListMembers", {}).n("ManagedBlockchainClient", "ListMembersCommand").f(void 0, void 0).ser(se_ListMembersCommand).de(de_ListMembersCommand).build() {
1918
- static {
1919
- __name(this, "ListMembersCommand");
1920
- }
434
+ const se_CreateProposalCommand = async (input, context) => {
435
+ const b = core.requestBuilder(input, context);
436
+ const headers = {
437
+ "content-type": "application/json",
438
+ };
439
+ b.bp("/networks/{NetworkId}/proposals");
440
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
441
+ let body;
442
+ body = JSON.stringify(smithyClient.take(input, {
443
+ Actions: (_) => smithyClient._json(_),
444
+ ClientRequestToken: [true, (_) => _ ?? uuid.v4()],
445
+ Description: [],
446
+ MemberId: [],
447
+ Tags: (_) => smithyClient._json(_),
448
+ }));
449
+ b.m("POST").h(headers).b(body);
450
+ return b.build();
1921
451
  };
1922
-
1923
- // src/commands/ListNetworksCommand.ts
1924
-
1925
-
1926
-
1927
- var ListNetworksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1928
- return [
1929
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1930
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1931
- ];
1932
- }).s("TaigaWebService", "ListNetworks", {}).n("ManagedBlockchainClient", "ListNetworksCommand").f(void 0, void 0).ser(se_ListNetworksCommand).de(de_ListNetworksCommand).build() {
1933
- static {
1934
- __name(this, "ListNetworksCommand");
1935
- }
452
+ const se_DeleteAccessorCommand = async (input, context) => {
453
+ const b = core.requestBuilder(input, context);
454
+ const headers = {};
455
+ b.bp("/accessors/{AccessorId}");
456
+ b.p("AccessorId", () => input.AccessorId, "{AccessorId}", false);
457
+ let body;
458
+ b.m("DELETE").h(headers).b(body);
459
+ return b.build();
1936
460
  };
1937
-
1938
- // src/commands/ListNodesCommand.ts
1939
-
1940
-
1941
-
1942
- var ListNodesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1943
- return [
1944
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1945
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1946
- ];
1947
- }).s("TaigaWebService", "ListNodes", {}).n("ManagedBlockchainClient", "ListNodesCommand").f(void 0, void 0).ser(se_ListNodesCommand).de(de_ListNodesCommand).build() {
1948
- static {
1949
- __name(this, "ListNodesCommand");
1950
- }
461
+ const se_DeleteMemberCommand = async (input, context) => {
462
+ const b = core.requestBuilder(input, context);
463
+ const headers = {};
464
+ b.bp("/networks/{NetworkId}/members/{MemberId}");
465
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
466
+ b.p("MemberId", () => input.MemberId, "{MemberId}", false);
467
+ let body;
468
+ b.m("DELETE").h(headers).b(body);
469
+ return b.build();
1951
470
  };
1952
-
1953
- // src/commands/ListProposalsCommand.ts
1954
-
1955
-
1956
-
1957
- var ListProposalsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1958
- return [
1959
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1960
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1961
- ];
1962
- }).s("TaigaWebService", "ListProposals", {}).n("ManagedBlockchainClient", "ListProposalsCommand").f(void 0, void 0).ser(se_ListProposalsCommand).de(de_ListProposalsCommand).build() {
1963
- static {
1964
- __name(this, "ListProposalsCommand");
1965
- }
471
+ const se_DeleteNodeCommand = async (input, context) => {
472
+ const b = core.requestBuilder(input, context);
473
+ const headers = {};
474
+ b.bp("/networks/{NetworkId}/nodes/{NodeId}");
475
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
476
+ b.p("NodeId", () => input.NodeId, "{NodeId}", false);
477
+ const query = smithyClient.map({
478
+ [_mI]: [, input[_MI]],
479
+ });
480
+ let body;
481
+ b.m("DELETE").h(headers).q(query).b(body);
482
+ return b.build();
1966
483
  };
1967
-
1968
- // src/commands/ListProposalVotesCommand.ts
1969
-
1970
-
1971
-
1972
- var ListProposalVotesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1973
- return [
1974
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1975
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1976
- ];
1977
- }).s("TaigaWebService", "ListProposalVotes", {}).n("ManagedBlockchainClient", "ListProposalVotesCommand").f(void 0, void 0).ser(se_ListProposalVotesCommand).de(de_ListProposalVotesCommand).build() {
1978
- static {
1979
- __name(this, "ListProposalVotesCommand");
1980
- }
484
+ const se_GetAccessorCommand = async (input, context) => {
485
+ const b = core.requestBuilder(input, context);
486
+ const headers = {};
487
+ b.bp("/accessors/{AccessorId}");
488
+ b.p("AccessorId", () => input.AccessorId, "{AccessorId}", false);
489
+ let body;
490
+ b.m("GET").h(headers).b(body);
491
+ return b.build();
1981
492
  };
1982
-
1983
- // src/commands/ListTagsForResourceCommand.ts
1984
-
1985
-
1986
-
1987
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1988
- return [
1989
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1990
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1991
- ];
1992
- }).s("TaigaWebService", "ListTagsForResource", {}).n("ManagedBlockchainClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1993
- static {
1994
- __name(this, "ListTagsForResourceCommand");
1995
- }
493
+ const se_GetMemberCommand = async (input, context) => {
494
+ const b = core.requestBuilder(input, context);
495
+ const headers = {};
496
+ b.bp("/networks/{NetworkId}/members/{MemberId}");
497
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
498
+ b.p("MemberId", () => input.MemberId, "{MemberId}", false);
499
+ let body;
500
+ b.m("GET").h(headers).b(body);
501
+ return b.build();
1996
502
  };
1997
-
1998
- // src/commands/RejectInvitationCommand.ts
1999
-
2000
-
2001
-
2002
- var RejectInvitationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2003
- return [
2004
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2005
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2006
- ];
2007
- }).s("TaigaWebService", "RejectInvitation", {}).n("ManagedBlockchainClient", "RejectInvitationCommand").f(void 0, void 0).ser(se_RejectInvitationCommand).de(de_RejectInvitationCommand).build() {
2008
- static {
2009
- __name(this, "RejectInvitationCommand");
2010
- }
503
+ const se_GetNetworkCommand = async (input, context) => {
504
+ const b = core.requestBuilder(input, context);
505
+ const headers = {};
506
+ b.bp("/networks/{NetworkId}");
507
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
508
+ let body;
509
+ b.m("GET").h(headers).b(body);
510
+ return b.build();
2011
511
  };
2012
-
2013
- // src/commands/TagResourceCommand.ts
2014
-
2015
-
2016
-
2017
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2018
- return [
2019
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2020
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2021
- ];
2022
- }).s("TaigaWebService", "TagResource", {}).n("ManagedBlockchainClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2023
- static {
2024
- __name(this, "TagResourceCommand");
2025
- }
512
+ const se_GetNodeCommand = async (input, context) => {
513
+ const b = core.requestBuilder(input, context);
514
+ const headers = {};
515
+ b.bp("/networks/{NetworkId}/nodes/{NodeId}");
516
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
517
+ b.p("NodeId", () => input.NodeId, "{NodeId}", false);
518
+ const query = smithyClient.map({
519
+ [_mI]: [, input[_MI]],
520
+ });
521
+ let body;
522
+ b.m("GET").h(headers).q(query).b(body);
523
+ return b.build();
2026
524
  };
2027
-
2028
- // src/commands/UntagResourceCommand.ts
2029
-
2030
-
2031
-
2032
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2033
- return [
2034
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2035
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2036
- ];
2037
- }).s("TaigaWebService", "UntagResource", {}).n("ManagedBlockchainClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2038
- static {
2039
- __name(this, "UntagResourceCommand");
2040
- }
525
+ const se_GetProposalCommand = async (input, context) => {
526
+ const b = core.requestBuilder(input, context);
527
+ const headers = {};
528
+ b.bp("/networks/{NetworkId}/proposals/{ProposalId}");
529
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
530
+ b.p("ProposalId", () => input.ProposalId, "{ProposalId}", false);
531
+ let body;
532
+ b.m("GET").h(headers).b(body);
533
+ return b.build();
2041
534
  };
2042
-
2043
- // src/commands/UpdateMemberCommand.ts
2044
-
2045
-
2046
-
2047
- var UpdateMemberCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2048
- return [
2049
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2050
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2051
- ];
2052
- }).s("TaigaWebService", "UpdateMember", {}).n("ManagedBlockchainClient", "UpdateMemberCommand").f(void 0, void 0).ser(se_UpdateMemberCommand).de(de_UpdateMemberCommand).build() {
2053
- static {
2054
- __name(this, "UpdateMemberCommand");
2055
- }
535
+ const se_ListAccessorsCommand = async (input, context) => {
536
+ const b = core.requestBuilder(input, context);
537
+ const headers = {};
538
+ b.bp("/accessors");
539
+ const query = smithyClient.map({
540
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
541
+ [_nT]: [, input[_NT]],
542
+ [_nTe]: [, input[_NTe]],
543
+ });
544
+ let body;
545
+ b.m("GET").h(headers).q(query).b(body);
546
+ return b.build();
2056
547
  };
2057
-
2058
- // src/commands/UpdateNodeCommand.ts
2059
-
2060
-
2061
-
2062
- var UpdateNodeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2063
- return [
2064
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2065
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2066
- ];
2067
- }).s("TaigaWebService", "UpdateNode", {}).n("ManagedBlockchainClient", "UpdateNodeCommand").f(void 0, void 0).ser(se_UpdateNodeCommand).de(de_UpdateNodeCommand).build() {
2068
- static {
2069
- __name(this, "UpdateNodeCommand");
2070
- }
548
+ const se_ListInvitationsCommand = async (input, context) => {
549
+ const b = core.requestBuilder(input, context);
550
+ const headers = {};
551
+ b.bp("/invitations");
552
+ const query = smithyClient.map({
553
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
554
+ [_nT]: [, input[_NT]],
555
+ });
556
+ let body;
557
+ b.m("GET").h(headers).q(query).b(body);
558
+ return b.build();
2071
559
  };
2072
-
2073
- // src/commands/VoteOnProposalCommand.ts
2074
-
2075
-
2076
-
2077
- var VoteOnProposalCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2078
- return [
2079
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2080
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2081
- ];
2082
- }).s("TaigaWebService", "VoteOnProposal", {}).n("ManagedBlockchainClient", "VoteOnProposalCommand").f(void 0, void 0).ser(se_VoteOnProposalCommand).de(de_VoteOnProposalCommand).build() {
2083
- static {
2084
- __name(this, "VoteOnProposalCommand");
2085
- }
560
+ const se_ListMembersCommand = async (input, context) => {
561
+ const b = core.requestBuilder(input, context);
562
+ const headers = {};
563
+ b.bp("/networks/{NetworkId}/members");
564
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
565
+ const query = smithyClient.map({
566
+ [_n]: [, input[_N]],
567
+ [_s]: [, input[_S]],
568
+ [_iO]: [() => input.IsOwned !== void 0, () => input[_IO].toString()],
569
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
570
+ [_nT]: [, input[_NT]],
571
+ });
572
+ let body;
573
+ b.m("GET").h(headers).q(query).b(body);
574
+ return b.build();
2086
575
  };
576
+ const se_ListNetworksCommand = async (input, context) => {
577
+ const b = core.requestBuilder(input, context);
578
+ const headers = {};
579
+ b.bp("/networks");
580
+ const query = smithyClient.map({
581
+ [_n]: [, input[_N]],
582
+ [_f]: [, input[_F]],
583
+ [_s]: [, input[_S]],
584
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
585
+ [_nT]: [, input[_NT]],
586
+ });
587
+ let body;
588
+ b.m("GET").h(headers).q(query).b(body);
589
+ return b.build();
590
+ };
591
+ const se_ListNodesCommand = async (input, context) => {
592
+ const b = core.requestBuilder(input, context);
593
+ const headers = {};
594
+ b.bp("/networks/{NetworkId}/nodes");
595
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
596
+ const query = smithyClient.map({
597
+ [_mI]: [, input[_MI]],
598
+ [_s]: [, input[_S]],
599
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
600
+ [_nT]: [, input[_NT]],
601
+ });
602
+ let body;
603
+ b.m("GET").h(headers).q(query).b(body);
604
+ return b.build();
605
+ };
606
+ const se_ListProposalsCommand = async (input, context) => {
607
+ const b = core.requestBuilder(input, context);
608
+ const headers = {};
609
+ b.bp("/networks/{NetworkId}/proposals");
610
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
611
+ const query = smithyClient.map({
612
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
613
+ [_nT]: [, input[_NT]],
614
+ });
615
+ let body;
616
+ b.m("GET").h(headers).q(query).b(body);
617
+ return b.build();
618
+ };
619
+ const se_ListProposalVotesCommand = async (input, context) => {
620
+ const b = core.requestBuilder(input, context);
621
+ const headers = {};
622
+ b.bp("/networks/{NetworkId}/proposals/{ProposalId}/votes");
623
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
624
+ b.p("ProposalId", () => input.ProposalId, "{ProposalId}", false);
625
+ const query = smithyClient.map({
626
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
627
+ [_nT]: [, input[_NT]],
628
+ });
629
+ let body;
630
+ b.m("GET").h(headers).q(query).b(body);
631
+ return b.build();
632
+ };
633
+ const se_ListTagsForResourceCommand = async (input, context) => {
634
+ const b = core.requestBuilder(input, context);
635
+ const headers = {};
636
+ b.bp("/tags/{ResourceArn}");
637
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
638
+ let body;
639
+ b.m("GET").h(headers).b(body);
640
+ return b.build();
641
+ };
642
+ const se_RejectInvitationCommand = async (input, context) => {
643
+ const b = core.requestBuilder(input, context);
644
+ const headers = {};
645
+ b.bp("/invitations/{InvitationId}");
646
+ b.p("InvitationId", () => input.InvitationId, "{InvitationId}", false);
647
+ let body;
648
+ b.m("DELETE").h(headers).b(body);
649
+ return b.build();
650
+ };
651
+ const se_TagResourceCommand = async (input, context) => {
652
+ const b = core.requestBuilder(input, context);
653
+ const headers = {
654
+ "content-type": "application/json",
655
+ };
656
+ b.bp("/tags/{ResourceArn}");
657
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
658
+ let body;
659
+ body = JSON.stringify(smithyClient.take(input, {
660
+ Tags: (_) => smithyClient._json(_),
661
+ }));
662
+ b.m("POST").h(headers).b(body);
663
+ return b.build();
664
+ };
665
+ const se_UntagResourceCommand = async (input, context) => {
666
+ const b = core.requestBuilder(input, context);
667
+ const headers = {};
668
+ b.bp("/tags/{ResourceArn}");
669
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
670
+ const query = smithyClient.map({
671
+ [_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
672
+ });
673
+ let body;
674
+ b.m("DELETE").h(headers).q(query).b(body);
675
+ return b.build();
676
+ };
677
+ const se_UpdateMemberCommand = async (input, context) => {
678
+ const b = core.requestBuilder(input, context);
679
+ const headers = {
680
+ "content-type": "application/json",
681
+ };
682
+ b.bp("/networks/{NetworkId}/members/{MemberId}");
683
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
684
+ b.p("MemberId", () => input.MemberId, "{MemberId}", false);
685
+ let body;
686
+ body = JSON.stringify(smithyClient.take(input, {
687
+ LogPublishingConfiguration: (_) => smithyClient._json(_),
688
+ }));
689
+ b.m("PATCH").h(headers).b(body);
690
+ return b.build();
691
+ };
692
+ const se_UpdateNodeCommand = async (input, context) => {
693
+ const b = core.requestBuilder(input, context);
694
+ const headers = {
695
+ "content-type": "application/json",
696
+ };
697
+ b.bp("/networks/{NetworkId}/nodes/{NodeId}");
698
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
699
+ b.p("NodeId", () => input.NodeId, "{NodeId}", false);
700
+ let body;
701
+ body = JSON.stringify(smithyClient.take(input, {
702
+ LogPublishingConfiguration: (_) => smithyClient._json(_),
703
+ MemberId: [],
704
+ }));
705
+ b.m("PATCH").h(headers).b(body);
706
+ return b.build();
707
+ };
708
+ const se_VoteOnProposalCommand = async (input, context) => {
709
+ const b = core.requestBuilder(input, context);
710
+ const headers = {
711
+ "content-type": "application/json",
712
+ };
713
+ b.bp("/networks/{NetworkId}/proposals/{ProposalId}/votes");
714
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
715
+ b.p("ProposalId", () => input.ProposalId, "{ProposalId}", false);
716
+ let body;
717
+ body = JSON.stringify(smithyClient.take(input, {
718
+ Vote: [],
719
+ VoterMemberId: [],
720
+ }));
721
+ b.m("POST").h(headers).b(body);
722
+ return b.build();
723
+ };
724
+ const de_CreateAccessorCommand = async (output, context) => {
725
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
726
+ return de_CommandError(output, context);
727
+ }
728
+ const contents = smithyClient.map({
729
+ $metadata: deserializeMetadata(output),
730
+ });
731
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
732
+ const doc = smithyClient.take(data, {
733
+ AccessorId: smithyClient.expectString,
734
+ BillingToken: smithyClient.expectString,
735
+ NetworkType: smithyClient.expectString,
736
+ });
737
+ Object.assign(contents, doc);
738
+ return contents;
739
+ };
740
+ const de_CreateMemberCommand = async (output, context) => {
741
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
742
+ return de_CommandError(output, context);
743
+ }
744
+ const contents = smithyClient.map({
745
+ $metadata: deserializeMetadata(output),
746
+ });
747
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
748
+ const doc = smithyClient.take(data, {
749
+ MemberId: smithyClient.expectString,
750
+ });
751
+ Object.assign(contents, doc);
752
+ return contents;
753
+ };
754
+ const de_CreateNetworkCommand = async (output, context) => {
755
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
756
+ return de_CommandError(output, context);
757
+ }
758
+ const contents = smithyClient.map({
759
+ $metadata: deserializeMetadata(output),
760
+ });
761
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
762
+ const doc = smithyClient.take(data, {
763
+ MemberId: smithyClient.expectString,
764
+ NetworkId: smithyClient.expectString,
765
+ });
766
+ Object.assign(contents, doc);
767
+ return contents;
768
+ };
769
+ const de_CreateNodeCommand = async (output, context) => {
770
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
771
+ return de_CommandError(output, context);
772
+ }
773
+ const contents = smithyClient.map({
774
+ $metadata: deserializeMetadata(output),
775
+ });
776
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
777
+ const doc = smithyClient.take(data, {
778
+ NodeId: smithyClient.expectString,
779
+ });
780
+ Object.assign(contents, doc);
781
+ return contents;
782
+ };
783
+ const de_CreateProposalCommand = async (output, context) => {
784
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
785
+ return de_CommandError(output, context);
786
+ }
787
+ const contents = smithyClient.map({
788
+ $metadata: deserializeMetadata(output),
789
+ });
790
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
791
+ const doc = smithyClient.take(data, {
792
+ ProposalId: smithyClient.expectString,
793
+ });
794
+ Object.assign(contents, doc);
795
+ return contents;
796
+ };
797
+ const de_DeleteAccessorCommand = async (output, context) => {
798
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
799
+ return de_CommandError(output, context);
800
+ }
801
+ const contents = smithyClient.map({
802
+ $metadata: deserializeMetadata(output),
803
+ });
804
+ await smithyClient.collectBody(output.body, context);
805
+ return contents;
806
+ };
807
+ const de_DeleteMemberCommand = async (output, context) => {
808
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
809
+ return de_CommandError(output, context);
810
+ }
811
+ const contents = smithyClient.map({
812
+ $metadata: deserializeMetadata(output),
813
+ });
814
+ await smithyClient.collectBody(output.body, context);
815
+ return contents;
816
+ };
817
+ const de_DeleteNodeCommand = async (output, context) => {
818
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
819
+ return de_CommandError(output, context);
820
+ }
821
+ const contents = smithyClient.map({
822
+ $metadata: deserializeMetadata(output),
823
+ });
824
+ await smithyClient.collectBody(output.body, context);
825
+ return contents;
826
+ };
827
+ const de_GetAccessorCommand = async (output, context) => {
828
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
829
+ return de_CommandError(output, context);
830
+ }
831
+ const contents = smithyClient.map({
832
+ $metadata: deserializeMetadata(output),
833
+ });
834
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
835
+ const doc = smithyClient.take(data, {
836
+ Accessor: (_) => de_Accessor(_),
837
+ });
838
+ Object.assign(contents, doc);
839
+ return contents;
840
+ };
841
+ const de_GetMemberCommand = async (output, context) => {
842
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
843
+ return de_CommandError(output, context);
844
+ }
845
+ const contents = smithyClient.map({
846
+ $metadata: deserializeMetadata(output),
847
+ });
848
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
849
+ const doc = smithyClient.take(data, {
850
+ Member: (_) => de_Member(_),
851
+ });
852
+ Object.assign(contents, doc);
853
+ return contents;
854
+ };
855
+ const de_GetNetworkCommand = async (output, context) => {
856
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
857
+ return de_CommandError(output, context);
858
+ }
859
+ const contents = smithyClient.map({
860
+ $metadata: deserializeMetadata(output),
861
+ });
862
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
863
+ const doc = smithyClient.take(data, {
864
+ Network: (_) => de_Network(_),
865
+ });
866
+ Object.assign(contents, doc);
867
+ return contents;
868
+ };
869
+ const de_GetNodeCommand = async (output, context) => {
870
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
871
+ return de_CommandError(output, context);
872
+ }
873
+ const contents = smithyClient.map({
874
+ $metadata: deserializeMetadata(output),
875
+ });
876
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
877
+ const doc = smithyClient.take(data, {
878
+ Node: (_) => de_Node(_),
879
+ });
880
+ Object.assign(contents, doc);
881
+ return contents;
882
+ };
883
+ const de_GetProposalCommand = async (output, context) => {
884
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
885
+ return de_CommandError(output, context);
886
+ }
887
+ const contents = smithyClient.map({
888
+ $metadata: deserializeMetadata(output),
889
+ });
890
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
891
+ const doc = smithyClient.take(data, {
892
+ Proposal: (_) => de_Proposal(_),
893
+ });
894
+ Object.assign(contents, doc);
895
+ return contents;
896
+ };
897
+ const de_ListAccessorsCommand = async (output, context) => {
898
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
899
+ return de_CommandError(output, context);
900
+ }
901
+ const contents = smithyClient.map({
902
+ $metadata: deserializeMetadata(output),
903
+ });
904
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
905
+ const doc = smithyClient.take(data, {
906
+ Accessors: (_) => de_AccessorSummaryList(_),
907
+ NextToken: smithyClient.expectString,
908
+ });
909
+ Object.assign(contents, doc);
910
+ return contents;
911
+ };
912
+ const de_ListInvitationsCommand = async (output, context) => {
913
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
914
+ return de_CommandError(output, context);
915
+ }
916
+ const contents = smithyClient.map({
917
+ $metadata: deserializeMetadata(output),
918
+ });
919
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
920
+ const doc = smithyClient.take(data, {
921
+ Invitations: (_) => de_InvitationList(_),
922
+ NextToken: smithyClient.expectString,
923
+ });
924
+ Object.assign(contents, doc);
925
+ return contents;
926
+ };
927
+ const de_ListMembersCommand = async (output, context) => {
928
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
929
+ return de_CommandError(output, context);
930
+ }
931
+ const contents = smithyClient.map({
932
+ $metadata: deserializeMetadata(output),
933
+ });
934
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
935
+ const doc = smithyClient.take(data, {
936
+ Members: (_) => de_MemberSummaryList(_),
937
+ NextToken: smithyClient.expectString,
938
+ });
939
+ Object.assign(contents, doc);
940
+ return contents;
941
+ };
942
+ const de_ListNetworksCommand = async (output, context) => {
943
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
944
+ return de_CommandError(output, context);
945
+ }
946
+ const contents = smithyClient.map({
947
+ $metadata: deserializeMetadata(output),
948
+ });
949
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
950
+ const doc = smithyClient.take(data, {
951
+ Networks: (_) => de_NetworkSummaryList(_),
952
+ NextToken: smithyClient.expectString,
953
+ });
954
+ Object.assign(contents, doc);
955
+ return contents;
956
+ };
957
+ const de_ListNodesCommand = async (output, context) => {
958
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
959
+ return de_CommandError(output, context);
960
+ }
961
+ const contents = smithyClient.map({
962
+ $metadata: deserializeMetadata(output),
963
+ });
964
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
965
+ const doc = smithyClient.take(data, {
966
+ NextToken: smithyClient.expectString,
967
+ Nodes: (_) => de_NodeSummaryList(_),
968
+ });
969
+ Object.assign(contents, doc);
970
+ return contents;
971
+ };
972
+ const de_ListProposalsCommand = async (output, context) => {
973
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
974
+ return de_CommandError(output, context);
975
+ }
976
+ const contents = smithyClient.map({
977
+ $metadata: deserializeMetadata(output),
978
+ });
979
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
980
+ const doc = smithyClient.take(data, {
981
+ NextToken: smithyClient.expectString,
982
+ Proposals: (_) => de_ProposalSummaryList(_),
983
+ });
984
+ Object.assign(contents, doc);
985
+ return contents;
986
+ };
987
+ const de_ListProposalVotesCommand = async (output, context) => {
988
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
989
+ return de_CommandError(output, context);
990
+ }
991
+ const contents = smithyClient.map({
992
+ $metadata: deserializeMetadata(output),
993
+ });
994
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
995
+ const doc = smithyClient.take(data, {
996
+ NextToken: smithyClient.expectString,
997
+ ProposalVotes: smithyClient._json,
998
+ });
999
+ Object.assign(contents, doc);
1000
+ return contents;
1001
+ };
1002
+ const de_ListTagsForResourceCommand = async (output, context) => {
1003
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1004
+ return de_CommandError(output, context);
1005
+ }
1006
+ const contents = smithyClient.map({
1007
+ $metadata: deserializeMetadata(output),
1008
+ });
1009
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1010
+ const doc = smithyClient.take(data, {
1011
+ Tags: smithyClient._json,
1012
+ });
1013
+ Object.assign(contents, doc);
1014
+ return contents;
1015
+ };
1016
+ const de_RejectInvitationCommand = async (output, context) => {
1017
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1018
+ return de_CommandError(output, context);
1019
+ }
1020
+ const contents = smithyClient.map({
1021
+ $metadata: deserializeMetadata(output),
1022
+ });
1023
+ await smithyClient.collectBody(output.body, context);
1024
+ return contents;
1025
+ };
1026
+ const de_TagResourceCommand = async (output, context) => {
1027
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1028
+ return de_CommandError(output, context);
1029
+ }
1030
+ const contents = smithyClient.map({
1031
+ $metadata: deserializeMetadata(output),
1032
+ });
1033
+ await smithyClient.collectBody(output.body, context);
1034
+ return contents;
1035
+ };
1036
+ const de_UntagResourceCommand = async (output, context) => {
1037
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1038
+ return de_CommandError(output, context);
1039
+ }
1040
+ const contents = smithyClient.map({
1041
+ $metadata: deserializeMetadata(output),
1042
+ });
1043
+ await smithyClient.collectBody(output.body, context);
1044
+ return contents;
1045
+ };
1046
+ const de_UpdateMemberCommand = async (output, context) => {
1047
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1048
+ return de_CommandError(output, context);
1049
+ }
1050
+ const contents = smithyClient.map({
1051
+ $metadata: deserializeMetadata(output),
1052
+ });
1053
+ await smithyClient.collectBody(output.body, context);
1054
+ return contents;
1055
+ };
1056
+ const de_UpdateNodeCommand = async (output, context) => {
1057
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1058
+ return de_CommandError(output, context);
1059
+ }
1060
+ const contents = smithyClient.map({
1061
+ $metadata: deserializeMetadata(output),
1062
+ });
1063
+ await smithyClient.collectBody(output.body, context);
1064
+ return contents;
1065
+ };
1066
+ const de_VoteOnProposalCommand = async (output, context) => {
1067
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1068
+ return de_CommandError(output, context);
1069
+ }
1070
+ const contents = smithyClient.map({
1071
+ $metadata: deserializeMetadata(output),
1072
+ });
1073
+ await smithyClient.collectBody(output.body, context);
1074
+ return contents;
1075
+ };
1076
+ const de_CommandError = async (output, context) => {
1077
+ const parsedOutput = {
1078
+ ...output,
1079
+ body: await core$1.parseJsonErrorBody(output.body, context),
1080
+ };
1081
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1082
+ switch (errorCode) {
1083
+ case "AccessDeniedException":
1084
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1085
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
1086
+ case "InternalServiceErrorException":
1087
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1088
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput);
1089
+ case "InvalidRequestException":
1090
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1091
+ throw await de_InvalidRequestExceptionRes(parsedOutput);
1092
+ case "ResourceAlreadyExistsException":
1093
+ case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
1094
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput);
1095
+ case "ResourceLimitExceededException":
1096
+ case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
1097
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput);
1098
+ case "ThrottlingException":
1099
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1100
+ throw await de_ThrottlingExceptionRes(parsedOutput);
1101
+ case "TooManyTagsException":
1102
+ case "com.amazonaws.managedblockchain#TooManyTagsException":
1103
+ throw await de_TooManyTagsExceptionRes(parsedOutput);
1104
+ case "ResourceNotFoundException":
1105
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1106
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
1107
+ case "ResourceNotReadyException":
1108
+ case "com.amazonaws.managedblockchain#ResourceNotReadyException":
1109
+ throw await de_ResourceNotReadyExceptionRes(parsedOutput);
1110
+ case "IllegalActionException":
1111
+ case "com.amazonaws.managedblockchain#IllegalActionException":
1112
+ throw await de_IllegalActionExceptionRes(parsedOutput);
1113
+ default:
1114
+ const parsedBody = parsedOutput.body;
1115
+ return throwDefaultError({
1116
+ output,
1117
+ parsedBody,
1118
+ errorCode,
1119
+ });
1120
+ }
1121
+ };
1122
+ const throwDefaultError = smithyClient.withBaseException(ManagedBlockchainServiceException);
1123
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1124
+ const contents = smithyClient.map({});
1125
+ const data = parsedOutput.body;
1126
+ const doc = smithyClient.take(data, {
1127
+ Message: smithyClient.expectString,
1128
+ });
1129
+ Object.assign(contents, doc);
1130
+ const exception = new AccessDeniedException({
1131
+ $metadata: deserializeMetadata(parsedOutput),
1132
+ ...contents,
1133
+ });
1134
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1135
+ };
1136
+ const de_IllegalActionExceptionRes = async (parsedOutput, context) => {
1137
+ const contents = smithyClient.map({});
1138
+ const data = parsedOutput.body;
1139
+ const doc = smithyClient.take(data, {
1140
+ Message: smithyClient.expectString,
1141
+ });
1142
+ Object.assign(contents, doc);
1143
+ const exception = new IllegalActionException({
1144
+ $metadata: deserializeMetadata(parsedOutput),
1145
+ ...contents,
1146
+ });
1147
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1148
+ };
1149
+ const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
1150
+ const contents = smithyClient.map({});
1151
+ const data = parsedOutput.body;
1152
+ const doc = smithyClient.take(data, {});
1153
+ Object.assign(contents, doc);
1154
+ const exception = new InternalServiceErrorException({
1155
+ $metadata: deserializeMetadata(parsedOutput),
1156
+ ...contents,
1157
+ });
1158
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1159
+ };
1160
+ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1161
+ const contents = smithyClient.map({});
1162
+ const data = parsedOutput.body;
1163
+ const doc = smithyClient.take(data, {
1164
+ Message: smithyClient.expectString,
1165
+ });
1166
+ Object.assign(contents, doc);
1167
+ const exception = new InvalidRequestException({
1168
+ $metadata: deserializeMetadata(parsedOutput),
1169
+ ...contents,
1170
+ });
1171
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1172
+ };
1173
+ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1174
+ const contents = smithyClient.map({});
1175
+ const data = parsedOutput.body;
1176
+ const doc = smithyClient.take(data, {
1177
+ Message: smithyClient.expectString,
1178
+ });
1179
+ Object.assign(contents, doc);
1180
+ const exception = new ResourceAlreadyExistsException({
1181
+ $metadata: deserializeMetadata(parsedOutput),
1182
+ ...contents,
1183
+ });
1184
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1185
+ };
1186
+ const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
1187
+ const contents = smithyClient.map({});
1188
+ const data = parsedOutput.body;
1189
+ const doc = smithyClient.take(data, {
1190
+ Message: smithyClient.expectString,
1191
+ });
1192
+ Object.assign(contents, doc);
1193
+ const exception = new ResourceLimitExceededException({
1194
+ $metadata: deserializeMetadata(parsedOutput),
1195
+ ...contents,
1196
+ });
1197
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1198
+ };
1199
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1200
+ const contents = smithyClient.map({});
1201
+ const data = parsedOutput.body;
1202
+ const doc = smithyClient.take(data, {
1203
+ Message: smithyClient.expectString,
1204
+ ResourceName: smithyClient.expectString,
1205
+ });
1206
+ Object.assign(contents, doc);
1207
+ const exception = new ResourceNotFoundException({
1208
+ $metadata: deserializeMetadata(parsedOutput),
1209
+ ...contents,
1210
+ });
1211
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1212
+ };
1213
+ const de_ResourceNotReadyExceptionRes = async (parsedOutput, context) => {
1214
+ const contents = smithyClient.map({});
1215
+ const data = parsedOutput.body;
1216
+ const doc = smithyClient.take(data, {
1217
+ Message: smithyClient.expectString,
1218
+ });
1219
+ Object.assign(contents, doc);
1220
+ const exception = new ResourceNotReadyException({
1221
+ $metadata: deserializeMetadata(parsedOutput),
1222
+ ...contents,
1223
+ });
1224
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1225
+ };
1226
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1227
+ const contents = smithyClient.map({});
1228
+ const data = parsedOutput.body;
1229
+ const doc = smithyClient.take(data, {});
1230
+ Object.assign(contents, doc);
1231
+ const exception = new ThrottlingException({
1232
+ $metadata: deserializeMetadata(parsedOutput),
1233
+ ...contents,
1234
+ });
1235
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1236
+ };
1237
+ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1238
+ const contents = smithyClient.map({});
1239
+ const data = parsedOutput.body;
1240
+ const doc = smithyClient.take(data, {
1241
+ Message: smithyClient.expectString,
1242
+ ResourceName: smithyClient.expectString,
1243
+ });
1244
+ Object.assign(contents, doc);
1245
+ const exception = new TooManyTagsException({
1246
+ $metadata: deserializeMetadata(parsedOutput),
1247
+ ...contents,
1248
+ });
1249
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1250
+ };
1251
+ const de_Accessor = (output, context) => {
1252
+ return smithyClient.take(output, {
1253
+ Arn: smithyClient.expectString,
1254
+ BillingToken: smithyClient.expectString,
1255
+ CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1256
+ Id: smithyClient.expectString,
1257
+ NetworkType: smithyClient.expectString,
1258
+ Status: smithyClient.expectString,
1259
+ Tags: smithyClient._json,
1260
+ Type: smithyClient.expectString,
1261
+ });
1262
+ };
1263
+ const de_AccessorSummary = (output, context) => {
1264
+ return smithyClient.take(output, {
1265
+ Arn: smithyClient.expectString,
1266
+ CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1267
+ Id: smithyClient.expectString,
1268
+ NetworkType: smithyClient.expectString,
1269
+ Status: smithyClient.expectString,
1270
+ Type: smithyClient.expectString,
1271
+ });
1272
+ };
1273
+ const de_AccessorSummaryList = (output, context) => {
1274
+ const retVal = (output || [])
1275
+ .filter((e) => e != null)
1276
+ .map((entry) => {
1277
+ return de_AccessorSummary(entry);
1278
+ });
1279
+ return retVal;
1280
+ };
1281
+ const de_Invitation = (output, context) => {
1282
+ return smithyClient.take(output, {
1283
+ Arn: smithyClient.expectString,
1284
+ CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1285
+ ExpirationDate: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1286
+ InvitationId: smithyClient.expectString,
1287
+ NetworkSummary: (_) => de_NetworkSummary(_),
1288
+ Status: smithyClient.expectString,
1289
+ });
1290
+ };
1291
+ const de_InvitationList = (output, context) => {
1292
+ const retVal = (output || [])
1293
+ .filter((e) => e != null)
1294
+ .map((entry) => {
1295
+ return de_Invitation(entry);
1296
+ });
1297
+ return retVal;
1298
+ };
1299
+ const de_Member = (output, context) => {
1300
+ return smithyClient.take(output, {
1301
+ Arn: smithyClient.expectString,
1302
+ CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1303
+ Description: smithyClient.expectString,
1304
+ FrameworkAttributes: smithyClient._json,
1305
+ Id: smithyClient.expectString,
1306
+ KmsKeyArn: smithyClient.expectString,
1307
+ LogPublishingConfiguration: smithyClient._json,
1308
+ Name: smithyClient.expectString,
1309
+ NetworkId: smithyClient.expectString,
1310
+ Status: smithyClient.expectString,
1311
+ Tags: smithyClient._json,
1312
+ });
1313
+ };
1314
+ const de_MemberSummary = (output, context) => {
1315
+ return smithyClient.take(output, {
1316
+ Arn: smithyClient.expectString,
1317
+ CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1318
+ Description: smithyClient.expectString,
1319
+ Id: smithyClient.expectString,
1320
+ IsOwned: smithyClient.expectBoolean,
1321
+ Name: smithyClient.expectString,
1322
+ Status: smithyClient.expectString,
1323
+ });
1324
+ };
1325
+ const de_MemberSummaryList = (output, context) => {
1326
+ const retVal = (output || [])
1327
+ .filter((e) => e != null)
1328
+ .map((entry) => {
1329
+ return de_MemberSummary(entry);
1330
+ });
1331
+ return retVal;
1332
+ };
1333
+ const de_Network = (output, context) => {
1334
+ return smithyClient.take(output, {
1335
+ Arn: smithyClient.expectString,
1336
+ CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1337
+ Description: smithyClient.expectString,
1338
+ Framework: smithyClient.expectString,
1339
+ FrameworkAttributes: smithyClient._json,
1340
+ FrameworkVersion: smithyClient.expectString,
1341
+ Id: smithyClient.expectString,
1342
+ Name: smithyClient.expectString,
1343
+ Status: smithyClient.expectString,
1344
+ Tags: smithyClient._json,
1345
+ VotingPolicy: smithyClient._json,
1346
+ VpcEndpointServiceName: smithyClient.expectString,
1347
+ });
1348
+ };
1349
+ const de_NetworkSummary = (output, context) => {
1350
+ return smithyClient.take(output, {
1351
+ Arn: smithyClient.expectString,
1352
+ CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1353
+ Description: smithyClient.expectString,
1354
+ Framework: smithyClient.expectString,
1355
+ FrameworkVersion: smithyClient.expectString,
1356
+ Id: smithyClient.expectString,
1357
+ Name: smithyClient.expectString,
1358
+ Status: smithyClient.expectString,
1359
+ });
1360
+ };
1361
+ const de_NetworkSummaryList = (output, context) => {
1362
+ const retVal = (output || [])
1363
+ .filter((e) => e != null)
1364
+ .map((entry) => {
1365
+ return de_NetworkSummary(entry);
1366
+ });
1367
+ return retVal;
1368
+ };
1369
+ const de_Node = (output, context) => {
1370
+ return smithyClient.take(output, {
1371
+ Arn: smithyClient.expectString,
1372
+ AvailabilityZone: smithyClient.expectString,
1373
+ CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1374
+ FrameworkAttributes: smithyClient._json,
1375
+ Id: smithyClient.expectString,
1376
+ InstanceType: smithyClient.expectString,
1377
+ KmsKeyArn: smithyClient.expectString,
1378
+ LogPublishingConfiguration: smithyClient._json,
1379
+ MemberId: smithyClient.expectString,
1380
+ NetworkId: smithyClient.expectString,
1381
+ StateDB: smithyClient.expectString,
1382
+ Status: smithyClient.expectString,
1383
+ Tags: smithyClient._json,
1384
+ });
1385
+ };
1386
+ const de_NodeSummary = (output, context) => {
1387
+ return smithyClient.take(output, {
1388
+ Arn: smithyClient.expectString,
1389
+ AvailabilityZone: smithyClient.expectString,
1390
+ CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1391
+ Id: smithyClient.expectString,
1392
+ InstanceType: smithyClient.expectString,
1393
+ Status: smithyClient.expectString,
1394
+ });
1395
+ };
1396
+ const de_NodeSummaryList = (output, context) => {
1397
+ const retVal = (output || [])
1398
+ .filter((e) => e != null)
1399
+ .map((entry) => {
1400
+ return de_NodeSummary(entry);
1401
+ });
1402
+ return retVal;
1403
+ };
1404
+ const de_Proposal = (output, context) => {
1405
+ return smithyClient.take(output, {
1406
+ Actions: smithyClient._json,
1407
+ Arn: smithyClient.expectString,
1408
+ CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1409
+ Description: smithyClient.expectString,
1410
+ ExpirationDate: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1411
+ NetworkId: smithyClient.expectString,
1412
+ NoVoteCount: smithyClient.expectInt32,
1413
+ OutstandingVoteCount: smithyClient.expectInt32,
1414
+ ProposalId: smithyClient.expectString,
1415
+ ProposedByMemberId: smithyClient.expectString,
1416
+ ProposedByMemberName: smithyClient.expectString,
1417
+ Status: smithyClient.expectString,
1418
+ Tags: smithyClient._json,
1419
+ YesVoteCount: smithyClient.expectInt32,
1420
+ });
1421
+ };
1422
+ const de_ProposalSummary = (output, context) => {
1423
+ return smithyClient.take(output, {
1424
+ Arn: smithyClient.expectString,
1425
+ CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1426
+ Description: smithyClient.expectString,
1427
+ ExpirationDate: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1428
+ ProposalId: smithyClient.expectString,
1429
+ ProposedByMemberId: smithyClient.expectString,
1430
+ ProposedByMemberName: smithyClient.expectString,
1431
+ Status: smithyClient.expectString,
1432
+ });
1433
+ };
1434
+ const de_ProposalSummaryList = (output, context) => {
1435
+ const retVal = (output || [])
1436
+ .filter((e) => e != null)
1437
+ .map((entry) => {
1438
+ return de_ProposalSummary(entry);
1439
+ });
1440
+ return retVal;
1441
+ };
1442
+ const deserializeMetadata = (output) => ({
1443
+ httpStatusCode: output.statusCode,
1444
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1445
+ extendedRequestId: output.headers["x-amz-id-2"],
1446
+ cfId: output.headers["x-amz-cf-id"],
1447
+ });
1448
+ const _F = "Framework";
1449
+ const _IO = "IsOwned";
1450
+ const _MI = "MemberId";
1451
+ const _MR = "MaxResults";
1452
+ const _N = "Name";
1453
+ const _NT = "NextToken";
1454
+ const _NTe = "NetworkType";
1455
+ const _S = "Status";
1456
+ const _TK = "TagKeys";
1457
+ const _f = "framework";
1458
+ const _iO = "isOwned";
1459
+ const _mI = "memberId";
1460
+ const _mR = "maxResults";
1461
+ const _n = "name";
1462
+ const _nT = "nextToken";
1463
+ const _nTe = "networkType";
1464
+ const _s = "status";
1465
+ const _tK = "tagKeys";
1466
+
1467
+ class CreateAccessorCommand extends smithyClient.Command
1468
+ .classBuilder()
1469
+ .ep(commonParams)
1470
+ .m(function (Command, cs, config, o) {
1471
+ return [
1472
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1473
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1474
+ ];
1475
+ })
1476
+ .s("TaigaWebService", "CreateAccessor", {})
1477
+ .n("ManagedBlockchainClient", "CreateAccessorCommand")
1478
+ .f(void 0, void 0)
1479
+ .ser(se_CreateAccessorCommand)
1480
+ .de(de_CreateAccessorCommand)
1481
+ .build() {
1482
+ }
1483
+
1484
+ class CreateMemberCommand extends smithyClient.Command
1485
+ .classBuilder()
1486
+ .ep(commonParams)
1487
+ .m(function (Command, cs, config, o) {
1488
+ return [
1489
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1490
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1491
+ ];
1492
+ })
1493
+ .s("TaigaWebService", "CreateMember", {})
1494
+ .n("ManagedBlockchainClient", "CreateMemberCommand")
1495
+ .f(CreateMemberInputFilterSensitiveLog, void 0)
1496
+ .ser(se_CreateMemberCommand)
1497
+ .de(de_CreateMemberCommand)
1498
+ .build() {
1499
+ }
1500
+
1501
+ class CreateNetworkCommand extends smithyClient.Command
1502
+ .classBuilder()
1503
+ .ep(commonParams)
1504
+ .m(function (Command, cs, config, o) {
1505
+ return [
1506
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1507
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1508
+ ];
1509
+ })
1510
+ .s("TaigaWebService", "CreateNetwork", {})
1511
+ .n("ManagedBlockchainClient", "CreateNetworkCommand")
1512
+ .f(CreateNetworkInputFilterSensitiveLog, void 0)
1513
+ .ser(se_CreateNetworkCommand)
1514
+ .de(de_CreateNetworkCommand)
1515
+ .build() {
1516
+ }
1517
+
1518
+ class CreateNodeCommand extends smithyClient.Command
1519
+ .classBuilder()
1520
+ .ep(commonParams)
1521
+ .m(function (Command, cs, config, o) {
1522
+ return [
1523
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1524
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1525
+ ];
1526
+ })
1527
+ .s("TaigaWebService", "CreateNode", {})
1528
+ .n("ManagedBlockchainClient", "CreateNodeCommand")
1529
+ .f(void 0, void 0)
1530
+ .ser(se_CreateNodeCommand)
1531
+ .de(de_CreateNodeCommand)
1532
+ .build() {
1533
+ }
1534
+
1535
+ class CreateProposalCommand extends smithyClient.Command
1536
+ .classBuilder()
1537
+ .ep(commonParams)
1538
+ .m(function (Command, cs, config, o) {
1539
+ return [
1540
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1541
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1542
+ ];
1543
+ })
1544
+ .s("TaigaWebService", "CreateProposal", {})
1545
+ .n("ManagedBlockchainClient", "CreateProposalCommand")
1546
+ .f(void 0, void 0)
1547
+ .ser(se_CreateProposalCommand)
1548
+ .de(de_CreateProposalCommand)
1549
+ .build() {
1550
+ }
1551
+
1552
+ class DeleteAccessorCommand extends smithyClient.Command
1553
+ .classBuilder()
1554
+ .ep(commonParams)
1555
+ .m(function (Command, cs, config, o) {
1556
+ return [
1557
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1558
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1559
+ ];
1560
+ })
1561
+ .s("TaigaWebService", "DeleteAccessor", {})
1562
+ .n("ManagedBlockchainClient", "DeleteAccessorCommand")
1563
+ .f(void 0, void 0)
1564
+ .ser(se_DeleteAccessorCommand)
1565
+ .de(de_DeleteAccessorCommand)
1566
+ .build() {
1567
+ }
1568
+
1569
+ class DeleteMemberCommand extends smithyClient.Command
1570
+ .classBuilder()
1571
+ .ep(commonParams)
1572
+ .m(function (Command, cs, config, o) {
1573
+ return [
1574
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1575
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1576
+ ];
1577
+ })
1578
+ .s("TaigaWebService", "DeleteMember", {})
1579
+ .n("ManagedBlockchainClient", "DeleteMemberCommand")
1580
+ .f(void 0, void 0)
1581
+ .ser(se_DeleteMemberCommand)
1582
+ .de(de_DeleteMemberCommand)
1583
+ .build() {
1584
+ }
1585
+
1586
+ class DeleteNodeCommand extends smithyClient.Command
1587
+ .classBuilder()
1588
+ .ep(commonParams)
1589
+ .m(function (Command, cs, config, o) {
1590
+ return [
1591
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1592
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1593
+ ];
1594
+ })
1595
+ .s("TaigaWebService", "DeleteNode", {})
1596
+ .n("ManagedBlockchainClient", "DeleteNodeCommand")
1597
+ .f(void 0, void 0)
1598
+ .ser(se_DeleteNodeCommand)
1599
+ .de(de_DeleteNodeCommand)
1600
+ .build() {
1601
+ }
1602
+
1603
+ class GetAccessorCommand extends smithyClient.Command
1604
+ .classBuilder()
1605
+ .ep(commonParams)
1606
+ .m(function (Command, cs, config, o) {
1607
+ return [
1608
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1609
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1610
+ ];
1611
+ })
1612
+ .s("TaigaWebService", "GetAccessor", {})
1613
+ .n("ManagedBlockchainClient", "GetAccessorCommand")
1614
+ .f(void 0, void 0)
1615
+ .ser(se_GetAccessorCommand)
1616
+ .de(de_GetAccessorCommand)
1617
+ .build() {
1618
+ }
1619
+
1620
+ class GetMemberCommand extends smithyClient.Command
1621
+ .classBuilder()
1622
+ .ep(commonParams)
1623
+ .m(function (Command, cs, config, o) {
1624
+ return [
1625
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1626
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1627
+ ];
1628
+ })
1629
+ .s("TaigaWebService", "GetMember", {})
1630
+ .n("ManagedBlockchainClient", "GetMemberCommand")
1631
+ .f(void 0, void 0)
1632
+ .ser(se_GetMemberCommand)
1633
+ .de(de_GetMemberCommand)
1634
+ .build() {
1635
+ }
1636
+
1637
+ class GetNetworkCommand extends smithyClient.Command
1638
+ .classBuilder()
1639
+ .ep(commonParams)
1640
+ .m(function (Command, cs, config, o) {
1641
+ return [
1642
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1643
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1644
+ ];
1645
+ })
1646
+ .s("TaigaWebService", "GetNetwork", {})
1647
+ .n("ManagedBlockchainClient", "GetNetworkCommand")
1648
+ .f(void 0, void 0)
1649
+ .ser(se_GetNetworkCommand)
1650
+ .de(de_GetNetworkCommand)
1651
+ .build() {
1652
+ }
1653
+
1654
+ class GetNodeCommand extends smithyClient.Command
1655
+ .classBuilder()
1656
+ .ep(commonParams)
1657
+ .m(function (Command, cs, config, o) {
1658
+ return [
1659
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1660
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1661
+ ];
1662
+ })
1663
+ .s("TaigaWebService", "GetNode", {})
1664
+ .n("ManagedBlockchainClient", "GetNodeCommand")
1665
+ .f(void 0, void 0)
1666
+ .ser(se_GetNodeCommand)
1667
+ .de(de_GetNodeCommand)
1668
+ .build() {
1669
+ }
1670
+
1671
+ class GetProposalCommand extends smithyClient.Command
1672
+ .classBuilder()
1673
+ .ep(commonParams)
1674
+ .m(function (Command, cs, config, o) {
1675
+ return [
1676
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1677
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1678
+ ];
1679
+ })
1680
+ .s("TaigaWebService", "GetProposal", {})
1681
+ .n("ManagedBlockchainClient", "GetProposalCommand")
1682
+ .f(void 0, void 0)
1683
+ .ser(se_GetProposalCommand)
1684
+ .de(de_GetProposalCommand)
1685
+ .build() {
1686
+ }
1687
+
1688
+ class ListAccessorsCommand extends smithyClient.Command
1689
+ .classBuilder()
1690
+ .ep(commonParams)
1691
+ .m(function (Command, cs, config, o) {
1692
+ return [
1693
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1694
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1695
+ ];
1696
+ })
1697
+ .s("TaigaWebService", "ListAccessors", {})
1698
+ .n("ManagedBlockchainClient", "ListAccessorsCommand")
1699
+ .f(void 0, void 0)
1700
+ .ser(se_ListAccessorsCommand)
1701
+ .de(de_ListAccessorsCommand)
1702
+ .build() {
1703
+ }
1704
+
1705
+ class ListInvitationsCommand extends smithyClient.Command
1706
+ .classBuilder()
1707
+ .ep(commonParams)
1708
+ .m(function (Command, cs, config, o) {
1709
+ return [
1710
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1711
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1712
+ ];
1713
+ })
1714
+ .s("TaigaWebService", "ListInvitations", {})
1715
+ .n("ManagedBlockchainClient", "ListInvitationsCommand")
1716
+ .f(void 0, void 0)
1717
+ .ser(se_ListInvitationsCommand)
1718
+ .de(de_ListInvitationsCommand)
1719
+ .build() {
1720
+ }
1721
+
1722
+ class ListMembersCommand extends smithyClient.Command
1723
+ .classBuilder()
1724
+ .ep(commonParams)
1725
+ .m(function (Command, cs, config, o) {
1726
+ return [
1727
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1728
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1729
+ ];
1730
+ })
1731
+ .s("TaigaWebService", "ListMembers", {})
1732
+ .n("ManagedBlockchainClient", "ListMembersCommand")
1733
+ .f(void 0, void 0)
1734
+ .ser(se_ListMembersCommand)
1735
+ .de(de_ListMembersCommand)
1736
+ .build() {
1737
+ }
1738
+
1739
+ class ListNetworksCommand extends smithyClient.Command
1740
+ .classBuilder()
1741
+ .ep(commonParams)
1742
+ .m(function (Command, cs, config, o) {
1743
+ return [
1744
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1745
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1746
+ ];
1747
+ })
1748
+ .s("TaigaWebService", "ListNetworks", {})
1749
+ .n("ManagedBlockchainClient", "ListNetworksCommand")
1750
+ .f(void 0, void 0)
1751
+ .ser(se_ListNetworksCommand)
1752
+ .de(de_ListNetworksCommand)
1753
+ .build() {
1754
+ }
1755
+
1756
+ class ListNodesCommand extends smithyClient.Command
1757
+ .classBuilder()
1758
+ .ep(commonParams)
1759
+ .m(function (Command, cs, config, o) {
1760
+ return [
1761
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1762
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1763
+ ];
1764
+ })
1765
+ .s("TaigaWebService", "ListNodes", {})
1766
+ .n("ManagedBlockchainClient", "ListNodesCommand")
1767
+ .f(void 0, void 0)
1768
+ .ser(se_ListNodesCommand)
1769
+ .de(de_ListNodesCommand)
1770
+ .build() {
1771
+ }
1772
+
1773
+ class ListProposalsCommand extends smithyClient.Command
1774
+ .classBuilder()
1775
+ .ep(commonParams)
1776
+ .m(function (Command, cs, config, o) {
1777
+ return [
1778
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1779
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1780
+ ];
1781
+ })
1782
+ .s("TaigaWebService", "ListProposals", {})
1783
+ .n("ManagedBlockchainClient", "ListProposalsCommand")
1784
+ .f(void 0, void 0)
1785
+ .ser(se_ListProposalsCommand)
1786
+ .de(de_ListProposalsCommand)
1787
+ .build() {
1788
+ }
1789
+
1790
+ class ListProposalVotesCommand extends smithyClient.Command
1791
+ .classBuilder()
1792
+ .ep(commonParams)
1793
+ .m(function (Command, cs, config, o) {
1794
+ return [
1795
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1796
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1797
+ ];
1798
+ })
1799
+ .s("TaigaWebService", "ListProposalVotes", {})
1800
+ .n("ManagedBlockchainClient", "ListProposalVotesCommand")
1801
+ .f(void 0, void 0)
1802
+ .ser(se_ListProposalVotesCommand)
1803
+ .de(de_ListProposalVotesCommand)
1804
+ .build() {
1805
+ }
1806
+
1807
+ class ListTagsForResourceCommand extends smithyClient.Command
1808
+ .classBuilder()
1809
+ .ep(commonParams)
1810
+ .m(function (Command, cs, config, o) {
1811
+ return [
1812
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1813
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1814
+ ];
1815
+ })
1816
+ .s("TaigaWebService", "ListTagsForResource", {})
1817
+ .n("ManagedBlockchainClient", "ListTagsForResourceCommand")
1818
+ .f(void 0, void 0)
1819
+ .ser(se_ListTagsForResourceCommand)
1820
+ .de(de_ListTagsForResourceCommand)
1821
+ .build() {
1822
+ }
1823
+
1824
+ class RejectInvitationCommand extends smithyClient.Command
1825
+ .classBuilder()
1826
+ .ep(commonParams)
1827
+ .m(function (Command, cs, config, o) {
1828
+ return [
1829
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1830
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1831
+ ];
1832
+ })
1833
+ .s("TaigaWebService", "RejectInvitation", {})
1834
+ .n("ManagedBlockchainClient", "RejectInvitationCommand")
1835
+ .f(void 0, void 0)
1836
+ .ser(se_RejectInvitationCommand)
1837
+ .de(de_RejectInvitationCommand)
1838
+ .build() {
1839
+ }
1840
+
1841
+ class TagResourceCommand extends smithyClient.Command
1842
+ .classBuilder()
1843
+ .ep(commonParams)
1844
+ .m(function (Command, cs, config, o) {
1845
+ return [
1846
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1847
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1848
+ ];
1849
+ })
1850
+ .s("TaigaWebService", "TagResource", {})
1851
+ .n("ManagedBlockchainClient", "TagResourceCommand")
1852
+ .f(void 0, void 0)
1853
+ .ser(se_TagResourceCommand)
1854
+ .de(de_TagResourceCommand)
1855
+ .build() {
1856
+ }
1857
+
1858
+ class UntagResourceCommand extends smithyClient.Command
1859
+ .classBuilder()
1860
+ .ep(commonParams)
1861
+ .m(function (Command, cs, config, o) {
1862
+ return [
1863
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1864
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1865
+ ];
1866
+ })
1867
+ .s("TaigaWebService", "UntagResource", {})
1868
+ .n("ManagedBlockchainClient", "UntagResourceCommand")
1869
+ .f(void 0, void 0)
1870
+ .ser(se_UntagResourceCommand)
1871
+ .de(de_UntagResourceCommand)
1872
+ .build() {
1873
+ }
1874
+
1875
+ class UpdateMemberCommand extends smithyClient.Command
1876
+ .classBuilder()
1877
+ .ep(commonParams)
1878
+ .m(function (Command, cs, config, o) {
1879
+ return [
1880
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1881
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1882
+ ];
1883
+ })
1884
+ .s("TaigaWebService", "UpdateMember", {})
1885
+ .n("ManagedBlockchainClient", "UpdateMemberCommand")
1886
+ .f(void 0, void 0)
1887
+ .ser(se_UpdateMemberCommand)
1888
+ .de(de_UpdateMemberCommand)
1889
+ .build() {
1890
+ }
1891
+
1892
+ class UpdateNodeCommand extends smithyClient.Command
1893
+ .classBuilder()
1894
+ .ep(commonParams)
1895
+ .m(function (Command, cs, config, o) {
1896
+ return [
1897
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1898
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1899
+ ];
1900
+ })
1901
+ .s("TaigaWebService", "UpdateNode", {})
1902
+ .n("ManagedBlockchainClient", "UpdateNodeCommand")
1903
+ .f(void 0, void 0)
1904
+ .ser(se_UpdateNodeCommand)
1905
+ .de(de_UpdateNodeCommand)
1906
+ .build() {
1907
+ }
1908
+
1909
+ class VoteOnProposalCommand extends smithyClient.Command
1910
+ .classBuilder()
1911
+ .ep(commonParams)
1912
+ .m(function (Command, cs, config, o) {
1913
+ return [
1914
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1915
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1916
+ ];
1917
+ })
1918
+ .s("TaigaWebService", "VoteOnProposal", {})
1919
+ .n("ManagedBlockchainClient", "VoteOnProposalCommand")
1920
+ .f(void 0, void 0)
1921
+ .ser(se_VoteOnProposalCommand)
1922
+ .de(de_VoteOnProposalCommand)
1923
+ .build() {
1924
+ }
1925
+
1926
+ const commands = {
1927
+ CreateAccessorCommand,
1928
+ CreateMemberCommand,
1929
+ CreateNetworkCommand,
1930
+ CreateNodeCommand,
1931
+ CreateProposalCommand,
1932
+ DeleteAccessorCommand,
1933
+ DeleteMemberCommand,
1934
+ DeleteNodeCommand,
1935
+ GetAccessorCommand,
1936
+ GetMemberCommand,
1937
+ GetNetworkCommand,
1938
+ GetNodeCommand,
1939
+ GetProposalCommand,
1940
+ ListAccessorsCommand,
1941
+ ListInvitationsCommand,
1942
+ ListMembersCommand,
1943
+ ListNetworksCommand,
1944
+ ListNodesCommand,
1945
+ ListProposalsCommand,
1946
+ ListProposalVotesCommand,
1947
+ ListTagsForResourceCommand,
1948
+ RejectInvitationCommand,
1949
+ TagResourceCommand,
1950
+ UntagResourceCommand,
1951
+ UpdateMemberCommand,
1952
+ UpdateNodeCommand,
1953
+ VoteOnProposalCommand,
1954
+ };
1955
+ class ManagedBlockchain extends ManagedBlockchainClient {
1956
+ }
1957
+ smithyClient.createAggregatedClient(commands, ManagedBlockchain);
2087
1958
 
2088
- // src/ManagedBlockchain.ts
2089
- var commands = {
2090
- CreateAccessorCommand,
2091
- CreateMemberCommand,
2092
- CreateNetworkCommand,
2093
- CreateNodeCommand,
2094
- CreateProposalCommand,
2095
- DeleteAccessorCommand,
2096
- DeleteMemberCommand,
2097
- DeleteNodeCommand,
2098
- GetAccessorCommand,
2099
- GetMemberCommand,
2100
- GetNetworkCommand,
2101
- GetNodeCommand,
2102
- GetProposalCommand,
2103
- ListAccessorsCommand,
2104
- ListInvitationsCommand,
2105
- ListMembersCommand,
2106
- ListNetworksCommand,
2107
- ListNodesCommand,
2108
- ListProposalsCommand,
2109
- ListProposalVotesCommand,
2110
- ListTagsForResourceCommand,
2111
- RejectInvitationCommand,
2112
- TagResourceCommand,
2113
- UntagResourceCommand,
2114
- UpdateMemberCommand,
2115
- UpdateNodeCommand,
2116
- VoteOnProposalCommand
2117
- };
2118
- var ManagedBlockchain = class extends ManagedBlockchainClient {
2119
- static {
2120
- __name(this, "ManagedBlockchain");
2121
- }
2122
- };
2123
- (0, import_smithy_client.createAggregatedClient)(commands, ManagedBlockchain);
2124
-
2125
- // src/pagination/ListAccessorsPaginator.ts
2126
-
2127
- var paginateListAccessors = (0, import_core.createPaginator)(ManagedBlockchainClient, ListAccessorsCommand, "NextToken", "NextToken", "MaxResults");
2128
-
2129
- // src/pagination/ListInvitationsPaginator.ts
2130
-
2131
- var paginateListInvitations = (0, import_core.createPaginator)(ManagedBlockchainClient, ListInvitationsCommand, "NextToken", "NextToken", "MaxResults");
2132
-
2133
- // src/pagination/ListMembersPaginator.ts
2134
-
2135
- var paginateListMembers = (0, import_core.createPaginator)(ManagedBlockchainClient, ListMembersCommand, "NextToken", "NextToken", "MaxResults");
2136
-
2137
- // src/pagination/ListNetworksPaginator.ts
2138
-
2139
- var paginateListNetworks = (0, import_core.createPaginator)(ManagedBlockchainClient, ListNetworksCommand, "NextToken", "NextToken", "MaxResults");
1959
+ const paginateListAccessors = core.createPaginator(ManagedBlockchainClient, ListAccessorsCommand, "NextToken", "NextToken", "MaxResults");
2140
1960
 
2141
- // src/pagination/ListNodesPaginator.ts
1961
+ const paginateListInvitations = core.createPaginator(ManagedBlockchainClient, ListInvitationsCommand, "NextToken", "NextToken", "MaxResults");
2142
1962
 
2143
- var paginateListNodes = (0, import_core.createPaginator)(ManagedBlockchainClient, ListNodesCommand, "NextToken", "NextToken", "MaxResults");
1963
+ const paginateListMembers = core.createPaginator(ManagedBlockchainClient, ListMembersCommand, "NextToken", "NextToken", "MaxResults");
2144
1964
 
2145
- // src/pagination/ListProposalVotesPaginator.ts
1965
+ const paginateListNetworks = core.createPaginator(ManagedBlockchainClient, ListNetworksCommand, "NextToken", "NextToken", "MaxResults");
2146
1966
 
2147
- var paginateListProposalVotes = (0, import_core.createPaginator)(ManagedBlockchainClient, ListProposalVotesCommand, "NextToken", "NextToken", "MaxResults");
1967
+ const paginateListNodes = core.createPaginator(ManagedBlockchainClient, ListNodesCommand, "NextToken", "NextToken", "MaxResults");
2148
1968
 
2149
- // src/pagination/ListProposalsPaginator.ts
1969
+ const paginateListProposalVotes = core.createPaginator(ManagedBlockchainClient, ListProposalVotesCommand, "NextToken", "NextToken", "MaxResults");
2150
1970
 
2151
- var paginateListProposals = (0, import_core.createPaginator)(ManagedBlockchainClient, ListProposalsCommand, "NextToken", "NextToken", "MaxResults");
2152
- // Annotate the CommonJS export names for ESM import in node:
1971
+ const paginateListProposals = core.createPaginator(ManagedBlockchainClient, ListProposalsCommand, "NextToken", "NextToken", "MaxResults");
2153
1972
 
2154
- 0 && (module.exports = {
2155
- ManagedBlockchainServiceException,
2156
- __Client,
2157
- ManagedBlockchainClient,
2158
- ManagedBlockchain,
2159
- $Command,
2160
- CreateAccessorCommand,
2161
- CreateMemberCommand,
2162
- CreateNetworkCommand,
2163
- CreateNodeCommand,
2164
- CreateProposalCommand,
2165
- DeleteAccessorCommand,
2166
- DeleteMemberCommand,
2167
- DeleteNodeCommand,
2168
- GetAccessorCommand,
2169
- GetMemberCommand,
2170
- GetNetworkCommand,
2171
- GetNodeCommand,
2172
- GetProposalCommand,
2173
- ListAccessorsCommand,
2174
- ListInvitationsCommand,
2175
- ListMembersCommand,
2176
- ListNetworksCommand,
2177
- ListNodesCommand,
2178
- ListProposalVotesCommand,
2179
- ListProposalsCommand,
2180
- ListTagsForResourceCommand,
2181
- RejectInvitationCommand,
2182
- TagResourceCommand,
2183
- UntagResourceCommand,
2184
- UpdateMemberCommand,
2185
- UpdateNodeCommand,
2186
- VoteOnProposalCommand,
2187
- paginateListAccessors,
2188
- paginateListInvitations,
2189
- paginateListMembers,
2190
- paginateListNetworks,
2191
- paginateListNodes,
2192
- paginateListProposalVotes,
2193
- paginateListProposals,
2194
- AccessDeniedException,
2195
- AccessorNetworkType,
2196
- AccessorStatus,
2197
- AccessorType,
2198
- ThresholdComparator,
2199
- InternalServiceErrorException,
2200
- InvalidRequestException,
2201
- ResourceAlreadyExistsException,
2202
- ResourceLimitExceededException,
2203
- ThrottlingException,
2204
- TooManyTagsException,
2205
- ResourceNotFoundException,
2206
- ResourceNotReadyException,
2207
- Framework,
2208
- Edition,
2209
- StateDBType,
2210
- MemberStatus,
2211
- NetworkStatus,
2212
- NodeStatus,
2213
- ProposalStatus,
2214
- IllegalActionException,
2215
- InvitationStatus,
2216
- VoteValue,
2217
- MemberFabricConfigurationFilterSensitiveLog,
2218
- MemberFrameworkConfigurationFilterSensitiveLog,
2219
- MemberConfigurationFilterSensitiveLog,
2220
- CreateMemberInputFilterSensitiveLog,
2221
- CreateNetworkInputFilterSensitiveLog
1973
+ Object.defineProperty(exports, "$Command", {
1974
+ enumerable: true,
1975
+ get: function () { return smithyClient.Command; }
2222
1976
  });
2223
-
1977
+ Object.defineProperty(exports, "__Client", {
1978
+ enumerable: true,
1979
+ get: function () { return smithyClient.Client; }
1980
+ });
1981
+ exports.AccessDeniedException = AccessDeniedException;
1982
+ exports.AccessorNetworkType = AccessorNetworkType;
1983
+ exports.AccessorStatus = AccessorStatus;
1984
+ exports.AccessorType = AccessorType;
1985
+ exports.CreateAccessorCommand = CreateAccessorCommand;
1986
+ exports.CreateMemberCommand = CreateMemberCommand;
1987
+ exports.CreateMemberInputFilterSensitiveLog = CreateMemberInputFilterSensitiveLog;
1988
+ exports.CreateNetworkCommand = CreateNetworkCommand;
1989
+ exports.CreateNetworkInputFilterSensitiveLog = CreateNetworkInputFilterSensitiveLog;
1990
+ exports.CreateNodeCommand = CreateNodeCommand;
1991
+ exports.CreateProposalCommand = CreateProposalCommand;
1992
+ exports.DeleteAccessorCommand = DeleteAccessorCommand;
1993
+ exports.DeleteMemberCommand = DeleteMemberCommand;
1994
+ exports.DeleteNodeCommand = DeleteNodeCommand;
1995
+ exports.Edition = Edition;
1996
+ exports.Framework = Framework;
1997
+ exports.GetAccessorCommand = GetAccessorCommand;
1998
+ exports.GetMemberCommand = GetMemberCommand;
1999
+ exports.GetNetworkCommand = GetNetworkCommand;
2000
+ exports.GetNodeCommand = GetNodeCommand;
2001
+ exports.GetProposalCommand = GetProposalCommand;
2002
+ exports.IllegalActionException = IllegalActionException;
2003
+ exports.InternalServiceErrorException = InternalServiceErrorException;
2004
+ exports.InvalidRequestException = InvalidRequestException;
2005
+ exports.InvitationStatus = InvitationStatus;
2006
+ exports.ListAccessorsCommand = ListAccessorsCommand;
2007
+ exports.ListInvitationsCommand = ListInvitationsCommand;
2008
+ exports.ListMembersCommand = ListMembersCommand;
2009
+ exports.ListNetworksCommand = ListNetworksCommand;
2010
+ exports.ListNodesCommand = ListNodesCommand;
2011
+ exports.ListProposalVotesCommand = ListProposalVotesCommand;
2012
+ exports.ListProposalsCommand = ListProposalsCommand;
2013
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
2014
+ exports.ManagedBlockchain = ManagedBlockchain;
2015
+ exports.ManagedBlockchainClient = ManagedBlockchainClient;
2016
+ exports.ManagedBlockchainServiceException = ManagedBlockchainServiceException;
2017
+ exports.MemberConfigurationFilterSensitiveLog = MemberConfigurationFilterSensitiveLog;
2018
+ exports.MemberFabricConfigurationFilterSensitiveLog = MemberFabricConfigurationFilterSensitiveLog;
2019
+ exports.MemberFrameworkConfigurationFilterSensitiveLog = MemberFrameworkConfigurationFilterSensitiveLog;
2020
+ exports.MemberStatus = MemberStatus;
2021
+ exports.NetworkStatus = NetworkStatus;
2022
+ exports.NodeStatus = NodeStatus;
2023
+ exports.ProposalStatus = ProposalStatus;
2024
+ exports.RejectInvitationCommand = RejectInvitationCommand;
2025
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
2026
+ exports.ResourceLimitExceededException = ResourceLimitExceededException;
2027
+ exports.ResourceNotFoundException = ResourceNotFoundException;
2028
+ exports.ResourceNotReadyException = ResourceNotReadyException;
2029
+ exports.StateDBType = StateDBType;
2030
+ exports.TagResourceCommand = TagResourceCommand;
2031
+ exports.ThresholdComparator = ThresholdComparator;
2032
+ exports.ThrottlingException = ThrottlingException;
2033
+ exports.TooManyTagsException = TooManyTagsException;
2034
+ exports.UntagResourceCommand = UntagResourceCommand;
2035
+ exports.UpdateMemberCommand = UpdateMemberCommand;
2036
+ exports.UpdateNodeCommand = UpdateNodeCommand;
2037
+ exports.VoteOnProposalCommand = VoteOnProposalCommand;
2038
+ exports.VoteValue = VoteValue;
2039
+ exports.paginateListAccessors = paginateListAccessors;
2040
+ exports.paginateListInvitations = paginateListInvitations;
2041
+ exports.paginateListMembers = paginateListMembers;
2042
+ exports.paginateListNetworks = paginateListNetworks;
2043
+ exports.paginateListNodes = paginateListNodes;
2044
+ exports.paginateListProposalVotes = paginateListProposalVotes;
2045
+ exports.paginateListProposals = paginateListProposals;