bitbadgesjs-sdk 0.4.13 → 0.4.15

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.js +142 -46
  2. package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
  3. package/dist/cjs/api-indexer/docs/docs.d.ts +4 -0
  4. package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
  5. package/dist/cjs/api-indexer/docs/docs.js +2 -0
  6. package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
  7. package/dist/cjs/api-indexer/docs/interfaces.d.ts +20 -2
  8. package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
  9. package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
  10. package/dist/cjs/api-indexer/requests/requests.d.ts +20 -0
  11. package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
  12. package/dist/cjs/api-indexer/requests/requests.js +2 -0
  13. package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
  14. package/dist/esm/api-indexer/BitBadgesApi.js +142 -46
  15. package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
  16. package/dist/esm/api-indexer/docs/docs.d.ts +4 -0
  17. package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
  18. package/dist/esm/api-indexer/docs/docs.js +4 -0
  19. package/dist/esm/api-indexer/docs/docs.js.map +1 -1
  20. package/dist/esm/api-indexer/docs/interfaces.d.ts +20 -2
  21. package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
  22. package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
  23. package/dist/esm/api-indexer/requests/requests.d.ts +20 -0
  24. package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
  25. package/dist/esm/api-indexer/requests/requests.js +4 -0
  26. package/dist/esm/api-indexer/requests/requests.js.map +1 -1
  27. package/package.json +1 -1
@@ -331,7 +331,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
331
331
  }
332
332
  async updateAccountInfo(payload) {
333
333
  try {
334
- 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)); 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 $vo0 = (input, _path, _exceptionable = true) => [undefined === input.discord || "string" === typeof input.discord || $report(_exceptionable, {
334
+ 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)); 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 $vo0 = (input, _path, _exceptionable = true) => [undefined === input.discord || "string" === typeof input.discord || $report(_exceptionable, {
335
335
  path: _path + ".discord",
336
336
  expected: "(string | undefined)",
337
337
  value: input.discord
@@ -919,6 +919,22 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
919
919
  path: _path + ".reddit",
920
920
  expected: "(__type.o17 | undefined)",
921
921
  value: input.reddit
922
+ }), undefined === input.telegram || ("object" === typeof input.telegram && null !== input.telegram || $report(_exceptionable, {
923
+ path: _path + ".telegram",
924
+ expected: "(__type.o18 | undefined)",
925
+ value: input.telegram
926
+ })) && $vo27(input.telegram, _path + ".telegram", true && _exceptionable) || $report(_exceptionable, {
927
+ path: _path + ".telegram",
928
+ expected: "(__type.o18 | undefined)",
929
+ value: input.telegram
930
+ }), undefined === input.farcaster || ("object" === typeof input.farcaster && null !== input.farcaster || $report(_exceptionable, {
931
+ path: _path + ".farcaster",
932
+ expected: "(__type.o19 | undefined)",
933
+ value: input.farcaster
934
+ })) && $vo28(input.farcaster, _path + ".farcaster", true && _exceptionable) || $report(_exceptionable, {
935
+ path: _path + ".farcaster",
936
+ expected: "(__type.o19 | undefined)",
937
+ value: input.farcaster
922
938
  })].every(flag => flag); const $vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
923
939
  path: _path + ".username",
924
940
  expected: "string",
@@ -1007,6 +1023,30 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
1007
1023
  path: _path + ".lastUpdated",
1008
1024
  expected: "(bigint | number | string)",
1009
1025
  value: input.lastUpdated
1026
+ })].every(flag => flag); const $vo27 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1027
+ path: _path + ".username",
1028
+ expected: "string",
1029
+ value: input.username
1030
+ }), "string" === typeof input.id || $report(_exceptionable, {
1031
+ path: _path + ".id",
1032
+ expected: "string",
1033
+ value: input.id
1034
+ }), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || $report(_exceptionable, {
1035
+ path: _path + ".lastUpdated",
1036
+ expected: "(bigint | number | string)",
1037
+ value: input.lastUpdated
1038
+ })].every(flag => flag); const $vo28 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1039
+ path: _path + ".username",
1040
+ expected: "string",
1041
+ value: input.username
1042
+ }), "string" === typeof input.id || $report(_exceptionable, {
1043
+ path: _path + ".id",
1044
+ expected: "string",
1045
+ value: input.id
1046
+ }), "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || $report(_exceptionable, {
1047
+ path: _path + ".lastUpdated",
1048
+ expected: "(bigint | number | string)",
1049
+ value: input.lastUpdated
1010
1050
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
1011
1051
  if (false === __is(input)) {
1012
1052
  errors = [];
@@ -5477,11 +5517,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
5477
5517
  }
