bitbadgesjs-sdk 0.4.3 → 0.4.4

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.
@@ -3231,12 +3231,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3231
3231
  }
3232
3232
  async createClaims(payload) {
3233
3233
  try {
3234
- const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && "string" === typeof input.claimId && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (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.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(elem))); 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); const $io3 = input => Object.keys(input).every(key => {
3234
+ const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && "string" === typeof input.claimId && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io7(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.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io13(elem))); 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.utility || Array.isArray(input.utility) && input.utility.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); const $io3 = input => Object.keys(input).every(key => {
3235
3235
  const value = input[key];
3236
3236
  if (undefined === value)
3237
3237
  return true;
3238
3238
  return "string" === typeof value;
3239
- }); const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io5 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); 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 && $io11(input.orderCalculationMethod)); const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)); 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))); 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); 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); const $io11 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $io12 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io13(input.metadata)) && "string" === typeof input.version && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io14(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io14(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io14(input.privateParams)); const $io13 = input => "string" === typeof input.name && "string" === typeof input.description; const $io14 = input => Object.keys(input).every(key => {
3239
+ }); const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io5 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io6 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io7 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io11(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io12(input.orderCalculationMethod)); const $io8 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)); const $io9 = 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 && $io10(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io10(elem))); const $io10 = 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); const $io11 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io9(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); const $io12 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $io13 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io14(input.metadata)) && "string" === typeof input.version && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io15(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io15(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io15(input.privateParams)); const $io14 = input => "string" === typeof input.name && "string" === typeof input.description; const $io15 = input => Object.keys(input).every(key => {
3240
3240
  const value = input[key];
3241
3241
  if (undefined === value)
3242
3242
  return true;
@@ -3245,12 +3245,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3245
3245
  path: _path + ".claims",
3246
3246
  expected: "Array<CreateClaimRequest<NumberType>>",
3247
3247
  value: input.claims
3248
- })) && input.claims.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3249
- path: _path + ".claims[" + _index10 + "]",
3248
+ })) && input.claims.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3249
+ path: _path + ".claims[" + _index11 + "]",
3250
3250
  expected: "CreateClaimRequest<NumberType>",
3251
3251
  value: elem
3252
- })) && $vo1(elem, _path + ".claims[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
3253
- path: _path + ".claims[" + _index10 + "]",
3252
+ })) && $vo1(elem, _path + ".claims[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
3253
+ path: _path + ".claims[" + _index11 + "]",
3254
3254
  expected: "CreateClaimRequest<NumberType>",
3255
3255
  value: elem
3256
3256
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3301,7 +3301,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3301
3301
  path: _path + ".balancesToSet",
3302
3302
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3303
3303
  value: input.balancesToSet
3304
- })) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3304
+ })) && $vo7(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3305
3305
  path: _path + ".balancesToSet",
3306
3306
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3307
3307
  value: input.balancesToSet
@@ -3325,12 +3325,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3325
3325
  path: _path + ".plugins",
3326
3326
  expected: "Array<ManagePluginRequest>",
3327
3327
  value: input.plugins
3328
- })) && input.plugins.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3329
- path: _path + ".plugins[" + _index11 + "]",
3328
+ })) && input.plugins.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3329
+ path: _path + ".plugins[" + _index12 + "]",
3330
3330
  expected: "ManagePluginRequest",
3331
3331
  value: elem
3332
- })) && $vo12(elem, _path + ".plugins[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
3333
- path: _path + ".plugins[" + _index11 + "]",
3332
+ })) && $vo13(elem, _path + ".plugins[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
3333
+ path: _path + ".plugins[" + _index12 + "]",
3334
3334
  expected: "ManagePluginRequest",
3335
3335
  value: elem
3336
3336
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3365,8 +3365,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3365
3365
  path: _path + ".tags",
3366
3366
  expected: "(Array<string> | undefined)",
3367
3367
  value: input.tags
3368
- })) && input.tags.map((elem, _index12) => "string" === typeof elem || $report(_exceptionable, {
3369
- path: _path + ".tags[" + _index12 + "]",
3368
+ })) && input.tags.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
3369
+ path: _path + ".tags[" + _index13 + "]",
3370
3370
  expected: "string",
3371
3371
  value: elem
3372
3372
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3393,18 +3393,34 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3393
3393
  path: _path + ".attributes",
3394
3394
  expected: "(Array<__type> | undefined)",
3395
3395
  value: input.attributes
3396
- })) && input.attributes.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3397
- path: _path + ".attributes[" + _index13 + "]",
3396
+ })) && input.attributes.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3397
+ path: _path + ".attributes[" + _index14 + "]",
3398
3398
  expected: "__type.o2",
3399
3399
  value: elem
3400
- })) && $vo5(elem, _path + ".attributes[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
3401
- path: _path + ".attributes[" + _index13 + "]",
3400
+ })) && $vo5(elem, _path + ".attributes[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
3401
+ path: _path + ".attributes[" + _index14 + "]",
3402
3402
  expected: "__type.o2",
3403
3403
  value: elem
3404
3404
  })).every(flag => flag) || $report(_exceptionable, {
3405
3405
  path: _path + ".attributes",
3406
3406
  expected: "(Array<__type> | undefined)",
3407
3407
  value: input.attributes
3408
+ }), undefined === input.utility || (Array.isArray(input.utility) || $report(_exceptionable, {
3409
+ path: _path + ".utility",
3410
+ expected: "(Array<__type>.o1 | undefined)",
3411
+ value: input.utility
3412
+ })) && input.utility.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3413
+ path: _path + ".utility[" + _index15 + "]",
3414
+ expected: "__type.o3",
3415
+ value: elem
3416
+ })) && $vo6(elem, _path + ".utility[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
3417
+ path: _path + ".utility[" + _index15 + "]",
3418
+ expected: "__type.o3",
3419
+ value: elem
3420
+ })).every(flag => flag) || $report(_exceptionable, {
3421
+ path: _path + ".utility",
3422
+ expected: "(Array<__type>.o1 | undefined)",
3423
+ value: input.utility
3408
3424
  }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
3409
3425
  path: _path + ".fetchedAtBlock",
3410
3426
  expected: "(bigint | number | string | undefined)",
@@ -3446,16 +3462,32 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3446
3462
  path: _path + ".value",
3447
3463
  expected: "(boolean | number | string)",
3448
3464
  value: input.value
3449
- })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3465
+ })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3466
+ path: _path + ".name",
3467
+ expected: "string",
3468
+ value: input.name
3469
+ }), "string" === typeof input.image || $report(_exceptionable, {
3470
+ path: _path + ".image",
3471
+ expected: "string",
3472
+ value: input.image
3473
+ }), "string" === typeof input.description || $report(_exceptionable, {
3474
+ path: _path + ".description",
3475
+ expected: "string",
3476
+ value: input.description
3477
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
3478
+ path: _path + ".url",
3479
+ expected: "(string | undefined)",
3480
+ value: input.url
3481
+ })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3450
3482
  path: _path + ".manualBalances",
3451
3483
  expected: "Array<iManualBalances<NumberType>>",
3452
3484
  value: input.manualBalances
