@aws-sdk/client-managedblockchain-query 3.927.0 → 3.929.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist-cjs/index.js +593 -654
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/ManagedBlockchainQueryClient.js +2 -0
  4. package/dist-es/commands/BatchGetTokenBalanceCommand.js +3 -9
  5. package/dist-es/commands/GetAssetContractCommand.js +3 -9
  6. package/dist-es/commands/GetTokenBalanceCommand.js +3 -9
  7. package/dist-es/commands/GetTransactionCommand.js +3 -9
  8. package/dist-es/commands/ListAssetContractsCommand.js +3 -9
  9. package/dist-es/commands/ListFilteredTransactionEventsCommand.js +3 -9
  10. package/dist-es/commands/ListTokenBalancesCommand.js +3 -9
  11. package/dist-es/commands/ListTransactionEventsCommand.js +3 -9
  12. package/dist-es/commands/ListTransactionsCommand.js +3 -9
  13. package/dist-es/runtimeConfig.shared.js +2 -0
  14. package/dist-es/schemas/schemas_0.js +558 -0
  15. package/dist-types/ManagedBlockchainQueryClient.d.ts +10 -1
  16. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  17. package/dist-types/runtimeConfig.d.ts +1 -0
  18. package/dist-types/runtimeConfig.native.d.ts +1 -0
  19. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  20. package/dist-types/schemas/schemas_0.d.ts +68 -0
  21. package/dist-types/ts3.4/ManagedBlockchainQueryClient.d.ts +4 -0
  22. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  23. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  25. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  26. package/dist-types/ts3.4/schemas/schemas_0.d.ts +73 -0
  27. package/package.json +5 -5
  28. package/dist-es/protocols/Aws_restJson1.js +0 -575
  29. package/dist-types/protocols/Aws_restJson1.d.ts +0 -83
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -113
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class ManagedBlockchainQueryClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class ManagedBlockchainQueryClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class ManagedBlockchainQueryServiceException extends smithyClient.ServiceException {
113
+ let ManagedBlockchainQueryServiceException$1 = class ManagedBlockchainQueryServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, ManagedBlockchainQueryServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedException extends ManagedBlockchainQueryServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends ManagedBlockchainQueryServiceException$1 {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  constructor(opts) {
@@ -128,7 +128,7 @@ class AccessDeniedException extends ManagedBlockchainQueryServiceException {
128
128
  });
129
129
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
130
  }
131
- }
131
+ };
132
132
  const QueryNetwork = {
133
133
  BITCOIN_MAINNET: "BITCOIN_MAINNET",
134
134
  BITCOIN_TESTNET: "BITCOIN_TESTNET",
@@ -144,7 +144,7 @@ const ErrorType = {
144
144
  RESOURCE_NOT_FOUND_EXCEPTION: "RESOURCE_NOT_FOUND_EXCEPTION",
145
145
  VALIDATION_EXCEPTION: "VALIDATION_EXCEPTION",
146
146
  };
147
- class InternalServerException extends ManagedBlockchainQueryServiceException {
147
+ let InternalServerException$1 = class InternalServerException extends ManagedBlockchainQueryServiceException$1 {
148
148
  name = "InternalServerException";
149
149
  $fault = "server";
150
150
  $retryable = {};
@@ -158,11 +158,11 @@ class InternalServerException extends ManagedBlockchainQueryServiceException {
158
158
  Object.setPrototypeOf(this, InternalServerException.prototype);
159
159
  this.retryAfterSeconds = opts.retryAfterSeconds;
160
160
  }
161
- }
161
+ };
162
162
  const ResourceType = {
163
163
  COLLECTION: "collection",
164
164
  };
165
- class ResourceNotFoundException extends ManagedBlockchainQueryServiceException {
165
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends ManagedBlockchainQueryServiceException$1 {
166
166
  name = "ResourceNotFoundException";
167
167
  $fault = "client";
168
168
  resourceId;
@@ -177,8 +177,8 @@ class ResourceNotFoundException extends ManagedBlockchainQueryServiceException {
177
177
  this.resourceId = opts.resourceId;
178
178
  this.resourceType = opts.resourceType;
179
179
  }
180
- }
181
- class ServiceQuotaExceededException extends ManagedBlockchainQueryServiceException {
180
+ };
181
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends ManagedBlockchainQueryServiceException$1 {
182
182
  name = "ServiceQuotaExceededException";
183
183
  $fault = "client";
184
184
  resourceId;
@@ -197,8 +197,8 @@ class ServiceQuotaExceededException extends ManagedBlockchainQueryServiceExcepti
197
197
  this.serviceCode = opts.serviceCode;
198
198
  this.quotaCode = opts.quotaCode;
199
199
  }
200
- }
201
- class ThrottlingException extends ManagedBlockchainQueryServiceException {
200
+ };
201
+ let ThrottlingException$1 = class ThrottlingException extends ManagedBlockchainQueryServiceException$1 {
202
202
  name = "ThrottlingException";
203
203
  $fault = "client";
204
204
  $retryable = {
@@ -218,14 +218,14 @@ class ThrottlingException extends ManagedBlockchainQueryServiceException {
218
218
  this.quotaCode = opts.quotaCode;
219
219
  this.retryAfterSeconds = opts.retryAfterSeconds;
220
220
  }
221
- }
221
+ };
222
222
  const ValidationExceptionReason = {
223
223
  CANNOT_PARSE: "cannotParse",
224
224
  FIELD_VALIDATION_FAILED: "fieldValidationFailed",
225
225
  OTHER: "other",
226
226
  UNKNOWN_OPERATION: "unknownOperation",
227
227
  };
228
- class ValidationException extends ManagedBlockchainQueryServiceException {
228
+ let ValidationException$1 = class ValidationException extends ManagedBlockchainQueryServiceException$1 {
229
229
  name = "ValidationException";
230
230
  $fault = "client";
231
231
  reason;
@@ -240,7 +240,7 @@ class ValidationException extends ManagedBlockchainQueryServiceException {
240
240
  this.reason = opts.reason;
241
241
  this.fieldList = opts.fieldList;
242
242
  }
243
- }
243
+ };
244
244
  const ConfirmationStatus = {
245
245
  FINAL: "FINAL",
246
246
  NONFINAL: "NONFINAL",
@@ -273,590 +273,569 @@ const ListTransactionsSortBy = {
273
273
  TRANSACTION_TIMESTAMP: "TRANSACTION_TIMESTAMP",
274
274
  };
275
275
 
276
- const se_BatchGetTokenBalanceCommand = async (input, context) => {
277
- const b = core.requestBuilder(input, context);
278
- const headers = {
279
- "content-type": "application/json",
280
- };
281
- b.bp("/batch-get-token-balance");
282
- let body;
283
- body = JSON.stringify(smithyClient.take(input, {
284
- getTokenBalanceInputs: (_) => se_GetTokenBalanceInputList(_),
285
- }));
286
- b.m("POST").h(headers).b(body);
287
- return b.build();
288
- };
289
- const se_GetAssetContractCommand = async (input, context) => {
290
- const b = core.requestBuilder(input, context);
291
- const headers = {
292
- "content-type": "application/json",
293
- };
294
- b.bp("/get-asset-contract");
295
- let body;
296
- body = JSON.stringify(smithyClient.take(input, {
297
- contractIdentifier: (_) => smithyClient._json(_),
298
- }));
299
- b.m("POST").h(headers).b(body);
300
- return b.build();
301
- };
302
- const se_GetTokenBalanceCommand = async (input, context) => {
303
- const b = core.requestBuilder(input, context);
304
- const headers = {
305
- "content-type": "application/json",
306
- };
307
- b.bp("/get-token-balance");
308
- let body;
309
- body = JSON.stringify(smithyClient.take(input, {
310
- atBlockchainInstant: (_) => se_BlockchainInstant(_),
311
- ownerIdentifier: (_) => smithyClient._json(_),
312
- tokenIdentifier: (_) => smithyClient._json(_),
313
- }));
314
- b.m("POST").h(headers).b(body);
315
- return b.build();
316
- };
317
- const se_GetTransactionCommand = async (input, context) => {
318
- const b = core.requestBuilder(input, context);
319
- const headers = {
320
- "content-type": "application/json",
321
- };
322
- b.bp("/get-transaction");
323
- let body;
324
- body = JSON.stringify(smithyClient.take(input, {
325
- network: [],
326
- transactionHash: [],
327
- transactionId: [],
328
- }));
329
- b.m("POST").h(headers).b(body);
330
- return b.build();
331
- };
332
- const se_ListAssetContractsCommand = async (input, context) => {
333
- const b = core.requestBuilder(input, context);
334
- const headers = {
335
- "content-type": "application/json",
336
- };
337
- b.bp("/list-asset-contracts");
338
- let body;
339
- body = JSON.stringify(smithyClient.take(input, {
340
- contractFilter: (_) => smithyClient._json(_),
341
- maxResults: [],
342
- nextToken: [],
343
- }));
344
- b.m("POST").h(headers).b(body);
345
- return b.build();
346
- };
347
- const se_ListFilteredTransactionEventsCommand = async (input, context) => {
348
- const b = core.requestBuilder(input, context);
349
- const headers = {
350
- "content-type": "application/json",
351
- };
352
- b.bp("/list-filtered-transaction-events");
353
- let body;
354
- body = JSON.stringify(smithyClient.take(input, {
355
- addressIdentifierFilter: (_) => smithyClient._json(_),
356
- confirmationStatusFilter: (_) => smithyClient._json(_),
357
- maxResults: [],
358
- network: [],
359
- nextToken: [],
360
- sort: (_) => smithyClient._json(_),
361
- timeFilter: (_) => se_TimeFilter(_),
362
- voutFilter: (_) => smithyClient._json(_),
363
- }));
364
- b.m("POST").h(headers).b(body);
365
- return b.build();
366
- };
367
- const se_ListTokenBalancesCommand = async (input, context) => {
368
- const b = core.requestBuilder(input, context);
369
- const headers = {
370
- "content-type": "application/json",
371
- };
372
- b.bp("/list-token-balances");
373
- let body;
374
- body = JSON.stringify(smithyClient.take(input, {
375
- maxResults: [],
376
- nextToken: [],
377
- ownerFilter: (_) => smithyClient._json(_),
378
- tokenFilter: (_) => smithyClient._json(_),
379
- }));
380
- b.m("POST").h(headers).b(body);
381
- return b.build();
382
- };
383
- const se_ListTransactionEventsCommand = async (input, context) => {
384
- const b = core.requestBuilder(input, context);
385
- const headers = {
386
- "content-type": "application/json",
387
- };
388
- b.bp("/list-transaction-events");
389
- let body;
390
- body = JSON.stringify(smithyClient.take(input, {
391
- maxResults: [],
392
- network: [],
393
- nextToken: [],
394
- transactionHash: [],
395
- transactionId: [],
396
- }));
397
- b.m("POST").h(headers).b(body);
398
- return b.build();
399
- };
400
- const se_ListTransactionsCommand = async (input, context) => {
401
- const b = core.requestBuilder(input, context);
402
- const headers = {
403
- "content-type": "application/json",
404
- };
405
- b.bp("/list-transactions");
406
- let body;
407
- body = JSON.stringify(smithyClient.take(input, {
408
- address: [],
409
- confirmationStatusFilter: (_) => smithyClient._json(_),
410
- fromBlockchainInstant: (_) => se_BlockchainInstant(_),
411
- maxResults: [],
412
- network: [],
413
- nextToken: [],
414
- sort: (_) => smithyClient._json(_),
415
- toBlockchainInstant: (_) => se_BlockchainInstant(_),
416
- }));
417
- b.m("POST").h(headers).b(body);
418
- return b.build();
419
- };
420
- const de_BatchGetTokenBalanceCommand = async (output, context) => {
421
- if (output.statusCode !== 200 && output.statusCode >= 300) {
422
- return de_CommandError(output, context);
423
- }
424
- const contents = smithyClient.map({
425
- $metadata: deserializeMetadata(output),
426
- });
427
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
428
- const doc = smithyClient.take(data, {
429
- errors: (_) => de_BatchGetTokenBalanceErrors(_),
430
- tokenBalances: (_) => de_BatchGetTokenBalanceOutputList(_),
431
- });
432
- Object.assign(contents, doc);
433
- return contents;
434
- };
435
- const de_GetAssetContractCommand = async (output, context) => {
436
- if (output.statusCode !== 200 && output.statusCode >= 300) {
437
- return de_CommandError(output, context);
438
- }
439
- const contents = smithyClient.map({
440
- $metadata: deserializeMetadata(output),
441
- });
442
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
443
- const doc = smithyClient.take(data, {
444
- contractIdentifier: smithyClient._json,
445
- deployerAddress: smithyClient.expectString,
446
- metadata: smithyClient._json,
447
- tokenStandard: smithyClient.expectString,
448
- });
449
- Object.assign(contents, doc);
450
- return contents;
451
- };
452
- const de_GetTokenBalanceCommand = async (output, context) => {
453
- if (output.statusCode !== 200 && output.statusCode >= 300) {
454
- return de_CommandError(output, context);
455
- }
456
- const contents = smithyClient.map({
457
- $metadata: deserializeMetadata(output),
458
- });
459
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
460
- const doc = smithyClient.take(data, {
461
- atBlockchainInstant: (_) => de_BlockchainInstant(_),
462
- balance: smithyClient.expectString,
463
- lastUpdatedTime: (_) => de_BlockchainInstant(_),
464
- ownerIdentifier: smithyClient._json,
465
- tokenIdentifier: smithyClient._json,
466
- });
467
- Object.assign(contents, doc);
468
- return contents;
469
- };
470
- const de_GetTransactionCommand = async (output, context) => {
471
- if (output.statusCode !== 200 && output.statusCode >= 300) {
472
- return de_CommandError(output, context);
473
- }
474
- const contents = smithyClient.map({
475
- $metadata: deserializeMetadata(output),
476
- });
477
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
478
- const doc = smithyClient.take(data, {
479
- transaction: (_) => de_Transaction(_),
480
- });
481
- Object.assign(contents, doc);
482
- return contents;
483
- };
484
- const de_ListAssetContractsCommand = async (output, context) => {
485
- if (output.statusCode !== 200 && output.statusCode >= 300) {
486
- return de_CommandError(output, context);
487
- }
488
- const contents = smithyClient.map({
489
- $metadata: deserializeMetadata(output),
490
- });
491
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
492
- const doc = smithyClient.take(data, {
493
- contracts: smithyClient._json,
494
- nextToken: smithyClient.expectString,
495
- });
496
- Object.assign(contents, doc);
497
- return contents;
498
- };
499
- const de_ListFilteredTransactionEventsCommand = async (output, context) => {
500
- if (output.statusCode !== 200 && output.statusCode >= 300) {
501
- return de_CommandError(output, context);
502
- }
503
- const contents = smithyClient.map({
504
- $metadata: deserializeMetadata(output),
505
- });
506
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
507
- const doc = smithyClient.take(data, {
508
- events: (_) => de_TransactionEventList(_),
509
- nextToken: smithyClient.expectString,
510
- });
511
- Object.assign(contents, doc);
512
- return contents;
513
- };
514
- const de_ListTokenBalancesCommand = async (output, context) => {
515
- if (output.statusCode !== 200 && output.statusCode >= 300) {
516
- return de_CommandError(output, context);
517
- }
518
- const contents = smithyClient.map({
519
- $metadata: deserializeMetadata(output),
520
- });
521
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
522
- const doc = smithyClient.take(data, {
523
- nextToken: smithyClient.expectString,
524
- tokenBalances: (_) => de_TokenBalanceList(_),
525
- });
526
- Object.assign(contents, doc);
527
- return contents;
528
- };
529
- const de_ListTransactionEventsCommand = async (output, context) => {
530
- if (output.statusCode !== 200 && output.statusCode >= 300) {
531
- return de_CommandError(output, context);
532
- }
533
- const contents = smithyClient.map({
534
- $metadata: deserializeMetadata(output),
535
- });
536
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
537
- const doc = smithyClient.take(data, {
538
- events: (_) => de_TransactionEventList(_),
539
- nextToken: smithyClient.expectString,
540
- });
541
- Object.assign(contents, doc);
542
- return contents;
543
- };
544
- const de_ListTransactionsCommand = async (output, context) => {
545
- if (output.statusCode !== 200 && output.statusCode >= 300) {
546
- return de_CommandError(output, context);
547
- }
548
- const contents = smithyClient.map({
549
- $metadata: deserializeMetadata(output),
550
- });
551
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
552
- const doc = smithyClient.take(data, {
553
- nextToken: smithyClient.expectString,
554
- transactions: (_) => de_TransactionOutputList(_),
555
- });
556
- Object.assign(contents, doc);
557
- return contents;
558
- };
559
- const de_CommandError = async (output, context) => {
560
- const parsedOutput = {
561
- ...output,
562
- body: await core$1.parseJsonErrorBody(output.body, context),
563
- };
564
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
565
- switch (errorCode) {
566
- case "AccessDeniedException":
567
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
568
- throw await de_AccessDeniedExceptionRes(parsedOutput);
569
- case "InternalServerException":
570
- case "com.amazonaws.managedblockchainquery#InternalServerException":
571
- throw await de_InternalServerExceptionRes(parsedOutput);
572
- case "ResourceNotFoundException":
573
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
574
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
575
- case "ServiceQuotaExceededException":
576
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
577
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
578
- case "ThrottlingException":
579
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
580
- throw await de_ThrottlingExceptionRes(parsedOutput);
581
- case "ValidationException":
582
- case "com.amazonaws.managedblockchainquery#ValidationException":
583
- throw await de_ValidationExceptionRes(parsedOutput);
584
- default:
585
- const parsedBody = parsedOutput.body;
586
- return throwDefaultError({
587
- output,
588
- parsedBody,
589
- errorCode,
590
- });
591
- }
592
- };
593
- const throwDefaultError = smithyClient.withBaseException(ManagedBlockchainQueryServiceException);
594
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
595
- const contents = smithyClient.map({});
596
- const data = parsedOutput.body;
597
- const doc = smithyClient.take(data, {
598
- message: smithyClient.expectString,
599
- });
600
- Object.assign(contents, doc);
601
- const exception = new AccessDeniedException({
602
- $metadata: deserializeMetadata(parsedOutput),
603
- ...contents,
604
- });
605
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
606
- };
607
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
608
- const contents = smithyClient.map({
609
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
610
- });
611
- const data = parsedOutput.body;
612
- const doc = smithyClient.take(data, {
613
- message: smithyClient.expectString,
614
- });
615
- Object.assign(contents, doc);
616
- const exception = new InternalServerException({
617
- $metadata: deserializeMetadata(parsedOutput),
618
- ...contents,
619
- });
620
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
621
- };
622
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
623
- const contents = smithyClient.map({});
624
- const data = parsedOutput.body;
625
- const doc = smithyClient.take(data, {
626
- message: smithyClient.expectString,
627
- resourceId: smithyClient.expectString,
628
- resourceType: smithyClient.expectString,
629
- });
630
- Object.assign(contents, doc);
631
- const exception = new ResourceNotFoundException({
632
- $metadata: deserializeMetadata(parsedOutput),
633
- ...contents,
634
- });
635
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
636
- };
637
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
638
- const contents = smithyClient.map({});
639
- const data = parsedOutput.body;
640
- const doc = smithyClient.take(data, {
641
- message: smithyClient.expectString,
642
- quotaCode: smithyClient.expectString,
643
- resourceId: smithyClient.expectString,
644
- resourceType: smithyClient.expectString,
645
- serviceCode: smithyClient.expectString,
646
- });
647
- Object.assign(contents, doc);
648
- const exception = new ServiceQuotaExceededException({
649
- $metadata: deserializeMetadata(parsedOutput),
650
- ...contents,
651
- });
652
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
653
- };
654
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
655
- const contents = smithyClient.map({
656
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
657
- });
658
- const data = parsedOutput.body;
659
- const doc = smithyClient.take(data, {
660
- message: smithyClient.expectString,
661
- quotaCode: smithyClient.expectString,
662
- serviceCode: smithyClient.expectString,
663
- });
664
- Object.assign(contents, doc);
665
- const exception = new ThrottlingException({
666
- $metadata: deserializeMetadata(parsedOutput),
667
- ...contents,
668
- });
669
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
670
- };
671
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
672
- const contents = smithyClient.map({});
673
- const data = parsedOutput.body;
674
- const doc = smithyClient.take(data, {
675
- fieldList: smithyClient._json,
676
- message: smithyClient.expectString,
677
- reason: smithyClient.expectString,
678
- });
679
- Object.assign(contents, doc);
680
- const exception = new ValidationException({
681
- $metadata: deserializeMetadata(parsedOutput),
682
- ...contents,
683
- });
684
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
685
- };
686
- const se_BatchGetTokenBalanceInputItem = (input, context) => {
687
- return smithyClient.take(input, {
688
- atBlockchainInstant: (_) => se_BlockchainInstant(_),
689
- ownerIdentifier: smithyClient._json,
690
- tokenIdentifier: smithyClient._json,
691
- });
692
- };
693
- const se_BlockchainInstant = (input, context) => {
694
- return smithyClient.take(input, {
695
- time: (_) => _.getTime() / 1_000,
696
- });
697
- };
698
- const se_GetTokenBalanceInputList = (input, context) => {
699
- return input
700
- .filter((e) => e != null)
701
- .map((entry) => {
702
- return se_BatchGetTokenBalanceInputItem(entry);
703
- });
704
- };
705
- const se_TimeFilter = (input, context) => {
706
- return smithyClient.take(input, {
707
- from: (_) => se_BlockchainInstant(_),
708
- to: (_) => se_BlockchainInstant(_),
709
- });
710
- };
711
- const de_BatchGetTokenBalanceErrorItem = (output, context) => {
712
- return smithyClient.take(output, {
713
- atBlockchainInstant: (_) => de_BlockchainInstant(_),
714
- errorCode: smithyClient.expectString,
715
- errorMessage: smithyClient.expectString,
716
- errorType: smithyClient.expectString,
717
- ownerIdentifier: smithyClient._json,
718
- tokenIdentifier: smithyClient._json,
719
- });
720
- };
721
- const de_BatchGetTokenBalanceErrors = (output, context) => {
722
- const retVal = (output || [])
723
- .filter((e) => e != null)
724
- .map((entry) => {
725
- return de_BatchGetTokenBalanceErrorItem(entry);
726
- });
727
- return retVal;
728
- };
729
- const de_BatchGetTokenBalanceOutputItem = (output, context) => {
730
- return smithyClient.take(output, {
731
- atBlockchainInstant: (_) => de_BlockchainInstant(_),
732
- balance: smithyClient.expectString,
733
- lastUpdatedTime: (_) => de_BlockchainInstant(_),
734
- ownerIdentifier: smithyClient._json,
735
- tokenIdentifier: smithyClient._json,
736
- });
737
- };
738
- const de_BatchGetTokenBalanceOutputList = (output, context) => {
739
- const retVal = (output || [])
740
- .filter((e) => e != null)
741
- .map((entry) => {
742
- return de_BatchGetTokenBalanceOutputItem(entry);
743
- });
744
- return retVal;
745
- };
746
- const de_BlockchainInstant = (output, context) => {
747
- return smithyClient.take(output, {
748
- time: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
749
- });
750
- };
751
- const de_TokenBalance = (output, context) => {
752
- return smithyClient.take(output, {
753
- atBlockchainInstant: (_) => de_BlockchainInstant(_),
754
- balance: smithyClient.expectString,
755
- lastUpdatedTime: (_) => de_BlockchainInstant(_),
756
- ownerIdentifier: smithyClient._json,
757
- tokenIdentifier: smithyClient._json,
758
- });
759
- };
760
- const de_TokenBalanceList = (output, context) => {
761
- const retVal = (output || [])
762
- .filter((e) => e != null)
763
- .map((entry) => {
764
- return de_TokenBalance(entry);
765
- });
766
- return retVal;
767
- };
768
- const de_Transaction = (output, context) => {
769
- return smithyClient.take(output, {
770
- blockHash: smithyClient.expectString,
771
- blockNumber: smithyClient.expectString,
772
- confirmationStatus: smithyClient.expectString,
773
- contractAddress: smithyClient.expectString,
774
- cumulativeGasUsed: smithyClient.expectString,
775
- effectiveGasPrice: smithyClient.expectString,
776
- executionStatus: smithyClient.expectString,
777
- from: smithyClient.expectString,
778
- gasUsed: smithyClient.expectString,
779
- network: smithyClient.expectString,
780
- numberOfTransactions: smithyClient.expectLong,
781
- signatureR: smithyClient.expectString,
782
- signatureS: smithyClient.expectString,
783
- signatureV: smithyClient.expectInt32,
784
- to: smithyClient.expectString,
785
- transactionFee: smithyClient.expectString,
786
- transactionHash: smithyClient.expectString,
787
- transactionId: smithyClient.expectString,
788
- transactionIndex: smithyClient.expectLong,
789
- transactionTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
790
- });
791
- };
792
- const de_TransactionEvent = (output, context) => {
793
- return smithyClient.take(output, {
794
- blockchainInstant: (_) => de_BlockchainInstant(_),
795
- confirmationStatus: smithyClient.expectString,
796
- contractAddress: smithyClient.expectString,
797
- eventType: smithyClient.expectString,
798
- from: smithyClient.expectString,
799
- network: smithyClient.expectString,
800
- spentVoutIndex: smithyClient.expectInt32,
801
- spentVoutTransactionHash: smithyClient.expectString,
802
- spentVoutTransactionId: smithyClient.expectString,
803
- to: smithyClient.expectString,
804
- tokenId: smithyClient.expectString,
805
- transactionHash: smithyClient.expectString,
806
- transactionId: smithyClient.expectString,
807
- value: smithyClient.expectString,
808
- voutIndex: smithyClient.expectInt32,
809
- voutSpent: smithyClient.expectBoolean,
810
- });
811
- };
812
- const de_TransactionEventList = (output, context) => {
813
- const retVal = (output || [])
814
- .filter((e) => e != null)
815
- .map((entry) => {
816
- return de_TransactionEvent(entry);
817
- });
818
- return retVal;
819
- };
820
- const de_TransactionOutputItem = (output, context) => {
821
- return smithyClient.take(output, {
822
- confirmationStatus: smithyClient.expectString,
823
- network: smithyClient.expectString,
824
- transactionHash: smithyClient.expectString,
825
- transactionId: smithyClient.expectString,
826
- transactionTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
827
- });
828
- };
829
- const de_TransactionOutputList = (output, context) => {
830
- const retVal = (output || [])
831
- .filter((e) => e != null)
832
- .map((entry) => {
833
- return de_TransactionOutputItem(entry);
834
- });
835
- return retVal;
836
- };
837
- const deserializeMetadata = (output) => ({
838
- httpStatusCode: output.statusCode,
839
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
840
- extendedRequestId: output.headers["x-amz-id-2"],
841
- cfId: output.headers["x-amz-cf-id"],
842
- });
276
+ const _AC = "AssetContract";
277
+ const _ACL = "AssetContractList";
278
+ const _ADE = "AccessDeniedException";
279
+ const _AIF = "AddressIdentifierFilter";
280
+ const _BGTB = "BatchGetTokenBalance";
281
+ const _BGTBE = "BatchGetTokenBalanceErrors";
282
+ const _BGTBEI = "BatchGetTokenBalanceErrorItem";
283
+ const _BGTBI = "BatchGetTokenBalanceInput";
284
+ const _BGTBII = "BatchGetTokenBalanceInputItem";
285
+ const _BGTBO = "BatchGetTokenBalanceOutput";
286
+ const _BGTBOI = "BatchGetTokenBalanceOutputItem";
287
+ const _BGTBOL = "BatchGetTokenBalanceOutputList";
288
+ const _BI = "BlockchainInstant";
289
+ const _CF = "ContractFilter";
290
+ const _CI = "ContractIdentifier";
291
+ const _CM = "ContractMetadata";
292
+ const _CSF = "ConfirmationStatusFilter";
293
+ const _GAC = "GetAssetContract";
294
+ const _GACI = "GetAssetContractInput";
295
+ const _GACO = "GetAssetContractOutput";
296
+ const _GT = "GetTransaction";
297
+ const _GTB = "GetTokenBalance";
298
+ const _GTBI = "GetTokenBalanceInput";
299
+ const _GTBIL = "GetTokenBalanceInputList";
300
+ const _GTBO = "GetTokenBalanceOutput";
301
+ const _GTI = "GetTransactionInput";
302
+ const _GTO = "GetTransactionOutput";
303
+ const _ISE = "InternalServerException";
304
+ const _LAC = "ListAssetContracts";
305
+ const _LACI = "ListAssetContractsInput";
306
+ const _LACO = "ListAssetContractsOutput";
307
+ const _LFTE = "ListFilteredTransactionEvents";
308
+ const _LFTEI = "ListFilteredTransactionEventsInput";
309
+ const _LFTEO = "ListFilteredTransactionEventsOutput";
310
+ const _LFTES = "ListFilteredTransactionEventsSort";
311
+ const _LT = "ListTransactions";
312
+ const _LTB = "ListTokenBalances";
313
+ const _LTBI = "ListTokenBalancesInput";
314
+ const _LTBO = "ListTokenBalancesOutput";
315
+ const _LTE = "ListTransactionEvents";
316
+ const _LTEI = "ListTransactionEventsInput";
317
+ const _LTEO = "ListTransactionEventsOutput";
318
+ const _LTI = "ListTransactionsInput";
319
+ const _LTO = "ListTransactionsOutput";
320
+ const _LTS = "ListTransactionsSort";
321
+ const _OF = "OwnerFilter";
322
+ const _OI = "OwnerIdentifier";
323
+ const _RA = "Retry-After";
324
+ const _RNFE = "ResourceNotFoundException";
325
+ const _SQEE = "ServiceQuotaExceededException";
326
+ const _T = "Transaction";
327
+ const _TB = "TokenBalance";
328
+ const _TBL = "TokenBalanceList";
329
+ const _TE = "ThrottlingException";
330
+ const _TEL = "TransactionEventList";
331
+ const _TEr = "TransactionEvent";
332
+ const _TF = "TimeFilter";
333
+ const _TFo = "TokenFilter";
334
+ const _TI = "TokenIdentifier";
335
+ const _TOI = "TransactionOutputItem";
336
+ const _TOL = "TransactionOutputList";
337
+ const _VE = "ValidationException";
338
+ const _VEF = "ValidationExceptionField";
339
+ const _VEFL = "ValidationExceptionFieldList";
340
+ const _VF = "VoutFilter";
341
+ const _a = "address";
342
+ const _aBI = "atBlockchainInstant";
343
+ const _aIF = "addressIdentifierFilter";
344
+ const _b = "balance";
345
+ const _bH = "blockHash";
346
+ const _bI = "blockchainInstant";
347
+ const _bN = "blockNumber";
348
+ const _c = "client";
349
+ const _cA = "contractAddress";
350
+ const _cF = "contractFilter";
351
+ const _cGU = "cumulativeGasUsed";
352
+ const _cI = "contractIdentifier";
353
+ const _cS = "confirmationStatus";
354
+ const _cSF = "confirmationStatusFilter";
355
+ const _co = "contracts";
356
+ const _d = "decimals";
357
+ const _dA = "deployerAddress";
358
+ const _e = "error";
359
+ const _eC = "errorCode";
360
+ const _eGP = "effectiveGasPrice";
361
+ const _eM = "errorMessage";
362
+ const _eS = "executionStatus";
363
+ const _eT = "errorType";
364
+ const _eTv = "eventType";
365
+ const _er = "errors";
366
+ const _ev = "events";
367
+ const _f = "from";
368
+ const _fBI = "fromBlockchainInstant";
369
+ const _fL = "fieldList";
370
+ const _gTBI = "getTokenBalanceInputs";
371
+ const _gU = "gasUsed";
372
+ const _h = "http";
373
+ const _hE = "httpError";
374
+ const _hH = "httpHeader";
375
+ const _i = "include";
376
+ const _lUT = "lastUpdatedTime";
377
+ const _m = "message";
378
+ const _mR = "maxResults";
379
+ const _me = "metadata";
380
+ const _n = "network";
381
+ const _nOT = "numberOfTransactions";
382
+ const _nT = "nextToken";
383
+ const _na = "name";
384
+ const _oF = "ownerFilter";
385
+ const _oI = "ownerIdentifier";
386
+ const _qC = "quotaCode";
387
+ const _r = "reason";
843
388
  const _rAS = "retryAfterSeconds";
