bitbadgesjs-sdk 0.5.13 → 0.5.14

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 (27) hide show
  1. package/dist/cjs/api-indexer/BitBadgesApi.d.ts +3 -3
  2. package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
  3. package/dist/cjs/api-indexer/BitBadgesApi.js +357 -305
  4. package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
  5. package/dist/cjs/api-indexer/docs/docs.d.ts +5 -0
  6. package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
  7. package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
  8. package/dist/cjs/api-indexer/docs/interfaces.d.ts +5 -0
  9. package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
  10. package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
  11. package/dist/cjs/api-indexer/requests/requests.d.ts +7 -0
  12. package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
  13. package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
  14. package/dist/esm/api-indexer/BitBadgesApi.d.ts +3 -3
  15. package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
  16. package/dist/esm/api-indexer/BitBadgesApi.js +357 -305
  17. package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
  18. package/dist/esm/api-indexer/docs/docs.d.ts +5 -0
  19. package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
  20. package/dist/esm/api-indexer/docs/docs.js.map +1 -1
  21. package/dist/esm/api-indexer/docs/interfaces.d.ts +5 -0
  22. package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
  23. package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
  24. package/dist/esm/api-indexer/requests/requests.d.ts +7 -0
  25. package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
  26. package/dist/esm/api-indexer/requests/requests.js.map +1 -1
  27. package/package.json +2 -2
@@ -349,7 +349,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
349
349
  }
350
350
  async updateAccountInfo(payload) {
351
351
  try {
352
- const validateRes = (() => { const $io0 = input => (undefined === input.discord || "string" === typeof input.discord) && (undefined === input.twitter || "string" === typeof input.twitter) && (undefined === input.github || "string" === typeof input.github) && (undefined === input.telegram || "string" === typeof input.telegram) && (undefined === input.seenActivity || "string" === typeof input.seenActivity || "number" === typeof input.seenActivity || "bigint" === typeof input.seenActivity) && (undefined === input.readme || "string" === typeof input.readme) && (undefined === input.hiddenBadges || Array.isArray(input.hiddenBadges) && input.hiddenBadges.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.hiddenLists || Array.isArray(input.hiddenLists) && input.hiddenLists.every(elem => "string" === typeof elem)) && (undefined === input.customLinks || Array.isArray(input.customLinks) && input.customLinks.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.customPages || "object" === typeof input.customPages && null !== input.customPages && $io4(input.customPages)) && (undefined === input.watchlists || "object" === typeof input.watchlists && null !== input.watchlists && $io7(input.watchlists)) && (undefined === input.profilePicUrl || "string" === typeof input.profilePicUrl) && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.username || "string" === typeof input.username) && true && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && false === Array.isArray(input.notifications) && $io8(input.notifications)) && (undefined === input.approvedSignInMethods || "object" === typeof input.approvedSignInMethods && null !== input.approvedSignInMethods && false === Array.isArray(input.approvedSignInMethods) && $io11(input.approvedSignInMethods)) && (undefined === input.socialConnections || "object" === typeof input.socialConnections && null !== input.socialConnections && false === Array.isArray(input.socialConnections) && $io19(input.socialConnections)); const $io1 = input => ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); const $io2 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io3 = input => "string" === typeof input.title && "string" === typeof input.url && "string" === typeof input.image; const $io4 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io5 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && $io1(elem))); const $io6 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "string" === typeof elem)); const $io7 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io8 = input => (undefined === input.email || "string" === typeof input.email) && (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io9(input.discord)) && (undefined === input.antiPhishingCode || "string" === typeof input.antiPhishingCode) && (undefined === input.preferences || "object" === typeof input.preferences && null !== input.preferences && false === Array.isArray(input.preferences) && $io10(input.preferences)); const $io9 = input => "string" === typeof input.id && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator); const $io10 = input => (undefined === input.listActivity || "boolean" === typeof input.listActivity) && (undefined === input.transferActivity || "boolean" === typeof input.transferActivity) && (undefined === input.claimAlerts || "boolean" === typeof input.claimAlerts) && (undefined === input.ignoreIfInitiator || "boolean" === typeof input.ignoreIfInitiator); const $io11 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io12(input.discord)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io15(input.github)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io16(input.google)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io17(input.twitter)) && (undefined === input.addresses || Array.isArray(input.addresses) && input.addresses.every(elem => "object" === typeof elem && null !== elem && $io18(elem))); const $io12 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator) && "string" === typeof input.id; const $io13 = input => "string" === typeof input.scopeName && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io14(input.options)); const $io14 = input => true; const $io15 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io16 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io17 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io18 = input => "string" === typeof input.address && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem))); const $io19 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io20(input.discord)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io21(input.twitter)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io22(input.google)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io23(input.github)) && (undefined === input.twitch || "object" === typeof input.twitch && null !== input.twitch && $io24(input.twitch)) && (undefined === input.strava || "object" === typeof input.strava && null !== input.strava && $io25(input.strava)) && (undefined === input.reddit || "object" === typeof input.reddit && null !== input.reddit && $io26(input.reddit)) && (undefined === input.telegram || "object" === typeof input.telegram && null !== input.telegram && $io27(input.telegram)) && (undefined === input.farcaster || "object" === typeof input.farcaster && null !== input.farcaster && $io28(input.farcaster)) && (undefined === input.slack || "object" === typeof input.slack && null !== input.slack && $io29(input.slack)); const $io20 = input => "string" === typeof input.username && "string" === typeof input.id && (undefined === input.discriminator || "string" === typeof input.discriminator) && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io21 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io22 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io23 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io24 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io25 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io26 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io27 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io28 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io29 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.discord || "string" === typeof input.discord || $report(_exceptionable, {
352
+ const validateRes = (() => { const $io0 = input => (undefined === input.discord || "string" === typeof input.discord) && (undefined === input.twitter || "string" === typeof input.twitter) && (undefined === input.github || "string" === typeof input.github) && (undefined === input.telegram || "string" === typeof input.telegram) && (undefined === input.seenActivity || "string" === typeof input.seenActivity || "number" === typeof input.seenActivity || "bigint" === typeof input.seenActivity) && (undefined === input.readme || "string" === typeof input.readme) && (undefined === input.hiddenBadges || Array.isArray(input.hiddenBadges) && input.hiddenBadges.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.hiddenLists || Array.isArray(input.hiddenLists) && input.hiddenLists.every(elem => "string" === typeof elem)) && (undefined === input.customLinks || Array.isArray(input.customLinks) && input.customLinks.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.customPages || "object" === typeof input.customPages && null !== input.customPages && $io4(input.customPages)) && (undefined === input.watchlists || "object" === typeof input.watchlists && null !== input.watchlists && $io7(input.watchlists)) && (undefined === input.profilePicUrl || "string" === typeof input.profilePicUrl) && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.username || "string" === typeof input.username) && true && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && false === Array.isArray(input.notifications) && $io8(input.notifications)) && (undefined === input.approvedSignInMethods || "object" === typeof input.approvedSignInMethods && null !== input.approvedSignInMethods && false === Array.isArray(input.approvedSignInMethods) && $io11(input.approvedSignInMethods)) && (undefined === input.socialConnections || "object" === typeof input.socialConnections && null !== input.socialConnections && false === Array.isArray(input.socialConnections) && $io20(input.socialConnections)); const $io1 = input => ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); const $io2 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io3 = input => "string" === typeof input.title && "string" === typeof input.url && "string" === typeof input.image; const $io4 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io5 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && $io1(elem))); const $io6 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "string" === typeof elem)); const $io7 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io8 = input => (undefined === input.email || "string" === typeof input.email) && (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io9(input.discord)) && (undefined === input.antiPhishingCode || "string" === typeof input.antiPhishingCode) && (undefined === input.preferences || "object" === typeof input.preferences && null !== input.preferences && false === Array.isArray(input.preferences) && $io10(input.preferences)); const $io9 = input => "string" === typeof input.id && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator); const $io10 = input => (undefined === input.listActivity || "boolean" === typeof input.listActivity) && (undefined === input.transferActivity || "boolean" === typeof input.transferActivity) && (undefined === input.claimAlerts || "boolean" === typeof input.claimAlerts) && (undefined === input.ignoreIfInitiator || "boolean" === typeof input.ignoreIfInitiator); const $io11 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io12(input.discord)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io15(input.github)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io16(input.google)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io17(input.twitter)) && (undefined === input.addresses || Array.isArray(input.addresses) && input.addresses.every(elem => "object" === typeof elem && null !== elem && $io18(elem))) && (undefined === input.passwords || Array.isArray(input.passwords) && input.passwords.every(elem => "object" === typeof elem && null !== elem && $io19(elem))); const $io12 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator) && "string" === typeof input.id; const $io13 = input => "string" === typeof input.scopeName && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io14(input.options)); const $io14 = input => true; const $io15 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io16 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io17 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io18 = input => "string" === typeof input.address && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem))); const $io19 = input => "string" === typeof input.passwordHash && "string" === typeof input.salt && (undefined === input.password || "string" === typeof input.password) && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem))); const $io20 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io21(input.discord)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io22(input.twitter)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io23(input.google)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io24(input.github)) && (undefined === input.twitch || "object" === typeof input.twitch && null !== input.twitch && $io25(input.twitch)) && (undefined === input.strava || "object" === typeof input.strava && null !== input.strava && $io26(input.strava)) && (undefined === input.reddit || "object" === typeof input.reddit && null !== input.reddit && $io27(input.reddit)) && (undefined === input.telegram || "object" === typeof input.telegram && null !== input.telegram && $io28(input.telegram)) && (undefined === input.farcaster || "object" === typeof input.farcaster && null !== input.farcaster && $io29(input.farcaster)) && (undefined === input.slack || "object" === typeof input.slack && null !== input.slack && $io30(input.slack)); const $io21 = input => "string" === typeof input.username && "string" === typeof input.id && (undefined === input.discriminator || "string" === typeof input.discriminator) && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io22 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io23 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io24 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io25 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io26 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io27 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io28 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io29 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io30 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.discord || "string" === typeof input.discord || $report(_exceptionable, {
353
353
  path: _path + ".discord",
354
354
  expected: "(string | undefined)",
355
355
  value: input.discord
@@ -377,12 +377,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
377
377
  path: _path + ".hiddenBadges",
378
378
  expected: "(Array<iBatchBadgeDetails<NumberType>> | undefined)",
379
379
  value: input.hiddenBadges
380
- })) && input.hiddenBadges.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
381
- path: _path + ".hiddenBadges[" + _index19 + "]",
380
+ })) && input.hiddenBadges.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
381
+ path: _path + ".hiddenBadges[" + _index21 + "]",
382
382
  expected: "iBatchBadgeDetails<NumberType>",
