bitbadgesjs-sdk 0.3.70 → 0.3.71

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.
@@ -3544,21 +3544,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3544
3544
  const errors = [];
3545
3545
  const __is = input => {
3546
3546
  const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
3547
- const $io1 = input => (undefined === input.seedCode || "string" === typeof input.seedCode) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io2(input.balancesToSet)) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io8(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(elem)));
3548
- const $io2 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io3(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io6(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
3549
- const $io3 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io4(elem));
3550
- const $io4 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
3551
- const $io5 = 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);
3552
- const $io6 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io4(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
3553
- const $io8 = 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) && $io9(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io10(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io11(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);
3554
- const $io9 = input => Object.keys(input).every(key => {
3547
+ const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io6(input.balancesToSet)) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(elem)));
3548
+ 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);
3549
+ const $io3 = input => Object.keys(input).every(key => {
3555
3550
  const value = input[key];
3556
3551
  if (undefined === value)
3557
3552
  return true;
3558
3553
  return "string" === typeof value;
3559
3554
  });
3560
- const $io10 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
3561
- const $io11 = 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);
3555
+ const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
3556
+ 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);
3557
+ const $io6 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
3558
+ const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
3559
+ const $io8 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io9(elem)));
3560
+ const $io9 = 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);
3561
+ const $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
3562
3562
  const $io12 = input => (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io13(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true);
3563
3563
  const $io13 = input => true;
3564
3564
  return "object" === typeof input && null !== input && $io0(input);
@@ -3584,7 +3584,15 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3584
3584
  expected: "Array<CreateClaimRequest<NumberType>>",
3585
3585
  value: input.claims
3586
3586
  })].every(flag => flag);
3587
- const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
3587
+ const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3588
+ path: _path + ".metadata",
3589
+ expected: "(iMetadata<NumberType> | undefined)",
3590
+ value: input.metadata
3591
+ })) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3592
+ path: _path + ".metadata",
3593
+ expected: "(iMetadata<NumberType> | undefined)",
3594
+ value: input.metadata
3595
+ }), undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
3588
3596
  path: _path + ".seedCode",
3589
3597
  expected: "(string | undefined)",
3590
3598
  value: input.seedCode
@@ -3596,7 +3604,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3596
3604
  path: _path + ".balancesToSet",
3597
3605
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3598
3606
  value: input.balancesToSet
3599
- })) && $vo2(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3607
+ })) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3600
3608
  path: _path + ".balancesToSet",
3601
3609
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3602
3610
  value: input.balancesToSet
@@ -3608,14 +3616,6 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3608
3616
  path: _path + ".approach",
3609
3617
  expected: "(string | undefined)",
3610
3618
  value: input.approach
3611
- }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3612
- path: _path + ".metadata",
3613
- expected: "(iMetadata<NumberType> | undefined)",
3614
- value: input.metadata
3615
- })) && $vo8(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3616
- path: _path + ".metadata",
3617
- expected: "(iMetadata<NumberType> | undefined)",
3618
- value: input.metadata
3619
3619
  }), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
3620
3620
  path: _path + ".assignMethod",
3621
3621
  expected: "(string | undefined)",
@@ -3649,16 +3649,129 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3649
3649
  expected: "Array<ManagePluginRequest>",
3650
3650
  value: input.plugins
3651
3651
  })].every(flag => flag);
3652
- const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3652
+ const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3653
+ path: _path + ".name",
3654
+ expected: "string",
3655
+ value: input.name
3656
+ }), "string" === typeof input.description || $report(_exceptionable, {
3657
+ path: _path + ".description",
3658
+ expected: "string",
3659
+ value: input.description
3660
+ }), "string" === typeof input.image || $report(_exceptionable, {
3661
+ path: _path + ".image",
3662
+ expected: "string",
3663
+ value: input.image
3664
+ }), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
3665
+ path: _path + ".video",
3666
+ expected: "(string | undefined)",
3667
+ value: input.video
3668
+ }), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
3669
+ path: _path + ".category",
3670
+ expected: "(string | undefined)",
3671
+ value: input.category
3672
+ }), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
3673
+ path: _path + ".externalUrl",
3674
+ expected: "(string | undefined)",
3675
+ value: input.externalUrl
3676
+ }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
3677
+ path: _path + ".tags",
3678
+ expected: "(Array<string> | undefined)",
3679
+ value: input.tags
3680
+ })) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
3681
+ path: _path + ".tags[" + _index3 + "]",
3682
+ expected: "string",
3683
+ value: elem
3684
+ })).every(flag => flag) || $report(_exceptionable, {
3685
+ path: _path + ".tags",
3686
+ expected: "(Array<string> | undefined)",
3687
+ value: input.tags
3688
+ }), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
3689
+ path: _path + ".socials",
3690
+ expected: "(__type | undefined)",
3691
+ value: input.socials
3692
+ })) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
3693
+ path: _path + ".socials",
3694
+ expected: "(__type | undefined)",
3695
+ value: input.socials
3696
+ }), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
3697
+ path: _path + ".offChainTransferabilityInfo",
3698
+ expected: "(__type.o1 | undefined)",
3699
+ value: input.offChainTransferabilityInfo
3700
+ })) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
3701
+ path: _path + ".offChainTransferabilityInfo",
3702
+ expected: "(__type.o1 | undefined)",
3703
+ value: input.offChainTransferabilityInfo
3704
+ }), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
3705
+ path: _path + ".attributes",
3706
+ expected: "(Array<__type> | undefined)",
3707
+ value: input.attributes
3708
+ })) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3709
+ path: _path + ".attributes[" + _index4 + "]",
3710
+ expected: "__type.o2",
3711
+ value: elem
3712
+ })) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
3713
+ path: _path + ".attributes[" + _index4 + "]",
3714
+ expected: "__type.o2",
3715
+ value: elem
3716
+ })).every(flag => flag) || $report(_exceptionable, {
3717
+ path: _path + ".attributes",
3718
+ expected: "(Array<__type> | undefined)",
3719
+ value: input.attributes
3720
+ }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
3721
+ path: _path + ".fetchedAtBlock",
3722
+ expected: "(bigint | number | string | undefined)",
3723
+ value: input.fetchedAtBlock
3724
+ }), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
3725
+ path: _path + ".fetchedAt",
3726
+ expected: "(bigint | number | string | undefined)",
3727
+ value: input.fetchedAt
3728
+ }), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
3729
+ path: _path + "._isUpdating",
3730
+ expected: "(boolean | undefined)",
3731
+ value: input._isUpdating
3732
+ })].every(flag => flag);
3733
+ const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3734
+ const value = input[key];
3735
+ if (undefined === value)
3736
+ return true;
3737
+ return "string" === typeof value || $report(_exceptionable, {
3738
+ path: _path + $join(key),
3739
+ expected: "string",
3740
+ value: value
3741
+ });
3742
+ }).every(flag => flag)].every(flag => flag);
3743
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
3744
+ path: _path + ".host",
3745
+ expected: "string",
3746
+ value: input.host
3747
+ }), "string" === typeof input.assignMethod || $report(_exceptionable, {
3748
+ path: _path + ".assignMethod",
3749
+ expected: "string",
3750
+ value: input.assignMethod
3751
+ })].every(flag => flag);
3752
+ const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
3753
+ path: _path + ".type",
3754
+ expected: "(\"date\" | \"url\" | undefined)",
3755
+ value: input.type
3756
+ }), "string" === typeof input.name || $report(_exceptionable, {
3757
+ path: _path + ".name",
3758
+ expected: "string",
3759
+ value: input.name
3760
+ }), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
3761
+ path: _path + ".value",
3762
+ expected: "(boolean | number | string)",
3763
+ value: input.value
3764
+ })].every(flag => flag);
3765
+ const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3653
3766
  path: _path + ".manualBalances",
