bitbadgesjs-sdk 0.4.2 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/cjs/api-indexer/BitBadgesApi.d.ts +5 -1
  2. package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
  3. package/dist/cjs/api-indexer/BitBadgesApi.js +514 -190
  4. package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
  5. package/dist/cjs/api-indexer/docs/docs.d.ts +14 -1
  6. package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
  7. package/dist/cjs/api-indexer/docs/docs.js +23 -1
  8. package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
  9. package/dist/cjs/api-indexer/docs/interfaces.d.ts +7 -0
  10. package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
  11. package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
  12. package/dist/cjs/api-indexer/metadata/metadata.d.ts +12 -0
  13. package/dist/cjs/api-indexer/metadata/metadata.d.ts.map +1 -1
  14. package/dist/cjs/api-indexer/metadata/metadata.js +1 -0
  15. package/dist/cjs/api-indexer/metadata/metadata.js.map +1 -1
  16. package/dist/cjs/api-indexer/requests/requests.d.ts +53 -0
  17. package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
  18. package/dist/cjs/api-indexer/requests/requests.js +26 -1
  19. package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
  20. package/dist/cjs/api-indexer/requests/routes.d.ts +2 -0
  21. package/dist/cjs/api-indexer/requests/routes.d.ts.map +1 -1
  22. package/dist/cjs/api-indexer/requests/routes.js +2 -0
  23. package/dist/cjs/api-indexer/requests/routes.js.map +1 -1
  24. package/dist/esm/api-indexer/BitBadgesApi.d.ts +5 -1
  25. package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
  26. package/dist/esm/api-indexer/BitBadgesApi.js +515 -191
  27. package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
  28. package/dist/esm/api-indexer/docs/docs.d.ts +14 -1
  29. package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
  30. package/dist/esm/api-indexer/docs/docs.js +28 -0
  31. package/dist/esm/api-indexer/docs/docs.js.map +1 -1
  32. package/dist/esm/api-indexer/docs/interfaces.d.ts +7 -0
  33. package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
  34. package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
  35. package/dist/esm/api-indexer/metadata/metadata.d.ts +12 -0
  36. package/dist/esm/api-indexer/metadata/metadata.d.ts.map +1 -1
  37. package/dist/esm/api-indexer/metadata/metadata.js +2 -0
  38. package/dist/esm/api-indexer/metadata/metadata.js.map +1 -1
  39. package/dist/esm/api-indexer/requests/requests.d.ts +53 -0
  40. package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
  41. package/dist/esm/api-indexer/requests/requests.js +25 -0
  42. package/dist/esm/api-indexer/requests/requests.js.map +1 -1
  43. package/dist/esm/api-indexer/requests/routes.d.ts +2 -0
  44. package/dist/esm/api-indexer/requests/routes.d.ts.map +1 -1
  45. package/dist/esm/api-indexer/requests/routes.js +2 -0
  46. package/dist/esm/api-indexer/requests/routes.js.map +1 -1
  47. package/package.json +1 -1
@@ -5,7 +5,7 @@ import { BitBadgesUserInfo } from './BitBadgesUserInfo.js';
5
5
  import { BaseBitBadgesApi } from './base.js';
6
6
  import { FilterSuggestionsSuccessResponse } from './requests/collections.js';
7
7
  import { GetMapValuesSuccessResponse, GetMapsSuccessResponse } from './requests/maps.js';
8
- import { AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStorageSuccessResponse, AddToIpfsSuccessResponse, BroadcastTxSuccessResponse, CheckSignInStatusSuccessResponse, CompleteClaimSuccessResponse, CreateAttestationProofSuccessResponse, CreateAttestationSuccessResponse, CreateClaimSuccessResponse, CreateDeveloperAppSuccessResponse, CreateInternalActionSuccessResponse, CreatePaymentIntentSuccessResponse, CreatePluginSuccessResponse, CreateSIWBBRequestSuccessResponse, DeleteAttestationProofSuccessResponse, DeleteAttestationSuccessResponse, DeleteClaimSuccessResponse, DeleteDeveloperAppSuccessResponse, DeleteInternalActionSuccessResponse, DeletePluginSuccessResponse, DeleteSIWBBRequestSuccessResponse, ExchangeSIWBBAuthorizationCodeSuccessResponse, FetchMetadataDirectlySuccessResponse, GenerateAppleWalletPassSuccessResponse, GenerateGoogleWalletSuccessResponse, GenericBlockinVerifySuccessResponse, GenericVerifyAssetsSuccessResponse, GetActiveAuthorizationsSuccessResponse, GetAttestationProofSuccessResponse, GetAttestationSuccessResponse, GetBrowseCollectionsSuccessResponse, GetClaimAlertsForCollectionSuccessResponse, GetClaimAttemptStatusSuccessResponse, GetClaimsSuccessResponse, GetDeveloperAppSuccessResponse, GetInternalActionSuccessResponse, GetPluginSuccessResponse, GetReservedClaimCodesSuccessResponse, GetSIWBBRequestsForDeveloperAppSuccessResponse, GetSearchSuccessResponse, GetSignInChallengeSuccessResponse, GetStatusSuccessResponse, GetTokensFromFaucetSuccessResponse, OauthRevokeSuccessResponse, RotateSIWBBRequestSuccessResponse, SendClaimAlertsSuccessResponse, SignOutSuccessResponse, SimulateClaimSuccessResponse, SimulateTxSuccessResponse, UpdateAccountInfoSuccessResponse, UpdateAttestationSuccessResponse, UpdateClaimSuccessResponse, UpdateDeveloperAppSuccessResponse, UpdateInternalActionSuccessResponse, UpdatePluginSuccessResponse, VerifySignInSuccessResponse } from './requests/requests.js';
8
+ import { AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStorageSuccessResponse, AddToIpfsSuccessResponse, BroadcastTxSuccessResponse, CheckSignInStatusSuccessResponse, CompleteClaimSuccessResponse, CreateAttestationProofSuccessResponse, CreateAttestationSuccessResponse, CreateClaimSuccessResponse, CreateDeveloperAppSuccessResponse, CreateGatedContentSuccessResponse, CreateInternalActionSuccessResponse, CreatePaymentIntentSuccessResponse, CreatePluginSuccessResponse, CreateSIWBBRequestSuccessResponse, DeleteAttestationProofSuccessResponse, DeleteAttestationSuccessResponse, DeleteClaimSuccessResponse, DeleteDeveloperAppSuccessResponse, DeleteGatedContentSuccessResponse, DeleteInternalActionSuccessResponse, DeletePluginSuccessResponse, DeleteSIWBBRequestSuccessResponse, ExchangeSIWBBAuthorizationCodeSuccessResponse, FetchMetadataDirectlySuccessResponse, GenerateAppleWalletPassSuccessResponse, GenerateGoogleWalletSuccessResponse, GenericBlockinVerifySuccessResponse, GenericVerifyAssetsSuccessResponse, GetActiveAuthorizationsSuccessResponse, GetAttestationProofSuccessResponse, GetAttestationSuccessResponse, GetBrowseCollectionsSuccessResponse, GetClaimAlertsForCollectionSuccessResponse, GetClaimAttemptStatusSuccessResponse, GetClaimsSuccessResponse, GetDeveloperAppSuccessResponse, GetGatedContentSuccessResponse, GetInternalActionSuccessResponse, GetPluginSuccessResponse, GetReservedClaimCodesSuccessResponse, GetSIWBBRequestsForDeveloperAppSuccessResponse, GetSearchSuccessResponse, GetSignInChallengeSuccessResponse, GetStatusSuccessResponse, GetTokensFromFaucetSuccessResponse, OauthRevokeSuccessResponse, RotateSIWBBRequestSuccessResponse, SendClaimAlertsSuccessResponse, SignOutSuccessResponse, SimulateClaimSuccessResponse, SimulateTxSuccessResponse, UpdateAccountInfoSuccessResponse, UpdateAttestationSuccessResponse, UpdateClaimSuccessResponse, UpdateDeveloperAppSuccessResponse, UpdateGatedContentSuccessResponse, UpdateInternalActionSuccessResponse, UpdatePluginSuccessResponse, VerifySignInSuccessResponse } from './requests/requests.js';
9
9
  import { BitBadgesApiRoutes } from './requests/routes.js';
