bitbadgesjs-sdk 0.3.52 → 0.3.53

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.
@@ -1195,23 +1195,21 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1195
1195
  const validateRes = (input => {
1196
1196
  const errors = [];
1197
1197
  const __is = input => {
1198
- 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.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.redirectUri || "string" === typeof input.redirectUri);
1199
- 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.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);
1200
- 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));
1201
- const $io3 = input => Array.isArray(input.$and) && input.$and.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1202
- const $io4 = input => Array.isArray(input.$or) && input.$or.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1203
- 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));
1204
- 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);
1205
- 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);
1206
- const $io8 = input => undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification;
1207
- const $io9 = input => true;
1198
+ const $io0 = input => "string" === typeof input.code && ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io1(input.options)) && (undefined === input.clientSecret || "string" === typeof input.clientSecret) && (undefined === input.clientId || "string" === typeof input.clientId) && (undefined === input.redirectUri || "string" === typeof input.redirectUri);
1199
+ 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);
1200
+ const $io2 = input => Array.isArray(input.$and) && input.$and.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1201
+ const $io3 = input => Array.isArray(input.$or) && input.$or.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1202
+ const $io4 = input => Array.isArray(input.assets) && input.assets.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io7(input.options));
1203
+ const $io5 = 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 && $io6(elem)))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && ("object" === typeof input.mustOwnAmounts && null !== input.mustOwnAmounts && $io6(input.mustOwnAmounts)) && (undefined === input.additionalCriteria || "string" === typeof input.additionalCriteria);
1204
+ const $io6 = 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);
1205
+ const $io7 = input => undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification;
1208
1206
  const $iu0 = input => (() => {
1209
1207
  if (undefined !== input.$and)
1210
- return $io3(input);
1208
+ return $io2(input);
1211
1209
  else if (undefined !== input.$or)
1212
- return $io4(input);
1210
+ return $io3(input);
1213
1211
  else if (undefined !== input.assets)
1214
- return $io5(input);
1212
+ return $io4(input);
1215
1213
  else
1216
1214
  return false;
1217
1215
  })();
@@ -1224,13 +1222,13 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1224
1222
  path: _path + ".code",
1225
1223
  expected: "string",
1226
1224
  value: input.code
1227
- }), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || $report(_exceptionable, {
1225
+ }), ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || $report(_exceptionable, {
1228
1226
  path: _path + ".options",
1229
- expected: "(VerifyChallengeOptions | undefined)",
1227
+ expected: "VerifySIWBBOptions",
1230
1228
  value: input.options
1231
1229
  })) && $vo1(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
1232
1230
  path: _path + ".options",
1233
- expected: "(VerifyChallengeOptions | undefined)",
1231
+ expected: "VerifySIWBBOptions",
1234
1232
  value: input.options
1235
1233
  }), undefined === input.clientSecret || "string" === typeof input.clientSecret || $report(_exceptionable, {
1236
1234
  path: _path + ".clientSecret",
@@ -1245,109 +1243,32 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1245
1243
  expected: "(string | undefined)",
1246
1244
  value: input.redirectUri
1247
1245
  })].every(flag => flag);
