bitbadgesjs-sdk 0.3.71 → 0.3.72

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.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 => {
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 => {
3550
3555
  const value = input[key];
3551
3556
  if (undefined === value)
3552
3557
  return true;
3553
3558
  return "string" === typeof value;
3554
3559
  });
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);
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);
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,15 +3584,7 @@ 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.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, {
3587
+ const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
3596
3588
  path: _path + ".seedCode",
3597
3589
  expected: "(string | undefined)",
3598
3590
  value: input.seedCode
@@ -3604,7 +3596,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3604
3596
  path: _path + ".balancesToSet",
3605
3597
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3606
3598
  value: input.balancesToSet
3607
- })) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3599
+ })) && $vo2(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3608
3600
  path: _path + ".balancesToSet",
3609
3601
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3610
3602
  value: input.balancesToSet
@@ -3616,6 +3608,14 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3616
3608
  path: _path + ".approach",
3617
3609
  expected: "(string | undefined)",
3618
3610
  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,129 +3649,16 @@ 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) => ["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, {
3652
+ const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3766
3653
  path: _path + ".manualBalances",
3767
3654
  expected: "Array<iManualBalances<NumberType>>",
3768
3655
  value: input.manualBalances
3769
- })) && input.manualBalances.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3770
- path: _path + ".manualBalances[" + _index5 + "]",
3656
+ })) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3657
+ path: _path + ".manualBalances[" + _index3 + "]",
3771
3658
  expected: "iManualBalances<NumberType>",
3772
3659
  value: elem
3773
- })) && $vo7(elem, _path + ".manualBalances[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
3774
- path: _path + ".manualBalances[" + _index5 + "]",
3660
+ })) && $vo3(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
3661
+ path: _path + ".manualBalances[" + _index3 + "]",
3775
3662
  expected: "iManualBalances<NumberType>",
3776
3663
  value: elem
3777
3664
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3782,7 +3669,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3782
3669
  path: _path + ".incrementedBalances",
3783
3670
  expected: "iIncrementedBalances<NumberType>",
3784
3671
  value: input.incrementedBalances
3785
- })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3672
+ })) && $vo6(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3786
3673
  path: _path + ".incrementedBalances",
3787
3674
  expected: "iIncrementedBalances<NumberType>",
3788
3675
  value: input.incrementedBalances
@@ -3790,21 +3677,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3790
3677
  path: _path + ".orderCalculationMethod",
3791
3678
  expected: "iPredeterminedOrderCalculationMethod",
3792
3679
  value: input.orderCalculationMethod
3793
- })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3680
+ })) && $vo7(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3794
3681
  path: _path + ".orderCalculationMethod",
3795
3682
  expected: "iPredeterminedOrderCalculationMethod",
3796
3683
  value: input.orderCalculationMethod
3797
3684
  })].every(flag => flag);
3798
- const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3685
+ const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3799
3686
  path: _path + ".balances",
3800
3687
  expected: "Array<iBalance<NumberType>>",
3801
3688
  value: input.balances
3802
- })) && input.balances.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3803
- path: _path + ".balances[" + _index6 + "]",
3689
+ })) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3690
+ path: _path + ".balances[" + _index4 + "]",
3804
3691
  expected: "iBalance<NumberType>",
3805
3692
  value: elem
3806
- })) && $vo8(elem, _path + ".balances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
3807
- path: _path + ".balances[" + _index6 + "]",
3693
+ })) && $vo4(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
3694
+ path: _path + ".balances[" + _index4 + "]",
3808
3695
  expected: "iBalance<NumberType>",
3809
3696
  value: elem
3810
3697
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3812,7 +3699,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3812
3699
  expected: "Array<iBalance<NumberType>>",
3813
3700
  value: input.balances
3814
3701
  })].every(flag => flag);
3815
- const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3702
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3816
3703
  path: _path + ".amount",
3817
3704
  expected: "(bigint | number | string)",
3818
3705
  value: input.amount
@@ -3820,12 +3707,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3820
3707
  path: _path + ".badgeIds",
3821
3708
  expected: "Array<iUintRange<NumberType>>",
3822
3709
  value: input.badgeIds
3823
- })) && input.badgeIds.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3824
- path: _path + ".badgeIds[" + _index7 + "]",
3710
+ })) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3711
+ path: _path + ".badgeIds[" + _index5 + "]",
3825
3712
  expected: "iUintRange<NumberType>",
3826
3713
  value: elem
3827
- })) && $vo9(elem, _path + ".badgeIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
3828
- path: _path + ".badgeIds[" + _index7 + "]",
3714
+ })) && $vo5(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
3715
+ path: _path + ".badgeIds[" + _index5 + "]",
3829
3716
  expected: "iUintRange<NumberType>",
3830
3717
  value: elem
3831
3718
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3836,12 +3723,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3836
3723
  path: _path + ".ownershipTimes",
3837
3724
  expected: "Array<iUintRange<NumberType>>",
3838
3725
  value: input.ownershipTimes
3839
- })) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3840
- path: _path + ".ownershipTimes[" + _index8 + "]",
3726
+ })) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3727
+ path: _path + ".ownershipTimes[" + _index6 + "]",
3841
3728
  expected: "iUintRange<NumberType>",
3842
3729
  value: elem
3843
- })) && $vo9(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
3844
- path: _path + ".ownershipTimes[" + _index8 + "]",
3730
+ })) && $vo5(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
3731
+ path: _path + ".ownershipTimes[" + _index6 + "]",
3845
3732
  expected: "iUintRange<NumberType>",
3846
3733
  value: elem
3847
3734
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3849,7 +3736,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3849
3736
  expected: "Array<iUintRange<NumberType>>",
3850
3737
  value: input.ownershipTimes
3851
3738
  })].every(flag => flag);