10
10
  export class BitBadgesAPI extends BaseBitBadgesApi {
11
11
  constructor(apiDetails) {
@@ -3225,12 +3225,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3225
3225
  }
3226
3226
  async createClaims(payload) {
3227
3227
  try {
3228
- const validateRes = (() => { const $join = typia.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 => {
3228
+ const validateRes = (() => { const $join = typia.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 => {
3229
3229
  const value = input[key];
3230
3230
  if (undefined === value)
3231
3231
  return true;
3232
3232
  return "string" === typeof value;
3233
- }); 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 => {
3233
+ }); const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io5 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io6 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io7 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io11(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io12(input.orderCalculationMethod)); const $io8 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)); const $io9 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io10(elem))); const $io10 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io11 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy); const $io12 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $io13 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io14(input.metadata)) && "string" === typeof input.version && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io15(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io15(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io15(input.privateParams)); const $io14 = input => "string" === typeof input.name && "string" === typeof input.description; const $io15 = input => Object.keys(input).every(key => {
3234
3234
  const value = input[key];
3235
3235
  if (undefined === value)
3236
3236
  return true;
@@ -3239,12 +3239,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3239
3239
  path: _path + ".claims",
3240
3240
  expected: "Array<CreateClaimRequest<NumberType>>",
3241
3241
  value: input.claims
3242
- })) && input.claims.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3243
- path: _path + ".claims[" + _index10 + "]",
3242
+ })) && input.claims.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3243
+ path: _path + ".claims[" + _index11 + "]",
3244
3244
  expected: "CreateClaimRequest<NumberType>",
3245
3245
  value: elem
3246
- })) && $vo1(elem, _path + ".claims[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
3247
- path: _path + ".claims[" + _index10 + "]",
3246
+ })) && $vo1(elem, _path + ".claims[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
3247
+ path: _path + ".claims[" + _index11 + "]",
3248
3248
  expected: "CreateClaimRequest<NumberType>",
3249
3249
  value: elem
3250
3250
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3295,7 +3295,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3295
3295
  path: _path + ".balancesToSet",
3296
3296
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3297
3297
  value: input.balancesToSet
3298
- })) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3298
+ })) && $vo7(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3299
3299
  path: _path + ".balancesToSet",
3300
3300
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3301
3301
  value: input.balancesToSet
@@ -3319,12 +3319,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3319
3319
  path: _path + ".plugins",
3320
3320
  expected: "Array<ManagePluginRequest>",
3321
3321
  value: input.plugins
3322
- })) && input.plugins.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3323
- path: _path + ".plugins[" + _index11 + "]",
3322
+ })) && input.plugins.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3323
+ path: _path + ".plugins[" + _index12 + "]",
3324
3324
  expected: "ManagePluginRequest",
3325
3325
  value: elem
3326
- })) && $vo12(elem, _path + ".plugins[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
3327
- path: _path + ".plugins[" + _index11 + "]",
3326
+ })) && $vo13(elem, _path + ".plugins[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
3327
+ path: _path + ".plugins[" + _index12 + "]",
3328
3328
  expected: "ManagePluginRequest",
3329
3329
  value: elem
3330
3330
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3359,8 +3359,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3359
3359
  path: _path + ".tags",
3360
3360
  expected: "(Array<string> | undefined)",
3361
3361
  value: input.tags
3362
- })) && input.tags.map((elem, _index12) => "string" === typeof elem || $report(_exceptionable, {
3363
- path: _path + ".tags[" + _index12 + "]",
3362
+ })) && input.tags.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
3363
+ path: _path + ".tags[" + _index13 + "]",
3364
3364
  expected: "string",
3365
3365
  value: elem
3366
3366
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3387,18 +3387,34 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3387
3387
  path: _path + ".attributes",
3388
3388
  expected: "(Array<__type> | undefined)",
3389
3389
  value: input.attributes
3390
- })) && input.attributes.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3391
- path: _path + ".attributes[" + _index13 + "]",
3390
+ })) && input.attributes.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3391
+ path: _path + ".attributes[" + _index14 + "]",
3392
3392
  expected: "__type.o2",
3393
3393
  value: elem
3394
- })) && $vo5(elem, _path + ".attributes[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
3395
- path: _path + ".attributes[" + _index13 + "]",
3394
+ })) && $vo5(elem, _path + ".attributes[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
3395
+ path: _path + ".attributes[" + _index14 + "]",
3396
3396
  expected: "__type.o2",
3397
3397
  value: elem
3398
3398
  })).every(flag => flag) || $report(_exceptionable, {
3399
3399
  path: _path + ".attributes",
3400
3400
  expected: "(Array<__type> | undefined)",
3401
3401
  value: input.attributes
3402
+ }), undefined === input.utility || (Array.isArray(input.utility) || $report(_exceptionable, {
3403
+ path: _path + ".utility",
3404
+ expected: "(Array<__type>.o1 | undefined)",
3405
+ value: input.utility
3406
+ })) && input.utility.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3407
+ path: _path + ".utility[" + _index15 + "]",
3408
+ expected: "__type.o3",
3409
+ value: elem
3410
+ })) && $vo6(elem, _path + ".utility[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
3411
+ path: _path + ".utility[" + _index15 + "]",
3412
+ expected: "__type.o3",
3413
+ value: elem
3414
+ })).every(flag => flag) || $report(_exceptionable, {
3415
+ path: _path + ".utility",
3416
+ expected: "(Array<__type>.o1 | undefined)",
3417
+ value: input.utility
3402
3418
  }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
3403
3419
  path: _path + ".fetchedAtBlock",
3404
3420
  expected: "(bigint | number | string | undefined)",
@@ -3440,16 +3456,32 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3440
3456
  path: _path + ".value",
3441
3457
  expected: "(boolean | number | string)",
3442
3458
  value: input.value
3443
- })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3459
+ })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3460
+ path: _path + ".name",
3461
+ expected: "string",
3462
+ value: input.name
3463
+ }), "string" === typeof input.image || $report(_exceptionable, {
3464
+ path: _path + ".image",
3465
+ expected: "string",
3466
+ value: input.image
3467
+ }), "string" === typeof input.description || $report(_exceptionable, {
3468
+ path: _path + ".description",
3469
+ expected: "string",
3470
+ value: input.description
3471
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
3472
+ path: _path + ".url",
3473
+ expected: "(string | undefined)",
3474
+ value: input.url
3475
+ })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3444
3476
  path: _path + ".manualBalances",
3445
3477
  expected: "Array<iManualBalances<NumberType>>",
3446
3478
  value: input.manualBalances
3447
- })) && input.manualBalances.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3448
- path: _path + ".manualBalances[" + _index14 + "]",
3479
+ })) && input.manualBalances.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3480
+ path: _path + ".manualBalances[" + _index16 + "]",
3449
3481
  expected: "iManualBalances<NumberType>",
3450
3482
  value: elem
3451
- })) && $vo7(elem, _path + ".manualBalances[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
3452
- path: _path + ".manualBalances[" + _index14 + "]",
3483
+ })) && $vo8(elem, _path + ".manualBalances[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
3484
+ path: _path + ".manualBalances[" + _index16 + "]",
3453
3485
  expected: "iManualBalances<NumberType>",
3454
3486
  value: elem
3455
3487
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3460,7 +3492,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3460
3492
  path: _path + ".incrementedBalances",
3461
3493
  expected: "iIncrementedBalances<NumberType>",
3462
3494
  value: input.incrementedBalances
3463
- })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3495
+ })) && $vo11(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3464
3496
  path: _path + ".incrementedBalances",
3465
3497
  expected: "iIncrementedBalances<NumberType>",
3466
3498
  value: input.incrementedBalances
@@ -3468,27 +3500,27 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3468
3500
  path: _path + ".orderCalculationMethod",
3469
3501
  expected: "iPredeterminedOrderCalculationMethod",
3470
3502
  value: input.orderCalculationMethod
3471
- })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3503
+ })) && $vo12(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3472
3504
  path: _path + ".orderCalculationMethod",
3473
3505
  expected: "iPredeterminedOrderCalculationMethod",
3474
3506
  value: input.orderCalculationMethod
3475
- })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3507
+ })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3476
3508
  path: _path + ".balances",
3477
3509
  expected: "Array<iBalance<NumberType>>",
3478
3510
  value: input.balances
3479
- })) && input.balances.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3480
- path: _path + ".balances[" + _index15 + "]",
3511
+ })) && input.balances.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3512
+ path: _path + ".balances[" + _index17 + "]",
3481
3513
  expected: "iBalance<NumberType>",
3482
3514
  value: elem
3483
- })) && $vo8(elem, _path + ".balances[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
3484
- path: _path + ".balances[" + _index15 + "]",
3515
+ })) && $vo9(elem, _path + ".balances[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
3516
+ path: _path + ".balances[" + _index17 + "]",
3485
3517
  expected: "iBalance<NumberType>",
3486
3518
  value: elem
3487
3519
  })).every(flag => flag) || $report(_exceptionable, {
3488
3520
  path: _path + ".balances",
3489
3521
  expected: "Array<iBalance<NumberType>>",
3490
3522
  value: input.balances
3491
- })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3523
+ })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3492
3524
  path: _path + ".amount",
3493
3525
  expected: "(bigint | number | string)",
3494
3526
  value: input.amount
@@ -3496,12 +3528,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3496
3528
  path: _path + ".badgeIds",
3497
3529
  expected: "Array<iUintRange<NumberType>>",
3498
3530
  value: input.badgeIds
