bitbadgesjs-sdk 0.5.2 → 0.5.4

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 (65) hide show
  1. package/dist/cjs/api-indexer/BitBadgesApi.d.ts +2 -5
  2. package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
  3. package/dist/cjs/api-indexer/BitBadgesApi.js +304 -459
  4. package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
  5. package/dist/cjs/api-indexer/BitBadgesUserInfo.d.ts +4 -8
  6. package/dist/cjs/api-indexer/BitBadgesUserInfo.d.ts.map +1 -1
  7. package/dist/cjs/api-indexer/BitBadgesUserInfo.js +4 -16
  8. package/dist/cjs/api-indexer/BitBadgesUserInfo.js.map +1 -1
  9. package/dist/cjs/api-indexer/docs/docs.d.ts +7 -33
  10. package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
  11. package/dist/cjs/api-indexer/docs/docs.js +5 -30
  12. package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
  13. package/dist/cjs/api-indexer/docs/interfaces.d.ts +0 -3
  14. package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
  15. package/dist/cjs/api-indexer/requests/requests.d.ts +22 -58
  16. package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
  17. package/dist/cjs/api-indexer/requests/requests.js +12 -21
  18. package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
  19. package/dist/cjs/api-indexer/requests/routes.d.ts +0 -2
  20. package/dist/cjs/api-indexer/requests/routes.d.ts.map +1 -1
  21. package/dist/cjs/api-indexer/requests/routes.js +0 -2
  22. package/dist/cjs/api-indexer/requests/routes.js.map +1 -1
  23. package/dist/cjs/core/attestations.d.ts +17 -3
  24. package/dist/cjs/core/attestations.d.ts.map +1 -1
  25. package/dist/cjs/core/attestations.js +10 -12
  26. package/dist/cjs/core/attestations.js.map +1 -1
  27. package/dist/cjs/core/secrets.d.ts +14 -34
  28. package/dist/cjs/core/secrets.d.ts.map +1 -1
  29. package/dist/cjs/core/secrets.js +17 -28
  30. package/dist/cjs/core/secrets.js.map +1 -1
  31. package/dist/cjs/interfaces/badges/core.d.ts +8 -30
  32. package/dist/cjs/interfaces/badges/core.d.ts.map +1 -1
  33. package/dist/esm/api-indexer/BitBadgesApi.d.ts +2 -5
  34. package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
  35. package/dist/esm/api-indexer/BitBadgesApi.js +305 -460
  36. package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
  37. package/dist/esm/api-indexer/BitBadgesUserInfo.d.ts +4 -8
  38. package/dist/esm/api-indexer/BitBadgesUserInfo.d.ts.map +1 -1
  39. package/dist/esm/api-indexer/BitBadgesUserInfo.js +5 -18
  40. package/dist/esm/api-indexer/BitBadgesUserInfo.js.map +1 -1
  41. package/dist/esm/api-indexer/docs/docs.d.ts +7 -33
  42. package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
  43. package/dist/esm/api-indexer/docs/docs.js +8 -45
  44. package/dist/esm/api-indexer/docs/docs.js.map +1 -1
  45. package/dist/esm/api-indexer/docs/interfaces.d.ts +0 -3
  46. package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
  47. package/dist/esm/api-indexer/requests/requests.d.ts +22 -58
  48. package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
  49. package/dist/esm/api-indexer/requests/requests.js +12 -18
  50. package/dist/esm/api-indexer/requests/requests.js.map +1 -1
  51. package/dist/esm/api-indexer/requests/routes.d.ts +0 -2
  52. package/dist/esm/api-indexer/requests/routes.d.ts.map +1 -1
  53. package/dist/esm/api-indexer/requests/routes.js +0 -2
  54. package/dist/esm/api-indexer/requests/routes.js.map +1 -1
  55. package/dist/esm/core/attestations.d.ts +17 -3
  56. package/dist/esm/core/attestations.d.ts.map +1 -1
  57. package/dist/esm/core/attestations.js +11 -13
  58. package/dist/esm/core/attestations.js.map +1 -1
  59. package/dist/esm/core/secrets.d.ts +14 -34
  60. package/dist/esm/core/secrets.d.ts.map +1 -1
  61. package/dist/esm/core/secrets.js +23 -42
  62. package/dist/esm/core/secrets.js.map +1 -1
  63. package/dist/esm/interfaces/badges/core.d.ts +8 -30
  64. package/dist/esm/interfaces/badges/core.d.ts.map +1 -1
  65. package/package.json +1 -1
@@ -5,7 +5,7 @@ import { BitBadgesUserInfo } from './BitBadgesUserInfo.js';
5
5
  import { BaseBitBadgesApi } from './base.js';
6
6
  import { FilterSuggestionsSuccessResponse } from './requests/collections.js';
7
7
  import { GetMapValuesSuccessResponse, GetMapsSuccessResponse } from './requests/maps.js';
8
- import { AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStorageSuccessResponse, AddToIpfsSuccessResponse, BroadcastTxSuccessResponse, CheckSignInStatusSuccessResponse, CompleteClaimSuccessResponse, CreateAttestationProofSuccessResponse, CreateAttestationSuccessResponse, CreateClaimSuccessResponse, CreateDeveloperAppSuccessResponse, CreateInternalActionSuccessResponse, CreatePaymentIntentSuccessResponse, CreatePluginSuccessResponse, CreateSIWBBRequestSuccessResponse, DeleteAttestationProofSuccessResponse, DeleteAttestationSuccessResponse, DeleteClaimSuccessResponse, DeleteDeveloperAppSuccessResponse, DeleteInternalActionSuccessResponse, DeletePluginSuccessResponse, DeleteSIWBBRequestSuccessResponse, ExchangeSIWBBAuthorizationCodeSuccessResponse, FetchMetadataDirectlySuccessResponse, GenerateAppleWalletPassSuccessResponse, GenerateGoogleWalletSuccessResponse, GenericBlockinVerifySuccessResponse, GenericVerifyAssetsSuccessResponse, GetActiveAuthorizationsSuccessResponse, GetAttestationProofSuccessResponse, GetAttestationSuccessResponse, GetBrowseCollectionsSuccessResponse, GetClaimAlertsForCollectionSuccessResponse, GetClaimAttemptStatusSuccessResponse, GetClaimsSuccessResponse, GetDeveloperAppSuccessResponse, GetGatedContentForClaimSuccessResponse, GetInternalActionSuccessResponse, GetPluginSuccessResponse, GetReservedClaimCodesSuccessResponse, GetSIWBBRequestsForDeveloperAppSuccessResponse, GetSearchSuccessResponse, GetSignInChallengeSuccessResponse, GetStatusSuccessResponse, GetTokensFromFaucetSuccessResponse, OauthRevokeSuccessResponse, RotateSIWBBRequestSuccessResponse, SendClaimAlertsSuccessResponse, SignOutSuccessResponse, SimulateClaimSuccessResponse, SimulateTxSuccessResponse, UpdateAccountInfoSuccessResponse, UpdateAttestationSuccessResponse, UpdateClaimSuccessResponse, UpdateDeveloperAppSuccessResponse, UpdateInternalActionSuccessResponse, UpdatePluginSuccessResponse, VerifySignInSuccessResponse } from './requests/requests.js';
8
+ import { AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStorageSuccessResponse, AddToIpfsSuccessResponse, BroadcastTxSuccessResponse, CheckSignInStatusSuccessResponse, CompleteClaimSuccessResponse, CreateAttestationSuccessResponse, CreateClaimSuccessResponse, CreateDeveloperAppSuccessResponse, CreateInternalActionSuccessResponse, CreatePaymentIntentSuccessResponse, CreatePluginSuccessResponse, CreateSIWBBRequestSuccessResponse, DeleteAttestationSuccessResponse, DeleteClaimSuccessResponse, DeleteDeveloperAppSuccessResponse, DeleteInternalActionSuccessResponse, DeletePluginSuccessResponse, DeleteSIWBBRequestSuccessResponse, ExchangeSIWBBAuthorizationCodeSuccessResponse, FetchMetadataDirectlySuccessResponse, GenerateAppleWalletPassSuccessResponse, GenerateGoogleWalletSuccessResponse, GenericBlockinVerifySuccessResponse, GenericVerifyAssetsSuccessResponse, GetActiveAuthorizationsSuccessResponse, GetAttestationsSuccessResponse, GetBrowseCollectionsSuccessResponse, GetClaimAlertsForCollectionSuccessResponse, GetClaimAttemptStatusSuccessResponse, GetClaimsSuccessResponse, GetDeveloperAppSuccessResponse, GetGatedContentForClaimSuccessResponse, GetInternalActionSuccessResponse, GetPluginSuccessResponse, GetReservedClaimCodesSuccessResponse, GetSIWBBRequestsForDeveloperAppSuccessResponse, GetSearchSuccessResponse, GetSignInChallengeSuccessResponse, GetStatusSuccessResponse, GetTokensFromFaucetSuccessResponse, OauthRevokeSuccessResponse, RotateSIWBBRequestSuccessResponse, SendClaimAlertsSuccessResponse, SignOutSuccessResponse, SimulateClaimSuccessResponse, SimulateTxSuccessResponse, UpdateAccountInfoSuccessResponse, UpdateAttestationSuccessResponse, UpdateClaimSuccessResponse, UpdateDeveloperAppSuccessResponse, UpdateInternalActionSuccessResponse, UpdatePluginSuccessResponse, VerifySignInSuccessResponse } from './requests/requests.js';
9
9
  import { BitBadgesApiRoutes } from './requests/routes.js';
