bitbadgesjs-sdk 0.4.7 → 0.4.8

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 (57) hide show
  1. package/dist/cjs/api-indexer/BitBadgesAddressList.d.ts +10 -7
  2. package/dist/cjs/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
  3. package/dist/cjs/api-indexer/BitBadgesAddressList.js +226 -46
  4. package/dist/cjs/api-indexer/BitBadgesAddressList.js.map +1 -1
  5. package/dist/cjs/api-indexer/BitBadgesApi.d.ts +4 -3
  6. package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
  7. package/dist/cjs/api-indexer/BitBadgesApi.js +592 -193
  8. package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
  9. package/dist/cjs/api-indexer/docs/docs.d.ts +6 -3
  10. package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
  11. package/dist/cjs/api-indexer/docs/docs.js +6 -2
  12. package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
  13. package/dist/cjs/api-indexer/docs/interfaces.d.ts +45 -0
  14. package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
  15. package/dist/cjs/api-indexer/docs/interfaces.js +19 -1
  16. package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
  17. package/dist/cjs/api-indexer/requests/requests.d.ts +13 -1
  18. package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
  19. package/dist/cjs/api-indexer/requests/requests.js +9 -1
  20. package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
  21. package/dist/cjs/api-indexer/requests/routes.d.ts +1 -0
  22. package/dist/cjs/api-indexer/requests/routes.d.ts.map +1 -1
  23. package/dist/cjs/api-indexer/requests/routes.js +1 -0
  24. package/dist/cjs/api-indexer/requests/routes.js.map +1 -1
  25. package/dist/cjs/core/approvals.d.ts +4 -0
  26. package/dist/cjs/core/approvals.d.ts.map +1 -1
  27. package/dist/cjs/core/approvals.js +4 -0
  28. package/dist/cjs/core/approvals.js.map +1 -1
  29. package/dist/esm/api-indexer/BitBadgesAddressList.d.ts +10 -7
  30. package/dist/esm/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
  31. package/dist/esm/api-indexer/BitBadgesAddressList.js +226 -46
  32. package/dist/esm/api-indexer/BitBadgesAddressList.js.map +1 -1
  33. package/dist/esm/api-indexer/BitBadgesApi.d.ts +4 -3
  34. package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
  35. package/dist/esm/api-indexer/BitBadgesApi.js +593 -194
  36. package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
  37. package/dist/esm/api-indexer/docs/docs.d.ts +6 -3
  38. package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
  39. package/dist/esm/api-indexer/docs/docs.js +9 -2
  40. package/dist/esm/api-indexer/docs/docs.js.map +1 -1
  41. package/dist/esm/api-indexer/docs/interfaces.d.ts +45 -0
  42. package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
  43. package/dist/esm/api-indexer/docs/interfaces.js +22 -0
  44. package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
  45. package/dist/esm/api-indexer/requests/requests.d.ts +13 -1
  46. package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
  47. package/dist/esm/api-indexer/requests/requests.js +8 -0
  48. package/dist/esm/api-indexer/requests/requests.js.map +1 -1
  49. package/dist/esm/api-indexer/requests/routes.d.ts +1 -0
  50. package/dist/esm/api-indexer/requests/routes.d.ts.map +1 -1
  51. package/dist/esm/api-indexer/requests/routes.js +1 -0
  52. package/dist/esm/api-indexer/requests/routes.js.map +1 -1
  53. package/dist/esm/core/approvals.d.ts +4 -0
  54. package/dist/esm/core/approvals.d.ts.map +1 -1
  55. package/dist/esm/core/approvals.js +7 -0
  56. package/dist/esm/core/approvals.js.map +1 -1
  57. 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, 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';
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, GetGatedContentForClaimSuccessResponse, 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) {
@@ -3245,12 +3245,17 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3245
3245
  }
3246
3246
  async createClaims(payload) {
3247
3247
  try {
3248
- 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 => {
3248
+ 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.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io13(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (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 && $io17(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 => {
3249
3249
  const value = input[key];
3250
3250
  if (undefined === value)
3251
3251
  return true;
3252
3252
  return "string" === typeof value;
3253
- }); const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io5 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io6 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io7 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io11(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io12(input.orderCalculationMethod)); const $io8 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)); const $io9 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io10(elem))); const $io10 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io11 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy); const $io12 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $io13 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io14(input.metadata)) && "string" === typeof input.version && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io15(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io15(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io15(input.privateParams)); const $io14 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io15 = input => Object.keys(input).every(key => {
3253
+ }); 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 => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io14(input.metadata)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && $io15(input.gatedContent)); const $io14 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const $io15 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && $io16(input.params)); const $io16 = input => Object.keys(input).every(key => {
3254
+ const value = input[key];
3255
+ if (undefined === value)
3256
+ return true;
3257
+ return true;
3258
+ }); const $io17 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io18(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) && $io19(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) && $io19(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io19(input.privateParams)); const $io18 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io19 = input => Object.keys(input).every(key => {
3254
3259
  const value = input[key];
3255
3260
  if (undefined === value)
3256
3261
  return true;
@@ -3259,12 +3264,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3259
3264
  path: _path + ".claims",
3260
3265
  expected: "Array<CreateClaimRequest<NumberType>>",
3261
3266
  value: input.claims
3262
- })) && input.claims.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3263
- path: _path + ".claims[" + _index11 + "]",
3267
+ })) && input.claims.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3268
+ path: _path + ".claims[" + _index12 + "]",
3264
3269
  expected: "CreateClaimRequest<NumberType>",
3265
3270
  value: elem
3266
- })) && $vo1(elem, _path + ".claims[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
3267
- path: _path + ".claims[" + _index11 + "]",
3271
+ })) && $vo1(elem, _path + ".claims[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
3272
+ path: _path + ".claims[" + _index12 + "]",
3268
3273
  expected: "CreateClaimRequest<NumberType>",
3269
3274
  value: elem
3270
3275
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3319,6 +3324,30 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3319
3324
  path: _path + ".balancesToSet",
3320
3325
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
3321
3326
  value: input.balancesToSet
3327
+ }), undefined === input.rewards || (Array.isArray(input.rewards) || $report(_exceptionable, {
3328
+ path: _path + ".rewards",
3329
+ expected: "(Array<iClaimReward<NumberType>> | undefined)",
3330
+ value: input.rewards
3331
+ })) && input.rewards.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3332
+ path: _path + ".rewards[" + _index13 + "]",
3333
+ expected: "iClaimReward<NumberType>",
3334
+ value: elem
3335
+ })) && $vo13(elem, _path + ".rewards[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
3336
+ path: _path + ".rewards[" + _index13 + "]",
3337
+ expected: "iClaimReward<NumberType>",
3338
+ value: elem
3339
+ })).every(flag => flag) || $report(_exceptionable, {
3340
+ path: _path + ".rewards",
3341
+ expected: "(Array<iClaimReward<NumberType>> | undefined)",
3342
+ value: input.rewards
3343
+ }), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || $report(_exceptionable, {
3344
+ path: _path + ".estimatedCost",
3345
+ expected: "(string | undefined)",
3346
+ value: input.estimatedCost
3347
+ }), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || $report(_exceptionable, {
3348
+ path: _path + ".estimatedTime",
3349
+ expected: "(string | undefined)",
3350
+ value: input.estimatedTime
3322
3351
  }), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
3323
3352
  path: _path + ".manualDistribution",
3324
3353
  expected: "(boolean | undefined)",
@@ -3339,12 +3368,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3339
3368
  path: _path + ".plugins",
3340
3369
  expected: "Array<ManagePluginRequest>",
3341
3370
  value: input.plugins
3342
- })) && input.plugins.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3343
- path: _path + ".plugins[" + _index12 + "]",
3371
+ })) && input.plugins.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3372
+ path: _path + ".plugins[" + _index14 + "]",
3344
3373
  expected: "ManagePluginRequest",
3345
3374
  value: elem
3346
- })) && $vo13(elem, _path + ".plugins[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
3347
- path: _path + ".plugins[" + _index12 + "]",
3375
+ })) && $vo17(elem, _path + ".plugins[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
3376
+ path: _path + ".plugins[" + _index14 + "]",
3348
3377
  expected: "ManagePluginRequest",
3349
3378
  value: elem
3350
3379
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3379,8 +3408,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3379
3408
  path: _path + ".tags",
3380
3409
  expected: "(Array<string> | undefined)",
3381
3410
  value: input.tags
3382
- })) && input.tags.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
3383
- path: _path + ".tags[" + _index13 + "]",
3411
+ })) && input.tags.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
3412
+ path: _path + ".tags[" + _index15 + "]",
3384
3413
  expected: "string",
3385
3414
  value: elem
3386
3415
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3407,12 +3436,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3407
3436
  path: _path + ".attributes",
3408
3437
  expected: "(Array<__type> | undefined)",
3409
3438
  value: input.attributes
3410
- })) && input.attributes.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3411
- path: _path + ".attributes[" + _index14 + "]",
3439
+ })) && input.attributes.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3440
+ path: _path + ".attributes[" + _index16 + "]",
3412
3441
  expected: "__type.o2",