3654
3767
  expected: "Array<iManualBalances<NumberType>>",
3655
3768
  value: input.manualBalances
3656
- })) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3657
- path: _path + ".manualBalances[" + _index3 + "]",
3769
+ })) && input.manualBalances.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3770
+ path: _path + ".manualBalances[" + _index5 + "]",
3658
3771
  expected: "iManualBalances<NumberType>",
3659
3772
  value: elem
3660
- })) && $vo3(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
3661
- path: _path + ".manualBalances[" + _index3 + "]",
3773
+ })) && $vo7(elem, _path + ".manualBalances[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
3774
+ path: _path + ".manualBalances[" + _index5 + "]",
3662
3775
  expected: "iManualBalances<NumberType>",
3663
3776
  value: elem
3664
3777
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3669,7 +3782,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3669
3782
  path: _path + ".incrementedBalances",
3670
3783
  expected: "iIncrementedBalances<NumberType>",
3671
3784
  value: input.incrementedBalances
3672
- })) && $vo6(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3785
+ })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3673
3786
  path: _path + ".incrementedBalances",
3674
3787
  expected: "iIncrementedBalances<NumberType>",
3675
3788
  value: input.incrementedBalances
@@ -3677,21 +3790,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3677
3790
  path: _path + ".orderCalculationMethod",
3678
3791
  expected: "iPredeterminedOrderCalculationMethod",
3679
3792
  value: input.orderCalculationMethod
3680
- })) && $vo7(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3793
+ })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3681
3794
  path: _path + ".orderCalculationMethod",
3682
3795
  expected: "iPredeterminedOrderCalculationMethod",
3683
3796
  value: input.orderCalculationMethod
3684
3797
  })].every(flag => flag);
3685
- const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3798
+ const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3686
3799
  path: _path + ".balances",
3687
3800
  expected: "Array<iBalance<NumberType>>",
3688
3801
  value: input.balances
3689
- })) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3690
- path: _path + ".balances[" + _index4 + "]",
3802
+ })) && input.balances.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3803
+ path: _path + ".balances[" + _index6 + "]",
3691
3804
  expected: "iBalance<NumberType>",
3692
3805
  value: elem
3693
- })) && $vo4(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
3694
- path: _path + ".balances[" + _index4 + "]",
3806
+ })) && $vo8(elem, _path + ".balances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
3807
+ path: _path + ".balances[" + _index6 + "]",
3695
3808
  expected: "iBalance<NumberType>",
3696
3809
  value: elem
3697
3810
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3699,7 +3812,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3699
3812
  expected: "Array<iBalance<NumberType>>",
3700
3813
  value: input.balances
3701
3814
  })].every(flag => flag);
3702
- const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3815
+ const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3703
3816
  path: _path + ".amount",
3704
3817
  expected: "(bigint | number | string)",
3705
3818
  value: input.amount
@@ -3707,12 +3820,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3707
3820
  path: _path + ".badgeIds",
3708
3821
  expected: "Array<iUintRange<NumberType>>",
3709
3822
  value: input.badgeIds
3710
- })) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3711
- path: _path + ".badgeIds[" + _index5 + "]",
3823
+ })) && input.badgeIds.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3824
+ path: _path + ".badgeIds[" + _index7 + "]",
3712
3825
  expected: "iUintRange<NumberType>",
3713
3826
  value: elem
3714
- })) && $vo5(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
3715
- path: _path + ".badgeIds[" + _index5 + "]",
3827
+ })) && $vo9(elem, _path + ".badgeIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
3828
+ path: _path + ".badgeIds[" + _index7 + "]",
3716
3829
  expected: "iUintRange<NumberType>",
3717
3830
  value: elem
3718
3831
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3723,12 +3836,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3723
3836
  path: _path + ".ownershipTimes",
3724
3837
  expected: "Array<iUintRange<NumberType>>",
3725
3838
  value: input.ownershipTimes
3726
- })) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3727
- path: _path + ".ownershipTimes[" + _index6 + "]",
3839
+ })) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3840
+ path: _path + ".ownershipTimes[" + _index8 + "]",
3728
3841
  expected: "iUintRange<NumberType>",
3729
3842
  value: elem
3730
- })) && $vo5(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
3731
- path: _path + ".ownershipTimes[" + _index6 + "]",
3843
+ })) && $vo9(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
3844
+ path: _path + ".ownershipTimes[" + _index8 + "]",
3732
3845
  expected: "iUintRange<NumberType>",
3733
3846
  value: elem
3734
3847
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3736,7 +3849,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3736
3849
  expected: "Array<iUintRange<NumberType>>",
3737
3850
  value: input.ownershipTimes
3738
3851
  })].every(flag => flag);
3739
- const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
3852
+ const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
3740
3853
  path: _path + ".start",
3741
3854
  expected: "(bigint | number | string)",
3742
3855
  value: input.start
@@ -3745,16 +3858,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3745
3858
  expected: "(bigint | number | string)",
3746
3859
  value: input.end
3747
3860
  })].every(flag => flag);
3748
- const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
3861
+ const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
3749
3862
  path: _path + ".startBalances",
3750
3863
  expected: "Array<iBalance<NumberType>>",
3751
3864
  value: input.startBalances
3752
- })) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3753
- path: _path + ".startBalances[" + _index7 + "]",
3865
+ })) && input.startBalances.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3866
+ path: _path + ".startBalances[" + _index9 + "]",
3754
3867
  expected: "iBalance<NumberType>",
3755
3868
  value: elem
3756
- })) && $vo4(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
3757
- path: _path + ".startBalances[" + _index7 + "]",
3869
+ })) && $vo8(elem, _path + ".startBalances[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
3870
+ path: _path + ".startBalances[" + _index9 + "]",
3758
3871
  expected: "iBalance<NumberType>",
3759
3872
  value: elem
3760
3873
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3770,7 +3883,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3770
3883
  expected: "(bigint | number | string)",
3771
3884
  value: input.incrementOwnershipTimesBy
3772
3885
  })].every(flag => flag);