10
10
  export class BitBadgesAPI extends BaseBitBadgesApi {
11
11
  constructor(apiDetails) {
@@ -1161,7 +1161,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
1161
1161
  }
1162
1162
  async getBrowseCollections(payload) {
1163
1163
  try {
1164
- const validateRes = (() => { const $io0 = input => ("addressLists" === input.type || "badges" === input.type || "collections" === input.type || "maps" === input.type || "attestations" === 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 || "collections" === input.type || "maps" === input.type || "attestations" === input.type || "claims" === input.type || "activity" === input.type || $report(_exceptionable, {
1164
+ 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, {
1165
1165
  path: _path + ".type",
1166
1166
  expected: "(\"activity\" | \"addressLists\" | \"attestations\" | \"badges\" | \"claims\" | \"collections\" | \"maps\")",
1167
1167
  value: input.type
@@ -1556,7 +1556,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
1556
1556
  }
1557
1557
  async createSIWBBRequest(payload) {
1558
1558
  try {
1559
- 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 => (undefined === input.entropies || Array.isArray(input.entropies) && input.entropies.every(elem => "string" === typeof elem)) && (undefined === input.updateHistory || Array.isArray(input.updateHistory) && input.updateHistory.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.createdBy && ("string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt) && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io5(input.proofOfIssuance)) && ("bbs" === input.scheme || "standard" === input.scheme) && (Array.isArray(input.attestationMessages) && input.attestationMessages.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 && (undefined === input.anchors || 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); 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, {
1559
+ 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, {
1560
1560
  path: _path + ".response_type",
1561
1561
  expected: "string",
1562
1562
  value: input.response_type
@@ -1564,12 +1564,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
1564
1564
  path: _path + ".scopes",
1565
1565
  expected: "Array<OAuthScopeDetails>",
1566
1566
  value: input.scopes
1567
- })) && input.scopes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1568
- path: _path + ".scopes[" + _index8 + "]",
1567
+ })) && input.scopes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1568
+ path: _path + ".scopes[" + _index9 + "]",
1569
1569
  expected: "OAuthScopeDetails",
1570
1570
  value: elem
1571
- })) && $vo1(elem, _path + ".scopes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
1572
- path: _path + ".scopes[" + _index8 + "]",
1571
+ })) && $vo1(elem, _path + ".scopes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
1572
+ path: _path + ".scopes[" + _index9 + "]",
1573
1573
  expected: "OAuthScopeDetails",
1574
1574
  value: elem
1575
1575
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1592,12 +1592,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
1592
1592
  path: _path + ".attestationsPresentations",
1593
1593
  expected: "(Array<iAttestationsProof<NumberType>> | undefined)",
1594
1594
  value: input.attestationsPresentations
1595
- })) && input.attestationsPresentations.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1596
- path: _path + ".attestationsPresentations[" + _index9 + "]",
1595
+ })) && input.attestationsPresentations.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1596
+ path: _path + ".attestationsPresentations[" + _index10 + "]",
1597
1597
  expected: "iAttestationsProof<NumberType>",
1598
1598
  value: elem
1599
- })) && $vo3(elem, _path + ".attestationsPresentations[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
1600
- path: _path + ".attestationsPresentations[" + _index9 + "]",
1599
+ })) && $vo3(elem, _path + ".attestationsPresentations[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
1600
+ path: _path + ".attestationsPresentations[" + _index10 + "]",
1601
1601
  expected: "iAttestationsProof<NumberType>",
1602
1602
  value: elem
1603
1603
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1612,8 +1612,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
1612
1612
  path: _path + ".otherSignIns",
1613
1613
  expected: "(Array<\"discord\" | \"github\" | \"google\" | \"twitter\"> | undefined)",
1614
1614
  value: input.otherSignIns
1615
- })) && input.otherSignIns.map((elem, _index10) => "discord" === elem || "github" === elem || "google" === elem || "twitter" === elem || $report(_exceptionable, {
1616
- path: _path + ".otherSignIns[" + _index10 + "]",
1615
+ })) && input.otherSignIns.map((elem, _index11) => "discord" === elem || "github" === elem || "google" === elem || "twitter" === elem || $report(_exceptionable, {
1616
+ path: _path + ".otherSignIns[" + _index11 + "]",
1617
1617
  expected: "(\"discord\" | \"github\" | \"google\" | \"twitter\")",
1618
1618
  value: elem
1619
1619
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1640,21 +1640,9 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
1640
1640
  path: _path + ".options",
1641
1641
  expected: "(object | undefined)",
1642
1642
  value: input.options
1643
- })].every(flag => flag); const $vo2 = (input, _path, _exceptionable = true) => true; const $vo3 = (input, _path, _exceptionable = true) => [undefined === input.entropies || (Array.isArray(input.entropies) || $report(_exceptionable, {
1644
- path: _path + ".entropies",
1645
- expected: "(Array<string> | undefined)",
1646
- value: input.entropies
1647
- })) && input.entropies.map((elem, _index11) => "string" === typeof elem || $report(_exceptionable, {
1648
- path: _path + ".entropies[" + _index11 + "]",
1649
- expected: "string",
1650
- value: elem
1651
- })).every(flag => flag) || $report(_exceptionable, {
1652
- path: _path + ".entropies",
1653
- expected: "(Array<string> | undefined)",
1654
- value: input.entropies
1655
- }), undefined === input.updateHistory || (Array.isArray(input.updateHistory) || $report(_exceptionable, {
1643
+ })].every(flag => flag); const $vo2 = (input, _path, _exceptionable = true) => true; const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.updateHistory) || $report(_exceptionable, {
1656
1644
  path: _path + ".updateHistory",
1657
- expected: "(Array<iUpdateHistory<NumberType>> | undefined)",
1645
+ expected: "Array<iUpdateHistory<NumberType>>",
1658
1646
  value: input.updateHistory
1659
1647
  })) && input.updateHistory.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1660
1648
  path: _path + ".updateHistory[" + _index12 + "]",
@@ -1666,8 +1654,16 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
1666
1654
  value: elem
