bitbadgesjs-sdk 0.5.4 → 0.5.6

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 (31) hide show
  1. package/dist/cjs/api-indexer/BitBadgesApi.js +92 -68
  2. package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
  3. package/dist/cjs/api-indexer/docs/docs.d.ts +2 -0
  4. package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
  5. package/dist/cjs/api-indexer/docs/docs.js +1 -0
  6. package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
  7. package/dist/cjs/api-indexer/docs/interfaces.d.ts +1 -0
  8. package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
  9. package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
  10. package/dist/cjs/core/secrets.d.ts +1 -0
  11. package/dist/cjs/core/secrets.d.ts.map +1 -1
  12. package/dist/cjs/core/secrets.js +1 -0
  13. package/dist/cjs/core/secrets.js.map +1 -1
  14. package/dist/cjs/interfaces/badges/core.d.ts +1 -0
  15. package/dist/cjs/interfaces/badges/core.d.ts.map +1 -1
  16. package/dist/esm/api-indexer/BitBadgesApi.js +92 -68
  17. package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
  18. package/dist/esm/api-indexer/docs/docs.d.ts +2 -0
  19. package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
  20. package/dist/esm/api-indexer/docs/docs.js +2 -0
  21. package/dist/esm/api-indexer/docs/docs.js.map +1 -1
  22. package/dist/esm/api-indexer/docs/interfaces.d.ts +1 -0
  23. package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
  24. package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
  25. package/dist/esm/core/secrets.d.ts +1 -0
  26. package/dist/esm/core/secrets.d.ts.map +1 -1
  27. package/dist/esm/core/secrets.js +2 -0
  28. package/dist/esm/core/secrets.js.map +1 -1
  29. package/dist/esm/interfaces/badges/core.d.ts +1 -0
  30. package/dist/esm/interfaces/badges/core.d.ts.map +1 -1
  31. package/package.json +1 -1
@@ -1562,7 +1562,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1562
1562
  }
1563
1563
  async createSIWBBRequest(payload) {
1564
1564
  try {
1565
- const validateRes = (() => { const $io0 = input => "string" === typeof input.response_type && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.image || "string" === typeof input.image) && (undefined === input.attestationsPresentations || Array.isArray(input.attestationsPresentations) && input.attestationsPresentations.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && "string" === typeof input.client_id && (undefined === input.otherSignIns || Array.isArray(input.otherSignIns) && input.otherSignIns.every(elem => "discord" === elem || "github" === elem || "google" === elem || "twitter" === elem)) && (undefined === input.redirect_uri || "string" === typeof input.redirect_uri) && (undefined === input.state || "string" === typeof input.state); const $io1 = input => "string" === typeof input.scopeName && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io2(input.options)); const $io2 = input => true; const $io3 = input => Array.isArray(input.updateHistory) && input.updateHistory.every(elem => "object" === typeof elem && null !== elem && $io4(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) && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io5(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)) && ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io6(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)) && (Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io7(elem))); const $io4 = 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 $io5 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io6 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey) && (undefined === input.isDerived || "boolean" === typeof input.isDerived); const $io7 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.response_type || $report(_exceptionable, {
1565
+ const validateRes = (() => { const $io0 = input => "string" === typeof input.response_type && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.image || "string" === typeof input.image) && (undefined === input.attestationsPresentations || Array.isArray(input.attestationsPresentations) && input.attestationsPresentations.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && "string" === typeof input.client_id && (undefined === input.otherSignIns || Array.isArray(input.otherSignIns) && input.otherSignIns.every(elem => "discord" === elem || "github" === elem || "google" === elem || "twitter" === elem)) && (undefined === input.redirect_uri || "string" === typeof input.redirect_uri) && (undefined === input.state || "string" === typeof input.state); const $io1 = input => "string" === typeof input.scopeName && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io2(input.options)); const $io2 = input => true; const $io3 = input => Array.isArray(input.updateHistory) && input.updateHistory.every(elem => "object" === typeof elem && null !== elem && $io4(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) && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io5(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)) && ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io6(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) && $io7(elem))); const $io4 = 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 $io5 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io6 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey) && (undefined === input.isDerived || "boolean" === typeof input.isDerived); const $io7 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.response_type || $report(_exceptionable, {
1566
1566
  path: _path + ".response_type",
1567
1567
  expected: "string",
1568
1568
  value: input.response_type
@@ -1570,12 +1570,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1570
1570
  path: _path + ".scopes",
1571
1571
  expected: "Array<OAuthScopeDetails>",
1572
1572
  value: input.scopes
1573
- })) && input.scopes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1574
- path: _path + ".scopes[" + _index9 + "]",
1573
+ })) && input.scopes.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1574
+ path: _path + ".scopes[" + _index10 + "]",
1575
1575
  expected: "OAuthScopeDetails",