3413
3442
  value: elem
3414
- })) && $vo5(elem, _path + ".attributes[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
3415
- path: _path + ".attributes[" + _index14 + "]",
3443
+ })) && $vo5(elem, _path + ".attributes[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
3444
+ path: _path + ".attributes[" + _index16 + "]",
3416
3445
  expected: "__type.o2",
3417
3446
  value: elem
3418
3447
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3423,12 +3452,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3423
3452
  path: _path + ".utility",
3424
3453
  expected: "(Array<__type>.o1 | undefined)",
3425
3454
  value: input.utility
3426
- })) && input.utility.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3427
- path: _path + ".utility[" + _index15 + "]",
3455
+ })) && input.utility.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3456
+ path: _path + ".utility[" + _index17 + "]",
3428
3457
  expected: "__type.o3",
3429
3458
  value: elem
3430
- })) && $vo6(elem, _path + ".utility[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
3431
- path: _path + ".utility[" + _index15 + "]",
3459
+ })) && $vo6(elem, _path + ".utility[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
3460
+ path: _path + ".utility[" + _index17 + "]",
3432
3461
  expected: "__type.o3",
3433
3462
  value: elem
3434
3463
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3496,12 +3525,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3496
3525
  path: _path + ".manualBalances",
3497
3526
  expected: "Array<iManualBalances<NumberType>>",
3498
3527
  value: input.manualBalances
3499
- })) && input.manualBalances.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3500
- path: _path + ".manualBalances[" + _index16 + "]",
3528
+ })) && input.manualBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3529
+ path: _path + ".manualBalances[" + _index18 + "]",
3501
3530
  expected: "iManualBalances<NumberType>",
3502
3531
  value: elem
3503
- })) && $vo8(elem, _path + ".manualBalances[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
3504
- path: _path + ".manualBalances[" + _index16 + "]",
3532
+ })) && $vo8(elem, _path + ".manualBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
3533
+ path: _path + ".manualBalances[" + _index18 + "]",
3505
3534
  expected: "iManualBalances<NumberType>",
3506
3535
  value: elem
3507
3536
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3528,12 +3557,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3528
3557
  path: _path + ".balances",
3529
3558
  expected: "Array<iBalance<NumberType>>",
3530
3559
  value: input.balances
3531
- })) && input.balances.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3532
- path: _path + ".balances[" + _index17 + "]",
3560
+ })) && input.balances.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3561
+ path: _path + ".balances[" + _index19 + "]",
3533
3562
  expected: "iBalance<NumberType>",
3534
3563
  value: elem
3535
- })) && $vo9(elem, _path + ".balances[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
3536
- path: _path + ".balances[" + _index17 + "]",
3564
+ })) && $vo9(elem, _path + ".balances[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
3565
+ path: _path + ".balances[" + _index19 + "]",
3537
3566
  expected: "iBalance<NumberType>",
3538
3567
  value: elem
3539
3568
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3548,12 +3577,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3548
3577
  path: _path + ".badgeIds",
3549
3578
  expected: "Array<iUintRange<NumberType>>",
3550
3579
  value: input.badgeIds
3551
- })) && input.badgeIds.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3552
- path: _path + ".badgeIds[" + _index18 + "]",
3580
+ })) && input.badgeIds.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3581
+ path: _path + ".badgeIds[" + _index20 + "]",
3553
3582
  expected: "iUintRange<NumberType>",
3554
3583
  value: elem
3555
- })) && $vo10(elem, _path + ".badgeIds[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
3556
- path: _path + ".badgeIds[" + _index18 + "]",
3584
+ })) && $vo10(elem, _path + ".badgeIds[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
3585
+ path: _path + ".badgeIds[" + _index20 + "]",
3557
3586
  expected: "iUintRange<NumberType>",
3558
3587
  value: elem
3559
3588
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3564,12 +3593,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3564
3593
  path: _path + ".ownershipTimes",
3565
3594
  expected: "Array<iUintRange<NumberType>>",
3566
3595
  value: input.ownershipTimes
3567
- })) && input.ownershipTimes.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3568
- path: _path + ".ownershipTimes[" + _index19 + "]",
3596
+ })) && input.ownershipTimes.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3597
+ path: _path + ".ownershipTimes[" + _index21 + "]",
3569
3598
  expected: "iUintRange<NumberType>",
3570
3599
  value: elem
3571
- })) && $vo10(elem, _path + ".ownershipTimes[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
3572
- path: _path + ".ownershipTimes[" + _index19 + "]",
3600
+ })) && $vo10(elem, _path + ".ownershipTimes[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
3601
+ path: _path + ".ownershipTimes[" + _index21 + "]",
3573
3602
  expected: "iUintRange<NumberType>",
3574
3603
  value: elem
3575
3604
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3588,12 +3617,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3588
3617
  path: _path + ".startBalances",
3589
3618
  expected: "Array<iBalance<NumberType>>",
3590
3619
  value: input.startBalances
3591
- })) && input.startBalances.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3592
- path: _path + ".startBalances[" + _index20 + "]",
3620
+ })) && input.startBalances.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3621
+ path: _path + ".startBalances[" + _index22 + "]",
3593
3622
  expected: "iBalance<NumberType>",
3594
3623
  value: elem
3595
- })) && $vo9(elem, _path + ".startBalances[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
3596
- path: _path + ".startBalances[" + _index20 + "]",
3624
+ })) && $vo9(elem, _path + ".startBalances[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
3625
+ path: _path + ".startBalances[" + _index22 + "]",
3597
3626
  expected: "iBalance<NumberType>",
3598
3627
  value: elem
3599
3628
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3632,7 +3661,15 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3632
3661
  path: _path + ".challengeTrackerId",
3633
3662
  expected: "string",
3634
3663
  value: input.challengeTrackerId
3635
- })].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3664
+ })].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || $report(_exceptionable, {
3665
+ path: _path + ".rewardId",
3666
+ expected: "string",
3667
+ value: input.rewardId
3668
+ }), "string" === typeof input.instanceId || $report(_exceptionable, {
3669
+ path: _path + ".instanceId",
3670
+ expected: "string",
3671
+ value: input.instanceId
3672
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3636
3673
  path: _path + ".metadata",
3637
3674
  expected: "(__type.o4 | undefined)",
3638
3675
  value: input.metadata
@@ -3640,6 +3677,59 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3640
3677
  path: _path + ".metadata",
3641
3678
  expected: "(__type.o4 | undefined)",
3642
3679
  value: input.metadata
3680
+ }), undefined === input.automatic || "boolean" === typeof input.automatic || $report(_exceptionable, {
3681
+ path: _path + ".automatic",
3682
+ expected: "(boolean | undefined)",
3683
+ value: input.automatic
3684
+ }), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || $report(_exceptionable, {
3685
+ path: _path + ".gatedContent",
3686
+ expected: "iClaimGatedContent",
3687
+ value: input.gatedContent
3688
+ })) && $vo15(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || $report(_exceptionable, {
3689
+ path: _path + ".gatedContent",
3690
+ expected: "iClaimGatedContent",
3691
+ value: input.gatedContent
3692
+ })].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3693
+ path: _path + ".name",
3694
+ expected: "string",
3695
+ value: input.name
3696
+ }), "string" === typeof input.description || $report(_exceptionable, {
3697
+ path: _path + ".description",
3698
+ expected: "string",
3699
+ value: input.description
3700
+ }), "string" === typeof input.image || $report(_exceptionable, {
3701
+ path: _path + ".image",
3702
+ expected: "string",
3703
+ value: input.image
3704
+ })].every(flag => flag); const $vo15 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
3705
+ path: _path + ".content",
3706
+ expected: "(string | undefined)",
3707
+ value: input.content
3708
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
3709
+ path: _path + ".url",
3710
+ expected: "(string | undefined)",
3711
+ value: input.url
3712
+ }), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || $report(_exceptionable, {
3713
+ path: _path + ".params",
3714
+ expected: "(__type.o5 | undefined)",
3715
+ value: input.params
3716
+ })) && $vo16(input.params, _path + ".params", true && _exceptionable) || $report(_exceptionable, {
3717
+ path: _path + ".params",
3718
+ expected: "(__type.o5 | undefined)",
3719
+ value: input.params
3720
+ })].every(flag => flag); const $vo16 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3721
+ const value = input[key];
3722
+ if (undefined === value)
3723
+ return true;
3724
+ return true;
3725
+ }).every(flag => flag)].every(flag => flag); const $vo17 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3726
+ path: _path + ".metadata",
3727
+ expected: "(__type.o6 | undefined)",
3728
+ value: input.metadata
3729
+ })) && $vo18(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3730
+ path: _path + ".metadata",
3731
+ expected: "(__type.o6 | undefined)",
3732
+ value: input.metadata
3643
3733
  }), "string" === typeof input.version || $report(_exceptionable, {
3644
3734
  path: _path + ".version",
3645
3735
  expected: "string",
@@ -3652,7 +3742,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3652
3742
  path: _path + ".newState",
3653
3743
  expected: "(Record<string, any> | undefined)",
3654
3744
  value: input.newState
3655
- })) && $vo15(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
3745
+ })) && $vo19(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
3656
3746
  path: _path + ".newState",
3657
3747
  expected: "(Record<string, any> | undefined)",
3658
3748
  value: input.newState
@@ -3672,7 +3762,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3672
3762
  path: _path + ".publicParams",
3673
3763
  expected: "Record<string, any>",
3674
3764
  value: input.publicParams
3675
- })) && $vo15(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
3765
+ })) && $vo19(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
3676
3766
  path: _path + ".publicParams",
3677
3767
  expected: "Record<string, any>",
3678
3768
  value: input.publicParams
@@ -3680,11 +3770,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3680
3770
  path: _path + ".privateParams",
3681
3771
  expected: "Record<string, any>",
3682
3772
  value: input.privateParams
3683
- })) && $vo15(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
3773
+ })) && $vo19(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
3684
3774
  path: _path + ".privateParams",
3685
3775
  expected: "Record<string, any>",
3686
3776
  value: input.privateParams
3687
- })].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3777
+ })].every(flag => flag); const $vo18 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3688
3778
  path: _path + ".name",