1248
- const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.expectedChallengeParams || ("object" === typeof input.expectedChallengeParams && null !== input.expectedChallengeParams && false === Array.isArray(input.expectedChallengeParams) || $report(_exceptionable, {
1249
- path: _path + ".expectedChallengeParams",
1250
- expected: "(Partial<ChallengeParams<NumberType>> | undefined)",
1251
- value: input.expectedChallengeParams
1252
- })) && $vo2(input.expectedChallengeParams, _path + ".expectedChallengeParams", true && _exceptionable) || $report(_exceptionable, {
1253
- path: _path + ".expectedChallengeParams",
1254
- expected: "(Partial<ChallengeParams<NumberType>> | undefined)",
1255
- value: input.expectedChallengeParams
1256
- }), undefined === input.beforeVerification || true || $report(_exceptionable, {
1257
- path: _path + ".beforeVerification",
1258
- expected: "undefined",
1259
- value: input.beforeVerification
1260
- }), undefined === input.balancesSnapshot || ("object" === typeof input.balancesSnapshot && null !== input.balancesSnapshot && false === Array.isArray(input.balancesSnapshot) || $report(_exceptionable, {
1261
- path: _path + ".balancesSnapshot",
1262
- expected: "(object | undefined)",
1263
- value: input.balancesSnapshot
1264
- })) && $vo9(input.balancesSnapshot, _path + ".balancesSnapshot", true && _exceptionable) || $report(_exceptionable, {
1265
- path: _path + ".balancesSnapshot",
1266
- expected: "(object | undefined)",
1267
- value: input.balancesSnapshot
1268
- }), undefined === input.skipTimestampVerification || "boolean" === typeof input.skipTimestampVerification || $report(_exceptionable, {
1269
- path: _path + ".skipTimestampVerification",
1270
- expected: "(boolean | undefined)",
1271
- value: input.skipTimestampVerification
1272
- }), undefined === input.skipAssetVerification || "boolean" === typeof input.skipAssetVerification || $report(_exceptionable, {
1273
- path: _path + ".skipAssetVerification",
1274
- expected: "(boolean | undefined)",
1275
- value: input.skipAssetVerification
1276
- }), undefined === input.earliestIssuedAt || "string" === typeof input.earliestIssuedAt || $report(_exceptionable, {
1277
- path: _path + ".earliestIssuedAt",
1278
- expected: "(string | undefined)",
1279
- value: input.earliestIssuedAt
1246
+ const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.ownershipRequirements || ("object" === typeof input.ownershipRequirements && null !== input.ownershipRequirements || $report(_exceptionable, {
1247
+ path: _path + ".ownershipRequirements",
1248
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType> | undefined)",
1249
+ value: input.ownershipRequirements
1250
+ })) && $vu0(input.ownershipRequirements, _path + ".ownershipRequirements", true && _exceptionable) || $report(_exceptionable, {
1251
+ path: _path + ".ownershipRequirements",
1252
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType> | undefined)",
1253
+ value: input.ownershipRequirements
1254
+ }), undefined === input.otherSignIns || (Array.isArray(input.otherSignIns) || $report(_exceptionable, {
1255
+ path: _path + ".otherSignIns",
1256
+ expected: "(Array<\"discord\" | \"github\" | \"google\" | \"twitter\"> | undefined)",
1257
+ value: input.otherSignIns
1258
+ })) && input.otherSignIns.map((elem, _index1) => "discord" === elem || "github" === elem || "google" === elem || "twitter" === elem || $report(_exceptionable, {
1259
+ path: _path + ".otherSignIns[" + _index1 + "]",
1260
+ expected: "(\"discord\" | \"github\" | \"google\" | \"twitter\")",
1261
+ value: elem
1262
+ })).every(flag => flag) || $report(_exceptionable, {
1263
+ path: _path + ".otherSignIns",
1264
+ expected: "(Array<\"discord\" | \"github\" | \"google\" | \"twitter\"> | undefined)",
1265
+ value: input.otherSignIns
1280
1266
  }), undefined === input.issuedAtTimeWindowMs || "number" === typeof input.issuedAtTimeWindowMs || $report(_exceptionable, {
1281
1267
  path: _path + ".issuedAtTimeWindowMs",
1282
1268
  expected: "(number | undefined)",
1283
1269
  value: input.issuedAtTimeWindowMs
1284
- }), undefined === input.skipSignatureVerification || "boolean" === typeof input.skipSignatureVerification || $report(_exceptionable, {
1285
- path: _path + ".skipSignatureVerification",
1286
- expected: "(boolean | undefined)",
1287
- value: input.skipSignatureVerification
1288
- })].every(flag => flag);
1289
- const $vo2 = (input, _path, _exceptionable = true) => [undefined === input.domain || "string" === typeof input.domain || $report(_exceptionable, {
1290
- path: _path + ".domain",
1291
- expected: "(string | undefined)",
1292
- value: input.domain
1293
- }), undefined === input.statement || "string" === typeof input.statement || $report(_exceptionable, {
1294
- path: _path + ".statement",
1295
- expected: "(string | undefined)",
1296
- value: input.statement
1297
- }), undefined === input.address || "string" === typeof input.address || $report(_exceptionable, {
1298
- path: _path + ".address",
1299
- expected: "(string | undefined)",
1300
- value: input.address
1301
- }), undefined === input.uri || "string" === typeof input.uri || $report(_exceptionable, {
1302
- path: _path + ".uri",
1303
- expected: "(string | undefined)",
1304
- value: input.uri
1305
- }), undefined === input.nonce || "string" === typeof input.nonce || $report(_exceptionable, {
1306
- path: _path + ".nonce",
1307
- expected: "(string | undefined)",
1308
- value: input.nonce
1309
- }), undefined === input.version || "string" === typeof input.version || $report(_exceptionable, {
1310
- path: _path + ".version",
1311
- expected: "(string | undefined)",
1312
- value: input.version
1313
- }), undefined === input.chainId || "string" === typeof input.chainId || $report(_exceptionable, {
1314
- path: _path + ".chainId",
1315
- expected: "(string | undefined)",
1316
- value: input.chainId
1317
- }), undefined === input.issuedAt || "string" === typeof input.issuedAt || $report(_exceptionable, {
1318
- path: _path + ".issuedAt",
1319
- expected: "(string | undefined)",
1320
- value: input.issuedAt
1321
- }), undefined === input.expirationDate || "string" === typeof input.expirationDate || $report(_exceptionable, {
1322
- path: _path + ".expirationDate",
1323
- expected: "(string | undefined)",
1324
- value: input.expirationDate
1325
- }), undefined === input.notBefore || "string" === typeof input.notBefore || $report(_exceptionable, {
1326
- path: _path + ".notBefore",
1327
- expected: "(string | undefined)",
1328
- value: input.notBefore
1329
- }), undefined === input.resources || (Array.isArray(input.resources) || $report(_exceptionable, {
1330
- path: _path + ".resources",
1331
- expected: "(Array<string> | undefined)",
1332
- value: input.resources
1333
- })) && input.resources.map((elem, _index1) => "string" === typeof elem || $report(_exceptionable, {
1334
- path: _path + ".resources[" + _index1 + "]",
1335
- expected: "string",
1336
- value: elem
1337
- })).every(flag => flag) || $report(_exceptionable, {
1338
- path: _path + ".resources",
1339
- expected: "(Array<string> | undefined)",
1340
- value: input.resources
1341
- }), undefined === input.assetOwnershipRequirements || ("object" === typeof input.assetOwnershipRequirements && null !== input.assetOwnershipRequirements || $report(_exceptionable, {
1342
- path: _path + ".assetOwnershipRequirements",
1343
- expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType> | undefined)",
1344
- value: input.assetOwnershipRequirements
1345
- })) && $vu0(input.assetOwnershipRequirements, _path + ".assetOwnershipRequirements", true && _exceptionable) || $report(_exceptionable, {
1346
- path: _path + ".assetOwnershipRequirements",
1347
- expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType> | undefined)",
1348
- value: input.assetOwnershipRequirements
1349
1270
  })].every(flag => flag);
