@1interface/chat-shell 0.2.0-pipecat.1 → 0.2.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -313
  2. package/package.json +5 -5
package/dist/index.d.ts CHANGED
@@ -1,38 +1,20 @@
1
- import { Action } from '@reduxjs/toolkit';
2
- import { AppBrandingResponse } from '@1interface/shared-core';
3
1
  import { AppearanceMode } from '@1interface/shared-core';
4
2
  import { AudioPlatform } from '@1interface/voice-core';
5
- import { AuthState } from '@1interface/shared-core';
6
- import { BaseQueryFn } from '@reduxjs/toolkit/query';
7
3
  import { ChatProps } from '@1interface/chat-core';
8
4
  import { ChatSettings } from '@1interface/chat-core';
9
5
  import { ChatThemeStyles } from '@1interface/shared-core';
10
- import { ClientConfigResponse } from '@1interface/chat-core';
11
- import { CombinedState } from '@reduxjs/toolkit/query';
12
6
  import { default as default_2 } from 'react';
13
7
  import { EnhancedStore } from '@reduxjs/toolkit';
14
8
  import { ExtraHydration } from '@1interface/shared-core';
15
- import { FetchArgs } from '@reduxjs/toolkit/query';
16
- import { FetchBaseQueryError } from '@reduxjs/toolkit/query';
17
- import { MutationDefinition } from '@reduxjs/toolkit/query';
18
9
  import { NetworkMonitor } from '@1interface/shared-core';
19
10
  import { PaymentInitPayload } from '@1interface/shared-core';
20
11
  import { PaymentResult } from '@1interface/chat-core';
21
- import { Profile } from '@1interface/chat-core';
22
- import { ProtocolType } from '@1interface/chat-core';
23
- import { QueryDefinition } from '@reduxjs/toolkit/query';
24
12
  import { ReactNode } from 'react';
25
- import { Reducer } from '@reduxjs/toolkit';
26
13
  import { Storage as Storage_2 } from '@1interface/shared-core';
27
14
  import { StoreEnhancer } from '@reduxjs/toolkit';
28
15
  import { SttImplementation } from '@1interface/shared-core';
29
- import { ThunkDispatch } from '@reduxjs/toolkit';
30
- import { ToolServer } from '@1interface/chat-core';
31
16
  import { Tuple } from '@reduxjs/toolkit';
32
17
  import { UnknownAction } from '@reduxjs/toolkit';
33
- import { UnsubscribeListener } from '@reduxjs/toolkit';
34
- import { UpdateProfilePayload } from '@1interface/chat-core';
35
- import { VoiceState } from '@1interface/voice-core';
36
18
 
37
19
  export declare type AppDispatch = typeof store.dispatch;
38
20
 
