bitbadgesjs-sdk 0.3.65 → 0.3.66

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.
@@ -5,9 +5,9 @@ import type { GetAccountsPayload, GetAccountsSuccessResponse, GetFollowDetailsPa
5
5
  import type { iBitBadgesApi } from './base';
6
6
  import { BaseBitBadgesApi } from './base';
7
7
  import type { FilterBadgesInCollectionPayload, FilterBadgesInCollectionSuccessResponse, FilterSuggestionsPayload, GetBadgeActivityPayload, GetBadgeActivitySuccessResponse, GetBadgeBalanceByAddressPayload, GetBadgeBalanceByAddressSuccessResponse, GetCollectionsPayload, GetCollectionsSuccessResponse, GetOwnersForBadgePayload, GetOwnersForBadgeSuccessResponse, RefreshMetadataPayload, RefreshMetadataSuccessResponse, RefreshStatusSuccessResponse } from './requests/collections';
8
- import { GetMapsPayload, GetMapsSuccessResponse } from './requests/maps';
9
8
  import { FilterSuggestionsSuccessResponse } from './requests/collections';
10
- import { AddApprovalDetailsToOffChainStoragePayload, AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStoragePayload, AddBalancesToOffChainStorageSuccessResponse, AddReviewPayload, AddReviewSuccessResponse, AddToIpfsPayload, AddToIpfsSuccessResponse, BroadcastTxPayload, BroadcastTxSuccessResponse, CheckSignInStatusPayload, CheckSignInStatusSuccessResponse, CompleteClaimPayload, CompleteClaimSuccessResponse, CreateDeveloperAppPayload, CreateDeveloperAppSuccessResponse, RotateSIWBBRequestPayload, RotateSIWBBRequestSuccessResponse, CreateSIWBBRequestPayload, CreateSIWBBRequestSuccessResponse, CreateClaimPayload, CreateClaimSuccessResponse, CreatePluginPayload, CreatePluginSuccessResponse, CreateAttestationPayload, CreateAttestationSuccessResponse, DeleteDeveloperAppPayload, DeleteDeveloperAppSuccessResponse, DeleteSIWBBRequestPayload, DeleteSIWBBRequestSuccessResponse, DeleteClaimPayload, DeleteClaimSuccessResponse, DeleteReviewPayload, DeleteReviewSuccessResponse, DeleteAttestationPayload, DeleteAttestationSuccessResponse, FetchMetadataDirectlyPayload, FetchMetadataDirectlySuccessResponse, GenerateAppleWalletPassPayload, GenerateAppleWalletPassSuccessResponse, GenericBlockinVerifyPayload, GenericBlockinVerifySuccessResponse, GenericVerifyAssetsPayload, GenericVerifyAssetsSuccessResponse, GetActiveAuthorizationsPayload, GetActiveAuthorizationsSuccessResponse, GetDeveloperAppPayload, GetDeveloperAppSuccessResponse, ExchangeSIWBBAuthorizationCodePayload, ExchangeSIWBBAuthorizationCodeSuccessResponse, GetSIWBBRequestsForDeveloperAppPayload, GetSIWBBRequestsForDeveloperAppSuccessResponse, GetBrowseCollectionsPayload, GetBrowseCollectionsSuccessResponse, GetClaimAlertsForCollectionPayload, GetClaimAlertsForCollectionSuccessResponse, GetClaimAttemptStatusSuccessResponse, GetClaimsPayload, GetClaimsSuccessResponse, GetPluginPayload, GetPluginSuccessResponse, GetReservedClaimCodesPayload, GetReservedClaimCodesSuccessResponse, GetSearchPayload, GetSearchSuccessResponse, GetAttestationPayload, GetAttestationSuccessResponse, GetSignInChallengePayload, GetSignInChallengeSuccessResponse, GetStatusSuccessResponse, GetTokensFromFaucetPayload, GetTokensFromFaucetSuccessResponse, OauthAuthorizePayload, OauthAuthorizeSuccessResponse, OauthRevokePayload, OauthRevokeSuccessResponse, OauthTokenPayload, OauthTokenSuccessResponse, SendClaimAlertsPayload, SendClaimAlertsSuccessResponse, SignOutPayload, SignOutSuccessResponse, SimulateClaimPayload, SimulateClaimSuccessResponse, SimulateTxPayload, SimulateTxSuccessResponse, UpdateAccountInfoPayload, UpdateAccountInfoSuccessResponse, UpdateDeveloperAppPayload, UpdateDeveloperAppSuccessResponse, UpdateClaimPayload, UpdateClaimSuccessResponse, UpdateAttestationPayload, UpdateAttestationSuccessResponse, VerifySignInPayload, VerifySignInSuccessResponse, DeletePluginPayload, DeletePluginSuccessResponse, UpdatePluginPayload, UpdatePluginSuccessResponse, CreateAttestationProofPayload, CreateAttestationProofSuccessResponse, DeleteAttestationProofPayload, DeleteAttestationProofSuccessResponse, GetAttestationProofPayload, GetAttestationProofSuccessResponse } from './requests/requests';
9
+ import { GetMapsPayload, GetMapsSuccessResponse } from './requests/maps';
10
+ import { AddApprovalDetailsToOffChainStoragePayload, AddApprovalDetailsToOffChainStorageSuccessResponse, AddBalancesToOffChainStoragePayload, AddBalancesToOffChainStorageSuccessResponse, AddReviewPayload, AddReviewSuccessResponse, AddToIpfsPayload, AddToIpfsSuccessResponse, BroadcastTxPayload, BroadcastTxSuccessResponse, CheckSignInStatusPayload, CheckSignInStatusSuccessResponse, CompleteClaimPayload, CompleteClaimSuccessResponse, CreateAttestationPayload, CreateAttestationProofPayload, CreateAttestationProofSuccessResponse, CreateAttestationSuccessResponse, CreateClaimPayload, CreateClaimSuccessResponse, CreateDeveloperAppPayload, CreateDeveloperAppSuccessResponse, CreatePluginPayload, CreatePluginSuccessResponse, CreateSIWBBRequestPayload, CreateSIWBBRequestSuccessResponse, DeleteAttestationPayload, DeleteAttestationProofPayload, DeleteAttestationProofSuccessResponse, DeleteAttestationSuccessResponse, DeleteClaimPayload, DeleteClaimSuccessResponse, DeleteDeveloperAppPayload, DeleteDeveloperAppSuccessResponse, DeletePluginPayload, DeletePluginSuccessResponse, DeleteReviewPayload, DeleteReviewSuccessResponse, DeleteSIWBBRequestPayload, DeleteSIWBBRequestSuccessResponse, ExchangeSIWBBAuthorizationCodePayload, ExchangeSIWBBAuthorizationCodeSuccessResponse, FetchMetadataDirectlyPayload, FetchMetadataDirectlySuccessResponse, GenerateAppleWalletPassPayload, GenerateAppleWalletPassSuccessResponse, GenericBlockinVerifyPayload, GenericBlockinVerifySuccessResponse, GenericVerifyAssetsPayload, GenericVerifyAssetsSuccessResponse, GetActiveAuthorizationsPayload, GetActiveAuthorizationsSuccessResponse, GetAttestationPayload, GetAttestationProofPayload, GetAttestationProofSuccessResponse, GetAttestationSuccessResponse, GetBrowseCollectionsPayload, GetBrowseCollectionsSuccessResponse, GetClaimAlertsForCollectionPayload, GetClaimAlertsForCollectionSuccessResponse, GetClaimAttemptStatusSuccessResponse, GetClaimsPayload, GetClaimsSuccessResponse, GetDeveloperAppPayload, GetDeveloperAppSuccessResponse, GetPluginPayload, GetPluginSuccessResponse, GetReservedClaimCodesPayload, GetReservedClaimCodesSuccessResponse, GetSIWBBRequestsForDeveloperAppPayload, GetSIWBBRequestsForDeveloperAppSuccessResponse, GetSearchPayload, GetSearchSuccessResponse, GetSignInChallengePayload, GetSignInChallengeSuccessResponse, GetStatusSuccessResponse, GetTokensFromFaucetPayload, GetTokensFromFaucetSuccessResponse, OauthRevokePayload, OauthRevokeSuccessResponse, RotateSIWBBRequestPayload, RotateSIWBBRequestSuccessResponse, SendClaimAlertsPayload, SendClaimAlertsSuccessResponse, SignOutPayload, SignOutSuccessResponse, SimulateClaimPayload, SimulateClaimSuccessResponse, SimulateTxPayload, SimulateTxSuccessResponse, UpdateAccountInfoPayload, UpdateAccountInfoSuccessResponse, UpdateAttestationPayload, UpdateAttestationSuccessResponse, UpdateClaimPayload, UpdateClaimSuccessResponse, UpdateDeveloperAppPayload, UpdateDeveloperAppSuccessResponse, UpdatePluginPayload, UpdatePluginSuccessResponse, VerifySignInPayload, VerifySignInSuccessResponse } from './requests/requests';
11
11
  export declare class BitBadgesAPI<T extends NumberType> extends BaseBitBadgesApi<T> {
12
12
  constructor(apiDetails: iBitBadgesApi<T>);
13
13
  getStatus(): Promise<GetStatusSuccessResponse<T>>;
@@ -55,8 +55,6 @@ export declare class BitBadgesAPI<T extends NumberType> extends BaseBitBadgesApi
55
55
  createClaim(payload: CreateClaimPayload): Promise<CreateClaimSuccessResponse>;
56
56
  deleteClaim(payload: DeleteClaimPayload): Promise<DeleteClaimSuccessResponse>;
57
57
  updateClaim(payload: UpdateClaimPayload): Promise<UpdateClaimSuccessResponse>;
58
- getOauthAuthorizationCode(payload: OauthAuthorizePayload): Promise<OauthAuthorizeSuccessResponse>;
59
- getOauthAccessToken(payload: OauthTokenPayload): Promise<OauthTokenSuccessResponse>;
60
58
  revokeOauthAuthorization(payload: OauthRevokePayload): Promise<OauthRevokeSuccessResponse>;
61
59
  addBalancesToOffChainStorage(payload: AddBalancesToOffChainStoragePayload): Promise<AddBalancesToOffChainStorageSuccessResponse>;
62
60
  getAttestationProof(payload: GetAttestationProofPayload): Promise<GetAttestationProofSuccessResponse<T>>;
@@ -1 +1 @@
1
- {"version":3,"file":"BitBadgesApi.d.ts","sourceRoot":"","sources":["../../src/api-indexer/BitBadgesApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAI1D,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACnC,OAAO,KAAK,EACV,yBAAyB,EACzB,iCAAiC,EACjC,yBAAyB,EACzB,iCAAiC,EACjC,sBAAsB,EACtB,8BAA8B,EAC9B,yBAAyB,EACzB,iCAAiC,EAClC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,+BAA+B,EAAE,MAAM,qBAAqB,CAAC;AAEpJ,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,KAAK,EACV,+BAA+B,EAC/B,uCAAuC,EACvC,wBAAwB,EACxB,uBAAuB,EACvB,+BAA+B,EAC/B,+BAA+B,EAC/B,uCAAuC,EACvC,qBAAqB,EACrB,6BAA6B,EAC7B,wBAAwB,EACxB,gCAAgC,EAChC,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,EAE7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAA2B,MAAM,iBAAiB,CAAC;AAClG,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EACL,0CAA0C,EAC1C,kDAAkD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AG,OAAO,CAAC,oCAAoC,CAAC,CAAC,CAAC,CAAC;IA+B9G,mBAAmB,CAAC,OAAO,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,kCAAkC,CAAC;IAgCtG,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IA6BvE,mCAAmC,CAC9C,OAAO,EAAE,0CAA0C,GAClD,OAAO,CAAC,kDAAkD,CAAC;IAkCjD,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAAC,CAAC,CAAC;IAgCrG,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAuBhF,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAchF;AAED,eAAe,YAAY,CAAC"}
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.BitBadgesAdminAPI = exports.BitBadgesAPI = void 0;
7
7
  const joi_1 = __importDefault(require("joi"));
8
8
  const BitBadgesCollection_1 = require("./BitBadgesCollection");
9
+ const typia_1 = __importDefault(require("typia"));
9
10
  const BitBadgesAddressList_1 = require("./BitBadgesAddressList");
10
11
  const BitBadgesUserInfo_1 = require("./BitBadgesUserInfo");
11
12
  const base_1 = require("./base");
12
- const maps_1 = require("./requests/maps");
13
13
  const collections_1 = require("./requests/collections");
14
+ const maps_1 = require("./requests/maps");
14
15
  const requests_1 = require("./requests/requests");
15
16
  const routes_1 = require("./requests/routes");
16
- const typia_1 = __importDefault(require("typia"));
17
17
  class BitBadgesAPI extends base_1.BaseBitBadgesApi {
18
18
  constructor(apiDetails) {
19
19
  super(apiDetails);
@@ -4443,161 +4443,6 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
4443
4443
  return Promise.reject(error);
4444
4444
  }
4445
4445
  }
4446
- async getOauthAuthorizationCode(payload) {
4447
- try {
4448
- const validateRes = (input => {
4449
- const errors = [];
4450
- const __is = input => {
4451
- const $io0 = input => "string" === typeof input.response_type && (Array.isArray(input.scopes) && input.scopes.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && "string" === typeof input.client_id && "string" === typeof input.redirect_uri && (undefined === input.state || "string" === typeof input.state);
4452
- const $io1 = input => "string" === typeof input.scopeName && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io2(input.options));
4453
- const $io2 = input => true;
4454
- return "object" === typeof input && null !== input && $io0(input);
4455
- };
4456
- if (false === __is(input)) {
4457
- const $report = typia_1.default.validate.report(errors);
4458
- ((input, _path, _exceptionable = true) => {
4459
- const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.response_type || $report(_exceptionable, {
4460
- path: _path + ".response_type",
4461
- expected: "string",
4462
- value: input.response_type
4463
- }), (Array.isArray(input.scopes) || $report(_exceptionable, {
4464
- path: _path + ".scopes",
4465
- expected: "Array<OAuthScopeDetails>",
4466
- value: input.scopes
4467
- })) && input.scopes.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4468
- path: _path + ".scopes[" + _index1 + "]",
4469
- expected: "OAuthScopeDetails",
4470
- value: elem
4471
- })) && $vo1(elem, _path + ".scopes[" + _index1 + "]", true && _exceptionable) || $report(_exceptionable, {
4472
- path: _path + ".scopes[" + _index1 + "]",
4473
- expected: "OAuthScopeDetails",
4474
- value: elem
4475
- })).every(flag => flag) || $report(_exceptionable, {
4476
- path: _path + ".scopes",
4477
- expected: "Array<OAuthScopeDetails>",
4478
- value: input.scopes
4479
- }), "string" === typeof input.client_id || $report(_exceptionable, {
4480
- path: _path + ".client_id",
4481
- expected: "string",
4482
- value: input.client_id
4483
- }), "string" === typeof input.redirect_uri || $report(_exceptionable, {
4484
- path: _path + ".redirect_uri",
4485
- expected: "string",
4486
- value: input.redirect_uri
4487
- }), undefined === input.state || "string" === typeof input.state || $report(_exceptionable, {
4488
- path: _path + ".state",
4489
- expected: "(string | undefined)",
4490
- value: input.state
4491
- })].every(flag => flag);
4492
- const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.scopeName || $report(_exceptionable, {
4493
- path: _path + ".scopeName",
4494
- expected: "string",
4495
- value: input.scopeName
4496
- }), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || $report(_exceptionable, {
4497
- path: _path + ".options",
4498
- expected: "(object | undefined)",
4499
- value: input.options
4500
- })) && $vo2(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
4501
- path: _path + ".options",
4502
- expected: "(object | undefined)",
4503
- value: input.options
4504
- })].every(flag => flag);
4505
- const $vo2 = (input, _path, _exceptionable = true) => true;
4506
- return ("object" === typeof input && null !== input || $report(true, {
4507
- path: _path + "",
4508
- expected: "OauthAuthorizePayload",
4509
- value: input
4510
- })) && $vo0(input, _path + "", true) || $report(true, {
4511
- path: _path + "",
4512
- expected: "OauthAuthorizePayload",
4513
- value: input
4514
- });
4515
- })(input, "$input", true);
4516
- }
4517
- const success = 0 === errors.length;
4518
- return {
4519
- success,
4520
- errors,
4521
- data: success ? input : undefined
4522
- };
4523
- })(payload ?? {});
4524
- if (!validateRes.success) {
4525
- throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
4526
- }
4527
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.OauthAuthorizeRoute()}`, payload);
4528
- console.log(response.data);
4529
- return new requests_1.OauthAuthorizeSuccessResponse(response.data);
4530
- }
4531
- catch (error) {
4532
- await this.handleApiError(error);
4533
- return Promise.reject(error);
4534
- }
4535
- }
4536
- async getOauthAccessToken(payload) {
4537
- try {
4538
- const validateRes = (input => {
4539
- const errors = [];
4540
- const __is = input => {
4541
- const $io0 = input => "string" === typeof input.grant_type && "string" === typeof input.client_id && "string" === typeof input.client_secret && (undefined === input.code || "string" === typeof input.code) && (undefined === input.redirect_uri || "string" === typeof input.redirect_uri) && (undefined === input.refresh_token || "string" === typeof input.refresh_token);
4542
- return "object" === typeof input && null !== input && $io0(input);
4543
- };
4544
- if (false === __is(input)) {
4545
- const $report = typia_1.default.validate.report(errors);
4546
- ((input, _path, _exceptionable = true) => {
4547
- const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.grant_type || $report(_exceptionable, {
4548
- path: _path + ".grant_type",
4549
- expected: "string",
4550
- value: input.grant_type
4551
- }), "string" === typeof input.client_id || $report(_exceptionable, {
4552
- path: _path + ".client_id",
4553
- expected: "string",
4554
- value: input.client_id
4555
- }), "string" === typeof input.client_secret || $report(_exceptionable, {
4556
- path: _path + ".client_secret",
4557
- expected: "string",
4558
- value: input.client_secret
4559
- }), undefined === input.code || "string" === typeof input.code || $report(_exceptionable, {
4560
- path: _path + ".code",
4561
- expected: "(string | undefined)",
4562
- value: input.code
4563
- }), undefined === input.redirect_uri || "string" === typeof input.redirect_uri || $report(_exceptionable, {
4564
- path: _path + ".redirect_uri",
4565
- expected: "(string | undefined)",
4566
- value: input.redirect_uri
4567
- }), undefined === input.refresh_token || "string" === typeof input.refresh_token || $report(_exceptionable, {
4568
- path: _path + ".refresh_token",
4569
- expected: "(string | undefined)",
4570
- value: input.refresh_token
4571
- })].every(flag => flag);
4572
- return ("object" === typeof input && null !== input || $report(true, {
4573
- path: _path + "",
4574
- expected: "OauthTokenPayload",
4575
- value: input
4576
- })) && $vo0(input, _path + "", true) || $report(true, {
4577
- path: _path + "",
4578
- expected: "OauthTokenPayload",
4579
- value: input
4580
- });
4581
- })(input, "$input", true);
4582
- }
4583
- const success = 0 === errors.length;
4584
- return {
4585
- success,
4586
- errors,
4587
- data: success ? input : undefined
4588
- };
4589
- })(payload ?? {});
4590
- if (!validateRes.success) {
4591
- throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
4592
- }
4593
- const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.OauthTokenRoute()}`, payload);
4594
- return new requests_1.OauthTokenSuccessResponse(response.data);
4595
- }
4596
- catch (error) {
4597
- await this.handleApiError(error);
4598
- return Promise.reject(error);
4599
- }
4600
- }
4601
4446
  async revokeOauthAuthorization(payload) {
4602
4447
  try {
4603
4448
  const validateRes = (input => {
@@ -6193,23 +6038,23 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6193
6038
  const errors = [];
6194
6039
  const __is = input => {
6195
6040
  const $io0 = input => undefined === input.contents || Array.isArray(input.contents) && input.contents.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
6196
- const $io1 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io3(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
6197
- const $io2 = 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);
6198
- const $io3 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io4(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io5(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
6199
- const $io4 = input => Object.keys(input).every(key => {
6041
+ const $io1 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
6042
+ const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
6043
+ const $io3 = input => Object.keys(input).every(key => {
6200
6044
  const value = input[key];
6201
6045
  if (undefined === value)
6202
6046
  return true;
6203
6047
  return "string" === typeof value;
6204
6048
  });
6205
- const $io5 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
6206
- const $io6 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
6207
- const $io7 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io3(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
6049
+ const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
6050
+ const $io5 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
6051
+ const $io6 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
6052
+ 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);
6208
6053
  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);
6209
6054
  const $io9 = input => true;
6210
6055
  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);
6211
- const $io11 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@885"] && Object.keys(input).every(key => {
6212
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@885"].some(prop => key === prop))
6056
+ 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@155"] && Object.keys(input).every(key => {
6057
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@155"].some(prop => key === prop))
6213
6058
  return true;
6214
6059
  const value = input[key];
6215
6060
  if (undefined === value)
@@ -6219,14 +6064,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6219
6064
  return true;
6220
6065
  });
6221
6066
  const $iu0 = input => (() => {
6222
- if (undefined !== input.badgeIds)
6223
- return $io1(input);
6224
- else if (undefined !== input.name)
6225
- return $io3(input);
6067
+ if (undefined !== input.name)
6068
+ return $io2(input);
6069
+ else if (undefined !== input.badgeIds)
6070
+ return $io6(input);
6226
6071
  else if (undefined !== input.leaves)
6227
6072
  return $io8(input);
6228
6073
  else
6229
- return $io7(input);
6074
+ return $io1(input);
6230
6075
  })();
6231
6076
  return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
6232
6077
  };
@@ -6236,7 +6081,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6236
6081
  const $join = typia_1.default.validate.join;
6237
6082
  const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
6238
6083
  path: _path + ".contents",
6239
- expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6084
+ expected: "(Array<iCollectionMetadataDetails<NumberType> | iMetadata<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6240
6085
  value: input.contents
6241
6086
  })) && input.contents.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6242
6087
  path: _path + ".contents[" + _index1 + "]",
@@ -6248,30 +6093,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6248
6093
  value: elem
6249
6094
  })).every(flag => flag) || $report(_exceptionable, {
6250
6095
  path: _path + ".contents",
6251
- expected: "(Array<iBadgeMetadataDetails<NumberType> | iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6096
+ expected: "(Array<iCollectionMetadataDetails<NumberType> | iMetadata<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
6252
6097
  value: input.contents
6253
6098
  })].every(flag => flag);
