bitbadgesjs-sdk 0.3.52 → 0.3.54

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.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);
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,130 +1222,57 @@ 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
- }), undefined === input.clientSecret || "string" === typeof input.clientSecret || $report(_exceptionable, {
1236
- path: _path + ".clientSecret",
1233
+ }), undefined === input.client_secret || "string" === typeof input.client_secret || $report(_exceptionable, {
1234
+ path: _path + ".client_secret",
1237
1235
  expected: "(string | undefined)",
1238
- value: input.clientSecret
1239
- }), undefined === input.clientId || "string" === typeof input.clientId || $report(_exceptionable, {
1240
- path: _path + ".clientId",
1236
+ value: input.client_secret
1237
+ }), undefined === input.client_id || "string" === typeof input.client_id || $report(_exceptionable, {
1238
+ path: _path + ".client_id",
1241
1239
  expected: "(string | undefined)",
1242
- value: input.clientId
1243
- }), undefined === input.redirectUri || "string" === typeof input.redirectUri || $report(_exceptionable, {
1244
- path: _path + ".redirectUri",
1240
+ value: input.client_id
1241
+ }), undefined === input.redirect_uri || "string" === typeof input.redirect_uri || $report(_exceptionable, {
1242
+ path: _path + ".redirect_uri",
1245
1243
  expected: "(string | undefined)",
1246
- value: input.redirectUri
1244
+ value: input.redirect_uri
1245
+ }), undefined === input.grant_type || "authorization_code" === input.grant_type || $report(_exceptionable, {
1246
+ path: _path + ".grant_type",
1247
+ expected: "(\"authorization_code\" | undefined)",
1248
+ value: input.grant_type
1247
1249
  })].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
1250
+ const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.ownershipRequirements || ("object" === typeof input.ownershipRequirements && null !== input.ownershipRequirements || $report(_exceptionable, {
1251
+ path: _path + ".ownershipRequirements",
1252
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType> | undefined)",
1253
+ value: input.ownershipRequirements
1254
+ })) && $vu0(input.ownershipRequirements, _path + ".ownershipRequirements", true && _exceptionable) || $report(_exceptionable, {
1255
+ path: _path + ".ownershipRequirements",
1256
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType> | undefined)",
1257
+ value: input.ownershipRequirements
1258
+ }), undefined === input.otherSignIns || (Array.isArray(input.otherSignIns) || $report(_exceptionable, {
1259
+ path: _path + ".otherSignIns",
1260
+ expected: "(Array<\"discord\" | \"github\" | \"google\" | \"twitter\"> | undefined)",
1261
+ value: input.otherSignIns
1262
+ })) && input.otherSignIns.map((elem, _index1) => "discord" === elem || "github" === elem || "google" === elem || "twitter" === elem || $report(_exceptionable, {
1263
+ path: _path + ".otherSignIns[" + _index1 + "]",
1264
+ expected: "(\"discord\" | \"github\" | \"google\" | \"twitter\")",
1265
+ value: elem
1266
+ })).every(flag => flag) || $report(_exceptionable, {
1267
+ path: _path + ".otherSignIns",
1268
+ expected: "(Array<\"discord\" | \"github\" | \"google\" | \"twitter\"> | undefined)",
1269
+ value: input.otherSignIns
1280
1270
  }), undefined === input.issuedAtTimeWindowMs || "number" === typeof input.issuedAtTimeWindowMs || $report(_exceptionable, {
1281
1271
  path: _path + ".issuedAtTimeWindowMs",
1282
1272
  expected: "(number | undefined)",
1283
1273
  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
1274
  })].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
- })].every(flag => flag);
1350
- const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$and) || $report(_exceptionable, {
1275
+ const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$and) || $report(_exceptionable, {
1351
1276
  path: _path + ".$and",
1352
1277
  expected: "Array<AssetConditionGroup<NumberType>>",
1353
1278
  value: input.$and
@@ -1364,7 +1289,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1364
1289
  expected: "Array<AssetConditionGroup<NumberType>>",
1365
1290
  value: input.$and
1366
1291
  })].every(flag => flag);