383
383
  value: elem
384
- })) && $vo1(elem, _path + ".hiddenBadges[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
385
- path: _path + ".hiddenBadges[" + _index19 + "]",
384
+ })) && $vo1(elem, _path + ".hiddenBadges[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
385
+ path: _path + ".hiddenBadges[" + _index21 + "]",
386
386
  expected: "iBatchBadgeDetails<NumberType>",
387
387
  value: elem
388
388
  })).every(flag => flag) || $report(_exceptionable, {
@@ -393,8 +393,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
393
393
  path: _path + ".hiddenLists",
394
394
  expected: "(Array<string> | undefined)",
395
395
  value: input.hiddenLists
396
- })) && input.hiddenLists.map((elem, _index20) => "string" === typeof elem || $report(_exceptionable, {
397
- path: _path + ".hiddenLists[" + _index20 + "]",
396
+ })) && input.hiddenLists.map((elem, _index22) => "string" === typeof elem || $report(_exceptionable, {
397
+ path: _path + ".hiddenLists[" + _index22 + "]",
398
398
  expected: "string",
399
399
  value: elem
400
400
  })).every(flag => flag) || $report(_exceptionable, {
@@ -405,12 +405,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
405
405
  path: _path + ".customLinks",
406
406
  expected: "(Array<iCustomLink> | undefined)",
407
407
  value: input.customLinks
408
- })) && input.customLinks.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
409
- path: _path + ".customLinks[" + _index21 + "]",
408
+ })) && input.customLinks.map((elem, _index23) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
409
+ path: _path + ".customLinks[" + _index23 + "]",
410
410
  expected: "iCustomLink",
411
411
  value: elem
412
- })) && $vo3(elem, _path + ".customLinks[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
413
- path: _path + ".customLinks[" + _index21 + "]",
412
+ })) && $vo3(elem, _path + ".customLinks[" + _index23 + "]", true && _exceptionable) || $report(_exceptionable, {
413
+ path: _path + ".customLinks[" + _index23 + "]",
414
414
  expected: "iCustomLink",
415
415
  value: elem
416
416
  })).every(flag => flag) || $report(_exceptionable, {
@@ -465,7 +465,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
465
465
  path: _path + ".socialConnections",
466
466
  expected: "(iSocialConnections<NumberType> | undefined)",
467
467
  value: input.socialConnections
468
- })) && $vo19(input.socialConnections, _path + ".socialConnections", true && _exceptionable) || $report(_exceptionable, {
468
+ })) && $vo20(input.socialConnections, _path + ".socialConnections", true && _exceptionable) || $report(_exceptionable, {
469
469
  path: _path + ".socialConnections",
470
470
  expected: "(iSocialConnections<NumberType> | undefined)",
471
471
  value: input.socialConnections
@@ -477,12 +477,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
477
477
  path: _path + ".badgeIds",
478
478
  expected: "Array<iUintRange<NumberType>>",
479
479
  value: input.badgeIds
480
- })) && input.badgeIds.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
481
- path: _path + ".badgeIds[" + _index22 + "]",
480
+ })) && input.badgeIds.map((elem, _index24) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
481
+ path: _path + ".badgeIds[" + _index24 + "]",
482
482
  expected: "iUintRange<NumberType>",
483
483
  value: elem
484
- })) && $vo2(elem, _path + ".badgeIds[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
485
- path: _path + ".badgeIds[" + _index22 + "]",
484
+ })) && $vo2(elem, _path + ".badgeIds[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
485
+ path: _path + ".badgeIds[" + _index24 + "]",
486
486
  expected: "iUintRange<NumberType>",
487
487
  value: elem
488
488
  })).every(flag => flag) || $report(_exceptionable, {
@@ -513,12 +513,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
513
513
  path: _path + ".badges",
514
514
  expected: "Array<iCustomPage<NumberType>>",
515
515
  value: input.badges
516
- })) && input.badges.map((elem, _index23) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
517
- path: _path + ".badges[" + _index23 + "]",
516
+ })) && input.badges.map((elem, _index25) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
517
+ path: _path + ".badges[" + _index25 + "]",
518
518
  expected: "iCustomPage<NumberType>",
519
519
  value: elem
520
- })) && $vo5(elem, _path + ".badges[" + _index23 + "]", true && _exceptionable) || $report(_exceptionable, {
521
- path: _path + ".badges[" + _index23 + "]",
520
+ })) && $vo5(elem, _path + ".badges[" + _index25 + "]", true && _exceptionable) || $report(_exceptionable, {
521
+ path: _path + ".badges[" + _index25 + "]",
522
522
  expected: "iCustomPage<NumberType>",
523
523
  value: elem
524
524
  })).every(flag => flag) || $report(_exceptionable, {
@@ -529,12 +529,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
529
529
  path: _path + ".lists",
530
530
  expected: "Array<iCustomListPage>",
531
531
  value: input.lists
532
- })) && input.lists.map((elem, _index24) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
533
- path: _path + ".lists[" + _index24 + "]",
532
+ })) && input.lists.map((elem, _index26) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
533
+ path: _path + ".lists[" + _index26 + "]",
534
534
  expected: "iCustomListPage",
535
535
  value: elem
536
- })) && $vo6(elem, _path + ".lists[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
537
- path: _path + ".lists[" + _index24 + "]",
536
+ })) && $vo6(elem, _path + ".lists[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
537
+ path: _path + ".lists[" + _index26 + "]",
538
538
  expected: "iCustomListPage",
539
539
  value: elem
540
540
  })).every(flag => flag) || $report(_exceptionable, {
@@ -545,12 +545,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
545
545
  path: _path + ".attestations",
546
546
  expected: "Array<iCustomListPage>",
547
547
  value: input.attestations
548
- })) && input.attestations.map((elem, _index25) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
549
- path: _path + ".attestations[" + _index25 + "]",
548
+ })) && input.attestations.map((elem, _index27) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
549
+ path: _path + ".attestations[" + _index27 + "]",
550
550
  expected: "iCustomListPage",
551
551
  value: elem
552
- })) && $vo6(elem, _path + ".attestations[" + _index25 + "]", true && _exceptionable) || $report(_exceptionable, {
553
- path: _path + ".attestations[" + _index25 + "]",
552
+ })) && $vo6(elem, _path + ".attestations[" + _index27 + "]", true && _exceptionable) || $report(_exceptionable, {
553
+ path: _path + ".attestations[" + _index27 + "]",
554
554
  expected: "iCustomListPage",
555
555
  value: elem
556
556
  })).every(flag => flag) || $report(_exceptionable, {
@@ -569,12 +569,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
569
569
  path: _path + ".items",
570
570
  expected: "Array<iBatchBadgeDetails<NumberType>>",
571
571
  value: input.items
572
- })) && input.items.map((elem, _index26) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
573
- path: _path + ".items[" + _index26 + "]",
572
+ })) && input.items.map((elem, _index28) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
573
+ path: _path + ".items[" + _index28 + "]",
574
574
  expected: "iBatchBadgeDetails<NumberType>",
575
575
  value: elem
576
- })) && $vo1(elem, _path + ".items[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
577
- path: _path + ".items[" + _index26 + "]",
576
+ })) && $vo1(elem, _path + ".items[" + _index28 + "]", true && _exceptionable) || $report(_exceptionable, {
577
+ path: _path + ".items[" + _index28 + "]",
578
578
  expected: "iBatchBadgeDetails<NumberType>",
579
579
  value: elem
580
580
  })).every(flag => flag) || $report(_exceptionable, {
@@ -593,8 +593,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
593
593
  path: _path + ".items",
594
594
  expected: "Array<string>",
595
595
  value: input.items
596
- })) && input.items.map((elem, _index27) => "string" === typeof elem || $report(_exceptionable, {
597
- path: _path + ".items[" + _index27 + "]",
596
+ })) && input.items.map((elem, _index29) => "string" === typeof elem || $report(_exceptionable, {
597
+ path: _path + ".items[" + _index29 + "]",
598
598
  expected: "string",
599
599
  value: elem
600
600
  })).every(flag => flag) || $report(_exceptionable, {
@@ -605,12 +605,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
605
605
  path: _path + ".badges",
606
606
  expected: "Array<iCustomPage<NumberType>>",
607
607
  value: input.badges
608
- })) && input.badges.map((elem, _index28) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
609
- path: _path + ".badges[" + _index28 + "]",
608
+ })) && input.badges.map((elem, _index30) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
609
+ path: _path + ".badges[" + _index30 + "]",
610
610
  expected: "iCustomPage<NumberType>",
611
611
  value: elem
612
- })) && $vo5(elem, _path + ".badges[" + _index28 + "]", true && _exceptionable) || $report(_exceptionable, {
613
- path: _path + ".badges[" + _index28 + "]",
612
+ })) && $vo5(elem, _path + ".badges[" + _index30 + "]", true && _exceptionable) || $report(_exceptionable, {
613
+ path: _path + ".badges[" + _index30 + "]",
614
614
  expected: "iCustomPage<NumberType>",
615
615
  value: elem
616
616
  })).every(flag => flag) || $report(_exceptionable, {
@@ -621,12 +621,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
621
621
  path: _path + ".lists",
622
622
  expected: "Array<iCustomListPage>",
623
623
  value: input.lists
624
- })) && input.lists.map((elem, _index29) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
625
- path: _path + ".lists[" + _index29 + "]",
624
+ })) && input.lists.map((elem, _index31) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
625
+ path: _path + ".lists[" + _index31 + "]",
626
626
  expected: "iCustomListPage",
627
627
  value: elem
628
- })) && $vo6(elem, _path + ".lists[" + _index29 + "]", true && _exceptionable) || $report(_exceptionable, {
629
- path: _path + ".lists[" + _index29 + "]",
628
+ })) && $vo6(elem, _path + ".lists[" + _index31 + "]", true && _exceptionable) || $report(_exceptionable, {
629
+ path: _path + ".lists[" + _index31 + "]",
630
630
  expected: "iCustomListPage",
631
631
  value: elem
632
632
  })).every(flag => flag) || $report(_exceptionable, {
@@ -637,12 +637,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
637
637
  path: _path + ".attestations",
638
638
  expected: "Array<iCustomListPage>",
639
639
  value: input.attestations
640
- })) && input.attestations.map((elem, _index30) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
641
- path: _path + ".attestations[" + _index30 + "]",
640
+ })) && input.attestations.map((elem, _index32) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
641
+ path: _path + ".attestations[" + _index32 + "]",
642
642
  expected: "iCustomListPage",
643
643
  value: elem
644
- })) && $vo6(elem, _path + ".attestations[" + _index30 + "]", true && _exceptionable) || $report(_exceptionable, {
645
- path: _path + ".attestations[" + _index30 + "]",
644
+ })) && $vo6(elem, _path + ".attestations[" + _index32 + "]", true && _exceptionable) || $report(_exceptionable, {
645
+ path: _path + ".attestations[" + _index32 + "]",
646
646
  expected: "iCustomListPage",
647
647
  value: elem
648
648
  })).every(flag => flag) || $report(_exceptionable, {
@@ -737,28 +737,44 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
737
737
  path: _path + ".addresses",
738
738
  expected: "(Array<__type> | undefined)",
739
739
  value: input.addresses
740
- })) && input.addresses.map((elem, _index31) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
741
- path: _path + ".addresses[" + _index31 + "]",
740
+ })) && input.addresses.map((elem, _index33) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
741
+ path: _path + ".addresses[" + _index33 + "]",
742
742
  expected: "__type.o10",
743
743
  value: elem
744
- })) && $vo18(elem, _path + ".addresses[" + _index31 + "]", true && _exceptionable) || $report(_exceptionable, {
745
- path: _path + ".addresses[" + _index31 + "]",
744
+ })) && $vo18(elem, _path + ".addresses[" + _index33 + "]", true && _exceptionable) || $report(_exceptionable, {
745
+ path: _path + ".addresses[" + _index33 + "]",
746
746
  expected: "__type.o10",
747
747
  value: elem
748
748
  })).every(flag => flag) || $report(_exceptionable, {
749
749
  path: _path + ".addresses",
750
750
  expected: "(Array<__type> | undefined)",
751
751
  value: input.addresses
752
+ }), undefined === input.passwords || (Array.isArray(input.passwords) || $report(_exceptionable, {
753
+ path: _path + ".passwords",
754
+ expected: "(Array<__type>.o1 | undefined)",
755
+ value: input.passwords
756
+ })) && input.passwords.map((elem, _index34) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
757
+ path: _path + ".passwords[" + _index34 + "]",
758
+ expected: "__type.o11",
759
+ value: elem
760
+ })) && $vo19(elem, _path + ".passwords[" + _index34 + "]", true && _exceptionable) || $report(_exceptionable, {
761
+ path: _path + ".passwords[" + _index34 + "]",
762
+ expected: "__type.o11",
763
+ value: elem
764
+ })).every(flag => flag) || $report(_exceptionable, {
765
+ path: _path + ".passwords",
766
+ expected: "(Array<__type>.o1 | undefined)",
767
+ value: input.passwords
752
768
  })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => [(Array.isArray(input.scopes) || $report(_exceptionable, {
753
769
  path: _path + ".scopes",
754
770
  expected: "Array<OAuthScopeDetails>",
755
771
  value: input.scopes
756
- })) && input.scopes.map((elem, _index32) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
757
- path: _path + ".scopes[" + _index32 + "]",
772
+ })) && input.scopes.map((elem, _index35) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
773
+ path: _path + ".scopes[" + _index35 + "]",
758
774
  expected: "OAuthScopeDetails",
759
775
  value: elem
760
- })) && $vo13(elem, _path + ".scopes[" + _index32 + "]", true && _exceptionable) || $report(_exceptionable, {
761
- path: _path + ".scopes[" + _index32 + "]",
776
+ })) && $vo13(elem, _path + ".scopes[" + _index35 + "]", true && _exceptionable) || $report(_exceptionable, {
777
+ path: _path + ".scopes[" + _index35 + "]",
762
778
  expected: "OAuthScopeDetails",
763
779
  value: elem
764
780
  })).every(flag => flag) || $report(_exceptionable, {
@@ -793,12 +809,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
793
809
  path: _path + ".scopes",
794
810
  expected: "Array<OAuthScopeDetails>",
795
811
  value: input.scopes
796
- })) && input.scopes.map((elem, _index33) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
797
- path: _path + ".scopes[" + _index33 + "]",
812
+ })) && input.scopes.map((elem, _index36) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
813
+ path: _path + ".scopes[" + _index36 + "]",
798
814
  expected: "OAuthScopeDetails",
799
815
  value: elem
800
- })) && $vo13(elem, _path + ".scopes[" + _index33 + "]", true && _exceptionable) || $report(_exceptionable, {
801
- path: _path + ".scopes[" + _index33 + "]",
816
+ })) && $vo13(elem, _path + ".scopes[" + _index36 + "]", true && _exceptionable) || $report(_exceptionable, {
817
+ path: _path + ".scopes[" + _index36 + "]",
802
818
  expected: "OAuthScopeDetails",
803
819
  value: elem
804
820
  })).every(flag => flag) || $report(_exceptionable, {
@@ -817,12 +833,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
817
833
  path: _path + ".scopes",
818
834
  expected: "Array<OAuthScopeDetails>",
819
835
  value: input.scopes
820
- })) && input.scopes.map((elem, _index34) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
821
- path: _path + ".scopes[" + _index34 + "]",
836
+ })) && input.scopes.map((elem, _index37) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
837
+ path: _path + ".scopes[" + _index37 + "]",
822
838
  expected: "OAuthScopeDetails",
823
839
  value: elem
824
- })) && $vo13(elem, _path + ".scopes[" + _index34 + "]", true && _exceptionable) || $report(_exceptionable, {
825
- path: _path + ".scopes[" + _index34 + "]",
840
+ })) && $vo13(elem, _path + ".scopes[" + _index37 + "]", true && _exceptionable) || $report(_exceptionable, {
841
+ path: _path + ".scopes[" + _index37 + "]",
826
842
  expected: "OAuthScopeDetails",
827
843
  value: elem
828
844
  })).every(flag => flag) || $report(_exceptionable, {
@@ -841,12 +857,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
841
857
  path: _path + ".scopes",
842
858
  expected: "Array<OAuthScopeDetails>",
843
859
  value: input.scopes
844
- })) && input.scopes.map((elem, _index35) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
845
- path: _path + ".scopes[" + _index35 + "]",
860
+ })) && input.scopes.map((elem, _index38) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
861
+ path: _path + ".scopes[" + _index38 + "]",
846
862
  expected: "OAuthScopeDetails",
847
863
  value: elem
848
- })) && $vo13(elem, _path + ".scopes[" + _index35 + "]", true && _exceptionable) || $report(_exceptionable, {
849
- path: _path + ".scopes[" + _index35 + "]",
864
+ })) && $vo13(elem, _path + ".scopes[" + _index38 + "]", true && _exceptionable) || $report(_exceptionable, {
865
+ path: _path + ".scopes[" + _index38 + "]",
850
866
  expected: "OAuthScopeDetails",
851
867
  value: elem
852
868
  })).every(flag => flag) || $report(_exceptionable, {
@@ -869,99 +885,127 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
869
885
  path: _path + ".scopes",
870
886
  expected: "Array<OAuthScopeDetails>",
871
887
  value: input.scopes
872
- })) && input.scopes.map((elem, _index36) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
873
- path: _path + ".scopes[" + _index36 + "]",
888
+ })) && input.scopes.map((elem, _index39) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
889
+ path: _path + ".scopes[" + _index39 + "]",
874
890
  expected: "OAuthScopeDetails",
875
891
  value: elem
876
- })) && $vo13(elem, _path + ".scopes[" + _index36 + "]", true && _exceptionable) || $report(_exceptionable, {
877
- path: _path + ".scopes[" + _index36 + "]",
892
+ })) && $vo13(elem, _path + ".scopes[" + _index39 + "]", true && _exceptionable) || $report(_exceptionable, {
893
+ path: _path + ".scopes[" + _index39 + "]",
894
+ expected: "OAuthScopeDetails",
895
+ value: elem
896
+ })).every(flag => flag) || $report(_exceptionable, {
897
+ path: _path + ".scopes",
898
+ expected: "Array<OAuthScopeDetails>",
899
+ value: input.scopes
900
+ })].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.passwordHash || $report(_exceptionable, {
901
+ path: _path + ".passwordHash",
902
+ expected: "string",
903
+ value: input.passwordHash
904
+ }), "string" === typeof input.salt || $report(_exceptionable, {
905
+ path: _path + ".salt",
906
+ expected: "string",
907
+ value: input.salt
908
+ }), undefined === input.password || "string" === typeof input.password || $report(_exceptionable, {
909
+ path: _path + ".password",
910
+ expected: "(string | undefined)",
911
+ value: input.password
912
+ }), (Array.isArray(input.scopes) || $report(_exceptionable, {
913
+ path: _path + ".scopes",
914
+ expected: "Array<OAuthScopeDetails>",
915
+ value: input.scopes
916
+ })) && input.scopes.map((elem, _index40) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
917
+ path: _path + ".scopes[" + _index40 + "]",
918
+ expected: "OAuthScopeDetails",
919
+ value: elem
920
+ })) && $vo13(elem, _path + ".scopes[" + _index40 + "]", true && _exceptionable) || $report(_exceptionable, {
921
+ path: _path + ".scopes[" + _index40 + "]",
878
922
  expected: "OAuthScopeDetails",
879
923
  value: elem
880
924
  })).every(flag => flag) || $report(_exceptionable, {
881
925
  path: _path + ".scopes",
882
926
  expected: "Array<OAuthScopeDetails>",
883
927
  value: input.scopes
884
- })].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => [undefined === input.discord || ("object" === typeof input.discord && null !== input.discord || $report(_exceptionable, {
928
+ })].every(flag => flag); const $vo20 = (input, _path, _exceptionable = true) => [undefined === input.discord || ("object" === typeof input.discord && null !== input.discord || $report(_exceptionable, {
885
929
  path: _path + ".discord",
886
- expected: "(__type.o11 | undefined)",
930
+ expected: "(__type.o12 | undefined)",
887
931
  value: input.discord
888
- })) && $vo20(input.discord, _path + ".discord", true && _exceptionable) || $report(_exceptionable, {
932
+ })) && $vo21(input.discord, _path + ".discord", true && _exceptionable) || $report(_exceptionable, {
889
933
  path: _path + ".discord",
890
- expected: "(__type.o11 | undefined)",
934
+ expected: "(__type.o12 | undefined)",
891
935
  value: input.discord
892
936
  }), undefined === input.twitter || ("object" === typeof input.twitter && null !== input.twitter || $report(_exceptionable, {
893
937
  path: _path + ".twitter",
894
- expected: "(__type.o12 | undefined)",
938
+ expected: "(__type.o13 | undefined)",
895
939
  value: input.twitter
896
- })) && $vo21(input.twitter, _path + ".twitter", true && _exceptionable) || $report(_exceptionable, {
940
+ })) && $vo22(input.twitter, _path + ".twitter", true && _exceptionable) || $report(_exceptionable, {
897
941
  path: _path + ".twitter",
898
- expected: "(__type.o12 | undefined)",
942
+ expected: "(__type.o13 | undefined)",
899
943
  value: input.twitter
900
944
  }), undefined === input.google || ("object" === typeof input.google && null !== input.google || $report(_exceptionable, {
901
945
  path: _path + ".google",
902
- expected: "(__type.o13 | undefined)",
946
+ expected: "(__type.o14 | undefined)",
903
947
  value: input.google
904
- })) && $vo22(input.google, _path + ".google", true && _exceptionable) || $report(_exceptionable, {
948
+ })) && $vo23(input.google, _path + ".google", true && _exceptionable) || $report(_exceptionable, {
905
949
  path: _path + ".google",
906
- expected: "(__type.o13 | undefined)",
950
+ expected: "(__type.o14 | undefined)",
907
951
  value: input.google
908
952
  }), undefined === input.github || ("object" === typeof input.github && null !== input.github || $report(_exceptionable, {
909
953
  path: _path + ".github",
910
- expected: "(__type.o14 | undefined)",
954
+ expected: "(__type.o15 | undefined)",
911
955
  value: input.github
912
- })) && $vo23(input.github, _path + ".github", true && _exceptionable) || $report(_exceptionable, {
956
+ })) && $vo24(input.github, _path + ".github", true && _exceptionable) || $report(_exceptionable, {
913
957
  path: _path + ".github",
914
- expected: "(__type.o14 | undefined)",
958
+ expected: "(__type.o15 | undefined)",
915
959
  value: input.github
916
960
  }), undefined === input.twitch || ("object" === typeof input.twitch && null !== input.twitch || $report(_exceptionable, {
917
961
  path: _path + ".twitch",
918
- expected: "(__type.o15 | undefined)",
962
+ expected: "(__type.o16 | undefined)",
919
963
  value: input.twitch
920
- })) && $vo24(input.twitch, _path + ".twitch", true && _exceptionable) || $report(_exceptionable, {
964
+ })) && $vo25(input.twitch, _path + ".twitch", true && _exceptionable) || $report(_exceptionable, {
921
965
  path: _path + ".twitch",
922
- expected: "(__type.o15 | undefined)",
966
+ expected: "(__type.o16 | undefined)",
923
967
  value: input.twitch
924
968
  }), undefined === input.strava || ("object" === typeof input.strava && null !== input.strava || $report(_exceptionable, {
925
969
  path: _path + ".strava",
926
- expected: "(__type.o16 | undefined)",
970
+ expected: "(__type.o17 | undefined)",
927
971
  value: input.strava
928
- })) && $vo25(input.strava, _path + ".strava", true && _exceptionable) || $report(_exceptionable, {
972
+ })) && $vo26(input.strava, _path + ".strava", true && _exceptionable) || $report(_exceptionable, {
929
973
  path: _path + ".strava",
930
- expected: "(__type.o16 | undefined)",
974
+ expected: "(__type.o17 | undefined)",
931
975
  value: input.strava
932
976
  }), undefined === input.reddit || ("object" === typeof input.reddit && null !== input.reddit || $report(_exceptionable, {
933
977
  path: _path + ".reddit",
934
- expected: "(__type.o17 | undefined)",
978
+ expected: "(__type.o18 | undefined)",
935
979
  value: input.reddit
936
- })) && $vo26(input.reddit, _path + ".reddit", true && _exceptionable) || $report(_exceptionable, {
980
+ })) && $vo27(input.reddit, _path + ".reddit", true && _exceptionable) || $report(_exceptionable, {
937
981
  path: _path + ".reddit",
938
- expected: "(__type.o17 | undefined)",
982
+ expected: "(__type.o18 | undefined)",
939
983
  value: input.reddit
940
984
  }), undefined === input.telegram || ("object" === typeof input.telegram && null !== input.telegram || $report(_exceptionable, {
941
985
  path: _path + ".telegram",
942
- expected: "(__type.o18 | undefined)",
986
+ expected: "(__type.o19 | undefined)",
943
987
  value: input.telegram
944
- })) && $vo27(input.telegram, _path + ".telegram", true && _exceptionable) || $report(_exceptionable, {
988
+ })) && $vo28(input.telegram, _path + ".telegram", true && _exceptionable) || $report(_exceptionable, {
945
989
  path: _path + ".telegram",
946
- expected: "(__type.o18 | undefined)",
990
+ expected: "(__type.o19 | undefined)",
947
991
  value: input.telegram
948
992
  }), undefined === input.farcaster || ("object" === typeof input.farcaster && null !== input.farcaster || $report(_exceptionable, {
949
993
  path: _path + ".farcaster",
950
- expected: "(__type.o19 | undefined)",
994
+ expected: "(__type.o20 | undefined)",
951
995
  value: input.farcaster
952
- })) && $vo28(input.farcaster, _path + ".farcaster", true && _exceptionable) || $report(_exceptionable, {
996
+ })) && $vo29(input.farcaster, _path + ".farcaster", true && _exceptionable) || $report(_exceptionable, {
953
997
  path: _path + ".farcaster",
954
- expected: "(__type.o19 | undefined)",
998
+ expected: "(__type.o20 | undefined)",
955
999
  value: input.farcaster
956
1000
  }), undefined === input.slack || ("object" === typeof input.slack && null !== input.slack || $report(_exceptionable, {
957
1001
  path: _path + ".slack",
958
- expected: "(__type.o20 | undefined)",
1002
+ expected: "(__type.o21 | undefined)",
959
1003
  value: input.slack
960
- })) && $vo29(input.slack, _path + ".slack", true && _exceptionable) || $report(_exceptionable, {
1004
+ })) && $vo30(input.slack, _path + ".slack", true && _exceptionable) || $report(_exceptionable, {
961
1005
  path: _path + ".slack",
962
- expected: "(__type.o20 | undefined)",
1006
+ expected: "(__type.o21 | undefined)",
963
1007
  value: input.slack
964
- })].every(flag => flag); const $vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1008
+ })].every(flag => flag); const $vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
965
1009
  path: _path + ".username",
