@seatlayer/js 0.88.0 → 0.88.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/index.d.cts CHANGED
@@ -516,14 +516,22 @@ declare class ApiError extends Error {
516
516
  /** Present when best-available 409s ('not_enough_together' | 'sold_out'). */
517
517
  reason?: string;
518
518
  /**
519
- * Seconds the server asked the caller to wait, off a 429's `Retry-After`.
519
+ * Seconds the server asked the caller to wait, off a 429's or a 503's
520
+ * `Retry-After`.
520
521
  *
521
- * Present ONLY on a rate-limit error, and it is the server's number — never a
522
- * guess. A widget that catches this can say "try again in N seconds" instead
523
- * of rendering the blank map a swallowed 429 used to produce.
522
+ * Present ONLY on a rate-limit or maintenance error, and it is the server's
523
+ * number — never a guess. A widget that catches this can say "try again in
524
+ * N minutes" instead of rendering the blank map a swallowed 429 used to
525
+ * produce, or the "seats were just taken" a maintenance 503 used to become.
524
526
  */
525
527
  retryAfterS?: number;
526
- constructor(status: number, message: string, code?: string, conflicts?: HoldConflict[], reason?: string, retryAfterS?: number);
528
+ /**
529
+ * Operator-written buyer copy that arrived with a maintenance 503 (the API's
530
+ * `notice`). Shown verbatim when present; absent, the widget uses its own
531
+ * localised wording built from `retryAfterS`.
532
+ */
533
+ notice?: string;
534
+ constructor(status: number, message: string, code?: string, conflicts?: HoldConflict[], reason?: string, retryAfterS?: number, notice?: string);
527
535
  }
528
536
  interface HoldResult {
529
537
  holdId: string;
package/dist/index.d.ts CHANGED
@@ -516,14 +516,22 @@ declare class ApiError extends Error {
516
516
  /** Present when best-available 409s ('not_enough_together' | 'sold_out'). */
517
517
  reason?: string;
518
518
  /**
519
- * Seconds the server asked the caller to wait, off a 429's `Retry-After`.
519
+ * Seconds the server asked the caller to wait, off a 429's or a 503's
520
+ * `Retry-After`.
520
521
  *
521
- * Present ONLY on a rate-limit error, and it is the server's number — never a
522
- * guess. A widget that catches this can say "try again in N seconds" instead
523
- * of rendering the blank map a swallowed 429 used to produce.
522
+ * Present ONLY on a rate-limit or maintenance error, and it is the server's
523
+ * number — never a guess. A widget that catches this can say "try again in
524
+ * N minutes" instead of rendering the blank map a swallowed 429 used to
525
+ * produce, or the "seats were just taken" a maintenance 503 used to become.
524
526
  */
525
527
  retryAfterS?: number;
526
- constructor(status: number, message: string, code?: string, conflicts?: HoldConflict[], reason?: string, retryAfterS?: number);
528
+ /**
529
+ * Operator-written buyer copy that arrived with a maintenance 503 (the API's
530
+ * `notice`). Shown verbatim when present; absent, the widget uses its own
531
+ * localised wording built from `retryAfterS`.
532
+ */
533
+ notice?: string;
534
+ constructor(status: number, message: string, code?: string, conflicts?: HoldConflict[], reason?: string, retryAfterS?: number, notice?: string);
527
535
  }
528
536
  interface HoldResult {
529
537
  holdId: string;