@eloquentai/chat-sdk 0.30.24 → 0.31.1-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/components/chat/persistence.hook.d.ts +2 -1
- package/dist/components/chat/realtime-socket.hook.d.ts +2 -1
- package/dist/{index-ruZLsx1O.js → index-Cx2kBl5_.js} +2 -2
- package/dist/{index-ruZLsx1O.js.map → index-Cx2kBl5_.js.map} +1 -1
- package/dist/{index-7er7goSm.js → index-Dg0-oX63.js} +3675 -3632
- package/dist/{index-7er7goSm.js.map → index-Dg0-oX63.js.map} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/lib/eloquent-ai-api-client.d.ts +3 -1
- package/dist/lib/http.d.ts +3 -0
- package/dist/lib/http.test.d.ts +1 -0
- package/package.json +5 -4
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as n, a as s, r, u as f } from "./index-
|
|
1
|
+
import { C as n, a as s, r, u as f } from "./index-Dg0-oX63.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");
|
|
@@ -10,6 +10,7 @@ export interface ConversationApiResponse {
|
|
|
10
10
|
}
|
|
11
11
|
export interface CreateConversationApiResponse {
|
|
12
12
|
chat_id: string;
|
|
13
|
+
chat_token: string;
|
|
13
14
|
}
|
|
14
15
|
export interface IdentifyUserApiResponse {
|
|
15
16
|
result: string;
|
|
@@ -47,7 +48,6 @@ export interface BootResponse {
|
|
|
47
48
|
avatar_url?: string | null;
|
|
48
49
|
user_bubble_color?: string | null;
|
|
49
50
|
app_sync_api_key: string;
|
|
50
|
-
app_sync_token?: string;
|
|
51
51
|
app_sync_url: string;
|
|
52
52
|
app_sync_region: string;
|
|
53
53
|
title?: string;
|
|
@@ -69,6 +69,8 @@ export declare class EloquentAiApiClient {
|
|
|
69
69
|
*/
|
|
70
70
|
reset(): void;
|
|
71
71
|
setRegion(region: string): void;
|
|
72
|
+
getChatToken(): string | null;
|
|
73
|
+
setChatToken(token: string | null): void;
|
|
72
74
|
/**
|
|
73
75
|
* Get organization data by app ID
|
|
74
76
|
*/
|
package/dist/lib/http.d.ts
CHANGED
|
@@ -15,8 +15,11 @@ export declare class HttpClient {
|
|
|
15
15
|
private baseURL;
|
|
16
16
|
private headers;
|
|
17
17
|
private region;
|
|
18
|
+
private chatToken;
|
|
18
19
|
constructor(config: HttpClientConfig);
|
|
19
20
|
setRegion(region: string): void;
|
|
21
|
+
setChatToken(token: string | null): void;
|
|
22
|
+
getChatToken(): string | null;
|
|
20
23
|
private request;
|
|
21
24
|
get<T>(url: string): Promise<T>;
|
|
22
25
|
post<T, D>(url: string, data: D): Promise<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eloquentai/chat-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.1-dev",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chat",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"eslint-plugin-react-refresh": "^0.4.16",
|
|
64
64
|
"globals": "^15.14.0",
|
|
65
65
|
"jsdom": "^26.1.0",
|
|
66
|
-
"postcss": "^8.
|
|
66
|
+
"postcss": "^8.5.18",
|
|
67
67
|
"prettier": "^3.4.2",
|
|
68
68
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
69
69
|
"tailwind-scrollbar": "^4.0.2",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"ws": "^8.21.0",
|
|
108
108
|
"form-data": "^4.0.6",
|
|
109
109
|
"@babel/core": "^7.29.6",
|
|
110
|
-
"fast-uri": "^3.1.
|
|
110
|
+
"fast-uri": "^3.1.4",
|
|
111
111
|
"js-cookie": "^3.0.6",
|
|
112
112
|
"js-yaml": "^4.3.0",
|
|
113
113
|
"fast-xml-builder": "^1.1.8",
|
|
@@ -115,7 +115,8 @@
|
|
|
115
115
|
"lodash@<=4.17.23": "4.18.1",
|
|
116
116
|
"flatted@<=3.4.1": "3.4.2",
|
|
117
117
|
"uuid": "^14.0.0",
|
|
118
|
-
"brace-expansion
|
|
118
|
+
"brace-expansion": "^2.1.2",
|
|
119
|
+
"postcss": "^8.5.18",
|
|
119
120
|
"yaml@>=2.0.0": "^2.8.3"
|
|
120
121
|
},
|
|
121
122
|
"allowScripts": {
|