bitbadgesjs-sdk 0.3.66 → 0.3.67

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.
@@ -458,10 +458,10 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
458
458
  const $io1 = input => ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
459
459
  const $io2 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
460
460
  const $io3 = input => "string" === typeof input.title && "string" === typeof input.url && "string" === typeof input.image;
461
- const $io4 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem)));
461
+ const $io4 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem)));
462
462
  const $io5 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
463
463
  const $io6 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "string" === typeof elem));
464
- const $io7 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem)));
464
+ const $io7 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem)));
465
465
  const $io8 = input => (undefined === input.email || "string" === typeof input.email) && (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io9(input.discord)) && (undefined === input.antiPhishingCode || "string" === typeof input.antiPhishingCode) && (undefined === input.preferences || "object" === typeof input.preferences && null !== input.preferences && false === Array.isArray(input.preferences) && $io10(input.preferences));
466
466
  const $io9 = input => "string" === typeof input.id && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator);
467
467
  const $io10 = input => (undefined === input.listActivity || "boolean" === typeof input.listActivity) && (undefined === input.transferActivity || "boolean" === typeof input.transferActivity) && (undefined === input.claimAlerts || "boolean" === typeof input.claimAlerts) && (undefined === input.ignoreIfInitiator || "boolean" === typeof input.ignoreIfInitiator);
@@ -675,6 +675,22 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
675
675
  path: _path + ".lists",
676
676
  expected: "Array<iCustomListPage>",
677
677
  value: input.lists
678
+ }), (Array.isArray(input.attestations) || $report(_exceptionable, {
679
+ path: _path + ".attestations",
680
+ expected: "Array<iCustomListPage>",
681
+ value: input.attestations
682
+ })) && input.attestations.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
683
+ path: _path + ".attestations[" + _index7 + "]",
684
+ expected: "iCustomListPage",
685
+ value: elem
686
+ })) && $vo6(elem, _path + ".attestations[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
687
+ path: _path + ".attestations[" + _index7 + "]",
688
+ expected: "iCustomListPage",
689
+ value: elem
690
+ })).every(flag => flag) || $report(_exceptionable, {
691
+ path: _path + ".attestations",
692
+ expected: "Array<iCustomListPage>",
693
+ value: input.attestations
678
694
  })].every(flag => flag);
679
695
  const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.title || $report(_exceptionable, {
680
696
  path: _path + ".title",
@@ -688,12 +704,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
688
704
  path: _path + ".items",
689
705
  expected: "Array<iBatchBadgeDetails<NumberType>>",
690
706
  value: input.items
691
- })) && input.items.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
692
- path: _path + ".items[" + _index7 + "]",
707
+ })) && input.items.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
708
+ path: _path + ".items[" + _index8 + "]",
693
709
  expected: "iBatchBadgeDetails<NumberType>",
694
710
  value: elem
695
- })) && $vo1(elem, _path + ".items[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
696
- path: _path + ".items[" + _index7 + "]",
711
+ })) && $vo1(elem, _path + ".items[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
712
+ path: _path + ".items[" + _index8 + "]",
697
713
  expected: "iBatchBadgeDetails<NumberType>",
698
714
  value: elem
699
715
  })).every(flag => flag) || $report(_exceptionable, {
@@ -713,8 +729,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
713
729
  path: _path + ".items",
714
730
  expected: "Array<string>",
715
731
  value: input.items
716
- })) && input.items.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
717
- path: _path + ".items[" + _index8 + "]",
732
+ })) && input.items.map((elem, _index9) => "string" === typeof elem || $report(_exceptionable, {
733
+ path: _path + ".items[" + _index9 + "]",
718
734
  expected: "string",
719
735
  value: elem
720
736
  })).every(flag => flag) || $report(_exceptionable, {
@@ -726,12 +742,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
726
742
  path: _path + ".badges",
727
743
  expected: "Array<iCustomPage<NumberType>>",
728
744
  value: input.badges
729
- })) && input.badges.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
730
- path: _path + ".badges[" + _index9 + "]",
745
+ })) && input.badges.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
746
+ path: _path + ".badges[" + _index10 + "]",
731
747
  expected: "iCustomPage<NumberType>",
732
748
  value: elem