844
- const _ra = "retry-after";
389
+ const _rI = "resourceId";
390
+ const _rT = "resourceType";
391
+ const _s = "symbol";
392
+ const _sB = "sortBy";
393
+ const _sC = "serviceCode";
394
+ const _sO = "sortOrder";
395
+ const _sR = "signatureR";
396
+ const _sS = "signatureS";
397
+ const _sV = "signatureV";
398
+ const _sVI = "spentVoutIndex";
399
+ const _sVTH = "spentVoutTransactionHash";
400
+ const _sVTI = "spentVoutTransactionId";
401
+ const _se = "server";
402
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.managedblockchainquery";
403
+ const _so = "sort";
404
+ const _t = "time";
405
+ const _tB = "tokenBalances";
406
+ const _tBI = "toBlockchainInstant";
407
+ const _tETA = "transactionEventToAddress";
408
+ const _tF = "timeFilter";
409
+ const _tFo = "tokenFilter";
410
+ const _tFr = "transactionFee";
411
+ const _tH = "transactionHash";
412
+ const _tI = "tokenIdentifier";
413
+ const _tIo = "tokenId";
414
+ const _tIr = "transactionId";
415
+ const _tIra = "transactionIndex";
416
+ const _tS = "tokenStandard";
417
+ const _tT = "transactionTimestamp";
418
+ const _to = "to";
419
+ const _tr = "transaction";
420
+ const _tra = "transactions";
421
+ const _v = "value";
422
+ const _vF = "voutFilter";
423
+ const _vI = "voutIndex";
424
+ const _vS = "voutSpent";
425
+ const n0 = "com.amazonaws.managedblockchainquery";
426
+ var AccessDeniedException = [
427
+ -3,
428
+ n0,
429
+ _ADE,
430
+ {
431
+ [_e]: _c,
432
+ [_hE]: 403,
433
+ },
434
+ [_m],
435
+ [0],
436
+ ];
437
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
438
+ var AddressIdentifierFilter = [3, n0, _AIF, 0, [_tETA], [64 | 0]];
439
+ var AssetContract = [3, n0, _AC, 0, [_cI, _tS, _dA], [() => ContractIdentifier, 0, 0]];
440
+ var BatchGetTokenBalanceErrorItem = [
441
+ 3,
442
+ n0,
443
+ _BGTBEI,
444
+ 0,
445
+ [_tI, _oI, _aBI, _eC, _eM, _eT],
446
+ [() => TokenIdentifier, () => OwnerIdentifier, () => BlockchainInstant, 0, 0, 0],
447
+ ];
448
+ var BatchGetTokenBalanceInput = [
449
+ 3,
450
+ n0,
451
+ _BGTBI,
452
+ 0,
453
+ [_gTBI],
454
+ [() => GetTokenBalanceInputList],
455
+ ];
456
+ var BatchGetTokenBalanceInputItem = [
457
+ 3,
458
+ n0,
459
+ _BGTBII,
460
+ 0,
461
+ [_tI, _oI, _aBI],
462
+ [() => TokenIdentifier, () => OwnerIdentifier, () => BlockchainInstant],
463
+ ];
464
+ var BatchGetTokenBalanceOutput = [
465
+ 3,
466
+ n0,
467
+ _BGTBO,
468
+ 0,
469
+ [_tB, _er],
470
+ [() => BatchGetTokenBalanceOutputList, () => BatchGetTokenBalanceErrors],
471
+ ];
472
+ var BatchGetTokenBalanceOutputItem = [
473
+ 3,
474
+ n0,
475
+ _BGTBOI,
476
+ 0,
477
+ [_oI, _tI, _b, _aBI, _lUT],
478
+ [() => OwnerIdentifier, () => TokenIdentifier, 0, () => BlockchainInstant, () => BlockchainInstant],
479
+ ];
480
+ var BlockchainInstant = [3, n0, _BI, 0, [_t], [4]];
481
+ var ConfirmationStatusFilter = [3, n0, _CSF, 0, [_i], [64 | 0]];
482
+ var ContractFilter = [3, n0, _CF, 0, [_n, _tS, _dA], [0, 0, 0]];
483
+ var ContractIdentifier = [3, n0, _CI, 0, [_n, _cA], [0, 0]];
484
+ var ContractMetadata = [3, n0, _CM, 0, [_na, _s, _d], [0, 0, 1]];
485
+ var GetAssetContractInput = [3, n0, _GACI, 0, [_cI], [() => ContractIdentifier]];
486
+ var GetAssetContractOutput = [
487
+ 3,
488
+ n0,
489
+ _GACO,
490
+ 0,
491
+ [_cI, _tS, _dA, _me],
492
+ [() => ContractIdentifier, 0, 0, () => ContractMetadata],
493
+ ];
494
+ var GetTokenBalanceInput = [
495
+ 3,
496
+ n0,
497
+ _GTBI,
498
+ 0,
499
+ [_tI, _oI, _aBI],
500
+ [() => TokenIdentifier, () => OwnerIdentifier, () => BlockchainInstant],
501
+ ];
502
+ var GetTokenBalanceOutput = [
503
+ 3,
504
+ n0,
505
+ _GTBO,
506
+ 0,
507
+ [_oI, _tI, _b, _aBI, _lUT],
508
+ [() => OwnerIdentifier, () => TokenIdentifier, 0, () => BlockchainInstant, () => BlockchainInstant],
509
+ ];
510
+ var GetTransactionInput = [3, n0, _GTI, 0, [_tH, _tIr, _n], [0, 0, 0]];
511
+ var GetTransactionOutput = [3, n0, _GTO, 0, [_tr], [() => Transaction]];
512
+ var InternalServerException = [
513
+ -3,
514
+ n0,
515
+ _ISE,
516
+ {
517
+ [_e]: _se,
518
+ [_hE]: 500,
519
+ },
520
+ [_m, _rAS],
521
+ [
522
+ 0,
523
+ [
524
+ 1,
525
+ {
526
+ [_hH]: _RA,
527
+ },
528
+ ],
529
+ ],
530
+ ];
531
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
532
+ var ListAssetContractsInput = [
533
+ 3,
534
+ n0,
535
+ _LACI,
536
+ 0,
537
+ [_cF, _nT, _mR],
538
+ [() => ContractFilter, 0, 1],
539
+ ];
540
+ var ListAssetContractsOutput = [
541
+ 3,
542
+ n0,
543
+ _LACO,
544
+ 0,
545
+ [_co, _nT],
546
+ [() => AssetContractList, 0],
547
+ ];
548
+ var ListFilteredTransactionEventsInput = [
549
+ 3,
550
+ n0,
551
+ _LFTEI,
552
+ 0,
553
+ [_n, _aIF, _tF, _vF, _cSF, _so, _nT, _mR],
554
+ [
555
+ 0,
556
+ () => AddressIdentifierFilter,
557
+ () => TimeFilter,
558
+ () => VoutFilter,
559
+ () => ConfirmationStatusFilter,
560
+ () => ListFilteredTransactionEventsSort,
561
+ 0,
562
+ 1,
563
+ ],
564
+ ];
565
+ var ListFilteredTransactionEventsOutput = [
566
+ 3,
567
+ n0,
568
+ _LFTEO,
569
+ 0,
570
+ [_ev, _nT],
571
+ [() => TransactionEventList, 0],
572
+ ];
573
+ var ListFilteredTransactionEventsSort = [3, n0, _LFTES, 0, [_sB, _sO], [0, 0]];
574
+ var ListTokenBalancesInput = [
575
+ 3,
576
+ n0,
577
+ _LTBI,
578
+ 0,
579
+ [_oF, _tFo, _nT, _mR],
580
+ [() => OwnerFilter, () => TokenFilter, 0, 1],
581
+ ];
582
+ var ListTokenBalancesOutput = [3, n0, _LTBO, 0, [_tB, _nT], [() => TokenBalanceList, 0]];
583
+ var ListTransactionEventsInput = [
584
+ 3,
585
+ n0,
586
+ _LTEI,
587
+ 0,
588
+ [_tH, _tIr, _n, _nT, _mR],
589
+ [0, 0, 0, 0, 1],
590
+ ];
591
+ var ListTransactionEventsOutput = [
592
+ 3,
593
+ n0,
594
+ _LTEO,
595
+ 0,
596
+ [_ev, _nT],
597
+ [() => TransactionEventList, 0],
598
+ ];
599
+ var ListTransactionsInput = [
600
+ 3,
601
+ n0,
602
+ _LTI,
603
+ 0,
604
+ [_a, _n, _fBI, _tBI, _so, _nT, _mR, _cSF],
605
+ [
606
+ 0,
607
+ 0,
608
+ () => BlockchainInstant,
609
+ () => BlockchainInstant,
610
+ () => ListTransactionsSort,
611
+ 0,
612
+ 1,
613
+ () => ConfirmationStatusFilter,
614
+ ],
615
+ ];
616
+ var ListTransactionsOutput = [
617
+ 3,
618
+ n0,
619
+ _LTO,
620
+ 0,
621
+ [_tra, _nT],
622
+ [() => TransactionOutputList, 0],
623
+ ];
624
+ var ListTransactionsSort = [3, n0, _LTS, 0, [_sB, _sO], [0, 0]];
625
+ var OwnerFilter = [3, n0, _OF, 0, [_a], [0]];
626
+ var OwnerIdentifier = [3, n0, _OI, 0, [_a], [0]];
627
+ var ResourceNotFoundException = [
628
+ -3,
629
+ n0,
630
+ _RNFE,
631
+ {
632
+ [_e]: _c,
633
+ [_hE]: 404,
634
+ },
635
+ [_m, _rI, _rT],
636
+ [0, 0, 0],
637
+ ];
638
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
639
+ var ServiceQuotaExceededException = [
640
+ -3,
641
+ n0,
642
+ _SQEE,
643
+ {
644
+ [_e]: _c,
645
+ [_hE]: 402,
646
+ },
647
+ [_m, _rI, _rT, _sC, _qC],
648
+ [0, 0, 0, 0, 0],
649
+ ];
650
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
651
+ var ThrottlingException = [
652
+ -3,
653
+ n0,
654
+ _TE,
655
+ {
656
+ [_e]: _c,
657
+ [_hE]: 429,
658
+ },
659
+ [_m, _sC, _qC, _rAS],
660
+ [
661
+ 0,
662
+ 0,
663
+ 0,
664
+ [
665
+ 1,
666
+ {
667
+ [_hH]: _RA,
668
+ },
669
+ ],
670
+ ],
671
+ ];
672
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
673
+ var TimeFilter = [
674
+ 3,
675
+ n0,
676
+ _TF,
677
+ 0,
678
+ [_f, _to],
679
+ [() => BlockchainInstant, () => BlockchainInstant],
680
+ ];
681
+ var TokenBalance = [
682
+ 3,
683
+ n0,
684
+ _TB,
685
+ 0,
686
+ [_oI, _tI, _b, _aBI, _lUT],
687
+ [() => OwnerIdentifier, () => TokenIdentifier, 0, () => BlockchainInstant, () => BlockchainInstant],
688
+ ];
689
+ var TokenFilter = [3, n0, _TFo, 0, [_n, _cA, _tIo], [0, 0, 0]];
690
+ var TokenIdentifier = [3, n0, _TI, 0, [_n, _cA, _tIo], [0, 0, 0]];
691
+ var Transaction = [
692
+ 3,
693
+ n0,
694
+ _T,
695
+ 0,
696
+ [_n, _bH, _tH, _bN, _tT, _tIra, _nOT, _to, _f, _cA, _gU, _cGU, _eGP, _sV, _sR, _sS, _tFr, _tIr, _cS, _eS],
697
+ [0, 0, 0, 0, 4, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
698
+ ];
699
+ var TransactionEvent = [
700
+ 3,
701
+ n0,
702
+ _TEr,
703
+ 0,
704
+ [_n, _tH, _eTv, _f, _to, _v, _cA, _tIo, _tIr, _vI, _vS, _sVTI, _sVTH, _sVI, _bI, _cS],
705
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 0, 1, () => BlockchainInstant, 0],
706
+ ];
707
+ var TransactionOutputItem = [3, n0, _TOI, 0, [_tH, _tIr, _n, _tT, _cS], [0, 0, 0, 4, 0]];
708
+ var ValidationException = [
709
+ -3,
710
+ n0,
711
+ _VE,
712
+ {
713
+ [_e]: _c,
714
+ [_hE]: 400,
715
+ },
716
+ [_m, _r, _fL],
717
+ [0, 0, () => ValidationExceptionFieldList],
718
+ ];
719
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
720
+ var ValidationExceptionField = [3, n0, _VEF, 0, [_na, _m], [0, 0]];
721
+ var VoutFilter = [3, n0, _VF, 0, [_vS], [2]];
722
+ var ManagedBlockchainQueryServiceException = [
723
+ -3,
724
+ _sm,
725
+ "ManagedBlockchainQueryServiceException",
726
+ 0,
727
+ [],
728
+ [],
729
+ ];
730
+ schema.TypeRegistry.for(_sm).registerError(ManagedBlockchainQueryServiceException, ManagedBlockchainQueryServiceException$1);
731
+ var AssetContractList = [1, n0, _ACL, 0, () => AssetContract];
732
+ var BatchGetTokenBalanceErrors = [1, n0, _BGTBE, 0, () => BatchGetTokenBalanceErrorItem];
733
+ var BatchGetTokenBalanceOutputList = [1, n0, _BGTBOL, 0, () => BatchGetTokenBalanceOutputItem];
734
+ var GetTokenBalanceInputList = [1, n0, _GTBIL, 0, () => BatchGetTokenBalanceInputItem];
735
+ var TokenBalanceList = [1, n0, _TBL, 0, () => TokenBalance];
736
+ var TransactionEventList = [1, n0, _TEL, 0, () => TransactionEvent];
737
+ var TransactionOutputList = [1, n0, _TOL, 0, () => TransactionOutputItem];
738
+ var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
739
+ var BatchGetTokenBalance = [
740
+ 9,
741
+ n0,
742
+ _BGTB,
743
+ {
744
+ [_h]: ["POST", "/batch-get-token-balance", 200],
745
+ },
746
+ () => BatchGetTokenBalanceInput,
747
+ () => BatchGetTokenBalanceOutput,
748
+ ];
749
+ var GetAssetContract = [
750
+ 9,
751
+ n0,
752
+ _GAC,
753
+ {
754
+ [_h]: ["POST", "/get-asset-contract", 200],
755
+ },
756
+ () => GetAssetContractInput,
757
+ () => GetAssetContractOutput,
758
+ ];
759
+ var GetTokenBalance = [
760
+ 9,
761
+ n0,
762
+ _GTB,
763
+ {
764
+ [_h]: ["POST", "/get-token-balance", 200],
765
+ },
766
+ () => GetTokenBalanceInput,
767
+ () => GetTokenBalanceOutput,
768
+ ];
769
+ var GetTransaction = [
770
+ 9,
771
+ n0,
772
+ _GT,
773
+ {
774
+ [_h]: ["POST", "/get-transaction", 200],
775
+ },
776
+ () => GetTransactionInput,
777
+ () => GetTransactionOutput,
778
+ ];
779
+ var ListAssetContracts = [
780
+ 9,
781
+ n0,
782
+ _LAC,
783
+ {
784
+ [_h]: ["POST", "/list-asset-contracts", 200],
785
+ },
786
+ () => ListAssetContractsInput,
787
+ () => ListAssetContractsOutput,
788
+ ];
789
+ var ListFilteredTransactionEvents = [
790
+ 9,
791
+ n0,
792
+ _LFTE,
793
+ {
794
+ [_h]: ["POST", "/list-filtered-transaction-events", 200],
795
+ },
796
+ () => ListFilteredTransactionEventsInput,
797
+ () => ListFilteredTransactionEventsOutput,
798
+ ];
799
+ var ListTokenBalances = [
800
+ 9,
801
+ n0,
802
+ _LTB,
803
+ {
804
+ [_h]: ["POST", "/list-token-balances", 200],
805
+ },
806
+ () => ListTokenBalancesInput,
807
+ () => ListTokenBalancesOutput,
808
+ ];
809
+ var ListTransactionEvents = [
810
+ 9,
811
+ n0,
812
+ _LTE,
813
+ {
814
+ [_h]: ["POST", "/list-transaction-events", 200],
815
+ },
816
+ () => ListTransactionEventsInput,
817
+ () => ListTransactionEventsOutput,
818
+ ];
819
+ var ListTransactions = [
820
+ 9,
821
+ n0,
822
+ _LT,
823
+ {
824
+ [_h]: ["POST", "/list-transactions", 200],
825
+ },
826
+ () => ListTransactionsInput,
827
+ () => ListTransactionsOutput,
828
+ ];
845
829
 
