bitbadgesjs-sdk 0.3.63 → 0.3.64
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.
- package/dist/api-indexer/BitBadgesApi.d.ts +4 -1
- package/dist/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/api-indexer/BitBadgesApi.js +317 -14
- package/dist/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/api-indexer/BitBadgesUserInfo.d.ts +8 -3
- package/dist/api-indexer/BitBadgesUserInfo.d.ts.map +1 -1
- package/dist/api-indexer/BitBadgesUserInfo.js +18 -3
- package/dist/api-indexer/BitBadgesUserInfo.js.map +1 -1
- package/dist/api-indexer/docs/docs.d.ts +31 -1
- package/dist/api-indexer/docs/docs.d.ts.map +1 -1
- package/dist/api-indexer/docs/docs.js +46 -2
- package/dist/api-indexer/docs/docs.js.map +1 -1
- package/dist/api-indexer/docs/interfaces.d.ts +4 -1
- package/dist/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/api-indexer/requests/requests.d.ts +26 -2
- package/dist/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/api-indexer/requests/requests.js +15 -1
- package/dist/api-indexer/requests/requests.js.map +1 -1
- package/dist/api-indexer/requests/routes.d.ts +2 -0
- package/dist/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/api-indexer/requests/routes.js +2 -0
- package/dist/api-indexer/requests/routes.js.map +1 -1
- package/dist/chain-drivers/verifySig.d.ts +1 -1
- package/dist/core/secrets.d.ts +7 -3
- package/dist/core/secrets.d.ts.map +1 -1
- package/dist/core/secrets.js +11 -1
- package/dist/core/secrets.js.map +1 -1
- package/dist/interfaces/badges/core.d.ts +4 -2
- package/dist/interfaces/badges/core.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ 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
8
|
import { GetMapsPayload, GetMapsSuccessResponse } from './requests/maps';
|
|
9
9
|
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, GetAndVerifySIWBBRequestPayload, GetAndVerifySIWBBRequestSuccessResponse, GetAndVerifySIWBBRequestsForDeveloperAppPayload, GetAndVerifySIWBBRequestsForDeveloperAppSuccessResponse, 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 } from './requests/requests';
|
|
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, GetAndVerifySIWBBRequestPayload, GetAndVerifySIWBBRequestSuccessResponse, GetAndVerifySIWBBRequestsForDeveloperAppPayload, GetAndVerifySIWBBRequestsForDeveloperAppSuccessResponse, 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';
|
|
11
11
|
export declare class BitBadgesAPI<T extends NumberType> extends BaseBitBadgesApi<T> {
|
|
12
12
|
constructor(apiDetails: iBitBadgesApi<T>);
|
|
13
13
|
getStatus(): Promise<GetStatusSuccessResponse<T>>;
|
|
@@ -59,6 +59,9 @@ export declare class BitBadgesAPI<T extends NumberType> extends BaseBitBadgesApi
|
|
|
59
59
|
getOauthAccessToken(payload: OauthTokenPayload): Promise<OauthTokenSuccessResponse>;
|
|
60
60
|
revokeOauthAuthorization(payload: OauthRevokePayload): Promise<OauthRevokeSuccessResponse>;
|
|
61
61
|
addBalancesToOffChainStorage(payload: AddBalancesToOffChainStoragePayload): Promise<AddBalancesToOffChainStorageSuccessResponse>;
|
|
62
|
+
getAttestationProof(payload: GetAttestationProofPayload): Promise<GetAttestationProofSuccessResponse<T>>;
|
|
63
|
+
createAttestationProof(payload: CreateAttestationProofPayload): Promise<CreateAttestationProofSuccessResponse>;
|
|
64
|
+
deleteAttestationProof(payload: DeleteAttestationProofPayload): Promise<DeleteAttestationProofSuccessResponse>;
|
|
62
65
|
updateUserSeenActivity(): Promise<UpdateAccountInfoSuccessResponse>;
|
|
63
66
|
}
|
|
64
67
|
export declare class BitBadgesAdminAPI<T extends NumberType> extends BitBadgesAP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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"}
|
|
@@ -1541,7 +1541,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
1541
1541
|
const $io4 = input => "string" === typeof input.chain && ("string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (Array.isArray(input.assetIds) && input.assetIds.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io5(elem)))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && ("object" === typeof input.mustOwnAmounts && null !== input.mustOwnAmounts && $io5(input.mustOwnAmounts)) && (undefined === input.additionalCriteria || "string" === typeof input.additionalCriteria);
|
|
1542
1542
|
const $io5 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
|
|
1543
1543
|
const $io6 = input => undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification;
|
|
1544
|
-
const $io7 = input => (undefined === input.entropies || Array.isArray(input.entropies) && input.entropies.every(elem => "string" === typeof elem)) && (undefined === input.updateHistory || Array.isArray(input.updateHistory) && input.updateHistory.every(elem => "object" === typeof elem && null !== elem && $io8(elem))) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.createdBy && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io9(input.proofOfIssuance)) && ("bbs" === input.scheme || "standard" === input.scheme) && (Array.isArray(input.attestationMessages) && input.attestationMessages.every(elem => "string" === typeof elem)) && ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io10(input.dataIntegrityProof)) && "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.anchors || Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io11(elem)));
|
|
1544
|
+
const $io7 = input => (undefined === input.entropies || Array.isArray(input.entropies) && input.entropies.every(elem => "string" === typeof elem)) && (undefined === input.updateHistory || Array.isArray(input.updateHistory) && input.updateHistory.every(elem => "object" === typeof elem && null !== elem && $io8(elem))) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.createdBy && ("string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt) && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io9(input.proofOfIssuance)) && ("bbs" === input.scheme || "standard" === input.scheme) && (Array.isArray(input.attestationMessages) && input.attestationMessages.every(elem => "string" === typeof elem)) && ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io10(input.dataIntegrityProof)) && "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.anchors || Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io11(elem)));
|
|
1545
1545
|
const $io8 = input => "string" === typeof input.txHash && ("string" === typeof input.block || "number" === typeof input.block || "bigint" === typeof input.block) && ("string" === typeof input.blockTimestamp || "number" === typeof input.blockTimestamp || "bigint" === typeof input.blockTimestamp) && ("string" === typeof input.timestamp || "number" === typeof input.timestamp || "bigint" === typeof input.timestamp);
|
|
1546
1546
|
const $io9 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
|
|
1547
1547
|
const $io10 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
|
|
@@ -1792,6 +1792,10 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
1792
1792
|
path: _path + ".createdBy",
|
|
1793
1793
|
expected: "string",
|
|
1794
1794
|
value: input.createdBy
|
|
1795
|
+
}), "string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt || $report(_exceptionable, {
|
|
1796
|
+
path: _path + ".createdAt",
|
|
1797
|
+
expected: "(bigint | number | string)",
|
|
1798
|
+
value: input.createdAt
|
|
1795
1799
|
}), ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance || $report(_exceptionable, {
|
|
1796
1800
|
path: _path + ".proofOfIssuance",
|
|
1797
1801
|
expected: "__type.o1",
|
|
@@ -2055,7 +2059,7 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
2055
2059
|
const $io7 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
|
|
2056
2060
|
const $io8 = input => undefined === input.numMatchesForVerification || "string" === typeof input.numMatchesForVerification || "number" === typeof input.numMatchesForVerification || "bigint" === typeof input.numMatchesForVerification;
|
|
2057
2061
|
const $io9 = input => true;
|
|
2058
|
-
const $io10 = input => "string" === typeof input.createdBy && ("bbs" === input.scheme || "standard" === input.scheme) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && (Array.isArray(input.attestationMessages) && input.attestationMessages.every(elem => "string" === typeof elem)) && ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io11(input.dataIntegrityProof)) && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io12(input.proofOfIssuance)) && "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.entropies || Array.isArray(input.entropies) && input.entropies.every(elem => "string" === typeof elem)) && (undefined === input.updateHistory || Array.isArray(input.updateHistory) && input.updateHistory.every(elem => "object" === typeof elem && null !== elem && $io13(elem))) && (undefined === input.anchors || Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io14(elem)));
|
|
2062
|
+
const $io10 = input => "string" === typeof input.createdBy && ("string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt) && ("bbs" === input.scheme || "standard" === input.scheme) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && (Array.isArray(input.attestationMessages) && input.attestationMessages.every(elem => "string" === typeof elem)) && ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io11(input.dataIntegrityProof)) && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io12(input.proofOfIssuance)) && "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.entropies || Array.isArray(input.entropies) && input.entropies.every(elem => "string" === typeof elem)) && (undefined === input.updateHistory || Array.isArray(input.updateHistory) && input.updateHistory.every(elem => "object" === typeof elem && null !== elem && $io13(elem))) && (undefined === input.anchors || Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io14(elem)));
|
|
2059
2063
|
const $io11 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
|
|
2060
2064
|
const $io12 = input => "string" === typeof input.message && "string" === typeof input.signer && "string" === typeof input.signature && (undefined === input.publicKey || "string" === typeof input.publicKey);
|
|
2061
2065
|
const $io13 = input => "string" === typeof input.txHash && ("string" === typeof input.block || "number" === typeof input.block || "bigint" === typeof input.block) && ("string" === typeof input.blockTimestamp || "number" === typeof input.blockTimestamp || "bigint" === typeof input.blockTimestamp) && ("string" === typeof input.timestamp || "number" === typeof input.timestamp || "bigint" === typeof input.timestamp);
|
|
@@ -2353,6 +2357,10 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
2353
2357
|
path: _path + ".createdBy",
|
|
2354
2358
|
expected: "string",
|
|
2355
2359
|
value: input.createdBy
|
|
2360
|
+
}), "string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt || $report(_exceptionable, {
|
|
2361
|
+
path: _path + ".createdAt",
|
|
2362
|
+
expected: "(bigint | number | string)",
|
|
2363
|
+
value: input.createdAt
|
|
2356
2364
|
}), "bbs" === input.scheme || "standard" === input.scheme || $report(_exceptionable, {
|
|
2357
2365
|
path: _path + ".scheme",
|
|
2358
2366
|
expected: "(\"bbs\" | \"standard\")",
|
|
@@ -4945,6 +4953,301 @@ class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
|
4945
4953
|
return Promise.reject(error);
|
|
4946
4954
|
}
|
|
4947
4955
|
}
|
|
4956
|
+
async getAttestationProof(payload) {
|
|
4957
|
+
try {
|
|
4958
|
+
const validateRes = (input => {
|
|
4959
|
+
const errors = [];
|
|
4960
|
+
const __is = input => {
|
|
4961
|
+
return "object" === typeof input && null !== input && "string" === typeof input.id;
|
|
4962
|
+
};
|
|
4963
|
+
if (false === __is(input)) {
|
|
4964
|
+
const $report = typia_1.default.validate.report(errors);
|
|
4965
|
+
((input, _path, _exceptionable = true) => {
|
|
4966
|
+
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || $report(_exceptionable, {
|
|
4967
|
+
path: _path + ".id",
|
|
4968
|
+
expected: "string",
|
|
4969
|
+
value: input.id
|
|
4970
|
+
})].every(flag => flag);
|
|
4971
|
+
return ("object" === typeof input && null !== input || $report(true, {
|
|
4972
|
+
path: _path + "",
|
|
4973
|
+
expected: "GetAttestationProofPayload",
|
|
4974
|
+
value: input
|
|
4975
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
4976
|
+
path: _path + "",
|
|
4977
|
+
expected: "GetAttestationProofPayload",
|
|
4978
|
+
value: input
|
|
4979
|
+
});
|
|
4980
|
+
})(input, "$input", true);
|
|
4981
|
+
}
|
|
4982
|
+
const success = 0 === errors.length;
|
|
4983
|
+
return {
|
|
4984
|
+
success,
|
|
4985
|
+
errors,
|
|
4986
|
+
data: success ? input : undefined
|
|
4987
|
+
};
|
|
4988
|
+
})(payload ?? {});
|
|
4989
|
+
if (!validateRes.success) {
|
|
4990
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
4991
|
+
}
|
|
4992
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetAttestationProofsRoute()}`, payload);
|
|
4993
|
+
return new requests_1.GetAttestationProofSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
4994
|
+
}
|
|
4995
|
+
catch (error) {
|
|
4996
|
+
await this.handleApiError(error);
|
|
4997
|
+
return Promise.reject(error);
|
|
4998
|
+
}
|
|
4999
|
+
}
|
|
5000
|
+
async createAttestationProof(payload) {
|
|
5001
|
+
try {
|
|
5002
|
+
const validateRes = (input => {
|
|
5003
|
+
const errors = [];
|
|
5004
|
+
const __is = input => {
|
|
5005
|
+
const $io0 = input => "boolean" === typeof input.displayOnProfile && (undefined === input.entropies || Array.isArray(input.entropies) && input.entropies.every(elem => "string" === typeof elem)) && (undefined === input.updateHistory || Array.isArray(input.updateHistory) && input.updateHistory.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && ("plaintext" === input.messageFormat || "json" === input.messageFormat) && "string" === typeof input.createdBy && ("string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt) && ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance && $io2(input.proofOfIssuance)) && ("bbs" === input.scheme || "standard" === input.scheme) && (Array.isArray(input.attestationMessages) && input.attestationMessages.every(elem => "string" === typeof elem)) && ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof && $io3(input.dataIntegrityProof)) && "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.anchors || Array.isArray(input.anchors) && input.anchors.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io4(elem)));
|
|
5006
|
+
const $io1 = input => "string" === typeof input.txHash && ("string" === typeof input.block || "number" === typeof input.block || "bigint" === typeof input.block) && ("string" === typeof input.blockTimestamp || "number" === typeof input.blockTimestamp || "bigint" === typeof input.blockTimestamp) && ("string" === typeof input.timestamp || "number" === typeof input.timestamp || "bigint" === typeof input.timestamp);
|
|
5007
|
+
const $io2 = input => "string" === typeof input.message && "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
|
|
5008
|
+
const $io3 = input => "string" === typeof input.signature && "string" === typeof input.signer && (undefined === input.publicKey || "string" === typeof input.publicKey);
|
|
5009
|
+
const $io4 = input => (undefined === input.txHash || "string" === typeof input.txHash) && (undefined === input.message || "string" === typeof input.message);
|
|
5010
|
+
return "object" === typeof input && null !== input && $io0(input);
|
|
5011
|
+
};
|
|
5012
|
+
if (false === __is(input)) {
|
|
5013
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5014
|
+
((input, _path, _exceptionable = true) => {
|
|
5015
|
+
const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.displayOnProfile || $report(_exceptionable, {
|
|
5016
|
+
path: _path + ".displayOnProfile",
|
|
5017
|
+
expected: "boolean",
|
|
5018
|
+
value: input.displayOnProfile
|
|
5019
|
+
}), undefined === input.entropies || (Array.isArray(input.entropies) || $report(_exceptionable, {
|
|
5020
|
+
path: _path + ".entropies",
|
|
5021
|
+
expected: "(Array<string> | undefined)",
|
|
5022
|
+
value: input.entropies
|
|
5023
|
+
})) && input.entropies.map((elem, _index1) => "string" === typeof elem || $report(_exceptionable, {
|
|
5024
|
+
path: _path + ".entropies[" + _index1 + "]",
|
|
5025
|
+
expected: "string",
|
|
5026
|
+
value: elem
|
|
5027
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
5028
|
+
path: _path + ".entropies",
|
|
5029
|
+
expected: "(Array<string> | undefined)",
|
|
5030
|
+
value: input.entropies
|
|
5031
|
+
}), undefined === input.updateHistory || (Array.isArray(input.updateHistory) || $report(_exceptionable, {
|
|
5032
|
+
path: _path + ".updateHistory",
|
|
5033
|
+
expected: "(Array<iUpdateHistory<NumberType>> | undefined)",
|
|
5034
|
+
value: input.updateHistory
|
|
5035
|
+
})) && input.updateHistory.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
5036
|
+
path: _path + ".updateHistory[" + _index2 + "]",
|
|
5037
|
+
expected: "iUpdateHistory<NumberType>",
|
|
5038
|
+
value: elem
|
|
5039
|
+
})) && $vo1(elem, _path + ".updateHistory[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
5040
|
+
path: _path + ".updateHistory[" + _index2 + "]",
|
|
5041
|
+
expected: "iUpdateHistory<NumberType>",
|
|
5042
|
+
value: elem
|
|
5043
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
5044
|
+
path: _path + ".updateHistory",
|
|
5045
|
+
expected: "(Array<iUpdateHistory<NumberType>> | undefined)",
|
|
5046
|
+
value: input.updateHistory
|
|
5047
|
+
}), "plaintext" === input.messageFormat || "json" === input.messageFormat || $report(_exceptionable, {
|
|
5048
|
+
path: _path + ".messageFormat",
|
|
5049
|
+
expected: "(\"json\" | \"plaintext\")",
|
|
5050
|
+
value: input.messageFormat
|
|
5051
|
+
}), "string" === typeof input.createdBy || $report(_exceptionable, {
|
|
5052
|
+
path: _path + ".createdBy",
|
|
5053
|
+
expected: "string",
|
|
5054
|
+
value: input.createdBy
|
|
5055
|
+
}), "string" === typeof input.createdAt || "number" === typeof input.createdAt || "bigint" === typeof input.createdAt || $report(_exceptionable, {
|
|
5056
|
+
path: _path + ".createdAt",
|
|
5057
|
+
expected: "(bigint | number | string)",
|
|
5058
|
+
value: input.createdAt
|
|
5059
|
+
}), ("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance || $report(_exceptionable, {
|
|
5060
|
+
path: _path + ".proofOfIssuance",
|
|
5061
|
+
expected: "__type",
|
|
5062
|
+
value: input.proofOfIssuance
|
|
5063
|
+
})) && $vo2(input.proofOfIssuance, _path + ".proofOfIssuance", true && _exceptionable) || $report(_exceptionable, {
|
|
5064
|
+
path: _path + ".proofOfIssuance",
|
|
5065
|
+
expected: "__type",
|
|
5066
|
+
value: input.proofOfIssuance
|
|
5067
|
+
}), "bbs" === input.scheme || "standard" === input.scheme || $report(_exceptionable, {
|
|
5068
|
+
path: _path + ".scheme",
|
|
5069
|
+
expected: "(\"bbs\" | \"standard\")",
|
|
5070
|
+
value: input.scheme
|
|
5071
|
+
}), (Array.isArray(input.attestationMessages) || $report(_exceptionable, {
|
|
5072
|
+
path: _path + ".attestationMessages",
|
|
5073
|
+
expected: "Array<string>",
|
|
5074
|
+
value: input.attestationMessages
|
|
5075
|
+
})) && input.attestationMessages.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
5076
|
+
path: _path + ".attestationMessages[" + _index3 + "]",
|
|
5077
|
+
expected: "string",
|
|
5078
|
+
value: elem
|
|
5079
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
5080
|
+
path: _path + ".attestationMessages",
|
|
5081
|
+
expected: "Array<string>",
|
|
5082
|
+
value: input.attestationMessages
|
|
5083
|
+
}), ("object" === typeof input.dataIntegrityProof && null !== input.dataIntegrityProof || $report(_exceptionable, {
|
|
5084
|
+
path: _path + ".dataIntegrityProof",
|
|
5085
|
+
expected: "__type.o1",
|
|
5086
|
+
value: input.dataIntegrityProof
|
|
5087
|
+
})) && $vo3(input.dataIntegrityProof, _path + ".dataIntegrityProof", true && _exceptionable) || $report(_exceptionable, {
|
|
5088
|
+
path: _path + ".dataIntegrityProof",
|
|
5089
|
+
expected: "__type.o1",
|
|
5090
|
+
value: input.dataIntegrityProof
|
|
5091
|
+
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
5092
|
+
path: _path + ".name",
|
|
5093
|
+
expected: "string",
|
|
5094
|
+
value: input.name
|
|
5095
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
5096
|
+
path: _path + ".image",
|
|
5097
|
+
expected: "string",
|
|
5098
|
+
value: input.image
|
|
5099
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
5100
|
+
path: _path + ".description",
|
|
5101
|
+
expected: "string",
|
|
5102
|
+
value: input.description
|
|
5103
|
+
}), undefined === input.anchors || (Array.isArray(input.anchors) || $report(_exceptionable, {
|
|
5104
|
+
path: _path + ".anchors",
|
|
5105
|
+
expected: "(Array<__type> | undefined)",
|
|
5106
|
+
value: input.anchors
|
|
5107
|
+
})) && input.anchors.map((elem, _index4) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
|
|
5108
|
+
path: _path + ".anchors[" + _index4 + "]",
|
|
5109
|
+
expected: "__type.o2",
|
|
5110
|
+
value: elem
|
|
5111
|
+
})) && $vo4(elem, _path + ".anchors[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
5112
|
+
path: _path + ".anchors[" + _index4 + "]",
|
|
5113
|
+
expected: "__type.o2",
|
|
5114
|
+
value: elem
|
|
5115
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
5116
|
+
path: _path + ".anchors",
|
|
5117
|
+
expected: "(Array<__type> | undefined)",
|
|
5118
|
+
value: input.anchors
|
|
5119
|
+
})].every(flag => flag);
|
|
5120
|
+
const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.txHash || $report(_exceptionable, {
|
|
5121
|
+
path: _path + ".txHash",
|
|
5122
|
+
expected: "string",
|
|
5123
|
+
value: input.txHash
|
|
5124
|
+
}), "string" === typeof input.block || "number" === typeof input.block || "bigint" === typeof input.block || $report(_exceptionable, {
|
|
5125
|
+
path: _path + ".block",
|
|
5126
|
+
expected: "(bigint | number | string)",
|
|
5127
|
+
value: input.block
|
|
5128
|
+
}), "string" === typeof input.blockTimestamp || "number" === typeof input.blockTimestamp || "bigint" === typeof input.blockTimestamp || $report(_exceptionable, {
|
|
5129
|
+
path: _path + ".blockTimestamp",
|
|
5130
|
+
expected: "(bigint | number | string)",
|
|
5131
|
+
value: input.blockTimestamp
|
|
5132
|
+
}), "string" === typeof input.timestamp || "number" === typeof input.timestamp || "bigint" === typeof input.timestamp || $report(_exceptionable, {
|
|
5133
|
+
path: _path + ".timestamp",
|
|
5134
|
+
expected: "(bigint | number | string)",
|
|
5135
|
+
value: input.timestamp
|
|
5136
|
+
})].every(flag => flag);
|
|
5137
|
+
const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
|
|
5138
|
+
path: _path + ".message",
|
|
5139
|
+
expected: "string",
|
|
5140
|
+
value: input.message
|
|
5141
|
+
}), "string" === typeof input.signature || $report(_exceptionable, {
|
|
5142
|
+
path: _path + ".signature",
|
|
5143
|
+
expected: "string",
|
|
5144
|
+
value: input.signature
|
|
5145
|
+
}), "string" === typeof input.signer || $report(_exceptionable, {
|
|
5146
|
+
path: _path + ".signer",
|
|
5147
|
+
expected: "string",
|
|
5148
|
+
value: input.signer
|
|
5149
|
+
}), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
|
|
5150
|
+
path: _path + ".publicKey",
|
|
5151
|
+
expected: "(string | undefined)",
|
|
5152
|
+
value: input.publicKey
|
|
5153
|
+
})].every(flag => flag);
|
|
5154
|
+
const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.signature || $report(_exceptionable, {
|
|
5155
|
+
path: _path + ".signature",
|
|
5156
|
+
expected: "string",
|
|
5157
|
+
value: input.signature
|
|
5158
|
+
}), "string" === typeof input.signer || $report(_exceptionable, {
|
|
5159
|
+
path: _path + ".signer",
|
|
5160
|
+
expected: "string",
|
|
5161
|
+
value: input.signer
|
|
5162
|
+
}), undefined === input.publicKey || "string" === typeof input.publicKey || $report(_exceptionable, {
|
|
5163
|
+
path: _path + ".publicKey",
|
|
5164
|
+
expected: "(string | undefined)",
|
|
5165
|
+
value: input.publicKey
|
|
5166
|
+
})].every(flag => flag);
|
|
5167
|
+
const $vo4 = (input, _path, _exceptionable = true) => [undefined === input.txHash || "string" === typeof input.txHash || $report(_exceptionable, {
|
|
5168
|
+
path: _path + ".txHash",
|
|
5169
|
+
expected: "(string | undefined)",
|
|
5170
|
+
value: input.txHash
|
|
5171
|
+
}), undefined === input.message || "string" === typeof input.message || $report(_exceptionable, {
|
|
5172
|
+
path: _path + ".message",
|
|
5173
|
+
expected: "(string | undefined)",
|
|
5174
|
+
value: input.message
|
|
5175
|
+
})].every(flag => flag);
|
|
5176
|
+
return ("object" === typeof input && null !== input || $report(true, {
|
|
5177
|
+
path: _path + "",
|
|
5178
|
+
expected: "CreateAttestationProofPayload",
|
|
5179
|
+
value: input
|
|
5180
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
5181
|
+
path: _path + "",
|
|
5182
|
+
expected: "CreateAttestationProofPayload",
|
|
5183
|
+
value: input
|
|
5184
|
+
});
|
|
5185
|
+
})(input, "$input", true);
|
|
5186
|
+
}
|
|
5187
|
+
const success = 0 === errors.length;
|
|
5188
|
+
return {
|
|
5189
|
+
success,
|
|
5190
|
+
errors,
|
|
5191
|
+
data: success ? input : undefined
|
|
5192
|
+
};
|
|
5193
|
+
})(payload ?? {});
|
|
5194
|
+
if (!validateRes.success) {
|
|
5195
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5196
|
+
}
|
|
5197
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, payload);
|
|
5198
|
+
return new requests_1.CreateAttestationProofSuccessResponse(response.data);
|
|
5199
|
+
}
|
|
5200
|
+
catch (error) {
|
|
5201
|
+
await this.handleApiError(error);
|
|
5202
|
+
return Promise.reject(error);
|
|
5203
|
+
}
|
|
5204
|
+
}
|
|
5205
|
+
async deleteAttestationProof(payload) {
|
|
5206
|
+
try {
|
|
5207
|
+
const validateRes = (input => {
|
|
5208
|
+
const errors = [];
|
|
5209
|
+
const __is = input => {
|
|
5210
|
+
return "object" === typeof input && null !== input && "string" === typeof input.id;
|
|
5211
|
+
};
|
|
5212
|
+
if (false === __is(input)) {
|
|
5213
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5214
|
+
((input, _path, _exceptionable = true) => {
|
|
5215
|
+
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || $report(_exceptionable, {
|
|
5216
|
+
path: _path + ".id",
|
|
5217
|
+
expected: "string",
|
|
5218
|
+
value: input.id
|
|
5219
|
+
})].every(flag => flag);
|
|
5220
|
+
return ("object" === typeof input && null !== input || $report(true, {
|
|
5221
|
+
path: _path + "",
|
|
5222
|
+
expected: "DeleteAttestationProofPayload",
|
|
5223
|
+
value: input
|
|
5224
|
+
})) && $vo0(input, _path + "", true) || $report(true, {
|
|
5225
|
+
path: _path + "",
|
|
5226
|
+
expected: "DeleteAttestationProofPayload",
|
|
5227
|
+
value: input
|
|
5228
|
+
});
|
|
5229
|
+
})(input, "$input", true);
|
|
5230
|
+
}
|
|
5231
|
+
const success = 0 === errors.length;
|
|
5232
|
+
return {
|
|
5233
|
+
success,
|
|
5234
|
+
errors,
|
|
5235
|
+
data: success ? input : undefined
|
|
5236
|
+
};
|
|
5237
|
+
})(payload ?? {});
|
|
5238
|
+
if (!validateRes.success) {
|
|
5239
|
+
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5240
|
+
}
|
|
5241
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, {
|
|
5242
|
+
data: payload
|
|
5243
|
+
});
|
|
5244
|
+
return new requests_1.DeleteAttestationProofSuccessResponse(response.data);
|
|
5245
|
+
}
|
|
5246
|
+
catch (error) {
|
|
5247
|
+
await this.handleApiError(error);
|
|
5248
|
+
return Promise.reject(error);
|
|
5249
|
+
}
|
|
5250
|
+
}
|
|
4948
5251
|
async updateUserSeenActivity() {
|
|
4949
5252
|
return await this.updateAccountInfo({ seenActivity: Date.now() });
|
|
4950
5253
|
}
|
|
@@ -5865,8 +6168,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5865
6168
|
const $io8 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io9(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io10(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode);
|
|
5866
6169
|
const $io9 = input => true;
|
|
5867
6170
|
const $io10 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io11(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true);
|
|
5868
|
-
const $io11 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@
|
|
5869
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6171
|
+
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@630"] && Object.keys(input).every(key => {
|
|
6172
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@630"].some(prop => key === prop))
|
|
5870
6173
|
return true;
|
|
5871
6174
|
const value = input[key];
|
|
5872
6175
|
if (undefined === value)
|
|
@@ -6219,12 +6522,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6219
6522
|
path: _path + ".length",
|
|
6220
6523
|
expected: "number",
|
|
6221
6524
|
value: input.length
|
|
6222
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6223
|
-
path: _path + "[\"__@toStringTag@
|
|
6525
|
+
}), "Uint8Array" === input["__@toStringTag@630"] || $report(_exceptionable, {
|
|
6526
|
+
path: _path + "[\"__@toStringTag@630\"]",
|
|
6224
6527
|
expected: "\"Uint8Array\"",
|
|
6225
|
-
value: input["__@toStringTag@
|
|
6528
|
+
value: input["__@toStringTag@630"]
|
|
6226
6529
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6227
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6530
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@630"].some(prop => key === prop))
|
|
6228
6531
|
return true;
|
|
6229
6532
|
const value = input[key];
|
|
6230
6533
|
if (undefined === value)
|
|
@@ -6287,8 +6590,8 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6287
6590
|
const $io3 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io4(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io5(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode);
|
|
6288
6591
|
const $io4 = input => true;
|
|
6289
6592
|
const $io5 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io6(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true);
|
|
6290
|
-
const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@
|
|
6291
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6593
|
+
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@630"] && Object.keys(input).every(key => {
|
|
6594
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@630"].some(prop => key === prop))
|
|
6292
6595
|
return true;
|
|
6293
6596
|
const value = input[key];
|
|
6294
6597
|
if (undefined === value)
|
|
@@ -6502,12 +6805,12 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6502
6805
|
path: _path + ".length",
|
|
6503
6806
|
expected: "number",
|
|
6504
6807
|
value: input.length
|
|
6505
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6506
|
-
path: _path + "[\"__@toStringTag@
|
|
6808
|
+
}), "Uint8Array" === input["__@toStringTag@630"] || $report(_exceptionable, {
|
|
6809
|
+
path: _path + "[\"__@toStringTag@630\"]",
|
|
6507
6810
|
expected: "\"Uint8Array\"",
|
|
6508
|
-
value: input["__@toStringTag@
|
|
6811
|
+
value: input["__@toStringTag@630"]
|
|
6509
6812
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6510
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6813
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@630"].some(prop => key === prop))
|
|
6511
6814
|
return true;
|
|
6512
6815
|
const value = input[key];
|
|
6513
6816
|
if (undefined === value)
|