733
- })) && $vo5(elem, _path + ".badges[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
734
- path: _path + ".badges[" + _index9 + "]",
749
+ })) && $vo5(elem, _path + ".badges[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
750
+ path: _path + ".badges[" + _index10 + "]",
735
751
  expected: "iCustomPage<NumberType>",
736
752
  value: elem
737
753
  })).every(flag => flag) || $report(_exceptionable, {
@@ -742,18 +758,34 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
742
758
  path: _path + ".lists",
743
759
  expected: "Array<iCustomListPage>",
744
760
  value: input.lists
745
- })) && input.lists.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
746
- path: _path + ".lists[" + _index10 + "]",
761
+ })) && input.lists.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
762
+ path: _path + ".lists[" + _index11 + "]",
747
763
  expected: "iCustomListPage",
748
764
  value: elem
749
- })) && $vo6(elem, _path + ".lists[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
750
- path: _path + ".lists[" + _index10 + "]",
765
+ })) && $vo6(elem, _path + ".lists[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
766
+ path: _path + ".lists[" + _index11 + "]",
751
767
  expected: "iCustomListPage",
752
768
  value: elem
753
769
  })).every(flag => flag) || $report(_exceptionable, {
754
770
  path: _path + ".lists",
755
771
  expected: "Array<iCustomListPage>",
756
772
  value: input.lists
773
+ }), (Array.isArray(input.attestations) || $report(_exceptionable, {
774
+ path: _path + ".attestations",
775
+ expected: "Array<iCustomListPage>",
776
+ value: input.attestations
777
+ })) && input.attestations.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
778
+ path: _path + ".attestations[" + _index12 + "]",
779
+ expected: "iCustomListPage",
780
+ value: elem
781
+ })) && $vo6(elem, _path + ".attestations[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
782
+ path: _path + ".attestations[" + _index12 + "]",
783
+ expected: "iCustomListPage",
784
+ value: elem
785
+ })).every(flag => flag) || $report(_exceptionable, {
786
+ path: _path + ".attestations",
787
+ expected: "Array<iCustomListPage>",
788
+ value: input.attestations
757
789
  })].every(flag => flag);
758
790
  const $vo8 = (input, _path, _exceptionable = true) => [undefined === input.email || "string" === typeof input.email || $report(_exceptionable, {
759
791
  path: _path + ".email",
@@ -847,12 +879,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
847
879
  path: _path + ".scopes",
848
880
  expected: "Array<OAuthScopeDetails>",
849
881
  value: input.scopes
850
- })) && input.scopes.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
851
- path: _path + ".scopes[" + _index11 + "]",
882
+ })) && input.scopes.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
883
+ path: _path + ".scopes[" + _index13 + "]",
852
884
  expected: "OAuthScopeDetails",
853
885
  value: elem
854
- })) && $vo13(elem, _path + ".scopes[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
855
- path: _path + ".scopes[" + _index11 + "]",
886
+ })) && $vo13(elem, _path + ".scopes[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
887
+ path: _path + ".scopes[" + _index13 + "]",
856
888
  expected: "OAuthScopeDetails",
857
889
  value: elem
858
890
  })).every(flag => flag) || $report(_exceptionable, {
@@ -890,12 +922,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
890
922
  path: _path + ".scopes",
891
923
  expected: "Array<OAuthScopeDetails>",
892
924
  value: input.scopes
893
- })) && input.scopes.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
894
- path: _path + ".scopes[" + _index12 + "]",
925
+ })) && input.scopes.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
926
+ path: _path + ".scopes[" + _index14 + "]",
895
927
  expected: "OAuthScopeDetails",
896
928
  value: elem
897
- })) && $vo13(elem, _path + ".scopes[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
898
- path: _path + ".scopes[" + _index12 + "]",
929
+ })) && $vo13(elem, _path + ".scopes[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
930
+ path: _path + ".scopes[" + _index14 + "]",
899
931
  expected: "OAuthScopeDetails",
900
932
  value: elem
901
933
  })).every(flag => flag) || $report(_exceptionable, {
@@ -915,12 +947,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
915
947
  path: _path + ".scopes",
916
948
  expected: "Array<OAuthScopeDetails>",
917
949
  value: input.scopes
918
- })) && input.scopes.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
919
- path: _path + ".scopes[" + _index13 + "]",
950
+ })) && input.scopes.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
951
+ path: _path + ".scopes[" + _index15 + "]",
920
952
  expected: "OAuthScopeDetails",
921
953
  value: elem
922
- })) && $vo13(elem, _path + ".scopes[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
923
- path: _path + ".scopes[" + _index13 + "]",
954
+ })) && $vo13(elem, _path + ".scopes[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
955
+ path: _path + ".scopes[" + _index15 + "]",
924
956
  expected: "OAuthScopeDetails",
925
957
  value: elem
926
958
  })).every(flag => flag) || $report(_exceptionable, {
@@ -940,12 +972,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
940
972
  path: _path + ".scopes",
941
973
  expected: "Array<OAuthScopeDetails>",
942
974
  value: input.scopes
943
- })) && input.scopes.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
944
- path: _path + ".scopes[" + _index14 + "]",
975
+ })) && input.scopes.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
976
+ path: _path + ".scopes[" + _index16 + "]",
945
977
  expected: "OAuthScopeDetails",
