@eloquentai/chat-sdk 0.28.6 → 0.28.7

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-BrPq_oiC.js";
1
+ import { C as n, a as s, r, u as f } from "./index-DGqJFU3a.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");
@@ -32,6 +32,9 @@ export interface AddRatingApiResponse {
32
32
  export interface OrganizationResponse {
33
33
  region: string;
34
34
  }
35
+ export interface ExternalMetadata {
36
+ [key: string]: string | ExternalMetadata;
37
+ }
35
38
  export interface BootResponse {
36
39
  chat_settings: {
37
40
  agent_name: string;
@@ -78,6 +81,7 @@ export declare class EloquentAiApiClient {
78
81
  userName?: string;
79
82
  externalId?: string;
80
83
  userData?: Record<string, string | number | boolean>;
84
+ externalMetadata?: ExternalMetadata;
81
85
  }): Promise<CreateConversationApiResponse>;
82
86
  replyToConversation(options: {
83
87
  text: string;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Reads the current page URL search params from the host website.
3
+ * Returns an empty object during SSR or when there are no query params.
4
+ */
5
+ export declare function getCurrentUrlSearchParams(): Record<string, string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eloquentai/chat-sdk",
3
- "version": "0.28.6",
3
+ "version": "0.28.7",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "chat",