1367
- const $vo4 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$or) || $report(_exceptionable, {
1292
+ const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$or) || $report(_exceptionable, {
1368
1293
  path: _path + ".$or",
1369
1294
  expected: "Array<AssetConditionGroup<NumberType>>",
1370
1295
  value: input.$or
@@ -1381,7 +1306,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1381
1306
  expected: "Array<AssetConditionGroup<NumberType>>",
1382
1307
  value: input.$or
1383
1308
  })].every(flag => flag);
1384
- const $vo5 = (input, _path, _exceptionable = true) => [(Array.isArray(input.assets) || $report(_exceptionable, {
1309
+ const $vo4 = (input, _path, _exceptionable = true) => [(Array.isArray(input.assets) || $report(_exceptionable, {
1385
1310
  path: _path + ".assets",
1386
1311
  expected: "Array<AssetDetails<NumberType>>",
1387
1312
  value: input.assets
@@ -1389,7 +1314,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1389
1314
  path: _path + ".assets[" + _index4 + "]",
1390
1315
  expected: "AssetDetails<NumberType>",
1391
1316
  value: elem
1392
- })) && $vo6(elem, _path + ".assets[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
1317
+ })) && $vo5(elem, _path + ".assets[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
1393
1318
  path: _path + ".assets[" + _index4 + "]",
1394
1319
  expected: "AssetDetails<NumberType>",
1395
1320
  value: elem
@@ -1401,12 +1326,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1401
1326
  path: _path + ".options",
1402
1327
  expected: "(__type | undefined)",
1403
1328
  value: input.options
1404
- })) && $vo8(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
1329
+ })) && $vo7(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
1405
1330
  path: _path + ".options",
1406
1331
  expected: "(__type | undefined)",
1407
1332
  value: input.options
1408
1333
  })].every(flag => flag);
1409
- const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.chain || $report(_exceptionable, {
1334
+ const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.chain || $report(_exceptionable, {
1410
1335
  path: _path + ".chain",
1411
1336
  expected: "string",
1412
1337
  value: input.chain
@@ -1430,7 +1355,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1430
1355
  path: _path + ".assetIds[" + _index5 + "]",
1431
1356
  expected: "(UintRange<NumberType> | string)",
1432
1357
  value: elem
1433
- })) && $vo7(elem, _path + ".assetIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
1358
+ })) && $vo6(elem, _path + ".assetIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
1434
1359
  path: _path + ".assetIds[" + _index5 + "]",
1435
1360
  expected: "(UintRange<NumberType> | string)",
1436
1361
  value: elem
@@ -1446,7 +1371,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1446
1371
  path: _path + ".ownershipTimes[" + _index6 + "]",
1447
1372
  expected: "UintRange<NumberType>",
1448
1373
  value: elem
1449
- })) && $vo7(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
1374
+ })) && $vo6(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
1450
1375
  path: _path + ".ownershipTimes[" + _index6 + "]",
1451
1376
  expected: "UintRange<NumberType>",
1452
1377
  value: elem
@@ -1458,7 +1383,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1458
1383
  path: _path + ".mustOwnAmounts",
1459
1384
  expected: "UintRange<NumberType>",
1460
1385
  value: input.mustOwnAmounts
1461
- })) && $vo7(input.mustOwnAmounts, _path + ".mustOwnAmounts", true && _exceptionable) || $report(_exceptionable, {
1386
+ })) && $vo6(input.mustOwnAmounts, _path + ".mustOwnAmounts", true && _exceptionable) || $report(_exceptionable, {
1462
1387
  path: _path + ".mustOwnAmounts",
1463
1388
  expected: "UintRange<NumberType>",
1464
1389
  value: input.mustOwnAmounts
@@ -1467,7 +1392,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1467
1392
  expected: "(string | undefined)",
1468
1393
  value: input.additionalCriteria
1469
1394
  })].every(flag => flag);
1470
- const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
1395
+ const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
1471
1396
  path: _path + ".start",
1472
1397
  expected: "(bigint | number | string)",
1473
1398
  value: input.start
@@ -1476,19 +1401,18 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1476
1401
  expected: "(bigint | number | string)",
1477
1402
  value: input.end
1478
1403
  })].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, {
1404
+ const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification || $report(_exceptionable, {
1480
1405
  path: _path + ".numMatchesForVerification",
1481
1406
  expected: "(bigint | number | string | undefined)",
1482
1407
  value: input.numMatchesForVerification
1483
1408
  })].every(flag => flag);
