bitbadgesjs-sdk 0.3.63 → 0.3.65

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 (34) hide show
  1. package/dist/api-indexer/BitBadgesApi.d.ts +6 -3
  2. package/dist/api-indexer/BitBadgesApi.d.ts.map +1 -1
  3. package/dist/api-indexer/BitBadgesApi.js +460 -117
  4. package/dist/api-indexer/BitBadgesApi.js.map +1 -1
  5. package/dist/api-indexer/BitBadgesUserInfo.d.ts +8 -3
  6. package/dist/api-indexer/BitBadgesUserInfo.d.ts.map +1 -1
  7. package/dist/api-indexer/BitBadgesUserInfo.js +18 -3
  8. package/dist/api-indexer/BitBadgesUserInfo.js.map +1 -1
  9. package/dist/api-indexer/docs/docs.d.ts +33 -1
  10. package/dist/api-indexer/docs/docs.d.ts.map +1 -1
  11. package/dist/api-indexer/docs/docs.js +50 -2
  12. package/dist/api-indexer/docs/docs.js.map +1 -1
  13. package/dist/api-indexer/docs/interfaces.d.ts +6 -1
  14. package/dist/api-indexer/docs/interfaces.d.ts.map +1 -1
  15. package/dist/api-indexer/requests/requests.d.ts +80 -21
  16. package/dist/api-indexer/requests/requests.d.ts.map +1 -1
  17. package/dist/api-indexer/requests/requests.js +52 -9
  18. package/dist/api-indexer/requests/requests.js.map +1 -1
  19. package/dist/api-indexer/requests/routes.d.ts +3 -1
  20. package/dist/api-indexer/requests/routes.d.ts.map +1 -1
  21. package/dist/api-indexer/requests/routes.js +5 -3
  22. package/dist/api-indexer/requests/routes.js.map +1 -1
  23. package/dist/core/blockin.d.ts +1 -2
  24. package/dist/core/blockin.d.ts.map +1 -1
  25. package/dist/core/blockin.js +1 -5
  26. package/dist/core/blockin.js.map +1 -1
  27. package/dist/core/secrets.d.ts +7 -3
  28. package/dist/core/secrets.d.ts.map +1 -1
  29. package/dist/core/secrets.js +11 -1
  30. package/dist/core/secrets.js.map +1 -1
  31. package/dist/interfaces/badges/core.d.ts +4 -2
  32. package/dist/interfaces/badges/core.d.ts.map +1 -1
  33. package/dist/tsconfig.build.tsbuildinfo +1 -1
  34. package/package.json +1 -1
@@ -1217,12 +1217,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1217
1217
  async deleteAddressLists(payload) {
1218
1218
  return await BitBadgesAddressList_1.BitBadgesAddressList.DeleteAddressList(this, payload);
1219
1219
  }
1220
- async getAndVerifySIWBBRequest(payload) {
1220
+ async exchangeSIWBBAuthorizationCode(payload) {
1221
1221
  try {
1222
1222
  const validateRes = (input => {
1223
1223
  const errors = [];
1224
1224
  const __is = input => {
1225
- const $io0 = input => "string" === typeof input.code && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io1(input.options)) && (undefined === input.client_secret || "string" === typeof input.client_secret) && (undefined === input.client_id || "string" === typeof input.client_id) && (undefined === input.redirect_uri || "string" === typeof input.redirect_uri) && (undefined === input.grant_type || "authorization_code" === input.grant_type);
1225
+ const $io0 = input => (undefined === input.code || "string" === typeof input.code) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io1(input.options)) && (undefined === input.client_secret || "string" === typeof input.client_secret) && (undefined === input.client_id || "string" === typeof input.client_id) && (undefined === input.redirect_uri || "string" === typeof input.redirect_uri) && (undefined === input.grant_type || "authorization_code" === input.grant_type || "refresh_token" === input.grant_type) && (undefined === input.refresh_token || "string" === typeof input.refresh_token);
1226
1226
  const $io1 = input => (undefined === input.ownershipRequirements || "object" === typeof input.ownershipRequirements && null !== input.ownershipRequirements && $iu0(input.ownershipRequirements)) && (undefined === input.otherSignIns || Array.isArray(input.otherSignIns) && input.otherSignIns.every(elem => "discord" === elem || "github" === elem || "google" === elem || "twitter" === elem)) && (undefined === input.issuedAtTimeWindowMs || "number" === typeof input.issuedAtTimeWindowMs) && (undefined === input.skipAssetVerification || "boolean" === typeof input.skipAssetVerification);
1227
1227
  const $io2 = input => Array.isArray(input.$and) && input.$and.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1228
1228
  const $io3 = input => Array.isArray(input.$or) && input.$or.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
@@ -1240,14 +1240,14 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1240
1240
  else
1241
1241
  return false;
1242
1242
  })();
1243
- return "object" === typeof input && null !== input && $io0(input);
1243
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1244
1244
  };
1245
1245
  if (false === __is(input)) {
1246
1246
  const $report = typia_1.default.validate.report(errors);
1247
1247
  ((input, _path, _exceptionable = true) => {
1248
- const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.code || $report(_exceptionable, {
1248
+ const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.code || "string" === typeof input.code || $report(_exceptionable, {
1249
1249
  path: _path + ".code",
1250
- expected: "string",
1250
+ expected: "(string | undefined)",
1251
1251
  value: input.code
1252
1252
  }), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || $report(_exceptionable, {
1253
1253
  path: _path + ".options",
@@ -1269,10 +1269,14 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1269
1269
  path: _path + ".redirect_uri",
1270
1270
  expected: "(string | undefined)",
1271
1271
  value: input.redirect_uri
1272
- }), undefined === input.grant_type || "authorization_code" === input.grant_type || $report(_exceptionable, {
1272
+ }), undefined === input.grant_type || "authorization_code" === input.grant_type || "refresh_token" === input.grant_type || $report(_exceptionable, {
1273
1273
  path: _path + ".grant_type",
1274
- expected: "(\"authorization_code\" | undefined)",
1274
+ expected: "(\"authorization_code\" | \"refresh_token\" | undefined)",
1275
1275
  value: input.grant_type
1276
+ }), undefined === input.refresh_token || "string" === typeof input.refresh_token || $report(_exceptionable, {
1277
+ path: _path + ".refresh_token",
1278
+ expected: "(string | undefined)",
1279
+ value: input.refresh_token
1276
1280
  })].every(flag => flag);
1277
1281
  const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.ownershipRequirements || ("object" === typeof input.ownershipRequirements && null !== input.ownershipRequirements || $report(_exceptionable, {
1278
1282
  path: _path + ".ownershipRequirements",
@@ -1451,13 +1455,13 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1451
1455
  value: input
1452
1456
  });
1453
1457
  })();
1454
- return ("object" === typeof input && null !== input || $report(true, {
1458
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
1455
1459
  path: _path + "",
1456
- expected: "GetAndVerifySIWBBRequestPayload",
1460
+ expected: "ExchangeSIWBBAuthorizationCodePayload",
1457
1461
  value: input
1458
1462
  })) && $vo0(input, _path + "", true) || $report(true, {
1459
1463
  path: _path + "",
1460
- expected: "GetAndVerifySIWBBRequestPayload",
1464
+ expected: "ExchangeSIWBBAuthorizationCodePayload",
1461
1465
  value: input
1462
1466
  });
1463
1467
  })(input, "$input", true);
@@ -1472,8 +1476,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1472
1476
  if (!validateRes.success) {
1473
1477
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
1474
1478
  }
1475
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetAndVerifySIWBBRequestsRoute()}`, payload);
1476
- return new requests_1.GetAndVerifySIWBBRequestSuccessResponse(response.data).convert(this.ConvertFunction);
1479
+ const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.ExchangeSIWBBAuthorizationCodesRoute()}`, payload);
1480
+ return new requests_1.ExchangeSIWBBAuthorizationCodeSuccessResponse(response.data).convert(this.ConvertFunction);
1477
1481
  }