3773
- const $vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
3886
+ const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
3774
3887
  path: _path + ".useOverallNumTransfers",
3775
3888
  expected: "boolean",
3776
3889
  value: input.useOverallNumTransfers
@@ -3795,119 +3908,6 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3795
3908
  expected: "string",
3796
3909
  value: input.challengeTrackerId
3797
3910
  })].every(flag => flag);
3798
- const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3799
- path: _path + ".name",
3800
- expected: "string",
3801
- value: input.name
3802
- }), "string" === typeof input.description || $report(_exceptionable, {
3803
- path: _path + ".description",
3804
- expected: "string",
3805
- value: input.description
3806
- }), "string" === typeof input.image || $report(_exceptionable, {
3807
- path: _path + ".image",
3808
- expected: "string",
3809
- value: input.image
3810
- }), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
3811
- path: _path + ".video",
3812
- expected: "(string | undefined)",
3813
- value: input.video
3814
- }), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
3815
- path: _path + ".category",
3816
- expected: "(string | undefined)",
3817
- value: input.category
3818
- }), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
3819
- path: _path + ".externalUrl",
3820
- expected: "(string | undefined)",
3821
- value: input.externalUrl
3822
- }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
3823
- path: _path + ".tags",
3824
- expected: "(Array<string> | undefined)",
3825
- value: input.tags
3826
- })) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
3827
- path: _path + ".tags[" + _index8 + "]",
3828
- expected: "string",
3829
- value: elem
3830
- })).every(flag => flag) || $report(_exceptionable, {
3831
- path: _path + ".tags",
3832
- expected: "(Array<string> | undefined)",
3833
- value: input.tags
3834
- }), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
3835
- path: _path + ".socials",
3836
- expected: "(__type | undefined)",
3837
- value: input.socials
3838
- })) && $vo9(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
3839
- path: _path + ".socials",
3840
- expected: "(__type | undefined)",
3841
- value: input.socials
3842
- }), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
3843
- path: _path + ".offChainTransferabilityInfo",
3844
- expected: "(__type.o1 | undefined)",
3845
- value: input.offChainTransferabilityInfo
3846
- })) && $vo10(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
3847
- path: _path + ".offChainTransferabilityInfo",
3848
- expected: "(__type.o1 | undefined)",
3849
- value: input.offChainTransferabilityInfo
3850
- }), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
3851
- path: _path + ".attributes",
3852
- expected: "(Array<__type> | undefined)",
3853
- value: input.attributes
3854
- })) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3855
- path: _path + ".attributes[" + _index9 + "]",
3856
- expected: "__type.o2",
3857
- value: elem
3858
- })) && $vo11(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
3859
- path: _path + ".attributes[" + _index9 + "]",
3860
- expected: "__type.o2",
3861
- value: elem
3862
- })).every(flag => flag) || $report(_exceptionable, {
3863
- path: _path + ".attributes",
3864
- expected: "(Array<__type> | undefined)",
3865
- value: input.attributes
3866
- }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
3867
- path: _path + ".fetchedAtBlock",
3868
- expected: "(bigint | number | string | undefined)",
3869
- value: input.fetchedAtBlock
3870
- }), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
3871
- path: _path + ".fetchedAt",
3872
- expected: "(bigint | number | string | undefined)",
3873
- value: input.fetchedAt
3874
- }), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
3875
- path: _path + "._isUpdating",
3876
- expected: "(boolean | undefined)",
3877
- value: input._isUpdating
3878
- })].every(flag => flag);
3879
- const $vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3880
- const value = input[key];
3881
- if (undefined === value)
3882
- return true;
3883
- return "string" === typeof value || $report(_exceptionable, {
3884
- path: _path + $join(key),
3885
- expected: "string",
3886
- value: value
3887
- });
3888
- }).every(flag => flag)].every(flag => flag);
3889
- const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
3890
- path: _path + ".host",
3891
- expected: "string",
3892
- value: input.host
3893
- }), "string" === typeof input.assignMethod || $report(_exceptionable, {
3894
- path: _path + ".assignMethod",
3895
- expected: "string",
3896
- value: input.assignMethod
3897
- })].every(flag => flag);
3898
- const $vo11 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
3899
- path: _path + ".type",
3900
- expected: "(\"date\" | \"url\" | undefined)",
3901
- value: input.type
3902
- }), "string" === typeof input.name || $report(_exceptionable, {
3903
- path: _path + ".name",
3904
- expected: "string",
3905
- value: input.name
3906
- }), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
3907
- path: _path + ".value",
3908
- expected: "(boolean | number | string)",
3909
- value: input.value
3910
- })].every(flag => flag);
3911
3911
  const $vo12 = (input, _path, _exceptionable = true) => [undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
3912
3912
  path: _path + ".resetState",
3913
3913
  expected: "(boolean | undefined)",
@@ -4040,23 +4040,23 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4040
4040
  const errors = [];
4041
4041
  const __is = input => {
4042
4042
  const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
4043
- const $io1 = input => "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io2(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io8(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io10(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod);
4044
- const $io2 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io3(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io6(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
4045
- const $io3 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io4(elem));
4046
- const $io4 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
4047
- const $io5 = 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);
4048
- const $io6 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io4(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
4049
- const $io8 = input => "object" === typeof input.publicState && null !== input.publicState && true && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io9(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io9(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true);
4050
- const $io9 = input => true;
4051
- const $io10 = 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) && $io11(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io12(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io13(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);
4052
- const $io11 = input => Object.keys(input).every(key => {
4043
+ const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io6(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod);
4044
+ 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);
4045
+ const $io3 = input => Object.keys(input).every(key => {
4053
4046
  const value = input[key];
4054
4047
  if (undefined === value)
4055
4048
  return true;
4056
4049
  return "string" === typeof value;
4057
4050
  });
4058
- const $io12 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
4059
- const $io13 = 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);
4051
+ const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
4052
+ 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);
4053
+ const $io6 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
4054
+ const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
4055
+ const $io8 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io9(elem)));
4056
+ const $io9 = 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);
4057
+ const $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
4058
+ const $io12 = input => "object" === typeof input.publicState && null !== input.publicState && true && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io13(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io13(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true);
4059
+ const $io13 = input => true;
4060
4060
  return "object" === typeof input && null !== input && $io0(input);
4061
4061
  };
4062
4062
  if (false === __is(input)) {
@@ -4080,7 +4080,15 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4080
4080
  expected: "Array<Omit<iClaimDetails<NumberType>, \"seedCode\">>",
4081
4081
  value: input.claims
4082
4082
  })].every(flag => flag);