3499
- })) && input.badgeIds.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3500
- path: _path + ".badgeIds[" + _index16 + "]",
3531
+ })) && input.badgeIds.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3532
+ path: _path + ".badgeIds[" + _index18 + "]",
3501
3533
  expected: "iUintRange<NumberType>",
3502
3534
  value: elem
3503
- })) && $vo9(elem, _path + ".badgeIds[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
3504
- path: _path + ".badgeIds[" + _index16 + "]",
3535
+ })) && $vo10(elem, _path + ".badgeIds[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
3536
+ path: _path + ".badgeIds[" + _index18 + "]",
3505
3537
  expected: "iUintRange<NumberType>",
3506
3538
  value: elem
3507
3539
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3512,19 +3544,19 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3512
3544
  path: _path + ".ownershipTimes",
3513
3545
  expected: "Array<iUintRange<NumberType>>",
3514
3546
  value: input.ownershipTimes
3515
- })) && input.ownershipTimes.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3516
- path: _path + ".ownershipTimes[" + _index17 + "]",
3547
+ })) && input.ownershipTimes.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3548
+ path: _path + ".ownershipTimes[" + _index19 + "]",
3517
3549
  expected: "iUintRange<NumberType>",
3518
3550
  value: elem
3519
- })) && $vo9(elem, _path + ".ownershipTimes[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
3520
- path: _path + ".ownershipTimes[" + _index17 + "]",
3551
+ })) && $vo10(elem, _path + ".ownershipTimes[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
3552
+ path: _path + ".ownershipTimes[" + _index19 + "]",
3521
3553
  expected: "iUintRange<NumberType>",
3522
3554
  value: elem
3523
3555
  })).every(flag => flag) || $report(_exceptionable, {
3524
3556
  path: _path + ".ownershipTimes",
3525
3557
  expected: "Array<iUintRange<NumberType>>",
3526
3558
  value: input.ownershipTimes
3527
- })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
3559
+ })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
3528
3560
  path: _path + ".start",
3529
3561
  expected: "(bigint | number | string)",
3530
3562
  value: input.start
@@ -3532,16 +3564,16 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3532
3564
  path: _path + ".end",
3533
3565
  expected: "(bigint | number | string)",
3534
3566
  value: input.end
3535
- })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
3567
+ })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
3536
3568
  path: _path + ".startBalances",
3537
3569
  expected: "Array<iBalance<NumberType>>",
3538
3570
  value: input.startBalances
3539
- })) && input.startBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3540
- path: _path + ".startBalances[" + _index18 + "]",
3571
+ })) && input.startBalances.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3572
+ path: _path + ".startBalances[" + _index20 + "]",
3541
3573
  expected: "iBalance<NumberType>",
3542
3574
  value: elem
3543
- })) && $vo8(elem, _path + ".startBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
3544
- path: _path + ".startBalances[" + _index18 + "]",
3575
+ })) && $vo9(elem, _path + ".startBalances[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
3576
+ path: _path + ".startBalances[" + _index20 + "]",
3545
3577
  expected: "iBalance<NumberType>",
3546
3578
  value: elem
3547
3579
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3556,7 +3588,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3556
3588
  path: _path + ".incrementOwnershipTimesBy",
3557
3589
  expected: "(bigint | number | string)",
3558
3590
  value: input.incrementOwnershipTimesBy
3559
- })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
3591
+ })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
3560
3592
  path: _path + ".useOverallNumTransfers",
3561
3593
  expected: "boolean",
3562
3594
  value: input.useOverallNumTransfers
@@ -3580,13 +3612,13 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3580
3612
  path: _path + ".challengeTrackerId",
3581
3613
  expected: "string",
3582
3614
  value: input.challengeTrackerId
3583
- })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3615
+ })].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3584
3616
  path: _path + ".metadata",
3585
- expected: "(__type.o3 | undefined)",
3617
+ expected: "(__type.o4 | undefined)",
3586
3618
  value: input.metadata
3587
- })) && $vo13(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3619
+ })) && $vo14(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3588
3620
  path: _path + ".metadata",
3589
- expected: "(__type.o3 | undefined)",
3621
+ expected: "(__type.o4 | undefined)",
3590
3622
  value: input.metadata
3591
3623
  }), "string" === typeof input.version || $report(_exceptionable, {
3592
3624
  path: _path + ".version",
@@ -3600,7 +3632,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3600
3632
  path: _path + ".newState",
3601
3633
  expected: "(Record<string, any> | undefined)",
3602
3634
  value: input.newState
3603
- })) && $vo14(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
3635
+ })) && $vo15(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
3604
3636
  path: _path + ".newState",
3605
3637
  expected: "(Record<string, any> | undefined)",
3606
3638
  value: input.newState
@@ -3620,7 +3652,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3620
3652
  path: _path + ".publicParams",
3621
3653
  expected: "Record<string, any>",
3622
3654
  value: input.publicParams
3623
- })) && $vo14(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
3655
+ })) && $vo15(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
3624
3656
  path: _path + ".publicParams",
3625
3657
  expected: "Record<string, any>",
3626
3658
  value: input.publicParams
@@ -3628,11 +3660,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3628
3660
  path: _path + ".privateParams",
3629
3661
  expected: "Record<string, any>",
3630
3662
  value: input.privateParams
3631
- })) && $vo14(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
3663
+ })) && $vo15(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
3632
3664
  path: _path + ".privateParams",
3633
3665
  expected: "Record<string, any>",
3634
3666
  value: input.privateParams
3635
- })].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3667
+ })].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3636
3668
  path: _path + ".name",
3637
3669
  expected: "string",
3638
3670
  value: input.name
@@ -3640,7 +3672,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3640
3672
  path: _path + ".description",
3641
3673
  expected: "string",
3642
3674
  value: input.description
3643
- })].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3675
+ })].every(flag => flag); const $vo15 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3644
3676
  const value = input[key];
3645
3677
  if (undefined === value)
3646
3678
  return true;
@@ -3737,26 +3769,26 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3737
3769
  }
3738
3770
  async updateClaims(payload) {
3739
3771
  try {
3740
- const validateRes = (() => { const $join = typia.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 => {
3772
+ const validateRes = (() => { const $join = typia.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 => {
3741
3773
  const value = input[key];
3742
3774
  if (undefined === value)
3743
3775
  return true;
3744
3776
  return "string" === typeof value;
3745
- }); 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 => {
3777
+ }); 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 => {
3746
3778
  const value = input[key];
3747
3779
  if (undefined === value)
3748
3780
  return true;
3749
3781
  return true;
3750
- }); const $io14 = input => "string" === typeof input.name && "string" === typeof input.description; const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
3782
+ }); const $io15 = input => "string" === typeof input.name && "string" === typeof input.description; const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
3751
3783
  path: _path + ".claims",
3752
3784
  expected: "Array<Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">>",
3753
3785
  value: input.claims
3754
- })) && input.claims.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3755
- path: _path + ".claims[" + _index10 + "]",
3786
+ })) && input.claims.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3787
+ path: _path + ".claims[" + _index11 + "]",
3756
3788
  expected: "Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">",
3757
3789
  value: elem
3758
- })) && $vo1(elem, _path + ".claims[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
3759
- path: _path + ".claims[" + _index10 + "]",
3790
+ })) && $vo1(elem, _path + ".claims[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
3791
+ path: _path + ".claims[" + _index11 + "]",
3760
3792
  expected: "Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">",
3761
3793
  value: elem
3762
3794
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3795,7 +3827,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3795
3827
  path: _path + ".balancesToSet",
3796
3828
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3797
3829
  value: input.balancesToSet
3798
- })) && $vo6(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3830
+ })) && $vo7(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
3799
3831
  path: _path + ".balancesToSet",
3800
3832
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3801
3833
  value: input.balancesToSet
@@ -3803,12 +3835,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3803
3835
  path: _path + ".plugins",
3804
3836
  expected: "Array<IntegrationPluginDetails<string>>",
3805
3837
  value: input.plugins
3806
- })) && input.plugins.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3807
- path: _path + ".plugins[" + _index11 + "]",
3838
+ })) && input.plugins.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3839
+ path: _path + ".plugins[" + _index12 + "]",
3808
3840
  expected: "IntegrationPluginDetails<string>",
3809
3841
  value: elem
3810
- })) && $vo12(elem, _path + ".plugins[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
3811
- path: _path + ".plugins[" + _index11 + "]",
3842
+ })) && $vo13(elem, _path + ".plugins[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
3843
+ path: _path + ".plugins[" + _index12 + "]",
3812
3844
  expected: "IntegrationPluginDetails<string>",
3813
3845
  value: elem
3814
3846
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3855,8 +3887,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3855
3887
  path: _path + ".tags",
3856
3888
  expected: "(Array<string> | undefined)",
3857
3889
  value: input.tags
3858
- })) && input.tags.map((elem, _index12) => "string" === typeof elem || $report(_exceptionable, {
3859
- path: _path + ".tags[" + _index12 + "]",
3890
+ })) && input.tags.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
3891
+ path: _path + ".tags[" + _index13 + "]",
3860
3892
  expected: "string",
