@bsv/wallet-toolbox-client 2.8.0 → 2.10.0
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/out/index.client.cjs +764 -401
- package/out/index.client.cjs.map +1 -1
- package/out/index.client.d.cts +252 -56
- package/out/index.client.d.cts.map +1 -1
- package/out/index.client.d.mts +252 -56
- package/out/index.client.d.mts.map +1 -1
- package/out/index.client.mjs +764 -403
- package/out/index.client.mjs.map +1 -1
- package/package.json +2 -2
package/out/index.client.d.cts
CHANGED
|
@@ -830,6 +830,28 @@ interface ChaintracksBulkDataStatsApi {
|
|
|
830
830
|
coalescedLoads: number;
|
|
831
831
|
downloads: number;
|
|
832
832
|
downloadedBytes: number;
|
|
833
|
+
loadBackoffs: number;
|
|
834
|
+
/** Worker or portable validator statistics when the implementation exposes them. */
|
|
835
|
+
validation?: {
|
|
836
|
+
submitted: number;
|
|
837
|
+
completed: number;
|
|
838
|
+
failed: number;
|
|
839
|
+
rejected: number;
|
|
840
|
+
workerRestarts: number;
|
|
841
|
+
inFlight: number;
|
|
842
|
+
queued: number;
|
|
843
|
+
maxQueueDepth: number;
|
|
844
|
+
totalValidationMsecs: number;
|
|
845
|
+
maxValidationMsecs: number;
|
|
846
|
+
};
|
|
847
|
+
/** Durable download reservation state when configured. */
|
|
848
|
+
downloadBudget?: {
|
|
849
|
+
maxBytes: number;
|
|
850
|
+
consumedBytes: number;
|
|
851
|
+
remainingBytes: number;
|
|
852
|
+
windowStartedAt: number;
|
|
853
|
+
windowMsecs: number;
|
|
854
|
+
};
|
|
833
855
|
}
|
|
834
856
|
/** @public */
|
|
835
857
|
interface ChaintracksSourceStatusApi {
|
|
@@ -840,6 +862,17 @@ interface ChaintracksSourceStatusApi {
|
|
|
840
862
|
lastFailure?: string;
|
|
841
863
|
error?: string;
|
|
842
864
|
}
|
|
865
|
+
/** Constant-time, local-only process state for probes and operators. @public */
|
|
866
|
+
interface ChaintracksAvailabilitySnapshotApi {
|
|
867
|
+
available: boolean;
|
|
868
|
+
startupError?: string;
|
|
869
|
+
presentHeight?: number;
|
|
870
|
+
presentHeightUpdatedAt?: string;
|
|
871
|
+
presentHeightRefreshInFlight: boolean;
|
|
872
|
+
mainLoopHeartbeatAt?: string;
|
|
873
|
+
sources: ChaintracksSourceStatusApi[];
|
|
874
|
+
bulkData: ChaintracksBulkDataStatsApi;
|
|
875
|
+
}
|
|
843
876
|
/**
|
|
844
877
|
* Chaintracks client API excluding events and callbacks
|
|
845
878
|
* @public
|
|
@@ -3247,7 +3280,7 @@ declare class EntitySyncState extends EntityBase<TableSyncState> {
|
|
|
3247
3280
|
mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableSyncState, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>;
|
|
3248
3281
|
makeRequestSyncChunkArgs(forIdentityKey: string, forStorageIdentityKey: string, maxRoughSize?: number, maxItems?: number): RequestSyncChunkArgs;
|
|
3249
3282
|
static syncChunkSummary(c: SyncChunk): string;
|
|
3250
|
-
processSyncChunk(writer: EntityStorage, args: RequestSyncChunkArgs, chunk: SyncChunk): Promise<{
|
|
3283
|
+
processSyncChunk(writer: EntityStorage, args: RequestSyncChunkArgs, chunk: SyncChunk, trx?: TrxToken): Promise<{
|
|
3251
3284
|
done: boolean;
|
|
3252
3285
|
maxUpdated_at: Date | undefined;
|
|
3253
3286
|
updates: number;
|
|
@@ -5677,6 +5710,11 @@ interface ChaintracksFsApi {
|
|
|
5677
5710
|
}
|
|
5678
5711
|
//#endregion
|
|
5679
5712
|
//#region ../src/services/chaintracker/chaintracks/Api/ChaintracksFetchApi.d.ts
|
|
5713
|
+
/** @public */
|
|
5714
|
+
interface ChaintracksDownloadOptions {
|
|
5715
|
+
/** Called immediately before each retry after the initial request. */
|
|
5716
|
+
beforeRetry?: (attempt: number) => void | Promise<void>;
|
|
5717
|
+
}
|
|
5680
5718
|
/**
|
|
5681
5719
|
* Provides a simplified interface based on the @bsv/sdk `HttpClient` class
|
|
5682
5720
|
* with just the methods necesary for most Chaintracks operations.
|
|
@@ -5689,7 +5727,7 @@ interface ChaintracksFsApi {
|
|
|
5689
5727
|
*/
|
|
5690
5728
|
interface ChaintracksFetchApi {
|
|
5691
5729
|
httpClient: HttpClient;
|
|
5692
|
-
download(url: string, maxResponseBytes?: number): Promise<Uint8Array>;
|
|
5730
|
+
download(url: string, maxResponseBytes?: number, options?: ChaintracksDownloadOptions): Promise<Uint8Array>;
|
|
5693
5731
|
fetchJson<R>(url: string): Promise<R>;
|
|
5694
5732
|
pathJoin(baseUrl: string, subpath: string): string;
|
|
5695
5733
|
}
|
|
@@ -5728,6 +5766,19 @@ declare class BulkFileDataReader {
|
|
|
5728
5766
|
interface BulkFileDataCacheApi {
|
|
5729
5767
|
get(file: Readonly<BulkHeaderFileInfo>): Promise<Uint8Array | undefined>;
|
|
5730
5768
|
set(file: Readonly<BulkHeaderFileInfo>, data: Uint8Array): Promise<void>;
|
|
5769
|
+
/**
|
|
5770
|
+
* Preserve a rejected object outside the active cache namespace. The manager
|
|
5771
|
+
* calls this before attempting a replacement and never removes a last-good
|
|
5772
|
+
* object merely because a newer source is unavailable.
|
|
5773
|
+
*/
|
|
5774
|
+
quarantine?(file: Readonly<BulkHeaderFileInfo>, reason: string,
|
|
5775
|
+
/** Exact rejected bytes, used to avoid quarantining a concurrent replacement. */
|
|
5776
|
+
rejectedData?: Uint8Array): Promise<void>;
|
|
5777
|
+
/**
|
|
5778
|
+
* Promote a validated legacy entry into the implementation's preferred
|
|
5779
|
+
* immutable namespace. Implementations should make this idempotent.
|
|
5780
|
+
*/
|
|
5781
|
+
promoteValidated?(file: Readonly<BulkHeaderFileInfo>, data: Uint8Array): Promise<void>;
|
|
5731
5782
|
delete?(file: Readonly<BulkHeaderFileInfo>): Promise<void>;
|
|
5732
5783
|
}
|
|
5733
5784
|
/**
|
|
@@ -5739,6 +5790,85 @@ interface BulkFileDataCacheApi {
|
|
|
5739
5790
|
*/
|
|
5740
5791
|
interface BulkFileDownloadBudgetApi {
|
|
5741
5792
|
consume(byteCount: number): void | Promise<void>;
|
|
5793
|
+
snapshot?(): BulkFileDownloadBudgetSnapshot;
|
|
5794
|
+
}
|
|
5795
|
+
/** @public */
|
|
5796
|
+
interface BulkFileDownloadBudgetSnapshot {
|
|
5797
|
+
maxBytes: number;
|
|
5798
|
+
consumedBytes: number;
|
|
5799
|
+
remainingBytes: number;
|
|
5800
|
+
windowStartedAt: number;
|
|
5801
|
+
windowMsecs: number;
|
|
5802
|
+
}
|
|
5803
|
+
//#endregion
|
|
5804
|
+
//#region ../src/services/chaintracker/chaintracks/Api/BulkFileDataValidatorApi.d.ts
|
|
5805
|
+
/**
|
|
5806
|
+
* Identifies deterministic rejection of the supplied immutable bytes.
|
|
5807
|
+
* Operational failures such as worker crashes and queue saturation deliberately
|
|
5808
|
+
* use ordinary errors so callers preserve the cache entry and avoid downloading
|
|
5809
|
+
* a replacement that cannot be validated.
|
|
5810
|
+
*
|
|
5811
|
+
* @public
|
|
5812
|
+
*/
|
|
5813
|
+
declare class BulkFileDataValidationError extends Error {
|
|
5814
|
+
readonly data?: Uint8Array | undefined;
|
|
5815
|
+
constructor(message: string, data?: Uint8Array | undefined);
|
|
5816
|
+
}
|
|
5817
|
+
/**
|
|
5818
|
+
* Complete immutable bulk-header object supplied to a validator.
|
|
5819
|
+
*
|
|
5820
|
+
* Implementations must validate the exact byte length and digest as well as
|
|
5821
|
+
* every header's linkage, chain work, genesis, and proof of work.
|
|
5822
|
+
*
|
|
5823
|
+
* @public
|
|
5824
|
+
*/
|
|
5825
|
+
interface BulkFileDataValidationRequest {
|
|
5826
|
+
fileName: string;
|
|
5827
|
+
data: Uint8Array;
|
|
5828
|
+
count: number;
|
|
5829
|
+
/** Expected base64 SHA-256 digest. Omit only while producing a new export. */
|
|
5830
|
+
fileHash?: string;
|
|
5831
|
+
firstHeight: number;
|
|
5832
|
+
prevHash: string;
|
|
5833
|
+
prevChainWork: string;
|
|
5834
|
+
lastHash?: string | null;
|
|
5835
|
+
lastChainWork?: string | null;
|
|
5836
|
+
chain?: Chain;
|
|
5837
|
+
}
|
|
5838
|
+
/** @public */
|
|
5839
|
+
interface BulkFileDataValidationResult {
|
|
5840
|
+
/** The validated bytes. Worker implementations may transfer ownership. */
|
|
5841
|
+
data: Uint8Array;
|
|
5842
|
+
fileHash: string;
|
|
5843
|
+
lastHeaderHash: string;
|
|
5844
|
+
lastChainWork: string;
|
|
5845
|
+
}
|
|
5846
|
+
/** @public */
|
|
5847
|
+
interface BulkFileDataValidatorStats {
|
|
5848
|
+
submitted: number;
|
|
5849
|
+
completed: number;
|
|
5850
|
+
failed: number;
|
|
5851
|
+
rejected: number;
|
|
5852
|
+
workerRestarts: number;
|
|
5853
|
+
inFlight: number;
|
|
5854
|
+
queued: number;
|
|
5855
|
+
maxQueueDepth: number;
|
|
5856
|
+
totalValidationMsecs: number;
|
|
5857
|
+
maxValidationMsecs: number;
|
|
5858
|
+
}
|
|
5859
|
+
/**
|
|
5860
|
+
* Asynchronous validation boundary for immutable bulk-header objects.
|
|
5861
|
+
*
|
|
5862
|
+
* Portable runtimes may validate in-process. Node services can inject a
|
|
5863
|
+
* worker-backed implementation so proof-of-work validation never blocks the
|
|
5864
|
+
* request event loop.
|
|
5865
|
+
*
|
|
5866
|
+
* @public
|
|
5867
|
+
*/
|
|
5868
|
+
interface BulkFileDataValidatorApi {
|
|
5869
|
+
validate(request: BulkFileDataValidationRequest): Promise<BulkFileDataValidationResult>;
|
|
5870
|
+
getStats?(): BulkFileDataValidatorStats;
|
|
5871
|
+
destroy?(): Promise<void>;
|
|
5742
5872
|
}
|
|
5743
5873
|
//#endregion
|
|
5744
5874
|
//#region ../src/services/chaintracker/chaintracks/util/BulkFileDataManager.d.ts
|
|
@@ -5752,6 +5882,10 @@ interface BulkFileDataManagerOptions {
|
|
|
5752
5882
|
cache?: BulkFileDataCacheApi;
|
|
5753
5883
|
/** Optional process-local or shared reservation budget for remote bytes. */
|
|
5754
5884
|
downloadBudget?: BulkFileDownloadBudgetApi;
|
|
5885
|
+
/** Complete-object validator. Node services should inject a worker-backed implementation. */
|
|
5886
|
+
validator?: BulkFileDataValidatorApi;
|
|
5887
|
+
/** Cooldown after a failed load before the same immutable object can retry. */
|
|
5888
|
+
failedLoadRetryMsecs?: number;
|
|
5755
5889
|
}
|
|
5756
5890
|
/** @public */
|
|
5757
5891
|
interface BulkFileDataManagerStats {
|
|
@@ -5763,6 +5897,9 @@ interface BulkFileDataManagerStats {
|
|
|
5763
5897
|
coalescedLoads: number;
|
|
5764
5898
|
downloads: number;
|
|
5765
5899
|
downloadedBytes: number;
|
|
5900
|
+
loadBackoffs: number;
|
|
5901
|
+
validation?: BulkFileDataValidatorStats;
|
|
5902
|
+
downloadBudget?: BulkFileDownloadBudgetSnapshot;
|
|
5766
5903
|
}
|
|
5767
5904
|
/**
|
|
5768
5905
|
* Manages bulk file data (typically 8MB chunks of 100,000 headers each).
|
|
@@ -5780,6 +5917,7 @@ declare class BulkFileDataManager {
|
|
|
5780
5917
|
private fileHashToIndex;
|
|
5781
5918
|
private readonly lock;
|
|
5782
5919
|
private readonly inFlightLoads;
|
|
5920
|
+
private readonly failedLoads;
|
|
5783
5921
|
private storage?;
|
|
5784
5922
|
private readonly stats;
|
|
5785
5923
|
readonly chain: Chain;
|
|
@@ -5789,6 +5927,8 @@ declare class BulkFileDataManager {
|
|
|
5789
5927
|
readonly fromKnownSourceUrl?: string;
|
|
5790
5928
|
readonly cache?: BulkFileDataCacheApi;
|
|
5791
5929
|
readonly downloadBudget?: BulkFileDownloadBudgetApi;
|
|
5930
|
+
readonly validator: BulkFileDataValidatorApi;
|
|
5931
|
+
readonly failedLoadRetryMsecs: number;
|
|
5792
5932
|
constructor(options: BulkFileDataManagerOptions | Chain);
|
|
5793
5933
|
getStats(): BulkFileDataManagerStats;
|
|
5794
5934
|
deleteBulkFiles(): Promise<void>;
|
|
@@ -5817,6 +5957,7 @@ declare class BulkFileDataManager {
|
|
|
5817
5957
|
getBulkFiles(keepData?: boolean): Promise<BulkHeaderFileInfo[]>;
|
|
5818
5958
|
getHeightRange(): Promise<HeightRange>;
|
|
5819
5959
|
getDataFromFile(file: BulkHeaderFileInfo, offset?: number, length?: number): Promise<Uint8Array | undefined>;
|
|
5960
|
+
private getDataFromSnapshot;
|
|
5820
5961
|
private getDataFromFileNoLock;
|
|
5821
5962
|
findHeaderForHeightOrUndefined(height: number): Promise<BlockHeader | undefined>;
|
|
5822
5963
|
getFileForHeight(height: number): Promise<BulkHeaderFileInfo | undefined>;
|
|
@@ -5884,9 +6025,13 @@ declare class BulkFileDataManager {
|
|
|
5884
6025
|
*/
|
|
5885
6026
|
private ensureData;
|
|
5886
6027
|
private loadAndValidateData;
|
|
6028
|
+
private loadFromStorage;
|
|
6029
|
+
private loadFromCache;
|
|
6030
|
+
private loadFromRemote;
|
|
5887
6031
|
private validateRetrievedData;
|
|
5888
6032
|
private ensureMaxRetained;
|
|
5889
6033
|
exportHeadersToFs(toFs: ChaintracksFsApi, toHeadersPerFile: number, toFolder: string, sourceUrl?: string, maxHeight?: number): Promise<void>;
|
|
6034
|
+
destroy(): Promise<void>;
|
|
5890
6035
|
}
|
|
5891
6036
|
interface BulkFileData extends BulkHeaderFileInfo {
|
|
5892
6037
|
mru: number;
|
|
@@ -6659,16 +6804,22 @@ declare class Chaintracks implements ChaintracksManagementApi {
|
|
|
6659
6804
|
private lastPresentHeight;
|
|
6660
6805
|
private lastPresentHeightMsecs;
|
|
6661
6806
|
private readonly lastPresentHeightMaxAge;
|
|
6807
|
+
private presentHeightRefresh?;
|
|
6808
|
+
private mainLoopHeartbeatMsecs;
|
|
6662
6809
|
private readonly lock;
|
|
6663
6810
|
private readonly sourceStatus;
|
|
6664
6811
|
constructor(options: ChaintracksOptions);
|
|
6665
6812
|
getChain(): Promise<Chain>;
|
|
6666
6813
|
/**
|
|
6667
|
-
*
|
|
6668
|
-
*
|
|
6814
|
+
* Returns the last known valid height immediately and refreshes stale state
|
|
6815
|
+
* once in the background. Cold start waits for the single shared refresh.
|
|
6669
6816
|
*/
|
|
6670
6817
|
getPresentHeight(): Promise<number>;
|
|
6818
|
+
private refreshPresentHeight;
|
|
6819
|
+
private loadPresentHeight;
|
|
6671
6820
|
currentHeight(): Promise<number>;
|
|
6821
|
+
/** Returns local process state without locks, storage reads, or network I/O. */
|
|
6822
|
+
getAvailabilitySnapshot(): ChaintracksAvailabilitySnapshotApi;
|
|
6672
6823
|
subscribeHeaders(listener: HeaderListener): Promise<string>;
|
|
6673
6824
|
subscribeReorgs(listener: ReorgListener): Promise<string>;
|
|
6674
6825
|
unsubscribe(subscriptionId: string): Promise<boolean>;
|
|
@@ -7899,6 +8050,8 @@ interface ChaintracksSourceOptions {
|
|
|
7899
8050
|
bulkFileCache?: BulkFileDataCacheApi;
|
|
7900
8051
|
/** Optional byte budget applied before remote bulk-file downloads. */
|
|
7901
8052
|
bulkFileDownloadBudget?: BulkFileDownloadBudgetApi;
|
|
8053
|
+
/** Optional complete-object validator; Node services should use a bounded worker implementation. */
|
|
8054
|
+
bulkFileDataValidator?: BulkFileDataValidatorApi;
|
|
7902
8055
|
}
|
|
7903
8056
|
type ChaintracksArgumentsTail = [whatsonchainApiKey?: string, maxPerFile?: number, maxRetained?: number, fetch?: ChaintracksFetchApi, cdnUrl?: string, liveHeightThreshold?: number, reorgHeightThreshold?: number, bulkMigrationChunkSize?: number, batchInsertLimit?: number, addLiveRecursionLimit?: number, sources?: ChaintracksSourceOptions];
|
|
7904
8057
|
type DefaultChaintracksArguments = [chain: Chain, ...options: ChaintracksArgumentsTail];
|
|
@@ -8073,7 +8226,7 @@ declare class ChaintracksFetch implements ChaintracksFetchApi {
|
|
|
8073
8226
|
private readonly maxRetryMsecs;
|
|
8074
8227
|
private readonly random;
|
|
8075
8228
|
constructor(options?: ChaintracksFetchOptions);
|
|
8076
|
-
download(url: string, maxResponseBytes?: number): Promise<Uint8Array>;
|
|
8229
|
+
download(url: string, maxResponseBytes?: number, options?: ChaintracksDownloadOptions): Promise<Uint8Array>;
|
|
8077
8230
|
fetchJson<R>(url: string): Promise<R>;
|
|
8078
8231
|
private requestBytes;
|
|
8079
8232
|
private requestAttempt;
|
|
@@ -8107,10 +8260,23 @@ declare class FixedWindowBulkFileDownloadBudget implements BulkFileDownloadBudge
|
|
|
8107
8260
|
snapshot(): {
|
|
8108
8261
|
maxBytes: number;
|
|
8109
8262
|
consumedBytes: number;
|
|
8263
|
+
remainingBytes: number;
|
|
8110
8264
|
windowStartedAt: number;
|
|
8111
8265
|
windowMsecs: number;
|
|
8112
8266
|
};
|
|
8113
8267
|
}
|
|
8268
|
+
//#endregion
|
|
8269
|
+
//#region ../src/services/chaintracker/chaintracks/util/InlineBulkFileDataValidator.d.ts
|
|
8270
|
+
/**
|
|
8271
|
+
* Portable complete-object validator. Node services should normally inject
|
|
8272
|
+
* `NodeBulkFileDataValidator`; browser and mobile consumers retain this
|
|
8273
|
+
* dependency-free fallback.
|
|
8274
|
+
*
|
|
8275
|
+
* @public
|
|
8276
|
+
*/
|
|
8277
|
+
declare class InlineBulkFileDataValidator implements BulkFileDataValidatorApi {
|
|
8278
|
+
validate(request: BulkFileDataValidationRequest): Promise<BulkFileDataValidationResult>;
|
|
8279
|
+
}
|
|
8114
8280
|
declare namespace blockHeaderUtilities_d_exports {
|
|
8115
8281
|
export { addWork, blockHash, convertBitsToTarget, convertBitsToWork, convertBufferToUint32, convertUint32ToBuffer, deserializeBaseBlockHeader, deserializeBaseBlockHeaders, deserializeBlockHeader, deserializeBlockHeaders, genesisBuffer, genesisHeader, isMoreWork, readUInt32BE, readUInt32LE, serializeBaseBlockHeader, serializeBaseBlockHeaders, sha256HashOfBinaryFile, subWork, swapByteOrder, validateBufferOfHeaders, validateBulkFileData, validateGenesisHeader, validateHeaderDifficulty, validateHeaderFormat, validateHeaderProofOfWork, workBNtoBuffer, writeUInt32BE, writeUInt32LE };
|
|
8116
8282
|
}
|
|
@@ -9428,7 +9594,7 @@ interface UMPTokenInteractor {
|
|
|
9428
9594
|
* @returns The UMP token if found; otherwise, undefined.
|
|
9429
9595
|
* @throws Implementations should throw when no verified token or clean empty response is available.
|
|
9430
9596
|
*/
|
|
9431
|
-
findByPresentationKeyHash: (hash: number[]) => Promise<UMPToken | undefined>;
|
|
9597
|
+
findByPresentationKeyHash: (hash: number[], options?: UMPTokenLookupOptions) => Promise<UMPToken | undefined>;
|
|
9432
9598
|
/**
|
|
9433
9599
|
* Locates the latest valid copy of a UMP token (including its outpoint)
|
|
9434
9600
|
* based on the recovery key hash.
|
|
@@ -9437,7 +9603,7 @@ interface UMPTokenInteractor {
|
|
|
9437
9603
|
* @returns The UMP token if found; otherwise, undefined.
|
|
9438
9604
|
* @throws Implementations should throw when no verified token or clean empty response is available.
|
|
9439
9605
|
*/
|
|
9440
|
-
findByRecoveryKeyHash: (hash: number[]) => Promise<UMPToken | undefined>;
|
|
9606
|
+
findByRecoveryKeyHash: (hash: number[], options?: UMPTokenLookupOptions) => Promise<UMPToken | undefined>;
|
|
9441
9607
|
/**
|
|
9442
9608
|
* Creates (and optionally consumes the previous version of) a UMP token on-chain.
|
|
9443
9609
|
*
|
|
@@ -9450,6 +9616,14 @@ interface UMPTokenInteractor {
|
|
|
9450
9616
|
buildAndSend: (wallet: WalletInterface // This wallet MUST be the one built for the default profile
|
|
9451
9617
|
, adminOriginator: OriginatorDomainNameStringUnder250Bytes, token: UMPToken, oldTokenToConsume?: UMPToken) => Promise<OutpointString>;
|
|
9452
9618
|
}
|
|
9619
|
+
interface UMPTokenLookupOptions {
|
|
9620
|
+
/**
|
|
9621
|
+
* WAB-administered fallback used only when normal lineage resolution leaves
|
|
9622
|
+
* more than one verified matching token. The outpoint must be one of the
|
|
9623
|
+
* verified lookup candidates or it has no effect.
|
|
9624
|
+
*/
|
|
9625
|
+
pinnedOutpoint?: OutpointString;
|
|
9626
|
+
}
|
|
9453
9627
|
interface UMPTokenLookupDiagnostics {
|
|
9454
9628
|
hostCount: number;
|
|
9455
9629
|
completedHosts: number;
|
|
@@ -9513,7 +9687,7 @@ declare class OverlayUMPTokenInteractor implements UMPTokenInteractor {
|
|
|
9513
9687
|
* @param hash The 32-byte SHA-256 hash of the presentation key.
|
|
9514
9688
|
* @returns A UMPToken object (including currentOutpoint) if found, otherwise undefined.
|
|
9515
9689
|
*/
|
|
9516
|
-
findByPresentationKeyHash(hash: number[]): Promise<UMPToken | undefined>;
|
|
9690
|
+
findByPresentationKeyHash(hash: number[], options?: UMPTokenLookupOptions): Promise<UMPToken | undefined>;
|
|
9517
9691
|
/**
|
|
9518
9692
|
* Finds a UMP token on-chain by the given recovery key hash, if it exists.
|
|
9519
9693
|
* Uses the ls_users overlay service to perform the lookup.
|
|
@@ -9521,7 +9695,7 @@ declare class OverlayUMPTokenInteractor implements UMPTokenInteractor {
|
|
|
9521
9695
|
* @param hash The 32-byte SHA-256 hash of the recovery key.
|
|
9522
9696
|
* @returns A UMPToken object (including currentOutpoint) if found, otherwise undefined.
|
|
9523
9697
|
*/
|
|
9524
|
-
findByRecoveryKeyHash(hash: number[]): Promise<UMPToken | undefined>;
|
|
9698
|
+
findByRecoveryKeyHash(hash: number[], options?: UMPTokenLookupOptions): Promise<UMPToken | undefined>;
|
|
9525
9699
|
private findToken;
|
|
9526
9700
|
/**
|
|
9527
9701
|
* Picks the newest rendition among distinct verified tokens, when possible.
|
|
@@ -9542,19 +9716,19 @@ declare class OverlayUMPTokenInteractor implements UMPTokenInteractor {
|
|
|
9542
9716
|
* hash — on-chain proof that the candidate is an update of a same-identity
|
|
9543
9717
|
* predecessor rather than an independently minted token.
|
|
9544
9718
|
*/
|
|
9545
|
-
private
|
|
9719
|
+
private consumesIdentity;
|
|
9546
9720
|
/**
|
|
9547
9721
|
* Accumulates every outpoint spent by `tx` and by the ancestor transactions
|
|
9548
9722
|
* embedded in its BEEF, so supersession is detected even when intermediate
|
|
9549
9723
|
* renditions are absent from the lookup answer. Iterative so arbitrarily
|
|
9550
9724
|
* long update chains cannot exhaust the call stack.
|
|
9551
9725
|
*/
|
|
9552
|
-
private
|
|
9553
|
-
private
|
|
9554
|
-
private
|
|
9555
|
-
private
|
|
9556
|
-
private
|
|
9557
|
-
private
|
|
9726
|
+
private collectSpends;
|
|
9727
|
+
private emptyStats;
|
|
9728
|
+
private diagnosticsFor;
|
|
9729
|
+
private lookupAttrs;
|
|
9730
|
+
private lookupDone;
|
|
9731
|
+
private lookupFailed;
|
|
9558
9732
|
/**
|
|
9559
9733
|
* Creates or updates (replaces) a UMP token on-chain. If `oldTokenToConsume` is provided,
|
|
9560
9734
|
* it is spent in the same transaction that creates the new token output. The new token is
|
|
@@ -9570,18 +9744,18 @@ declare class OverlayUMPTokenInteractor implements UMPTokenInteractor {
|
|
|
9570
9744
|
buildAndSend(wallet: WalletInterface // This wallet MUST be the one built for the default profile
|
|
9571
9745
|
, adminOriginator: OriginatorDomainNameStringUnder250Bytes, token: UMPToken, oldTokenToConsume?: UMPToken): Promise<OutpointString>;
|
|
9572
9746
|
/** Assembles the ordered number[][] fields array from a UMPToken. */
|
|
9573
|
-
private
|
|
9747
|
+
private tokenFields;
|
|
9574
9748
|
/** Looks up the old token on the overlay; returns undefined resolved token if not found. */
|
|
9575
|
-
private
|
|
9749
|
+
private resolveOldInput;
|
|
9576
9750
|
/** Creates the UMP action without dropping a required old-token input on failure. */
|
|
9577
|
-
private
|
|
9751
|
+
private createAction;
|
|
9578
9752
|
/** Handles a fully-finalized (no signable tx) createAction result — broadcasts and returns outpoint. */
|
|
9579
|
-
private
|
|
9753
|
+
private broadcastFinal;
|
|
9580
9754
|
/** Signs the old-token input and broadcasts — used during UMP token renewal. */
|
|
9581
|
-
private
|
|
9755
|
+
private renewToken;
|
|
9582
9756
|
/** Signs without input spending and broadcasts — used when creating a brand-new UMP token. */
|
|
9583
|
-
private
|
|
9584
|
-
private
|
|
9757
|
+
private broadcastNew;
|
|
9758
|
+
private assertBroadcast;
|
|
9585
9759
|
/**
|
|
9586
9760
|
* Attempts to parse a LookupAnswer from the UMP lookup service. If successful,
|
|
9587
9761
|
* extracts the token fields from the resulting transaction and constructs
|
|
@@ -9592,7 +9766,7 @@ declare class OverlayUMPTokenInteractor implements UMPTokenInteractor {
|
|
|
9592
9766
|
*/
|
|
9593
9767
|
private parseLookupAnswer;
|
|
9594
9768
|
private parseLookupAnswers;
|
|
9595
|
-
private
|
|
9769
|
+
private parseOutput;
|
|
9596
9770
|
/**
|
|
9597
9771
|
* Finds by outpoint for unlocking / spending previous tokens.
|
|
9598
9772
|
* @param outpoint The outpoint we are searching by
|
|
@@ -9710,17 +9884,19 @@ declare class CWIStyleWalletManager implements WalletInterface {
|
|
|
9710
9884
|
constructor(...[adminOriginator, walletBuilder, interactor, recoveryKeySaver, passwordRetriever, newWalletFunder, stateSnapshot, kdfConfig, telemetry]: [adminOriginator: OriginatorDomainNameStringUnder250Bytes, walletBuilder: (profilePrimaryKey: number[], profilePrivilegedKeyManager: PrivilegedKeyManager, profileId: number[]) => Promise<WalletInterface>, interactor: UMPTokenInteractor | undefined, recoveryKeySaver: (key: number[]) => Promise<true>, passwordRetriever: (reason: string, test: (passwordCandidate: string) => boolean | Promise<boolean>) => Promise<string>, newWalletFunder?: (presentationKey: number[], wallet: WalletInterface, adminOriginator: OriginatorDomainNameStringUnder250Bytes) => Promise<void>, stateSnapshot?: number[], kdfConfig?: KdfConfig, telemetry?: TelemetryConfig]);
|
|
9711
9885
|
private _init;
|
|
9712
9886
|
/**
|
|
9713
|
-
* Provides the presentation key.
|
|
9887
|
+
* Provides the presentation key. A WAB operator pin may be supplied by the
|
|
9888
|
+
* authentication manager; normal lookup and lineage resolution always run
|
|
9889
|
+
* before this ambiguity-only fallback.
|
|
9714
9890
|
*/
|
|
9715
|
-
providePresentationKey(key: number[]): Promise<void>;
|
|
9891
|
+
providePresentationKey(key: number[], lookupOptions?: UMPTokenLookupOptions): Promise<void>;
|
|
9716
9892
|
/**
|
|
9717
9893
|
* Provides the password.
|
|
9718
9894
|
*/
|
|
9719
9895
|
providePassword(password: string): Promise<void>;
|
|
9720
9896
|
/** Handles the password step for an existing user — derives keys, sets up infrastructure. */
|
|
9721
|
-
private
|
|
9897
|
+
private unlockExisting;
|
|
9722
9898
|
/** Handles the password step for a new user — generates keys, builds UMP token, publishes on-chain. */
|
|
9723
|
-
private
|
|
9899
|
+
private createNewUser;
|
|
9724
9900
|
/**
|
|
9725
9901
|
* Provides the recovery key.
|
|
9726
9902
|
*/
|
|
@@ -9806,12 +9982,12 @@ declare class CWIStyleWalletManager implements WalletInterface {
|
|
|
9806
9982
|
* @param getRoot If true and factorName is 'privilegedKey', returns the root privileged key bytes directly.
|
|
9807
9983
|
* @returns The decrypted key bytes.
|
|
9808
9984
|
*/
|
|
9809
|
-
|
|
9985
|
+
protected getFactor(factorName: 'passwordKey' | 'presentationKey' | 'recoveryKey' | 'privilegedKey'): Promise<number[]>;
|
|
9810
9986
|
/**
|
|
9811
9987
|
* Recomputes UMP token fields with updated factors and profiles, then publishes the update.
|
|
9812
9988
|
* This operation requires the *root* privileged key and the *default* profile wallet.
|
|
9813
9989
|
*/
|
|
9814
|
-
private
|
|
9990
|
+
private updateFactors;
|
|
9815
9991
|
/**
|
|
9816
9992
|
* Serializes a UMP token to binary format (Version 3 with KDF metadata, Version 2 with profiles).
|
|
9817
9993
|
* V3 Layout: [1 byte version=3] + [11 * (varint len + bytes) for standard fields] + [1 byte profile_flag] + [IF flag=1 THEN varint len + profile bytes] + [1 byte kdf_flag] + [IF flag=1 THEN kdf metadata] + [varint len + outpoint bytes]
|
|
@@ -9829,8 +10005,8 @@ declare class CWIStyleWalletManager implements WalletInterface {
|
|
|
9829
10005
|
* @param rootPrimaryKey The user's root primary key (32 bytes).
|
|
9830
10006
|
* @param ephemeralRootPrivilegedKey Optional root privileged key (e.g., during recovery flows).
|
|
9831
10007
|
*/
|
|
9832
|
-
private
|
|
9833
|
-
private
|
|
10008
|
+
private setupRoot;
|
|
10009
|
+
private assertReady;
|
|
9834
10010
|
getPublicKey(args: GetPublicKeyArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<GetPublicKeyResult>;
|
|
9835
10011
|
revealCounterpartyKeyLinkage(args: RevealCounterpartyKeyLinkageArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<RevealCounterpartyKeyLinkageResult>;
|
|
9836
10012
|
revealSpecificKeyLinkage(args: RevealSpecificKeyLinkageArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<RevealSpecificKeyLinkageResult>;
|
|
@@ -10133,32 +10309,26 @@ declare class WABTransport {
|
|
|
10133
10309
|
readonly serverUrl: string;
|
|
10134
10310
|
readonly serverOrigin: string;
|
|
10135
10311
|
readonly telemetry: Telemetry;
|
|
10136
|
-
private readonly
|
|
10137
|
-
private readonly
|
|
10138
|
-
private readonly
|
|
10139
|
-
private readonly
|
|
10312
|
+
private readonly fetcher;
|
|
10313
|
+
private readonly timeout;
|
|
10314
|
+
private readonly requestLimit;
|
|
10315
|
+
private readonly responseLimit;
|
|
10140
10316
|
constructor(serverUrl: string, options?: WABTransportOptions);
|
|
10141
10317
|
createCorrelationId(): string;
|
|
10142
10318
|
request<T>(path: string, options: WABRequestOptions): Promise<T>;
|
|
10143
|
-
private
|
|
10144
|
-
private
|
|
10145
|
-
private
|
|
10146
|
-
private
|
|
10147
|
-
private
|
|
10148
|
-
private
|
|
10149
|
-
private
|
|
10150
|
-
private
|
|
10151
|
-
private
|
|
10152
|
-
private
|
|
10153
|
-
private
|
|
10154
|
-
private
|
|
10155
|
-
private
|
|
10156
|
-
private readBoundedStream;
|
|
10157
|
-
private decodeChunks;
|
|
10158
|
-
private responseTooLargeError;
|
|
10159
|
-
private cancelResponseBody;
|
|
10160
|
-
private cancelResponseReader;
|
|
10161
|
-
private captureFailure;
|
|
10319
|
+
private bodyFor;
|
|
10320
|
+
private startTimer;
|
|
10321
|
+
private fetch;
|
|
10322
|
+
private checkResponse;
|
|
10323
|
+
private readText;
|
|
10324
|
+
private parse;
|
|
10325
|
+
private read;
|
|
10326
|
+
private readBuffer;
|
|
10327
|
+
private readStream;
|
|
10328
|
+
private sizeError;
|
|
10329
|
+
private stopBody;
|
|
10330
|
+
private stopReader;
|
|
10331
|
+
private report;
|
|
10162
10332
|
}
|
|
10163
10333
|
//#endregion
|
|
10164
10334
|
//#region ../src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts
|
|
@@ -10178,6 +10348,12 @@ interface CompleteAuthResponse {
|
|
|
10178
10348
|
accountStatus?: 'new-user' | 'existing-user';
|
|
10179
10349
|
/** Compatibility signal accepted from WAB deployments using a boolean. */
|
|
10180
10350
|
existingUser?: boolean;
|
|
10351
|
+
/** Operator-selected UMP ambiguity fallback supplied by newer WAB servers. */
|
|
10352
|
+
umpTokenOutpoint?: string;
|
|
10353
|
+
/** Staged key returned while a verified phone change awaits WAB finalization. */
|
|
10354
|
+
pendingPresentationKey?: string;
|
|
10355
|
+
/** Identifier used to idempotently finalize a staged phone change. */
|
|
10356
|
+
pendingPhoneChangeId?: number;
|
|
10181
10357
|
}
|
|
10182
10358
|
/**
|
|
10183
10359
|
* Abstract client-side interactor for an Auth Method.
|
|
@@ -10372,6 +10548,7 @@ declare class WalletAuthenticationManager extends CWIStyleWalletManager {
|
|
|
10372
10548
|
private readonly wabClient;
|
|
10373
10549
|
private authMethod?;
|
|
10374
10550
|
private authSession?;
|
|
10551
|
+
private phoneChangeSession?;
|
|
10375
10552
|
private readonly authSessionTtlMs;
|
|
10376
10553
|
constructor(...[adminOriginator, walletBuilder, interactor, recoveryKeySaver, passwordRetriever, wabClient, authMethod, stateSnapshot, options]: [adminOriginator: string, walletBuilder: (primaryKey: number[], privilegedKeyManager: PrivilegedKeyManager) => Promise<WalletInterface>, interactor: UMPTokenInteractor | undefined, recoveryKeySaver: (key: number[]) => Promise<true>, passwordRetriever: (reason: string, test: (passwordCandidate: string) => boolean | Promise<boolean>) => Promise<string>, wabClient: WABClient, authMethod?: AuthMethodInteractor, stateSnapshot?: number[], options?: WalletAuthenticationManagerOptions]);
|
|
10377
10554
|
/**
|
|
@@ -10389,7 +10566,26 @@ declare class WalletAuthenticationManager extends CWIStyleWalletManager {
|
|
|
10389
10566
|
*/
|
|
10390
10567
|
completeAuth(payload: AuthPayload): Promise<void>;
|
|
10391
10568
|
cancelAuth(): void;
|
|
10569
|
+
private readPendingPhoneChange;
|
|
10570
|
+
private provideWABPresentationKey;
|
|
10571
|
+
private finalizePendingPhoneChange;
|
|
10572
|
+
/**
|
|
10573
|
+
* Starts OTP verification for a replacement phone number. The same number
|
|
10574
|
+
* is valid and intentionally produces a fresh presentation key/hash.
|
|
10575
|
+
*/
|
|
10576
|
+
startPhoneNumberChange(phoneNumber: string): Promise<void>;
|
|
10577
|
+
/**
|
|
10578
|
+
* Completes phone verification and stages the WAB association before
|
|
10579
|
+
* publishing the UMP key rotation. WAB retains both the current and pending
|
|
10580
|
+
* presentation keys until finalization, so either side of an interrupted
|
|
10581
|
+
* transition remains recoverable on the next verified login.
|
|
10582
|
+
*/
|
|
10583
|
+
completePhoneNumberChange(otp: string): Promise<{
|
|
10584
|
+
changeId: number;
|
|
10585
|
+
}>;
|
|
10586
|
+
cancelPhoneNumberChange(): void;
|
|
10392
10587
|
destroy(): void;
|
|
10588
|
+
private phoneChange;
|
|
10393
10589
|
private inferAccountStatus;
|
|
10394
10590
|
private constantTimeHexEqual;
|
|
10395
10591
|
private generateTemporaryPresentationKey;
|
|
@@ -11399,5 +11595,5 @@ declare class WalletPermissionsManager implements WalletInterface {
|
|
|
11399
11595
|
private buildActiveRequestKey;
|
|
11400
11596
|
}
|
|
11401
11597
|
//#endregion
|
|
11402
|
-
export { ARGON2ID_DEFAULT_HASH_LENGTH, ARGON2ID_DEFAULT_ITERATIONS, ARGON2ID_DEFAULT_MEMORY_KIB, ARGON2ID_DEFAULT_PARALLELISM, ARGON2ID_MAX_ITERATIONS, ARGON2ID_MAX_MEMORY_KIB, ARGON2ID_MAX_PARALLELISM, ActionBatchStatus, AdminStatsResult, AnyBlockHeader, AuthMethodInteractor, AuthPayload, BHServiceClient, BRC153_REFERENCE_PREFIX, BRC38ImportOptions, BRC38ImportResult, BRC38Tables, BRC38WalletData, BRC39Options, type BaseBlockHeader, type BlockHeader, BulkFileDataCacheApi, BulkFileDataManager, BulkFileDataManagerMergeResult, BulkFileDataManagerOptions, BulkFileDataManagerStats, BulkFileDataReader, BulkFileDownloadBudgetApi, BulkFilesReader, BulkFilesReaderFs, BulkFilesReaderStorage, BulkHeaderFile, BulkHeaderFileFs, BulkHeaderFileInfo, BulkHeaderFileStorage, BulkHeaderFiles, BulkHeaderFilesInfo, BulkIngestorApi, BulkIngestorBase, BulkIngestorBaseOptions, BulkIngestorCDN, BulkIngestorCDNBabbage, BulkIngestorCDNOptions, BulkIngestorChaintracks, BulkIngestorChaintracksOptions, BulkIngestorWhatsOnChainCdn, BulkIngestorWhatsOnChainOptions, BulkStorageApi, BulkStorageBase, BulkStorageBaseOptions, BulkSyncResult, ByteEncoding, ByteInput, CWIStyleWalletManager, Certifier, type Chain, Chaintracks, ChaintracksApi, ChaintracksAppendableFileApi, ChaintracksArgumentsTail, ChaintracksBulkDataStatsApi, ChaintracksChainTracker, ChaintracksChainTrackerOptions, ChaintracksClientApi, ChaintracksFetch, ChaintracksFetchApi, ChaintracksFetchError, ChaintracksFetchOptions, ChaintracksFsApi, ChaintracksInfoApi, ChaintracksIngestorParams, ChaintracksManagementApi, ChaintracksOptions, ChaintracksPackageInfoApi, ChaintracksReadableFileApi, ChaintracksServiceClient, ChaintracksServiceClientOptions, ChaintracksSourceOptions, ChaintracksSourceStatusApi, ChaintracksStorageApi, ChaintracksStorageBase, ChaintracksStorageBaseOptions, ChaintracksStorageBulkFileApi, ChaintracksStorageIdb, ChaintracksStorageIdbOptions, ChaintracksStorageIdbSchema, ChaintracksStorageIngestApi, ChaintracksStorageNoDb, ChaintracksStorageNoDbOptions, ChaintracksStorageQueryApi, ChaintracksWritableFileApi, CompleteAuthResponse, ContactRecord, ContactSource, CounterpartyPermissionEventHandler, CounterpartyPermissionRequest, CounterpartyPermissions, CreatedChaintracks, DEFAULT_MANAGED_CHANGE_MAX_OUTPUTS_PER_ACTION, DEFAULT_MANAGED_CHANGE_MIGRATION_INPUTS_PER_ACTION, DEFAULT_MANAGED_CHANGE_MINIMUM_SATOSHIS, DEFAULT_MANAGED_CHANGE_PENDING_COMPARISON_INPUTS, DEFAULT_MANAGED_CHANGE_TARGET_UTXOS, DEFAULT_PROFILE_ID, DEFAULT_SETTINGS, DeactivedHeader, DefaultChaintracksArguments, DevConsoleInteractor, EnqueueHandler, EntityBase, EntityCertificate, EntityCertificateField, EntityCommission, EntityOutput, EntityOutputBasket, EntityOutputTag, EntityOutputTagMap, EntityProvenTx, EntityProvenTxReq, EntityStorage, EntitySyncMap, EntitySyncState, EntityTransaction, EntityTxLabel, EntityTxLabelMap, EntityUser, ErrorHandler, FixedWindowBulkFileDownloadBudget, FixedWindowBulkFileDownloadBudgetOptions, GetHeaderByteFileLinksResult, GoChaintracksServiceClient, GoChaintracksServiceClientOptions, GroupedPermissionEventHandler, GroupedPermissionRequest, GroupedPermissions, HeaderListener, HeightRange, HeightRangeApi, HeightRanges, InsertHeaderResult, KDF_MAX_HASH_LENGTH, KdfConfig, KeyPairAddress, LEGACY_MANAGED_CHANGE_MINIMUM_SATOSHIS, LineItemType, ListActionsSpecOp, ListOutputsSpecOp, LiveBlockHeader, LiveIngestorApi, LiveIngestorBase, LiveIngestorBaseOptions, LiveIngestorChaintracksSSE, LiveIngestorChaintracksSSEOptions, LiveIngestorWhatsOnChainOptions, LiveIngestorWhatsOnChainPoll, LocalChainTracker, LocalChainTrackerConsistency, LocalChainTrackerMode, LocalChainTrackerOptions, LocalChainTrackerRecoveryEvidence, LocalChainTrackerStatus, MAX_STATE_SNAPSHOT_BYTES, ManagedChangeBasketDefaults, ManagedChangePolicy, ManagedChangePolicyOptions, MergeEntity, Monitor, MonitorOptions, MonitorStartupTaskMode, MonitorStorage, OverlayUMPTokenInteractor, PBKDF2_MAX_ITERATIONS, PBKDF2_NUM_ROUNDS, ParsedBrc114ActionTimeLabels, PendingSignAction, PendingStorageInput, PermissionEventHandler, PermissionRequest, PermissionToken, PermissionsManagerConfig, PermissionsModule, PersonaIDInteractor, PrivilegedKeyManager, Profile, ProvenTxFromTxidResult, ProvenTxReqHistory, ProvenTxReqHistorySummaryApi, ProvenTxReqNotify, ReorgListener, ResolvedDefaultChaintracksParams, ScriptTemplateBRC29, ScriptTemplateParamsBRC29, SecurityLevel, Services, SetupClient, SetupClientWalletArgs, SetupClientWalletClientArgs, SetupWallet, SetupWalletClient, SetupWalletIdb, SetupWalletIdbArgs, SimpleWalletManager, StartAuthResponse, StorageAdminStats, StorageClient, StorageIdb, StorageIdbOptions, StorageProvider, StorageProviderOptions, StorageSyncReader, SyncError, SyncMap, TESTNET_DEFAULT_SETTINGS, TableActionBatch, TableActionBatchBlob, TableActionBatchOutput, TableAuthSession, TableCertificate, TableCertificateField, TableCertificateX, TableCommission, TableMonitorEvent, TableOutput, TableOutputBasket, TableOutputTag, TableOutputTagMap, TableOutputX, TableProvenTx, TableProvenTxReq, TableProvenTxReqDynamics, TableSettings, TableSyncState, TableTransaction, TableTxLabel, TableTxLabelMap, TableUser, TrustSettings, TscMerkleProofApi, TwilioPhoneInteractor, TxScriptOffsets, UMPToken, UMPTokenInteractor, UMPTokenLookupDiagnostics, UMPTokenLookupError, UMPTokenLookupFailureReason, VerifyAndRepairBeefResult, WABAccountContinuityError, WABClient, WABClientError, WABClientErrorCode, WABClientErrorOptions, WABClientOptions, WABFaucetResponse, WABOperationResponse, WABRequestOptions, WABServerInfo, WABTransport, WABTransportOptions, Wallet, WalletArgs, WalletAuthenticationManager, WalletAuthenticationManagerOptions, WalletLogger, WalletLoggerArgs, WalletLoggerLevel, WalletPermissionsManager, WalletPermissionsManagerCallbacks, WalletSettings, WalletSettingsManager, WalletSettingsManagerConfig, WalletSigner, WalletStorageManager, WalletTheme, WhatsOnChainServices, WhatsOnChainServicesOptions, WocGetHeaderByteFileLinks, WocGetHeadersHeader, applyBrc153ReferenceLabel, arcDefaultUrl, arcGorillaPoolUrl, arcadeDefaultUrl, arraysEqual, asArray, asBsvSdkPrivateKey, asBsvSdkPublickKey, asBsvSdkScript, asBsvSdkTx, asString, asUint8Array, brc29ProtocolID, buildChaintracksOptionsWithIngestors, convertProofToMerklePath, createAndStartDefaultChaintracks, createDefaultBulkFileDataManager, createDefaultChaintracksClient, createDefaultChaintracksStorageOptions, createDefaultIdbChaintracksOptions, createDefaultNoDbChaintracksOptions, createDefaultWalletServicesOptions, createIdbChaintracks, createNoDbChaintracks, createSyncMap, decryptBRC39, defaultManagedChangePolicy, doubleSha256BE, doubleSha256LE, encryptBRC39, exportBRC38, exportBRC38Json, exportBRC39, getIdentityKey, getLabelToSpecOp, getListOutputsSpecOp, importBRC38, importBRC39, isAutoSpendableChangeOutput, isBaseBlockHeader, isBlockHeader, isBrc153ReferenceLabel, isLegacyManagedChangeBasketDefault, isLive, isLiveBlockHeader, isManagedChangeOutput, logCreateActionArgs, logWalletError, logger, makeAtomicBeef, makeBrc114ActionTimeLabel, makeBrc153ReferenceLabel, managedChangeOutputFields, maxDate, optionalArraysEqual, outputColumnsWithoutLockingScript, parseBRC38Json, parseBrc114ActionTimeLabels, parseBrc153ReferenceLabel, parseFileLink, parseTxScriptOffsets, partitionActionLabels, randomBytes, randomBytesBase64, randomBytesHex, resolveDefaultChaintracksArguments, index_d_exports as sdk, selectBulkHeaderFiles, sha256Hash, stampLog, stampLogFormat, startChaintracks, tableAuthSessionToPeerSession, throwDummyReviewActions, toBinaryBaseBlockHeader, toDefaultChaintracksArguments, toLookupNetworkPreset, toWalletNetwork, transactionColumnsWithoutRawTx, upgradeLegacyManagedChangeBasketDefault, blockHeaderUtilities_d_exports as utils, validateManagedChangePolicy, validateScriptHash, validateSecondsSinceEpoch, validateStorageFeeModel, verifyHexString, verifyId, verifyInteger, verifyNumber, verifyOne, verifyOneOrNone, verifyOptionalHexString, verifyTruthy, wait, wocGetHeadersHeaderToBlockHeader };
|
|
11598
|
+
export { ARGON2ID_DEFAULT_HASH_LENGTH, ARGON2ID_DEFAULT_ITERATIONS, ARGON2ID_DEFAULT_MEMORY_KIB, ARGON2ID_DEFAULT_PARALLELISM, ARGON2ID_MAX_ITERATIONS, ARGON2ID_MAX_MEMORY_KIB, ARGON2ID_MAX_PARALLELISM, ActionBatchStatus, AdminStatsResult, AnyBlockHeader, AuthMethodInteractor, AuthPayload, BHServiceClient, BRC153_REFERENCE_PREFIX, BRC38ImportOptions, BRC38ImportResult, BRC38Tables, BRC38WalletData, BRC39Options, type BaseBlockHeader, type BlockHeader, BulkFileDataCacheApi, BulkFileDataManager, BulkFileDataManagerMergeResult, BulkFileDataManagerOptions, BulkFileDataManagerStats, BulkFileDataReader, BulkFileDataValidationError, BulkFileDataValidationRequest, BulkFileDataValidationResult, BulkFileDataValidatorApi, BulkFileDataValidatorStats, BulkFileDownloadBudgetApi, BulkFileDownloadBudgetSnapshot, BulkFilesReader, BulkFilesReaderFs, BulkFilesReaderStorage, BulkHeaderFile, BulkHeaderFileFs, BulkHeaderFileInfo, BulkHeaderFileStorage, BulkHeaderFiles, BulkHeaderFilesInfo, BulkIngestorApi, BulkIngestorBase, BulkIngestorBaseOptions, BulkIngestorCDN, BulkIngestorCDNBabbage, BulkIngestorCDNOptions, BulkIngestorChaintracks, BulkIngestorChaintracksOptions, BulkIngestorWhatsOnChainCdn, BulkIngestorWhatsOnChainOptions, BulkStorageApi, BulkStorageBase, BulkStorageBaseOptions, BulkSyncResult, ByteEncoding, ByteInput, CWIStyleWalletManager, Certifier, type Chain, Chaintracks, ChaintracksApi, ChaintracksAppendableFileApi, ChaintracksArgumentsTail, ChaintracksAvailabilitySnapshotApi, ChaintracksBulkDataStatsApi, ChaintracksChainTracker, ChaintracksChainTrackerOptions, ChaintracksClientApi, ChaintracksDownloadOptions, ChaintracksFetch, ChaintracksFetchApi, ChaintracksFetchError, ChaintracksFetchOptions, ChaintracksFsApi, ChaintracksInfoApi, ChaintracksIngestorParams, ChaintracksManagementApi, ChaintracksOptions, ChaintracksPackageInfoApi, ChaintracksReadableFileApi, ChaintracksServiceClient, ChaintracksServiceClientOptions, ChaintracksSourceOptions, ChaintracksSourceStatusApi, ChaintracksStorageApi, ChaintracksStorageBase, ChaintracksStorageBaseOptions, ChaintracksStorageBulkFileApi, ChaintracksStorageIdb, ChaintracksStorageIdbOptions, ChaintracksStorageIdbSchema, ChaintracksStorageIngestApi, ChaintracksStorageNoDb, ChaintracksStorageNoDbOptions, ChaintracksStorageQueryApi, ChaintracksWritableFileApi, CompleteAuthResponse, ContactRecord, ContactSource, CounterpartyPermissionEventHandler, CounterpartyPermissionRequest, CounterpartyPermissions, CreatedChaintracks, DEFAULT_MANAGED_CHANGE_MAX_OUTPUTS_PER_ACTION, DEFAULT_MANAGED_CHANGE_MIGRATION_INPUTS_PER_ACTION, DEFAULT_MANAGED_CHANGE_MINIMUM_SATOSHIS, DEFAULT_MANAGED_CHANGE_PENDING_COMPARISON_INPUTS, DEFAULT_MANAGED_CHANGE_TARGET_UTXOS, DEFAULT_PROFILE_ID, DEFAULT_SETTINGS, DeactivedHeader, DefaultChaintracksArguments, DevConsoleInteractor, EnqueueHandler, EntityBase, EntityCertificate, EntityCertificateField, EntityCommission, EntityOutput, EntityOutputBasket, EntityOutputTag, EntityOutputTagMap, EntityProvenTx, EntityProvenTxReq, EntityStorage, EntitySyncMap, EntitySyncState, EntityTransaction, EntityTxLabel, EntityTxLabelMap, EntityUser, ErrorHandler, FixedWindowBulkFileDownloadBudget, FixedWindowBulkFileDownloadBudgetOptions, GetHeaderByteFileLinksResult, GoChaintracksServiceClient, GoChaintracksServiceClientOptions, GroupedPermissionEventHandler, GroupedPermissionRequest, GroupedPermissions, HeaderListener, HeightRange, HeightRangeApi, HeightRanges, InlineBulkFileDataValidator, InsertHeaderResult, KDF_MAX_HASH_LENGTH, KdfConfig, KeyPairAddress, LEGACY_MANAGED_CHANGE_MINIMUM_SATOSHIS, LineItemType, ListActionsSpecOp, ListOutputsSpecOp, LiveBlockHeader, LiveIngestorApi, LiveIngestorBase, LiveIngestorBaseOptions, LiveIngestorChaintracksSSE, LiveIngestorChaintracksSSEOptions, LiveIngestorWhatsOnChainOptions, LiveIngestorWhatsOnChainPoll, LocalChainTracker, LocalChainTrackerConsistency, LocalChainTrackerMode, LocalChainTrackerOptions, LocalChainTrackerRecoveryEvidence, LocalChainTrackerStatus, MAX_STATE_SNAPSHOT_BYTES, ManagedChangeBasketDefaults, ManagedChangePolicy, ManagedChangePolicyOptions, MergeEntity, Monitor, MonitorOptions, MonitorStartupTaskMode, MonitorStorage, OverlayUMPTokenInteractor, PBKDF2_MAX_ITERATIONS, PBKDF2_NUM_ROUNDS, ParsedBrc114ActionTimeLabels, PendingSignAction, PendingStorageInput, PermissionEventHandler, PermissionRequest, PermissionToken, PermissionsManagerConfig, PermissionsModule, PersonaIDInteractor, PrivilegedKeyManager, Profile, ProvenTxFromTxidResult, ProvenTxReqHistory, ProvenTxReqHistorySummaryApi, ProvenTxReqNotify, ReorgListener, ResolvedDefaultChaintracksParams, ScriptTemplateBRC29, ScriptTemplateParamsBRC29, SecurityLevel, Services, SetupClient, SetupClientWalletArgs, SetupClientWalletClientArgs, SetupWallet, SetupWalletClient, SetupWalletIdb, SetupWalletIdbArgs, SimpleWalletManager, StartAuthResponse, StorageAdminStats, StorageClient, StorageIdb, StorageIdbOptions, StorageProvider, StorageProviderOptions, StorageSyncReader, SyncError, SyncMap, TESTNET_DEFAULT_SETTINGS, TableActionBatch, TableActionBatchBlob, TableActionBatchOutput, TableAuthSession, TableCertificate, TableCertificateField, TableCertificateX, TableCommission, TableMonitorEvent, TableOutput, TableOutputBasket, TableOutputTag, TableOutputTagMap, TableOutputX, TableProvenTx, TableProvenTxReq, TableProvenTxReqDynamics, TableSettings, TableSyncState, TableTransaction, TableTxLabel, TableTxLabelMap, TableUser, TrustSettings, TscMerkleProofApi, TwilioPhoneInteractor, TxScriptOffsets, UMPToken, UMPTokenInteractor, UMPTokenLookupDiagnostics, UMPTokenLookupError, UMPTokenLookupFailureReason, UMPTokenLookupOptions, VerifyAndRepairBeefResult, WABAccountContinuityError, WABClient, WABClientError, WABClientErrorCode, WABClientErrorOptions, WABClientOptions, WABFaucetResponse, WABOperationResponse, WABRequestOptions, WABServerInfo, WABTransport, WABTransportOptions, Wallet, WalletArgs, WalletAuthenticationManager, WalletAuthenticationManagerOptions, WalletLogger, WalletLoggerArgs, WalletLoggerLevel, WalletPermissionsManager, WalletPermissionsManagerCallbacks, WalletSettings, WalletSettingsManager, WalletSettingsManagerConfig, WalletSigner, WalletStorageManager, WalletTheme, WhatsOnChainServices, WhatsOnChainServicesOptions, WocGetHeaderByteFileLinks, WocGetHeadersHeader, applyBrc153ReferenceLabel, arcDefaultUrl, arcGorillaPoolUrl, arcadeDefaultUrl, arraysEqual, asArray, asBsvSdkPrivateKey, asBsvSdkPublickKey, asBsvSdkScript, asBsvSdkTx, asString, asUint8Array, brc29ProtocolID, buildChaintracksOptionsWithIngestors, convertProofToMerklePath, createAndStartDefaultChaintracks, createDefaultBulkFileDataManager, createDefaultChaintracksClient, createDefaultChaintracksStorageOptions, createDefaultIdbChaintracksOptions, createDefaultNoDbChaintracksOptions, createDefaultWalletServicesOptions, createIdbChaintracks, createNoDbChaintracks, createSyncMap, decryptBRC39, defaultManagedChangePolicy, doubleSha256BE, doubleSha256LE, encryptBRC39, exportBRC38, exportBRC38Json, exportBRC39, getIdentityKey, getLabelToSpecOp, getListOutputsSpecOp, importBRC38, importBRC39, isAutoSpendableChangeOutput, isBaseBlockHeader, isBlockHeader, isBrc153ReferenceLabel, isLegacyManagedChangeBasketDefault, isLive, isLiveBlockHeader, isManagedChangeOutput, logCreateActionArgs, logWalletError, logger, makeAtomicBeef, makeBrc114ActionTimeLabel, makeBrc153ReferenceLabel, managedChangeOutputFields, maxDate, optionalArraysEqual, outputColumnsWithoutLockingScript, parseBRC38Json, parseBrc114ActionTimeLabels, parseBrc153ReferenceLabel, parseFileLink, parseTxScriptOffsets, partitionActionLabels, randomBytes, randomBytesBase64, randomBytesHex, resolveDefaultChaintracksArguments, index_d_exports as sdk, selectBulkHeaderFiles, sha256Hash, stampLog, stampLogFormat, startChaintracks, tableAuthSessionToPeerSession, throwDummyReviewActions, toBinaryBaseBlockHeader, toDefaultChaintracksArguments, toLookupNetworkPreset, toWalletNetwork, transactionColumnsWithoutRawTx, upgradeLegacyManagedChangeBasketDefault, blockHeaderUtilities_d_exports as utils, validateManagedChangePolicy, validateScriptHash, validateSecondsSinceEpoch, validateStorageFeeModel, verifyHexString, verifyId, verifyInteger, verifyNumber, verifyOne, verifyOneOrNone, verifyOptionalHexString, verifyTruthy, wait, wocGetHeadersHeaderToBlockHeader };
|
|
11403
11599
|
//# sourceMappingURL=index.client.d.cts.map
|