1576
1576
  value: elem
1577
- })) && $vo1(elem, _path + ".scopes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
1578
- path: _path + ".scopes[" + _index9 + "]",
1577
+ })) && $vo1(elem, _path + ".scopes[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
1578
+ path: _path + ".scopes[" + _index10 + "]",
1579
1579
  expected: "OAuthScopeDetails",
1580
1580
  value: elem
1581
1581
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1598,12 +1598,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1598
1598
  path: _path + ".attestationsPresentations",
1599
1599
  expected: "(Array<iAttestationsProof<NumberType>> | undefined)",
1600
1600
  value: input.attestationsPresentations
1601
- })) && input.attestationsPresentations.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1602
- path: _path + ".attestationsPresentations[" + _index10 + "]",
1601
+ })) && input.attestationsPresentations.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1602
+ path: _path + ".attestationsPresentations[" + _index11 + "]",
1603
1603
  expected: "iAttestationsProof<NumberType>",
1604
1604
  value: elem
1605
- })) && $vo3(elem, _path + ".attestationsPresentations[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
1606
- path: _path + ".attestationsPresentations[" + _index10 + "]",
1605
+ })) && $vo3(elem, _path + ".attestationsPresentations[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
1606
+ path: _path + ".attestationsPresentations[" + _index11 + "]",
1607
1607
  expected: "iAttestationsProof<NumberType>",
1608
1608
  value: elem
1609
1609
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1618,8 +1618,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1618
1618
  path: _path + ".otherSignIns",
1619
1619
  expected: "(Array<\"discord\" | \"github\" | \"google\" | \"twitter\"> | undefined)",
1620
1620
  value: input.otherSignIns
1621
- })) && input.otherSignIns.map((elem, _index11) => "discord" === elem || "github" === elem || "google" === elem || "twitter" === elem || $report(_exceptionable, {
1622
- path: _path + ".otherSignIns[" + _index11 + "]",
1621
+ })) && input.otherSignIns.map((elem, _index12) => "discord" === elem || "github" === elem || "google" === elem || "twitter" === elem || $report(_exceptionable, {
1622
+ path: _path + ".otherSignIns[" + _index12 + "]",
1623
1623
  expected: "(\"discord\" | \"github\" | \"google\" | \"twitter\")",
1624
1624
  value: elem
1625
1625
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1650,12 +1650,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1650
1650
  path: _path + ".updateHistory",
1651
1651
  expected: "Array<iUpdateHistory<NumberType>>",
1652
1652
  value: input.updateHistory
1653
- })) && input.updateHistory.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1654
- path: _path + ".updateHistory[" + _index12 + "]",
1653
+ })) && input.updateHistory.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1654
+ path: _path + ".updateHistory[" + _index13 + "]",
1655
1655
  expected: "iUpdateHistory<NumberType>",
1656
1656
  value: elem
1657
- })) && $vo4(elem, _path + ".updateHistory[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
1658
- path: _path + ".updateHistory[" + _index12 + "]",
1657
+ })) && $vo4(elem, _path + ".updateHistory[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
1658
+ path: _path + ".updateHistory[" + _index13 + "]",
1659
1659
  expected: "iUpdateHistory<NumberType>",
1660
1660
  value: elem
1661
1661
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1686,8 +1686,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1686
1686
  path: _path + ".entropies",
1687
1687
  expected: "Array<string>",
1688
1688
  value: input.entropies
1689
- })) && input.entropies.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
1690
- path: _path + ".entropies[" + _index13 + "]",
1689
+ })) && input.entropies.map((elem, _index14) => "string" === typeof elem || $report(_exceptionable, {
1690
+ path: _path + ".entropies[" + _index14 + "]",
1691
1691
  expected: "string",
1692
1692
  value: elem
1693
1693
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1726,8 +1726,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1726
1726
  path: _path + ".messages",
1727
1727
  expected: "Array<string>",
1728
1728
  value: input.messages
1729
- })) && input.messages.map((elem, _index14) => "string" === typeof elem || $report(_exceptionable, {
1730
- path: _path + ".messages[" + _index14 + "]",
1729
+ })) && input.messages.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
1730
+ path: _path + ".messages[" + _index15 + "]",
1731
1731
  expected: "string",
1732
1732
  value: elem
1733
1733
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1758,24 +1758,36 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1758
1758
  path: _path + ".holders",
1759
1759
  expected: "Array<string>",
1760
1760
  value: input.holders
