sim 2.2.31 → 2.2.32-preview.313.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.
@@ -12,6 +12,7 @@ export declare class SimApiError extends Error {
12
12
  readonly exitCode: number;
13
13
  /** The server's id for the failed request (`x-request-id`), to quote to support. */
14
14
  readonly requestId: string | null;
15
+ retryAfterMs: number | null;
15
16
  constructor(message: string, status: number, code?: string | null, details?: unknown, exitCode?: number,
16
17
  /** The server's id for the failed request (`x-request-id`), to quote to support. */
17
18
  requestId?: string | null);
@@ -80,6 +81,14 @@ export declare const RAISE_TIMEOUT_HINT = "Raise SIM_TIMEOUT_SECONDS, or set it
80
81
  * the user asked for, which must keep reading as a cancellation.
81
82
  */
82
83
  export declare function isRequestTimeout(error: unknown): boolean;
84
+ /**
85
+ * Aborts when either signal does.
86
+ *
87
+ * `AbortSignal.any` arrived in Node 20.3 and this package supports Node 20, so
88
+ * on the earliest 20.x releases calling it would throw a bare `TypeError`
89
+ * before the request was ever made — turning a supported runtime into a crash.
90
+ */
91
+ export declare function combineSignals(caller: AbortSignal | undefined, timeout: AbortSignal | undefined): AbortSignal | undefined;
83
92
  /** Formats nested validation issues as readable, path-aware lines. */
84
93
  export declare function formatApiErrorDetails(details: unknown): string[];
85
94
  /**