bitbadgesjs-sdk 0.3.59 → 0.3.60

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.
@@ -1925,6 +1925,50 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1925
1925
  return Promise.reject(error);
1926
1926
  }
1927
1927
  }
1928
+ async rotateSIWBBRequest(payload) {
1929
+ try {
1930
+ const validateRes = (input => {
1931
+ const errors = [];
1932
+ const __is = input => {
1933
+ return "object" === typeof input && null !== input && "string" === typeof input.code;
1934
+ };
1935
+ if (false === __is(input)) {
1936
+ const $report = typia_1.default.validate.report(errors);
1937
+ ((input, _path, _exceptionable = true) => {
1938
+ const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.code || $report(_exceptionable, {
1939
+ path: _path + ".code",
1940
+ expected: "string",
1941
+ value: input.code
1942
+ })].every(flag => flag);
1943
+ return ("object" === typeof input && null !== input || $report(true, {
1944
+ path: _path + "",
1945
+ expected: "RotateSIWBBRequestPayload",
1946
+ value: input
1947
+ })) && $vo0(input, _path + "", true) || $report(true, {
1948
+ path: _path + "",
1949
+ expected: "RotateSIWBBRequestPayload",
1950
+ value: input
1951
+ });
1952
+ })(input, "$input", true);
1953
+ }
1954
+ const success = 0 === errors.length;
1955
+ return {
1956
+ success,
1957
+ errors,
1958
+ data: success ? input : undefined
1959
+ };
1960
+ })(payload ?? {});
1961
+ if (!validateRes.success) {
1962
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
1963
+ }
1964
+ const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.RotateSIWBBRequestRoute()}`, payload);
1965
+ return new requests_1.RotateSIWBBRequestSuccessResponse(response.data);
1966
+ }
1967
+ catch (error) {
1968
+ await this.handleApiError(error);
1969
+ return Promise.reject(error);
1970
+ }
1971
+ }
1928
1972
  async deleteSIWBBRequest(payload) {
1929
1973
  try {
1930
1974
  const validateRes = (input => {
@@ -3393,21 +3437,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3393
3437
  const errors = [];
3394
3438
  const __is = input => {
3395
3439
  const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
3396
- 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)));
3397
- 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));
3398
- const $io3 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io4(elem));
3399
- 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)));
3400
- 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);
3401
- 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);
3402
- 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);
3403
- const $io9 = input => Object.keys(input).every(key => {
3440
+ 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)));
3441
+ 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);
3442
+ const $io3 = input => Object.keys(input).every(key => {
3404
3443
  const value = input[key];
3405
3444
  if (undefined === value)
3406
3445
  return true;
3407
3446
  return "string" === typeof value;
3408
3447
  });
3409
- const $io10 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
3410
- 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);
3448
+ const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
3449
+ 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);
3450
+ 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));
3451
+ const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
3452
+ 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)));
3453
+ 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);
3454
+ 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);
3411
3455
  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);
3412
3456
  const $io13 = input => true;
3413
3457
  return "object" === typeof input && null !== input && $io0(input);
@@ -3433,7 +3477,15 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3433
3477
  expected: "Array<CreateClaimRequest<NumberType>>",
3434
3478
  value: input.claims
3435
3479
  })].every(flag => flag);
3436
- const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
3480
+ const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3481
+ path: _path + ".metadata",
3482
+ expected: "(iMetadata<NumberType> | undefined)",
3483
+ value: input.metadata
3484
+ })) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3485
+ path: _path + ".metadata",
3486
+ expected: "(iMetadata<NumberType> | undefined)",
3487
+ value: input.metadata
3488
+ }), undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
3437
3489
  path: _path + ".seedCode",
3438
3490
  expected: "(string | undefined)",
3439
3491
  value: input.seedCode
@@ -3445,7 +3497,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3445
3497
  path: _path + ".balancesToSet",
3446
3498
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3447
3499
  value: input.balancesToSet
3448
- })) && $vo2(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3500
+ })) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3449
3501
  path: _path + ".balancesToSet",
3450
3502
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3451
3503
  value: input.balancesToSet
@@ -3457,14 +3509,6 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3457
3509
  path: _path + ".approach",
3458
3510
  expected: "(string | undefined)",
3459
3511
  value: input.approach
3460
- }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3461
- path: _path + ".metadata",
3462
- expected: "(iMetadata<NumberType> | undefined)",
3463
- value: input.metadata
3464
- })) && $vo8(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3465
- path: _path + ".metadata",
3466
- expected: "(iMetadata<NumberType> | undefined)",
3467
- value: input.metadata
3468
3512
  }), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
3469
3513
  path: _path + ".assignMethod",
3470
3514
  expected: "(string | undefined)",
@@ -3498,16 +3542,129 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3498
3542
  expected: "Array<ManagePluginRequest>",
3499
3543
  value: input.plugins
3500
3544
  })].every(flag => flag);
3501
- const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3545
+ const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3546
+ path: _path + ".name",
3547
+ expected: "string",
3548
+ value: input.name
3549
+ }), "string" === typeof input.description || $report(_exceptionable, {
3550
+ path: _path + ".description",
3551
+ expected: "string",
3552
+ value: input.description
3553
+ }), "string" === typeof input.image || $report(_exceptionable, {
3554
+ path: _path + ".image",
3555
+ expected: "string",
3556
+ value: input.image
3557
+ }), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
3558
+ path: _path + ".video",
3559
+ expected: "(string | undefined)",
3560
+ value: input.video
3561
+ }), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
3562
+ path: _path + ".category",
3563
+ expected: "(string | undefined)",
3564
+ value: input.category
3565
+ }), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
3566
+ path: _path + ".externalUrl",
3567
+ expected: "(string | undefined)",
3568
+ value: input.externalUrl
3569
+ }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
3570
+ path: _path + ".tags",
3571
+ expected: "(Array<string> | undefined)",
3572
+ value: input.tags
3573
+ })) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
3574
+ path: _path + ".tags[" + _index3 + "]",
3575
+ expected: "string",
3576
+ value: elem
3577
+ })).every(flag => flag) || $report(_exceptionable, {
3578
+ path: _path + ".tags",
3579
+ expected: "(Array<string> | undefined)",
3580
+ value: input.tags
3581
+ }), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
3582
+ path: _path + ".socials",
3583
+ expected: "(__type | undefined)",
3584
+ value: input.socials
3585
+ })) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
3586
+ path: _path + ".socials",
3587
+ expected: "(__type | undefined)",
3588
+ value: input.socials
3589
+ }), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
3590
+ path: _path + ".offChainTransferabilityInfo",
3591
+ expected: "(__type.o1 | undefined)",
3592
+ value: input.offChainTransferabilityInfo
3593
+ })) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
3594
+ path: _path + ".offChainTransferabilityInfo",
3595
+ expected: "(__type.o1 | undefined)",
3596
+ value: input.offChainTransferabilityInfo
3597
+ }), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
3598
+ path: _path + ".attributes",
3599
+ expected: "(Array<__type> | undefined)",
3600
+ value: input.attributes
3601
+ })) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3602
+ path: _path + ".attributes[" + _index4 + "]",
3603
+ expected: "__type.o2",
3604
+ value: elem
3605
+ })) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
3606
+ path: _path + ".attributes[" + _index4 + "]",
3607
+ expected: "__type.o2",
3608
+ value: elem
3609
+ })).every(flag => flag) || $report(_exceptionable, {
3610
+ path: _path + ".attributes",
3611
+ expected: "(Array<__type> | undefined)",
3612
+ value: input.attributes
3613
+ }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
3614
+ path: _path + ".fetchedAtBlock",
3615
+ expected: "(bigint | number | string | undefined)",
3616
+ value: input.fetchedAtBlock
3617
+ }), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
3618
+ path: _path + ".fetchedAt",
3619
+ expected: "(bigint | number | string | undefined)",
3620
+ value: input.fetchedAt
3621
+ }), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
3622
+ path: _path + "._isUpdating",
3623
+ expected: "(boolean | undefined)",
3624
+ value: input._isUpdating
3625
+ })].every(flag => flag);
3626
+ const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3627
+ const value = input[key];
3628
+ if (undefined === value)
3629
+ return true;
3630
+ return "string" === typeof value || $report(_exceptionable, {
3631
+ path: _path + $join(key),
3632
+ expected: "string",
3633
+ value: value
3634
+ });
3635
+ }).every(flag => flag)].every(flag => flag);
3636
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
3637
+ path: _path + ".host",
3638
+ expected: "string",
3639
+ value: input.host
3640
+ }), "string" === typeof input.assignMethod || $report(_exceptionable, {
3641
+ path: _path + ".assignMethod",
3642
+ expected: "string",
3643
+ value: input.assignMethod
3644
+ })].every(flag => flag);
3645
+ const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
3646
+ path: _path + ".type",
3647
+ expected: "(\"date\" | \"url\" | undefined)",
3648
+ value: input.type
3649
+ }), "string" === typeof input.name || $report(_exceptionable, {
3650
+ path: _path + ".name",
3651
+ expected: "string",
3652
+ value: input.name
3653
+ }), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
3654
+ path: _path + ".value",
3655
+ expected: "(boolean | number | string)",
3656
+ value: input.value
3657
+ })].every(flag => flag);
3658
+ const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3502
3659
  path: _path + ".manualBalances",
3503
3660
  expected: "Array<iManualBalances<NumberType>>",
3504
3661
  value: input.manualBalances
3505
- })) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3506
- path: _path + ".manualBalances[" + _index3 + "]",
3662
+ })) && input.manualBalances.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3663
+ path: _path + ".manualBalances[" + _index5 + "]",
3507
3664
  expected: "iManualBalances<NumberType>",
3508
3665
  value: elem
3509
- })) && $vo3(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
3510
- path: _path + ".manualBalances[" + _index3 + "]",
3666
+ })) && $vo7(elem, _path + ".manualBalances[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
3667
+ path: _path + ".manualBalances[" + _index5 + "]",
3511
3668
  expected: "iManualBalances<NumberType>",
3512
3669
  value: elem
3513
3670
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3518,7 +3675,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3518
3675
  path: _path + ".incrementedBalances",
3519
3676
  expected: "iIncrementedBalances<NumberType>",
3520
3677
  value: input.incrementedBalances
3521
- })) && $vo6(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3678
+ })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3522
3679
  path: _path + ".incrementedBalances",
3523
3680
  expected: "iIncrementedBalances<NumberType>",
3524
3681
  value: input.incrementedBalances
@@ -3526,21 +3683,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3526
3683
  path: _path + ".orderCalculationMethod",
3527
3684
  expected: "iPredeterminedOrderCalculationMethod",
3528
3685
  value: input.orderCalculationMethod
3529
- })) && $vo7(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3686
+ })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3530
3687
  path: _path + ".orderCalculationMethod",
3531
3688
  expected: "iPredeterminedOrderCalculationMethod",
3532
3689
  value: input.orderCalculationMethod
3533
3690
  })].every(flag => flag);
3534
- const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3691
+ const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3535
3692
  path: _path + ".balances",
3536
3693
  expected: "Array<iBalance<NumberType>>",
3537
3694
  value: input.balances
3538
- })) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3539
- path: _path + ".balances[" + _index4 + "]",
3695
+ })) && input.balances.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3696
+ path: _path + ".balances[" + _index6 + "]",
3540
3697
  expected: "iBalance<NumberType>",
3541
3698
  value: elem
3542
- })) && $vo4(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
3543
- path: _path + ".balances[" + _index4 + "]",
3699
+ })) && $vo8(elem, _path + ".balances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
3700
+ path: _path + ".balances[" + _index6 + "]",
3544
3701
  expected: "iBalance<NumberType>",
3545
3702
  value: elem
3546
3703
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3548,7 +3705,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3548
3705
  expected: "Array<iBalance<NumberType>>",
3549
3706
  value: input.balances
3550
3707
  })].every(flag => flag);
3551
- const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3708
+ const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3552
3709
  path: _path + ".amount",
3553
3710
  expected: "(bigint | number | string)",
3554
3711
  value: input.amount
@@ -3556,12 +3713,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3556
3713
  path: _path + ".badgeIds",
3557
3714
  expected: "Array<iUintRange<NumberType>>",
3558
3715
  value: input.badgeIds
3559
- })) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3560
- path: _path + ".badgeIds[" + _index5 + "]",
3716
+ })) && input.badgeIds.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3717
+ path: _path + ".badgeIds[" + _index7 + "]",
3561
3718
  expected: "iUintRange<NumberType>",
3562
3719
  value: elem
3563
- })) && $vo5(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
3564
- path: _path + ".badgeIds[" + _index5 + "]",
3720
+ })) && $vo9(elem, _path + ".badgeIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
3721
+ path: _path + ".badgeIds[" + _index7 + "]",
3565
3722
  expected: "iUintRange<NumberType>",
3566
3723
  value: elem
3567
3724
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3572,12 +3729,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3572
3729
  path: _path + ".ownershipTimes",
3573
3730
  expected: "Array<iUintRange<NumberType>>",
3574
3731
  value: input.ownershipTimes
3575
- })) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3576
- path: _path + ".ownershipTimes[" + _index6 + "]",
3732
+ })) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3733
+ path: _path + ".ownershipTimes[" + _index8 + "]",
3577
3734
  expected: "iUintRange<NumberType>",
3578
3735
  value: elem
3579
- })) && $vo5(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
3580
- path: _path + ".ownershipTimes[" + _index6 + "]",
3736
+ })) && $vo9(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
3737
+ path: _path + ".ownershipTimes[" + _index8 + "]",
3581
3738
  expected: "iUintRange<NumberType>",
3582
3739
  value: elem
3583
3740
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3585,7 +3742,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3585
3742
  expected: "Array<iUintRange<NumberType>>",
3586
3743
  value: input.ownershipTimes
3587
3744
  })].every(flag => flag);
3588
- const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
3745
+ const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
3589
3746
  path: _path + ".start",
3590
3747
  expected: "(bigint | number | string)",
3591
3748
  value: input.start
@@ -3594,16 +3751,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3594
3751
  expected: "(bigint | number | string)",
3595
3752
  value: input.end
3596
3753
  })].every(flag => flag);
3597
- const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
3754
+ const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
3598
3755
  path: _path + ".startBalances",
3599
3756
  expected: "Array<iBalance<NumberType>>",
3600
3757
  value: input.startBalances
3601
- })) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3602
- path: _path + ".startBalances[" + _index7 + "]",
3758
+ })) && input.startBalances.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3759
+ path: _path + ".startBalances[" + _index9 + "]",
3603
3760
  expected: "iBalance<NumberType>",
3604
3761
  value: elem
3605
- })) && $vo4(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
3606
- path: _path + ".startBalances[" + _index7 + "]",
3762
+ })) && $vo8(elem, _path + ".startBalances[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
3763
+ path: _path + ".startBalances[" + _index9 + "]",
3607
3764
  expected: "iBalance<NumberType>",
3608
3765
  value: elem
3609
3766
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3619,7 +3776,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3619
3776
  expected: "(bigint | number | string)",
3620
3777
  value: input.incrementOwnershipTimesBy
3621
3778
  })].every(flag => flag);
3622
- const $vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
3779
+ const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
3623
3780
  path: _path + ".useOverallNumTransfers",
3624
3781
  expected: "boolean",
3625
3782
  value: input.useOverallNumTransfers
@@ -3644,119 +3801,6 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3644
3801
  expected: "string",
3645
3802
  value: input.challengeTrackerId
3646
3803
  })].every(flag => flag);
3647
- const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3648
- path: _path + ".name",
3649
- expected: "string",
3650
- value: input.name
3651
- }), "string" === typeof input.description || $report(_exceptionable, {
3652
- path: _path + ".description",
3653
- expected: "string",
3654
- value: input.description
3655
- }), "string" === typeof input.image || $report(_exceptionable, {
3656
- path: _path + ".image",
3657
- expected: "string",
3658
- value: input.image
3659
- }), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
3660
- path: _path + ".video",
3661
- expected: "(string | undefined)",
3662
- value: input.video
3663
- }), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
3664
- path: _path + ".category",
3665
- expected: "(string | undefined)",
3666
- value: input.category
3667
- }), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
3668
- path: _path + ".externalUrl",
3669
- expected: "(string | undefined)",
3670
- value: input.externalUrl
3671
- }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
3672
- path: _path + ".tags",
3673
- expected: "(Array<string> | undefined)",
3674
- value: input.tags
3675
- })) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
3676
- path: _path + ".tags[" + _index8 + "]",
3677
- expected: "string",
3678
- value: elem
3679
- })).every(flag => flag) || $report(_exceptionable, {
3680
- path: _path + ".tags",
3681
- expected: "(Array<string> | undefined)",
3682
- value: input.tags
3683
- }), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
3684
- path: _path + ".socials",
3685
- expected: "(__type | undefined)",
3686
- value: input.socials
3687
- })) && $vo9(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
3688
- path: _path + ".socials",
3689
- expected: "(__type | undefined)",
3690
- value: input.socials
3691
- }), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
3692
- path: _path + ".offChainTransferabilityInfo",
3693
- expected: "(__type.o1 | undefined)",
3694
- value: input.offChainTransferabilityInfo
3695
- })) && $vo10(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
3696
- path: _path + ".offChainTransferabilityInfo",
3697
- expected: "(__type.o1 | undefined)",
3698
- value: input.offChainTransferabilityInfo
3699
- }), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
3700
- path: _path + ".attributes",
3701
- expected: "(Array<__type> | undefined)",
3702
- value: input.attributes
3703
- })) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3704
- path: _path + ".attributes[" + _index9 + "]",
3705
- expected: "__type.o2",
3706
- value: elem
3707
- })) && $vo11(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
3708
- path: _path + ".attributes[" + _index9 + "]",
3709
- expected: "__type.o2",
3710
- value: elem
3711
- })).every(flag => flag) || $report(_exceptionable, {
3712
- path: _path + ".attributes",
3713
- expected: "(Array<__type> | undefined)",
3714
- value: input.attributes
3715
- }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
3716
- path: _path + ".fetchedAtBlock",
3717
- expected: "(bigint | number | string | undefined)",
3718
- value: input.fetchedAtBlock
3719
- }), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
3720
- path: _path + ".fetchedAt",
3721
- expected: "(bigint | number | string | undefined)",
3722
- value: input.fetchedAt
3723
- }), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
3724
- path: _path + "._isUpdating",
3725
- expected: "(boolean | undefined)",
3726
- value: input._isUpdating
3727
- })].every(flag => flag);
3728
- const $vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3729
- const value = input[key];
3730
- if (undefined === value)
3731
- return true;
3732
- return "string" === typeof value || $report(_exceptionable, {
3733
- path: _path + $join(key),
3734
- expected: "string",
3735
- value: value
3736
- });
3737
- }).every(flag => flag)].every(flag => flag);
3738
- const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
3739
- path: _path + ".host",
3740
- expected: "string",
3741
- value: input.host
3742
- }), "string" === typeof input.assignMethod || $report(_exceptionable, {
3743
- path: _path + ".assignMethod",
3744
- expected: "string",
3745
- value: input.assignMethod
3746
- })].every(flag => flag);
3747
- const $vo11 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
3748
- path: _path + ".type",
3749
- expected: "(\"date\" | \"url\" | undefined)",
3750
- value: input.type
3751
- }), "string" === typeof input.name || $report(_exceptionable, {
3752
- path: _path + ".name",
3753
- expected: "string",
3754
- value: input.name
3755
- }), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
3756
- path: _path + ".value",
3757
- expected: "(boolean | number | string)",
3758
- value: input.value
3759
- })].every(flag => flag);
3760
3804
  const $vo12 = (input, _path, _exceptionable = true) => [undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
3761
3805
  path: _path + ".resetState",
3762
3806
  expected: "(boolean | undefined)",
@@ -3889,23 +3933,23 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3889
3933
  const errors = [];
3890
3934
  const __is = input => {
3891
3935
  const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
3892
- 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);
3893
- 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));
3894
- const $io3 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io4(elem));
3895
- 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)));
3896
- 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);
3897
- 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);
3898
- 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);
3899
- const $io9 = input => true;
3900
- 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);
3901
- const $io11 = input => Object.keys(input).every(key => {
3936
+ 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);
3937
+ 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);
3938
+ const $io3 = input => Object.keys(input).every(key => {
3902
3939
  const value = input[key];
3903
3940
  if (undefined === value)
3904
3941
  return true;
3905
3942
  return "string" === typeof value;
3906
3943
  });
3907
- const $io12 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
3908
- 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);
3944
+ const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
3945
+ 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);
3946
+ 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));
3947
+ const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
3948
+ 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)));
3949
+ 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);
3950
+ 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);
3951
+ 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);
3952
+ const $io13 = input => true;
3909
3953
  return "object" === typeof input && null !== input && $io0(input);
3910
3954
  };
3911
3955
  if (false === __is(input)) {
@@ -3929,7 +3973,15 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3929
3973
  expected: "Array<Omit<iClaimDetails<NumberType>, \"seedCode\">>",
3930
3974
  value: input.claims
3931
3975
  })].every(flag => flag);
3932
- const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
3976
+ const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3977
+ path: _path + ".metadata",
3978
+ expected: "(iMetadata<NumberType> | undefined)",
3979
+ value: input.metadata
3980
+ })) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3981
+ path: _path + ".metadata",
3982
+ expected: "(iMetadata<NumberType> | undefined)",
3983
+ value: input.metadata
3984
+ }), "string" === typeof input.claimId || $report(_exceptionable, {
3933
3985
  path: _path + ".claimId",
3934
3986
  expected: "string",
3935
3987
  value: input.claimId
@@ -3937,7 +3989,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3937
3989
  path: _path + ".balancesToSet",
3938
3990
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3939
3991
  value: input.balancesToSet
3940
- })) && $vo2(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3992
+ })) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3941
3993
  path: _path + ".balancesToSet",
3942
3994
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3943
3995
  value: input.balancesToSet
@@ -3949,7 +4001,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3949
4001
  path: _path + ".plugins[" + _index2 + "]",
3950
4002
  expected: "IntegrationPluginDetails<string>",
3951
4003
  value: elem
3952
- })) && $vo8(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
4004
+ })) && $vo12(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
3953
4005
  path: _path + ".plugins[" + _index2 + "]",
3954
4006
  expected: "IntegrationPluginDetails<string>",
3955
4007
  value: elem
@@ -3965,29 +4017,134 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3965
4017
  path: _path + ".approach",
3966
4018
  expected: "(string | undefined)",
3967
4019
  value: input.approach
3968
- }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3969
- path: _path + ".metadata",
3970
- expected: "(iMetadata<NumberType> | undefined)",
3971
- value: input.metadata
3972
- })) && $vo10(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3973
- path: _path + ".metadata",
3974
- expected: "(iMetadata<NumberType> | undefined)",
3975
- value: input.metadata
3976
4020
  }), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
3977
4021
  path: _path + ".assignMethod",
3978
- expected: "(string | undefined)",
4022
+ expected: "(string | undefined)",
4023
+ value: input.assignMethod
4024
+ })].every(flag => flag);
4025
+ const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4026
+ path: _path + ".name",
4027
+ expected: "string",
4028
+ value: input.name
4029
+ }), "string" === typeof input.description || $report(_exceptionable, {
4030
+ path: _path + ".description",
4031
+ expected: "string",
4032
+ value: input.description
4033
+ }), "string" === typeof input.image || $report(_exceptionable, {
4034
+ path: _path + ".image",
4035
+ expected: "string",
4036
+ value: input.image
4037
+ }), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
4038
+ path: _path + ".video",
4039
+ expected: "(string | undefined)",
4040
+ value: input.video
4041
+ }), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
4042
+ path: _path + ".category",
4043
+ expected: "(string | undefined)",
4044
+ value: input.category
4045
+ }), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
4046
+ path: _path + ".externalUrl",
4047
+ expected: "(string | undefined)",
4048
+ value: input.externalUrl
4049
+ }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
4050
+ path: _path + ".tags",
4051
+ expected: "(Array<string> | undefined)",
4052
+ value: input.tags
4053
+ })) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
4054
+ path: _path + ".tags[" + _index3 + "]",
4055
+ expected: "string",
4056
+ value: elem
4057
+ })).every(flag => flag) || $report(_exceptionable, {
4058
+ path: _path + ".tags",
4059
+ expected: "(Array<string> | undefined)",
4060
+ value: input.tags
4061
+ }), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
4062
+ path: _path + ".socials",
4063
+ expected: "(__type | undefined)",
4064
+ value: input.socials
4065
+ })) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
4066
+ path: _path + ".socials",
4067
+ expected: "(__type | undefined)",
4068
+ value: input.socials
4069
+ }), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
4070
+ path: _path + ".offChainTransferabilityInfo",
4071
+ expected: "(__type.o1 | undefined)",
4072
+ value: input.offChainTransferabilityInfo
4073
+ })) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
4074
+ path: _path + ".offChainTransferabilityInfo",
4075
+ expected: "(__type.o1 | undefined)",
4076
+ value: input.offChainTransferabilityInfo
4077
+ }), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
4078
+ path: _path + ".attributes",
4079
+ expected: "(Array<__type> | undefined)",
4080
+ value: input.attributes
4081
+ })) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4082
+ path: _path + ".attributes[" + _index4 + "]",
4083
+ expected: "__type.o2",
4084
+ value: elem
4085
+ })) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
4086
+ path: _path + ".attributes[" + _index4 + "]",
4087
+ expected: "__type.o2",
4088
+ value: elem
4089
+ })).every(flag => flag) || $report(_exceptionable, {
4090
+ path: _path + ".attributes",
4091
+ expected: "(Array<__type> | undefined)",
4092
+ value: input.attributes
4093
+ }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
4094
+ path: _path + ".fetchedAtBlock",
4095
+ expected: "(bigint | number | string | undefined)",
4096
+ value: input.fetchedAtBlock
4097
+ }), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
4098
+ path: _path + ".fetchedAt",
4099
+ expected: "(bigint | number | string | undefined)",
4100
+ value: input.fetchedAt
4101
+ }), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
4102
+ path: _path + "._isUpdating",
4103
+ expected: "(boolean | undefined)",
4104
+ value: input._isUpdating
4105
+ })].every(flag => flag);
4106
+ const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
4107
+ const value = input[key];
4108
+ if (undefined === value)
4109
+ return true;
4110
+ return "string" === typeof value || $report(_exceptionable, {
4111
+ path: _path + $join(key),
4112
+ expected: "string",
4113
+ value: value
4114
+ });
4115
+ }).every(flag => flag)].every(flag => flag);
4116
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
4117
+ path: _path + ".host",
4118
+ expected: "string",
4119
+ value: input.host
4120
+ }), "string" === typeof input.assignMethod || $report(_exceptionable, {
4121
+ path: _path + ".assignMethod",
4122
+ expected: "string",
3979
4123
  value: input.assignMethod
3980
4124
  })].every(flag => flag);
3981
- const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
4125
+ const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
4126
+ path: _path + ".type",
4127
+ expected: "(\"date\" | \"url\" | undefined)",
4128
+ value: input.type
4129
+ }), "string" === typeof input.name || $report(_exceptionable, {
4130
+ path: _path + ".name",
4131
+ expected: "string",
4132
+ value: input.name
4133
+ }), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
4134
+ path: _path + ".value",
4135
+ expected: "(boolean | number | string)",
4136
+ value: input.value
4137
+ })].every(flag => flag);
4138
+ const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3982
4139
  path: _path + ".manualBalances",
3983
4140
  expected: "Array<iManualBalances<NumberType>>",
3984
4141
  value: input.manualBalances
3985
- })) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3986
- path: _path + ".manualBalances[" + _index3 + "]",
4142
+ })) && input.manualBalances.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4143
+ path: _path + ".manualBalances[" + _index5 + "]",
3987
4144
  expected: "iManualBalances<NumberType>",
3988
4145
  value: elem
3989
- })) && $vo3(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
3990
- path: _path + ".manualBalances[" + _index3 + "]",
4146
+ })) && $vo7(elem, _path + ".manualBalances[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
4147
+ path: _path + ".manualBalances[" + _index5 + "]",
3991
4148
  expected: "iManualBalances<NumberType>",
3992
4149
  value: elem
3993
4150
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3998,7 +4155,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
3998
4155
  path: _path + ".incrementedBalances",
3999
4156
  expected: "iIncrementedBalances<NumberType>",
4000
4157
  value: input.incrementedBalances
4001
- })) && $vo6(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4158
+ })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4002
4159
  path: _path + ".incrementedBalances",
4003
4160
  expected: "iIncrementedBalances<NumberType>",
4004
4161
  value: input.incrementedBalances
@@ -4006,21 +4163,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4006
4163
  path: _path + ".orderCalculationMethod",
4007
4164
  expected: "iPredeterminedOrderCalculationMethod",
4008
4165
  value: input.orderCalculationMethod
4009
- })) && $vo7(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4166
+ })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4010
4167
  path: _path + ".orderCalculationMethod",
4011
4168
  expected: "iPredeterminedOrderCalculationMethod",
4012
4169
  value: input.orderCalculationMethod
4013
4170
  })].every(flag => flag);
4014
- const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4171
+ const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4015
4172
  path: _path + ".balances",
4016
4173
  expected: "Array<iBalance<NumberType>>",
4017
4174
  value: input.balances
4018
- })) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4019
- path: _path + ".balances[" + _index4 + "]",
4175
+ })) && input.balances.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4176
+ path: _path + ".balances[" + _index6 + "]",
4020
4177
  expected: "iBalance<NumberType>",
4021
4178
  value: elem
4022
- })) && $vo4(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
4023
- path: _path + ".balances[" + _index4 + "]",
4179
+ })) && $vo8(elem, _path + ".balances[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
4180
+ path: _path + ".balances[" + _index6 + "]",
4024
4181
  expected: "iBalance<NumberType>",
4025
4182
  value: elem
4026
4183
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4028,7 +4185,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4028
4185
  expected: "Array<iBalance<NumberType>>",
4029
4186
  value: input.balances
4030
4187
  })].every(flag => flag);
4031
- const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
4188
+ const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
4032
4189
  path: _path + ".amount",
4033
4190
  expected: "(bigint | number | string)",
4034
4191
  value: input.amount
@@ -4036,12 +4193,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4036
4193
  path: _path + ".badgeIds",
4037
4194
  expected: "Array<iUintRange<NumberType>>",
4038
4195
  value: input.badgeIds
4039
- })) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4040
- path: _path + ".badgeIds[" + _index5 + "]",
4196
+ })) && input.badgeIds.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4197
+ path: _path + ".badgeIds[" + _index7 + "]",
4041
4198
  expected: "iUintRange<NumberType>",
4042
4199
  value: elem
4043
- })) && $vo5(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
4044
- path: _path + ".badgeIds[" + _index5 + "]",
4200
+ })) && $vo9(elem, _path + ".badgeIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
4201
+ path: _path + ".badgeIds[" + _index7 + "]",
4045
4202
  expected: "iUintRange<NumberType>",
4046
4203
  value: elem
4047
4204
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4052,12 +4209,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4052
4209
  path: _path + ".ownershipTimes",
4053
4210
  expected: "Array<iUintRange<NumberType>>",
4054
4211
  value: input.ownershipTimes
4055
- })) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4056
- path: _path + ".ownershipTimes[" + _index6 + "]",
4212
+ })) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4213
+ path: _path + ".ownershipTimes[" + _index8 + "]",
4057
4214
  expected: "iUintRange<NumberType>",
4058
4215
  value: elem
4059
- })) && $vo5(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
4060
- path: _path + ".ownershipTimes[" + _index6 + "]",
4216
+ })) && $vo9(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
4217
+ path: _path + ".ownershipTimes[" + _index8 + "]",
4061
4218
  expected: "iUintRange<NumberType>",
4062
4219
  value: elem
4063
4220
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4065,7 +4222,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4065
4222
  expected: "Array<iUintRange<NumberType>>",
4066
4223
  value: input.ownershipTimes
4067
4224
  })].every(flag => flag);
4068
- const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
4225
+ const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
4069
4226
  path: _path + ".start",
4070
4227
  expected: "(bigint | number | string)",
4071
4228
  value: input.start
@@ -4074,16 +4231,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4074
4231
  expected: "(bigint | number | string)",
4075
4232
  value: input.end
4076
4233
  })].every(flag => flag);
4077
- const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4234
+ const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4078
4235
  path: _path + ".startBalances",
4079
4236
  expected: "Array<iBalance<NumberType>>",
4080
4237
  value: input.startBalances
4081
- })) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4082
- path: _path + ".startBalances[" + _index7 + "]",
4238
+ })) && input.startBalances.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4239
+ path: _path + ".startBalances[" + _index9 + "]",
4083
4240
  expected: "iBalance<NumberType>",
4084
4241
  value: elem
4085
- })) && $vo4(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
4086
- path: _path + ".startBalances[" + _index7 + "]",
4242
+ })) && $vo8(elem, _path + ".startBalances[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
4243
+ path: _path + ".startBalances[" + _index9 + "]",
4087
4244
  expected: "iBalance<NumberType>",
4088
4245
  value: elem
4089
4246
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4099,7 +4256,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4099
4256
  expected: "(bigint | number | string)",
4100
4257
  value: input.incrementOwnershipTimesBy
4101
4258
  })].every(flag => flag);
4102
- const $vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4259
+ const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4103
4260
  path: _path + ".useOverallNumTransfers",
4104
4261
  expected: "boolean",
4105
4262
  value: input.useOverallNumTransfers
@@ -4124,21 +4281,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4124
4281
  expected: "string",
4125
4282
  value: input.challengeTrackerId
4126
4283
  })].every(flag => flag);
4127
- const $vo8 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
4284
+ const $vo12 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
4128
4285
  path: _path + ".publicState",
4129
- expected: "__type",
4286
+ expected: "__type.o3",
4130
4287
  value: input.publicState
4131
- })) && $vo9(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
4288
+ })) && $vo13(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
4132
4289
  path: _path + ".publicState",
4133
- expected: "__type",
4290
+ expected: "__type.o3",
4134
4291
  value: input.publicState
4135
4292
  }), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || $report(_exceptionable, {
4136
4293
  path: _path + ".privateState",
4137
- expected: "(__type | undefined)",
4294
+ expected: "(__type.o3 | undefined)",
4138
4295
  value: input.privateState
4139
- })) && $vo9(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
4296
+ })) && $vo13(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
4140
4297
  path: _path + ".privateState",
4141
- expected: "(__type | undefined)",
4298
+ expected: "(__type.o3 | undefined)",
4142
4299
  value: input.privateState
4143
4300
  }), undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
4144
4301
  path: _path + ".resetState",
@@ -4146,11 +4303,11 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4146
4303
  value: input.resetState
4147
4304
  }), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
4148
4305
  path: _path + ".newState",
4149
- expected: "(__type | undefined)",
4306
+ expected: "(__type.o3 | undefined)",
4150
4307
  value: input.newState
4151
- })) && $vo9(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
4308
+ })) && $vo13(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
4152
4309
  path: _path + ".newState",
4153
- expected: "(__type | undefined)",
4310
+ expected: "(__type.o3 | undefined)",
4154
4311
  value: input.newState
4155
4312
  }), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
4156
4313
  path: _path + ".onlyUpdateProvidedNewState",
@@ -4166,135 +4323,22 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4166
4323
  value: input.pluginId
4167
4324
  }), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
4168
4325
  path: _path + ".publicParams",
4169
- expected: "__type",
4326
+ expected: "__type.o3",
4170
4327
  value: input.publicParams
4171
- })) && $vo9(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4328
+ })) && $vo13(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4172
4329
  path: _path + ".publicParams",
4173
- expected: "__type",
4330
+ expected: "__type.o3",
4174
4331
  value: input.publicParams
4175
4332
  }), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
4176
4333
  path: _path + ".privateParams",
4177
- expected: "__type",
4334
+ expected: "__type.o3",
4178
4335
  value: input.privateParams
4179
- })) && $vo9(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4336
+ })) && $vo13(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4180
4337
  path: _path + ".privateParams",
4181
- expected: "__type",
4182
- value: input.privateParams
4183
- })].every(flag => flag);
4184
- const $vo9 = (input, _path, _exceptionable = true) => true;
4185
- const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4186
- path: _path + ".name",
4187
- expected: "string",
4188
- value: input.name
4189
- }), "string" === typeof input.description || $report(_exceptionable, {
4190
- path: _path + ".description",
4191
- expected: "string",
4192
- value: input.description
4193
- }), "string" === typeof input.image || $report(_exceptionable, {
4194
- path: _path + ".image",
4195
- expected: "string",
4196
- value: input.image
4197
- }), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
4198
- path: _path + ".video",
4199
- expected: "(string | undefined)",
4200
- value: input.video
4201
- }), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
4202
- path: _path + ".category",
4203
- expected: "(string | undefined)",
4204
- value: input.category
4205
- }), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
4206
- path: _path + ".externalUrl",
4207
- expected: "(string | undefined)",
4208
- value: input.externalUrl
4209
- }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
4210
- path: _path + ".tags",
4211
- expected: "(Array<string> | undefined)",
4212
- value: input.tags
4213
- })) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
4214
- path: _path + ".tags[" + _index8 + "]",
4215
- expected: "string",
4216
- value: elem
4217
- })).every(flag => flag) || $report(_exceptionable, {
4218
- path: _path + ".tags",
4219
- expected: "(Array<string> | undefined)",
4220
- value: input.tags
4221
- }), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
4222
- path: _path + ".socials",
4223
- expected: "(__type.o1 | undefined)",
4224
- value: input.socials
4225
- })) && $vo11(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
4226
- path: _path + ".socials",
4227
- expected: "(__type.o1 | undefined)",
4228
- value: input.socials
4229
- }), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
4230
- path: _path + ".offChainTransferabilityInfo",
4231
- expected: "(__type.o2 | undefined)",
4232
- value: input.offChainTransferabilityInfo
4233
- })) && $vo12(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
4234
- path: _path + ".offChainTransferabilityInfo",
4235
- expected: "(__type.o2 | undefined)",
4236
- value: input.offChainTransferabilityInfo
4237
- }), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
4238
- path: _path + ".attributes",
4239
- expected: "(Array<__type> | undefined)",
4240
- value: input.attributes
4241
- })) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4242
- path: _path + ".attributes[" + _index9 + "]",
4243
- expected: "__type.o3",
4244
- value: elem
4245
- })) && $vo13(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
4246
- path: _path + ".attributes[" + _index9 + "]",
4247
4338
  expected: "__type.o3",
4248
- value: elem
4249
- })).every(flag => flag) || $report(_exceptionable, {
4250
- path: _path + ".attributes",
4251
- expected: "(Array<__type> | undefined)",
4252
- value: input.attributes
4253
- }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
4254
- path: _path + ".fetchedAtBlock",
4255
- expected: "(bigint | number | string | undefined)",
4256
- value: input.fetchedAtBlock
4257
- }), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
4258
- path: _path + ".fetchedAt",
4259
- expected: "(bigint | number | string | undefined)",
4260
- value: input.fetchedAt
4261
- }), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
4262
- path: _path + "._isUpdating",
4263
- expected: "(boolean | undefined)",
4264
- value: input._isUpdating
4265
- })].every(flag => flag);
4266
- const $vo11 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
4267
- const value = input[key];
4268
- if (undefined === value)
4269
- return true;
4270
- return "string" === typeof value || $report(_exceptionable, {
4271
- path: _path + $join(key),
4272
- expected: "string",
4273
- value: value
4274
- });
4275
- }).every(flag => flag)].every(flag => flag);
4276
- const $vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
4277
- path: _path + ".host",
4278
- expected: "string",
4279
- value: input.host
4280
- }), "string" === typeof input.assignMethod || $report(_exceptionable, {
4281
- path: _path + ".assignMethod",
4282
- expected: "string",
4283
- value: input.assignMethod
4284
- })].every(flag => flag);
4285
- const $vo13 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
4286
- path: _path + ".type",
4287
- expected: "(\"date\" | \"url\" | undefined)",
4288
- value: input.type
4289
- }), "string" === typeof input.name || $report(_exceptionable, {
4290
- path: _path + ".name",
4291
- expected: "string",
4292
- value: input.name
4293
- }), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
4294
- path: _path + ".value",
4295
- expected: "(boolean | number | string)",
4296
- value: input.value
4339
+ value: input.privateParams
4297
4340
  })].every(flag => flag);
4341
+ const $vo13 = (input, _path, _exceptionable = true) => true;
4298
4342
  return ("object" === typeof input && null !== input || $report(true, {
4299
4343
  path: _path + "",
4300
4344
  expected: "UpdateClaimPayload",
@@ -5723,23 +5767,23 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5723
5767
  const errors = [];
5724
5768
  const __is = input => {
5725
5769
  const $io0 = input => undefined === input.contents || Array.isArray(input.contents) && input.contents.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
5726
- 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);
5727
- 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);
5728
- 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);
5729
- const $io4 = input => Object.keys(input).every(key => {
5770
+ const $io1 = 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) && $io2(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io3(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io4(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);
5771
+ const $io2 = input => Object.keys(input).every(key => {
5730
5772
  const value = input[key];
5731
5773
  if (undefined === value)
5732
5774
  return true;
5733
5775
  return "string" === typeof value;
5734
5776
  });
5735
- const $io5 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
5736
- 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);
5737
- 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);
5777
+ const $io3 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
5778
+ const $io4 = 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);
5779
+ const $io5 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
5780
+ 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 && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
5781
+ 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);
5738
5782
  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);
5739
5783
  const $io9 = input => true;
5740
5784
  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);
5741
- 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@870"] && Object.keys(input).every(key => {
5742
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
5785
+ 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@488"] && Object.keys(input).every(key => {
5786
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@488"].some(prop => key === prop))
5743
5787
  return true;
5744
5788
  const value = input[key];
5745
5789
  if (undefined === value)
@@ -5749,14 +5793,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5749
5793
  return true;
5750
5794
  });
5751
5795
  const $iu0 = input => (() => {
5752
- if (undefined !== input.badgeIds)
5796
+ if (undefined !== input.name)
5753
5797
  return $io1(input);
5754
- else if (undefined !== input.name)
5755
- return $io3(input);
5798
+ else if (undefined !== input.badgeIds)
5799
+ return $io6(input);
5756
5800
  else if (undefined !== input.leaves)
5757
5801
  return $io8(input);
5758
5802
  else
5759
- return $io7(input);
5803
+ return $io5(input);
5760
5804
  })();
5761
5805
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
5762
5806
  };
@@ -5766,7 +5810,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5766
5810
  const $join = typia_1.default.validate.join;
5767
5811
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
5768
5812
  path: _path + ".contents",
5769
- expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
5813
+ expected: "(Array<iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
5770
5814
  value: input.contents
5771
5815
  })) && input.contents.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
5772
5816
  path: _path + ".contents[" + _index1 + "]",
@@ -5778,60 +5822,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5778
5822
  value: elem
5779
5823
  })).every(flag => flag) || $report(_exceptionable, {
5780
5824
  path: _path + ".contents",
5781
- expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
5825
+ expected: "(Array<iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
5782
5826
  value: input.contents
5783
5827
  })].every(flag => flag);
5784
- const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
5785
- path: _path + ".badgeIds",
5786
- expected: "Array<iUintRange<NumberType>>",
5787
- value: input.badgeIds
5788
- })) && input.badgeIds.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
5789
- path: _path + ".badgeIds[" + _index2 + "]",
5790
- expected: "iUintRange<NumberType>",
5791
- value: elem
5792
- })) && $vo2(elem, _path + ".badgeIds[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
5793
- path: _path + ".badgeIds[" + _index2 + "]",
5794
- expected: "iUintRange<NumberType>",
5795
- value: elem
5796
- })).every(flag => flag) || $report(_exceptionable, {
5797
- path: _path + ".badgeIds",
5798
- expected: "Array<iUintRange<NumberType>>",
5799
- value: input.badgeIds
5800
- }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
5801
- path: _path + ".metadata",
5802
- expected: "(iMetadata<NumberType> | undefined)",
5803
- value: input.metadata
5804
- })) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
5805
- path: _path + ".metadata",
5806
- expected: "(iMetadata<NumberType> | undefined)",
5807
- value: input.metadata
5808
- }), "string" === typeof input.uri || $report(_exceptionable, {
5809
- path: _path + ".uri",
5810
- expected: "string",
5811
- value: input.uri
5812
- }), undefined === input.fetchedUri || "string" === typeof input.fetchedUri || $report(_exceptionable, {
5813
- path: _path + ".fetchedUri",
5814
- expected: "(string | undefined)",
5815
- value: input.fetchedUri
5816
- }), "string" === typeof input.customData || $report(_exceptionable, {
5817
- path: _path + ".customData",
5818
- expected: "string",
5819
- value: input.customData
5820
- }), undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs || $report(_exceptionable, {
5821
- path: _path + ".toUploadToIpfs",
5822
- expected: "(boolean | undefined)",
5823
- value: input.toUploadToIpfs
5824
- })].every(flag => flag);
5825
- const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
5826
- path: _path + ".start",
5827
- expected: "(bigint | number | string)",
5828
- value: input.start
5829
- }), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
5830
- path: _path + ".end",
5831
- expected: "(bigint | number | string)",
5832
- value: input.end
5833
- })].every(flag => flag);
5834
- const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
5828
+ const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
5835
5829
  path: _path + ".name",
5836
5830
  expected: "string",
5837
5831
  value: input.name
@@ -5859,8 +5853,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5859
5853
  path: _path + ".tags",
5860
5854
  expected: "(Array<string> | undefined)",
5861
5855
  value: input.tags
5862
- })) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
5863
- path: _path + ".tags[" + _index3 + "]",
5856
+ })) && input.tags.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
5857
+ path: _path + ".tags[" + _index2 + "]",
5864
5858
  expected: "string",
5865
5859
  value: elem
5866
5860
  })).every(flag => flag) || $report(_exceptionable, {
@@ -5871,7 +5865,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5871
5865
  path: _path + ".socials",
5872
5866
  expected: "(__type | undefined)",
5873
5867
  value: input.socials
5874
- })) && $vo4(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
5868
+ })) && $vo2(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
5875
5869
  path: _path + ".socials",
5876
5870
  expected: "(__type | undefined)",
5877
5871
  value: input.socials
@@ -5879,7 +5873,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5879
5873
  path: _path + ".offChainTransferabilityInfo",
5880
5874
  expected: "(__type.o1 | undefined)",
5881
5875
  value: input.offChainTransferabilityInfo
5882
- })) && $vo5(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
5876
+ })) && $vo3(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
5883
5877
  path: _path + ".offChainTransferabilityInfo",
5884
5878
  expected: "(__type.o1 | undefined)",
5885
5879
  value: input.offChainTransferabilityInfo
@@ -5887,12 +5881,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5887
5881
  path: _path + ".attributes",
5888
5882
  expected: "(Array<__type> | undefined)",
5889
5883
  value: input.attributes
5890
- })) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
5891
- path: _path + ".attributes[" + _index4 + "]",
5884
+ })) && input.attributes.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
5885
+ path: _path + ".attributes[" + _index3 + "]",
5892
5886
  expected: "__type.o2",
5893
5887
  value: elem
5894
- })) && $vo6(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
5895
- path: _path + ".attributes[" + _index4 + "]",
5888
+ })) && $vo4(elem, _path + ".attributes[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
5889
+ path: _path + ".attributes[" + _index3 + "]",
5896
5890
  expected: "__type.o2",
5897
5891
  value: elem
5898
5892
  })).every(flag => flag) || $report(_exceptionable, {
@@ -5912,7 +5906,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5912
5906
  expected: "(boolean | undefined)",
5913
5907
  value: input._isUpdating
5914
5908
  })].every(flag => flag);
5915
- const $vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
5909
+ const $vo2 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
5916
5910
  const value = input[key];
5917
5911
  if (undefined === value)
5918
5912
  return true;
@@ -5922,7 +5916,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5922
5916
  value: value
5923
5917
  });
5924
5918
  }).every(flag => flag)].every(flag => flag);
5925
- const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
5919
+ const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
5926
5920
  path: _path + ".host",
5927
5921
  expected: "string",
5928
5922
  value: input.host
@@ -5931,7 +5925,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5931
5925
  expected: "string",
5932
5926
  value: input.assignMethod
5933
5927
  })].every(flag => flag);
5934
- const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
5928
+ const $vo4 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
5935
5929
  path: _path + ".type",
5936
5930
  expected: "(\"date\" | \"url\" | undefined)",
5937
5931
  value: input.type
@@ -5944,11 +5938,52 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5944
5938
  expected: "(boolean | number | string)",
5945
5939
  value: input.value
5946
5940
  })].every(flag => flag);
5947
- const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
5941
+ const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
5942
+ path: _path + ".metadata",
5943
+ expected: "(iMetadata<NumberType> | undefined)",
5944
+ value: input.metadata
5945
+ })) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
5946
+ path: _path + ".metadata",
5947
+ expected: "(iMetadata<NumberType> | undefined)",
5948
+ value: input.metadata
5949
+ }), "string" === typeof input.uri || $report(_exceptionable, {
5950
+ path: _path + ".uri",
5951
+ expected: "string",
5952
+ value: input.uri
5953
+ }), undefined === input.fetchedUri || "string" === typeof input.fetchedUri || $report(_exceptionable, {
5954
+ path: _path + ".fetchedUri",
5955
+ expected: "(string | undefined)",
5956
+ value: input.fetchedUri
5957
+ }), "string" === typeof input.customData || $report(_exceptionable, {
5958
+ path: _path + ".customData",
5959
+ expected: "string",
5960
+ value: input.customData
5961
+ }), undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs || $report(_exceptionable, {
5962
+ path: _path + ".toUploadToIpfs",
5963
+ expected: "(boolean | undefined)",
5964
+ value: input.toUploadToIpfs
5965
+ })].every(flag => flag);
5966
+ const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
5967
+ path: _path + ".badgeIds",
5968
+ expected: "Array<iUintRange<NumberType>>",
5969
+ value: input.badgeIds
5970
+ })) && input.badgeIds.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
5971
+ path: _path + ".badgeIds[" + _index4 + "]",
5972
+ expected: "iUintRange<NumberType>",
5973
+ value: elem
5974
+ })) && $vo7(elem, _path + ".badgeIds[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
5975
+ path: _path + ".badgeIds[" + _index4 + "]",
5976
+ expected: "iUintRange<NumberType>",
5977
+ value: elem
5978
+ })).every(flag => flag) || $report(_exceptionable, {
5979
+ path: _path + ".badgeIds",
5980
+ expected: "Array<iUintRange<NumberType>>",
5981
+ value: input.badgeIds
5982
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
5948
5983
  path: _path + ".metadata",
5949
5984
  expected: "(iMetadata<NumberType> | undefined)",
5950
5985
  value: input.metadata
5951
- })) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
5986
+ })) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
5952
5987
  path: _path + ".metadata",
5953
5988
  expected: "(iMetadata<NumberType> | undefined)",
5954
5989
  value: input.metadata
@@ -5969,6 +6004,15 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5969
6004
  expected: "(boolean | undefined)",
5970
6005
  value: input.toUploadToIpfs
5971
6006
  })].every(flag => flag);
6007
+ const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6008
+ path: _path + ".start",
6009
+ expected: "(bigint | number | string)",
6010
+ value: input.start
6011
+ }), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
6012
+ path: _path + ".end",
6013
+ expected: "(bigint | number | string)",
6014
+ value: input.end
6015
+ })].every(flag => flag);
5972
6016
  const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
5973
6017
  path: _path + ".leaves",
5974
6018
  expected: "Array<string>",
@@ -6092,12 +6136,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6092
6136
  path: _path + ".length",
6093
6137
  expected: "number",
6094
6138
  value: input.length
6095
- }), "Uint8Array" === input["__@toStringTag@870"] || $report(_exceptionable, {
6096
- path: _path + "[\"__@toStringTag@870\"]",
6139
+ }), "Uint8Array" === input["__@toStringTag@488"] || $report(_exceptionable, {
6140
+ path: _path + "[\"__@toStringTag@488\"]",
6097
6141
  expected: "\"Uint8Array\"",
6098
- value: input["__@toStringTag@870"]
6142
+ value: input["__@toStringTag@488"]
6099
6143
  }), false === _exceptionable || Object.keys(input).map(key => {
6100
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
6144
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@488"].some(prop => key === prop))
6101
6145
  return true;
6102
6146
  const value = input[key];
6103
6147
  if (undefined === value)
@@ -6111,14 +6155,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6111
6155
  return true;
6112
6156
  }).every(flag => flag)].every(flag => flag);
6113
6157
  const $vu0 = (input, _path, _exceptionable = true) => (() => {
6114
- if (undefined !== input.badgeIds)
6158
+ if (undefined !== input.name)
6115
6159
  return $vo1(input, _path, true && _exceptionable);
6116
- else if (undefined !== input.name)
6117
- return $vo3(input, _path, true && _exceptionable);
6160
+ else if (undefined !== input.badgeIds)
6161
+ return $vo6(input, _path, true && _exceptionable);
6118
6162
  else if (undefined !== input.leaves)
6119
6163
  return $vo8(input, _path, true && _exceptionable);
6120
6164
  else
6121
- return $vo7(input, _path, true && _exceptionable);
6165
+ return $vo5(input, _path, true && _exceptionable);
6122
6166
  })();
6123
6167
  return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
6124
6168
  path: _path + "",
@@ -6160,8 +6204,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6160
6204
  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);
6161
6205
  const $io4 = input => true;
6162
6206
  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);
6163
- 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@870"] && Object.keys(input).every(key => {
6164
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
6207
+ 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@488"] && Object.keys(input).every(key => {
6208
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@488"].some(prop => key === prop))
6165
6209
  return true;
6166
6210
  const value = input[key];
6167
6211
  if (undefined === value)
@@ -6375,12 +6419,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6375
6419
  path: _path + ".length",
6376
6420
  expected: "number",
6377
6421
  value: input.length
6378
- }), "Uint8Array" === input["__@toStringTag@870"] || $report(_exceptionable, {
6379
- path: _path + "[\"__@toStringTag@870\"]",
6422
+ }), "Uint8Array" === input["__@toStringTag@488"] || $report(_exceptionable, {
6423
+ path: _path + "[\"__@toStringTag@488\"]",
6380
6424
  expected: "\"Uint8Array\"",
6381
- value: input["__@toStringTag@870"]
6425
+ value: input["__@toStringTag@488"]
6382
6426
  }), false === _exceptionable || Object.keys(input).map(key => {
6383
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
6427
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@488"].some(prop => key === prop))
6384
6428
  return true;
6385
6429
  const value = input[key];
6386
6430
  if (undefined === value)