3453
- })) && input.manualBalances.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3454
- path: _path + ".manualBalances[" + _index14 + "]",
3485
+ })) && input.manualBalances.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3486
+ path: _path + ".manualBalances[" + _index16 + "]",
3455
3487
  expected: "iManualBalances<NumberType>",
3456
3488
  value: elem
3457
- })) && $vo7(elem, _path + ".manualBalances[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
3458
- path: _path + ".manualBalances[" + _index14 + "]",
3489
+ })) && $vo8(elem, _path + ".manualBalances[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
3490
+ path: _path + ".manualBalances[" + _index16 + "]",
3459
3491
  expected: "iManualBalances<NumberType>",
3460
3492
  value: elem
3461
3493
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3466,7 +3498,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3466
3498
  path: _path + ".incrementedBalances",
3467
3499
  expected: "iIncrementedBalances<NumberType>",
3468
3500
  value: input.incrementedBalances
3469
- })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3501
+ })) && $vo11(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3470
3502
  path: _path + ".incrementedBalances",
3471
3503
  expected: "iIncrementedBalances<NumberType>",
3472
3504
  value: input.incrementedBalances
@@ -3474,27 +3506,27 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3474
3506
  path: _path + ".orderCalculationMethod",
3475
3507
  expected: "iPredeterminedOrderCalculationMethod",
3476
3508
  value: input.orderCalculationMethod
3477
- })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3509
+ })) && $vo12(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3478
3510
  path: _path + ".orderCalculationMethod",
3479
3511
  expected: "iPredeterminedOrderCalculationMethod",
3480
3512
  value: input.orderCalculationMethod
3481
- })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3513
+ })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3482
3514
  path: _path + ".balances",
3483
3515
  expected: "Array<iBalance<NumberType>>",
3484
3516
  value: input.balances
3485
- })) && input.balances.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3486
- path: _path + ".balances[" + _index15 + "]",
3517
+ })) && input.balances.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3518
+ path: _path + ".balances[" + _index17 + "]",
3487
3519
  expected: "iBalance<NumberType>",
3488
3520
  value: elem
3489
- })) && $vo8(elem, _path + ".balances[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
3490
- path: _path + ".balances[" + _index15 + "]",
3521
+ })) && $vo9(elem, _path + ".balances[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
3522
+ path: _path + ".balances[" + _index17 + "]",
3491
3523
  expected: "iBalance<NumberType>",
3492
3524
  value: elem
3493
3525
  })).every(flag => flag) || $report(_exceptionable, {
3494
3526
  path: _path + ".balances",
3495
3527
  expected: "Array<iBalance<NumberType>>",
3496
3528
  value: input.balances
3497
- })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3529
+ })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3498
3530
  path: _path + ".amount",
3499
3531
  expected: "(bigint | number | string)",
3500
3532
  value: input.amount
@@ -3502,12 +3534,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3502
3534
  path: _path + ".badgeIds",
3503
3535
  expected: "Array<iUintRange<NumberType>>",
3504
3536
  value: input.badgeIds
3505
- })) && input.badgeIds.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3506
- path: _path + ".badgeIds[" + _index16 + "]",
3537
+ })) && input.badgeIds.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3538
+ path: _path + ".badgeIds[" + _index18 + "]",
3507
3539
  expected: "iUintRange<NumberType>",
3508
3540
  value: elem
3509
- })) && $vo9(elem, _path + ".badgeIds[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
3510
- path: _path + ".badgeIds[" + _index16 + "]",
3541
+ })) && $vo10(elem, _path + ".badgeIds[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
3542
+ path: _path + ".badgeIds[" + _index18 + "]",
3511
3543
  expected: "iUintRange<NumberType>",
3512
3544
  value: elem
3513
3545
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3518,19 +3550,19 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3518
3550
  path: _path + ".ownershipTimes",
3519
3551
  expected: "Array<iUintRange<NumberType>>",
3520
3552
  value: input.ownershipTimes
3521
- })) && input.ownershipTimes.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3522
- path: _path + ".ownershipTimes[" + _index17 + "]",
3553
+ })) && input.ownershipTimes.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3554
+ path: _path + ".ownershipTimes[" + _index19 + "]",
3523
3555
  expected: "iUintRange<NumberType>",
3524
3556
  value: elem
3525
- })) && $vo9(elem, _path + ".ownershipTimes[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
3526
- path: _path + ".ownershipTimes[" + _index17 + "]",
3557
+ })) && $vo10(elem, _path + ".ownershipTimes[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
3558
+ path: _path + ".ownershipTimes[" + _index19 + "]",
3527
3559
  expected: "iUintRange<NumberType>",
3528
3560
  value: elem
3529
3561
  })).every(flag => flag) || $report(_exceptionable, {
3530
3562
  path: _path + ".ownershipTimes",
3531
3563
  expected: "Array<iUintRange<NumberType>>",
3532
3564
  value: input.ownershipTimes
3533
- })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
3565
+ })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
3534
3566
  path: _path + ".start",
3535
3567
  expected: "(bigint | number | string)",
3536
3568
  value: input.start
@@ -3538,16 +3570,16 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3538
3570
  path: _path + ".end",
3539
3571
  expected: "(bigint | number | string)",
3540
3572
  value: input.end
3541
- })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
3573
+ })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
3542
3574
  path: _path + ".startBalances",
3543
3575
  expected: "Array<iBalance<NumberType>>",
3544
3576
  value: input.startBalances
3545
- })) && input.startBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3546
- path: _path + ".startBalances[" + _index18 + "]",
3577
+ })) && input.startBalances.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3578
+ path: _path + ".startBalances[" + _index20 + "]",
3547
3579
  expected: "iBalance<NumberType>",
3548
3580
  value: elem
3549
- })) && $vo8(elem, _path + ".startBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
3550
- path: _path + ".startBalances[" + _index18 + "]",
3581
+ })) && $vo9(elem, _path + ".startBalances[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
3582
+ path: _path + ".startBalances[" + _index20 + "]",
3551
3583
  expected: "iBalance<NumberType>",
3552
3584
  value: elem
3553
3585
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3562,7 +3594,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3562
3594
  path: _path + ".incrementOwnershipTimesBy",
3563
3595
  expected: "(bigint | number | string)",
3564
3596
  value: input.incrementOwnershipTimesBy
3565
- })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
3597
+ })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
3566
3598
  path: _path + ".useOverallNumTransfers",
3567
3599
  expected: "boolean",
3568
3600
  value: input.useOverallNumTransfers
@@ -3586,13 +3618,13 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3586
3618
  path: _path + ".challengeTrackerId",
3587
3619
  expected: "string",
3588
3620
  value: input.challengeTrackerId
3589
- })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3621
+ })].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3590
3622
  path: _path + ".metadata",
3591
- expected: "(__type.o3 | undefined)",
3623
+ expected: "(__type.o4 | undefined)",
3592
3624
  value: input.metadata