4083
- const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
4083
+ const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
4084
+ path: _path + ".metadata",
4085
+ expected: "(iMetadata<NumberType> | undefined)",
4086
+ value: input.metadata
4087
+ })) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
4088
+ path: _path + ".metadata",
4089
+ expected: "(iMetadata<NumberType> | undefined)",
4090
+ value: input.metadata
4091
+ }), "string" === typeof input.claimId || $report(_exceptionable, {
4084
4092
  path: _path + ".claimId",
4085
4093
  expected: "string",
4086
4094
  value: input.claimId
@@ -4088,7 +4096,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4088
4096
  path: _path + ".balancesToSet",
4089
4097
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
4090
4098
  value: input.balancesToSet
4091
- })) && $vo2(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
4099
+ })) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
4092
4100
  path: _path + ".balancesToSet",
4093
4101
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
4094
4102
  value: input.balancesToSet
@@ -4100,45 +4108,150 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4100
4108
  path: _path + ".plugins[" + _index2 + "]",
4101
4109
  expected: "IntegrationPluginDetails<string>",
4102
4110
  value: elem
4103
- })) && $vo8(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
4111
+ })) && $vo12(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
4104
4112
  path: _path + ".plugins[" + _index2 + "]",
4105
4113
  expected: "IntegrationPluginDetails<string>",
4106
4114
  value: elem
4107
4115
  })).every(flag => flag) || $report(_exceptionable, {
4108
- path: _path + ".plugins",
4109
- expected: "Array<IntegrationPluginDetails<string>>",
4110
- value: input.plugins
4111
- }), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
4112
- path: _path + ".manualDistribution",
4116
+ path: _path + ".plugins",
4117
+ expected: "Array<IntegrationPluginDetails<string>>",
4118
+ value: input.plugins
4119
+ }), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
4120
+ path: _path + ".manualDistribution",
4121
+ expected: "(boolean | undefined)",
4122
+ value: input.manualDistribution
4123
+ }), undefined === input.approach || "string" === typeof input.approach || $report(_exceptionable, {
4124
+ path: _path + ".approach",
4125
+ expected: "(string | undefined)",
4126
+ value: input.approach
4127
+ }), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
4128
+ path: _path + ".assignMethod",
4129
+ expected: "(string | undefined)",
4130
+ value: input.assignMethod
4131
+ })].every(flag => flag);
4132
+ const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4133
+ path: _path + ".name",
4134
+ expected: "string",
4135
+ value: input.name
4136
+ }), "string" === typeof input.description || $report(_exceptionable, {
4137
+ path: _path + ".description",
4138
+ expected: "string",
4139
+ value: input.description
4140
+ }), "string" === typeof input.image || $report(_exceptionable, {
4141
+ path: _path + ".image",
4142
+ expected: "string",
4143
+ value: input.image
4144
+ }), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
4145
+ path: _path + ".video",
4146
+ expected: "(string | undefined)",
4147
+ value: input.video
4148
+ }), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
4149
+ path: _path + ".category",
4150
+ expected: "(string | undefined)",
4151
+ value: input.category
4152
+ }), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
4153
+ path: _path + ".externalUrl",
4154
+ expected: "(string | undefined)",
4155
+ value: input.externalUrl
4156
+ }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
4157
+ path: _path + ".tags",
4158
+ expected: "(Array<string> | undefined)",
4159
+ value: input.tags
4160
+ })) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
4161
+ path: _path + ".tags[" + _index3 + "]",
4162
+ expected: "string",
4163
+ value: elem
4164
+ })).every(flag => flag) || $report(_exceptionable, {
4165
+ path: _path + ".tags",
4166
+ expected: "(Array<string> | undefined)",
4167
+ value: input.tags
4168
+ }), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
4169
+ path: _path + ".socials",
4170
+ expected: "(__type | undefined)",
4171
+ value: input.socials
4172
+ })) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
4173
+ path: _path + ".socials",
4174
+ expected: "(__type | undefined)",
4175
+ value: input.socials
4176
+ }), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
4177
+ path: _path + ".offChainTransferabilityInfo",
4178
+ expected: "(__type.o1 | undefined)",
4179
+ value: input.offChainTransferabilityInfo
4180
+ })) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
4181
+ path: _path + ".offChainTransferabilityInfo",
4182
+ expected: "(__type.o1 | undefined)",
4183
+ value: input.offChainTransferabilityInfo
4184
+ }), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
4185
+ path: _path + ".attributes",
4186
+ expected: "(Array<__type> | undefined)",
4187
+ value: input.attributes
4188
+ })) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4189
+ path: _path + ".attributes[" + _index4 + "]",
4190
+ expected: "__type.o2",
4191
+ value: elem
4192
+ })) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
4193
+ path: _path + ".attributes[" + _index4 + "]",
4194
+ expected: "__type.o2",
4195
+ value: elem
4196
+ })).every(flag => flag) || $report(_exceptionable, {
4197
+ path: _path + ".attributes",
4198
+ expected: "(Array<__type> | undefined)",
4199
+ value: input.attributes
4200
+ }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
4201
+ path: _path + ".fetchedAtBlock",
4202
+ expected: "(bigint | number | string | undefined)",
4203
+ value: input.fetchedAtBlock
4204
+ }), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
4205
+ path: _path + ".fetchedAt",
4206
+ expected: "(bigint | number | string | undefined)",
4207
+ value: input.fetchedAt
4208
+ }), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
4209
+ path: _path + "._isUpdating",
4113
4210
  expected: "(boolean | undefined)",
4114
- value: input.manualDistribution
4115
- }), undefined === input.approach || "string" === typeof input.approach || $report(_exceptionable, {
4116
- path: _path + ".approach",
4117
- expected: "(string | undefined)",
4118
- value: input.approach
4119
- }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
4120
- path: _path + ".metadata",
4121
- expected: "(iMetadata<NumberType> | undefined)",
4122
- value: input.metadata
4123
- })) && $vo10(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
4124
- path: _path + ".metadata",
4125
- expected: "(iMetadata<NumberType> | undefined)",
4126
- value: input.metadata
4127
- }), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
4211
+ value: input._isUpdating
4212
+ })].every(flag => flag);
4213
+ const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
4214
+ const value = input[key];
4215
+ if (undefined === value)
4216
+ return true;
4217
+ return "string" === typeof value || $report(_exceptionable, {
4218
+ path: _path + $join(key),
4219
+ expected: "string",
4220
+ value: value
4221
+ });
4222
+ }).every(flag => flag)].every(flag => flag);
4223
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
4224
+ path: _path + ".host",
4225
+ expected: "string",
4226
+ value: input.host
4227
+ }), "string" === typeof input.assignMethod || $report(_exceptionable, {
4128
4228
  path: _path + ".assignMethod",
4129
- expected: "(string | undefined)",
4229
+ expected: "string",
4130
4230
  value: input.assignMethod
4131
4231
  })].every(flag => flag);