1350
- const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$and) || $report(_exceptionable, {
1271
+ const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$and) || $report(_exceptionable, {
1351
1272
  path: _path + ".$and",
1352
1273
  expected: "Array<AssetConditionGroup<NumberType>>",
1353
1274
  value: input.$and
@@ -1364,7 +1285,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1364
1285
  expected: "Array<AssetConditionGroup<NumberType>>",
1365
1286
  value: input.$and
1366
1287
  })].every(flag => flag);
1367
- const $vo4 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$or) || $report(_exceptionable, {
1288
+ const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$or) || $report(_exceptionable, {
1368
1289
  path: _path + ".$or",
1369
1290
  expected: "Array<AssetConditionGroup<NumberType>>",
1370
1291
  value: input.$or
@@ -1381,7 +1302,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1381
1302
  expected: "Array<AssetConditionGroup<NumberType>>",
1382
1303
  value: input.$or
1383
1304
  })].every(flag => flag);
1384
- const $vo5 = (input, _path, _exceptionable = true) => [(Array.isArray(input.assets) || $report(_exceptionable, {
1305
+ const $vo4 = (input, _path, _exceptionable = true) => [(Array.isArray(input.assets) || $report(_exceptionable, {
1385
1306
  path: _path + ".assets",
1386
1307
  expected: "Array<AssetDetails<NumberType>>",
1387
1308
  value: input.assets
@@ -1389,7 +1310,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1389
1310
  path: _path + ".assets[" + _index4 + "]",
1390
1311
  expected: "AssetDetails<NumberType>",
1391
1312
  value: elem
1392
- })) && $vo6(elem, _path + ".assets[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
1313
+ })) && $vo5(elem, _path + ".assets[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
1393
1314
  path: _path + ".assets[" + _index4 + "]",
1394
1315
  expected: "AssetDetails<NumberType>",
1395
1316
  value: elem
@@ -1401,12 +1322,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1401
1322
  path: _path + ".options",
1402
1323
  expected: "(__type | undefined)",
1403
1324
  value: input.options
1404
- })) && $vo8(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
1325
+ })) && $vo7(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
1405
1326
  path: _path + ".options",
1406
1327
  expected: "(__type | undefined)",
1407
1328
  value: input.options
1408
1329
  })].every(flag => flag);
1409
- const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.chain || $report(_exceptionable, {
1330
+ const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.chain || $report(_exceptionable, {
1410
1331
  path: _path + ".chain",
1411
1332
  expected: "string",
1412
1333
  value: input.chain
@@ -1430,7 +1351,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1430
1351
  path: _path + ".assetIds[" + _index5 + "]",
1431
1352
  expected: "(UintRange<NumberType> | string)",
1432
1353
  value: elem
1433
- })) && $vo7(elem, _path + ".assetIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
1354
+ })) && $vo6(elem, _path + ".assetIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
1434
1355
  path: _path + ".assetIds[" + _index5 + "]",
1435
1356
  expected: "(UintRange<NumberType> | string)",
1436
1357
  value: elem
@@ -1446,7 +1367,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1446
1367
  path: _path + ".ownershipTimes[" + _index6 + "]",
1447
1368
  expected: "UintRange<NumberType>",
1448
1369
  value: elem
1449
- })) && $vo7(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
1370
+ })) && $vo6(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
1450
1371
  path: _path + ".ownershipTimes[" + _index6 + "]",
1451
1372
  expected: "UintRange<NumberType>",
1452
1373
  value: elem
@@ -1458,7 +1379,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1458
1379
  path: _path + ".mustOwnAmounts",
1459
1380
  expected: "UintRange<NumberType>",
1460
1381
  value: input.mustOwnAmounts
1461
- })) && $vo7(input.mustOwnAmounts, _path + ".mustOwnAmounts", true && _exceptionable) || $report(_exceptionable, {
1382
+ })) && $vo6(input.mustOwnAmounts, _path + ".mustOwnAmounts", true && _exceptionable) || $report(_exceptionable, {
1462
1383
  path: _path + ".mustOwnAmounts",
1463
1384
  expected: "UintRange<NumberType>",
1464
1385
  value: input.mustOwnAmounts
@@ -1467,7 +1388,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1467
1388
  expected: "(string | undefined)",
1468
1389
  value: input.additionalCriteria
1469
1390
  })].every(flag => flag);