3593
- })) && $vo13(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3625
+ })) && $vo14(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3594
3626
  path: _path + ".metadata",
3595
- expected: "(__type.o3 | undefined)",
3627
+ expected: "(__type.o4 | undefined)",
3596
3628
  value: input.metadata
3597
3629
  }), "string" === typeof input.version || $report(_exceptionable, {
3598
3630
  path: _path + ".version",
@@ -3606,7 +3638,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3606
3638
  path: _path + ".newState",
3607
3639
  expected: "(Record<string, any> | undefined)",
3608
3640
  value: input.newState
3609
- })) && $vo14(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
3641
+ })) && $vo15(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
3610
3642
  path: _path + ".newState",
3611
3643
  expected: "(Record<string, any> | undefined)",
3612
3644
  value: input.newState
@@ -3626,7 +3658,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3626
3658
  path: _path + ".publicParams",
3627
3659
  expected: "Record<string, any>",
3628
3660
  value: input.publicParams
3629
- })) && $vo14(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
3661
+ })) && $vo15(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
3630
3662
  path: _path + ".publicParams",
3631
3663
  expected: "Record<string, any>",
3632
3664
  value: input.publicParams
@@ -3634,11 +3666,11 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3634
3666
  path: _path + ".privateParams",
3635
3667
  expected: "Record<string, any>",
3636
3668
  value: input.privateParams
3637
- })) && $vo14(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
3669
+ })) && $vo15(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
3638
3670
  path: _path + ".privateParams",
3639
3671
  expected: "Record<string, any>",
3640
3672
  value: input.privateParams
3641
- })].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3673
+ })].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3642
3674
  path: _path + ".name",
3643
3675
  expected: "string",
3644
3676
  value: input.name
@@ -3646,7 +3678,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3646
3678
  path: _path + ".description",
3647
3679
  expected: "string",
3648
3680
  value: input.description
3649
- })].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3681
+ })].every(flag => flag); const $vo15 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3650
3682
  const value = input[key];
3651
3683
  if (undefined === value)
3652
3684
  return true;
@@ -3743,26 +3775,26 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3743
3775
  }
3744
3776
  async updateClaims(payload) {
3745
3777
  try {
3746
- const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && "string" === typeof input.claimId && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (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); 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); const $io3 = input => Object.keys(input).every(key => {
3778
+ const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && "string" === typeof input.claimId && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io7(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io13(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod); 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.utility || Array.isArray(input.utility) && input.utility.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); const $io3 = input => Object.keys(input).every(key => {
3747
3779
  const value = input[key];
3748
3780
  if (undefined === value)
3749
3781
  return true;
3750
3782
  return "string" === typeof value;
3751
- }); const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io5 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); 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 && $io11(input.orderCalculationMethod)); const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)); 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))); 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); 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); const $io11 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $io12 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io13(input.publicState) && (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 && "string" === typeof input.version && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io13(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io13(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io14(input.metadata)); const $io13 = input => Object.keys(input).every(key => {
3783
+ }); const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io5 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io6 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io7 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io11(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io12(input.orderCalculationMethod)); const $io8 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)); const $io9 = 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 && $io10(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io10(elem))); const $io10 = 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); const $io11 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io9(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); const $io12 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $io13 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io14(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io14(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io14(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && "string" === typeof input.version && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io14(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io14(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io15(input.metadata)); const $io14 = input => Object.keys(input).every(key => {
3752
3784
  const value = input[key];
3753
3785
  if (undefined === value)
3754
3786
  return true;
3755
3787
  return true;
3756
- }); const $io14 = input => "string" === typeof input.name && "string" === typeof input.description; const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
3788
+ }); const $io15 = input => "string" === typeof input.name && "string" === typeof input.description; const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
3757
3789
  path: _path + ".claims",
3758
3790
  expected: "Array<Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">>",
3759
3791
  value: input.claims
3760
- })) && input.claims.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3761
- path: _path + ".claims[" + _index10 + "]",
3792
+ })) && input.claims.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3793
+ path: _path + ".claims[" + _index11 + "]",
3762
3794
  expected: "Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">",
3763
3795
  value: elem
3764
- })) && $vo1(elem, _path + ".claims[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
3765
- path: _path + ".claims[" + _index10 + "]",
3796
+ })) && $vo1(elem, _path + ".claims[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
3797
+ path: _path + ".claims[" + _index11 + "]",
3766
3798
  expected: "Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">",
3767
3799
  value: elem
3768
3800
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3801,7 +3833,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3801
3833
  path: _path + ".balancesToSet",
3802
3834
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3803
3835
  value: input.balancesToSet
3804
- })) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3836
+ })) && $vo7(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3805
3837
  path: _path + ".balancesToSet",
3806
3838
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3807
3839
  value: input.balancesToSet
@@ -3809,12 +3841,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3809
3841
  path: _path + ".plugins",
3810
3842
  expected: "Array<IntegrationPluginDetails<string>>",
3811
3843
  value: input.plugins
3812
- })) && input.plugins.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3813
- path: _path + ".plugins[" + _index11 + "]",
3844
+ })) && input.plugins.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3845
+ path: _path + ".plugins[" + _index12 + "]",
3814
3846
  expected: "IntegrationPluginDetails<string>",
3815
3847
  value: elem
3816
- })) && $vo12(elem, _path + ".plugins[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
3817
- path: _path + ".plugins[" + _index11 + "]",
3848
+ })) && $vo13(elem, _path + ".plugins[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
3849
+ path: _path + ".plugins[" + _index12 + "]",
3818
3850
  expected: "IntegrationPluginDetails<string>",
3819
3851
  value: elem
3820
3852
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3861,8 +3893,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3861
3893
  path: _path + ".tags",
3862
3894
  expected: "(Array<string> | undefined)",
3863
3895
  value: input.tags
3864
- })) && input.tags.map((elem, _index12) => "string" === typeof elem || $report(_exceptionable, {
3865
- path: _path + ".tags[" + _index12 + "]",
3896
+ })) && input.tags.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
3897
+ path: _path + ".tags[" + _index13 + "]",
3866
3898
  expected: "string",
3867
3899
  value: elem
3868
3900
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3889,18 +3921,34 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3889
3921
  path: _path + ".attributes",
3890
3922
  expected: "(Array<__type> | undefined)",
3891
3923
  value: input.attributes
3892
- })) && input.attributes.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3893
- path: _path + ".attributes[" + _index13 + "]",
3924
+ })) && input.attributes.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3925
+ path: _path + ".attributes[" + _index14 + "]",
3894
3926
  expected: "__type.o2",
3895
3927
  value: elem
