bitbadgesjs-sdk 0.5.13 → 0.5.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/dist/cjs/address-converter/converter.d.ts.map +1 -1
  2. package/dist/cjs/address-converter/converter.js +2 -3
  3. package/dist/cjs/address-converter/converter.js.map +1 -1
  4. package/dist/cjs/api-indexer/BitBadgesApi.d.ts +4 -4
  5. package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
  6. package/dist/cjs/api-indexer/BitBadgesApi.js +481 -429
  7. package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
  8. package/dist/cjs/api-indexer/docs/docs.d.ts +7 -3
  9. package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
  10. package/dist/cjs/api-indexer/docs/docs.js +2 -3
  11. package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
  12. package/dist/cjs/api-indexer/docs/interfaces.d.ts +7 -2
  13. package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
  14. package/dist/cjs/api-indexer/docs/interfaces.js +3 -3
  15. package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
  16. package/dist/cjs/api-indexer/metadata/badgeMetadata.d.ts +1 -1
  17. package/dist/cjs/api-indexer/metadata/badgeMetadata.d.ts.map +1 -1
  18. package/dist/cjs/api-indexer/metadata/badgeMetadata.js +26 -3
  19. package/dist/cjs/api-indexer/metadata/badgeMetadata.js.map +1 -1
  20. package/dist/cjs/api-indexer/metadata/metadataIds.js +3 -3
  21. package/dist/cjs/api-indexer/metadata/metadataIds.js.map +1 -1
  22. package/dist/cjs/api-indexer/requests/requests.d.ts +7 -0
  23. package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
  24. package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
  25. package/dist/cjs/api-indexer/requests/routes.d.ts +1 -1
  26. package/dist/cjs/api-indexer/requests/routes.d.ts.map +1 -1
  27. package/dist/cjs/attestations/attestations.d.ts.map +1 -0
  28. package/dist/cjs/attestations/attestations.js.map +1 -0
  29. package/dist/cjs/attestations/index.d.ts +2 -0
  30. package/dist/cjs/attestations/index.d.ts.map +1 -0
  31. package/dist/cjs/attestations/index.js +18 -0
  32. package/dist/cjs/attestations/index.js.map +1 -0
  33. package/dist/cjs/chain-drivers/BtcDriver.d.ts +2 -2
  34. package/dist/cjs/chain-drivers/BtcDriver.d.ts.map +1 -1
  35. package/dist/cjs/chain-drivers/CosmosDriver.d.ts +2 -2
  36. package/dist/cjs/chain-drivers/CosmosDriver.d.ts.map +1 -1
  37. package/dist/cjs/chain-drivers/EthDriver.d.ts +1 -1
  38. package/dist/cjs/chain-drivers/EthDriver.d.ts.map +1 -1
  39. package/dist/cjs/chain-drivers/SolDriver.d.ts +2 -2
  40. package/dist/cjs/chain-drivers/SolDriver.d.ts.map +1 -1
  41. package/dist/cjs/chain-drivers/verifySig.d.ts +2 -2
  42. package/dist/cjs/chain-drivers/verifySig.d.ts.map +1 -1
  43. package/dist/cjs/chain-drivers/verifySig.js +2 -2
  44. package/dist/cjs/chain-drivers/verifySig.js.map +1 -1
  45. package/dist/cjs/core/addressLists.d.ts +1 -1
  46. package/dist/cjs/core/addressLists.d.ts.map +1 -1
  47. package/dist/cjs/core/addressLists.js +4 -4
  48. package/dist/cjs/core/addressLists.js.map +1 -1
  49. package/dist/cjs/core/addressLists.spec.js +8 -8
  50. package/dist/cjs/core/addressLists.spec.js.map +1 -1
  51. package/dist/cjs/core/approvals.d.ts +25 -25
  52. package/dist/cjs/core/approvals.d.ts.map +1 -1
  53. package/dist/cjs/core/approvals.js +35 -35
  54. package/dist/cjs/core/approvals.js.map +1 -1
  55. package/dist/cjs/core/balances.d.ts +3 -3
  56. package/dist/cjs/core/balances.d.ts.map +1 -1
  57. package/dist/cjs/core/balances.js +4 -4
  58. package/dist/cjs/core/balances.js.map +1 -1
  59. package/dist/cjs/core/blockin.d.ts +1 -1
  60. package/dist/cjs/core/blockin.d.ts.map +1 -1
  61. package/dist/cjs/core/index.d.ts +0 -1
  62. package/dist/cjs/core/index.d.ts.map +1 -1
  63. package/dist/cjs/core/index.js +0 -1
  64. package/dist/cjs/core/index.js.map +1 -1
  65. package/dist/cjs/core/misc.d.ts +40 -40
  66. package/dist/cjs/core/misc.d.ts.map +1 -1
  67. package/dist/cjs/core/misc.js +55 -55
  68. package/dist/cjs/core/misc.js.map +1 -1
  69. package/dist/cjs/core/permissions.d.ts +1 -1
  70. package/dist/cjs/core/permissions.d.ts.map +1 -1
  71. package/dist/cjs/core/permissions.js +51 -28
  72. package/dist/cjs/core/permissions.js.map +1 -1
  73. package/dist/cjs/core/timelines.js +3 -3
  74. package/dist/cjs/core/timelines.js.map +1 -1
  75. package/dist/cjs/core/transfers.d.ts +4 -4
  76. package/dist/cjs/core/transfers.d.ts.map +1 -1
  77. package/dist/cjs/core/transfers.js +4 -4
  78. package/dist/cjs/core/transfers.js.map +1 -1
  79. package/dist/cjs/core/uintRanges.d.ts +3 -3
  80. package/dist/cjs/core/uintRanges.d.ts.map +1 -1
  81. package/dist/cjs/core/uintRanges.js +4 -4
  82. package/dist/cjs/core/uintRanges.js.map +1 -1
  83. package/dist/cjs/core/userBalances.d.ts +3 -3
  84. package/dist/cjs/core/userBalances.d.ts.map +1 -1
  85. package/dist/cjs/core/userBalances.js +2 -2
  86. package/dist/cjs/core/userBalances.js.map +1 -1
  87. package/dist/cjs/interfaces/index.d.ts +0 -1
  88. package/dist/cjs/interfaces/index.d.ts.map +1 -1
  89. package/dist/cjs/interfaces/index.js +0 -1
  90. package/dist/cjs/interfaces/index.js.map +1 -1
  91. package/dist/cjs/transactions/amino/objectConverter.js +5 -5
  92. package/dist/cjs/transactions/amino/objectConverter.js.map +1 -1
  93. package/dist/cjs/transactions/messages/base.d.ts.map +1 -1
  94. package/dist/cjs/transactions/messages/base.js +1 -1
  95. package/dist/cjs/transactions/messages/base.js.map +1 -1
  96. package/dist/cjs/transactions/messages/bitbadges/badges/interfaces.d.ts +1 -1
  97. package/dist/cjs/transactions/messages/bitbadges/badges/interfaces.d.ts.map +1 -1
  98. package/dist/cjs/transactions/messages/bitbadges/badges/msgUpdateCollection.d.ts.map +1 -1
  99. package/dist/cjs/transactions/messages/bitbadges/badges/msgUpdateCollection.js.map +1 -1
  100. package/dist/cjs/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.d.ts +1 -1
  101. package/dist/cjs/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.d.ts.map +1 -1
  102. package/dist/cjs/transactions/messages/bitbadges/maps/interfaces.d.ts +7 -3
  103. package/dist/cjs/transactions/messages/bitbadges/maps/interfaces.d.ts.map +1 -1
  104. package/dist/cjs/transactions/messages/bitbadges/maps/interfaces.js +29 -26
  105. package/dist/cjs/transactions/messages/bitbadges/maps/interfaces.js.map +1 -1
  106. package/dist/cjs/transactions/messages/common.d.ts +1 -1
  107. package/dist/cjs/transactions/messages/common.d.ts.map +1 -1
  108. package/dist/esm/address-converter/converter.d.ts.map +1 -1
  109. package/dist/esm/address-converter/converter.js +2 -3
  110. package/dist/esm/address-converter/converter.js.map +1 -1
  111. package/dist/esm/api-indexer/BitBadgesApi.d.ts +4 -4
  112. package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
  113. package/dist/esm/api-indexer/BitBadgesApi.js +481 -429
  114. package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
  115. package/dist/esm/api-indexer/docs/docs.d.ts +7 -3
  116. package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
  117. package/dist/esm/api-indexer/docs/docs.js +1 -2
  118. package/dist/esm/api-indexer/docs/docs.js.map +1 -1
  119. package/dist/esm/api-indexer/docs/interfaces.d.ts +7 -2
  120. package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
  121. package/dist/esm/api-indexer/docs/interfaces.js +1 -1
  122. package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
  123. package/dist/esm/api-indexer/metadata/badgeMetadata.d.ts +1 -1
  124. package/dist/esm/api-indexer/metadata/badgeMetadata.d.ts.map +1 -1
  125. package/dist/esm/api-indexer/metadata/badgeMetadata.js +1 -1
  126. package/dist/esm/api-indexer/metadata/badgeMetadata.js.map +1 -1
  127. package/dist/esm/api-indexer/metadata/metadataIds.js +1 -1
  128. package/dist/esm/api-indexer/metadata/metadataIds.js.map +1 -1
  129. package/dist/esm/api-indexer/requests/requests.d.ts +7 -0
  130. package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
  131. package/dist/esm/api-indexer/requests/requests.js.map +1 -1
  132. package/dist/esm/api-indexer/requests/routes.d.ts +1 -1
  133. package/dist/esm/api-indexer/requests/routes.d.ts.map +1 -1
  134. package/dist/esm/attestations/attestations.d.ts.map +1 -0
  135. package/dist/esm/attestations/attestations.js.map +1 -0
  136. package/dist/esm/attestations/index.d.ts +2 -0
  137. package/dist/esm/attestations/index.d.ts.map +1 -0
  138. package/dist/esm/attestations/index.js +2 -0
  139. package/dist/esm/attestations/index.js.map +1 -0
  140. package/dist/esm/chain-drivers/BtcDriver.d.ts +2 -2
  141. package/dist/esm/chain-drivers/BtcDriver.d.ts.map +1 -1
  142. package/dist/esm/chain-drivers/CosmosDriver.d.ts +2 -2
  143. package/dist/esm/chain-drivers/CosmosDriver.d.ts.map +1 -1
  144. package/dist/esm/chain-drivers/EthDriver.d.ts +1 -1
  145. package/dist/esm/chain-drivers/EthDriver.d.ts.map +1 -1
  146. package/dist/esm/chain-drivers/SolDriver.d.ts +2 -2
  147. package/dist/esm/chain-drivers/SolDriver.d.ts.map +1 -1
  148. package/dist/esm/chain-drivers/verifySig.d.ts +2 -2
  149. package/dist/esm/chain-drivers/verifySig.d.ts.map +1 -1
  150. package/dist/esm/chain-drivers/verifySig.js +1 -1
  151. package/dist/esm/chain-drivers/verifySig.js.map +1 -1
  152. package/dist/esm/core/addressLists.d.ts +1 -1
  153. package/dist/esm/core/addressLists.d.ts.map +1 -1
  154. package/dist/esm/core/addressLists.js +1 -1
  155. package/dist/esm/core/addressLists.js.map +1 -1
  156. package/dist/esm/core/addressLists.spec.js +8 -8
  157. package/dist/esm/core/addressLists.spec.js.map +1 -1
  158. package/dist/esm/core/approvals.d.ts +25 -25
  159. package/dist/esm/core/approvals.d.ts.map +1 -1
  160. package/dist/esm/core/approvals.js +35 -35
  161. package/dist/esm/core/approvals.js.map +1 -1
  162. package/dist/esm/core/balances.d.ts +3 -3
  163. package/dist/esm/core/balances.d.ts.map +1 -1
  164. package/dist/esm/core/balances.js +4 -4
  165. package/dist/esm/core/balances.js.map +1 -1
  166. package/dist/esm/core/blockin.d.ts +1 -1
  167. package/dist/esm/core/blockin.d.ts.map +1 -1
  168. package/dist/esm/core/index.d.ts +0 -1
  169. package/dist/esm/core/index.d.ts.map +1 -1
  170. package/dist/esm/core/index.js +0 -1
  171. package/dist/esm/core/index.js.map +1 -1
  172. package/dist/esm/core/misc.d.ts +40 -40
  173. package/dist/esm/core/misc.d.ts.map +1 -1
  174. package/dist/esm/core/misc.js +55 -55
  175. package/dist/esm/core/misc.js.map +1 -1
  176. package/dist/esm/core/permissions.d.ts +1 -1
  177. package/dist/esm/core/permissions.d.ts.map +1 -1
  178. package/dist/esm/core/permissions.js +1 -1
  179. package/dist/esm/core/permissions.js.map +1 -1
  180. package/dist/esm/core/timelines.js +1 -1
  181. package/dist/esm/core/timelines.js.map +1 -1
  182. package/dist/esm/core/transfers.d.ts +4 -4
  183. package/dist/esm/core/transfers.d.ts.map +1 -1
  184. package/dist/esm/core/transfers.js +4 -4
  185. package/dist/esm/core/transfers.js.map +1 -1
  186. package/dist/esm/core/uintRanges.d.ts +3 -3
  187. package/dist/esm/core/uintRanges.d.ts.map +1 -1
  188. package/dist/esm/core/uintRanges.js +4 -4
  189. package/dist/esm/core/uintRanges.js.map +1 -1
  190. package/dist/esm/core/userBalances.d.ts +3 -3
  191. package/dist/esm/core/userBalances.d.ts.map +1 -1
  192. package/dist/esm/core/userBalances.js +2 -2
  193. package/dist/esm/core/userBalances.js.map +1 -1
  194. package/dist/esm/interfaces/index.d.ts +0 -1
  195. package/dist/esm/interfaces/index.d.ts.map +1 -1
  196. package/dist/esm/interfaces/index.js +0 -1
  197. package/dist/esm/interfaces/index.js.map +1 -1
  198. package/dist/esm/transactions/amino/objectConverter.js +1 -1
  199. package/dist/esm/transactions/messages/base.d.ts.map +1 -1
  200. package/dist/esm/transactions/messages/base.js +1 -1
  201. package/dist/esm/transactions/messages/base.js.map +1 -1
  202. package/dist/esm/transactions/messages/bitbadges/badges/interfaces.d.ts +1 -1
  203. package/dist/esm/transactions/messages/bitbadges/badges/interfaces.d.ts.map +1 -1
  204. package/dist/esm/transactions/messages/bitbadges/badges/msgUpdateCollection.d.ts.map +1 -1
  205. package/dist/esm/transactions/messages/bitbadges/badges/msgUpdateCollection.js.map +1 -1
  206. package/dist/esm/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.d.ts +1 -1
  207. package/dist/esm/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.d.ts.map +1 -1
  208. package/dist/esm/transactions/messages/bitbadges/maps/interfaces.d.ts +7 -3
  209. package/dist/esm/transactions/messages/bitbadges/maps/interfaces.d.ts.map +1 -1
  210. package/dist/esm/transactions/messages/bitbadges/maps/interfaces.js +5 -2
  211. package/dist/esm/transactions/messages/bitbadges/maps/interfaces.js.map +1 -1
  212. package/dist/esm/transactions/messages/common.d.ts +1 -1
  213. package/dist/esm/transactions/messages/common.d.ts.map +1 -1
  214. package/package.json +6 -8
  215. package/dist/cjs/core/attestations.d.ts.map +0 -1
  216. package/dist/cjs/core/attestations.js.map +0 -1
  217. package/dist/esm/core/attestations.d.ts.map +0 -1
  218. package/dist/esm/core/attestations.js.map +0 -1
  219. /package/dist/cjs/{core → attestations}/attestations.d.ts +0 -0
  220. /package/dist/cjs/{core → attestations}/attestations.js +0 -0
  221. /package/dist/esm/{core → attestations}/attestations.d.ts +0 -0
  222. /package/dist/esm/{core → attestations}/attestations.js +0 -0
