bitbadgesjs-sdk 0.4.3 → 0.4.5

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 && (undefined === input.image || "string" === typeof input.image); 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,11 @@ 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
+ }), undefined === input.image || "string" === typeof input.image || $report(_exceptionable, {
3682
+ path: _path + ".image",
3683
+ expected: "(string | undefined)",
3684
+ value: input.image
3685
+ })].every(flag => flag); const $vo15 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3650
3686
  const value = input[key];
3651
3687
  if (undefined === value)
3652
3688
  return true;
@@ -3743,26 +3779,26 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3743
3779
  }
3744
3780
  async updateClaims(payload) {
3745
3781
  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 => {
3782
+ 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
3783
  const value = input[key];
3748
3784
  if (undefined === value)
3749
3785
  return true;
3750
3786
  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 => {
3787
+ }); 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
3788
  const value = input[key];
3753
3789
  if (undefined === value)
3754
3790
  return true;
3755
3791
  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, {
3792
+ }); const $io15 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
3757
3793
  path: _path + ".claims",
3758
3794
  expected: "Array<Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">>",
3759
3795
  value: input.claims
3760
- })) && input.claims.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3761
- path: _path + ".claims[" + _index10 + "]",
3796
+ })) && input.claims.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3797
+ path: _path + ".claims[" + _index11 + "]",
3762
3798
  expected: "Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">",
3763
3799
  value: elem
3764
- })) && $vo1(elem, _path + ".claims[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
3765
- path: _path + ".claims[" + _index10 + "]",
3800
+ })) && $vo1(elem, _path + ".claims[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
3801
+ path: _path + ".claims[" + _index11 + "]",
3766
3802
  expected: "Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">",
3767
3803
  value: elem
3768
3804
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3801,7 +3837,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3801
3837
  path: _path + ".balancesToSet",
3802
3838
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3803
3839
  value: input.balancesToSet
3804
- })) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3840
+ })) && $vo7(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3805
3841
  path: _path + ".balancesToSet",
3806
3842
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3807
3843
  value: input.balancesToSet
@@ -3809,12 +3845,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3809
3845
  path: _path + ".plugins",
3810
3846
  expected: "Array<IntegrationPluginDetails<string>>",
3811
3847
  value: input.plugins
3812
- })) && input.plugins.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3813
- path: _path + ".plugins[" + _index11 + "]",
3848
+ })) && input.plugins.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3849
+ path: _path + ".plugins[" + _index12 + "]",
3814
3850
  expected: "IntegrationPluginDetails<string>",
3815
3851
  value: elem
3816
- })) && $vo12(elem, _path + ".plugins[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
3817
- path: _path + ".plugins[" + _index11 + "]",
3852
+ })) && $vo13(elem, _path + ".plugins[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
3853
+ path: _path + ".plugins[" + _index12 + "]",
3818
3854
  expected: "IntegrationPluginDetails<string>",
3819
3855
  value: elem
3820
3856
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3861,8 +3897,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3861
3897
  path: _path + ".tags",
3862
3898
  expected: "(Array<string> | undefined)",
3863
3899
  value: input.tags
3864
- })) && input.tags.map((elem, _index12) => "string" === typeof elem || $report(_exceptionable, {
3865
- path: _path + ".tags[" + _index12 + "]",
3900
+ })) && input.tags.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
3901
+ path: _path + ".tags[" + _index13 + "]",
3866
3902
  expected: "string",
3867
3903
  value: elem
3868
3904
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3889,18 +3925,34 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3889
3925
  path: _path + ".attributes",
3890
3926
  expected: "(Array<__type> | undefined)",
3891
3927
  value: input.attributes
3892
- })) && input.attributes.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3893
- path: _path + ".attributes[" + _index13 + "]",
3928
+ })) && input.attributes.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3929
+ path: _path + ".attributes[" + _index14 + "]",
3894
3930
  expected: "__type.o2",
3895
3931
  value: elem
3896
- })) && $vo5(elem, _path + ".attributes[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
3897
- path: _path + ".attributes[" + _index13 + "]",
3932
+ })) && $vo5(elem, _path + ".attributes[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
3933
+ path: _path + ".attributes[" + _index14 + "]",
3898
3934
  expected: "__type.o2",
3899
3935
  value: elem
3900
3936
  })).every(flag => flag) || $report(_exceptionable, {
3901
3937
  path: _path + ".attributes",
3902
3938
  expected: "(Array<__type> | undefined)",
3903
3939
  value: input.attributes
3940
+ }), undefined === input.utility || (Array.isArray(input.utility) || $report(_exceptionable, {
3941
+ path: _path + ".utility",
3942
+ expected: "(Array<__type>.o1 | undefined)",
3943
+ value: input.utility
3944
+ })) && input.utility.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3945
+ path: _path + ".utility[" + _index15 + "]",
3946
+ expected: "__type.o3",
3947
+ value: elem
3948
+ })) && $vo6(elem, _path + ".utility[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
3949
+ path: _path + ".utility[" + _index15 + "]",
3950
+ expected: "__type.o3",
3951
+ value: elem
3952
+ })).every(flag => flag) || $report(_exceptionable, {
3953
+ path: _path + ".utility",
3954
+ expected: "(Array<__type>.o1 | undefined)",
3955
+ value: input.utility
3904
3956
  }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
3905
3957
  path: _path + ".fetchedAtBlock",
3906
3958
  expected: "(bigint | number | string | undefined)",
@@ -3942,16 +3994,32 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3942
3994
  path: _path + ".value",
3943
3995
  expected: "(boolean | number | string)",
3944
3996
  value: input.value
3945
- })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3997
+ })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3998
+ path: _path + ".name",
3999
+ expected: "string",
4000
+ value: input.name
4001
+ }), "string" === typeof input.image || $report(_exceptionable, {
4002
+ path: _path + ".image",
4003
+ expected: "string",
4004
+ value: input.image
4005
+ }), "string" === typeof input.description || $report(_exceptionable, {
4006
+ path: _path + ".description",
4007
+ expected: "string",
4008
+ value: input.description
4009
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
4010
+ path: _path + ".url",
4011
+ expected: "(string | undefined)",
4012
+ value: input.url
4013
+ })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3946
4014
  path: _path + ".manualBalances",