846
830
  class BatchGetTokenBalanceCommand extends smithyClient.Command
847
831
  .classBuilder()
848
832
  .ep(commonParams)
849
833
  .m(function (Command, cs, config, o) {
850
- return [
851
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
852
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
853
- ];
834
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
854
835
  })
855
836
  .s("TietonChainQueryService", "BatchGetTokenBalance", {})
856
837
  .n("ManagedBlockchainQueryClient", "BatchGetTokenBalanceCommand")
857
- .f(void 0, void 0)
858
- .ser(se_BatchGetTokenBalanceCommand)
859
- .de(de_BatchGetTokenBalanceCommand)
838
+ .sc(BatchGetTokenBalance)
860
839
  .build() {
861
840
  }
862
841
 
@@ -864,16 +843,11 @@ class GetAssetContractCommand extends smithyClient.Command
864
843
  .classBuilder()
865
844
  .ep(commonParams)
866
845
  .m(function (Command, cs, config, o) {
867
- return [
868
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
869
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
870
- ];
846
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
871
847
  })
872
848
  .s("TietonChainQueryService", "GetAssetContract", {})
873
849
  .n("ManagedBlockchainQueryClient", "GetAssetContractCommand")
874
- .f(void 0, void 0)
875
- .ser(se_GetAssetContractCommand)
876
- .de(de_GetAssetContractCommand)
850
+ .sc(GetAssetContract)
877
851
  .build() {
878
852
  }