3689
3779
  expected: "string",
3690
3780
  value: input.name
@@ -3696,7 +3786,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3696
3786
  path: _path + ".image",
3697
3787
  expected: "(string | undefined)",
3698
3788
  value: input.image
3699
- })].every(flag => flag); const $vo15 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3789
+ })].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3700
3790
  const value = input[key];
3701
3791
  if (undefined === value)
3702
3792
  return true;
@@ -3793,7 +3883,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3793
3883
  }
3794
3884
  async updateClaims(payload) {
3795
3885
  try {
3796
- 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 => {
3886
+ 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.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io16(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (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 => {
3797
3887
  const value = input[key];
3798
3888
  if (undefined === value)
3799
3889
  return true;
@@ -3803,16 +3893,21 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3803
3893
  if (undefined === value)
3804
3894
  return true;
3805
3895
  return true;
3806
- }); const $io15 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
3896
+ }); const $io15 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io16 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io17(input.metadata)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && $io18(input.gatedContent)); const $io17 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const $io18 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && $io19(input.params)); const $io19 = input => Object.keys(input).every(key => {
3897
+ const value = input[key];
3898
+ if (undefined === value)
3899
+ return true;
3900
+ return true;
3901
+ }); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
3807
3902
  path: _path + ".claims",
3808
3903
  expected: "Array<Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">>",
3809
3904
  value: input.claims
3810
- })) && input.claims.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3811
- path: _path + ".claims[" + _index11 + "]",
3905
+ })) && input.claims.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3906
+ path: _path + ".claims[" + _index12 + "]",
3812
3907
  expected: "Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">",
3813
3908
  value: elem
3814
- })) && $vo1(elem, _path + ".claims[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
3815
- path: _path + ".claims[" + _index11 + "]",
3909
+ })) && $vo1(elem, _path + ".claims[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
3910
+ path: _path + ".claims[" + _index12 + "]",
3816
3911
  expected: "Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">",
3817
3912
  value: elem
3818
3913
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3859,18 +3954,42 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3859
3954
  path: _path + ".plugins",
3860
3955
  expected: "Array<IntegrationPluginDetails<string>>",
3861
3956
  value: input.plugins
3862
- })) && input.plugins.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3863
- path: _path + ".plugins[" + _index12 + "]",
3957
+ })) && input.plugins.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3958
+ path: _path + ".plugins[" + _index13 + "]",
3864
3959
  expected: "IntegrationPluginDetails<string>",
3865
3960
  value: elem
3866
- })) && $vo13(elem, _path + ".plugins[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
3867
- path: _path + ".plugins[" + _index12 + "]",
3961
+ })) && $vo13(elem, _path + ".plugins[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
3962
+ path: _path + ".plugins[" + _index13 + "]",
3868
3963
  expected: "IntegrationPluginDetails<string>",
3869
3964
  value: elem
3870
3965
  })).every(flag => flag) || $report(_exceptionable, {
3871
3966
  path: _path + ".plugins",
3872
3967
  expected: "Array<IntegrationPluginDetails<string>>",
3873
3968
  value: input.plugins
3969
+ }), undefined === input.rewards || (Array.isArray(input.rewards) || $report(_exceptionable, {
3970
+ path: _path + ".rewards",
3971
+ expected: "(Array<iClaimReward<NumberType>> | undefined)",
3972
+ value: input.rewards
3973
+ })) && input.rewards.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3974
+ path: _path + ".rewards[" + _index14 + "]",
3975
+ expected: "iClaimReward<NumberType>",
3976
+ value: elem
3977
+ })) && $vo16(elem, _path + ".rewards[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
3978
+ path: _path + ".rewards[" + _index14 + "]",
3979
+ expected: "iClaimReward<NumberType>",
3980
+ value: elem
3981
+ })).every(flag => flag) || $report(_exceptionable, {
3982
+ path: _path + ".rewards",
3983
+ expected: "(Array<iClaimReward<NumberType>> | undefined)",
3984
+ value: input.rewards
3985
+ }), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || $report(_exceptionable, {
3986
+ path: _path + ".estimatedCost",
3987
+ expected: "(string | undefined)",
3988
+ value: input.estimatedCost
3989
+ }), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || $report(_exceptionable, {
3990
+ path: _path + ".estimatedTime",
3991
+ expected: "(string | undefined)",
3992
+ value: input.estimatedTime
3874
3993
  }), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
3875
3994
  path: _path + ".manualDistribution",
3876
3995
  expected: "(boolean | undefined)",
@@ -3911,8 +4030,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3911
4030
  path: _path + ".tags",
3912
4031
  expected: "(Array<string> | undefined)",
3913
4032
  value: input.tags
3914
- })) && input.tags.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
3915
- path: _path + ".tags[" + _index13 + "]",
4033
+ })) && input.tags.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
4034
+ path: _path + ".tags[" + _index15 + "]",
3916
4035
  expected: "string",
3917
4036
  value: elem
3918
4037
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3939,12 +4058,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3939
4058
  path: _path + ".attributes",
3940
4059
  expected: "(Array<__type> | undefined)",
3941
4060
  value: input.attributes
3942
- })) && input.attributes.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3943
- path: _path + ".attributes[" + _index14 + "]",
4061
+ })) && input.attributes.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4062
+ path: _path + ".attributes[" + _index16 + "]",
3944
4063
  expected: "__type.o2",
3945
4064
  value: elem
3946
- })) && $vo5(elem, _path + ".attributes[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
3947
- path: _path + ".attributes[" + _index14 + "]",
4065
+ })) && $vo5(elem, _path + ".attributes[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
4066
+ path: _path + ".attributes[" + _index16 + "]",
3948
4067
  expected: "__type.o2",
3949
4068
  value: elem
3950
4069
  })).every(flag => flag) || $report(_exceptionable, {
@@ -3955,12 +4074,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3955
4074
  path: _path + ".utility",
3956
4075
  expected: "(Array<__type>.o1 | undefined)",
3957
4076
  value: input.utility
3958
- })) && input.utility.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3959
- path: _path + ".utility[" + _index15 + "]",
4077
+ })) && input.utility.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4078
+ path: _path + ".utility[" + _index17 + "]",
3960
4079
  expected: "__type.o3",
3961
4080
  value: elem
3962
- })) && $vo6(elem, _path + ".utility[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
3963
- path: _path + ".utility[" + _index15 + "]",
4081
+ })) && $vo6(elem, _path + ".utility[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
4082
+ path: _path + ".utility[" + _index17 + "]",
3964
4083
  expected: "__type.o3",
3965
4084
  value: elem
3966
4085
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4028,12 +4147,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4028
4147
  path: _path + ".manualBalances",
4029
4148
  expected: "Array<iManualBalances<NumberType>>",
4030
4149
  value: input.manualBalances
4031
- })) && input.manualBalances.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4032
- path: _path + ".manualBalances[" + _index16 + "]",
4150
+ })) && input.manualBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4151
+ path: _path + ".manualBalances[" + _index18 + "]",
4033
4152
  expected: "iManualBalances<NumberType>",
4034
4153
  value: elem
4035
- })) && $vo8(elem, _path + ".manualBalances[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
4036
- path: _path + ".manualBalances[" + _index16 + "]",
4154
+ })) && $vo8(elem, _path + ".manualBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
4155
+ path: _path + ".manualBalances[" + _index18 + "]",
4037
4156
  expected: "iManualBalances<NumberType>",
4038
4157
  value: elem
4039
4158
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4060,12 +4179,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4060
4179
  path: _path + ".balances",
4061
4180
  expected: "Array<iBalance<NumberType>>",
4062
4181
  value: input.balances
4063
- })) && input.balances.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4064
- path: _path + ".balances[" + _index17 + "]",
4182
+ })) && input.balances.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4183
+ path: _path + ".balances[" + _index19 + "]",
4065
4184
  expected: "iBalance<NumberType>",
