@eloquentai/chat-sdk 0.30.14-dev → 0.30.15-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-BJNypeHG.js";
1
+ import { C as n, a as s, r, u as f } from "./index-DVaal-4t.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");
@@ -7,3 +7,16 @@ export declare function cn(...inputs: ClassValue[]): string;
7
7
  * @returns [result, error] - result is null if error occurred, error is null if no error occurred
8
8
  */
9
9
  export declare function wrapPromise<T, E = ServerError>(promise: Promise<T>): Promise<[T, null] | [null, E]>;
10
+ /**
11
+ * Read a cookie value by name.
12
+ * @returns The decoded cookie value, or null if it doesn't exist or there's no document.
13
+ */
14
+ export declare function getCookie(name: string): string | null;
15
+ /**
16
+ * Set a cookie with a given name, value, and TTL in hours.
17
+ */
18
+ export declare function setCookie(name: string, value: string, hours: number): void;
19
+ /**
20
+ * Delete a cookie by name.
21
+ */
22
+ export declare function deleteCookie(name: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eloquentai/chat-sdk",
3
- "version": "0.30.14-dev",
3
+ "version": "0.30.15-dev",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "chat",