966
1010
  expected: "string",
967
1011
  value: input.username
@@ -977,7 +1021,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
977
1021
  path: _path + ".lastUpdated",
978
1022
  expected: "(bigint | number | string)",
979
1023
  value: input.lastUpdated
980
- })].every(flag => flag); const $vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1024
+ })].every(flag => flag); const $vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
981
1025
  path: _path + ".username",
982
1026
  expected: "string",
983
1027
  value: input.username
@@ -989,7 +1033,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
989
1033
  path: _path + ".lastUpdated",
990
1034
  expected: "(bigint | number | string)",
991
1035
  value: input.lastUpdated
992
- })].every(flag => flag); const $vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1036
+ })].every(flag => flag); const $vo23 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
993
1037
  path: _path + ".username",
994
1038
  expected: "string",
995
1039
  value: input.username
@@ -1001,7 +1045,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1001
1045
  path: _path + ".lastUpdated",
1002
1046
  expected: "(bigint | number | string)",
1003
1047
  value: input.lastUpdated
1004
- })].every(flag => flag); const $vo23 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1048
+ })].every(flag => flag); const $vo24 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1005
1049
  path: _path + ".username",
1006
1050
  expected: "string",
1007
1051
  value: input.username
@@ -1013,7 +1057,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1013
1057
  path: _path + ".lastUpdated",