4132
- const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
4232
+ const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
4233
+ path: _path + ".type",
4234
+ expected: "(\"date\" | \"url\" | undefined)",
4235
+ value: input.type
4236
+ }), "string" === typeof input.name || $report(_exceptionable, {
4237
+ path: _path + ".name",
4238
+ expected: "string",
4239
+ value: input.name
4240
+ }), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
4241
+ path: _path + ".value",
4242
+ expected: "(boolean | number | string)",
4243
+ value: input.value
4244
+ })].every(flag => flag);
4245
+ const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
4133
4246
  path: _path + ".manualBalances",
4134
4247
  expected: "Array<iManualBalances<NumberType>>",
4135
4248
  value: input.manualBalances
4136
- })) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4137
- path: _path + ".manualBalances[" + _index3 + "]",
4249
+ })) && input.manualBalances.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4250
+ path: _path + ".manualBalances[" + _index5 + "]",
4138
4251
  expected: "iManualBalances<NumberType>",
4139
4252
  value: elem
4140
- })) && $vo3(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
4141
- path: _path + ".manualBalances[" + _index3 + "]",
4253
+ })) && $vo7(elem, _path + ".manualBalances[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
4254
+ path: _path + ".manualBalances[" + _index5 + "]",
4142
4255
  expected: "iManualBalances<NumberType>",
4143
4256
  value: elem
4144
4257
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4149,7 +4262,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4149
4262
  path: _path + ".incrementedBalances",
4150
4263
  expected: "iIncrementedBalances<NumberType>",
4151
4264
  value: input.incrementedBalances
4152
- })) && $vo6(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4265
+ })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4153
4266
  path: _path + ".incrementedBalances",
4154
4267
  expected: "iIncrementedBalances<NumberType>",
4155
4268
  value: input.incrementedBalances
@@ -4157,21 +4270,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4157
4270
  path: _path + ".orderCalculationMethod",
4158
4271
  expected: "iPredeterminedOrderCalculationMethod",
4159
4272
  value: input.orderCalculationMethod
4160
- })) && $vo7(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4273
+ })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4161
4274
  path: _path + ".orderCalculationMethod",
4162
4275
  expected: "iPredeterminedOrderCalculationMethod",
4163
4276
  value: input.orderCalculationMethod
4164
4277
  })].every(flag => flag);
4165
- const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4278
+ const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4166
4279
  path: _path + ".balances",
4167
4280
  expected: "Array<iBalance<NumberType>>",
4168
4281
  value: input.balances
4169
- })) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4170
- path: _path + ".balances[" + _index4 + "]",
4282
+ })) && input.balances.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4283
+ path: _path + ".balances[" + _index6 + "]",
4171
4284
  expected: "iBalance<NumberType>",
4172
4285
  value: elem
4173
- })) && $vo4(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
4174
- path: _path + ".balances[" + _index4 + "]",
4286
+ })) && $vo8(elem, _path + ".balances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
4287
+ path: _path + ".balances[" + _index6 + "]",
4175
4288
  expected: "iBalance<NumberType>",
4176
4289
  value: elem
4177
4290
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4179,7 +4292,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4179
4292
  expected: "Array<iBalance<NumberType>>",
4180
4293
  value: input.balances
4181
4294
  })].every(flag => flag);
4182
- const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
4295
+ const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
4183
4296
  path: _path + ".amount",
4184
4297
  expected: "(bigint | number | string)",
4185
4298
  value: input.amount
@@ -4187,12 +4300,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4187
4300
  path: _path + ".badgeIds",
4188
4301
  expected: "Array<iUintRange<NumberType>>",
4189
4302
  value: input.badgeIds
4190
- })) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4191
- path: _path + ".badgeIds[" + _index5 + "]",
4303
+ })) && input.badgeIds.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4304
+ path: _path + ".badgeIds[" + _index7 + "]",
4192
4305
  expected: "iUintRange<NumberType>",
4193
4306
  value: elem
4194
- })) && $vo5(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
4195
- path: _path + ".badgeIds[" + _index5 + "]",
4307
+ })) && $vo9(elem, _path + ".badgeIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
4308
+ path: _path + ".badgeIds[" + _index7 + "]",
4196
4309
  expected: "iUintRange<NumberType>",
4197
4310
  value: elem
4198
4311
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4203,12 +4316,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4203
4316
  path: _path + ".ownershipTimes",
4204
4317
  expected: "Array<iUintRange<NumberType>>",
4205
4318
  value: input.ownershipTimes
4206
- })) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4207
- path: _path + ".ownershipTimes[" + _index6 + "]",
4319
+ })) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4320
+ path: _path + ".ownershipTimes[" + _index8 + "]",
4208
4321
  expected: "iUintRange<NumberType>",
4209
4322
  value: elem
4210
- })) && $vo5(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
4211
- path: _path + ".ownershipTimes[" + _index6 + "]",
4323
+ })) && $vo9(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
4324
+ path: _path + ".ownershipTimes[" + _index8 + "]",
4212
4325
  expected: "iUintRange<NumberType>",
4213
4326
  value: elem
4214
4327
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4216,7 +4329,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4216
4329
  expected: "Array<iUintRange<NumberType>>",
4217
4330
  value: input.ownershipTimes
4218
4331
  })].every(flag => flag);
4219
- const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
4332
+ const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
4220
4333
  path: _path + ".start",
4221
4334
  expected: "(bigint | number | string)",
4222
4335
  value: input.start
@@ -4225,16 +4338,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4225
4338
  expected: "(bigint | number | string)",
4226
4339
  value: input.end
4227
4340
  })].every(flag => flag);
4228
- const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4341
+ const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4229
4342
  path: _path + ".startBalances",
4230
4343
  expected: "Array<iBalance<NumberType>>",
4231
4344
  value: input.startBalances
4232
- })) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4233
- path: _path + ".startBalances[" + _index7 + "]",
4345
+ })) && input.startBalances.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4346
+ path: _path + ".startBalances[" + _index9 + "]",
4234
4347
  expected: "iBalance<NumberType>",
4235
4348
  value: elem
4236
- })) && $vo4(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
4237
- path: _path + ".startBalances[" + _index7 + "]",
4349
+ })) && $vo8(elem, _path + ".startBalances[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
4350
+ path: _path + ".startBalances[" + _index9 + "]",
4238
4351
  expected: "iBalance<NumberType>",
4239
4352
  value: elem
4240
4353
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4250,7 +4363,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4250
4363
  expected: "(bigint | number | string)",
4251
4364
  value: input.incrementOwnershipTimesBy
4252
4365
  })].every(flag => flag);