3947
4015
  expected: "Array<iManualBalances<NumberType>>",
3948
4016
  value: input.manualBalances
3949
- })) && input.manualBalances.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3950
- path: _path + ".manualBalances[" + _index14 + "]",
4017
+ })) && input.manualBalances.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4018
+ path: _path + ".manualBalances[" + _index16 + "]",
3951
4019
  expected: "iManualBalances<NumberType>",
3952
4020
  value: elem
3953
- })) && $vo7(elem, _path + ".manualBalances[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
3954
- path: _path + ".manualBalances[" + _index14 + "]",
4021
+ })) && $vo8(elem, _path + ".manualBalances[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
4022
+ path: _path + ".manualBalances[" + _index16 + "]",
3955
4023
  expected: "iManualBalances<NumberType>",
3956
4024
  value: elem
3957
4025
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3962,7 +4030,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3962
4030
  path: _path + ".incrementedBalances",
3963
4031
  expected: "iIncrementedBalances<NumberType>",
3964
4032
  value: input.incrementedBalances
3965
- })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4033
+ })) && $vo11(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3966
4034
  path: _path + ".incrementedBalances",
3967
4035
  expected: "iIncrementedBalances<NumberType>",
3968
4036
  value: input.incrementedBalances
@@ -3970,27 +4038,27 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3970
4038
  path: _path + ".orderCalculationMethod",
3971
4039
  expected: "iPredeterminedOrderCalculationMethod",
3972
4040
  value: input.orderCalculationMethod
3973
- })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4041
+ })) && $vo12(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3974
4042
  path: _path + ".orderCalculationMethod",
3975
4043
  expected: "iPredeterminedOrderCalculationMethod",
3976
4044
  value: input.orderCalculationMethod
3977
- })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4045
+ })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3978
4046
  path: _path + ".balances",
3979
4047
  expected: "Array<iBalance<NumberType>>",
3980
4048
  value: input.balances
3981
- })) && input.balances.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3982
- path: _path + ".balances[" + _index15 + "]",
4049
+ })) && input.balances.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4050
+ path: _path + ".balances[" + _index17 + "]",
3983
4051
  expected: "iBalance<NumberType>",
3984
4052
  value: elem
3985
- })) && $vo8(elem, _path + ".balances[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
3986
- path: _path + ".balances[" + _index15 + "]",
4053
+ })) && $vo9(elem, _path + ".balances[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
4054
+ path: _path + ".balances[" + _index17 + "]",
3987
4055
  expected: "iBalance<NumberType>",
3988
4056
  value: elem
3989
4057
  })).every(flag => flag) || $report(_exceptionable, {
3990
4058
  path: _path + ".balances",
3991
4059
  expected: "Array<iBalance<NumberType>>",
3992
4060
  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, {
4061
+ })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3994
4062
  path: _path + ".amount",
3995
4063
  expected: "(bigint | number | string)",
3996
4064
  value: input.amount
@@ -3998,12 +4066,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3998
4066
  path: _path + ".badgeIds",
3999
4067
  expected: "Array<iUintRange<NumberType>>",
4000
4068
  value: input.badgeIds
4001
- })) && input.badgeIds.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4002
- path: _path + ".badgeIds[" + _index16 + "]",
4069
+ })) && input.badgeIds.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4070
+ path: _path + ".badgeIds[" + _index18 + "]",
4003
4071
  expected: "iUintRange<NumberType>",
4004
4072
  value: elem
4005
- })) && $vo9(elem, _path + ".badgeIds[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
4006
- path: _path + ".badgeIds[" + _index16 + "]",
4073
+ })) && $vo10(elem, _path + ".badgeIds[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
4074
+ path: _path + ".badgeIds[" + _index18 + "]",
4007
4075
  expected: "iUintRange<NumberType>",
4008
4076
  value: elem
4009
4077
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4014,19 +4082,19 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4014
4082
  path: _path + ".ownershipTimes",
4015
4083
  expected: "Array<iUintRange<NumberType>>",
4016
4084
  value: input.ownershipTimes
4017
- })) && input.ownershipTimes.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4018
- path: _path + ".ownershipTimes[" + _index17 + "]",
4085
+ })) && input.ownershipTimes.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4086
+ path: _path + ".ownershipTimes[" + _index19 + "]",
4019
4087
  expected: "iUintRange<NumberType>",
