@aws-sdk/client-managedblockchain 3.490.0 → 3.496.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 (48) hide show
  1. package/dist-cjs/ManagedBlockchain.js +1 -65
  2. package/dist-cjs/ManagedBlockchainClient.js +1 -43
  3. package/dist-cjs/commands/CreateAccessorCommand.js +1 -28
  4. package/dist-cjs/commands/CreateMemberCommand.js +1 -29
  5. package/dist-cjs/commands/CreateNetworkCommand.js +1 -29
  6. package/dist-cjs/commands/CreateNodeCommand.js +1 -28
  7. package/dist-cjs/commands/CreateProposalCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteAccessorCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteMemberCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteNodeCommand.js +1 -28
  11. package/dist-cjs/commands/GetAccessorCommand.js +1 -28
  12. package/dist-cjs/commands/GetMemberCommand.js +1 -28
  13. package/dist-cjs/commands/GetNetworkCommand.js +1 -28
  14. package/dist-cjs/commands/GetNodeCommand.js +1 -28
  15. package/dist-cjs/commands/GetProposalCommand.js +1 -28
  16. package/dist-cjs/commands/ListAccessorsCommand.js +1 -28
  17. package/dist-cjs/commands/ListInvitationsCommand.js +1 -28
  18. package/dist-cjs/commands/ListMembersCommand.js +1 -28
  19. package/dist-cjs/commands/ListNetworksCommand.js +1 -28
  20. package/dist-cjs/commands/ListNodesCommand.js +1 -28
  21. package/dist-cjs/commands/ListProposalVotesCommand.js +1 -28
  22. package/dist-cjs/commands/ListProposalsCommand.js +1 -28
  23. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  24. package/dist-cjs/commands/RejectInvitationCommand.js +1 -28
  25. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  26. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  27. package/dist-cjs/commands/UpdateMemberCommand.js +1 -28
  28. package/dist-cjs/commands/UpdateNodeCommand.js +1 -28
  29. package/dist-cjs/commands/VoteOnProposalCommand.js +1 -28
  30. package/dist-cjs/commands/index.js +1 -30
  31. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  32. package/dist-cjs/extensionConfiguration.js +1 -2
  33. package/dist-cjs/index.js +3062 -11
  34. package/dist-cjs/models/ManagedBlockchainServiceException.js +1 -12
  35. package/dist-cjs/models/index.js +1 -4
  36. package/dist-cjs/models/models_0.js +1 -252
  37. package/dist-cjs/pagination/Interfaces.js +1 -2
  38. package/dist-cjs/pagination/ListAccessorsPaginator.js +1 -7
  39. package/dist-cjs/pagination/ListInvitationsPaginator.js +1 -7
  40. package/dist-cjs/pagination/ListMembersPaginator.js +1 -7
  41. package/dist-cjs/pagination/ListNetworksPaginator.js +1 -7
  42. package/dist-cjs/pagination/ListNodesPaginator.js +1 -7
  43. package/dist-cjs/pagination/ListProposalVotesPaginator.js +1 -7
  44. package/dist-cjs/pagination/ListProposalsPaginator.js +1 -7
  45. package/dist-cjs/pagination/index.js +1 -11
  46. package/dist-cjs/protocols/Aws_restJson1.js +1 -2041
  47. package/dist-cjs/runtimeExtensions.js +1 -22
  48. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,3063 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ManagedBlockchainServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./ManagedBlockchainClient"), exports);