4253
- const $vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4366
+ const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4254
4367
  path: _path + ".useOverallNumTransfers",
4255
4368
  expected: "boolean",
4256
4369
  value: input.useOverallNumTransfers
@@ -4275,21 +4388,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4275
4388
  expected: "string",
4276
4389
  value: input.challengeTrackerId
4277
4390
  })].every(flag => flag);
4278
- const $vo8 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
4391
+ const $vo12 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
4279
4392
  path: _path + ".publicState",
4280
- expected: "__type",
4393
+ expected: "__type.o3",
4281
4394
  value: input.publicState
4282
- })) && $vo9(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
4395
+ })) && $vo13(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
4283
4396
  path: _path + ".publicState",
4284
- expected: "__type",
4397
+ expected: "__type.o3",
4285
4398
  value: input.publicState
4286
4399
  }), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || $report(_exceptionable, {
4287
4400
  path: _path + ".privateState",
4288
- expected: "(__type | undefined)",
4401
+ expected: "(__type.o3 | undefined)",
4289
4402
  value: input.privateState
4290
- })) && $vo9(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
4403
+ })) && $vo13(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
4291
4404
  path: _path + ".privateState",
4292
- expected: "(__type | undefined)",
4405
+ expected: "(__type.o3 | undefined)",
4293
4406
  value: input.privateState
4294
4407
  }), undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
4295
4408
  path: _path + ".resetState",
@@ -4297,11 +4410,11 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4297
4410
  value: input.resetState
4298
4411
  }), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
4299
4412
  path: _path + ".newState",
4300
- expected: "(__type | undefined)",
4413
+ expected: "(__type.o3 | undefined)",
4301
4414
  value: input.newState
4302
- })) && $vo9(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
4415
+ })) && $vo13(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
4303
4416
  path: _path + ".newState",
4304
- expected: "(__type | undefined)",
4417
+ expected: "(__type.o3 | undefined)",
4305
4418
  value: input.newState
4306
4419
  }), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
4307
4420
  path: _path + ".onlyUpdateProvidedNewState",
@@ -4317,135 +4430,22 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4317
4430
  value: input.pluginId
4318
4431
  }), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
4319
4432
  path: _path + ".publicParams",
4320
- expected: "__type",
4433
+ expected: "__type.o3",
4321
4434
  value: input.publicParams
4322
- })) && $vo9(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4435
+ })) && $vo13(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4323
4436
  path: _path + ".publicParams",
4324
- expected: "__type",
4437
+ expected: "__type.o3",
4325
4438
  value: input.publicParams
4326
4439
  }), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
4327
4440
  path: _path + ".privateParams",
4328
- expected: "__type",
4441
+ expected: "__type.o3",
4329
4442
  value: input.privateParams
4330
- })) && $vo9(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4443
+ })) && $vo13(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4331
4444
  path: _path + ".privateParams",
4332
- expected: "__type",
4333
- value: input.privateParams
4334
- })].every(flag => flag);
4335
- const $vo9 = (input, _path, _exceptionable = true) => true;
4336
- const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4337
- path: _path + ".name",
4338
- expected: "string",
4339
- value: input.name
4340
- }), "string" === typeof input.description || $report(_exceptionable, {
4341
- path: _path + ".description",
4342
- expected: "string",
4343
- value: input.description
4344
- }), "string" === typeof input.image || $report(_exceptionable, {
4345
- path: _path + ".image",
4346
- expected: "string",
4347
- value: input.image
4348
- }), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
4349
- path: _path + ".video",
4350
- expected: "(string | undefined)",
4351
- value: input.video
4352
- }), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
4353
- path: _path + ".category",
4354
- expected: "(string | undefined)",
4355
- value: input.category
4356
- }), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
4357
- path: _path + ".externalUrl",
4358
- expected: "(string | undefined)",
4359
- value: input.externalUrl
4360
- }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
4361
- path: _path + ".tags",
4362
- expected: "(Array<string> | undefined)",
4363
- value: input.tags
4364
- })) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
4365
- path: _path + ".tags[" + _index8 + "]",
4366
- expected: "string",
4367
- value: elem
4368
- })).every(flag => flag) || $report(_exceptionable, {
4369
- path: _path + ".tags",
4370
- expected: "(Array<string> | undefined)",
4371
- value: input.tags
4372
- }), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
4373
- path: _path + ".socials",
4374
- expected: "(__type.o1 | undefined)",
4375
- value: input.socials
4376
- })) && $vo11(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
4377
- path: _path + ".socials",
4378
- expected: "(__type.o1 | undefined)",
4379
- value: input.socials
4380
- }), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
4381
- path: _path + ".offChainTransferabilityInfo",
4382
- expected: "(__type.o2 | undefined)",
4383
- value: input.offChainTransferabilityInfo
4384
- })) && $vo12(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
4385
- path: _path + ".offChainTransferabilityInfo",
4386
- expected: "(__type.o2 | undefined)",
4387
- value: input.offChainTransferabilityInfo
4388
- }), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
4389
- path: _path + ".attributes",
4390
- expected: "(Array<__type> | undefined)",
4391
- value: input.attributes
4392
- })) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4393
- path: _path + ".attributes[" + _index9 + "]",
4394
- expected: "__type.o3",
4395
- value: elem
4396
- })) && $vo13(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
4397
- path: _path + ".attributes[" + _index9 + "]",
4398
4445
  expected: "__type.o3",
4399
- value: elem
4400
- })).every(flag => flag) || $report(_exceptionable, {
4401
- path: _path + ".attributes",
4402
- expected: "(Array<__type> | undefined)",
4403
- value: input.attributes
4404
- }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
4405
- path: _path + ".fetchedAtBlock",
4406
- expected: "(bigint | number | string | undefined)",
4407
- value: input.fetchedAtBlock
4408
- }), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
4409
- path: _path + ".fetchedAt",
4410
- expected: "(bigint | number | string | undefined)",
4411
- value: input.fetchedAt
4412
- }), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
4413
- path: _path + "._isUpdating",
4414
- expected: "(boolean | undefined)",
4415
- value: input._isUpdating
4416
- })].every(flag => flag);
4417
- const $vo11 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
4418
- const value = input[key];
4419
- if (undefined === value)
4420
- return true;
4421
- return "string" === typeof value || $report(_exceptionable, {
4422
- path: _path + $join(key),
4423
- expected: "string",
4424
- value: value
4425
- });
4426
- }).every(flag => flag)].every(flag => flag);
4427
- const $vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
4428
- path: _path + ".host",
4429
- expected: "string",
4430
- value: input.host
4431
- }), "string" === typeof input.assignMethod || $report(_exceptionable, {
4432
- path: _path + ".assignMethod",
4433
- expected: "string",
4434
- value: input.assignMethod
4435
- })].every(flag => flag);
4436
- const $vo13 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
4437
- path: _path + ".type",
4438
- expected: "(\"date\" | \"url\" | undefined)",
4439
- value: input.type
4440
- }), "string" === typeof input.name || $report(_exceptionable, {
4441
- path: _path + ".name",
4442
- expected: "string",
4443
- value: input.name
4444
- }), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
4445
- path: _path + ".value",
4446
- expected: "(boolean | number | string)",
4447
- value: input.value
4446
+ value: input.privateParams
4448
4447
  })].every(flag => flag);