1761
- })) && input.holders.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
1762
- path: _path + ".holders[" + _index15 + "]",
1761
+ })) && input.holders.map((elem, _index16) => "string" === typeof elem || $report(_exceptionable, {
1762
+ path: _path + ".holders[" + _index16 + "]",
1763
1763
  expected: "string",
1764
1764
  value: elem
1765
1765
  })).every(flag => flag) || $report(_exceptionable, {
1766
1766
  path: _path + ".holders",
1767
1767
  expected: "Array<string>",
1768
1768
  value: input.holders
1769
+ }), undefined === input.allHolders || (Array.isArray(input.allHolders) || $report(_exceptionable, {
1770
+ path: _path + ".allHolders",
1771
+ expected: "(Array<string> | undefined)",
1772
+ value: input.allHolders
1773
+ })) && input.allHolders.map((elem, _index17) => "string" === typeof elem || $report(_exceptionable, {
1774
+ path: _path + ".allHolders[" + _index17 + "]",
1775
+ expected: "string",
1776
+ value: elem
1777
+ })).every(flag => flag) || $report(_exceptionable, {
1778
+ path: _path + ".allHolders",
1779
+ expected: "(Array<string> | undefined)",
1780
+ value: input.allHolders
1769
1781
  }), (Array.isArray(input.anchors) || $report(_exceptionable, {
1770
1782
  path: _path + ".anchors",
1771
1783
  expected: "Array<__type>",
1772
1784
  value: input.anchors
1773
- })) && input.anchors.map((elem, _index16) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
1774
- path: _path + ".anchors[" + _index16 + "]",
1785
+ })) && input.anchors.map((elem, _index18) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
1786
+ path: _path + ".anchors[" + _index18 + "]",
1775
1787
  expected: "__type.o2",
1776
1788
  value: elem
1777
- })) && $vo7(elem, _path + ".anchors[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
1778
- path: _path + ".anchors[" + _index16 + "]",
1789
+ })) && $vo7(elem, _path + ".anchors[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
1790
+ path: _path + ".anchors[" + _index18 + "]",
1779
1791
  expected: "__type.o2",
1780
1792
  value: elem
1781
1793
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1963,7 +1975,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1963
1975
  }
1964
1976
  async verifySIWBBRequest(payload) {
1965
1977
  try {
1966
- 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.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) && ("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)) && ("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)) && (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 => (() => {
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.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) && ("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)) && ("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 => (() => {
1967
1979
  if (undefined !== input.$and)
1968
1980
  return $io3(input);
1969
1981
  else if (undefined !== input.$or)
@@ -1984,12 +1996,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
1984
1996
  path: _path + ".attestationsPresentations",
1985
1997
  expected: "(Array<iAttestationsProof<NumberType>> | undefined)",
1986
1998
  value: input.attestationsPresentations
1987
- })) && input.attestationsPresentations.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1988
- path: _path + ".attestationsPresentations[" + _index13 + "]",
1999
+ })) && input.attestationsPresentations.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2000
+ path: _path + ".attestationsPresentations[" + _index14 + "]",
1989
2001
  expected: "iAttestationsProof<NumberType>",
1990
2002
  value: elem
1991
- })) && $vo10(elem, _path + ".attestationsPresentations[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
1992
- path: _path + ".attestationsPresentations[" + _index13 + "]",
2003
+ })) && $vo10(elem, _path + ".attestationsPresentations[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
2004
+ path: _path + ".attestationsPresentations[" + _index14 + "]",
1993
2005
  expected: "iAttestationsProof<NumberType>",
1994
2006
  value: elem
1995
2007
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2100,8 +2112,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
2100
2112
  path: _path + ".resources",
2101
2113
  expected: "(Array<string> | undefined)",
2102
2114
  value: input.resources
2103
- })) && input.resources.map((elem, _index14) => "string" === typeof elem || $report(_exceptionable, {
2104
- path: _path + ".resources[" + _index14 + "]",
2115
+ })) && input.resources.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
2116
+ path: _path + ".resources[" + _index15 + "]",
2105
2117
  expected: "string",
2106
2118
  value: elem
2107
2119
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2120,12 +2132,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
2120
2132
  path: _path + ".$and",
2121
2133
  expected: "Array<AssetConditionGroup<NumberType>>",
2122
2134
  value: input.$and
2123
- })) && input.$and.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2124
- path: _path + ".$and[" + _index15 + "]",
2135
+ })) && input.$and.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2136
+ path: _path + ".$and[" + _index16 + "]",
2125
2137
  expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
2126
2138
  value: elem