6254
- const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6255
- path: _path + ".badgeIds",
6256
- expected: "Array<iUintRange<NumberType>>",
6257
- value: input.badgeIds
6258
- })) && input.badgeIds.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6259
- path: _path + ".badgeIds[" + _index2 + "]",
6260
- expected: "iUintRange<NumberType>",
6261
- value: elem
6262
- })) && $vo2(elem, _path + ".badgeIds[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
6263
- path: _path + ".badgeIds[" + _index2 + "]",
6264
- expected: "iUintRange<NumberType>",
6265
- value: elem
6266
- })).every(flag => flag) || $report(_exceptionable, {
6267
- path: _path + ".badgeIds",
6268
- expected: "Array<iUintRange<NumberType>>",
6269
- value: input.badgeIds
6270
- }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6099
+ const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6271
6100
  path: _path + ".metadata",
6272
6101
  expected: "(iMetadata<NumberType> | undefined)",
6273
6102
  value: input.metadata
6274
- })) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6103
+ })) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6275
6104
  path: _path + ".metadata",
6276
6105
  expected: "(iMetadata<NumberType> | undefined)",
6277
6106
  value: input.metadata
@@ -6292,16 +6121,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6292
6121
  expected: "(boolean | undefined)",
6293
6122
  value: input.toUploadToIpfs