4448
+ const $vo13 = (input, _path, _exceptionable = true) => true;
4449
4449
  return ("object" === typeof input && null !== input || $report(true, {
4450
4450
  path: _path + "",
4451
4451
  expected: "UpdateClaimPayload",
@@ -6114,23 +6114,23 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6114
6114
  const errors = [];
6115
6115
  const __is = input => {
6116
6116
  const $io0 = input => undefined === input.contents || Array.isArray(input.contents) && input.contents.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
6117
- 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);
6118
- 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);
6119
- 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);
6120
- const $io4 = input => Object.keys(input).every(key => {
6117
+ 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);
6118
+ 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);
6119
+ const $io3 = input => Object.keys(input).every(key => {
6121
6120
  const value = input[key];
6122
6121
  if (undefined === value)
6123
6122
  return true;
6124
6123
  return "string" === typeof value;
6125
6124
  });
6126
- const $io5 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
6127
- 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);
6128
- 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);
6125
+ const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
6126
+ 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);
6127
+ 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);
6128
+ 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);
6129
6129
  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);
6130
6130
  const $io9 = input => true;
6131
6131
  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);
6132
- 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@929"] && Object.keys(input).every(key => {
6133
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@929"].some(prop => key === prop))
6132
+ 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@231"] && Object.keys(input).every(key => {
6133
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@231"].some(prop => key === prop))
6134
6134
  return true;
6135
6135
  const value = input[key];
6136
6136
  if (undefined === value)
@@ -6140,14 +6140,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6140
6140
  return true;
6141
6141
  });
6142
6142
  const $iu0 = input => (() => {
6143
- if (undefined !== input.badgeIds)
6144
- return $io1(input);
6145
- else if (undefined !== input.name)
6146
- return $io3(input);
6143
+ if (undefined !== input.name)
6144
+ return $io2(input);
6145
+ else if (undefined !== input.badgeIds)
6146
+ return $io6(input);
6147
6147
  else if (undefined !== input.leaves)
6148
6148
  return $io8(input);
6149
6149
  else
6150
- return $io7(input);
6150
+ return $io1(input);
6151
6151
  })();
6152
6152
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
6153
6153
  };
@@ -6157,7 +6157,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6157
6157
  const $join = typia_1.default.validate.join;
6158
6158
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
6159
6159
  path: _path + ".contents",
6160
- expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6160
+ expected: "(Array<iCollectionMetadataDetails<NumberType> | iMetadata<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6161
6161
  value: input.contents
6162
6162
  })) && input.contents.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6163
6163
  path: _path + ".contents[" + _index1 + "]",
@@ -6169,30 +6169,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6169
6169
  value: elem
6170
6170
  })).every(flag => flag) || $report(_exceptionable, {
6171
6171
  path: _path + ".contents",
6172
- expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6172
+ expected: "(Array<iCollectionMetadataDetails<NumberType> | iMetadata<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6173
6173
  value: input.contents
6174
6174
  })].every(flag => flag);
6175
- const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6176
- path: _path + ".badgeIds",
6177
- expected: "Array<iUintRange<NumberType>>",
6178
- value: input.badgeIds
6179
- })) && input.badgeIds.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6180
- path: _path + ".badgeIds[" + _index2 + "]",
6181
- expected: "iUintRange<NumberType>",
6182
- value: elem
6183
- })) && $vo2(elem, _path + ".badgeIds[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
6184
- path: _path + ".badgeIds[" + _index2 + "]",
6185
- expected: "iUintRange<NumberType>",
6186
- value: elem
6187
- })).every(flag => flag) || $report(_exceptionable, {
6188
- path: _path + ".badgeIds",
6189
- expected: "Array<iUintRange<NumberType>>",
6190
- value: input.badgeIds
6191
- }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6175
+ const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6192
6176
  path: _path + ".metadata",
6193
6177
  expected: "(iMetadata<NumberType> | undefined)",
6194
6178
  value: input.metadata
6195
- })) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6179
+ })) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6196
6180
  path: _path + ".metadata",
6197
6181
  expected: "(iMetadata<NumberType> | undefined)",
6198
6182
  value: input.metadata
@@ -6213,16 +6197,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6213
6197
  expected: "(boolean | undefined)",
6214
6198
  value: input.toUploadToIpfs
6215
6199
  })].every(flag => flag);
6216
- const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6217
- path: _path + ".start",
6218
- expected: "(bigint | number | string)",
6219
- value: input.start
6220
- }), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
6221
- path: _path + ".end",
6222
- expected: "(bigint | number | string)",
6223
- value: input.end
6224
- })].every(flag => flag);
6225
- const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
6200
+ const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
6226
6201
  path: _path + ".name",
6227
6202
  expected: "string",
6228
6203
  value: input.name
@@ -6250,8 +6225,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6250
6225
  path: _path + ".tags",
6251
6226
  expected: "(Array<string> | undefined)",
6252
6227
  value: input.tags
6253
- })) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
6254
- path: _path + ".tags[" + _index3 + "]",
6228
+ })) && input.tags.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
6229
+ path: _path + ".tags[" + _index2 + "]",
6255
6230
  expected: "string",
6256
6231
  value: elem
6257
6232
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6262,7 +6237,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6262
6237
  path: _path + ".socials",
6263
6238
  expected: "(__type | undefined)",
6264
6239
  value: input.socials
6265
- })) && $vo4(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
6240
+ })) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
6266
6241
  path: _path + ".socials",
6267
6242
  expected: "(__type | undefined)",
6268
6243
  value: input.socials
@@ -6270,7 +6245,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6270
6245
  path: _path + ".offChainTransferabilityInfo",
6271
6246
  expected: "(__type.o1 | undefined)",
6272
6247
  value: input.offChainTransferabilityInfo
6273
- })) && $vo5(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
6248
+ })) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
6274
6249
  path: _path + ".offChainTransferabilityInfo",
6275
6250
  expected: "(__type.o1 | undefined)",
6276
6251
  value: input.offChainTransferabilityInfo
@@ -6278,12 +6253,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6278
6253
  path: _path + ".attributes",
6279
6254
  expected: "(Array<__type> | undefined)",
6280
6255
  value: input.attributes