879
853
 
@@ -881,16 +855,11 @@ class GetTokenBalanceCommand extends smithyClient.Command
881
855
  .classBuilder()
882
856
  .ep(commonParams)
883
857
  .m(function (Command, cs, config, o) {
884
- return [
885
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
886
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
887
- ];
858
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
888
859
  })
889
860
  .s("TietonChainQueryService", "GetTokenBalance", {})
890
861
  .n("ManagedBlockchainQueryClient", "GetTokenBalanceCommand")
891
- .f(void 0, void 0)
892
- .ser(se_GetTokenBalanceCommand)
893
- .de(de_GetTokenBalanceCommand)
862
+ .sc(GetTokenBalance)
894
863
  .build() {
895
864
  }
896
865
 
@@ -898,16 +867,11 @@ class GetTransactionCommand extends smithyClient.Command
898
867
  .classBuilder()
899
868
  .ep(commonParams)
900
869
  .m(function (Command, cs, config, o) {
901
- return [
902
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
903
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
904
- ];
870
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
905
871
  })
906
872
  .s("TietonChainQueryService", "GetTransaction", {})
907
873
  .n("ManagedBlockchainQueryClient", "GetTransactionCommand")
908
- .f(void 0, void 0)
909
- .ser(se_GetTransactionCommand)
910
- .de(de_GetTransactionCommand)
874
+ .sc(GetTransaction)
911
875
  .build() {
912
876
  }