946
978
  value: elem
947
- })) && $vo13(elem, _path + ".scopes[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
948
- path: _path + ".scopes[" + _index14 + "]",
979
+ })) && $vo13(elem, _path + ".scopes[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
980
+ path: _path + ".scopes[" + _index16 + "]",
949
981
  expected: "OAuthScopeDetails",
950
982
  value: elem
951
983
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6038,23 +6070,23 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6038
6070
  const errors = [];
6039
6071
  const __is = input => {
6040
6072
  const $io0 = input => undefined === input.contents || Array.isArray(input.contents) && input.contents.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
6041
- const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
6042
- const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
6043
- const $io3 = input => Object.keys(input).every(key => {
6073
+ const $io1 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io3(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
6074
+ const $io2 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
6075
+ const $io3 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io4(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io5(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
6076
+ const $io4 = input => Object.keys(input).every(key => {
6044
6077
  const value = input[key];
6045
6078
  if (undefined === value)
6046
6079
  return true;
6047
6080
  return "string" === typeof value;
6048
6081
  });
6049
- const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
6050
- const $io5 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
6051
- const $io6 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
6052
- const $io7 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
6082
+ const $io5 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
6083
+ const $io6 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
6084
+ const $io7 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io3(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
6053
6085
  const $io8 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io9(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io10(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode);
6054
6086
  const $io9 = input => true;
6055
6087
  const $io10 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io11(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true);
6056
- const $io11 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@155"] && Object.keys(input).every(key => {
6057
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@155"].some(prop => key === prop))
6088
+ const $io11 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@885"] && Object.keys(input).every(key => {
6089
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@885"].some(prop => key === prop))
6058
6090
  return true;
6059
6091
  const value = input[key];
6060
6092
  if (undefined === value)
@@ -6064,14 +6096,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6064
6096
  return true;
6065
6097
  });
6066
6098
  const $iu0 = input => (() => {
6067
- if (undefined !== input.name)
6068
- return $io2(input);
6069
- else if (undefined !== input.badgeIds)
6070
- return $io6(input);
6099
+ if (undefined !== input.badgeIds)
6100
+ return $io1(input);
6101
+ else if (undefined !== input.name)
6102
+ return $io3(input);
6071
6103
  else if (undefined !== input.leaves)
6072
6104
  return $io8(input);
6073
6105
  else
6074
- return $io1(input);
6106
+ return $io7(input);
6075
6107
  })();
6076
6108
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
6077
6109
  };
@@ -6081,7 +6113,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6081
6113
  const $join = typia_1.default.validate.join;
6082
6114
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
6083
6115
  path: _path + ".contents",
6084
- expected: "(Array<iCollectionMetadataDetails<NumberType> | iMetadata<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6116
+ expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6085
6117
  value: input.contents
6086
6118
  })) && input.contents.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6087
6119
  path: _path + ".contents[" + _index1 + "]",
@@ -6093,14 +6125,30 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6093
6125
  value: elem
6094
6126
  })).every(flag => flag) || $report(_exceptionable, {
6095
6127
  path: _path + ".contents",
6096
- expected: "(Array<iCollectionMetadataDetails<NumberType> | iMetadata<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6128
+ expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6097
6129
  value: input.contents
6098
6130
  })].every(flag => flag);
6099
- const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6131
+ const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6132
+ path: _path + ".badgeIds",
6133
+ expected: "Array<iUintRange<NumberType>>",
6134
+ value: input.badgeIds
6135
+ })) && input.badgeIds.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6136
+ path: _path + ".badgeIds[" + _index2 + "]",
6137
+ expected: "iUintRange<NumberType>",
6138
+ value: elem
6139
+ })) && $vo2(elem, _path + ".badgeIds[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
6140
+ path: _path + ".badgeIds[" + _index2 + "]",
6141
+ expected: "iUintRange<NumberType>",
6142
+ value: elem
6143
+ })).every(flag => flag) || $report(_exceptionable, {
6144
+ path: _path + ".badgeIds",
6145
+ expected: "Array<iUintRange<NumberType>>",
6146
+ value: input.badgeIds
6147
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6100
6148
  path: _path + ".metadata",
6101
6149
  expected: "(iMetadata<NumberType> | undefined)",
6102
6150
  value: input.metadata
6103
- })) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6151
+ })) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6104
6152
  path: _path + ".metadata",