5478
5518
  async createPlugin(payload) {
5479
5519
  try {
5480
- const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "boolean" === typeof input.toPublish && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && ("object" === typeof input.initialVersion && null !== input.initialVersion && $io2(input.initialVersion)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && "string" === typeof input.createdBy; const $io2 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io3(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io7(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io8(input.verificationCall)); const $io3 = input => "string" === typeof input.baseUri; const $io4 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io5 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io6 = input => "string" === typeof input.key && "string" === typeof input.label && ("ownershipRequirements" === input.type || "attestations" === input.type) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.helper || "string" === typeof input.helper); const $io7 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri); const $io8 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && "string" === typeof input.postProcessingJs; const $io9 = input => "string" === typeof input.key && "string" === typeof input.label && (undefined === input.type || "url" === input.type || "date" === input.type) && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $iu0 = input => (() => {
5520
+ const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "boolean" === typeof input.toPublish && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && ("object" === typeof input.initialVersion && null !== input.initialVersion && $io2(input.initialVersion)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && "string" === typeof input.createdBy; const $io2 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io3(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)); const $io3 = input => "string" === typeof input.baseUri; const $io4 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type) && (undefined === input.hyperlink || "object" === typeof input.hyperlink && null !== input.hyperlink && $io5(input.hyperlink)) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io5 = input => "string" === typeof input.url && (undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView); const $io6 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io7 = input => "string" === typeof input.key && "string" === typeof input.label && ("ownershipRequirements" === input.type || "attestations" === input.type) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.helper || "string" === typeof input.helper); const $io8 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri); const $io9 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && (undefined === input.passTelegram || "boolean" === typeof input.passTelegram) && (undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster) && "string" === typeof input.postProcessingJs; const $io10 = input => "string" === typeof input.key && "string" === typeof input.label && (undefined === input.type || "url" === input.type || "date" === input.type) && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $iu0 = input => (() => {
5481
5521
  if ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type)
5482
5522
  return $io4(input);
5483
5523
  else if ("ownershipRequirements" === input.type || "attestations" === input.type)
5484
- return $io6(input);
5524
+ return $io7(input);
5485
5525
  else
5486
5526
  return false;
5487
5527
  })(); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
@@ -5602,11 +5642,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
5602
5642
  value: input.userInputsSchema