@@ -349,7 +349,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
349
349
  }
350
350
  async updateAccountInfo(payload) {
351
351
  try {
352
- const validateRes = (() => { const $io0 = input => (undefined === input.discord || "string" === typeof input.discord) && (undefined === input.twitter || "string" === typeof input.twitter) && (undefined === input.github || "string" === typeof input.github) && (undefined === input.telegram || "string" === typeof input.telegram) && (undefined === input.seenActivity || "string" === typeof input.seenActivity || "number" === typeof input.seenActivity || "bigint" === typeof input.seenActivity) && (undefined === input.readme || "string" === typeof input.readme) && (undefined === input.hiddenBadges || Array.isArray(input.hiddenBadges) && input.hiddenBadges.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.hiddenLists || Array.isArray(input.hiddenLists) && input.hiddenLists.every(elem => "string" === typeof elem)) && (undefined === input.customLinks || Array.isArray(input.customLinks) && input.customLinks.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.customPages || "object" === typeof input.customPages && null !== input.customPages && $io4(input.customPages)) && (undefined === input.watchlists || "object" === typeof input.watchlists && null !== input.watchlists && $io7(input.watchlists)) && (undefined === input.profilePicUrl || "string" === typeof input.profilePicUrl) && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.username || "string" === typeof input.username) && true && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && false === Array.isArray(input.notifications) && $io8(input.notifications)) && (undefined === input.approvedSignInMethods || "object" === typeof input.approvedSignInMethods && null !== input.approvedSignInMethods && false === Array.isArray(input.approvedSignInMethods) && $io11(input.approvedSignInMethods)) && (undefined === input.socialConnections || "object" === typeof input.socialConnections && null !== input.socialConnections && false === Array.isArray(input.socialConnections) && $io19(input.socialConnections)); const $io1 = input => ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); const $io2 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io3 = input => "string" === typeof input.title && "string" === typeof input.url && "string" === typeof input.image; const $io4 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io5 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && $io1(elem))); const $io6 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "string" === typeof elem)); const $io7 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io8 = input => (undefined === input.email || "string" === typeof input.email) && (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io9(input.discord)) && (undefined === input.antiPhishingCode || "string" === typeof input.antiPhishingCode) && (undefined === input.preferences || "object" === typeof input.preferences && null !== input.preferences && false === Array.isArray(input.preferences) && $io10(input.preferences)); const $io9 = input => "string" === typeof input.id && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator); const $io10 = input => (undefined === input.listActivity || "boolean" === typeof input.listActivity) && (undefined === input.transferActivity || "boolean" === typeof input.transferActivity) && (undefined === input.claimAlerts || "boolean" === typeof input.claimAlerts) && (undefined === input.ignoreIfInitiator || "boolean" === typeof input.ignoreIfInitiator); const $io11 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io12(input.discord)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io15(input.github)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io16(input.google)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io17(input.twitter)) && (undefined === input.addresses || Array.isArray(input.addresses) && input.addresses.every(elem => "object" === typeof elem && null !== elem && $io18(elem))); const $io12 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator) && "string" === typeof input.id; const $io13 = input => "string" === typeof input.scopeName && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io14(input.options)); const $io14 = input => true; const $io15 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io16 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io17 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io18 = input => "string" === typeof input.address && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem))); const $io19 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io20(input.discord)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io21(input.twitter)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io22(input.google)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io23(input.github)) && (undefined === input.twitch || "object" === typeof input.twitch && null !== input.twitch && $io24(input.twitch)) && (undefined === input.strava || "object" === typeof input.strava && null !== input.strava && $io25(input.strava)) && (undefined === input.reddit || "object" === typeof input.reddit && null !== input.reddit && $io26(input.reddit)) && (undefined === input.telegram || "object" === typeof input.telegram && null !== input.telegram && $io27(input.telegram)) && (undefined === input.farcaster || "object" === typeof input.farcaster && null !== input.farcaster && $io28(input.farcaster)) && (undefined === input.slack || "object" === typeof input.slack && null !== input.slack && $io29(input.slack)); const $io20 = input => "string" === typeof input.username && "string" === typeof input.id && (undefined === input.discriminator || "string" === typeof input.discriminator) && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io21 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io22 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io23 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io24 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io25 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io26 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io27 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io28 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io29 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.discord || "string" === typeof input.discord || $report(_exceptionable, {
352
+ const validateRes = (() => { const $io0 = input => (undefined === input.discord || "string" === typeof input.discord) && (undefined === input.twitter || "string" === typeof input.twitter) && (undefined === input.github || "string" === typeof input.github) && (undefined === input.telegram || "string" === typeof input.telegram) && (undefined === input.seenActivity || "string" === typeof input.seenActivity || "number" === typeof input.seenActivity || "bigint" === typeof input.seenActivity) && (undefined === input.readme || "string" === typeof input.readme) && (undefined === input.hiddenBadges || Array.isArray(input.hiddenBadges) && input.hiddenBadges.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.hiddenLists || Array.isArray(input.hiddenLists) && input.hiddenLists.every(elem => "string" === typeof elem)) && (undefined === input.customLinks || Array.isArray(input.customLinks) && input.customLinks.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.customPages || "object" === typeof input.customPages && null !== input.customPages && $io4(input.customPages)) && (undefined === input.watchlists || "object" === typeof input.watchlists && null !== input.watchlists && $io7(input.watchlists)) && (undefined === input.profilePicUrl || "string" === typeof input.profilePicUrl) && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.username || "string" === typeof input.username) && true && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && false === Array.isArray(input.notifications) && $io8(input.notifications)) && (undefined === input.approvedSignInMethods || "object" === typeof input.approvedSignInMethods && null !== input.approvedSignInMethods && false === Array.isArray(input.approvedSignInMethods) && $io11(input.approvedSignInMethods)) && (undefined === input.socialConnections || "object" === typeof input.socialConnections && null !== input.socialConnections && false === Array.isArray(input.socialConnections) && $io20(input.socialConnections)); const $io1 = input => ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); const $io2 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io3 = input => "string" === typeof input.title && "string" === typeof input.url && "string" === typeof input.image; const $io4 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io5 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && $io1(elem))); const $io6 = input => "string" === typeof input.title && "string" === typeof input.description && (Array.isArray(input.items) && input.items.every(elem => "string" === typeof elem)); const $io7 = input => Array.isArray(input.badges) && input.badges.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (Array.isArray(input.lists) && input.lists.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input.attestations) && input.attestations.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io8 = input => (undefined === input.email || "string" === typeof input.email) && (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io9(input.discord)) && (undefined === input.antiPhishingCode || "string" === typeof input.antiPhishingCode) && (undefined === input.preferences || "object" === typeof input.preferences && null !== input.preferences && false === Array.isArray(input.preferences) && $io10(input.preferences)); const $io9 = input => "string" === typeof input.id && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator); const $io10 = input => (undefined === input.listActivity || "boolean" === typeof input.listActivity) && (undefined === input.transferActivity || "boolean" === typeof input.transferActivity) && (undefined === input.claimAlerts || "boolean" === typeof input.claimAlerts) && (undefined === input.ignoreIfInitiator || "boolean" === typeof input.ignoreIfInitiator); const $io11 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io12(input.discord)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io15(input.github)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io16(input.google)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io17(input.twitter)) && (undefined === input.addresses || Array.isArray(input.addresses) && input.addresses.every(elem => "object" === typeof elem && null !== elem && $io18(elem))) && (undefined === input.passwords || Array.isArray(input.passwords) && input.passwords.every(elem => "object" === typeof elem && null !== elem && $io19(elem))); const $io12 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && (undefined === input.discriminator || "string" === typeof input.discriminator) && "string" === typeof input.id; const $io13 = input => "string" === typeof input.scopeName && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io14(input.options)); const $io14 = input => true; const $io15 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io16 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io17 = input => Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem)) && "string" === typeof input.username && "string" === typeof input.id; const $io18 = input => "string" === typeof input.address && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem))); const $io19 = input => "string" === typeof input.passwordHash && "string" === typeof input.salt && (undefined === input.password || "string" === typeof input.password) && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io13(elem))); const $io20 = input => (undefined === input.discord || "object" === typeof input.discord && null !== input.discord && $io21(input.discord)) && (undefined === input.twitter || "object" === typeof input.twitter && null !== input.twitter && $io22(input.twitter)) && (undefined === input.google || "object" === typeof input.google && null !== input.google && $io23(input.google)) && (undefined === input.github || "object" === typeof input.github && null !== input.github && $io24(input.github)) && (undefined === input.twitch || "object" === typeof input.twitch && null !== input.twitch && $io25(input.twitch)) && (undefined === input.strava || "object" === typeof input.strava && null !== input.strava && $io26(input.strava)) && (undefined === input.reddit || "object" === typeof input.reddit && null !== input.reddit && $io27(input.reddit)) && (undefined === input.telegram || "object" === typeof input.telegram && null !== input.telegram && $io28(input.telegram)) && (undefined === input.farcaster || "object" === typeof input.farcaster && null !== input.farcaster && $io29(input.farcaster)) && (undefined === input.slack || "object" === typeof input.slack && null !== input.slack && $io30(input.slack)); const $io21 = input => "string" === typeof input.username && "string" === typeof input.id && (undefined === input.discriminator || "string" === typeof input.discriminator) && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io22 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io23 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io24 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io25 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io26 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io27 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io28 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io29 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $io30 = input => "string" === typeof input.username && "string" === typeof input.id && ("string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.discord || "string" === typeof input.discord || $report(_exceptionable, {
353
353
  path: _path + ".discord",
354
354
  expected: "(string | undefined)",
355
355
  value: input.discord
@@ -377,12 +377,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
377
377
  path: _path + ".hiddenBadges",
378
378
  expected: "(Array<iBatchBadgeDetails<NumberType>> | undefined)",
379
379
  value: input.hiddenBadges
380
- })) && input.hiddenBadges.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
381
- path: _path + ".hiddenBadges[" + _index19 + "]",
380
+ })) && input.hiddenBadges.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
381
+ path: _path + ".hiddenBadges[" + _index21 + "]",
382
382
  expected: "iBatchBadgeDetails<NumberType>",
383
383
  value: elem