6294
6123
  })].every(flag => flag);
6295
- const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6296
- path: _path + ".start",
6297
- expected: "(bigint | number | string)",
6298
- value: input.start
6299
- }), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
6300
- path: _path + ".end",
6301
- expected: "(bigint | number | string)",
6302
- value: input.end
6303
- })].every(flag => flag);
6304
- const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
6124
+ const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
6305
6125
  path: _path + ".name",
6306
6126
  expected: "string",
6307
6127
  value: input.name
@@ -6329,8 +6149,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6329
6149
  path: _path + ".tags",
6330
6150
  expected: "(Array<string> | undefined)",
6331
6151
  value: input.tags
6332
- })) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
6333
- path: _path + ".tags[" + _index3 + "]",
6152
+ })) && input.tags.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
6153
+ path: _path + ".tags[" + _index2 + "]",
6334
6154
  expected: "string",
6335
6155
  value: elem
6336
6156
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6341,7 +6161,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6341
6161
  path: _path + ".socials",
6342
6162
  expected: "(__type | undefined)",
6343
6163
  value: input.socials
6344
- })) && $vo4(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
6164
+ })) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
6345
6165
  path: _path + ".socials",
6346
6166
  expected: "(__type | undefined)",
6347
6167
  value: input.socials
@@ -6349,7 +6169,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6349
6169
  path: _path + ".offChainTransferabilityInfo",
