bitbadgesjs-sdk 0.5.13 → 0.5.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts +3 -3
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.js +357 -305
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.d.ts +5 -0
- package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.d.ts +5 -0
- package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.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/esm/api-indexer/BitBadgesApi.d.ts +3 -3
- package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.js +357 -305
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/docs/docs.d.ts +5 -0
- package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/docs.js.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.d.ts +5 -0
- package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.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/package.json +2 -2
|
@@ -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
|
|
@@ -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)",
|
|
@@ -5728,6 +5776,203 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5728
5776
|
return Promise.reject(error);
|
|
5729
5777
|
}
|
|
5730
5778
|
}
|
|
5779
|
+
async getSignInChallenge(payload) {
|
|
5780
|
+
try {
|
|
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 => {
|
|
5790
|
+
if (false === __is(input)) {
|
|
5791
|
+
errors = [];
|
|
5792
|
+
$report = typia.validate.report(errors);
|
|
5793
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
|
|
5794
|
+
path: _path + "",
|
|
5795
|
+
expected: "GetSignInChallengePayload",
|
|
5796
|
+
value: input
|
|
5797
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
5798
|
+
path: _path + "",
|
|
5799
|
+
expected: "GetSignInChallengePayload",
|
|
5800
|
+
value: input
|
|
5801
|
+
}))(input, "$input", true);
|
|
5802
|
+
const success = 0 === errors.length;
|
|
5803
|
+
return {
|
|
5804
|
+
success,
|
|
5805
|
+
errors,
|
|
5806
|
+
data: success ? input : undefined
|
|
5807
|
+
};
|
|
5808
|
+
}
|
|
5809
|
+
return {
|
|
5810
|
+
success: true,
|
|
5811
|
+
errors: [],
|
|
5812
|
+
data: input
|
|
5813
|
+
};
|
|
5814
|
+
}; })()(payload ?? {});
|
|
5815
|
+
if (!validateRes.success) {
|
|
5816
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5817
|
+
}
|
|
5818
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetSignInChallengeRoute()}`, payload);
|
|
5819
|
+
return new GetSignInChallengeSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
5820
|
+
}
|
|
5821
|
+
catch (error) {
|
|
5822
|
+
await this.handleApiError(error);
|
|
5823
|
+
return Promise.reject(error);
|
|
5824
|
+
}
|
|
5825
|
+
}
|
|
5826
|
+
async verifySignIn(payload) {
|
|
5827
|
+
try {
|
|
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",
|
|
5830
|
+
expected: "string",
|
|
5831
|
+
value: input.message
|
|
5832
|
+
}), "string" === typeof input.signature || $report(_exceptionable, {
|
|
5833
|
+
path: _path + ".signature",
|
|
5834
|
+
expected: "string",
|
|
5835
|
+
value: input.signature
|
|
5836
|
+
}), undefined === input.altSigner || "string" === typeof input.altSigner || $report(_exceptionable, {
|
|
5837
|
+
path: _path + ".altSigner",
|
|
5838
|
+
expected: "(string | undefined)",
|
|
5839
|
+
value: input.altSigner
|
|
5840
|
+
}), undefined === input.socialSignIn || "string" === typeof input.socialSignIn || $report(_exceptionable, {
|
|
5841
|
+
path: _path + ".socialSignIn",
|
|
5842
|
+
expected: "(string | undefined)",
|
|
5843
|
+
value: input.socialSignIn
|
|
5844
|
+
}), undefined === input.password || "string" === typeof input.password || $report(_exceptionable, {
|
|
5845
|
+
path: _path + ".password",
|
|
5846
|
+
expected: "(string | undefined)",
|
|
5847
|
+
value: input.password
|
|
5848
|
+
}), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
|
|
5849
|
+
path: _path + ".publicKey",
|
|
5850
|
+
expected: "(string | undefined)",
|
|
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
|
+
}
|
|
5731
5976
|
async updateUserSeenActivity() {
|
|
5732
5977
|
return await this.updateAccountInfo({ seenActivity: Date.now() });
|
|
5733
5978
|
}
|
|
@@ -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);
|