@eloquentai/chat-sdk 0.31.7-dev → 0.33.0-dev

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as n, a as s, r, u as f } from "./index-Bx0xD2_D.js";
1
+ import { C as n, a as s, r, u as f } from "./index-DtDZgmot.js";
2
2
  try {
3
3
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, d = new e.Error().stack;
4
4
  d && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[d] = "118859a5-c0fd-4bc2-9d01-2ca49e89967d", e._sentryDebugIdIdentifier = "sentry-dbid-118859a5-c0fd-4bc2-9d01-2ca49e89967d");
@@ -52,6 +52,7 @@ export interface BootResponse {
52
52
  app_sync_region: string;
53
53
  title?: string;
54
54
  subtitle?: string;
55
+ chat_enabled?: boolean;
55
56
  };
56
57
  }
57
58
  export declare function isChatClosedMessage(msg: MessageResponse): boolean;
@@ -0,0 +1,10 @@
1
+ interface WithRetryOptions {
2
+ retries?: number;
3
+ minDelayMs?: number;
4
+ maxDelayMs?: number;
5
+ factor?: number;
6
+ }
7
+ /** Retries on network errors and 5xx/429 responses; other errors bail immediately. */
8
+ export declare function isRetryableError(error: unknown): boolean;
9
+ export declare function withRetry<T>(operation: () => Promise<T>, options?: WithRetryOptions): Promise<T>;
10
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eloquentai/chat-sdk",
3
- "version": "0.31.7-dev",
3
+ "version": "0.33.0-dev",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "chat",