3852
- const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
3739
+ const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
3853
3740
  path: _path + ".start",
3854
3741
  expected: "(bigint | number | string)",
3855
3742
  value: input.start
@@ -3858,16 +3745,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3858
3745
  expected: "(bigint | number | string)",
3859
3746
  value: input.end
3860
3747
  })].every(flag => flag);
3861
- const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
3748
+ const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
3862
3749
  path: _path + ".startBalances",
3863
3750
  expected: "Array<iBalance<NumberType>>",
3864
3751
  value: input.startBalances
3865
- })) && input.startBalances.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3866
- path: _path + ".startBalances[" + _index9 + "]",
3752
+ })) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3753
+ path: _path + ".startBalances[" + _index7 + "]",
3867
3754
  expected: "iBalance<NumberType>",
3868
3755
  value: elem
3869
- })) && $vo8(elem, _path + ".startBalances[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
3870
- path: _path + ".startBalances[" + _index9 + "]",
3756
+ })) && $vo4(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
3757
+ path: _path + ".startBalances[" + _index7 + "]",
3871
3758
  expected: "iBalance<NumberType>",
3872
3759
  value: elem
3873
3760
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3883,7 +3770,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3883
3770
  expected: "(bigint | number | string)",
3884
3771
  value: input.incrementOwnershipTimesBy
3885
3772
  })].every(flag => flag);
3886
- const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
3773
+ const $vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
3887
3774
  path: _path + ".useOverallNumTransfers",
3888
3775
  expected: "boolean",
3889
3776
  value: input.useOverallNumTransfers
@@ -3908,6 +3795,119 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3908
3795
  expected: "string",
3909
3796
  value: input.challengeTrackerId
3910
3797
  })].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 => (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 => {
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 => {
4046
4053
  const value = input[key];
4047
4054
  if (undefined === value)
4048
4055
  return true;
4049
4056
  return "string" === typeof value;
4050
4057
  });
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;
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);
4060
4060
  return "object" === typeof input && null !== input && $io0(input);
4061
4061
  };
4062
4062
  if (false === __is(input)) {
@@ -4080,15 +4080,7 @@ 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) => [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, {
4083
+ const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
4092
4084
  path: _path + ".claimId",
4093
4085
  expected: "string",
4094
4086
  value: input.claimId
@@ -4096,7 +4088,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4096
4088
  path: _path + ".balancesToSet",
4097
4089
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
4098
4090
  value: input.balancesToSet
4099
- })) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
4091
+ })) && $vo2(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
4100
4092
  path: _path + ".balancesToSet",
4101
4093
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
4102
4094
  value: input.balancesToSet
@@ -4105,153 +4097,48 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4105
4097
  expected: "Array<IntegrationPluginDetails<string>>",
4106
4098
  value: input.plugins
4107
4099
  })) && input.plugins.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4108
- path: _path + ".plugins[" + _index2 + "]",
4109
- expected: "IntegrationPluginDetails<string>",
4110
- value: elem
4111
- })) && $vo12(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
4112
- path: _path + ".plugins[" + _index2 + "]",
4113
- expected: "IntegrationPluginDetails<string>",
4114
- value: elem
4115
- })).every(flag => flag) || $report(_exceptionable, {
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",
4210
- expected: "(boolean | undefined)",
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, {
4100
+ path: _path + ".plugins[" + _index2 + "]",
4101
+ expected: "IntegrationPluginDetails<string>",
4102
+ value: elem
4103
+ })) && $vo8(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
4104
+ path: _path + ".plugins[" + _index2 + "]",
4105
+ expected: "IntegrationPluginDetails<string>",
4106
+ value: elem
4107
+ })).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",
4113
+ 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, {
4228
4128
  path: _path + ".assignMethod",
4229
- expected: "string",
4129
+ expected: "(string | undefined)",
4230
4130
  value: input.assignMethod
4231
4131
  })].every(flag => flag);
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, {
4132
+ const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
4246
4133
  path: _path + ".manualBalances",
4247
4134
  expected: "Array<iManualBalances<NumberType>>",
4248
4135
  value: input.manualBalances
4249
- })) && input.manualBalances.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4250
- path: _path + ".manualBalances[" + _index5 + "]",
4136
+ })) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4137
+ path: _path + ".manualBalances[" + _index3 + "]",
4251
4138
  expected: "iManualBalances<NumberType>",
4252
4139
  value: elem
4253
- })) && $vo7(elem, _path + ".manualBalances[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
4254
- path: _path + ".manualBalances[" + _index5 + "]",
4140
+ })) && $vo3(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
4141
+ path: _path + ".manualBalances[" + _index3 + "]",
4255
4142
  expected: "iManualBalances<NumberType>",
4256
4143
  value: elem
4257
4144
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4262,7 +4149,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4262
4149
  path: _path + ".incrementedBalances",
4263
4150
  expected: "iIncrementedBalances<NumberType>",
4264
4151
  value: input.incrementedBalances
4265
- })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4152
+ })) && $vo6(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4266
4153
  path: _path + ".incrementedBalances",
4267
4154
  expected: "iIncrementedBalances<NumberType>",
4268
4155
  value: input.incrementedBalances
@@ -4270,21 +4157,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4270
4157
  path: _path + ".orderCalculationMethod",
4271
4158
  expected: "iPredeterminedOrderCalculationMethod",
4272
4159
  value: input.orderCalculationMethod
4273
- })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4160
+ })) && $vo7(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4274
4161
  path: _path + ".orderCalculationMethod",
4275
4162
  expected: "iPredeterminedOrderCalculationMethod",
4276
4163
  value: input.orderCalculationMethod
4277
4164
  })].every(flag => flag);