6350
6170
  expected: "(__type.o1 | undefined)",
6351
6171
  value: input.offChainTransferabilityInfo
6352
- })) && $vo5(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
6172
+ })) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
6353
6173
  path: _path + ".offChainTransferabilityInfo",
6354
6174
  expected: "(__type.o1 | undefined)",
6355
6175
  value: input.offChainTransferabilityInfo
@@ -6357,12 +6177,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6357
6177
  path: _path + ".attributes",
6358
6178
  expected: "(Array<__type> | undefined)",
6359
6179
  value: input.attributes
6360
- })) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6361
- path: _path + ".attributes[" + _index4 + "]",
6180
+ })) && input.attributes.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6181
+ path: _path + ".attributes[" + _index3 + "]",
6362
6182
  expected: "__type.o2",
6363
6183
  value: elem
6364
- })) && $vo6(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
6365
- path: _path + ".attributes[" + _index4 + "]",
6184
+ })) && $vo5(elem, _path + ".attributes[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
6185
+ path: _path + ".attributes[" + _index3 + "]",
6366
6186
  expected: "__type.o2",
6367
6187
  value: elem
6368
6188
  })).every(flag => flag) || $report(_exceptionable, {
@@ -6382,7 +6202,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6382
6202
  expected: "(boolean | undefined)",
6383
6203
  value: input._isUpdating
6384
6204
  })].every(flag => flag);