1484
- const $vo9 = (input, _path, _exceptionable = true) => true;
1485
1409
  const $vu0 = (input, _path, _exceptionable = true) => (() => {
1486
1410
  if (undefined !== input.$and)
1487
- return $vo3(input, _path, true && _exceptionable);
1411
+ return $vo2(input, _path, true && _exceptionable);
1488
1412
  else if (undefined !== input.$or)
1489
- return $vo4(input, _path, true && _exceptionable);
1413
+ return $vo3(input, _path, true && _exceptionable);
1490
1414
  else if (undefined !== input.assets)
1491
- return $vo5(input, _path, true && _exceptionable);
1415
+ return $vo4(input, _path, true && _exceptionable);
1492
1416
  else
1493
1417
  return $report(_exceptionable, {
1494
1418
  path: _path,
@@ -1579,45 +1503,53 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1579
1503
  const validateRes = (input => {
1580
1504
  const errors = [];
1581
1505
  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);
1506
+ 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);
1507
+ const $io1 = input => Array.isArray(input.$and) && input.$and.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1508
+ const $io2 = input => Array.isArray(input.$or) && input.$or.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
1509
+ 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));
1510
+ 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);
1511
+ 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);
1512
+ const $io6 = input => undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification;
1513
+ 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)));
1514
+ 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);
1515
+ const $io9 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
1516
+ const $io10 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
1517
+ const $io11 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message);
1518
+ const $iu0 = input => (() => {
1519
+ if (undefined !== input.$and)
1520
+ return $io1(input);
1521
+ else if (undefined !== input.$or)
1522
+ return $io2(input);
1523
+ else if (undefined !== input.assets)
1524
+ return $io3(input);
1525
+ else
1526
+ return false;
1527
+ })();
1588
1528
  return "object" === typeof input && null !== input && $io0(input);
1589
1529
  };
1590
1530
  if (false === __is(input)) {
1591
1531
  const $report = typia_1.default.validate.report(errors);
1592
1532
  ((input, _path, _exceptionable = true) => {
1593
- const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
1533
+ const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
1594
1534
  path: _path + ".name",
1595
- expected: "string",
1535
+ expected: "(string | undefined)",
1596
1536
  value: input.name
1597
- }), "string" === typeof input.description || $report(_exceptionable, {
1537
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1598
1538
  path: _path + ".description",
1599
- expected: "string",
1539
+ expected: "(string | undefined)",
1600
1540
  value: input.description
1601
- }), "string" === typeof input.image || $report(_exceptionable, {
1541
+ }), undefined === input.image || "string" === typeof input.image || $report(_exceptionable, {
1602
1542
  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
1543
  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
1544
+ value: input.image
1545
+ }), ("object" === typeof input.ownershipRequirements && null !== input.ownershipRequirements || $report(_exceptionable, {
1546
+ path: _path + ".ownershipRequirements",
1547
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1548
+ value: input.ownershipRequirements
1549
+ })) && $vu0(input.ownershipRequirements, _path + ".ownershipRequirements", true && _exceptionable) || $report(_exceptionable, {
1550
+ path: _path + ".ownershipRequirements",
1551
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1552
+ value: input.ownershipRequirements
1621
1553
  }), undefined === input.attestationsPresentations || (Array.isArray(input.attestationsPresentations) || $report(_exceptionable, {
1622
1554
  path: _path + ".attestationsPresentations",
1623
1555
  expected: "(Array<iAttestationsProof<NumberType>> | undefined)",
@@ -1626,7 +1558,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1626
1558
  path: _path + ".attestationsPresentations[" + _index1 + "]",
1627
1559
  expected: "iAttestationsProof<NumberType>",
1628
1560
  value: elem
1629
- })) && $vo1(elem, _path + ".attestationsPresentations[" + _index1 + "]", true && _exceptionable) || $report(_exceptionable, {
1561
+ })) && $vo7(elem, _path + ".attestationsPresentations[" + _index1 + "]", true && _exceptionable) || $report(_exceptionable, {
1630
1562
  path: _path + ".attestationsPresentations[" + _index1 + "]",
1631
1563
  expected: "iAttestationsProof<NumberType>",
1632
1564
  value: elem
@@ -1659,12 +1591,146 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1659
1591
  expected: "(string | undefined)",
1660
1592
  value: input.state
1661
1593
  })].every(flag => flag);