5603
5643
  }), undefined === input.claimCreatorRedirect || ("object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) || $report(_exceptionable, {
5604
5644
  path: _path + ".claimCreatorRedirect",
5605
- expected: "(__type.o3 | undefined)",
5645
+ expected: "(__type.o4 | undefined)",
5606
5646
  value: input.claimCreatorRedirect
5607
- })) && $vo7(input.claimCreatorRedirect, _path + ".claimCreatorRedirect", true && _exceptionable) || $report(_exceptionable, {
5647
+ })) && $vo8(input.claimCreatorRedirect, _path + ".claimCreatorRedirect", true && _exceptionable) || $report(_exceptionable, {
5608
5648
  path: _path + ".claimCreatorRedirect",
5609
- expected: "(__type.o3 | undefined)",
5649
+ expected: "(__type.o4 | undefined)",
5610
5650
  value: input.claimCreatorRedirect
5611
5651
  }), undefined === input.publicParamsSchema || (Array.isArray(input.publicParamsSchema) || $report(_exceptionable, {
5612
5652
  path: _path + ".publicParamsSchema",
@@ -5642,11 +5682,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
5642
5682
  value: input.privateParamsSchema
5643
5683
  }), undefined === input.verificationCall || ("object" === typeof input.verificationCall && null !== input.verificationCall || $report(_exceptionable, {
5644
5684
  path: _path + ".verificationCall",
5645
- expected: "(__type.o4 | undefined)",
5685
+ expected: "(__type.o5 | undefined)",
5646
5686
  value: input.verificationCall
5647
- })) && $vo8(input.verificationCall, _path + ".verificationCall", true && _exceptionable) || $report(_exceptionable, {
5687
+ })) && $vo9(input.verificationCall, _path + ".verificationCall", true && _exceptionable) || $report(_exceptionable, {
5648
5688
  path: _path + ".verificationCall",
5649
- expected: "(__type.o4 | undefined)",
5689
+ expected: "(__type.o5 | undefined)",
5650
5690
  value: input.verificationCall
5651
5691
  })].every(flag => flag); const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.baseUri || $report(_exceptionable, {
5652
5692
  path: _path + ".baseUri",
@@ -5664,6 +5704,14 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
5664
5704
  path: _path + ".type",
5665
5705
  expected: "(\"boolean\" | \"date\" | \"number\" | \"string\" | \"url\")",
5666
5706
  value: input.type
5707
+ }), undefined === input.hyperlink || ("object" === typeof input.hyperlink && null !== input.hyperlink || $report(_exceptionable, {
5708
+ path: _path + ".hyperlink",
5709
+ expected: "(__type.o2 | undefined)",
5710
+ value: input.hyperlink
5711
+ })) && $vo5(input.hyperlink, _path + ".hyperlink", true && _exceptionable) || $report(_exceptionable, {
5712
+ path: _path + ".hyperlink",
5713
+ expected: "(__type.o2 | undefined)",
5714
+ value: input.hyperlink
5667
5715
  }), undefined === input.helper || "string" === typeof input.helper || $report(_exceptionable, {
5668
5716
  path: _path + ".helper",
5669
5717
  expected: "(string | undefined)",
@@ -5686,11 +5734,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
5686
5734
  value: input.options
5687
5735
  })) && input.options.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
5688
5736
  path: _path + ".options[" + _index11 + "]",
5689
- expected: "__type.o2",
5737
+ expected: "__type.o3",
5690
5738
  value: elem