6105
6153
  expected: "(iMetadata<NumberType> | undefined)",
6106
6154
  value: input.metadata
@@ -6121,7 +6169,16 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6121
6169
  expected: "(boolean | undefined)",
6122
6170
  value: input.toUploadToIpfs
6123
6171
  })].every(flag => flag);
6124
- const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
6172
+ const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6173
+ path: _path + ".start",
6174
+ expected: "(bigint | number | string)",
6175
+ value: input.start
6176
+ }), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
6177
+ path: _path + ".end",
6178
+ expected: "(bigint | number | string)",
6179
+ value: input.end
6180
+ })].every(flag => flag);
6181
+ const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
6125
6182
  path: _path + ".name",
6126
6183
  expected: "string",
6127
6184
  value: input.name
@@ -6149,8 +6206,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6149
6206
  path: _path + ".tags",
6150
6207
  expected: "(Array<string> | undefined)",
6151
6208
  value: input.tags
6152
- })) && input.tags.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
6153
- path: _path + ".tags[" + _index2 + "]",
6209
+ })) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
6210
+ path: _path + ".tags[" + _index3 + "]",
6154
6211
  expected: "string",
6155
6212
  value: elem
6156
6213
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6161,7 +6218,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6161
6218
  path: _path + ".socials",
6162
6219
  expected: "(__type | undefined)",
6163
6220
  value: input.socials
6164
- })) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
6221
+ })) && $vo4(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
6165
6222
  path: _path + ".socials",
6166
6223
  expected: "(__type | undefined)",
6167
6224
  value: input.socials
@@ -6169,7 +6226,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6169
6226
  path: _path + ".offChainTransferabilityInfo",
6170
6227
  expected: "(__type.o1 | undefined)",
6171
6228
  value: input.offChainTransferabilityInfo
6172
- })) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
6229
+ })) && $vo5(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
6173
6230
  path: _path + ".offChainTransferabilityInfo",
6174
6231
  expected: "(__type.o1 | undefined)",
6175
6232
  value: input.offChainTransferabilityInfo
@@ -6177,12 +6234,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6177
6234
  path: _path + ".attributes",
6178
6235
  expected: "(Array<__type> | undefined)",
6179
6236
  value: input.attributes
6180
- })) && input.attributes.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6181
- path: _path + ".attributes[" + _index3 + "]",
6237
+ })) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6238
+ path: _path + ".attributes[" + _index4 + "]",
6182
6239
  expected: "__type.o2",
6183
6240
  value: elem
6184
- })) && $vo5(elem, _path + ".attributes[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
6185
- path: _path + ".attributes[" + _index3 + "]",
6241
+ })) && $vo6(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
6242
+ path: _path + ".attributes[" + _index4 + "]",
6186
6243
  expected: "__type.o2",
6187
6244
  value: elem
6188
6245
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6202,7 +6259,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6202
6259
  expected: "(boolean | undefined)",
6203
6260
  value: input._isUpdating
6204
6261
  })].every(flag => flag);
6205
- const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
6262
+ const $vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
6206
6263
  const value = input[key];
6207
6264
  if (undefined === value)
6208
6265
  return true;
@@ -6212,7 +6269,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6212
6269
  value: value
6213
6270
  });
6214
6271
  }).every(flag => flag)].every(flag => flag);
6215
- const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
6272
+ const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
6216
6273
  path: _path + ".host",
6217
6274
  expected: "string",
6218
6275
  value: input.host
@@ -6221,7 +6278,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6221
6278
  expected: "string",
6222
6279
  value: input.assignMethod
6223
6280
  })].every(flag => flag);
6224
- const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
6281
+ const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
6225
6282
  path: _path + ".type",
6226
6283
  expected: "(\"date\" | \"url\" | undefined)",
6227
6284
  value: input.type
@@ -6234,27 +6291,11 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6234
6291
  expected: "(boolean | number | string)",
6235
6292
  value: input.value
6236
6293
  })].every(flag => flag);
6237
- const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6238
- path: _path + ".badgeIds",
6239
- expected: "Array<iUintRange<NumberType>>",
6240
- value: input.badgeIds
6241
- })) && input.badgeIds.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6242
- path: _path + ".badgeIds[" + _index4 + "]",
6243
- expected: "iUintRange<NumberType>",
6244
- value: elem
6245
- })) && $vo7(elem, _path + ".badgeIds[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
6246
- path: _path + ".badgeIds[" + _index4 + "]",
6247
- expected: "iUintRange<NumberType>",
6248
- value: elem
6249
- })).every(flag => flag) || $report(_exceptionable, {
6250
- path: _path + ".badgeIds",
6251
- expected: "Array<iUintRange<NumberType>>",
6252
- value: input.badgeIds
6253
- }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6294
+ const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6254
6295
  path: _path + ".metadata",
6255
6296
  expected: "(iMetadata<NumberType> | undefined)",
6256
6297
  value: input.metadata
6257
- })) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6298
+ })) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6258
6299
  path: _path + ".metadata",