6281
- })) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6282
- path: _path + ".attributes[" + _index4 + "]",
6256
+ })) && input.attributes.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6257
+ path: _path + ".attributes[" + _index3 + "]",
6283
6258
  expected: "__type.o2",
6284
6259
  value: elem
6285
- })) && $vo6(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
6286
- path: _path + ".attributes[" + _index4 + "]",
6260
+ })) && $vo5(elem, _path + ".attributes[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
6261
+ path: _path + ".attributes[" + _index3 + "]",
6287
6262
  expected: "__type.o2",
6288
6263
  value: elem
6289
6264
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6303,7 +6278,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6303
6278
  expected: "(boolean | undefined)",
6304
6279
  value: input._isUpdating
6305
6280
  })].every(flag => flag);
6306
- const $vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
6281
+ const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
6307
6282
  const value = input[key];
6308
6283
  if (undefined === value)
6309
6284
  return true;
@@ -6313,7 +6288,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6313
6288
  value: value
6314
6289
  });
6315
6290
  }).every(flag => flag)].every(flag => flag);
6316
- const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
6291
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
6317
6292
  path: _path + ".host",
6318
6293
  expected: "string",
6319
6294
  value: input.host
@@ -6322,7 +6297,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6322
6297
  expected: "string",
6323
6298
  value: input.assignMethod
6324
6299
  })].every(flag => flag);
6325
- const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
6300
+ const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
6326
6301
  path: _path + ".type",
6327
6302
  expected: "(\"date\" | \"url\" | undefined)",
6328
6303
  value: input.type
@@ -6335,11 +6310,27 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6335
6310
  expected: "(boolean | number | string)",
6336
6311
  value: input.value
6337
6312
  })].every(flag => flag);
6338
- const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6313
+ const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6314
+ path: _path + ".badgeIds",
6315
+ expected: "Array<iUintRange<NumberType>>",
6316
+ value: input.badgeIds
6317
+ })) && input.badgeIds.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6318
+ path: _path + ".badgeIds[" + _index4 + "]",
6319
+ expected: "iUintRange<NumberType>",
6320
+ value: elem
6321
+ })) && $vo7(elem, _path + ".badgeIds[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
6322
+ path: _path + ".badgeIds[" + _index4 + "]",
6323
+ expected: "iUintRange<NumberType>",
6324
+ value: elem
6325
+ })).every(flag => flag) || $report(_exceptionable, {
6326
+ path: _path + ".badgeIds",
6327
+ expected: "Array<iUintRange<NumberType>>",
6328
+ value: input.badgeIds
6329
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6339
6330
  path: _path + ".metadata",
6340
6331
  expected: "(iMetadata<NumberType> | undefined)",
6341
6332
  value: input.metadata
6342
- })) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6333
+ })) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6343
6334
  path: _path + ".metadata",
6344
6335
  expected: "(iMetadata<NumberType> | undefined)",
6345
6336
  value: input.metadata
@@ -6360,6 +6351,15 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6360
6351
  expected: "(boolean | undefined)",
6361
6352
  value: input.toUploadToIpfs
6362
6353
  })].every(flag => flag);
6354
+ const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6355
+ path: _path + ".start",
6356
+ expected: "(bigint | number | string)",
6357
+ value: input.start
6358
+ }), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
6359
+ path: _path + ".end",
6360
+ expected: "(bigint | number | string)",
6361
+ value: input.end
6362
+ })].every(flag => flag);
6363
6363
  const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
6364
6364
  path: _path + ".leaves",
6365
6365
  expected: "Array<string>",
@@ -6483,12 +6483,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6483
6483
  path: _path + ".length",
6484
6484
  expected: "number",
6485
6485
  value: input.length
6486
- }), "Uint8Array" === input["__@toStringTag@929"] || $report(_exceptionable, {
6487
- path: _path + "[\"__@toStringTag@929\"]",
6486
+ }), "Uint8Array" === input["__@toStringTag@231"] || $report(_exceptionable, {
6487
+ path: _path + "[\"__@toStringTag@231\"]",
6488
6488
  expected: "\"Uint8Array\"",
6489
- value: input["__@toStringTag@929"]
6489
+ value: input["__@toStringTag@231"]
6490
6490
  }), false === _exceptionable || Object.keys(input).map(key => {
6491
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@929"].some(prop => key === prop))
6491
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@231"].some(prop => key === prop))
6492
6492
  return true;
6493
6493
  const value = input[key];
6494
6494
  if (undefined === value)
@@ -6502,14 +6502,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6502
6502
  return true;
6503
6503
  }).every(flag => flag)].every(flag => flag);
6504
6504
  const $vu0 = (input, _path, _exceptionable = true) => (() => {
6505
- if (undefined !== input.badgeIds)
6506
- return $vo1(input, _path, true && _exceptionable);
6507
- else if (undefined !== input.name)
6508
- return $vo3(input, _path, true && _exceptionable);
6505
+ if (undefined !== input.name)
6506
+ return $vo2(input, _path, true && _exceptionable);
6507
+ else if (undefined !== input.badgeIds)
6508
+ return $vo6(input, _path, true && _exceptionable);
6509
6509
  else if (undefined !== input.leaves)
6510
6510
  return $vo8(input, _path, true && _exceptionable);
6511
6511
  else
6512
- return $vo7(input, _path, true && _exceptionable);
6512
+ return $vo1(input, _path, true && _exceptionable);
6513
6513
  })();
6514
6514
  return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
6515
6515
  path: _path + "",
@@ -6551,8 +6551,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6551
6551
  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);
6552
6552
  const $io4 = input => true;
6553
6553
  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);
6554
- 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@929"] && Object.keys(input).every(key => {
6555
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@929"].some(prop => key === prop))
6554
+ 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@231"] && Object.keys(input).every(key => {
6555
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@231"].some(prop => key === prop))
6556
6556
  return true;
6557
6557
  const value = input[key];
6558
6558
  if (undefined === value)
@@ -6766,12 +6766,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6766
6766
  path: _path + ".length",
6767
6767
  expected: "number",
6768
6768
  value: input.length
6769
- }), "Uint8Array" === input["__@toStringTag@929"] || $report(_exceptionable, {
6770
- path: _path + "[\"__@toStringTag@929\"]",
6769
+ }), "Uint8Array" === input["__@toStringTag@231"] || $report(_exceptionable, {
6770
+ path: _path + "[\"__@toStringTag@231\"]",
6771
6771
  expected: "\"Uint8Array\"",
6772
- value: input["__@toStringTag@929"]
6772
+ value: input["__@toStringTag@231"]
6773
6773
  }), false === _exceptionable || Object.keys(input).map(key => {
6774
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@929"].some(prop => key === prop))
6774
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@231"].some(prop => key === prop))
6775
6775
  return true;
6776
6776
  const value = input[key];
6777
6777
  if (undefined === value)