3896
- })) && $vo5(elem, _path + ".attributes[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
3897
- path: _path + ".attributes[" + _index13 + "]",
3928
+ })) && $vo5(elem, _path + ".attributes[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
3929
+ path: _path + ".attributes[" + _index14 + "]",
3898
3930
  expected: "__type.o2",
3899
3931
  value: elem
3900
3932
  })).every(flag => flag) || $report(_exceptionable, {
3901
3933
  path: _path + ".attributes",
3902
3934
  expected: "(Array<__type> | undefined)",
3903
3935
  value: input.attributes
3936
+ }), undefined === input.utility || (Array.isArray(input.utility) || $report(_exceptionable, {
3937
+ path: _path + ".utility",
3938
+ expected: "(Array<__type>.o1 | undefined)",
3939
+ value: input.utility
3940
+ })) && input.utility.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3941
+ path: _path + ".utility[" + _index15 + "]",
3942
+ expected: "__type.o3",
3943
+ value: elem
3944
+ })) && $vo6(elem, _path + ".utility[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
3945
+ path: _path + ".utility[" + _index15 + "]",
3946
+ expected: "__type.o3",
3947
+ value: elem
3948
+ })).every(flag => flag) || $report(_exceptionable, {
3949
+ path: _path + ".utility",
3950
+ expected: "(Array<__type>.o1 | undefined)",
3951
+ value: input.utility
3904
3952
  }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
3905
3953
  path: _path + ".fetchedAtBlock",
3906
3954
  expected: "(bigint | number | string | undefined)",
@@ -3942,16 +3990,32 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3942
3990
  path: _path + ".value",
3943
3991
  expected: "(boolean | number | string)",
3944
3992
  value: input.value
3945
- })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3993
+ })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3994
+ path: _path + ".name",
3995
+ expected: "string",
3996
+ value: input.name
3997
+ }), "string" === typeof input.image || $report(_exceptionable, {
3998
+ path: _path + ".image",
3999
+ expected: "string",
4000
+ value: input.image
4001
+ }), "string" === typeof input.description || $report(_exceptionable, {
4002
+ path: _path + ".description",
4003
+ expected: "string",
4004
+ value: input.description
4005
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
4006
+ path: _path + ".url",
4007
+ expected: "(string | undefined)",
4008
+ value: input.url
4009
+ })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3946
4010
  path: _path + ".manualBalances",
3947
4011
  expected: "Array<iManualBalances<NumberType>>",
3948
4012
  value: input.manualBalances
3949
- })) && input.manualBalances.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3950
- path: _path + ".manualBalances[" + _index14 + "]",
4013
+ })) && input.manualBalances.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4014
+ path: _path + ".manualBalances[" + _index16 + "]",
3951
4015
  expected: "iManualBalances<NumberType>",
3952
4016
  value: elem
3953
- })) && $vo7(elem, _path + ".manualBalances[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
3954
- path: _path + ".manualBalances[" + _index14 + "]",
4017
+ })) && $vo8(elem, _path + ".manualBalances[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
4018
+ path: _path + ".manualBalances[" + _index16 + "]",
3955
4019
  expected: "iManualBalances<NumberType>",
3956
4020
  value: elem
3957
4021
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3962,7 +4026,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3962
4026
  path: _path + ".incrementedBalances",
3963
4027
  expected: "iIncrementedBalances<NumberType>",
3964
4028
  value: input.incrementedBalances
3965
- })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4029
+ })) && $vo11(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3966
4030
  path: _path + ".incrementedBalances",
3967
4031
  expected: "iIncrementedBalances<NumberType>",
3968
4032
  value: input.incrementedBalances
@@ -3970,27 +4034,27 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3970
4034
  path: _path + ".orderCalculationMethod",
3971
4035
  expected: "iPredeterminedOrderCalculationMethod",
3972
4036
  value: input.orderCalculationMethod
3973
- })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4037
+ })) && $vo12(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3974
4038
  path: _path + ".orderCalculationMethod",
3975
4039
  expected: "iPredeterminedOrderCalculationMethod",
3976
4040
  value: input.orderCalculationMethod
3977
- })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4041
+ })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3978
4042
  path: _path + ".balances",
3979
4043
  expected: "Array<iBalance<NumberType>>",
3980
4044
  value: input.balances
3981
- })) && input.balances.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3982
- path: _path + ".balances[" + _index15 + "]",
4045
+ })) && input.balances.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4046
+ path: _path + ".balances[" + _index17 + "]",
3983
4047
  expected: "iBalance<NumberType>",
3984
4048
  value: elem
3985
- })) && $vo8(elem, _path + ".balances[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
3986
- path: _path + ".balances[" + _index15 + "]",
4049
+ })) && $vo9(elem, _path + ".balances[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
4050
+ path: _path + ".balances[" + _index17 + "]",
3987
4051
  expected: "iBalance<NumberType>",
3988
4052
  value: elem
3989
4053
  })).every(flag => flag) || $report(_exceptionable, {
3990
4054
  path: _path + ".balances",
3991
4055
  expected: "Array<iBalance<NumberType>>",
3992
4056
  value: input.balances
3993
- })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
4057
+ })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3994
4058
  path: _path + ".amount",
3995
4059
  expected: "(bigint | number | string)",
3996
4060
  value: input.amount
@@ -3998,12 +4062,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3998
4062
  path: _path + ".badgeIds",
3999
4063
  expected: "Array<iUintRange<NumberType>>",
4000
4064
  value: input.badgeIds
4001
- })) && input.badgeIds.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4002
- path: _path + ".badgeIds[" + _index16 + "]",
4065
+ })) && input.badgeIds.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4066
+ path: _path + ".badgeIds[" + _index18 + "]",
4003
4067
  expected: "iUintRange<NumberType>",
4004
4068
  value: elem
4005
- })) && $vo9(elem, _path + ".badgeIds[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
4006
- path: _path + ".badgeIds[" + _index16 + "]",
4069
+ })) && $vo10(elem, _path + ".badgeIds[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
4070
+ path: _path + ".badgeIds[" + _index18 + "]",
4007
4071
  expected: "iUintRange<NumberType>",
4008
4072
  value: elem
4009
4073
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4014,19 +4078,19 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4014
4078
  path: _path + ".ownershipTimes",
4015
4079
  expected: "Array<iUintRange<NumberType>>",
4016
4080
  value: input.ownershipTimes
4017
- })) && input.ownershipTimes.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4018
- path: _path + ".ownershipTimes[" + _index17 + "]",
4081
+ })) && input.ownershipTimes.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4082
+ path: _path + ".ownershipTimes[" + _index19 + "]",
4019
4083
  expected: "iUintRange<NumberType>",
4020
4084
  value: elem
4021
- })) && $vo9(elem, _path + ".ownershipTimes[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
4022
- path: _path + ".ownershipTimes[" + _index17 + "]",
4085
+ })) && $vo10(elem, _path + ".ownershipTimes[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
4086
+ path: _path + ".ownershipTimes[" + _index19 + "]",
4023
4087
  expected: "iUintRange<NumberType>",
4024
4088
  value: elem
4025
4089
  })).every(flag => flag) || $report(_exceptionable, {
4026
4090
  path: _path + ".ownershipTimes",
4027
4091
  expected: "Array<iUintRange<NumberType>>",
4028
4092
  value: input.ownershipTimes
4029
- })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
4093
+ })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
4030
4094
  path: _path + ".start",
4031
4095
  expected: "(bigint | number | string)",
4032
4096
  value: input.start
@@ -4034,16 +4098,16 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4034
4098
  path: _path + ".end",
4035
4099
  expected: "(bigint | number | string)",
4036
4100
  value: input.end
4037
- })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4101
+ })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4038
4102
  path: _path + ".startBalances",
4039
4103
  expected: "Array<iBalance<NumberType>>",
4040
4104
  value: input.startBalances
4041
- })) && input.startBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4042
- path: _path + ".startBalances[" + _index18 + "]",
4105
+ })) && input.startBalances.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4106
+ path: _path + ".startBalances[" + _index20 + "]",
4043
4107
  expected: "iBalance<NumberType>",
4044
4108
  value: elem