1478
1482
  catch (error) {
1479
1483
  await this.handleApiError(error);
@@ -1502,11 +1506,11 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1502
1506
  })].every(flag => flag);
1503
1507
  return ("object" === typeof input && null !== input || $report(true, {
1504
1508
  path: _path + "",
1505
- expected: "GetAndVerifySIWBBRequestsForDeveloperAppPayload",
1509
+ expected: "GetSIWBBRequestsForDeveloperAppPayload",
1506
1510
  value: input
1507
1511
  })) && $vo0(input, _path + "", true) || $report(true, {
1508
1512
  path: _path + "",
1509
- expected: "GetAndVerifySIWBBRequestsForDeveloperAppPayload",
1513
+ expected: "GetSIWBBRequestsForDeveloperAppPayload",
1510
1514
  value: input
1511
1515
  });
1512
1516
  })(input, "$input", true);
@@ -1522,7 +1526,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1522
1526
  throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
1523
1527
  }
1524
1528
  const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetSIWBBRequestsForDeveloperAppRoute()}`, payload);
1525
- return new requests_1.GetAndVerifySIWBBRequestsForDeveloperAppSuccessResponse(response.data).convert(this.ConvertFunction);
1529
+ return new requests_1.GetSIWBBRequestsForDeveloperAppSuccessResponse(response.data).convert(this.ConvertFunction);
1526
1530
  }
1527
1531
  catch (error) {
1528
1532
  await this.handleApiError(error);
@@ -1534,25 +1538,27 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1534
1538
  const validateRes = (input => {
1535
1539
  const errors = [];
1536
1540
  const __is = input => {
1537
- const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.image || "string" === typeof input.image) && (undefined === input.ownershipRequirements || "object" === typeof input.ownershipRequirements && null !== input.ownershipRequirements && $iu0(input.ownershipRequirements)) && (undefined === input.attestationsPresentations || Array.isArray(input.attestationsPresentations) && input.attestationsPresentations.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && "string" === typeof input.clientId && (undefined === input.otherSignIns || Array.isArray(input.otherSignIns) && input.otherSignIns.every(elem => "discord" === elem || "github" === elem || "google" === elem || "twitter" === elem)) && (undefined === input.redirectUri || "string" === typeof input.redirectUri) && (undefined === input.state || "string" === typeof input.state);
1538
- const $io1 = input => Array.isArray(input.$and) && input.$and.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1539
- const $io2 = input => Array.isArray(input.$or) && input.$or.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1540
- const $io3 = input => Array.isArray(input.assets) && input.assets.every(elem => "object" === typeof elem && null !== elem && $io4(elem)) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io6(input.options));
1541
- const $io4 = 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 && $io5(elem)))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && ("object" === typeof input.mustOwnAmounts && null !== input.mustOwnAmounts && $io5(input.mustOwnAmounts)) && (undefined === input.additionalCriteria || "string" === typeof input.additionalCriteria);
1542
- const $io5 = 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);
1543
- const $io6 = input => undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification;
1544
- const $io7 = 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 && $io8(elem))) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.createdBy && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io9(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 && $io10(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) && $io11(elem)));
1545
- const $io8 = 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);
1546
- const $io9 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
1547
- const $io10 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
1548
- const $io11 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message);
1541
+ 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.ownershipRequirements || "object" === typeof input.ownershipRequirements && null !== input.ownershipRequirements && $iu0(input.ownershipRequirements)) && (undefined === input.attestationsPresentations || Array.isArray(input.attestationsPresentations) && input.attestationsPresentations.every(elem => "object" === typeof elem && null !== elem && $io9(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);
1542
+ 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));
1543
+ const $io2 = input => true;
1544
+ const $io3 = input => Array.isArray(input.$and) && input.$and.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1545
+ const $io4 = input => Array.isArray(input.$or) && input.$or.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1546
+ 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));
1547
+ 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);
1548
+ 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);
1549
+ const $io8 = input => undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification;
1550
+ const $io9 = 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 && $io10(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 && $io11(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 && $io12(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) && $io13(elem)));
1551
+ const $io10 = 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);
1552
+ const $io11 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
1553
+ const $io12 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
1554
+ const $io13 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message);
1549
1555
  const $iu0 = input => (() => {
1550
1556
  if (undefined !== input.$and)
1551
- return $io1(input);
1557
+ return $io3(input);
1552
1558
  else if (undefined !== input.$or)
1553
- return $io2(input);
1559
+ return $io4(input);
1554
1560
  else if (undefined !== input.assets)
1555
- return $io3(input);
1561
+ return $io5(input);
1556
1562
  else
1557
1563
  return false;
1558
1564
  })();
@@ -1561,7 +1567,27 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1561
1567
  if (false === __is(input)) {
1562
1568
  const $report = typia_1.default.validate.report(errors);
1563
1569
  ((input, _path, _exceptionable = true) => {
1564
- const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
1570
+ const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.response_type || $report(_exceptionable, {
1571
+ path: _path + ".response_type",
1572
+ expected: "string",
1573
+ value: input.response_type
1574
+ }), (Array.isArray(input.scopes) || $report(_exceptionable, {
1575
+ path: _path + ".scopes",
1576
+ expected: "Array<OAuthScopeDetails>",
1577
+ value: input.scopes
1578
+ })) && input.scopes.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1579
+ path: _path + ".scopes[" + _index1 + "]",
1580
+ expected: "OAuthScopeDetails",
1581
+ value: elem
1582
+ })) && $vo1(elem, _path + ".scopes[" + _index1 + "]", true && _exceptionable) || $report(_exceptionable, {
1583
+ path: _path + ".scopes[" + _index1 + "]",
1584
+ expected: "OAuthScopeDetails",
1585
+ value: elem
1586
+ })).every(flag => flag) || $report(_exceptionable, {
1587
+ path: _path + ".scopes",
1588
+ expected: "Array<OAuthScopeDetails>",
1589
+ value: input.scopes
1590
+ }), undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
1565
1591
  path: _path + ".name",
1566
1592
  expected: "(string | undefined)",
1567
1593
  value: input.name
@@ -1585,53 +1611,67 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1585
1611
  path: _path + ".attestationsPresentations",
1586
1612
  expected: "(Array<iAttestationsProof<NumberType>> | undefined)",
1587
1613
  value: input.attestationsPresentations
1588
- })) && input.attestationsPresentations.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1589
- path: _path + ".attestationsPresentations[" + _index1 + "]",
1614
+ })) && input.attestationsPresentations.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1615
+ path: _path + ".attestationsPresentations[" + _index2 + "]",
1590
1616
  expected: "iAttestationsProof<NumberType>",
1591
1617
  value: elem
1592
- })) && $vo7(elem, _path + ".attestationsPresentations[" + _index1 + "]", true && _exceptionable) || $report(_exceptionable, {
1593
- path: _path + ".attestationsPresentations[" + _index1 + "]",
1618
+ })) && $vo9(elem, _path + ".attestationsPresentations[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
1619
+ path: _path + ".attestationsPresentations[" + _index2 + "]",
1594
1620
  expected: "iAttestationsProof<NumberType>",
1595
1621
  value: elem
1596
1622
  })).every(flag => flag) || $report(_exceptionable, {
1597
1623
  path: _path + ".attestationsPresentations",
1598
1624
  expected: "(Array<iAttestationsProof<NumberType>> | undefined)",
1599
1625
  value: input.attestationsPresentations
1600
- }), "string" === typeof input.clientId || $report(_exceptionable, {
1601
- path: _path + ".clientId",
1626
+ }), "string" === typeof input.client_id || $report(_exceptionable, {
1627
+ path: _path + ".client_id",
1602
1628
  expected: "string",
1603
- value: input.clientId
1629
+ value: input.client_id
1604
1630
  }), undefined === input.otherSignIns || (Array.isArray(input.otherSignIns) || $report(_exceptionable, {
1605
1631
  path: _path + ".otherSignIns",
1606
1632
  expected: "(Array<\"discord\" | \"github\" | \"google\" | \"twitter\"> | undefined)",
1607
1633
  value: input.otherSignIns
1608
- })) && input.otherSignIns.map((elem, _index2) => "discord" === elem || "github" === elem || "google" === elem || "twitter" === elem || $report(_exceptionable, {
1609
- path: _path + ".otherSignIns[" + _index2 + "]",
1634
+ })) && input.otherSignIns.map((elem, _index3) => "discord" === elem || "github" === elem || "google" === elem || "twitter" === elem || $report(_exceptionable, {
1635
+ path: _path + ".otherSignIns[" + _index3 + "]",
1610
1636
  expected: "(\"discord\" | \"github\" | \"google\" | \"twitter\")",
1611
1637
  value: elem
1612
1638
  })).every(flag => flag) || $report(_exceptionable, {
1613
1639
  path: _path + ".otherSignIns",
1614
1640
  expected: "(Array<\"discord\" | \"github\" | \"google\" | \"twitter\"> | undefined)",
1615
1641
  value: input.otherSignIns
1616
- }), undefined === input.redirectUri || "string" === typeof input.redirectUri || $report(_exceptionable, {
1617
- path: _path + ".redirectUri",
1642
+ }), undefined === input.redirect_uri || "string" === typeof input.redirect_uri || $report(_exceptionable, {
1643
+ path: _path + ".redirect_uri",
1618
1644
  expected: "(string | undefined)",
1619
- value: input.redirectUri
1645
+ value: input.redirect_uri
1620
1646
  }), undefined === input.state || "string" === typeof input.state || $report(_exceptionable, {
1621
1647
  path: _path + ".state",
1622
1648
  expected: "(string | undefined)",
1623
1649
  value: input.state
1624
1650
  })].every(flag => flag);
1625
- const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$and) || $report(_exceptionable, {
1651
+ const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.scopeName || $report(_exceptionable, {
1652
+ path: _path + ".scopeName",
1653
+ expected: "string",
1654
+ value: input.scopeName
1655
+ }), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || $report(_exceptionable, {
1656
+ path: _path + ".options",
1657
+ expected: "(object | undefined)",
1658
+ value: input.options
1659
+ })) && $vo2(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
1660
+ path: _path + ".options",
1661
+ expected: "(object | undefined)",
1662
+ value: input.options
1663
+ })].every(flag => flag);
1664
+ const $vo2 = (input, _path, _exceptionable = true) => true;
1665
+ const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$and) || $report(_exceptionable, {
1626
1666
  path: _path + ".$and",
1627
1667
  expected: "Array<AssetConditionGroup<NumberType>>",
1628
1668
  value: input.$and
1629
- })) && input.$and.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1630
- path: _path + ".$and[" + _index3 + "]",
1669
+ })) && input.$and.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1670
+ path: _path + ".$and[" + _index4 + "]",
1631
1671
  expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1632
1672
  value: elem
1633
- })) && $vu0(elem, _path + ".$and[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
1634
- path: _path + ".$and[" + _index3 + "]",
1673
+ })) && $vu0(elem, _path + ".$and[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
1674
+ path: _path + ".$and[" + _index4 + "]",
1635
1675
  expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1636
1676
  value: elem
1637
1677
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1639,16 +1679,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1639
1679
  expected: "Array<AssetConditionGroup<NumberType>>",
1640
1680
  value: input.$and
1641
1681
  })].every(flag => flag);
1642
- const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$or) || $report(_exceptionable, {
1682
+ const $vo4 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$or) || $report(_exceptionable, {
1643
1683
  path: _path + ".$or",
1644
1684
  expected: "Array<AssetConditionGroup<NumberType>>",
1645
1685
  value: input.$or
1646
- })) && input.$or.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1647
- path: _path + ".$or[" + _index4 + "]",
1686
+ })) && input.$or.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1687
+ path: _path + ".$or[" + _index5 + "]",
1648
1688
  expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1649
1689
  value: elem
1650
- })) && $vu0(elem, _path + ".$or[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
1651
- path: _path + ".$or[" + _index4 + "]",
1690
+ })) && $vu0(elem, _path + ".$or[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
1691
+ path: _path + ".$or[" + _index5 + "]",
1652
1692
  expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1653
1693
  value: elem
1654
1694
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1656,16 +1696,16 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1656
1696
  expected: "Array<AssetConditionGroup<NumberType>>",
1657
1697
  value: input.$or
1658
1698
  })].every(flag => flag);
1659
- const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.assets) || $report(_exceptionable, {
1699
+ const $vo5 = (input, _path, _exceptionable = true) => [(Array.isArray(input.assets) || $report(_exceptionable, {
1660
1700
  path: _path + ".assets",
1661
1701
  expected: "Array<AssetDetails<NumberType>>",
1662
1702
  value: input.assets
1663
- })) && input.assets.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1664
- path: _path + ".assets[" + _index5 + "]",
1703
+ })) && input.assets.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1704
+ path: _path + ".assets[" + _index6 + "]",
1665
1705
  expected: "AssetDetails<NumberType>",
1666
1706
  value: elem
1667
- })) && $vo4(elem, _path + ".assets[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
1668
- path: _path + ".assets[" + _index5 + "]",
1707
+ })) && $vo6(elem, _path + ".assets[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
1708
+ path: _path + ".assets[" + _index6 + "]",
1669
1709
  expected: "AssetDetails<NumberType>",
1670
1710
  value: elem
1671
1711
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1676,12 +1716,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1676
1716
  path: _path + ".options",
1677
1717
  expected: "(__type | undefined)",
1678
1718
  value: input.options
1679
- })) && $vo6(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
1719
+ })) && $vo8(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
1680
1720
  path: _path + ".options",
1681
1721
  expected: "(__type | undefined)",
1682
1722
  value: input.options
1683
1723
  })].every(flag => flag);
1684
- const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.chain || $report(_exceptionable, {
1724
+ const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.chain || $report(_exceptionable, {
1685
1725
  path: _path + ".chain",
1686
1726
  expected: "string",
1687
1727
  value: input.chain
@@ -1693,20 +1733,20 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1693
1733
  path: _path + ".assetIds",
1694
1734
  expected: "Array<string | UintRange<NumberType>>",
1695
1735
  value: input.assetIds
1696
- })) && input.assetIds.map((elem, _index6) => (null !== elem || $report(_exceptionable, {
1697
- path: _path + ".assetIds[" + _index6 + "]",
1736
+ })) && input.assetIds.map((elem, _index7) => (null !== elem || $report(_exceptionable, {
1737
+ path: _path + ".assetIds[" + _index7 + "]",
1698
1738
  expected: "(UintRange<NumberType> | string)",
1699
1739
  value: elem
1700
1740
  })) && (undefined !== elem || $report(_exceptionable, {
1701
- path: _path + ".assetIds[" + _index6 + "]",
1741
+ path: _path + ".assetIds[" + _index7 + "]",
1702
1742
  expected: "(UintRange<NumberType> | string)",
1703
1743
  value: elem
1704
1744
  })) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1705
- path: _path + ".assetIds[" + _index6 + "]",
1745
+ path: _path + ".assetIds[" + _index7 + "]",
1706
1746
  expected: "(UintRange<NumberType> | string)",
1707
1747
  value: elem
1708
- })) && $vo5(elem, _path + ".assetIds[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
1709
- path: _path + ".assetIds[" + _index6 + "]",
1748
+ })) && $vo7(elem, _path + ".assetIds[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
1749
+ path: _path + ".assetIds[" + _index7 + "]",
1710
1750
  expected: "(UintRange<NumberType> | string)",
1711
1751
  value: elem
1712
1752
  }))).every(flag => flag) || $report(_exceptionable, {
@@ -1717,12 +1757,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1717
1757
  path: _path + ".ownershipTimes",
1718
1758
  expected: "Array<UintRange<NumberType>>",
1719
1759
  value: input.ownershipTimes
1720
- })) && input.ownershipTimes.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1721
- path: _path + ".ownershipTimes[" + _index7 + "]",
1760
+ })) && input.ownershipTimes.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1761
+ path: _path + ".ownershipTimes[" + _index8 + "]",
1722
1762
  expected: "UintRange<NumberType>",
1723
1763
  value: elem
1724
- })) && $vo5(elem, _path + ".ownershipTimes[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
1725
- path: _path + ".ownershipTimes[" + _index7 + "]",
1764
+ })) && $vo7(elem, _path + ".ownershipTimes[" + _index8 + "]", true && _exceptionable) || $report(_exceptionable, {
1765
+ path: _path + ".ownershipTimes[" + _index8 + "]",
1726
1766
  expected: "UintRange<NumberType>",
1727
1767
  value: elem
1728
1768
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1733,7 +1773,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1733
1773
  path: _path + ".mustOwnAmounts",
1734
1774
  expected: "UintRange<NumberType>",
1735
1775
  value: input.mustOwnAmounts
1736
- })) && $vo5(input.mustOwnAmounts, _path + ".mustOwnAmounts", true && _exceptionable) || $report(_exceptionable, {
1776
+ })) && $vo7(input.mustOwnAmounts, _path + ".mustOwnAmounts", true && _exceptionable) || $report(_exceptionable, {
1737
1777
  path: _path + ".mustOwnAmounts",
1738
1778
  expected: "UintRange<NumberType>",
1739
1779
  value: input.mustOwnAmounts
@@ -1742,7 +1782,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1742
1782
  expected: "(string | undefined)",
1743
1783
  value: input.additionalCriteria
1744
1784
  })].every(flag => flag);
1745
- const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
1785
+ const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
1746
1786
  path: _path + ".start",
1747
1787
  expected: "(bigint | number | string)",
1748
1788
  value: input.start
@@ -1751,17 +1791,17 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1751
1791
  expected: "(bigint | number | string)",
1752
1792
  value: input.end
1753
1793
  })].every(flag => flag);
1754
- const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification || $report(_exceptionable, {
1794
+ const $vo8 = (input, _path, _exceptionable = true) => [undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification || $report(_exceptionable, {
1755
1795
  path: _path + ".numMatchesForVerification",
1756
1796
  expected: "(bigint | number | string | undefined)",
1757
1797
  value: input.numMatchesForVerification
1758
1798
  })].every(flag => flag);
1759
- const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.entropies || (Array.isArray(input.entropies) || $report(_exceptionable, {
1799
+ const $vo9 = (input, _path, _exceptionable = true) => [undefined === input.entropies || (Array.isArray(input.entropies) || $report(_exceptionable, {
1760
1800
  path: _path + ".entropies",
1761
1801
  expected: "(Array<string> | undefined)",
1762
1802
  value: input.entropies
1763
- })) && input.entropies.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
1764
- path: _path + ".entropies[" + _index8 + "]",
1803
+ })) && input.entropies.map((elem, _index9) => "string" === typeof elem || $report(_exceptionable, {
1804
+ path: _path + ".entropies[" + _index9 + "]",
1765
1805
  expected: "string",
1766
1806
  value: elem
1767
1807
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1772,12 +1812,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1772
1812
  path: _path + ".updateHistory",
1773
1813
  expected: "(Array<iUpdateHistory<NumberType>> | undefined)",
1774
1814
  value: input.updateHistory
1775
- })) && input.updateHistory.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1776
- path: _path + ".updateHistory[" + _index9 + "]",
1815
+ })) && input.updateHistory.map((elem, _index10) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1816
+ path: _path + ".updateHistory[" + _index10 + "]",
1777
1817
  expected: "iUpdateHistory<NumberType>",
1778
1818
  value: elem
1779
- })) && $vo8(elem, _path + ".updateHistory[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
1780
- path: _path + ".updateHistory[" + _index9 + "]",
1819
+ })) && $vo10(elem, _path + ".updateHistory[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
1820
+ path: _path + ".updateHistory[" + _index10 + "]",
1781
1821
  expected: "iUpdateHistory<NumberType>",
1782
1822
  value: elem
1783
1823
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1792,11 +1832,15 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1792
1832
  path: _path + ".createdBy",
1793
1833
  expected: "string",
1794
1834
  value: input.createdBy
1835
+ }), "string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt || $report(_exceptionable, {
1836
+ path: _path + ".createdAt",
1837
+ expected: "(bigint | number | string)",
1838
+ value: input.createdAt
1795
1839
  }), ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance || $report(_exceptionable, {
1796
1840
  path: _path + ".proofOfIssuance",
1797
1841
  expected: "__type.o1",
1798
1842
  value: input.proofOfIssuance
1799
- })) && $vo9(input.proofOfIssuance, _path + ".proofOfIssuance", true && _exceptionable) || $report(_exceptionable, {
1843
+ })) && $vo11(input.proofOfIssuance, _path + ".proofOfIssuance", true && _exceptionable) || $report(_exceptionable, {
1800
1844
  path: _path + ".proofOfIssuance",
1801
1845
  expected: "__type.o1",
1802
1846
  value: input.proofOfIssuance
@@ -1808,8 +1852,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1808
1852
  path: _path + ".attestationMessages",
1809
1853
  expected: "Array<string>",
1810
1854
  value: input.attestationMessages
1811
- })) && input.attestationMessages.map((elem, _index10) => "string" === typeof elem || $report(_exceptionable, {
1812
- path: _path + ".attestationMessages[" + _index10 + "]",
1855
+ })) && input.attestationMessages.map((elem, _index11) => "string" === typeof elem || $report(_exceptionable, {
1856
+ path: _path + ".attestationMessages[" + _index11 + "]",
1813
1857
  expected: "string",
1814
1858
  value: elem
1815
1859
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1820,7 +1864,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1820
1864
  path: _path + ".dataIntegrityProof",
1821
1865
  expected: "__type.o2",
1822
1866
  value: input.dataIntegrityProof
1823
- })) && $vo10(input.dataIntegrityProof, _path + ".dataIntegrityProof", true && _exceptionable) || $report(_exceptionable, {
1867
+ })) && $vo12(input.dataIntegrityProof, _path + ".dataIntegrityProof", true && _exceptionable) || $report(_exceptionable, {
1824
1868
  path: _path + ".dataIntegrityProof",
1825
1869
  expected: "__type.o2",
1826
1870
  value: input.dataIntegrityProof
@@ -1840,12 +1884,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1840
1884
  path: _path + ".anchors",
1841
1885
  expected: "(Array<__type> | undefined)",
1842
1886
  value: input.anchors
1843
- })) && input.anchors.map((elem, _index11) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
1844
- path: _path + ".anchors[" + _index11 + "]",
1887
+ })) && input.anchors.map((elem, _index12) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
1888
+ path: _path + ".anchors[" + _index12 + "]",
1845
1889
  expected: "__type.o3",
1846
1890
  value: elem
1847
- })) && $vo11(elem, _path + ".anchors[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
1848
- path: _path + ".anchors[" + _index11 + "]",
1891
+ })) && $vo13(elem, _path + ".anchors[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
1892
+ path: _path + ".anchors[" + _index12 + "]",
1849
1893
  expected: "__type.o3",
1850
1894
  value: elem
1851
1895
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1853,7 +1897,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1853
1897
  expected: "(Array<__type> | undefined)",
1854
1898
  value: input.anchors
1855
1899
  })].every(flag => flag);
1856
- const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.txHash || $report(_exceptionable, {
1900
+ const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.txHash || $report(_exceptionable, {
1857
1901
  path: _path + ".txHash",
1858
1902
  expected: "string",
1859
1903
  value: input.txHash
@@ -1870,7 +1914,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1870
1914
  expected: "(bigint | number | string)",
1871
1915
  value: input.timestamp
1872
1916
  })].every(flag => flag);
1873
- const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
1917
+ const $vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
1874
1918
  path: _path + ".message",
1875
1919
  expected: "string",
1876
1920
  value: input.message
@@ -1887,7 +1931,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1887
1931
  expected: "(string | undefined)",
1888
1932
  value: input.publicKey
1889
1933
  })].every(flag => flag);
1890
- const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.signature || $report(_exceptionable, {
1934
+ const $vo12 = (input, _path, _exceptionable = true) => ["string" === typeof input.signature || $report(_exceptionable, {
1891
1935
  path: _path + ".signature",
1892
1936
  expected: "string",
1893
1937
  value: input.signature
@@ -1900,7 +1944,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1900
1944
  expected: "(string | undefined)",
1901
1945
  value: input.publicKey
1902
1946
  })].every(flag => flag);
1903
- const $vo11 = (input, _path, _exceptionable = true) => [undefined === input.txHash || "string" === typeof input.txHash || $report(_exceptionable, {
1947
+ const $vo13 = (input, _path, _exceptionable = true) => [undefined === input.txHash || "string" === typeof input.txHash || $report(_exceptionable, {
1904
1948
  path: _path + ".txHash",
1905
1949
  expected: "(string | undefined)",
1906
1950
  value: input.txHash
@@ -1911,11 +1955,11 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1911
1955
  })].every(flag => flag);
1912
1956
  const $vu0 = (input, _path, _exceptionable = true) => (() => {
1913
1957
  if (undefined !== input.$and)
1914
- return $vo1(input, _path, true && _exceptionable);
1958
+ return $vo3(input, _path, true && _exceptionable);
1915
1959
  else if (undefined !== input.$or)
1916
- return $vo2(input, _path, true && _exceptionable);
1960
+ return $vo4(input, _path, true && _exceptionable);
1917
1961
  else if (undefined !== input.assets)
1918
- return $vo3(input, _path, true && _exceptionable);
1962
+ return $vo5(input, _path, true && _exceptionable);
1919
1963
  else
1920
1964
  return $report(_exceptionable, {
1921
1965
  path: _path,
@@ -2055,7 +2099,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2055
2099
  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);
2056
2100
  const $io8 = input => undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification;
2057
2101
  const $io9 = input => true;
2058
- const $io10 = input => "string" === typeof input.createdBy && ("bbs" === input.scheme || "standard" === input.scheme) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && (Array.isArray(input.attestationMessages) && input.attestationMessages.every(elem => "string" === typeof elem)) && ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io11(input.dataIntegrityProof)) && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io12(input.proofOfIssuance)) && "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (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 && $io13(elem))) && (undefined === input.anchors || Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io14(elem)));
2102
+ const $io10 = input => "string" === typeof input.createdBy && ("string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt) && ("bbs" === input.scheme || "standard" === input.scheme) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && (Array.isArray(input.attestationMessages) && input.attestationMessages.every(elem => "string" === typeof elem)) && ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io11(input.dataIntegrityProof)) && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io12(input.proofOfIssuance)) && "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (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 && $io13(elem))) && (undefined === input.anchors || Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io14(elem)));
2059
2103
  const $io11 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
2060
2104
  const $io12 = input => "string" === typeof input.message && "string" === typeof input.signer && "string" === typeof input.signature && (undefined === input.publicKey || "string" === typeof input.publicKey);
2061
2105
  const $io13 = 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);
@@ -2353,6 +2397,10 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
2353
2397
  path: _path + ".createdBy",
2354
2398
  expected: "string",
2355
2399
  value: input.createdBy
2400
+ }), "string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt || $report(_exceptionable, {
2401
+ path: _path + ".createdAt",
2402
+ expected: "(bigint | number | string)",
2403
+ value: input.createdAt
2356
2404
  }), "bbs" === input.scheme || "standard" === input.scheme || $report(_exceptionable, {
2357
2405
  path: _path + ".scheme",
2358
2406
  expected: "(\"bbs\" | \"standard\")",
@@ -4400,7 +4448,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4400
4448
  const validateRes = (input => {
4401
4449
  const errors = [];
4402
4450
  const __is = input => {
4403
- const $io0 = input => "string" === typeof input.response_type && "string" === typeof input.client_id && "string" === typeof input.redirect_uri && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.state || "string" === typeof input.state);
4451
+ const $io0 = input => "string" === typeof input.response_type && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && "string" === typeof input.client_id && "string" === typeof input.redirect_uri && (undefined === input.state || "string" === typeof input.state);
4404
4452
  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));
4405
4453
  const $io2 = input => true;
4406
4454
  return "object" === typeof input && null !== input && $io0(input);
@@ -4412,14 +4460,6 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4412
4460
  path: _path + ".response_type",
4413
4461
  expected: "string",
4414
4462
  value: input.response_type
4415
- }), "string" === typeof input.client_id || $report(_exceptionable, {
4416
- path: _path + ".client_id",
4417
- expected: "string",
4418
- value: input.client_id
4419
- }), "string" === typeof input.redirect_uri || $report(_exceptionable, {
4420
- path: _path + ".redirect_uri",
4421
- expected: "string",
4422
- value: input.redirect_uri
4423
4463
  }), (Array.isArray(input.scopes) || $report(_exceptionable, {
4424
4464
  path: _path + ".scopes",
4425
4465
  expected: "Array<OAuthScopeDetails>",
@@ -4436,6 +4476,14 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4436
4476
  path: _path + ".scopes",
4437
4477
  expected: "Array<OAuthScopeDetails>",
4438
4478
  value: input.scopes
4479
+ }), "string" === typeof input.client_id || $report(_exceptionable, {
4480
+ path: _path + ".client_id",
4481
+ expected: "string",
4482
+ value: input.client_id
4483
+ }), "string" === typeof input.redirect_uri || $report(_exceptionable, {
4484
+ path: _path + ".redirect_uri",
4485
+ expected: "string",
4486
+ value: input.redirect_uri
4439
4487
  }), undefined === input.state || "string" === typeof input.state || $report(_exceptionable, {
4440
4488
  path: _path + ".state",
4441
4489
  expected: "(string | undefined)",
@@ -4945,6 +4993,301 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4945
4993
  return Promise.reject(error);
4946
4994
  }
4947
4995
  }
4996
+ async getAttestationProof(payload) {
4997
+ try {
4998
+ const validateRes = (input => {
4999
+ const errors = [];
5000
+ const __is = input => {
5001
+ return "object" === typeof input && null !== input && "string" === typeof input.id;
5002
+ };
5003
+ if (false === __is(input)) {
5004
+ const $report = typia_1.default.validate.report(errors);
5005
+ ((input, _path, _exceptionable = true) => {
5006
+ const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || $report(_exceptionable, {
5007
+ path: _path + ".id",
5008
+ expected: "string",
5009
+ value: input.id
5010
+ })].every(flag => flag);
5011
+ return ("object" === typeof input && null !== input || $report(true, {
5012
+ path: _path + "",
5013
+ expected: "GetAttestationProofPayload",
5014
+ value: input
5015
+ })) && $vo0(input, _path + "", true) || $report(true, {
5016
+ path: _path + "",
5017
+ expected: "GetAttestationProofPayload",
5018
+ value: input
5019
+ });
5020
+ })(input, "$input", true);
5021
+ }
5022
+ const success = 0 === errors.length;
5023
+ return {
5024
+ success,
5025
+ errors,
5026
+ data: success ? input : undefined
5027
+ };
5028
+ })(payload ?? {});
5029
+ if (!validateRes.success) {
5030
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5031
+ }
5032
+ const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetAttestationProofsRoute()}`, payload);
5033
+ return new requests_1.GetAttestationProofSuccessResponse(response.data).convert(this.ConvertFunction);
5034
+ }
5035
+ catch (error) {
5036
+ await this.handleApiError(error);
5037
+ return Promise.reject(error);
5038
+ }
5039
+ }
5040
+ async createAttestationProof(payload) {
5041
+ try {
5042
+ const validateRes = (input => {
5043
+ const errors = [];
5044
+ const __is = input => {
5045
+ 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)));
5046
+ 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);
5047
+ const $io2 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
5048
+ const $io3 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
5049
+ const $io4 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message);
5050
+ return "object" === typeof input && null !== input && $io0(input);
5051
+ };
5052
+ if (false === __is(input)) {
5053
+ const $report = typia_1.default.validate.report(errors);
5054
+ ((input, _path, _exceptionable = true) => {
5055
+ const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.displayOnProfile || $report(_exceptionable, {
5056
+ path: _path + ".displayOnProfile",
5057
+ expected: "boolean",
5058
+ value: input.displayOnProfile
5059
+ }), undefined === input.entropies || (Array.isArray(input.entropies) || $report(_exceptionable, {
5060
+ path: _path + ".entropies",
5061
+ expected: "(Array<string> | undefined)",
5062
+ value: input.entropies
5063
+ })) && input.entropies.map((elem, _index1) => "string" === typeof elem || $report(_exceptionable, {
5064
+ path: _path + ".entropies[" + _index1 + "]",
5065
+ expected: "string",
5066
+ value: elem
5067
+ })).every(flag => flag) || $report(_exceptionable, {
5068
+ path: _path + ".entropies",
5069
+ expected: "(Array<string> | undefined)",
5070
+ value: input.entropies
5071
+ }), undefined === input.updateHistory || (Array.isArray(input.updateHistory) || $report(_exceptionable, {
5072
+ path: _path + ".updateHistory",
5073
+ expected: "(Array<iUpdateHistory<NumberType>> | undefined)",
5074
+ value: input.updateHistory
5075
+ })) && input.updateHistory.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
5076
+ path: _path + ".updateHistory[" + _index2 + "]",
5077
+ expected: "iUpdateHistory<NumberType>",
5078
+ value: elem
5079
+ })) && $vo1(elem, _path + ".updateHistory[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
5080
+ path: _path + ".updateHistory[" + _index2 + "]",
5081
+ expected: "iUpdateHistory<NumberType>",
5082
+ value: elem
5083
+ })).every(flag => flag) || $report(_exceptionable, {
5084
+ path: _path + ".updateHistory",
5085
+ expected: "(Array<iUpdateHistory<NumberType>> | undefined)",
5086
+ value: input.updateHistory
5087
+ }), "plaintext" === input.messageFormat || "json" === input.messageFormat || $report(_exceptionable, {
5088
+ path: _path + ".messageFormat",
5089
+ expected: "(\"json\" | \"plaintext\")",
5090
+ value: input.messageFormat
5091
+ }), "string" === typeof input.createdBy || $report(_exceptionable, {
5092
+ path: _path + ".createdBy",
5093
+ expected: "string",
5094
+ value: input.createdBy
5095
+ }), "string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt || $report(_exceptionable, {
5096
+ path: _path + ".createdAt",
5097
+ expected: "(bigint | number | string)",
5098
+ value: input.createdAt
5099
+ }), ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance || $report(_exceptionable, {
5100
+ path: _path + ".proofOfIssuance",
5101
+ expected: "__type",
5102
+ value: input.proofOfIssuance
5103
+ })) && $vo2(input.proofOfIssuance, _path + ".proofOfIssuance", true && _exceptionable) || $report(_exceptionable, {
5104
+ path: _path + ".proofOfIssuance",
5105
+ expected: "__type",
5106
+ value: input.proofOfIssuance
5107
+ }), "bbs" === input.scheme || "standard" === input.scheme || $report(_exceptionable, {
5108
+ path: _path + ".scheme",
5109
+ expected: "(\"bbs\" | \"standard\")",
5110
+ value: input.scheme
5111
+ }), (Array.isArray(input.attestationMessages) || $report(_exceptionable, {
5112
+ path: _path + ".attestationMessages",
5113
+ expected: "Array<string>",
5114
+ value: input.attestationMessages
5115
+ })) && input.attestationMessages.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
5116
+ path: _path + ".attestationMessages[" + _index3 + "]",
5117
+ expected: "string",
5118
+ value: elem
5119
+ })).every(flag => flag) || $report(_exceptionable, {
5120
+ path: _path + ".attestationMessages",
5121
+ expected: "Array<string>",
5122
+ value: input.attestationMessages
5123
+ }), ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof || $report(_exceptionable, {
5124
+ path: _path + ".dataIntegrityProof",
5125
+ expected: "__type.o1",
5126
+ value: input.dataIntegrityProof
5127
+ })) && $vo3(input.dataIntegrityProof, _path + ".dataIntegrityProof", true && _exceptionable) || $report(_exceptionable, {
5128
+ path: _path + ".dataIntegrityProof",
5129
+ expected: "__type.o1",
5130
+ value: input.dataIntegrityProof
5131
+ }), "string" === typeof input.name || $report(_exceptionable, {
5132
+ path: _path + ".name",
5133
+ expected: "string",
5134
+ value: input.name
5135
+ }), "string" === typeof input.image || $report(_exceptionable, {
5136
+ path: _path + ".image",
5137
+ expected: "string",
5138
+ value: input.image
5139
+ }), "string" === typeof input.description || $report(_exceptionable, {
5140
+ path: _path + ".description",
5141
+ expected: "string",
5142
+ value: input.description
5143
+ }), undefined === input.anchors || (Array.isArray(input.anchors) || $report(_exceptionable, {
5144
+ path: _path + ".anchors",
5145
+ expected: "(Array<__type> | undefined)",
5146
+ value: input.anchors
5147
+ })) && input.anchors.map((elem, _index4) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
5148
+ path: _path + ".anchors[" + _index4 + "]",
5149
+ expected: "__type.o2",
5150
+ value: elem
5151
+ })) && $vo4(elem, _path + ".anchors[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
5152
+ path: _path + ".anchors[" + _index4 + "]",
5153
+ expected: "__type.o2",
5154
+ value: elem
5155
+ })).every(flag => flag) || $report(_exceptionable, {
5156
+ path: _path + ".anchors",
5157
+ expected: "(Array<__type> | undefined)",
5158
+ value: input.anchors
5159
+ })].every(flag => flag);
5160
+ const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.txHash || $report(_exceptionable, {
5161
+ path: _path + ".txHash",
5162
+ expected: "string",
5163
+ value: input.txHash
5164
+ }), "string" === typeof input.block || "number" === typeof input.block || "bigint" === typeof input.block || $report(_exceptionable, {
5165
+ path: _path + ".block",
5166
+ expected: "(bigint | number | string)",
5167
+ value: input.block
5168
+ }), "string" === typeof input.blockTimestamp || "number" === typeof input.blockTimestamp || "bigint" === typeof input.blockTimestamp || $report(_exceptionable, {
5169
+ path: _path + ".blockTimestamp",
5170
+ expected: "(bigint | number | string)",
5171
+ value: input.blockTimestamp
5172
+ }), "string" === typeof input.timestamp || "number" === typeof input.timestamp || "bigint" === typeof input.timestamp || $report(_exceptionable, {
5173
+ path: _path + ".timestamp",
5174
+ expected: "(bigint | number | string)",
5175
+ value: input.timestamp
5176
+ })].every(flag => flag);
5177
+ const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
5178
+ path: _path + ".message",
5179
+ expected: "string",
5180
+ value: input.message
5181
+ }), "string" === typeof input.signature || $report(_exceptionable, {
5182
+ path: _path + ".signature",
5183
+ expected: "string",
5184
+ value: input.signature
5185
+ }), "string" === typeof input.signer || $report(_exceptionable, {
5186
+ path: _path + ".signer",
5187
+ expected: "string",
5188
+ value: input.signer
5189
+ }), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
5190
+ path: _path + ".publicKey",
5191
+ expected: "(string | undefined)",
5192
+ value: input.publicKey
5193
+ })].every(flag => flag);
5194
+ const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.signature || $report(_exceptionable, {
5195
+ path: _path + ".signature",
5196
+ expected: "string",
5197
+ value: input.signature
5198
+ }), "string" === typeof input.signer || $report(_exceptionable, {
5199
+ path: _path + ".signer",
5200
+ expected: "string",
5201
+ value: input.signer
5202
+ }), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
5203
+ path: _path + ".publicKey",
5204
+ expected: "(string | undefined)",
5205
+ value: input.publicKey
5206
+ })].every(flag => flag);
5207
+ const $vo4 = (input, _path, _exceptionable = true) => [undefined === input.txHash || "string" === typeof input.txHash || $report(_exceptionable, {
5208
+ path: _path + ".txHash",
5209
+ expected: "(string | undefined)",
5210
+ value: input.txHash
5211
+ }), undefined === input.message || "string" === typeof input.message || $report(_exceptionable, {
5212
+ path: _path + ".message",
5213
+ expected: "(string | undefined)",
5214
+ value: input.message
5215
+ })].every(flag => flag);
5216
+ return ("object" === typeof input && null !== input || $report(true, {
5217
+ path: _path + "",
5218
+ expected: "CreateAttestationProofPayload",
5219
+ value: input
5220
+ })) && $vo0(input, _path + "", true) || $report(true, {
5221
+ path: _path + "",
5222
+ expected: "CreateAttestationProofPayload",
5223
+ value: input
5224
+ });
5225
+ })(input, "$input", true);
5226
+ }
5227
+ const success = 0 === errors.length;
5228
+ return {
5229
+ success,
5230
+ errors,
5231
+ data: success ? input : undefined
5232
+ };
5233
+ })(payload ?? {});
5234
+ if (!validateRes.success) {
5235
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5236
+ }
5237
+ const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, payload);
5238
+ return new requests_1.CreateAttestationProofSuccessResponse(response.data);
5239
+ }
5240
+ catch (error) {
5241
+ await this.handleApiError(error);
5242
+ return Promise.reject(error);
5243
+ }
5244
+ }
5245
+ async deleteAttestationProof(payload) {
5246
+ try {
5247
+ const validateRes = (input => {
5248
+ const errors = [];
5249
+ const __is = input => {
5250
+ return "object" === typeof input && null !== input && "string" === typeof input.id;
5251
+ };
5252
+ if (false === __is(input)) {
5253
+ const $report = typia_1.default.validate.report(errors);
5254
+ ((input, _path, _exceptionable = true) => {
5255
+ const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || $report(_exceptionable, {
5256
+ path: _path + ".id",
5257
+ expected: "string",
5258
+ value: input.id
5259
+ })].every(flag => flag);
5260
+ return ("object" === typeof input && null !== input || $report(true, {
5261
+ path: _path + "",
5262
+ expected: "DeleteAttestationProofPayload",
5263
+ value: input
5264
+ })) && $vo0(input, _path + "", true) || $report(true, {
5265
+ path: _path + "",
5266
+ expected: "DeleteAttestationProofPayload",
5267
+ value: input
5268
+ });
5269
+ })(input, "$input", true);
5270
+ }
5271
+ const success = 0 === errors.length;
5272
+ return {
5273
+ success,
5274
+ errors,
5275
+ data: success ? input : undefined
5276
+ };
5277
+ })(payload ?? {});
5278
+ if (!validateRes.success) {
5279
+ throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
5280
+ }
5281
+ const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, {
5282
+ data: payload
5283
+ });
5284
+ return new requests_1.DeleteAttestationProofSuccessResponse(response.data);
5285
+ }
5286
+ catch (error) {
5287
+ await this.handleApiError(error);
5288
+ return Promise.reject(error);
5289
+ }
5290
+ }
4948
5291
  async updateUserSeenActivity() {
4949
5292
  return await this.updateAccountInfo({ seenActivity: Date.now() });
4950
5293
  }