1014
1058
  expected: "(bigint | number | string)",
1015
1059
  value: input.lastUpdated
1016
- })].every(flag => flag); const $vo24 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1060
+ })].every(flag => flag); const $vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1017
1061
  path: _path + ".username",
1018
1062
  expected: "string",
1019
1063
  value: input.username
@@ -1025,7 +1069,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1025
1069
  path: _path + ".lastUpdated",
1026
1070
  expected: "(bigint | number | string)",
1027
1071
  value: input.lastUpdated
1028
- })].every(flag => flag); const $vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1072
+ })].every(flag => flag); const $vo26 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1029
1073
  path: _path + ".username",
1030
1074
  expected: "string",
1031
1075
  value: input.username
@@ -1037,7 +1081,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1037
1081
  path: _path + ".lastUpdated",
1038
1082
  expected: "(bigint | number | string)",
1039
1083
  value: input.lastUpdated
1040
- })].every(flag => flag); const $vo26 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1084
+ })].every(flag => flag); const $vo27 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1041
1085
  path: _path + ".username",
1042
1086
  expected: "string",
1043
1087
  value: input.username
@@ -1049,7 +1093,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1049
1093
  path: _path + ".lastUpdated",
1050
1094
  expected: "(bigint | number | string)",
1051
1095
  value: input.lastUpdated