913
877
 
@@ -915,16 +879,11 @@ class ListAssetContractsCommand extends smithyClient.Command
915
879
  .classBuilder()
916
880
  .ep(commonParams)
917
881
  .m(function (Command, cs, config, o) {
918
- return [
919
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
920
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
921
- ];
882
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
922
883
  })
923
884
  .s("TietonChainQueryService", "ListAssetContracts", {})
924
885
  .n("ManagedBlockchainQueryClient", "ListAssetContractsCommand")
925
- .f(void 0, void 0)
926
- .ser(se_ListAssetContractsCommand)
927
- .de(de_ListAssetContractsCommand)
886
+ .sc(ListAssetContracts)
928
887
  .build() {
929
888
  }
930
889
 
@@ -932,16 +891,11 @@ class ListFilteredTransactionEventsCommand extends smithyClient.Command
932
891
  .classBuilder()
933
892
  .ep(commonParams)
934
893
  .m(function (Command, cs, config, o) {
935
- return [
936
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
937
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
938
- ];
894
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
939
895
  })
940
896
  .s("TietonChainQueryService", "ListFilteredTransactionEvents", {})
941
897
  .n("ManagedBlockchainQueryClient", "ListFilteredTransactionEventsCommand")
942
- .f(void 0, void 0)
943
- .ser(se_ListFilteredTransactionEventsCommand)
944
- .de(de_ListFilteredTransactionEventsCommand)
898
+ .sc(ListFilteredTransactionEvents)
945
899
  .build() {
946
900
  }
