@otskit/client 0.5.0 → 0.6.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/dist/index.d.cts CHANGED
@@ -139,13 +139,13 @@ declare const DEFAULT_RESILIENCE: ResilienceOptions;
139
139
  * ```
140
140
  */
141
141
  declare class OpenTimestampsClient {
142
- private calendars;
143
- private networkLayer;
144
- private logger?;
145
- private globalSignal?;
146
- private minimumSuccessfulSubmissions;
147
- private allowPrivateCalendars;
148
- private esploraUrl;
142
+ private readonly calendars;
143
+ private readonly networkLayer;
144
+ private readonly logger?;
145
+ private readonly globalSignal?;
146
+ private readonly minimumSuccessfulSubmissions;
147
+ private readonly allowPrivateCalendars;
148
+ private readonly esploraUrl;
149
149
  /**
150
150
  * Create a new OpenTimestamps client
151
151
  *
@@ -188,7 +188,7 @@ declare class OpenTimestampsClient {
188
188
  * const upgradedProof = await client.upgrade(incompleteProof)
189
189
  *
190
190
  * // If upgrade throws UpgradeError, Bitcoin hasn't confirmed yet
191
- * // Retry later (typically 10-60 minutes after stamp)
191
+ * // Retry later (typically ~60 minutes after stamp)
192
192
  * ```
193
193
  */
194
194
  upgrade(incompleteProof: Buffer, options?: OperationOptions): Promise<Buffer>;
@@ -251,7 +251,7 @@ declare class ValidationError extends OpenTimestampsClientError {
251
251
  declare class StampError extends OpenTimestampsClientError {
252
252
  readonly successfulSubmissions: Array<{
253
253
  calendar: string;
254
- proof?: Buffer;
254
+ proof?: Uint8Array;
255
255
  }>;
256
256
  readonly failedSubmissions: Array<{
257
257
  calendar: string;
@@ -259,7 +259,7 @@ declare class StampError extends OpenTimestampsClientError {
259
259
  }>;
260
260
  constructor(message: string, successful: Array<{
261
261
  calendar: string;
262
- proof?: Buffer;
262
+ proof?: Uint8Array;
263
263
  }>, failed: Array<{
264
264
  calendar: string;
265
265
  error: Error;
@@ -330,9 +330,9 @@ interface FetchResponse {
330
330
  }
331
331
 
332
332
  declare class ResilientNetworkLayer {
333
- private options;
334
- private logger?;
335
- private circuitBreaker;
333
+ private readonly options;
334
+ private readonly logger?;
335
+ private readonly circuitBreaker;
336
336
  constructor(options: ResilienceOptions, logger?: Logger | undefined);
337
337
  /**
338
338
  * Execute a request with full resilience pipeline
package/dist/index.d.ts CHANGED
@@ -139,13 +139,13 @@ declare const DEFAULT_RESILIENCE: ResilienceOptions;
139
139
  * ```
140
140
  */
141
141
  declare class OpenTimestampsClient {
142
- private calendars;
143
- private networkLayer;
144
- private logger?;
145
- private globalSignal?;
146
- private minimumSuccessfulSubmissions;
147
- private allowPrivateCalendars;
148
- private esploraUrl;
142
+ private readonly calendars;
143
+ private readonly networkLayer;
144
+ private readonly logger?;
145
+ private readonly globalSignal?;
146
+ private readonly minimumSuccessfulSubmissions;
147
+ private readonly allowPrivateCalendars;
148
+ private readonly esploraUrl;
149
149
  /**
150
150
  * Create a new OpenTimestamps client
151
151
  *
@@ -188,7 +188,7 @@ declare class OpenTimestampsClient {
188
188
  * const upgradedProof = await client.upgrade(incompleteProof)
189
189
  *
190
190
  * // If upgrade throws UpgradeError, Bitcoin hasn't confirmed yet
191
- * // Retry later (typically 10-60 minutes after stamp)
191
+ * // Retry later (typically ~60 minutes after stamp)
192
192
  * ```
193
193
  */
194
194
  upgrade(incompleteProof: Buffer, options?: OperationOptions): Promise<Buffer>;
@@ -251,7 +251,7 @@ declare class ValidationError extends OpenTimestampsClientError {
251
251
  declare class StampError extends OpenTimestampsClientError {
252
252
  readonly successfulSubmissions: Array<{
253
253
  calendar: string;
254
- proof?: Buffer;
254
+ proof?: Uint8Array;
255
255
  }>;
256
256
  readonly failedSubmissions: Array<{
257
257
  calendar: string;
@@ -259,7 +259,7 @@ declare class StampError extends OpenTimestampsClientError {
259
259
  }>;
260
260
  constructor(message: string, successful: Array<{
261
261
  calendar: string;
262
- proof?: Buffer;
262
+ proof?: Uint8Array;
263
263
  }>, failed: Array<{
264
264
  calendar: string;
265
265
  error: Error;
@@ -330,9 +330,9 @@ interface FetchResponse {
330
330
  }
331
331
 
332
332
  declare class ResilientNetworkLayer {
333
- private options;
334
- private logger?;
335
- private circuitBreaker;
333
+ private readonly options;
334
+ private readonly logger?;
335
+ private readonly circuitBreaker;
336
336
  constructor(options: ResilienceOptions, logger?: Logger | undefined);
337
337
  /**
338
338
  * Execute a request with full resilience pipeline