@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.mts
CHANGED
|
@@ -829,6 +829,28 @@ interface ChaintracksBulkDataStatsApi {
|
|
|
829
829
|
coalescedLoads: number;
|
|
830
830
|
downloads: number;
|
|
831
831
|
downloadedBytes: number;
|
|
832
|
+
loadBackoffs: number;
|
|
833
|
+
/** Worker or portable validator statistics when the implementation exposes them. */
|
|
834
|
+
validation?: {
|
|
835
|
+
submitted: number;
|
|
836
|
+
completed: number;
|
|
837
|
+
failed: number;
|
|
838
|
+
rejected: number;
|
|
839
|
+
workerRestarts: number;
|
|
840
|
+
inFlight: number;
|
|
841
|
+
queued: number;
|
|
842
|
+
maxQueueDepth: number;
|
|
843
|
+
totalValidationMsecs: number;
|
|
844
|
+
maxValidationMsecs: number;
|
|
845
|
+
};
|
|
846
|
+
/** Durable download reservation state when configured. */
|
|
847
|
+
downloadBudget?: {
|
|
848
|
+
maxBytes: number;
|
|
849
|
+
consumedBytes: number;
|
|
850
|
+
remainingBytes: number;
|
|
851
|
+
windowStartedAt: number;
|
|
852
|
+
windowMsecs: number;
|
|
853
|
+
};
|
|
832
854
|
}
|
|
833
855
|
/** @public */
|
|
834
856
|
interface ChaintracksSourceStatusApi {
|
|
@@ -839,6 +861,17 @@ interface ChaintracksSourceStatusApi {
|
|
|
839
861
|
lastFailure?: string;
|
|
840
862
|
error?: string;
|
|
841
863
|
}
|
|
864
|
+
/** Constant-time, local-only process state for probes and operators. @public */
|
|
865
|
+
interface ChaintracksAvailabilitySnapshotApi {
|
|
866
|
+
available: boolean;
|
|
867
|
+
startupError?: string;
|
|
868
|
+
presentHeight?: number;
|
|
869
|
+
presentHeightUpdatedAt?: string;
|
|
870
|
+
presentHeightRefreshInFlight: boolean;
|
|
871
|
+
mainLoopHeartbeatAt?: string;
|
|
872
|
+
sources: ChaintracksSourceStatusApi[];
|
|
873
|
+
bulkData: ChaintracksBulkDataStatsApi;
|
|
874
|
+
}
|
|
842
875
|
/**
|
|
843
876
|
* Chaintracks client API excluding events and callbacks
|
|
844
877
|
* @public
|
|
@@ -3246,7 +3279,7 @@ declare class EntitySyncState extends EntityBase<TableSyncState> {
|
|
|
3246
3279
|
mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableSyncState, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>;
|
|
3247
3280
|
makeRequestSyncChunkArgs(forIdentityKey: string, forStorageIdentityKey: string, maxRoughSize?: number, maxItems?: number): RequestSyncChunkArgs;
|
|
3248
3281
|
static syncChunkSummary(c: SyncChunk): string;
|
|
3249
|
-
processSyncChunk(writer: EntityStorage, args: RequestSyncChunkArgs, chunk: SyncChunk): Promise<{
|
|
3282
|
+
processSyncChunk(writer: EntityStorage, args: RequestSyncChunkArgs, chunk: SyncChunk, trx?: TrxToken): Promise<{
|
|
3250
3283
|
done: boolean;
|
|
3251
3284
|
maxUpdated_at: Date | undefined;
|
|
3252
3285
|
updates: number;
|
|
@@ -5676,6 +5709,11 @@ interface ChaintracksFsApi {
|
|
|
5676
5709
|
}
|
|
5677
5710
|
//#endregion
|
|
5678
5711
|
//#region ../src/services/chaintracker/chaintracks/Api/ChaintracksFetchApi.d.ts
|
|
5712
|
+
/** @public */
|
|
5713
|
+
interface ChaintracksDownloadOptions {
|
|
5714
|
+
/** Called immediately before each retry after the initial request. */
|
|
5715
|
+
beforeRetry?: (attempt: number) => void | Promise<void>;
|
|
5716
|
+
}
|
|
5679
5717
|
/**
|
|
5680
5718
|
* Provides a simplified interface based on the @bsv/sdk `HttpClient` class
|
|
5681
5719
|
* with just the methods necesary for most Chaintracks operations.
|
|
@@ -5688,7 +5726,7 @@ interface ChaintracksFsApi {
|
|
|
5688
5726
|
*/
|
|
5689
5727
|
interface ChaintracksFetchApi {
|
|
5690
5728
|
httpClient: HttpClient;
|
|
5691
|
-
download(url: string, maxResponseBytes?: number): Promise<Uint8Array>;
|
|
5729
|
+
download(url: string, maxResponseBytes?: number, options?: ChaintracksDownloadOptions): Promise<Uint8Array>;
|
|
5692
5730
|
fetchJson<R>(url: string): Promise<R>;
|
|
5693
5731
|
pathJoin(baseUrl: string, subpath: string): string;
|
|
5694
5732
|
}
|
|
@@ -5727,6 +5765,19 @@ declare class BulkFileDataReader {
|
|
|
5727
5765
|
interface BulkFileDataCacheApi {
|
|
5728
5766
|
get(file: Readonly<BulkHeaderFileInfo>): Promise<Uint8Array | undefined>;
|
|
5729
5767
|
set(file: Readonly<BulkHeaderFileInfo>, data: Uint8Array): Promise<void>;
|
|
5768
|
+
/**
|
|
5769
|
+
* Preserve a rejected object outside the active cache namespace. The manager
|
|
5770
|
+
* calls this before attempting a replacement and never removes a last-good
|
|
5771
|
+
* object merely because a newer source is unavailable.
|
|
5772
|
+
*/
|
|
5773
|
+
quarantine?(file: Readonly<BulkHeaderFileInfo>, reason: string,
|
|
5774
|
+
/** Exact rejected bytes, used to avoid quarantining a concurrent replacement. */
|
|
5775
|
+
rejectedData?: Uint8Array): Promise<void>;
|
|
5776
|
+
/**
|
|
5777
|
+
* Promote a validated legacy entry into the implementation's preferred
|
|
5778
|
+
* immutable namespace. Implementations should make this idempotent.
|
|
5779
|
+
*/
|
|
5780
|
+
promoteValidated?(file: Readonly<BulkHeaderFileInfo>, data: Uint8Array): Promise<void>;
|
|
5730
5781
|
delete?(file: Readonly<BulkHeaderFileInfo>): Promise<void>;
|
|
5731
5782
|
}
|
|
5732
5783
|
/**
|
|
@@ -5738,6 +5789,85 @@ interface BulkFileDataCacheApi {
|
|
|
5738
5789
|
*/
|
|
5739
5790
|
interface BulkFileDownloadBudgetApi {
|
|
5740
5791
|
consume(byteCount: number): void | Promise<void>;
|
|
5792
|
+
snapshot?(): BulkFileDownloadBudgetSnapshot;
|
|
5793
|
+
}
|
|
5794
|
+
/** @public */
|
|
5795
|
+
interface BulkFileDownloadBudgetSnapshot {
|
|
5796
|
+
maxBytes: number;
|
|
5797
|
+
consumedBytes: number;
|
|
5798
|
+
remainingBytes: number;
|
|
5799
|
+
windowStartedAt: number;
|
|
5800
|
+
windowMsecs: number;
|
|
5801
|
+
}
|
|
5802
|
+
//#endregion
|
|
5803
|
+
//#region ../src/services/chaintracker/chaintracks/Api/BulkFileDataValidatorApi.d.ts
|
|
5804
|
+
/**
|
|
5805
|
+
* Identifies deterministic rejection of the supplied immutable bytes.
|
|
5806
|
+
* Operational failures such as worker crashes and queue saturation deliberately
|
|
5807
|
+
* use ordinary errors so callers preserve the cache entry and avoid downloading
|
|
5808
|
+
* a replacement that cannot be validated.
|
|
5809
|
+
*
|
|
5810
|
+
* @public
|
|
5811
|
+
*/
|
|
5812
|
+
declare class BulkFileDataValidationError extends Error {
|
|
5813
|
+
readonly data?: Uint8Array | undefined;
|
|
5814
|
+
constructor(message: string, data?: Uint8Array | undefined);
|
|
5815
|
+
}
|
|
5816
|
+
/**
|
|
5817
|
+
* Complete immutable bulk-header object supplied to a validator.
|
|
5818
|
+
*
|
|
5819
|
+
* Implementations must validate the exact byte length and digest as well as
|
|
5820
|
+
* every header's linkage, chain work, genesis, and proof of work.
|
|
5821
|
+
*
|
|
5822
|
+
* @public
|
|
5823
|
+
*/
|
|
5824
|
+
interface BulkFileDataValidationRequest {
|
|
5825
|
+
fileName: string;
|
|
5826
|
+
data: Uint8Array;
|
|
5827
|
+
count: number;
|
|
5828
|
+
/** Expected base64 SHA-256 digest. Omit only while producing a new export. */
|
|
5829
|
+
fileHash?: string;
|
|
5830
|
+
firstHeight: number;
|
|
5831
|
+
prevHash: string;
|
|
5832
|
+
prevChainWork: string;
|
|
5833
|
+
lastHash?: string | null;
|
|
5834
|
+
lastChainWork?: string | null;
|
|
5835
|
+
chain?: Chain;
|
|
5836
|
+
}
|
|
5837
|
+
/** @public */
|
|
5838
|
+
interface BulkFileDataValidationResult {
|
|
5839
|
+
/** The validated bytes. Worker implementations may transfer ownership. */
|
|
5840
|
+
data: Uint8Array;
|
|
5841
|
+
fileHash: string;
|
|
5842
|
+
lastHeaderHash: string;
|
|
5843
|
+
lastChainWork: string;
|
|
5844
|
+
}
|
|
5845
|
+
/** @public */
|
|
5846
|
+
interface BulkFileDataValidatorStats {
|
|
5847
|
+
submitted: number;
|
|
5848
|
+
completed: number;
|
|
5849
|
+
failed: number;
|
|
5850
|
+
rejected: number;
|
|
5851
|
+
workerRestarts: number;
|
|
5852
|
+
inFlight: number;
|
|
5853
|
+
queued: number;
|
|
5854
|
+
maxQueueDepth: number;
|
|
5855
|
+
totalValidationMsecs: number;
|
|
5856
|
+
maxValidationMsecs: number;
|
|
5857
|
+
}
|
|
5858
|
+
/**
|
|
5859
|
+
* Asynchronous validation boundary for immutable bulk-header objects.
|
|
5860
|
+
*
|
|
5861
|
+
* Portable runtimes may validate in-process. Node services can inject a
|
|
5862
|
+
* worker-backed implementation so proof-of-work validation never blocks the
|
|
5863
|
+
* request event loop.
|
|
5864
|
+
*
|
|
5865
|
+
* @public
|
|
5866
|
+
*/
|
|
5867
|
+
interface BulkFileDataValidatorApi {
|
|
5868
|
+
validate(request: BulkFileDataValidationRequest): Promise<BulkFileDataValidationResult>;
|
|
5869
|
+
getStats?(): BulkFileDataValidatorStats;
|
|
5870
|
+
destroy?(): Promise<void>;
|
|
5741
5871
|
}
|
|
5742
5872
|
//#endregion
|
|
5743
5873
|
//#region ../src/services/chaintracker/chaintracks/util/BulkFileDataManager.d.ts
|
|
@@ -5751,6 +5881,10 @@ interface BulkFileDataManagerOptions {
|
|
|
5751
5881
|
cache?: BulkFileDataCacheApi;
|
|
5752
5882
|
/** Optional process-local or shared reservation budget for remote bytes. */
|
|
5753
5883
|
downloadBudget?: BulkFileDownloadBudgetApi;
|
|
5884
|
+
/** Complete-object validator. Node services should inject a worker-backed implementation. */
|
|
5885
|
+
validator?: BulkFileDataValidatorApi;
|
|
5886
|
+
/** Cooldown after a failed load before the same immutable object can retry. */
|
|
5887
|
+
failedLoadRetryMsecs?: number;
|
|
5754
5888
|
}
|
|
5755
5889
|
/** @public */
|
|
5756
5890
|
interface BulkFileDataManagerStats {
|
|
@@ -5762,6 +5896,9 @@ interface BulkFileDataManagerStats {
|
|
|
5762
5896
|
coalescedLoads: number;
|
|
5763
5897
|
downloads: number;
|
|
5764
5898
|
downloadedBytes: number;
|
|
5899
|
+
loadBackoffs: number;
|
|
5900
|
+
validation?: BulkFileDataValidatorStats;
|
|
5901
|
+
downloadBudget?: BulkFileDownloadBudgetSnapshot;
|
|
5765
5902
|
}
|
|
5766
5903
|
/**
|
|
5767
5904
|
* Manages bulk file data (typically 8MB chunks of 100,000 headers each).
|
|
@@ -5779,6 +5916,7 @@ declare class BulkFileDataManager {
|
|
|
5779
5916
|
private fileHashToIndex;
|
|
5780
5917
|
private readonly lock;
|
|
5781
5918
|
private readonly inFlightLoads;
|
|
5919
|
+
private readonly failedLoads;
|
|
5782
5920
|
private storage?;
|
|
5783
5921
|
private readonly stats;
|
|
5784
5922
|
readonly chain: Chain;
|
|
@@ -5788,6 +5926,8 @@ declare class BulkFileDataManager {
|
|
|
5788
5926
|
readonly fromKnownSourceUrl?: string;
|
|
5789
5927
|
readonly cache?: BulkFileDataCacheApi;
|
|
5790
5928
|
readonly downloadBudget?: BulkFileDownloadBudgetApi;
|
|
5929
|
+
readonly validator: BulkFileDataValidatorApi;
|
|
5930
|
+
readonly failedLoadRetryMsecs: number;
|
|
5791
5931
|
constructor(options: BulkFileDataManagerOptions | Chain);
|
|
5792
5932
|
getStats(): BulkFileDataManagerStats;
|
|
5793
5933
|
deleteBulkFiles(): Promise<void>;
|
|
@@ -5816,6 +5956,7 @@ declare class BulkFileDataManager {
|
|
|
5816
5956
|
getBulkFiles(keepData?: boolean): Promise<BulkHeaderFileInfo[]>;
|
|
5817
5957
|
getHeightRange(): Promise<HeightRange>;
|
|
5818
5958
|
getDataFromFile(file: BulkHeaderFileInfo, offset?: number, length?: number): Promise<Uint8Array | undefined>;
|
|
5959
|
+
private getDataFromSnapshot;
|
|
5819
5960
|
private getDataFromFileNoLock;
|
|
5820
5961
|
findHeaderForHeightOrUndefined(height: number): Promise<BlockHeader | undefined>;
|
|
5821
5962
|
getFileForHeight(height: number): Promise<BulkHeaderFileInfo | undefined>;
|
|
@@ -5883,9 +6024,13 @@ declare class BulkFileDataManager {
|
|
|
5883
6024
|
*/
|
|
5884
6025
|
private ensureData;
|
|
5885
6026
|
private loadAndValidateData;
|
|
6027
|
+
private loadFromStorage;
|
|
6028
|
+
private loadFromCache;
|
|
6029
|
+
private loadFromRemote;
|
|
5886
6030
|
private validateRetrievedData;
|
|
5887
6031
|
private ensureMaxRetained;
|
|
5888
6032
|
exportHeadersToFs(toFs: ChaintracksFsApi, toHeadersPerFile: number, toFolder: string, sourceUrl?: string, maxHeight?: number): Promise<void>;
|
|
6033
|
+
destroy(): Promise<void>;
|
|
5889
6034
|
}
|
|
5890
6035
|
interface BulkFileData extends BulkHeaderFileInfo {
|
|
5891
6036
|
mru: number;
|
|
@@ -6658,16 +6803,22 @@ declare class Chaintracks implements ChaintracksManagementApi {
|
|
|
6658
6803
|
private lastPresentHeight;
|
|
6659
6804
|
private lastPresentHeightMsecs;
|
|
6660
6805
|
private readonly lastPresentHeightMaxAge;
|
|
6806
|
+
private presentHeightRefresh?;
|
|
6807
|
+
private mainLoopHeartbeatMsecs;
|
|
6661
6808
|
private readonly lock;
|
|
6662
6809
|
private readonly sourceStatus;
|
|
6663
6810
|
constructor(options: ChaintracksOptions);
|
|
6664
6811
|
getChain(): Promise<Chain>;
|
|
6665
6812
|
/**
|
|
6666
|
-
*
|
|
6667
|
-
*
|
|
6813
|
+
* Returns the last known valid height immediately and refreshes stale state
|
|
6814
|
+
* once in the background. Cold start waits for the single shared refresh.
|
|
6668
6815
|
*/
|
|
6669
6816
|
getPresentHeight(): Promise<number>;
|
|
6817
|
+
private refreshPresentHeight;
|
|
6818
|
+
private loadPresentHeight;
|
|
6670
6819
|
currentHeight(): Promise<number>;
|
|
6820
|
+
/** Returns local process state without locks, storage reads, or network I/O. */
|
|
6821
|
+
getAvailabilitySnapshot(): ChaintracksAvailabilitySnapshotApi;
|
|
6671
6822
|
subscribeHeaders(listener: HeaderListener): Promise<string>;
|
|
6672
6823
|
subscribeReorgs(listener: ReorgListener): Promise<string>;
|
|
6673
6824
|
unsubscribe(subscriptionId: string): Promise<boolean>;
|
|
@@ -7898,6 +8049,8 @@ interface ChaintracksSourceOptions {
|
|
|
7898
8049
|
bulkFileCache?: BulkFileDataCacheApi;
|
|
7899
8050
|
/** Optional byte budget applied before remote bulk-file downloads. */
|
|
7900
8051
|
bulkFileDownloadBudget?: BulkFileDownloadBudgetApi;
|
|
8052
|
+
/** Optional complete-object validator; Node services should use a bounded worker implementation. */
|
|
8053
|
+
bulkFileDataValidator?: BulkFileDataValidatorApi;
|
|
7901
8054
|
}
|
|
7902
8055
|
type ChaintracksArgumentsTail = [whatsonchainApiKey?: string, maxPerFile?: number, maxRetained?: number, fetch?: ChaintracksFetchApi, cdnUrl?: string, liveHeightThreshold?: number, reorgHeightThreshold?: number, bulkMigrationChunkSize?: number, batchInsertLimit?: number, addLiveRecursionLimit?: number, sources?: ChaintracksSourceOptions];
|
|
7903
8056
|
type DefaultChaintracksArguments = [chain: Chain, ...options: ChaintracksArgumentsTail];
|
|
@@ -8072,7 +8225,7 @@ declare class ChaintracksFetch implements ChaintracksFetchApi {
|
|
|
8072
8225
|
private readonly maxRetryMsecs;
|
|
8073
8226
|
private readonly random;
|
|
8074
8227
|
constructor(options?: ChaintracksFetchOptions);
|
|
8075
|
-
download(url: string, maxResponseBytes?: number): Promise<Uint8Array>;
|
|
8228
|
+
download(url: string, maxResponseBytes?: number, options?: ChaintracksDownloadOptions): Promise<Uint8Array>;
|
|
8076
8229
|
fetchJson<R>(url: string): Promise<R>;
|
|
8077
8230
|
private requestBytes;
|
|
8078
8231
|
private requestAttempt;
|
|
@@ -8106,10 +8259,23 @@ declare class FixedWindowBulkFileDownloadBudget implements BulkFileDownloadBudge
|
|
|
8106
8259
|
snapshot(): {
|
|
8107
8260
|
maxBytes: number;
|
|
8108
8261
|
consumedBytes: number;
|
|
8262
|
+
remainingBytes: number;
|
|
8109
8263
|
windowStartedAt: number;
|
|
8110
8264
|
windowMsecs: number;
|
|
8111
8265
|
};
|
|
8112
8266
|
}
|
|
8267
|
+
//#endregion
|
|
8268
|
+
//#region ../src/services/chaintracker/chaintracks/util/InlineBulkFileDataValidator.d.ts
|
|
8269
|
+
/**
|
|
8270
|
+
* Portable complete-object validator. Node services should normally inject
|
|
8271
|
+
* `NodeBulkFileDataValidator`; browser and mobile consumers retain this
|
|
8272
|
+
* dependency-free fallback.
|
|
8273
|
+
*
|
|
8274
|
+
* @public
|
|
8275
|
+
*/
|
|
8276
|
+
declare class InlineBulkFileDataValidator implements BulkFileDataValidatorApi {
|
|
8277
|
+
validate(request: BulkFileDataValidationRequest): Promise<BulkFileDataValidationResult>;
|
|
8278
|
+
}
|
|
8113
8279
|
declare namespace blockHeaderUtilities_d_exports {
|
|
8114
8280
|
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 };
|
|
8115
8281
|
}
|
|
@@ -9427,7 +9593,7 @@ interface UMPTokenInteractor {
|
|
|
9427
9593
|
* @returns The UMP token if found; otherwise, undefined.
|
|
9428
9594
|
* @throws Implementations should throw when no verified token or clean empty response is available.
|
|
9429
9595
|
*/
|
|
9430
|
-
findByPresentationKeyHash: (hash: number[]) => Promise<UMPToken | undefined>;
|
|
9596
|
+
findByPresentationKeyHash: (hash: number[], options?: UMPTokenLookupOptions) => Promise<UMPToken | undefined>;
|
|
9431
9597
|
/**
|
|
9432
9598
|
* Locates the latest valid copy of a UMP token (including its outpoint)
|
|
9433
9599
|
* based on the recovery key hash.
|
|
@@ -9436,7 +9602,7 @@ interface UMPTokenInteractor {
|
|
|
9436
9602
|
* @returns The UMP token if found; otherwise, undefined.
|
|
9437
9603
|
* @throws Implementations should throw when no verified token or clean empty response is available.
|
|
9438
9604
|
*/
|
|
9439
|
-
findByRecoveryKeyHash: (hash: number[]) => Promise<UMPToken | undefined>;
|
|
9605
|
+
findByRecoveryKeyHash: (hash: number[], options?: UMPTokenLookupOptions) => Promise<UMPToken | undefined>;
|
|
9440
9606
|
/**
|
|
9441
9607
|
* Creates (and optionally consumes the previous version of) a UMP token on-chain.
|
|
9442
9608
|
*
|
|
@@ -9449,6 +9615,14 @@ interface UMPTokenInteractor {
|
|
|
9449
9615
|
buildAndSend: (wallet: WalletInterface // This wallet MUST be the one built for the default profile
|
|
9450
9616
|
, adminOriginator: OriginatorDomainNameStringUnder250Bytes, token: UMPToken, oldTokenToConsume?: UMPToken) => Promise<OutpointString>;
|
|
9451
9617
|
}
|
|
9618
|
+
interface UMPTokenLookupOptions {
|
|
9619
|
+
/**
|
|
9620
|
+
* WAB-administered fallback used only when normal lineage resolution leaves
|
|
9621
|
+
* more than one verified matching token. The outpoint must be one of the
|
|
9622
|
+
* verified lookup candidates or it has no effect.
|
|
9623
|
+
*/
|
|
9624
|
+
pinnedOutpoint?: OutpointString;
|
|
9625
|
+
}
|
|
9452
9626
|
interface UMPTokenLookupDiagnostics {
|
|
9453
9627
|
hostCount: number;
|
|
9454
9628
|
completedHosts: number;
|
|
@@ -9512,7 +9686,7 @@ declare class OverlayUMPTokenInteractor implements UMPTokenInteractor {
|
|
|
9512
9686
|
* @param hash The 32-byte SHA-256 hash of the presentation key.
|
|
9513
9687
|
* @returns A UMPToken object (including currentOutpoint) if found, otherwise undefined.
|
|
9514
9688
|
*/
|
|
9515
|
-
findByPresentationKeyHash(hash: number[]): Promise<UMPToken | undefined>;
|
|
9689
|
+
findByPresentationKeyHash(hash: number[], options?: UMPTokenLookupOptions): Promise<UMPToken | undefined>;
|
|
9516
9690
|
/**
|
|
9517
9691
|
* Finds a UMP token on-chain by the given recovery key hash, if it exists.
|
|
9518
9692
|
* Uses the ls_users overlay service to perform the lookup.
|
|
@@ -9520,7 +9694,7 @@ declare class OverlayUMPTokenInteractor implements UMPTokenInteractor {
|
|
|
9520
9694
|
* @param hash The 32-byte SHA-256 hash of the recovery key.
|
|
9521
9695
|
* @returns A UMPToken object (including currentOutpoint) if found, otherwise undefined.
|
|
9522
9696
|
*/
|
|
9523
|
-
findByRecoveryKeyHash(hash: number[]): Promise<UMPToken | undefined>;
|
|
9697
|
+
findByRecoveryKeyHash(hash: number[], options?: UMPTokenLookupOptions): Promise<UMPToken | undefined>;
|
|
9524
9698
|
private findToken;
|
|
9525
9699
|
/**
|
|
9526
9700
|
* Picks the newest rendition among distinct verified tokens, when possible.
|
|
@@ -9541,19 +9715,19 @@ declare class OverlayUMPTokenInteractor implements UMPTokenInteractor {
|
|
|
9541
9715
|
* hash — on-chain proof that the candidate is an update of a same-identity
|
|
9542
9716
|
* predecessor rather than an independently minted token.
|
|
9543
9717
|
*/
|
|
9544
|
-
private
|
|
9718
|
+
private consumesIdentity;
|
|
9545
9719
|
/**
|
|
9546
9720
|
* Accumulates every outpoint spent by `tx` and by the ancestor transactions
|
|
9547
9721
|
* embedded in its BEEF, so supersession is detected even when intermediate
|
|
9548
9722
|
* renditions are absent from the lookup answer. Iterative so arbitrarily
|
|
9549
9723
|
* long update chains cannot exhaust the call stack.
|
|
9550
9724
|
*/
|
|
9551
|
-
private
|
|
9552
|
-
private
|
|
9553
|
-
private
|
|
9554
|
-
private
|
|
9555
|
-
private
|
|
9556
|
-
private
|
|
9725
|
+
private collectSpends;
|
|
9726
|
+
private emptyStats;
|
|
9727
|
+
private diagnosticsFor;
|
|
9728
|
+
private lookupAttrs;
|
|
9729
|
+
private lookupDone;
|
|
9730
|
+
private lookupFailed;
|
|
9557
9731
|
/**
|
|
9558
9732
|
* Creates or updates (replaces) a UMP token on-chain. If `oldTokenToConsume` is provided,
|
|
9559
9733
|
* it is spent in the same transaction that creates the new token output. The new token is
|
|
@@ -9569,18 +9743,18 @@ declare class OverlayUMPTokenInteractor implements UMPTokenInteractor {
|
|
|
9569
9743
|
buildAndSend(wallet: WalletInterface // This wallet MUST be the one built for the default profile
|
|
9570
9744
|
, adminOriginator: OriginatorDomainNameStringUnder250Bytes, token: UMPToken, oldTokenToConsume?: UMPToken): Promise<OutpointString>;
|
|
9571
9745
|
/** Assembles the ordered number[][] fields array from a UMPToken. */
|
|
9572
|
-
private
|
|
9746
|
+
private tokenFields;
|
|
9573
9747
|
/** Looks up the old token on the overlay; returns undefined resolved token if not found. */
|
|
9574
|
-
private
|
|
9748
|
+
private resolveOldInput;
|
|
9575
9749
|
/** Creates the UMP action without dropping a required old-token input on failure. */
|
|
9576
|
-
private
|
|
9750
|
+
private createAction;
|
|
9577
9751
|
/** Handles a fully-finalized (no signable tx) createAction result — broadcasts and returns outpoint. */
|
|
9578
|
-
private
|
|
9752
|
+
private broadcastFinal;
|
|
9579
9753
|
/** Signs the old-token input and broadcasts — used during UMP token renewal. */
|
|
9580
|
-
private
|
|
9754
|
+
private renewToken;
|
|
9581
9755
|
/** Signs without input spending and broadcasts — used when creating a brand-new UMP token. */
|
|
9582
|
-
private
|
|
9583
|
-
private
|
|
9756
|
+
private broadcastNew;
|
|
9757
|
+
private assertBroadcast;
|
|
9584
9758
|
/**
|
|
9585
9759
|
* Attempts to parse a LookupAnswer from the UMP lookup service. If successful,
|
|
9586
9760
|
* extracts the token fields from the resulting transaction and constructs
|
|
@@ -9591,7 +9765,7 @@ declare class OverlayUMPTokenInteractor implements UMPTokenInteractor {
|
|
|
9591
9765
|
*/
|
|
9592
9766
|
private parseLookupAnswer;
|
|
9593
9767
|
private parseLookupAnswers;
|
|
9594
|
-
private
|
|
9768
|
+
private parseOutput;
|
|
9595
9769
|
/**
|
|
9596
9770
|
* Finds by outpoint for unlocking / spending previous tokens.
|
|
9597
9771
|
* @param outpoint The outpoint we are searching by
|
|
@@ -9709,17 +9883,19 @@ declare class CWIStyleWalletManager implements WalletInterface {
|
|
|
9709
9883
|
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]);
|
|
9710
9884
|
private _init;
|
|
9711
9885
|
/**
|
|
9712
|
-
* Provides the presentation key.
|
|
9886
|
+
* Provides the presentation key. A WAB operator pin may be supplied by the
|
|
9887
|
+
* authentication manager; normal lookup and lineage resolution always run
|
|
9888
|
+
* before this ambiguity-only fallback.
|
|
9713
9889
|
*/
|
|
9714
|
-
providePresentationKey(key: number[]): Promise<void>;
|
|
9890
|
+
providePresentationKey(key: number[], lookupOptions?: UMPTokenLookupOptions): Promise<void>;
|
|
9715
9891
|
/**
|
|
9716
9892
|
* Provides the password.
|
|
9717
9893
|
*/
|
|
9718
9894
|
providePassword(password: string): Promise<void>;
|
|
9719
9895
|
/** Handles the password step for an existing user — derives keys, sets up infrastructure. */
|
|
9720
|
-
private
|
|
9896
|
+
private unlockExisting;
|
|
9721
9897
|
/** Handles the password step for a new user — generates keys, builds UMP token, publishes on-chain. */
|
|
9722
|
-
private
|
|
9898
|
+
private createNewUser;
|
|
9723
9899
|
/**
|
|
9724
9900
|
* Provides the recovery key.
|
|
9725
9901
|
*/
|
|
@@ -9805,12 +9981,12 @@ declare class CWIStyleWalletManager implements WalletInterface {
|
|
|
9805
9981
|
* @param getRoot If true and factorName is 'privilegedKey', returns the root privileged key bytes directly.
|
|
9806
9982
|
* @returns The decrypted key bytes.
|
|
9807
9983
|
*/
|
|
9808
|
-
|
|
9984
|
+
protected getFactor(factorName: 'passwordKey' | 'presentationKey' | 'recoveryKey' | 'privilegedKey'): Promise<number[]>;
|
|
9809
9985
|
/**
|
|
9810
9986
|
* Recomputes UMP token fields with updated factors and profiles, then publishes the update.
|
|
9811
9987
|
* This operation requires the *root* privileged key and the *default* profile wallet.
|
|
9812
9988
|
*/
|
|
9813
|
-
private
|
|
9989
|
+
private updateFactors;
|
|
9814
9990
|
/**
|
|
9815
9991
|
* Serializes a UMP token to binary format (Version 3 with KDF metadata, Version 2 with profiles).
|
|
9816
9992
|
* 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]
|
|
@@ -9828,8 +10004,8 @@ declare class CWIStyleWalletManager implements WalletInterface {
|
|
|
9828
10004
|
* @param rootPrimaryKey The user's root primary key (32 bytes).
|
|
9829
10005
|
* @param ephemeralRootPrivilegedKey Optional root privileged key (e.g., during recovery flows).
|
|
9830
10006
|
*/
|
|
9831
|
-
private
|
|
9832
|
-
private
|
|
10007
|
+
private setupRoot;
|
|
10008
|
+
private assertReady;
|
|
9833
10009
|
getPublicKey(args: GetPublicKeyArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<GetPublicKeyResult>;
|
|
9834
10010
|
revealCounterpartyKeyLinkage(args: RevealCounterpartyKeyLinkageArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<RevealCounterpartyKeyLinkageResult>;
|
|
9835
10011
|
revealSpecificKeyLinkage(args: RevealSpecificKeyLinkageArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<RevealSpecificKeyLinkageResult>;
|
|
@@ -10132,32 +10308,26 @@ declare class WABTransport {
|
|
|
10132
10308
|
readonly serverUrl: string;
|
|
10133
10309
|
readonly serverOrigin: string;
|
|
10134
10310
|
readonly telemetry: Telemetry;
|
|
10135
|
-
private readonly
|
|
10136
|
-
private readonly
|
|
10137
|
-
private readonly
|
|
10138
|
-
private readonly
|
|
10311
|
+
private readonly fetcher;
|
|
10312
|
+
private readonly timeout;
|
|
10313
|
+
private readonly requestLimit;
|
|
10314
|
+
private readonly responseLimit;
|
|
10139
10315
|
constructor(serverUrl: string, options?: WABTransportOptions);
|
|
10140
10316
|
createCorrelationId(): string;
|
|
10141
10317
|
request<T>(path: string, options: WABRequestOptions): Promise<T>;
|
|
10142
|
-
private
|
|
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 readBoundedStream;
|
|
10156
|
-
private decodeChunks;
|
|
10157
|
-
private responseTooLargeError;
|
|
10158
|
-
private cancelResponseBody;
|
|
10159
|
-
private cancelResponseReader;
|
|
10160
|
-
private captureFailure;
|
|
10318
|
+
private bodyFor;
|
|
10319
|
+
private startTimer;
|
|
10320
|
+
private fetch;
|
|
10321
|
+
private checkResponse;
|
|
10322
|
+
private readText;
|
|
10323
|
+
private parse;
|
|
10324
|
+
private read;
|
|
10325
|
+
private readBuffer;
|
|
10326
|
+
private readStream;
|
|
10327
|
+
private sizeError;
|
|
10328
|
+
private stopBody;
|
|
10329
|
+
private stopReader;
|
|
10330
|
+
private report;
|
|
10161
10331
|
}
|
|
10162
10332
|
//#endregion
|
|
10163
10333
|
//#region ../src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts
|
|
@@ -10177,6 +10347,12 @@ interface CompleteAuthResponse {
|
|
|
10177
10347
|
accountStatus?: 'new-user' | 'existing-user';
|
|
10178
10348
|
/** Compatibility signal accepted from WAB deployments using a boolean. */
|
|
10179
10349
|
existingUser?: boolean;
|
|
10350
|
+
/** Operator-selected UMP ambiguity fallback supplied by newer WAB servers. */
|
|
10351
|
+
umpTokenOutpoint?: string;
|
|
10352
|
+
/** Staged key returned while a verified phone change awaits WAB finalization. */
|
|
10353
|
+
pendingPresentationKey?: string;
|
|
10354
|
+
/** Identifier used to idempotently finalize a staged phone change. */
|
|
10355
|
+
pendingPhoneChangeId?: number;
|
|
10180
10356
|
}
|
|
10181
10357
|
/**
|
|
10182
10358
|
* Abstract client-side interactor for an Auth Method.
|
|
@@ -10371,6 +10547,7 @@ declare class WalletAuthenticationManager extends CWIStyleWalletManager {
|
|
|
10371
10547
|
private readonly wabClient;
|
|
10372
10548
|
private authMethod?;
|
|
10373
10549
|
private authSession?;
|
|
10550
|
+
private phoneChangeSession?;
|
|
10374
10551
|
private readonly authSessionTtlMs;
|
|
10375
10552
|
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]);
|
|
10376
10553
|
/**
|
|
@@ -10388,7 +10565,26 @@ declare class WalletAuthenticationManager extends CWIStyleWalletManager {
|
|
|
10388
10565
|
*/
|
|
10389
10566
|
completeAuth(payload: AuthPayload): Promise<void>;
|
|
10390
10567
|
cancelAuth(): void;
|
|
10568
|
+
private readPendingPhoneChange;
|
|
10569
|
+
private provideWABPresentationKey;
|
|
10570
|
+
private finalizePendingPhoneChange;
|
|
10571
|
+
/**
|
|
10572
|
+
* Starts OTP verification for a replacement phone number. The same number
|
|
10573
|
+
* is valid and intentionally produces a fresh presentation key/hash.
|
|
10574
|
+
*/
|
|
10575
|
+
startPhoneNumberChange(phoneNumber: string): Promise<void>;
|
|
10576
|
+
/**
|
|
10577
|
+
* Completes phone verification and stages the WAB association before
|
|
10578
|
+
* publishing the UMP key rotation. WAB retains both the current and pending
|
|
10579
|
+
* presentation keys until finalization, so either side of an interrupted
|
|
10580
|
+
* transition remains recoverable on the next verified login.
|
|
10581
|
+
*/
|
|
10582
|
+
completePhoneNumberChange(otp: string): Promise<{
|
|
10583
|
+
changeId: number;
|
|
10584
|
+
}>;
|
|
10585
|
+
cancelPhoneNumberChange(): void;
|
|
10391
10586
|
destroy(): void;
|
|
10587
|
+
private phoneChange;
|
|
10392
10588
|
private inferAccountStatus;
|
|
10393
10589
|
private constantTimeHexEqual;
|
|
10394
10590
|
private generateTemporaryPresentationKey;
|
|
@@ -11398,5 +11594,5 @@ declare class WalletPermissionsManager implements WalletInterface {
|
|
|
11398
11594
|
private buildActiveRequestKey;
|
|
11399
11595
|
}
|
|
11400
11596
|
//#endregion
|
|
11401
|
-
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 };
|
|
11597
|
+
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 };
|
|
11402
11598
|
//# sourceMappingURL=index.client.d.mts.map
|