4045
- })) && $vo8(elem, _path + ".startBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
4046
- path: _path + ".startBalances[" + _index18 + "]",
4109
+ })) && $vo9(elem, _path + ".startBalances[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
4110
+ path: _path + ".startBalances[" + _index20 + "]",
4047
4111
  expected: "iBalance<NumberType>",
4048
4112
  value: elem
4049
4113
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4058,7 +4122,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4058
4122
  path: _path + ".incrementOwnershipTimesBy",
4059
4123
  expected: "(bigint | number | string)",
4060
4124
  value: input.incrementOwnershipTimesBy
4061
- })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4125
+ })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4062
4126
  path: _path + ".useOverallNumTransfers",
4063
4127
  expected: "boolean",
4064
4128
  value: input.useOverallNumTransfers
@@ -4082,11 +4146,11 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4082
4146
  path: _path + ".challengeTrackerId",
4083
4147
  expected: "string",
4084
4148
  value: input.challengeTrackerId
4085
- })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
4149
+ })].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
4086
4150
  path: _path + ".publicState",
4087
4151
  expected: "Record<string, any>",
4088
4152
  value: input.publicState
4089
- })) && $vo13(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
4153
+ })) && $vo14(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
4090
4154
  path: _path + ".publicState",
4091
4155
  expected: "Record<string, any>",
4092
4156
  value: input.publicState
@@ -4094,7 +4158,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4094
4158
  path: _path + ".privateState",
4095
4159
  expected: "(Record<string, any> | undefined)",
4096
4160
  value: input.privateState
4097
- })) && $vo13(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
4161
+ })) && $vo14(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
4098
4162
  path: _path + ".privateState",
4099
4163
  expected: "(Record<string, any> | undefined)",
4100
4164
  value: input.privateState
@@ -4106,7 +4170,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4106
4170
  path: _path + ".newState",
4107
4171
  expected: "(Record<string, any> | undefined)",
4108
4172
  value: input.newState
4109
- })) && $vo13(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
4173
+ })) && $vo14(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
4110
4174
  path: _path + ".newState",
4111
4175
  expected: "(Record<string, any> | undefined)",
4112
4176
  value: input.newState
@@ -4130,7 +4194,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4130
4194
  path: _path + ".publicParams",
4131
4195
  expected: "Record<string, any>",
4132
4196
  value: input.publicParams
4133
- })) && $vo13(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4197
+ })) && $vo14(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4134
4198
  path: _path + ".publicParams",
4135
4199
  expected: "Record<string, any>",
4136
4200
  value: input.publicParams
@@ -4138,24 +4202,24 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4138
4202
  path: _path + ".privateParams",
4139
4203
  expected: "Record<string, any>",
4140
4204
  value: input.privateParams
4141
- })) && $vo13(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4205
+ })) && $vo14(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4142
4206
  path: _path + ".privateParams",
4143
4207
  expected: "Record<string, any>",
4144
4208
  value: input.privateParams
4145
4209
  }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
4146
4210
  path: _path + ".metadata",
4147
- expected: "(__type.o3 | undefined)",
4211
+ expected: "(__type.o4 | undefined)",
4148
4212
  value: input.metadata
4149
- })) && $vo14(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
4213
+ })) && $vo15(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
4150
4214
  path: _path + ".metadata",
4151
- expected: "(__type.o3 | undefined)",
4215
+ expected: "(__type.o4 | undefined)",
4152
4216
  value: input.metadata
4153
- })].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
4217
+ })].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
4154
4218
  const value = input[key];
4155
4219
  if (undefined === value)
4156
4220
  return true;
4157
4221
  return true;
4158
- }).every(flag => flag)].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4222
+ }).every(flag => flag)].every(flag => flag); const $vo15 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4159
4223
  path: _path + ".name",
4160
4224
  expected: "string",
4161
4225
  value: input.name
@@ -6365,12 +6429,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6365
6429
  }
6366
6430
  async addToIpfs(payload) {
6367
6431
  try {
6368
- const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => undefined === input.contents || Array.isArray(input.contents) && input.contents.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)); 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); const $io2 = input => Object.keys(input).every(key => {
6432
+ const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => undefined === input.contents || Array.isArray(input.contents) && input.contents.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)); 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.utility || Array.isArray(input.utility) && input.utility.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); const $io2 = input => Object.keys(input).every(key => {
6369
6433
  const value = input[key];
6370
6434
  if (undefined === value)
6371
6435
  return true;
6372
6436
  return "string" === typeof value;
6373
- }); const $io3 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io4 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); 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); 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); 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); 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); const $io9 = input => true; 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); 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@84"] && Object.keys(input).every(key => {
6437
+ }); const $io3 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io4 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io5 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io6 = 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); const $io7 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io8(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); const $io8 = 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); const $io9 = 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 && $io10(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io11(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); const $io10 = input => true; const $io11 = 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 && $io12(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true); const $io12 = 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@84"] && Object.keys(input).every(key => {
6374
6438
  if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@84"].some(prop => key === prop))
6375
6439
  return true;
6376
6440
  const value = input[key];
@@ -6383,21 +6447,21 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6383
6447
  if (undefined !== input.name)
6384
6448
  return $io1(input);
6385
6449
  else if (undefined !== input.badgeIds)
6386
- return $io6(input);
6450
+ return $io7(input);
6387
6451
  else if (undefined !== input.leaves)
6388
- return $io8(input);
6452
+ return $io9(input);
6389
6453
  else
6390
- return $io5(input);
6454
+ return $io6(input);
6391
6455
  })(); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
6392
6456
  path: _path + ".contents",
6393
6457
  expected: "(Array<iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6394
6458
  value: input.contents
6395
- })) && input.contents.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6396
- path: _path + ".contents[" + _index7 + "]",
6459
+ })) && input.contents.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6460
+ path: _path + ".contents[" + _index8 + "]",
6397
6461
  expected: "(iBadgeMetadataDetails<NumberType> | iChallengeDetails<NumberType> | iCollectionMetadataDetails<NumberType> | iMetadata<NumberType>)",
6398
6462
  value: elem
6399
- })) && $vu0(elem, _path + ".contents[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
6400
- path: _path + ".contents[" + _index7 + "]",
6463
+ })) && $vu0(elem, _path + ".contents[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
6464
+ path: _path + ".contents[" + _index8 + "]",
6401
6465
  expected: "(iBadgeMetadataDetails<NumberType> | iChallengeDetails<NumberType> | iCollectionMetadataDetails<NumberType> | iMetadata<NumberType>)",
6402
6466
  value: elem
6403
6467
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6432,8 +6496,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6432
6496
  path: _path + ".tags",
6433
6497
  expected: "(Array<string> | undefined)",
6434
6498
  value: input.tags
6435
- })) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
6436
- path: _path + ".tags[" + _index8 + "]",
6499
+ })) && input.tags.map((elem, _index9) => "string" === typeof elem || $report(_exceptionable, {
6500
+ path: _path + ".tags[" + _index9 + "]",
6437
6501
  expected: "string",
6438
6502
  value: elem
6439
6503
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6460,18 +6524,34 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6460
6524
  path: _path + ".attributes",
6461
6525
  expected: "(Array<__type> | undefined)",
6462
6526
  value: input.attributes
6463
- })) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6464
- path: _path + ".attributes[" + _index9 + "]",
6527
+ })) && input.attributes.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6528
+ path: _path + ".attributes[" + _index10 + "]",
6465
6529
  expected: "__type.o2",
6466
6530
  value: elem