1470
- const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
1391
+ const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
1471
1392
  path: _path + ".start",
1472
1393
  expected: "(bigint | number | string)",
1473
1394
  value: input.start
@@ -1476,19 +1397,18 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1476
1397
  expected: "(bigint | number | string)",
1477
1398
  value: input.end
1478
1399
  })].every(flag => flag);
1479
- const $vo8 = (input, _path, _exceptionable = true) => [undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification || $report(_exceptionable, {
1400
+ const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification || $report(_exceptionable, {
1480
1401
  path: _path + ".numMatchesForVerification",
1481
1402
  expected: "(bigint | number | string | undefined)",
1482
1403
  value: input.numMatchesForVerification
1483
1404
  })].every(flag => flag);
1484
- const $vo9 = (input, _path, _exceptionable = true) => true;
1485
1405
  const $vu0 = (input, _path, _exceptionable = true) => (() => {
1486
1406
  if (undefined !== input.$and)
1487
- return $vo3(input, _path, true && _exceptionable);
1407
+ return $vo2(input, _path, true && _exceptionable);
1488
1408
  else if (undefined !== input.$or)
1489
- return $vo4(input, _path, true && _exceptionable);
1409
+ return $vo3(input, _path, true && _exceptionable);
1490
1410
  else if (undefined !== input.assets)
1491
- return $vo5(input, _path, true && _exceptionable);
1411
+ return $vo4(input, _path, true && _exceptionable);
1492
1412
  else
1493
1413
  return $report(_exceptionable, {
1494
1414
  path: _path,
@@ -1579,45 +1499,53 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1579
1499
  const validateRes = (input => {
1580
1500
  const errors = [];
1581
1501
  const __is = input => {
1582
- const $io0 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && "string" === typeof input.message && "string" === typeof input.signature && (undefined === input.publicKey || "string" === typeof input.publicKey) && "boolean" === typeof input.allowReuseOfBitBadgesSignIn && (undefined === input.attestationsPresentations || Array.isArray(input.attestationsPresentations) && input.attestationsPresentations.every(elem => "object" === typeof elem && null !== elem && $io1(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);
1583
- const $io1 = 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 && $io2(elem))) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.createdBy && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io3(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 && $io4(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) && $io5(elem)));
1584
- const $io2 = 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);
1585
- const $io3 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
1586
- const $io4 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
1587
- const $io5 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message);
1502
+ const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.image || "string" === typeof input.image) && ("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);
1503
+ const $io1 = input => Array.isArray(input.$and) && input.$and.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1504
+ const $io2 = input => Array.isArray(input.$or) && input.$or.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1505
+ 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));
1506
+ 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);
1507
+ 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);
1508
+ const $io6 = input => undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification;
1509
+ 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)));
1510
+ 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);
1511
+ const $io9 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
1512
+ const $io10 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
1513
+ const $io11 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message);
1514
+ const $iu0 = input => (() => {
1515
+ if (undefined !== input.$and)
1516
+ return $io1(input);
1517
+ else if (undefined !== input.$or)
1518
+ return $io2(input);
1519
+ else if (undefined !== input.assets)
1520
+ return $io3(input);
1521
+ else
1522
+ return false;
1523
+ })();
1588
1524
  return "object" === typeof input && null !== input && $io0(input);
1589
1525
  };