1052
- })].every(flag => flag); const $vo27 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1096
+ })].every(flag => flag); const $vo28 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1053
1097
  path: _path + ".username",
1054
1098
  expected: "string",
1055
1099
  value: input.username
@@ -1061,7 +1105,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1061
1105
  path: _path + ".lastUpdated",
1062
1106
  expected: "(bigint | number | string)",
1063
1107
  value: input.lastUpdated
1064
- })].every(flag => flag); const $vo28 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1108
+ })].every(flag => flag); const $vo29 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1065
1109
  path: _path + ".username",
1066
1110
  expected: "string",
1067
1111
  value: input.username
@@ -1073,7 +1117,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1073
1117
  path: _path + ".lastUpdated",
1074
1118
  expected: "(bigint | number | string)",
1075
1119
  value: input.lastUpdated
1076
- })].every(flag => flag); const $vo29 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1120
+ })].every(flag => flag); const $vo30 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1077
1121
  path: _path + ".username",
1078
1122
  expected: "string",
1079
1123
  value: input.username
@@ -1975,7 +2019,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1975
2019
  }
1976
2020
  async verifySIWBBRequest(payload) {
1977
2021
  try {
1978
- const validateRes = (() => { const $io0 = input => (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io1(input.options)) && (undefined === input.attestationsPresentations || Array.isArray(input.attestationsPresentations) && input.attestationsPresentations.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && "string" === typeof input.message && "string" === typeof input.signature && (undefined === input.altSigner || "string" === typeof input.altSigner) && (undefined === input.socialSignIn || "string" === typeof input.socialSignIn) && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io1 = input => (undefined === input.expectedChallengeParams || "object" === typeof input.expectedChallengeParams && null !== input.expectedChallengeParams && false === Array.isArray(input.expectedChallengeParams) && $io2(input.expectedChallengeParams)) && (undefined === input.beforeVerification || true) && (undefined === input.balancesSnapshot || "object" === typeof input.balancesSnapshot && null !== input.balancesSnapshot && false === Array.isArray(input.balancesSnapshot) && $io9(input.balancesSnapshot)) && (undefined === input.verificationTimeOverride || "number" === typeof input.verificationTimeOverride) && (undefined === input.skipTimestampVerification || "boolean" === typeof input.skipTimestampVerification) && (undefined === input.skipAssetVerification || "boolean" === typeof input.skipAssetVerification) && (undefined === input.earliestIssuedAt || "string" === typeof input.earliestIssuedAt) && (undefined === input.issuedAtTimeWindowMs || "number" === typeof input.issuedAtTimeWindowMs) && (undefined === input.skipSignatureVerification || "boolean" === typeof input.skipSignatureVerification); const $io2 = input => (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.statement || "string" === typeof input.statement) && (undefined === input.address || "string" === typeof input.address) && (undefined === input.uri || "string" === typeof input.uri) && (undefined === input.nonce || "string" === typeof input.nonce) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.chainId || "string" === typeof input.chainId) && (undefined === input.issuedAt || "string" === typeof input.issuedAt) && (undefined === input.expirationDate || "string" === typeof input.expirationDate) && (undefined === input.notBefore || "string" === typeof input.notBefore) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every(elem => "string" === typeof elem)) && (undefined === input.assetOwnershipRequirements || "object" === typeof input.assetOwnershipRequirements && null !== input.assetOwnershipRequirements && $iu0(input.assetOwnershipRequirements)); const $io3 = input => Array.isArray(input.$and) && input.$and.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)); const $io4 = input => Array.isArray(input.$or) && input.$or.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)); const $io5 = input => Array.isArray(input.assets) && input.assets.every(elem => "object" === typeof elem && null !== elem && $io6(elem)) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io8(input.options)); const $io6 = input => "string" === typeof input.chain && ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (Array.isArray(input.assetIds) && input.assetIds.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io7(elem)))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && ("object" === typeof input.mustOwnAmounts && null !== input.mustOwnAmounts && $io7(input.mustOwnAmounts)) && (undefined === input.additionalCriteria || "string" === typeof input.additionalCriteria); const $io7 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io8 = input => undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification; const $io9 = input => true; const $io10 = input => Array.isArray(input.updateHistory) && input.updateHistory.every(elem => "object" === typeof elem && null !== elem && $io11(elem)) && "string" === typeof input._docId && (undefined === input._id || "string" === typeof input._id) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.createdBy && ("string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt) && (Array.isArray(input.entropies) && input.entropies.every(elem => "string" === typeof elem)) && (undefined === input.publicVisibility || "boolean" === typeof input.publicVisibility) && (undefined === input.proofOfIssuance || "object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io12(input.proofOfIssuance)) && "string" === typeof input.attestationId && "string" === typeof input.inviteCode && "string" === typeof input.scheme && (undefined === input.originalProvider || "string" === typeof input.originalProvider) && (Array.isArray(input.messages) && input.messages.every(elem => "string" === typeof elem)) && (undefined === input.dataIntegrityProof || "object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io13(input.dataIntegrityProof)) && "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (Array.isArray(input.holders) && input.holders.every(elem => "string" === typeof elem)) && (undefined === input.allHolders || Array.isArray(input.allHolders) && input.allHolders.every(elem => "string" === typeof elem)) && (Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io14(elem))); const $io11 = input => "string" === typeof input.txHash && ("string" === typeof input.block || "number" === typeof input.block || "bigint" === typeof input.block) && ("string" === typeof input.blockTimestamp || "number" === typeof input.blockTimestamp || "bigint" === typeof input.blockTimestamp) && ("string" === typeof input.timestamp || "number" === typeof input.timestamp || "bigint" === typeof input.timestamp); const $io12 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io13 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey) && (undefined === input.isDerived || "boolean" === typeof input.isDerived); const $io14 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message); const $iu0 = input => (() => {
2022
+ const validateRes = (() => { const $io0 = input => (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io1(input.options)) && (undefined === input.attestationsPresentations || Array.isArray(input.attestationsPresentations) && input.attestationsPresentations.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && "string" === typeof input.message && "string" === typeof input.signature && (undefined === input.altSigner || "string" === typeof input.altSigner) && (undefined === input.socialSignIn || "string" === typeof input.socialSignIn) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io1 = input => (undefined === input.expectedChallengeParams || "object" === typeof input.expectedChallengeParams && null !== input.expectedChallengeParams && false === Array.isArray(input.expectedChallengeParams) && $io2(input.expectedChallengeParams)) && (undefined === input.beforeVerification || true) && (undefined === input.balancesSnapshot || "object" === typeof input.balancesSnapshot && null !== input.balancesSnapshot && false === Array.isArray(input.balancesSnapshot) && $io9(input.balancesSnapshot)) && (undefined === input.verificationTimeOverride || "number" === typeof input.verificationTimeOverride) && (undefined === input.skipTimestampVerification || "boolean" === typeof input.skipTimestampVerification) && (undefined === input.skipAssetVerification || "boolean" === typeof input.skipAssetVerification) && (undefined === input.earliestIssuedAt || "string" === typeof input.earliestIssuedAt) && (undefined === input.issuedAtTimeWindowMs || "number" === typeof input.issuedAtTimeWindowMs) && (undefined === input.skipSignatureVerification || "boolean" === typeof input.skipSignatureVerification); const $io2 = input => (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.statement || "string" === typeof input.statement) && (undefined === input.address || "string" === typeof input.address) && (undefined === input.uri || "string" === typeof input.uri) && (undefined === input.nonce || "string" === typeof input.nonce) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.chainId || "string" === typeof input.chainId) && (undefined === input.issuedAt || "string" === typeof input.issuedAt) && (undefined === input.expirationDate || "string" === typeof input.expirationDate) && (undefined === input.notBefore || "string" === typeof input.notBefore) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every(elem => "string" === typeof elem)) && (undefined === input.assetOwnershipRequirements || "object" === typeof input.assetOwnershipRequirements && null !== input.assetOwnershipRequirements && $iu0(input.assetOwnershipRequirements)); const $io3 = input => Array.isArray(input.$and) && input.$and.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)); const $io4 = input => Array.isArray(input.$or) && input.$or.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)); const $io5 = input => Array.isArray(input.assets) && input.assets.every(elem => "object" === typeof elem && null !== elem && $io6(elem)) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io8(input.options)); const $io6 = input => "string" === typeof input.chain && ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (Array.isArray(input.assetIds) && input.assetIds.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io7(elem)))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && ("object" === typeof input.mustOwnAmounts && null !== input.mustOwnAmounts && $io7(input.mustOwnAmounts)) && (undefined === input.additionalCriteria || "string" === typeof input.additionalCriteria); const $io7 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io8 = input => undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification; const $io9 = input => true; const $io10 = input => Array.isArray(input.updateHistory) && input.updateHistory.every(elem => "object" === typeof elem && null !== elem && $io11(elem)) && "string" === typeof input._docId && (undefined === input._id || "string" === typeof input._id) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.createdBy && ("string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt) && (Array.isArray(input.entropies) && input.entropies.every(elem => "string" === typeof elem)) && (undefined === input.publicVisibility || "boolean" === typeof input.publicVisibility) && (undefined === input.proofOfIssuance || "object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io12(input.proofOfIssuance)) && "string" === typeof input.attestationId && "string" === typeof input.inviteCode && "string" === typeof input.scheme && (undefined === input.originalProvider || "string" === typeof input.originalProvider) && (Array.isArray(input.messages) && input.messages.every(elem => "string" === typeof elem)) && (undefined === input.dataIntegrityProof || "object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io13(input.dataIntegrityProof)) && "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (Array.isArray(input.holders) && input.holders.every(elem => "string" === typeof elem)) && (undefined === input.allHolders || Array.isArray(input.allHolders) && input.allHolders.every(elem => "string" === typeof elem)) && (Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io14(elem))); const $io11 = input => "string" === typeof input.txHash && ("string" === typeof input.block || "number" === typeof input.block || "bigint" === typeof input.block) && ("string" === typeof input.blockTimestamp || "number" === typeof input.blockTimestamp || "bigint" === typeof input.blockTimestamp) && ("string" === typeof input.timestamp || "number" === typeof input.timestamp || "bigint" === typeof input.timestamp); const $io12 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io13 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey) && (undefined === input.isDerived || "boolean" === typeof input.isDerived); const $io14 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message); const $iu0 = input => (() => {
1979
2023
  if (undefined !== input.$and)
1980
2024
  return $io3(input);
1981
2025
  else if (undefined !== input.$or)
@@ -2024,6 +2068,10 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
2024
2068
  path: _path + ".socialSignIn",
2025
2069
  expected: "(string | undefined)",
2026
2070
  value: input.socialSignIn
2071
+ }), undefined === input.password || "string" === typeof input.password || $report(_exceptionable, {
2072
+ path: _path + ".password",
2073
+ expected: "(string | undefined)",
2074
+ value: input.password
2027
2075
  }), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