3861
3893
  value: elem
3862
3894
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3883,18 +3915,34 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3883
3915
  path: _path + ".attributes",
3884
3916
  expected: "(Array<__type> | undefined)",
3885
3917
  value: input.attributes
3886
- })) && input.attributes.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3887
- path: _path + ".attributes[" + _index13 + "]",
3918
+ })) && input.attributes.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3919
+ path: _path + ".attributes[" + _index14 + "]",
3888
3920
  expected: "__type.o2",
3889
3921
  value: elem
3890
- })) && $vo5(elem, _path + ".attributes[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
3891
- path: _path + ".attributes[" + _index13 + "]",
3922
+ })) && $vo5(elem, _path + ".attributes[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
3923
+ path: _path + ".attributes[" + _index14 + "]",
3892
3924
  expected: "__type.o2",
3893
3925
  value: elem
3894
3926
  })).every(flag => flag) || $report(_exceptionable, {
3895
3927
  path: _path + ".attributes",
3896
3928
  expected: "(Array<__type> | undefined)",
3897
3929
  value: input.attributes
3930
+ }), undefined === input.utility || (Array.isArray(input.utility) || $report(_exceptionable, {
3931
+ path: _path + ".utility",
3932
+ expected: "(Array<__type>.o1 | undefined)",
3933
+ value: input.utility
3934
+ })) && input.utility.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3935
+ path: _path + ".utility[" + _index15 + "]",
3936
+ expected: "__type.o3",
3937
+ value: elem
3938
+ })) && $vo6(elem, _path + ".utility[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
3939
+ path: _path + ".utility[" + _index15 + "]",
3940
+ expected: "__type.o3",
3941
+ value: elem
3942
+ })).every(flag => flag) || $report(_exceptionable, {
3943
+ path: _path + ".utility",
3944
+ expected: "(Array<__type>.o1 | undefined)",
3945
+ value: input.utility
3898
3946
  }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
3899
3947
  path: _path + ".fetchedAtBlock",
3900
3948
  expected: "(bigint | number | string | undefined)",
@@ -3936,16 +3984,32 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3936
3984
  path: _path + ".value",
3937
3985
  expected: "(boolean | number | string)",
3938
3986
  value: input.value
3939
- })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3987
+ })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3988
+ path: _path + ".name",
3989
+ expected: "string",
3990
+ value: input.name
3991
+ }), "string" === typeof input.image || $report(_exceptionable, {
3992
+ path: _path + ".image",
3993
+ expected: "string",
3994
+ value: input.image
3995
+ }), "string" === typeof input.description || $report(_exceptionable, {
3996
+ path: _path + ".description",
3997
+ expected: "string",
3998
+ value: input.description
3999
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
4000
+ path: _path + ".url",
4001
+ expected: "(string | undefined)",
4002
+ value: input.url
4003
+ })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
3940
4004
  path: _path + ".manualBalances",
3941
4005
  expected: "Array<iManualBalances<NumberType>>",
3942
4006
  value: input.manualBalances
3943
- })) && input.manualBalances.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3944
- path: _path + ".manualBalances[" + _index14 + "]",
4007
+ })) && input.manualBalances.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4008
+ path: _path + ".manualBalances[" + _index16 + "]",
3945
4009
  expected: "iManualBalances<NumberType>",
3946
4010
  value: elem
3947
- })) && $vo7(elem, _path + ".manualBalances[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
3948
- path: _path + ".manualBalances[" + _index14 + "]",
4011
+ })) && $vo8(elem, _path + ".manualBalances[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
4012
+ path: _path + ".manualBalances[" + _index16 + "]",
3949
4013
  expected: "iManualBalances<NumberType>",
3950
4014
  value: elem
3951
4015
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3956,7 +4020,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3956
4020
  path: _path + ".incrementedBalances",
3957
4021
  expected: "iIncrementedBalances<NumberType>",
3958
4022
  value: input.incrementedBalances
3959
- })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4023
+ })) && $vo11(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
3960
4024
  path: _path + ".incrementedBalances",
3961
4025
  expected: "iIncrementedBalances<NumberType>",
3962
4026
  value: input.incrementedBalances
@@ -3964,27 +4028,27 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3964
4028
  path: _path + ".orderCalculationMethod",
3965
4029
  expected: "iPredeterminedOrderCalculationMethod",
3966
4030
  value: input.orderCalculationMethod
3967
- })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4031
+ })) && $vo12(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
3968
4032
  path: _path + ".orderCalculationMethod",
3969
4033
  expected: "iPredeterminedOrderCalculationMethod",
3970
4034
  value: input.orderCalculationMethod
3971
- })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4035
+ })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
3972
4036
  path: _path + ".balances",
3973
4037
  expected: "Array<iBalance<NumberType>>",
3974
4038
  value: input.balances
3975
- })) && input.balances.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3976
- path: _path + ".balances[" + _index15 + "]",
4039
+ })) && input.balances.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4040
+ path: _path + ".balances[" + _index17 + "]",
3977
4041
  expected: "iBalance<NumberType>",
3978
4042
  value: elem
3979
- })) && $vo8(elem, _path + ".balances[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
3980
- path: _path + ".balances[" + _index15 + "]",
4043
+ })) && $vo9(elem, _path + ".balances[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
4044
+ path: _path + ".balances[" + _index17 + "]",
3981
4045
  expected: "iBalance<NumberType>",
3982
4046
  value: elem
3983
4047
  })).every(flag => flag) || $report(_exceptionable, {
3984
4048
  path: _path + ".balances",
3985
4049
  expected: "Array<iBalance<NumberType>>",
3986
4050
  value: input.balances
3987
- })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
4051
+ })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
3988
4052
  path: _path + ".amount",
3989
4053
  expected: "(bigint | number | string)",
3990
4054
  value: input.amount
@@ -3992,12 +4056,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3992
4056
  path: _path + ".badgeIds",
3993
4057
  expected: "Array<iUintRange<NumberType>>",
3994
4058
  value: input.badgeIds
3995
- })) && input.badgeIds.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3996
- path: _path + ".badgeIds[" + _index16 + "]",
4059
+ })) && input.badgeIds.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4060
+ path: _path + ".badgeIds[" + _index18 + "]",
3997
4061
  expected: "iUintRange<NumberType>",
3998
4062
  value: elem
3999
- })) && $vo9(elem, _path + ".badgeIds[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
4000
- path: _path + ".badgeIds[" + _index16 + "]",
4063
+ })) && $vo10(elem, _path + ".badgeIds[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
4064
+ path: _path + ".badgeIds[" + _index18 + "]",
4001
4065
  expected: "iUintRange<NumberType>",
4002
4066
  value: elem
4003
4067
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4008,19 +4072,19 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4008
4072
  path: _path + ".ownershipTimes",
4009
4073
  expected: "Array<iUintRange<NumberType>>",
4010
4074
  value: input.ownershipTimes
4011
- })) && input.ownershipTimes.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4012
- path: _path + ".ownershipTimes[" + _index17 + "]",
4075
+ })) && input.ownershipTimes.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4076
+ path: _path + ".ownershipTimes[" + _index19 + "]",
4013
4077
  expected: "iUintRange<NumberType>",
4014
4078
  value: elem
4015
- })) && $vo9(elem, _path + ".ownershipTimes[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
4016
- path: _path + ".ownershipTimes[" + _index17 + "]",
4079
+ })) && $vo10(elem, _path + ".ownershipTimes[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
4080
+ path: _path + ".ownershipTimes[" + _index19 + "]",
4017
4081
  expected: "iUintRange<NumberType>",
4018
4082
  value: elem
4019
4083
  })).every(flag => flag) || $report(_exceptionable, {
4020
4084
  path: _path + ".ownershipTimes",
4021
4085
  expected: "Array<iUintRange<NumberType>>",
4022
4086
  value: input.ownershipTimes
4023
- })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
4087
+ })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
4024
4088
  path: _path + ".start",
4025
4089
  expected: "(bigint | number | string)",
4026
4090
  value: input.start
@@ -4028,16 +4092,16 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4028
4092
  path: _path + ".end",
4029
4093
  expected: "(bigint | number | string)",
4030
4094
  value: input.end
4031
- })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4095
+ })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4032
4096
  path: _path + ".startBalances",
4033
4097
  expected: "Array<iBalance<NumberType>>",
4034
4098
  value: input.startBalances
4035
- })) && input.startBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4036
- path: _path + ".startBalances[" + _index18 + "]",
4099
+ })) && input.startBalances.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4100
+ path: _path + ".startBalances[" + _index20 + "]",
4037
4101
  expected: "iBalance<NumberType>",
4038
4102
  value: elem