5691
- })) && $vo5(elem, _path + ".options[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
5739
+ })) && $vo6(elem, _path + ".options[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
5692
5740
  path: _path + ".options[" + _index11 + "]",
5693
- expected: "__type.o2",
5741
+ expected: "__type.o3",
5694
5742
  value: elem
5695
5743
  })).every(flag => flag) || $report(_exceptionable, {
5696
5744
  path: _path + ".options",
@@ -5700,7 +5748,15 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
5700
5748
  path: _path + ".arrayField",
5701
5749
  expected: "(boolean | undefined)",
5702
5750
  value: input.arrayField
5703
- })].every(flag => flag); const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.label || $report(_exceptionable, {
5751
+ })].every(flag => flag); const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || $report(_exceptionable, {
5752
+ path: _path + ".url",
5753
+ expected: "string",
5754
+ value: input.url
5755
+ }), undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView || $report(_exceptionable, {
5756
+ path: _path + ".showAsGenericView",
5757
+ expected: "(boolean | undefined)",
5758
+ value: input.showAsGenericView
5759
+ })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.label || $report(_exceptionable, {
5704
5760
  path: _path + ".label",
5705
5761
  expected: "string",
5706
5762
  value: input.label
@@ -5708,7 +5764,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
5708
5764
  path: _path + ".value",
5709
5765
  expected: "(boolean | number | string)",
5710
5766
  value: input.value
5711
- })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || $report(_exceptionable, {
5767
+ })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || $report(_exceptionable, {
5712
5768
  path: _path + ".key",
5713
5769
  expected: "string",
5714
5770
  value: input.key
@@ -5732,7 +5788,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
5732
5788
  path: _path + ".helper",
5733
5789
  expected: "(string | undefined)",
5734
5790
  value: input.helper
5735
- })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.toolUri || "string" === typeof input.toolUri || $report(_exceptionable, {
5791
+ })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [undefined === input.toolUri || "string" === typeof input.toolUri || $report(_exceptionable, {
5736
5792
  path: _path + ".toolUri",
5737
5793
  expected: "(string | undefined)",
5738
5794
  value: input.toolUri
@@ -5740,7 +5796,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
5740
5796
  path: _path + ".tutorialUri",
5741
5797
  expected: "(string | undefined)",
5742
5798
  value: input.tutorialUri
5743
- })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || $report(_exceptionable, {
5799
+ })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || $report(_exceptionable, {
5744
5800
  path: _path + ".uri",
5745
5801
  expected: "string",
5746
5802
  value: input.uri
@@ -5756,7 +5812,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
5756
5812
  path: _path + ".hardcodedInputs[" + _index12 + "]",
5757
5813
  expected: "JsonBodyInputWithValue",
5758
5814
  value: elem
5759
- })) && $vo9(elem, _path + ".hardcodedInputs[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
5815
+ })) && $vo10(elem, _path + ".hardcodedInputs[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
5760
5816
  path: _path + ".hardcodedInputs[" + _index12 + "]",
5761
5817
  expected: "JsonBodyInputWithValue",
5762
5818
  value: elem
@@ -5800,11 +5856,19 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
5800
5856
  path: _path + ".passReddit",
5801
5857
  expected: "(boolean | undefined)",
5802
5858
  value: input.passReddit
5859
+ }), undefined === input.passTelegram || "boolean" === typeof input.passTelegram || $report(_exceptionable, {
5860
+ path: _path + ".passTelegram",
5861
+ expected: "(boolean | undefined)",
5862
+ value: input.passTelegram
5863
+ }), undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster || $report(_exceptionable, {
5864
+ path: _path + ".passFarcaster",
5865
+ expected: "(boolean | undefined)",
5866
+ value: input.passFarcaster
5803
5867
  }), "string" === typeof input.postProcessingJs || $report(_exceptionable, {
5804
5868
  path: _path + ".postProcessingJs",
5805
5869
  expected: "string",
5806
5870
  value: input.postProcessingJs
5807
- })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || $report(_exceptionable, {
5871
+ })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || $report(_exceptionable, {
5808
5872
  path: _path + ".key",
5809
5873
  expected: "string",
5810
5874
  value: input.key
@@ -5828,7 +5892,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
5828
5892
  if ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type)
5829
5893
  return $vo4(input, _path, true && _exceptionable);
5830
5894
  else if ("ownershipRequirements" === input.type || "attestations" === input.type)
5831
- return $vo6(input, _path, true && _exceptionable);
5895
+ return $vo7(input, _path, true && _exceptionable);
5832
5896
  else
5833
5897
  return $report(_exceptionable, {
5834
5898
  path: _path,
@@ -5874,11 +5938,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
5874
5938
  }
5875
5939
  async updatePlugin(payload) {
5876
5940
  try {
5877
- const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && (undefined === input.removeSelfFromApprovedUsers || "boolean" === typeof input.removeSelfFromApprovedUsers) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.toPublish || "boolean" === typeof input.toPublish) && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && (undefined === input.rotatePluginSecret || "boolean" === typeof input.rotatePluginSecret) && (undefined === input.versionUpdates || Array.isArray(input.versionUpdates) && input.versionUpdates.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && (undefined === input.versionCreate || "object" === typeof input.versionCreate && null !== input.versionCreate && $io11(input.versionCreate)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && (undefined === input.createdBy || "string" === typeof input.createdBy); const $io2 = input => ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version) && ("object" === typeof input.config && null !== input.config && false === Array.isArray(input.config) && $io3(input.config)); const $io3 = input => (undefined === input.finalized || "boolean" === typeof input.finalized) && (undefined === input.stateFunctionPreset || "Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && (undefined === input.duplicatesAllowed || "boolean" === typeof input.duplicatesAllowed) && (undefined === input.receiveStatusWebhook || "boolean" === typeof input.receiveStatusWebhook) && (undefined === input.reuseForNonIndexed || "boolean" === typeof input.reuseForNonIndexed) && (undefined === input.requiresUserInputs || "boolean" === typeof input.requiresUserInputs) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)); const $io4 = input => "string" === typeof input.baseUri; const $io5 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io6 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io7 = input => "string" === typeof input.key && "string" === typeof input.label && ("ownershipRequirements" === input.type || "attestations" === input.type) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.helper || "string" === typeof input.helper); const $io8 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri); const $io9 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && "string" === typeof input.postProcessingJs; const $io10 = input => "string" === typeof input.key && "string" === typeof input.label && (undefined === input.type || "url" === input.type || "date" === input.type) && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $io11 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)); const $iu0 = input => (() => {
5941
+ const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && (undefined === input.removeSelfFromApprovedUsers || "boolean" === typeof input.removeSelfFromApprovedUsers) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.toPublish || "boolean" === typeof input.toPublish) && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && (undefined === input.rotatePluginSecret || "boolean" === typeof input.rotatePluginSecret) && (undefined === input.versionUpdates || Array.isArray(input.versionUpdates) && input.versionUpdates.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && (undefined === input.versionCreate || "object" === typeof input.versionCreate && null !== input.versionCreate && $io12(input.versionCreate)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && (undefined === input.createdBy || "string" === typeof input.createdBy); const $io2 = input => ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version) && ("object" === typeof input.config && null !== input.config && false === Array.isArray(input.config) && $io3(input.config)); const $io3 = input => (undefined === input.finalized || "boolean" === typeof input.finalized) && (undefined === input.stateFunctionPreset || "Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && (undefined === input.duplicatesAllowed || "boolean" === typeof input.duplicatesAllowed) && (undefined === input.receiveStatusWebhook || "boolean" === typeof input.receiveStatusWebhook) && (undefined === input.reuseForNonIndexed || "boolean" === typeof input.reuseForNonIndexed) && (undefined === input.requiresUserInputs || "boolean" === typeof input.requiresUserInputs) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io9(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io10(input.verificationCall)); const $io4 = input => "string" === typeof input.baseUri; const $io5 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type) && (undefined === input.hyperlink || "object" === typeof input.hyperlink && null !== input.hyperlink && $io6(input.hyperlink)) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io6 = input => "string" === typeof input.url && (undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView); const $io7 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io8 = input => "string" === typeof input.key && "string" === typeof input.label && ("ownershipRequirements" === input.type || "attestations" === input.type) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.helper || "string" === typeof input.helper); const $io9 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri); const $io10 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io11(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && (undefined === input.passTelegram || "boolean" === typeof input.passTelegram) && (undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster) && "string" === typeof input.postProcessingJs; const $io11 = input => "string" === typeof input.key && "string" === typeof input.label && (undefined === input.type || "url" === input.type || "date" === input.type) && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $io12 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io9(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io10(input.verificationCall)); const $iu0 = input => (() => {
5878
5942
  if ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type)
5879
5943
  return $io5(input);
5880
5944
  else if ("ownershipRequirements" === input.type || "attestations" === input.type)
5881
- return $io7(input);
5945
+ return $io8(input);
5882
5946
  else
5883
5947
  return false;
5884
5948
  })(); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
@@ -5941,7 +6005,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
5941
6005
  path: _path + ".versionCreate",
5942
6006
  expected: "(PluginVersionConfigPayload | undefined)",
5943
6007
  value: input.versionCreate
5944
- })) && $vo11(input.versionCreate, _path + ".versionCreate", true && _exceptionable) || $report(_exceptionable, {
6008
+ })) && $vo12(input.versionCreate, _path + ".versionCreate", true && _exceptionable) || $report(_exceptionable, {
5945
6009
  path: _path + ".versionCreate",
5946
6010
  expected: "(PluginVersionConfigPayload | undefined)",
5947
6011
  value: input.versionCreate
@@ -6035,11 +6099,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6035
6099
  value: input.userInputsSchema
6036
6100
  }), undefined === input.claimCreatorRedirect || ("object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) || $report(_exceptionable, {
6037
6101
  path: _path + ".claimCreatorRedirect",
6038
- expected: "(__type.o4 | undefined)",
6102
+ expected: "(__type.o5 | undefined)",
6039
6103
  value: input.claimCreatorRedirect
6040
- })) && $vo8(input.claimCreatorRedirect, _path + ".claimCreatorRedirect", true && _exceptionable) || $report(_exceptionable, {
6104
+ })) && $vo9(input.claimCreatorRedirect, _path + ".claimCreatorRedirect", true && _exceptionable) || $report(_exceptionable, {
6041
6105
  path: _path + ".claimCreatorRedirect",
6042
- expected: "(__type.o4 | undefined)",
6106
+ expected: "(__type.o5 | undefined)",
6043
6107
  value: input.claimCreatorRedirect
6044
6108
  }), undefined === input.publicParamsSchema || (Array.isArray(input.publicParamsSchema) || $report(_exceptionable, {
6045
6109
  path: _path + ".publicParamsSchema",
@@ -6075,11 +6139,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6075
6139
  value: input.privateParamsSchema
6076
6140
  }), undefined === input.verificationCall || ("object" === typeof input.verificationCall && null !== input.verificationCall || $report(_exceptionable, {
6077
6141
  path: _path + ".verificationCall",
6078
- expected: "(__type.o5 | undefined)",
6142
+ expected: "(__type.o6 | undefined)",
6079
6143
  value: input.verificationCall
6080
- })) && $vo9(input.verificationCall, _path + ".verificationCall", true && _exceptionable) || $report(_exceptionable, {
6144
+ })) && $vo10(input.verificationCall, _path + ".verificationCall", true && _exceptionable) || $report(_exceptionable, {
6081
6145
  path: _path + ".verificationCall",
6082
- expected: "(__type.o5 | undefined)",
6146
+ expected: "(__type.o6 | undefined)",
6083
6147
  value: input.verificationCall
6084
6148
  })].every(flag => flag); const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.baseUri || $report(_exceptionable, {
6085
6149
  path: _path + ".baseUri",
@@ -6097,6 +6161,14 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6097
6161
  path: _path + ".type",
6098
6162
  expected: "(\"boolean\" | \"date\" | \"number\" | \"string\" | \"url\")",
6099
6163
  value: input.type
6164
+ }), undefined === input.hyperlink || ("object" === typeof input.hyperlink && null !== input.hyperlink || $report(_exceptionable, {
6165
+ path: _path + ".hyperlink",
6166
+ expected: "(__type.o3 | undefined)",
6167
+ value: input.hyperlink
6168
+ })) && $vo6(input.hyperlink, _path + ".hyperlink", true && _exceptionable) || $report(_exceptionable, {
6169
+ path: _path + ".hyperlink",
6170
+ expected: "(__type.o3 | undefined)",
6171
+ value: input.hyperlink
6100
6172
  }), undefined === input.helper || "string" === typeof input.helper || $report(_exceptionable, {
6101
6173
  path: _path + ".helper",
6102
6174
  expected: "(string | undefined)",
@@ -6119,11 +6191,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6119
6191
  value: input.options
6120
6192
  })) && input.options.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6121
