@aws-sdk/client-managedblockchain-query 3.504.0 → 3.507.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.
package/dist-cjs/index.js CHANGED
@@ -41,7 +41,6 @@ __export(src_exports, {
41
41
  QueryNetwork: () => QueryNetwork,
42
42
  QueryTokenStandard: () => QueryTokenStandard,
43
43
  QueryTransactionEventType: () => QueryTransactionEventType,
44
- QueryTransactionStatus: () => QueryTransactionStatus,
45
44
  ResourceNotFoundException: () => ResourceNotFoundException,
46
45
  ResourceType: () => ResourceType,
47
46
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
@@ -331,22 +330,13 @@ var _ValidationException = class _ValidationException extends ManagedBlockchainQ
331
330
  __name(_ValidationException, "ValidationException");
332
331
  var ValidationException = _ValidationException;
333
332
  var ConfirmationStatus = {
334
- FINAL: "FINAL"
333
+ FINAL: "FINAL",
334
+ NONFINAL: "NONFINAL"
335
335
  };
336
336
  var ExecutionStatus = {
337
337
  FAILED: "FAILED",
338
338
  SUCCEEDED: "SUCCEEDED"
339
339
  };
340
- var QueryTransactionStatus = {
341
- /**
342
- * The transaction completed on the blockchain, but failed
343
- */
344
- FAILED: "FAILED",
345
- /**
346
- * The transaction has been confirmed and is final in the blockchain
347
- */
348
- FINAL: "FINAL"
349
- };
350
340
  var QueryTransactionEventType = {
351
341
  /**
352
342
  * A Bitcoin Vin transfer type
@@ -537,6 +527,7 @@ var se_ListTransactionsCommand = /* @__PURE__ */ __name(async (input, context) =
537
527
  body = JSON.stringify(
538
528
  (0, import_smithy_client.take)(input, {
539
529
  address: [],
530
+ confirmationStatusFilter: (_) => (0, import_smithy_client._json)(_),
540
531
  fromBlockchainInstant: (_) => se_BlockchainInstant(_, context),
541
532
  maxResults: [],
542
533
  network: [],
@@ -550,7 +541,7 @@ var se_ListTransactionsCommand = /* @__PURE__ */ __name(async (input, context) =
550
541
  }, "se_ListTransactionsCommand");
551
542
  var de_BatchGetTokenBalanceCommand = /* @__PURE__ */ __name(async (output, context) => {
552
543
  if (output.statusCode !== 200 && output.statusCode >= 300) {
553
- return de_BatchGetTokenBalanceCommandError(output, context);
544
+ return de_CommandError(output, context);
554
545
  }
555
546
  const contents = (0, import_smithy_client.map)({
556
547
  $metadata: deserializeMetadata(output)
@@ -563,43 +554,9 @@ var de_BatchGetTokenBalanceCommand = /* @__PURE__ */ __name(async (output, conte
563
554
  Object.assign(contents, doc);
564
555
  return contents;
565
556
  }, "de_BatchGetTokenBalanceCommand");
566
- var de_BatchGetTokenBalanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
567
- const parsedOutput = {
568
- ...output,
569
- body: await parseErrorBody(output.body, context)
570
- };
571
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
572
- switch (errorCode) {
573
- case "AccessDeniedException":
574
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
575
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
576
- case "InternalServerException":
577
- case "com.amazonaws.managedblockchainquery#InternalServerException":
578
- throw await de_InternalServerExceptionRes(parsedOutput, context);
579
- case "ResourceNotFoundException":
580
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
581
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
582
- case "ServiceQuotaExceededException":
583
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
584
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
585
- case "ThrottlingException":
586
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
587
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
588
- case "ValidationException":
589
- case "com.amazonaws.managedblockchainquery#ValidationException":
590
- throw await de_ValidationExceptionRes(parsedOutput, context);
591
- default:
592
- const parsedBody = parsedOutput.body;
593
- return throwDefaultError({
594
- output,
595
- parsedBody,
596
- errorCode
597
- });
598
- }
599
- }, "de_BatchGetTokenBalanceCommandError");
600
557
  var de_GetAssetContractCommand = /* @__PURE__ */ __name(async (output, context) => {
601
558
  if (output.statusCode !== 200 && output.statusCode >= 300) {
602
- return de_GetAssetContractCommandError(output, context);
559
+ return de_CommandError(output, context);
603
560
  }
604
561
  const contents = (0, import_smithy_client.map)({
605
562
  $metadata: deserializeMetadata(output)
@@ -614,43 +571,9 @@ var de_GetAssetContractCommand = /* @__PURE__ */ __name(async (output, context)
614
571
  Object.assign(contents, doc);
615
572
  return contents;
616
573
  }, "de_GetAssetContractCommand");
617
- var de_GetAssetContractCommandError = /* @__PURE__ */ __name(async (output, context) => {
618
- const parsedOutput = {
619
- ...output,
620
- body: await parseErrorBody(output.body, context)
621
- };
622
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
623
- switch (errorCode) {
624
- case "AccessDeniedException":
625
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
626
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
627
- case "InternalServerException":
628
- case "com.amazonaws.managedblockchainquery#InternalServerException":
629
- throw await de_InternalServerExceptionRes(parsedOutput, context);
630
- case "ResourceNotFoundException":
631
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
632
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
633
- case "ServiceQuotaExceededException":
634
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
635
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
636
- case "ThrottlingException":
637
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
638
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
639
- case "ValidationException":
640
- case "com.amazonaws.managedblockchainquery#ValidationException":
641
- throw await de_ValidationExceptionRes(parsedOutput, context);
642
- default:
643
- const parsedBody = parsedOutput.body;
644
- return throwDefaultError({
645
- output,
646
- parsedBody,
647
- errorCode
648
- });
649
- }
650
- }, "de_GetAssetContractCommandError");
651
574
  var de_GetTokenBalanceCommand = /* @__PURE__ */ __name(async (output, context) => {
652
575
  if (output.statusCode !== 200 && output.statusCode >= 300) {
653
- return de_GetTokenBalanceCommandError(output, context);
576
+ return de_CommandError(output, context);
654
577
  }
655
578
  const contents = (0, import_smithy_client.map)({
656
579
  $metadata: deserializeMetadata(output)
@@ -666,43 +589,9 @@ var de_GetTokenBalanceCommand = /* @__PURE__ */ __name(async (output, context) =
666
589
  Object.assign(contents, doc);
667
590
  return contents;
668
591
  }, "de_GetTokenBalanceCommand");
669
- var de_GetTokenBalanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
670
- const parsedOutput = {
671
- ...output,
672
- body: await parseErrorBody(output.body, context)
673
- };
674
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
675
- switch (errorCode) {
676
- case "AccessDeniedException":
677
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
678
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
679
- case "InternalServerException":
680
- case "com.amazonaws.managedblockchainquery#InternalServerException":
681
- throw await de_InternalServerExceptionRes(parsedOutput, context);
682
- case "ResourceNotFoundException":
683
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
684
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
685
- case "ServiceQuotaExceededException":
686
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
687
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
688
- case "ThrottlingException":
689
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
690
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
691
- case "ValidationException":
692
- case "com.amazonaws.managedblockchainquery#ValidationException":
693
- throw await de_ValidationExceptionRes(parsedOutput, context);
694
- default:
695
- const parsedBody = parsedOutput.body;
696
- return throwDefaultError({
697
- output,
698
- parsedBody,
699
- errorCode
700
- });
701
- }
702
- }, "de_GetTokenBalanceCommandError");
703
592
  var de_GetTransactionCommand = /* @__PURE__ */ __name(async (output, context) => {
704
593
  if (output.statusCode !== 200 && output.statusCode >= 300) {
705
- return de_GetTransactionCommandError(output, context);
594
+ return de_CommandError(output, context);
706
595
  }
707
596
  const contents = (0, import_smithy_client.map)({
708
597
  $metadata: deserializeMetadata(output)
@@ -714,43 +603,9 @@ var de_GetTransactionCommand = /* @__PURE__ */ __name(async (output, context) =>
714
603
  Object.assign(contents, doc);
715
604
  return contents;
716
605
  }, "de_GetTransactionCommand");
717
- var de_GetTransactionCommandError = /* @__PURE__ */ __name(async (output, context) => {
718
- const parsedOutput = {
719
- ...output,
720
- body: await parseErrorBody(output.body, context)
721
- };
722
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
723
- switch (errorCode) {
724
- case "AccessDeniedException":
725
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
726
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
727
- case "InternalServerException":
728
- case "com.amazonaws.managedblockchainquery#InternalServerException":
729
- throw await de_InternalServerExceptionRes(parsedOutput, context);
730
- case "ResourceNotFoundException":
731
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
732
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
733
- case "ServiceQuotaExceededException":
734
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
735
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
736
- case "ThrottlingException":
737
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
738
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
739
- case "ValidationException":
740
- case "com.amazonaws.managedblockchainquery#ValidationException":
741
- throw await de_ValidationExceptionRes(parsedOutput, context);
742
- default:
743
- const parsedBody = parsedOutput.body;
744
- return throwDefaultError({
745
- output,
746
- parsedBody,
747
- errorCode
748
- });
749
- }
750
- }, "de_GetTransactionCommandError");
751
606
  var de_ListAssetContractsCommand = /* @__PURE__ */ __name(async (output, context) => {
752
607
  if (output.statusCode !== 200 && output.statusCode >= 300) {
753
- return de_ListAssetContractsCommandError(output, context);
608
+ return de_CommandError(output, context);
754
609
  }
755
610
  const contents = (0, import_smithy_client.map)({
756
611
  $metadata: deserializeMetadata(output)
@@ -763,40 +618,9 @@ var de_ListAssetContractsCommand = /* @__PURE__ */ __name(async (output, context
763
618
  Object.assign(contents, doc);
764
619
  return contents;
765
620
  }, "de_ListAssetContractsCommand");
766
- var de_ListAssetContractsCommandError = /* @__PURE__ */ __name(async (output, context) => {
767
- const parsedOutput = {
768
- ...output,
769
- body: await parseErrorBody(output.body, context)
770
- };
771
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
772
- switch (errorCode) {
773
- case "AccessDeniedException":
774
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
775
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
776
- case "InternalServerException":
777
- case "com.amazonaws.managedblockchainquery#InternalServerException":
778
- throw await de_InternalServerExceptionRes(parsedOutput, context);
779
- case "ServiceQuotaExceededException":
780
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
781
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
782
- case "ThrottlingException":
783
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
784
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
785
- case "ValidationException":
786
- case "com.amazonaws.managedblockchainquery#ValidationException":
787
- throw await de_ValidationExceptionRes(parsedOutput, context);
788
- default:
789
- const parsedBody = parsedOutput.body;
790
- return throwDefaultError({
791
- output,
792
- parsedBody,
793
- errorCode
794
- });
795
- }
796
- }, "de_ListAssetContractsCommandError");
797
621
  var de_ListTokenBalancesCommand = /* @__PURE__ */ __name(async (output, context) => {
798
622
  if (output.statusCode !== 200 && output.statusCode >= 300) {
799
- return de_ListTokenBalancesCommandError(output, context);
623
+ return de_CommandError(output, context);
800
624
  }
801
625
  const contents = (0, import_smithy_client.map)({
802
626
  $metadata: deserializeMetadata(output)
@@ -809,40 +633,9 @@ var de_ListTokenBalancesCommand = /* @__PURE__ */ __name(async (output, context)
809
633
  Object.assign(contents, doc);
810
634
  return contents;
811
635
  }, "de_ListTokenBalancesCommand");
812
- var de_ListTokenBalancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
813
- const parsedOutput = {
814
- ...output,
815
- body: await parseErrorBody(output.body, context)
816
- };
817
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
818
- switch (errorCode) {
819
- case "AccessDeniedException":
820
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
821
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
822
- case "InternalServerException":
823
- case "com.amazonaws.managedblockchainquery#InternalServerException":
824
- throw await de_InternalServerExceptionRes(parsedOutput, context);
825
- case "ServiceQuotaExceededException":
826
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
827
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
828
- case "ThrottlingException":
829
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
830
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
831
- case "ValidationException":
832
- case "com.amazonaws.managedblockchainquery#ValidationException":
833
- throw await de_ValidationExceptionRes(parsedOutput, context);
834
- default:
835
- const parsedBody = parsedOutput.body;
836
- return throwDefaultError({
837
- output,
838
- parsedBody,
839
- errorCode
840
- });
841
- }
842
- }, "de_ListTokenBalancesCommandError");
843
636
  var de_ListTransactionEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
844
637
  if (output.statusCode !== 200 && output.statusCode >= 300) {
845
- return de_ListTransactionEventsCommandError(output, context);
638
+ return de_CommandError(output, context);
846
639
  }
847
640
  const contents = (0, import_smithy_client.map)({
848
641
  $metadata: deserializeMetadata(output)
@@ -855,40 +648,9 @@ var de_ListTransactionEventsCommand = /* @__PURE__ */ __name(async (output, cont
855
648
  Object.assign(contents, doc);
856
649
  return contents;
857
650
  }, "de_ListTransactionEventsCommand");
858
- var de_ListTransactionEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
859
- const parsedOutput = {
860
- ...output,
861
- body: await parseErrorBody(output.body, context)
862
- };
863
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
864
- switch (errorCode) {
865
- case "AccessDeniedException":
866
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
867
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
868
- case "InternalServerException":
869
- case "com.amazonaws.managedblockchainquery#InternalServerException":
870
- throw await de_InternalServerExceptionRes(parsedOutput, context);
871
- case "ServiceQuotaExceededException":
872
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
873
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
874
- case "ThrottlingException":
875
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
876
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
877
- case "ValidationException":
878
- case "com.amazonaws.managedblockchainquery#ValidationException":
879
- throw await de_ValidationExceptionRes(parsedOutput, context);
880
- default:
881
- const parsedBody = parsedOutput.body;
882
- return throwDefaultError({
883
- output,
884
- parsedBody,
885
- errorCode
886
- });
887
- }
888
- }, "de_ListTransactionEventsCommandError");
889
651
  var de_ListTransactionsCommand = /* @__PURE__ */ __name(async (output, context) => {
890
652
  if (output.statusCode !== 200 && output.statusCode >= 300) {
891
- return de_ListTransactionsCommandError(output, context);
653
+ return de_CommandError(output, context);
892
654
  }
893
655
  const contents = (0, import_smithy_client.map)({
894
656
  $metadata: deserializeMetadata(output)
@@ -901,7 +663,7 @@ var de_ListTransactionsCommand = /* @__PURE__ */ __name(async (output, context)
901
663
  Object.assign(contents, doc);
902
664
  return contents;
903
665
  }, "de_ListTransactionsCommand");
904
- var de_ListTransactionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
666
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
905
667
  const parsedOutput = {
906
668
  ...output,
907
669
  body: await parseErrorBody(output.body, context)
@@ -914,6 +676,9 @@ var de_ListTransactionsCommandError = /* @__PURE__ */ __name(async (output, cont
914
676
  case "InternalServerException":
915
677
  case "com.amazonaws.managedblockchainquery#InternalServerException":
916
678
  throw await de_InternalServerExceptionRes(parsedOutput, context);
679
+ case "ResourceNotFoundException":
680
+ case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
681
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
917
682
  case "ServiceQuotaExceededException":
918
683
  case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
919
684
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
@@ -931,7 +696,7 @@ var de_ListTransactionsCommandError = /* @__PURE__ */ __name(async (output, cont
931
696
  errorCode
932
697
  });
933
698
  }
934
- }, "de_ListTransactionsCommandError");
699
+ }, "de_CommandError");
935
700
  var throwDefaultError = (0, import_smithy_client.withBaseException)(ManagedBlockchainQueryServiceException);
936
701
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
937
702
  const contents = (0, import_smithy_client.map)({});
@@ -1109,7 +874,6 @@ var de_Transaction = /* @__PURE__ */ __name((output, context) => {
1109
874
  signatureR: import_smithy_client.expectString,
1110
875
  signatureS: import_smithy_client.expectString,
1111
876
  signatureV: import_smithy_client.expectInt32,
1112
- status: import_smithy_client.expectString,
1113
877
  to: import_smithy_client.expectString,
1114
878
  transactionFee: import_smithy_client.expectString,
1115
879
  transactionHash: import_smithy_client.expectString,
@@ -1120,6 +884,7 @@ var de_Transaction = /* @__PURE__ */ __name((output, context) => {
1120
884
  }, "de_Transaction");
1121
885
  var de_TransactionOutputItem = /* @__PURE__ */ __name((output, context) => {
1122
886
  return (0, import_smithy_client.take)(output, {
887
+ confirmationStatus: import_smithy_client.expectString,
1123
888
  network: import_smithy_client.expectString,
1124
889
  transactionHash: import_smithy_client.expectString,
1125
890
  transactionTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
@@ -1381,7 +1146,6 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
1381
1146
  ValidationException,
1382
1147
  ConfirmationStatus,
1383
1148
  ExecutionStatus,
1384
- QueryTransactionStatus,
1385
1149
  QueryTransactionEventType,
1386
1150
  ListTransactionsSortBy,
1387
1151
  SortOrder
@@ -113,15 +113,12 @@ export class ValidationException extends __BaseException {
113
113
  }
114
114
  export const ConfirmationStatus = {
115
115
  FINAL: "FINAL",
116
+ NONFINAL: "NONFINAL",
116
117
  };
117
118
  export const ExecutionStatus = {
118
119
  FAILED: "FAILED",
119
120
  SUCCEEDED: "SUCCEEDED",
120
121
  };
121
- export const QueryTransactionStatus = {
122
- FAILED: "FAILED",
123
- FINAL: "FINAL",
124
- };
125
122
  export const QueryTransactionEventType = {
126
123
  BITCOIN_VIN: "BITCOIN_VIN",
127
124
  BITCOIN_VOUT: "BITCOIN_VOUT",
@@ -113,6 +113,7 @@ export const se_ListTransactionsCommand = async (input, context) => {
113
113
  let body;
114
114
  body = JSON.stringify(take(input, {
115
115
  address: [],
116
+ confirmationStatusFilter: (_) => _json(_),
116
117
  fromBlockchainInstant: (_) => se_BlockchainInstant(_, context),
117
118
  maxResults: [],
118
119
  network: [],
@@ -125,7 +126,7 @@ export const se_ListTransactionsCommand = async (input, context) => {
125
126
  };
126
127
  export const de_BatchGetTokenBalanceCommand = async (output, context) => {
127
128
  if (output.statusCode !== 200 && output.statusCode >= 300) {
128
- return de_BatchGetTokenBalanceCommandError(output, context);
129
+ return de_CommandError(output, context);
129
130
  }
130
131
  const contents = map({
131
132
  $metadata: deserializeMetadata(output),
@@ -138,43 +139,9 @@ export const de_BatchGetTokenBalanceCommand = async (output, context) => {
138
139
  Object.assign(contents, doc);
139
140
  return contents;
140
141
  };
141
- const de_BatchGetTokenBalanceCommandError = async (output, context) => {
142
- const parsedOutput = {
143
- ...output,
144
- body: await parseErrorBody(output.body, context),
145
- };
146
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
147
- switch (errorCode) {
148
- case "AccessDeniedException":
149
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
150
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
151
- case "InternalServerException":
152
- case "com.amazonaws.managedblockchainquery#InternalServerException":
153
- throw await de_InternalServerExceptionRes(parsedOutput, context);
154
- case "ResourceNotFoundException":
155
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
156
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
157
- case "ServiceQuotaExceededException":
158
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
159
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
160
- case "ThrottlingException":
161
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
162
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
163
- case "ValidationException":
164
- case "com.amazonaws.managedblockchainquery#ValidationException":
165
- throw await de_ValidationExceptionRes(parsedOutput, context);
166
- default:
167
- const parsedBody = parsedOutput.body;
168
- return throwDefaultError({
169
- output,
170
- parsedBody,
171
- errorCode,
172
- });
173
- }
174
- };
175
142
  export const de_GetAssetContractCommand = async (output, context) => {
176
143
  if (output.statusCode !== 200 && output.statusCode >= 300) {
177
- return de_GetAssetContractCommandError(output, context);
144
+ return de_CommandError(output, context);
178
145
  }
179
146
  const contents = map({
180
147
  $metadata: deserializeMetadata(output),
@@ -189,43 +156,9 @@ export const de_GetAssetContractCommand = async (output, context) => {
189
156
  Object.assign(contents, doc);
190
157
  return contents;
191
158
  };
192
- const de_GetAssetContractCommandError = async (output, context) => {
193
- const parsedOutput = {
194
- ...output,
195
- body: await parseErrorBody(output.body, context),
196
- };
197
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
198
- switch (errorCode) {
199
- case "AccessDeniedException":
200
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
201
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
202
- case "InternalServerException":
203
- case "com.amazonaws.managedblockchainquery#InternalServerException":
204
- throw await de_InternalServerExceptionRes(parsedOutput, context);
205
- case "ResourceNotFoundException":
206
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
207
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
208
- case "ServiceQuotaExceededException":
209
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
210
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
211
- case "ThrottlingException":
212
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
213
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
214
- case "ValidationException":
215
- case "com.amazonaws.managedblockchainquery#ValidationException":
216
- throw await de_ValidationExceptionRes(parsedOutput, context);
217
- default:
218
- const parsedBody = parsedOutput.body;
219
- return throwDefaultError({
220
- output,
221
- parsedBody,
222
- errorCode,
223
- });
224
- }
225
- };
226
159
  export const de_GetTokenBalanceCommand = async (output, context) => {
227
160
  if (output.statusCode !== 200 && output.statusCode >= 300) {
228
- return de_GetTokenBalanceCommandError(output, context);
161
+ return de_CommandError(output, context);
229
162
  }
230
163
  const contents = map({
231
164
  $metadata: deserializeMetadata(output),
@@ -241,43 +174,9 @@ export const de_GetTokenBalanceCommand = async (output, context) => {
241
174
  Object.assign(contents, doc);
242
175
  return contents;
243
176
  };
244
- const de_GetTokenBalanceCommandError = async (output, context) => {
245
- const parsedOutput = {
246
- ...output,
247
- body: await parseErrorBody(output.body, context),
248
- };
249
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
250
- switch (errorCode) {
251
- case "AccessDeniedException":
252
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
253
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
254
- case "InternalServerException":
255
- case "com.amazonaws.managedblockchainquery#InternalServerException":
256
- throw await de_InternalServerExceptionRes(parsedOutput, context);
257
- case "ResourceNotFoundException":
258
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
259
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
260
- case "ServiceQuotaExceededException":
261
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
262
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
263
- case "ThrottlingException":
264
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
265
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
266
- case "ValidationException":
267
- case "com.amazonaws.managedblockchainquery#ValidationException":
268
- throw await de_ValidationExceptionRes(parsedOutput, context);
269
- default:
270
- const parsedBody = parsedOutput.body;
271
- return throwDefaultError({
272
- output,
273
- parsedBody,
274
- errorCode,
275
- });
276
- }
277
- };
278
177
  export const de_GetTransactionCommand = async (output, context) => {
279
178
  if (output.statusCode !== 200 && output.statusCode >= 300) {
280
- return de_GetTransactionCommandError(output, context);
179
+ return de_CommandError(output, context);
281
180
  }
282
181
  const contents = map({
283
182
  $metadata: deserializeMetadata(output),
@@ -289,43 +188,9 @@ export const de_GetTransactionCommand = async (output, context) => {
289
188
  Object.assign(contents, doc);
290
189
  return contents;
291
190
  };
292
- const de_GetTransactionCommandError = async (output, context) => {
293
- const parsedOutput = {
294
- ...output,
295
- body: await parseErrorBody(output.body, context),
296
- };
297
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
298
- switch (errorCode) {
299
- case "AccessDeniedException":
300
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
301
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
302
- case "InternalServerException":
303
- case "com.amazonaws.managedblockchainquery#InternalServerException":
304
- throw await de_InternalServerExceptionRes(parsedOutput, context);
305
- case "ResourceNotFoundException":
306
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
307
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
308
- case "ServiceQuotaExceededException":
309
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
310
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
311
- case "ThrottlingException":
312
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
313
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
314
- case "ValidationException":
315
- case "com.amazonaws.managedblockchainquery#ValidationException":
316
- throw await de_ValidationExceptionRes(parsedOutput, context);
317
- default:
318
- const parsedBody = parsedOutput.body;
319
- return throwDefaultError({
320
- output,
321
- parsedBody,
322
- errorCode,
323
- });
324
- }
325
- };
326
191
  export const de_ListAssetContractsCommand = async (output, context) => {
327
192
  if (output.statusCode !== 200 && output.statusCode >= 300) {
328
- return de_ListAssetContractsCommandError(output, context);
193
+ return de_CommandError(output, context);
329
194
  }
330
195
  const contents = map({
331
196
  $metadata: deserializeMetadata(output),
@@ -338,40 +203,9 @@ export const de_ListAssetContractsCommand = async (output, context) => {
338
203
  Object.assign(contents, doc);
339
204
  return contents;
340
205
  };
341
- const de_ListAssetContractsCommandError = async (output, context) => {
342
- const parsedOutput = {
343
- ...output,
344
- body: await parseErrorBody(output.body, context),
345
- };
346
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
347
- switch (errorCode) {
348
- case "AccessDeniedException":
349
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
350
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
351
- case "InternalServerException":
352
- case "com.amazonaws.managedblockchainquery#InternalServerException":
353
- throw await de_InternalServerExceptionRes(parsedOutput, context);
354
- case "ServiceQuotaExceededException":
355
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
356
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
357
- case "ThrottlingException":
358
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
359
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
360
- case "ValidationException":
361
- case "com.amazonaws.managedblockchainquery#ValidationException":
362
- throw await de_ValidationExceptionRes(parsedOutput, context);
363
- default:
364
- const parsedBody = parsedOutput.body;
365
- return throwDefaultError({
366
- output,
367
- parsedBody,
368
- errorCode,
369
- });
370
- }
371
- };
372
206
  export const de_ListTokenBalancesCommand = async (output, context) => {
373
207
  if (output.statusCode !== 200 && output.statusCode >= 300) {
374
- return de_ListTokenBalancesCommandError(output, context);
208
+ return de_CommandError(output, context);
375
209
  }
376
210
  const contents = map({
377
211
  $metadata: deserializeMetadata(output),
@@ -384,40 +218,9 @@ export const de_ListTokenBalancesCommand = async (output, context) => {
384
218
  Object.assign(contents, doc);
385
219
  return contents;
386
220
  };
387
- const de_ListTokenBalancesCommandError = async (output, context) => {
388
- const parsedOutput = {
389
- ...output,
390
- body: await parseErrorBody(output.body, context),
391
- };
392
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
393
- switch (errorCode) {
394
- case "AccessDeniedException":
395
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
396
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
397
- case "InternalServerException":
398
- case "com.amazonaws.managedblockchainquery#InternalServerException":
399
- throw await de_InternalServerExceptionRes(parsedOutput, context);
400
- case "ServiceQuotaExceededException":
401
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
402
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
403
- case "ThrottlingException":
404
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
405
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
406
- case "ValidationException":
407
- case "com.amazonaws.managedblockchainquery#ValidationException":
408
- throw await de_ValidationExceptionRes(parsedOutput, context);
409
- default:
410
- const parsedBody = parsedOutput.body;
411
- return throwDefaultError({
412
- output,
413
- parsedBody,
414
- errorCode,
415
- });
416
- }
417
- };
418
221
  export const de_ListTransactionEventsCommand = async (output, context) => {
419
222
  if (output.statusCode !== 200 && output.statusCode >= 300) {
420
- return de_ListTransactionEventsCommandError(output, context);
223
+ return de_CommandError(output, context);
421
224
  }
422
225
  const contents = map({
423
226
  $metadata: deserializeMetadata(output),
@@ -430,40 +233,9 @@ export const de_ListTransactionEventsCommand = async (output, context) => {
430
233
  Object.assign(contents, doc);
431
234
  return contents;
432
235
  };
433
- const de_ListTransactionEventsCommandError = async (output, context) => {
434
- const parsedOutput = {
435
- ...output,
436
- body: await parseErrorBody(output.body, context),
437
- };
438
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
439
- switch (errorCode) {
440
- case "AccessDeniedException":
441
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
442
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
443
- case "InternalServerException":
444
- case "com.amazonaws.managedblockchainquery#InternalServerException":
445
- throw await de_InternalServerExceptionRes(parsedOutput, context);
446
- case "ServiceQuotaExceededException":
447
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
448
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
449
- case "ThrottlingException":
450
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
451
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
452
- case "ValidationException":
453
- case "com.amazonaws.managedblockchainquery#ValidationException":
454
- throw await de_ValidationExceptionRes(parsedOutput, context);
455
- default:
456
- const parsedBody = parsedOutput.body;
457
- return throwDefaultError({
458
- output,
459
- parsedBody,
460
- errorCode,
461
- });
462
- }
463
- };
464
236
  export const de_ListTransactionsCommand = async (output, context) => {
465
237
  if (output.statusCode !== 200 && output.statusCode >= 300) {
466
- return de_ListTransactionsCommandError(output, context);
238
+ return de_CommandError(output, context);
467
239
  }
468
240
  const contents = map({
469
241
  $metadata: deserializeMetadata(output),
@@ -476,7 +248,7 @@ export const de_ListTransactionsCommand = async (output, context) => {
476
248
  Object.assign(contents, doc);
477
249
  return contents;
478
250
  };
479
- const de_ListTransactionsCommandError = async (output, context) => {
251
+ const de_CommandError = async (output, context) => {
480
252
  const parsedOutput = {
481
253
  ...output,
482
254
  body: await parseErrorBody(output.body, context),
@@ -489,6 +261,9 @@ const de_ListTransactionsCommandError = async (output, context) => {
489
261
  case "InternalServerException":
490
262
  case "com.amazonaws.managedblockchainquery#InternalServerException":
491
263
  throw await de_InternalServerExceptionRes(parsedOutput, context);
264
+ case "ResourceNotFoundException":
265
+ case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
266
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
492
267
  case "ServiceQuotaExceededException":
493
268
  case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
494
269
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
@@ -692,7 +467,6 @@ const de_Transaction = (output, context) => {
692
467
  signatureR: __expectString,
693
468
  signatureS: __expectString,
694
469
  signatureV: __expectInt32,
695
- status: __expectString,
696
470
  to: __expectString,
697
471
  transactionFee: __expectString,
698
472
  transactionHash: __expectString,
@@ -703,6 +477,7 @@ const de_Transaction = (output, context) => {
703
477
  };
704
478
  const de_TransactionOutputItem = (output, context) => {
705
479
  return take(output, {
480
+ confirmationStatus: __expectString,
706
481
  network: __expectString,
707
482
  transactionHash: __expectString,
708
483
  transactionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -29,7 +29,7 @@ declare const BatchGetTokenBalanceCommand_base: {
29
29
  * <p>Gets the token balance for a batch of tokens by using the <code>BatchGetTokenBalance</code>
30
30
  * action for every token in the request.</p>
31
31
  * <note>
32
- * <p>Only the native tokens BTC,ETH, and the ERC-20,
32
+ * <p>Only the native tokens BTC and ETH, and the ERC-20,
33
33
  * ERC-721, and ERC 1155 token standards are supported.</p>
34
34
  * </note>
35
35
  * @example
@@ -28,7 +28,7 @@ declare const GetTokenBalanceCommand_base: {
28
28
  * @public
29
29
  * <p>Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.</p>
30
30
  * <note>
31
- * <p>Only the native tokens BTC,ETH, and the ERC-20,
31
+ * <p>Only the native tokens BTC and ETH, and the ERC-20,
32
32
  * ERC-721, and ERC 1155 token standards are supported.</p>
33
33
  * </note>
34
34
  * @example
@@ -26,7 +26,13 @@ declare const GetTransactionCommand_base: {
26
26
  };
27
27
  /**
28
28
  * @public
29
- * <p>Get the details of a transaction.</p>
29
+ * <p>Gets the details of a transaction.</p>
30
+ * <note>
31
+ * <p>This action will return transaction details for all transactions
32
+ * that are <i>confirmed</i> on the blockchain, even if they have not reached
33
+ * <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">finality</a>.
34
+ * </p>
35
+ * </note>
30
36
  * @example
31
37
  * Use a bare-bones client and the command you need to make an API call.
32
38
  * ```javascript
@@ -48,7 +54,6 @@ declare const GetTransactionCommand_base: {
48
54
  * // transactionTimestamp: new Date("TIMESTAMP"), // required
49
55
  * // transactionIndex: Number("long"), // required
50
56
  * // numberOfTransactions: Number("long"), // required
51
- * // status: "STRING_VALUE",
52
57
  * // to: "STRING_VALUE", // required
53
58
  * // from: "STRING_VALUE",
54
59
  * // contractAddress: "STRING_VALUE",
@@ -28,6 +28,12 @@ declare const ListTransactionEventsCommand_base: {
28
28
  * @public
29
29
  * <p>An array of <code>TransactionEvent</code> objects. Each object contains details
30
30
  * about the transaction event.</p>
31
+ * <note>
32
+ * <p>This action will return transaction details for all transactions
33
+ * that are <i>confirmed</i> on the blockchain, even if they have not reached
34
+ * <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">finality</a>.
35
+ * </p>
36
+ * </note>
31
37
  * @example
32
38
  * Use a bare-bones client and the command you need to make an API call.
33
39
  * ```javascript
@@ -48,6 +48,11 @@ declare const ListTransactionsCommand_base: {
48
48
  * },
49
49
  * nextToken: "STRING_VALUE",
50
50
  * maxResults: Number("int"),
51
+ * confirmationStatusFilter: { // ConfirmationStatusFilter
52
+ * include: [ // ConfirmationStatusIncludeList // required
53
+ * "STRING_VALUE",
54
+ * ],
55
+ * },
51
56
  * };
52
57
  * const command = new ListTransactionsCommand(input);
53
58
  * const response = await client.send(command);
@@ -57,6 +62,7 @@ declare const ListTransactionsCommand_base: {
57
62
  * // transactionHash: "STRING_VALUE", // required
58
63
  * // network: "STRING_VALUE", // required
59
64
  * // transactionTimestamp: new Date("TIMESTAMP"), // required
65
+ * // confirmationStatus: "STRING_VALUE",
60
66
  * // },
61
67
  * // ],
62
68
  * // nextToken: "STRING_VALUE",
@@ -119,7 +119,7 @@ export interface OwnerIdentifier {
119
119
  * @public
120
120
  * <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
121
121
  * <note>
122
- * <p>Only the native tokens BTC,ETH, and the ERC-20,
122
+ * <p>Only the native tokens BTC and ETH, and the ERC-20,
123
123
  * ERC-721, and ERC 1155 token standards are supported.</p>
124
124
  * </note>
125
125
  */
@@ -138,8 +138,8 @@ export interface TokenIdentifier {
138
138
  * @public
139
139
  * <p>The unique identifier of the token.</p>
140
140
  * <note>
141
- * <p>You must specify this container with <code>btc</code> for the native BTC token, and
142
- * <code>eth</code> for the native ETH token. For all other token types you must
141
+ * <p>For native tokens, use the 3 character abbreviation that best matches your token.
142
+ * For example, btc for Bitcoin, eth for Ether, etc. For all other token types you must
143
143
  * specify the <code>tokenId</code> in the 64 character hexadecimal <code>tokenid</code> format.</p>
144
144
  * </note>
145
145
  */
@@ -154,7 +154,7 @@ export interface BatchGetTokenBalanceInputItem {
154
154
  * @public
155
155
  * <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
156
156
  * <note>
157
- * <p>Only the native tokens BTC,ETH, and the ERC-20,
157
+ * <p>Only the native tokens BTC and ETH, and the ERC-20,
158
158
  * ERC-721, and ERC 1155 token standards are supported.</p>
159
159
  * </note>
160
160
  */
@@ -207,7 +207,7 @@ export interface BatchGetTokenBalanceErrorItem {
207
207
  * @public
208
208
  * <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
209
209
  * <note>
210
- * <p>Only the native tokens BTC,ETH, and the ERC-20,
210
+ * <p>Only the native tokens BTC and ETH, and the ERC-20,
211
211
  * ERC-721, and ERC 1155 token standards are supported.</p>
212
212
  * </note>
213
213
  */
@@ -252,7 +252,7 @@ export interface BatchGetTokenBalanceOutputItem {
252
252
  * @public
253
253
  * <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
254
254
  * <note>
255
- * <p>Only the native tokens BTC,ETH, and the ERC-20,
255
+ * <p>Only the native tokens BTC and ETH, and the ERC-20,
256
256
  * ERC-721, and ERC 1155 token standards are supported.</p>
257
257
  * </note>
258
258
  */
@@ -462,11 +462,28 @@ export declare class ValidationException extends __BaseException {
462
462
  */
463
463
  export declare const ConfirmationStatus: {
464
464
  readonly FINAL: "FINAL";
465
+ readonly NONFINAL: "NONFINAL";
465
466
  };
466
467
  /**
467
468
  * @public
468
469
  */
469
470
  export type ConfirmationStatus = (typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
471
+ /**
472
+ * @public
473
+ * <p>The container for the <code>ConfirmationStatusFilter</code> that filters for the <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">
474
+ * <i>finality</i>
475
+ * </a> of the results.</p>
476
+ */
477
+ export interface ConfirmationStatusFilter {
478
+ /**
479
+ * @public
480
+ * <p>The container to determine whether to list results that have only reached <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">
481
+ * <i>finality</i>
482
+ * </a>. Transactions
483
+ * that have reached finality are always part of the response.</p>
484
+ */
485
+ include: ConfirmationStatus[] | undefined;
486
+ }
470
487
  /**
471
488
  * @public
472
489
  * <p>The contract or wallet address by which to filter the request.</p>
@@ -594,7 +611,7 @@ export interface GetTokenBalanceOutput {
594
611
  * @public
595
612
  * <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
596
613
  * <note>
597
- * <p>Only the native tokens BTC,ETH, and the ERC-20,
614
+ * <p>Only the native tokens BTC and ETH, and the ERC-20,
598
615
  * ERC-721, and ERC 1155 token standards are supported.</p>
599
616
  * </note>
600
617
  */
@@ -630,24 +647,6 @@ export interface GetTransactionInput {
630
647
  */
631
648
  network: QueryNetwork | undefined;
632
649
  }
633
- /**
634
- * @public
635
- * @enum
636
- */
637
- export declare const QueryTransactionStatus: {
638
- /**
639
- * The transaction completed on the blockchain, but failed
640
- */
641
- readonly FAILED: "FAILED";
642
- /**
643
- * The transaction has been confirmed and is final in the blockchain
644
- */
645
- readonly FINAL: "FINAL";
646
- };
647
- /**
648
- * @public
649
- */
650
- export type QueryTransactionStatus = (typeof QueryTransactionStatus)[keyof typeof QueryTransactionStatus];
651
650
  /**
652
651
  * @public
653
652
  * <p>There are two possible types of transactions used for this data type:</p>
@@ -702,28 +701,6 @@ export interface Transaction {
702
701
  * <p>The number of transactions in the block.</p>
703
702
  */
704
703
  numberOfTransactions: number | undefined;
705
- /**
706
- * @public
707
- * @deprecated
708
- *
709
- * <p>The status of the transaction.</p>
710
- * <important>
711
- * <p>This property is deprecated. You must use the <code>confirmationStatus</code>
712
- * and the <code>executionStatus</code> properties to determine if the <code>status</code>
713
- * of the transaction is <code>FINAL</code> or <code>FAILED</code>.</p>
714
- * <ul>
715
- * <li>
716
- * <p>Transactions with a <code>status</code> of <code>FINAL</code> will now have the <code>confirmationStatus</code> set
717
- * to <code>FINAL</code> and the <code>executionStatus</code> set to <code>SUCCEEDED</code>.</p>
718
- * </li>
719
- * <li>
720
- * <p>Transactions with a <code>status</code> of <code>FAILED</code> will now have the <code>confirmationStatus</code> set
721
- * to <code>FINAL</code> and the <code>executionStatus</code> set to <code>FAILED</code>.</p>
722
- * </li>
723
- * </ul>
724
- * </important>
725
- */
726
- status?: QueryTransactionStatus;
727
704
  /**
728
705
  * @public
729
706
  * <p>The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
@@ -818,6 +795,15 @@ export interface ListAssetContractsInput {
818
795
  /**
819
796
  * @public
820
797
  * <p>The maximum number of contracts to list.</p>
798
+ * <p>Default:<code>100</code>
799
+ * </p>
800
+ * <note>
801
+ * <p>Even if additional results can be retrieved, the request can return less
802
+ * results than <code>maxResults</code> or an empty array of results.</p>
803
+ * <p>To retrieve the next set of results, make another request with the
804
+ * returned <code>nextToken</code> value. The value of <code>nextToken</code> is
805
+ * <code>null</code> when there are no more results to return</p>
806
+ * </note>
821
807
  */
822
808
  maxResults?: number;
823
809
  }
@@ -904,6 +890,15 @@ export interface ListTokenBalancesInput {
904
890
  /**
905
891
  * @public
906
892
  * <p>The maximum number of token balances to return.</p>
893
+ * <p>Default:<code>100</code>
894
+ * </p>
895
+ * <note>
896
+ * <p>Even if additional results can be retrieved, the request can return less
897
+ * results than <code>maxResults</code> or an empty array of results.</p>
898
+ * <p>To retrieve the next set of results, make another request with the
899
+ * returned <code>nextToken</code> value. The value of <code>nextToken</code> is
900
+ * <code>null</code> when there are no more results to return</p>
901
+ * </note>
907
902
  */
908
903
  maxResults?: number;
909
904
  }
@@ -980,6 +975,8 @@ export interface ListTransactionEventsInput {
980
975
  /**
981
976
  * @public
982
977
  * <p>The maximum number of transaction events to list.</p>
978
+ * <p>Default:<code>100</code>
979
+ * </p>
983
980
  * <note>
984
981
  * <p>Even if additional results can be retrieved, the request can return less
985
982
  * results than <code>maxResults</code> or an empty array of results.</p>
@@ -1194,8 +1191,8 @@ export interface ListTransactionsInput {
1194
1191
  toBlockchainInstant?: BlockchainInstant;
1195
1192
  /**
1196
1193
  * @public
1197
- * <p>Sorts items in an ascending order if the first page starts at <code>fromTime</code>.
1198
- * Sorts items in a descending order if the first page starts at <code>toTime</code>.</p>
1194
+ * <p>The order by which the results will be sorted. If <code>ASCENNDING</code> is selected, the results
1195
+ * will be ordered by <code>fromTime</code>. </p>
1199
1196
  */
1200
1197
  sort?: ListTransactionsSort;
1201
1198
  /**
@@ -1206,6 +1203,8 @@ export interface ListTransactionsInput {
1206
1203
  /**
1207
1204
  * @public
1208
1205
  * <p>The maximum number of transactions to list.</p>
1206
+ * <p>Default:<code>100</code>
1207
+ * </p>
1209
1208
  * <note>
1210
1209
  * <p>Even if additional results can be retrieved, the request can return less
1211
1210
  * results than <code>maxResults</code> or an empty array of results.</p>
@@ -1215,6 +1214,14 @@ export interface ListTransactionsInput {
1215
1214
  * </note>
1216
1215
  */
1217
1216
  maxResults?: number;
1217
+ /**
1218
+ * @public
1219
+ * <p>This filter is used to include transactions in the response that haven't reached <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ambq-dg/key-concepts.html#finality">
1220
+ * <i>finality</i>
1221
+ * </a>. Transactions that have reached finiality are always
1222
+ * part of the response.</p>
1223
+ */
1224
+ confirmationStatusFilter?: ConfirmationStatusFilter;
1218
1225
  }
1219
1226
  /**
1220
1227
  * @public
@@ -1236,6 +1243,11 @@ export interface TransactionOutputItem {
1236
1243
  * <p>The time when the transaction occurred.</p>
1237
1244
  */
1238
1245
  transactionTimestamp: Date | undefined;
1246
+ /**
1247
+ * @public
1248
+ * <p>Specifies whether to list transactions that have not reached Finality.</p>
1249
+ */
1250
+ confirmationStatus?: ConfirmationStatus;
1239
1251
  }
1240
1252
  /**
1241
1253
  * @public
@@ -142,9 +142,13 @@ export declare class ValidationException extends __BaseException {
142
142
  }
143
143
  export declare const ConfirmationStatus: {
144
144
  readonly FINAL: "FINAL";
145
+ readonly NONFINAL: "NONFINAL";
145
146
  };
146
147
  export type ConfirmationStatus =
147
148
  (typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
149
+ export interface ConfirmationStatusFilter {
150
+ include: ConfirmationStatus[] | undefined;
151
+ }
148
152
  export interface ContractFilter {
149
153
  network: QueryNetwork | undefined;
150
154
  tokenStandard: QueryTokenStandard | undefined;
@@ -186,12 +190,6 @@ export interface GetTransactionInput {
186
190
  transactionHash: string | undefined;
187
191
  network: QueryNetwork | undefined;
188
192
  }
189
- export declare const QueryTransactionStatus: {
190
- readonly FAILED: "FAILED";
191
- readonly FINAL: "FINAL";
192
- };
193
- export type QueryTransactionStatus =
194
- (typeof QueryTransactionStatus)[keyof typeof QueryTransactionStatus];
195
193
  export interface Transaction {
196
194
  network: QueryNetwork | undefined;
197
195
  blockHash?: string;
@@ -200,7 +198,6 @@ export interface Transaction {
200
198
  transactionTimestamp: Date | undefined;
201
199
  transactionIndex: number | undefined;
202
200
  numberOfTransactions: number | undefined;
203
- status?: QueryTransactionStatus;
204
201
  to: string | undefined;
205
202
  from?: string;
206
203
  contractAddress?: string;
@@ -311,11 +308,13 @@ export interface ListTransactionsInput {
311
308
  sort?: ListTransactionsSort;
312
309
  nextToken?: string;
313
310
  maxResults?: number;
311
+ confirmationStatusFilter?: ConfirmationStatusFilter;
314
312
  }
315
313
  export interface TransactionOutputItem {
316
314
  transactionHash: string | undefined;
317
315
  network: QueryNetwork | undefined;
318
316
  transactionTimestamp: Date | undefined;
317
+ confirmationStatus?: ConfirmationStatus;
319
318
  }
320
319
  export interface ListTransactionsOutput {
321
320
  transactions: TransactionOutputItem[] | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-managedblockchain-query",
3
3
  "description": "AWS SDK for JavaScript Managedblockchain Query Client for Node.js, Browser and React Native",
4
- "version": "3.504.0",
4
+ "version": "3.507.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-managedblockchain-query",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.504.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.504.0",
25
+ "@aws-sdk/credential-provider-node": "3.507.0",
26
26
  "@aws-sdk/middleware-host-header": "3.502.0",
27
27
  "@aws-sdk/middleware-logger": "3.502.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.502.0",