6385
- const $vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
6205
+ const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
6386
6206
  const value = input[key];
6387
6207
  if (undefined === value)
6388
6208
  return true;
@@ -6392,7 +6212,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6392
6212
  value: value
6393
6213
  });
6394
6214
  }).every(flag => flag)].every(flag => flag);
6395
- const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
6215
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
6396
6216
  path: _path + ".host",
6397
6217
  expected: "string",
6398
6218
  value: input.host
@@ -6401,7 +6221,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6401
6221
  expected: "string",
6402
6222
  value: input.assignMethod
6403
6223
  })].every(flag => flag);
6404
- const $vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
6224
+ const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
6405
6225
  path: _path + ".type",
6406
6226
  expected: "(\"date\" | \"url\" | undefined)",
6407
6227
  value: input.type
@@ -6414,11 +6234,27 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6414
6234
  expected: "(boolean | number | string)",
6415
6235
  value: input.value
6416
6236
  })].every(flag => flag);
6417
- const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6237
+ const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
6238
+ path: _path + ".badgeIds",
6239
+ expected: "Array<iUintRange<NumberType>>",
6240
+ value: input.badgeIds
6241
+ })) && input.badgeIds.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
6242
+ path: _path + ".badgeIds[" + _index4 + "]",
6243
+ expected: "iUintRange<NumberType>",
6244
+ value: elem
6245
+ })) && $vo7(elem, _path + ".badgeIds[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
6246
+ path: _path + ".badgeIds[" + _index4 + "]",
6247
+ expected: "iUintRange<NumberType>",
6248
+ value: elem
6249
+ })).every(flag => flag) || $report(_exceptionable, {
6250
+ path: _path + ".badgeIds",
6251
+ expected: "Array<iUintRange<NumberType>>",
6252
+ value: input.badgeIds
6253
+ }), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
6418
6254
  path: _path + ".metadata",