4278
- const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4165
+ const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4279
4166
  path: _path + ".balances",
4280
4167
  expected: "Array<iBalance<NumberType>>",
4281
4168
  value: input.balances
4282
- })) && input.balances.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4283
- path: _path + ".balances[" + _index6 + "]",
4169
+ })) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4170
+ path: _path + ".balances[" + _index4 + "]",
4284
4171
  expected: "iBalance<NumberType>",
4285
4172
  value: elem
4286
- })) && $vo8(elem, _path + ".balances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
4287
- path: _path + ".balances[" + _index6 + "]",
4173
+ })) && $vo4(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
4174
+ path: _path + ".balances[" + _index4 + "]",
4288
4175
  expected: "iBalance<NumberType>",
4289
4176
  value: elem
4290
4177
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4292,7 +4179,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4292
4179
  expected: "Array<iBalance<NumberType>>",
4293
4180
  value: input.balances
4294
4181
  })].every(flag => flag);
4295
- const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
4182
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
4296
4183
  path: _path + ".amount",
4297
4184
  expected: "(bigint | number | string)",
4298
4185
  value: input.amount
@@ -4300,12 +4187,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4300
4187
  path: _path + ".badgeIds",
4301
4188
  expected: "Array<iUintRange<NumberType>>",
4302
4189
  value: input.badgeIds
4303
- })) && input.badgeIds.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4304
- path: _path + ".badgeIds[" + _index7 + "]",
4190
+ })) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4191
+ path: _path + ".badgeIds[" + _index5 + "]",
4305
4192
  expected: "iUintRange<NumberType>",
4306
4193
  value: elem
4307
- })) && $vo9(elem, _path + ".badgeIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
4308
- path: _path + ".badgeIds[" + _index7 + "]",
4194
+ })) && $vo5(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
4195
+ path: _path + ".badgeIds[" + _index5 + "]",
4309
4196
  expected: "iUintRange<NumberType>",
4310
4197
  value: elem
4311
4198
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4316,12 +4203,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4316
4203
  path: _path + ".ownershipTimes",
4317
4204
  expected: "Array<iUintRange<NumberType>>",
4318
4205
  value: input.ownershipTimes
4319
- })) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4320
- path: _path + ".ownershipTimes[" + _index8 + "]",
4206
+ })) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4207
+ path: _path + ".ownershipTimes[" + _index6 + "]",
4321
4208
  expected: "iUintRange<NumberType>",
4322
4209
  value: elem
4323
- })) && $vo9(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
4324
- path: _path + ".ownershipTimes[" + _index8 + "]",
4210
+ })) && $vo5(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
4211
+ path: _path + ".ownershipTimes[" + _index6 + "]",
4325
4212
  expected: "iUintRange<NumberType>",
4326
4213
  value: elem
4327
4214
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4329,7 +4216,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4329
4216
  expected: "Array<iUintRange<NumberType>>",
4330
4217
  value: input.ownershipTimes
4331
4218
  })].every(flag => flag);
4332
- const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
4219
+ const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
4333
4220
  path: _path + ".start",
4334
4221
  expected: "(bigint | number | string)",
4335
4222
  value: input.start
@@ -4338,16 +4225,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4338
4225
  expected: "(bigint | number | string)",
4339
4226
  value: input.end
4340
4227
  })].every(flag => flag);
4341
- const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4228
+ const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4342
4229
  path: _path + ".startBalances",
4343
4230
  expected: "Array<iBalance<NumberType>>",
4344
4231
  value: input.startBalances
4345
- })) && input.startBalances.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4346
- path: _path + ".startBalances[" + _index9 + "]",
4232
+ })) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4233
+ path: _path + ".startBalances[" + _index7 + "]",
4347
4234
  expected: "iBalance<NumberType>",
4348
4235
  value: elem
4349
- })) && $vo8(elem, _path + ".startBalances[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
4350
- path: _path + ".startBalances[" + _index9 + "]",
4236
+ })) && $vo4(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
4237
+ path: _path + ".startBalances[" + _index7 + "]",
4351
4238
  expected: "iBalance<NumberType>",
4352
4239
  value: elem
4353
4240
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4363,7 +4250,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4363
4250
  expected: "(bigint | number | string)",
4364
4251
  value: input.incrementOwnershipTimesBy
4365
4252
  })].every(flag => flag);
4366
- const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4253
+ const $vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4367
4254
  path: _path + ".useOverallNumTransfers",
4368
4255
  expected: "boolean",
4369
4256
  value: input.useOverallNumTransfers
@@ -4388,21 +4275,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4388
4275
  expected: "string",
4389
4276
  value: input.challengeTrackerId
4390
4277
  })].every(flag => flag);
4391
- const $vo12 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
4278
+ const $vo8 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
4392
4279
  path: _path + ".publicState",
4393
- expected: "__type.o3",
4280
+ expected: "__type",
4394
4281
  value: input.publicState