1667
1655
  })).every(flag => flag) || $report(_exceptionable, {
1668
1656
  path: _path + ".updateHistory",
1669
- expected: "(Array<iUpdateHistory<NumberType>> | undefined)",
1657
+ expected: "Array<iUpdateHistory<NumberType>>",
1670
1658
  value: input.updateHistory
1659
+ }), "string" === typeof input._docId || $report(_exceptionable, {
1660
+ path: _path + "._docId",
1661
+ expected: "string",
1662
+ value: input._docId
1663
+ }), undefined === input._id || "string" === typeof input._id || $report(_exceptionable, {
1664
+ path: _path + "._id",
1665
+ expected: "(string | undefined)",
1666
+ value: input._id
1671
1667
  }), "plaintext" === input.messageFormat || "json" === input.messageFormat || $report(_exceptionable, {
1672
1668
  path: _path + ".messageFormat",
1673
1669
  expected: "(\"json\" | \"plaintext\")",
@@ -1680,6 +1676,22 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
1680
1676
  path: _path + ".createdAt",
1681
1677
  expected: "(bigint | number | string)",
1682
1678
  value: input.createdAt
1679
+ }), (Array.isArray(input.entropies) || $report(_exceptionable, {
1680
+ path: _path + ".entropies",
1681
+ expected: "Array<string>",
1682
+ value: input.entropies
1683
+ })) && input.entropies.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
1684
+ path: _path + ".entropies[" + _index13 + "]",
1685
+ expected: "string",
1686
+ value: elem
1687
+ })).every(flag => flag) || $report(_exceptionable, {
1688
+ path: _path + ".entropies",
1689
+ expected: "Array<string>",
1690
+ value: input.entropies
1691
+ }), undefined === input.publicVisibility || "boolean" === typeof input.publicVisibility || $report(_exceptionable, {
1692
+ path: _path + ".publicVisibility",
1693
+ expected: "(boolean | undefined)",
1694
+ value: input.publicVisibility
1683
1695
  }), ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance || $report(_exceptionable, {
1684
1696
  path: _path + ".proofOfIssuance",
1685
1697
  expected: "__type",
@@ -1688,22 +1700,34 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
1688
1700
  path: _path + ".proofOfIssuance",
1689
1701
  expected: "__type",
1690
1702
  value: input.proofOfIssuance
1691
- }), "bbs" === input.scheme || "standard" === input.scheme || $report(_exceptionable, {
1703
+ }), "string" === typeof input.attestationId || $report(_exceptionable, {
1704
+ path: _path + ".attestationId",
1705
+ expected: "string",
1706
+ value: input.attestationId
1707
+ }), "string" === typeof input.inviteCode || $report(_exceptionable, {
1708
+ path: _path + ".inviteCode",
1709
+ expected: "string",
1710
+ value: input.inviteCode
1711
+ }), "string" === typeof input.scheme || $report(_exceptionable, {
1692
1712
  path: _path + ".scheme",
1693
- expected: "(\"bbs\" | \"standard\")",
1713
+ expected: "string",
1694
1714
  value: input.scheme
1695
- }), (Array.isArray(input.attestationMessages) || $report(_exceptionable, {
1696
- path: _path + ".attestationMessages",
1715
+ }), undefined === input.originalProvider || "string" === typeof input.originalProvider || $report(_exceptionable, {
1716
+ path: _path + ".originalProvider",
1717
+ expected: "(string | undefined)",
1718
+ value: input.originalProvider
1719
+ }), (Array.isArray(input.messages) || $report(_exceptionable, {
1720
+ path: _path + ".messages",
1697
1721
  expected: "Array<string>",
1698
- value: input.attestationMessages
1699
- })) && input.attestationMessages.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
1700
- path: _path + ".attestationMessages[" + _index13 + "]",
1722
+ value: input.messages
1723
+ })) && input.messages.map((elem, _index14) => "string" === typeof elem || $report(_exceptionable, {
1724
+ path: _path + ".messages[" + _index14 + "]",
1701
1725
  expected: "string",
1702
1726
  value: elem
1703
1727
  })).every(flag => flag) || $report(_exceptionable, {
1704
- path: _path + ".attestationMessages",
1728
+ path: _path + ".messages",
1705
1729
  expected: "Array<string>",
1706
- value: input.attestationMessages
1730
+ value: input.messages
1707
1731
  }), ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof || $report(_exceptionable, {
1708
1732
  path: _path + ".dataIntegrityProof",
1709
1733
  expected: "__type.o1",
@@ -1724,21 +1748,33 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
1724
1748
  path: _path + ".description",
1725
1749
  expected: "string",
1726
1750
  value: input.description
1727
- }), undefined === input.anchors || (Array.isArray(input.anchors) || $report(_exceptionable, {
1751
+ }), (Array.isArray(input.holders) || $report(_exceptionable, {
1752
+ path: _path + ".holders",
1753
+ expected: "Array<string>",
1754
+ value: input.holders
1755
+ })) && input.holders.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
1756
+ path: _path + ".holders[" + _index15 + "]",
1757
+ expected: "string",
1758
+ value: elem
1759
+ })).every(flag => flag) || $report(_exceptionable, {
1760
+ path: _path + ".holders",
1761
+ expected: "Array<string>",
1762
+ value: input.holders
1763
+ }), (Array.isArray(input.anchors) || $report(_exceptionable, {
1728
1764
  path: _path + ".anchors",
1729
- expected: "(Array<__type> | undefined)",
1765
+ expected: "Array<__type>",
1730
1766
  value: input.anchors
1731
- })) && input.anchors.map((elem, _index14) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
1732
- path: _path + ".anchors[" + _index14 + "]",
1767
+ })) && input.anchors.map((elem, _index16) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
1768
+ path: _path + ".anchors[" + _index16 + "]",
1733
1769
  expected: "__type.o2",
1734
1770
  value: elem
1735
- })) && $vo7(elem, _path + ".anchors[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
1736
- path: _path + ".anchors[" + _index14 + "]",
1771
+ })) && $vo7(elem, _path + ".anchors[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
1772
+ path: _path + ".anchors[" + _index16 + "]",
1737
1773
  expected: "__type.o2",
1738
1774
  value: elem
1739
1775
  })).every(flag => flag) || $report(_exceptionable, {
1740
1776
  path: _path + ".anchors",
1741
- expected: "(Array<__type> | undefined)",
1777
+ expected: "Array<__type>",
1742
1778
  value: input.anchors
1743
1779
  })].every(flag => flag); const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.txHash || $report(_exceptionable, {
1744
1780
  path: _path + ".txHash",
@@ -1784,6 +1820,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
1784
1820
  path: _path + ".publicKey",
1785
1821
  expected: "(string | undefined)",
1786
1822
  value: input.publicKey
1823
+ }), undefined === input.isDerived || "boolean" === typeof input.isDerived || $report(_exceptionable, {
1824
+ path: _path + ".isDerived",
1825
+ expected: "(boolean | undefined)",
1826
+ value: input.isDerived
1787
1827
  })].every(flag => flag); const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.txHash || "string" === typeof input.txHash || $report(_exceptionable, {
1788
1828
  path: _path + ".txHash",
1789
1829
  expected: "(string | undefined)",
@@ -1917,7 +1957,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
1917
1957
  }
1918
1958
  async verifySIWBBRequest(payload) {
1919
1959
  try {
1920
- 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 => (undefined === input.entropies || Array.isArray(input.entropies) && input.entropies.every(elem => "string" === typeof elem)) && (undefined === input.updateHistory || Array.isArray(input.updateHistory) && input.updateHistory.every(elem => "object" === typeof elem && null !== elem && $io11(elem))) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.createdBy && ("string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt) && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io12(input.proofOfIssuance)) && ("bbs" === input.scheme || "standard" === input.scheme) && (Array.isArray(input.attestationMessages) && input.attestationMessages.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 && (undefined === input.anchors || 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); const $io14 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message); const $iu0 = input => (() => {
1960
+ 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 => (() => {
1921
1961
  if (undefined !== input.$and)
1922
1962
  return $io3(input);
1923
1963
  else if (undefined !== input.$or)
@@ -1938,12 +1978,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
1938
1978
  path: _path + ".attestationsPresentations",
1939
1979
  expected: "(Array<iAttestationsProof<NumberType>> | undefined)",
1940
1980
  value: input.attestationsPresentations
1941
- })) && input.attestationsPresentations.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1942
- path: _path + ".attestationsPresentations[" + _index12 + "]",
1981
+ })) && input.attestationsPresentations.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1982
+ path: _path + ".attestationsPresentations[" + _index13 + "]",
1943
1983
  expected: "iAttestationsProof<NumberType>",
1944
1984
  value: elem
1945
- })) && $vo10(elem, _path + ".attestationsPresentations[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
1946
- path: _path + ".attestationsPresentations[" + _index12 + "]",
1985
+ })) && $vo10(elem, _path + ".attestationsPresentations[" + _index13 + "]", true && _exceptionable) || $report(_exceptionable, {
1986
+ path: _path + ".attestationsPresentations[" + _index13 + "]",
1947
1987
  expected: "iAttestationsProof<NumberType>",
1948
1988
  value: elem
1949
1989
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2054,8 +2094,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
2054
2094
  path: _path + ".resources",
2055
2095
  expected: "(Array<string> | undefined)",
2056
2096
  value: input.resources
2057
- })) && input.resources.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
2058
- path: _path + ".resources[" + _index13 + "]",
2097
+ })) && input.resources.map((elem, _index14) => "string" === typeof elem || $report(_exceptionable, {
2098
+ path: _path + ".resources[" + _index14 + "]",
2059
2099
  expected: "string",
2060
2100
  value: elem
2061
2101
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2074,12 +2114,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
2074
2114
  path: _path + ".$and",
2075
2115
  expected: "Array<AssetConditionGroup<NumberType>>",
2076
2116
  value: input.$and
2077
- })) && input.$and.map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2078
- path: _path + ".$and[" + _index14 + "]",
2117
+ })) && input.$and.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2118
+ path: _path + ".$and[" + _index15 + "]",
2079
2119
  expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
2080
2120
  value: elem
2081
- })) && $vu0(elem, _path + ".$and[" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
2082
- path: _path + ".$and[" + _index14 + "]",
2121
+ })) && $vu0(elem, _path + ".$and[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
2122
+ path: _path + ".$and[" + _index15 + "]",
2083
2123
  expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
2084
2124
  value: elem
2085
2125
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2090,12 +2130,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
2090
2130
  path: _path + ".$or",
2091
2131
  expected: "Array<AssetConditionGroup<NumberType>>",
2092
2132
  value: input.$or
2093
- })) && input.$or.map((elem, _index15) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2094
- path: _path + ".$or[" + _index15 + "]",
2133
+ })) && input.$or.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2134
+ path: _path + ".$or[" + _index16 + "]",
2095
2135
  expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
2096
2136
  value: elem