6419
6255
  expected: "(iMetadata<NumberType> | undefined)",
6420
6256
  value: input.metadata
6421
- })) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6257
+ })) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
6422
6258
  path: _path + ".metadata",
6423
6259
  expected: "(iMetadata<NumberType> | undefined)",
6424
6260
  value: input.metadata
@@ -6439,6 +6275,15 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6439
6275
  expected: "(boolean | undefined)",
6440
6276
  value: input.toUploadToIpfs
6441
6277
  })].every(flag => flag);
6278
+ const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
6279
+ path: _path + ".start",
6280
+ expected: "(bigint | number | string)",
6281
+ value: input.start
6282
+ }), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
6283
+ path: _path + ".end",
6284
+ expected: "(bigint | number | string)",
6285
+ value: input.end
6286
+ })].every(flag => flag);
6442
6287
  const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
6443
6288
  path: _path + ".leaves",
6444
6289
  expected: "Array<string>",
@@ -6562,12 +6407,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6562
6407
  path: _path + ".length",
6563
6408
  expected: "number",
6564
6409
  value: input.length
6565
- }), "Uint8Array" === input["__@toStringTag@885"] || $report(_exceptionable, {
6566
- path: _path + "[\"__@toStringTag@885\"]",
6410
+ }), "Uint8Array" === input["__@toStringTag@155"] || $report(_exceptionable, {
6411
+ path: _path + "[\"__@toStringTag@155\"]",
6567
6412
  expected: "\"Uint8Array\"",
6568
- value: input["__@toStringTag@885"]
6413
+ value: input["__@toStringTag@155"]
6569
6414
  }), false === _exceptionable || Object.keys(input).map(key => {
6570
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@885"].some(prop => key === prop))
6415
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@155"].some(prop => key === prop))
6571
6416
  return true;
6572
6417
  const value = input[key];
6573
6418
  if (undefined === value)
@@ -6581,14 +6426,14 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6581
6426
  return true;
6582
6427
  }).every(flag => flag)].every(flag => flag);