4395
- })) && $vo13(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
4282
+ })) && $vo9(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
4396
4283
  path: _path + ".publicState",
4397
- expected: "__type.o3",
4284
+ expected: "__type",
4398
4285
  value: input.publicState
4399
4286
  }), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || $report(_exceptionable, {
4400
4287
  path: _path + ".privateState",
4401
- expected: "(__type.o3 | undefined)",
4288
+ expected: "(__type | undefined)",
4402
4289
  value: input.privateState
4403
- })) && $vo13(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
4290
+ })) && $vo9(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
4404
4291
  path: _path + ".privateState",
4405
- expected: "(__type.o3 | undefined)",
4292
+ expected: "(__type | undefined)",
4406
4293
  value: input.privateState
4407
4294
  }), undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
4408
4295
  path: _path + ".resetState",
@@ -4410,11 +4297,11 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4410
4297
  value: input.resetState
4411
4298
  }), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
4412
4299
  path: _path + ".newState",
4413
- expected: "(__type.o3 | undefined)",
4300
+ expected: "(__type | undefined)",
4414
4301
  value: input.newState
4415
- })) && $vo13(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
4302
+ })) && $vo9(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
4416
4303
  path: _path + ".newState",
4417
- expected: "(__type.o3 | undefined)",
4304
+ expected: "(__type | undefined)",
4418
4305
  value: input.newState
4419
4306
  }), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
4420
4307
  path: _path + ".onlyUpdateProvidedNewState",
@@ -4430,22 +4317,135 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4430
4317
  value: input.pluginId
4431
4318
  }), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
4432
4319
  path: _path + ".publicParams",
4433
- expected: "__type.o3",
4320
+ expected: "__type",
4434
4321
  value: input.publicParams
4435
- })) && $vo13(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4322
+ })) && $vo9(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4436
4323
  path: _path + ".publicParams",
4437
- expected: "__type.o3",
4324
+ expected: "__type",
4438
4325
  value: input.publicParams
4439
4326
  }), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
4440
4327
  path: _path + ".privateParams",
4441
- expected: "__type.o3",
4328
+ expected: "__type",
4442
4329
  value: input.privateParams
4443
- })) && $vo13(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4330
+ })) && $vo9(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4444
4331
  path: _path + ".privateParams",
4445
- expected: "__type.o3",
4332
+ expected: "__type",
4446
4333
  value: input.privateParams
4447
4334
  })].every(flag => flag);
4448
- const $vo13 = (input, _path, _exceptionable = true) => true;
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
+ 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
4448
+ })].every(flag => flag);
4449
4449
  return ("object" === typeof input && null !== input || $report(true, {
4450
4450
  path: _path + "",
4451
4451
  expected: "UpdateClaimPayload",
@@ -5219,11 +5219,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5219
5219
  const validateRes = (input => {
5220
5220
  const errors = [];
5221
5221
  const __is = input => {
5222
- const $io0 = input => "string" === typeof input.pluginId && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.reuseForLists && "boolean" === typeof input.requiresUserInputs && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io2(input.userInputRedirect)) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && $io3(input.claimCreatorRedirect)) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io4(input.verificationCall)) && "boolean" === typeof input.toPublish && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem));
5222
+ const $io0 = input => "string" === typeof input.pluginId && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.reuseForLists && "boolean" === typeof input.requiresUserInputs && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io2(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && $io4(input.claimCreatorRedirect)) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io5(input.verificationCall)) && "boolean" === typeof input.toPublish && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem));
5223
5223
  const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && "string" === typeof input.createdBy;
5224
5224
  const $io2 = input => "string" === typeof input.baseUri;
5225
- const $io3 = input => "string" === typeof input.baseUri;
5226
- const $io4 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch);
5225
+ const $io3 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "date" === input.type || "url" === input.type) && (undefined === input.helper || "string" === typeof input.helper);
5226
+ const $io4 = input => "string" === typeof input.baseUri;
5227
+ const $io5 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch);
5227
5228
  return "object" === typeof input && null !== input && $io0(input);
5228
5229
  };
5229
5230
  if (false === __is(input)) {
@@ -5269,11 +5270,27 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5269
5270
  path: _path + ".userInputRedirect",
5270
5271
  expected: "(__type.o1 | undefined)",
5271
5272
  value: input.userInputRedirect
5273
+ }), undefined === input.userInputsSchema || (Array.isArray(input.userInputsSchema) || $report(_exceptionable, {
5274
+ path: _path + ".userInputsSchema",
5275
+ expected: "(Array<JsonBodyInputSchema> | undefined)",
5276
+ value: input.userInputsSchema
5277
+ })) && input.userInputsSchema.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
5278
+ path: _path + ".userInputsSchema[" + _index1 + "]",
5279
+ expected: "JsonBodyInputSchema",
5280
+ value: elem
5281
+ })) && $vo3(elem, _path + ".userInputsSchema[" + _index1 + "]", true && _exceptionable) || $report(_exceptionable, {
5282
+ path: _path + ".userInputsSchema[" + _index1 + "]",
5283
+ expected: "JsonBodyInputSchema",
5284
+ value: elem
5285
+ })).every(flag => flag) || $report(_exceptionable, {
5286
+ path: _path + ".userInputsSchema",
5287
+ expected: "(Array<JsonBodyInputSchema> | undefined)",
5288
+ value: input.userInputsSchema
5272
5289
  }), undefined === input.claimCreatorRedirect || ("object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect || $report(_exceptionable, {
5273
5290
  path: _path + ".claimCreatorRedirect",
5274
5291
  expected: "(__type.o2 | undefined)",
5275
5292
  value: input.claimCreatorRedirect
5276
- })) && $vo3(input.claimCreatorRedirect, _path + ".claimCreatorRedirect", true && _exceptionable) || $report(_exceptionable, {
5293
+ })) && $vo4(input.claimCreatorRedirect, _path + ".claimCreatorRedirect", true && _exceptionable) || $report(_exceptionable, {
5277
5294
  path: _path + ".claimCreatorRedirect",
5278
5295
  expected: "(__type.o2 | undefined)",
5279
5296
  value: input.claimCreatorRedirect
@@ -5281,7 +5298,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5281
5298
  path: _path + ".verificationCall",
5282
5299
  expected: "(__type.o3 | undefined)",
5283
5300
  value: input.verificationCall
5284
- })) && $vo4(input.verificationCall, _path + ".verificationCall", true && _exceptionable) || $report(_exceptionable, {
5301
+ })) && $vo5(input.verificationCall, _path + ".verificationCall", true && _exceptionable) || $report(_exceptionable, {
5285
5302
  path: _path + ".verificationCall",
5286
5303
  expected: "(__type.o3 | undefined)",
5287
5304
  value: input.verificationCall
@@ -5293,8 +5310,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5293
5310
  path: _path + ".approvedUsers",
5294
5311
  expected: "(Array<string> | undefined)",
5295
5312
  value: input.approvedUsers
5296
- })) && input.approvedUsers.map((elem, _index1) => "string" === typeof elem || $report(_exceptionable, {
5297
- path: _path + ".approvedUsers[" + _index1 + "]",
5313
+ })) && input.approvedUsers.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
5314
+ path: _path + ".approvedUsers[" + _index2 + "]",
5298
5315
  expected: "string",
