bitbadgesjs-sdk 0.5.13 → 0.5.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.
- package/dist/cjs/address-converter/converter.d.ts.map +1 -1
- package/dist/cjs/address-converter/converter.js +2 -3
- package/dist/cjs/address-converter/converter.js.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts +4 -4
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.js +481 -429
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.d.ts +7 -3
- package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.js +2 -3
- package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.d.ts +7 -2
- package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.js +3 -3
- package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/cjs/api-indexer/metadata/badgeMetadata.d.ts +1 -1
- package/dist/cjs/api-indexer/metadata/badgeMetadata.d.ts.map +1 -1
- package/dist/cjs/api-indexer/metadata/badgeMetadata.js +26 -3
- package/dist/cjs/api-indexer/metadata/badgeMetadata.js.map +1 -1
- package/dist/cjs/api-indexer/metadata/metadataIds.js +3 -3
- package/dist/cjs/api-indexer/metadata/metadataIds.js.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts +7 -0
- package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.d.ts +1 -1
- package/dist/cjs/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/cjs/attestations/attestations.d.ts.map +1 -0
- package/dist/cjs/attestations/attestations.js.map +1 -0
- package/dist/cjs/attestations/index.d.ts +2 -0
- package/dist/cjs/attestations/index.d.ts.map +1 -0
- package/dist/cjs/attestations/index.js +18 -0
- package/dist/cjs/attestations/index.js.map +1 -0
- package/dist/cjs/chain-drivers/BtcDriver.d.ts +2 -2
- package/dist/cjs/chain-drivers/BtcDriver.d.ts.map +1 -1
- package/dist/cjs/chain-drivers/CosmosDriver.d.ts +2 -2
- package/dist/cjs/chain-drivers/CosmosDriver.d.ts.map +1 -1
- package/dist/cjs/chain-drivers/EthDriver.d.ts +1 -1
- package/dist/cjs/chain-drivers/EthDriver.d.ts.map +1 -1
- package/dist/cjs/chain-drivers/SolDriver.d.ts +2 -2
- package/dist/cjs/chain-drivers/SolDriver.d.ts.map +1 -1
- package/dist/cjs/chain-drivers/verifySig.d.ts +2 -2
- package/dist/cjs/chain-drivers/verifySig.d.ts.map +1 -1
- package/dist/cjs/chain-drivers/verifySig.js +2 -2
- package/dist/cjs/chain-drivers/verifySig.js.map +1 -1
- package/dist/cjs/core/addressLists.d.ts +1 -1
- package/dist/cjs/core/addressLists.d.ts.map +1 -1
- package/dist/cjs/core/addressLists.js +4 -4
- package/dist/cjs/core/addressLists.js.map +1 -1
- package/dist/cjs/core/addressLists.spec.js +8 -8
- package/dist/cjs/core/addressLists.spec.js.map +1 -1
- package/dist/cjs/core/approvals.d.ts +25 -25
- package/dist/cjs/core/approvals.d.ts.map +1 -1
- package/dist/cjs/core/approvals.js +35 -35
- package/dist/cjs/core/approvals.js.map +1 -1
- package/dist/cjs/core/balances.d.ts +3 -3
- package/dist/cjs/core/balances.d.ts.map +1 -1
- package/dist/cjs/core/balances.js +4 -4
- package/dist/cjs/core/balances.js.map +1 -1
- package/dist/cjs/core/blockin.d.ts +1 -1
- package/dist/cjs/core/blockin.d.ts.map +1 -1
- package/dist/cjs/core/index.d.ts +0 -1
- package/dist/cjs/core/index.d.ts.map +1 -1
- package/dist/cjs/core/index.js +0 -1
- package/dist/cjs/core/index.js.map +1 -1
- package/dist/cjs/core/misc.d.ts +40 -40
- package/dist/cjs/core/misc.d.ts.map +1 -1
- package/dist/cjs/core/misc.js +55 -55
- package/dist/cjs/core/misc.js.map +1 -1
- package/dist/cjs/core/permissions.d.ts +1 -1
- package/dist/cjs/core/permissions.d.ts.map +1 -1
- package/dist/cjs/core/permissions.js +51 -28
- package/dist/cjs/core/permissions.js.map +1 -1
- package/dist/cjs/core/timelines.js +3 -3
- package/dist/cjs/core/timelines.js.map +1 -1
- package/dist/cjs/core/transfers.d.ts +4 -4
- package/dist/cjs/core/transfers.d.ts.map +1 -1
- package/dist/cjs/core/transfers.js +4 -4
- package/dist/cjs/core/transfers.js.map +1 -1
- package/dist/cjs/core/uintRanges.d.ts +3 -3
- package/dist/cjs/core/uintRanges.d.ts.map +1 -1
- package/dist/cjs/core/uintRanges.js +4 -4
- package/dist/cjs/core/uintRanges.js.map +1 -1
- package/dist/cjs/core/userBalances.d.ts +3 -3
- package/dist/cjs/core/userBalances.d.ts.map +1 -1
- package/dist/cjs/core/userBalances.js +2 -2
- package/dist/cjs/core/userBalances.js.map +1 -1
- package/dist/cjs/interfaces/index.d.ts +0 -1
- package/dist/cjs/interfaces/index.d.ts.map +1 -1
- package/dist/cjs/interfaces/index.js +0 -1
- package/dist/cjs/interfaces/index.js.map +1 -1
- package/dist/cjs/transactions/amino/objectConverter.js +5 -5
- package/dist/cjs/transactions/amino/objectConverter.js.map +1 -1
- package/dist/cjs/transactions/messages/base.d.ts.map +1 -1
- package/dist/cjs/transactions/messages/base.js +1 -1
- package/dist/cjs/transactions/messages/base.js.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/badges/interfaces.d.ts +1 -1
- package/dist/cjs/transactions/messages/bitbadges/badges/interfaces.d.ts.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/badges/msgUpdateCollection.d.ts.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/badges/msgUpdateCollection.js.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.d.ts +1 -1
- package/dist/cjs/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.d.ts.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/maps/interfaces.d.ts +7 -3
- package/dist/cjs/transactions/messages/bitbadges/maps/interfaces.d.ts.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/maps/interfaces.js +29 -26
- package/dist/cjs/transactions/messages/bitbadges/maps/interfaces.js.map +1 -1
- package/dist/cjs/transactions/messages/common.d.ts +1 -1
- package/dist/cjs/transactions/messages/common.d.ts.map +1 -1
- package/dist/esm/address-converter/converter.d.ts.map +1 -1
- package/dist/esm/address-converter/converter.js +2 -3
- package/dist/esm/address-converter/converter.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.d.ts +4 -4
- package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.js +481 -429
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/docs/docs.d.ts +7 -3
- package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/docs.js +1 -2
- package/dist/esm/api-indexer/docs/docs.js.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.d.ts +7 -2
- package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.js +1 -1
- package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/esm/api-indexer/metadata/badgeMetadata.d.ts +1 -1
- package/dist/esm/api-indexer/metadata/badgeMetadata.d.ts.map +1 -1
- package/dist/esm/api-indexer/metadata/badgeMetadata.js +1 -1
- package/dist/esm/api-indexer/metadata/badgeMetadata.js.map +1 -1
- package/dist/esm/api-indexer/metadata/metadataIds.js +1 -1
- package/dist/esm/api-indexer/metadata/metadataIds.js.map +1 -1
- package/dist/esm/api-indexer/requests/requests.d.ts +7 -0
- package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.js.map +1 -1
- package/dist/esm/api-indexer/requests/routes.d.ts +1 -1
- package/dist/esm/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/esm/attestations/attestations.d.ts.map +1 -0
- package/dist/esm/attestations/attestations.js.map +1 -0
- package/dist/esm/attestations/index.d.ts +2 -0
- package/dist/esm/attestations/index.d.ts.map +1 -0
- package/dist/esm/attestations/index.js +2 -0
- package/dist/esm/attestations/index.js.map +1 -0
- package/dist/esm/chain-drivers/BtcDriver.d.ts +2 -2
- package/dist/esm/chain-drivers/BtcDriver.d.ts.map +1 -1
- package/dist/esm/chain-drivers/CosmosDriver.d.ts +2 -2
- package/dist/esm/chain-drivers/CosmosDriver.d.ts.map +1 -1
- package/dist/esm/chain-drivers/EthDriver.d.ts +1 -1
- package/dist/esm/chain-drivers/EthDriver.d.ts.map +1 -1
- package/dist/esm/chain-drivers/SolDriver.d.ts +2 -2
- package/dist/esm/chain-drivers/SolDriver.d.ts.map +1 -1
- package/dist/esm/chain-drivers/verifySig.d.ts +2 -2
- package/dist/esm/chain-drivers/verifySig.d.ts.map +1 -1
- package/dist/esm/chain-drivers/verifySig.js +1 -1
- package/dist/esm/chain-drivers/verifySig.js.map +1 -1
- package/dist/esm/core/addressLists.d.ts +1 -1
- package/dist/esm/core/addressLists.d.ts.map +1 -1
- package/dist/esm/core/addressLists.js +1 -1
- package/dist/esm/core/addressLists.js.map +1 -1
- package/dist/esm/core/addressLists.spec.js +8 -8
- package/dist/esm/core/addressLists.spec.js.map +1 -1
- package/dist/esm/core/approvals.d.ts +25 -25
- package/dist/esm/core/approvals.d.ts.map +1 -1
- package/dist/esm/core/approvals.js +35 -35
- package/dist/esm/core/approvals.js.map +1 -1
- package/dist/esm/core/balances.d.ts +3 -3
- package/dist/esm/core/balances.d.ts.map +1 -1
- package/dist/esm/core/balances.js +4 -4
- package/dist/esm/core/balances.js.map +1 -1
- package/dist/esm/core/blockin.d.ts +1 -1
- package/dist/esm/core/blockin.d.ts.map +1 -1
- package/dist/esm/core/index.d.ts +0 -1
- package/dist/esm/core/index.d.ts.map +1 -1
- package/dist/esm/core/index.js +0 -1
- package/dist/esm/core/index.js.map +1 -1
- package/dist/esm/core/misc.d.ts +40 -40
- package/dist/esm/core/misc.d.ts.map +1 -1
- package/dist/esm/core/misc.js +55 -55
- package/dist/esm/core/misc.js.map +1 -1
- package/dist/esm/core/permissions.d.ts +1 -1
- package/dist/esm/core/permissions.d.ts.map +1 -1
- package/dist/esm/core/permissions.js +1 -1
- package/dist/esm/core/permissions.js.map +1 -1
- package/dist/esm/core/timelines.js +1 -1
- package/dist/esm/core/timelines.js.map +1 -1
- package/dist/esm/core/transfers.d.ts +4 -4
- package/dist/esm/core/transfers.d.ts.map +1 -1
- package/dist/esm/core/transfers.js +4 -4
- package/dist/esm/core/transfers.js.map +1 -1
- package/dist/esm/core/uintRanges.d.ts +3 -3
- package/dist/esm/core/uintRanges.d.ts.map +1 -1
- package/dist/esm/core/uintRanges.js +4 -4
- package/dist/esm/core/uintRanges.js.map +1 -1
- package/dist/esm/core/userBalances.d.ts +3 -3
- package/dist/esm/core/userBalances.d.ts.map +1 -1
- package/dist/esm/core/userBalances.js +2 -2
- package/dist/esm/core/userBalances.js.map +1 -1
- package/dist/esm/interfaces/index.d.ts +0 -1
- package/dist/esm/interfaces/index.d.ts.map +1 -1
- package/dist/esm/interfaces/index.js +0 -1
- package/dist/esm/interfaces/index.js.map +1 -1
- package/dist/esm/transactions/amino/objectConverter.js +1 -1
- package/dist/esm/transactions/messages/base.d.ts.map +1 -1
- package/dist/esm/transactions/messages/base.js +1 -1
- package/dist/esm/transactions/messages/base.js.map +1 -1
- package/dist/esm/transactions/messages/bitbadges/badges/interfaces.d.ts +1 -1
- package/dist/esm/transactions/messages/bitbadges/badges/interfaces.d.ts.map +1 -1
- package/dist/esm/transactions/messages/bitbadges/badges/msgUpdateCollection.d.ts.map +1 -1
- package/dist/esm/transactions/messages/bitbadges/badges/msgUpdateCollection.js.map +1 -1
- package/dist/esm/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.d.ts +1 -1
- package/dist/esm/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.d.ts.map +1 -1
- package/dist/esm/transactions/messages/bitbadges/maps/interfaces.d.ts +7 -3
- package/dist/esm/transactions/messages/bitbadges/maps/interfaces.d.ts.map +1 -1
- package/dist/esm/transactions/messages/bitbadges/maps/interfaces.js +5 -2
- package/dist/esm/transactions/messages/bitbadges/maps/interfaces.js.map +1 -1
- package/dist/esm/transactions/messages/common.d.ts +1 -1
- package/dist/esm/transactions/messages/common.d.ts.map +1 -1
- package/package.json +6 -8
- package/dist/cjs/core/attestations.d.ts.map +0 -1
- package/dist/cjs/core/attestations.js.map +0 -1
- package/dist/esm/core/attestations.d.ts.map +0 -1
- package/dist/esm/core/attestations.js.map +0 -1
- /package/dist/cjs/{core → attestations}/attestations.d.ts +0 -0
- /package/dist/cjs/{core → attestations}/attestations.js +0 -0
- /package/dist/esm/{core → attestations}/attestations.d.ts +0 -0
- /package/dist/esm/{core → attestations}/attestations.js +0 -0
|
@@ -343,7 +343,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
343
343
|
}
|
|
344
344
|
async updateAccountInfo(payload) {
|
|
345
345
|
try {
|
|
346
|
-
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, {
|
|
346
|
+
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, {
|
|
347
347
|
path: _path + ".discord",
|
|
348
348
|
expected: "(string | undefined)",
|
|
349
349
|
value: input.discord
|
|
@@ -371,12 +371,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
371
371
|
path: _path + ".hiddenBadges",
|
|
372
372
|
expected: "(Array<iBatchBadgeDetails<NumberType>> | undefined)",
|
|
373
373
|
value: input.hiddenBadges
|
|
374
|
-
})) && input.hiddenBadges.map((elem,
|
|
375
|
-
path: _path + ".hiddenBadges[" +
|
|
374
|
+
})) && input.hiddenBadges.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
375
|
+
path: _path + ".hiddenBadges[" + _index21 + "]",
|
|
376
376
|
expected: "iBatchBadgeDetails<NumberType>",
|
|
377
377
|
value: elem
|
|
378
|
-
})) && $vo1(elem, _path + ".hiddenBadges[" +
|
|
379
|
-
path: _path + ".hiddenBadges[" +
|
|
378
|
+
})) && $vo1(elem, _path + ".hiddenBadges[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
379
|
+
path: _path + ".hiddenBadges[" + _index21 + "]",
|
|
380
380
|
expected: "iBatchBadgeDetails<NumberType>",
|
|
381
381
|
value: elem
|
|
382
382
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -387,8 +387,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
387
387
|
path: _path + ".hiddenLists",
|
|
388
388
|
expected: "(Array<string> | undefined)",
|
|
389
389
|
value: input.hiddenLists
|
|
390
|
-
})) && input.hiddenLists.map((elem,
|
|
391
|
-
path: _path + ".hiddenLists[" +
|
|
390
|
+
})) && input.hiddenLists.map((elem, _index22) => "string" === typeof elem || $report(_exceptionable, {
|
|
391
|
+
path: _path + ".hiddenLists[" + _index22 + "]",
|
|
392
392
|
expected: "string",
|
|
393
393
|
value: elem
|
|
394
394
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -399,12 +399,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
399
399
|
path: _path + ".customLinks",
|
|
400
400
|
expected: "(Array<iCustomLink> | undefined)",
|
|
401
401
|
value: input.customLinks
|
|
402
|
-
})) && input.customLinks.map((elem,
|
|
403
|
-
path: _path + ".customLinks[" +
|
|
402
|
+
})) && input.customLinks.map((elem, _index23) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
403
|
+
path: _path + ".customLinks[" + _index23 + "]",
|
|
404
404
|
expected: "iCustomLink",
|
|
405
405
|
value: elem
|
|
406
|
-
})) && $vo3(elem, _path + ".customLinks[" +
|
|
407
|
-
path: _path + ".customLinks[" +
|
|
406
|
+
})) && $vo3(elem, _path + ".customLinks[" + _index23 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
407
|
+
path: _path + ".customLinks[" + _index23 + "]",
|
|
408
408
|
expected: "iCustomLink",
|
|
409
409
|
value: elem
|
|
410
410
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -459,7 +459,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
459
459
|
path: _path + ".socialConnections",
|
|
460
460
|
expected: "(iSocialConnections<NumberType> | undefined)",
|
|
461
461
|
value: input.socialConnections
|
|
462
|
-
})) && $
|
|
462
|
+
})) && $vo20(input.socialConnections, _path + ".socialConnections", true && _exceptionable) || $report(_exceptionable, {
|
|
463
463
|
path: _path + ".socialConnections",
|
|
464
464
|
expected: "(iSocialConnections<NumberType> | undefined)",
|
|
465
465
|
value: input.socialConnections
|
|
@@ -471,12 +471,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
471
471
|
path: _path + ".badgeIds",
|
|
472
472
|
expected: "Array<iUintRange<NumberType>>",
|
|
473
473
|
value: input.badgeIds
|
|
474
|
-
})) && input.badgeIds.map((elem,
|
|
475
|
-
path: _path + ".badgeIds[" +
|
|
474
|
+
})) && input.badgeIds.map((elem, _index24) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
475
|
+
path: _path + ".badgeIds[" + _index24 + "]",
|
|
476
476
|
expected: "iUintRange<NumberType>",
|
|
477
477
|
value: elem
|
|
478
|
-
})) && $vo2(elem, _path + ".badgeIds[" +
|
|
479
|
-
path: _path + ".badgeIds[" +
|
|
478
|
+
})) && $vo2(elem, _path + ".badgeIds[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
479
|
+
path: _path + ".badgeIds[" + _index24 + "]",
|
|
480
480
|
expected: "iUintRange<NumberType>",
|
|
481
481
|
value: elem
|
|
482
482
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -507,12 +507,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
507
507
|
path: _path + ".badges",
|
|
508
508
|
expected: "Array<iCustomPage<NumberType>>",
|
|
509
509
|
value: input.badges
|
|
510
|
-
})) && input.badges.map((elem,
|
|
511
|
-
path: _path + ".badges[" +
|
|
510
|
+
})) && input.badges.map((elem, _index25) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
511
|
+
path: _path + ".badges[" + _index25 + "]",
|
|
512
512
|
expected: "iCustomPage<NumberType>",
|
|
513
513
|
value: elem
|
|
514
|
-
})) && $vo5(elem, _path + ".badges[" +
|
|
515
|
-
path: _path + ".badges[" +
|
|
514
|
+
})) && $vo5(elem, _path + ".badges[" + _index25 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
515
|
+
path: _path + ".badges[" + _index25 + "]",
|
|
516
516
|
expected: "iCustomPage<NumberType>",
|
|
517
517
|
value: elem
|
|
518
518
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -523,12 +523,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
523
523
|
path: _path + ".lists",
|
|
524
524
|
expected: "Array<iCustomListPage>",
|
|
525
525
|
value: input.lists
|
|
526
|
-
})) && input.lists.map((elem,
|
|
527
|
-
path: _path + ".lists[" +
|
|
526
|
+
})) && input.lists.map((elem, _index26) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
527
|
+
path: _path + ".lists[" + _index26 + "]",
|
|
528
528
|
expected: "iCustomListPage",
|
|
529
529
|
value: elem
|
|
530
|
-
})) && $vo6(elem, _path + ".lists[" +
|
|
531
|
-
path: _path + ".lists[" +
|
|
530
|
+
})) && $vo6(elem, _path + ".lists[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
531
|
+
path: _path + ".lists[" + _index26 + "]",
|
|
532
532
|
expected: "iCustomListPage",
|
|
533
533
|
value: elem
|
|
534
534
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -539,12 +539,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
539
539
|
path: _path + ".attestations",
|
|
540
540
|
expected: "Array<iCustomListPage>",
|
|
541
541
|
value: input.attestations
|
|
542
|
-
})) && input.attestations.map((elem,
|
|
543
|
-
path: _path + ".attestations[" +
|
|
542
|
+
})) && input.attestations.map((elem, _index27) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
543
|
+
path: _path + ".attestations[" + _index27 + "]",
|
|
544
544
|
expected: "iCustomListPage",
|
|
545
545
|
value: elem
|
|
546
|
-
})) && $vo6(elem, _path + ".attestations[" +
|
|
547
|
-
path: _path + ".attestations[" +
|
|
546
|
+
})) && $vo6(elem, _path + ".attestations[" + _index27 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
547
|
+
path: _path + ".attestations[" + _index27 + "]",
|
|
548
548
|
expected: "iCustomListPage",
|
|
549
549
|
value: elem
|
|
550
550
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -563,12 +563,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
563
563
|
path: _path + ".items",
|
|
564
564
|
expected: "Array<iBatchBadgeDetails<NumberType>>",
|
|
565
565
|
value: input.items
|
|
566
|
-
})) && input.items.map((elem,
|
|
567
|
-
path: _path + ".items[" +
|
|
566
|
+
})) && input.items.map((elem, _index28) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
567
|
+
path: _path + ".items[" + _index28 + "]",
|
|
568
568
|
expected: "iBatchBadgeDetails<NumberType>",
|
|
569
569
|
value: elem
|
|
570
|
-
})) && $vo1(elem, _path + ".items[" +
|
|
571
|
-
path: _path + ".items[" +
|
|
570
|
+
})) && $vo1(elem, _path + ".items[" + _index28 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
571
|
+
path: _path + ".items[" + _index28 + "]",
|
|
572
572
|
expected: "iBatchBadgeDetails<NumberType>",
|
|
573
573
|
value: elem
|
|
574
574
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -587,8 +587,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
587
587
|
path: _path + ".items",
|
|
588
588
|
expected: "Array<string>",
|
|
589
589
|
value: input.items
|
|
590
|
-
})) && input.items.map((elem,
|
|
591
|
-
path: _path + ".items[" +
|
|
590
|
+
})) && input.items.map((elem, _index29) => "string" === typeof elem || $report(_exceptionable, {
|
|
591
|
+
path: _path + ".items[" + _index29 + "]",
|
|
592
592
|
expected: "string",
|
|
593
593
|
value: elem
|
|
594
594
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -599,12 +599,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
599
599
|
path: _path + ".badges",
|
|
600
600
|
expected: "Array<iCustomPage<NumberType>>",
|
|
601
601
|
value: input.badges
|
|
602
|
-
})) && input.badges.map((elem,
|
|
603
|
-
path: _path + ".badges[" +
|
|
602
|
+
})) && input.badges.map((elem, _index30) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
603
|
+
path: _path + ".badges[" + _index30 + "]",
|
|
604
604
|
expected: "iCustomPage<NumberType>",
|
|
605
605
|
value: elem
|
|
606
|
-
})) && $vo5(elem, _path + ".badges[" +
|
|
607
|
-
path: _path + ".badges[" +
|
|
606
|
+
})) && $vo5(elem, _path + ".badges[" + _index30 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
607
|
+
path: _path + ".badges[" + _index30 + "]",
|
|
608
608
|
expected: "iCustomPage<NumberType>",
|
|
609
609
|
value: elem
|
|
610
610
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -615,12 +615,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
615
615
|
path: _path + ".lists",
|
|
616
616
|
expected: "Array<iCustomListPage>",
|
|
617
617
|
value: input.lists
|
|
618
|
-
})) && input.lists.map((elem,
|
|
619
|
-
path: _path + ".lists[" +
|
|
618
|
+
})) && input.lists.map((elem, _index31) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
619
|
+
path: _path + ".lists[" + _index31 + "]",
|
|
620
620
|
expected: "iCustomListPage",
|
|
621
621
|
value: elem
|
|
622
|
-
})) && $vo6(elem, _path + ".lists[" +
|
|
623
|
-
path: _path + ".lists[" +
|
|
622
|
+
})) && $vo6(elem, _path + ".lists[" + _index31 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
623
|
+
path: _path + ".lists[" + _index31 + "]",
|
|
624
624
|
expected: "iCustomListPage",
|
|
625
625
|
value: elem
|
|
626
626
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -631,12 +631,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
631
631
|
path: _path + ".attestations",
|
|
632
632
|
expected: "Array<iCustomListPage>",
|
|
633
633
|
value: input.attestations
|
|
634
|
-
})) && input.attestations.map((elem,
|
|
635
|
-
path: _path + ".attestations[" +
|
|
634
|
+
})) && input.attestations.map((elem, _index32) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
635
|
+
path: _path + ".attestations[" + _index32 + "]",
|
|
636
636
|
expected: "iCustomListPage",
|
|
637
637
|
value: elem
|
|
638
|
-
})) && $vo6(elem, _path + ".attestations[" +
|
|
639
|
-
path: _path + ".attestations[" +
|
|
638
|
+
})) && $vo6(elem, _path + ".attestations[" + _index32 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
639
|
+
path: _path + ".attestations[" + _index32 + "]",
|
|
640
640
|
expected: "iCustomListPage",
|
|
641
641
|
value: elem
|
|
642
642
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -731,28 +731,44 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
731
731
|
path: _path + ".addresses",
|
|
732
732
|
expected: "(Array<__type> | undefined)",
|
|
733
733
|
value: input.addresses
|
|
734
|
-
})) && input.addresses.map((elem,
|
|
735
|
-
path: _path + ".addresses[" +
|
|
734
|
+
})) && input.addresses.map((elem, _index33) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
735
|
+
path: _path + ".addresses[" + _index33 + "]",
|
|
736
736
|
expected: "__type.o10",
|
|
737
737
|
value: elem
|
|
738
|
-
})) && $vo18(elem, _path + ".addresses[" +
|
|
739
|
-
path: _path + ".addresses[" +
|
|
738
|
+
})) && $vo18(elem, _path + ".addresses[" + _index33 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
739
|
+
path: _path + ".addresses[" + _index33 + "]",
|
|
740
740
|
expected: "__type.o10",
|
|
741
741
|
value: elem
|
|
742
742
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
743
743
|
path: _path + ".addresses",
|
|
744
744
|
expected: "(Array<__type> | undefined)",
|
|
745
745
|
value: input.addresses
|
|
746
|
+
}), undefined === input.passwords || (Array.isArray(input.passwords) || $report(_exceptionable, {
|
|
747
|
+
path: _path + ".passwords",
|
|
748
|
+
expected: "(Array<__type>.o1 | undefined)",
|
|
749
|
+
value: input.passwords
|
|
750
|
+
})) && input.passwords.map((elem, _index34) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
751
|
+
path: _path + ".passwords[" + _index34 + "]",
|
|
752
|
+
expected: "__type.o11",
|
|
753
|
+
value: elem
|
|
754
|
+
})) && $vo19(elem, _path + ".passwords[" + _index34 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
755
|
+
path: _path + ".passwords[" + _index34 + "]",
|
|
756
|
+
expected: "__type.o11",
|
|
757
|
+
value: elem
|
|
758
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
759
|
+
path: _path + ".passwords",
|
|
760
|
+
expected: "(Array<__type>.o1 | undefined)",
|
|
761
|
+
value: input.passwords
|
|
746
762
|
})].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => [(Array.isArray(input.scopes) || $report(_exceptionable, {
|
|
747
763
|
path: _path + ".scopes",
|
|
748
764
|
expected: "Array<OAuthScopeDetails>",
|
|
749
765
|
value: input.scopes
|
|
750
|
-
})) && input.scopes.map((elem,
|
|
751
|
-
path: _path + ".scopes[" +
|
|
766
|
+
})) && input.scopes.map((elem, _index35) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
767
|
+
path: _path + ".scopes[" + _index35 + "]",
|
|
752
768
|
expected: "OAuthScopeDetails",
|
|
753
769
|
value: elem
|
|
754
|
-
})) && $vo13(elem, _path + ".scopes[" +
|
|
755
|
-
path: _path + ".scopes[" +
|
|
770
|
+
})) && $vo13(elem, _path + ".scopes[" + _index35 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
771
|
+
path: _path + ".scopes[" + _index35 + "]",
|
|
756
772
|
expected: "OAuthScopeDetails",
|
|
757
773
|
value: elem
|
|
758
774
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -787,12 +803,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
787
803
|
path: _path + ".scopes",
|
|
788
804
|
expected: "Array<OAuthScopeDetails>",
|
|
789
805
|
value: input.scopes
|
|
790
|
-
})) && input.scopes.map((elem,
|
|
791
|
-
path: _path + ".scopes[" +
|
|
806
|
+
})) && input.scopes.map((elem, _index36) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
807
|
+
path: _path + ".scopes[" + _index36 + "]",
|
|
792
808
|
expected: "OAuthScopeDetails",
|
|
793
809
|
value: elem
|
|
794
|
-
})) && $vo13(elem, _path + ".scopes[" +
|
|
795
|
-
path: _path + ".scopes[" +
|
|
810
|
+
})) && $vo13(elem, _path + ".scopes[" + _index36 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
811
|
+
path: _path + ".scopes[" + _index36 + "]",
|
|
796
812
|
expected: "OAuthScopeDetails",
|
|
797
813
|
value: elem
|
|
798
814
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -811,12 +827,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
811
827
|
path: _path + ".scopes",
|
|
812
828
|
expected: "Array<OAuthScopeDetails>",
|
|
813
829
|
value: input.scopes
|
|
814
|
-
})) && input.scopes.map((elem,
|
|
815
|
-
path: _path + ".scopes[" +
|
|
830
|
+
})) && input.scopes.map((elem, _index37) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
831
|
+
path: _path + ".scopes[" + _index37 + "]",
|
|
816
832
|
expected: "OAuthScopeDetails",
|
|
817
833
|
value: elem
|
|
818
|
-
})) && $vo13(elem, _path + ".scopes[" +
|
|
819
|
-
path: _path + ".scopes[" +
|
|
834
|
+
})) && $vo13(elem, _path + ".scopes[" + _index37 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
835
|
+
path: _path + ".scopes[" + _index37 + "]",
|
|
820
836
|
expected: "OAuthScopeDetails",
|
|
821
837
|
value: elem
|
|
822
838
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -835,12 +851,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
835
851
|
path: _path + ".scopes",
|
|
836
852
|
expected: "Array<OAuthScopeDetails>",
|
|
837
853
|
value: input.scopes
|
|
838
|
-
})) && input.scopes.map((elem,
|
|
839
|
-
path: _path + ".scopes[" +
|
|
854
|
+
})) && input.scopes.map((elem, _index38) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
855
|
+
path: _path + ".scopes[" + _index38 + "]",
|
|
840
856
|
expected: "OAuthScopeDetails",
|
|
841
857
|
value: elem
|
|
842
|
-
})) && $vo13(elem, _path + ".scopes[" +
|
|
843
|
-
path: _path + ".scopes[" +
|
|
858
|
+
})) && $vo13(elem, _path + ".scopes[" + _index38 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
859
|
+
path: _path + ".scopes[" + _index38 + "]",
|
|
844
860
|
expected: "OAuthScopeDetails",
|
|
845
861
|
value: elem
|
|
846
862
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -863,99 +879,127 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
863
879
|
path: _path + ".scopes",
|
|
864
880
|
expected: "Array<OAuthScopeDetails>",
|
|
865
881
|
value: input.scopes
|
|
866
|
-
})) && input.scopes.map((elem,
|
|
867
|
-
path: _path + ".scopes[" +
|
|
882
|
+
})) && input.scopes.map((elem, _index39) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
883
|
+
path: _path + ".scopes[" + _index39 + "]",
|
|
868
884
|
expected: "OAuthScopeDetails",
|
|
869
885
|
value: elem
|
|
870
|
-
})) && $vo13(elem, _path + ".scopes[" +
|
|
871
|
-
path: _path + ".scopes[" +
|
|
886
|
+
})) && $vo13(elem, _path + ".scopes[" + _index39 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
887
|
+
path: _path + ".scopes[" + _index39 + "]",
|
|
888
|
+
expected: "OAuthScopeDetails",
|
|
889
|
+
value: elem
|
|
890
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
891
|
+
path: _path + ".scopes",
|
|
892
|
+
expected: "Array<OAuthScopeDetails>",
|
|
893
|
+
value: input.scopes
|
|
894
|
+
})].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.passwordHash || $report(_exceptionable, {
|
|
895
|
+
path: _path + ".passwordHash",
|
|
896
|
+
expected: "string",
|
|
897
|
+
value: input.passwordHash
|
|
898
|
+
}), "string" === typeof input.salt || $report(_exceptionable, {
|
|
899
|
+
path: _path + ".salt",
|
|
900
|
+
expected: "string",
|
|
901
|
+
value: input.salt
|
|
902
|
+
}), undefined === input.password || "string" === typeof input.password || $report(_exceptionable, {
|
|
903
|
+
path: _path + ".password",
|
|
904
|
+
expected: "(string | undefined)",
|
|
905
|
+
value: input.password
|
|
906
|
+
}), (Array.isArray(input.scopes) || $report(_exceptionable, {
|
|
907
|
+
path: _path + ".scopes",
|
|
908
|
+
expected: "Array<OAuthScopeDetails>",
|
|
909
|
+
value: input.scopes
|
|
910
|
+
})) && input.scopes.map((elem, _index40) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
911
|
+
path: _path + ".scopes[" + _index40 + "]",
|
|
912
|
+
expected: "OAuthScopeDetails",
|
|
913
|
+
value: elem
|
|
914
|
+
})) && $vo13(elem, _path + ".scopes[" + _index40 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
915
|
+
path: _path + ".scopes[" + _index40 + "]",
|
|
872
916
|
expected: "OAuthScopeDetails",
|
|
873
917
|
value: elem
|
|
874
918
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
875
919
|
path: _path + ".scopes",
|
|
876
920
|
expected: "Array<OAuthScopeDetails>",
|
|
877
921
|
value: input.scopes
|
|
878
|
-
})].every(flag => flag); const $
|
|
922
|
+
})].every(flag => flag); const $vo20 = (input, _path, _exceptionable = true) => [undefined === input.discord || ("object" === typeof input.discord && null !== input.discord || $report(_exceptionable, {
|
|
879
923
|
path: _path + ".discord",
|
|
880
|
-
expected: "(__type.
|
|
924
|
+
expected: "(__type.o12 | undefined)",
|
|
881
925
|
value: input.discord
|
|
882
|
-
})) && $
|
|
926
|
+
})) && $vo21(input.discord, _path + ".discord", true && _exceptionable) || $report(_exceptionable, {
|
|
883
927
|
path: _path + ".discord",
|
|
884
|
-
expected: "(__type.
|
|
928
|
+
expected: "(__type.o12 | undefined)",
|
|
885
929
|
value: input.discord
|
|
886
930
|
}), undefined === input.twitter || ("object" === typeof input.twitter && null !== input.twitter || $report(_exceptionable, {
|
|
887
931
|
path: _path + ".twitter",
|
|
888
|
-
expected: "(__type.
|
|
932
|
+
expected: "(__type.o13 | undefined)",
|
|
889
933
|
value: input.twitter
|
|
890
|
-
})) && $
|
|
934
|
+
})) && $vo22(input.twitter, _path + ".twitter", true && _exceptionable) || $report(_exceptionable, {
|
|
891
935
|
path: _path + ".twitter",
|
|
892
|
-
expected: "(__type.
|
|
936
|
+
expected: "(__type.o13 | undefined)",
|
|
893
937
|
value: input.twitter
|
|
894
938
|
}), undefined === input.google || ("object" === typeof input.google && null !== input.google || $report(_exceptionable, {
|
|
895
939
|
path: _path + ".google",
|
|
896
|
-
expected: "(__type.
|
|
940
|
+
expected: "(__type.o14 | undefined)",
|
|
897
941
|
value: input.google
|
|
898
|
-
})) && $
|
|
942
|
+
})) && $vo23(input.google, _path + ".google", true && _exceptionable) || $report(_exceptionable, {
|
|
899
943
|
path: _path + ".google",
|
|
900
|
-
expected: "(__type.
|
|
944
|
+
expected: "(__type.o14 | undefined)",
|
|
901
945
|
value: input.google
|
|
902
946
|
}), undefined === input.github || ("object" === typeof input.github && null !== input.github || $report(_exceptionable, {
|
|
903
947
|
path: _path + ".github",
|
|
904
|
-
expected: "(__type.
|
|
948
|
+
expected: "(__type.o15 | undefined)",
|
|
905
949
|
value: input.github
|
|
906
|
-
})) && $
|
|
950
|
+
})) && $vo24(input.github, _path + ".github", true && _exceptionable) || $report(_exceptionable, {
|
|
907
951
|
path: _path + ".github",
|
|
908
|
-
expected: "(__type.
|
|
952
|
+
expected: "(__type.o15 | undefined)",
|
|
909
953
|
value: input.github
|
|
910
954
|
}), undefined === input.twitch || ("object" === typeof input.twitch && null !== input.twitch || $report(_exceptionable, {
|
|
911
955
|
path: _path + ".twitch",
|
|
912
|
-
expected: "(__type.
|
|
956
|
+
expected: "(__type.o16 | undefined)",
|
|
913
957
|
value: input.twitch
|
|
914
|
-
})) && $
|
|
958
|
+
})) && $vo25(input.twitch, _path + ".twitch", true && _exceptionable) || $report(_exceptionable, {
|
|
915
959
|
path: _path + ".twitch",
|
|
916
|
-
expected: "(__type.
|
|
960
|
+
expected: "(__type.o16 | undefined)",
|
|
917
961
|
value: input.twitch
|
|
918
962
|
}), undefined === input.strava || ("object" === typeof input.strava && null !== input.strava || $report(_exceptionable, {
|
|
919
963
|
path: _path + ".strava",
|
|
920
|
-
expected: "(__type.
|
|
964
|
+
expected: "(__type.o17 | undefined)",
|
|
921
965
|
value: input.strava
|
|
922
|
-
})) && $
|
|
966
|
+
})) && $vo26(input.strava, _path + ".strava", true && _exceptionable) || $report(_exceptionable, {
|
|
923
967
|
path: _path + ".strava",
|
|
924
|
-
expected: "(__type.
|
|
968
|
+
expected: "(__type.o17 | undefined)",
|
|
925
969
|
value: input.strava
|
|
926
970
|
}), undefined === input.reddit || ("object" === typeof input.reddit && null !== input.reddit || $report(_exceptionable, {
|
|
927
971
|
path: _path + ".reddit",
|
|
928
|
-
expected: "(__type.
|
|
972
|
+
expected: "(__type.o18 | undefined)",
|
|
929
973
|
value: input.reddit
|
|
930
|
-
})) && $
|
|
974
|
+
})) && $vo27(input.reddit, _path + ".reddit", true && _exceptionable) || $report(_exceptionable, {
|
|
931
975
|
path: _path + ".reddit",
|
|
932
|
-
expected: "(__type.
|
|
976
|
+
expected: "(__type.o18 | undefined)",
|
|
933
977
|
value: input.reddit
|
|
934
978
|
}), undefined === input.telegram || ("object" === typeof input.telegram && null !== input.telegram || $report(_exceptionable, {
|
|
935
979
|
path: _path + ".telegram",
|
|
936
|
-
expected: "(__type.
|
|
980
|
+
expected: "(__type.o19 | undefined)",
|
|
937
981
|
value: input.telegram
|
|
938
|
-
})) && $
|
|
982
|
+
})) && $vo28(input.telegram, _path + ".telegram", true && _exceptionable) || $report(_exceptionable, {
|
|
939
983
|
path: _path + ".telegram",
|
|
940
|
-
expected: "(__type.
|
|
984
|
+
expected: "(__type.o19 | undefined)",
|
|
941
985
|
value: input.telegram
|
|
942
986
|
}), undefined === input.farcaster || ("object" === typeof input.farcaster && null !== input.farcaster || $report(_exceptionable, {
|
|
943
987
|
path: _path + ".farcaster",
|
|
944
|
-
expected: "(__type.
|
|
988
|
+
expected: "(__type.o20 | undefined)",
|
|
945
989
|
value: input.farcaster
|
|
946
|
-
})) && $
|
|
990
|
+
})) && $vo29(input.farcaster, _path + ".farcaster", true && _exceptionable) || $report(_exceptionable, {
|
|
947
991
|
path: _path + ".farcaster",
|
|
948
|
-
expected: "(__type.
|
|
992
|
+
expected: "(__type.o20 | undefined)",
|
|
949
993
|
value: input.farcaster
|
|
950
994
|
}), undefined === input.slack || ("object" === typeof input.slack && null !== input.slack || $report(_exceptionable, {
|
|
951
995
|
path: _path + ".slack",
|
|
952
|
-
expected: "(__type.
|
|
996
|
+
expected: "(__type.o21 | undefined)",
|
|
953
997
|
value: input.slack
|
|
954
|
-
})) && $
|
|
998
|
+
})) && $vo30(input.slack, _path + ".slack", true && _exceptionable) || $report(_exceptionable, {
|
|
955
999
|
path: _path + ".slack",
|
|
956
|
-
expected: "(__type.
|
|
1000
|
+
expected: "(__type.o21 | undefined)",
|
|
957
1001
|
value: input.slack
|
|
958
|
-
})].every(flag => flag); const $
|
|
1002
|
+
})].every(flag => flag); const $vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
959
1003
|
path: _path + ".username",
|
|
960
1004
|
expected: "string",
|
|
961
1005
|
value: input.username
|
|
@@ -971,7 +1015,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
971
1015
|
path: _path + ".lastUpdated",
|
|
972
1016
|
expected: "(bigint | number | string)",
|
|
973
1017
|
value: input.lastUpdated
|
|
974
|
-
})].every(flag => flag); const $
|
|
1018
|
+
})].every(flag => flag); const $vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
975
1019
|
path: _path + ".username",
|
|
976
1020
|
expected: "string",
|
|
977
1021
|
value: input.username
|
|
@@ -983,7 +1027,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
983
1027
|
path: _path + ".lastUpdated",
|
|
984
1028
|
expected: "(bigint | number | string)",
|
|
985
1029
|
value: input.lastUpdated
|
|
986
|
-
})].every(flag => flag); const $
|
|
1030
|
+
})].every(flag => flag); const $vo23 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
987
1031
|
path: _path + ".username",
|
|
988
1032
|
expected: "string",
|
|
989
1033
|
value: input.username
|
|
@@ -995,7 +1039,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
995
1039
|
path: _path + ".lastUpdated",
|
|
996
1040
|
expected: "(bigint | number | string)",
|
|
997
1041
|
value: input.lastUpdated
|
|
998
|
-
})].every(flag => flag); const $
|
|
1042
|
+
})].every(flag => flag); const $vo24 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
999
1043
|
path: _path + ".username",
|
|
1000
1044
|
expected: "string",
|
|
1001
1045
|
value: input.username
|
|
@@ -1007,7 +1051,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1007
1051
|
path: _path + ".lastUpdated",
|
|
1008
1052
|
expected: "(bigint | number | string)",
|
|
1009
1053
|
value: input.lastUpdated
|
|
1010
|
-
})].every(flag => flag); const $
|
|
1054
|
+
})].every(flag => flag); const $vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
1011
1055
|
path: _path + ".username",
|
|
1012
1056
|
expected: "string",
|
|
1013
1057
|
value: input.username
|
|
@@ -1019,7 +1063,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1019
1063
|
path: _path + ".lastUpdated",
|
|
1020
1064
|
expected: "(bigint | number | string)",
|
|
1021
1065
|
value: input.lastUpdated
|
|
1022
|
-
})].every(flag => flag); const $
|
|
1066
|
+
})].every(flag => flag); const $vo26 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
1023
1067
|
path: _path + ".username",
|
|
1024
1068
|
expected: "string",
|
|
1025
1069
|
value: input.username
|
|
@@ -1031,7 +1075,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1031
1075
|
path: _path + ".lastUpdated",
|
|
1032
1076
|
expected: "(bigint | number | string)",
|
|
1033
1077
|
value: input.lastUpdated
|
|
1034
|
-
})].every(flag => flag); const $
|
|
1078
|
+
})].every(flag => flag); const $vo27 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
1035
1079
|
path: _path + ".username",
|
|
1036
1080
|
expected: "string",
|
|
1037
1081
|
value: input.username
|
|
@@ -1043,7 +1087,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1043
1087
|
path: _path + ".lastUpdated",
|
|
1044
1088
|
expected: "(bigint | number | string)",
|
|
1045
1089
|
value: input.lastUpdated
|
|
1046
|
-
})].every(flag => flag); const $
|
|
1090
|
+
})].every(flag => flag); const $vo28 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
1047
1091
|
path: _path + ".username",
|
|
1048
1092
|
expected: "string",
|
|
1049
1093
|
value: input.username
|
|
@@ -1055,7 +1099,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1055
1099
|
path: _path + ".lastUpdated",
|
|
1056
1100
|
expected: "(bigint | number | string)",
|
|
1057
1101
|
value: input.lastUpdated
|
|
1058
|
-
})].every(flag => flag); const $
|
|
1102
|
+
})].every(flag => flag); const $vo29 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
1059
1103
|
path: _path + ".username",
|
|
1060
1104
|
expected: "string",
|
|
1061
1105
|
value: input.username
|
|
@@ -1067,7 +1111,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1067
1111
|
path: _path + ".lastUpdated",
|
|
1068
1112
|
expected: "(bigint | number | string)",
|
|
1069
1113
|
value: input.lastUpdated
|
|
1070
|
-
})].every(flag => flag); const $
|
|
1114
|
+
})].every(flag => flag); const $vo30 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
|
|
1071
1115
|
path: _path + ".username",
|
|
1072
1116
|
expected: "string",
|
|
1073
1117
|
value: input.username
|
|
@@ -1161,7 +1205,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1161
1205
|
}
|
|
1162
1206
|
async getBrowseCollections(payload) {
|
|
1163
1207
|
try {
|
|
1164
|
-
const validateRes = (() => { const $io0 = input => ("
|
|
1208
|
+
const validateRes = (() => { const $io0 = input => ("badges" === input.type || "attestations" === input.type || "collections" === input.type || "addressLists" === input.type || "maps" === input.type || "claims" === input.type || "activity" === input.type) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && $io1(input.filters)); const $io1 = input => (undefined === input.category || "string" === typeof input.category) && (undefined === input.sortBy || "string" === typeof input.sortBy) && (undefined === input.timeFrame || "string" === typeof input.timeFrame) && (undefined === input.searchTerm || "string" === typeof input.searchTerm); const $vo0 = (input, _path, _exceptionable = true) => ["badges" === input.type || "attestations" === input.type || "collections" === input.type || "addressLists" === input.type || "maps" === input.type || "claims" === input.type || "activity" === input.type || $report(_exceptionable, {
|
|
1165
1209
|
path: _path + ".type",
|
|
1166
1210
|
expected: "(\"activity\" | \"addressLists\" | \"attestations\" | \"badges\" | \"claims\" | \"collections\" | \"maps\")",
|
|
1167
1211
|
value: input.type
|
|
@@ -1969,7 +2013,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1969
2013
|
}
|
|
1970
2014
|
async verifySIWBBRequest(payload) {
|
|
1971
2015
|
try {
|
|
1972
|
-
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 => (() => {
|
|
2016
|
+
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 => (() => {
|
|
1973
2017
|
if (undefined !== input.$and)
|
|
1974
2018
|
return $io3(input);
|
|
1975
2019
|
else if (undefined !== input.$or)
|
|
@@ -2018,6 +2062,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2018
2062
|
path: _path + ".socialSignIn",
|
|
2019
2063
|
expected: "(string | undefined)",
|
|
2020
2064
|
value: input.socialSignIn
|
|
2065
|
+
}), undefined === input.password || "string" === typeof input.password || $report(_exceptionable, {
|
|
2066
|
+
path: _path + ".password",
|
|
2067
|
+
expected: "(string | undefined)",
|
|
2068
|
+
value: input.password
|
|
2021
2069
|
}), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
|
|
2022
2070
|
path: _path + ".publicKey",
|
|
2023
2071
|
expected: "(string | undefined)",
|
|
@@ -3122,7 +3170,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3122
3170
|
}
|
|
3123
3171
|
async createAttestation(payload) {
|
|
3124
3172
|
try {
|
|
3125
|
-
const validateRes = (() => { const $io0 = input => (undefined === input.anchors || Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && "string" === typeof input.name &&
|
|
3173
|
+
const validateRes = (() => { const $io0 = input => (undefined === input.anchors || Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.originalProvider || "string" === typeof input.originalProvider) && (undefined === input.proofOfIssuance || "object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io2(input.proofOfIssuance)) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.scheme && (Array.isArray(input.messages) && input.messages.every(elem => "string" === typeof elem)) && (undefined === input.dataIntegrityProof || "object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io3(input.dataIntegrityProof)) && (undefined === input.publicVisibility || "boolean" === typeof input.publicVisibility); const $io1 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message); const $io2 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io3 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey) && (undefined === input.isDerived || "boolean" === typeof input.isDerived); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.anchors || (Array.isArray(input.anchors) || $report(_exceptionable, {
|
|
3126
3174
|
path: _path + ".anchors",
|
|
3127
3175
|
expected: "(Array<__type> | undefined)",
|
|
3128
3176
|
value: input.anchors
|
|
@@ -3142,18 +3190,6 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3142
3190
|
path: _path + ".name",
|
|
3143
3191
|
expected: "string",
|
|
3144
3192
|
value: input.name
|
|
3145
|
-
}), (Array.isArray(input.messages) || $report(_exceptionable, {
|
|
3146
|
-
path: _path + ".messages",
|
|
3147
|
-
expected: "Array<string>",
|
|
3148
|
-
value: input.messages
|
|
3149
|
-
})) && input.messages.map((elem, _index4) => "string" === typeof elem || $report(_exceptionable, {
|
|
3150
|
-
path: _path + ".messages[" + _index4 + "]",
|
|
3151
|
-
expected: "string",
|
|
3152
|
-
value: elem
|
|
3153
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3154
|
-
path: _path + ".messages",
|
|
3155
|
-
expected: "Array<string>",
|
|
3156
|
-
value: input.messages
|
|
3157
3193
|
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
3158
3194
|
path: _path + ".description",
|
|
3159
3195
|
expected: "string",
|
|
@@ -3182,6 +3218,18 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3182
3218
|
path: _path + ".scheme",
|
|
3183
3219
|
expected: "string",
|
|
3184
3220
|
value: input.scheme
|
|
3221
|
+
}), (Array.isArray(input.messages) || $report(_exceptionable, {
|
|
3222
|
+
path: _path + ".messages",
|
|
3223
|
+
expected: "Array<string>",
|
|
3224
|
+
value: input.messages
|
|
3225
|
+
})) && input.messages.map((elem, _index4) => "string" === typeof elem || $report(_exceptionable, {
|
|
3226
|
+
path: _path + ".messages[" + _index4 + "]",
|
|
3227
|
+
expected: "string",
|
|
3228
|
+
value: elem
|
|
3229
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3230
|
+
path: _path + ".messages",
|
|
3231
|
+
expected: "Array<string>",
|
|
3232
|
+
value: input.messages
|
|
3185
3233
|
}), undefined === input.dataIntegrityProof || ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof || $report(_exceptionable, {
|
|
3186
3234
|
path: _path + ".dataIntegrityProof",
|
|
3187
3235
|
expected: "(__type.o2 | undefined)",
|
|
@@ -3756,7 +3804,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3756
3804
|
}
|
|
3757
3805
|
async createClaims(payload) {
|
|
3758
3806
|
try {
|
|
3759
|
-
const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim); const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) &&
|
|
3807
|
+
const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim); const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && "string" === typeof input.claimId && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.trackerDetails || "object" === typeof input.trackerDetails && null !== input.trackerDetails && $io7(input.trackerDetails)) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && $io18(input.satisfyMethod)) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io20(elem))); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
|
|
3760
3808
|
const value = input[key];
|
|
3761
3809
|
if (undefined === value)
|
|
3762
3810
|
return true;
|
|
@@ -3811,14 +3859,6 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3811
3859
|
path: _path + ".lastUpdated",
|
|
3812
3860
|
expected: "(bigint | number | string | undefined)",
|
|
3813
3861
|
value: input.lastUpdated
|
|
3814
|
-
}), undefined === input.listId || "string" === typeof input.listId || $report(_exceptionable, {
|
|
3815
|
-
path: _path + ".listId",
|
|
3816
|
-
expected: "(string | undefined)",
|
|
3817
|
-
value: input.listId
|
|
3818
|
-
}), undefined === input.createdBy || "string" === typeof input.createdBy || $report(_exceptionable, {
|
|
3819
|
-
path: _path + ".createdBy",
|
|
3820
|
-
expected: "(string | undefined)",
|
|
3821
|
-
value: input.createdBy
|
|
3822
3862
|
}), "string" === typeof input.claimId || $report(_exceptionable, {
|
|
3823
3863
|
path: _path + ".claimId",
|
|
3824
3864
|
expected: "string",
|
|
@@ -3835,6 +3875,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3835
3875
|
path: _path + ".categories",
|
|
3836
3876
|
expected: "(Array<string> | undefined)",
|
|
3837
3877
|
value: input.categories
|
|
3878
|
+
}), undefined === input.createdBy || "string" === typeof input.createdBy || $report(_exceptionable, {
|
|
3879
|
+
path: _path + ".createdBy",
|
|
3880
|
+
expected: "(string | undefined)",
|
|
3881
|
+
value: input.createdBy
|
|
3838
3882
|
}), undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
|
|
3839
3883
|
path: _path + ".seedCode",
|
|
3840
3884
|
expected: "(string | undefined)",
|
|
@@ -3843,6 +3887,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3843
3887
|
path: _path + ".siwbbClaim",
|
|
3844
3888
|
expected: "(boolean | undefined)",
|
|
3845
3889
|
value: input.siwbbClaim
|
|
3890
|
+
}), undefined === input.listId || "string" === typeof input.listId || $report(_exceptionable, {
|
|
3891
|
+
path: _path + ".listId",
|
|
3892
|
+
expected: "(string | undefined)",
|
|
3893
|
+
value: input.listId
|
|
3846
3894
|
}), undefined === input.trackerDetails || ("object" === typeof input.trackerDetails && null !== input.trackerDetails || $report(_exceptionable, {
|
|
3847
3895
|
path: _path + ".trackerDetails",
|
|
3848
3896
|
expected: "(iChallengeTrackerIdDetails<NumberType> | undefined)",
|
|
@@ -4494,7 +4542,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4494
4542
|
}
|
|
4495
4543
|
async updateClaims(payload) {
|
|
4496
4544
|
try {
|
|
4497
|
-
const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) &&
|
|
4545
|
+
const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && "string" === typeof input.claimId && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.trackerDetails || "object" === typeof input.trackerDetails && null !== input.trackerDetails && $io7(input.trackerDetails)) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io17(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && $io21(input.satisfyMethod)); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
|
|
4498
4546
|
const value = input[key];
|
|
4499
4547
|
if (undefined === value)
|
|
4500
4548
|
return true;
|
|
@@ -4541,14 +4589,6 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4541
4589
|
path: _path + ".lastUpdated",
|
|
4542
4590
|
expected: "(bigint | number | string | undefined)",
|
|
4543
4591
|
value: input.lastUpdated
|
|
4544
|
-
}), undefined === input.listId || "string" === typeof input.listId || $report(_exceptionable, {
|
|
4545
|
-
path: _path + ".listId",
|
|
4546
|
-
expected: "(string | undefined)",
|
|
4547
|
-
value: input.listId
|
|
4548
|
-
}), undefined === input.createdBy || "string" === typeof input.createdBy || $report(_exceptionable, {
|
|
4549
|
-
path: _path + ".createdBy",
|
|
4550
|
-
expected: "(string | undefined)",
|
|
4551
|
-
value: input.createdBy
|
|
4552
4592
|
}), "string" === typeof input.claimId || $report(_exceptionable, {
|
|
4553
4593
|
path: _path + ".claimId",
|
|
4554
4594
|
expected: "string",
|
|
@@ -4565,10 +4605,18 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4565
4605
|
path: _path + ".categories",
|
|
4566
4606
|
expected: "(Array<string> | undefined)",
|
|
4567
4607
|
value: input.categories
|
|
4608
|
+
}), undefined === input.createdBy || "string" === typeof input.createdBy || $report(_exceptionable, {
|
|
4609
|
+
path: _path + ".createdBy",
|
|
4610
|
+
expected: "(string | undefined)",
|
|
4611
|
+
value: input.createdBy
|
|
4568
4612
|
}), undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim || $report(_exceptionable, {
|
|
4569
4613
|
path: _path + ".siwbbClaim",
|
|
4570
4614
|
expected: "(boolean | undefined)",
|
|
4571
4615
|
value: input.siwbbClaim
|
|
4616
|
+
}), undefined === input.listId || "string" === typeof input.listId || $report(_exceptionable, {
|
|
4617
|
+
path: _path + ".listId",
|
|
4618
|
+
expected: "(string | undefined)",
|
|
4619
|
+
value: input.listId
|
|
4572
4620
|
}), undefined === input.trackerDetails || ("object" === typeof input.trackerDetails && null !== input.trackerDetails || $report(_exceptionable, {
|
|
4573
4621
|
path: _path + ".trackerDetails",
|
|
4574
4622
|
expected: "(iChallengeTrackerIdDetails<NumberType> | undefined)",
|
|
@@ -5728,27 +5776,27 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5728
5776
|
return Promise.reject(error);
|
|
5729
5777
|
}
|
|
5730
5778
|
}
|
|
5731
|
-
async
|
|
5732
|
-
return await this.updateAccountInfo({ seenActivity: Date.now() });
|
|
5733
|
-
}
|
|
5734
|
-
}
|
|
5735
|
-
export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
5736
|
-
constructor(apiDetails) {
|
|
5737
|
-
super(apiDetails);
|
|
5738
|
-
}
|
|
5739
|
-
async getActiveAuthorizations(payload) {
|
|
5779
|
+
async getSignInChallenge(payload) {
|
|
5740
5780
|
try {
|
|
5741
|
-
const validateRes = (() => { const $io0 = input =>
|
|
5781
|
+
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, {
|
|
5782
|
+
path: _path + ".chain",
|
|
5783
|
+
expected: "(\"Bitcoin\" | \"Cosmos\" | \"Ethereum\" | \"Solana\" | \"Unknown\")",
|
|
5784
|
+
value: input.chain
|
|
5785
|
+
}), "string" === typeof input.address || $report(_exceptionable, {
|
|
5786
|
+
path: _path + ".address",
|
|
5787
|
+
expected: "string",
|
|
5788
|
+
value: input.address
|
|
5789
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
5742
5790
|
if (false === __is(input)) {
|
|
5743
5791
|
errors = [];
|
|
5744
5792
|
$report = typia.validate.report(errors);
|
|
5745
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input
|
|
5793
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
5746
5794
|
path: _path + "",
|
|
5747
|
-
expected: "
|
|
5795
|
+
expected: "GetSignInChallengePayload",
|
|
5748
5796
|
value: input
|
|
5749
5797
|
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
5750
5798
|
path: _path + "",
|
|
5751
|
-
expected: "
|
|
5799
|
+
expected: "GetSignInChallengePayload",
|
|
5752
5800
|
value: input
|
|
5753
5801
|
}))(input, "$input", true);
|
|
5754
5802
|
const success = 0 === errors.length;
|
|
@@ -5767,86 +5815,283 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5767
5815
|
if (!validateRes.success) {
|
|
5768
5816
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5769
5817
|
}
|
|
5770
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.
|
|
5771
|
-
return new
|
|
5818
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetSignInChallengeRoute()}`, payload);
|
|
5819
|
+
return new GetSignInChallengeSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
5772
5820
|
}
|
|
5773
5821
|
catch (error) {
|
|
5774
5822
|
await this.handleApiError(error);
|
|
5775
5823
|
return Promise.reject(error);
|
|
5776
5824
|
}
|
|
5777
5825
|
}
|
|
5778
|
-
async
|
|
5826
|
+
async verifySignIn(payload) {
|
|
5779
5827
|
try {
|
|
5780
|
-
const validateRes = (() => { const $io0 = input => "string" === typeof input.
|
|
5781
|
-
path: _path + ".
|
|
5782
|
-
expected: "string",
|
|
5783
|
-
value: input.pluginId
|
|
5784
|
-
}), undefined === input.inviteCode || "string" === typeof input.inviteCode || $report(_exceptionable, {
|
|
5785
|
-
path: _path + ".inviteCode",
|
|
5786
|
-
expected: "(string | undefined)",
|
|
5787
|
-
value: input.inviteCode
|
|
5788
|
-
}), ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
5789
|
-
path: _path + ".metadata",
|
|
5790
|
-
expected: "__type",
|
|
5791
|
-
value: input.metadata
|
|
5792
|
-
})) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
5793
|
-
path: _path + ".metadata",
|
|
5794
|
-
expected: "__type",
|
|
5795
|
-
value: input.metadata
|
|
5796
|
-
}), "boolean" === typeof input.toPublish || $report(_exceptionable, {
|
|
5797
|
-
path: _path + ".toPublish",
|
|
5798
|
-
expected: "boolean",
|
|
5799
|
-
value: input.toPublish
|
|
5800
|
-
}), undefined === input.approvedUsers || (Array.isArray(input.approvedUsers) || $report(_exceptionable, {
|
|
5801
|
-
path: _path + ".approvedUsers",
|
|
5802
|
-
expected: "(Array<string> | undefined)",
|
|
5803
|
-
value: input.approvedUsers
|
|
5804
|
-
})) && input.approvedUsers.map((elem, _index7) => "string" === typeof elem || $report(_exceptionable, {
|
|
5805
|
-
path: _path + ".approvedUsers[" + _index7 + "]",
|
|
5806
|
-
expected: "string",
|
|
5807
|
-
value: elem
|
|
5808
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
5809
|
-
path: _path + ".approvedUsers",
|
|
5810
|
-
expected: "(Array<string> | undefined)",
|
|
5811
|
-
value: input.approvedUsers
|
|
5812
|
-
}), ("object" === typeof input.initialVersion && null !== input.initialVersion || $report(_exceptionable, {
|
|
5813
|
-
path: _path + ".initialVersion",
|
|
5814
|
-
expected: "PluginVersionConfigPayload",
|
|
5815
|
-
value: input.initialVersion
|
|
5816
|
-
})) && $vo2(input.initialVersion, _path + ".initialVersion", true && _exceptionable) || $report(_exceptionable, {
|
|
5817
|
-
path: _path + ".initialVersion",
|
|
5818
|
-
expected: "PluginVersionConfigPayload",
|
|
5819
|
-
value: input.initialVersion
|
|
5820
|
-
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
5821
|
-
path: _path + ".name",
|
|
5822
|
-
expected: "string",
|
|
5823
|
-
value: input.name
|
|
5824
|
-
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
5825
|
-
path: _path + ".description",
|
|
5828
|
+
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, {
|
|
5829
|
+
path: _path + ".message",
|
|
5826
5830
|
expected: "string",
|
|
5827
|
-
value: input.
|
|
5828
|
-
}), "string" === typeof input.
|
|
5829
|
-
path: _path + ".
|
|
5831
|
+
value: input.message
|
|
5832
|
+
}), "string" === typeof input.signature || $report(_exceptionable, {
|
|
5833
|
+
path: _path + ".signature",
|
|
5830
5834
|
expected: "string",
|
|
5831
|
-
value: input.
|
|
5832
|
-
}), undefined === input.
|
|
5833
|
-
path: _path + ".
|
|
5835
|
+
value: input.signature
|
|
5836
|
+
}), undefined === input.altSigner || "string" === typeof input.altSigner || $report(_exceptionable, {
|
|
5837
|
+
path: _path + ".altSigner",
|
|
5834
5838
|
expected: "(string | undefined)",
|
|
5835
|
-
value: input.
|
|
5836
|
-
}), undefined === input.
|
|
5837
|
-
path: _path + ".
|
|
5839
|
+
value: input.altSigner
|
|
5840
|
+
}), undefined === input.socialSignIn || "string" === typeof input.socialSignIn || $report(_exceptionable, {
|
|
5841
|
+
path: _path + ".socialSignIn",
|
|
5838
5842
|
expected: "(string | undefined)",
|
|
5839
|
-
value: input.
|
|
5840
|
-
}), undefined === input.
|
|
5841
|
-
path: _path + ".
|
|
5843
|
+
value: input.socialSignIn
|
|
5844
|
+
}), undefined === input.password || "string" === typeof input.password || $report(_exceptionable, {
|
|
5845
|
+
path: _path + ".password",
|
|
5842
5846
|
expected: "(string | undefined)",
|
|
5843
|
-
value: input.
|
|
5844
|
-
}), undefined === input.
|
|
5845
|
-
path: _path + ".
|
|
5847
|
+
value: input.password
|
|
5848
|
+
}), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
|
|
5849
|
+
path: _path + ".publicKey",
|
|
5846
5850
|
expected: "(string | undefined)",
|
|
5847
|
-
value: input.
|
|
5848
|
-
})
|
|
5849
|
-
|
|
5851
|
+
value: input.publicKey
|
|
5852
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
5853
|
+
if (false === __is(input)) {
|
|
5854
|
+
errors = [];
|
|
5855
|
+
$report = typia.validate.report(errors);
|
|
5856
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
5857
|
+
path: _path + "",
|
|
5858
|
+
expected: "VerifySignInPayload",
|
|
5859
|
+
value: input
|
|
5860
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
5861
|
+
path: _path + "",
|
|
5862
|
+
expected: "VerifySignInPayload",
|
|
5863
|
+
value: input
|
|
5864
|
+
}))(input, "$input", true);
|
|
5865
|
+
const success = 0 === errors.length;
|
|
5866
|
+
return {
|
|
5867
|
+
success,
|
|
5868
|
+
errors,
|
|
5869
|
+
data: success ? input : undefined
|
|
5870
|
+
};
|
|
5871
|
+
}
|
|
5872
|
+
return {
|
|
5873
|
+
success: true,
|
|
5874
|
+
errors: [],
|
|
5875
|
+
data: input
|
|
5876
|
+
};
|
|
5877
|
+
}; })()(payload ?? {});
|
|
5878
|
+
if (!validateRes.success) {
|
|
5879
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5880
|
+
}
|
|
5881
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.VerifySignInRoute()}`, payload);
|
|
5882
|
+
return new VerifySignInSuccessResponse(response.data);
|
|
5883
|
+
}
|
|
5884
|
+
catch (error) {
|
|
5885
|
+
await this.handleApiError(error);
|
|
5886
|
+
return Promise.reject(error);
|
|
5887
|
+
}
|
|
5888
|
+
}
|
|
5889
|
+
async signOut(payload) {
|
|
5890
|
+
try {
|
|
5891
|
+
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, {
|
|
5892
|
+
path: _path + ".signOutBlockin",
|
|
5893
|
+
expected: "boolean",
|
|
5894
|
+
value: input.signOutBlockin
|
|
5895
|
+
}), undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord || $report(_exceptionable, {
|
|
5896
|
+
path: _path + ".signOutDiscord",
|
|
5897
|
+
expected: "(boolean | undefined)",
|
|
5898
|
+
value: input.signOutDiscord
|
|
5899
|
+
}), undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter || $report(_exceptionable, {
|
|
5900
|
+
path: _path + ".signOutTwitter",
|
|
5901
|
+
expected: "(boolean | undefined)",
|
|
5902
|
+
value: input.signOutTwitter
|
|
5903
|
+
}), undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle || $report(_exceptionable, {
|
|
5904
|
+
path: _path + ".signOutGoogle",
|
|
5905
|
+
expected: "(boolean | undefined)",
|
|
5906
|
+
value: input.signOutGoogle
|
|
5907
|
+
}), undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub || $report(_exceptionable, {
|
|
5908
|
+
path: _path + ".signOutGithub",
|
|
5909
|
+
expected: "(boolean | undefined)",
|
|
5910
|
+
value: input.signOutGithub
|
|
5911
|
+
}), undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch || $report(_exceptionable, {
|
|
5912
|
+
path: _path + ".signOutTwitch",
|
|
5913
|
+
expected: "(boolean | undefined)",
|
|
5914
|
+
value: input.signOutTwitch
|
|
5915
|
+
}), undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava || $report(_exceptionable, {
|
|
5916
|
+
path: _path + ".signOutStrava",
|
|
5917
|
+
expected: "(boolean | undefined)",
|
|
5918
|
+
value: input.signOutStrava
|
|
5919
|
+
}), undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube || $report(_exceptionable, {
|
|
5920
|
+
path: _path + ".signOutYoutube",
|
|
5921
|
+
expected: "(boolean | undefined)",
|
|
5922
|
+
value: input.signOutYoutube
|
|
5923
|
+
}), undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit || $report(_exceptionable, {
|
|
5924
|
+
path: _path + ".signOutReddit",
|
|
5925
|
+
expected: "(boolean | undefined)",
|
|
5926
|
+
value: input.signOutReddit
|
|
5927
|
+
}), undefined === input.signOutTelegram || "boolean" === typeof input.signOutTelegram || $report(_exceptionable, {
|
|
5928
|
+
path: _path + ".signOutTelegram",
|
|
5929
|
+
expected: "(boolean | undefined)",
|
|
5930
|
+
value: input.signOutTelegram
|
|
5931
|
+
}), undefined === input.signOutFarcaster || "boolean" === typeof input.signOutFarcaster || $report(_exceptionable, {
|
|
5932
|
+
path: _path + ".signOutFarcaster",
|
|
5933
|
+
expected: "(boolean | undefined)",
|
|
5934
|
+
value: input.signOutFarcaster
|
|
5935
|
+
}), undefined === input.signOutSlack || "boolean" === typeof input.signOutSlack || $report(_exceptionable, {
|
|
5936
|
+
path: _path + ".signOutSlack",
|
|
5937
|
+
expected: "(boolean | undefined)",
|
|
5938
|
+
value: input.signOutSlack
|
|
5939
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
5940
|
+
if (false === __is(input)) {
|
|
5941
|
+
errors = [];
|
|
5942
|
+
$report = typia.validate.report(errors);
|
|
5943
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
5944
|
+
path: _path + "",
|
|
5945
|
+
expected: "SignOutPayload",
|
|
5946
|
+
value: input
|
|
5947
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
5948
|
+
path: _path + "",
|
|
5949
|
+
expected: "SignOutPayload",
|
|
5950
|
+
value: input
|
|
5951
|
+
}))(input, "$input", true);
|
|
5952
|
+
const success = 0 === errors.length;
|
|
5953
|
+
return {
|
|
5954
|
+
success,
|
|
5955
|
+
errors,
|
|
5956
|
+
data: success ? input : undefined
|
|
5957
|
+
};
|
|
5958
|
+
}
|
|
5959
|
+
return {
|
|
5960
|
+
success: true,
|
|
5961
|
+
errors: [],
|
|
5962
|
+
data: input
|
|
5963
|
+
};
|
|
5964
|
+
}; })()(payload ?? {});
|
|
5965
|
+
if (!validateRes.success) {
|
|
5966
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5967
|
+
}
|
|
5968
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SignOutRoute()}`, payload);
|
|
5969
|
+
return new SignOutSuccessResponse(response.data);
|
|
5970
|
+
}
|
|
5971
|
+
catch (error) {
|
|
5972
|
+
await this.handleApiError(error);
|
|
5973
|
+
return Promise.reject(error);
|
|
5974
|
+
}
|
|
5975
|
+
}
|
|
5976
|
+
async updateUserSeenActivity() {
|
|
5977
|
+
return await this.updateAccountInfo({ seenActivity: Date.now() });
|
|
5978
|
+
}
|
|
5979
|
+
}
|
|
5980
|
+
export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
5981
|
+
constructor(apiDetails) {
|
|
5982
|
+
super(apiDetails);
|
|
5983
|
+
}
|
|
5984
|
+
async getActiveAuthorizations(payload) {
|
|
5985
|
+
try {
|
|
5986
|
+
const validateRes = (() => { const $io0 = input => true; const $vo0 = (input, _path, _exceptionable = true) => true; const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
|
|
5987
|
+
if (false === __is(input)) {
|
|
5988
|
+
errors = [];
|
|
5989
|
+
$report = typia.validate.report(errors);
|
|
5990
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
5991
|
+
path: _path + "",
|
|
5992
|
+
expected: "GetActiveAuthorizationsPayload",
|
|
5993
|
+
value: input
|
|
5994
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
5995
|
+
path: _path + "",
|
|
5996
|
+
expected: "GetActiveAuthorizationsPayload",
|
|
5997
|
+
value: input
|
|
5998
|
+
}))(input, "$input", true);
|
|
5999
|
+
const success = 0 === errors.length;
|
|
6000
|
+
return {
|
|
6001
|
+
success,
|
|
6002
|
+
errors,
|
|
6003
|
+
data: success ? input : undefined
|
|
6004
|
+
};
|
|
6005
|
+
}
|
|
6006
|
+
return {
|
|
6007
|
+
success: true,
|
|
6008
|
+
errors: [],
|
|
6009
|
+
data: input
|
|
6010
|
+
};
|
|
6011
|
+
}; })()(payload ?? {});
|
|
6012
|
+
if (!validateRes.success) {
|
|
6013
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6014
|
+
}
|
|
6015
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetActiveAuthorizationsRoute()}`, payload);
|
|
6016
|
+
return new GetActiveAuthorizationsSuccessResponse(response.data);
|
|
6017
|
+
}
|
|
6018
|
+
catch (error) {
|
|
6019
|
+
await this.handleApiError(error);
|
|
6020
|
+
return Promise.reject(error);
|
|
6021
|
+
}
|
|
6022
|
+
}
|
|
6023
|
+
async createPlugin(payload) {
|
|
6024
|
+
try {
|
|
6025
|
+
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.parentApp || "string" === typeof input.parentApp) && (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 || "ClaimNumbers" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && (undefined === input.skipProcessingWebhook || "boolean" === typeof input.skipProcessingWebhook) && (undefined === input.ignoreSimulations || "boolean" === typeof input.ignoreSimulations) && "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 && $io4(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 && $io4(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(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" === typeof 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 => (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) && (undefined === input.passTelegram || "boolean" === typeof input.passTelegram) && (undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster) && (undefined === input.passSlack || "boolean" === typeof input.passSlack) && "string" === typeof input.postProcessingJs; const $io9 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
|
|
6026
|
+
path: _path + ".pluginId",
|
|
6027
|
+
expected: "string",
|
|
6028
|
+
value: input.pluginId
|
|
6029
|
+
}), undefined === input.inviteCode || "string" === typeof input.inviteCode || $report(_exceptionable, {
|
|
6030
|
+
path: _path + ".inviteCode",
|
|
6031
|
+
expected: "(string | undefined)",
|
|
6032
|
+
value: input.inviteCode
|
|
6033
|
+
}), ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6034
|
+
path: _path + ".metadata",
|
|
6035
|
+
expected: "__type",
|
|
6036
|
+
value: input.metadata
|
|
6037
|
+
})) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
6038
|
+
path: _path + ".metadata",
|
|
6039
|
+
expected: "__type",
|
|
6040
|
+
value: input.metadata
|
|
6041
|
+
}), "boolean" === typeof input.toPublish || $report(_exceptionable, {
|
|
6042
|
+
path: _path + ".toPublish",
|
|
6043
|
+
expected: "boolean",
|
|
6044
|
+
value: input.toPublish
|
|
6045
|
+
}), undefined === input.approvedUsers || (Array.isArray(input.approvedUsers) || $report(_exceptionable, {
|
|
6046
|
+
path: _path + ".approvedUsers",
|
|
6047
|
+
expected: "(Array<string> | undefined)",
|
|
6048
|
+
value: input.approvedUsers
|
|
6049
|
+
})) && input.approvedUsers.map((elem, _index7) => "string" === typeof elem || $report(_exceptionable, {
|
|
6050
|
+
path: _path + ".approvedUsers[" + _index7 + "]",
|
|
6051
|
+
expected: "string",
|
|
6052
|
+
value: elem
|
|
6053
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6054
|
+
path: _path + ".approvedUsers",
|
|
6055
|
+
expected: "(Array<string> | undefined)",
|
|
6056
|
+
value: input.approvedUsers
|
|
6057
|
+
}), ("object" === typeof input.initialVersion && null !== input.initialVersion || $report(_exceptionable, {
|
|
6058
|
+
path: _path + ".initialVersion",
|
|
6059
|
+
expected: "PluginVersionConfigPayload",
|
|
6060
|
+
value: input.initialVersion
|
|
6061
|
+
})) && $vo2(input.initialVersion, _path + ".initialVersion", true && _exceptionable) || $report(_exceptionable, {
|
|
6062
|
+
path: _path + ".initialVersion",
|
|
6063
|
+
expected: "PluginVersionConfigPayload",
|
|
6064
|
+
value: input.initialVersion
|
|
6065
|
+
})].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
6066
|
+
path: _path + ".name",
|
|
6067
|
+
expected: "string",
|
|
6068
|
+
value: input.name
|
|
6069
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
6070
|
+
path: _path + ".description",
|
|
6071
|
+
expected: "string",
|
|
6072
|
+
value: input.description
|
|
6073
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
6074
|
+
path: _path + ".image",
|
|
6075
|
+
expected: "string",
|
|
6076
|
+
value: input.image
|
|
6077
|
+
}), undefined === input.documentation || "string" === typeof input.documentation || $report(_exceptionable, {
|
|
6078
|
+
path: _path + ".documentation",
|
|
6079
|
+
expected: "(string | undefined)",
|
|
6080
|
+
value: input.documentation
|
|
6081
|
+
}), undefined === input.parentApp || "string" === typeof input.parentApp || $report(_exceptionable, {
|
|
6082
|
+
path: _path + ".parentApp",
|
|
6083
|
+
expected: "(string | undefined)",
|
|
6084
|
+
value: input.parentApp
|
|
6085
|
+
}), undefined === input.sourceCode || "string" === typeof input.sourceCode || $report(_exceptionable, {
|
|
6086
|
+
path: _path + ".sourceCode",
|
|
6087
|
+
expected: "(string | undefined)",
|
|
6088
|
+
value: input.sourceCode
|
|
6089
|
+
}), undefined === input.supportLink || "string" === typeof input.supportLink || $report(_exceptionable, {
|
|
6090
|
+
path: _path + ".supportLink",
|
|
6091
|
+
expected: "(string | undefined)",
|
|
6092
|
+
value: input.supportLink
|
|
6093
|
+
}), "string" === typeof input.createdBy || $report(_exceptionable, {
|
|
6094
|
+
path: _path + ".createdBy",
|
|
5850
6095
|
expected: "string",
|
|
5851
6096
|
value: input.createdBy
|
|
5852
6097
|
})].every(flag => flag); const $vo2 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.finalized || $report(_exceptionable, {
|
|
@@ -7224,8 +7469,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7224
7469
|
if (undefined === value)
|
|
7225
7470
|
return true;
|
|
7226
7471
|
return "string" === typeof value;
|
|
7227
|
-
}); const $io3 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io4 = input => "string" === typeof input.type && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io5 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io6 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs); const $io7 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs); const $io8 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io9 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io10(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io11(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode); const $io10 = input => true; const $io11 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io12(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true); const $io12 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@
|
|
7228
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
7472
|
+
}); const $io3 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io4 = input => "string" === typeof input.type && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io5 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io6 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs); const $io7 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs); const $io8 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io9 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io10(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io11(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode); const $io10 = input => true; const $io11 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io12(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true); const $io12 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@87"] && Object.keys(input).every(key => {
|
|
7473
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@87"].some(prop => key === prop))
|
|
7229
7474
|
return true;
|
|
7230
7475
|
const value = input[key];
|
|
7231
7476
|
if (undefined === value)
|
|
@@ -7599,12 +7844,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7599
7844
|
path: _path + ".length",
|
|
7600
7845
|
expected: "number",
|
|
7601
7846
|
value: input.length
|
|
7602
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
7603
|
-
path: _path + "[\"__@toStringTag@
|
|
7847
|
+
}), "Uint8Array" === input["__@toStringTag@87"] || $report(_exceptionable, {
|
|
7848
|
+
path: _path + "[\"__@toStringTag@87\"]",
|
|
7604
7849
|
expected: "\"Uint8Array\"",
|
|
7605
|
-
value: input["__@toStringTag@
|
|
7850
|
+
value: input["__@toStringTag@87"]
|
|
7606
7851
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
7607
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
7852
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@87"].some(prop => key === prop))
|
|
7608
7853
|
return true;
|
|
7609
7854
|
const value = input[key];
|
|
7610
7855
|
if (undefined === value)
|
|
@@ -7664,8 +7909,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7664
7909
|
}
|
|
7665
7910
|
async addApprovalDetailsToOffChainStorage(payload) {
|
|
7666
7911
|
try {
|
|
7667
|
-
const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Array.isArray(input.approvalDetails) && input.approvalDetails.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.challengeInfoDetails || Array.isArray(input.challengeInfoDetails) && input.challengeInfoDetails.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); const $io2 = input => "object" === typeof input.challengeDetails && null !== input.challengeDetails && $io3(input.challengeDetails) && (undefined === input.claim || "object" === typeof input.claim && null !== input.claim && $io7(input.claim)); const $io3 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io4(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io5(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode); const $io4 = input => true; const $io5 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io6(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true); const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@
|
|
7668
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
7912
|
+
const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Array.isArray(input.approvalDetails) && input.approvalDetails.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.challengeInfoDetails || Array.isArray(input.challengeInfoDetails) && input.challengeInfoDetails.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); const $io2 = input => "object" === typeof input.challengeDetails && null !== input.challengeDetails && $io3(input.challengeDetails) && (undefined === input.claim || "object" === typeof input.claim && null !== input.claim && $io7(input.claim)); const $io3 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io4(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io5(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode); const $io4 = input => true; const $io5 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io6(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true); const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@87"] && Object.keys(input).every(key => {
|
|
7913
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@87"].some(prop => key === prop))
|
|
7669
7914
|
return true;
|
|
7670
7915
|
const value = input[key];
|
|
7671
7916
|
if (undefined === value)
|
|
@@ -7868,12 +8113,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7868
8113
|
path: _path + ".length",
|
|
7869
8114
|
expected: "number",
|
|
7870
8115
|
value: input.length
|
|
7871
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
7872
|
-
path: _path + "[\"__@toStringTag@
|
|
8116
|
+
}), "Uint8Array" === input["__@toStringTag@87"] || $report(_exceptionable, {
|
|
8117
|
+
path: _path + "[\"__@toStringTag@87\"]",
|
|
7873
8118
|
expected: "\"Uint8Array\"",
|
|
7874
|
-
value: input["__@toStringTag@
|
|
8119
|
+
value: input["__@toStringTag@87"]
|
|
7875
8120
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
7876
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
8121
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@87"].some(prop => key === prop))
|
|
7877
8122
|
return true;
|
|
7878
8123
|
const value = input[key];
|
|
7879
8124
|
if (undefined === value)
|
|
@@ -8549,199 +8794,6 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
8549
8794
|
return Promise.reject(error);
|
|
8550
8795
|
}
|
|
8551
8796
|
}
|
|
8552
|
-
async getSignInChallenge(payload) {
|
|
8553
|
-
try {
|
|
8554
|
-
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, {
|
|
8555
|
-
path: _path + ".chain",
|
|
8556
|
-
expected: "(\"Bitcoin\" | \"Cosmos\" | \"Ethereum\" | \"Solana\" | \"Unknown\")",
|
|
8557
|
-
value: input.chain
|
|
8558
|
-
}), "string" === typeof input.address || $report(_exceptionable, {
|
|
8559
|
-
path: _path + ".address",
|
|
8560
|
-
expected: "string",
|
|
8561
|
-
value: input.address
|
|
8562
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
8563
|
-
if (false === __is(input)) {
|
|
8564
|
-
errors = [];
|
|
8565
|
-
$report = typia.validate.report(errors);
|
|
8566
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
8567
|
-
path: _path + "",
|
|
8568
|
-
expected: "GetSignInChallengePayload",
|
|
8569
|
-
value: input
|
|
8570
|
-
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8571
|
-
path: _path + "",
|
|
8572
|
-
expected: "GetSignInChallengePayload",
|
|
8573
|
-
value: input
|
|
8574
|
-
}))(input, "$input", true);
|
|
8575
|
-
const success = 0 === errors.length;
|
|
8576
|
-
return {
|
|
8577
|
-
success,
|
|
8578
|
-
errors,
|
|
8579
|
-
data: success ? input : undefined
|
|
8580
|
-
};
|
|
8581
|
-
}
|
|
8582
|
-
return {
|
|
8583
|
-
success: true,
|
|
8584
|
-
errors: [],
|
|
8585
|
-
data: input
|
|
8586
|
-
};
|
|
8587
|
-
}; })()(payload ?? {});
|
|
8588
|
-
if (!validateRes.success) {
|
|
8589
|
-
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
8590
|
-
}
|
|
8591
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetSignInChallengeRoute()}`, payload);
|
|
8592
|
-
return new GetSignInChallengeSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
8593
|
-
}
|
|
8594
|
-
catch (error) {
|
|
8595
|
-
await this.handleApiError(error);
|
|
8596
|
-
return Promise.reject(error);
|
|
8597
|
-
}
|
|
8598
|
-
}
|
|
8599
|
-
async verifySignIn(payload) {
|
|
8600
|
-
try {
|
|
8601
|
-
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, {
|
|
8602
|
-
path: _path + ".message",
|
|
8603
|
-
expected: "string",
|
|
8604
|
-
value: input.message
|
|
8605
|
-
}), "string" === typeof input.signature || $report(_exceptionable, {
|
|
8606
|
-
path: _path + ".signature",
|
|
8607
|
-
expected: "string",
|
|
8608
|
-
value: input.signature
|
|
8609
|
-
}), undefined === input.altSigner || "string" === typeof input.altSigner || $report(_exceptionable, {
|
|
8610
|
-
path: _path + ".altSigner",
|
|
8611
|
-
expected: "(string | undefined)",
|
|
8612
|
-
value: input.altSigner
|
|
8613
|
-
}), undefined === input.socialSignIn || "string" === typeof input.socialSignIn || $report(_exceptionable, {
|
|
8614
|
-
path: _path + ".socialSignIn",
|
|
8615
|
-
expected: "(string | undefined)",
|
|
8616
|
-
value: input.socialSignIn
|
|
8617
|
-
}), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
|
|
8618
|
-
path: _path + ".publicKey",
|
|
8619
|
-
expected: "(string | undefined)",
|
|
8620
|
-
value: input.publicKey
|
|
8621
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
8622
|
-
if (false === __is(input)) {
|
|
8623
|
-
errors = [];
|
|
8624
|
-
$report = typia.validate.report(errors);
|
|
8625
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
8626
|
-
path: _path + "",
|
|
8627
|
-
expected: "VerifySignInPayload",
|
|
8628
|
-
value: input
|
|
8629
|
-
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8630
|
-
path: _path + "",
|
|
8631
|
-
expected: "VerifySignInPayload",
|
|
8632
|
-
value: input
|
|
8633
|
-
}))(input, "$input", true);
|
|
8634
|
-
const success = 0 === errors.length;
|
|
8635
|
-
return {
|
|
8636
|
-
success,
|
|
8637
|
-
errors,
|
|
8638
|
-
data: success ? input : undefined
|
|
8639
|
-
};
|
|
8640
|
-
}
|
|
8641
|
-
return {
|
|
8642
|
-
success: true,
|
|
8643
|
-
errors: [],
|
|
8644
|
-
data: input
|
|
8645
|
-
};
|
|
8646
|
-
}; })()(payload ?? {});
|
|
8647
|
-
if (!validateRes.success) {
|
|
8648
|
-
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
8649
|
-
}
|
|
8650
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.VerifySignInRoute()}`, payload);
|
|
8651
|
-
return new VerifySignInSuccessResponse(response.data);
|
|
8652
|
-
}
|
|
8653
|
-
catch (error) {
|
|
8654
|
-
await this.handleApiError(error);
|
|
8655
|
-
return Promise.reject(error);
|
|
8656
|
-
}
|
|
8657
|
-
}
|
|
8658
|
-
async signOut(payload) {
|
|
8659
|
-
try {
|
|
8660
|
-
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, {
|
|
8661
|
-
path: _path + ".signOutBlockin",
|
|
8662
|
-
expected: "boolean",
|
|
8663
|
-
value: input.signOutBlockin
|
|
8664
|
-
}), undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord || $report(_exceptionable, {
|
|
8665
|
-
path: _path + ".signOutDiscord",
|
|
8666
|
-
expected: "(boolean | undefined)",
|
|
8667
|
-
value: input.signOutDiscord
|
|
8668
|
-
}), undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter || $report(_exceptionable, {
|
|
8669
|
-
path: _path + ".signOutTwitter",
|
|
8670
|
-
expected: "(boolean | undefined)",
|
|
8671
|
-
value: input.signOutTwitter
|
|
8672
|
-
}), undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle || $report(_exceptionable, {
|
|
8673
|
-
path: _path + ".signOutGoogle",
|
|
8674
|
-
expected: "(boolean | undefined)",
|
|
8675
|
-
value: input.signOutGoogle
|
|
8676
|
-
}), undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub || $report(_exceptionable, {
|
|
8677
|
-
path: _path + ".signOutGithub",
|
|
8678
|
-
expected: "(boolean | undefined)",
|
|
8679
|
-
value: input.signOutGithub
|
|
8680
|
-
}), undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch || $report(_exceptionable, {
|
|
8681
|
-
path: _path + ".signOutTwitch",
|
|
8682
|
-
expected: "(boolean | undefined)",
|
|
8683
|
-
value: input.signOutTwitch
|
|
8684
|
-
}), undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava || $report(_exceptionable, {
|
|
8685
|
-
path: _path + ".signOutStrava",
|
|
8686
|
-
expected: "(boolean | undefined)",
|
|
8687
|
-
value: input.signOutStrava
|
|
8688
|
-
}), undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube || $report(_exceptionable, {
|
|
8689
|
-
path: _path + ".signOutYoutube",
|
|
8690
|
-
expected: "(boolean | undefined)",
|
|
8691
|
-
value: input.signOutYoutube
|
|
8692
|
-
}), undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit || $report(_exceptionable, {
|
|
8693
|
-
path: _path + ".signOutReddit",
|
|
8694
|
-
expected: "(boolean | undefined)",
|
|
8695
|
-
value: input.signOutReddit
|
|
8696
|
-
}), undefined === input.signOutTelegram || "boolean" === typeof input.signOutTelegram || $report(_exceptionable, {
|
|
8697
|
-
path: _path + ".signOutTelegram",
|
|
8698
|
-
expected: "(boolean | undefined)",
|
|
8699
|
-
value: input.signOutTelegram
|
|
8700
|
-
}), undefined === input.signOutFarcaster || "boolean" === typeof input.signOutFarcaster || $report(_exceptionable, {
|
|
8701
|
-
path: _path + ".signOutFarcaster",
|
|
8702
|
-
expected: "(boolean | undefined)",
|
|
8703
|
-
value: input.signOutFarcaster
|
|
8704
|
-
}), undefined === input.signOutSlack || "boolean" === typeof input.signOutSlack || $report(_exceptionable, {
|
|
8705
|
-
path: _path + ".signOutSlack",
|
|
8706
|
-
expected: "(boolean | undefined)",
|
|
8707
|
-
value: input.signOutSlack
|
|
8708
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
|
|
8709
|
-
if (false === __is(input)) {
|
|
8710
|
-
errors = [];
|
|
8711
|
-
$report = typia.validate.report(errors);
|
|
8712
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
8713
|
-
path: _path + "",
|
|
8714
|
-
expected: "SignOutPayload",
|
|
8715
|
-
value: input
|
|
8716
|
-
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
8717
|
-
path: _path + "",
|
|
8718
|
-
expected: "SignOutPayload",
|
|
8719
|
-
value: input
|
|
8720
|
-
}))(input, "$input", true);
|
|
8721
|
-
const success = 0 === errors.length;
|
|
8722
|
-
return {
|
|
8723
|
-
success,
|
|
8724
|
-
errors,
|
|
8725
|
-
data: success ? input : undefined
|
|
8726
|
-
};
|
|
8727
|
-
}
|
|
8728
|
-
return {
|
|
8729
|
-
success: true,
|
|
8730
|
-
errors: [],
|
|
8731
|
-
data: input
|
|
8732
|
-
};
|
|
8733
|
-
}; })()(payload ?? {});
|
|
8734
|
-
if (!validateRes.success) {
|
|
8735
|
-
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
8736
|
-
}
|
|
8737
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SignOutRoute()}`, payload);
|
|
8738
|
-
return new SignOutSuccessResponse(response.data);
|
|
8739
|
-
}
|
|
8740
|
-
catch (error) {
|
|
8741
|
-
await this.handleApiError(error);
|
|
8742
|
-
return Promise.reject(error);
|
|
8743
|
-
}
|
|
8744
|
-
}
|
|
8745
8797
|
async createPaymentIntent(payload) {
|
|
8746
8798
|
try {
|
|
8747
8799
|
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CreatePaymentIntentRoute()}`, payload);
|