1662
- const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.entropies || (Array.isArray(input.entropies) || $report(_exceptionable, {
1594
+ const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$and) || $report(_exceptionable, {
1595
+ path: _path + ".$and",
1596
+ expected: "Array<AssetConditionGroup<NumberType>>",
1597
+ value: input.$and
1598
+ })) && input.$and.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1599
+ path: _path + ".$and[" + _index3 + "]",
1600
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1601
+ value: elem
1602
+ })) && $vu0(elem, _path + ".$and[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
1603
+ path: _path + ".$and[" + _index3 + "]",
1604
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1605
+ value: elem
1606
+ })).every(flag => flag) || $report(_exceptionable, {
1607
+ path: _path + ".$and",
1608
+ expected: "Array<AssetConditionGroup<NumberType>>",
1609
+ value: input.$and
1610
+ })].every(flag => flag);
1611
+ const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.$or) || $report(_exceptionable, {
1612
+ path: _path + ".$or",
1613
+ expected: "Array<AssetConditionGroup<NumberType>>",
1614
+ value: input.$or
1615
+ })) && input.$or.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1616
+ path: _path + ".$or[" + _index4 + "]",
1617
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1618
+ value: elem
1619
+ })) && $vu0(elem, _path + ".$or[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
1620
+ path: _path + ".$or[" + _index4 + "]",
1621
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1622
+ value: elem
1623
+ })).every(flag => flag) || $report(_exceptionable, {
1624
+ path: _path + ".$or",
1625
+ expected: "Array<AssetConditionGroup<NumberType>>",
1626
+ value: input.$or
1627
+ })].every(flag => flag);
1628
+ const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.assets) || $report(_exceptionable, {
1629
+ path: _path + ".assets",
1630
+ expected: "Array<AssetDetails<NumberType>>",
1631
+ value: input.assets
1632
+ })) && input.assets.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1633
+ path: _path + ".assets[" + _index5 + "]",
1634
+ expected: "AssetDetails<NumberType>",
1635
+ value: elem
1636
+ })) && $vo4(elem, _path + ".assets[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
1637
+ path: _path + ".assets[" + _index5 + "]",
1638
+ expected: "AssetDetails<NumberType>",
1639
+ value: elem
1640
+ })).every(flag => flag) || $report(_exceptionable, {
1641
+ path: _path + ".assets",
1642
+ expected: "Array<AssetDetails<NumberType>>",
1643
+ value: input.assets
1644
+ }), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || $report(_exceptionable, {
1645
+ path: _path + ".options",
1646
+ expected: "(__type | undefined)",
1647
+ value: input.options
1648
+ })) && $vo6(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
1649
+ path: _path + ".options",
1650
+ expected: "(__type | undefined)",
1651
+ value: input.options
1652
+ })].every(flag => flag);
1653
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.chain || $report(_exceptionable, {
1654
+ path: _path + ".chain",
1655
+ expected: "string",
1656
+ value: input.chain
1657
+ }), "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId || $report(_exceptionable, {
1658
+ path: _path + ".collectionId",
1659
+ expected: "(bigint | number | string)",
1660
+ value: input.collectionId
1661
+ }), (Array.isArray(input.assetIds) || $report(_exceptionable, {
1662
+ path: _path + ".assetIds",
1663
+ expected: "Array<string | UintRange<NumberType>>",
1664
+ value: input.assetIds
1665
+ })) && input.assetIds.map((elem, _index6) => (null !== elem || $report(_exceptionable, {
1666
+ path: _path + ".assetIds[" + _index6 + "]",
1667
+ expected: "(UintRange<NumberType> | string)",
1668
+ value: elem
1669
+ })) && (undefined !== elem || $report(_exceptionable, {
1670
+ path: _path + ".assetIds[" + _index6 + "]",
1671
+ expected: "(UintRange<NumberType> | string)",
1672
+ value: elem
1673
+ })) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1674
+ path: _path + ".assetIds[" + _index6 + "]",
1675
+ expected: "(UintRange<NumberType> | string)",
1676
+ value: elem
1677
+ })) && $vo5(elem, _path + ".assetIds[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
1678
+ path: _path + ".assetIds[" + _index6 + "]",
1679
+ expected: "(UintRange<NumberType> | string)",
1680
+ value: elem
1681
+ }))).every(flag => flag) || $report(_exceptionable, {
1682
+ path: _path + ".assetIds",
1683
+ expected: "Array<string | UintRange<NumberType>>",
1684
+ value: input.assetIds
1685
+ }), (Array.isArray(input.ownershipTimes) || $report(_exceptionable, {
1686
+ path: _path + ".ownershipTimes",
1687
+ expected: "Array<UintRange<NumberType>>",
1688
+ value: input.ownershipTimes
1689
+ })) && input.ownershipTimes.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1690
+ path: _path + ".ownershipTimes[" + _index7 + "]",
1691
+ expected: "UintRange<NumberType>",
1692
+ value: elem
1693
+ })) && $vo5(elem, _path + ".ownershipTimes[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
1694
+ path: _path + ".ownershipTimes[" + _index7 + "]",
1695
+ expected: "UintRange<NumberType>",
1696
+ value: elem
1697
+ })).every(flag => flag) || $report(_exceptionable, {
1698
+ path: _path + ".ownershipTimes",
1699
+ expected: "Array<UintRange<NumberType>>",
1700
+ value: input.ownershipTimes
1701
+ }), ("object" === typeof input.mustOwnAmounts && null !== input.mustOwnAmounts || $report(_exceptionable, {
1702
+ path: _path + ".mustOwnAmounts",
1703
+ expected: "UintRange<NumberType>",
1704
+ value: input.mustOwnAmounts
1705
+ })) && $vo5(input.mustOwnAmounts, _path + ".mustOwnAmounts", true && _exceptionable) || $report(_exceptionable, {
1706
+ path: _path + ".mustOwnAmounts",
1707
+ expected: "UintRange<NumberType>",
1708
+ value: input.mustOwnAmounts
1709
+ }), undefined === input.additionalCriteria || "string" === typeof input.additionalCriteria || $report(_exceptionable, {
1710
+ path: _path + ".additionalCriteria",
1711
+ expected: "(string | undefined)",
1712
+ value: input.additionalCriteria
1713
+ })].every(flag => flag);
1714
+ const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
1715
+ path: _path + ".start",
1716
+ expected: "(bigint | number | string)",
1717
+ value: input.start
1718
+ }), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
1719
+ path: _path + ".end",
1720
+ expected: "(bigint | number | string)",
1721
+ value: input.end
1722
+ })].every(flag => flag);
1723
+ const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification || $report(_exceptionable, {
1724
+ path: _path + ".numMatchesForVerification",
1725
+ expected: "(bigint | number | string | undefined)",
1726
+ value: input.numMatchesForVerification
1727
+ })].every(flag => flag);
1728
+ const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.entropies || (Array.isArray(input.entropies) || $report(_exceptionable, {
1663
1729
  path: _path + ".entropies",
1664
1730
  expected: "(Array<string> | undefined)",
1665
1731
  value: input.entropies
1666
- })) && input.entropies.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
1667
- path: _path + ".entropies[" + _index3 + "]",
1732
+ })) && input.entropies.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
1733
+ path: _path + ".entropies[" + _index8 + "]",
1668
1734
  expected: "string",