4039
- })) && $vo8(elem, _path + ".startBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
4040
- path: _path + ".startBalances[" + _index18 + "]",
4103
+ })) && $vo9(elem, _path + ".startBalances[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
4104
+ path: _path + ".startBalances[" + _index20 + "]",
4041
4105
  expected: "iBalance<NumberType>",
4042
4106
  value: elem
4043
4107
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4052,7 +4116,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4052
4116
  path: _path + ".incrementOwnershipTimesBy",
4053
4117
  expected: "(bigint | number | string)",
4054
4118
  value: input.incrementOwnershipTimesBy
4055
- })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4119
+ })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4056
4120
  path: _path + ".useOverallNumTransfers",
4057
4121
  expected: "boolean",
4058
4122
  value: input.useOverallNumTransfers
@@ -4076,11 +4140,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4076
4140
  path: _path + ".challengeTrackerId",
4077
4141
  expected: "string",
4078
4142
  value: input.challengeTrackerId
4079
- })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
4143
+ })].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
4080
4144
  path: _path + ".publicState",
4081
4145
  expected: "Record<string, any>",
4082
4146
  value: input.publicState
4083
- })) && $vo13(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
4147
+ })) && $vo14(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
4084
4148
  path: _path + ".publicState",
4085
4149
  expected: "Record<string, any>",
4086
4150
  value: input.publicState
@@ -4088,7 +4152,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4088
4152
  path: _path + ".privateState",
4089
4153
  expected: "(Record<string, any> | undefined)",
4090
4154
  value: input.privateState
4091
- })) && $vo13(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
4155
+ })) && $vo14(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
4092
4156
  path: _path + ".privateState",
4093
4157
  expected: "(Record<string, any> | undefined)",
4094
4158
  value: input.privateState
@@ -4100,7 +4164,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4100
4164
  path: _path + ".newState",
4101
4165
  expected: "(Record<string, any> | undefined)",
4102
4166
  value: input.newState
4103
- })) && $vo13(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
4167
+ })) && $vo14(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
4104
4168
  path: _path + ".newState",
4105
4169
  expected: "(Record<string, any> | undefined)",
4106
4170
  value: input.newState
@@ -4124,7 +4188,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4124
4188
  path: _path + ".publicParams",
4125
4189
  expected: "Record<string, any>",
4126
4190
  value: input.publicParams
4127
- })) && $vo13(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4191
+ })) && $vo14(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
4128
4192
  path: _path + ".publicParams",
4129
4193
  expected: "Record<string, any>",
4130
4194
  value: input.publicParams
@@ -4132,24 +4196,24 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4132
4196
  path: _path + ".privateParams",
4133
4197
  expected: "Record<string, any>",
4134
4198
  value: input.privateParams
4135
- })) && $vo13(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4199
+ })) && $vo14(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
4136
4200
  path: _path + ".privateParams",
4137
4201
  expected: "Record<string, any>",
4138
4202
  value: input.privateParams
4139
4203
  }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
4140
4204
  path: _path + ".metadata",
4141
- expected: "(__type.o3 | undefined)",
4205
+ expected: "(__type.o4 | undefined)",
4142
4206
  value: input.metadata
4143
- })) && $vo14(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
4207
+ })) && $vo15(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
4144
4208
  path: _path + ".metadata",
4145
- expected: "(__type.o3 | undefined)",
4209
+ expected: "(__type.o4 | undefined)",
4146
4210
  value: input.metadata
4147
- })].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
4211
+ })].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
4148
4212
  const value = input[key];
4149
4213
  if (undefined === value)
4150
4214
  return true;
4151
4215
  return true;
4152
- }).every(flag => flag)].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4216
+ }).every(flag => flag)].every(flag => flag); const $vo15 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4153
4217
  path: _path + ".name",
4154
4218
  expected: "string",
4155
4219
  value: input.name
@@ -6358,12 +6422,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6358
6422
  }
6359
6423
  async addToIpfs(payload) {
6360
6424
  try {
6361
- const validateRes = (() => { const $join = typia.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 => {
6425
+ const validateRes = (() => { const $join = typia.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 => {
6362
6426
  const value = input[key];
6363
6427
  if (undefined === value)
6364
6428
  return true;
6365
6429
  return "string" === typeof value;
6366
- }); 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 => {
6430
+ }); 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 => {
6367
6431
  if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@84"].some(prop => key === prop))
6368
6432
  return true;
6369
6433
  const value = input[key];
@@ -6376,21 +6440,21 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6376
6440
  if (undefined !== input.name)
6377
6441
  return $io1(input);
6378
6442
  else if (undefined !== input.badgeIds)
6379
- return $io6(input);
6443
+ return $io7(input);
6380
6444
  else if (undefined !== input.leaves)
6381
- return $io8(input);
6445
+ return $io9(input);
6382
6446
  else
6383
- return $io5(input);
6447
+ return $io6(input);
6384
6448
  })(); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
6385
6449
  path: _path + ".contents",
6386
6450
  expected: "(Array<iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6387
6451
  value: input.contents
6388
- })) && input.contents.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6389
- path: _path + ".contents[" + _index7 + "]",
6452
+ })) && input.contents.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6453
+ path: _path + ".contents[" + _index8 + "]",
6390
6454
  expected: "(iBadgeMetadataDetails<NumberType> | iChallengeDetails<NumberType> | iCollectionMetadataDetails<NumberType> | iMetadata<NumberType>)",
6391
6455
  value: elem
6392
- })) && $vu0(elem, _path + ".contents[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
6393
- path: _path + ".contents[" + _index7 + "]",
6456
+ })) && $vu0(elem, _path + ".contents[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
6457
+ path: _path + ".contents[" + _index8 + "]",
6394
6458
  expected: "(iBadgeMetadataDetails<NumberType> | iChallengeDetails<NumberType> | iCollectionMetadataDetails<NumberType> | iMetadata<NumberType>)",
6395
6459
  value: elem
6396
6460
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6425,8 +6489,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6425
6489
  path: _path + ".tags",
6426
6490
  expected: "(Array<string> | undefined)",
6427
6491
  value: input.tags
6428
- })) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
6429
- path: _path + ".tags[" + _index8 + "]",
6492
+ })) && input.tags.map((elem, _index9) => "string" === typeof elem || $report(_exceptionable, {
6493
+ path: _path + ".tags[" + _index9 + "]",
6430
6494
  expected: "string",
6431
6495
  value: elem
6432
6496
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6453,18 +6517,34 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6453
6517
  path: _path + ".attributes",
6454
6518
  expected: "(Array<__type> | undefined)",
6455
6519
  value: input.attributes
6456
- })) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6457
- path: _path + ".attributes[" + _index9 + "]",
6520
+ })) && input.attributes.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6521
+ path: _path + ".attributes[" + _index10 + "]",
6458
6522
  expected: "__type.o2",
6459
6523
  value: elem
6460
- })) && $vo4(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
6461
- path: _path + ".attributes[" + _index9 + "]",
6524
+ })) && $vo4(elem, _path + ".attributes[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
6525
+ path: _path + ".attributes[" + _index10 + "]",
6462
6526
  expected: "__type.o2",
6463
6527
  value: elem
6464
6528
  })).every(flag => flag) || $report(_exceptionable, {
6465
6529
  path: _path + ".attributes",
6466
6530
  expected: "(Array<__type> | undefined)",
6467
6531
  value: input.attributes
6532
+ }), undefined === input.utility || (Array.isArray(input.utility) || $report(_exceptionable, {
6533
+ path: _path + ".utility",
6534
+ expected: "(Array<__type>.o1 | undefined)",
6535
+ value: input.utility
6536
+ })) && input.utility.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6537
+ path: _path + ".utility[" + _index11 + "]",
6538
+ expected: "__type.o3",
6539
+ value: elem
6540
+ })) && $vo5(elem, _path + ".utility[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
6541
+ path: _path + ".utility[" + _index11 + "]",
6542
+ expected: "__type.o3",
6543
+ value: elem
6544
+ })).every(flag => flag) || $report(_exceptionable, {
6545
+ path: _path + ".utility",
6546
+ expected: "(Array<__type>.o1 | undefined)",
6547
+ value: input.utility
6468
6548
  }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
6469
6549
  path: _path + ".fetchedAtBlock",
6470
6550
  expected: "(bigint | number | string | undefined)",
@@ -6506,7 +6586,23 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6506
6586
  path: _path + ".value",
6507
6587
  expected: "(boolean | number | string)",
6508
6588
  value: input.value
6509
- })].every(flag => flag); const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6589
+ })].every(flag => flag); const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
6590
+ path: _path + ".name",
6591
+ expected: "string",
6592
+ value: input.name
6593
+ }), "string" === typeof input.image || $report(_exceptionable, {
6594
+ path: _path + ".image",
6595
+ expected: "string",
6596
+ value: input.image
6597
+ }), "string" === typeof input.description || $report(_exceptionable, {
6598
+ path: _path + ".description",
6599
+ expected: "string",
6600
+ value: input.description
6601
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
6602
+ path: _path + ".url",
6603
+ expected: "(string | undefined)",
6604
+ value: input.url
6605
+ })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6510
6606
  path: _path + ".metadata",