4066
4185
  value: elem
4067
- })) && $vo9(elem, _path + ".balances[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
4068
- path: _path + ".balances[" + _index17 + "]",
4186
+ })) && $vo9(elem, _path + ".balances[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
4187
+ path: _path + ".balances[" + _index19 + "]",
4069
4188
  expected: "iBalance<NumberType>",
4070
4189
  value: elem
4071
4190
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4080,12 +4199,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4080
4199
  path: _path + ".badgeIds",
4081
4200
  expected: "Array<iUintRange<NumberType>>",
4082
4201
  value: input.badgeIds
4083
- })) && input.badgeIds.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4084
- path: _path + ".badgeIds[" + _index18 + "]",
4202
+ })) && input.badgeIds.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4203
+ path: _path + ".badgeIds[" + _index20 + "]",
4085
4204
  expected: "iUintRange<NumberType>",
4086
4205
  value: elem
4087
- })) && $vo10(elem, _path + ".badgeIds[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
4088
- path: _path + ".badgeIds[" + _index18 + "]",
4206
+ })) && $vo10(elem, _path + ".badgeIds[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
4207
+ path: _path + ".badgeIds[" + _index20 + "]",
4089
4208
  expected: "iUintRange<NumberType>",
4090
4209
  value: elem
4091
4210
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4096,12 +4215,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4096
4215
  path: _path + ".ownershipTimes",
4097
4216
  expected: "Array<iUintRange<NumberType>>",
4098
4217
  value: input.ownershipTimes
4099
- })) && input.ownershipTimes.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4100
- path: _path + ".ownershipTimes[" + _index19 + "]",
4218
+ })) && input.ownershipTimes.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4219
+ path: _path + ".ownershipTimes[" + _index21 + "]",
4101
4220
  expected: "iUintRange<NumberType>",
4102
4221
  value: elem
4103
- })) && $vo10(elem, _path + ".ownershipTimes[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
4104
- path: _path + ".ownershipTimes[" + _index19 + "]",
4222
+ })) && $vo10(elem, _path + ".ownershipTimes[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
4223
+ path: _path + ".ownershipTimes[" + _index21 + "]",
4105
4224
  expected: "iUintRange<NumberType>",
4106
4225
  value: elem
4107
4226
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4120,12 +4239,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4120
4239
  path: _path + ".startBalances",
4121
4240
  expected: "Array<iBalance<NumberType>>",
4122
4241
  value: input.startBalances
4123
- })) && input.startBalances.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4124
- path: _path + ".startBalances[" + _index20 + "]",
4242
+ })) && input.startBalances.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4243
+ path: _path + ".startBalances[" + _index22 + "]",
4125
4244
  expected: "iBalance<NumberType>",
4126
4245
  value: elem
4127
- })) && $vo9(elem, _path + ".startBalances[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
4128
- path: _path + ".startBalances[" + _index20 + "]",
4246
+ })) && $vo9(elem, _path + ".startBalances[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
4247
+ path: _path + ".startBalances[" + _index22 + "]",
4129
4248
  expected: "iBalance<NumberType>",
4130
4249
  value: elem
4131
4250
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4249,7 +4368,68 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4249
4368
  path: _path + ".image",
4250
4369
  expected: "(string | undefined)",
4251
4370
  value: input.image
4252
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
4371
+ })].every(flag => flag); const $vo16 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || $report(_exceptionable, {
4372
+ path: _path + ".rewardId",
4373
+ expected: "string",
4374
+ value: input.rewardId
4375
+ }), "string" === typeof input.instanceId || $report(_exceptionable, {
4376
+ path: _path + ".instanceId",
4377
+ expected: "string",
4378
+ value: input.instanceId
4379
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
4380
+ path: _path + ".metadata",
4381
+ expected: "(__type.o5 | undefined)",
4382
+ value: input.metadata
4383
+ })) && $vo17(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
4384
+ path: _path + ".metadata",
4385
+ expected: "(__type.o5 | undefined)",
4386
+ value: input.metadata
4387
+ }), undefined === input.automatic || "boolean" === typeof input.automatic || $report(_exceptionable, {
4388
+ path: _path + ".automatic",
4389
+ expected: "(boolean | undefined)",
4390
+ value: input.automatic
4391
+ }), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || $report(_exceptionable, {
4392
+ path: _path + ".gatedContent",
4393
+ expected: "iClaimGatedContent",
4394
+ value: input.gatedContent
4395
+ })) && $vo18(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || $report(_exceptionable, {
4396
+ path: _path + ".gatedContent",
4397
+ expected: "iClaimGatedContent",
4398
+ value: input.gatedContent
4399
+ })].every(flag => flag); const $vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4400
+ path: _path + ".name",
4401
+ expected: "string",
4402
+ value: input.name
4403
+ }), "string" === typeof input.description || $report(_exceptionable, {
4404
+ path: _path + ".description",
4405
+ expected: "string",
4406
+ value: input.description
4407
+ }), "string" === typeof input.image || $report(_exceptionable, {
4408
+ path: _path + ".image",
4409
+ expected: "string",
4410
+ value: input.image
4411
+ })].every(flag => flag); const $vo18 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
4412
+ path: _path + ".content",
4413
+ expected: "(string | undefined)",
4414
+ value: input.content
4415
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
4416
+ path: _path + ".url",
4417
+ expected: "(string | undefined)",
4418
+ value: input.url
4419
+ }), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || $report(_exceptionable, {
4420
+ path: _path + ".params",
4421
+ expected: "(__type.o6 | undefined)",
4422
+ value: input.params
4423
+ })) && $vo19(input.params, _path + ".params", true && _exceptionable) || $report(_exceptionable, {
4424
+ path: _path + ".params",
4425
+ expected: "(__type.o6 | undefined)",
4426
+ value: input.params
4427
+ })].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
4428
+ const value = input[key];
4429
+ if (undefined === value)
4430
+ return true;
4431
+ return true;
4432
+ }).every(flag => flag)].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
4253
4433
  if (false === __is(input)) {
4254
4434
  errors = [];
4255
4435
  $report = typia.validate.report(errors);
@@ -4336,12 +4516,17 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4336
4516
  if (undefined === value)
4337
4517
  return true;
4338
4518
  return Array.isArray(value) && value.every(elem => "object" === typeof elem && null !== elem && $io2(elem));
4339
- }); const $io2 = 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 && $io3(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io3(elem))); const $io3 = 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 $io4 = input => "string" === typeof input.claimId && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (undefined === input.approach || "string" === typeof input.approach); const $io5 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io6(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io6(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io6(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) && $io6(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io6(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io7(input.metadata)); const $io6 = input => Object.keys(input).every(key => {
4519
+ }); const $io2 = 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 && $io3(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io3(elem))); const $io3 = 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 $io4 = input => "string" === typeof input.claimId && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io8(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io12(input.balancesToSet)) && (undefined === input.approach || "string" === typeof input.approach); const $io5 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io6(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io6(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io6(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) && $io6(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io6(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io7(input.metadata)); const $io6 = input => Object.keys(input).every(key => {
4340
4520
  const value = input[key];
4341
4521
  if (undefined === value)
4342
4522
  return true;
4343
4523
  return true;
4344
- }); const $io7 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io8 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io11(input.orderCalculationMethod)); const $io9 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io2(elem)); const $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy); const $io11 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.balances || ("object" === typeof input.balances && null !== input.balances && false === Array.isArray(input.balances) || $report(_exceptionable, {
4524
+ }); const $io7 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io8 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io9(input.metadata)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && $io10(input.gatedContent)); const $io9 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const $io10 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && $io11(input.params)); const $io11 = input => Object.keys(input).every(key => {
4525
+ const value = input[key];
4526
+ if (undefined === value)
4527
+ return true;
4528
+ return true;
4529
+ }); const $io12 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io14(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io15(input.orderCalculationMethod)); const $io13 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io2(elem)); const $io14 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy); const $io15 = input => "boolean" === typeof input.useOverallNumTransfers && "boolean" === typeof input.usePerToAddressNumTransfers && "boolean" === typeof input.usePerFromAddressNumTransfers && "boolean" === typeof input.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.useMerkleChallengeLeafIndex && "string" === typeof input.challengeTrackerId; const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.balances || ("object" === typeof input.balances && null !== input.balances && false === Array.isArray(input.balances) || $report(_exceptionable, {
4345
4530
  path: _path + ".balances",
4346
4531
  expected: "(iOffChainBalancesMap<NumberType> | undefined)",
4347
4532
  value: input.balances
@@ -4353,12 +4538,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4353
4538
  path: _path + ".claims",
4354
4539
  expected: "(Array<__type> | undefined)",
4355
4540
  value: input.claims
4356
- })) && input.claims.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4357
- path: _path + ".claims[" + _index9 + "]",
4541
+ })) && input.claims.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4542
+ path: _path + ".claims[" + _index10 + "]",
4358
4543
  expected: "__type",
4359
4544
  value: elem