1669
1735
  value: elem
1670
1736
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1675,12 +1741,12 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1675
1741
  path: _path + ".updateHistory",
1676
1742
  expected: "(Array<iUpdateHistory<NumberType>> | undefined)",
1677
1743
  value: input.updateHistory
1678
- })) && input.updateHistory.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1679
- path: _path + ".updateHistory[" + _index4 + "]",
1744
+ })) && input.updateHistory.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1745
+ path: _path + ".updateHistory[" + _index9 + "]",
1680
1746
  expected: "iUpdateHistory<NumberType>",
1681
1747
  value: elem
1682
- })) && $vo2(elem, _path + ".updateHistory[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
1683
- path: _path + ".updateHistory[" + _index4 + "]",
1748
+ })) && $vo8(elem, _path + ".updateHistory[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
1749
+ path: _path + ".updateHistory[" + _index9 + "]",
1684
1750
  expected: "iUpdateHistory<NumberType>",
1685
1751
  value: elem
1686
1752
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1697,11 +1763,11 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1697
1763
  value: input.createdBy
1698
1764
  }), ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance || $report(_exceptionable, {
1699
1765
  path: _path + ".proofOfIssuance",
1700
- expected: "__type",
1766
+ expected: "__type.o1",
1701
1767
  value: input.proofOfIssuance
1702
- })) && $vo3(input.proofOfIssuance, _path + ".proofOfIssuance", true && _exceptionable) || $report(_exceptionable, {
1768
+ })) && $vo9(input.proofOfIssuance, _path + ".proofOfIssuance", true && _exceptionable) || $report(_exceptionable, {
1703
1769
  path: _path + ".proofOfIssuance",
1704
- expected: "__type",
1770
+ expected: "__type.o1",
1705
1771
  value: input.proofOfIssuance
1706
1772
  }), "bbs" === input.scheme || "standard" === input.scheme || $report(_exceptionable, {
1707
1773
  path: _path + ".scheme",
@@ -1711,8 +1777,8 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1711
1777
  path: _path + ".attestationMessages",
1712
1778
  expected: "Array<string>",
1713
1779
  value: input.attestationMessages
1714
- })) && input.attestationMessages.map((elem, _index5) => "string" === typeof elem || $report(_exceptionable, {
1715
- path: _path + ".attestationMessages[" + _index5 + "]",
1780
+ })) && input.attestationMessages.map((elem, _index10) => "string" === typeof elem || $report(_exceptionable, {
1781
+ path: _path + ".attestationMessages[" + _index10 + "]",
1716
1782
  expected: "string",
1717
1783
  value: elem
1718
1784
  })).every(flag => flag) || $report(_exceptionable, {
@@ -1721,11 +1787,11 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1721
1787
  value: input.attestationMessages
1722
1788
  }), ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof || $report(_exceptionable, {
1723
1789
  path: _path + ".dataIntegrityProof",
1724
- expected: "__type.o1",
1790
+ expected: "__type.o2",
1725
1791
  value: input.dataIntegrityProof
1726
- })) && $vo4(input.dataIntegrityProof, _path + ".dataIntegrityProof", true && _exceptionable) || $report(_exceptionable, {
1792
+ })) && $vo10(input.dataIntegrityProof, _path + ".dataIntegrityProof", true && _exceptionable) || $report(_exceptionable, {
1727
1793
  path: _path + ".dataIntegrityProof",
1728
- expected: "__type.o1",
1794
+ expected: "__type.o2",
1729
1795
  value: input.dataIntegrityProof
1730
1796
  }), "string" === typeof input.name || $report(_exceptionable, {
1731
1797
  path: _path + ".name",
@@ -1743,20 +1809,20 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1743
1809
  path: _path + ".anchors",
1744
1810
  expected: "(Array<__type> | undefined)",
1745
1811
  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",
1812
+ })) && input.anchors.map((elem, _index11) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
1813
+ path: _path + ".anchors[" + _index11 + "]",
1814
+ expected: "__type.o3",
1749
1815
  value: elem
1750
- })) && $vo5(elem, _path + ".anchors[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
1751
- path: _path + ".anchors[" + _index6 + "]",
1752
- expected: "__type.o2",
1816
+ })) && $vo11(elem, _path + ".anchors[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
1817
+ path: _path + ".anchors[" + _index11 + "]",
1818
+ expected: "__type.o3",
1753
1819
  value: elem
1754
1820
  })).every(flag => flag) || $report(_exceptionable, {
1755
1821
  path: _path + ".anchors",
1756
1822
  expected: "(Array<__type> | undefined)",
1757
1823
  value: input.anchors
1758
1824
  })].every(flag => flag);