6511
6607
  expected: "(iMetadata<NumberType> | undefined)",
6512
6608
  value: input.metadata
@@ -6530,16 +6626,16 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6530
6626
  path: _path + ".toUploadToIpfs",
6531
6627
  expected: "(boolean | undefined)",
6532
6628
  value: input.toUploadToIpfs
6533
- })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6629
+ })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6534
6630
  path: _path + ".badgeIds",
6535
6631
  expected: "Array<iUintRange<NumberType>>",
6536
6632
  value: input.badgeIds
6537
- })) && input.badgeIds.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6538
- path: _path + ".badgeIds[" + _index10 + "]",
6633
+ })) && input.badgeIds.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6634
+ path: _path + ".badgeIds[" + _index12 + "]",
6539
6635
  expected: "iUintRange<NumberType>",
6540
6636
  value: elem
6541
- })) && $vo7(elem, _path + ".badgeIds[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
6542
- path: _path + ".badgeIds[" + _index10 + "]",
6637
+ })) && $vo8(elem, _path + ".badgeIds[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
6638
+ path: _path + ".badgeIds[" + _index12 + "]",
6543
6639
  expected: "iUintRange<NumberType>",
6544
6640
  value: elem
6545
6641
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6570,7 +6666,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6570
6666
  path: _path + ".toUploadToIpfs",
6571
6667
  expected: "(boolean | undefined)",
6572
6668
  value: input.toUploadToIpfs
6573
- })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6669
+ })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6574
6670
  path: _path + ".start",
6575
6671
  expected: "(bigint | number | string)",
6576
6672
  value: input.start
@@ -6578,12 +6674,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6578
6674
  path: _path + ".end",
6579
6675
  expected: "(bigint | number | string)",
6580
6676
  value: input.end
6581
- })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
6677
+ })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
6582
6678
  path: _path + ".leaves",
6583
6679
  expected: "Array<string>",
6584
6680
  value: input.leaves
6585
- })) && input.leaves.map((elem, _index11) => "string" === typeof elem || $report(_exceptionable, {
6586
- path: _path + ".leaves[" + _index11 + "]",
6681
+ })) && input.leaves.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
6682
+ path: _path + ".leaves[" + _index13 + "]",
6587
6683
  expected: "string",
6588
6684
  value: elem
6589
6685
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6598,8 +6694,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6598
6694
  path: _path + ".preimages",
6599
6695
  expected: "(Array<string> | undefined)",
6600
6696
  value: input.preimages
6601
- })) && input.preimages.map((elem, _index12) => "string" === typeof elem || $report(_exceptionable, {
6602
- path: _path + ".preimages[" + _index12 + "]",
6697
+ })) && input.preimages.map((elem, _index14) => "string" === typeof elem || $report(_exceptionable, {
6698
+ path: _path + ".preimages[" + _index14 + "]",
6603
6699
  expected: "string",
6604
6700
  value: elem
6605
6701
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6614,7 +6710,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6614
6710
  path: _path + ".tree",
6615
6711
  expected: "(MerkleTree | undefined)",
6616
6712
  value: input.tree
6617
- })) && $vo9(input.tree, _path + ".tree", true && _exceptionable) || $report(_exceptionable, {
6713
+ })) && $vo10(input.tree, _path + ".tree", true && _exceptionable) || $report(_exceptionable, {
6618
6714
  path: _path + ".tree",
6619
6715
  expected: "(MerkleTree | undefined)",
6620
6716
  value: input.tree
@@ -6622,7 +6718,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6622
6718
  path: _path + ".treeOptions",
6623
6719
  expected: "(Options | undefined)",
6624
6720
  value: input.treeOptions
6625
- })) && $vo10(input.treeOptions, _path + ".treeOptions", true && _exceptionable) || $report(_exceptionable, {
6721
+ })) && $vo11(input.treeOptions, _path + ".treeOptions", true && _exceptionable) || $report(_exceptionable, {
6626
6722
  path: _path + ".treeOptions",
6627
6723
  expected: "(Options | undefined)",
6628
6724
  value: input.treeOptions
@@ -6634,7 +6730,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6634
6730
  path: _path + ".currCode",
6635
6731
  expected: "(bigint | number | string | undefined)",
6636
6732
  value: input.currCode
6637
- })].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, {
6733
+ })].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, {
6638
6734
  path: _path + ".duplicateOdd",
6639
6735
  expected: "(boolean | undefined)",
6640
6736
  value: input.duplicateOdd
@@ -6666,7 +6762,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6666
6762
  path: _path + ".fillDefaultHash",
6667
6763
  expected: "(\"buffer\".global.Buffer | string | undefined)",
6668
6764
  value: input.fillDefaultHash
6669
- })) && $vo11(input.fillDefaultHash, _path + ".fillDefaultHash", true && _exceptionable) || $report(_exceptionable, {
6765
+ })) && $vo12(input.fillDefaultHash, _path + ".fillDefaultHash", true && _exceptionable) || $report(_exceptionable, {
6670
6766
  path: _path + ".fillDefaultHash",
6671
6767
  expected: "(\"buffer\".global.Buffer | string | undefined)",
6672
6768
  value: input.fillDefaultHash
@@ -6678,7 +6774,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6678
6774
  path: _path + ".concatenator",
6679
6775
  expected: "undefined",
6680
6776
  value: input.concatenator
6681
- })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => ["number" === typeof input.BYTES_PER_ELEMENT || $report(_exceptionable, {
6777
+ })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => ["number" === typeof input.BYTES_PER_ELEMENT || $report(_exceptionable, {
6682
6778
  path: _path + ".BYTES_PER_ELEMENT",
6683
6779
  expected: "number",
6684
6780
  value: input.BYTES_PER_ELEMENT
@@ -6719,11 +6815,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6719
6815
  if (undefined !== input.name)
6720
6816
  return $vo1(input, _path, true && _exceptionable);
6721
6817
  else if (undefined !== input.badgeIds)
6722
- return $vo6(input, _path, true && _exceptionable);
6818
+ return $vo7(input, _path, true && _exceptionable);
6723
6819
  else if (undefined !== input.leaves)
6724
- return $vo8(input, _path, true && _exceptionable);
6820
+ return $vo9(input, _path, true && _exceptionable);
6725
6821
  else
6726
- return $vo5(input, _path, true && _exceptionable);
6822
+ return $vo6(input, _path, true && _exceptionable);
6727
6823
  })(); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
6728
6824
  if (false === __is(input)) {
6729
6825
  errors = [];
@@ -6777,21 +6873,21 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6777
6873
  if (undefined === value)
6778
6874
  return true;
6779
6875
  return true;
6780
- }); 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 => {
6876
+ }); const $io16 = input => "string" === typeof input.name && "string" === typeof input.description; const $io17 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io18(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io19(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io20(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io21(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io18 = input => Object.keys(input).every(key => {
6781
6877
  const value = input[key];
6782
6878
  if (undefined === value)
6783
6879
  return true;
6784
6880
  return "string" === typeof value;
6785
- }); 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, {
6881
+ }); 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, {
6786
6882
  path: _path + ".approvalDetails",
6787
6883
  expected: "Array<__type>",
6788
6884
  value: input.approvalDetails
6789
- })) && input.approvalDetails.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6790
- path: _path + ".approvalDetails[" + _index13 + "]",
6885
+ })) && input.approvalDetails.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6886
+ path: _path + ".approvalDetails[" + _index14 + "]",
6791
6887
  expected: "__type",
6792
6888
  value: elem
6793
- })) && $vo1(elem, _path + ".approvalDetails[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
6794
- path: _path + ".approvalDetails[" + _index13 + "]",
6889
+ })) && $vo1(elem, _path + ".approvalDetails[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
6890
+ path: _path + ".approvalDetails[" + _index14 + "]",
6795
6891
  expected: "__type",
6796
6892
  value: elem
6797
6893
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6810,12 +6906,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6810
6906
  path: _path + ".challengeInfoDetails",
6811
6907
  expected: "(Array<iChallengeInfoDetails<NumberType>> | undefined)",
6812
6908
  value: input.challengeInfoDetails
6813
- })) && input.challengeInfoDetails.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6814
- path: _path + ".challengeInfoDetails[" + _index14 + "]",
6909
+ })) && input.challengeInfoDetails.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6910
+ path: _path + ".challengeInfoDetails[" + _index15 + "]",
6815
6911
  expected: "iChallengeInfoDetails<NumberType>",
6816
6912
  value: elem