@@ -85,153 +67,7 @@ export declare interface PaymentProviderHostProps {
85
67
 
86
68
  export declare const preloadPaymentModal: () => Promise<unknown>;
87
69
 
88
- export declare const rootReducer: Reducer< {
89
- auth: AuthState;
90
- chat: {
91
- isAgentWorking: boolean;
92
- statusText: string | null;
93
- responseStartTime: number | null;
94
- messageQueue: {
95
- id: string;
96
- text: string;
97
- queuedAt: string;
98
- }[];
99
- };
100
- conversations: {
101
- activeConversationId: string | null;
102
- titles: {
103
- [x: string]: string;
104
- };
105
- };
106
- voice: VoiceState;
107
- indicator: {
108
- lastResponseTime: number | null;
109
- };
110
- chatApi: CombinedState< {
111
- getConversationHistory: QueryDefinition< {
112
- skip?: number;
113
- limit?: number;
114
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
115
- conversations: any[];
116
- }, "chatApi", unknown>;
117
- getConversationById: QueryDefinition< {
118
- conversationId: string;
119
- skip?: number;
120
- limit?: number;
121
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
122
- createConversatons: MutationDefinition< {
123
- protocol: ProtocolType;
124
- body?: any;
125
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
126
- transcribeAudio: MutationDefinition< {
127
- audioFile: File;
128
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
129
- success: boolean;
130
- data: {
131
- text: string;
132
- filename?: string;
133
- };
134
- }, "chatApi", unknown>;
135
- getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
136
- tool_servers: ToolServer[];
137
- }, "chatApi", unknown>;
138
- startToolServerOAuth: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
139
- authorize_url: string;
140
- }, "chatApi", unknown>;
141
- deleteToolServerConnection: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
142
- exchangeOAuthCode: MutationDefinition< {
143
- code: string;
144
- state: string;
145
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
146
- deleteConversation: MutationDefinition< {
147
- conversationId: string;
148
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
149
- }, "chat" | "toolServers", "chatApi">;
150
- brandingApi: CombinedState< {
151
- getBranding: QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>;
152
- }, never, "brandingApi">;
153
- configApi: CombinedState< {
154
- getConfig: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>;
155
- }, never, "configApi">;
156
- profileApi: CombinedState< {
157
- getProfile: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>;
158
- updateProfile: MutationDefinition<UpdateProfilePayload, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
159
- deleteAccount: MutationDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
160
- }, "profile", "profileApi">;
161
- }, UnknownAction, Partial<{
162
- auth: AuthState;
163
- chat: {
164
- isAgentWorking: boolean;
165
- statusText: string | null;
166
- responseStartTime: number | null;
167
- messageQueue: {
168
- id: string;
169
- text: string;
170
- queuedAt: string;
171
- }[];
172
- };
173
- conversations: {
174
- activeConversationId: string | null;
175
- titles: {
176
- [x: string]: string;
177
- };
178
- };
179
- voice: VoiceState;
180
- indicator: {
181
- lastResponseTime: number | null;
182
- };
183
- chatApi: CombinedState< {
184
- getConversationHistory: QueryDefinition< {
185
- skip?: number;
186
- limit?: number;
187
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
188
- conversations: any[];
189
- }, "chatApi", unknown>;
190
- getConversationById: QueryDefinition< {
191
- conversationId: string;
192
- skip?: number;
193
- limit?: number;
194
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
195
- createConversatons: MutationDefinition< {
196
- protocol: ProtocolType;
197
- body?: any;
198
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
199
- transcribeAudio: MutationDefinition< {
200
- audioFile: File;
201
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
202
- success: boolean;
203
- data: {
204
- text: string;
205
- filename?: string;
206
- };
207
- }, "chatApi", unknown>;
208
- getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
209
- tool_servers: ToolServer[];
210
- }, "chatApi", unknown>;
211
- startToolServerOAuth: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
212
- authorize_url: string;
213
- }, "chatApi", unknown>;
214
- deleteToolServerConnection: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
215
- exchangeOAuthCode: MutationDefinition< {
216
- code: string;
217
- state: string;
218
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
219
- deleteConversation: MutationDefinition< {
220
- conversationId: string;
221
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
222
- }, "chat" | "toolServers", "chatApi">;
223
- brandingApi: CombinedState< {
224
- getBranding: QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>;
225
- }, never, "brandingApi">;
226
- configApi: CombinedState< {
227
- getConfig: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>;
228
- }, never, "configApi">;
229
- profileApi: CombinedState< {
230
- getProfile: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>;
231
- updateProfile: MutationDefinition<UpdateProfilePayload, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
232
- deleteAccount: MutationDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
233
- }, "profile", "profileApi">;
234
- }>>;
70
+ export declare const rootReducer: any;
235
71
 
236
72
  export declare type RootState = ReturnType<typeof store.getState>;
237
73
 
@@ -249,154 +85,8 @@ declare interface StorageProviderProps {
249
85
  extraHydrations?: Array<ExtraHydration>;
250
86
  }
251
87
 
252
- export declare const store: EnhancedStore< {
253
- auth: AuthState;
254
- chat: {
255
- isAgentWorking: boolean;
256
- statusText: string | null;
257
- responseStartTime: number | null;
258
- messageQueue: {
259
- id: string;
260
- text: string;
261
- queuedAt: string;
262
- }[];
263
- };
264
- conversations: {
265
- activeConversationId: string | null;
266
- titles: {
267
- [x: string]: string;
268
- };
269
- };
270
- voice: VoiceState;
271
- indicator: {
272
- lastResponseTime: number | null;
273
- };
274
- chatApi: CombinedState< {
275
- getConversationHistory: QueryDefinition< {
276
- skip?: number;
277
- limit?: number;
278
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
279
- conversations: any[];
280
- }, "chatApi", unknown>;
281
- getConversationById: QueryDefinition< {
282
- conversationId: string;
283
- skip?: number;
284
- limit?: number;
285
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
286
- createConversatons: MutationDefinition< {
287
- protocol: ProtocolType;
288
- body?: any;
289
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
290
- transcribeAudio: MutationDefinition< {
291
- audioFile: File;
292
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
293
- success: boolean;
294
- data: {
295
- text: string;
296
- filename?: string;
297
- };
298
- }, "chatApi", unknown>;
299
- getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
300
- tool_servers: ToolServer[];
301
- }, "chatApi", unknown>;
302
- startToolServerOAuth: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
303
- authorize_url: string;
304
- }, "chatApi", unknown>;
305
- deleteToolServerConnection: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
306
- exchangeOAuthCode: MutationDefinition< {
307
- code: string;
308
- state: string;
309
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
310
- deleteConversation: MutationDefinition< {
311
- conversationId: string;
312
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
313
- }, "chat" | "toolServers", "chatApi">;
314
- brandingApi: CombinedState< {
315
- getBranding: QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>;
316
- }, never, "brandingApi">;
317
- configApi: CombinedState< {
318
- getConfig: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>;
319
- }, never, "configApi">;
320
- profileApi: CombinedState< {
321
- getProfile: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>;
322
- updateProfile: MutationDefinition<UpdateProfilePayload, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
323
- deleteAccount: MutationDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
324
- }, "profile", "profileApi">;
325
- }, UnknownAction, Tuple<[StoreEnhancer< {
326
- dispatch: ((action: Action<"listenerMiddleware/add">) => UnsubscribeListener) & ThunkDispatch< {
327
- auth: AuthState;
328
- chat: {
329
- isAgentWorking: boolean;
330
- statusText: string | null;
331
- responseStartTime: number | null;
332
- messageQueue: {
333
- id: string;
334
- text: string;
335
- queuedAt: string;
336
- }[];
337
- };
338
- conversations: {
339
- activeConversationId: string | null;
340
- titles: {
341
- [x: string]: string;
342
- };
343
- };
344
- voice: VoiceState;
345
- indicator: {
346
- lastResponseTime: number | null;
347
- };
348
- chatApi: CombinedState< {
349
- getConversationHistory: QueryDefinition< {
350
- skip?: number;
351
- limit?: number;
352
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
353
- conversations: any[];
354
- }, "chatApi", unknown>;
355
- getConversationById: QueryDefinition< {
356
- conversationId: string;
357
- skip?: number;
358
- limit?: number;
359
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
360
- createConversatons: MutationDefinition< {
361
- protocol: ProtocolType;
362
- body?: any;
363
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
364
- transcribeAudio: MutationDefinition< {
365
- audioFile: File;
366
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
367
- success: boolean;
368
- data: {
369
- text: string;
370
- filename?: string;
371
- };
372
- }, "chatApi", unknown>;
373
- getToolServers: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
374
- tool_servers: ToolServer[];
375
- }, "chatApi", unknown>;
376
- startToolServerOAuth: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", {
377
- authorize_url: string;
378
- }, "chatApi", unknown>;
379
- deleteToolServerConnection: MutationDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
380
- exchangeOAuthCode: MutationDefinition< {
381
- code: string;
382
- state: string;
383
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", void, "chatApi", unknown>;
384
- deleteConversation: MutationDefinition< {
385
- conversationId: string;
386
- }, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "chat" | "toolServers", any, "chatApi", unknown>;
387
- }, "chat" | "toolServers", "chatApi">;
388
- brandingApi: CombinedState< {
389
- getBranding: QueryDefinition<string, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, AppBrandingResponse, "brandingApi", unknown>;
390
- }, never, "brandingApi">;
391
- configApi: CombinedState< {
392
- getConfig: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, never, ClientConfigResponse, "configApi", unknown>;
393
- }, never, "configApi">;
394
- profileApi: CombinedState< {
395
- getProfile: QueryDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", Profile, "profileApi", unknown>;
396
- updateProfile: MutationDefinition<UpdateProfilePayload, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
397
- deleteAccount: MutationDefinition<void, BaseQueryFn<string | FetchArgs, unknown, FetchBaseQueryError>, "profile", void, "profileApi", unknown>;
398
- }, "profile", "profileApi">;
399
- }, undefined, UnknownAction>;
88
+ export declare const store: EnhancedStore<any, UnknownAction, Tuple<[StoreEnhancer< {
89
+ dispatch: any;
400
90
  }>, StoreEnhancer]>>;
401
91
 
402
92
  export declare const useMessageContext: () => MessageContextType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1interface/chat-shell",
3
- "version": "0.2.0-pipecat.1",
3
+ "version": "0.2.1",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -51,10 +51,10 @@
51
51
  "lucide-react": "^0.562.0",
52
52
  "streamdown": "^1.6.11",
53
53
  "tailwind-merge": "^3.6.0",
54
- "@1interface/chat-core": "^0.2.0-pipecat.1",
55
- "@1interface/voice-core": "^0.2.0-pipecat.1",
56
- "@1interface/widgets": "^0.2.0-pipecat.1",
57
- "@1interface/voice-shell": "^0.2.0-pipecat.1"
54
+ "@1interface/chat-core": "^0.2.2",
55
+ "@1interface/voice-core": "^0.2.1",
56
+ "@1interface/voice-shell": "^0.2.1",
57
+ "@1interface/widgets": "^0.1.0"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@reduxjs/toolkit": "^2.0.0",