4020
4088
  value: elem
4021
- })) && $vo9(elem, _path + ".ownershipTimes[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
4022
- path: _path + ".ownershipTimes[" + _index17 + "]",
4089
+ })) && $vo10(elem, _path + ".ownershipTimes[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
4090
+ path: _path + ".ownershipTimes[" + _index19 + "]",
4023
4091
  expected: "iUintRange<NumberType>",
4024
4092
  value: elem
4025
4093
  })).every(flag => flag) || $report(_exceptionable, {
4026
4094
  path: _path + ".ownershipTimes",
4027
4095
  expected: "Array<iUintRange<NumberType>>",
4028
4096
  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, {
4097
+ })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
4030
4098
  path: _path + ".start",
4031
4099
  expected: "(bigint | number | string)",
4032
4100
  value: input.start
@@ -4034,16 +4102,16 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4034
4102
  path: _path + ".end",
4035
4103
  expected: "(bigint | number | string)",
4036
4104
  value: input.end
4037
- })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4105
+ })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4038
4106
  path: _path + ".startBalances",
4039
4107
  expected: "Array<iBalance<NumberType>>",
4040
4108
  value: input.startBalances
4041
- })) && input.startBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4042
- path: _path + ".startBalances[" + _index18 + "]",
4109
+ })) && input.startBalances.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4110
+ path: _path + ".startBalances[" + _index20 + "]",
4043
4111
  expected: "iBalance<NumberType>",
4044
4112
  value: elem
4045
- })) && $vo8(elem, _path + ".startBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
4046
- path: _path + ".startBalances[" + _index18 + "]",
4113
+ })) && $vo9(elem, _path + ".startBalances[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
4114
+ path: _path + ".startBalances[" + _index20 + "]",
4047
4115
  expected: "iBalance<NumberType>",
4048
4116
  value: elem
4049
4117
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4058,7 +4126,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4058
4126
  path: _path + ".incrementOwnershipTimesBy",
4059
4127
  expected: "(bigint | number | string)",
4060
4128
  value: input.incrementOwnershipTimesBy
4061
- })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4129
+ })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4062
4130
  path: _path + ".useOverallNumTransfers",
4063
4131
  expected: "boolean",
4064
4132
  value: input.useOverallNumTransfers
@@ -4082,11 +4150,11 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4082
4150
  path: _path + ".challengeTrackerId",
4083
4151
  expected: "string",
4084
4152
  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, {
4153
+ })].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
4086
4154
  path: _path + ".publicState",
4087
4155
  expected: "Record<string, any>",
4088
4156
  value: input.publicState
4089
- })) && $vo13(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
4157
+ })) && $vo14(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
4090
4158
  path: _path + ".publicState",
4091
4159
  expected: "Record<string, any>",
4092
4160
  value: input.publicState
@@ -4094,7 +4162,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4094
4162
  path: _path + ".privateState",
4095
4163
  expected: "(Record<string, any> | undefined)",
4096
4164
  value: input.privateState
4097
- })) && $vo13(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
4165
+ })) && $vo14(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
4098
4166
  path: _path + ".privateState",
4099
4167
  expected: "(Record<string, any> | undefined)",
4100
4168
  value: input.privateState
@@ -4106,7 +4174,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4106
4174
  path: _path + ".newState",
4107
4175
  expected: "(Record<string, any> | undefined)",
4108
4176
  value: input.newState
4109
- })) && $vo13(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
4177
+ })) && $vo14(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
4110
4178
  path: _path + ".newState",
4111
4179
  expected: "(Record<string, any> | undefined)",
4112
4180
  value: input.newState
@@ -4130,7 +4198,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4130
4198
  path: _path + ".publicParams",
4131
4199
  expected: "Record<string, any>",
4132
4200
  value: input.publicParams
4133
- })) && $vo13(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4201
+ })) && $vo14(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4134
4202
  path: _path + ".publicParams",
4135
4203
  expected: "Record<string, any>",
4136
4204
  value: input.publicParams
@@ -4138,24 +4206,24 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4138
4206
  path: _path + ".privateParams",
4139
4207
  expected: "Record<string, any>",
4140
4208
  value: input.privateParams
4141
- })) && $vo13(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4209
+ })) && $vo14(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4142
4210
  path: _path + ".privateParams",
4143
4211
  expected: "Record<string, any>",
4144
4212
  value: input.privateParams
4145
4213
  }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
4146
4214
  path: _path + ".metadata",
4147
- expected: "(__type.o3 | undefined)",
4215
+ expected: "(__type.o4 | undefined)",
4148
4216
  value: input.metadata
4149
- })) && $vo14(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
4217
+ })) && $vo15(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
4150
4218
  path: _path + ".metadata",
4151
- expected: "(__type.o3 | undefined)",
4219
+ expected: "(__type.o4 | undefined)",
4152
4220
  value: input.metadata
4153
- })].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
4221
+ })].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
4154
4222
  const value = input[key];
4155
4223
  if (undefined === value)
4156
4224
  return true;
4157
4225
  return true;
4158
- }).every(flag => flag)].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4226
+ }).every(flag => flag)].every(flag => flag); const $vo15 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4159
4227
  path: _path + ".name",
4160
4228
  expected: "string",
4161
4229
  value: input.name
@@ -4163,6 +4231,10 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4163
4231
  path: _path + ".description",
