@keploy/capture-sdk 3.3.0 → 3.3.1

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/errors.d.ts CHANGED
@@ -301,7 +301,7 @@ export declare class CaptureError extends Error {
301
301
  readonly issues: readonly ServerIssue[] | null;
302
302
  readonly remedy: CaptureRemedy;
303
303
  readonly evidence: CaptureEvidence;
304
- protected constructor(code: CaptureErrorCode, message: string, status: number | null, server: ServerError, evidence: CaptureEvidence);
304
+ protected constructor(code: CaptureErrorCode, message: string, evidence: CaptureEvidence, status?: number | null, server?: ServerError);
305
305
  }
306
306
  /** What the transport builds from a terminal response. */
307
307
  export interface IngestRejectionInit {
@@ -316,7 +316,7 @@ export declare class IngestRejection extends CaptureError {
316
316
  readonly code: ServerAnsweredCode;
317
317
  readonly status: number;
318
318
  readonly evidence: IngestEvidence;
319
- constructor(init: IngestRejectionInit);
319
+ constructor({ code, status, server, endpoint, sessionId, }: IngestRejectionInit);
320
320
  }
321
321
  /** What the recorder builds when sessionIdGenerator does not produce a session id. */
322
322
  export interface SessionIdRefusalInit {
@@ -330,7 +330,7 @@ export declare class SessionIdRefusal extends CaptureError {
330
330
  readonly code: "KUI_E_SESSION_ID_INVALID";
331
331
  readonly status: null;
332
332
  readonly evidence: SessionIdEvidence;
333
- constructor(init: SessionIdRefusalInit);
333
+ constructor({ sessionId, received }: SessionIdRefusalInit);
334
334
  }
335
335
  /**
336
336
  * The SDK refused a strict capture: KUI_E_STRICT_ATTRIBUTES_UNAVAILABLE,
@@ -347,7 +347,7 @@ export declare class StrictAttributesRefusal extends CaptureError {
347
347
  readonly code: "KUI_E_STRICT_ATTRIBUTES_UNAVAILABLE";
348
348
  readonly status: null;
349
349
  readonly evidence: DomRecorderEvidence;
350
- constructor(init: {
350
+ constructor({ reason }: {
351
351
  reason: string;
352
352
  });
353
353
  }
@@ -370,7 +370,7 @@ export declare class DomRecorderRefusal extends CaptureError {
370
370
  readonly code: "KUI_E_DOM_RECORDER_UNAVAILABLE";
371
371
  readonly status: null;
372
372
  readonly evidence: DomRecorderEvidence;
373
- constructor(init: {
373
+ constructor({ reason }: {
374
374
  reason: string;
375
375
  });
376
376
  }
@@ -384,7 +384,7 @@ export declare class PrivacyRouteRefusal extends CaptureError {
384
384
  readonly code: "KUI_E_PRIVACY_ROUTE_INVALID";
385
385
  readonly status: null;
386
386
  readonly evidence: PrivacyRouteEvidence;
387
- constructor(init: {
387
+ constructor({ option, received, }: {
388
388
  option: "secretRoutes" | "keepRoutes";
389
389
  received: string;
390
390
  });