1590
1526
  if (false === __is(input)) {
1591
1527
  const $report = typia_1.default.validate.report(errors);
1592
1528
  ((input, _path, _exceptionable = true) => {
1593
- const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
1529
+ const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
1594
1530
  path: _path + ".name",
1595
- expected: "string",
1531
+ expected: "(string | undefined)",
1596
1532
  value: input.name
1597
- }), "string" === typeof input.description || $report(_exceptionable, {
1533
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1598
1534
  path: _path + ".description",
1599
- expected: "string",
1535
+ expected: "(string | undefined)",
1600
1536
  value: input.description
1601
- }), "string" === typeof input.image || $report(_exceptionable, {
1537
+ }), undefined === input.image || "string" === typeof input.image || $report(_exceptionable, {
1602
1538
  path: _path + ".image",
1603
- expected: "string",
1604
- value: input.image
1605
- }), "string" === typeof input.message || $report(_exceptionable, {
1606
- path: _path + ".message",
1607
- expected: "string",
1608
- value: input.message
1609
- }), "string" === typeof input.signature || $report(_exceptionable, {
1610
- path: _path + ".signature",
1611
- expected: "string",
1612
- value: input.signature
1613
- }), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
1614
- path: _path + ".publicKey",
1615
1539
  expected: "(string | undefined)",
1616
- value: input.publicKey
1617
- }), "boolean" === typeof input.allowReuseOfBitBadgesSignIn || $report(_exceptionable, {
1618
- path: _path + ".allowReuseOfBitBadgesSignIn",
1619
- expected: "boolean",
1620
- value: input.allowReuseOfBitBadgesSignIn
1540
+ value: input.image
1541
+ }), ("object" === typeof input.ownershipRequirements && null !== input.ownershipRequirements || $report(_exceptionable, {
1542
+ path: _path + ".ownershipRequirements",
1543
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1544
+ value: input.ownershipRequirements
1545
+ })) && $vu0(input.ownershipRequirements, _path + ".ownershipRequirements", true && _exceptionable) || $report(_exceptionable, {
1546
+ path: _path + ".ownershipRequirements",
1547
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1548
+ value: input.ownershipRequirements
1621
1549
  }), undefined === input.attestationsPresentations || (Array.isArray(input.attestationsPresentations) || $report(_exceptionable, {
1622
1550
  path: _path + ".attestationsPresentations",
1623
1551
  expected: "(Array<iAttestationsProof<NumberType>> | undefined)",
@@ -1626,7 +1554,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1626
1554
  path: _path + ".attestationsPresentations[" + _index1 + "]",
1627
1555
  expected: "iAttestationsProof<NumberType>",
1628
1556
  value: elem
1629
- })) && $vo1(elem, _path + ".attestationsPresentations[" + _index1 + "]", true && _exceptionable) || $report(_exceptionable, {
1557
+ })) && $vo7(elem, _path + ".attestationsPresentations[" + _index1 + "]", true && _exceptionable) || $report(_exceptionable, {
1630
1558
  path: _path + ".attestationsPresentations[" + _index1 + "]",
1631
1559
  expected: "iAttestationsProof<NumberType>",
1632
1560
  value: elem
@@ -1659,12 +1587,146 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1659
1587
  expected: "(string | undefined)",
1660
1588
  value: input.state
1661
1589
  })].every(flag => flag);
