@seatlayer/js 0.89.1 → 0.89.2

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
@@ -605,8 +605,15 @@ declare class ApiError extends Error {
605
605
  notice?: string;
606
606
  /** `422 booking_form_incomplete`: the fields the server refused, for inline errors. */
607
607
  fields?: BookingFormFieldError[];
608
+ /**
609
+ * The server's own statement that sending the identical request again is
610
+ * safe (`retryable: true` in the error body), for example a checkout that met
611
+ * contention. Absent when the server said nothing; never inferred here.
612
+ */
613
+ retryable?: boolean;
608
614
  constructor(status: number, message: string, code?: string, conflicts?: HoldConflict[], reason?: string, retryAfterS?: number, notice?: string, details?: {
609
615
  fields?: BookingFormFieldError[];
616
+ retryable?: boolean;
610
617
  });
611
618
  }
612
619
  interface HoldResult {
@@ -5431,7 +5438,17 @@ interface SeasonRenewalIntent {
5431
5438
  declare class SeasonApiError extends Error {
5432
5439
  readonly code: string;
5433
5440
  readonly status: number;
5434
- constructor(code: string, status: number);
5441
+ /** Seconds from a 503's `Retry-After`, when the server sent one. */
5442
+ readonly retryAfterS?: number;
5443
+ /** The server's `retryable` flag from the error body, when present. */
5444
+ readonly retryable?: boolean;
5445
+ /** The error body's `reason` (for example `maintenance_mode`), when present. */
5446
+ readonly reason?: string;
5447
+ constructor(code: string, status: number, details?: {
5448
+ retryAfterS?: number;
5449
+ retryable?: boolean;
5450
+ reason?: string;
5451
+ });
5435
5452
  }
5436
5453
  declare class SeasonRecoveryTimeoutError extends Error {
5437
5454
  readonly operationId: string;
package/dist/index.d.ts CHANGED
@@ -605,8 +605,15 @@ declare class ApiError extends Error {
605
605
  notice?: string;
606
606
  /** `422 booking_form_incomplete`: the fields the server refused, for inline errors. */
607
607
  fields?: BookingFormFieldError[];
608
+ /**
609
+ * The server's own statement that sending the identical request again is
610
+ * safe (`retryable: true` in the error body), for example a checkout that met
611
+ * contention. Absent when the server said nothing; never inferred here.
612
+ */
613
+ retryable?: boolean;
608
614
  constructor(status: number, message: string, code?: string, conflicts?: HoldConflict[], reason?: string, retryAfterS?: number, notice?: string, details?: {
609
615
  fields?: BookingFormFieldError[];
616
+ retryable?: boolean;
610
617
  });
611
618
  }
612
619
  interface HoldResult {
@@ -5431,7 +5438,17 @@ interface SeasonRenewalIntent {
5431
5438
  declare class SeasonApiError extends Error {
5432
5439
  readonly code: string;
5433
5440
  readonly status: number;
5434
- constructor(code: string, status: number);
5441
+ /** Seconds from a 503's `Retry-After`, when the server sent one. */
5442
+ readonly retryAfterS?: number;
5443
+ /** The server's `retryable` flag from the error body, when present. */
5444
+ readonly retryable?: boolean;
5445
+ /** The error body's `reason` (for example `maintenance_mode`), when present. */
5446
+ readonly reason?: string;
5447
+ constructor(code: string, status: number, details?: {
5448
+ retryAfterS?: number;
5449
+ retryable?: boolean;
5450
+ reason?: string;
5451
+ });
5435
5452
  }
5436
5453
  declare class SeasonRecoveryTimeoutError extends Error {
5437
5454
  readonly operationId: string;