4164
4232
  expected: "string",
4165
4233
  value: input.description
4234
+ }), undefined === input.image || "string" === typeof input.image || $report(_exceptionable, {
4235
+ path: _path + ".image",
4236
+ expected: "(string | undefined)",
4237
+ value: input.image
4166
4238
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
4167
4239
  if (false === __is(input)) {
4168
4240
  errors = [];
@@ -4255,7 +4327,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4255
4327
  if (undefined === value)
4256
4328
  return true;
4257
4329
  return true;
4258
- }); const $io7 = input => "string" === typeof input.name && "string" === typeof input.description; const $io8 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io11(input.orderCalculationMethod)); const $io9 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io2(elem)); const $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io2(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 $vo0 = (input, _path, _exceptionable = true) => [undefined === input.balances || ("object" === typeof input.balances && null !== input.balances && false === Array.isArray(input.balances) || $report(_exceptionable, {
4330
+ }); const $io7 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io8 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io11(input.orderCalculationMethod)); const $io9 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io2(elem)); const $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io2(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 $vo0 = (input, _path, _exceptionable = true) => [undefined === input.balances || ("object" === typeof input.balances && null !== input.balances && false === Array.isArray(input.balances) || $report(_exceptionable, {
4259
4331
  path: _path + ".balances",
4260
4332
  expected: "(iOffChainBalancesMap<NumberType> | undefined)",
4261
4333
  value: input.balances
@@ -4469,6 +4541,10 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4469
4541
  path: _path + ".description",
4470
4542
  expected: "string",
4471
4543
  value: input.description
4544
+ }), undefined === input.image || "string" === typeof input.image || $report(_exceptionable, {
4545
+ path: _path + ".image",
4546
+ expected: "(string | undefined)",
4547
+ value: input.image
4472
4548
  })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
4473
4549
  path: _path + ".manualBalances",
4474
4550
  expected: "Array<iManualBalances<NumberType>>",
@@ -6365,12 +6441,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6365
6441
  }
6366
6442
  async addToIpfs(payload) {
6367
6443
  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 => {
6444
+ 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
6445
  const value = input[key];
6370
6446
  if (undefined === value)
6371
6447
  return true;
6372
6448
  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 => {
6449
+ }); 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
6450
  if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@84"].some(prop => key === prop))
6375
6451
  return true;
6376
6452
  const value = input[key];
@@ -6383,21 +6459,21 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6383
6459
  if (undefined !== input.name)
6384
6460
  return $io1(input);
6385
6461
  else if (undefined !== input.badgeIds)
6386
- return $io6(input);
6462
+ return $io7(input);
6387
6463
  else if (undefined !== input.leaves)
6388
- return $io8(input);
6464
+ return $io9(input);
6389
6465
  else
6390
- return $io5(input);
6466
+ return $io6(input);
6391
6467
  })(); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
6392
6468
  path: _path + ".contents",
6393
6469
  expected: "(Array<iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6394
6470
  value: input.contents
6395
- })) && input.contents.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6396
- path: _path + ".contents[" + _index7 + "]",
6471
+ })) && input.contents.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6472
+ path: _path + ".contents[" + _index8 + "]",
6397
6473
  expected: "(iBadgeMetadataDetails<NumberType> | iChallengeDetails<NumberType> | iCollectionMetadataDetails<NumberType> | iMetadata<NumberType>)",
6398
6474
  value: elem
6399
- })) && $vu0(elem, _path + ".contents[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
6400
- path: _path + ".contents[" + _index7 + "]",
6475
+ })) && $vu0(elem, _path + ".contents[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
6476
+ path: _path + ".contents[" + _index8 + "]",
6401
6477
  expected: "(iBadgeMetadataDetails<NumberType> | iChallengeDetails<NumberType> | iCollectionMetadataDetails<NumberType> | iMetadata<NumberType>)",
6402
6478
  value: elem
6403
6479
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6432,8 +6508,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6432
6508
  path: _path + ".tags",
6433
6509
  expected: "(Array<string> | undefined)",
6434
6510
  value: input.tags
6435
- })) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
6436
- path: _path + ".tags[" + _index8 + "]",
6511
+ })) && input.tags.map((elem, _index9) => "string" === typeof elem || $report(_exceptionable, {
6512
+ path: _path + ".tags[" + _index9 + "]",
6437
6513
  expected: "string",
6438
6514
  value: elem
6439
6515
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6460,18 +6536,34 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6460
6536
  path: _path + ".attributes",
6461
6537
  expected: "(Array<__type> | undefined)",
6462
6538
  value: input.attributes
6463
- })) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6464
- path: _path + ".attributes[" + _index9 + "]",
6539
+ })) && input.attributes.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6540
+ path: _path + ".attributes[" + _index10 + "]",
6465
6541
  expected: "__type.o2",
6466
6542
  value: elem