384
- })) && $vo1(elem, _path + ".hiddenBadges[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
385
- path: _path + ".hiddenBadges[" + _index19 + "]",
384
+ })) && $vo1(elem, _path + ".hiddenBadges[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
385
+ path: _path + ".hiddenBadges[" + _index21 + "]",
386
386
  expected: "iBatchBadgeDetails<NumberType>",
387
387
  value: elem
388
388
  })).every(flag => flag) || $report(_exceptionable, {
@@ -393,8 +393,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
393
393
  path: _path + ".hiddenLists",
394
394
  expected: "(Array<string> | undefined)",
395
395
  value: input.hiddenLists
396
- })) && input.hiddenLists.map((elem, _index20) => "string" === typeof elem || $report(_exceptionable, {
397
- path: _path + ".hiddenLists[" + _index20 + "]",
396
+ })) && input.hiddenLists.map((elem, _index22) => "string" === typeof elem || $report(_exceptionable, {
397
+ path: _path + ".hiddenLists[" + _index22 + "]",
398
398
  expected: "string",
399
399
  value: elem
400
400
  })).every(flag => flag) || $report(_exceptionable, {
@@ -405,12 +405,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
405
405
  path: _path + ".customLinks",
406
406
  expected: "(Array<iCustomLink> | undefined)",
407
407
  value: input.customLinks
408
- })) && input.customLinks.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
409
- path: _path + ".customLinks[" + _index21 + "]",
408
+ })) && input.customLinks.map((elem, _index23) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
409
+ path: _path + ".customLinks[" + _index23 + "]",
410
410
  expected: "iCustomLink",
411
411
  value: elem
412
- })) && $vo3(elem, _path + ".customLinks[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
413
- path: _path + ".customLinks[" + _index21 + "]",
412
+ })) && $vo3(elem, _path + ".customLinks[" + _index23 + "]", true && _exceptionable) || $report(_exceptionable, {
413
+ path: _path + ".customLinks[" + _index23 + "]",
414
414
  expected: "iCustomLink",
415
415
  value: elem
416
416
  })).every(flag => flag) || $report(_exceptionable, {
@@ -465,7 +465,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
465
465
  path: _path + ".socialConnections",
466
466
  expected: "(iSocialConnections<NumberType> | undefined)",
467
467
  value: input.socialConnections
468
- })) && $vo19(input.socialConnections, _path + ".socialConnections", true && _exceptionable) || $report(_exceptionable, {
468
+ })) && $vo20(input.socialConnections, _path + ".socialConnections", true && _exceptionable) || $report(_exceptionable, {
469
469
  path: _path + ".socialConnections",
470
470
  expected: "(iSocialConnections<NumberType> | undefined)",
471
471
  value: input.socialConnections
@@ -477,12 +477,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
477
477
  path: _path + ".badgeIds",
478
478
  expected: "Array<iUintRange<NumberType>>",
479
479
  value: input.badgeIds
480
- })) && input.badgeIds.map((elem, _index22) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
481
- path: _path + ".badgeIds[" + _index22 + "]",
480
+ })) && input.badgeIds.map((elem, _index24) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
481
+ path: _path + ".badgeIds[" + _index24 + "]",
482
482
  expected: "iUintRange<NumberType>",
483
483
  value: elem
484
- })) && $vo2(elem, _path + ".badgeIds[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
485
- path: _path + ".badgeIds[" + _index22 + "]",
484
+ })) && $vo2(elem, _path + ".badgeIds[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
485
+ path: _path + ".badgeIds[" + _index24 + "]",
486
486
  expected: "iUintRange<NumberType>",
487
487
  value: elem
488
488
  })).every(flag => flag) || $report(_exceptionable, {
@@ -513,12 +513,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
513
513
  path: _path + ".badges",
514
514
  expected: "Array<iCustomPage<NumberType>>",
515
515
  value: input.badges
516
- })) && input.badges.map((elem, _index23) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
517
- path: _path + ".badges[" + _index23 + "]",
516
+ })) && input.badges.map((elem, _index25) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
517
+ path: _path + ".badges[" + _index25 + "]",
518
518
  expected: "iCustomPage<NumberType>",
519
519
  value: elem
520
- })) && $vo5(elem, _path + ".badges[" + _index23 + "]", true && _exceptionable) || $report(_exceptionable, {
521
- path: _path + ".badges[" + _index23 + "]",
520
+ })) && $vo5(elem, _path + ".badges[" + _index25 + "]", true && _exceptionable) || $report(_exceptionable, {
521
+ path: _path + ".badges[" + _index25 + "]",
522
522
  expected: "iCustomPage<NumberType>",
523
523
  value: elem
524
524
  })).every(flag => flag) || $report(_exceptionable, {
@@ -529,12 +529,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
529
529
  path: _path + ".lists",
530
530
  expected: "Array<iCustomListPage>",
531
531
  value: input.lists
532
- })) && input.lists.map((elem, _index24) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
533
- path: _path + ".lists[" + _index24 + "]",
532
+ })) && input.lists.map((elem, _index26) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
533
+ path: _path + ".lists[" + _index26 + "]",
534
534
  expected: "iCustomListPage",
535
535
  value: elem
536
- })) && $vo6(elem, _path + ".lists[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
537
- path: _path + ".lists[" + _index24 + "]",
536
+ })) && $vo6(elem, _path + ".lists[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
537
+ path: _path + ".lists[" + _index26 + "]",
538
538
  expected: "iCustomListPage",
539
539
  value: elem
540
540
  })).every(flag => flag) || $report(_exceptionable, {
@@ -545,12 +545,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
545
545
  path: _path + ".attestations",
546
546
  expected: "Array<iCustomListPage>",
547
547
  value: input.attestations
548
- })) && input.attestations.map((elem, _index25) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
549
- path: _path + ".attestations[" + _index25 + "]",
548
+ })) && input.attestations.map((elem, _index27) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
549
+ path: _path + ".attestations[" + _index27 + "]",
550
550
  expected: "iCustomListPage",
551
551
  value: elem
552
- })) && $vo6(elem, _path + ".attestations[" + _index25 + "]", true && _exceptionable) || $report(_exceptionable, {
553
- path: _path + ".attestations[" + _index25 + "]",
552
+ })) && $vo6(elem, _path + ".attestations[" + _index27 + "]", true && _exceptionable) || $report(_exceptionable, {
553
+ path: _path + ".attestations[" + _index27 + "]",
554
554
  expected: "iCustomListPage",
555
555
  value: elem
556
556
  })).every(flag => flag) || $report(_exceptionable, {
@@ -569,12 +569,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
569
569
  path: _path + ".items",
570
570
  expected: "Array<iBatchBadgeDetails<NumberType>>",
571
571
  value: input.items
572
- })) && input.items.map((elem, _index26) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
573
- path: _path + ".items[" + _index26 + "]",
572
+ })) && input.items.map((elem, _index28) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
573
+ path: _path + ".items[" + _index28 + "]",
574
574
  expected: "iBatchBadgeDetails<NumberType>",
575
575
  value: elem
576
- })) && $vo1(elem, _path + ".items[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
577
- path: _path + ".items[" + _index26 + "]",
576
+ })) && $vo1(elem, _path + ".items[" + _index28 + "]", true && _exceptionable) || $report(_exceptionable, {
577
+ path: _path + ".items[" + _index28 + "]",
578
578
  expected: "iBatchBadgeDetails<NumberType>",
579
579
  value: elem
580
580
  })).every(flag => flag) || $report(_exceptionable, {
@@ -593,8 +593,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
593
593
  path: _path + ".items",
594
594
  expected: "Array<string>",
595
595
  value: input.items
596
- })) && input.items.map((elem, _index27) => "string" === typeof elem || $report(_exceptionable, {
597
- path: _path + ".items[" + _index27 + "]",
596
+ })) && input.items.map((elem, _index29) => "string" === typeof elem || $report(_exceptionable, {
597
+ path: _path + ".items[" + _index29 + "]",
598
598
  expected: "string",
599
599
  value: elem
600
600
  })).every(flag => flag) || $report(_exceptionable, {
@@ -605,12 +605,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
605
605
  path: _path + ".badges",
606
606
  expected: "Array<iCustomPage<NumberType>>",
607
607
  value: input.badges
608
- })) && input.badges.map((elem, _index28) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
609
- path: _path + ".badges[" + _index28 + "]",
608
+ })) && input.badges.map((elem, _index30) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
609
+ path: _path + ".badges[" + _index30 + "]",
610
610
  expected: "iCustomPage<NumberType>",
611
611
  value: elem
612
- })) && $vo5(elem, _path + ".badges[" + _index28 + "]", true && _exceptionable) || $report(_exceptionable, {
613
- path: _path + ".badges[" + _index28 + "]",
612
+ })) && $vo5(elem, _path + ".badges[" + _index30 + "]", true && _exceptionable) || $report(_exceptionable, {
613
+ path: _path + ".badges[" + _index30 + "]",
614
614
  expected: "iCustomPage<NumberType>",
615
615
  value: elem
616
616
  })).every(flag => flag) || $report(_exceptionable, {
@@ -621,12 +621,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
621
621
  path: _path + ".lists",
622
622
  expected: "Array<iCustomListPage>",
623
623
  value: input.lists
624
- })) && input.lists.map((elem, _index29) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
625
- path: _path + ".lists[" + _index29 + "]",
624
+ })) && input.lists.map((elem, _index31) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
625
+ path: _path + ".lists[" + _index31 + "]",
626
626
  expected: "iCustomListPage",
627
627
  value: elem
628
- })) && $vo6(elem, _path + ".lists[" + _index29 + "]", true && _exceptionable) || $report(_exceptionable, {
629
- path: _path + ".lists[" + _index29 + "]",
628
+ })) && $vo6(elem, _path + ".lists[" + _index31 + "]", true && _exceptionable) || $report(_exceptionable, {
629
+ path: _path + ".lists[" + _index31 + "]",
630
630
  expected: "iCustomListPage",
631
631
  value: elem
632
632
  })).every(flag => flag) || $report(_exceptionable, {
@@ -637,12 +637,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
637
637
  path: _path + ".attestations",
638
638
  expected: "Array<iCustomListPage>",
639
639
  value: input.attestations
640
- })) && input.attestations.map((elem, _index30) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
641
- path: _path + ".attestations[" + _index30 + "]",
640
+ })) && input.attestations.map((elem, _index32) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
641
+ path: _path + ".attestations[" + _index32 + "]",
642
642
  expected: "iCustomListPage",
643
643
  value: elem
644
- })) && $vo6(elem, _path + ".attestations[" + _index30 + "]", true && _exceptionable) || $report(_exceptionable, {
645
- path: _path + ".attestations[" + _index30 + "]",
644
+ })) && $vo6(elem, _path + ".attestations[" + _index32 + "]", true && _exceptionable) || $report(_exceptionable, {
645
+ path: _path + ".attestations[" + _index32 + "]",
646
646
  expected: "iCustomListPage",
647
647
  value: elem
648
648
  })).every(flag => flag) || $report(_exceptionable, {
@@ -737,28 +737,44 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
737
737
  path: _path + ".addresses",
738
738
  expected: "(Array<__type> | undefined)",
739
739
  value: input.addresses
740
- })) && input.addresses.map((elem, _index31) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
741
- path: _path + ".addresses[" + _index31 + "]",
740
+ })) && input.addresses.map((elem, _index33) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
741
+ path: _path + ".addresses[" + _index33 + "]",
742
742
  expected: "__type.o10",
743
743
  value: elem
744
- })) && $vo18(elem, _path + ".addresses[" + _index31 + "]", true && _exceptionable) || $report(_exceptionable, {
745
- path: _path + ".addresses[" + _index31 + "]",
744
+ })) && $vo18(elem, _path + ".addresses[" + _index33 + "]", true && _exceptionable) || $report(_exceptionable, {
745
+ path: _path + ".addresses[" + _index33 + "]",
746
746
  expected: "__type.o10",
747
747
  value: elem
748
748
  })).every(flag => flag) || $report(_exceptionable, {
749
749
  path: _path + ".addresses",
750
750
  expected: "(Array<__type> | undefined)",
751
751
  value: input.addresses
752
+ }), undefined === input.passwords || (Array.isArray(input.passwords) || $report(_exceptionable, {
753
+ path: _path + ".passwords",
754
+ expected: "(Array<__type>.o1 | undefined)",
755
+ value: input.passwords
756
+ })) && input.passwords.map((elem, _index34) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
757
+ path: _path + ".passwords[" + _index34 + "]",
758
+ expected: "__type.o11",
759
+ value: elem
760
+ })) && $vo19(elem, _path + ".passwords[" + _index34 + "]", true && _exceptionable) || $report(_exceptionable, {
761
+ path: _path + ".passwords[" + _index34 + "]",
762
+ expected: "__type.o11",
763
+ value: elem
764
+ })).every(flag => flag) || $report(_exceptionable, {
765
+ path: _path + ".passwords",
766
+ expected: "(Array<__type>.o1 | undefined)",
767
+ value: input.passwords
752
768
  })].every(flag => flag); const $vo12 = (input, _path, _exceptionable = true) => [(Array.isArray(input.scopes) || $report(_exceptionable, {
753
769
  path: _path + ".scopes",
754
770
  expected: "Array<OAuthScopeDetails>",
755
771
  value: input.scopes
756
- })) && input.scopes.map((elem, _index32) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
757
- path: _path + ".scopes[" + _index32 + "]",
772
+ })) && input.scopes.map((elem, _index35) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
773
+ path: _path + ".scopes[" + _index35 + "]",
758
774
  expected: "OAuthScopeDetails",
759
775
  value: elem
760
- })) && $vo13(elem, _path + ".scopes[" + _index32 + "]", true && _exceptionable) || $report(_exceptionable, {
761
- path: _path + ".scopes[" + _index32 + "]",
776
+ })) && $vo13(elem, _path + ".scopes[" + _index35 + "]", true && _exceptionable) || $report(_exceptionable, {
777
+ path: _path + ".scopes[" + _index35 + "]",
762
778
  expected: "OAuthScopeDetails",
763
779
  value: elem
764
780
  })).every(flag => flag) || $report(_exceptionable, {
@@ -793,12 +809,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
793
809
  path: _path + ".scopes",
794
810
  expected: "Array<OAuthScopeDetails>",
795
811
  value: input.scopes
796
- })) && input.scopes.map((elem, _index33) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
797
- path: _path + ".scopes[" + _index33 + "]",
812
+ })) && input.scopes.map((elem, _index36) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
813
+ path: _path + ".scopes[" + _index36 + "]",
798
814
  expected: "OAuthScopeDetails",
799
815
  value: elem
800
- })) && $vo13(elem, _path + ".scopes[" + _index33 + "]", true && _exceptionable) || $report(_exceptionable, {
801
- path: _path + ".scopes[" + _index33 + "]",
816
+ })) && $vo13(elem, _path + ".scopes[" + _index36 + "]", true && _exceptionable) || $report(_exceptionable, {
817
+ path: _path + ".scopes[" + _index36 + "]",
802
818
  expected: "OAuthScopeDetails",
803
819
  value: elem
804
820
  })).every(flag => flag) || $report(_exceptionable, {
@@ -817,12 +833,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
817
833
  path: _path + ".scopes",
818
834
  expected: "Array<OAuthScopeDetails>",
819
835
  value: input.scopes
820
- })) && input.scopes.map((elem, _index34) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
821
- path: _path + ".scopes[" + _index34 + "]",
836
+ })) && input.scopes.map((elem, _index37) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
837
+ path: _path + ".scopes[" + _index37 + "]",
822
838
  expected: "OAuthScopeDetails",
823
839
  value: elem
824
- })) && $vo13(elem, _path + ".scopes[" + _index34 + "]", true && _exceptionable) || $report(_exceptionable, {
825
- path: _path + ".scopes[" + _index34 + "]",
840
+ })) && $vo13(elem, _path + ".scopes[" + _index37 + "]", true && _exceptionable) || $report(_exceptionable, {
841
+ path: _path + ".scopes[" + _index37 + "]",
826
842
  expected: "OAuthScopeDetails",
827
843
  value: elem
828
844
  })).every(flag => flag) || $report(_exceptionable, {
@@ -841,12 +857,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
841
857
  path: _path + ".scopes",
842
858
  expected: "Array<OAuthScopeDetails>",
843
859
  value: input.scopes
844
- })) && input.scopes.map((elem, _index35) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
845
- path: _path + ".scopes[" + _index35 + "]",
860
+ })) && input.scopes.map((elem, _index38) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
861
+ path: _path + ".scopes[" + _index38 + "]",
846
862
  expected: "OAuthScopeDetails",
847
863
  value: elem
848
- })) && $vo13(elem, _path + ".scopes[" + _index35 + "]", true && _exceptionable) || $report(_exceptionable, {
849
- path: _path + ".scopes[" + _index35 + "]",
864
+ })) && $vo13(elem, _path + ".scopes[" + _index38 + "]", true && _exceptionable) || $report(_exceptionable, {
865
+ path: _path + ".scopes[" + _index38 + "]",
850
866
  expected: "OAuthScopeDetails",
851
867
  value: elem
852
868
  })).every(flag => flag) || $report(_exceptionable, {
@@ -869,99 +885,127 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
869
885
  path: _path + ".scopes",
870
886
  expected: "Array<OAuthScopeDetails>",
871
887
  value: input.scopes
872
- })) && input.scopes.map((elem, _index36) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
873
- path: _path + ".scopes[" + _index36 + "]",
888
+ })) && input.scopes.map((elem, _index39) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
889
+ path: _path + ".scopes[" + _index39 + "]",
874
890
  expected: "OAuthScopeDetails",
875
891
  value: elem
876
- })) && $vo13(elem, _path + ".scopes[" + _index36 + "]", true && _exceptionable) || $report(_exceptionable, {
877
- path: _path + ".scopes[" + _index36 + "]",
892
+ })) && $vo13(elem, _path + ".scopes[" + _index39 + "]", true && _exceptionable) || $report(_exceptionable, {
893
+ path: _path + ".scopes[" + _index39 + "]",
894
+ expected: "OAuthScopeDetails",
895
+ value: elem
896
+ })).every(flag => flag) || $report(_exceptionable, {
897
+ path: _path + ".scopes",
898
+ expected: "Array<OAuthScopeDetails>",
899
+ value: input.scopes
900
+ })].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.passwordHash || $report(_exceptionable, {
901
+ path: _path + ".passwordHash",
902
+ expected: "string",
903
+ value: input.passwordHash
904
+ }), "string" === typeof input.salt || $report(_exceptionable, {
905
+ path: _path + ".salt",
906
+ expected: "string",
907
+ value: input.salt
908
+ }), undefined === input.password || "string" === typeof input.password || $report(_exceptionable, {
909
+ path: _path + ".password",
910
+ expected: "(string | undefined)",
911
+ value: input.password
912
+ }), (Array.isArray(input.scopes) || $report(_exceptionable, {
913
+ path: _path + ".scopes",
914
+ expected: "Array<OAuthScopeDetails>",
915
+ value: input.scopes
916
+ })) && input.scopes.map((elem, _index40) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
917
+ path: _path + ".scopes[" + _index40 + "]",
918
+ expected: "OAuthScopeDetails",
919
+ value: elem
920
+ })) && $vo13(elem, _path + ".scopes[" + _index40 + "]", true && _exceptionable) || $report(_exceptionable, {
921
+ path: _path + ".scopes[" + _index40 + "]",
878
922
  expected: "OAuthScopeDetails",
879
923
  value: elem
880
924
  })).every(flag => flag) || $report(_exceptionable, {
881
925
  path: _path + ".scopes",
882
926
  expected: "Array<OAuthScopeDetails>",
883
927
  value: input.scopes
884
- })].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => [undefined === input.discord || ("object" === typeof input.discord && null !== input.discord || $report(_exceptionable, {
928
+ })].every(flag => flag); const $vo20 = (input, _path, _exceptionable = true) => [undefined === input.discord || ("object" === typeof input.discord && null !== input.discord || $report(_exceptionable, {
885
929
  path: _path + ".discord",
886
- expected: "(__type.o11 | undefined)",
930
+ expected: "(__type.o12 | undefined)",
887
931
  value: input.discord
888
- })) && $vo20(input.discord, _path + ".discord", true && _exceptionable) || $report(_exceptionable, {
932
+ })) && $vo21(input.discord, _path + ".discord", true && _exceptionable) || $report(_exceptionable, {
889
933
  path: _path + ".discord",
890
- expected: "(__type.o11 | undefined)",
934
+ expected: "(__type.o12 | undefined)",
891
935
  value: input.discord
892
936
  }), undefined === input.twitter || ("object" === typeof input.twitter && null !== input.twitter || $report(_exceptionable, {
893
937
  path: _path + ".twitter",
894
- expected: "(__type.o12 | undefined)",
938
+ expected: "(__type.o13 | undefined)",
895
939
  value: input.twitter
896
- })) && $vo21(input.twitter, _path + ".twitter", true && _exceptionable) || $report(_exceptionable, {
940
+ })) && $vo22(input.twitter, _path + ".twitter", true && _exceptionable) || $report(_exceptionable, {
897
941
  path: _path + ".twitter",
898
- expected: "(__type.o12 | undefined)",
942
+ expected: "(__type.o13 | undefined)",
899
943
  value: input.twitter
900
944
  }), undefined === input.google || ("object" === typeof input.google && null !== input.google || $report(_exceptionable, {
901
945
  path: _path + ".google",
902
- expected: "(__type.o13 | undefined)",
946
+ expected: "(__type.o14 | undefined)",
903
947
  value: input.google
904
- })) && $vo22(input.google, _path + ".google", true && _exceptionable) || $report(_exceptionable, {
948
+ })) && $vo23(input.google, _path + ".google", true && _exceptionable) || $report(_exceptionable, {
905
949
  path: _path + ".google",
906
- expected: "(__type.o13 | undefined)",
950
+ expected: "(__type.o14 | undefined)",
907
951
  value: input.google
908
952
  }), undefined === input.github || ("object" === typeof input.github && null !== input.github || $report(_exceptionable, {
909
953
  path: _path + ".github",
910
- expected: "(__type.o14 | undefined)",
954
+ expected: "(__type.o15 | undefined)",
911
955
  value: input.github
912
- })) && $vo23(input.github, _path + ".github", true && _exceptionable) || $report(_exceptionable, {
956
+ })) && $vo24(input.github, _path + ".github", true && _exceptionable) || $report(_exceptionable, {
913
957
  path: _path + ".github",
914
- expected: "(__type.o14 | undefined)",
958
+ expected: "(__type.o15 | undefined)",
915
959
  value: input.github
916
960
  }), undefined === input.twitch || ("object" === typeof input.twitch && null !== input.twitch || $report(_exceptionable, {
917
961
  path: _path + ".twitch",
918
- expected: "(__type.o15 | undefined)",
962
+ expected: "(__type.o16 | undefined)",
919
963
  value: input.twitch
920
- })) && $vo24(input.twitch, _path + ".twitch", true && _exceptionable) || $report(_exceptionable, {
964
+ })) && $vo25(input.twitch, _path + ".twitch", true && _exceptionable) || $report(_exceptionable, {
921
965
  path: _path + ".twitch",
922
- expected: "(__type.o15 | undefined)",
966
+ expected: "(__type.o16 | undefined)",
923
967
  value: input.twitch
924
968
  }), undefined === input.strava || ("object" === typeof input.strava && null !== input.strava || $report(_exceptionable, {
925
969
  path: _path + ".strava",
926
- expected: "(__type.o16 | undefined)",
970
+ expected: "(__type.o17 | undefined)",
927
971
  value: input.strava
928
- })) && $vo25(input.strava, _path + ".strava", true && _exceptionable) || $report(_exceptionable, {
972
+ })) && $vo26(input.strava, _path + ".strava", true && _exceptionable) || $report(_exceptionable, {
929
973
  path: _path + ".strava",
930
- expected: "(__type.o16 | undefined)",
974
+ expected: "(__type.o17 | undefined)",
931
975
  value: input.strava
932
976
  }), undefined === input.reddit || ("object" === typeof input.reddit && null !== input.reddit || $report(_exceptionable, {
933
977
  path: _path + ".reddit",
934
- expected: "(__type.o17 | undefined)",
978
+ expected: "(__type.o18 | undefined)",
935
979
  value: input.reddit
936
- })) && $vo26(input.reddit, _path + ".reddit", true && _exceptionable) || $report(_exceptionable, {
980
+ })) && $vo27(input.reddit, _path + ".reddit", true && _exceptionable) || $report(_exceptionable, {
937
981
  path: _path + ".reddit",
938
- expected: "(__type.o17 | undefined)",
982
+ expected: "(__type.o18 | undefined)",
939
983
  value: input.reddit
940
984
  }), undefined === input.telegram || ("object" === typeof input.telegram && null !== input.telegram || $report(_exceptionable, {
941
985
  path: _path + ".telegram",
942
- expected: "(__type.o18 | undefined)",
986
+ expected: "(__type.o19 | undefined)",
943
987
  value: input.telegram
944
- })) && $vo27(input.telegram, _path + ".telegram", true && _exceptionable) || $report(_exceptionable, {
988
+ })) && $vo28(input.telegram, _path + ".telegram", true && _exceptionable) || $report(_exceptionable, {
945
989
  path: _path + ".telegram",
946
- expected: "(__type.o18 | undefined)",
990
+ expected: "(__type.o19 | undefined)",
947
991
  value: input.telegram
948
992
  }), undefined === input.farcaster || ("object" === typeof input.farcaster && null !== input.farcaster || $report(_exceptionable, {
949
993
  path: _path + ".farcaster",
950
- expected: "(__type.o19 | undefined)",
994
+ expected: "(__type.o20 | undefined)",
951
995
  value: input.farcaster
952
- })) && $vo28(input.farcaster, _path + ".farcaster", true && _exceptionable) || $report(_exceptionable, {
996
+ })) && $vo29(input.farcaster, _path + ".farcaster", true && _exceptionable) || $report(_exceptionable, {
953
997
  path: _path + ".farcaster",
954
- expected: "(__type.o19 | undefined)",
998
+ expected: "(__type.o20 | undefined)",
955
999
  value: input.farcaster
956
1000
  }), undefined === input.slack || ("object" === typeof input.slack && null !== input.slack || $report(_exceptionable, {
957
1001
  path: _path + ".slack",
958
- expected: "(__type.o20 | undefined)",
1002
+ expected: "(__type.o21 | undefined)",
959
1003
  value: input.slack
960
- })) && $vo29(input.slack, _path + ".slack", true && _exceptionable) || $report(_exceptionable, {
1004
+ })) && $vo30(input.slack, _path + ".slack", true && _exceptionable) || $report(_exceptionable, {
961
1005
  path: _path + ".slack",
962
- expected: "(__type.o20 | undefined)",
1006
+ expected: "(__type.o21 | undefined)",
963
1007
  value: input.slack
964
- })].every(flag => flag); const $vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1008
+ })].every(flag => flag); const $vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
965
1009
  path: _path + ".username",