4360
- })) && $vo4(elem, _path + ".claims[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
4361
- path: _path + ".claims[" + _index9 + "]",
4545
+ })) && $vo4(elem, _path + ".claims[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
4546
+ path: _path + ".claims[" + _index10 + "]",
4362
4547
  expected: "__type",
4363
4548
  value: elem
4364
4549
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4385,12 +4570,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4385
4570
  path: _path + $join(key),
4386
4571
  expected: "Array<iBalance<NumberType>>",
4387
4572
  value: value
4388
- })) && value.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4389
- path: _path + $join(key) + "[" + _index10 + "]",
4573
+ })) && value.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4574
+ path: _path + $join(key) + "[" + _index11 + "]",
4390
4575
  expected: "iBalance<NumberType>",
4391
4576
  value: elem
4392
- })) && $vo2(elem, _path + $join(key) + "[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
4393
- path: _path + $join(key) + "[" + _index10 + "]",
4577
+ })) && $vo2(elem, _path + $join(key) + "[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
4578
+ path: _path + $join(key) + "[" + _index11 + "]",
4394
4579
  expected: "iBalance<NumberType>",
4395
4580
  value: elem
4396
4581
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4406,12 +4591,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4406
4591
  path: _path + ".badgeIds",
4407
4592
  expected: "Array<iUintRange<NumberType>>",
4408
4593
  value: input.badgeIds
4409
- })) && input.badgeIds.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4410
- path: _path + ".badgeIds[" + _index11 + "]",
4594
+ })) && input.badgeIds.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4595
+ path: _path + ".badgeIds[" + _index12 + "]",
4411
4596
  expected: "iUintRange<NumberType>",
4412
4597
  value: elem
4413
- })) && $vo3(elem, _path + ".badgeIds[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
4414
- path: _path + ".badgeIds[" + _index11 + "]",
4598
+ })) && $vo3(elem, _path + ".badgeIds[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
4599
+ path: _path + ".badgeIds[" + _index12 + "]",
4415
4600
  expected: "iUintRange<NumberType>",
4416
4601
  value: elem
4417
4602
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4422,12 +4607,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4422
4607
  path: _path + ".ownershipTimes",
4423
4608
  expected: "Array<iUintRange<NumberType>>",
4424
4609
  value: input.ownershipTimes
4425
- })) && input.ownershipTimes.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4426
- path: _path + ".ownershipTimes[" + _index12 + "]",
4610
+ })) && input.ownershipTimes.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4611
+ path: _path + ".ownershipTimes[" + _index13 + "]",
4427
4612
  expected: "iUintRange<NumberType>",
4428
4613
  value: elem
4429
- })) && $vo3(elem, _path + ".ownershipTimes[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
4430
- path: _path + ".ownershipTimes[" + _index12 + "]",
4614
+ })) && $vo3(elem, _path + ".ownershipTimes[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
4615
+ path: _path + ".ownershipTimes[" + _index13 + "]",
4431
4616
  expected: "iUintRange<NumberType>",
4432
4617
  value: elem
4433
4618
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4450,23 +4635,47 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4450
4635
  path: _path + ".plugins",
4451
4636
  expected: "Array<IntegrationPluginDetails<string>>",
4452
4637
  value: input.plugins
4453
- })) && input.plugins.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4454
- path: _path + ".plugins[" + _index13 + "]",
4638
+ })) && input.plugins.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4639
+ path: _path + ".plugins[" + _index14 + "]",
4455
4640
  expected: "IntegrationPluginDetails<string>",
4456
4641
  value: elem
4457
- })) && $vo5(elem, _path + ".plugins[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
4458
- path: _path + ".plugins[" + _index13 + "]",
4642
+ })) && $vo5(elem, _path + ".plugins[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
4643
+ path: _path + ".plugins[" + _index14 + "]",
4459
4644
  expected: "IntegrationPluginDetails<string>",
4460
4645
  value: elem
4461
4646
  })).every(flag => flag) || $report(_exceptionable, {
4462
4647
  path: _path + ".plugins",
4463
4648
  expected: "Array<IntegrationPluginDetails<string>>",
4464
4649
  value: input.plugins
4650
+ }), undefined === input.rewards || (Array.isArray(input.rewards) || $report(_exceptionable, {
4651
+ path: _path + ".rewards",
4652
+ expected: "(Array<iClaimReward<NumberType>> | undefined)",
4653
+ value: input.rewards
4654
+ })) && input.rewards.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4655
+ path: _path + ".rewards[" + _index15 + "]",
4656
+ expected: "iClaimReward<NumberType>",
4657
+ value: elem
4658
+ })) && $vo8(elem, _path + ".rewards[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
4659
+ path: _path + ".rewards[" + _index15 + "]",
4660
+ expected: "iClaimReward<NumberType>",
4661
+ value: elem
4662
+ })).every(flag => flag) || $report(_exceptionable, {
4663
+ path: _path + ".rewards",
4664
+ expected: "(Array<iClaimReward<NumberType>> | undefined)",
4665
+ value: input.rewards
4666
+ }), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || $report(_exceptionable, {
4667
+ path: _path + ".estimatedCost",
4668
+ expected: "(string | undefined)",
4669
+ value: input.estimatedCost
4670
+ }), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || $report(_exceptionable, {
4671
+ path: _path + ".estimatedTime",
4672
+ expected: "(string | undefined)",
4673
+ value: input.estimatedTime
4465
4674
  }), undefined === input.balancesToSet || ("object" === typeof input.balancesToSet && null !== input.balancesToSet || $report(_exceptionable, {
4466
4675
  path: _path + ".balancesToSet",
4467
4676
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
4468
4677
  value: input.balancesToSet
4469
- })) && $vo8(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
4678
+ })) && $vo12(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
4470
4679
  path: _path + ".balancesToSet",
4471
4680
  expected: "(iPredeterminedBalances<NumberType> | undefined)",
4472
4681
  value: input.balancesToSet
@@ -4559,16 +4768,77 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4559
4768
  path: _path + ".image",
4560
4769
  expected: "(string | undefined)",
4561
4770
  value: input.image
4562
- })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
4771
+ })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || $report(_exceptionable, {
4772
+ path: _path + ".rewardId",
4773
+ expected: "string",
4774
+ value: input.rewardId
4775
+ }), "string" === typeof input.instanceId || $report(_exceptionable, {
4776
+ path: _path + ".instanceId",
4777
+ expected: "string",
4778
+ value: input.instanceId
4779
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
4780
+ path: _path + ".metadata",
4781
+ expected: "(__type.o2 | undefined)",
4782
+ value: input.metadata
4783
+ })) && $vo9(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
4784
+ path: _path + ".metadata",
4785
+ expected: "(__type.o2 | undefined)",
4786
+ value: input.metadata
4787
+ }), undefined === input.automatic || "boolean" === typeof input.automatic || $report(_exceptionable, {
4788
+ path: _path + ".automatic",
4789
+ expected: "(boolean | undefined)",
4790
+ value: input.automatic
4791
+ }), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || $report(_exceptionable, {
4792
+ path: _path + ".gatedContent",
4793
+ expected: "iClaimGatedContent",
4794
+ value: input.gatedContent
4795
+ })) && $vo10(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || $report(_exceptionable, {
4796
+ path: _path + ".gatedContent",
4797
+ expected: "iClaimGatedContent",
4798
+ value: input.gatedContent
4799
+ })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
4800
+ path: _path + ".name",
4801
+ expected: "string",
4802
+ value: input.name
4803
+ }), "string" === typeof input.description || $report(_exceptionable, {
4804
+ path: _path + ".description",
4805
+ expected: "string",
4806
+ value: input.description
4807
+ }), "string" === typeof input.image || $report(_exceptionable, {
4808
+ path: _path + ".image",
4809
+ expected: "string",
4810
+ value: input.image
4811
+ })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
4812
+ path: _path + ".content",
4813
+ expected: "(string | undefined)",
4814
+ value: input.content
4815
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
4816
+ path: _path + ".url",
4817
+ expected: "(string | undefined)",
4818
+ value: input.url
4819
+ }), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || $report(_exceptionable, {
4820
+ path: _path + ".params",
4821
+ expected: "(__type.o3 | undefined)",
4822
+ value: input.params
4823
+ })) && $vo11(input.params, _path + ".params", true && _exceptionable) || $report(_exceptionable, {
4824
+ path: _path + ".params",
4825
+ expected: "(__type.o3 | undefined)",
4826
+ value: input.params
4827
+ })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
4828
+ const value = input[key];
4829
+ if (undefined === value)
4830
+ return true;
4831
+ return true;
4832
+ }).every(flag => flag)].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
4563
4833
  path: _path + ".manualBalances",
4564
4834
  expected: "Array<iManualBalances<NumberType>>",
4565
4835
  value: input.manualBalances
4566
- })) && input.manualBalances.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4567
- path: _path + ".manualBalances[" + _index14 + "]",
4836
+ })) && input.manualBalances.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4837
+ path: _path + ".manualBalances[" + _index16 + "]",
4568
4838
  expected: "iManualBalances<NumberType>",
4569
4839
  value: elem