5299
5316
  value: elem
5300
5317
  })).every(flag => flag) || $report(_exceptionable, {
@@ -5336,12 +5353,29 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5336
5353
  expected: "string",
5337
5354
  value: input.baseUri
5338
5355
  })].every(flag => flag);
5339
- const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.baseUri || $report(_exceptionable, {
5356
+ const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || $report(_exceptionable, {
5357
+ path: _path + ".key",
5358
+ expected: "string",
5359
+ value: input.key
5360
+ }), "string" === typeof input.label || $report(_exceptionable, {
5361
+ path: _path + ".label",
5362
+ expected: "string",
5363
+ value: input.label
5364
+ }), "string" === input.type || "number" === input.type || "boolean" === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
5365
+ path: _path + ".type",
5366
+ expected: "(\"boolean\" | \"date\" | \"number\" | \"string\" | \"url\")",
5367
+ value: input.type
5368
+ }), undefined === input.helper || "string" === typeof input.helper || $report(_exceptionable, {
5369
+ path: _path + ".helper",
5370
+ expected: "(string | undefined)",
5371
+ value: input.helper
5372
+ })].every(flag => flag);
5373
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.baseUri || $report(_exceptionable, {
5340
5374
  path: _path + ".baseUri",
5341
5375
  expected: "string",
5342
5376
  value: input.baseUri
5343
5377
  })].every(flag => flag);
5344
- const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || $report(_exceptionable, {
5378
+ const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || $report(_exceptionable, {
5345
5379
  path: _path + ".uri",
5346
5380
  expected: "string",
5347
5381
  value: input.uri
@@ -5412,11 +5446,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5412
5446
  const validateRes = (input => {
5413
5447
  const errors = [];
5414
5448
  const __is = input => {
5415
- const $io0 = input => "string" === typeof input.pluginId && (undefined === input.duplicatesAllowed || "boolean" === typeof input.duplicatesAllowed) && (undefined === input.reuseForNonIndexed || "boolean" === typeof input.reuseForNonIndexed) && (undefined === input.reuseForLists || "boolean" === typeof input.reuseForLists) && (undefined === input.requiresUserInputs || "boolean" === typeof input.requiresUserInputs) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io2(input.userInputRedirect)) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && $io3(input.claimCreatorRedirect)) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io4(input.verificationCall)) && (undefined === input.toPublish || "boolean" === typeof input.toPublish) && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && (undefined === input.rotatePluginSecret || "boolean" === typeof input.rotatePluginSecret);
5449
+ const $io0 = input => "string" === typeof input.pluginId && (undefined === input.duplicatesAllowed || "boolean" === typeof input.duplicatesAllowed) && (undefined === input.reuseForNonIndexed || "boolean" === typeof input.reuseForNonIndexed) && (undefined === input.reuseForLists || "boolean" === typeof input.reuseForLists) && (undefined === input.requiresUserInputs || "boolean" === typeof input.requiresUserInputs) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io3(input.userInputRedirect)) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && $io4(input.claimCreatorRedirect)) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io5(input.verificationCall)) && (undefined === input.toPublish || "boolean" === typeof input.toPublish) && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && (undefined === input.rotatePluginSecret || "boolean" === typeof input.rotatePluginSecret);
5416
5450
  const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink);
5417
- const $io2 = input => "string" === typeof input.baseUri;
5451
+ const $io2 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "date" === input.type || "url" === input.type) && (undefined === input.helper || "string" === typeof input.helper);
5418
5452
  const $io3 = input => "string" === typeof input.baseUri;
5419
- const $io4 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch);
5453
+ const $io4 = input => "string" === typeof input.baseUri;
5454
+ const $io5 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch);
5420
5455
  return "object" === typeof input && null !== input && $io0(input);
5421
5456
  };