6467
- })) && $vo4(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
6468
- path: _path + ".attributes[" + _index9 + "]",
6543
+ })) && $vo4(elem, _path + ".attributes[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
6544
+ path: _path + ".attributes[" + _index10 + "]",
6469
6545
  expected: "__type.o2",
6470
6546
  value: elem
6471
6547
  })).every(flag => flag) || $report(_exceptionable, {
6472
6548
  path: _path + ".attributes",
6473
6549
  expected: "(Array<__type> | undefined)",
6474
6550
  value: input.attributes
6551
+ }), undefined === input.utility || (Array.isArray(input.utility) || $report(_exceptionable, {
6552
+ path: _path + ".utility",
6553
+ expected: "(Array<__type>.o1 | undefined)",
6554
+ value: input.utility
6555
+ })) && input.utility.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6556
+ path: _path + ".utility[" + _index11 + "]",
6557
+ expected: "__type.o3",
6558
+ value: elem
6559
+ })) && $vo5(elem, _path + ".utility[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
6560
+ path: _path + ".utility[" + _index11 + "]",
6561
+ expected: "__type.o3",
6562
+ value: elem
6563
+ })).every(flag => flag) || $report(_exceptionable, {
6564
+ path: _path + ".utility",
6565
+ expected: "(Array<__type>.o1 | undefined)",
6566
+ value: input.utility
6475
6567
  }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
6476
6568
  path: _path + ".fetchedAtBlock",
6477
6569
  expected: "(bigint | number | string | undefined)",
@@ -6513,7 +6605,23 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6513
6605
  path: _path + ".value",
6514
6606
  expected: "(boolean | number | string)",
6515
6607
  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, {
6608
+ })].every(flag => flag); const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
6609
+ path: _path + ".name",
6610
+ expected: "string",
6611
+ value: input.name
6612
+ }), "string" === typeof input.image || $report(_exceptionable, {
6613
+ path: _path + ".image",
6614
+ expected: "string",
6615
+ value: input.image
6616
+ }), "string" === typeof input.description || $report(_exceptionable, {
6617
+ path: _path + ".description",
6618
+ expected: "string",
6619
+ value: input.description
6620
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
6621
+ path: _path + ".url",
6622
+ expected: "(string | undefined)",
6623
+ value: input.url
6624
+ })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6517
6625
  path: _path + ".metadata",
6518
6626
  expected: "(iMetadata<NumberType> | undefined)",
6519
6627
  value: input.metadata
@@ -6537,16 +6645,16 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6537
6645
  path: _path + ".toUploadToIpfs",
6538
6646
  expected: "(boolean | undefined)",
6539
6647
  value: input.toUploadToIpfs
6540
- })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6648
+ })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6541
6649
  path: _path + ".badgeIds",
6542
6650
  expected: "Array<iUintRange<NumberType>>",
6543
6651
  value: input.badgeIds
6544
- })) && input.badgeIds.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6545
- path: _path + ".badgeIds[" + _index10 + "]",
6652
+ })) && input.badgeIds.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6653
+ path: _path + ".badgeIds[" + _index12 + "]",
6546
6654
  expected: "iUintRange<NumberType>",
6547
6655
  value: elem
6548
- })) && $vo7(elem, _path + ".badgeIds[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
6549
- path: _path + ".badgeIds[" + _index10 + "]",
6656
+ })) && $vo8(elem, _path + ".badgeIds[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
6657
+ path: _path + ".badgeIds[" + _index12 + "]",
6550
6658
  expected: "iUintRange<NumberType>",
6551
6659
  value: elem
6552
6660
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6577,7 +6685,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6577
6685
  path: _path + ".toUploadToIpfs",
6578
6686
  expected: "(boolean | undefined)",
6579
6687
  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, {
6688
+ })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6581
6689
  path: _path + ".start",
6582
6690
  expected: "(bigint | number | string)",
6583
6691
  value: input.start
@@ -6585,12 +6693,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6585
6693
  path: _path + ".end",
6586
6694
  expected: "(bigint | number | string)",
6587
6695
  value: input.end
6588
- })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
6696
+ })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
6589
6697
  path: _path + ".leaves",
6590
6698
  expected: "Array<string>",
6591
6699
  value: input.leaves
6592
- })) && input.leaves.map((elem, _index11) => "string" === typeof elem || $report(_exceptionable, {
6593
- path: _path + ".leaves[" + _index11 + "]",
6700
+ })) && input.leaves.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
6701
+ path: _path + ".leaves[" + _index13 + "]",
6594
6702
  expected: "string",
6595
6703
  value: elem
6596
6704
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6605,8 +6713,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6605
6713
  path: _path + ".preimages",
6606
6714
  expected: "(Array<string> | undefined)",
6607
6715
  value: input.preimages
6608
- })) && input.preimages.map((elem, _index12) => "string" === typeof elem || $report(_exceptionable, {
6609
- path: _path + ".preimages[" + _index12 + "]",
6716
+ })) && input.preimages.map((elem, _index14) => "string" === typeof elem || $report(_exceptionable, {
6717
+ path: _path + ".preimages[" + _index14 + "]",
6610
6718
  expected: "string",
6611
6719
  value: elem
6612
6720
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6621,7 +6729,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6621
6729
  path: _path + ".tree",
6622
6730
  expected: "(MerkleTree | undefined)",
6623
6731
  value: input.tree
6624
- })) && $vo9(input.tree, _path + ".tree", true && _exceptionable) || $report(_exceptionable, {
6732
+ })) && $vo10(input.tree, _path + ".tree", true && _exceptionable) || $report(_exceptionable, {
6625
6733
  path: _path + ".tree",
6626
6734
  expected: "(MerkleTree | undefined)",
6627
6735
  value: input.tree
@@ -6629,7 +6737,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6629
6737
  path: _path + ".treeOptions",
6630
6738
  expected: "(Options | undefined)",
6631
6739
  value: input.treeOptions
6632
- })) && $vo10(input.treeOptions, _path + ".treeOptions", true && _exceptionable) || $report(_exceptionable, {
6740
+ })) && $vo11(input.treeOptions, _path + ".treeOptions", true && _exceptionable) || $report(_exceptionable, {
6633
6741
  path: _path + ".treeOptions",
6634
6742
  expected: "(Options | undefined)",
6635
6743
  value: input.treeOptions
@@ -6641,7 +6749,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6641
6749
  path: _path + ".currCode",
6642
6750
  expected: "(bigint | number | string | undefined)",
6643
6751
  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, {
6752
+ })].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
6753
  path: _path + ".duplicateOdd",