2127
- })) && $vu0(elem, _path + ".$and[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
2128
- path: _path + ".$and[" + _index15 + "]",
2139
+ })) && $vu0(elem, _path + ".$and[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
2140
+ path: _path + ".$and[" + _index16 + "]",
2129
2141
  expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
2130
2142
  value: elem
2131
2143
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2136,12 +2148,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
2136
2148
  path: _path + ".$or",
2137
2149
  expected: "Array<AssetConditionGroup<NumberType>>",
2138
2150
  value: input.$or
2139
- })) && input.$or.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2140
- path: _path + ".$or[" + _index16 + "]",
2151
+ })) && input.$or.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2152
+ path: _path + ".$or[" + _index17 + "]",
2141
2153
  expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
2142
2154
  value: elem
2143
- })) && $vu0(elem, _path + ".$or[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
2144
- path: _path + ".$or[" + _index16 + "]",
2155
+ })) && $vu0(elem, _path + ".$or[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
2156
+ path: _path + ".$or[" + _index17 + "]",
2145
2157
  expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
2146
2158
  value: elem
2147
2159
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2152,12 +2164,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
2152
2164
  path: _path + ".assets",
2153
2165
  expected: "Array<AssetDetails<NumberType>>",
2154
2166
  value: input.assets
2155
- })) && input.assets.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2156
- path: _path + ".assets[" + _index17 + "]",
2167
+ })) && input.assets.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2168
+ path: _path + ".assets[" + _index18 + "]",
2157
2169
  expected: "AssetDetails<NumberType>",
2158
2170
  value: elem
2159
- })) && $vo6(elem, _path + ".assets[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
2160
- path: _path + ".assets[" + _index17 + "]",
2171
+ })) && $vo6(elem, _path + ".assets[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
2172
+ path: _path + ".assets[" + _index18 + "]",
2161
2173
  expected: "AssetDetails<NumberType>",
2162
2174
  value: elem
2163
2175
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2184,20 +2196,20 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
2184
2196
  path: _path + ".assetIds",
2185
2197
  expected: "Array<string | UintRange<NumberType>>",
2186
2198
  value: input.assetIds
2187
- })) && input.assetIds.map((elem, _index18) => (null !== elem || $report(_exceptionable, {
2188
- path: _path + ".assetIds[" + _index18 + "]",
2199
+ })) && input.assetIds.map((elem, _index19) => (null !== elem || $report(_exceptionable, {
2200
+ path: _path + ".assetIds[" + _index19 + "]",
2189
2201
  expected: "(UintRange<NumberType> | string)",
2190
2202
  value: elem
2191
2203
  })) && (undefined !== elem || $report(_exceptionable, {
2192
- path: _path + ".assetIds[" + _index18 + "]",
2204
+ path: _path + ".assetIds[" + _index19 + "]",
2193
2205
  expected: "(UintRange<NumberType> | string)",
2194
2206
  value: elem
2195
2207
  })) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2196
- path: _path + ".assetIds[" + _index18 + "]",
2208
+ path: _path + ".assetIds[" + _index19 + "]",
2197
2209
  expected: "(UintRange<NumberType> | string)",
2198
2210
  value: elem
2199
- })) && $vo7(elem, _path + ".assetIds[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
2200
- path: _path + ".assetIds[" + _index18 + "]",
2211
+ })) && $vo7(elem, _path + ".assetIds[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
2212
+ path: _path + ".assetIds[" + _index19 + "]",
2201
2213
  expected: "(UintRange<NumberType> | string)",
2202
2214
  value: elem
2203
2215
  }))).every(flag => flag) || $report(_exceptionable, {
@@ -2208,12 +2220,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
2208
2220
  path: _path + ".ownershipTimes",
2209
2221
  expected: "Array<UintRange<NumberType>>",
2210
2222
  value: input.ownershipTimes
2211
- })) && input.ownershipTimes.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2212
- path: _path + ".ownershipTimes[" + _index19 + "]",
2223
+ })) && input.ownershipTimes.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2224
+ path: _path + ".ownershipTimes[" + _index20 + "]",
2213
2225
  expected: "UintRange<NumberType>",
2214
2226
  value: elem