5422
5457
  if (false === __is(input)) {
@@ -5450,11 +5485,27 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5450
5485
  path: _path + ".metadata",
5451
5486
  expected: "(__type | undefined)",
5452
5487
  value: input.metadata
5488
+ }), undefined === input.userInputsSchema || (Array.isArray(input.userInputsSchema) || $report(_exceptionable, {
5489
+ path: _path + ".userInputsSchema",
5490
+ expected: "(Array<JsonBodyInputSchema> | undefined)",
5491
+ value: input.userInputsSchema
5492
+ })) && input.userInputsSchema.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
5493
+ path: _path + ".userInputsSchema[" + _index1 + "]",
5494
+ expected: "JsonBodyInputSchema",
5495
+ value: elem
5496
+ })) && $vo2(elem, _path + ".userInputsSchema[" + _index1 + "]", true && _exceptionable) || $report(_exceptionable, {
5497
+ path: _path + ".userInputsSchema[" + _index1 + "]",
5498
+ expected: "JsonBodyInputSchema",
5499
+ value: elem
5500
+ })).every(flag => flag) || $report(_exceptionable, {
5501
+ path: _path + ".userInputsSchema",
5502
+ expected: "(Array<JsonBodyInputSchema> | undefined)",
5503
+ value: input.userInputsSchema
5453
5504
  }), undefined === input.userInputRedirect || ("object" === typeof input.userInputRedirect && null !== input.userInputRedirect || $report(_exceptionable, {
5454
5505
  path: _path + ".userInputRedirect",
5455
5506
  expected: "(__type.o1 | undefined)",
5456
5507
  value: input.userInputRedirect
5457
- })) && $vo2(input.userInputRedirect, _path + ".userInputRedirect", true && _exceptionable) || $report(_exceptionable, {
5508
+ })) && $vo3(input.userInputRedirect, _path + ".userInputRedirect", true && _exceptionable) || $report(_exceptionable, {
5458
5509
  path: _path + ".userInputRedirect",
5459
5510
  expected: "(__type.o1 | undefined)",
5460
5511
  value: input.userInputRedirect
@@ -5462,7 +5513,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5462
5513
  path: _path + ".claimCreatorRedirect",
5463
5514
  expected: "(__type.o2 | undefined)",
5464
5515
  value: input.claimCreatorRedirect
5465
- })) && $vo3(input.claimCreatorRedirect, _path + ".claimCreatorRedirect", true && _exceptionable) || $report(_exceptionable, {
5516
+ })) && $vo4(input.claimCreatorRedirect, _path + ".claimCreatorRedirect", true && _exceptionable) || $report(_exceptionable, {
5466
5517
  path: _path + ".claimCreatorRedirect",
5467
5518
  expected: "(__type.o2 | undefined)",
5468
5519
  value: input.claimCreatorRedirect
@@ -5470,7 +5521,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5470
5521
  path: _path + ".verificationCall",
5471
5522
  expected: "(__type.o3 | undefined)",
5472
5523
  value: input.verificationCall
5473
- })) && $vo4(input.verificationCall, _path + ".verificationCall", true && _exceptionable) || $report(_exceptionable, {
5524
+ })) && $vo5(input.verificationCall, _path + ".verificationCall", true && _exceptionable) || $report(_exceptionable, {
5474
5525
  path: _path + ".verificationCall",
5475
5526
  expected: "(__type.o3 | undefined)",
5476
5527
  value: input.verificationCall
@@ -5482,8 +5533,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5482
5533
  path: _path + ".approvedUsers",
5483
5534
  expected: "(Array<string> | undefined)",
5484
5535
  value: input.approvedUsers
5485
- })) && input.approvedUsers.map((elem, _index1) => "string" === typeof elem || $report(_exceptionable, {
5486
- path: _path + ".approvedUsers[" + _index1 + "]",
5536
+ })) && input.approvedUsers.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
5537
+ path: _path + ".approvedUsers[" + _index2 + "]",
5487
5538
  expected: "string",
5488
5539
  value: elem
5489
5540
  })).every(flag => flag) || $report(_exceptionable, {
@@ -5520,17 +5571,34 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5520
5571
  expected: "(string | undefined)",
5521
5572
  value: input.supportLink
5522
5573
  })].every(flag => flag);
5523
- const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.baseUri || $report(_exceptionable, {
5574
+ const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || $report(_exceptionable, {
5575
+ path: _path + ".key",
5576
+ expected: "string",
5577
+ value: input.key
5578
+ }), "string" === typeof input.label || $report(_exceptionable, {
5579
+ path: _path + ".label",
5580
+ expected: "string",
5581
+ value: input.label
5582
+ }), "string" === input.type || "number" === input.type || "boolean" === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
5583
+ path: _path + ".type",
5584
+ expected: "(\"boolean\" | \"date\" | \"number\" | \"string\" | \"url\")",
5585
+ value: input.type
5586
+ }), undefined === input.helper || "string" === typeof input.helper || $report(_exceptionable, {
5587
+ path: _path + ".helper",
5588
+ expected: "(string | undefined)",
5589
+ value: input.helper
5590
+ })].every(flag => flag);
5591
+ const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.baseUri || $report(_exceptionable, {
5524
5592
  path: _path + ".baseUri",
5525
5593
  expected: "string",
5526
5594
  value: input.baseUri
5527
5595
  })].every(flag => flag);