6646
6754
  expected: "(boolean | undefined)",
6647
6755
  value: input.duplicateOdd
@@ -6673,7 +6781,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6673
6781
  path: _path + ".fillDefaultHash",
6674
6782
  expected: "(\"buffer\".global.Buffer | string | undefined)",
6675
6783
  value: input.fillDefaultHash
6676
- })) && $vo11(input.fillDefaultHash, _path + ".fillDefaultHash", true && _exceptionable) || $report(_exceptionable, {
6784
+ })) && $vo12(input.fillDefaultHash, _path + ".fillDefaultHash", true && _exceptionable) || $report(_exceptionable, {
6677
6785
  path: _path + ".fillDefaultHash",
6678
6786
  expected: "(\"buffer\".global.Buffer | string | undefined)",
6679
6787
  value: input.fillDefaultHash
@@ -6685,7 +6793,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6685
6793
  path: _path + ".concatenator",
6686
6794
  expected: "undefined",
6687
6795
  value: input.concatenator
6688
- })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => ["number" === typeof input.BYTES_PER_ELEMENT || $report(_exceptionable, {
6796
+ })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => ["number" === typeof input.BYTES_PER_ELEMENT || $report(_exceptionable, {
6689
6797
  path: _path + ".BYTES_PER_ELEMENT",
6690
6798
  expected: "number",
6691
6799
  value: input.BYTES_PER_ELEMENT
@@ -6726,11 +6834,11 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6726
6834
  if (undefined !== input.name)
6727
6835
  return $vo1(input, _path, true && _exceptionable);
6728
6836
  else if (undefined !== input.badgeIds)
6729
- return $vo6(input, _path, true && _exceptionable);
6837
+ return $vo7(input, _path, true && _exceptionable);
6730
6838
  else if (undefined !== input.leaves)
6731
- return $vo8(input, _path, true && _exceptionable);
6839
+ return $vo9(input, _path, true && _exceptionable);
6732
6840
  else
6733
- return $vo5(input, _path, true && _exceptionable);
6841
+ return $vo6(input, _path, true && _exceptionable);
6734
6842
  })(); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
6735
6843
  if (false === __is(input)) {
6736
6844
  errors = [];
@@ -6784,21 +6892,21 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6784
6892
  if (undefined === value)
6785
6893
  return true;
6786
6894
  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 => {
6895
+ }); const $io16 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); 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
6896
  const value = input[key];
6789
6897
  if (undefined === value)
6790
6898
  return true;
6791
6899
  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, {
6900
+ }); 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
6901
  path: _path + ".approvalDetails",
6794
6902
  expected: "Array<__type>",
6795
6903
  value: input.approvalDetails
6796
- })) && input.approvalDetails.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6797
- path: _path + ".approvalDetails[" + _index13 + "]",
6904
+ })) && input.approvalDetails.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6905
+ path: _path + ".approvalDetails[" + _index14 + "]",
6798
6906
  expected: "__type",
6799
6907
  value: elem
6800
- })) && $vo1(elem, _path + ".approvalDetails[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
6801
- path: _path + ".approvalDetails[" + _index13 + "]",
6908
+ })) && $vo1(elem, _path + ".approvalDetails[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
6909
+ path: _path + ".approvalDetails[" + _index14 + "]",
6802
6910
  expected: "__type",
6803
6911
  value: elem
6804
6912
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6817,12 +6925,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6817
6925
  path: _path + ".challengeInfoDetails",
6818
6926
  expected: "(Array<iChallengeInfoDetails<NumberType>> | undefined)",
6819
6927
  value: input.challengeInfoDetails
6820
- })) && input.challengeInfoDetails.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6821
- path: _path + ".challengeInfoDetails[" + _index14 + "]",
6928
+ })) && input.challengeInfoDetails.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6929
+ path: _path + ".challengeInfoDetails[" + _index15 + "]",
6822
6930
  expected: "iChallengeInfoDetails<NumberType>",
6823
6931
  value: elem