6467
- })) && $vo4(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
6468
- path: _path + ".attributes[" + _index9 + "]",
6531
+ })) && $vo4(elem, _path + ".attributes[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
6532
+ path: _path + ".attributes[" + _index10 + "]",
6469
6533
  expected: "__type.o2",
6470
6534
  value: elem
6471
6535
  })).every(flag => flag) || $report(_exceptionable, {
6472
6536
  path: _path + ".attributes",
6473
6537
  expected: "(Array<__type> | undefined)",
6474
6538
  value: input.attributes
6539
+ }), undefined === input.utility || (Array.isArray(input.utility) || $report(_exceptionable, {
6540
+ path: _path + ".utility",
6541
+ expected: "(Array<__type>.o1 | undefined)",
6542
+ value: input.utility
6543
+ })) && input.utility.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6544
+ path: _path + ".utility[" + _index11 + "]",
6545
+ expected: "__type.o3",
6546
+ value: elem
6547
+ })) && $vo5(elem, _path + ".utility[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
6548
+ path: _path + ".utility[" + _index11 + "]",
6549
+ expected: "__type.o3",
6550
+ value: elem
6551
+ })).every(flag => flag) || $report(_exceptionable, {
6552
+ path: _path + ".utility",
6553
+ expected: "(Array<__type>.o1 | undefined)",
6554
+ value: input.utility
6475
6555
  }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
6476
6556
  path: _path + ".fetchedAtBlock",
6477
6557
  expected: "(bigint | number | string | undefined)",
@@ -6513,7 +6593,23 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6513
6593
  path: _path + ".value",
6514
6594
  expected: "(boolean | number | string)",
6515
6595
  value: input.value
6516
- })].every(flag => flag); const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6596
+ })].every(flag => flag); const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
6597
+ path: _path + ".name",
6598
+ expected: "string",
6599
+ value: input.name
6600
+ }), "string" === typeof input.image || $report(_exceptionable, {
6601
+ path: _path + ".image",
6602
+ expected: "string",
6603
+ value: input.image
6604
+ }), "string" === typeof input.description || $report(_exceptionable, {
6605
+ path: _path + ".description",
6606
+ expected: "string",
6607
+ value: input.description
6608
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
6609
+ path: _path + ".url",
6610
+ expected: "(string | undefined)",
6611
+ value: input.url
6612
+ })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6517
6613
  path: _path + ".metadata",
6518
6614
  expected: "(iMetadata<NumberType> | undefined)",
6519
6615
  value: input.metadata
@@ -6537,16 +6633,16 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6537
6633
  path: _path + ".toUploadToIpfs",
6538
6634
  expected: "(boolean | undefined)",
6539
6635
  value: input.toUploadToIpfs
6540
- })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6636
+ })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6541
6637
  path: _path + ".badgeIds",
6542
6638
  expected: "Array<iUintRange<NumberType>>",
6543
6639
  value: input.badgeIds
6544
- })) && input.badgeIds.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6545
- path: _path + ".badgeIds[" + _index10 + "]",
6640
+ })) && input.badgeIds.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6641
+ path: _path + ".badgeIds[" + _index12 + "]",
6546
6642
  expected: "iUintRange<NumberType>",
6547
6643
  value: elem
6548
- })) && $vo7(elem, _path + ".badgeIds[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
6549
- path: _path + ".badgeIds[" + _index10 + "]",
6644
+ })) && $vo8(elem, _path + ".badgeIds[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
6645
+ path: _path + ".badgeIds[" + _index12 + "]",
6550
6646
  expected: "iUintRange<NumberType>",
6551
6647
  value: elem
6552
6648
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6577,7 +6673,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6577
6673
  path: _path + ".toUploadToIpfs",
6578
6674
  expected: "(boolean | undefined)",
6579
6675
  value: input.toUploadToIpfs
6580
- })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6676
+ })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6581
6677
  path: _path + ".start",
6582
6678
  expected: "(bigint | number | string)",
6583
6679
  value: input.start
@@ -6585,12 +6681,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6585
6681
  path: _path + ".end",
6586
6682
  expected: "(bigint | number | string)",
6587
6683
  value: input.end
6588
- })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
6684
+ })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
6589
6685
  path: _path + ".leaves",
6590
6686
  expected: "Array<string>",
6591
6687
  value: input.leaves
6592
- })) && input.leaves.map((elem, _index11) => "string" === typeof elem || $report(_exceptionable, {
6593
- path: _path + ".leaves[" + _index11 + "]",
6688
+ })) && input.leaves.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
6689
+ path: _path + ".leaves[" + _index13 + "]",
6594
6690
  expected: "string",
6595
6691
  value: elem
6596
6692
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6605,8 +6701,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6605
6701
  path: _path + ".preimages",
6606
6702
  expected: "(Array<string> | undefined)",
6607
6703
  value: input.preimages