2028
2076
  path: _path + ".publicKey",
2029
2077
  expected: "(string | undefined)",
@@ -5734,6 +5782,203 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
5734
5782
  return Promise.reject(error);
5735
5783
  }
5736
5784
  }
5785
+ async getSignInChallenge(payload) {
5786
+ try {
5787
+ const validateRes = (() => { const $io0 = input => ("Bitcoin" === input.chain || "Ethereum" === input.chain || "Cosmos" === input.chain || "Solana" === input.chain || "Unknown" === input.chain) && "string" === typeof input.address; const $vo0 = (input, _path, _exceptionable = true) => ["Bitcoin" === input.chain || "Ethereum" === input.chain || "Cosmos" === input.chain || "Solana" === input.chain || "Unknown" === input.chain || $report(_exceptionable, {
5788
+ path: _path + ".chain",
5789
+ expected: "(\"Bitcoin\" | \"Cosmos\" | \"Ethereum\" | \"Solana\" | \"Unknown\")",
5790
+ value: input.chain
5791
+ }), "string" === typeof input.address || $report(_exceptionable, {
5792
+ path: _path + ".address",
5793
+ expected: "string",
5794
+ value: input.address
5795
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
5796
+ if (false === __is(input)) {
5797
+ errors = [];
5798
+ $report = typia_1.default.validate.report(errors);
5799
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
5800
+ path: _path + "",
5801
+ expected: "GetSignInChallengePayload",
5802
+ value: input
5803
+ })) && $vo0(input, _path + "", true) || $report(true, {
5804
+ path: _path + "",
5805
+ expected: "GetSignInChallengePayload",
5806
+ value: input
5807
+ }))(input, "$input", true);
5808
+ const success = 0 === errors.length;
5809
+ return {
5810
+ success,
5811
+ errors,
5812
+ data: success ? input : undefined
5813
+ };
5814
+ }
5815
+ return {
5816
+ success: true,
5817
+ errors: [],
5818
+ data: input
5819
+ };
5820
+ }; })()(payload ?? {});
5821
+ if (!validateRes.success) {
5822
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5823
+ }
5824
+ const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.GetSignInChallengeRoute()}`, payload);
5825
+ return new requests_js_1.GetSignInChallengeSuccessResponse(response.data).convert(this.ConvertFunction);
5826
+ }
5827
+ catch (error) {
5828
+ await this.handleApiError(error);
5829
+ return Promise.reject(error);
5830
+ }
5831
+ }
5832
+ async verifySignIn(payload) {
5833
+ try {
5834
+ const validateRes = (() => { const $io0 = input => "string" === typeof input.message && "string" === typeof input.signature && (undefined === input.altSigner || "string" === typeof input.altSigner) && (undefined === input.socialSignIn || "string" === typeof input.socialSignIn) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.publicKey || "string" === typeof input.publicKey); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
5835
+ path: _path + ".message",
5836
+ expected: "string",
5837
+ value: input.message
5838
+ }), "string" === typeof input.signature || $report(_exceptionable, {
5839
+ path: _path + ".signature",
5840
+ expected: "string",
5841
+ value: input.signature
5842
+ }), undefined === input.altSigner || "string" === typeof input.altSigner || $report(_exceptionable, {
5843
+ path: _path + ".altSigner",
5844
+ expected: "(string | undefined)",
5845
+ value: input.altSigner
5846
+ }), undefined === input.socialSignIn || "string" === typeof input.socialSignIn || $report(_exceptionable, {
5847
+ path: _path + ".socialSignIn",
5848
+ expected: "(string | undefined)",
5849
+ value: input.socialSignIn
5850
+ }), undefined === input.password || "string" === typeof input.password || $report(_exceptionable, {
5851
+ path: _path + ".password",
5852
+ expected: "(string | undefined)",
5853
+ value: input.password
5854
+ }), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
5855
+ path: _path + ".publicKey",
5856
+ expected: "(string | undefined)",
5857
+ value: input.publicKey
5858
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
5859
+ if (false === __is(input)) {
5860
+ errors = [];
5861
+ $report = typia_1.default.validate.report(errors);
5862
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
5863
+ path: _path + "",
5864
+ expected: "VerifySignInPayload",
5865
+ value: input
5866
+ })) && $vo0(input, _path + "", true) || $report(true, {
5867
+ path: _path + "",
5868
+ expected: "VerifySignInPayload",
5869
+ value: input
5870
+ }))(input, "$input", true);
5871
+ const success = 0 === errors.length;
5872
+ return {
5873
+ success,
5874
+ errors,
5875
+ data: success ? input : undefined
5876
+ };
5877
+ }
5878
+ return {
5879
+ success: true,
5880
+ errors: [],
5881
+ data: input
5882
+ };
5883
+ }; })()(payload ?? {});
5884
+ if (!validateRes.success) {
5885
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5886
+ }
5887
+ const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.VerifySignInRoute()}`, payload);
5888
+ return new requests_js_1.VerifySignInSuccessResponse(response.data);
5889
+ }
5890
+ catch (error) {
5891
+ await this.handleApiError(error);
5892
+ return Promise.reject(error);
5893
+ }
5894
+ }
5895
+ async signOut(payload) {
5896
+ try {
5897
+ const validateRes = (() => { const $io0 = input => "boolean" === typeof input.signOutBlockin && (undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord) && (undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter) && (undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle) && (undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub) && (undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch) && (undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava) && (undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube) && (undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit) && (undefined === input.signOutTelegram || "boolean" === typeof input.signOutTelegram) && (undefined === input.signOutFarcaster || "boolean" === typeof input.signOutFarcaster) && (undefined === input.signOutSlack || "boolean" === typeof input.signOutSlack); const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.signOutBlockin || $report(_exceptionable, {
5898
+ path: _path + ".signOutBlockin",
5899
+ expected: "boolean",
5900
+ value: input.signOutBlockin
5901
+ }), undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord || $report(_exceptionable, {
5902
+ path: _path + ".signOutDiscord",
5903
+ expected: "(boolean | undefined)",
5904
+ value: input.signOutDiscord
5905
+ }), undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter || $report(_exceptionable, {
5906
+ path: _path + ".signOutTwitter",
5907
+ expected: "(boolean | undefined)",
5908
+ value: input.signOutTwitter
5909
+ }), undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle || $report(_exceptionable, {
5910
+ path: _path + ".signOutGoogle",
5911
+ expected: "(boolean | undefined)",
5912
+ value: input.signOutGoogle
5913
+ }), undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub || $report(_exceptionable, {
5914
+ path: _path + ".signOutGithub",
5915
+ expected: "(boolean | undefined)",
5916
+ value: input.signOutGithub
5917
+ }), undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch || $report(_exceptionable, {
5918
+ path: _path + ".signOutTwitch",
5919
+ expected: "(boolean | undefined)",
5920
+ value: input.signOutTwitch
5921
+ }), undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava || $report(_exceptionable, {
5922
+ path: _path + ".signOutStrava",
5923
+ expected: "(boolean | undefined)",
5924
+ value: input.signOutStrava
5925
+ }), undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube || $report(_exceptionable, {
5926
+ path: _path + ".signOutYoutube",
5927
+ expected: "(boolean | undefined)",
5928
+ value: input.signOutYoutube
5929
+ }), undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit || $report(_exceptionable, {
5930
+ path: _path + ".signOutReddit",
5931
+ expected: "(boolean | undefined)",
5932
+ value: input.signOutReddit
5933
+ }), undefined === input.signOutTelegram || "boolean" === typeof input.signOutTelegram || $report(_exceptionable, {
5934
+ path: _path + ".signOutTelegram",
5935
+ expected: "(boolean | undefined)",
5936
+ value: input.signOutTelegram
5937
+ }), undefined === input.signOutFarcaster || "boolean" === typeof input.signOutFarcaster || $report(_exceptionable, {
5938
+ path: _path + ".signOutFarcaster",
5939
+ expected: "(boolean | undefined)",
5940
+ value: input.signOutFarcaster
5941
+ }), undefined === input.signOutSlack || "boolean" === typeof input.signOutSlack || $report(_exceptionable, {
5942
+ path: _path + ".signOutSlack",
5943
+ expected: "(boolean | undefined)",
5944
+ value: input.signOutSlack
5945
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
5946
+ if (false === __is(input)) {
5947
+ errors = [];
5948
+ $report = typia_1.default.validate.report(errors);
5949
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
5950
+ path: _path + "",
5951
+ expected: "SignOutPayload",
5952
+ value: input
5953
+ })) && $vo0(input, _path + "", true) || $report(true, {
5954
+ path: _path + "",
5955
+ expected: "SignOutPayload",
5956
+ value: input
5957
+ }))(input, "$input", true);
5958
+ const success = 0 === errors.length;
5959
+ return {
5960
+ success,
5961
+ errors,
5962
+ data: success ? input : undefined
5963
+ };
5964
+ }
5965
+ return {
5966
+ success: true,
5967
+ errors: [],
5968
+ data: input
5969
+ };
5970
+ }; })()(payload ?? {});
5971
+ if (!validateRes.success) {
5972
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5973
+ }
5974
+ const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.SignOutRoute()}`, payload);
5975
+ return new requests_js_1.SignOutSuccessResponse(response.data);
5976
+ }
5977
+ catch (error) {
5978
+ await this.handleApiError(error);
5979
+ return Promise.reject(error);
5980
+ }
5981
+ }
5737
5982
  async updateUserSeenActivity() {
5738
5983
  return await this.updateAccountInfo({ seenActivity: Date.now() });
5739
5984
  }
@@ -8556,199 +8801,6 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
8556
8801
  return Promise.reject(error);
8557
8802
  }
8558
8803
  }
8559
- async getSignInChallenge(payload) {
8560
- try {
8561
- const validateRes = (() => { const $io0 = input => ("Bitcoin" === input.chain || "Ethereum" === input.chain || "Cosmos" === input.chain || "Solana" === input.chain || "Unknown" === input.chain) && "string" === typeof input.address; const $vo0 = (input, _path, _exceptionable = true) => ["Bitcoin" === input.chain || "Ethereum" === input.chain || "Cosmos" === input.chain || "Solana" === input.chain || "Unknown" === input.chain || $report(_exceptionable, {
8562
- path: _path + ".chain",
8563
- expected: "(\"Bitcoin\" | \"Cosmos\" | \"Ethereum\" | \"Solana\" | \"Unknown\")",
8564
- value: input.chain
8565
- }), "string" === typeof input.address || $report(_exceptionable, {
8566
- path: _path + ".address",
8567
- expected: "string",
8568
- value: input.address
8569
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
8570
- if (false === __is(input)) {
8571
- errors = [];
8572
- $report = typia_1.default.validate.report(errors);
8573
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
8574
- path: _path + "",
8575
- expected: "GetSignInChallengePayload",
8576
- value: input
8577
- })) && $vo0(input, _path + "", true) || $report(true, {
8578
- path: _path + "",
8579
- expected: "GetSignInChallengePayload",
8580
- value: input
8581
- }))(input, "$input", true);
8582
- const success = 0 === errors.length;
8583
- return {
8584
- success,
8585
- errors,
8586
- data: success ? input : undefined
8587
- };
8588
- }
8589
- return {
8590
- success: true,
8591
- errors: [],
8592
- data: input
8593
- };
8594
- }; })()(payload ?? {});
8595
- if (!validateRes.success) {
8596
- throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
8597
- }
8598
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.GetSignInChallengeRoute()}`, payload);
8599
- return new requests_js_1.GetSignInChallengeSuccessResponse(response.data).convert(this.ConvertFunction);
8600
- }
8601
- catch (error) {
8602
- await this.handleApiError(error);
8603
- return Promise.reject(error);
8604
- }
8605
- }
8606
- async verifySignIn(payload) {
8607
- try {
8608
- const validateRes = (() => { const $io0 = input => "string" === typeof input.message && "string" === typeof input.signature && (undefined === input.altSigner || "string" === typeof input.altSigner) && (undefined === input.socialSignIn || "string" === typeof input.socialSignIn) && (undefined === input.publicKey || "string" === typeof input.publicKey); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
8609
- path: _path + ".message",
8610
- expected: "string",
8611
- value: input.message
8612
- }), "string" === typeof input.signature || $report(_exceptionable, {
8613
- path: _path + ".signature",
8614
- expected: "string",
8615
- value: input.signature
8616
- }), undefined === input.altSigner || "string" === typeof input.altSigner || $report(_exceptionable, {
8617
- path: _path + ".altSigner",
8618
- expected: "(string | undefined)",
8619
- value: input.altSigner
8620
- }), undefined === input.socialSignIn || "string" === typeof input.socialSignIn || $report(_exceptionable, {
8621
- path: _path + ".socialSignIn",
8622
- expected: "(string | undefined)",
8623
- value: input.socialSignIn
8624
- }), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
8625
- path: _path + ".publicKey",
8626
- expected: "(string | undefined)",
8627
- value: input.publicKey
8628
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
8629
- if (false === __is(input)) {
8630
- errors = [];
8631
- $report = typia_1.default.validate.report(errors);
8632
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
8633
- path: _path + "",
8634
- expected: "VerifySignInPayload",
8635
- value: input
8636
- })) && $vo0(input, _path + "", true) || $report(true, {
8637
- path: _path + "",
8638
- expected: "VerifySignInPayload",
8639
- value: input
8640
- }))(input, "$input", true);
8641
- const success = 0 === errors.length;
8642
- return {
8643
- success,
8644
- errors,
8645
- data: success ? input : undefined
8646
- };
8647
- }
8648
- return {
8649
- success: true,
8650
- errors: [],
8651
- data: input
8652
- };
8653
- }; })()(payload ?? {});
8654
- if (!validateRes.success) {
8655
- throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
8656
- }
8657
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.VerifySignInRoute()}`, payload);
8658
- return new requests_js_1.VerifySignInSuccessResponse(response.data);
8659
- }
8660
- catch (error) {
8661
- await this.handleApiError(error);
8662
- return Promise.reject(error);
8663
- }
8664
- }
8665
- async signOut(payload) {
8666
- try {
8667
- const validateRes = (() => { const $io0 = input => "boolean" === typeof input.signOutBlockin && (undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord) && (undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter) && (undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle) && (undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub) && (undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch) && (undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava) && (undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube) && (undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit) && (undefined === input.signOutTelegram || "boolean" === typeof input.signOutTelegram) && (undefined === input.signOutFarcaster || "boolean" === typeof input.signOutFarcaster) && (undefined === input.signOutSlack || "boolean" === typeof input.signOutSlack); const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.signOutBlockin || $report(_exceptionable, {
8668
- path: _path + ".signOutBlockin",
8669
- expected: "boolean",
8670
- value: input.signOutBlockin
8671
- }), undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord || $report(_exceptionable, {
8672
- path: _path + ".signOutDiscord",
8673
- expected: "(boolean | undefined)",
8674
- value: input.signOutDiscord
8675
- }), undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter || $report(_exceptionable, {
8676
- path: _path + ".signOutTwitter",
8677
- expected: "(boolean | undefined)",
8678
- value: input.signOutTwitter
8679
- }), undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle || $report(_exceptionable, {
8680
- path: _path + ".signOutGoogle",
8681
- expected: "(boolean | undefined)",
8682
- value: input.signOutGoogle
8683
- }), undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub || $report(_exceptionable, {
8684
- path: _path + ".signOutGithub",
8685
- expected: "(boolean | undefined)",
8686
- value: input.signOutGithub
8687
- }), undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch || $report(_exceptionable, {
8688
- path: _path + ".signOutTwitch",
8689
- expected: "(boolean | undefined)",
8690
- value: input.signOutTwitch
8691
- }), undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava || $report(_exceptionable, {
8692
- path: _path + ".signOutStrava",
8693
- expected: "(boolean | undefined)",
8694
- value: input.signOutStrava
8695
- }), undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube || $report(_exceptionable, {
8696
- path: _path + ".signOutYoutube",
8697
- expected: "(boolean | undefined)",
8698
- value: input.signOutYoutube
8699
- }), undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit || $report(_exceptionable, {
8700
- path: _path + ".signOutReddit",
8701
- expected: "(boolean | undefined)",
8702
- value: input.signOutReddit
8703
- }), undefined === input.signOutTelegram || "boolean" === typeof input.signOutTelegram || $report(_exceptionable, {
8704
- path: _path + ".signOutTelegram",
8705
- expected: "(boolean | undefined)",
8706
- value: input.signOutTelegram
8707
- }), undefined === input.signOutFarcaster || "boolean" === typeof input.signOutFarcaster || $report(_exceptionable, {
8708
- path: _path + ".signOutFarcaster",
8709
- expected: "(boolean | undefined)",
8710
- value: input.signOutFarcaster
8711
- }), undefined === input.signOutSlack || "boolean" === typeof input.signOutSlack || $report(_exceptionable, {
8712
- path: _path + ".signOutSlack",
8713
- expected: "(boolean | undefined)",
8714
- value: input.signOutSlack
8715
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
8716
- if (false === __is(input)) {
8717
- errors = [];
8718
- $report = typia_1.default.validate.report(errors);
8719
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
8720
- path: _path + "",
8721
- expected: "SignOutPayload",
8722
- value: input
8723
- })) && $vo0(input, _path + "", true) || $report(true, {
8724
- path: _path + "",
8725
- expected: "SignOutPayload",
8726
- value: input
8727
- }))(input, "$input", true);
8728
- const success = 0 === errors.length;
8729
- return {
8730
- success,
8731
- errors,
8732
- data: success ? input : undefined
8733
- };
8734
- }
8735
- return {
8736
- success: true,
8737
- errors: [],
8738
- data: input
8739
- };
8740
- }; })()(payload ?? {});
8741
- if (!validateRes.success) {
8742
- throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
8743
- }
8744
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.SignOutRoute()}`, payload);
8745
- return new requests_js_1.SignOutSuccessResponse(response.data);
8746
- }
8747
- catch (error) {
8748
- await this.handleApiError(error);
8749
- return Promise.reject(error);
8750
- }
8751
- }
8752
8804
  async createPaymentIntent(payload) {
8753
8805
  try {
8754
8806
  const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.CreatePaymentIntentRoute()}`, payload);