6583
6428
  const $vu0 = (input, _path, _exceptionable = true) => (() => {
6584
- if (undefined !== input.badgeIds)
6585
- return $vo1(input, _path, true && _exceptionable);
6586
- else if (undefined !== input.name)
6587
- return $vo3(input, _path, true && _exceptionable);
6429
+ if (undefined !== input.name)
6430
+ return $vo2(input, _path, true && _exceptionable);
6431
+ else if (undefined !== input.badgeIds)
6432
+ return $vo6(input, _path, true && _exceptionable);
6588
6433
  else if (undefined !== input.leaves)
6589
6434
  return $vo8(input, _path, true && _exceptionable);
6590
6435
  else
6591
- return $vo7(input, _path, true && _exceptionable);
6436
+ return $vo1(input, _path, true && _exceptionable);
6592
6437
  })();
6593
6438
  return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
6594
6439
  path: _path + "",
@@ -6630,8 +6475,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6630
6475
  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);
6631
6476
  const $io4 = input => true;
6632
6477
  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);
6633
- const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@885"] && Object.keys(input).every(key => {
6634
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@885"].some(prop => key === prop))
6478
+ 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@155"] && Object.keys(input).every(key => {
6479
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@155"].some(prop => key === prop))
6635
6480
  return true;
6636
6481
  const value = input[key];
6637
6482
  if (undefined === value)
@@ -6845,12 +6690,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6845
6690
  path: _path + ".length",
6846
6691
  expected: "number",
6847
6692
  value: input.length
6848
- }), "Uint8Array" === input["__@toStringTag@885"] || $report(_exceptionable, {
6849
- path: _path + "[\"__@toStringTag@885\"]",
6693
+ }), "Uint8Array" === input["__@toStringTag@155"] || $report(_exceptionable, {
6694
+ path: _path + "[\"__@toStringTag@155\"]",
6850
6695
  expected: "\"Uint8Array\"",
6851
- value: input["__@toStringTag@885"]
6696
+ value: input["__@toStringTag@155"]
6852
6697
  }), false === _exceptionable || Object.keys(input).map(key => {
6853
- if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@885"].some(prop => key === prop))
6698
+ if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@155"].some(prop => key === prop))
6854
6699
  return true;
6855
6700
  const value = input[key];
6856
6701
  if (undefined === value)