966
1010
  expected: "string",
967
1011
  value: input.username
@@ -977,7 +1021,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
977
1021
  path: _path + ".lastUpdated",
978
1022
  expected: "(bigint | number | string)",
979
1023
  value: input.lastUpdated
980
- })].every(flag => flag); const $vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1024
+ })].every(flag => flag); const $vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
981
1025
  path: _path + ".username",
982
1026
  expected: "string",
983
1027
  value: input.username
@@ -989,7 +1033,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
989
1033
  path: _path + ".lastUpdated",
990
1034
  expected: "(bigint | number | string)",
991
1035
  value: input.lastUpdated
992
- })].every(flag => flag); const $vo22 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1036
+ })].every(flag => flag); const $vo23 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
993
1037
  path: _path + ".username",
994
1038
  expected: "string",
995
1039
  value: input.username
@@ -1001,7 +1045,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1001
1045
  path: _path + ".lastUpdated",
1002
1046
  expected: "(bigint | number | string)",
1003
1047
  value: input.lastUpdated
1004
- })].every(flag => flag); const $vo23 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1048
+ })].every(flag => flag); const $vo24 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1005
1049
  path: _path + ".username",
1006
1050
  expected: "string",
1007
1051
  value: input.username
@@ -1013,7 +1057,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1013
1057
  path: _path + ".lastUpdated",
1014
1058
  expected: "(bigint | number | string)",
1015
1059
  value: input.lastUpdated
1016
- })].every(flag => flag); const $vo24 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1060
+ })].every(flag => flag); const $vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1017
1061
  path: _path + ".username",
1018
1062
  expected: "string",
1019
1063
  value: input.username
@@ -1025,7 +1069,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1025
1069
  path: _path + ".lastUpdated",
1026
1070
  expected: "(bigint | number | string)",
1027
1071
  value: input.lastUpdated
1028
- })].every(flag => flag); const $vo25 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1072
+ })].every(flag => flag); const $vo26 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1029
1073
  path: _path + ".username",
1030
1074
  expected: "string",
1031
1075
  value: input.username
@@ -1037,7 +1081,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1037
1081
  path: _path + ".lastUpdated",
1038
1082
  expected: "(bigint | number | string)",
1039
1083
  value: input.lastUpdated
1040
- })].every(flag => flag); const $vo26 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1084
+ })].every(flag => flag); const $vo27 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1041
1085
  path: _path + ".username",
1042
1086
  expected: "string",
1043
1087
  value: input.username
@@ -1049,7 +1093,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1049
1093
  path: _path + ".lastUpdated",
1050
1094
  expected: "(bigint | number | string)",
1051
1095
  value: input.lastUpdated
1052
- })].every(flag => flag); const $vo27 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1096
+ })].every(flag => flag); const $vo28 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1053
1097
  path: _path + ".username",
1054
1098
  expected: "string",
1055
1099
  value: input.username
@@ -1061,7 +1105,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1061
1105
  path: _path + ".lastUpdated",
1062
1106
  expected: "(bigint | number | string)",