2097
- })) && $vu0(elem, _path + ".$or[" + _index15 + "]", true && _exceptionable) || $report(_exceptionable, {
2098
- path: _path + ".$or[" + _index15 + "]",
2137
+ })) && $vu0(elem, _path + ".$or[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
2138
+ path: _path + ".$or[" + _index16 + "]",
2099
2139
  expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
2100
2140
  value: elem
2101
2141
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2106,12 +2146,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
2106
2146
  path: _path + ".assets",
2107
2147
  expected: "Array<AssetDetails<NumberType>>",
2108
2148
  value: input.assets
2109
- })) && input.assets.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2110
- path: _path + ".assets[" + _index16 + "]",
2149
+ })) && input.assets.map((elem, _index17) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2150
+ path: _path + ".assets[" + _index17 + "]",
2111
2151
  expected: "AssetDetails<NumberType>",
2112
2152
  value: elem
2113
- })) && $vo6(elem, _path + ".assets[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
2114
- path: _path + ".assets[" + _index16 + "]",
2153
+ })) && $vo6(elem, _path + ".assets[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
2154
+ path: _path + ".assets[" + _index17 + "]",
2115
2155
  expected: "AssetDetails<NumberType>",
2116
2156
  value: elem
2117
2157
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2138,20 +2178,20 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
2138
2178
  path: _path + ".assetIds",
2139
2179
  expected: "Array<string | UintRange<NumberType>>",
2140
2180
  value: input.assetIds
2141
- })) && input.assetIds.map((elem, _index17) => (null !== elem || $report(_exceptionable, {
2142
- path: _path + ".assetIds[" + _index17 + "]",
2181
+ })) && input.assetIds.map((elem, _index18) => (null !== elem || $report(_exceptionable, {
2182
+ path: _path + ".assetIds[" + _index18 + "]",
2143
2183
  expected: "(UintRange<NumberType> | string)",
2144
2184
  value: elem
2145
2185
  })) && (undefined !== elem || $report(_exceptionable, {
2146
- path: _path + ".assetIds[" + _index17 + "]",
2186
+ path: _path + ".assetIds[" + _index18 + "]",
2147
2187
  expected: "(UintRange<NumberType> | string)",
2148
2188
  value: elem
2149
2189
  })) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2150
- path: _path + ".assetIds[" + _index17 + "]",
2190
+ path: _path + ".assetIds[" + _index18 + "]",
2151
2191
  expected: "(UintRange<NumberType> | string)",
2152
2192
  value: elem
2153
- })) && $vo7(elem, _path + ".assetIds[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
2154
- path: _path + ".assetIds[" + _index17 + "]",
2193
+ })) && $vo7(elem, _path + ".assetIds[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
2194
+ path: _path + ".assetIds[" + _index18 + "]",
2155
2195
  expected: "(UintRange<NumberType> | string)",
2156
2196
  value: elem
2157
2197
  }))).every(flag => flag) || $report(_exceptionable, {
@@ -2162,12 +2202,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
2162
2202
  path: _path + ".ownershipTimes",
2163
2203
  expected: "Array<UintRange<NumberType>>",
2164
2204
  value: input.ownershipTimes
2165
- })) && input.ownershipTimes.map((elem, _index18) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2166
- path: _path + ".ownershipTimes[" + _index18 + "]",
2205
+ })) && input.ownershipTimes.map((elem, _index19) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2206
+ path: _path + ".ownershipTimes[" + _index19 + "]",
2167
2207
  expected: "UintRange<NumberType>",
2168
2208
  value: elem
2169
- })) && $vo7(elem, _path + ".ownershipTimes[" + _index18 + "]", true && _exceptionable) || $report(_exceptionable, {
2170
- path: _path + ".ownershipTimes[" + _index18 + "]",
2209
+ })) && $vo7(elem, _path + ".ownershipTimes[" + _index19 + "]", true && _exceptionable) || $report(_exceptionable, {
2210
+ path: _path + ".ownershipTimes[" + _index19 + "]",
2171
2211
  expected: "UintRange<NumberType>",
2172
2212
  value: elem
2173
2213
  })).every(flag => flag) || $report(_exceptionable, {
@@ -2198,21 +2238,9 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
2198
2238
  path: _path + ".numMatchesForVerification",
2199
2239
  expected: "(bigint | number | string | undefined)",
2200
2240
  value: input.numMatchesForVerification
2201
- })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => true; const $vo10 = (input, _path, _exceptionable = true) => [undefined === input.entropies || (Array.isArray(input.entropies) || $report(_exceptionable, {
2202
- path: _path + ".entropies",
2203
- expected: "(Array<string> | undefined)",
2204
- value: input.entropies
2205
- })) && input.entropies.map((elem, _index19) => "string" === typeof elem || $report(_exceptionable, {
2206
- path: _path + ".entropies[" + _index19 + "]",
2207
- expected: "string",
2208
- value: elem
2209
- })).every(flag => flag) || $report(_exceptionable, {
2210
- path: _path + ".entropies",
2211
- expected: "(Array<string> | undefined)",
2212
- value: input.entropies
2213
- }), undefined === input.updateHistory || (Array.isArray(input.updateHistory) || $report(_exceptionable, {
2241
+ })].every(flag => flag); const $vo9 = (input, _path, _exceptionable = true) => true; const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.updateHistory) || $report(_exceptionable, {
2214
2242
  path: _path + ".updateHistory",
2215
- expected: "(Array<iUpdateHistory<NumberType>> | undefined)",
2243
+ expected: "Array<iUpdateHistory<NumberType>>",
2216
2244
  value: input.updateHistory
2217
2245
  })) && input.updateHistory.map((elem, _index20) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
2218
2246
  path: _path + ".updateHistory[" + _index20 + "]",
@@ -2224,8 +2252,16 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
2224
2252
  value: elem
2225
2253
  })).every(flag => flag) || $report(_exceptionable, {
2226
2254
  path: _path + ".updateHistory",
2227
- expected: "(Array<iUpdateHistory<NumberType>> | undefined)",
2255
+ expected: "Array<iUpdateHistory<NumberType>>",
2228
2256
  value: input.updateHistory
2257
+ }), "string" === typeof input._docId || $report(_exceptionable, {
2258
+ path: _path + "._docId",
2259
+ expected: "string",
2260
+ value: input._docId
2261
+ }), undefined === input._id || "string" === typeof input._id || $report(_exceptionable, {
2262
+ path: _path + "._id",
2263
+ expected: "(string | undefined)",
2264
+ value: input._id
2229
2265
  }), "plaintext" === input.messageFormat || "json" === input.messageFormat || $report(_exceptionable, {
2230
2266
  path: _path + ".messageFormat",
2231
2267
  expected: "(\"json\" | \"plaintext\")",
@@ -2238,6 +2274,22 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
2238
2274
  path: _path + ".createdAt",
2239
2275
  expected: "(bigint | number | string)",
2240
2276
  value: input.createdAt
2277
+ }), (Array.isArray(input.entropies) || $report(_exceptionable, {
2278
+ path: _path + ".entropies",
2279
+ expected: "Array<string>",
2280
+ value: input.entropies
2281
+ })) && input.entropies.map((elem, _index21) => "string" === typeof elem || $report(_exceptionable, {
2282
+ path: _path + ".entropies[" + _index21 + "]",
2283
+ expected: "string",
2284
+ value: elem
2285
+ })).every(flag => flag) || $report(_exceptionable, {
2286
+ path: _path + ".entropies",
2287
+ expected: "Array<string>",
2288
+ value: input.entropies
2289
+ }), undefined === input.publicVisibility || "boolean" === typeof input.publicVisibility || $report(_exceptionable, {
2290
+ path: _path + ".publicVisibility",
2291
+ expected: "(boolean | undefined)",
2292
+ value: input.publicVisibility
2241
2293
  }), ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance || $report(_exceptionable, {
2242
2294
  path: _path + ".proofOfIssuance",
2243
2295
  expected: "__type.o1",
@@ -2246,22 +2298,34 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
2246
2298
  path: _path + ".proofOfIssuance",
2247
2299
  expected: "__type.o1",
2248
2300
  value: input.proofOfIssuance
2249
- }), "bbs" === input.scheme || "standard" === input.scheme || $report(_exceptionable, {
2301
+ }), "string" === typeof input.attestationId || $report(_exceptionable, {
2302
+ path: _path + ".attestationId",
2303
+ expected: "string",
2304
+ value: input.attestationId
2305
+ }), "string" === typeof input.inviteCode || $report(_exceptionable, {
2306
+ path: _path + ".inviteCode",
2307
+ expected: "string",
2308
+ value: input.inviteCode
2309
+ }), "string" === typeof input.scheme || $report(_exceptionable, {
2250
2310
  path: _path + ".scheme",
2251
- expected: "(\"bbs\" | \"standard\")",
2311
+ expected: "string",
2252
2312
  value: input.scheme
2253
- }), (Array.isArray(input.attestationMessages) || $report(_exceptionable, {
2254
- path: _path + ".attestationMessages",
2313
+ }), undefined === input.originalProvider || "string" === typeof input.originalProvider || $report(_exceptionable, {
2314
+ path: _path + ".originalProvider",
2315
+ expected: "(string | undefined)",
2316
+ value: input.originalProvider
2317
+ }), (Array.isArray(input.messages) || $report(_exceptionable, {
2318
+ path: _path + ".messages",
2255
2319
  expected: "Array<string>",
2256
- value: input.attestationMessages
2257
- })) && input.attestationMessages.map((elem, _index21) => "string" === typeof elem || $report(_exceptionable, {
2258
- path: _path + ".attestationMessages[" + _index21 + "]",
2320
+ value: input.messages
2321
+ })) && input.messages.map((elem, _index22) => "string" === typeof elem || $report(_exceptionable, {
2322
+ path: _path + ".messages[" + _index22 + "]",
2259
2323
  expected: "string",
2260
2324
  value: elem
2261
2325
  })).every(flag => flag) || $report(_exceptionable, {
2262
- path: _path + ".attestationMessages",
2326
+ path: _path + ".messages",
2263
2327
  expected: "Array<string>",
2264
- value: input.attestationMessages
2328
+ value: input.messages
2265
2329
  }), ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof || $report(_exceptionable, {
2266
2330
  path: _path + ".dataIntegrityProof",
2267
2331
  expected: "__type.o2",
@@ -2282,21 +2346,33 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
2282
2346
  path: _path + ".description",
2283
2347
  expected: "string",
2284
2348
  value: input.description
2285
- }), undefined === input.anchors || (Array.isArray(input.anchors) || $report(_exceptionable, {
2349
+ }), (Array.isArray(input.holders) || $report(_exceptionable, {
2350
+ path: _path + ".holders",
2351
+ expected: "Array<string>",
2352
+ value: input.holders
2353
+ })) && input.holders.map((elem, _index23) => "string" === typeof elem || $report(_exceptionable, {
2354
+ path: _path + ".holders[" + _index23 + "]",
2355
+ expected: "string",
2356
+ value: elem
2357
+ })).every(flag => flag) || $report(_exceptionable, {
2358
+ path: _path + ".holders",
2359
+ expected: "Array<string>",
2360
+ value: input.holders
2361
+ }), (Array.isArray(input.anchors) || $report(_exceptionable, {
2286
2362
  path: _path + ".anchors",
2287
- expected: "(Array<__type> | undefined)",
2363
+ expected: "Array<__type>",
2288
2364
  value: input.anchors
2289
- })) && input.anchors.map((elem, _index22) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
2290
- path: _path + ".anchors[" + _index22 + "]",
2365
+ })) && input.anchors.map((elem, _index24) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
2366
+ path: _path + ".anchors[" + _index24 + "]",
2291
2367
  expected: "__type.o3",
2292
2368
  value: elem
2293
- })) && $vo14(elem, _path + ".anchors[" + _index22 + "]", true && _exceptionable) || $report(_exceptionable, {
2294
- path: _path + ".anchors[" + _index22 + "]",
2369
+ })) && $vo14(elem, _path + ".anchors[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
2370
+ path: _path + ".anchors[" + _index24 + "]",
2295
2371
  expected: "__type.o3",
2296
2372
  value: elem
2297
2373
  })).every(flag => flag) || $report(_exceptionable, {
2298
2374
  path: _path + ".anchors",
2299
- expected: "(Array<__type> | undefined)",
2375
+ expected: "Array<__type>",
2300
2376
  value: input.anchors
2301
2377
  })].every(flag => flag); const $vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.txHash || $report(_exceptionable, {
2302
2378
  path: _path + ".txHash",
@@ -2342,6 +2418,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
2342
2418
  path: _path + ".publicKey",
2343
2419
  expected: "(string | undefined)",
2344
2420
  value: input.publicKey
2421
+ }), undefined === input.isDerived || "boolean" === typeof input.isDerived || $report(_exceptionable, {
2422
+ path: _path + ".isDerived",
2423
+ expected: "(boolean | undefined)",
2424
+ value: input.isDerived
2345
2425
  })].every(flag => flag); const $vo14 = (input, _path, _exceptionable = true) => [undefined === input.txHash || "string" === typeof input.txHash || $report(_exceptionable, {
2346
2426
  path: _path + ".txHash",
2347
2427
  expected: "(string | undefined)",
@@ -2957,27 +3037,35 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
2957
3037
  return Promise.reject(error);
2958
3038
  }
2959
3039
  }
2960
- async getAttestation(payload) {
3040
+ async getAttestations(payload) {
2961
3041
  try {
2962
- const validateRes = (() => { const $io0 = input => (undefined === input.inviteCode || "string" === typeof input.inviteCode) && (undefined === input.attestationId || "string" === typeof input.attestationId); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.inviteCode || "string" === typeof input.inviteCode || $report(_exceptionable, {
3042
+ const validateRes = (() => { const $io0 = input => (undefined === input.inviteCode || "string" === typeof input.inviteCode) && (undefined === input.attestationIds || Array.isArray(input.attestationIds) && input.attestationIds.every(elem => "string" === typeof elem)); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.inviteCode || "string" === typeof input.inviteCode || $report(_exceptionable, {
2963
3043
  path: _path + ".inviteCode",
2964
3044
  expected: "(string | undefined)",
2965
3045
  value: input.inviteCode
2966
- }), undefined === input.attestationId || "string" === typeof input.attestationId || $report(_exceptionable, {
2967
- path: _path + ".attestationId",
2968
- expected: "(string | undefined)",
2969
- value: input.attestationId
3046
+ }), undefined === input.attestationIds || (Array.isArray(input.attestationIds) || $report(_exceptionable, {
3047
+ path: _path + ".attestationIds",
3048
+ expected: "(Array<string> | undefined)",
3049
+ value: input.attestationIds
3050
+ })) && input.attestationIds.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
3051
+ path: _path + ".attestationIds[" + _index2 + "]",
3052
+ expected: "string",
3053
+ value: elem
3054
+ })).every(flag => flag) || $report(_exceptionable, {
3055
+ path: _path + ".attestationIds",
3056
+ expected: "(Array<string> | undefined)",
3057
+ value: input.attestationIds
2970
3058
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
2971
3059
  if (false === __is(input)) {
2972
3060
  errors = [];
2973
3061
  $report = typia.validate.report(errors);
2974
3062
  ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
2975
3063
  path: _path + "",
2976
- expected: "GetAttestationPayload",
3064
+ expected: "GetAttestationsPayload",
2977
3065
  value: input
2978
3066
  })) && $vo0(input, _path + "", true) || $report(true, {
2979
3067
  path: _path + "",
2980
- expected: "GetAttestationPayload",
3068
+ expected: "GetAttestationsPayload",
2981
3069
  value: input
2982
3070
  }))(input, "$input", true);
2983
3071
  const success = 0 === errors.length;
@@ -2997,7 +3085,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
2997
3085
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
2998
3086
  }
2999
3087
  const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetAttestationsRoute()}`, payload);
3000
- return new GetAttestationSuccessResponse(response.data).convert(this.ConvertFunction);
3088
+ return new GetAttestationsSuccessResponse(response.data).convert(this.ConvertFunction);
3001
3089
  }
3002
3090
  catch (error) {
3003
3091
  await this.handleApiError(error);
@@ -3006,59 +3094,87 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3006
3094
  }
3007
3095
  async createAttestation(payload) {
3008
3096
  try {
3009
- const validateRes = (() => { const $io0 = input => "object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io1(input.proofOfIssuance) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && ("bbs" === input.scheme || "standard" === input.scheme) && "string" === typeof input.type && (Array.isArray(input.attestationMessages) && input.attestationMessages.every(elem => "string" === typeof elem)) && ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io2(input.dataIntegrityProof)) && "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description; const $io1 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io2 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey); const $vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance || $report(_exceptionable, {
3010
- path: _path + ".proofOfIssuance",
3097
+ 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) && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io2(input.proofOfIssuance)) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.scheme && ("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, {
3098
+ path: _path + ".anchors",
3099
+ expected: "(Array<__type> | undefined)",
3100
+ value: input.anchors
3101
+ })) && input.anchors.map((elem, _index3) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
3102
+ path: _path + ".anchors[" + _index3 + "]",
3103
+ expected: "__type",
3104
+ value: elem
3105
+ })) && $vo1(elem, _path + ".anchors[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
3106
+ path: _path + ".anchors[" + _index3 + "]",
3011
3107
  expected: "__type",
3108
+ value: elem
3109
+ })).every(flag => flag) || $report(_exceptionable, {
3110
+ path: _path + ".anchors",
3111
+ expected: "(Array<__type> | undefined)",
3112
+ value: input.anchors
3113
+ }), "string" === typeof input.name || $report(_exceptionable, {
3114
+ path: _path + ".name",
3115
+ expected: "string",
3116
+ value: input.name
3117
+ }), (Array.isArray(input.messages) || $report(_exceptionable, {
3118
+ path: _path + ".messages",
3119
+ expected: "Array<string>",
3120
+ value: input.messages
3121
+ })) && input.messages.map((elem, _index4) => "string" === typeof elem || $report(_exceptionable, {
3122
+ path: _path + ".messages[" + _index4 + "]",
3123
+ expected: "string",
3124
+ value: elem
3125
+ })).every(flag => flag) || $report(_exceptionable, {
3126
+ path: _path + ".messages",
3127
+ expected: "Array<string>",
3128
+ value: input.messages
3129
+ }), "string" === typeof input.description || $report(_exceptionable, {
3130
+ path: _path + ".description",
3131
+ expected: "string",
3132
+ value: input.description
3133
+ }), "string" === typeof input.image || $report(_exceptionable, {
3134
+ path: _path + ".image",
3135
+ expected: "string",
3136
+ value: input.image
3137
+ }), undefined === input.originalProvider || "string" === typeof input.originalProvider || $report(_exceptionable, {
3138
+ path: _path + ".originalProvider",
3139
+ expected: "(string | undefined)",
3140
+ value: input.originalProvider
3141
+ }), ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance || $report(_exceptionable, {
3142
+ path: _path + ".proofOfIssuance",
3143
+ expected: "__type.o1",
3012
3144
  value: input.proofOfIssuance
3013
- })) && $vo1(input.proofOfIssuance, _path + ".proofOfIssuance", true && _exceptionable) || $report(_exceptionable, {
3145
+ })) && $vo2(input.proofOfIssuance, _path + ".proofOfIssuance", true && _exceptionable) || $report(_exceptionable, {
3014
3146
  path: _path + ".proofOfIssuance",
3015
- expected: "__type",
3147
+ expected: "__type.o1",
3016
3148
  value: input.proofOfIssuance
3017
3149
  }), "plaintext" === input.messageFormat || "json" === input.messageFormat || $report(_exceptionable, {
3018
3150
  path: _path + ".messageFormat",
3019
3151
  expected: "(\"json\" | \"plaintext\")",
3020
3152
  value: input.messageFormat
3021
- }), "bbs" === input.scheme || "standard" === input.scheme || $report(_exceptionable, {
3153
+ }), "string" === typeof input.scheme || $report(_exceptionable, {
3022
3154
  path: _path + ".scheme",
3023
- expected: "(\"bbs\" | \"standard\")",
3024
- value: input.scheme
3025
- }), "string" === typeof input.type || $report(_exceptionable, {
3026
- path: _path + ".type",
3027
3155
  expected: "string",
3028
- value: input.type
3029
- }), (Array.isArray(input.attestationMessages) || $report(_exceptionable, {
3030
- path: _path + ".attestationMessages",
3031
- expected: "Array<string>",
3032
- value: input.attestationMessages
3033
- })) && input.attestationMessages.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
3034
- path: _path + ".attestationMessages[" + _index2 + "]",
3035
- expected: "string",
3036
- value: elem
3037
- })).every(flag => flag) || $report(_exceptionable, {
3038
- path: _path + ".attestationMessages",
3039
- expected: "Array<string>",
3040
- value: input.attestationMessages
3156
+ value: input.scheme
3041
3157
  }), ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof || $report(_exceptionable, {
3042
3158
  path: _path + ".dataIntegrityProof",
3043
- expected: "__type.o1",
3159
+ expected: "__type.o2",
3044
3160
  value: input.dataIntegrityProof
3045
- })) && $vo2(input.dataIntegrityProof, _path + ".dataIntegrityProof", true && _exceptionable) || $report(_exceptionable, {
3161
+ })) && $vo3(input.dataIntegrityProof, _path + ".dataIntegrityProof", true && _exceptionable) || $report(_exceptionable, {
3046
3162
  path: _path + ".dataIntegrityProof",
3047
- expected: "__type.o1",
3163
+ expected: "__type.o2",
3048
3164
  value: input.dataIntegrityProof
3049
- }), "string" === typeof input.name || $report(_exceptionable, {
3050
- path: _path + ".name",
3051
- expected: "string",
3052
- value: input.name
3053
- }), "string" === typeof input.image || $report(_exceptionable, {
3054
- path: _path + ".image",
3055
- expected: "string",
3056
- value: input.image
3057
- }), "string" === typeof input.description || $report(_exceptionable, {
3058
- path: _path + ".description",
3059
- expected: "string",
3060
- value: input.description
3061
- })].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
3165
+ }), undefined === input.publicVisibility || "boolean" === typeof input.publicVisibility || $report(_exceptionable, {
3166
+ path: _path + ".publicVisibility",
3167
+ expected: "(boolean | undefined)",
3168
+ value: input.publicVisibility
3169
+ })].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.txHash || "string" === typeof input.txHash || $report(_exceptionable, {
3170
+ path: _path + ".txHash",
3171
+ expected: "(string | undefined)",
3172
+ value: input.txHash
3173
+ }), undefined === input.message || "string" === typeof input.message || $report(_exceptionable, {
3174
+ path: _path + ".message",
3175
+ expected: "(string | undefined)",
3176
+ value: input.message
3177
+ })].every(flag => flag); const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
3062
3178
  path: _path + ".message",
3063
3179
  expected: "string",
3064
3180
  value: input.message
@@ -3074,7 +3190,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3074
3190
  path: _path + ".publicKey",
3075
3191
  expected: "(string | undefined)",
3076
3192
  value: input.publicKey
3077
- })].every(flag => flag); const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.signature || $report(_exceptionable, {
3193
+ })].every(flag => flag); const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.signature || $report(_exceptionable, {
3078
3194
  path: _path + ".signature",
3079
3195
  expected: "string",
3080
3196
  value: input.signature
@@ -3086,6 +3202,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3086
3202
  path: _path + ".publicKey",
3087
3203
  expected: "(string | undefined)",
3088
3204
  value: input.publicKey
3205
+ }), undefined === input.isDerived || "boolean" === typeof input.isDerived || $report(_exceptionable, {
3206
+ path: _path + ".isDerived",
3207
+ expected: "(boolean | undefined)",
3208
+ value: input.isDerived
3089
3209
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
3090
3210
  if (false === __is(input)) {
3091
3211
  errors = [];
@@ -3170,7 +3290,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3170
3290
  }
3171
3291
  async updateAttestation(payload) {
3172
3292
  try {
3173
- const validateRes = (() => { const $io0 = input => (undefined === input.attestationId || "string" === typeof input.attestationId) && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && (undefined === input.rotateInviteCode || "boolean" === typeof input.rotateInviteCode) && (undefined === input.holdersToSet || Array.isArray(input.holdersToSet) && input.holdersToSet.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.anchorsToAdd || Array.isArray(input.anchorsToAdd) && input.anchorsToAdd.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) && (undefined === input.proofOfIssuance || "object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io3(input.proofOfIssuance)) && (undefined === input.messageFormat || "plaintext" === input.messageFormat || "json" === input.messageFormat) && (undefined === input.scheme || "bbs" === input.scheme || "standard" === input.scheme) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.attestationMessages || Array.isArray(input.attestationMessages) && input.attestationMessages.every(elem => "string" === typeof elem)) && (undefined === input.dataIntegrityProof || "object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io4(input.dataIntegrityProof)) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.image || "string" === typeof input.image) && (undefined === input.description || "string" === typeof input.description); const $io1 = input => "string" === typeof input.bitbadgesAddress && (undefined === input["delete"] || "boolean" === typeof input["delete"]); const $io2 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message); const $io3 = input => "string" === typeof input.message && "string" === typeof input.signer && "string" === typeof input.signature && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io4 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.attestationId || "string" === typeof input.attestationId || $report(_exceptionable, {
3293
+ const validateRes = (() => { const $io0 = input => (undefined === input.attestationId || "string" === typeof input.attestationId) && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && (undefined === input.rotateInviteCode || "boolean" === typeof input.rotateInviteCode) && (undefined === input.holdersToSet || Array.isArray(input.holdersToSet) && input.holdersToSet.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.anchorsToAdd || Array.isArray(input.anchorsToAdd) && input.anchorsToAdd.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) && (undefined === input.proofOfIssuance || "object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io3(input.proofOfIssuance)) && (undefined === input.messageFormat || "plaintext" === input.messageFormat || "json" === input.messageFormat) && (undefined === input.scheme || "string" === typeof input.scheme) && (undefined === input.originalProvider || "string" === typeof input.originalProvider) && (undefined === input.messages || Array.isArray(input.messages) && input.messages.every(elem => "string" === typeof elem)) && (undefined === input.dataIntegrityProof || "object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io4(input.dataIntegrityProof)) && (undefined === input.publicVisibility || "boolean" === typeof input.publicVisibility) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.image || "string" === typeof input.image) && (undefined === input.description || "string" === typeof input.description); const $io1 = input => "string" === typeof input.bitbadgesAddress && (undefined === input["delete"] || "boolean" === typeof input["delete"]); const $io2 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message); const $io3 = input => "string" === typeof input.message && "string" === typeof input.signer && "string" === typeof input.signature && (undefined === input.publicKey || "string" === typeof input.publicKey); const $io4 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey) && (undefined === input.derivedProof || "boolean" === typeof input.derivedProof); const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.attestationId || "string" === typeof input.attestationId || $report(_exceptionable, {
3174
3294
  path: _path + ".attestationId",
3175
3295
  expected: "(string | undefined)",
3176
3296
  value: input.attestationId
@@ -3226,26 +3346,26 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3226
3346
  path: _path + ".messageFormat",
3227
3347
  expected: "(\"json\" | \"plaintext\" | undefined)",
3228
3348
  value: input.messageFormat
3229
- }), undefined === input.scheme || "bbs" === input.scheme || "standard" === input.scheme || $report(_exceptionable, {
3349
+ }), undefined === input.scheme || "string" === typeof input.scheme || $report(_exceptionable, {
3230
3350
  path: _path + ".scheme",
3231
- expected: "(\"bbs\" | \"standard\" | undefined)",
3351
+ expected: "(string | undefined)",
3232
3352
  value: input.scheme
3233
- }), undefined === input.type || "string" === typeof input.type || $report(_exceptionable, {
3234
- path: _path + ".type",
3353
+ }), undefined === input.originalProvider || "string" === typeof input.originalProvider || $report(_exceptionable, {
3354
+ path: _path + ".originalProvider",
3235
3355
  expected: "(string | undefined)",
3236
- value: input.type
3237
- }), undefined === input.attestationMessages || (Array.isArray(input.attestationMessages) || $report(_exceptionable, {
3238
- path: _path + ".attestationMessages",
3356
+ value: input.originalProvider
3357
+ }), undefined === input.messages || (Array.isArray(input.messages) || $report(_exceptionable, {
3358
+ path: _path + ".messages",
3239
3359
  expected: "(Array<string> | undefined)",
3240
- value: input.attestationMessages
3241
- })) && input.attestationMessages.map((elem, _index6) => "string" === typeof elem || $report(_exceptionable, {
3242
- path: _path + ".attestationMessages[" + _index6 + "]",
3360
+ value: input.messages
3361
+ })) && input.messages.map((elem, _index6) => "string" === typeof elem || $report(_exceptionable, {
3362
+ path: _path + ".messages[" + _index6 + "]",
3243
3363
  expected: "string",
3244
3364
  value: elem
3245
3365
  })).every(flag => flag) || $report(_exceptionable, {
3246
- path: _path + ".attestationMessages",
3366
+ path: _path + ".messages",
3247
3367
  expected: "(Array<string> | undefined)",
3248
- value: input.attestationMessages
3368
+ value: input.messages
3249
3369
  }), undefined === input.dataIntegrityProof || ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof || $report(_exceptionable, {
3250
3370
  path: _path + ".dataIntegrityProof",
3251
3371
  expected: "(__type.o3 | undefined)",
@@ -3254,6 +3374,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3254
3374
  path: _path + ".dataIntegrityProof",
3255
3375
  expected: "(__type.o3 | undefined)",
3256
3376
  value: input.dataIntegrityProof
3377
+ }), undefined === input.publicVisibility || "boolean" === typeof input.publicVisibility || $report(_exceptionable, {
3378
+ path: _path + ".publicVisibility",
3379
+ expected: "(boolean | undefined)",
3380
+ value: input.publicVisibility
3257
3381
  }), undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
3258
3382
  path: _path + ".name",
3259
3383
  expected: "(string | undefined)",
@@ -3310,6 +3434,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3310
3434
  path: _path + ".publicKey",
3311
3435
  expected: "(string | undefined)",
3312
3436
  value: input.publicKey
3437
+ }), undefined === input.derivedProof || "boolean" === typeof input.derivedProof || $report(_exceptionable, {
3438
+ path: _path + ".derivedProof",
3439
+ expected: "(boolean | undefined)",
3440
+ value: input.derivedProof
3313
3441
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let errors; let $report; return input => {
3314
3442
  if (false === __is(input)) {
3315
3443
  errors = [];
@@ -3349,7 +3477,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3349
3477
  }
3350
3478
  async createClaims(payload) {
3351
3479
  try {
3352
- const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (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) && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && "string" === typeof input.claimId && (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 => {
3480
+ const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim); const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && "string" === typeof input.claimId && (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 => {
3353
3481
  const value = input[key];
3354
3482
  if (undefined === value)
3355
3483
  return true;
@@ -3388,11 +3516,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3388
3516
  path: _path + ".siwbbClaim",
3389
3517
  expected: "(boolean | undefined)",
3390
3518
  value: input.siwbbClaim
3391
- })].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId || $report(_exceptionable, {
3392
- path: _path + ".collectionId",
3393
- expected: "(bigint | number | string | undefined)",
3394
- value: input.collectionId
3395
- }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3519
+ })].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3396
3520
  path: _path + ".metadata",
3397
3521
  expected: "(iMetadata<NumberType> | undefined)",
3398
3522
  value: input.metadata
@@ -3400,6 +3524,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
3400
3524
  path: _path + ".metadata",
3401
3525
  expected: "(iMetadata<NumberType> | undefined)",
3402
3526
  value: input.metadata
3527
+ }), undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId || $report(_exceptionable, {
3528
+ path: _path + ".collectionId",
3529
+ expected: "(bigint | number | string | undefined)",
3530
+ value: input.collectionId
3403
3531
  }), undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || $report(_exceptionable, {
3404
3532
  path: _path + ".lastUpdated",
3405
3533
  expected: "(bigint | number | string | undefined)",
@@ -4087,7 +4215,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4087
4215
  }
4088
4216
  async updateClaims(payload) {
4089
4217
  try {
4090
- const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (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) && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && "string" === typeof input.claimId && (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 => {
4218
+ const validateRes = (() => { const $join = typia.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)); const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && "string" === typeof input.claimId && (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 => {
4091
4219
  const value = input[key];
4092
4220
  if (undefined === value)
4093
4221
  return true;
@@ -4118,11 +4246,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4118
4246
  path: _path + ".claims",
4119
4247
  expected: "Array<Omit<iClaimDetails<NumberType>, \"version\" | \"_includesPrivateParams\" | \"seedCode\">>",
4120
4248
  value: input.claims
4121
- })].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId || $report(_exceptionable, {
4122
- path: _path + ".collectionId",
4123
- expected: "(bigint | number | string | undefined)",
4124
- value: input.collectionId
4125
- }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
4249
+ })].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
4126
4250
  path: _path + ".metadata",
4127
4251
  expected: "(iMetadata<NumberType> | undefined)",
4128
4252
  value: input.metadata
@@ -4130,6 +4254,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
4130
4254
  path: _path + ".metadata",
4131
4255
  expected: "(iMetadata<NumberType> | undefined)",
4132
4256
  value: input.metadata
4257
+ }), undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId || $report(_exceptionable, {
4258
+ path: _path + ".collectionId",
4259
+ expected: "(bigint | number | string | undefined)",
4260
+ value: input.collectionId
4133
4261
  }), undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated || $report(_exceptionable, {
4134
4262
  path: _path + ".lastUpdated",
4135
4263
  expected: "(bigint | number | string | undefined)",
@@ -5282,289 +5410,6 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
5282
5410
  return Promise.reject(error);
5283
5411
  }
5284
5412
  }
5285
- async getAttestationProof(payload) {
5286
- try {
5287
- const validateRes = (() => { const $io0 = input => "string" === typeof input.id; const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || $report(_exceptionable, {
5288
- path: _path + ".id",
5289
- expected: "string",
5290
- value: input.id
5291
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
5292
- if (false === __is(input)) {
5293
- errors = [];
5294
- $report = typia.validate.report(errors);
5295
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
5296
- path: _path + "",
5297
- expected: "GetAttestationProofPayload",
5298
- value: input
5299
- })) && $vo0(input, _path + "", true) || $report(true, {
5300
- path: _path + "",
5301
- expected: "GetAttestationProofPayload",
5302
- value: input
5303
- }))(input, "$input", true);
5304
- const success = 0 === errors.length;
5305
- return {
5306
- success,
5307
- errors,
5308
- data: success ? input : undefined
5309
- };
5310
- }
5311
- return {
5312
- success: true,
5313
- errors: [],
5314
- data: input
5315
- };
5316
- }; })()(payload ?? {});
5317
- if (!validateRes.success) {
5318
- throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5319
- }
5320
- const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetAttestationProofsRoute()}`, payload);
5321
- return new GetAttestationProofSuccessResponse(response.data).convert(this.ConvertFunction);
5322
- }
5323
- catch (error) {
5324
- await this.handleApiError(error);
5325
- return Promise.reject(error);
5326
- }
5327
- }
5328
- async createAttestationProof(payload) {
5329
- try {
5330
- const validateRes = (() => { const $io0 = input => "boolean" === typeof input.displayOnProfile && (undefined === input.entropies || Array.isArray(input.entropies) && input.entropies.every(elem => "string" === typeof elem)) && (undefined === input.updateHistory || Array.isArray(input.updateHistory) && input.updateHistory.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.createdBy && ("string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt) && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io2(input.proofOfIssuance)) && ("bbs" === input.scheme || "standard" === input.scheme) && (Array.isArray(input.attestationMessages) && input.attestationMessages.every(elem => "string" === typeof elem)) && ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io3(input.dataIntegrityProof)) && "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.anchors || Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io4(elem))); const $io1 = 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 $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); const $io4 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message); const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.displayOnProfile || $report(_exceptionable, {
5331
- path: _path + ".displayOnProfile",
5332
- expected: "boolean",
5333
- value: input.displayOnProfile
5334
- }), undefined === input.entropies || (Array.isArray(input.entropies) || $report(_exceptionable, {
5335
- path: _path + ".entropies",
5336
- expected: "(Array<string> | undefined)",
5337
- value: input.entropies
5338
- })) && input.entropies.map((elem, _index5) => "string" === typeof elem || $report(_exceptionable, {
5339
- path: _path + ".entropies[" + _index5 + "]",
5340
- expected: "string",
5341
- value: elem
5342
- })).every(flag => flag) || $report(_exceptionable, {
5343
- path: _path + ".entropies",
5344
- expected: "(Array<string> | undefined)",
5345
- value: input.entropies
5346
- }), undefined === input.updateHistory || (Array.isArray(input.updateHistory) || $report(_exceptionable, {
5347
- path: _path + ".updateHistory",
5348
- expected: "(Array<iUpdateHistory<NumberType>> | undefined)",
5349
- value: input.updateHistory
5350
- })) && input.updateHistory.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
5351
- path: _path + ".updateHistory[" + _index6 + "]",
5352
- expected: "iUpdateHistory<NumberType>",
5353
- value: elem
5354
- })) && $vo1(elem, _path + ".updateHistory[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
5355
- path: _path + ".updateHistory[" + _index6 + "]",
5356
- expected: "iUpdateHistory<NumberType>",
5357
- value: elem
5358
- })).every(flag => flag) || $report(_exceptionable, {
5359
- path: _path + ".updateHistory",
5360
- expected: "(Array<iUpdateHistory<NumberType>> | undefined)",
5361
- value: input.updateHistory
5362
- }), "plaintext" === input.messageFormat || "json" === input.messageFormat || $report(_exceptionable, {
5363
- path: _path + ".messageFormat",
5364
- expected: "(\"json\" | \"plaintext\")",
5365
- value: input.messageFormat
5366
- }), "string" === typeof input.createdBy || $report(_exceptionable, {
5367
- path: _path + ".createdBy",
5368
- expected: "string",
5369
- value: input.createdBy
5370
- }), "string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt || $report(_exceptionable, {
5371
- path: _path + ".createdAt",
5372
- expected: "(bigint | number | string)",
5373
- value: input.createdAt
5374
- }), ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance || $report(_exceptionable, {
5375
- path: _path + ".proofOfIssuance",
5376
- expected: "__type",
5377
- value: input.proofOfIssuance
5378
- })) && $vo2(input.proofOfIssuance, _path + ".proofOfIssuance", true && _exceptionable) || $report(_exceptionable, {
5379
- path: _path + ".proofOfIssuance",
5380
- expected: "__type",
5381
- value: input.proofOfIssuance
5382
- }), "bbs" === input.scheme || "standard" === input.scheme || $report(_exceptionable, {
5383
- path: _path + ".scheme",
5384
- expected: "(\"bbs\" | \"standard\")",
5385
- value: input.scheme
5386
- }), (Array.isArray(input.attestationMessages) || $report(_exceptionable, {
5387
- path: _path + ".attestationMessages",
5388
- expected: "Array<string>",
5389
- value: input.attestationMessages
5390
- })) && input.attestationMessages.map((elem, _index7) => "string" === typeof elem || $report(_exceptionable, {
5391
- path: _path + ".attestationMessages[" + _index7 + "]",
5392
- expected: "string",
5393
- value: elem
5394
- })).every(flag => flag) || $report(_exceptionable, {
5395
- path: _path + ".attestationMessages",
5396
- expected: "Array<string>",
5397
- value: input.attestationMessages
5398
- }), ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof || $report(_exceptionable, {
5399
- path: _path + ".dataIntegrityProof",
5400
- expected: "__type.o1",
5401
- value: input.dataIntegrityProof
5402
- })) && $vo3(input.dataIntegrityProof, _path + ".dataIntegrityProof", true && _exceptionable) || $report(_exceptionable, {
5403
- path: _path + ".dataIntegrityProof",
5404
- expected: "__type.o1",
5405
- value: input.dataIntegrityProof
5406
- }), "string" === typeof input.name || $report(_exceptionable, {
5407
- path: _path + ".name",
5408
- expected: "string",
5409
- value: input.name
5410
- }), "string" === typeof input.image || $report(_exceptionable, {
5411
- path: _path + ".image",
5412
- expected: "string",
5413
- value: input.image
5414
- }), "string" === typeof input.description || $report(_exceptionable, {
5415
- path: _path + ".description",
5416
- expected: "string",
5417
- value: input.description
5418
- }), undefined === input.anchors || (Array.isArray(input.anchors) || $report(_exceptionable, {
5419
- path: _path + ".anchors",
5420
- expected: "(Array<__type> | undefined)",
5421
- value: input.anchors
5422
- })) && input.anchors.map((elem, _index8) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
5423
- path: _path + ".anchors[" + _index8 + "]",
5424
- expected: "__type.o2",
5425
- value: elem
5426
- })) && $vo4(elem, _path + ".anchors[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
5427
- path: _path + ".anchors[" + _index8 + "]",
5428
- expected: "__type.o2",
5429
- value: elem
5430
- })).every(flag => flag) || $report(_exceptionable, {
5431
- path: _path + ".anchors",
5432
- expected: "(Array<__type> | undefined)",
5433
- value: input.anchors
5434
- })].every(flag => flag); const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.txHash || $report(_exceptionable, {
5435
- path: _path + ".txHash",
5436
- expected: "string",
5437
- value: input.txHash
5438
- }), "string" === typeof input.block || "number" === typeof input.block || "bigint" === typeof input.block || $report(_exceptionable, {
5439
- path: _path + ".block",
5440
- expected: "(bigint | number | string)",
5441
- value: input.block
5442
- }), "string" === typeof input.blockTimestamp || "number" === typeof input.blockTimestamp || "bigint" === typeof input.blockTimestamp || $report(_exceptionable, {
5443
- path: _path + ".blockTimestamp",
5444
- expected: "(bigint | number | string)",
5445
- value: input.blockTimestamp
5446
- }), "string" === typeof input.timestamp || "number" === typeof input.timestamp || "bigint" === typeof input.timestamp || $report(_exceptionable, {
5447
- path: _path + ".timestamp",
5448
- expected: "(bigint | number | string)",
5449
- value: input.timestamp
5450
- })].every(flag => flag); const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
5451
- path: _path + ".message",
5452
- expected: "string",
5453
- value: input.message
5454
- }), "string" === typeof input.signature || $report(_exceptionable, {
5455
- path: _path + ".signature",
5456
- expected: "string",
5457
- value: input.signature
5458
- }), "string" === typeof input.signer || $report(_exceptionable, {
5459
- path: _path + ".signer",
5460
- expected: "string",
5461
- value: input.signer
5462
- }), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
5463
- path: _path + ".publicKey",
5464
- expected: "(string | undefined)",
5465
- value: input.publicKey
5466
- })].every(flag => flag); const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.signature || $report(_exceptionable, {
5467
- path: _path + ".signature",
5468
- expected: "string",
5469
- value: input.signature
5470
- }), "string" === typeof input.signer || $report(_exceptionable, {
5471
- path: _path + ".signer",
5472
- expected: "string",
5473
- value: input.signer
5474
- }), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
5475
- path: _path + ".publicKey",
5476
- expected: "(string | undefined)",
5477
- value: input.publicKey
5478
- })].every(flag => flag); const $vo4 = (input, _path, _exceptionable = true) => [undefined === input.txHash || "string" === typeof input.txHash || $report(_exceptionable, {
5479
- path: _path + ".txHash",
5480
- expected: "(string | undefined)",
5481
- value: input.txHash
5482
- }), undefined === input.message || "string" === typeof input.message || $report(_exceptionable, {
5483
- path: _path + ".message",
5484
- expected: "(string | undefined)",
5485
- value: input.message
5486
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
5487
- if (false === __is(input)) {
5488
- errors = [];
5489
- $report = typia.validate.report(errors);
5490
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
5491
- path: _path + "",
5492
- expected: "CreateAttestationProofPayload",
5493
- value: input
5494
- })) && $vo0(input, _path + "", true) || $report(true, {
5495
- path: _path + "",
5496
- expected: "CreateAttestationProofPayload",
5497
- value: input
5498
- }))(input, "$input", true);
5499
- const success = 0 === errors.length;
5500
- return {
5501
- success,
5502
- errors,
5503
- data: success ? input : undefined
5504
- };
5505
- }
5506
- return {
5507
- success: true,
5508
- errors: [],
5509
- data: input
5510
- };
5511
- }; })()(payload ?? {});
5512
- if (!validateRes.success) {
5513
- throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5514
- }
5515
- const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, payload);
5516
- return new CreateAttestationProofSuccessResponse(response.data);
5517
- }
5518
- catch (error) {
5519
- await this.handleApiError(error);
5520
- return Promise.reject(error);
5521
- }
5522
- }
5523
- async deleteAttestationProof(payload) {
5524
- try {
5525
- const validateRes = (() => { const $io0 = input => "string" === typeof input.id; const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || $report(_exceptionable, {
5526
- path: _path + ".id",
5527
- expected: "string",
5528
- value: input.id
5529
- })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
5530
- if (false === __is(input)) {
5531
- errors = [];
5532
- $report = typia.validate.report(errors);
5533
- ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $report(true, {
5534
- path: _path + "",
5535
- expected: "DeleteAttestationProofPayload",
5536
- value: input
5537
- })) && $vo0(input, _path + "", true) || $report(true, {
5538
- path: _path + "",
5539
- expected: "DeleteAttestationProofPayload",
5540
- value: input
5541
- }))(input, "$input", true);
5542
- const success = 0 === errors.length;
5543
- return {
5544
- success,
5545
- errors,
5546
- data: success ? input : undefined
5547
- };
5548
- }
5549
- return {
5550
- success: true,
5551
- errors: [],
5552
- data: input
5553
- };
5554
- }; })()(payload ?? {});
5555
- if (!validateRes.success) {
5556
- throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5557
- }
5558
- const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, {
5559
- data: payload
5560
- });
5561
- return new DeleteAttestationProofSuccessResponse(response.data);
5562
- }
5563
- catch (error) {
5564
- await this.handleApiError(error);
5565
- return Promise.reject(error);
5566
- }
5567
- }
5568
5413
  async getGatedContentForClaim(claimId) {
5569
5414
  try {
5570
5415
  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 => {