6608
- })) && input.preimages.map((elem, _index12) => "string" === typeof elem || $report(_exceptionable, {
6609
- path: _path + ".preimages[" + _index12 + "]",
6704
+ })) && input.preimages.map((elem, _index14) => "string" === typeof elem || $report(_exceptionable, {
6705
+ path: _path + ".preimages[" + _index14 + "]",
6610
6706
  expected: "string",
6611
6707
  value: elem
6612
6708
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6621,7 +6717,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6621
6717
  path: _path + ".tree",
6622
6718
  expected: "(MerkleTree | undefined)",
6623
6719
  value: input.tree
6624
- })) && $vo9(input.tree, _path + ".tree", true && _exceptionable) || $report(_exceptionable, {
6720
+ })) && $vo10(input.tree, _path + ".tree", true && _exceptionable) || $report(_exceptionable, {
6625
6721
  path: _path + ".tree",
6626
6722
  expected: "(MerkleTree | undefined)",
6627
6723
  value: input.tree
@@ -6629,7 +6725,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6629
6725
  path: _path + ".treeOptions",
6630
6726
  expected: "(Options | undefined)",
6631
6727
  value: input.treeOptions
6632
- })) && $vo10(input.treeOptions, _path + ".treeOptions", true && _exceptionable) || $report(_exceptionable, {
6728
+ })) && $vo11(input.treeOptions, _path + ".treeOptions", true && _exceptionable) || $report(_exceptionable, {
6633
6729
  path: _path + ".treeOptions",
6634
6730
  expected: "(Options | undefined)",
6635
6731
  value: input.treeOptions
@@ -6641,7 +6737,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6641
6737
  path: _path + ".currCode",
6642
6738
  expected: "(bigint | number | string | undefined)",
6643
6739
  value: input.currCode
6644
- })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => [true].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => [undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd || $report(_exceptionable, {
6740
+ })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => [true].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => [undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd || $report(_exceptionable, {
6645
6741
  path: _path + ".duplicateOdd",
6646
6742
  expected: "(boolean | undefined)",
6647
6743
  value: input.duplicateOdd
@@ -6673,7 +6769,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6673
6769
  path: _path + ".fillDefaultHash",
6674
6770
  expected: "(\"buffer\".global.Buffer | string | undefined)",
6675
6771
  value: input.fillDefaultHash
6676
- })) && $vo11(input.fillDefaultHash, _path + ".fillDefaultHash", true && _exceptionable) || $report(_exceptionable, {
6772
+ })) && $vo12(input.fillDefaultHash, _path + ".fillDefaultHash", true && _exceptionable) || $report(_exceptionable, {
6677
6773
  path: _path + ".fillDefaultHash",
6678
6774
  expected: "(\"buffer\".global.Buffer | string | undefined)",
6679
6775
  value: input.fillDefaultHash
@@ -6685,7 +6781,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6685
6781
  path: _path + ".concatenator",
6686
6782
  expected: "undefined",
6687
6783
  value: input.concatenator
6688
- })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => ["number" === typeof input.BYTES_PER_ELEMENT || $report(_exceptionable, {
6784
+ })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => ["number" === typeof input.BYTES_PER_ELEMENT || $report(_exceptionable, {
6689
6785
  path: _path + ".BYTES_PER_ELEMENT",
6690
6786
  expected: "number",
6691
6787
  value: input.BYTES_PER_ELEMENT
@@ -6726,11 +6822,11 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6726
6822
  if (undefined !== input.name)
6727
6823
  return $vo1(input, _path, true && _exceptionable);
6728
6824
  else if (undefined !== input.badgeIds)
6729
- return $vo6(input, _path, true && _exceptionable);
6825
+ return $vo7(input, _path, true && _exceptionable);
6730
6826
  else if (undefined !== input.leaves)
6731
- return $vo8(input, _path, true && _exceptionable);
6827
+ return $vo9(input, _path, true && _exceptionable);
6732
6828
  else
6733
- return $vo5(input, _path, true && _exceptionable);
6829
+ return $vo6(input, _path, true && _exceptionable);
6734
6830
  })(); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
6735
6831
  if (false === __is(input)) {
6736
6832
  errors = [];
@@ -6784,21 +6880,21 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6784
6880
  if (undefined === value)
6785
6881
  return true;
6786
6882
  return true;
6787
- }); const $io16 = input => "string" === typeof input.name && "string" === typeof input.description; const $io17 = 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) && $io18(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io19(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io20(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); const $io18 = input => Object.keys(input).every(key => {
6883
+ }); const $io16 = input => "string" === typeof input.name && "string" === typeof input.description; const $io17 = 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) && $io18(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io19(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io20(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io21(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); const $io18 = input => Object.keys(input).every(key => {
6788
6884
  const value = input[key];
6789
6885
  if (undefined === value)
6790
6886
  return true;
6791
6887
  return "string" === typeof value;
6792
- }); const $io19 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io20 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.approvalDetails) || $report(_exceptionable, {
6888
+ }); const $io19 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io20 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io21 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.approvalDetails) || $report(_exceptionable, {
6793
6889
  path: _path + ".approvalDetails",
6794
6890
  expected: "Array<__type>",
6795
6891
  value: input.approvalDetails
6796
- })) && input.approvalDetails.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6797
- path: _path + ".approvalDetails[" + _index13 + "]",
6892
+ })) && input.approvalDetails.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6893
+ path: _path + ".approvalDetails[" + _index14 + "]",
6798
6894
  expected: "__type",
6799
6895
  value: elem
6800
- })) && $vo1(elem, _path + ".approvalDetails[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
6801
- path: _path + ".approvalDetails[" + _index13 + "]",
6896
+ })) && $vo1(elem, _path + ".approvalDetails[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
6897
+ path: _path + ".approvalDetails[" + _index14 + "]",
6802
6898
  expected: "__type",
6803
6899
  value: elem
6804
6900
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6817,12 +6913,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6817
6913
  path: _path + ".challengeInfoDetails",
6818
6914
  expected: "(Array<iChallengeInfoDetails<NumberType>> | undefined)",
6819
6915
  value: input.challengeInfoDetails
6820
- })) && input.challengeInfoDetails.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6821
- path: _path + ".challengeInfoDetails[" + _index14 + "]",
6916
+ })) && input.challengeInfoDetails.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6917
+ path: _path + ".challengeInfoDetails[" + _index15 + "]",
6822
6918
  expected: "iChallengeInfoDetails<NumberType>",
6823
6919
  value: elem
6824
- })) && $vo2(elem, _path + ".challengeInfoDetails[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
6825
- path: _path + ".challengeInfoDetails[" + _index14 + "]",
6920
+ })) && $vo2(elem, _path + ".challengeInfoDetails[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
6921
+ path: _path + ".challengeInfoDetails[" + _index15 + "]",
6826
6922
  expected: "iChallengeInfoDetails<NumberType>",
6827
6923
  value: elem
6828
6924
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6849,8 +6945,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6849
6945
  path: _path + ".leaves",
6850
6946
  expected: "Array<string>",
6851
6947
  value: input.leaves
6852
- })) && input.leaves.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
6853
- path: _path + ".leaves[" + _index15 + "]",
6948
+ })) && input.leaves.map((elem, _index16) => "string" === typeof elem || $report(_exceptionable, {
6949
+ path: _path + ".leaves[" + _index16 + "]",
6854
6950
  expected: "string",
6855
6951
  value: elem
6856
6952
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6865,8 +6961,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6865
6961
  path: _path + ".preimages",
6866
6962
  expected: "(Array<string> | undefined)",
6867
6963
  value: input.preimages
6868
- })) && input.preimages.map((elem, _index16) => "string" === typeof elem || $report(_exceptionable, {
6869
- path: _path + ".preimages[" + _index16 + "]",
6964
+ })) && input.preimages.map((elem, _index17) => "string" === typeof elem || $report(_exceptionable, {
6965
+ path: _path + ".preimages[" + _index17 + "]",
6870
6966
  expected: "string",
6871
6967
  value: elem
6872
6968
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7010,12 +7106,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7010
7106
  path: _path + ".plugins",
7011
7107
  expected: "Array<IntegrationPluginDetails<string>>",
7012
7108
  value: input.plugins
7013
- })) && input.plugins.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7014
- path: _path + ".plugins[" + _index17 + "]",
7109
+ })) && input.plugins.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7110
+ path: _path + ".plugins[" + _index18 + "]",
7015
7111
  expected: "IntegrationPluginDetails<string>",
7016
7112
  value: elem
7017
- })) && $vo14(elem, _path + ".plugins[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
7018
- path: _path + ".plugins[" + _index17 + "]",
7113
+ })) && $vo14(elem, _path + ".plugins[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
7114
+ path: _path + ".plugins[" + _index18 + "]",
7019
7115
  expected: "IntegrationPluginDetails<string>",
7020
7116
  value: elem
7021
7117
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7058,12 +7154,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7058
7154
  path: _path + ".manualBalances",
7059
7155
  expected: "Array<iManualBalances<NumberType>>",
7060
7156
  value: input.manualBalances
7061
- })) && input.manualBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7062
- path: _path + ".manualBalances[" + _index18 + "]",
7157
+ })) && input.manualBalances.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7158
+ path: _path + ".manualBalances[" + _index19 + "]",
7063
7159
  expected: "iManualBalances<NumberType>",
7064
7160
  value: elem