6824
- })) && $vo2(elem, _path + ".challengeInfoDetails[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
6825
- path: _path + ".challengeInfoDetails[" + _index14 + "]",
6932
+ })) && $vo2(elem, _path + ".challengeInfoDetails[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
6933
+ path: _path + ".challengeInfoDetails[" + _index15 + "]",
6826
6934
  expected: "iChallengeInfoDetails<NumberType>",
6827
6935
  value: elem
6828
6936
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6849,8 +6957,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6849
6957
  path: _path + ".leaves",
6850
6958
  expected: "Array<string>",
6851
6959
  value: input.leaves
6852
- })) && input.leaves.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
6853
- path: _path + ".leaves[" + _index15 + "]",
6960
+ })) && input.leaves.map((elem, _index16) => "string" === typeof elem || $report(_exceptionable, {
6961
+ path: _path + ".leaves[" + _index16 + "]",
6854
6962
  expected: "string",
6855
6963
  value: elem
6856
6964
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6865,8 +6973,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6865
6973
  path: _path + ".preimages",
6866
6974
  expected: "(Array<string> | undefined)",
6867
6975
  value: input.preimages
6868
- })) && input.preimages.map((elem, _index16) => "string" === typeof elem || $report(_exceptionable, {
6869
- path: _path + ".preimages[" + _index16 + "]",
6976
+ })) && input.preimages.map((elem, _index17) => "string" === typeof elem || $report(_exceptionable, {
6977
+ path: _path + ".preimages[" + _index17 + "]",
6870
6978
  expected: "string",
6871
6979
  value: elem
6872
6980
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7010,12 +7118,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7010
7118
  path: _path + ".plugins",
7011
7119
  expected: "Array<IntegrationPluginDetails<string>>",
7012
7120
  value: input.plugins
7013
- })) && input.plugins.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7014
- path: _path + ".plugins[" + _index17 + "]",
7121
+ })) && input.plugins.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7122
+ path: _path + ".plugins[" + _index18 + "]",
7015
7123
  expected: "IntegrationPluginDetails<string>",
7016
7124
  value: elem
7017
- })) && $vo14(elem, _path + ".plugins[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
7018
- path: _path + ".plugins[" + _index17 + "]",
7125
+ })) && $vo14(elem, _path + ".plugins[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
7126
+ path: _path + ".plugins[" + _index18 + "]",
7019
7127
  expected: "IntegrationPluginDetails<string>",
7020
7128
  value: elem
7021
7129
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7058,12 +7166,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7058
7166
  path: _path + ".manualBalances",
7059
7167
  expected: "Array<iManualBalances<NumberType>>",
7060
7168
  value: input.manualBalances
7061
- })) && input.manualBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7062
- path: _path + ".manualBalances[" + _index18 + "]",
7169
+ })) && input.manualBalances.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7170
+ path: _path + ".manualBalances[" + _index19 + "]",
7063
7171
  expected: "iManualBalances<NumberType>",
7064
7172
  value: elem
7065
- })) && $vo9(elem, _path + ".manualBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
7066
- path: _path + ".manualBalances[" + _index18 + "]",
7173
+ })) && $vo9(elem, _path + ".manualBalances[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
7174
+ path: _path + ".manualBalances[" + _index19 + "]",
7067
7175
  expected: "iManualBalances<NumberType>",
7068
7176
  value: elem
7069
7177
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7090,12 +7198,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7090
7198
  path: _path + ".balances",
7091
7199
  expected: "Array<iBalance<NumberType>>",
7092
7200
  value: input.balances
7093
- })) && input.balances.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7094
- path: _path + ".balances[" + _index19 + "]",
7201
+ })) && input.balances.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7202
+ path: _path + ".balances[" + _index20 + "]",
7095
7203
  expected: "iBalance<NumberType>",
7096
7204
  value: elem
7097
- })) && $vo10(elem, _path + ".balances[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
7098
- path: _path + ".balances[" + _index19 + "]",
7205
+ })) && $vo10(elem, _path + ".balances[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
7206
+ path: _path + ".balances[" + _index20 + "]",
7099
7207
  expected: "iBalance<NumberType>",
7100
7208
  value: elem
7101
7209
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7110,12 +7218,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7110
7218
  path: _path + ".badgeIds",
7111
7219
  expected: "Array<iUintRange<NumberType>>",
7112
7220
  value: input.badgeIds
7113
- })) && input.badgeIds.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7114
- path: _path + ".badgeIds[" + _index20 + "]",
7221
+ })) && input.badgeIds.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7222
+ path: _path + ".badgeIds[" + _index21 + "]",
7115
7223
  expected: "iUintRange<NumberType>",
7116
7224
  value: elem
7117
- })) && $vo11(elem, _path + ".badgeIds[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
7118
- path: _path + ".badgeIds[" + _index20 + "]",
7225
+ })) && $vo11(elem, _path + ".badgeIds[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
7226
+ path: _path + ".badgeIds[" + _index21 + "]",
7119
7227
  expected: "iUintRange<NumberType>",
7120
7228
  value: elem
7121
7229
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7126,12 +7234,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7126
7234
  path: _path + ".ownershipTimes",
7127
7235
  expected: "Array<iUintRange<NumberType>>",
7128
7236
  value: input.ownershipTimes
7129
- })) && input.ownershipTimes.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7130
- path: _path + ".ownershipTimes[" + _index21 + "]",
7237
+ })) && input.ownershipTimes.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7238
+ path: _path + ".ownershipTimes[" + _index22 + "]",
7131
7239
  expected: "iUintRange<NumberType>",
7132
7240
  value: elem
