@logspace/sdk 1.1.7 → 1.1.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logspace/sdk",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "LogSpace JavaScript SDK for session recording and logging",
5
5
  "type": "module",
6
6
  "main": "./logspace.umd.js",
@@ -69,6 +69,16 @@ export declare function updatePendingSessionRetry(sessionId: string): Promise<vo
69
69
  * Clean up old pending sessions (older than 7 days or too many retries)
70
70
  */
71
71
  export declare function cleanupOldPendingSessions(): Promise<void>;
72
+ /**
73
+ * Calculate exponential backoff interval based on retry count
74
+ * Returns milliseconds to wait before next retry
75
+ * Pattern: 1min, 2min, 4min, 8min, 16min, 32min, 60min (capped)
76
+ */
77
+ export declare function getBackoffInterval(retryCount: number): number;
78
+ /**
79
+ * Check if a session is ready for retry based on exponential backoff
80
+ */
81
+ export declare function isReadyForRetry(session: StoredSession): boolean;
72
82
  /**
73
83
  * Close database connection
74
84
  */