7065
- })) && $vo9(elem, _path + ".manualBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
7066
- path: _path + ".manualBalances[" + _index18 + "]",
7161
+ })) && $vo9(elem, _path + ".manualBalances[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
7162
+ path: _path + ".manualBalances[" + _index19 + "]",
7067
7163
  expected: "iManualBalances<NumberType>",
7068
7164
  value: elem
7069
7165
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7090,12 +7186,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7090
7186
  path: _path + ".balances",
7091
7187
  expected: "Array<iBalance<NumberType>>",
7092
7188
  value: input.balances
7093
- })) && input.balances.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7094
- path: _path + ".balances[" + _index19 + "]",
7189
+ })) && input.balances.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7190
+ path: _path + ".balances[" + _index20 + "]",
7095
7191
  expected: "iBalance<NumberType>",
7096
7192
  value: elem
7097
- })) && $vo10(elem, _path + ".balances[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
7098
- path: _path + ".balances[" + _index19 + "]",
7193
+ })) && $vo10(elem, _path + ".balances[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
7194
+ path: _path + ".balances[" + _index20 + "]",
7099
7195
  expected: "iBalance<NumberType>",
7100
7196
  value: elem
7101
7197
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7110,12 +7206,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7110
7206
  path: _path + ".badgeIds",
7111
7207
  expected: "Array<iUintRange<NumberType>>",
7112
7208
  value: input.badgeIds
7113
- })) && input.badgeIds.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7114
- path: _path + ".badgeIds[" + _index20 + "]",
7209
+ })) && input.badgeIds.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7210
+ path: _path + ".badgeIds[" + _index21 + "]",
7115
7211
  expected: "iUintRange<NumberType>",
7116
7212
  value: elem
7117
- })) && $vo11(elem, _path + ".badgeIds[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
7118
- path: _path + ".badgeIds[" + _index20 + "]",
7213
+ })) && $vo11(elem, _path + ".badgeIds[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
7214
+ path: _path + ".badgeIds[" + _index21 + "]",
7119
7215
  expected: "iUintRange<NumberType>",
7120
7216
  value: elem
7121
7217
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7126,12 +7222,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7126
7222
  path: _path + ".ownershipTimes",
7127
7223
  expected: "Array<iUintRange<NumberType>>",
7128
7224
  value: input.ownershipTimes
7129
- })) && input.ownershipTimes.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7130
- path: _path + ".ownershipTimes[" + _index21 + "]",
7225
+ })) && input.ownershipTimes.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7226
+ path: _path + ".ownershipTimes[" + _index22 + "]",
7131
7227
  expected: "iUintRange<NumberType>",
7132
7228
  value: elem
7133
- })) && $vo11(elem, _path + ".ownershipTimes[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
7134
- path: _path + ".ownershipTimes[" + _index21 + "]",
7229
+ })) && $vo11(elem, _path + ".ownershipTimes[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
7230
+ path: _path + ".ownershipTimes[" + _index22 + "]",
7135
7231
  expected: "iUintRange<NumberType>",
7136
7232
  value: elem
7137
7233
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7150,12 +7246,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7150
7246
  path: _path + ".startBalances",
7151
7247
  expected: "Array<iBalance<NumberType>>",
7152
7248
  value: input.startBalances
7153
- })) && input.startBalances.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7154
- path: _path + ".startBalances[" + _index22 + "]",
7249
+ })) && input.startBalances.map((elem, _index23) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7250
+ path: _path + ".startBalances[" + _index23 + "]",
7155
7251
  expected: "iBalance<NumberType>",
7156
7252
  value: elem
7157
- })) && $vo10(elem, _path + ".startBalances[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
7158
- path: _path + ".startBalances[" + _index22 + "]",
7253
+ })) && $vo10(elem, _path + ".startBalances[" + _index23 + "]", true && _exceptionable) || $report(_exceptionable, {
7254
+ path: _path + ".startBalances[" + _index23 + "]",
7159
7255
  expected: "iBalance<NumberType>",
7160
7256
  value: elem
7161
7257
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7303,8 +7399,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7303
7399
  path: _path + ".tags",
7304
7400
  expected: "(Array<string> | undefined)",
7305
7401
  value: input.tags
7306
- })) && input.tags.map((elem, _index23) => "string" === typeof elem || $report(_exceptionable, {
7307
- path: _path + ".tags[" + _index23 + "]",
7402
+ })) && input.tags.map((elem, _index24) => "string" === typeof elem || $report(_exceptionable, {
7403
+ path: _path + ".tags[" + _index24 + "]",
7308
7404
  expected: "string",
7309
7405
  value: elem
7310
7406
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7331,18 +7427,34 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7331
7427
  path: _path + ".attributes",
7332
7428
  expected: "(Array<__type>.o1 | undefined)",
7333
7429
  value: input.attributes
7334
- })) && input.attributes.map((elem, _index24) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7335
- path: _path + ".attributes[" + _index24 + "]",
7430
+ })) && input.attributes.map((elem, _index25) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7431
+ path: _path + ".attributes[" + _index25 + "]",
7336
7432
  expected: "__type.o4",
7337
7433
  value: elem
7338
- })) && $vo20(elem, _path + ".attributes[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
7339
- path: _path + ".attributes[" + _index24 + "]",
7434
+ })) && $vo20(elem, _path + ".attributes[" + _index25 + "]", true && _exceptionable) || $report(_exceptionable, {
7435
+ path: _path + ".attributes[" + _index25 + "]",
7340
7436
  expected: "__type.o4",
7341
7437
  value: elem
7342
7438
  })).every(flag => flag) || $report(_exceptionable, {
7343
7439
  path: _path + ".attributes",
7344
7440
  expected: "(Array<__type>.o1 | undefined)",
7345
7441
  value: input.attributes
7442
+ }), undefined === input.utility || (Array.isArray(input.utility) || $report(_exceptionable, {
7443
+ path: _path + ".utility",
7444
+ expected: "(Array<__type>.o2 | undefined)",
7445
+ value: input.utility
7446
+ })) && input.utility.map((elem, _index26) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7447
+ path: _path + ".utility[" + _index26 + "]",
7448
+ expected: "__type.o5",
7449
+ value: elem
7450
+ })) && $vo21(elem, _path + ".utility[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
7451
+ path: _path + ".utility[" + _index26 + "]",
7452
+ expected: "__type.o5",
7453
+ value: elem
7454
+ })).every(flag => flag) || $report(_exceptionable, {
7455
+ path: _path + ".utility",
7456
+ expected: "(Array<__type>.o2 | undefined)",
7457
+ value: input.utility
7346
7458
  }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
7347
7459
  path: _path + ".fetchedAtBlock",
7348
7460
  expected: "(bigint | number | string | undefined)",
@@ -7384,6 +7496,22 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7384
7496
  path: _path + ".value",
7385
7497
  expected: "(boolean | number | string)",
7386
7498
  value: input.value
7499
+ })].every(flag => flag); const $vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
7500
+ path: _path + ".name",
7501
+ expected: "string",
7502
+ value: input.name
7503
+ }), "string" === typeof input.image || $report(_exceptionable, {
7504
+ path: _path + ".image",
7505
+ expected: "string",
7506
+ value: input.image
7507
+ }), "string" === typeof input.description || $report(_exceptionable, {
7508
+ path: _path + ".description",
7509
+ expected: "string",
7510
+ value: input.description
7511
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
7512
+ path: _path + ".url",
7513
+ expected: "(string | undefined)",
7514
+ value: input.url
7387
7515
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
7388
7516
  if (false === __is(input)) {
7389
7517
  errors = [];