7133
- })) && $vo11(elem, _path + ".ownershipTimes[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
7134
- path: _path + ".ownershipTimes[" + _index21 + "]",
7241
+ })) && $vo11(elem, _path + ".ownershipTimes[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
7242
+ path: _path + ".ownershipTimes[" + _index22 + "]",
7135
7243
  expected: "iUintRange<NumberType>",
7136
7244
  value: elem
7137
7245
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7150,12 +7258,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7150
7258
  path: _path + ".startBalances",
7151
7259
  expected: "Array<iBalance<NumberType>>",
7152
7260
  value: input.startBalances
7153
- })) && input.startBalances.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7154
- path: _path + ".startBalances[" + _index22 + "]",
7261
+ })) && input.startBalances.map((elem, _index23) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7262
+ path: _path + ".startBalances[" + _index23 + "]",
7155
7263
  expected: "iBalance<NumberType>",
7156
7264
  value: elem
7157
- })) && $vo10(elem, _path + ".startBalances[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
7158
- path: _path + ".startBalances[" + _index22 + "]",
7265
+ })) && $vo10(elem, _path + ".startBalances[" + _index23 + "]", true && _exceptionable) || $report(_exceptionable, {
7266
+ path: _path + ".startBalances[" + _index23 + "]",
7159
7267
  expected: "iBalance<NumberType>",
7160
7268
  value: elem
7161
7269
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7275,6 +7383,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7275
7383
  path: _path + ".description",
7276
7384
  expected: "string",
7277
7385
  value: input.description
7386
+ }), undefined === input.image || "string" === typeof input.image || $report(_exceptionable, {
7387
+ path: _path + ".image",
7388
+ expected: "(string | undefined)",
7389
+ value: input.image
7278
7390
  })].every(flag => flag); const $vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
7279
7391
  path: _path + ".name",
7280
7392
  expected: "string",
@@ -7303,8 +7415,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7303
7415
  path: _path + ".tags",
7304
7416
  expected: "(Array<string> | undefined)",
7305
7417
  value: input.tags
7306
- })) && input.tags.map((elem, _index23) => "string" === typeof elem || $report(_exceptionable, {
7307
- path: _path + ".tags[" + _index23 + "]",
7418
+ })) && input.tags.map((elem, _index24) => "string" === typeof elem || $report(_exceptionable, {
7419
+ path: _path + ".tags[" + _index24 + "]",
7308
7420
  expected: "string",
7309
7421
  value: elem
7310
7422
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7331,18 +7443,34 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7331
7443
  path: _path + ".attributes",
7332
7444
  expected: "(Array<__type>.o1 | undefined)",
7333
7445
  value: input.attributes
7334
- })) && input.attributes.map((elem, _index24) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7335
- path: _path + ".attributes[" + _index24 + "]",
7446
+ })) && input.attributes.map((elem, _index25) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7447
+ path: _path + ".attributes[" + _index25 + "]",
7336
7448
  expected: "__type.o4",
7337
7449
  value: elem
7338
- })) && $vo20(elem, _path + ".attributes[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
7339
- path: _path + ".attributes[" + _index24 + "]",
7450
+ })) && $vo20(elem, _path + ".attributes[" + _index25 + "]", true && _exceptionable) || $report(_exceptionable, {
7451
+ path: _path + ".attributes[" + _index25 + "]",
7340
7452
  expected: "__type.o4",
7341
7453
  value: elem
7342
7454
  })).every(flag => flag) || $report(_exceptionable, {
7343
7455
  path: _path + ".attributes",
7344
7456
  expected: "(Array<__type>.o1 | undefined)",
7345
7457
  value: input.attributes
7458
+ }), undefined === input.utility || (Array.isArray(input.utility) || $report(_exceptionable, {
7459
+ path: _path + ".utility",
7460
+ expected: "(Array<__type>.o2 | undefined)",
7461
+ value: input.utility
7462
+ })) && input.utility.map((elem, _index26) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7463
+ path: _path + ".utility[" + _index26 + "]",
7464
+ expected: "__type.o5",
7465
+ value: elem
7466
+ })) && $vo21(elem, _path + ".utility[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
7467
+ path: _path + ".utility[" + _index26 + "]",
7468
+ expected: "__type.o5",
7469
+ value: elem
7470
+ })).every(flag => flag) || $report(_exceptionable, {
7471
+ path: _path + ".utility",
7472
+ expected: "(Array<__type>.o2 | undefined)",
7473
+ value: input.utility
7346
7474
  }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
7347
7475
  path: _path + ".fetchedAtBlock",
7348
7476
  expected: "(bigint | number | string | undefined)",
@@ -7384,6 +7512,22 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7384
7512
  path: _path + ".value",
7385
7513
  expected: "(boolean | number | string)",
7386
7514
  value: input.value
7515
+ })].every(flag => flag); const $vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
7516
+ path: _path + ".name",
7517
+ expected: "string",
7518
+ value: input.name
7519
+ }), "string" === typeof input.image || $report(_exceptionable, {
7520
+ path: _path + ".image",
7521
+ expected: "string",
7522
+ value: input.image
7523
+ }), "string" === typeof input.description || $report(_exceptionable, {
7524
+ path: _path + ".description",
7525
+ expected: "string",
7526
+ value: input.description
7527
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
7528
+ path: _path + ".url",
7529
+ expected: "(string | undefined)",
7530
+ value: input.url
7387
7531
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
7388
7532
  if (false === __is(input)) {
7389
7533
  errors = [];