1759
- const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.txHash || $report(_exceptionable, {
1825
+ const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.txHash || $report(_exceptionable, {
1760
1826
  path: _path + ".txHash",
1761
1827
  expected: "string",
1762
1828
  value: input.txHash
@@ -1773,7 +1839,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1773
1839
  expected: "(bigint | number | string)",
1774
1840
  value: input.timestamp
1775
1841
  })].every(flag => flag);
1776
- const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
1842
+ const $vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
1777
1843
  path: _path + ".message",
1778
1844
  expected: "string",
1779
1845
  value: input.message
@@ -1790,7 +1856,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1790
1856
  expected: "(string | undefined)",
1791
1857
  value: input.publicKey
1792
1858
  })].every(flag => flag);
1793
- const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.signature || $report(_exceptionable, {
1859
+ const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.signature || $report(_exceptionable, {
1794
1860
  path: _path + ".signature",
1795
1861
  expected: "string",
1796
1862
  value: input.signature
@@ -1803,7 +1869,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1803
1869
  expected: "(string | undefined)",
1804
1870
  value: input.publicKey
1805
1871
  })].every(flag => flag);
1806
- const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.txHash || "string" === typeof input.txHash || $report(_exceptionable, {
1872
+ const $vo11 = (input, _path, _exceptionable = true) => [undefined === input.txHash || "string" === typeof input.txHash || $report(_exceptionable, {
1807
1873
  path: _path + ".txHash",
1808
1874
  expected: "(string | undefined)",
1809
1875
  value: input.txHash
@@ -1812,6 +1878,20 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
1812
1878
  expected: "(string | undefined)",
1813
1879
  value: input.message
1814
1880
  })].every(flag => flag);
1881
+ const $vu0 = (input, _path, _exceptionable = true) => (() => {
1882
+ if (undefined !== input.$and)
1883
+ return $vo1(input, _path, true && _exceptionable);
1884
+ else if (undefined !== input.$or)
1885
+ return $vo2(input, _path, true && _exceptionable);
1886
+ else if (undefined !== input.assets)
1887
+ return $vo3(input, _path, true && _exceptionable);
1888
+ else
1889
+ return $report(_exceptionable, {
1890
+ path: _path,
1891
+ expected: "(AndGroup<NumberType> | OrGroup<NumberType> | OwnershipRequirements<NumberType>)",
1892
+ value: input
1893
+ });
1894
+ })();
1815
1895
  return ("object" === typeof input && null !== input || $report(true, {
1816
1896
  path: _path + "",
1817
1897
  expected: "CreateSIWBBRequestPayload",
@@ -5649,8 +5729,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5649
5729
  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
5730
  const $io9 = input => true;
5651
5731
  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))
5732
+ 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 => {
5733
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
5654
5734
  return true;
5655
5735
  const value = input[key];
5656
5736
  if (undefined === value)
@@ -6003,12 +6083,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6003
6083
  path: _path + ".length",
6004
6084
  expected: "number",
6005
6085
  value: input.length
6006
- }), "Uint8Array" === input["__@toStringTag@868"] || $report(_exceptionable, {
6007
- path: _path + "[\"__@toStringTag@868\"]",
6086
+ }), "Uint8Array" === input["__@toStringTag@870"] || $report(_exceptionable, {
6087
+ path: _path + "[\"__@toStringTag@870\"]",
6008
6088
  expected: "\"Uint8Array\"",
6009
- value: input["__@toStringTag@868"]
6089
+ value: input["__@toStringTag@870"]
6010
6090
  }), false === _exceptionable || Object.keys(input).map(key => {
6011
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@868"].some(prop => key === prop))
6091
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
6012
6092
  return true;
6013
6093
  const value = input[key];
6014
6094
  if (undefined === value)
@@ -6071,8 +6151,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6071
6151
  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
6152
  const $io4 = input => true;
6073
6153
  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))
6154
+ 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 => {
6155
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
6076
6156
  return true;
6077
6157
  const value = input[key];
6078
6158
  if (undefined === value)
@@ -6286,12 +6366,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6286
6366
  path: _path + ".length",
6287
6367
  expected: "number",
6288
6368
  value: input.length
6289
- }), "Uint8Array" === input["__@toStringTag@868"] || $report(_exceptionable, {
6290
- path: _path + "[\"__@toStringTag@868\"]",
6369
+ }), "Uint8Array" === input["__@toStringTag@870"] || $report(_exceptionable, {
6370
+ path: _path + "[\"__@toStringTag@870\"]",
6291
6371
  expected: "\"Uint8Array\"",
6292
- value: input["__@toStringTag@868"]
6372
+ value: input["__@toStringTag@870"]
6293
6373
  }), false === _exceptionable || Object.keys(input).map(key => {
6294
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@868"].some(prop => key === prop))
6374
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@870"].some(prop => key === prop))
6295
6375
  return true;
6296
6376
  const value = input[key];
6297
6377
  if (undefined === value)