947
901
 
@@ -949,16 +903,11 @@ class ListTokenBalancesCommand extends smithyClient.Command
949
903
  .classBuilder()
950
904
  .ep(commonParams)
951
905
  .m(function (Command, cs, config, o) {
952
- return [
953
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
954
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
955
- ];
906
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
956
907
  })
957
908
  .s("TietonChainQueryService", "ListTokenBalances", {})
958
909
  .n("ManagedBlockchainQueryClient", "ListTokenBalancesCommand")
959
- .f(void 0, void 0)
960
- .ser(se_ListTokenBalancesCommand)
961
- .de(de_ListTokenBalancesCommand)
910
+ .sc(ListTokenBalances)
962
911
  .build() {
963
912
  }
964
913
 
@@ -966,16 +915,11 @@ class ListTransactionEventsCommand extends smithyClient.Command
966
915
  .classBuilder()
967
916
  .ep(commonParams)
968
917
  .m(function (Command, cs, config, o) {
969
- return [
970
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
971
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
972
- ];
918
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
973
919
  })
974
920
  .s("TietonChainQueryService", "ListTransactionEvents", {})
975
921
  .n("ManagedBlockchainQueryClient", "ListTransactionEventsCommand")
976
- .f(void 0, void 0)
977
- .ser(se_ListTransactionEventsCommand)
978
- .de(de_ListTransactionEventsCommand)
922
+ .sc(ListTransactionEvents)
979
923
  .build() {
980
924
  }