6817
- })) && $vo2(elem, _path + ".challengeInfoDetails[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
6818
- path: _path + ".challengeInfoDetails[" + _index14 + "]",
6913
+ })) && $vo2(elem, _path + ".challengeInfoDetails[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
6914
+ path: _path + ".challengeInfoDetails[" + _index15 + "]",
6819
6915
  expected: "iChallengeInfoDetails<NumberType>",
6820
6916
  value: elem
6821
6917
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6842,8 +6938,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6842
6938
  path: _path + ".leaves",
6843
6939
  expected: "Array<string>",
6844
6940
  value: input.leaves
6845
- })) && input.leaves.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
6846
- path: _path + ".leaves[" + _index15 + "]",
6941
+ })) && input.leaves.map((elem, _index16) => "string" === typeof elem || $report(_exceptionable, {
6942
+ path: _path + ".leaves[" + _index16 + "]",
6847
6943
  expected: "string",
6848
6944
  value: elem
6849
6945
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6858,8 +6954,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6858
6954
  path: _path + ".preimages",
6859
6955
  expected: "(Array<string> | undefined)",
6860
6956
  value: input.preimages
6861
- })) && input.preimages.map((elem, _index16) => "string" === typeof elem || $report(_exceptionable, {
6862
- path: _path + ".preimages[" + _index16 + "]",
6957
+ })) && input.preimages.map((elem, _index17) => "string" === typeof elem || $report(_exceptionable, {
6958
+ path: _path + ".preimages[" + _index17 + "]",
6863
6959
  expected: "string",
6864
6960
  value: elem
6865
6961
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7003,12 +7099,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7003
7099
  path: _path + ".plugins",
7004
7100
  expected: "Array<IntegrationPluginDetails<string>>",
7005
7101
  value: input.plugins
7006
- })) && input.plugins.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7007
- path: _path + ".plugins[" + _index17 + "]",
7102
+ })) && input.plugins.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7103
+ path: _path + ".plugins[" + _index18 + "]",
7008
7104
  expected: "IntegrationPluginDetails<string>",
7009
7105
  value: elem
7010
- })) && $vo14(elem, _path + ".plugins[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
7011
- path: _path + ".plugins[" + _index17 + "]",
7106
+ })) && $vo14(elem, _path + ".plugins[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
7107
+ path: _path + ".plugins[" + _index18 + "]",
7012
7108
  expected: "IntegrationPluginDetails<string>",
7013
7109
  value: elem
7014
7110
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7051,12 +7147,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7051
7147
  path: _path + ".manualBalances",
7052
7148
  expected: "Array<iManualBalances<NumberType>>",
7053
7149
  value: input.manualBalances
7054
- })) && input.manualBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7055
- path: _path + ".manualBalances[" + _index18 + "]",
7150
+ })) && input.manualBalances.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7151
+ path: _path + ".manualBalances[" + _index19 + "]",
7056
7152
  expected: "iManualBalances<NumberType>",
7057
7153
  value: elem
7058
- })) && $vo9(elem, _path + ".manualBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
7059
- path: _path + ".manualBalances[" + _index18 + "]",
7154
+ })) && $vo9(elem, _path + ".manualBalances[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
7155
+ path: _path + ".manualBalances[" + _index19 + "]",
7060
7156
  expected: "iManualBalances<NumberType>",
7061
7157
  value: elem
7062
7158
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7083,12 +7179,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7083
7179
  path: _path + ".balances",
7084
7180
  expected: "Array<iBalance<NumberType>>",
7085
7181
  value: input.balances
7086
- })) && input.balances.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7087
- path: _path + ".balances[" + _index19 + "]",
7182
+ })) && input.balances.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7183
+ path: _path + ".balances[" + _index20 + "]",
7088
7184
  expected: "iBalance<NumberType>",
7089
7185
  value: elem
7090
- })) && $vo10(elem, _path + ".balances[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
7091
- path: _path + ".balances[" + _index19 + "]",
7186
+ })) && $vo10(elem, _path + ".balances[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
7187
+ path: _path + ".balances[" + _index20 + "]",
7092
7188
  expected: "iBalance<NumberType>",
7093
7189
  value: elem
7094
7190
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7103,12 +7199,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7103
7199
  path: _path + ".badgeIds",
7104
7200
  expected: "Array<iUintRange<NumberType>>",
7105
7201
  value: input.badgeIds
7106
- })) && input.badgeIds.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7107
- path: _path + ".badgeIds[" + _index20 + "]",
7202
+ })) && input.badgeIds.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7203
+ path: _path + ".badgeIds[" + _index21 + "]",
7108
7204
  expected: "iUintRange<NumberType>",
7109
7205
  value: elem
7110
- })) && $vo11(elem, _path + ".badgeIds[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
7111
- path: _path + ".badgeIds[" + _index20 + "]",
7206
+ })) && $vo11(elem, _path + ".badgeIds[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
7207
+ path: _path + ".badgeIds[" + _index21 + "]",
7112
7208
  expected: "iUintRange<NumberType>",
7113
7209
  value: elem
7114
7210
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7119,12 +7215,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7119
7215
  path: _path + ".ownershipTimes",
7120
7216
  expected: "Array<iUintRange<NumberType>>",
7121
7217
  value: input.ownershipTimes
7122
- })) && input.ownershipTimes.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7123
- path: _path + ".ownershipTimes[" + _index21 + "]",
7218
+ })) && input.ownershipTimes.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7219
+ path: _path + ".ownershipTimes[" + _index22 + "]",
7124
7220
  expected: "iUintRange<NumberType>",
7125
7221
  value: elem
7126
- })) && $vo11(elem, _path + ".ownershipTimes[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
7127
- path: _path + ".ownershipTimes[" + _index21 + "]",
7222
+ })) && $vo11(elem, _path + ".ownershipTimes[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
7223
+ path: _path + ".ownershipTimes[" + _index22 + "]",
7128
7224
  expected: "iUintRange<NumberType>",
7129
7225
  value: elem
7130
7226
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7143,12 +7239,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7143
7239
  path: _path + ".startBalances",
7144
7240
  expected: "Array<iBalance<NumberType>>",
7145
7241
  value: input.startBalances
7146
- })) && input.startBalances.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7147
- path: _path + ".startBalances[" + _index22 + "]",
7242
+ })) && input.startBalances.map((elem, _index23) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7243
+ path: _path + ".startBalances[" + _index23 + "]",
7148
7244
  expected: "iBalance<NumberType>",
7149
7245
  value: elem
7150
- })) && $vo10(elem, _path + ".startBalances[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
7151
- path: _path + ".startBalances[" + _index22 + "]",
7246
+ })) && $vo10(elem, _path + ".startBalances[" + _index23 + "]", true && _exceptionable) || $report(_exceptionable, {
7247
+ path: _path + ".startBalances[" + _index23 + "]",
7152
7248
  expected: "iBalance<NumberType>",
7153
7249
  value: elem
7154
7250
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7296,8 +7392,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7296
7392
  path: _path + ".tags",
7297
7393
  expected: "(Array<string> | undefined)",
7298
7394
  value: input.tags
7299
- })) && input.tags.map((elem, _index23) => "string" === typeof elem || $report(_exceptionable, {
7300
- path: _path + ".tags[" + _index23 + "]",
7395
+ })) && input.tags.map((elem, _index24) => "string" === typeof elem || $report(_exceptionable, {
7396
+ path: _path + ".tags[" + _index24 + "]",
7301
7397
  expected: "string",
7302
7398
  value: elem
7303
7399
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7324,18 +7420,34 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7324
7420
  path: _path + ".attributes",
7325
7421
  expected: "(Array<__type>.o1 | undefined)",
7326
7422
  value: input.attributes
7327
- })) && input.attributes.map((elem, _index24) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7328
- path: _path + ".attributes[" + _index24 + "]",
7423
+ })) && input.attributes.map((elem, _index25) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7424
+ path: _path + ".attributes[" + _index25 + "]",
7329
7425
  expected: "__type.o4",
7330
7426
  value: elem
7331
- })) && $vo20(elem, _path + ".attributes[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
7332
- path: _path + ".attributes[" + _index24 + "]",
7427
+ })) && $vo20(elem, _path + ".attributes[" + _index25 + "]", true && _exceptionable) || $report(_exceptionable, {
7428
+ path: _path + ".attributes[" + _index25 + "]",
7333
7429
  expected: "__type.o4",
7334
7430
  value: elem
7335
7431
  })).every(flag => flag) || $report(_exceptionable, {
7336
7432
  path: _path + ".attributes",
7337
7433
  expected: "(Array<__type>.o1 | undefined)",
7338
7434
  value: input.attributes
7435
+ }), undefined === input.utility || (Array.isArray(input.utility) || $report(_exceptionable, {
7436
+ path: _path + ".utility",
7437
+ expected: "(Array<__type>.o2 | undefined)",
7438
+ value: input.utility
7439
+ })) && input.utility.map((elem, _index26) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7440
+ path: _path + ".utility[" + _index26 + "]",
7441
+ expected: "__type.o5",
7442
+ value: elem
7443
+ })) && $vo21(elem, _path + ".utility[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
7444
+ path: _path + ".utility[" + _index26 + "]",
7445
+ expected: "__type.o5",
7446
+ value: elem
7447
+ })).every(flag => flag) || $report(_exceptionable, {
7448
+ path: _path + ".utility",
7449
+ expected: "(Array<__type>.o2 | undefined)",
7450
+ value: input.utility
7339
7451
  }), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