@@ -5865,8 +6208,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5865
6208
  const $io8 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io9(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io10(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode);
5866
6209
  const $io9 = input => true;
5867
6210
  const $io10 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io11(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true);
5868
- const $io11 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@870"] && Object.keys(input).every(key => {
5869
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
6211
+ const $io11 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@885"] && Object.keys(input).every(key => {
6212
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@885"].some(prop => key === prop))
5870
6213
  return true;
5871
6214
  const value = input[key];
5872
6215
  if (undefined === value)
@@ -6219,12 +6562,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6219
6562
  path: _path + ".length",
6220
6563
  expected: "number",
6221
6564
  value: input.length
6222
- }), "Uint8Array" === input["__@toStringTag@870"] || $report(_exceptionable, {
6223
- path: _path + "[\"__@toStringTag@870\"]",
6565
+ }), "Uint8Array" === input["__@toStringTag@885"] || $report(_exceptionable, {
6566
+ path: _path + "[\"__@toStringTag@885\"]",
6224
6567
  expected: "\"Uint8Array\"",
6225
- value: input["__@toStringTag@870"]
6568
+ value: input["__@toStringTag@885"]
6226
6569
  }), false === _exceptionable || Object.keys(input).map(key => {
6227
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
6570
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@885"].some(prop => key === prop))
6228
6571
  return true;
6229
6572
  const value = input[key];
6230
6573
  if (undefined === value)
@@ -6287,8 +6630,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6287
6630
  const $io3 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io4(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io5(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode);
6288
6631
  const $io4 = input => true;
6289
6632
  const $io5 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io6(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true);
6290
- const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@870"] && Object.keys(input).every(key => {
6291
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
6633
+ const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@885"] && Object.keys(input).every(key => {
6634
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@885"].some(prop => key === prop))
6292
6635
  return true;
6293
6636
  const value = input[key];
6294
6637
  if (undefined === value)
@@ -6502,12 +6845,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6502
6845
  path: _path + ".length",
6503
6846
  expected: "number",
6504
6847
  value: input.length
6505
- }), "Uint8Array" === input["__@toStringTag@870"] || $report(_exceptionable, {
6506
- path: _path + "[\"__@toStringTag@870\"]",
6848
+ }), "Uint8Array" === input["__@toStringTag@885"] || $report(_exceptionable, {
6849
+ path: _path + "[\"__@toStringTag@885\"]",
6507
6850
  expected: "\"Uint8Array\"",
6508
- value: input["__@toStringTag@870"]
6851
+ value: input["__@toStringTag@885"]
6509
6852
  }), false === _exceptionable || Object.keys(input).map(key => {
6510
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
6853
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@885"].some(prop => key === prop))
6511
6854
  return true;
6512
6855
  const value = input[key];
6513
6856
  if (undefined === value)