5528
- const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.baseUri || $report(_exceptionable, {
5596
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.baseUri || $report(_exceptionable, {
5529
5597
  path: _path + ".baseUri",
5530
5598
  expected: "string",
5531
5599
  value: input.baseUri
5532
5600
  })].every(flag => flag);
5533
- const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || $report(_exceptionable, {
5601
+ const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || $report(_exceptionable, {
5534
5602
  path: _path + ".uri",
5535
5603
  expected: "string",
5536
5604
  value: input.uri
@@ -6114,23 +6182,23 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6114
6182
  const errors = [];
6115
6183
  const __is = input => {
6116
6184
  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 => (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 => {
6185
+ 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);
6186
+ 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);
6187
+ 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);
6188
+ const $io4 = input => Object.keys(input).every(key => {
6120
6189
  const value = input[key];
6121
6190
  if (undefined === value)
6122
6191
  return true;
6123
6192
  return "string" === typeof value;
6124
6193
  });
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);
6194
+ const $io5 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
6195
+ 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);
6196
+ 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);
6129
6197
  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
6198
  const $io9 = input => true;
6131
6199
  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@231"] && Object.keys(input).every(key => {
6133
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@231"].some(prop => key === prop))
6200
+ 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@931"] && Object.keys(input).every(key => {
6201
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@931"].some(prop => key === prop))
6134
6202
  return true;
6135
6203
  const value = input[key];
6136
6204
  if (undefined === value)
@@ -6140,14 +6208,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6140
6208
  return true;
6141
6209
  });
6142
6210
  const $iu0 = input => (() => {
6143
- if (undefined !== input.name)
6144
- return $io2(input);
6145
- else if (undefined !== input.badgeIds)
6146
- return $io6(input);
6211
+ if (undefined !== input.badgeIds)
6212
+ return $io1(input);
6213
+ else if (undefined !== input.name)
6214
+ return $io3(input);
6147
6215
  else if (undefined !== input.leaves)
6148
6216
  return $io8(input);
6149
6217
  else
6150
- return $io1(input);
6218
+ return $io7(input);
6151
6219
  })();
6152
6220
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
6153
6221
  };
@@ -6157,7 +6225,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6157
6225
  const $join = typia_1.default.validate.join;
6158
6226
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
6159
6227
  path: _path + ".contents",
6160
- expected: "(Array<iCollectionMetadataDetails<NumberType> | iMetadata<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6228
+ expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6161
6229
  value: input.contents
6162
6230
  })) && input.contents.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6163
6231
  path: _path + ".contents[" + _index1 + "]",
@@ -6169,14 +6237,30 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6169
6237
  value: elem
6170
6238
  })).every(flag => flag) || $report(_exceptionable, {
6171
6239
  path: _path + ".contents",
6172
- expected: "(Array<iCollectionMetadataDetails<NumberType> | iMetadata<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6240
+ expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6173
6241
  value: input.contents
6174
6242
  })].every(flag => flag);
6175
- const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6243
+ const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6244
+ path: _path + ".badgeIds",
6245
+ expected: "Array<iUintRange<NumberType>>",
6246
+ value: input.badgeIds
6247
+ })) && input.badgeIds.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6248
+ path: _path + ".badgeIds[" + _index2 + "]",
6249
+ expected: "iUintRange<NumberType>",
6250
+ value: elem
6251
+ })) && $vo2(elem, _path + ".badgeIds[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
6252
+ path: _path + ".badgeIds[" + _index2 + "]",
6253
+ expected: "iUintRange<NumberType>",
6254
+ value: elem
6255
+ })).every(flag => flag) || $report(_exceptionable, {
6256
+ path: _path + ".badgeIds",
6257
+ expected: "Array<iUintRange<NumberType>>",
6258
+ value: input.badgeIds
6259
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6176
6260
  path: _path + ".metadata",
6177
6261
  expected: "(iMetadata<NumberType> | undefined)",
6178
6262
  value: input.metadata
6179
- })) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6263
+ })) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6180
6264
  path: _path + ".metadata",
6181
6265
  expected: "(iMetadata<NumberType> | undefined)",
6182
6266
  value: input.metadata
@@ -6197,7 +6281,16 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6197
6281
  expected: "(boolean | undefined)",
6198
6282
  value: input.toUploadToIpfs
6199
6283
  })].every(flag => flag);
6200
- const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
6284
+ const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6285
+ path: _path + ".start",
6286
+ expected: "(bigint | number | string)",
6287
+ value: input.start
6288
+ }), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
6289
+ path: _path + ".end",
6290
+ expected: "(bigint | number | string)",
6291
+ value: input.end
6292
+ })].every(flag => flag);
6293
+ const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
6201
6294
  path: _path + ".name",
6202
6295
  expected: "string",
6203
6296
  value: input.name
@@ -6225,8 +6318,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6225
6318
  path: _path + ".tags",
6226
6319
  expected: "(Array<string> | undefined)",
6227
6320
  value: input.tags
6228
- })) && input.tags.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
6229
- path: _path + ".tags[" + _index2 + "]",
6321
+ })) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
6322
+ path: _path + ".tags[" + _index3 + "]",
6230
6323
  expected: "string",
6231
6324
  value: elem
6232
6325
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6237,7 +6330,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6237
6330
  path: _path + ".socials",
6238
6331
  expected: "(__type | undefined)",
6239
6332
  value: input.socials
6240
- })) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
6333
+ })) && $vo4(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
6241
6334
  path: _path + ".socials",
6242
6335
  expected: "(__type | undefined)",
6243
6336
  value: input.socials
@@ -6245,7 +6338,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6245
6338
  path: _path + ".offChainTransferabilityInfo",
6246
6339
  expected: "(__type.o1 | undefined)",
6247
6340
  value: input.offChainTransferabilityInfo
6248
- })) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
6341
+ })) && $vo5(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
6249
6342
  path: _path + ".offChainTransferabilityInfo",
6250
6343
  expected: "(__type.o1 | undefined)",
6251
6344
  value: input.offChainTransferabilityInfo
@@ -6253,12 +6346,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6253
6346
  path: _path + ".attributes",
6254
6347
  expected: "(Array<__type> | undefined)",
6255
6348
  value: input.attributes
6256
- })) && input.attributes.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6257
- path: _path + ".attributes[" + _index3 + "]",
6349
+ })) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6350
+ path: _path + ".attributes[" + _index4 + "]",
6258
6351
  expected: "__type.o2",