6259
6300
  expected: "(iMetadata<NumberType> | undefined)",
6260
6301
  value: input.metadata
@@ -6275,15 +6316,6 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6275
6316
  expected: "(boolean | undefined)",
6276
6317
  value: input.toUploadToIpfs
6277
6318
  })].every(flag => flag);
6278
- const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6279
- path: _path + ".start",
6280
- expected: "(bigint | number | string)",
6281
- value: input.start
6282
- }), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
6283
- path: _path + ".end",
6284
- expected: "(bigint | number | string)",
6285
- value: input.end
6286
- })].every(flag => flag);
6287
6319
  const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
6288
6320
  path: _path + ".leaves",
6289
6321
  expected: "Array<string>",
@@ -6407,12 +6439,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6407
6439
  path: _path + ".length",
6408
6440
  expected: "number",
6409
6441
  value: input.length
6410
- }), "Uint8Array" === input["__@toStringTag@155"] || $report(_exceptionable, {
6411
- path: _path + "[\"__@toStringTag@155\"]",
6442
+ }), "Uint8Array" === input["__@toStringTag@885"] || $report(_exceptionable, {
6443
+ path: _path + "[\"__@toStringTag@885\"]",
6412
6444
  expected: "\"Uint8Array\"",
6413
- value: input["__@toStringTag@155"]
6445
+ value: input["__@toStringTag@885"]
6414
6446
  }), false === _exceptionable || Object.keys(input).map(key => {
6415
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@155"].some(prop => key === prop))
6447
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@885"].some(prop => key === prop))
6416
6448
  return true;
6417
6449
  const value = input[key];
6418
6450
  if (undefined === value)
@@ -6426,14 +6458,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6426
6458
  return true;
6427
6459
  }).every(flag => flag)].every(flag => flag);
6428
6460
  const $vu0 = (input, _path, _exceptionable = true) => (() => {
6429
- if (undefined !== input.name)
6430
- return $vo2(input, _path, true && _exceptionable);
6431
- else if (undefined !== input.badgeIds)
6432
- return $vo6(input, _path, true && _exceptionable);
6461
+ if (undefined !== input.badgeIds)
6462
+ return $vo1(input, _path, true && _exceptionable);
6463
+ else if (undefined !== input.name)
6464
+ return $vo3(input, _path, true && _exceptionable);
6433
6465
  else if (undefined !== input.leaves)
6434
6466
  return $vo8(input, _path, true && _exceptionable);
6435
6467
  else
6436
- return $vo1(input, _path, true && _exceptionable);
6468
+ return $vo7(input, _path, true && _exceptionable);
6437
6469
  })();
6438
6470
  return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
6439
6471
  path: _path + "",
@@ -6475,8 +6507,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6475
6507
  const $io3 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io4(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io5(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode);
6476
6508
  const $io4 = input => true;
6477
6509
  const $io5 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io6(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true);
6478
- const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@155"] && Object.keys(input).every(key => {
6479
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@155"].some(prop => key === prop))
6510
+ const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@885"] && Object.keys(input).every(key => {
6511
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@885"].some(prop => key === prop))
6480
6512
  return true;
6481
6513
  const value = input[key];
6482
6514
  if (undefined === value)
@@ -6690,12 +6722,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6690
6722
  path: _path + ".length",
6691
6723
  expected: "number",
6692
6724
  value: input.length
6693
- }), "Uint8Array" === input["__@toStringTag@155"] || $report(_exceptionable, {
6694
- path: _path + "[\"__@toStringTag@155\"]",
6725
+ }), "Uint8Array" === input["__@toStringTag@885"] || $report(_exceptionable, {
6726
+ path: _path + "[\"__@toStringTag@885\"]",
6695
6727
  expected: "\"Uint8Array\"",
6696
- value: input["__@toStringTag@155"]
6728
+ value: input["__@toStringTag@885"]
6697
6729
  }), false === _exceptionable || Object.keys(input).map(key => {
6698
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@155"].some(prop => key === prop))
6730
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@885"].some(prop => key === prop))
6699
6731
  return true;
6700
6732
  const value = input[key];
6701
6733
  if (undefined === value)