981
925
 
@@ -983,16 +927,11 @@ class ListTransactionsCommand extends smithyClient.Command
983
927
  .classBuilder()
984
928
  .ep(commonParams)
985
929
  .m(function (Command, cs, config, o) {
986
- return [
987
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
988
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
989
- ];
930
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
990
931
  })
991
932
  .s("TietonChainQueryService", "ListTransactions", {})
992
933
  .n("ManagedBlockchainQueryClient", "ListTransactionsCommand")
993
- .f(void 0, void 0)
994
- .ser(se_ListTransactionsCommand)
995
- .de(de_ListTransactionsCommand)
934
+ .sc(ListTransactions)
996
935
  .build() {
997
936
  }
998
937
 
@@ -1029,7 +968,7 @@ Object.defineProperty(exports, "__Client", {
1029
968
  enumerable: true,
1030
969
  get: function () { return smithyClient.Client; }
1031
970
  });
1032
- exports.AccessDeniedException = AccessDeniedException;
971
+ exports.AccessDeniedException = AccessDeniedException$1;
1033
972
  exports.BatchGetTokenBalanceCommand = BatchGetTokenBalanceCommand;
1034
973
  exports.ConfirmationStatus = ConfirmationStatus;
1035
974
  exports.ErrorType = ErrorType;