1063
1107
  value: input.lastUpdated
1064
- })].every(flag => flag); const $vo28 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1108
+ })].every(flag => flag); const $vo29 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1065
1109
  path: _path + ".username",
1066
1110
  expected: "string",
1067
1111
  value: input.username
@@ -1073,7 +1117,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1073
1117
  path: _path + ".lastUpdated",
1074
1118
  expected: "(bigint | number | string)",
1075
1119
  value: input.lastUpdated
1076
- })].every(flag => flag); const $vo29 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1120
+ })].every(flag => flag); const $vo30 = (input, _path, _exceptionable = true) => ["string" === typeof input.username || $report(_exceptionable, {
1077
1121
  path: _path + ".username",
1078
1122
  expected: "string",
1079
1123
  value: input.username
@@ -1167,7 +1211,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1167
1211
  }
1168
1212
  async getBrowseCollections(payload) {
1169
1213
  try {
1170
- const validateRes = (() => { const $io0 = input => ("addressLists" === input.type || "badges" === input.type || "attestations" === input.type || "collections" === input.type || "maps" === input.type || "claims" === input.type || "activity" === input.type) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && $io1(input.filters)); const $io1 = input => (undefined === input.category || "string" === typeof input.category) && (undefined === input.sortBy || "string" === typeof input.sortBy) && (undefined === input.timeFrame || "string" === typeof input.timeFrame) && (undefined === input.searchTerm || "string" === typeof input.searchTerm); const $vo0 = (input, _path, _exceptionable = true) => ["addressLists" === input.type || "badges" === input.type || "attestations" === input.type || "collections" === input.type || "maps" === input.type || "claims" === input.type || "activity" === input.type || $report(_exceptionable, {
1214
+ const validateRes = (() => { const $io0 = input => ("badges" === input.type || "attestations" === input.type || "collections" === input.type || "addressLists" === input.type || "maps" === input.type || "claims" === input.type || "activity" === input.type) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && $io1(input.filters)); const $io1 = input => (undefined === input.category || "string" === typeof input.category) && (undefined === input.sortBy || "string" === typeof input.sortBy) && (undefined === input.timeFrame || "string" === typeof input.timeFrame) && (undefined === input.searchTerm || "string" === typeof input.searchTerm); const $vo0 = (input, _path, _exceptionable = true) => ["badges" === input.type || "attestations" === input.type || "collections" === input.type || "addressLists" === input.type || "maps" === input.type || "claims" === input.type || "activity" === input.type || $report(_exceptionable, {
1171
1215
  path: _path + ".type",
1172
1216
  expected: "(\"activity\" | \"addressLists\" | \"attestations\" | \"badges\" | \"claims\" | \"collections\" | \"maps\")",
1173
1217
  value: input.type
@@ -1975,7 +2019,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1975
2019
  }
1976
2020
  async verifySIWBBRequest(payload) {
1977
2021
  try {
1978
- const validateRes = (() => { const $io0 = input => (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io1(input.options)) && (undefined === input.attestationsPresentations || Array.isArray(input.attestationsPresentations) && input.attestationsPresentations.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && "string" === typeof input.message && "string" === typeof input.signature && (undefined === input.altSigner || "string" === typeof input.altSigner) && (undefined === input.socialSignIn || "string" === typeof input.socialSignIn) && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io1 = input => (undefined === input.expectedChallengeParams || "object" === typeof input.expectedChallengeParams && null !== input.expectedChallengeParams && false === Array.isArray(input.expectedChallengeParams) && $io2(input.expectedChallengeParams)) && (undefined === input.beforeVerification || true) && (undefined === input.balancesSnapshot || "object" === typeof input.balancesSnapshot && null !== input.balancesSnapshot && false === Array.isArray(input.balancesSnapshot) && $io9(input.balancesSnapshot)) && (undefined === input.verificationTimeOverride || "number" === typeof input.verificationTimeOverride) && (undefined === input.skipTimestampVerification || "boolean" === typeof input.skipTimestampVerification) && (undefined === input.skipAssetVerification || "boolean" === typeof input.skipAssetVerification) && (undefined === input.earliestIssuedAt || "string" === typeof input.earliestIssuedAt) && (undefined === input.issuedAtTimeWindowMs || "number" === typeof input.issuedAtTimeWindowMs) && (undefined === input.skipSignatureVerification || "boolean" === typeof input.skipSignatureVerification); const $io2 = input => (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.statement || "string" === typeof input.statement) && (undefined === input.address || "string" === typeof input.address) && (undefined === input.uri || "string" === typeof input.uri) && (undefined === input.nonce || "string" === typeof input.nonce) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.chainId || "string" === typeof input.chainId) && (undefined === input.issuedAt || "string" === typeof input.issuedAt) && (undefined === input.expirationDate || "string" === typeof input.expirationDate) && (undefined === input.notBefore || "string" === typeof input.notBefore) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every(elem => "string" === typeof elem)) && (undefined === input.assetOwnershipRequirements || "object" === typeof input.assetOwnershipRequirements && null !== input.assetOwnershipRequirements && $iu0(input.assetOwnershipRequirements)); const $io3 = input => Array.isArray(input.$and) && input.$and.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)); const $io4 = input => Array.isArray(input.$or) && input.$or.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)); const $io5 = input => Array.isArray(input.assets) && input.assets.every(elem => "object" === typeof elem && null !== elem && $io6(elem)) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io8(input.options)); const $io6 = input => "string" === typeof input.chain && ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (Array.isArray(input.assetIds) && input.assetIds.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io7(elem)))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && ("object" === typeof input.mustOwnAmounts && null !== input.mustOwnAmounts && $io7(input.mustOwnAmounts)) && (undefined === input.additionalCriteria || "string" === typeof input.additionalCriteria); const $io7 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io8 = input => undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification; const $io9 = input => true; const $io10 = input => Array.isArray(input.updateHistory) && input.updateHistory.every(elem => "object" === typeof elem && null !== elem && $io11(elem)) && "string" === typeof input._docId && (undefined === input._id || "string" === typeof input._id) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.createdBy && ("string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt) && (Array.isArray(input.entropies) && input.entropies.every(elem => "string" === typeof elem)) && (undefined === input.publicVisibility || "boolean" === typeof input.publicVisibility) && (undefined === input.proofOfIssuance || "object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io12(input.proofOfIssuance)) && "string" === typeof input.attestationId && "string" === typeof input.inviteCode && "string" === typeof input.scheme && (undefined === input.originalProvider || "string" === typeof input.originalProvider) && (Array.isArray(input.messages) && input.messages.every(elem => "string" === typeof elem)) && (undefined === input.dataIntegrityProof || "object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io13(input.dataIntegrityProof)) && "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (Array.isArray(input.holders) && input.holders.every(elem => "string" === typeof elem)) && (undefined === input.allHolders || Array.isArray(input.allHolders) && input.allHolders.every(elem => "string" === typeof elem)) && (Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io14(elem))); const $io11 = input => "string" === typeof input.txHash && ("string" === typeof input.block || "number" === typeof input.block || "bigint" === typeof input.block) && ("string" === typeof input.blockTimestamp || "number" === typeof input.blockTimestamp || "bigint" === typeof input.blockTimestamp) && ("string" === typeof input.timestamp || "number" === typeof input.timestamp || "bigint" === typeof input.timestamp); const $io12 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io13 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey) && (undefined === input.isDerived || "boolean" === typeof input.isDerived); const $io14 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message); const $iu0 = input => (() => {
2022
+ const validateRes = (() => { const $io0 = input => (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io1(input.options)) && (undefined === input.attestationsPresentations || Array.isArray(input.attestationsPresentations) && input.attestationsPresentations.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && "string" === typeof input.message && "string" === typeof input.signature && (undefined === input.altSigner || "string" === typeof input.altSigner) && (undefined === input.socialSignIn || "string" === typeof input.socialSignIn) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io1 = input => (undefined === input.expectedChallengeParams || "object" === typeof input.expectedChallengeParams && null !== input.expectedChallengeParams && false === Array.isArray(input.expectedChallengeParams) && $io2(input.expectedChallengeParams)) && (undefined === input.beforeVerification || true) && (undefined === input.balancesSnapshot || "object" === typeof input.balancesSnapshot && null !== input.balancesSnapshot && false === Array.isArray(input.balancesSnapshot) && $io9(input.balancesSnapshot)) && (undefined === input.verificationTimeOverride || "number" === typeof input.verificationTimeOverride) && (undefined === input.skipTimestampVerification || "boolean" === typeof input.skipTimestampVerification) && (undefined === input.skipAssetVerification || "boolean" === typeof input.skipAssetVerification) && (undefined === input.earliestIssuedAt || "string" === typeof input.earliestIssuedAt) && (undefined === input.issuedAtTimeWindowMs || "number" === typeof input.issuedAtTimeWindowMs) && (undefined === input.skipSignatureVerification || "boolean" === typeof input.skipSignatureVerification); const $io2 = input => (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.statement || "string" === typeof input.statement) && (undefined === input.address || "string" === typeof input.address) && (undefined === input.uri || "string" === typeof input.uri) && (undefined === input.nonce || "string" === typeof input.nonce) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.chainId || "string" === typeof input.chainId) && (undefined === input.issuedAt || "string" === typeof input.issuedAt) && (undefined === input.expirationDate || "string" === typeof input.expirationDate) && (undefined === input.notBefore || "string" === typeof input.notBefore) && (undefined === input.resources || Array.isArray(input.resources) && input.resources.every(elem => "string" === typeof elem)) && (undefined === input.assetOwnershipRequirements || "object" === typeof input.assetOwnershipRequirements && null !== input.assetOwnershipRequirements && $iu0(input.assetOwnershipRequirements)); const $io3 = input => Array.isArray(input.$and) && input.$and.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)); const $io4 = input => Array.isArray(input.$or) && input.$or.every(elem => "object" === typeof elem && null !== elem && $iu0(elem)); const $io5 = input => Array.isArray(input.assets) && input.assets.every(elem => "object" === typeof elem && null !== elem && $io6(elem)) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io8(input.options)); const $io6 = input => "string" === typeof input.chain && ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (Array.isArray(input.assetIds) && input.assetIds.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io7(elem)))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && ("object" === typeof input.mustOwnAmounts && null !== input.mustOwnAmounts && $io7(input.mustOwnAmounts)) && (undefined === input.additionalCriteria || "string" === typeof input.additionalCriteria); const $io7 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io8 = input => undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification; const $io9 = input => true; const $io10 = input => Array.isArray(input.updateHistory) && input.updateHistory.every(elem => "object" === typeof elem && null !== elem && $io11(elem)) && "string" === typeof input._docId && (undefined === input._id || "string" === typeof input._id) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.createdBy && ("string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt) && (Array.isArray(input.entropies) && input.entropies.every(elem => "string" === typeof elem)) && (undefined === input.publicVisibility || "boolean" === typeof input.publicVisibility) && (undefined === input.proofOfIssuance || "object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io12(input.proofOfIssuance)) && "string" === typeof input.attestationId && "string" === typeof input.inviteCode && "string" === typeof input.scheme && (undefined === input.originalProvider || "string" === typeof input.originalProvider) && (Array.isArray(input.messages) && input.messages.every(elem => "string" === typeof elem)) && (undefined === input.dataIntegrityProof || "object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io13(input.dataIntegrityProof)) && "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (Array.isArray(input.holders) && input.holders.every(elem => "string" === typeof elem)) && (undefined === input.allHolders || Array.isArray(input.allHolders) && input.allHolders.every(elem => "string" === typeof elem)) && (Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io14(elem))); const $io11 = input => "string" === typeof input.txHash && ("string" === typeof input.block || "number" === typeof input.block || "bigint" === typeof input.block) && ("string" === typeof input.blockTimestamp || "number" === typeof input.blockTimestamp || "bigint" === typeof input.blockTimestamp) && ("string" === typeof input.timestamp || "number" === typeof input.timestamp || "bigint" === typeof input.timestamp); const $io12 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io13 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey) && (undefined === input.isDerived || "boolean" === typeof input.isDerived); const $io14 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message); const $iu0 = input => (() => {
1979
2023
  if (undefined !== input.$and)
1980
2024
  return $io3(input);
1981
2025
  else if (undefined !== input.$or)
@@ -2024,6 +2068,10 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
2024
2068
  path: _path + ".socialSignIn",
2025
2069
  expected: "(string | undefined)",
2026
2070
  value: input.socialSignIn
2071
+ }), undefined === input.password || "string" === typeof input.password || $report(_exceptionable, {
2072
+ path: _path + ".password",
2073
+ expected: "(string | undefined)",
2074
+ value: input.password
2027
2075
  }), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
2028
2076
  path: _path + ".publicKey",
2029
2077
  expected: "(string | undefined)",
@@ -3128,7 +3176,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3128
3176
  }
3129
3177
  async createAttestation(payload) {
3130
3178
  try {
3131
- const validateRes = (() => { const $io0 = input => (undefined === input.anchors || Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && "string" === typeof input.name && (Array.isArray(input.messages) && input.messages.every(elem => "string" === typeof elem)) && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.originalProvider || "string" === typeof input.originalProvider) && (undefined === input.proofOfIssuance || "object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io2(input.proofOfIssuance)) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.scheme && (undefined === input.dataIntegrityProof || "object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io3(input.dataIntegrityProof)) && (undefined === input.publicVisibility || "boolean" === typeof input.publicVisibility); const $io1 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message); const $io2 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io3 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey) && (undefined === input.isDerived || "boolean" === typeof input.isDerived); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.anchors || (Array.isArray(input.anchors) || $report(_exceptionable, {
3179
+ const validateRes = (() => { const $io0 = input => (undefined === input.anchors || Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.originalProvider || "string" === typeof input.originalProvider) && (undefined === input.proofOfIssuance || "object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io2(input.proofOfIssuance)) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.scheme && (Array.isArray(input.messages) && input.messages.every(elem => "string" === typeof elem)) && (undefined === input.dataIntegrityProof || "object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io3(input.dataIntegrityProof)) && (undefined === input.publicVisibility || "boolean" === typeof input.publicVisibility); const $io1 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message); const $io2 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io3 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey) && (undefined === input.isDerived || "boolean" === typeof input.isDerived); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.anchors || (Array.isArray(input.anchors) || $report(_exceptionable, {
3132
3180
  path: _path + ".anchors",
3133
3181
  expected: "(Array<__type> | undefined)",
3134
3182
  value: input.anchors
@@ -3148,18 +3196,6 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3148
3196
  path: _path + ".name",
3149
3197
  expected: "string",
3150
3198
  value: input.name
3151
- }), (Array.isArray(input.messages) || $report(_exceptionable, {
3152
- path: _path + ".messages",
3153
- expected: "Array<string>",
3154
- value: input.messages
3155
- })) && input.messages.map((elem, _index4) => "string" === typeof elem || $report(_exceptionable, {
3156
- path: _path + ".messages[" + _index4 + "]",
3157
- expected: "string",
3158
- value: elem
3159
- })).every(flag => flag) || $report(_exceptionable, {
3160
- path: _path + ".messages",
3161
- expected: "Array<string>",
3162
- value: input.messages
3163
3199
  }), "string" === typeof input.description || $report(_exceptionable, {
3164
3200
  path: _path + ".description",
3165
3201
  expected: "string",
@@ -3188,6 +3224,18 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3188
3224
  path: _path + ".scheme",
3189
3225
  expected: "string",
3190
3226
  value: input.scheme
3227
+ }), (Array.isArray(input.messages) || $report(_exceptionable, {
3228
+ path: _path + ".messages",
3229
+ expected: "Array<string>",
3230
+ value: input.messages
3231
+ })) && input.messages.map((elem, _index4) => "string" === typeof elem || $report(_exceptionable, {
3232
+ path: _path + ".messages[" + _index4 + "]",
3233
+ expected: "string",
3234
+ value: elem
3235
+ })).every(flag => flag) || $report(_exceptionable, {
3236
+ path: _path + ".messages",
3237
+ expected: "Array<string>",
3238
+ value: input.messages
3191
3239
  }), undefined === input.dataIntegrityProof || ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof || $report(_exceptionable, {
3192
3240
  path: _path + ".dataIntegrityProof",
3193
3241
  expected: "(__type.o2 | undefined)",
@@ -3762,7 +3810,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3762
3810
  }
3763
3811
  async createClaims(payload) {
3764
3812
  try {
3765
- const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim); const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.createdBy || "string" === typeof input.createdBy) && "string" === typeof input.claimId && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.trackerDetails || "object" === typeof input.trackerDetails && null !== input.trackerDetails && $io7(input.trackerDetails)) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && $io18(input.satisfyMethod)) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io20(elem))); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
3813
+ const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim); const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && "string" === typeof input.claimId && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.trackerDetails || "object" === typeof input.trackerDetails && null !== input.trackerDetails && $io7(input.trackerDetails)) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && $io18(input.satisfyMethod)) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io20(elem))); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
3766
3814
  const value = input[key];
3767
3815
  if (undefined === value)
3768
3816
  return true;
@@ -3817,14 +3865,6 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3817
3865
  path: _path + ".lastUpdated",
3818
3866
  expected: "(bigint | number | string | undefined)",
3819
3867
  value: input.lastUpdated
3820
- }), undefined === input.listId || "string" === typeof input.listId || $report(_exceptionable, {
3821
- path: _path + ".listId",
3822
- expected: "(string | undefined)",
3823
- value: input.listId
3824
- }), undefined === input.createdBy || "string" === typeof input.createdBy || $report(_exceptionable, {
3825
- path: _path + ".createdBy",
3826
- expected: "(string | undefined)",
3827
- value: input.createdBy
3828
3868
  }), "string" === typeof input.claimId || $report(_exceptionable, {
3829
3869
  path: _path + ".claimId",
3830
3870
  expected: "string",
@@ -3841,6 +3881,10 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3841
3881
  path: _path + ".categories",
3842
3882
  expected: "(Array<string> | undefined)",
3843
3883
  value: input.categories
3884
+ }), undefined === input.createdBy || "string" === typeof input.createdBy || $report(_exceptionable, {
3885
+ path: _path + ".createdBy",
3886
+ expected: "(string | undefined)",
3887
+ value: input.createdBy
3844
3888
  }), undefined === input.seedCode || "string" === typeof input.seedCode || $report(_exceptionable, {
3845
3889
  path: _path + ".seedCode",
3846
3890
  expected: "(string | undefined)",
@@ -3849,6 +3893,10 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3849
3893
  path: _path + ".siwbbClaim",
3850
3894
  expected: "(boolean | undefined)",
3851
3895
  value: input.siwbbClaim
3896
+ }), undefined === input.listId || "string" === typeof input.listId || $report(_exceptionable, {
3897
+ path: _path + ".listId",
3898
+ expected: "(string | undefined)",
3899
+ value: input.listId
3852
3900
  }), undefined === input.trackerDetails || ("object" === typeof input.trackerDetails && null !== input.trackerDetails || $report(_exceptionable, {
3853
3901
  path: _path + ".trackerDetails",
3854
3902
  expected: "(iChallengeTrackerIdDetails<NumberType> | undefined)",
@@ -4500,7 +4548,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4500
4548
  }
4501
4549
  async updateClaims(payload) {
4502
4550
  try {
4503
- const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.createdBy || "string" === typeof input.createdBy) && "string" === typeof input.claimId && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.trackerDetails || "object" === typeof input.trackerDetails && null !== input.trackerDetails && $io7(input.trackerDetails)) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io17(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && $io21(input.satisfyMethod)); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
4551
+ const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && "string" === typeof input.claimId && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.trackerDetails || "object" === typeof input.trackerDetails && null !== input.trackerDetails && $io7(input.trackerDetails)) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io17(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && $io21(input.satisfyMethod)); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
4504
4552
  const value = input[key];
4505
4553
  if (undefined === value)
4506
4554
  return true;
@@ -4547,14 +4595,6 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4547
4595
  path: _path + ".lastUpdated",
4548
4596
  expected: "(bigint | number | string | undefined)",
4549
4597
  value: input.lastUpdated
4550
- }), undefined === input.listId || "string" === typeof input.listId || $report(_exceptionable, {
4551
- path: _path + ".listId",
4552
- expected: "(string | undefined)",
4553
- value: input.listId
4554
- }), undefined === input.createdBy || "string" === typeof input.createdBy || $report(_exceptionable, {
4555
- path: _path + ".createdBy",
4556
- expected: "(string | undefined)",
4557
- value: input.createdBy
4558
4598
  }), "string" === typeof input.claimId || $report(_exceptionable, {
4559
4599
  path: _path + ".claimId",
4560
4600
  expected: "string",
@@ -4571,10 +4611,18 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4571
4611
  path: _path + ".categories",
4572
4612
  expected: "(Array<string> | undefined)",
4573
4613
  value: input.categories
4614
+ }), undefined === input.createdBy || "string" === typeof input.createdBy || $report(_exceptionable, {
4615
+ path: _path + ".createdBy",
4616
+ expected: "(string | undefined)",
4617
+ value: input.createdBy
4574
4618
  }), undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim || $report(_exceptionable, {
4575
4619
  path: _path + ".siwbbClaim",
4576
4620
  expected: "(boolean | undefined)",
4577
4621
  value: input.siwbbClaim
4622
+ }), undefined === input.listId || "string" === typeof input.listId || $report(_exceptionable, {
4623
+ path: _path + ".listId",
4624
+ expected: "(string | undefined)",
4625
+ value: input.listId
4578
4626
  }), undefined === input.trackerDetails || ("object" === typeof input.trackerDetails && null !== input.trackerDetails || $report(_exceptionable, {
4579
4627
  path: _path + ".trackerDetails",
4580
4628
  expected: "(iChallengeTrackerIdDetails<NumberType> | undefined)",
@@ -5734,28 +5782,27 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
5734
5782
  return Promise.reject(error);
5735
5783
  }
5736
5784
  }
5737
- async updateUserSeenActivity() {
5738
- return await this.updateAccountInfo({ seenActivity: Date.now() });
5739
- }
5740
- }
5741
- exports.BitBadgesAPI = BitBadgesAPI;
5742
- class BitBadgesAdminAPI extends BitBadgesAPI {
5743
- constructor(apiDetails) {
5744
- super(apiDetails);
5745
- }
5746
- async getActiveAuthorizations(payload) {
5785
+ async getSignInChallenge(payload) {
5747
5786
  try {
5748
- const validateRes = (() => { const $io0 = input => true; const $vo0 = (input, _path, _exceptionable = true) => true; const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
5787
+ const validateRes = (() => { const $io0 = input => ("Bitcoin" === input.chain || "Ethereum" === input.chain || "Cosmos" === input.chain || "Solana" === input.chain || "Unknown" === input.chain) && "string" === typeof input.address; const $vo0 = (input, _path, _exceptionable = true) => ["Bitcoin" === input.chain || "Ethereum" === input.chain || "Cosmos" === input.chain || "Solana" === input.chain || "Unknown" === input.chain || $report(_exceptionable, {
5788
+ path: _path + ".chain",
5789
+ expected: "(\"Bitcoin\" | \"Cosmos\" | \"Ethereum\" | \"Solana\" | \"Unknown\")",
5790
+ value: input.chain
5791
+ }), "string" === typeof input.address || $report(_exceptionable, {
5792
+ path: _path + ".address",
5793
+ expected: "string",
5794
+ value: input.address
5795
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
5749
5796
  if (false === __is(input)) {
5750
5797
  errors = [];
5751
5798
  $report = typia_1.default.validate.report(errors);
5752
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
5799
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
5753
5800
  path: _path + "",
5754
- expected: "GetActiveAuthorizationsPayload",
5801
+ expected: "GetSignInChallengePayload",
5755
5802
  value: input
5756
5803
  })) && $vo0(input, _path + "", true) || $report(true, {
5757
5804
  path: _path + "",
5758
- expected: "GetActiveAuthorizationsPayload",
5805
+ expected: "GetSignInChallengePayload",
5759
5806
  value: input
5760
5807
  }))(input, "$input", true);
5761
5808
  const success = 0 === errors.length;
@@ -5774,85 +5821,283 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5774
5821
  if (!validateRes.success) {
5775
5822
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5776
5823
  }
5777
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.GetActiveAuthorizationsRoute()}`, payload);
5778
- return new requests_js_1.GetActiveAuthorizationsSuccessResponse(response.data);
5824
+ const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.GetSignInChallengeRoute()}`, payload);
5825
+ return new requests_js_1.GetSignInChallengeSuccessResponse(response.data).convert(this.ConvertFunction);
5779
5826
  }
5780
5827
  catch (error) {
5781
5828
  await this.handleApiError(error);
5782
5829
  return Promise.reject(error);
5783
5830
  }
5784
5831
  }
5785
- async createPlugin(payload) {
5832
+ async verifySignIn(payload) {
5786
5833
  try {
5787
- const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "boolean" === typeof input.toPublish && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && ("object" === typeof input.initialVersion && null !== input.initialVersion && $io2(input.initialVersion)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.parentApp || "string" === typeof input.parentApp) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && "string" === typeof input.createdBy; const $io2 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && (undefined === input.skipProcessingWebhook || "boolean" === typeof input.skipProcessingWebhook) && (undefined === input.ignoreSimulations || "boolean" === typeof input.ignoreSimulations) && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io3(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io7(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io8(input.verificationCall)); const $io3 = input => "string" === typeof input.baseUri; const $io4 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && (undefined === input.hyperlink || "object" === typeof input.hyperlink && null !== input.hyperlink && $io5(input.hyperlink)) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io5 = input => "string" === typeof input.url && (undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView); const $io6 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io7 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri); const $io8 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && (undefined === input.passTelegram || "boolean" === typeof input.passTelegram) && (undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster) && (undefined === input.passSlack || "boolean" === typeof input.passSlack) && "string" === typeof input.postProcessingJs; const $io9 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
5788
- path: _path + ".pluginId",
5789
- expected: "string",
5790
- value: input.pluginId
5791
- }), undefined === input.inviteCode || "string" === typeof input.inviteCode || $report(_exceptionable, {
5792
- path: _path + ".inviteCode",
5793
- expected: "(string | undefined)",
5794
- value: input.inviteCode
5795
- }), ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
5796
- path: _path + ".metadata",
5797
- expected: "__type",
5798
- value: input.metadata
5799
- })) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
5800
- path: _path + ".metadata",
5801
- expected: "__type",
5802
- value: input.metadata
5803
- }), "boolean" === typeof input.toPublish || $report(_exceptionable, {
5804
- path: _path + ".toPublish",
5805
- expected: "boolean",
5806
- value: input.toPublish
5807
- }), undefined === input.approvedUsers || (Array.isArray(input.approvedUsers) || $report(_exceptionable, {
5808
- path: _path + ".approvedUsers",
5809
- expected: "(Array<string> | undefined)",
5810
- value: input.approvedUsers
5811
- })) && input.approvedUsers.map((elem, _index7) => "string" === typeof elem || $report(_exceptionable, {
5812
- path: _path + ".approvedUsers[" + _index7 + "]",
5813
- expected: "string",
5814
- value: elem
5815
- })).every(flag => flag) || $report(_exceptionable, {
5816
- path: _path + ".approvedUsers",
5817
- expected: "(Array<string> | undefined)",
5818
- value: input.approvedUsers
5819
- }), ("object" === typeof input.initialVersion && null !== input.initialVersion || $report(_exceptionable, {
5820
- path: _path + ".initialVersion",
5821
- expected: "PluginVersionConfigPayload",
5822
- value: input.initialVersion
5823
- })) && $vo2(input.initialVersion, _path + ".initialVersion", true && _exceptionable) || $report(_exceptionable, {
5824
- path: _path + ".initialVersion",
5825
- expected: "PluginVersionConfigPayload",
5826
- value: input.initialVersion
5827
- })].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
5828
- path: _path + ".name",
5829
- expected: "string",
5830
- value: input.name
5831
- }), "string" === typeof input.description || $report(_exceptionable, {
5832
- path: _path + ".description",
5834
+ const validateRes = (() => { const $io0 = input => "string" === typeof input.message && "string" === typeof input.signature && (undefined === input.altSigner || "string" === typeof input.altSigner) && (undefined === input.socialSignIn || "string" === typeof input.socialSignIn) && (undefined === input.password || "string" === typeof input.password) && (undefined === input.publicKey || "string" === typeof input.publicKey); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
5835
+ path: _path + ".message",
5833
5836
  expected: "string",
5834
- value: input.description
5835
- }), "string" === typeof input.image || $report(_exceptionable, {
5836
- path: _path + ".image",
5837
+ value: input.message
5838
+ }), "string" === typeof input.signature || $report(_exceptionable, {
5839
+ path: _path + ".signature",
5837
5840
  expected: "string",
5838
- value: input.image
5839
- }), undefined === input.documentation || "string" === typeof input.documentation || $report(_exceptionable, {
5840
- path: _path + ".documentation",
5841
+ value: input.signature
5842
+ }), undefined === input.altSigner || "string" === typeof input.altSigner || $report(_exceptionable, {
5843
+ path: _path + ".altSigner",
5841
5844
  expected: "(string | undefined)",
5842
- value: input.documentation
5843
- }), undefined === input.parentApp || "string" === typeof input.parentApp || $report(_exceptionable, {
5844
- path: _path + ".parentApp",
5845
+ value: input.altSigner
5846
+ }), undefined === input.socialSignIn || "string" === typeof input.socialSignIn || $report(_exceptionable, {
5847
+ path: _path + ".socialSignIn",
5845
5848
  expected: "(string | undefined)",
5846
- value: input.parentApp
5847
- }), undefined === input.sourceCode || "string" === typeof input.sourceCode || $report(_exceptionable, {
5848
- path: _path + ".sourceCode",
5849
+ value: input.socialSignIn
5850
+ }), undefined === input.password || "string" === typeof input.password || $report(_exceptionable, {
5851
+ path: _path + ".password",
5849
5852
  expected: "(string | undefined)",
5850
- value: input.sourceCode
5851
- }), undefined === input.supportLink || "string" === typeof input.supportLink || $report(_exceptionable, {
5852
- path: _path + ".supportLink",
5853
+ value: input.password
5854
+ }), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
5855
+ path: _path + ".publicKey",
5853
5856
  expected: "(string | undefined)",
5854
- value: input.supportLink
5855
- }), "string" === typeof input.createdBy || $report(_exceptionable, {
5857
+ value: input.publicKey
5858
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
5859
+ if (false === __is(input)) {
5860
+ errors = [];
5861
+ $report = typia_1.default.validate.report(errors);
5862
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
5863
+ path: _path + "",
5864
+ expected: "VerifySignInPayload",
5865
+ value: input
5866
+ })) && $vo0(input, _path + "", true) || $report(true, {
5867
+ path: _path + "",
5868
+ expected: "VerifySignInPayload",
5869
+ value: input
5870
+ }))(input, "$input", true);
5871
+ const success = 0 === errors.length;
5872
+ return {
5873
+ success,
5874
+ errors,
5875
+ data: success ? input : undefined
5876
+ };
5877
+ }
5878
+ return {
5879
+ success: true,
5880
+ errors: [],
5881
+ data: input
5882
+ };
5883
+ }; })()(payload ?? {});
5884
+ if (!validateRes.success) {
5885
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5886
+ }
5887
+ const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.VerifySignInRoute()}`, payload);
5888
+ return new requests_js_1.VerifySignInSuccessResponse(response.data);
5889
+ }
5890
+ catch (error) {
5891
+ await this.handleApiError(error);
5892
+ return Promise.reject(error);
5893
+ }
5894
+ }
5895
+ async signOut(payload) {
5896
+ try {
5897
+ const validateRes = (() => { const $io0 = input => "boolean" === typeof input.signOutBlockin && (undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord) && (undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter) && (undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle) && (undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub) && (undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch) && (undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava) && (undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube) && (undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit) && (undefined === input.signOutTelegram || "boolean" === typeof input.signOutTelegram) && (undefined === input.signOutFarcaster || "boolean" === typeof input.signOutFarcaster) && (undefined === input.signOutSlack || "boolean" === typeof input.signOutSlack); const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.signOutBlockin || $report(_exceptionable, {
5898
+ path: _path + ".signOutBlockin",
5899
+ expected: "boolean",
5900
+ value: input.signOutBlockin
5901
+ }), undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord || $report(_exceptionable, {
5902
+ path: _path + ".signOutDiscord",
5903
+ expected: "(boolean | undefined)",
5904
+ value: input.signOutDiscord
5905
+ }), undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter || $report(_exceptionable, {
5906
+ path: _path + ".signOutTwitter",
5907
+ expected: "(boolean | undefined)",
5908
+ value: input.signOutTwitter
5909
+ }), undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle || $report(_exceptionable, {
5910
+ path: _path + ".signOutGoogle",
5911
+ expected: "(boolean | undefined)",
5912
+ value: input.signOutGoogle
5913
+ }), undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub || $report(_exceptionable, {
5914
+ path: _path + ".signOutGithub",
5915
+ expected: "(boolean | undefined)",
5916
+ value: input.signOutGithub
5917
+ }), undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch || $report(_exceptionable, {
5918
+ path: _path + ".signOutTwitch",
5919
+ expected: "(boolean | undefined)",
5920
+ value: input.signOutTwitch
5921
+ }), undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava || $report(_exceptionable, {
5922
+ path: _path + ".signOutStrava",
5923
+ expected: "(boolean | undefined)",
5924
+ value: input.signOutStrava
5925
+ }), undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube || $report(_exceptionable, {
5926
+ path: _path + ".signOutYoutube",
5927
+ expected: "(boolean | undefined)",
5928
+ value: input.signOutYoutube
5929
+ }), undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit || $report(_exceptionable, {
5930
+ path: _path + ".signOutReddit",
5931
+ expected: "(boolean | undefined)",
5932
+ value: input.signOutReddit
5933
+ }), undefined === input.signOutTelegram || "boolean" === typeof input.signOutTelegram || $report(_exceptionable, {
5934
+ path: _path + ".signOutTelegram",
5935
+ expected: "(boolean | undefined)",
5936
+ value: input.signOutTelegram
5937
+ }), undefined === input.signOutFarcaster || "boolean" === typeof input.signOutFarcaster || $report(_exceptionable, {
5938
+ path: _path + ".signOutFarcaster",
5939
+ expected: "(boolean | undefined)",
5940
+ value: input.signOutFarcaster
5941
+ }), undefined === input.signOutSlack || "boolean" === typeof input.signOutSlack || $report(_exceptionable, {
5942
+ path: _path + ".signOutSlack",
5943
+ expected: "(boolean | undefined)",
5944
+ value: input.signOutSlack
5945
+ })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
5946
+ if (false === __is(input)) {
5947
+ errors = [];
5948
+ $report = typia_1.default.validate.report(errors);
5949
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
5950
+ path: _path + "",
5951
+ expected: "SignOutPayload",
5952
+ value: input
5953
+ })) && $vo0(input, _path + "", true) || $report(true, {
5954
+ path: _path + "",
5955
+ expected: "SignOutPayload",
5956
+ value: input
5957
+ }))(input, "$input", true);
5958
+ const success = 0 === errors.length;
5959
+ return {
5960
+ success,
5961
+ errors,
5962
+ data: success ? input : undefined
5963
+ };
5964
+ }
5965
+ return {
5966
+ success: true,
5967
+ errors: [],
5968
+ data: input
5969
+ };
5970
+ }; })()(payload ?? {});
5971
+ if (!validateRes.success) {
5972
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5973
+ }
5974
+ const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.SignOutRoute()}`, payload);
5975
+ return new requests_js_1.SignOutSuccessResponse(response.data);
5976
+ }
5977
+ catch (error) {
5978
+ await this.handleApiError(error);
5979
+ return Promise.reject(error);
5980
+ }
5981
+ }
5982
+ async updateUserSeenActivity() {
5983
+ return await this.updateAccountInfo({ seenActivity: Date.now() });
5984
+ }
5985
+ }
5986
+ exports.BitBadgesAPI = BitBadgesAPI;
5987
+ class BitBadgesAdminAPI extends BitBadgesAPI {
5988
+ constructor(apiDetails) {
5989
+ super(apiDetails);
5990
+ }
5991
+ async getActiveAuthorizations(payload) {
5992
+ try {
5993
+ const validateRes = (() => { const $io0 = input => true; const $vo0 = (input, _path, _exceptionable = true) => true; const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
5994
+ if (false === __is(input)) {
5995
+ errors = [];
5996
+ $report = typia_1.default.validate.report(errors);
5997
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
5998
+ path: _path + "",
5999
+ expected: "GetActiveAuthorizationsPayload",
6000
+ value: input
6001
+ })) && $vo0(input, _path + "", true) || $report(true, {
6002
+ path: _path + "",
6003
+ expected: "GetActiveAuthorizationsPayload",
6004
+ value: input
6005
+ }))(input, "$input", true);
6006
+ const success = 0 === errors.length;
6007
+ return {
6008
+ success,
6009
+ errors,
6010
+ data: success ? input : undefined
6011
+ };
6012
+ }
6013
+ return {
6014
+ success: true,
6015
+ errors: [],
6016
+ data: input
6017
+ };
6018
+ }; })()(payload ?? {});
6019
+ if (!validateRes.success) {
6020
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
6021
+ }
6022
+ const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.GetActiveAuthorizationsRoute()}`, payload);
6023
+ return new requests_js_1.GetActiveAuthorizationsSuccessResponse(response.data);
6024
+ }
6025
+ catch (error) {
6026
+ await this.handleApiError(error);
6027
+ return Promise.reject(error);
6028
+ }
6029
+ }
6030
+ async createPlugin(payload) {
6031
+ try {
6032
+ const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "boolean" === typeof input.toPublish && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && ("object" === typeof input.initialVersion && null !== input.initialVersion && $io2(input.initialVersion)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.parentApp || "string" === typeof input.parentApp) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && "string" === typeof input.createdBy; const $io2 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && (undefined === input.skipProcessingWebhook || "boolean" === typeof input.skipProcessingWebhook) && (undefined === input.ignoreSimulations || "boolean" === typeof input.ignoreSimulations) && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io3(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io7(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io8(input.verificationCall)); const $io3 = input => "string" === typeof input.baseUri; const $io4 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && (undefined === input.hyperlink || "object" === typeof input.hyperlink && null !== input.hyperlink && $io5(input.hyperlink)) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io5 = input => "string" === typeof input.url && (undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView); const $io6 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io7 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri); const $io8 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && (undefined === input.passTelegram || "boolean" === typeof input.passTelegram) && (undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster) && (undefined === input.passSlack || "boolean" === typeof input.passSlack) && "string" === typeof input.postProcessingJs; const $io9 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
6033
+ path: _path + ".pluginId",
6034
+ expected: "string",
6035
+ value: input.pluginId
6036
+ }), undefined === input.inviteCode || "string" === typeof input.inviteCode || $report(_exceptionable, {
6037
+ path: _path + ".inviteCode",
6038
+ expected: "(string | undefined)",
6039
+ value: input.inviteCode
6040
+ }), ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6041
+ path: _path + ".metadata",
6042
+ expected: "__type",
6043
+ value: input.metadata
6044
+ })) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6045
+ path: _path + ".metadata",
6046
+ expected: "__type",
6047
+ value: input.metadata
6048
+ }), "boolean" === typeof input.toPublish || $report(_exceptionable, {
6049
+ path: _path + ".toPublish",
6050
+ expected: "boolean",
6051
+ value: input.toPublish
6052
+ }), undefined === input.approvedUsers || (Array.isArray(input.approvedUsers) || $report(_exceptionable, {
6053
+ path: _path + ".approvedUsers",
6054
+ expected: "(Array<string> | undefined)",
6055
+ value: input.approvedUsers
6056
+ })) && input.approvedUsers.map((elem, _index7) => "string" === typeof elem || $report(_exceptionable, {
6057
+ path: _path + ".approvedUsers[" + _index7 + "]",
6058
+ expected: "string",
6059
+ value: elem
6060
+ })).every(flag => flag) || $report(_exceptionable, {
6061
+ path: _path + ".approvedUsers",
6062
+ expected: "(Array<string> | undefined)",
6063
+ value: input.approvedUsers
6064
+ }), ("object" === typeof input.initialVersion && null !== input.initialVersion || $report(_exceptionable, {
6065
+ path: _path + ".initialVersion",
6066
+ expected: "PluginVersionConfigPayload",
6067
+ value: input.initialVersion
6068
+ })) && $vo2(input.initialVersion, _path + ".initialVersion", true && _exceptionable) || $report(_exceptionable, {
6069
+ path: _path + ".initialVersion",
6070
+ expected: "PluginVersionConfigPayload",
6071
+ value: input.initialVersion
6072
+ })].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
6073
+ path: _path + ".name",
6074
+ expected: "string",
6075
+ value: input.name
6076
+ }), "string" === typeof input.description || $report(_exceptionable, {
6077
+ path: _path + ".description",
6078
+ expected: "string",
6079
+ value: input.description
6080
+ }), "string" === typeof input.image || $report(_exceptionable, {
6081
+ path: _path + ".image",
6082
+ expected: "string",
6083
+ value: input.image
6084
+ }), undefined === input.documentation || "string" === typeof input.documentation || $report(_exceptionable, {
6085
+ path: _path + ".documentation",
6086
+ expected: "(string | undefined)",
6087
+ value: input.documentation
6088
+ }), undefined === input.parentApp || "string" === typeof input.parentApp || $report(_exceptionable, {
6089
+ path: _path + ".parentApp",
6090
+ expected: "(string | undefined)",
6091
+ value: input.parentApp
6092
+ }), undefined === input.sourceCode || "string" === typeof input.sourceCode || $report(_exceptionable, {
6093
+ path: _path + ".sourceCode",
6094
+ expected: "(string | undefined)",
6095
+ value: input.sourceCode
6096
+ }), undefined === input.supportLink || "string" === typeof input.supportLink || $report(_exceptionable, {
6097
+ path: _path + ".supportLink",
6098
+ expected: "(string | undefined)",
6099
+ value: input.supportLink
6100
+ }), "string" === typeof input.createdBy || $report(_exceptionable, {
5856
6101
  path: _path + ".createdBy",
5857
6102
  expected: "string",
5858
6103
  value: input.createdBy
@@ -7231,8 +7476,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7231
7476
  if (undefined === value)
7232
7477
  return true;
7233
7478
  return "string" === typeof value;
7234
- }); const $io3 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io4 = input => "string" === typeof input.type && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io5 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io6 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs); const $io7 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs); const $io8 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io9 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io10(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io11(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode); const $io10 = input => true; const $io11 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io12(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true); const $io12 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@85"] && Object.keys(input).every(key => {
7235
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@85"].some(prop => key === prop))
7479
+ }); const $io3 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io4 = input => "string" === typeof input.type && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io5 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io6 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs); const $io7 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs); const $io8 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end); const $io9 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io10(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io11(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode); const $io10 = input => true; const $io11 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io12(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true); const $io12 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@87"] && Object.keys(input).every(key => {
7480
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@87"].some(prop => key === prop))
7236
7481
  return true;
7237
7482
  const value = input[key];
7238
7483
  if (undefined === value)
@@ -7606,12 +7851,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7606
7851
  path: _path + ".length",
7607
7852
  expected: "number",
7608
7853
  value: input.length
7609
- }), "Uint8Array" === input["__@toStringTag@85"] || $report(_exceptionable, {
7610
- path: _path + "[\"__@toStringTag@85\"]",
7854
+ }), "Uint8Array" === input["__@toStringTag@87"] || $report(_exceptionable, {
7855
+ path: _path + "[\"__@toStringTag@87\"]",
7611
7856
  expected: "\"Uint8Array\"",
7612
- value: input["__@toStringTag@85"]
7857
+ value: input["__@toStringTag@87"]
7613
7858
  }), false === _exceptionable || Object.keys(input).map(key => {
7614
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@85"].some(prop => key === prop))
7859
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@87"].some(prop => key === prop))
7615
7860
  return true;
7616
7861
  const value = input[key];
7617
7862
  if (undefined === value)
@@ -7671,8 +7916,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7671
7916
  }
7672
7917
  async addApprovalDetailsToOffChainStorage(payload) {
7673
7918
  try {
7674
- const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.approvalDetails) && input.approvalDetails.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.challengeInfoDetails || Array.isArray(input.challengeInfoDetails) && input.challengeInfoDetails.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); const $io2 = input => "object" === typeof input.challengeDetails && null !== input.challengeDetails && $io3(input.challengeDetails) && (undefined === input.claim || "object" === typeof input.claim && null !== input.claim && $io7(input.claim)); const $io3 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io4(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io5(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode); const $io4 = input => true; const $io5 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io6(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true); const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@85"] && Object.keys(input).every(key => {
7675
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@85"].some(prop => key === prop))
7919
+ const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.approvalDetails) && input.approvalDetails.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.challengeInfoDetails || Array.isArray(input.challengeInfoDetails) && input.challengeInfoDetails.every(elem => "object" === typeof elem && null !== elem && $io2(elem))); const $io2 = input => "object" === typeof input.challengeDetails && null !== input.challengeDetails && $io3(input.challengeDetails) && (undefined === input.claim || "object" === typeof input.claim && null !== input.claim && $io7(input.claim)); const $io3 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io4(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io5(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode); const $io4 = input => true; const $io5 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io6(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true); const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@87"] && Object.keys(input).every(key => {
7920
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@87"].some(prop => key === prop))
7676
7921
  return true;
7677
7922
  const value = input[key];
7678
7923
  if (undefined === value)
@@ -7875,12 +8120,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7875
8120
  path: _path + ".length",
7876
8121
  expected: "number",
7877
8122
  value: input.length
7878
- }), "Uint8Array" === input["__@toStringTag@85"] || $report(_exceptionable, {
7879
- path: _path + "[\"__@toStringTag@85\"]",
8123
+ }), "Uint8Array" === input["__@toStringTag@87"] || $report(_exceptionable, {
8124
+ path: _path + "[\"__@toStringTag@87\"]",
7880
8125
  expected: "\"Uint8Array\"",
7881
- value: input["__@toStringTag@85"]
8126
+ value: input["__@toStringTag@87"]
7882
8127
  }), false === _exceptionable || Object.keys(input).map(key => {
7883
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@85"].some(prop => key === prop))
8128
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@87"].some(prop => key === prop))
7884
8129
  return true;
7885
8130
  const value = input[key];
7886
8131
  if (undefined === value)
@@ -8556,199 +8801,6 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
8556
8801
  return Promise.reject(error);
8557
8802
  }
8558
8803
  }
8559
- async getSignInChallenge(payload) {
8560
- try {
8561
- const validateRes = (() => { const $io0 = input => ("Bitcoin" === input.chain || "Ethereum" === input.chain || "Cosmos" === input.chain || "Solana" === input.chain || "Unknown" === input.chain) && "string" === typeof input.address; const $vo0 = (input, _path, _exceptionable = true) => ["Bitcoin" === input.chain || "Ethereum" === input.chain || "Cosmos" === input.chain || "Solana" === input.chain || "Unknown" === input.chain || $report(_exceptionable, {
8562
- path: _path + ".chain",
8563
- expected: "(\"Bitcoin\" | \"Cosmos\" | \"Ethereum\" | \"Solana\" | \"Unknown\")",
8564
- value: input.chain
8565
- }), "string" === typeof input.address || $report(_exceptionable, {
8566
- path: _path + ".address",
8567
- expected: "string",
8568
- value: input.address
8569
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
8570
- if (false === __is(input)) {
8571
- errors = [];
8572
- $report = typia_1.default.validate.report(errors);
8573
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
8574
- path: _path + "",
8575
- expected: "GetSignInChallengePayload",
8576
- value: input
8577
- })) && $vo0(input, _path + "", true) || $report(true, {
8578
- path: _path + "",
8579
- expected: "GetSignInChallengePayload",
8580
- value: input
8581
- }))(input, "$input", true);
8582
- const success = 0 === errors.length;
8583
- return {
8584
- success,
8585
- errors,
8586
- data: success ? input : undefined
8587
- };
8588
- }
8589
- return {
8590
- success: true,
8591
- errors: [],
8592
- data: input
8593
- };
8594
- }; })()(payload ?? {});
8595
- if (!validateRes.success) {
8596
- throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
8597
- }
8598
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.GetSignInChallengeRoute()}`, payload);
8599
- return new requests_js_1.GetSignInChallengeSuccessResponse(response.data).convert(this.ConvertFunction);
8600
- }
8601
- catch (error) {
8602
- await this.handleApiError(error);
8603
- return Promise.reject(error);
8604
- }
8605
- }
8606
- async verifySignIn(payload) {
8607
- try {
8608
- const validateRes = (() => { const $io0 = input => "string" === typeof input.message && "string" === typeof input.signature && (undefined === input.altSigner || "string" === typeof input.altSigner) && (undefined === input.socialSignIn || "string" === typeof input.socialSignIn) && (undefined === input.publicKey || "string" === typeof input.publicKey); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
8609
- path: _path + ".message",
8610
- expected: "string",
8611
- value: input.message
8612
- }), "string" === typeof input.signature || $report(_exceptionable, {
8613
- path: _path + ".signature",
8614
- expected: "string",
8615
- value: input.signature
8616
- }), undefined === input.altSigner || "string" === typeof input.altSigner || $report(_exceptionable, {
8617
- path: _path + ".altSigner",
8618
- expected: "(string | undefined)",
8619
- value: input.altSigner
8620
- }), undefined === input.socialSignIn || "string" === typeof input.socialSignIn || $report(_exceptionable, {
8621
- path: _path + ".socialSignIn",
8622
- expected: "(string | undefined)",
8623
- value: input.socialSignIn
8624
- }), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
8625
- path: _path + ".publicKey",
8626
- expected: "(string | undefined)",
8627
- value: input.publicKey
8628
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
8629
- if (false === __is(input)) {
8630
- errors = [];
8631
- $report = typia_1.default.validate.report(errors);
8632
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
8633
- path: _path + "",
8634
- expected: "VerifySignInPayload",
8635
- value: input
8636
- })) && $vo0(input, _path + "", true) || $report(true, {
8637
- path: _path + "",
8638
- expected: "VerifySignInPayload",
8639
- value: input
8640
- }))(input, "$input", true);
8641
- const success = 0 === errors.length;
8642
- return {
8643
- success,
8644
- errors,
8645
- data: success ? input : undefined
8646
- };
8647
- }
8648
- return {
8649
- success: true,
8650
- errors: [],
8651
- data: input
8652
- };
8653
- }; })()(payload ?? {});
8654
- if (!validateRes.success) {
8655
- throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
8656
- }
8657
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.VerifySignInRoute()}`, payload);
8658
- return new requests_js_1.VerifySignInSuccessResponse(response.data);
8659
- }
8660
- catch (error) {
8661
- await this.handleApiError(error);
8662
- return Promise.reject(error);
8663
- }
8664
- }
8665
- async signOut(payload) {
8666
- try {
8667
- const validateRes = (() => { const $io0 = input => "boolean" === typeof input.signOutBlockin && (undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord) && (undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter) && (undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle) && (undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub) && (undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch) && (undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava) && (undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube) && (undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit) && (undefined === input.signOutTelegram || "boolean" === typeof input.signOutTelegram) && (undefined === input.signOutFarcaster || "boolean" === typeof input.signOutFarcaster) && (undefined === input.signOutSlack || "boolean" === typeof input.signOutSlack); const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.signOutBlockin || $report(_exceptionable, {
8668
- path: _path + ".signOutBlockin",
8669
- expected: "boolean",
8670
- value: input.signOutBlockin
8671
- }), undefined === input.signOutDiscord || "boolean" === typeof input.signOutDiscord || $report(_exceptionable, {
8672
- path: _path + ".signOutDiscord",
8673
- expected: "(boolean | undefined)",
8674
- value: input.signOutDiscord
8675
- }), undefined === input.signOutTwitter || "boolean" === typeof input.signOutTwitter || $report(_exceptionable, {
8676
- path: _path + ".signOutTwitter",
8677
- expected: "(boolean | undefined)",
8678
- value: input.signOutTwitter
8679
- }), undefined === input.signOutGoogle || "boolean" === typeof input.signOutGoogle || $report(_exceptionable, {
8680
- path: _path + ".signOutGoogle",
8681
- expected: "(boolean | undefined)",
8682
- value: input.signOutGoogle
8683
- }), undefined === input.signOutGithub || "boolean" === typeof input.signOutGithub || $report(_exceptionable, {
8684
- path: _path + ".signOutGithub",
8685
- expected: "(boolean | undefined)",
8686
- value: input.signOutGithub
8687
- }), undefined === input.signOutTwitch || "boolean" === typeof input.signOutTwitch || $report(_exceptionable, {
8688
- path: _path + ".signOutTwitch",
8689
- expected: "(boolean | undefined)",
8690
- value: input.signOutTwitch
8691
- }), undefined === input.signOutStrava || "boolean" === typeof input.signOutStrava || $report(_exceptionable, {
8692
- path: _path + ".signOutStrava",
8693
- expected: "(boolean | undefined)",
8694
- value: input.signOutStrava
8695
- }), undefined === input.signOutYoutube || "boolean" === typeof input.signOutYoutube || $report(_exceptionable, {
8696
- path: _path + ".signOutYoutube",
8697
- expected: "(boolean | undefined)",
8698
- value: input.signOutYoutube
8699
- }), undefined === input.signOutReddit || "boolean" === typeof input.signOutReddit || $report(_exceptionable, {
8700
- path: _path + ".signOutReddit",
8701
- expected: "(boolean | undefined)",
8702
- value: input.signOutReddit
8703
- }), undefined === input.signOutTelegram || "boolean" === typeof input.signOutTelegram || $report(_exceptionable, {
8704
- path: _path + ".signOutTelegram",
8705
- expected: "(boolean | undefined)",
8706
- value: input.signOutTelegram
8707
- }), undefined === input.signOutFarcaster || "boolean" === typeof input.signOutFarcaster || $report(_exceptionable, {
8708
- path: _path + ".signOutFarcaster",
8709
- expected: "(boolean | undefined)",
8710
- value: input.signOutFarcaster
8711
- }), undefined === input.signOutSlack || "boolean" === typeof input.signOutSlack || $report(_exceptionable, {
8712
- path: _path + ".signOutSlack",
8713
- expected: "(boolean | undefined)",
8714
- value: input.signOutSlack
8715
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
8716
- if (false === __is(input)) {
8717
- errors = [];
8718
- $report = typia_1.default.validate.report(errors);
8719
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
8720
- path: _path + "",
8721
- expected: "SignOutPayload",
8722
- value: input
8723
- })) && $vo0(input, _path + "", true) || $report(true, {
8724
- path: _path + "",
8725
- expected: "SignOutPayload",
8726
- value: input
8727
- }))(input, "$input", true);
8728
- const success = 0 === errors.length;
8729
- return {
8730
- success,
8731
- errors,
8732
- data: success ? input : undefined
8733
- };
8734
- }
8735
- return {
8736
- success: true,
8737
- errors: [],
8738
- data: input
8739
- };
8740
- }; })()(payload ?? {});
8741
- if (!validateRes.success) {
8742
- throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
8743
- }
8744
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.SignOutRoute()}`, payload);
8745
- return new requests_js_1.SignOutSuccessResponse(response.data);
8746
- }
8747
- catch (error) {
8748
- await this.handleApiError(error);
8749
- return Promise.reject(error);
8750
- }
8751
- }
8752
8804
  async createPaymentIntent(payload) {
8753
8805
  try {
8754
8806
  const response = await this.axios.post(`${this.BACKEND_URL}${routes_js_1.BitBadgesApiRoutes.CreatePaymentIntentRoute()}`, payload);