4570
- })) && $vo9(elem, _path + ".manualBalances[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
4571
- path: _path + ".manualBalances[" + _index14 + "]",
4840
+ })) && $vo13(elem, _path + ".manualBalances[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
4841
+ path: _path + ".manualBalances[" + _index16 + "]",
4572
4842
  expected: "iManualBalances<NumberType>",
4573
4843
  value: elem
4574
4844
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4579,7 +4849,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4579
4849
  path: _path + ".incrementedBalances",
4580
4850
  expected: "iIncrementedBalances<NumberType>",
4581
4851
  value: input.incrementedBalances
4582
- })) && $vo10(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4852
+ })) && $vo14(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
4583
4853
  path: _path + ".incrementedBalances",
4584
4854
  expected: "iIncrementedBalances<NumberType>",
4585
4855
  value: input.incrementedBalances
@@ -4587,36 +4857,36 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4587
4857
  path: _path + ".orderCalculationMethod",
4588
4858
  expected: "iPredeterminedOrderCalculationMethod",
4589
4859
  value: input.orderCalculationMethod
4590
- })) && $vo11(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4860
+ })) && $vo15(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
4591
4861
  path: _path + ".orderCalculationMethod",
4592
4862
  expected: "iPredeterminedOrderCalculationMethod",
4593
4863
  value: input.orderCalculationMethod
4594
- })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4864
+ })].every(flag => flag); const $vo13 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
4595
4865
  path: _path + ".balances",
4596
4866
  expected: "Array<iBalance<NumberType>>",
4597
4867
  value: input.balances
4598
- })) && input.balances.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4599
- path: _path + ".balances[" + _index15 + "]",
4868
+ })) && input.balances.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4869
+ path: _path + ".balances[" + _index17 + "]",
4600
4870
  expected: "iBalance<NumberType>",
4601
4871
  value: elem
4602
- })) && $vo2(elem, _path + ".balances[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
4603
- path: _path + ".balances[" + _index15 + "]",
4872
+ })) && $vo2(elem, _path + ".balances[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
4873
+ path: _path + ".balances[" + _index17 + "]",
4604
4874
  expected: "iBalance<NumberType>",
4605
4875
  value: elem
4606
4876
  })).every(flag => flag) || $report(_exceptionable, {
4607
4877
  path: _path + ".balances",
4608
4878
  expected: "Array<iBalance<NumberType>>",
4609
4879
  value: input.balances
4610
- })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4880
+ })].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
4611
4881
  path: _path + ".startBalances",
4612
4882
  expected: "Array<iBalance<NumberType>>",
4613
4883
  value: input.startBalances
4614
- })) && input.startBalances.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4615
- path: _path + ".startBalances[" + _index16 + "]",
4884
+ })) && input.startBalances.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4885
+ path: _path + ".startBalances[" + _index18 + "]",
4616
4886
  expected: "iBalance<NumberType>",
4617
4887
  value: elem
4618
- })) && $vo2(elem, _path + ".startBalances[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
4619
- path: _path + ".startBalances[" + _index16 + "]",
4888
+ })) && $vo2(elem, _path + ".startBalances[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
4889
+ path: _path + ".startBalances[" + _index18 + "]",
4620
4890
  expected: "iBalance<NumberType>",
4621
4891
  value: elem
4622
4892
  })).every(flag => flag) || $report(_exceptionable, {
@@ -4631,7 +4901,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4631
4901
  path: _path + ".incrementOwnershipTimesBy",
4632
4902
  expected: "(bigint | number | string)",
4633
4903
  value: input.incrementOwnershipTimesBy
4634
- })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4904
+ })].every(flag => flag); const $vo15 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
4635
4905
  path: _path + ".useOverallNumTransfers",
4636
4906
  expected: "boolean",
4637
4907
  value: input.useOverallNumTransfers
@@ -4975,6 +5245,45 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4975
5245
  return Promise.reject(error);
4976
5246
  }
4977
5247
  }