6259
6352
  value: elem
6260
- })) && $vo5(elem, _path + ".attributes[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
6261
- path: _path + ".attributes[" + _index3 + "]",
6353
+ })) && $vo6(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
6354
+ path: _path + ".attributes[" + _index4 + "]",
6262
6355
  expected: "__type.o2",
6263
6356
  value: elem
6264
6357
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6278,7 +6371,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6278
6371
  expected: "(boolean | undefined)",
6279
6372
  value: input._isUpdating
6280
6373
  })].every(flag => flag);
6281
- const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
6374
+ const $vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
6282
6375
  const value = input[key];
6283
6376
  if (undefined === value)
6284
6377
  return true;
@@ -6288,7 +6381,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6288
6381
  value: value
6289
6382
  });
6290
6383
  }).every(flag => flag)].every(flag => flag);
6291
- const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
6384
+ const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
6292
6385
  path: _path + ".host",
6293
6386
  expected: "string",
6294
6387
  value: input.host
@@ -6297,7 +6390,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6297
6390
  expected: "string",
6298
6391
  value: input.assignMethod
6299
6392
  })].every(flag => flag);
6300
- const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
6393
+ const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
6301
6394
  path: _path + ".type",
6302
6395
  expected: "(\"date\" | \"url\" | undefined)",
6303
6396
  value: input.type
@@ -6310,27 +6403,11 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6310
6403
  expected: "(boolean | number | string)",
6311
6404
  value: input.value
6312
6405
  })].every(flag => flag);
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, {
6406
+ const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6330
6407
  path: _path + ".metadata",
6331
6408
  expected: "(iMetadata<NumberType> | undefined)",
6332
6409
  value: input.metadata
6333
- })) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6410
+ })) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6334
6411
  path: _path + ".metadata",
6335
6412
  expected: "(iMetadata<NumberType> | undefined)",
6336
6413
  value: input.metadata
@@ -6351,15 +6428,6 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6351
6428
  expected: "(boolean | undefined)",
6352
6429
  value: input.toUploadToIpfs
6353
6430
  })].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
6431
  const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
6364
6432
  path: _path + ".leaves",
6365
6433
  expected: "Array<string>",
@@ -6483,12 +6551,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6483
6551
  path: _path + ".length",
6484
6552
  expected: "number",
6485
6553
  value: input.length
6486
- }), "Uint8Array" === input["__@toStringTag@231"] || $report(_exceptionable, {
6487
- path: _path + "[\"__@toStringTag@231\"]",
6554
+ }), "Uint8Array" === input["__@toStringTag@931"] || $report(_exceptionable, {
6555
+ path: _path + "[\"__@toStringTag@931\"]",
6488
6556
  expected: "\"Uint8Array\"",
6489
- value: input["__@toStringTag@231"]
6557
+ value: input["__@toStringTag@931"]
6490
6558
  }), false === _exceptionable || Object.keys(input).map(key => {
6491
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@231"].some(prop => key === prop))
6559
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@931"].some(prop => key === prop))
6492
6560
  return true;
6493
6561
  const value = input[key];
6494
6562
  if (undefined === value)
@@ -6502,14 +6570,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6502
6570
  return true;
6503
6571
  }).every(flag => flag)].every(flag => flag);
6504
6572
  const $vu0 = (input, _path, _exceptionable = true) => (() => {
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);
6573
+ if (undefined !== input.badgeIds)
6574
+ return $vo1(input, _path, true && _exceptionable);
6575
+ else if (undefined !== input.name)
6576
+ return $vo3(input, _path, true && _exceptionable);
6509
6577
  else if (undefined !== input.leaves)
6510
6578
  return $vo8(input, _path, true && _exceptionable);
6511
6579
  else
6512
- return $vo1(input, _path, true && _exceptionable);
6580
+ return $vo7(input, _path, true && _exceptionable);
6513
6581
  })();
6514
6582
  return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
6515
6583
  path: _path + "",
@@ -6551,8 +6619,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6551
6619
  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
6620
  const $io4 = input => true;
6553
6621
  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@231"] && Object.keys(input).every(key => {
6555
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@231"].some(prop => key === prop))
6622
+ 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@931"] && Object.keys(input).every(key => {
6623
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@931"].some(prop => key === prop))
6556
6624
  return true;
6557
6625
  const value = input[key];
6558
6626
  if (undefined === value)
@@ -6766,12 +6834,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6766
6834
  path: _path + ".length",
6767
6835
  expected: "number",
6768
6836
  value: input.length
6769
- }), "Uint8Array" === input["__@toStringTag@231"] || $report(_exceptionable, {
6770
- path: _path + "[\"__@toStringTag@231\"]",
6837
+ }), "Uint8Array" === input["__@toStringTag@931"] || $report(_exceptionable, {
6838
+ path: _path + "[\"__@toStringTag@931\"]",
6771
6839
  expected: "\"Uint8Array\"",
6772
- value: input["__@toStringTag@231"]
6840
+ value: input["__@toStringTag@931"]
6773
6841
  }), false === _exceptionable || Object.keys(input).map(key => {
6774
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@231"].some(prop => key === prop))
6842
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@931"].some(prop => key === prop))
6775
6843
  return true;
6776
6844
  const value = input[key];
6777
6845
  if (undefined === value)