6
- tslib_1.__exportStar(require("./ManagedBlockchain"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var ManagedBlockchainServiceException_1 = require("./models/ManagedBlockchainServiceException");
12
- Object.defineProperty(exports, "ManagedBlockchainServiceException", { enumerable: true, get: function () { return ManagedBlockchainServiceException_1.ManagedBlockchainServiceException; } });
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 src_exports = {};
23
+ __export(src_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(src_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_signing = require("@aws-sdk/middleware-signing");
98
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
99
+ var import_config_resolver = require("@smithy/config-resolver");
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
+
105
+ // src/endpoint/EndpointParameters.ts
106
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
107
+ return {
108
+ ...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" }
119
+ };
120
+
121
+ // src/ManagedBlockchainClient.ts
122
+ var import_runtimeConfig = require("././runtimeConfig");
123
+
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");
128
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
129
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
130
+ const extensionConfiguration = {
131
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
132
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
133
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
134
+ };
135
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
136
+ return {
137
+ ...runtimeConfig,
138
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
139
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
140
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
141
+ };
142
+ }, "resolveRuntimeExtensions");
143
+
144
+ // src/ManagedBlockchainClient.ts
145
+ var _ManagedBlockchainClient = class _ManagedBlockchainClient extends import_smithy_client.Client {
146
+ constructor(...[configuration]) {
147
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
148
+ const _config_1 = resolveClientEndpointParameters(_config_0);
149
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
150
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
151
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
152
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
153
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
154
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
155
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
156
+ super(_config_8);
157
+ this.config = _config_8;
158
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
159
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
160
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
161
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
162
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
163
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
164
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
165
+ }
166
+ /**
167
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
168
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
169
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
170
+ */
171
+ destroy() {
172
+ super.destroy();
173
+ }
174
+ };
175
+ __name(_ManagedBlockchainClient, "ManagedBlockchainClient");
176
+ var ManagedBlockchainClient = _ManagedBlockchainClient;
177
+
178
+ // src/ManagedBlockchain.ts
179
+
180
+
181
+ // src/commands/CreateAccessorCommand.ts
182
+
183
+ var import_middleware_serde = require("@smithy/middleware-serde");
184
+
185
+ var import_types = require("@smithy/types");
186
+
187
+ // src/protocols/Aws_restJson1.ts
188
+ var import_core = require("@smithy/core");
189
+
190
+ var import_uuid = require("uuid");
191
+
192
+ // src/models/ManagedBlockchainServiceException.ts
193
+
194
+ var _ManagedBlockchainServiceException = class _ManagedBlockchainServiceException extends import_smithy_client.ServiceException {
195
+ /**
196
+ * @internal
197
+ */
198
+ constructor(options) {
199
+ super(options);
200
+ Object.setPrototypeOf(this, _ManagedBlockchainServiceException.prototype);
201
+ }
202
+ };
203
+ __name(_ManagedBlockchainServiceException, "ManagedBlockchainServiceException");
204
+ var ManagedBlockchainServiceException = _ManagedBlockchainServiceException;
205
+
206
+ // src/models/models_0.ts
207
+
208
+ var _AccessDeniedException = class _AccessDeniedException extends ManagedBlockchainServiceException {
209
+ /**
210
+ * @internal
211
+ */
212
+ constructor(opts) {
213
+ super({
214
+ name: "AccessDeniedException",
215
+ $fault: "client",
216
+ ...opts
217
+ });
218
+ this.name = "AccessDeniedException";
219
+ this.$fault = "client";
220
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
221
+ this.Message = opts.Message;
222
+ }
223
+ };
224
+ __name(_AccessDeniedException, "AccessDeniedException");
225
+ var AccessDeniedException = _AccessDeniedException;
226
+ var AccessorNetworkType = {
227
+ ETHEREUM_GOERLI: "ETHEREUM_GOERLI",
228
+ ETHEREUM_MAINNET: "ETHEREUM_MAINNET",
229
+ ETHEREUM_MAINNET_AND_GOERLI: "ETHEREUM_MAINNET_AND_GOERLI",
230
+ POLYGON_MAINNET: "POLYGON_MAINNET",
231
+ POLYGON_MUMBAI: "POLYGON_MUMBAI"
232
+ };
233
+ var AccessorStatus = {
234
+ AVAILABLE: "AVAILABLE",
235
+ DELETED: "DELETED",
236
+ PENDING_DELETION: "PENDING_DELETION"
237
+ };
238
+ var AccessorType = {
239
+ BILLING_TOKEN: "BILLING_TOKEN"
240
+ };
241
+ var ThresholdComparator = {
242
+ GREATER_THAN: "GREATER_THAN",
243
+ GREATER_THAN_OR_EQUAL_TO: "GREATER_THAN_OR_EQUAL_TO"
244
+ };
245
+ var _InternalServiceErrorException = class _InternalServiceErrorException extends ManagedBlockchainServiceException {
246
+ /**
247
+ * @internal
248
+ */
249
+ constructor(opts) {
250
+ super({
251
+ name: "InternalServiceErrorException",
252
+ $fault: "server",
253
+ ...opts
254
+ });
255
+ this.name = "InternalServiceErrorException";
256
+ this.$fault = "server";
257
+ Object.setPrototypeOf(this, _InternalServiceErrorException.prototype);
258
+ }
259
+ };
260
+ __name(_InternalServiceErrorException, "InternalServiceErrorException");
261
+ var InternalServiceErrorException = _InternalServiceErrorException;
262
+ var _InvalidRequestException = class _InvalidRequestException extends ManagedBlockchainServiceException {
263
+ /**
264
+ * @internal
265
+ */
266
+ constructor(opts) {
267
+ super({
268
+ name: "InvalidRequestException",
269
+ $fault: "client",
270
+ ...opts
271
+ });
272
+ this.name = "InvalidRequestException";
273
+ this.$fault = "client";
274
+ Object.setPrototypeOf(this, _InvalidRequestException.prototype);
275
+ this.Message = opts.Message;
276
+ }
277
+ };
278
+ __name(_InvalidRequestException, "InvalidRequestException");
279
+ var InvalidRequestException = _InvalidRequestException;
280
+ var _ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends ManagedBlockchainServiceException {
281
+ /**
282
+ * @internal
283
+ */
284
+ constructor(opts) {
285
+ super({
286
+ name: "ResourceAlreadyExistsException",
287
+ $fault: "client",
288
+ ...opts
289
+ });
290
+ this.name = "ResourceAlreadyExistsException";
291
+ this.$fault = "client";
292
+ Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype);
293
+ this.Message = opts.Message;
294
+ }
295
+ };
296
+ __name(_ResourceAlreadyExistsException, "ResourceAlreadyExistsException");
297
+ var ResourceAlreadyExistsException = _ResourceAlreadyExistsException;
298
+ var _ResourceLimitExceededException = class _ResourceLimitExceededException extends ManagedBlockchainServiceException {
299
+ /**
300
+ * @internal
301
+ */
302
+ constructor(opts) {
303
+ super({
304
+ name: "ResourceLimitExceededException",
305
+ $fault: "client",
306
+ ...opts
307
+ });
308
+ this.name = "ResourceLimitExceededException";
309
+ this.$fault = "client";
310
+ Object.setPrototypeOf(this, _ResourceLimitExceededException.prototype);
311
+ this.Message = opts.Message;
312
+ }
313
+ };
314
+ __name(_ResourceLimitExceededException, "ResourceLimitExceededException");
315
+ var ResourceLimitExceededException = _ResourceLimitExceededException;
316
+ var _ThrottlingException = class _ThrottlingException extends ManagedBlockchainServiceException {
317
+ /**
318
+ * @internal
319
+ */
320
+ constructor(opts) {
321
+ super({
322
+ name: "ThrottlingException",
323
+ $fault: "client",
324
+ ...opts
325
+ });
326
+ this.name = "ThrottlingException";
327
+ this.$fault = "client";
328
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
329
+ }
330
+ };
331
+ __name(_ThrottlingException, "ThrottlingException");
332
+ var ThrottlingException = _ThrottlingException;
333
+ var _TooManyTagsException = class _TooManyTagsException extends ManagedBlockchainServiceException {
334
+ /**
335
+ * @internal
336
+ */
337
+ constructor(opts) {
338
+ super({
339
+ name: "TooManyTagsException",
340
+ $fault: "client",
341
+ ...opts
342
+ });
343
+ this.name = "TooManyTagsException";
344
+ this.$fault = "client";
345
+ Object.setPrototypeOf(this, _TooManyTagsException.prototype);
346
+ this.Message = opts.Message;
347
+ this.ResourceName = opts.ResourceName;
348
+ }
349
+ };
350
+ __name(_TooManyTagsException, "TooManyTagsException");
351
+ var TooManyTagsException = _TooManyTagsException;
352
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends ManagedBlockchainServiceException {
353
+ /**
354
+ * @internal
355
+ */
356
+ constructor(opts) {
357
+ super({
358
+ name: "ResourceNotFoundException",
359
+ $fault: "client",
360
+ ...opts
361
+ });
362
+ this.name = "ResourceNotFoundException";
363
+ this.$fault = "client";
364
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
365
+ this.Message = opts.Message;
366
+ this.ResourceName = opts.ResourceName;
367
+ }
368
+ };
369
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
370
+ var ResourceNotFoundException = _ResourceNotFoundException;
371
+ var _ResourceNotReadyException = class _ResourceNotReadyException extends ManagedBlockchainServiceException {
372
+ /**
373
+ * @internal
374
+ */
375
+ constructor(opts) {
376
+ super({
377
+ name: "ResourceNotReadyException",
378
+ $fault: "client",
379
+ ...opts
380
+ });
381
+ this.name = "ResourceNotReadyException";
382
+ this.$fault = "client";
383
+ Object.setPrototypeOf(this, _ResourceNotReadyException.prototype);
384
+ this.Message = opts.Message;
385
+ }
386
+ };
387
+ __name(_ResourceNotReadyException, "ResourceNotReadyException");
388
+ var ResourceNotReadyException = _ResourceNotReadyException;
389
+ var Framework = {
390
+ ETHEREUM: "ETHEREUM",
391
+ HYPERLEDGER_FABRIC: "HYPERLEDGER_FABRIC"
392
+ };
393
+ var Edition = {
394
+ STANDARD: "STANDARD",
395
+ STARTER: "STARTER"
396
+ };
397
+ var StateDBType = {
398
+ CouchDB: "CouchDB",
399
+ LevelDB: "LevelDB"
400
+ };
401
+ var MemberStatus = {
402
+ AVAILABLE: "AVAILABLE",
403
+ CREATE_FAILED: "CREATE_FAILED",
404
+ CREATING: "CREATING",
405
+ DELETED: "DELETED",
406
+ DELETING: "DELETING",
407
+ INACCESSIBLE_ENCRYPTION_KEY: "INACCESSIBLE_ENCRYPTION_KEY",
408
+ UPDATING: "UPDATING"
409
+ };
410
+ var NetworkStatus = {
411
+ AVAILABLE: "AVAILABLE",
412
+ CREATE_FAILED: "CREATE_FAILED",
413
+ CREATING: "CREATING",
414
+ DELETED: "DELETED",
415
+ DELETING: "DELETING"
416
+ };
417
+ var NodeStatus = {
418
+ AVAILABLE: "AVAILABLE",
419
+ CREATE_FAILED: "CREATE_FAILED",
420
+ CREATING: "CREATING",
421
+ DELETED: "DELETED",
422
+ DELETING: "DELETING",
423
+ FAILED: "FAILED",
424
+ INACCESSIBLE_ENCRYPTION_KEY: "INACCESSIBLE_ENCRYPTION_KEY",
425
+ UNHEALTHY: "UNHEALTHY",
426
+ UPDATING: "UPDATING"
427
+ };
428
+ var ProposalStatus = {
429
+ ACTION_FAILED: "ACTION_FAILED",
430
+ APPROVED: "APPROVED",
431
+ EXPIRED: "EXPIRED",
432
+ IN_PROGRESS: "IN_PROGRESS",
433
+ REJECTED: "REJECTED"
434
+ };
435
+ var _IllegalActionException = class _IllegalActionException extends ManagedBlockchainServiceException {
436
+ /**
437
+ * @internal
438
+ */
439
+ constructor(opts) {
440
+ super({
441
+ name: "IllegalActionException",
442
+ $fault: "client",
443
+ ...opts
444
+ });
445
+ this.name = "IllegalActionException";
446
+ this.$fault = "client";
447
+ Object.setPrototypeOf(this, _IllegalActionException.prototype);
448
+ this.Message = opts.Message;
449
+ }
450
+ };
451
+ __name(_IllegalActionException, "IllegalActionException");
452
+ var IllegalActionException = _IllegalActionException;
453
+ var InvitationStatus = {
454
+ ACCEPTED: "ACCEPTED",
455
+ ACCEPTING: "ACCEPTING",
456
+ EXPIRED: "EXPIRED",
457
+ PENDING: "PENDING",
458
+ REJECTED: "REJECTED"
459
+ };
460
+ var VoteValue = {
461
+ NO: "NO",
462
+ YES: "YES"
463
+ };
464
+ var MemberFabricConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
465
+ ...obj,
466
+ ...obj.AdminPassword && { AdminPassword: import_smithy_client.SENSITIVE_STRING }
467
+ }), "MemberFabricConfigurationFilterSensitiveLog");
468
+ var MemberFrameworkConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
469
+ ...obj,
470
+ ...obj.Fabric && { Fabric: MemberFabricConfigurationFilterSensitiveLog(obj.Fabric) }
471
+ }), "MemberFrameworkConfigurationFilterSensitiveLog");
472
+ var MemberConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
473
+ ...obj,
474
+ ...obj.FrameworkConfiguration && {
475
+ FrameworkConfiguration: MemberFrameworkConfigurationFilterSensitiveLog(obj.FrameworkConfiguration)
476
+ }
477
+ }), "MemberConfigurationFilterSensitiveLog");
478
+ var CreateMemberInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
479
+ ...obj,
480
+ ...obj.MemberConfiguration && {
481
+ MemberConfiguration: MemberConfigurationFilterSensitiveLog(obj.MemberConfiguration)
482
+ }
483
+ }), "CreateMemberInputFilterSensitiveLog");
484
+ var CreateNetworkInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
485
+ ...obj,
486
+ ...obj.MemberConfiguration && {
487
+ MemberConfiguration: MemberConfigurationFilterSensitiveLog(obj.MemberConfiguration)
488
+ }
489
+ }), "CreateNetworkInputFilterSensitiveLog");
490
+
491
+ // src/protocols/Aws_restJson1.ts
492
+ var se_CreateAccessorCommand = /* @__PURE__ */ __name(async (input, context) => {
493
+ const b = (0, import_core.requestBuilder)(input, context);
494
+ const headers = {
495
+ "content-type": "application/json"
496
+ };
497
+ b.bp("/accessors");
498
+ let body;
499
+ body = JSON.stringify(
500
+ (0, import_smithy_client.take)(input, {
501
+ AccessorType: [],
502
+ ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
503
+ NetworkType: [],
504
+ Tags: (_) => (0, import_smithy_client._json)(_)
505
+ })
506
+ );
507
+ b.m("POST").h(headers).b(body);
508
+ return b.build();
509
+ }, "se_CreateAccessorCommand");
510
+ var se_CreateMemberCommand = /* @__PURE__ */ __name(async (input, context) => {
511
+ const b = (0, import_core.requestBuilder)(input, context);
512
+ const headers = {
513
+ "content-type": "application/json"
514
+ };
515
+ b.bp("/networks/{NetworkId}/members");
516
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
517
+ let body;
518
+ body = JSON.stringify(
519
+ (0, import_smithy_client.take)(input, {
520
+ ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
521
+ InvitationId: [],
522
+ MemberConfiguration: (_) => (0, import_smithy_client._json)(_)
523
+ })
524
+ );
525
+ b.m("POST").h(headers).b(body);
526
+ return b.build();
527
+ }, "se_CreateMemberCommand");
528
+ var se_CreateNetworkCommand = /* @__PURE__ */ __name(async (input, context) => {
529
+ const b = (0, import_core.requestBuilder)(input, context);
530
+ const headers = {
531
+ "content-type": "application/json"
532
+ };
533
+ b.bp("/networks");
534
+ let body;
535
+ body = JSON.stringify(
536
+ (0, import_smithy_client.take)(input, {
537
+ ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
538
+ Description: [],
539
+ Framework: [],
540
+ FrameworkConfiguration: (_) => (0, import_smithy_client._json)(_),
541
+ FrameworkVersion: [],
542
+ MemberConfiguration: (_) => (0, import_smithy_client._json)(_),
543
+ Name: [],
544
+ Tags: (_) => (0, import_smithy_client._json)(_),
545
+ VotingPolicy: (_) => (0, import_smithy_client._json)(_)
546
+ })
547
+ );
548
+ b.m("POST").h(headers).b(body);
549
+ return b.build();
550
+ }, "se_CreateNetworkCommand");
551
+ var se_CreateNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
552
+ const b = (0, import_core.requestBuilder)(input, context);
553
+ const headers = {
554
+ "content-type": "application/json"
555
+ };
556
+ b.bp("/networks/{NetworkId}/nodes");
557
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
558
+ let body;
559
+ body = JSON.stringify(
560
+ (0, import_smithy_client.take)(input, {
561
+ ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
562
+ MemberId: [],
563
+ NodeConfiguration: (_) => (0, import_smithy_client._json)(_),
564
+ Tags: (_) => (0, import_smithy_client._json)(_)
565
+ })
566
+ );
567
+ b.m("POST").h(headers).b(body);
568
+ return b.build();
569
+ }, "se_CreateNodeCommand");
570
+ var se_CreateProposalCommand = /* @__PURE__ */ __name(async (input, context) => {
571
+ const b = (0, import_core.requestBuilder)(input, context);
572
+ const headers = {
573
+ "content-type": "application/json"
574
+ };
575
+ b.bp("/networks/{NetworkId}/proposals");
576
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
577
+ let body;
578
+ body = JSON.stringify(
579
+ (0, import_smithy_client.take)(input, {
580
+ Actions: (_) => (0, import_smithy_client._json)(_),
581
+ ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
582
+ Description: [],
583
+ MemberId: [],
584
+ Tags: (_) => (0, import_smithy_client._json)(_)
585
+ })
586
+ );
587
+ b.m("POST").h(headers).b(body);
588
+ return b.build();
589
+ }, "se_CreateProposalCommand");
590
+ var se_DeleteAccessorCommand = /* @__PURE__ */ __name(async (input, context) => {
591
+ const b = (0, import_core.requestBuilder)(input, context);
592
+ const headers = {};
593
+ b.bp("/accessors/{AccessorId}");
594
+ b.p("AccessorId", () => input.AccessorId, "{AccessorId}", false);
595
+ let body;
596
+ b.m("DELETE").h(headers).b(body);
597
+ return b.build();
598
+ }, "se_DeleteAccessorCommand");
599
+ var se_DeleteMemberCommand = /* @__PURE__ */ __name(async (input, context) => {
600
+ const b = (0, import_core.requestBuilder)(input, context);
601
+ const headers = {};
602
+ b.bp("/networks/{NetworkId}/members/{MemberId}");
603
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
604
+ b.p("MemberId", () => input.MemberId, "{MemberId}", false);
605
+ let body;
606
+ b.m("DELETE").h(headers).b(body);
607
+ return b.build();
608
+ }, "se_DeleteMemberCommand");
609
+ var se_DeleteNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
610
+ const b = (0, import_core.requestBuilder)(input, context);
611
+ const headers = {};
612
+ b.bp("/networks/{NetworkId}/nodes/{NodeId}");
613
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
614
+ b.p("NodeId", () => input.NodeId, "{NodeId}", false);
615
+ const query = (0, import_smithy_client.map)({
616
+ [_mI]: [, input[_MI]]
617
+ });
618
+ let body;
619
+ b.m("DELETE").h(headers).q(query).b(body);
620
+ return b.build();
621
+ }, "se_DeleteNodeCommand");
622
+ var se_GetAccessorCommand = /* @__PURE__ */ __name(async (input, context) => {
623
+ const b = (0, import_core.requestBuilder)(input, context);
624
+ const headers = {};
625
+ b.bp("/accessors/{AccessorId}");
626
+ b.p("AccessorId", () => input.AccessorId, "{AccessorId}", false);
627
+ let body;
628
+ b.m("GET").h(headers).b(body);
629
+ return b.build();
630
+ }, "se_GetAccessorCommand");
631
+ var se_GetMemberCommand = /* @__PURE__ */ __name(async (input, context) => {
632
+ const b = (0, import_core.requestBuilder)(input, context);
633
+ const headers = {};
634
+ b.bp("/networks/{NetworkId}/members/{MemberId}");
635
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
636
+ b.p("MemberId", () => input.MemberId, "{MemberId}", false);
637
+ let body;
638
+ b.m("GET").h(headers).b(body);
639
+ return b.build();
640
+ }, "se_GetMemberCommand");
641
+ var se_GetNetworkCommand = /* @__PURE__ */ __name(async (input, context) => {
642
+ const b = (0, import_core.requestBuilder)(input, context);
643
+ const headers = {};
644
+ b.bp("/networks/{NetworkId}");
645
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
646
+ let body;
647
+ b.m("GET").h(headers).b(body);
648
+ return b.build();
649
+ }, "se_GetNetworkCommand");
650
+ var se_GetNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
651
+ const b = (0, import_core.requestBuilder)(input, context);
652
+ const headers = {};
653
+ b.bp("/networks/{NetworkId}/nodes/{NodeId}");
654
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
655
+ b.p("NodeId", () => input.NodeId, "{NodeId}", false);
656
+ const query = (0, import_smithy_client.map)({
657
+ [_mI]: [, input[_MI]]
658
+ });
659
+ let body;
660
+ b.m("GET").h(headers).q(query).b(body);
661
+ return b.build();
662
+ }, "se_GetNodeCommand");
663
+ var se_GetProposalCommand = /* @__PURE__ */ __name(async (input, context) => {
664
+ const b = (0, import_core.requestBuilder)(input, context);
665
+ const headers = {};
666
+ b.bp("/networks/{NetworkId}/proposals/{ProposalId}");
667
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
668
+ b.p("ProposalId", () => input.ProposalId, "{ProposalId}", false);
669
+ let body;
670
+ b.m("GET").h(headers).b(body);
671
+ return b.build();
672
+ }, "se_GetProposalCommand");
673
+ var se_ListAccessorsCommand = /* @__PURE__ */ __name(async (input, context) => {
674
+ const b = (0, import_core.requestBuilder)(input, context);
675
+ const headers = {};
676
+ b.bp("/accessors");
677
+ const query = (0, import_smithy_client.map)({
678
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
679
+ [_nT]: [, input[_NT]],
680
+ [_nTe]: [, input[_NTe]]
681
+ });
682
+ let body;
683
+ b.m("GET").h(headers).q(query).b(body);
684
+ return b.build();
685
+ }, "se_ListAccessorsCommand");
686
+ var se_ListInvitationsCommand = /* @__PURE__ */ __name(async (input, context) => {
687
+ const b = (0, import_core.requestBuilder)(input, context);
688
+ const headers = {};
689
+ b.bp("/invitations");
690
+ const query = (0, import_smithy_client.map)({
691
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
692
+ [_nT]: [, input[_NT]]
693
+ });
694
+ let body;
695
+ b.m("GET").h(headers).q(query).b(body);
696
+ return b.build();
697
+ }, "se_ListInvitationsCommand");
698
+ var se_ListMembersCommand = /* @__PURE__ */ __name(async (input, context) => {
699
+ const b = (0, import_core.requestBuilder)(input, context);
700
+ const headers = {};
701
+ b.bp("/networks/{NetworkId}/members");
702
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
703
+ const query = (0, import_smithy_client.map)({
704
+ [_n]: [, input[_N]],
705
+ [_s]: [, input[_S]],
706
+ [_iO]: [() => input.IsOwned !== void 0, () => input[_IO].toString()],
707
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
708
+ [_nT]: [, input[_NT]]
709
+ });
710
+ let body;
711
+ b.m("GET").h(headers).q(query).b(body);
712
+ return b.build();
713
+ }, "se_ListMembersCommand");
714
+ var se_ListNetworksCommand = /* @__PURE__ */ __name(async (input, context) => {
715
+ const b = (0, import_core.requestBuilder)(input, context);
716
+ const headers = {};
717
+ b.bp("/networks");
718
+ const query = (0, import_smithy_client.map)({
719
+ [_n]: [, input[_N]],
720
+ [_f]: [, input[_F]],
721
+ [_s]: [, input[_S]],
722
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
723
+ [_nT]: [, input[_NT]]
724
+ });
725
+ let body;
726
+ b.m("GET").h(headers).q(query).b(body);
727
+ return b.build();
728
+ }, "se_ListNetworksCommand");
729
+ var se_ListNodesCommand = /* @__PURE__ */ __name(async (input, context) => {
730
+ const b = (0, import_core.requestBuilder)(input, context);
731
+ const headers = {};
732
+ b.bp("/networks/{NetworkId}/nodes");
733
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
734
+ const query = (0, import_smithy_client.map)({
735
+ [_mI]: [, input[_MI]],
736
+ [_s]: [, input[_S]],
737
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
738
+ [_nT]: [, input[_NT]]
739
+ });
740
+ let body;
741
+ b.m("GET").h(headers).q(query).b(body);
742
+ return b.build();
743
+ }, "se_ListNodesCommand");
744
+ var se_ListProposalsCommand = /* @__PURE__ */ __name(async (input, context) => {
745
+ const b = (0, import_core.requestBuilder)(input, context);
746
+ const headers = {};
747
+ b.bp("/networks/{NetworkId}/proposals");
748
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
749
+ const query = (0, import_smithy_client.map)({
750
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
751
+ [_nT]: [, input[_NT]]
752
+ });
753
+ let body;
754
+ b.m("GET").h(headers).q(query).b(body);
755
+ return b.build();
756
+ }, "se_ListProposalsCommand");
757
+ var se_ListProposalVotesCommand = /* @__PURE__ */ __name(async (input, context) => {
758
+ const b = (0, import_core.requestBuilder)(input, context);
759
+ const headers = {};
760
+ b.bp("/networks/{NetworkId}/proposals/{ProposalId}/votes");
761
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
762
+ b.p("ProposalId", () => input.ProposalId, "{ProposalId}", false);
763
+ const query = (0, import_smithy_client.map)({
764
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
765
+ [_nT]: [, input[_NT]]
766
+ });
767
+ let body;
768
+ b.m("GET").h(headers).q(query).b(body);
769
+ return b.build();
770
+ }, "se_ListProposalVotesCommand");
771
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
772
+ const b = (0, import_core.requestBuilder)(input, context);
773
+ const headers = {};
774
+ b.bp("/tags/{ResourceArn}");
775
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
776
+ let body;
777
+ b.m("GET").h(headers).b(body);
778
+ return b.build();
779
+ }, "se_ListTagsForResourceCommand");
780
+ var se_RejectInvitationCommand = /* @__PURE__ */ __name(async (input, context) => {
781
+ const b = (0, import_core.requestBuilder)(input, context);
782
+ const headers = {};
783
+ b.bp("/invitations/{InvitationId}");
784
+ b.p("InvitationId", () => input.InvitationId, "{InvitationId}", false);
785
+ let body;
786
+ b.m("DELETE").h(headers).b(body);
787
+ return b.build();
788
+ }, "se_RejectInvitationCommand");
789
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
790
+ const b = (0, import_core.requestBuilder)(input, context);
791
+ const headers = {
792
+ "content-type": "application/json"
793
+ };
794
+ b.bp("/tags/{ResourceArn}");
795
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
796
+ let body;
797
+ body = JSON.stringify(
798
+ (0, import_smithy_client.take)(input, {
799
+ Tags: (_) => (0, import_smithy_client._json)(_)
800
+ })
801
+ );
802
+ b.m("POST").h(headers).b(body);
803
+ return b.build();
804
+ }, "se_TagResourceCommand");
805
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
806
+ const b = (0, import_core.requestBuilder)(input, context);
807
+ const headers = {};
808
+ b.bp("/tags/{ResourceArn}");
809
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
810
+ const query = (0, import_smithy_client.map)({
811
+ [_tK]: [
812
+ (0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
813
+ () => (input[_TK] || []).map((_entry) => _entry)
814
+ ]
815
+ });
816
+ let body;
817
+ b.m("DELETE").h(headers).q(query).b(body);
818
+ return b.build();
819
+ }, "se_UntagResourceCommand");
820
+ var se_UpdateMemberCommand = /* @__PURE__ */ __name(async (input, context) => {
821
+ const b = (0, import_core.requestBuilder)(input, context);
822
+ const headers = {
823
+ "content-type": "application/json"
824
+ };
825
+ b.bp("/networks/{NetworkId}/members/{MemberId}");
826
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
827
+ b.p("MemberId", () => input.MemberId, "{MemberId}", false);
828
+ let body;
829
+ body = JSON.stringify(
830
+ (0, import_smithy_client.take)(input, {
831
+ LogPublishingConfiguration: (_) => (0, import_smithy_client._json)(_)
832
+ })
833
+ );
834
+ b.m("PATCH").h(headers).b(body);
835
+ return b.build();
836
+ }, "se_UpdateMemberCommand");
837
+ var se_UpdateNodeCommand = /* @__PURE__ */ __name(async (input, context) => {
838
+ const b = (0, import_core.requestBuilder)(input, context);
839
+ const headers = {
840
+ "content-type": "application/json"
841
+ };
842
+ b.bp("/networks/{NetworkId}/nodes/{NodeId}");
843
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
844
+ b.p("NodeId", () => input.NodeId, "{NodeId}", false);
845
+ let body;
846
+ body = JSON.stringify(
847
+ (0, import_smithy_client.take)(input, {
848
+ LogPublishingConfiguration: (_) => (0, import_smithy_client._json)(_),
849
+ MemberId: []
850
+ })
851
+ );
852
+ b.m("PATCH").h(headers).b(body);
853
+ return b.build();
854
+ }, "se_UpdateNodeCommand");
855
+ var se_VoteOnProposalCommand = /* @__PURE__ */ __name(async (input, context) => {
856
+ const b = (0, import_core.requestBuilder)(input, context);
857
+ const headers = {
858
+ "content-type": "application/json"
859
+ };
860
+ b.bp("/networks/{NetworkId}/proposals/{ProposalId}/votes");
861
+ b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
862
+ b.p("ProposalId", () => input.ProposalId, "{ProposalId}", false);
863
+ let body;
864
+ body = JSON.stringify(
865
+ (0, import_smithy_client.take)(input, {
866
+ Vote: [],
867
+ VoterMemberId: []
868
+ })
869
+ );
870
+ b.m("POST").h(headers).b(body);
871
+ return b.build();
872
+ }, "se_VoteOnProposalCommand");
873
+ var de_CreateAccessorCommand = /* @__PURE__ */ __name(async (output, context) => {
874
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
875
+ return de_CreateAccessorCommandError(output, context);
876
+ }
877
+ const contents = (0, import_smithy_client.map)({
878
+ $metadata: deserializeMetadata(output)
879
+ });
880
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
881
+ const doc = (0, import_smithy_client.take)(data, {
882
+ AccessorId: import_smithy_client.expectString,
883
+ BillingToken: import_smithy_client.expectString,
884
+ NetworkType: import_smithy_client.expectString
885
+ });
886
+ Object.assign(contents, doc);
887
+ return contents;
888
+ }, "de_CreateAccessorCommand");
889
+ var de_CreateAccessorCommandError = /* @__PURE__ */ __name(async (output, context) => {
890
+ const parsedOutput = {
891
+ ...output,
892
+ body: await parseErrorBody(output.body, context)
893
+ };
894
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
895
+ switch (errorCode) {
896
+ case "AccessDeniedException":
897
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
898
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
899
+ case "InternalServiceErrorException":
900
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
901
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
902
+ case "InvalidRequestException":
903
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
904
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
905
+ case "ResourceAlreadyExistsException":
906
+ case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
907
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
908
+ case "ResourceLimitExceededException":
909
+ case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
910
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
911
+ case "ThrottlingException":
912
+ case "com.amazonaws.managedblockchain#ThrottlingException":
913
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
914
+ case "TooManyTagsException":
915
+ case "com.amazonaws.managedblockchain#TooManyTagsException":
916
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
917
+ default:
918
+ const parsedBody = parsedOutput.body;
919
+ return throwDefaultError({
920
+ output,
921
+ parsedBody,
922
+ errorCode
923
+ });
924
+ }
925
+ }, "de_CreateAccessorCommandError");
926
+ var de_CreateMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
927
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
928
+ return de_CreateMemberCommandError(output, context);
929
+ }
930
+ const contents = (0, import_smithy_client.map)({
931
+ $metadata: deserializeMetadata(output)
932
+ });
933
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
934
+ const doc = (0, import_smithy_client.take)(data, {
935
+ MemberId: import_smithy_client.expectString
936
+ });
937
+ Object.assign(contents, doc);
938
+ return contents;
939
+ }, "de_CreateMemberCommand");
940
+ var de_CreateMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
941
+ const parsedOutput = {
942
+ ...output,
943
+ body: await parseErrorBody(output.body, context)
944
+ };
945
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
946
+ switch (errorCode) {
947
+ case "AccessDeniedException":
948
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
949
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
950
+ case "InternalServiceErrorException":
951
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
952
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
953
+ case "InvalidRequestException":
954
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
955
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
956
+ case "ResourceAlreadyExistsException":
957
+ case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
958
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
959
+ case "ResourceLimitExceededException":
960
+ case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
961
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
962
+ case "ResourceNotFoundException":
963
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
964
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
965
+ case "ResourceNotReadyException":
966
+ case "com.amazonaws.managedblockchain#ResourceNotReadyException":
967
+ throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
968
+ case "ThrottlingException":
969
+ case "com.amazonaws.managedblockchain#ThrottlingException":
970
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
971
+ case "TooManyTagsException":
972
+ case "com.amazonaws.managedblockchain#TooManyTagsException":
973
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
974
+ default:
975
+ const parsedBody = parsedOutput.body;
976
+ return throwDefaultError({
977
+ output,
978
+ parsedBody,
979
+ errorCode
980
+ });
981
+ }
982
+ }, "de_CreateMemberCommandError");
983
+ var de_CreateNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
984
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
985
+ return de_CreateNetworkCommandError(output, context);
986
+ }
987
+ const contents = (0, import_smithy_client.map)({
988
+ $metadata: deserializeMetadata(output)
989
+ });
990
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
991
+ const doc = (0, import_smithy_client.take)(data, {
992
+ MemberId: import_smithy_client.expectString,
993
+ NetworkId: import_smithy_client.expectString
994
+ });
995
+ Object.assign(contents, doc);
996
+ return contents;
997
+ }, "de_CreateNetworkCommand");
998
+ var de_CreateNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
999
+ const parsedOutput = {
1000
+ ...output,
1001
+ body: await parseErrorBody(output.body, context)
1002
+ };
1003
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1004
+ switch (errorCode) {
1005
+ case "AccessDeniedException":
1006
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1007
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1008
+ case "InternalServiceErrorException":
1009
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1010
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1011
+ case "InvalidRequestException":
1012
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1013
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1014
+ case "ResourceAlreadyExistsException":
1015
+ case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
1016
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1017
+ case "ResourceLimitExceededException":
1018
+ case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
1019
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1020
+ case "ThrottlingException":
1021
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1022
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1023
+ case "TooManyTagsException":
1024
+ case "com.amazonaws.managedblockchain#TooManyTagsException":
1025
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1026
+ default:
1027
+ const parsedBody = parsedOutput.body;
1028
+ return throwDefaultError({
1029
+ output,
1030
+ parsedBody,
1031
+ errorCode
1032
+ });
1033
+ }
1034
+ }, "de_CreateNetworkCommandError");
1035
+ var de_CreateNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1036
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1037
+ return de_CreateNodeCommandError(output, context);
1038
+ }
1039
+ const contents = (0, import_smithy_client.map)({
1040
+ $metadata: deserializeMetadata(output)
1041
+ });
1042
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1043
+ const doc = (0, import_smithy_client.take)(data, {
1044
+ NodeId: import_smithy_client.expectString
1045
+ });
1046
+ Object.assign(contents, doc);
1047
+ return contents;
1048
+ }, "de_CreateNodeCommand");
1049
+ var de_CreateNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1050
+ const parsedOutput = {
1051
+ ...output,
1052
+ body: await parseErrorBody(output.body, context)
1053
+ };
1054
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1055
+ switch (errorCode) {
1056
+ case "AccessDeniedException":
1057
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1058
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1059
+ case "InternalServiceErrorException":
1060
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1061
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1062
+ case "InvalidRequestException":
1063
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1064
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1065
+ case "ResourceAlreadyExistsException":
1066
+ case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
1067
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1068
+ case "ResourceLimitExceededException":
1069
+ case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
1070
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1071
+ case "ResourceNotFoundException":
1072
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1073
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1074
+ case "ResourceNotReadyException":
1075
+ case "com.amazonaws.managedblockchain#ResourceNotReadyException":
1076
+ throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
1077
+ case "ThrottlingException":
1078
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1079
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1080
+ case "TooManyTagsException":
1081
+ case "com.amazonaws.managedblockchain#TooManyTagsException":
1082
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1083
+ default:
1084
+ const parsedBody = parsedOutput.body;
1085
+ return throwDefaultError({
1086
+ output,
1087
+ parsedBody,
1088
+ errorCode
1089
+ });
1090
+ }
1091
+ }, "de_CreateNodeCommandError");
1092
+ var de_CreateProposalCommand = /* @__PURE__ */ __name(async (output, context) => {
1093
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1094
+ return de_CreateProposalCommandError(output, context);
1095
+ }
1096
+ const contents = (0, import_smithy_client.map)({
1097
+ $metadata: deserializeMetadata(output)
1098
+ });
1099
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1100
+ const doc = (0, import_smithy_client.take)(data, {
1101
+ ProposalId: import_smithy_client.expectString
1102
+ });
1103
+ Object.assign(contents, doc);
1104
+ return contents;
1105
+ }, "de_CreateProposalCommand");
1106
+ var de_CreateProposalCommandError = /* @__PURE__ */ __name(async (output, context) => {
1107
+ const parsedOutput = {
1108
+ ...output,
1109
+ body: await parseErrorBody(output.body, context)
1110
+ };
1111
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1112
+ switch (errorCode) {
1113
+ case "AccessDeniedException":
1114
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1115
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1116
+ case "InternalServiceErrorException":
1117
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1118
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1119
+ case "InvalidRequestException":
1120
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1121
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1122
+ case "ResourceNotFoundException":
1123
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1124
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1125
+ case "ResourceNotReadyException":
1126
+ case "com.amazonaws.managedblockchain#ResourceNotReadyException":
1127
+ throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
1128
+ case "ThrottlingException":
1129
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1130
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1131
+ case "TooManyTagsException":
1132
+ case "com.amazonaws.managedblockchain#TooManyTagsException":
1133
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1134
+ default:
1135
+ const parsedBody = parsedOutput.body;
1136
+ return throwDefaultError({
1137
+ output,
1138
+ parsedBody,
1139
+ errorCode
1140
+ });
1141
+ }
1142
+ }, "de_CreateProposalCommandError");
1143
+ var de_DeleteAccessorCommand = /* @__PURE__ */ __name(async (output, context) => {
1144
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1145
+ return de_DeleteAccessorCommandError(output, context);
1146
+ }
1147
+ const contents = (0, import_smithy_client.map)({
1148
+ $metadata: deserializeMetadata(output)
1149
+ });
1150
+ await (0, import_smithy_client.collectBody)(output.body, context);
1151
+ return contents;
1152
+ }, "de_DeleteAccessorCommand");
1153
+ var de_DeleteAccessorCommandError = /* @__PURE__ */ __name(async (output, context) => {
1154
+ const parsedOutput = {
1155
+ ...output,
1156
+ body: await parseErrorBody(output.body, context)
1157
+ };
1158
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1159
+ switch (errorCode) {
1160
+ case "AccessDeniedException":
1161
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1162
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1163
+ case "InternalServiceErrorException":
1164
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1165
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1166
+ case "InvalidRequestException":
1167
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1168
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1169
+ case "ResourceNotFoundException":
1170
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1171
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1172
+ case "ThrottlingException":
1173
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1174
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1175
+ default:
1176
+ const parsedBody = parsedOutput.body;
1177
+ return throwDefaultError({
1178
+ output,
1179
+ parsedBody,
1180
+ errorCode
1181
+ });
1182
+ }
1183
+ }, "de_DeleteAccessorCommandError");
1184
+ var de_DeleteMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
1185
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1186
+ return de_DeleteMemberCommandError(output, context);
1187
+ }
1188
+ const contents = (0, import_smithy_client.map)({
1189
+ $metadata: deserializeMetadata(output)
1190
+ });
1191
+ await (0, import_smithy_client.collectBody)(output.body, context);
1192
+ return contents;
1193
+ }, "de_DeleteMemberCommand");
1194
+ var de_DeleteMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
1195
+ const parsedOutput = {
1196
+ ...output,
1197
+ body: await parseErrorBody(output.body, context)
1198
+ };
1199
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1200
+ switch (errorCode) {
1201
+ case "AccessDeniedException":
1202
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1203
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1204
+ case "InternalServiceErrorException":
1205
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1206
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1207
+ case "InvalidRequestException":
1208
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1209
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1210
+ case "ResourceNotFoundException":
1211
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1212
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1213
+ case "ResourceNotReadyException":
1214
+ case "com.amazonaws.managedblockchain#ResourceNotReadyException":
1215
+ throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
1216
+ case "ThrottlingException":
1217
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1218
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1219
+ default:
1220
+ const parsedBody = parsedOutput.body;
1221
+ return throwDefaultError({
1222
+ output,
1223
+ parsedBody,
1224
+ errorCode
1225
+ });
1226
+ }
1227
+ }, "de_DeleteMemberCommandError");
1228
+ var de_DeleteNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1229
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1230
+ return de_DeleteNodeCommandError(output, context);
1231
+ }
1232
+ const contents = (0, import_smithy_client.map)({
1233
+ $metadata: deserializeMetadata(output)
1234
+ });
1235
+ await (0, import_smithy_client.collectBody)(output.body, context);
1236
+ return contents;
1237
+ }, "de_DeleteNodeCommand");
1238
+ var de_DeleteNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1239
+ const parsedOutput = {
1240
+ ...output,
1241
+ body: await parseErrorBody(output.body, context)
1242
+ };
1243
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1244
+ switch (errorCode) {
1245
+ case "AccessDeniedException":
1246
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1247
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1248
+ case "InternalServiceErrorException":
1249
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1250
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1251
+ case "InvalidRequestException":
1252
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1253
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1254
+ case "ResourceNotFoundException":
1255
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1256
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1257
+ case "ResourceNotReadyException":
1258
+ case "com.amazonaws.managedblockchain#ResourceNotReadyException":
1259
+ throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
1260
+ case "ThrottlingException":
1261
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1262
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1263
+ default:
1264
+ const parsedBody = parsedOutput.body;
1265
+ return throwDefaultError({
1266
+ output,
1267
+ parsedBody,
1268
+ errorCode
1269
+ });
1270
+ }
1271
+ }, "de_DeleteNodeCommandError");
1272
+ var de_GetAccessorCommand = /* @__PURE__ */ __name(async (output, context) => {
1273
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1274
+ return de_GetAccessorCommandError(output, context);
1275
+ }
1276
+ const contents = (0, import_smithy_client.map)({
1277
+ $metadata: deserializeMetadata(output)
1278
+ });
1279
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1280
+ const doc = (0, import_smithy_client.take)(data, {
1281
+ Accessor: (_) => de_Accessor(_, context)
1282
+ });
1283
+ Object.assign(contents, doc);
1284
+ return contents;
1285
+ }, "de_GetAccessorCommand");
1286
+ var de_GetAccessorCommandError = /* @__PURE__ */ __name(async (output, context) => {
1287
+ const parsedOutput = {
1288
+ ...output,
1289
+ body: await parseErrorBody(output.body, context)
1290
+ };
1291
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1292
+ switch (errorCode) {
1293
+ case "AccessDeniedException":
1294
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1295
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1296
+ case "InternalServiceErrorException":
1297
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1298
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1299
+ case "InvalidRequestException":
1300
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1301
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1302
+ case "ResourceNotFoundException":
1303
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1304
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1305
+ case "ThrottlingException":
1306
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1307
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1308
+ default:
1309
+ const parsedBody = parsedOutput.body;
1310
+ return throwDefaultError({
1311
+ output,
1312
+ parsedBody,
1313
+ errorCode
1314
+ });
1315
+ }
1316
+ }, "de_GetAccessorCommandError");
1317
+ var de_GetMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
1318
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1319
+ return de_GetMemberCommandError(output, context);
1320
+ }
1321
+ const contents = (0, import_smithy_client.map)({
1322
+ $metadata: deserializeMetadata(output)
1323
+ });
1324
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1325
+ const doc = (0, import_smithy_client.take)(data, {
1326
+ Member: (_) => de_Member(_, context)
1327
+ });
1328
+ Object.assign(contents, doc);
1329
+ return contents;
1330
+ }, "de_GetMemberCommand");
1331
+ var de_GetMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
1332
+ const parsedOutput = {
1333
+ ...output,
1334
+ body: await parseErrorBody(output.body, context)
1335
+ };
1336
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1337
+ switch (errorCode) {
1338
+ case "AccessDeniedException":
1339
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1340
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1341
+ case "InternalServiceErrorException":
1342
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1343
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1344
+ case "InvalidRequestException":
1345
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1346
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1347
+ case "ResourceNotFoundException":
1348
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1349
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1350
+ case "ThrottlingException":
1351
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1352
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1353
+ default:
1354
+ const parsedBody = parsedOutput.body;
1355
+ return throwDefaultError({
1356
+ output,
1357
+ parsedBody,
1358
+ errorCode
1359
+ });
1360
+ }
1361
+ }, "de_GetMemberCommandError");
1362
+ var de_GetNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
1363
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1364
+ return de_GetNetworkCommandError(output, context);
1365
+ }
1366
+ const contents = (0, import_smithy_client.map)({
1367
+ $metadata: deserializeMetadata(output)
1368
+ });
1369
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1370
+ const doc = (0, import_smithy_client.take)(data, {
1371
+ Network: (_) => de_Network(_, context)
1372
+ });
1373
+ Object.assign(contents, doc);
1374
+ return contents;
1375
+ }, "de_GetNetworkCommand");
1376
+ var de_GetNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
1377
+ const parsedOutput = {
1378
+ ...output,
1379
+ body: await parseErrorBody(output.body, context)
1380
+ };
1381
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1382
+ switch (errorCode) {
1383
+ case "AccessDeniedException":
1384
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1385
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1386
+ case "InternalServiceErrorException":
1387
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1388
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1389
+ case "InvalidRequestException":
1390
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1391
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1392
+ case "ResourceNotFoundException":
1393
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1394
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1395
+ case "ThrottlingException":
1396
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1397
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1398
+ default:
1399
+ const parsedBody = parsedOutput.body;
1400
+ return throwDefaultError({
1401
+ output,
1402
+ parsedBody,
1403
+ errorCode
1404
+ });
1405
+ }
1406
+ }, "de_GetNetworkCommandError");
1407
+ var de_GetNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1408
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1409
+ return de_GetNodeCommandError(output, context);
1410
+ }
1411
+ const contents = (0, import_smithy_client.map)({
1412
+ $metadata: deserializeMetadata(output)
1413
+ });
1414
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1415
+ const doc = (0, import_smithy_client.take)(data, {
1416
+ Node: (_) => de_Node(_, context)
1417
+ });
1418
+ Object.assign(contents, doc);
1419
+ return contents;
1420
+ }, "de_GetNodeCommand");
1421
+ var de_GetNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1422
+ const parsedOutput = {
1423
+ ...output,
1424
+ body: await parseErrorBody(output.body, context)
1425
+ };
1426
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1427
+ switch (errorCode) {
1428
+ case "AccessDeniedException":
1429
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1430
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1431
+ case "InternalServiceErrorException":
1432
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1433
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1434
+ case "InvalidRequestException":
1435
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1436
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1437
+ case "ResourceNotFoundException":
1438
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1439
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1440
+ case "ThrottlingException":
1441
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1442
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1443
+ default:
1444
+ const parsedBody = parsedOutput.body;
1445
+ return throwDefaultError({
1446
+ output,
1447
+ parsedBody,
1448
+ errorCode
1449
+ });
1450
+ }
1451
+ }, "de_GetNodeCommandError");
1452
+ var de_GetProposalCommand = /* @__PURE__ */ __name(async (output, context) => {
1453
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1454
+ return de_GetProposalCommandError(output, context);
1455
+ }
1456
+ const contents = (0, import_smithy_client.map)({
1457
+ $metadata: deserializeMetadata(output)
1458
+ });
1459
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1460
+ const doc = (0, import_smithy_client.take)(data, {
1461
+ Proposal: (_) => de_Proposal(_, context)
1462
+ });
1463
+ Object.assign(contents, doc);
1464
+ return contents;
1465
+ }, "de_GetProposalCommand");
1466
+ var de_GetProposalCommandError = /* @__PURE__ */ __name(async (output, context) => {
1467
+ const parsedOutput = {
1468
+ ...output,
1469
+ body: await parseErrorBody(output.body, context)
1470
+ };
1471
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1472
+ switch (errorCode) {
1473
+ case "AccessDeniedException":
1474
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1475
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1476
+ case "InternalServiceErrorException":
1477
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1478
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1479
+ case "InvalidRequestException":
1480
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1481
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1482
+ case "ResourceNotFoundException":
1483
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1484
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1485
+ case "ThrottlingException":
1486
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1487
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1488
+ default:
1489
+ const parsedBody = parsedOutput.body;
1490
+ return throwDefaultError({
1491
+ output,
1492
+ parsedBody,
1493
+ errorCode
1494
+ });
1495
+ }
1496
+ }, "de_GetProposalCommandError");
1497
+ var de_ListAccessorsCommand = /* @__PURE__ */ __name(async (output, context) => {
1498
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1499
+ return de_ListAccessorsCommandError(output, context);
1500
+ }
1501
+ const contents = (0, import_smithy_client.map)({
1502
+ $metadata: deserializeMetadata(output)
1503
+ });
1504
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1505
+ const doc = (0, import_smithy_client.take)(data, {
1506
+ Accessors: (_) => de_AccessorSummaryList(_, context),
1507
+ NextToken: import_smithy_client.expectString
1508
+ });
1509
+ Object.assign(contents, doc);
1510
+ return contents;
1511
+ }, "de_ListAccessorsCommand");
1512
+ var de_ListAccessorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1513
+ const parsedOutput = {
1514
+ ...output,
1515
+ body: await parseErrorBody(output.body, context)
1516
+ };
1517
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1518
+ switch (errorCode) {
1519
+ case "AccessDeniedException":
1520
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1521
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1522
+ case "InternalServiceErrorException":
1523
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1524
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1525
+ case "InvalidRequestException":
1526
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1527
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1528
+ case "ThrottlingException":
1529
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1530
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1531
+ default:
1532
+ const parsedBody = parsedOutput.body;
1533
+ return throwDefaultError({
1534
+ output,
1535
+ parsedBody,
1536
+ errorCode
1537
+ });
1538
+ }
1539
+ }, "de_ListAccessorsCommandError");
1540
+ var de_ListInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1541
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1542
+ return de_ListInvitationsCommandError(output, context);
1543
+ }
1544
+ const contents = (0, import_smithy_client.map)({
1545
+ $metadata: deserializeMetadata(output)
1546
+ });
1547
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1548
+ const doc = (0, import_smithy_client.take)(data, {
1549
+ Invitations: (_) => de_InvitationList(_, context),
1550
+ NextToken: import_smithy_client.expectString
1551
+ });
1552
+ Object.assign(contents, doc);
1553
+ return contents;
1554
+ }, "de_ListInvitationsCommand");
1555
+ var de_ListInvitationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1556
+ const parsedOutput = {
1557
+ ...output,
1558
+ body: await parseErrorBody(output.body, context)
1559
+ };
1560
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1561
+ switch (errorCode) {
1562
+ case "AccessDeniedException":
1563
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1564
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1565
+ case "InternalServiceErrorException":
1566
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1567
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1568
+ case "InvalidRequestException":
1569
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1570
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1571
+ case "ResourceLimitExceededException":
1572
+ case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
1573
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1574
+ case "ResourceNotFoundException":
1575
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1576
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1577
+ case "ThrottlingException":
1578
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1579
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1580
+ default:
1581
+ const parsedBody = parsedOutput.body;
1582
+ return throwDefaultError({
1583
+ output,
1584
+ parsedBody,
1585
+ errorCode
1586
+ });
1587
+ }
1588
+ }, "de_ListInvitationsCommandError");
1589
+ var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
1590
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1591
+ return de_ListMembersCommandError(output, context);
1592
+ }
1593
+ const contents = (0, import_smithy_client.map)({
1594
+ $metadata: deserializeMetadata(output)
1595
+ });
1596
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1597
+ const doc = (0, import_smithy_client.take)(data, {
1598
+ Members: (_) => de_MemberSummaryList(_, context),
1599
+ NextToken: import_smithy_client.expectString
1600
+ });
1601
+ Object.assign(contents, doc);
1602
+ return contents;
1603
+ }, "de_ListMembersCommand");
1604
+ var de_ListMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1605
+ const parsedOutput = {
1606
+ ...output,
1607
+ body: await parseErrorBody(output.body, context)
1608
+ };
1609
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1610
+ switch (errorCode) {
1611
+ case "AccessDeniedException":
1612
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1613
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1614
+ case "InternalServiceErrorException":
1615
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1616
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1617
+ case "InvalidRequestException":
1618
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1619
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1620
+ case "ThrottlingException":
1621
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1622
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1623
+ default:
1624
+ const parsedBody = parsedOutput.body;
1625
+ return throwDefaultError({
1626
+ output,
1627
+ parsedBody,
1628
+ errorCode
1629
+ });
1630
+ }
1631
+ }, "de_ListMembersCommandError");
1632
+ var de_ListNetworksCommand = /* @__PURE__ */ __name(async (output, context) => {
1633
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1634
+ return de_ListNetworksCommandError(output, context);
1635
+ }
1636
+ const contents = (0, import_smithy_client.map)({
1637
+ $metadata: deserializeMetadata(output)
1638
+ });
1639
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1640
+ const doc = (0, import_smithy_client.take)(data, {
1641
+ Networks: (_) => de_NetworkSummaryList(_, context),
1642
+ NextToken: import_smithy_client.expectString
1643
+ });
1644
+ Object.assign(contents, doc);
1645
+ return contents;
1646
+ }, "de_ListNetworksCommand");
1647
+ var de_ListNetworksCommandError = /* @__PURE__ */ __name(async (output, context) => {
1648
+ const parsedOutput = {
1649
+ ...output,
1650
+ body: await parseErrorBody(output.body, context)
1651
+ };
1652
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1653
+ switch (errorCode) {
1654
+ case "AccessDeniedException":
1655
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1656
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1657
+ case "InternalServiceErrorException":
1658
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1659
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1660
+ case "InvalidRequestException":
1661
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1662
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1663
+ case "ThrottlingException":
1664
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1665
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1666
+ default:
1667
+ const parsedBody = parsedOutput.body;
1668
+ return throwDefaultError({
1669
+ output,
1670
+ parsedBody,
1671
+ errorCode
1672
+ });
1673
+ }
1674
+ }, "de_ListNetworksCommandError");
1675
+ var de_ListNodesCommand = /* @__PURE__ */ __name(async (output, context) => {
1676
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1677
+ return de_ListNodesCommandError(output, context);
1678
+ }
1679
+ const contents = (0, import_smithy_client.map)({
1680
+ $metadata: deserializeMetadata(output)
1681
+ });
1682
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1683
+ const doc = (0, import_smithy_client.take)(data, {
1684
+ NextToken: import_smithy_client.expectString,
1685
+ Nodes: (_) => de_NodeSummaryList(_, context)
1686
+ });
1687
+ Object.assign(contents, doc);
1688
+ return contents;
1689
+ }, "de_ListNodesCommand");
1690
+ var de_ListNodesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1691
+ const parsedOutput = {
1692
+ ...output,
1693
+ body: await parseErrorBody(output.body, context)
1694
+ };
1695
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1696
+ switch (errorCode) {
1697
+ case "AccessDeniedException":
1698
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1699
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1700
+ case "InternalServiceErrorException":
1701
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1702
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1703
+ case "InvalidRequestException":
1704
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1705
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1706
+ case "ThrottlingException":
1707
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1708
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1709
+ default:
1710
+ const parsedBody = parsedOutput.body;
1711
+ return throwDefaultError({
1712
+ output,
1713
+ parsedBody,
1714
+ errorCode
1715
+ });
1716
+ }
1717
+ }, "de_ListNodesCommandError");
1718
+ var de_ListProposalsCommand = /* @__PURE__ */ __name(async (output, context) => {
1719
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1720
+ return de_ListProposalsCommandError(output, context);
1721
+ }
1722
+ const contents = (0, import_smithy_client.map)({
1723
+ $metadata: deserializeMetadata(output)
1724
+ });
1725
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1726
+ const doc = (0, import_smithy_client.take)(data, {
1727
+ NextToken: import_smithy_client.expectString,
1728
+ Proposals: (_) => de_ProposalSummaryList(_, context)
1729
+ });
1730
+ Object.assign(contents, doc);
1731
+ return contents;
1732
+ }, "de_ListProposalsCommand");
1733
+ var de_ListProposalsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1734
+ const parsedOutput = {
1735
+ ...output,
1736
+ body: await parseErrorBody(output.body, context)
1737
+ };
1738
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1739
+ switch (errorCode) {
1740
+ case "AccessDeniedException":
1741
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1742
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1743
+ case "InternalServiceErrorException":
1744
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1745
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1746
+ case "InvalidRequestException":
1747
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1748
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1749
+ case "ResourceNotFoundException":
1750
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1751
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1752
+ case "ThrottlingException":
1753
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1754
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1755
+ default:
1756
+ const parsedBody = parsedOutput.body;
1757
+ return throwDefaultError({
1758
+ output,
1759
+ parsedBody,
1760
+ errorCode
1761
+ });
1762
+ }
1763
+ }, "de_ListProposalsCommandError");
1764
+ var de_ListProposalVotesCommand = /* @__PURE__ */ __name(async (output, context) => {
1765
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1766
+ return de_ListProposalVotesCommandError(output, context);
1767
+ }
1768
+ const contents = (0, import_smithy_client.map)({
1769
+ $metadata: deserializeMetadata(output)
1770
+ });
1771
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1772
+ const doc = (0, import_smithy_client.take)(data, {
1773
+ NextToken: import_smithy_client.expectString,
1774
+ ProposalVotes: import_smithy_client._json
1775
+ });
1776
+ Object.assign(contents, doc);
1777
+ return contents;
1778
+ }, "de_ListProposalVotesCommand");
1779
+ var de_ListProposalVotesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1780
+ const parsedOutput = {
1781
+ ...output,
1782
+ body: await parseErrorBody(output.body, context)
1783
+ };
1784
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1785
+ switch (errorCode) {
1786
+ case "AccessDeniedException":
1787
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1788
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1789
+ case "InternalServiceErrorException":
1790
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1791
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1792
+ case "InvalidRequestException":
1793
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1794
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1795
+ case "ThrottlingException":
1796
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1797
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1798
+ default:
1799
+ const parsedBody = parsedOutput.body;
1800
+ return throwDefaultError({
1801
+ output,
1802
+ parsedBody,
1803
+ errorCode
1804
+ });
1805
+ }
1806
+ }, "de_ListProposalVotesCommandError");
1807
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1808
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1809
+ return de_ListTagsForResourceCommandError(output, context);
1810
+ }
1811
+ const contents = (0, import_smithy_client.map)({
1812
+ $metadata: deserializeMetadata(output)
1813
+ });
1814
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1815
+ const doc = (0, import_smithy_client.take)(data, {
1816
+ Tags: import_smithy_client._json
1817
+ });
1818
+ Object.assign(contents, doc);
1819
+ return contents;
1820
+ }, "de_ListTagsForResourceCommand");
1821
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1822
+ const parsedOutput = {
1823
+ ...output,
1824
+ body: await parseErrorBody(output.body, context)
1825
+ };
1826
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1827
+ switch (errorCode) {
1828
+ case "InternalServiceErrorException":
1829
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1830
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1831
+ case "InvalidRequestException":
1832
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1833
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1834
+ case "ResourceNotFoundException":
1835
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1836
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1837
+ case "ResourceNotReadyException":
1838
+ case "com.amazonaws.managedblockchain#ResourceNotReadyException":
1839
+ throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
1840
+ default:
1841
+ const parsedBody = parsedOutput.body;
1842
+ return throwDefaultError({
1843
+ output,
1844
+ parsedBody,
1845
+ errorCode
1846
+ });
1847
+ }
1848
+ }, "de_ListTagsForResourceCommandError");
1849
+ var de_RejectInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
1850
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1851
+ return de_RejectInvitationCommandError(output, context);
1852
+ }
1853
+ const contents = (0, import_smithy_client.map)({
1854
+ $metadata: deserializeMetadata(output)
1855
+ });
1856
+ await (0, import_smithy_client.collectBody)(output.body, context);
1857
+ return contents;
1858
+ }, "de_RejectInvitationCommand");
1859
+ var de_RejectInvitationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1860
+ const parsedOutput = {
1861
+ ...output,
1862
+ body: await parseErrorBody(output.body, context)
1863
+ };
1864
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1865
+ switch (errorCode) {
1866
+ case "AccessDeniedException":
1867
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1868
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1869
+ case "IllegalActionException":
1870
+ case "com.amazonaws.managedblockchain#IllegalActionException":
1871
+ throw await de_IllegalActionExceptionRes(parsedOutput, context);
1872
+ case "InternalServiceErrorException":
1873
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1874
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1875
+ case "InvalidRequestException":
1876
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1877
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1878
+ case "ResourceNotFoundException":
1879
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1880
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1881
+ case "ThrottlingException":
1882
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1883
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1884
+ default:
1885
+ const parsedBody = parsedOutput.body;
1886
+ return throwDefaultError({
1887
+ output,
1888
+ parsedBody,
1889
+ errorCode
1890
+ });
1891
+ }
1892
+ }, "de_RejectInvitationCommandError");
1893
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1894
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1895
+ return de_TagResourceCommandError(output, context);
1896
+ }
1897
+ const contents = (0, import_smithy_client.map)({
1898
+ $metadata: deserializeMetadata(output)
1899
+ });
1900
+ await (0, import_smithy_client.collectBody)(output.body, context);
1901
+ return contents;
1902
+ }, "de_TagResourceCommand");
1903
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1904
+ const parsedOutput = {
1905
+ ...output,
1906
+ body: await parseErrorBody(output.body, context)
1907
+ };
1908
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1909
+ switch (errorCode) {
1910
+ case "InternalServiceErrorException":
1911
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1912
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1913
+ case "InvalidRequestException":
1914
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1915
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1916
+ case "ResourceNotFoundException":
1917
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1918
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1919
+ case "ResourceNotReadyException":
1920
+ case "com.amazonaws.managedblockchain#ResourceNotReadyException":
1921
+ throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
1922
+ case "TooManyTagsException":
1923
+ case "com.amazonaws.managedblockchain#TooManyTagsException":
1924
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1925
+ default:
1926
+ const parsedBody = parsedOutput.body;
1927
+ return throwDefaultError({
1928
+ output,
1929
+ parsedBody,
1930
+ errorCode
1931
+ });
1932
+ }
1933
+ }, "de_TagResourceCommandError");
1934
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1935
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1936
+ return de_UntagResourceCommandError(output, context);
1937
+ }
1938
+ const contents = (0, import_smithy_client.map)({
1939
+ $metadata: deserializeMetadata(output)
1940
+ });
1941
+ await (0, import_smithy_client.collectBody)(output.body, context);
1942
+ return contents;
1943
+ }, "de_UntagResourceCommand");
1944
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1945
+ const parsedOutput = {
1946
+ ...output,
1947
+ body: await parseErrorBody(output.body, context)
1948
+ };
1949
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1950
+ switch (errorCode) {
1951
+ case "InternalServiceErrorException":
1952
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1953
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1954
+ case "InvalidRequestException":
1955
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1956
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1957
+ case "ResourceNotFoundException":
1958
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1959
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1960
+ case "ResourceNotReadyException":
1961
+ case "com.amazonaws.managedblockchain#ResourceNotReadyException":
1962
+ throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
1963
+ default:
1964
+ const parsedBody = parsedOutput.body;
1965
+ return throwDefaultError({
1966
+ output,
1967
+ parsedBody,
1968
+ errorCode
1969
+ });
1970
+ }
1971
+ }, "de_UntagResourceCommandError");
1972
+ var de_UpdateMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
1973
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1974
+ return de_UpdateMemberCommandError(output, context);
1975
+ }
1976
+ const contents = (0, import_smithy_client.map)({
1977
+ $metadata: deserializeMetadata(output)
1978
+ });
1979
+ await (0, import_smithy_client.collectBody)(output.body, context);
1980
+ return contents;
1981
+ }, "de_UpdateMemberCommand");
1982
+ var de_UpdateMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
1983
+ const parsedOutput = {
1984
+ ...output,
1985
+ body: await parseErrorBody(output.body, context)
1986
+ };
1987
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1988
+ switch (errorCode) {
1989
+ case "AccessDeniedException":
1990
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1991
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1992
+ case "InternalServiceErrorException":
1993
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1994
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1995
+ case "InvalidRequestException":
1996
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1997
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1998
+ case "ResourceNotFoundException":
1999
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
2000
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2001
+ case "ThrottlingException":
2002
+ case "com.amazonaws.managedblockchain#ThrottlingException":
2003
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2004
+ default:
2005
+ const parsedBody = parsedOutput.body;
2006
+ return throwDefaultError({
2007
+ output,
2008
+ parsedBody,
2009
+ errorCode
2010
+ });
2011
+ }
2012
+ }, "de_UpdateMemberCommandError");
2013
+ var de_UpdateNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
2014
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2015
+ return de_UpdateNodeCommandError(output, context);
2016
+ }
2017
+ const contents = (0, import_smithy_client.map)({
2018
+ $metadata: deserializeMetadata(output)
2019
+ });
2020
+ await (0, import_smithy_client.collectBody)(output.body, context);
2021
+ return contents;
2022
+ }, "de_UpdateNodeCommand");
2023
+ var de_UpdateNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
2024
+ const parsedOutput = {
2025
+ ...output,
2026
+ body: await parseErrorBody(output.body, context)
2027
+ };
2028
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2029
+ switch (errorCode) {
2030
+ case "AccessDeniedException":
2031
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
2032
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2033
+ case "InternalServiceErrorException":
2034
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
2035
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2036
+ case "InvalidRequestException":
2037
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
2038
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2039
+ case "ResourceNotFoundException":
2040
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
2041
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2042
+ case "ThrottlingException":
2043
+ case "com.amazonaws.managedblockchain#ThrottlingException":
2044
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2045
+ default:
2046
+ const parsedBody = parsedOutput.body;
2047
+ return throwDefaultError({
2048
+ output,
2049
+ parsedBody,
2050
+ errorCode
2051
+ });
2052
+ }
2053
+ }, "de_UpdateNodeCommandError");
2054
+ var de_VoteOnProposalCommand = /* @__PURE__ */ __name(async (output, context) => {
2055
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2056
+ return de_VoteOnProposalCommandError(output, context);
2057
+ }
2058
+ const contents = (0, import_smithy_client.map)({
2059
+ $metadata: deserializeMetadata(output)
2060
+ });
2061
+ await (0, import_smithy_client.collectBody)(output.body, context);
2062
+ return contents;
2063
+ }, "de_VoteOnProposalCommand");
2064
+ var de_VoteOnProposalCommandError = /* @__PURE__ */ __name(async (output, context) => {
2065
+ const parsedOutput = {
2066
+ ...output,
2067
+ body: await parseErrorBody(output.body, context)
2068
+ };
2069
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2070
+ switch (errorCode) {
2071
+ case "AccessDeniedException":
2072
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
2073
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2074
+ case "IllegalActionException":
2075
+ case "com.amazonaws.managedblockchain#IllegalActionException":
2076
+ throw await de_IllegalActionExceptionRes(parsedOutput, context);
2077
+ case "InternalServiceErrorException":
2078
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
2079
+ throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2080
+ case "InvalidRequestException":
2081
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
2082
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2083
+ case "ResourceNotFoundException":
2084
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
2085
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2086
+ case "ThrottlingException":
2087
+ case "com.amazonaws.managedblockchain#ThrottlingException":
2088
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2089
+ default:
2090
+ const parsedBody = parsedOutput.body;
2091
+ return throwDefaultError({
2092
+ output,
2093
+ parsedBody,
2094
+ errorCode
2095
+ });
2096
+ }
2097
+ }, "de_VoteOnProposalCommandError");
2098
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(ManagedBlockchainServiceException);
2099
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2100
+ const contents = (0, import_smithy_client.map)({});
2101
+ const data = parsedOutput.body;
2102
+ const doc = (0, import_smithy_client.take)(data, {
2103
+ Message: import_smithy_client.expectString
2104
+ });
2105
+ Object.assign(contents, doc);
2106
+ const exception = new AccessDeniedException({
2107
+ $metadata: deserializeMetadata(parsedOutput),
2108
+ ...contents
2109
+ });
2110
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2111
+ }, "de_AccessDeniedExceptionRes");
2112
+ var de_IllegalActionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2113
+ const contents = (0, import_smithy_client.map)({});
2114
+ const data = parsedOutput.body;
2115
+ const doc = (0, import_smithy_client.take)(data, {
2116
+ Message: import_smithy_client.expectString
2117
+ });
2118
+ Object.assign(contents, doc);
2119
+ const exception = new IllegalActionException({
2120
+ $metadata: deserializeMetadata(parsedOutput),
2121
+ ...contents
2122
+ });
2123
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2124
+ }, "de_IllegalActionExceptionRes");
2125
+ var de_InternalServiceErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2126
+ const contents = (0, import_smithy_client.map)({});
2127
+ const data = parsedOutput.body;
2128
+ const doc = (0, import_smithy_client.take)(data, {});
2129
+ Object.assign(contents, doc);
2130
+ const exception = new InternalServiceErrorException({
2131
+ $metadata: deserializeMetadata(parsedOutput),
2132
+ ...contents
2133
+ });
2134
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2135
+ }, "de_InternalServiceErrorExceptionRes");
2136
+ var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2137
+ const contents = (0, import_smithy_client.map)({});
2138
+ const data = parsedOutput.body;
2139
+ const doc = (0, import_smithy_client.take)(data, {
2140
+ Message: import_smithy_client.expectString
2141
+ });
2142
+ Object.assign(contents, doc);
2143
+ const exception = new InvalidRequestException({
2144
+ $metadata: deserializeMetadata(parsedOutput),
2145
+ ...contents
2146
+ });
2147
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2148
+ }, "de_InvalidRequestExceptionRes");
2149
+ var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2150
+ const contents = (0, import_smithy_client.map)({});
2151
+ const data = parsedOutput.body;
2152
+ const doc = (0, import_smithy_client.take)(data, {
2153
+ Message: import_smithy_client.expectString
2154
+ });
2155
+ Object.assign(contents, doc);
2156
+ const exception = new ResourceAlreadyExistsException({
2157
+ $metadata: deserializeMetadata(parsedOutput),
2158
+ ...contents
2159
+ });
2160
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2161
+ }, "de_ResourceAlreadyExistsExceptionRes");
2162
+ var de_ResourceLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2163
+ const contents = (0, import_smithy_client.map)({});
2164
+ const data = parsedOutput.body;
2165
+ const doc = (0, import_smithy_client.take)(data, {
2166
+ Message: import_smithy_client.expectString
2167
+ });
2168
+ Object.assign(contents, doc);
2169
+ const exception = new ResourceLimitExceededException({
2170
+ $metadata: deserializeMetadata(parsedOutput),
2171
+ ...contents
2172
+ });
2173
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2174
+ }, "de_ResourceLimitExceededExceptionRes");
2175
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2176
+ const contents = (0, import_smithy_client.map)({});
2177
+ const data = parsedOutput.body;
2178
+ const doc = (0, import_smithy_client.take)(data, {
2179
+ Message: import_smithy_client.expectString,
2180
+ ResourceName: import_smithy_client.expectString
2181
+ });
2182
+ Object.assign(contents, doc);
2183
+ const exception = new ResourceNotFoundException({
2184
+ $metadata: deserializeMetadata(parsedOutput),
2185
+ ...contents
2186
+ });
2187
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2188
+ }, "de_ResourceNotFoundExceptionRes");
2189
+ var de_ResourceNotReadyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2190
+ const contents = (0, import_smithy_client.map)({});
2191
+ const data = parsedOutput.body;
2192
+ const doc = (0, import_smithy_client.take)(data, {
2193
+ Message: import_smithy_client.expectString
2194
+ });
2195
+ Object.assign(contents, doc);
2196
+ const exception = new ResourceNotReadyException({
2197
+ $metadata: deserializeMetadata(parsedOutput),
2198
+ ...contents
2199
+ });
2200
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2201
+ }, "de_ResourceNotReadyExceptionRes");
2202
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2203
+ const contents = (0, import_smithy_client.map)({});
2204
+ const data = parsedOutput.body;
2205
+ const doc = (0, import_smithy_client.take)(data, {});
2206
+ Object.assign(contents, doc);
2207
+ const exception = new ThrottlingException({
2208
+ $metadata: deserializeMetadata(parsedOutput),
2209
+ ...contents
2210
+ });
2211
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2212
+ }, "de_ThrottlingExceptionRes");
2213
+ var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2214
+ const contents = (0, import_smithy_client.map)({});
2215
+ const data = parsedOutput.body;
2216
+ const doc = (0, import_smithy_client.take)(data, {
2217
+ Message: import_smithy_client.expectString,
2218
+ ResourceName: import_smithy_client.expectString
2219
+ });
2220
+ Object.assign(contents, doc);
2221
+ const exception = new TooManyTagsException({
2222
+ $metadata: deserializeMetadata(parsedOutput),
2223
+ ...contents
2224
+ });
2225
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2226
+ }, "de_TooManyTagsExceptionRes");
2227
+ var de_Accessor = /* @__PURE__ */ __name((output, context) => {
2228
+ return (0, import_smithy_client.take)(output, {
2229
+ Arn: import_smithy_client.expectString,
2230
+ BillingToken: import_smithy_client.expectString,
2231
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2232
+ Id: import_smithy_client.expectString,
2233
+ NetworkType: import_smithy_client.expectString,
2234
+ Status: import_smithy_client.expectString,
2235
+ Tags: import_smithy_client._json,
2236
+ Type: import_smithy_client.expectString
2237
+ });
2238
+ }, "de_Accessor");
2239
+ var de_AccessorSummary = /* @__PURE__ */ __name((output, context) => {
2240
+ return (0, import_smithy_client.take)(output, {
2241
+ Arn: import_smithy_client.expectString,
2242
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2243
+ Id: import_smithy_client.expectString,
2244
+ NetworkType: import_smithy_client.expectString,
2245
+ Status: import_smithy_client.expectString,
2246
+ Type: import_smithy_client.expectString
2247
+ });
2248
+ }, "de_AccessorSummary");
2249
+ var de_AccessorSummaryList = /* @__PURE__ */ __name((output, context) => {
2250
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2251
+ return de_AccessorSummary(entry, context);
2252
+ });
2253
+ return retVal;
2254
+ }, "de_AccessorSummaryList");
2255
+ var de_Invitation = /* @__PURE__ */ __name((output, context) => {
2256
+ return (0, import_smithy_client.take)(output, {
2257
+ Arn: import_smithy_client.expectString,
2258
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2259
+ ExpirationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2260
+ InvitationId: import_smithy_client.expectString,
2261
+ NetworkSummary: (_) => de_NetworkSummary(_, context),
2262
+ Status: import_smithy_client.expectString
2263
+ });
2264
+ }, "de_Invitation");
2265
+ var de_InvitationList = /* @__PURE__ */ __name((output, context) => {
2266
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2267
+ return de_Invitation(entry, context);
2268
+ });
2269
+ return retVal;
2270
+ }, "de_InvitationList");
2271
+ var de_Member = /* @__PURE__ */ __name((output, context) => {
2272
+ return (0, import_smithy_client.take)(output, {
2273
+ Arn: import_smithy_client.expectString,
2274
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2275
+ Description: import_smithy_client.expectString,
2276
+ FrameworkAttributes: import_smithy_client._json,
2277
+ Id: import_smithy_client.expectString,
2278
+ KmsKeyArn: import_smithy_client.expectString,
2279
+ LogPublishingConfiguration: import_smithy_client._json,
2280
+ Name: import_smithy_client.expectString,
2281
+ NetworkId: import_smithy_client.expectString,
2282
+ Status: import_smithy_client.expectString,
2283
+ Tags: import_smithy_client._json
2284
+ });
2285
+ }, "de_Member");
2286
+ var de_MemberSummary = /* @__PURE__ */ __name((output, context) => {
2287
+ return (0, import_smithy_client.take)(output, {
2288
+ Arn: import_smithy_client.expectString,
2289
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2290
+ Description: import_smithy_client.expectString,
2291
+ Id: import_smithy_client.expectString,
2292
+ IsOwned: import_smithy_client.expectBoolean,
2293
+ Name: import_smithy_client.expectString,
2294
+ Status: import_smithy_client.expectString
2295
+ });
2296
+ }, "de_MemberSummary");
2297
+ var de_MemberSummaryList = /* @__PURE__ */ __name((output, context) => {
2298
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2299
+ return de_MemberSummary(entry, context);
2300
+ });
2301
+ return retVal;
2302
+ }, "de_MemberSummaryList");
2303
+ var de_Network = /* @__PURE__ */ __name((output, context) => {
2304
+ return (0, import_smithy_client.take)(output, {
2305
+ Arn: import_smithy_client.expectString,
2306
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2307
+ Description: import_smithy_client.expectString,
2308
+ Framework: import_smithy_client.expectString,
2309
+ FrameworkAttributes: import_smithy_client._json,
2310
+ FrameworkVersion: import_smithy_client.expectString,
2311
+ Id: import_smithy_client.expectString,
2312
+ Name: import_smithy_client.expectString,
2313
+ Status: import_smithy_client.expectString,
2314
+ Tags: import_smithy_client._json,
2315
+ VotingPolicy: import_smithy_client._json,
2316
+ VpcEndpointServiceName: import_smithy_client.expectString
2317
+ });
2318
+ }, "de_Network");
2319
+ var de_NetworkSummary = /* @__PURE__ */ __name((output, context) => {
2320
+ return (0, import_smithy_client.take)(output, {
2321
+ Arn: import_smithy_client.expectString,
2322
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2323
+ Description: import_smithy_client.expectString,
2324
+ Framework: import_smithy_client.expectString,
2325
+ FrameworkVersion: import_smithy_client.expectString,
2326
+ Id: import_smithy_client.expectString,
2327
+ Name: import_smithy_client.expectString,
2328
+ Status: import_smithy_client.expectString
2329
+ });
2330
+ }, "de_NetworkSummary");
2331
+ var de_NetworkSummaryList = /* @__PURE__ */ __name((output, context) => {
2332
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2333
+ return de_NetworkSummary(entry, context);
2334
+ });
2335
+ return retVal;
2336
+ }, "de_NetworkSummaryList");
2337
+ var de_Node = /* @__PURE__ */ __name((output, context) => {
2338
+ return (0, import_smithy_client.take)(output, {
2339
+ Arn: import_smithy_client.expectString,
2340
+ AvailabilityZone: import_smithy_client.expectString,
2341
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2342
+ FrameworkAttributes: import_smithy_client._json,
2343
+ Id: import_smithy_client.expectString,
2344
+ InstanceType: import_smithy_client.expectString,
2345
+ KmsKeyArn: import_smithy_client.expectString,
2346
+ LogPublishingConfiguration: import_smithy_client._json,
2347
+ MemberId: import_smithy_client.expectString,
2348
+ NetworkId: import_smithy_client.expectString,
2349
+ StateDB: import_smithy_client.expectString,
2350
+ Status: import_smithy_client.expectString,
2351
+ Tags: import_smithy_client._json
2352
+ });
2353
+ }, "de_Node");
2354
+ var de_NodeSummary = /* @__PURE__ */ __name((output, context) => {
2355
+ return (0, import_smithy_client.take)(output, {
2356
+ Arn: import_smithy_client.expectString,
2357
+ AvailabilityZone: import_smithy_client.expectString,
2358
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2359
+ Id: import_smithy_client.expectString,
2360
+ InstanceType: import_smithy_client.expectString,
2361
+ Status: import_smithy_client.expectString
2362
+ });
2363
+ }, "de_NodeSummary");
2364
+ var de_NodeSummaryList = /* @__PURE__ */ __name((output, context) => {
2365
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2366
+ return de_NodeSummary(entry, context);
2367
+ });
2368
+ return retVal;
2369
+ }, "de_NodeSummaryList");
2370
+ var de_Proposal = /* @__PURE__ */ __name((output, context) => {
2371
+ return (0, import_smithy_client.take)(output, {
2372
+ Actions: import_smithy_client._json,
2373
+ Arn: import_smithy_client.expectString,
2374
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2375
+ Description: import_smithy_client.expectString,
2376
+ ExpirationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2377
+ NetworkId: import_smithy_client.expectString,
2378
+ NoVoteCount: import_smithy_client.expectInt32,
2379
+ OutstandingVoteCount: import_smithy_client.expectInt32,
2380
+ ProposalId: import_smithy_client.expectString,
2381
+ ProposedByMemberId: import_smithy_client.expectString,
2382
+ ProposedByMemberName: import_smithy_client.expectString,
2383
+ Status: import_smithy_client.expectString,
2384
+ Tags: import_smithy_client._json,
2385
+ YesVoteCount: import_smithy_client.expectInt32
2386
+ });
2387
+ }, "de_Proposal");
2388
+ var de_ProposalSummary = /* @__PURE__ */ __name((output, context) => {
2389
+ return (0, import_smithy_client.take)(output, {
2390
+ Arn: import_smithy_client.expectString,
2391
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2392
+ Description: import_smithy_client.expectString,
2393
+ ExpirationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2394
+ ProposalId: import_smithy_client.expectString,
2395
+ ProposedByMemberId: import_smithy_client.expectString,
2396
+ ProposedByMemberName: import_smithy_client.expectString,
2397
+ Status: import_smithy_client.expectString
2398
+ });
2399
+ }, "de_ProposalSummary");
2400
+ var de_ProposalSummaryList = /* @__PURE__ */ __name((output, context) => {
2401
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2402
+ return de_ProposalSummary(entry, context);
2403
+ });
2404
+ return retVal;
2405
+ }, "de_ProposalSummaryList");
2406
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2407
+ httpStatusCode: output.statusCode,
2408
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2409
+ extendedRequestId: output.headers["x-amz-id-2"],
2410
+ cfId: output.headers["x-amz-cf-id"]
2411
+ }), "deserializeMetadata");
2412
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2413
+ var _F = "Framework";
2414
+ var _IO = "IsOwned";
2415
+ var _MI = "MemberId";
2416
+ var _MR = "MaxResults";
2417
+ var _N = "Name";
2418
+ var _NT = "NextToken";
2419
+ var _NTe = "NetworkType";
2420
+ var _S = "Status";
2421
+ var _TK = "TagKeys";
2422
+ var _f = "framework";
2423
+ var _iO = "isOwned";
2424
+ var _mI = "memberId";
2425
+ var _mR = "maxResults";
2426
+ var _n = "name";
2427
+ var _nT = "nextToken";
2428
+ var _nTe = "networkType";
2429
+ var _s = "status";
2430
+ var _tK = "tagKeys";
2431
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2432
+ if (encoded.length) {
2433
+ return JSON.parse(encoded);
2434
+ }
2435
+ return {};
2436
+ }), "parseBody");
2437
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2438
+ const value = await parseBody(errorBody, context);
2439
+ value.message = value.message ?? value.Message;
2440
+ return value;
2441
+ }, "parseErrorBody");
2442
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2443
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2444
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2445
+ let cleanValue = rawValue;
2446
+ if (typeof cleanValue === "number") {
2447
+ cleanValue = cleanValue.toString();
2448
+ }
2449
+ if (cleanValue.indexOf(",") >= 0) {
2450
+ cleanValue = cleanValue.split(",")[0];
2451
+ }
2452
+ if (cleanValue.indexOf(":") >= 0) {
2453
+ cleanValue = cleanValue.split(":")[0];
2454
+ }
2455
+ if (cleanValue.indexOf("#") >= 0) {
2456
+ cleanValue = cleanValue.split("#")[1];
2457
+ }
2458
+ return cleanValue;
2459
+ }, "sanitizeErrorCode");
2460
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2461
+ if (headerKey !== void 0) {
2462
+ return sanitizeErrorCode(output.headers[headerKey]);
2463
+ }
2464
+ if (data.code !== void 0) {
2465
+ return sanitizeErrorCode(data.code);
2466
+ }
2467
+ if (data["__type"] !== void 0) {
2468
+ return sanitizeErrorCode(data["__type"]);
2469
+ }
2470
+ }, "loadRestJsonErrorCode");
2471
+
2472
+ // src/commands/CreateAccessorCommand.ts
2473
+ var _CreateAccessorCommand = class _CreateAccessorCommand extends import_smithy_client.Command.classBuilder().ep({
2474
+ ...commonParams
2475
+ }).m(function(Command, cs, config, o) {
2476
+ return [
2477
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2478
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2479
+ ];
2480
+ }).s("TaigaWebService", "CreateAccessor", {}).n("ManagedBlockchainClient", "CreateAccessorCommand").f(void 0, void 0).ser(se_CreateAccessorCommand).de(de_CreateAccessorCommand).build() {
2481
+ };
2482
+ __name(_CreateAccessorCommand, "CreateAccessorCommand");
2483
+ var CreateAccessorCommand = _CreateAccessorCommand;
2484
+
2485
+ // src/commands/CreateMemberCommand.ts
2486
+
2487
+
2488
+
2489
+
2490
+ var _CreateMemberCommand = class _CreateMemberCommand extends import_smithy_client.Command.classBuilder().ep({
2491
+ ...commonParams
2492
+ }).m(function(Command, cs, config, o) {
2493
+ return [
2494
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2495
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2496
+ ];
2497
+ }).s("TaigaWebService", "CreateMember", {}).n("ManagedBlockchainClient", "CreateMemberCommand").f(CreateMemberInputFilterSensitiveLog, void 0).ser(se_CreateMemberCommand).de(de_CreateMemberCommand).build() {
2498
+ };
2499
+ __name(_CreateMemberCommand, "CreateMemberCommand");
2500
+ var CreateMemberCommand = _CreateMemberCommand;
2501
+
2502
+ // src/commands/CreateNetworkCommand.ts
2503
+
2504
+
2505
+
2506
+
2507
+ var _CreateNetworkCommand = class _CreateNetworkCommand extends import_smithy_client.Command.classBuilder().ep({
2508
+ ...commonParams
2509
+ }).m(function(Command, cs, config, o) {
2510
+ return [
2511
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2512
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2513
+ ];
2514
+ }).s("TaigaWebService", "CreateNetwork", {}).n("ManagedBlockchainClient", "CreateNetworkCommand").f(CreateNetworkInputFilterSensitiveLog, void 0).ser(se_CreateNetworkCommand).de(de_CreateNetworkCommand).build() {
2515
+ };
2516
+ __name(_CreateNetworkCommand, "CreateNetworkCommand");
2517
+ var CreateNetworkCommand = _CreateNetworkCommand;
2518
+
2519
+ // src/commands/CreateNodeCommand.ts
2520
+
2521
+
2522
+
2523
+
2524
+ var _CreateNodeCommand = class _CreateNodeCommand extends import_smithy_client.Command.classBuilder().ep({
2525
+ ...commonParams
2526
+ }).m(function(Command, cs, config, o) {
2527
+ return [
2528
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2529
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2530
+ ];
2531
+ }).s("TaigaWebService", "CreateNode", {}).n("ManagedBlockchainClient", "CreateNodeCommand").f(void 0, void 0).ser(se_CreateNodeCommand).de(de_CreateNodeCommand).build() {
2532
+ };
2533
+ __name(_CreateNodeCommand, "CreateNodeCommand");
2534
+ var CreateNodeCommand = _CreateNodeCommand;
2535
+
2536
+ // src/commands/CreateProposalCommand.ts
2537
+
2538
+
2539
+
2540
+
2541
+ var _CreateProposalCommand = class _CreateProposalCommand extends import_smithy_client.Command.classBuilder().ep({
2542
+ ...commonParams
2543
+ }).m(function(Command, cs, config, o) {
2544
+ return [
2545
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2546
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2547
+ ];
2548
+ }).s("TaigaWebService", "CreateProposal", {}).n("ManagedBlockchainClient", "CreateProposalCommand").f(void 0, void 0).ser(se_CreateProposalCommand).de(de_CreateProposalCommand).build() {
2549
+ };
2550
+ __name(_CreateProposalCommand, "CreateProposalCommand");
2551
+ var CreateProposalCommand = _CreateProposalCommand;
2552
+
2553
+ // src/commands/DeleteAccessorCommand.ts
2554
+
2555
+
2556
+
2557
+
2558
+ var _DeleteAccessorCommand = class _DeleteAccessorCommand extends import_smithy_client.Command.classBuilder().ep({
2559
+ ...commonParams
2560
+ }).m(function(Command, cs, config, o) {
2561
+ return [
2562
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2563
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2564
+ ];
2565
+ }).s("TaigaWebService", "DeleteAccessor", {}).n("ManagedBlockchainClient", "DeleteAccessorCommand").f(void 0, void 0).ser(se_DeleteAccessorCommand).de(de_DeleteAccessorCommand).build() {
2566
+ };
2567
+ __name(_DeleteAccessorCommand, "DeleteAccessorCommand");
2568
+ var DeleteAccessorCommand = _DeleteAccessorCommand;
2569
+
2570
+ // src/commands/DeleteMemberCommand.ts
2571
+
2572
+
2573
+
2574
+
2575
+ var _DeleteMemberCommand = class _DeleteMemberCommand extends import_smithy_client.Command.classBuilder().ep({
2576
+ ...commonParams
2577
+ }).m(function(Command, cs, config, o) {
2578
+ return [
2579
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2580
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2581
+ ];
2582
+ }).s("TaigaWebService", "DeleteMember", {}).n("ManagedBlockchainClient", "DeleteMemberCommand").f(void 0, void 0).ser(se_DeleteMemberCommand).de(de_DeleteMemberCommand).build() {
2583
+ };
2584
+ __name(_DeleteMemberCommand, "DeleteMemberCommand");
2585
+ var DeleteMemberCommand = _DeleteMemberCommand;
2586
+
2587
+ // src/commands/DeleteNodeCommand.ts
2588
+
2589
+
2590
+
2591
+
2592
+ var _DeleteNodeCommand = class _DeleteNodeCommand extends import_smithy_client.Command.classBuilder().ep({
2593
+ ...commonParams
2594
+ }).m(function(Command, cs, config, o) {
2595
+ return [
2596
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2597
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2598
+ ];
2599
+ }).s("TaigaWebService", "DeleteNode", {}).n("ManagedBlockchainClient", "DeleteNodeCommand").f(void 0, void 0).ser(se_DeleteNodeCommand).de(de_DeleteNodeCommand).build() {
2600
+ };
2601
+ __name(_DeleteNodeCommand, "DeleteNodeCommand");
2602
+ var DeleteNodeCommand = _DeleteNodeCommand;
2603
+
2604
+ // src/commands/GetAccessorCommand.ts
2605
+
2606
+
2607
+
2608
+
2609
+ var _GetAccessorCommand = class _GetAccessorCommand extends import_smithy_client.Command.classBuilder().ep({
2610
+ ...commonParams
2611
+ }).m(function(Command, cs, config, o) {
2612
+ return [
2613
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2614
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2615
+ ];
2616
+ }).s("TaigaWebService", "GetAccessor", {}).n("ManagedBlockchainClient", "GetAccessorCommand").f(void 0, void 0).ser(se_GetAccessorCommand).de(de_GetAccessorCommand).build() {
2617
+ };
2618
+ __name(_GetAccessorCommand, "GetAccessorCommand");
2619
+ var GetAccessorCommand = _GetAccessorCommand;
2620
+
2621
+ // src/commands/GetMemberCommand.ts
2622
+
2623
+
2624
+
2625
+
2626
+ var _GetMemberCommand = class _GetMemberCommand extends import_smithy_client.Command.classBuilder().ep({
2627
+ ...commonParams
2628
+ }).m(function(Command, cs, config, o) {
2629
+ return [
2630
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2631
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2632
+ ];
2633
+ }).s("TaigaWebService", "GetMember", {}).n("ManagedBlockchainClient", "GetMemberCommand").f(void 0, void 0).ser(se_GetMemberCommand).de(de_GetMemberCommand).build() {
2634
+ };
2635
+ __name(_GetMemberCommand, "GetMemberCommand");
2636
+ var GetMemberCommand = _GetMemberCommand;
2637
+
2638
+ // src/commands/GetNetworkCommand.ts
2639
+
2640
+
2641
+
2642
+
2643
+ var _GetNetworkCommand = class _GetNetworkCommand extends import_smithy_client.Command.classBuilder().ep({
2644
+ ...commonParams
2645
+ }).m(function(Command, cs, config, o) {
2646
+ return [
2647
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2648
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2649
+ ];
2650
+ }).s("TaigaWebService", "GetNetwork", {}).n("ManagedBlockchainClient", "GetNetworkCommand").f(void 0, void 0).ser(se_GetNetworkCommand).de(de_GetNetworkCommand).build() {
2651
+ };
2652
+ __name(_GetNetworkCommand, "GetNetworkCommand");
2653
+ var GetNetworkCommand = _GetNetworkCommand;
2654
+
2655
+ // src/commands/GetNodeCommand.ts
2656
+
2657
+
2658
+
2659
+
2660
+ var _GetNodeCommand = class _GetNodeCommand extends import_smithy_client.Command.classBuilder().ep({
2661
+ ...commonParams
2662
+ }).m(function(Command, cs, config, o) {
2663
+ return [
2664
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2665
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2666
+ ];
2667
+ }).s("TaigaWebService", "GetNode", {}).n("ManagedBlockchainClient", "GetNodeCommand").f(void 0, void 0).ser(se_GetNodeCommand).de(de_GetNodeCommand).build() {
2668
+ };
2669
+ __name(_GetNodeCommand, "GetNodeCommand");
2670
+ var GetNodeCommand = _GetNodeCommand;
2671
+
2672
+ // src/commands/GetProposalCommand.ts
2673
+
2674
+
2675
+
2676
+
2677
+ var _GetProposalCommand = class _GetProposalCommand extends import_smithy_client.Command.classBuilder().ep({
2678
+ ...commonParams
2679
+ }).m(function(Command, cs, config, o) {
2680
+ return [
2681
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2682
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2683
+ ];
2684
+ }).s("TaigaWebService", "GetProposal", {}).n("ManagedBlockchainClient", "GetProposalCommand").f(void 0, void 0).ser(se_GetProposalCommand).de(de_GetProposalCommand).build() {
2685
+ };
2686
+ __name(_GetProposalCommand, "GetProposalCommand");
2687
+ var GetProposalCommand = _GetProposalCommand;
2688
+
2689
+ // src/commands/ListAccessorsCommand.ts
2690
+
2691
+
2692
+
2693
+
2694
+ var _ListAccessorsCommand = class _ListAccessorsCommand extends import_smithy_client.Command.classBuilder().ep({
2695
+ ...commonParams
2696
+ }).m(function(Command, cs, config, o) {
2697
+ return [
2698
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2699
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2700
+ ];
2701
+ }).s("TaigaWebService", "ListAccessors", {}).n("ManagedBlockchainClient", "ListAccessorsCommand").f(void 0, void 0).ser(se_ListAccessorsCommand).de(de_ListAccessorsCommand).build() {
2702
+ };
2703
+ __name(_ListAccessorsCommand, "ListAccessorsCommand");
2704
+ var ListAccessorsCommand = _ListAccessorsCommand;
2705
+
2706
+ // src/commands/ListInvitationsCommand.ts
2707
+
2708
+
2709
+
2710
+
2711
+ var _ListInvitationsCommand = class _ListInvitationsCommand extends import_smithy_client.Command.classBuilder().ep({
2712
+ ...commonParams
2713
+ }).m(function(Command, cs, config, o) {
2714
+ return [
2715
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2716
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2717
+ ];
2718
+ }).s("TaigaWebService", "ListInvitations", {}).n("ManagedBlockchainClient", "ListInvitationsCommand").f(void 0, void 0).ser(se_ListInvitationsCommand).de(de_ListInvitationsCommand).build() {
2719
+ };
2720
+ __name(_ListInvitationsCommand, "ListInvitationsCommand");
2721
+ var ListInvitationsCommand = _ListInvitationsCommand;
2722
+
2723
+ // src/commands/ListMembersCommand.ts
2724
+
2725
+
2726
+
2727
+
2728
+ var _ListMembersCommand = class _ListMembersCommand extends import_smithy_client.Command.classBuilder().ep({
2729
+ ...commonParams
2730
+ }).m(function(Command, cs, config, o) {
2731
+ return [
2732
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2733
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2734
+ ];
2735
+ }).s("TaigaWebService", "ListMembers", {}).n("ManagedBlockchainClient", "ListMembersCommand").f(void 0, void 0).ser(se_ListMembersCommand).de(de_ListMembersCommand).build() {
2736
+ };
2737
+ __name(_ListMembersCommand, "ListMembersCommand");
2738
+ var ListMembersCommand = _ListMembersCommand;
2739
+
2740
+ // src/commands/ListNetworksCommand.ts
2741
+
2742
+
2743
+
2744
+
2745
+ var _ListNetworksCommand = class _ListNetworksCommand extends import_smithy_client.Command.classBuilder().ep({
2746
+ ...commonParams
2747
+ }).m(function(Command, cs, config, o) {
2748
+ return [
2749
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2750
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2751
+ ];
2752
+ }).s("TaigaWebService", "ListNetworks", {}).n("ManagedBlockchainClient", "ListNetworksCommand").f(void 0, void 0).ser(se_ListNetworksCommand).de(de_ListNetworksCommand).build() {
2753
+ };
2754
+ __name(_ListNetworksCommand, "ListNetworksCommand");
2755
+ var ListNetworksCommand = _ListNetworksCommand;
2756
+
2757
+ // src/commands/ListNodesCommand.ts
2758
+
2759
+
2760
+
2761
+
2762
+ var _ListNodesCommand = class _ListNodesCommand extends import_smithy_client.Command.classBuilder().ep({
2763
+ ...commonParams
2764
+ }).m(function(Command, cs, config, o) {
2765
+ return [
2766
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2767
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2768
+ ];
2769
+ }).s("TaigaWebService", "ListNodes", {}).n("ManagedBlockchainClient", "ListNodesCommand").f(void 0, void 0).ser(se_ListNodesCommand).de(de_ListNodesCommand).build() {
2770
+ };
2771
+ __name(_ListNodesCommand, "ListNodesCommand");
2772
+ var ListNodesCommand = _ListNodesCommand;
2773
+
2774
+ // src/commands/ListProposalsCommand.ts
2775
+
2776
+
2777
+
2778
+
2779
+ var _ListProposalsCommand = class _ListProposalsCommand extends import_smithy_client.Command.classBuilder().ep({
2780
+ ...commonParams
2781
+ }).m(function(Command, cs, config, o) {
2782
+ return [
2783
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2784
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2785
+ ];
2786
+ }).s("TaigaWebService", "ListProposals", {}).n("ManagedBlockchainClient", "ListProposalsCommand").f(void 0, void 0).ser(se_ListProposalsCommand).de(de_ListProposalsCommand).build() {
2787
+ };
2788
+ __name(_ListProposalsCommand, "ListProposalsCommand");
2789
+ var ListProposalsCommand = _ListProposalsCommand;
2790
+
2791
+ // src/commands/ListProposalVotesCommand.ts
2792
+
2793
+
2794
+
2795
+
2796
+ var _ListProposalVotesCommand = class _ListProposalVotesCommand extends import_smithy_client.Command.classBuilder().ep({
2797
+ ...commonParams
2798
+ }).m(function(Command, cs, config, o) {
2799
+ return [
2800
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2801
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2802
+ ];
2803
+ }).s("TaigaWebService", "ListProposalVotes", {}).n("ManagedBlockchainClient", "ListProposalVotesCommand").f(void 0, void 0).ser(se_ListProposalVotesCommand).de(de_ListProposalVotesCommand).build() {
2804
+ };
2805
+ __name(_ListProposalVotesCommand, "ListProposalVotesCommand");
2806
+ var ListProposalVotesCommand = _ListProposalVotesCommand;
2807
+
2808
+ // src/commands/ListTagsForResourceCommand.ts
2809
+
2810
+
2811
+
2812
+
2813
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2814
+ ...commonParams
2815
+ }).m(function(Command, cs, config, o) {
2816
+ return [
2817
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2818
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2819
+ ];
2820
+ }).s("TaigaWebService", "ListTagsForResource", {}).n("ManagedBlockchainClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2821
+ };
2822
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2823
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2824
+
2825
+ // src/commands/RejectInvitationCommand.ts
2826
+
2827
+
2828
+
2829
+
2830
+ var _RejectInvitationCommand = class _RejectInvitationCommand extends import_smithy_client.Command.classBuilder().ep({
2831
+ ...commonParams
2832
+ }).m(function(Command, cs, config, o) {
2833
+ return [
2834
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2835
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2836
+ ];
2837
+ }).s("TaigaWebService", "RejectInvitation", {}).n("ManagedBlockchainClient", "RejectInvitationCommand").f(void 0, void 0).ser(se_RejectInvitationCommand).de(de_RejectInvitationCommand).build() {
2838
+ };
2839
+ __name(_RejectInvitationCommand, "RejectInvitationCommand");
2840
+ var RejectInvitationCommand = _RejectInvitationCommand;
2841
+
2842
+ // src/commands/TagResourceCommand.ts
2843
+
2844
+
2845
+
2846
+
2847
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2848
+ ...commonParams
2849
+ }).m(function(Command, cs, config, o) {
2850
+ return [
2851
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2852
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2853
+ ];
2854
+ }).s("TaigaWebService", "TagResource", {}).n("ManagedBlockchainClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2855
+ };
2856
+ __name(_TagResourceCommand, "TagResourceCommand");
2857
+ var TagResourceCommand = _TagResourceCommand;
2858
+
2859
+ // src/commands/UntagResourceCommand.ts
2860
+
2861
+
2862
+
2863
+
2864
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2865
+ ...commonParams
2866
+ }).m(function(Command, cs, config, o) {
2867
+ return [
2868
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2869
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2870
+ ];
2871
+ }).s("TaigaWebService", "UntagResource", {}).n("ManagedBlockchainClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2872
+ };
2873
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2874
+ var UntagResourceCommand = _UntagResourceCommand;
2875
+
2876
+ // src/commands/UpdateMemberCommand.ts
2877
+
2878
+
2879
+
2880
+
2881
+ var _UpdateMemberCommand = class _UpdateMemberCommand extends import_smithy_client.Command.classBuilder().ep({
2882
+ ...commonParams
2883
+ }).m(function(Command, cs, config, o) {
2884
+ return [
2885
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2886
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2887
+ ];
2888
+ }).s("TaigaWebService", "UpdateMember", {}).n("ManagedBlockchainClient", "UpdateMemberCommand").f(void 0, void 0).ser(se_UpdateMemberCommand).de(de_UpdateMemberCommand).build() {
2889
+ };
2890
+ __name(_UpdateMemberCommand, "UpdateMemberCommand");
2891
+ var UpdateMemberCommand = _UpdateMemberCommand;
2892
+
2893
+ // src/commands/UpdateNodeCommand.ts
2894
+
2895
+
2896
+
2897
+
2898
+ var _UpdateNodeCommand = class _UpdateNodeCommand extends import_smithy_client.Command.classBuilder().ep({
2899
+ ...commonParams
2900
+ }).m(function(Command, cs, config, o) {
2901
+ return [
2902
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2903
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2904
+ ];
2905
+ }).s("TaigaWebService", "UpdateNode", {}).n("ManagedBlockchainClient", "UpdateNodeCommand").f(void 0, void 0).ser(se_UpdateNodeCommand).de(de_UpdateNodeCommand).build() {
2906
+ };
2907
+ __name(_UpdateNodeCommand, "UpdateNodeCommand");
2908
+ var UpdateNodeCommand = _UpdateNodeCommand;
2909
+
2910
+ // src/commands/VoteOnProposalCommand.ts
2911
+
2912
+
2913
+
2914
+
2915
+ var _VoteOnProposalCommand = class _VoteOnProposalCommand extends import_smithy_client.Command.classBuilder().ep({
2916
+ ...commonParams
2917
+ }).m(function(Command, cs, config, o) {
2918
+ return [
2919
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2920
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2921
+ ];
2922
+ }).s("TaigaWebService", "VoteOnProposal", {}).n("ManagedBlockchainClient", "VoteOnProposalCommand").f(void 0, void 0).ser(se_VoteOnProposalCommand).de(de_VoteOnProposalCommand).build() {
2923
+ };
2924
+ __name(_VoteOnProposalCommand, "VoteOnProposalCommand");
2925
+ var VoteOnProposalCommand = _VoteOnProposalCommand;
2926
+
2927
+ // src/ManagedBlockchain.ts
2928
+ var commands = {
2929
+ CreateAccessorCommand,
2930
+ CreateMemberCommand,
2931
+ CreateNetworkCommand,
2932
+ CreateNodeCommand,
2933
+ CreateProposalCommand,
2934
+ DeleteAccessorCommand,
2935
+ DeleteMemberCommand,
2936
+ DeleteNodeCommand,
2937
+ GetAccessorCommand,
2938
+ GetMemberCommand,
2939
+ GetNetworkCommand,
2940
+ GetNodeCommand,
2941
+ GetProposalCommand,
2942
+ ListAccessorsCommand,
2943
+ ListInvitationsCommand,
2944
+ ListMembersCommand,
2945
+ ListNetworksCommand,
2946
+ ListNodesCommand,
2947
+ ListProposalsCommand,
2948
+ ListProposalVotesCommand,
2949
+ ListTagsForResourceCommand,
2950
+ RejectInvitationCommand,
2951
+ TagResourceCommand,
2952
+ UntagResourceCommand,
2953
+ UpdateMemberCommand,
2954
+ UpdateNodeCommand,
2955
+ VoteOnProposalCommand
2956
+ };
2957
+ var _ManagedBlockchain = class _ManagedBlockchain extends ManagedBlockchainClient {
2958
+ };
2959
+ __name(_ManagedBlockchain, "ManagedBlockchain");
2960
+ var ManagedBlockchain = _ManagedBlockchain;
2961
+ (0, import_smithy_client.createAggregatedClient)(commands, ManagedBlockchain);
2962
+
2963
+ // src/pagination/ListAccessorsPaginator.ts
2964
+
2965
+ var paginateListAccessors = (0, import_core.createPaginator)(ManagedBlockchainClient, ListAccessorsCommand, "NextToken", "NextToken", "MaxResults");
2966
+
2967
+ // src/pagination/ListInvitationsPaginator.ts
2968
+
2969
+ var paginateListInvitations = (0, import_core.createPaginator)(ManagedBlockchainClient, ListInvitationsCommand, "NextToken", "NextToken", "MaxResults");
2970
+
2971
+ // src/pagination/ListMembersPaginator.ts
2972
+
2973
+ var paginateListMembers = (0, import_core.createPaginator)(ManagedBlockchainClient, ListMembersCommand, "NextToken", "NextToken", "MaxResults");
2974
+
2975
+ // src/pagination/ListNetworksPaginator.ts
2976
+
2977
+ var paginateListNetworks = (0, import_core.createPaginator)(ManagedBlockchainClient, ListNetworksCommand, "NextToken", "NextToken", "MaxResults");
2978
+
2979
+ // src/pagination/ListNodesPaginator.ts
2980
+
2981
+ var paginateListNodes = (0, import_core.createPaginator)(ManagedBlockchainClient, ListNodesCommand, "NextToken", "NextToken", "MaxResults");
2982
+
2983
+ // src/pagination/ListProposalVotesPaginator.ts
2984
+
2985
+ var paginateListProposalVotes = (0, import_core.createPaginator)(ManagedBlockchainClient, ListProposalVotesCommand, "NextToken", "NextToken", "MaxResults");
2986
+
2987
+ // src/pagination/ListProposalsPaginator.ts
2988
+
2989
+ var paginateListProposals = (0, import_core.createPaginator)(ManagedBlockchainClient, ListProposalsCommand, "NextToken", "NextToken", "MaxResults");
2990
+
2991
+ // src/index.ts
2992
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2993
+ // Annotate the CommonJS export names for ESM import in node:
2994
+
2995
+ 0 && (module.exports = {
2996
+ AccessDeniedException,
2997
+ AccessorNetworkType,
2998
+ AccessorStatus,
2999
+ AccessorType,
3000
+ CreateAccessorCommand,
3001
+ CreateMemberCommand,
3002
+ CreateMemberInputFilterSensitiveLog,
3003
+ CreateNetworkCommand,
3004
+ CreateNetworkInputFilterSensitiveLog,
3005
+ CreateNodeCommand,
3006
+ CreateProposalCommand,
3007
+ DeleteAccessorCommand,
3008
+ DeleteMemberCommand,
3009
+ DeleteNodeCommand,
3010
+ Edition,
3011
+ Framework,
3012
+ GetAccessorCommand,
3013
+ GetMemberCommand,
3014
+ GetNetworkCommand,
3015
+ GetNodeCommand,
3016
+ GetProposalCommand,
3017
+ IllegalActionException,
3018
+ InternalServiceErrorException,
3019
+ InvalidRequestException,
3020
+ InvitationStatus,
3021
+ ListAccessorsCommand,
3022
+ ListInvitationsCommand,
3023
+ ListMembersCommand,
3024
+ ListNetworksCommand,
3025
+ ListNodesCommand,
3026
+ ListProposalVotesCommand,
3027
+ ListProposalsCommand,
3028
+ ListTagsForResourceCommand,
3029
+ ManagedBlockchain,
3030
+ ManagedBlockchainClient,
3031
+ ManagedBlockchainServiceException,
3032
+ MemberConfigurationFilterSensitiveLog,
3033
+ MemberFabricConfigurationFilterSensitiveLog,
3034
+ MemberFrameworkConfigurationFilterSensitiveLog,
3035
+ MemberStatus,
3036
+ NetworkStatus,
3037
+ NodeStatus,
3038
+ ProposalStatus,
3039
+ RejectInvitationCommand,
3040
+ ResourceAlreadyExistsException,
3041
+ ResourceLimitExceededException,
3042
+ ResourceNotFoundException,
3043
+ ResourceNotReadyException,
3044
+ StateDBType,
3045
+ TagResourceCommand,
3046
+ ThresholdComparator,
3047
+ ThrottlingException,
3048
+ TooManyTagsException,
3049
+ UntagResourceCommand,
3050
+ UpdateMemberCommand,
3051
+ UpdateNodeCommand,
3052
+ VoteOnProposalCommand,
3053
+ VoteValue,
3054
+ __Client,
3055
+ paginateListAccessors,
3056
+ paginateListInvitations,
3057
+ paginateListMembers,
3058
+ paginateListNetworks,
3059
+ paginateListNodes,
3060
+ paginateListProposalVotes,
3061
+ paginateListProposals
3062
+ });
3063
+