@@ -1037,7 +976,7 @@ exports.ExecutionStatus = ExecutionStatus;
1037
976
  exports.GetAssetContractCommand = GetAssetContractCommand;
1038
977
  exports.GetTokenBalanceCommand = GetTokenBalanceCommand;
1039
978
  exports.GetTransactionCommand = GetTransactionCommand;
1040
- exports.InternalServerException = InternalServerException;
979
+ exports.InternalServerException = InternalServerException$1;
1041
980
  exports.ListAssetContractsCommand = ListAssetContractsCommand;
1042
981
  exports.ListFilteredTransactionEventsCommand = ListFilteredTransactionEventsCommand;
1043
982
  exports.ListFilteredTransactionEventsSortBy = ListFilteredTransactionEventsSortBy;
@@ -1047,16 +986,16 @@ exports.ListTransactionsCommand = ListTransactionsCommand;
1047
986
  exports.ListTransactionsSortBy = ListTransactionsSortBy;
1048
987
  exports.ManagedBlockchainQuery = ManagedBlockchainQuery;
1049
988
  exports.ManagedBlockchainQueryClient = ManagedBlockchainQueryClient;
1050
- exports.ManagedBlockchainQueryServiceException = ManagedBlockchainQueryServiceException;
989
+ exports.ManagedBlockchainQueryServiceException = ManagedBlockchainQueryServiceException$1;
1051
990
  exports.QueryNetwork = QueryNetwork;
1052
991
  exports.QueryTokenStandard = QueryTokenStandard;
1053
992
  exports.QueryTransactionEventType = QueryTransactionEventType;
1054
- exports.ResourceNotFoundException = ResourceNotFoundException;
993
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1055
994
  exports.ResourceType = ResourceType;
1056
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
995
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1057
996
  exports.SortOrder = SortOrder;
1058
- exports.ThrottlingException = ThrottlingException;
1059
- exports.ValidationException = ValidationException;
997
+ exports.ThrottlingException = ThrottlingException$1;
998
+ exports.ValidationException = ValidationException$1;
1060
999
  exports.ValidationExceptionReason = ValidationExceptionReason;
1061
1000
  exports.paginateListAssetContracts = paginateListAssetContracts;
1062
1001
  exports.paginateListFilteredTransactionEvents = paginateListFilteredTransactionEvents;