6193
  path: _path + ".options[" + _index16 + "]",
6122
- expected: "__type.o3",
6194
+ expected: "__type.o4",
6123
6195
  value: elem
6124
- })) && $vo6(elem, _path + ".options[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
6196
+ })) && $vo7(elem, _path + ".options[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
6125
6197
  path: _path + ".options[" + _index16 + "]",
6126
- expected: "__type.o3",
6198
+ expected: "__type.o4",
6127
6199
  value: elem
6128
6200
  })).every(flag => flag) || $report(_exceptionable, {
6129
6201
  path: _path + ".options",
@@ -6133,7 +6205,15 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6133
6205
  path: _path + ".arrayField",
6134
6206
  expected: "(boolean | undefined)",
6135
6207
  value: input.arrayField
6136
- })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.label || $report(_exceptionable, {
6208
+ })].every(flag => flag); const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || $report(_exceptionable, {
6209
+ path: _path + ".url",
6210
+ expected: "string",
6211
+ value: input.url
6212
+ }), undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView || $report(_exceptionable, {
6213
+ path: _path + ".showAsGenericView",
6214
+ expected: "(boolean | undefined)",
6215
+ value: input.showAsGenericView
6216
+ })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.label || $report(_exceptionable, {
6137
6217
  path: _path + ".label",
6138
6218
  expected: "string",
6139
6219
  value: input.label
@@ -6141,7 +6221,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6141
6221
  path: _path + ".value",
6142
6222
  expected: "(boolean | number | string)",
6143
6223
  value: input.value
6144
- })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || $report(_exceptionable, {
6224
+ })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || $report(_exceptionable, {
6145
6225
  path: _path + ".key",
6146
6226
  expected: "string",
6147
6227
  value: input.key
@@ -6165,7 +6245,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6165
6245
  path: _path + ".helper",
6166
6246
  expected: "(string | undefined)",
6167
6247
  value: input.helper
6168
- })].every(flag => flag); const $vo8 = (input, _path, _exceptionable = true) => [undefined === input.toolUri || "string" === typeof input.toolUri || $report(_exceptionable, {
6248
+ })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => [undefined === input.toolUri || "string" === typeof input.toolUri || $report(_exceptionable, {
6169
6249
  path: _path + ".toolUri",
6170
6250
  expected: "(string | undefined)",
6171
6251
  value: input.toolUri
@@ -6173,7 +6253,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6173
6253
  path: _path + ".tutorialUri",
6174
6254
  expected: "(string | undefined)",
6175
6255
  value: input.tutorialUri
6176
- })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || $report(_exceptionable, {
6256
+ })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.uri || $report(_exceptionable, {
6177
6257
  path: _path + ".uri",
6178
6258
  expected: "string",
6179
6259
  value: input.uri
@@ -6189,7 +6269,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6189
6269
  path: _path + ".hardcodedInputs[" + _index17 + "]",
6190
6270
  expected: "JsonBodyInputWithValue",
6191
6271
  value: elem
6192
- })) && $vo10(elem, _path + ".hardcodedInputs[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
6272
+ })) && $vo11(elem, _path + ".hardcodedInputs[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
6193
6273
  path: _path + ".hardcodedInputs[" + _index17 + "]",
6194
6274
  expected: "JsonBodyInputWithValue",
6195
6275
  value: elem
@@ -6233,11 +6313,19 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6233
6313
  path: _path + ".passReddit",
6234
6314
  expected: "(boolean | undefined)",
6235
6315
  value: input.passReddit
6316
+ }), undefined === input.passTelegram || "boolean" === typeof input.passTelegram || $report(_exceptionable, {
6317
+ path: _path + ".passTelegram",
6318
+ expected: "(boolean | undefined)",
6319
+ value: input.passTelegram
6320
+ }), undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster || $report(_exceptionable, {
6321
+ path: _path + ".passFarcaster",
6322
+ expected: "(boolean | undefined)",
6323
+ value: input.passFarcaster
6236
6324
  }), "string" === typeof input.postProcessingJs || $report(_exceptionable, {
6237
6325
  path: _path + ".postProcessingJs",
6238
6326
  expected: "string",
6239
6327
  value: input.postProcessingJs
6240
- })].every(flag => flag); const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || $report(_exceptionable, {
6328
+ })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.key || $report(_exceptionable, {
6241
6329
  path: _path + ".key",
6242
6330
  expected: "string",
6243
6331
  value: input.key
@@ -6257,7 +6345,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6257
6345
  path: _path + ".headerField",
6258
6346
  expected: "(boolean | undefined)",
6259
6347
  value: input.headerField
6260
- })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.finalized || $report(_exceptionable, {
6348
+ })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.finalized || $report(_exceptionable, {
6261
6349
  path: _path + ".finalized",
6262
6350
  expected: "boolean",
6263
6351
  value: input.finalized
@@ -6307,11 +6395,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6307
6395
  value: input.userInputsSchema
6308
6396
  }), undefined === input.claimCreatorRedirect || ("object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) || $report(_exceptionable, {
6309
6397
  path: _path + ".claimCreatorRedirect",
6310
- expected: "(__type.o4 | undefined)",
6398
+ expected: "(__type.o5 | undefined)",
6311
6399
  value: input.claimCreatorRedirect
6312
- })) && $vo8(input.claimCreatorRedirect, _path + ".claimCreatorRedirect", true && _exceptionable) || $report(_exceptionable, {
6400
+ })) && $vo9(input.claimCreatorRedirect, _path + ".claimCreatorRedirect", true && _exceptionable) || $report(_exceptionable, {
6313
6401
  path: _path + ".claimCreatorRedirect",
6314
- expected: "(__type.o4 | undefined)",
6402
+ expected: "(__type.o5 | undefined)",
6315
6403
  value: input.claimCreatorRedirect
6316
6404
  }), undefined === input.publicParamsSchema || (Array.isArray(input.publicParamsSchema) || $report(_exceptionable, {
6317
6405
  path: _path + ".publicParamsSchema",
@@ -6347,17 +6435,17 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
6347
6435
  value: input.privateParamsSchema
6348
6436
  }), undefined === input.verificationCall || ("object" === typeof input.verificationCall && null !== input.verificationCall || $report(_exceptionable, {
6349
6437
  path: _path + ".verificationCall",
6350
- expected: "(__type.o5 | undefined)",
6438
+ expected: "(__type.o6 | undefined)",
6351
6439
  value: input.verificationCall
6352
- })) && $vo9(input.verificationCall, _path + ".verificationCall", true && _exceptionable) || $report(_exceptionable, {
6440
+ })) && $vo10(input.verificationCall, _path + ".verificationCall", true && _exceptionable) || $report(_exceptionable, {
6353
6441
  path: _path + ".verificationCall",
6354
- expected: "(__type.o5 | undefined)",
6442
+ expected: "(__type.o6 | undefined)",
6355
6443
  value: input.verificationCall
6356
6444
  })].every(flag => flag); const $vu0 = (input, _path, _exceptionable = true) => (() => {
6357
6445
  if ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type)
6358
6446
  return $vo5(input, _path, true && _exceptionable);
6359
6447
  else if ("ownershipRequirements" === input.type || "attestations" === input.type)
6360
- return $vo7(input, _path, true && _exceptionable);
6448
+ return $vo8(input, _path, true && _exceptionable);
6361
6449
  else
6362
6450
  return $report(_exceptionable, {
6363
6451
  path: _path,
@@ -8289,7 +8377,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
8289
8377
  }
8290
8378
  async signOut(payload) {
8291
8379
  try {
8292
- 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); const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.signOutBlockin || $report(_exceptionable, {
8380
+ 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); const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.signOutBlockin || $report(_exceptionable, {
8293
8381
  path: _path + ".signOutBlockin",
8294
8382
  expected: "boolean",
8295
8383
  value: input.signOutBlockin
@@ -8325,6 +8413,14 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
8325
8413
  path: _path + ".signOutReddit",
8326
8414
  expected: "(boolean | undefined)",
8327
8415
  value: input.signOutReddit
8416
+ }), undefined === input.signOutTelegram || "boolean" === typeof input.signOutTelegram || $report(_exceptionable, {
8417
+ path: _path + ".signOutTelegram",
8418
+ expected: "(boolean | undefined)",
8419
+ value: input.signOutTelegram
8420
+ }), undefined === input.signOutFarcaster || "boolean" === typeof input.signOutFarcaster || $report(_exceptionable, {
8421
+ path: _path + ".signOutFarcaster",
8422
+ expected: "(boolean | undefined)",
8423
+ value: input.signOutFarcaster
8328
8424
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
8329
8425
  if (false === __is(input)) {
8330
8426
  errors = [];