1662
- const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.entropies || (Array.isArray(input.entropies) || $report(_exceptionable, {
1590
+ const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$and) || $report(_exceptionable, {
1591
+ path: _path + ".$and",
1592
+ expected: "Array<AssetConditionGroup<NumberType>>",
1593
+ value: input.$and
1594
+ })) && input.$and.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1595
+ path: _path + ".$and[" + _index3 + "]",
1596
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1597
+ value: elem
1598
+ })) && $vu0(elem, _path + ".$and[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
1599
+ path: _path + ".$and[" + _index3 + "]",
1600
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1601
+ value: elem
1602
+ })).every(flag => flag) || $report(_exceptionable, {
1603
+ path: _path + ".$and",
1604
+ expected: "Array<AssetConditionGroup<NumberType>>",
1605
+ value: input.$and
1606
+ })].every(flag => flag);
1607
+ const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$or) || $report(_exceptionable, {
1608
+ path: _path + ".$or",
1609
+ expected: "Array<AssetConditionGroup<NumberType>>",
1610
+ value: input.$or
1611
+ })) && input.$or.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1612
+ path: _path + ".$or[" + _index4 + "]",
1613
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1614
+ value: elem
1615
+ })) && $vu0(elem, _path + ".$or[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
1616
+ path: _path + ".$or[" + _index4 + "]",
1617
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1618
+ value: elem
1619
+ })).every(flag => flag) || $report(_exceptionable, {
1620
+ path: _path + ".$or",
1621
+ expected: "Array<AssetConditionGroup<NumberType>>",
1622
+ value: input.$or
1623
+ })].every(flag => flag);
1624
+ const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.assets) || $report(_exceptionable, {
1625
+ path: _path + ".assets",
1626
+ expected: "Array<AssetDetails<NumberType>>",
1627
+ value: input.assets
1628
+ })) && input.assets.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1629
+ path: _path + ".assets[" + _index5 + "]",
1630
+ expected: "AssetDetails<NumberType>",
1631
+ value: elem
1632
+ })) && $vo4(elem, _path + ".assets[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
1633
+ path: _path + ".assets[" + _index5 + "]",
1634
+ expected: "AssetDetails<NumberType>",
1635
+ value: elem
1636
+ })).every(flag => flag) || $report(_exceptionable, {
1637
+ path: _path + ".assets",
1638
+ expected: "Array<AssetDetails<NumberType>>",
1639
+ value: input.assets
1640
+ }), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || $report(_exceptionable, {
1641
+ path: _path + ".options",
1642
+ expected: "(__type | undefined)",
1643
+ value: input.options
1644
+ })) && $vo6(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
1645
+ path: _path + ".options",
1646
+ expected: "(__type | undefined)",
1647
+ value: input.options
1648
+ })].every(flag => flag);
1649
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.chain || $report(_exceptionable, {
1650
+ path: _path + ".chain",
1651
+ expected: "string",
1652
+ value: input.chain
1653
+ }), "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId || $report(_exceptionable, {
1654
+ path: _path + ".collectionId",
1655
+ expected: "(bigint | number | string)",
1656
+ value: input.collectionId
1657
+ }), (Array.isArray(input.assetIds) || $report(_exceptionable, {
1658
+ path: _path + ".assetIds",
1659
+ expected: "Array<string | UintRange<NumberType>>",
1660
+ value: input.assetIds
1661
+ })) && input.assetIds.map((elem, _index6) => (null !== elem || $report(_exceptionable, {
1662
+ path: _path + ".assetIds[" + _index6 + "]",
1663
+ expected: "(UintRange<NumberType> | string)",
1664
+ value: elem
1665
+ })) && (undefined !== elem || $report(_exceptionable, {
1666
+ path: _path + ".assetIds[" + _index6 + "]",
1667
+ expected: "(UintRange<NumberType> | string)",
1668
+ value: elem
1669
+ })) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1670
+ path: _path + ".assetIds[" + _index6 + "]",
1671
+ expected: "(UintRange<NumberType> | string)",
1672
+ value: elem
1673
+ })) && $vo5(elem, _path + ".assetIds[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
1674
+ path: _path + ".assetIds[" + _index6 + "]",
1675
+ expected: "(UintRange<NumberType> | string)",
1676
+ value: elem
1677
+ }))).every(flag => flag) || $report(_exceptionable, {
1678
+ path: _path + ".assetIds",
1679
+ expected: "Array<string | UintRange<NumberType>>",
1680
+ value: input.assetIds
1681
+ }), (Array.isArray(input.ownershipTimes) || $report(_exceptionable, {
1682
+ path: _path + ".ownershipTimes",
1683
+ expected: "Array<UintRange<NumberType>>",
1684
+ value: input.ownershipTimes
1685
+ })) && input.ownershipTimes.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1686
+ path: _path + ".ownershipTimes[" + _index7 + "]",
1687
+ expected: "UintRange<NumberType>",
1688
+ value: elem
1689
+ })) && $vo5(elem, _path + ".ownershipTimes[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
1690
+ path: _path + ".ownershipTimes[" + _index7 + "]",
1691
+ expected: "UintRange<NumberType>",
1692
+ value: elem
1693
+ })).every(flag => flag) || $report(_exceptionable, {
1694
+ path: _path + ".ownershipTimes",
1695
+ expected: "Array<UintRange<NumberType>>",
1696
+ value: input.ownershipTimes
1697
+ }), ("object" === typeof input.mustOwnAmounts && null !== input.mustOwnAmounts || $report(_exceptionable, {
1698
+ path: _path + ".mustOwnAmounts",
1699
+ expected: "UintRange<NumberType>",
1700
+ value: input.mustOwnAmounts
1701
+ })) && $vo5(input.mustOwnAmounts, _path + ".mustOwnAmounts", true && _exceptionable) || $report(_exceptionable, {
1702
+ path: _path + ".mustOwnAmounts",
1703
+ expected: "UintRange<NumberType>",
1704
+ value: input.mustOwnAmounts
1705
+ }), undefined === input.additionalCriteria || "string" === typeof input.additionalCriteria || $report(_exceptionable, {
1706
+ path: _path + ".additionalCriteria",
1707
+ expected: "(string | undefined)",
1708
+ value: input.additionalCriteria
1709
+ })].every(flag => flag);
1710
+ const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
1711
+ path: _path + ".start",
1712
+ expected: "(bigint | number | string)",
1713
+ value: input.start
1714
+ }), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
1715
+ path: _path + ".end",
1716
+ expected: "(bigint | number | string)",
1717
+ value: input.end
1718
+ })].every(flag => flag);
1719
+ const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification || $report(_exceptionable, {
1720
+ path: _path + ".numMatchesForVerification",
1721
+ expected: "(bigint | number | string | undefined)",
1722
+ value: input.numMatchesForVerification
1723
+ })].every(flag => flag);
1724
+ const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.entropies || (Array.isArray(input.entropies) || $report(_exceptionable, {
1663
1725
  path: _path + ".entropies",
1664
1726
  expected: "(Array<string> | undefined)",
1665
1727
  value: input.entropies
1666
- })) && input.entropies.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
1667
- path: _path + ".entropies[" + _index3 + "]",
1728
+ })) && input.entropies.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
1729
+ path: _path + ".entropies[" + _index8 + "]",
1668
1730
  expected: "string",