2215
- })) && $vo7(elem, _path + ".ownershipTimes[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
2216
- path: _path + ".ownershipTimes[" + _index19 + "]",
2227
+ })) && $vo7(elem, _path + ".ownershipTimes[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
2228
+ path: _path + ".ownershipTimes[" + _index20 + "]",
2217
2229
  expected: "UintRange<NumberType>",
2218
2230
  value: elem
2219
2231
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2248,12 +2260,12 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
2248
2260
  path: _path + ".updateHistory",
2249
2261
  expected: "Array<iUpdateHistory<NumberType>>",
2250
2262
  value: input.updateHistory
2251
- })) && input.updateHistory.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2252
- path: _path + ".updateHistory[" + _index20 + "]",
2263
+ })) && input.updateHistory.map((elem, _index21) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2264
+ path: _path + ".updateHistory[" + _index21 + "]",
2253
2265
  expected: "iUpdateHistory<NumberType>",
2254
2266
  value: elem
2255
- })) && $vo11(elem, _path + ".updateHistory[" + _index20 + "]", true && _exceptionable) || $report(_exceptionable, {
2256
- path: _path + ".updateHistory[" + _index20 + "]",
2267
+ })) && $vo11(elem, _path + ".updateHistory[" + _index21 + "]", true && _exceptionable) || $report(_exceptionable, {
2268
+ path: _path + ".updateHistory[" + _index21 + "]",
2257
2269
  expected: "iUpdateHistory<NumberType>",
2258
2270
  value: elem
2259
2271
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2284,8 +2296,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
2284
2296
  path: _path + ".entropies",
2285
2297
  expected: "Array<string>",
2286
2298
  value: input.entropies
2287
- })) && input.entropies.map((elem, _index21) => "string" === typeof elem || $report(_exceptionable, {
2288
- path: _path + ".entropies[" + _index21 + "]",
2299
+ })) && input.entropies.map((elem, _index22) => "string" === typeof elem || $report(_exceptionable, {
2300
+ path: _path + ".entropies[" + _index22 + "]",
2289
2301
  expected: "string",
2290
2302
  value: elem
2291
2303
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2324,8 +2336,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
2324
2336
  path: _path + ".messages",
2325
2337
  expected: "Array<string>",
2326
2338
  value: input.messages
2327
- })) && input.messages.map((elem, _index22) => "string" === typeof elem || $report(_exceptionable, {
2328
- path: _path + ".messages[" + _index22 + "]",
2339
+ })) && input.messages.map((elem, _index23) => "string" === typeof elem || $report(_exceptionable, {
2340
+ path: _path + ".messages[" + _index23 + "]",
2329
2341
  expected: "string",
2330
2342
  value: elem
2331
2343
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2356,24 +2368,36 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
2356
2368
  path: _path + ".holders",
2357
2369
  expected: "Array<string>",
2358
2370
  value: input.holders
2359
- })) && input.holders.map((elem, _index23) => "string" === typeof elem || $report(_exceptionable, {
2360
- path: _path + ".holders[" + _index23 + "]",
2371
+ })) && input.holders.map((elem, _index24) => "string" === typeof elem || $report(_exceptionable, {
2372
+ path: _path + ".holders[" + _index24 + "]",
2361
2373
  expected: "string",
2362
2374
  value: elem
2363
2375
  })).every(flag => flag) || $report(_exceptionable, {
2364
2376
  path: _path + ".holders",
2365
2377
  expected: "Array<string>",
2366
2378
  value: input.holders
2379
+ }), undefined === input.allHolders || (Array.isArray(input.allHolders) || $report(_exceptionable, {
2380
+ path: _path + ".allHolders",
2381
+ expected: "(Array<string> | undefined)",
2382
+ value: input.allHolders
2383
+ })) && input.allHolders.map((elem, _index25) => "string" === typeof elem || $report(_exceptionable, {
2384
+ path: _path + ".allHolders[" + _index25 + "]",
2385
+ expected: "string",
2386
+ value: elem
2387
+ })).every(flag => flag) || $report(_exceptionable, {
2388
+ path: _path + ".allHolders",
2389
+ expected: "(Array<string> | undefined)",
2390
+ value: input.allHolders
2367
2391
  }), (Array.isArray(input.anchors) || $report(_exceptionable, {
2368
2392
  path: _path + ".anchors",
2369
2393
  expected: "Array<__type>",
2370
2394
  value: input.anchors
2371
- })) && input.anchors.map((elem, _index24) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
2372
- path: _path + ".anchors[" + _index24 + "]",
2395
+ })) && input.anchors.map((elem, _index26) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
2396
+ path: _path + ".anchors[" + _index26 + "]",
2373
2397
  expected: "__type.o3",
2374
2398
  value: elem
2375
- })) && $vo14(elem, _path + ".anchors[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
2376
- path: _path + ".anchors[" + _index24 + "]",
2399
+ })) && $vo14(elem, _path + ".anchors[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
2400
+ path: _path + ".anchors[" + _index26 + "]",
2377
2401
  expected: "__type.o3",
2378
2402
  value: elem
2379
2403
  })).every(flag => flag) || $report(_exceptionable, {