5248
+ async getGatedContentForClaim(claimId) {
5249
+ try {
5250
+ const validateRes = (() => { const $io0 = input => true; const $vo0 = (input, _path, _exceptionable = true) => true; const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
5251
+ if (false === __is(input)) {
5252
+ errors = [];
5253
+ $report = typia.validate.report(errors);
5254
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
5255
+ path: _path + "",
5256
+ expected: "GetGatedContentForClaimPayload",
5257
+ value: input
5258
+ })) && $vo0(input, _path + "", true) || $report(true, {
5259
+ path: _path + "",
5260
+ expected: "GetGatedContentForClaimPayload",
5261
+ value: input
5262
+ }))(input, "$input", true);
5263
+ const success = 0 === errors.length;
5264
+ return {
5265
+ success,
5266
+ errors,
5267
+ data: success ? input : undefined
5268
+ };
5269
+ }
5270
+ return {
5271
+ success: true,
5272
+ errors: [],
5273
+ data: input
5274
+ };
5275
+ }; })()({});
5276
+ if (!validateRes.success) {
5277
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5278
+ }
5279
+ const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetGatedContentForClaimRoute(claimId)}`);
5280
+ return new GetGatedContentForClaimSuccessResponse(response.data);
5281
+ }
5282
+ catch (error) {
5283
+ await this.handleApiError(error);
5284
+ return Promise.reject(error);
5285
+ }
5286
+ }
4978
5287
  async updateUserSeenActivity() {
4979
5288
  return await this.updateAccountInfo({ seenActivity: Date.now() });
4980
5289
  }
@@ -6908,26 +7217,31 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6908
7217
  if ("number" === typeof Number(key))
6909
7218
  return "number" === typeof value;
6910
7219
  return true;
6911
- }); const $io7 = input => "string" === typeof input.claimId && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io17(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version); const $io8 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io12(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io13(input.orderCalculationMethod)); const $io9 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io10(elem)); const $io10 = 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 && $io11(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io11(elem))); const $io11 = 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 $io12 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io10(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 $io13 = 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 $io14 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io15(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io15(input.privateState)) && (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 && "string" === typeof input.version && ("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)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io16(input.metadata)); const $io15 = input => Object.keys(input).every(key => {
7220
+ }); const $io7 = input => "string" === typeof input.claimId && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io17(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io21(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version); const $io8 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io9(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io12(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && $io13(input.orderCalculationMethod)); const $io9 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io10(elem)); const $io10 = 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 && $io11(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io11(elem))); const $io11 = 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 $io12 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io10(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 $io13 = 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 $io14 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && $io15(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io15(input.privateState)) && (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 && "string" === typeof input.version && ("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)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io16(input.metadata)); const $io15 = input => Object.keys(input).every(key => {
7221
+ const value = input[key];
7222
+ if (undefined === value)
7223
+ return true;
7224
+ return true;
7225
+ }); const $io16 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io17 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io18(input.metadata)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && $io19(input.gatedContent)); const $io18 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const $io19 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && $io20(input.params)); const $io20 = input => Object.keys(input).every(key => {
6912
7226
  const value = input[key];
6913
7227
  if (undefined === value)
6914
7228
  return true;
6915
7229
  return true;
6916
- }); const $io16 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io17 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io18(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io19(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io20(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io21(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io18 = input => Object.keys(input).every(key => {
7230
+ }); const $io21 = 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) && $io22(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io23(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io25(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 $io22 = input => Object.keys(input).every(key => {
6917
7231
  const value = input[key];
6918
7232
  if (undefined === value)
6919
7233
  return true;
6920
7234
  return "string" === typeof value;
6921
- }); 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, {
7235
+ }); const $io23 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io24 = 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 $io25 = 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, {
6922
7236
  path: _path + ".approvalDetails",
6923
7237
  expected: "Array<__type>",
6924
7238
  value: input.approvalDetails
6925
- })) && input.approvalDetails.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6926
- path: _path + ".approvalDetails[" + _index14 + "]",
7239
+ })) && input.approvalDetails.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7240
+ path: _path + ".approvalDetails[" + _index15 + "]",
6927
7241
  expected: "__type",
6928
7242
  value: elem
6929
- })) && $vo1(elem, _path + ".approvalDetails[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
6930
- path: _path + ".approvalDetails[" + _index14 + "]",
7243
+ })) && $vo1(elem, _path + ".approvalDetails[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
7244
+ path: _path + ".approvalDetails[" + _index15 + "]",
6931
7245
  expected: "__type",
6932
7246
  value: elem
6933
7247
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6946,12 +7260,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6946
7260
  path: _path + ".challengeInfoDetails",
6947
7261
  expected: "(Array<iChallengeInfoDetails<NumberType>> | undefined)",
6948
7262
  value: input.challengeInfoDetails
6949
- })) && input.challengeInfoDetails.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6950
- path: _path + ".challengeInfoDetails[" + _index15 + "]",
7263
+ })) && input.challengeInfoDetails.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7264
+ path: _path + ".challengeInfoDetails[" + _index16 + "]",
6951
7265
  expected: "iChallengeInfoDetails<NumberType>",
6952
7266
  value: elem
6953
- })) && $vo2(elem, _path + ".challengeInfoDetails[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
6954
- path: _path + ".challengeInfoDetails[" + _index15 + "]",
7267
+ })) && $vo2(elem, _path + ".challengeInfoDetails[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
7268
+ path: _path + ".challengeInfoDetails[" + _index16 + "]",
6955
7269
  expected: "iChallengeInfoDetails<NumberType>",
6956
7270
  value: elem
6957
7271
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6978,8 +7292,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6978
7292
  path: _path + ".leaves",
6979
7293
  expected: "Array<string>",
6980
7294
  value: input.leaves
6981
- })) && input.leaves.map((elem, _index16) => "string" === typeof elem || $report(_exceptionable, {
6982
- path: _path + ".leaves[" + _index16 + "]",
7295
+ })) && input.leaves.map((elem, _index17) => "string" === typeof elem || $report(_exceptionable, {
7296
+ path: _path + ".leaves[" + _index17 + "]",
6983
7297
  expected: "string",
6984
7298
  value: elem
6985
7299
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6994,8 +7308,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6994
7308
  path: _path + ".preimages",
6995
7309
  expected: "(Array<string> | undefined)",
6996
7310
  value: input.preimages
6997
- })) && input.preimages.map((elem, _index17) => "string" === typeof elem || $report(_exceptionable, {
6998
- path: _path + ".preimages[" + _index17 + "]",
7311
+ })) && input.preimages.map((elem, _index18) => "string" === typeof elem || $report(_exceptionable, {
7312
+ path: _path + ".preimages[" + _index18 + "]",
6999
7313
  expected: "string",
7000
7314
  value: elem
7001
7315
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7139,18 +7453,42 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7139
7453
  path: _path + ".plugins",
7140
7454
  expected: "Array<IntegrationPluginDetails<string>>",
7141
7455
  value: input.plugins
7142
- })) && input.plugins.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7143
- path: _path + ".plugins[" + _index18 + "]",
7456
+ })) && input.plugins.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7457
+ path: _path + ".plugins[" + _index19 + "]",
7144
7458
  expected: "IntegrationPluginDetails<string>",
7145
7459
  value: elem
7146
- })) && $vo14(elem, _path + ".plugins[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
7147
- path: _path + ".plugins[" + _index18 + "]",
7460
+ })) && $vo14(elem, _path + ".plugins[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
7461
+ path: _path + ".plugins[" + _index19 + "]",
7148
7462
  expected: "IntegrationPluginDetails<string>",
7149
7463
  value: elem
7150
7464
  })).every(flag => flag) || $report(_exceptionable, {
7151
7465
  path: _path + ".plugins",
7152
7466
  expected: "Array<IntegrationPluginDetails<string>>",
7153
7467
  value: input.plugins
7468
+ }), undefined === input.rewards || (Array.isArray(input.rewards) || $report(_exceptionable, {
7469
+ path: _path + ".rewards",
7470
+ expected: "(Array<iClaimReward<NumberType>> | undefined)",
7471
+ value: input.rewards
7472
+ })) && input.rewards.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7473
+ path: _path + ".rewards[" + _index20 + "]",
7474
+ expected: "iClaimReward<NumberType>",
7475
+ value: elem
7476
+ })) && $vo17(elem, _path + ".rewards[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
7477
+ path: _path + ".rewards[" + _index20 + "]",
7478
+ expected: "iClaimReward<NumberType>",
7479
+ value: elem
7480
+ })).every(flag => flag) || $report(_exceptionable, {
7481
+ path: _path + ".rewards",
7482
+ expected: "(Array<iClaimReward<NumberType>> | undefined)",
7483
+ value: input.rewards
7484
+ }), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || $report(_exceptionable, {
7485
+ path: _path + ".estimatedCost",
7486
+ expected: "(string | undefined)",
7487
+ value: input.estimatedCost
7488
+ }), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || $report(_exceptionable, {
7489
+ path: _path + ".estimatedTime",
7490
+ expected: "(string | undefined)",
7491
+ value: input.estimatedTime
7154
7492
  }), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
7155
7493
  path: _path + ".manualDistribution",
7156
7494
  expected: "(boolean | undefined)",
@@ -7167,7 +7505,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7167
7505
  path: _path + ".metadata",
7168
7506
  expected: "(iMetadata<NumberType> | undefined)",
7169
7507
  value: input.metadata
7170
- })) && $vo17(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
7508
+ })) && $vo21(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
7171
7509
  path: _path + ".metadata",
7172
7510
  expected: "(iMetadata<NumberType> | undefined)",
7173
7511
  value: input.metadata
@@ -7187,12 +7525,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7187
7525
  path: _path + ".manualBalances",
7188
7526
  expected: "Array<iManualBalances<NumberType>>",
7189
7527
  value: input.manualBalances
7190
- })) && input.manualBalances.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7191
- path: _path + ".manualBalances[" + _index19 + "]",
7528
+ })) && input.manualBalances.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7529
+ path: _path + ".manualBalances[" + _index21 + "]",
7192
7530
  expected: "iManualBalances<NumberType>",
7193
7531
  value: elem
7194
- })) && $vo9(elem, _path + ".manualBalances[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
7195
- path: _path + ".manualBalances[" + _index19 + "]",
7532
+ })) && $vo9(elem, _path + ".manualBalances[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
7533
+ path: _path + ".manualBalances[" + _index21 + "]",
7196
7534
  expected: "iManualBalances<NumberType>",
7197
7535
  value: elem
7198
7536
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7219,12 +7557,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7219
7557
  path: _path + ".balances",
7220
7558
  expected: "Array<iBalance<NumberType>>",
7221
7559
  value: input.balances
7222
- })) && input.balances.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7223
- path: _path + ".balances[" + _index20 + "]",
7560
+ })) && input.balances.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7561
+ path: _path + ".balances[" + _index22 + "]",
7224
7562
  expected: "iBalance<NumberType>",
7225
7563
  value: elem
7226
- })) && $vo10(elem, _path + ".balances[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
7227
- path: _path + ".balances[" + _index20 + "]",
7564
+ })) && $vo10(elem, _path + ".balances[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
7565
+ path: _path + ".balances[" + _index22 + "]",
7228
7566
  expected: "iBalance<NumberType>",
7229
7567
  value: elem
7230
7568
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7239,12 +7577,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7239
7577
  path: _path + ".badgeIds",
7240
7578
  expected: "Array<iUintRange<NumberType>>",
7241
7579
  value: input.badgeIds
7242
- })) && input.badgeIds.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7243
- path: _path + ".badgeIds[" + _index21 + "]",
7580
+ })) && input.badgeIds.map((elem, _index23) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7581
+ path: _path + ".badgeIds[" + _index23 + "]",
7244
7582
  expected: "iUintRange<NumberType>",
7245
7583
  value: elem
7246
- })) && $vo11(elem, _path + ".badgeIds[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
7247
- path: _path + ".badgeIds[" + _index21 + "]",
7584
+ })) && $vo11(elem, _path + ".badgeIds[" + _index23 + "]", true && _exceptionable) || $report(_exceptionable, {
7585
+ path: _path + ".badgeIds[" + _index23 + "]",
7248
7586
  expected: "iUintRange<NumberType>",
7249
7587
  value: elem
7250
7588
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7255,12 +7593,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7255
7593
  path: _path + ".ownershipTimes",
7256
7594
  expected: "Array<iUintRange<NumberType>>",
7257
7595
  value: input.ownershipTimes
7258
- })) && input.ownershipTimes.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7259
- path: _path + ".ownershipTimes[" + _index22 + "]",
7596
+ })) && input.ownershipTimes.map((elem, _index24) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7597
+ path: _path + ".ownershipTimes[" + _index24 + "]",
7260
7598
  expected: "iUintRange<NumberType>",
7261
7599
  value: elem
7262
- })) && $vo11(elem, _path + ".ownershipTimes[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
7263
- path: _path + ".ownershipTimes[" + _index22 + "]",
7600
+ })) && $vo11(elem, _path + ".ownershipTimes[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
7601
+ path: _path + ".ownershipTimes[" + _index24 + "]",
7264
7602
  expected: "iUintRange<NumberType>",
7265
7603
  value: elem
7266
7604
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7279,12 +7617,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7279
7617
  path: _path + ".startBalances",
7280
7618
  expected: "Array<iBalance<NumberType>>",
7281
7619
  value: input.startBalances
7282
- })) && input.startBalances.map((elem, _index23) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7283
- path: _path + ".startBalances[" + _index23 + "]",
7620
+ })) && input.startBalances.map((elem, _index25) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7621
+ path: _path + ".startBalances[" + _index25 + "]",
7284
7622
  expected: "iBalance<NumberType>",
7285
7623
  value: elem
7286
- })) && $vo10(elem, _path + ".startBalances[" + _index23 + "]", true && _exceptionable) || $report(_exceptionable, {
7287
- path: _path + ".startBalances[" + _index23 + "]",
7624
+ })) && $vo10(elem, _path + ".startBalances[" + _index25 + "]", true && _exceptionable) || $report(_exceptionable, {
7625
+ path: _path + ".startBalances[" + _index25 + "]",
7288
7626
  expected: "iBalance<NumberType>",
7289
7627
  value: elem
7290
7628
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7408,7 +7746,68 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7408
7746
  path: _path + ".image",
7409
7747
  expected: "(string | undefined)",
7410
7748
  value: input.image
7411
- })].every(flag => flag); const $vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
7749
+ })].every(flag => flag); const $vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || $report(_exceptionable, {
7750
+ path: _path + ".rewardId",
7751
+ expected: "string",
7752
+ value: input.rewardId
7753
+ }), "string" === typeof input.instanceId || $report(_exceptionable, {
7754
+ path: _path + ".instanceId",
7755
+ expected: "string",
7756
+ value: input.instanceId
7757
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
7758
+ path: _path + ".metadata",
7759
+ expected: "(__type.o2 | undefined)",
7760
+ value: input.metadata
7761
+ })) && $vo18(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
7762
+ path: _path + ".metadata",
7763
+ expected: "(__type.o2 | undefined)",
7764
+ value: input.metadata
7765
+ }), undefined === input.automatic || "boolean" === typeof input.automatic || $report(_exceptionable, {
7766
+ path: _path + ".automatic",
7767
+ expected: "(boolean | undefined)",
7768
+ value: input.automatic
7769
+ }), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || $report(_exceptionable, {
7770
+ path: _path + ".gatedContent",
7771
+ expected: "iClaimGatedContent",
7772
+ value: input.gatedContent
7773
+ })) && $vo19(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || $report(_exceptionable, {
7774
+ path: _path + ".gatedContent",
7775
+ expected: "iClaimGatedContent",
7776
+ value: input.gatedContent
7777
+ })].every(flag => flag); const $vo18 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
7778
+ path: _path + ".name",
7779
+ expected: "string",
7780
+ value: input.name
7781
+ }), "string" === typeof input.description || $report(_exceptionable, {
7782
+ path: _path + ".description",
7783
+ expected: "string",
7784
+ value: input.description
7785
+ }), "string" === typeof input.image || $report(_exceptionable, {
7786
+ path: _path + ".image",
7787
+ expected: "string",
7788
+ value: input.image
7789
+ })].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || $report(_exceptionable, {
7790
+ path: _path + ".content",
7791
+ expected: "(string | undefined)",
7792
+ value: input.content
7793
+ }), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
7794
+ path: _path + ".url",
7795
+ expected: "(string | undefined)",
7796
+ value: input.url
7797
+ }), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || $report(_exceptionable, {
7798
+ path: _path + ".params",
7799
+ expected: "(__type.o3 | undefined)",
7800
+ value: input.params
7801
+ })) && $vo20(input.params, _path + ".params", true && _exceptionable) || $report(_exceptionable, {
7802
+ path: _path + ".params",
7803
+ expected: "(__type.o3 | undefined)",
7804
+ value: input.params
7805
+ })].every(flag => flag); const $vo20 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
7806
+ const value = input[key];
7807
+ if (undefined === value)
7808
+ return true;
7809
+ return true;
7810
+ }).every(flag => flag)].every(flag => flag); const $vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
7412
7811
  path: _path + ".name",
7413
7812
  expected: "string",
7414
7813
  value: input.name
@@ -7436,8 +7835,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7436
7835
  path: _path + ".tags",
7437
7836
  expected: "(Array<string> | undefined)",
7438
7837
  value: input.tags
7439
- })) && input.tags.map((elem, _index24) => "string" === typeof elem || $report(_exceptionable, {
7440
- path: _path + ".tags[" + _index24 + "]",
7838
+ })) && input.tags.map((elem, _index26) => "string" === typeof elem || $report(_exceptionable, {
7839
+ path: _path + ".tags[" + _index26 + "]",
7441
7840
  expected: "string",
7442
7841
  value: elem
7443
7842
  })).every(flag => flag) || $report(_exceptionable, {
@@ -7446,31 +7845,31 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7446
7845
  value: input.tags
7447
7846
  }), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
7448
7847
  path: _path + ".socials",
7449
- expected: "(__type.o2 | undefined)",
7848
+ expected: "(__type.o4 | undefined)",
7450
7849
  value: input.socials
7451
- })) && $vo18(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
7850
+ })) && $vo22(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
7452
7851
  path: _path + ".socials",
7453
- expected: "(__type.o2 | undefined)",
7852
+ expected: "(__type.o4 | undefined)",
7454
7853
  value: input.socials
7455
7854
  }), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
7456
7855
  path: _path + ".offChainTransferabilityInfo",
7457
- expected: "(__type.o3 | undefined)",
7856
+ expected: "(__type.o5 | undefined)",
7458
7857
  value: input.offChainTransferabilityInfo
7459
- })) && $vo19(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
7858
+ })) && $vo23(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
7460
7859
  path: _path + ".offChainTransferabilityInfo",
7461
- expected: "(__type.o3 | undefined)",
7860
+ expected: "(__type.o5 | undefined)",
7462
7861
  value: input.offChainTransferabilityInfo
7463
7862
  }), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
7464
7863
  path: _path + ".attributes",
7465
7864
  expected: "(Array<__type>.o1 | undefined)",
7466
7865
  value: input.attributes
7467
- })) && input.attributes.map((elem, _index25) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7468
- path: _path + ".attributes[" + _index25 + "]",
7469
- expected: "__type.o4",
7866
+ })) && input.attributes.map((elem, _index27) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7867
+ path: _path + ".attributes[" + _index27 + "]",
7868
+ expected: "__type.o6",
7470
7869
  value: elem
7471
- })) && $vo20(elem, _path + ".attributes[" + _index25 + "]", true && _exceptionable) || $report(_exceptionable, {
7472
- path: _path + ".attributes[" + _index25 + "]",
7473
- expected: "__type.o4",
7870
+ })) && $vo24(elem, _path + ".attributes[" + _index27 + "]", true && _exceptionable) || $report(_exceptionable, {
7871
+ path: _path + ".attributes[" + _index27 + "]",
7872
+ expected: "__type.o6",
7474
7873
  value: elem
7475
7874
  })).every(flag => flag) || $report(_exceptionable, {
7476
7875
  path: _path + ".attributes",
@@ -7480,13 +7879,13 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7480
7879
  path: _path + ".utility",
7481
7880
  expected: "(Array<__type>.o2 | undefined)",
7482
7881
  value: input.utility
7483
- })) && input.utility.map((elem, _index26) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7484
- path: _path + ".utility[" + _index26 + "]",
7485
- expected: "__type.o5",
7882
+ })) && input.utility.map((elem, _index28) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
7883
+ path: _path + ".utility[" + _index28 + "]",
7884
+ expected: "__type.o7",
7486
7885
  value: elem
7487
- })) && $vo21(elem, _path + ".utility[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
7488
- path: _path + ".utility[" + _index26 + "]",
7489
- expected: "__type.o5",
7886
+ })) && $vo25(elem, _path + ".utility[" + _index28 + "]", true && _exceptionable) || $report(_exceptionable, {
7887
+ path: _path + ".utility[" + _index28 + "]",
7888
+ expected: "__type.o7",
7490
7889
  value: elem
7491
7890
  })).every(flag => flag) || $report(_exceptionable, {
7492
7891
  path: _path + ".utility",
@@ -7504,7 +7903,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7504
7903
  path: _path + "._isUpdating",
7505
7904
  expected: "(boolean | undefined)",
7506
7905
  value: input._isUpdating
7507
- })].every(flag => flag); const $vo18 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
7906
+ })].every(flag => flag); const $vo22 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
7508
7907
  const value = input[key];
7509
7908
  if (undefined === value)
7510
7909
  return true;
@@ -7513,7 +7912,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7513
7912
  expected: "string",
7514
7913
  value: value
7515
7914
  });
7516
- }).every(flag => flag)].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
7915
+ }).every(flag => flag)].every(flag => flag); const $vo23 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
7517
7916
  path: _path + ".host",
7518
7917
  expected: "string",
7519
7918
  value: input.host
@@ -7521,7 +7920,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7521
7920
  path: _path + ".assignMethod",
7522
7921
  expected: "string",
7523
7922
  value: input.assignMethod
7524
- })].every(flag => flag); const $vo20 = (input, _path, _exceptionable = true) => [undefined === input.type || "url" === input.type || "date" === input.type || $report(_exceptionable, {
7923
+ })].every(flag => flag); const $vo24 = (input, _path, _exceptionable = true) => [undefined === input.type || "url" === input.type || "date" === input.type || $report(_exceptionable, {
7525
7924
  path: _path + ".type",
7526
7925
  expected: "(\"date\" | \"url\" | undefined)",
7527
7926
  value: input.type
@@ -7533,7 +7932,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
7533
7932
  path: _path + ".value",
7534
7933
  expected: "(boolean | number | string)",
7535
7934
  value: input.value
7536
- })].every(flag => flag); const $vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
7935
+ })].every(flag => flag); const $vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
7537
7936
  path: _path + ".name",
7538
7937
  expected: "string",
7539
7938
  value: input.name