1669
1731
  value: elem
1670
1732
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1675,12 +1737,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1675
1737
  path: _path + ".updateHistory",
1676
1738
  expected: "(Array<iUpdateHistory<NumberType>> | undefined)",
1677
1739
  value: input.updateHistory
1678
- })) && input.updateHistory.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1679
- path: _path + ".updateHistory[" + _index4 + "]",
1740
+ })) && input.updateHistory.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1741
+ path: _path + ".updateHistory[" + _index9 + "]",
1680
1742
  expected: "iUpdateHistory<NumberType>",
1681
1743
  value: elem
1682
- })) && $vo2(elem, _path + ".updateHistory[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
1683
- path: _path + ".updateHistory[" + _index4 + "]",
1744
+ })) && $vo8(elem, _path + ".updateHistory[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
1745
+ path: _path + ".updateHistory[" + _index9 + "]",
1684
1746
  expected: "iUpdateHistory<NumberType>",
1685
1747
  value: elem
1686
1748
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1697,11 +1759,11 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1697
1759
  value: input.createdBy
1698
1760
  }), ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance || $report(_exceptionable, {
1699
1761
  path: _path + ".proofOfIssuance",
1700
- expected: "__type",
1762
+ expected: "__type.o1",
1701
1763
  value: input.proofOfIssuance
1702
- })) && $vo3(input.proofOfIssuance, _path + ".proofOfIssuance", true && _exceptionable) || $report(_exceptionable, {
1764
+ })) && $vo9(input.proofOfIssuance, _path + ".proofOfIssuance", true && _exceptionable) || $report(_exceptionable, {
1703
1765
  path: _path + ".proofOfIssuance",
1704
- expected: "__type",
1766
+ expected: "__type.o1",
1705
1767
  value: input.proofOfIssuance
1706
1768
  }), "bbs" === input.scheme || "standard" === input.scheme || $report(_exceptionable, {
1707
1769
  path: _path + ".scheme",
@@ -1711,8 +1773,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1711
1773
  path: _path + ".attestationMessages",
1712
1774
  expected: "Array<string>",
1713
1775
  value: input.attestationMessages
1714
- })) && input.attestationMessages.map((elem, _index5) => "string" === typeof elem || $report(_exceptionable, {
1715
- path: _path + ".attestationMessages[" + _index5 + "]",
1776
+ })) && input.attestationMessages.map((elem, _index10) => "string" === typeof elem || $report(_exceptionable, {
1777
+ path: _path + ".attestationMessages[" + _index10 + "]",
1716
1778
  expected: "string",
1717
1779
  value: elem
1718
1780
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1721,11 +1783,11 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1721
1783
  value: input.attestationMessages
1722
1784
  }), ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof || $report(_exceptionable, {
1723
1785
  path: _path + ".dataIntegrityProof",
1724
- expected: "__type.o1",
1786
+ expected: "__type.o2",
1725
1787
  value: input.dataIntegrityProof
1726
- })) && $vo4(input.dataIntegrityProof, _path + ".dataIntegrityProof", true && _exceptionable) || $report(_exceptionable, {
1788
+ })) && $vo10(input.dataIntegrityProof, _path + ".dataIntegrityProof", true && _exceptionable) || $report(_exceptionable, {
1727
1789
  path: _path + ".dataIntegrityProof",
1728
- expected: "__type.o1",
1790
+ expected: "__type.o2",
1729
1791
  value: input.dataIntegrityProof
1730
1792
  }), "string" === typeof input.name || $report(_exceptionable, {
1731
1793
  path: _path + ".name",
@@ -1743,20 +1805,20 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1743
1805
  path: _path + ".anchors",
1744
1806
  expected: "(Array<__type> | undefined)",
1745
1807
  value: input.anchors
1746
- })) && input.anchors.map((elem, _index6) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
1747
- path: _path + ".anchors[" + _index6 + "]",
1748
- expected: "__type.o2",
1808
+ })) && input.anchors.map((elem, _index11) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
1809
+ path: _path + ".anchors[" + _index11 + "]",
1810
+ expected: "__type.o3",
1749
1811
  value: elem
1750
- })) && $vo5(elem, _path + ".anchors[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
1751
- path: _path + ".anchors[" + _index6 + "]",
1752
- expected: "__type.o2",
1812
+ })) && $vo11(elem, _path + ".anchors[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
1813
+ path: _path + ".anchors[" + _index11 + "]",
1814
+ expected: "__type.o3",
1753
1815
  value: elem
1754
1816
  })).every(flag => flag) || $report(_exceptionable, {
1755
1817
  path: _path + ".anchors",
1756
1818
  expected: "(Array<__type> | undefined)",
1757
1819
  value: input.anchors
1758
1820
  })].every(flag => flag);