7340
7452
  path: _path + ".fetchedAtBlock",
7341
7453
  expected: "(bigint | number | string | undefined)",
@@ -7377,6 +7489,22 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7377
7489
  path: _path + ".value",
7378
7490
  expected: "(boolean | number | string)",
7379
7491
  value: input.value
7492
+ })].every(flag => flag); const $vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
7493
+ path: _path + ".name",
7494
+ expected: "string",
7495
+ value: input.name
7496
+ }), "string" === typeof input.image || $report(_exceptionable, {
7497
+ path: _path + ".image",
7498
+ expected: "string",
7499
+ value: input.image
7500
+ }), "string" === typeof input.description || $report(_exceptionable, {
7501
+ path: _path + ".description",
7502
+ expected: "string",
7503
+ value: input.description
7504
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
7505
+ path: _path + ".url",
7506
+ expected: "(string | undefined)",
7507
+ value: input.url
7380
7508
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
7381
7509
  if (false === __is(input)) {
7382
7510
  errors = [];
@@ -7829,6 +7957,202 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7829
7957
  return Promise.reject(error);
7830
7958
  }
7831
7959
  }
7960
+ async getGatedContent(payload) {
7961
+ try {
7962
+ const validateRes = (() => { const $io0 = input => (undefined === input.pageIds || Array.isArray(input.pageIds) && input.pageIds.every(elem => "string" === typeof elem)) && (undefined === input.bookmark || "string" === typeof input.bookmark); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.pageIds || (Array.isArray(input.pageIds) || $report(_exceptionable, {
7963
+ path: _path + ".pageIds",
7964
+ expected: "(Array<string> | undefined)",
7965
+ value: input.pageIds
7966
+ })) && input.pageIds.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
7967
+ path: _path + ".pageIds[" + _index2 + "]",
7968
+ expected: "string",
7969
+ value: elem
7970
+ })).every(flag => flag) || $report(_exceptionable, {
7971
+ path: _path + ".pageIds",
7972
+ expected: "(Array<string> | undefined)",
7973
+ value: input.pageIds
7974
+ }), undefined === input.bookmark || "string" === typeof input.bookmark || $report(_exceptionable, {
7975
+ path: _path + ".bookmark",
7976
+ expected: "(string | undefined)",
7977
+ value: input.bookmark
7978
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
7979
+ if (false === __is(input)) {
7980
+ errors = [];
7981
+ $report = typia.validate.report(errors);
7982
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
7983
+ path: _path + "",
7984
+ expected: "GetGatedContentPayload",
7985
+ value: input
7986
+ })) && $vo0(input, _path + "", true) || $report(true, {
7987
+ path: _path + "",
7988
+ expected: "GetGatedContentPayload",
7989
+ value: input
7990
+ }))(input, "$input", true);
7991
+ const success = 0 === errors.length;
7992
+ return {
7993
+ success,
7994
+ errors,
7995
+ data: success ? input : undefined
7996
+ };
7997
+ }
7998
+ return {
7999
+ success: true,
8000
+ errors: [],
8001
+ data: input
8002
+ };
8003
+ }; })()(payload ?? {});
8004
+ if (!validateRes.success) {
8005
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
8006
+ }
8007
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetGatedContentRoute()}`, payload);
8008
+ return new GetGatedContentSuccessResponse(response.data);
8009
+ }
8010
+ catch (error) {
8011
+ await this.handleApiError(error);
8012
+ return Promise.reject(error);
8013
+ }
8014
+ }
8015
+ async createGatedContent(payload) {
8016
+ try {
8017
+ const validateRes = (() => { const $io0 = input => "string" === typeof input.claimId && "string" === typeof input.content; const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
8018
+ path: _path + ".claimId",
8019
+ expected: "string",
8020
+ value: input.claimId
8021
+ }), "string" === typeof input.content || $report(_exceptionable, {
8022
+ path: _path + ".content",
8023
+ expected: "string",
8024
+ value: input.content
8025
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
8026
+ if (false === __is(input)) {
8027
+ errors = [];
8028
+ $report = typia.validate.report(errors);
8029
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
8030
+ path: _path + "",
8031
+ expected: "CreateGatedContentPayload",
8032
+ value: input
8033
+ })) && $vo0(input, _path + "", true) || $report(true, {
8034
+ path: _path + "",
8035
+ expected: "CreateGatedContentPayload",
8036
+ value: input
8037
+ }))(input, "$input", true);
8038
+ const success = 0 === errors.length;
8039
+ return {
8040
+ success,
8041
+ errors,
8042
+ data: success ? input : undefined
8043
+ };
8044
+ }
8045
+ return {
8046
+ success: true,
8047
+ errors: [],
8048
+ data: input
8049
+ };
8050
+ }; })()(payload ?? {});
8051
+ if (!validateRes.success) {
8052
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
8053
+ }
8054
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDGatedContentRoute()}`, payload);
8055
+ return new CreateGatedContentSuccessResponse(response.data);
8056
+ }
8057
+ catch (error) {
8058
+ await this.handleApiError(error);
8059
+ return Promise.reject(error);
8060
+ }
8061
+ }
8062
+ async deleteGatedContent(payload) {
8063
+ try {
8064
+ const validateRes = (() => { const $io0 = input => "string" === typeof input.pageId; const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pageId || $report(_exceptionable, {
8065
+ path: _path + ".pageId",
8066
+ expected: "string",
8067
+ value: input.pageId
8068
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
8069
+ if (false === __is(input)) {
8070
+ errors = [];
8071
+ $report = typia.validate.report(errors);
8072
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
8073
+ path: _path + "",
8074
+ expected: "DeleteGatedContentPayload",
8075
+ value: input
8076
+ })) && $vo0(input, _path + "", true) || $report(true, {
8077
+ path: _path + "",
8078
+ expected: "DeleteGatedContentPayload",
8079
+ value: input
8080
+ }))(input, "$input", true);
8081
+ const success = 0 === errors.length;
8082
+ return {
8083
+ success,
8084
+ errors,
8085
+ data: success ? input : undefined
8086
+ };
8087
+ }
8088
+ return {
8089
+ success: true,
8090
+ errors: [],
8091
+ data: input
8092
+ };
8093
+ }; })()(payload ?? {});
8094
+ if (!validateRes.success) {
8095
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
8096
+ }
8097
+ const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDGatedContentRoute()}`, { data: payload });
8098
+ return new DeleteGatedContentSuccessResponse(response.data);
8099
+ }
8100
+ catch (error) {
8101
+ await this.handleApiError(error);
8102
+ return Promise.reject(error);
8103
+ }
8104
+ }
8105
+ async updateGatedContent(payload) {
8106
+ try {
8107
+ const validateRes = (() => { const $io0 = input => "string" === typeof input.pageId && (undefined === input.claimId || "string" === typeof input.claimId) && (undefined === input.content || "string" === typeof input.content); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pageId || $report(_exceptionable, {
8108
+ path: _path + ".pageId",
8109
+ expected: "string",
8110
+ value: input.pageId
8111
+ }), undefined === input.claimId || "string" === typeof input.claimId || $report(_exceptionable, {
8112
+ path: _path + ".claimId",
8113
+ expected: "(string | undefined)",
8114
+ value: input.claimId
8115
+ }), undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
8116
+ path: _path + ".content",
8117
+ expected: "(string | undefined)",
8118
+ value: input.content
8119
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
8120
+ if (false === __is(input)) {
8121
+ errors = [];
8122
+ $report = typia.validate.report(errors);
8123
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
8124
+ path: _path + "",
8125
+ expected: "UpdateGatedContentPayload",
8126
+ value: input
8127
+ })) && $vo0(input, _path + "", true) || $report(true, {
8128
+ path: _path + "",
8129
+ expected: "UpdateGatedContentPayload",
8130
+ value: input
8131
+ }))(input, "$input", true);
8132
+ const success = 0 === errors.length;
8133
+ return {
8134
+ success,
8135
+ errors,
8136
+ data: success ? input : undefined
8137
+ };
8138
+ }
8139
+ return {
8140
+ success: true,
8141
+ errors: [],
8142
+ data: input
8143
+ };
8144
+ }; })()(payload ?? {});
8145
+ if (!validateRes.success) {
8146
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
8147
+ }
8148
+ const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDGatedContentRoute()}`, payload);
8149
+ return new UpdateGatedContentSuccessResponse(response.data);
8150
+ }
8151
+ catch (error) {
8152
+ await this.handleApiError(error);
8153
+ return Promise.reject(error);
8154
+ }
8155
+ }
7832
8156
  }
7833
8157
  export default BitBadgesAPI;
7834
8158
  //# sourceMappingURL=BitBadgesApi.js.map