1759
- const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.txHash || $report(_exceptionable, {
1821
+ const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.txHash || $report(_exceptionable, {
1760
1822
  path: _path + ".txHash",
1761
1823
  expected: "string",
1762
1824
  value: input.txHash
@@ -1773,7 +1835,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1773
1835
  expected: "(bigint | number | string)",
1774
1836
  value: input.timestamp
1775
1837
  })].every(flag => flag);
1776
- const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
1838
+ const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
1777
1839
  path: _path + ".message",
1778
1840
  expected: "string",
1779
1841
  value: input.message
@@ -1790,7 +1852,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1790
1852
  expected: "(string | undefined)",
1791
1853
  value: input.publicKey
1792
1854
  })].every(flag => flag);
1793
- const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.signature || $report(_exceptionable, {
1855
+ const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.signature || $report(_exceptionable, {
1794
1856
  path: _path + ".signature",
1795
1857
  expected: "string",
1796
1858
  value: input.signature
@@ -1803,7 +1865,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1803
1865
  expected: "(string | undefined)",
1804
1866
  value: input.publicKey
1805
1867
  })].every(flag => flag);
1806
- const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.txHash || "string" === typeof input.txHash || $report(_exceptionable, {
1868
+ const $vo11 = (input, _path, _exceptionable = true) => [undefined === input.txHash || "string" === typeof input.txHash || $report(_exceptionable, {
1807
1869
  path: _path + ".txHash",
1808
1870
  expected: "(string | undefined)",
1809
1871
  value: input.txHash
@@ -1812,6 +1874,20 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1812
1874
  expected: "(string | undefined)",
1813
1875
  value: input.message
1814
1876
  })].every(flag => flag);
1877
+ const $vu0 = (input, _path, _exceptionable = true) => (() => {
1878
+ if (undefined !== input.$and)
1879
+ return $vo1(input, _path, true && _exceptionable);
1880
+ else if (undefined !== input.$or)
1881
+ return $vo2(input, _path, true && _exceptionable);
1882
+ else if (undefined !== input.assets)
1883
+ return $vo3(input, _path, true && _exceptionable);
1884
+ else
1885
+ return $report(_exceptionable, {
1886
+ path: _path,
1887
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1888
+ value: input
1889
+ });
1890
+ })();
1815
1891
  return ("object" === typeof input && null !== input || $report(true, {
1816
1892
  path: _path + "",
1817
1893
  expected: "CreateSIWBBRequestPayload",
@@ -5649,8 +5725,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5649
5725
  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);
5650
5726
  const $io9 = input => true;
5651
5727
  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);
5652
- 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@868"] && Object.keys(input).every(key => {
5653
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@868"].some(prop => key === prop))
5728
+ 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 => {
5729
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
5654
5730
  return true;
5655
5731
  const value = input[key];
5656
5732
  if (undefined === value)
@@ -6003,12 +6079,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6003
6079
  path: _path + ".length",
6004
6080
  expected: "number",
6005
6081
  value: input.length
6006
- }), "Uint8Array" === input["__@toStringTag@868"] || $report(_exceptionable, {
6007
- path: _path + "[\"__@toStringTag@868\"]",
6082
+ }), "Uint8Array" === input["__@toStringTag@870"] || $report(_exceptionable, {
6083
+ path: _path + "[\"__@toStringTag@870\"]",
6008
6084
  expected: "\"Uint8Array\"",
6009
- value: input["__@toStringTag@868"]
6085
+ value: input["__@toStringTag@870"]
6010
6086
  }), false === _exceptionable || Object.keys(input).map(key => {
6011
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@868"].some(prop => key === prop))
6087
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
6012
6088
  return true;
6013
6089
  const value = input[key];
6014
6090
  if (undefined === value)
@@ -6071,8 +6147,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6071
6147
  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);
6072
6148
  const $io4 = input => true;
6073
6149
  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);
6074
- 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@868"] && Object.keys(input).every(key => {
6075
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@868"].some(prop => key === prop))
6150
+ 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 => {
6151
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
6076
6152
  return true;
6077
6153
  const value = input[key];
6078
6154
  if (undefined === value)
@@ -6286,12 +6362,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6286
6362
  path: _path + ".length",
6287
6363
  expected: "number",
6288
6364
  value: input.length
6289
- }), "Uint8Array" === input["__@toStringTag@868"] || $report(_exceptionable, {
6290
- path: _path + "[\"__@toStringTag@868\"]",
6365
+ }), "Uint8Array" === input["__@toStringTag@870"] || $report(_exceptionable, {
6366
+ path: _path + "[\"__@toStringTag@870\"]",
6291
6367
  expected: "\"Uint8Array\"",
6292
- value: input["__@toStringTag@868"]
6368
+ value: input["__@toStringTag@870"]
6293
6369
  }), false === _exceptionable || Object.keys(input).map(key => {
6294
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@868"].some(prop => key === prop))
6370
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
6295
6371
  return true;
6296
6372
  const value = input[key];
6297
6373
  if (undefined === value)